diff options
author | jakobst1n <undefined> | 2022-04-28 14:03:34 +0200 |
---|---|---|
committer | jakobst1n <undefined> | 2022-04-28 14:03:34 +0200 |
commit | bd63e45d2d03af7dd55c48450915f9b63567c3d4 (patch) | |
tree | b9a88f33ae6af2a1b607fb65e5f8b67d6eba7b45 /client | |
parent | feff040c09bef987ccbf9575feb33b0d2e2bdf51 (diff) | |
download | Aurora-data-bd63e45d2d03af7dd55c48450915f9b63567c3d4.tar.gz Aurora-data-bd63e45d2d03af7dd55c48450915f9b63567c3d4.zip |
Updates
Diffstat (limited to 'client')
-rw-r--r-- | client/client.0760ad6c.js (renamed from client/client.e4b23ecd.js) | 2 | ||||
-rw-r--r-- | client/index-ae7087a9.css | 19 | ||||
-rw-r--r-- | client/index-c3b4413a.css | 15 | ||||
-rw-r--r-- | client/index.0db72640.js | 1 | ||||
-rw-r--r-- | client/index.18661d3d.js | 1 | ||||
-rw-r--r-- | client/legacy/client.c55e0741.js (renamed from client/legacy/client.1a413fbb.js) | 2 | ||||
-rw-r--r-- | client/legacy/index-ae7087a9.css | 19 | ||||
-rw-r--r-- | client/legacy/index-c3b4413a.css | 15 | ||||
-rw-r--r-- | client/legacy/index.3cd72d89.js | 1 | ||||
-rw-r--r-- | client/legacy/index.7f481a6e.js | 1 |
10 files changed, 34 insertions, 42 deletions
diff --git a/client/client.e4b23ecd.js b/client/client.0760ad6c.js index b8abed3..2b600d3 100644 --- a/client/client.e4b23ecd.js +++ b/client/client.0760ad6c.js @@ -1,4 +1,4 @@ -function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function a(t,e,n,r){if(t){const o=l(t,e,n,r);return t[0](o)}}function l(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function u(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function f(t,e,n,r,o,s){if(o){const i=l(e,n,r,s);t.p(i,o)}}function d(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}let p,h=!1;function m(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function g(t,e){if(h){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const s=e[t].claim_order,i=(o>0&&e[n[o]].claim_order<=s?o+1:m(1,o,(t=>e[n[t]].claim_order),s))-1;r[t]=n[i]+1;const c=i+1;n[c]=t,o=Math.max(c,o)}const s=[],i=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(s.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<i.length;e++){for(;n<s.length&&i[e].claim_order>=s[n].claim_order;)n++;const r=n<s.length?s[n]:null;t.insertBefore(i[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function $(t,e,n){h&&!n?g(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function y(t){t.parentNode.removeChild(t)}function _(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function b(t){return document.createTextNode(t)}function x(){return b(" ")}function E(){return b("")}function S(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function w(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function N(t){return Array.from(t.childNodes)}function A(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const s=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),s}}for(let r=t.claim_info.last_index-1;r>=0;r--){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,s}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function R(t,e,n){return function(t,e,n,r){return A(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,v)}function P(t,e){return A(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>b(e)),!0)}function L(t){return P(t," ")}function k(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function q(t,e,n){t.classList[n?"add":"remove"](e)}function C(t,e=document.body){return Array.from(e.querySelectorAll(t))}function O(t){p=t}function T(){if(!p)throw new Error("Function called outside component initialization");return p}const U=[],I=[],B=[],J=[],D=Promise.resolve();let z=!1;function H(t){B.push(t)}const K=new Set;let M=0;function V(){const t=p;do{for(;M<U.length;){const t=U[M];M++,O(t),F(t.$$)}for(O(null),U.length=0,M=0;I.length;)I.pop()();for(let t=0;t<B.length;t+=1){const e=B[t];K.has(e)||(K.add(e),e())}B.length=0}while(U.length);for(;J.length;)J.pop()();z=!1,K.clear(),O(t)}function F(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(H)}}const G=new Set;let W;function Y(){W={r:0,c:[],p:W}}function X(){W.r||o(W.c),W=W.p}function Q(t,e){t&&t.i&&(G.delete(t),t.i(e))}function Z(t,e,n,r){if(t&&t.o){if(G.has(t))return;G.add(t),W.c.push((()=>{G.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function tt(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(r[t]=1);for(const t in c)o[t]||(n[t]=c[t],o[t]=1);t[s]=c}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function et(t){return"object"==typeof t&&null!==t?t:{}}function nt(t){t&&t.c()}function rt(t,e){t&&t.l(e)}function ot(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||H((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(H)}function st(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 it(t,e){-1===t.$$.dirty[0]&&(U.push(t),z||(z=!0,D.then(V)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ct(e,n,s,i,c,a,l,u=[-1]){const f=p;O(e);const d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||f.$$.root};l&&l(d.root);let m=!1;if(d.ctx=s?s(e,n.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return d.ctx&&c(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),m&&it(e,t)),n})):[],d.update(),m=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){h=!0;const t=N(n.target);d.fragment&&d.fragment.l(t),t.forEach(y)}else d.fragment&&d.fragment.c();n.intro&&Q(e.$$.fragment),ot(e,n.target,n.anchor,n.customElement),h=!1,V()}O(f)}class at{$destroy(){st(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 lt=[];function ut(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!lt.length;for(const t of o)t[1](),lt.push(t,e);if(t){for(let t=0;t<lt.length;t+=2)lt[t][0](lt[t+1]);lt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,c=t){const a=[i,c];return o.add(a),1===o.size&&(r=n(s)||t),i(e),()=>{o.delete(a),0===o.size&&(r(),r=null)}}}}const ft={};function dt(t){let e,n;const r=t[1].default,o=a(r,t,t[0],null);return{c(){e=v("div"),o&&o.c(),this.h()},l(t){e=R(t,"DIV",{class:!0});var n=N(e);o&&o.l(n),n.forEach(y),this.h()},h(){w(e,"class","app-container svelte-lkkhqy")},m(t,r){$(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&(!n||1&e)&&f(o,r,t,t[0],n?u(r,t[0],e,null):d(t[0]),null)},i(t){n||(Q(o,t),n=!0)},o(t){Z(o,t),n=!1},d(t){t&&y(e),o&&o.d(t)}}}function pt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class ht extends at{constructor(t){super(),ct(this,t,pt,dt,i,{})}}function mt(t){let e,n,r=t[1].stack+"";return{c(){e=v("pre"),n=b(r)},l(t){e=R(t,"PRE",{});var o=N(e);n=P(o,r),o.forEach(y)},m(t,r){$(t,e,r),g(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&k(n,r)},d(t){t&&y(e)}}}function gt(e){let n,r,o,s,i,c,a,l,u,f=e[1].message+"";document.title=n=e[0];let d=e[2]&&e[1].stack&&mt(e);return{c(){r=x(),o=v("h1"),s=b(e[0]),i=x(),c=v("p"),a=b(f),l=x(),d&&d.c(),u=E(),this.h()},l(t){C('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(y),r=L(t),o=R(t,"H1",{class:!0});var n=N(o);s=P(n,e[0]),n.forEach(y),i=L(t),c=R(t,"P",{class:!0});var p=N(c);a=P(p,f),p.forEach(y),l=L(t),d&&d.l(t),u=E(),this.h()},h(){w(o,"class","svelte-jpshsi"),w(c,"class","svelte-jpshsi")},m(t,e){$(t,r,e),$(t,o,e),g(o,s),$(t,i,e),$(t,c,e),g(c,a),$(t,l,e),d&&d.m(t,e),$(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&k(s,t[0]),2&e&&f!==(f=t[1].message+"")&&k(a,f),t[2]&&t[1].stack?d?d.p(t,e):(d=mt(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&y(r),t&&y(o),t&&y(i),t&&y(c),t&&y(l),d&&d.d(t),t&&y(u)}}}function $t(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class yt extends at{constructor(t){super(),ct(this,t,$t,gt,i,{status:0,error:1})}}function _t(t){let n,r,o;const s=[t[4].props];var i=t[4].component;function c(t){let n={};for(let t=0;t<s.length;t+=1)n=e(n,s[t]);return{props:n}}return i&&(n=new i(c())),{c(){n&&nt(n.$$.fragment),r=E()},l(t){n&&rt(n.$$.fragment,t),r=E()},m(t,e){n&&ot(n,t,e),$(t,r,e),o=!0},p(t,e){const o=16&e?tt(s,[et(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){Y();const t=n;Z(t.$$.fragment,1,0,(()=>{st(t,1)})),X()}i?(n=new i(c()),nt(n.$$.fragment),Q(n.$$.fragment,1),ot(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&Q(n.$$.fragment,t),o=!0)},o(t){n&&Z(n.$$.fragment,t),o=!1},d(t){t&&y(r),n&&st(n,t)}}}function vt(t){let e,n;return e=new yt({props:{error:t[0],status:t[1]}}),{c(){nt(e.$$.fragment)},l(t){rt(e.$$.fragment,t)},m(t,r){ot(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||(Q(e.$$.fragment,t),n=!0)},o(t){Z(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function bt(t){let e,n,r,o;const s=[vt,_t],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=E()},l(t){n.l(t),r=E()},m(t,n){i[e].m(t,n),$(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(Y(),Z(i[a],1,1,(()=>{i[a]=null})),X(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),Q(n,1),n.m(r.parentNode,r))},i(t){o||(Q(n),o=!0)},o(t){Z(n),o=!1},d(t){i[e].d(t),t&&y(r)}}}function xt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[bt]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new ht({props:s}),{c(){nt(n.$$.fragment)},l(t){rt(n.$$.fragment,t)},m(t,e){ot(n,t,e),r=!0},p(t,[e]){const r=12&e?tt(o,[4&e&&{segment:t[2][0]},8&e&&et(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(Q(n.$$.fragment,t),r=!0)},o(t){Z(n.$$.fragment,t),r=!1},d(t){st(n,t)}}}function Et(t,e,n){let{stores:r}=e,{error:o}=e,{status:s}=e,{segments:i}=e,{level0:c}=e,{level1:a=null}=e,{notify:l}=e;var u,f,d;return u=l,T().$$.after_update.push(u),f=ft,d=r,T().$$.context.set(f,d),t.$$set=t=>{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,i=t.segments),"level0"in t&&n(3,c=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,i,c,a,r,l]}class St extends at{constructor(t){super(),ct(this,t,Et,xt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const wt=[],Nt=[{js:()=>Promise.all([import("./index.18661d3d.js"),__inject_styles(["client-ea61129f.css","index-ae7087a9.css"])]).then((function(t){return t[0]}))}],At=[{pattern:/^\/$/,parts:[{i:0}]}]; +function t(){}function e(t,e){for(const n in e)t[n]=e[n];return t}function n(t){return t()}function r(){return Object.create(null)}function o(t){t.forEach(n)}function s(t){return"function"==typeof t}function i(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function c(e,n,r){e.$$.on_destroy.push(function(e,...n){if(null==e)return t;const r=e.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}(n,r))}function a(t,e,n,r){if(t){const o=l(t,e,n,r);return t[0](o)}}function l(t,n,r,o){return t[1]&&o?e(r.ctx.slice(),t[1](o(n))):r.ctx}function u(t,e,n,r){if(t[2]&&r){const o=t[2](r(n));if(void 0===e.dirty)return o;if("object"==typeof o){const t=[],n=Math.max(e.dirty.length,o.length);for(let r=0;r<n;r+=1)t[r]=e.dirty[r]|o[r];return t}return e.dirty|o}return e.dirty}function f(t,e,n,r,o,s){if(o){const i=l(e,n,r,s);t.p(i,o)}}function d(t){if(t.ctx.length>32){const e=[],n=t.ctx.length/32;for(let t=0;t<n;t++)e[t]=-1;return e}return-1}let p,h=!1;function m(t,e,n,r){for(;t<e;){const o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function g(t,e){if(h){for(!function(t){if(t.hydrate_init)return;t.hydrate_init=!0;let e=t.childNodes;if("HEAD"===t.nodeName){const t=[];for(let n=0;n<e.length;n++){const r=e[n];void 0!==r.claim_order&&t.push(r)}e=t}const n=new Int32Array(e.length+1),r=new Int32Array(e.length);n[0]=-1;let o=0;for(let t=0;t<e.length;t++){const s=e[t].claim_order,i=(o>0&&e[n[o]].claim_order<=s?o+1:m(1,o,(t=>e[n[t]].claim_order),s))-1;r[t]=n[i]+1;const c=i+1;n[c]=t,o=Math.max(c,o)}const s=[],i=[];let c=e.length-1;for(let t=n[o]+1;0!=t;t=r[t-1]){for(s.push(e[t-1]);c>=t;c--)i.push(e[c]);c--}for(;c>=0;c--)i.push(e[c]);s.reverse(),i.sort(((t,e)=>t.claim_order-e.claim_order));for(let e=0,n=0;e<i.length;e++){for(;n<s.length&&i[e].claim_order>=s[n].claim_order;)n++;const r=n<s.length?s[n]:null;t.insertBefore(i[e],r)}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function $(t,e,n){h&&!n?g(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function y(t){t.parentNode.removeChild(t)}function _(t,e){for(let n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function v(t){return document.createElement(t)}function b(t){return document.createTextNode(t)}function x(){return b(" ")}function E(){return b("")}function S(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function w(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function N(t){return Array.from(t.childNodes)}function A(t,e,n,r,o=!1){!function(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}(t);const s=(()=>{for(let r=t.claim_info.last_index;r<t.length;r++){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o||(t.claim_info.last_index=r),s}}for(let r=t.claim_info.last_index-1;r>=0;r--){const s=t[r];if(e(s)){const e=n(s);return void 0===e?t.splice(r,1):t[r]=e,o?void 0===e&&t.claim_info.last_index--:t.claim_info.last_index=r,s}}return r()})();return s.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,s}function R(t,e,n){return function(t,e,n,r){return A(t,(t=>t.nodeName===e),(t=>{const e=[];for(let r=0;r<t.attributes.length;r++){const o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((e=>t.removeAttribute(e)))}),(()=>r(e)))}(t,e,n,v)}function P(t,e){return A(t,(t=>3===t.nodeType),(t=>{const n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(()=>b(e)),!0)}function L(t){return P(t," ")}function k(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function j(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function q(t,e,n){t.classList[n?"add":"remove"](e)}function C(t,e=document.body){return Array.from(e.querySelectorAll(t))}function O(t){p=t}function T(){if(!p)throw new Error("Function called outside component initialization");return p}const U=[],I=[],B=[],J=[],D=Promise.resolve();let z=!1;function H(t){B.push(t)}const K=new Set;let M=0;function V(){const t=p;do{for(;M<U.length;){const t=U[M];M++,O(t),F(t.$$)}for(O(null),U.length=0,M=0;I.length;)I.pop()();for(let t=0;t<B.length;t+=1){const e=B[t];K.has(e)||(K.add(e),e())}B.length=0}while(U.length);for(;J.length;)J.pop()();z=!1,K.clear(),O(t)}function F(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(H)}}const G=new Set;let W;function Y(){W={r:0,c:[],p:W}}function X(){W.r||o(W.c),W=W.p}function Q(t,e){t&&t.i&&(G.delete(t),t.i(e))}function Z(t,e,n,r){if(t&&t.o){if(G.has(t))return;G.add(t),W.c.push((()=>{G.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function tt(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const i=t[s],c=e[s];if(c){for(const t in i)t in c||(r[t]=1);for(const t in c)o[t]||(n[t]=c[t],o[t]=1);t[s]=c}else for(const t in i)o[t]=1}for(const t in r)t in n||(n[t]=void 0);return n}function et(t){return"object"==typeof t&&null!==t?t:{}}function nt(t){t&&t.c()}function rt(t,e){t&&t.l(e)}function ot(t,e,r,i){const{fragment:c,on_mount:a,on_destroy:l,after_update:u}=t.$$;c&&c.m(e,r),i||H((()=>{const e=a.map(n).filter(s);l?l.push(...e):o(e),t.$$.on_mount=[]})),u.forEach(H)}function st(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 it(t,e){-1===t.$$.dirty[0]&&(U.push(t),z||(z=!0,D.then(V)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function ct(e,n,s,i,c,a,l,u=[-1]){const f=p;O(e);const d=e.$$={fragment:null,ctx:null,props:a,update:t,not_equal:c,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(f?f.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||f.$$.root};l&&l(d.root);let m=!1;if(d.ctx=s?s(e,n.props||{},((t,n,...r)=>{const o=r.length?r[0]:n;return d.ctx&&c(d.ctx[t],d.ctx[t]=o)&&(!d.skip_bound&&d.bound[t]&&d.bound[t](o),m&&it(e,t)),n})):[],d.update(),m=!0,o(d.before_update),d.fragment=!!i&&i(d.ctx),n.target){if(n.hydrate){h=!0;const t=N(n.target);d.fragment&&d.fragment.l(t),t.forEach(y)}else d.fragment&&d.fragment.c();n.intro&&Q(e.$$.fragment),ot(e,n.target,n.anchor,n.customElement),h=!1,V()}O(f)}class at{$destroy(){st(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 lt=[];function ut(e,n=t){let r;const o=new Set;function s(t){if(i(e,t)&&(e=t,r)){const t=!lt.length;for(const t of o)t[1](),lt.push(t,e);if(t){for(let t=0;t<lt.length;t+=2)lt[t][0](lt[t+1]);lt.length=0}}}return{set:s,update:function(t){s(t(e))},subscribe:function(i,c=t){const a=[i,c];return o.add(a),1===o.size&&(r=n(s)||t),i(e),()=>{o.delete(a),0===o.size&&(r(),r=null)}}}}const ft={};function dt(t){let e,n;const r=t[1].default,o=a(r,t,t[0],null);return{c(){e=v("div"),o&&o.c(),this.h()},l(t){e=R(t,"DIV",{class:!0});var n=N(e);o&&o.l(n),n.forEach(y),this.h()},h(){w(e,"class","app-container svelte-lkkhqy")},m(t,r){$(t,e,r),o&&o.m(e,null),n=!0},p(t,[e]){o&&o.p&&(!n||1&e)&&f(o,r,t,t[0],n?u(r,t[0],e,null):d(t[0]),null)},i(t){n||(Q(o,t),n=!0)},o(t){Z(o,t),n=!1},d(t){t&&y(e),o&&o.d(t)}}}function pt(t,e,n){let{$$slots:r={},$$scope:o}=e;return t.$$set=t=>{"$$scope"in t&&n(0,o=t.$$scope)},[o,r]}class ht extends at{constructor(t){super(),ct(this,t,pt,dt,i,{})}}function mt(t){let e,n,r=t[1].stack+"";return{c(){e=v("pre"),n=b(r)},l(t){e=R(t,"PRE",{});var o=N(e);n=P(o,r),o.forEach(y)},m(t,r){$(t,e,r),g(e,n)},p(t,e){2&e&&r!==(r=t[1].stack+"")&&k(n,r)},d(t){t&&y(e)}}}function gt(e){let n,r,o,s,i,c,a,l,u,f=e[1].message+"";document.title=n=e[0];let d=e[2]&&e[1].stack&&mt(e);return{c(){r=x(),o=v("h1"),s=b(e[0]),i=x(),c=v("p"),a=b(f),l=x(),d&&d.c(),u=E(),this.h()},l(t){C('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(y),r=L(t),o=R(t,"H1",{class:!0});var n=N(o);s=P(n,e[0]),n.forEach(y),i=L(t),c=R(t,"P",{class:!0});var p=N(c);a=P(p,f),p.forEach(y),l=L(t),d&&d.l(t),u=E(),this.h()},h(){w(o,"class","svelte-jpshsi"),w(c,"class","svelte-jpshsi")},m(t,e){$(t,r,e),$(t,o,e),g(o,s),$(t,i,e),$(t,c,e),g(c,a),$(t,l,e),d&&d.m(t,e),$(t,u,e)},p(t,[e]){1&e&&n!==(n=t[0])&&(document.title=n),1&e&&k(s,t[0]),2&e&&f!==(f=t[1].message+"")&&k(a,f),t[2]&&t[1].stack?d?d.p(t,e):(d=mt(t),d.c(),d.m(u.parentNode,u)):d&&(d.d(1),d=null)},i:t,o:t,d(t){t&&y(r),t&&y(o),t&&y(i),t&&y(c),t&&y(l),d&&d.d(t),t&&y(u)}}}function $t(t,e,n){let{status:r}=e,{error:o}=e;return t.$$set=t=>{"status"in t&&n(0,r=t.status),"error"in t&&n(1,o=t.error)},[r,o,false]}class yt extends at{constructor(t){super(),ct(this,t,$t,gt,i,{status:0,error:1})}}function _t(t){let n,r,o;const s=[t[4].props];var i=t[4].component;function c(t){let n={};for(let t=0;t<s.length;t+=1)n=e(n,s[t]);return{props:n}}return i&&(n=new i(c())),{c(){n&&nt(n.$$.fragment),r=E()},l(t){n&&rt(n.$$.fragment,t),r=E()},m(t,e){n&&ot(n,t,e),$(t,r,e),o=!0},p(t,e){const o=16&e?tt(s,[et(t[4].props)]):{};if(i!==(i=t[4].component)){if(n){Y();const t=n;Z(t.$$.fragment,1,0,(()=>{st(t,1)})),X()}i?(n=new i(c()),nt(n.$$.fragment),Q(n.$$.fragment,1),ot(n,r.parentNode,r)):n=null}else i&&n.$set(o)},i(t){o||(n&&Q(n.$$.fragment,t),o=!0)},o(t){n&&Z(n.$$.fragment,t),o=!1},d(t){t&&y(r),n&&st(n,t)}}}function vt(t){let e,n;return e=new yt({props:{error:t[0],status:t[1]}}),{c(){nt(e.$$.fragment)},l(t){rt(e.$$.fragment,t)},m(t,r){ot(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||(Q(e.$$.fragment,t),n=!0)},o(t){Z(e.$$.fragment,t),n=!1},d(t){st(e,t)}}}function bt(t){let e,n,r,o;const s=[vt,_t],i=[];function c(t,e){return t[0]?0:1}return e=c(t),n=i[e]=s[e](t),{c(){n.c(),r=E()},l(t){n.l(t),r=E()},m(t,n){i[e].m(t,n),$(t,r,n),o=!0},p(t,o){let a=e;e=c(t),e===a?i[e].p(t,o):(Y(),Z(i[a],1,1,(()=>{i[a]=null})),X(),n=i[e],n?n.p(t,o):(n=i[e]=s[e](t),n.c()),Q(n,1),n.m(r.parentNode,r))},i(t){o||(Q(n),o=!0)},o(t){Z(n),o=!1},d(t){i[e].d(t),t&&y(r)}}}function xt(t){let n,r;const o=[{segment:t[2][0]},t[3].props];let s={$$slots:{default:[bt]},$$scope:{ctx:t}};for(let t=0;t<o.length;t+=1)s=e(s,o[t]);return n=new ht({props:s}),{c(){nt(n.$$.fragment)},l(t){rt(n.$$.fragment,t)},m(t,e){ot(n,t,e),r=!0},p(t,[e]){const r=12&e?tt(o,[4&e&&{segment:t[2][0]},8&e&&et(t[3].props)]):{};147&e&&(r.$$scope={dirty:e,ctx:t}),n.$set(r)},i(t){r||(Q(n.$$.fragment,t),r=!0)},o(t){Z(n.$$.fragment,t),r=!1},d(t){st(n,t)}}}function Et(t,e,n){let{stores:r}=e,{error:o}=e,{status:s}=e,{segments:i}=e,{level0:c}=e,{level1:a=null}=e,{notify:l}=e;var u,f,d;return u=l,T().$$.after_update.push(u),f=ft,d=r,T().$$.context.set(f,d),t.$$set=t=>{"stores"in t&&n(5,r=t.stores),"error"in t&&n(0,o=t.error),"status"in t&&n(1,s=t.status),"segments"in t&&n(2,i=t.segments),"level0"in t&&n(3,c=t.level0),"level1"in t&&n(4,a=t.level1),"notify"in t&&n(6,l=t.notify)},[o,s,i,c,a,r,l]}class St extends at{constructor(t){super(),ct(this,t,Et,xt,i,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const wt=[],Nt=[{js:()=>Promise.all([import("./index.0db72640.js"),__inject_styles(["client-ea61129f.css","index-c3b4413a.css"])]).then((function(t){return t[0]}))}],At=[{pattern:/^\/$/,parts:[{i:0}]}]; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/client/index-ae7087a9.css b/client/index-ae7087a9.css deleted file mode 100644 index e3f81fa..0000000 --- a/client/index-ae7087a9.css +++ /dev/null @@ -1,19 +0,0 @@ -.lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} -.weatherCurrent-wrapper.svelte-9kdo4s.svelte-9kdo4s{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-9kdo4s.svelte-9kdo4s{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-9kdo4s.svelte-9kdo4s{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9kdo4s .symbol.svelte-9kdo4s{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9kdo4s h1.svelte-9kdo4s{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9kdo4s h2.svelte-9kdo4s{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9kdo4s.svelte-9kdo4s{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9kdo4s p.svelte-9kdo4s{line-height:1.375} -.chip.svelte-6dfxfp{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:linear-gradient(90deg, #84fab0, #8fd3f4 51%, #84fab0) 100% / 200%;color:white} -:root{--progress:100%}.wrapper.svelte-13cwtm1{position:relative;border-radius:15px;width:100%;height:100%}.bar-wrapper.svelte-13cwtm1{overflow:hidden;position:relative;border-radius:15px;height:100%;width:100%;left:calc(100% - var(--progress))}.bar.svelte-13cwtm1{position:absolute;height:100%;width:100%;right:calc(100% - var(--progress));overflow:hidden;background:linear-gradient(90deg, - rgba(255, 42,228,1) 0%, - rgba(164,255,177,1) 60%, - rgba(214,255,241,1) 85%, - rgba(255,255,255,1) 100%);border-radius:15px}.value.svelte-13cwtm1{position:absolute;right:0.1rem;top:0;font-size:1.5rem} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.drawer.svelte-6c4yca.svelte-6c4yca{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;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-6c4yca.svelte-6c4yca{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-6c4yca.svelte-6c4yca{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-6c4yca .header.svelte-6c4yca{display:flex;align-items:flex-start}.drawer.svelte-6c4yca h2.svelte-6c4yca{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-6c4yca.svelte-6c4yca{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-6c4yca>.svelte-6c4yca{transition:all 0.1s ease}.version-picker.svelte-6c4yca .selected.svelte-6c4yca{background-color:#c2c2c2;padding:3px 5px;box-sizing:border-box;border-radius:10px;color:black}.no-data.svelte-6c4yca.svelte-6c4yca{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-6c4yca.svelte-6c4yca{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-c3b4413a.css b/client/index-c3b4413a.css new file mode 100644 index 0000000..30d5236 --- /dev/null +++ b/client/index-c3b4413a.css @@ -0,0 +1,15 @@ +.lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} +.weatherCurrent-wrapper.svelte-9kdo4s.svelte-9kdo4s{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-9kdo4s.svelte-9kdo4s{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-9kdo4s.svelte-9kdo4s{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9kdo4s .symbol.svelte-9kdo4s{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9kdo4s h1.svelte-9kdo4s{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9kdo4s h2.svelte-9kdo4s{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9kdo4s.svelte-9kdo4s{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9kdo4s p.svelte-9kdo4s{line-height:1.375} +.chip.svelte-1jb0ny7{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:var(--gradient-1, green);color:white} +:root{--progress:100%}.wrapper.svelte-1mo8cjf{position:relative;border-radius:15px;width:100%;height:100%}.bar-wrapper.svelte-1mo8cjf{overflow:hidden;position:relative;border-radius:15px;height:100%;width:100%;left:calc(100% - var(--progress))}.bar.svelte-1mo8cjf{position:absolute;height:100%;width:100%;right:calc(100% - var(--progress));overflow:hidden;background:var(--gradient-2, green);border-radius:15px}.value.svelte-1mo8cjf{position:absolute;right:0.1rem;top:0;font-size:1.5rem} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.drawer.svelte-5bytj.svelte-5bytj{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-5bytj.svelte-5bytj{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-5bytj.svelte-5bytj{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-5bytj .header.svelte-5bytj{display:flex;align-items:flex-start}.drawer.svelte-5bytj h2.svelte-5bytj{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-5bytj.svelte-5bytj{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-5bytj>.svelte-5bytj{transition:all 0.1s ease}.version-picker.svelte-5bytj .selected.svelte-5bytj{background-color:#c2c2c2;padding:3px 5px;box-sizing:border-box;border-radius:10px;color:black}.no-data.svelte-5bytj.svelte-5bytj{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-5bytj.svelte-5bytj{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.0db72640.js b/client/index.0db72640.js new file mode 100644 index 0000000..c507dd4 --- /dev/null +++ b/client/index.0db72640.js @@ -0,0 +1 @@ +import{S as e,i as t,s as a,e as s,c as l,a as n,d as r,b as c,f as i,g as o,n as u,w as d,h,t as f,j as p,k as m,l as v,m as g,o as _,p as k,q as $,r as b,u as w,v as E,x as D,y,z as j,A as I,B as V,C as O,D as q,E as T,F as x,G as M,H as P,I as S,J as N}from"./client.0760ad6c.js";function C(e){let t,a,d,h,f,p,m,v,g;return{c(){t=s("div"),a=s("div"),d=s("div"),h=s("div"),f=s("div"),p=s("div"),m=s("div"),v=s("div"),g=s("div"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0}),n(a).forEach(r),d=l(s,"DIV",{class:!0}),n(d).forEach(r),h=l(s,"DIV",{class:!0}),n(h).forEach(r),f=l(s,"DIV",{class:!0}),n(f).forEach(r),p=l(s,"DIV",{class:!0}),n(p).forEach(r),m=l(s,"DIV",{class:!0}),n(m).forEach(r),v=l(s,"DIV",{class:!0}),n(v).forEach(r),g=l(s,"DIV",{class:!0}),n(g).forEach(r),s.forEach(r),this.h()},h(){c(a,"class","svelte-7k6qu0"),c(d,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(e,s){i(e,t,s),o(t,a),o(t,d),o(t,h),o(t,f),o(t,p),o(t,m),o(t,v),o(t,g)},p:u,i:u,o:u,d(e){e&&r(t)}}}class A extends e{constructor(e){super(),t(this,e,null,C,a,{})}}const B={updated:!1,updating:!0},H=d(Object.assign(Object.assign({},B),{available:!1,longitude:null,latitude:null,city:null})),J=d(Object.assign(Object.assign({},B),{available:!1})),K=d(Object.assign({},B));function z(e,t=!1){let a=t?{}:{updated:new Date};e.update((e=>Object.assign(Object.assign(Object.assign({},e),a),{updating:t})))}function F(e){let t,a,u,d,g=e[0].city+"";return{c(){t=s("i"),a=h(),u=s("h1"),d=f(g),this.h()},l(e){t=l(e,"I",{class:!0}),n(t).forEach(r),a=p(e),u=l(e,"H1",{class:!0});var s=n(u);d=m(s,g),s.forEach(r),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),c(u,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),i(e,a,s),i(e,u,s),o(u,d)},p(e,t){1&t&&g!==(g=e[0].city+"")&&v(d,g)},d(e){e&&r(t),e&&r(a),e&&r(u)}}}function L(e){let t,a;function s(e,a){return 6&a&&(t=null),null==t&&(t=!!(Math.abs(e[1].updated-e[2].updated)>6e5)),t?Z:U}let l=s(e,-1),n=l(e);return{c(){n.c(),a=g()},l(e){n.l(e),a=g()},m(e,t){n.m(e,t),i(e,a,t)},p(e,t){l===(l=s(e,t))&&n?n.p(e,t):(n.d(1),n=l(e),n&&(n.c(),n.m(a.parentNode,a)))},d(e){n.d(e),e&&r(a)}}}function U(e){let t,a,c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),a=f(c)},l(e){t=l(e,"P",{});var s=n(t);a=m(s,c),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p(e,t){2&t&&c!==(c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&v(a,c)},d(e){e&&r(t)}}}function Z(e){let t,a;return{c(){t=s("p"),a=f("There is more than 10 minutes difference between data updates")},l(e){t=l(e,"P",{});var s=n(t);a=m(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p:u,d(e){e&&r(t)}}}function G(e){let t,a,d,g,_,k,$,b,w,E,D,y,j=e[2].now.kp+"",I=e[2].now.kp_max+"",V=e[2].now.kp_min+"";return{c(){t=s("h2"),a=f("KP "),d=f(j),g=h(),_=s("p"),k=s("span"),$=f("↑ KP "),b=f(I),w=h(),E=s("span"),D=f("↓ KP "),y=f(V),this.h()},l(e){t=l(e,"H2",{class:!0});var s=n(t);a=m(s,"KP "),d=m(s,j),s.forEach(r),g=p(e),_=l(e,"P",{});var c=n(_);k=l(c,"SPAN",{classname:!0});var i=n(k);$=m(i,"↑ KP "),b=m(i,I),i.forEach(r),w=p(c),E=l(c,"SPAN",{classname:!0});var o=n(E);D=m(o,"↓ KP "),y=m(o,V),o.forEach(r),c.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s"),c(k,"classname","pr-2"),c(E,"classname","pl-2")},m(e,s){i(e,t,s),o(t,a),o(t,d),i(e,g,s),i(e,_,s),o(_,k),o(k,$),o(k,b),o(_,w),o(_,E),o(E,D),o(E,y)},p(e,t){4&t&&j!==(j=e[2].now.kp+"")&&v(d,j),4&t&&I!==(I=e[2].now.kp_max+"")&&v(b,I),4&t&&V!==(V=e[2].now.kp_min+"")&&v(y,V)},i:u,o:u,d(e){e&&r(t),e&&r(g),e&&r(_)}}}function Q(e){let t,a;return t=new A({}),{c(){E(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p:u,i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){k(t.$$.fragment,e),a=!1},d(e){j(t,e)}}}function R(e){let t,a,u,d,_,k,$,b,w,E,D,y,j,I,V,O=e[2].now.bz+"",q=e[2].now.bt+"",T=e[1].available&&W(e);return{c(){t=s("div"),a=s("p"),u=f("BZ"),d=h(),_=s("p"),k=f(O),$=h(),b=s("div"),w=s("p"),E=f("BT"),D=h(),y=s("p"),j=f(q),I=h(),T&&T.c(),V=g(),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=m(c,"BZ"),c.forEach(r),d=p(s),_=l(s,"P",{class:!0});var i=n(_);k=m(i,O),i.forEach(r),s.forEach(r),$=p(e),b=l(e,"DIV",{});var o=n(b);w=l(o,"P",{class:!0});var h=n(w);E=m(h,"BT"),h.forEach(r),D=p(o),y=l(o,"P",{class:!0});var f=n(y);j=m(f,q),f.forEach(r),o.forEach(r),I=p(e),T&&T.l(e),V=g(),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(_,"class","svelte-9kdo4s"),c(w,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,d),o(t,_),o(_,k),i(e,$,s),i(e,b,s),o(b,w),o(w,E),o(b,D),o(b,y),o(y,j),i(e,I,s),T&&T.m(e,s),i(e,V,s)},p(e,t){4&t&&O!==(O=e[2].now.bz+"")&&v(k,O),4&t&&q!==(q=e[2].now.bt+"")&&v(j,q),e[1].available?T?T.p(e,t):(T=W(e),T.c(),T.m(V.parentNode,V)):T&&(T.d(1),T=null)},d(e){e&&r(t),e&&r($),e&&r(b),e&&r(I),T&&T.d(e),e&&r(V)}}}function W(e){let t,a,u,d,g,_,k,$,b,w,E,D,y,j,I,V=e[1].now.temp+"",O=e[1].now.clouds+"";return{c(){t=s("div"),a=s("p"),u=f("Temp"),d=h(),g=s("p"),_=f(V),k=f("°C"),$=h(),b=s("div"),w=s("p"),E=f("Clouds"),D=h(),y=s("p"),j=f(O),I=f("%"),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=m(c,"Temp"),c.forEach(r),d=p(s),g=l(s,"P",{class:!0});var i=n(g);_=m(i,V),k=m(i,"°C"),i.forEach(r),s.forEach(r),$=p(e),b=l(e,"DIV",{});var o=n(b);w=l(o,"P",{class:!0});var h=n(w);E=m(h,"Clouds"),h.forEach(r),D=p(o),y=l(o,"P",{class:!0});var f=n(y);j=m(f,O),I=m(f,"%"),f.forEach(r),o.forEach(r),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(g,"class","svelte-9kdo4s"),c(w,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,d),o(t,g),o(g,_),o(g,k),i(e,$,s),i(e,b,s),o(b,w),o(w,E),o(b,D),o(b,y),o(y,j),o(y,I)},p(e,t){2&t&&V!==(V=e[1].now.temp+"")&&v(_,V),2&t&&O!==(O=e[1].now.clouds+"")&&v(j,O)},d(e){e&&r(t),e&&r($),e&&r(b)}}}function X(e){let t,a,u,d,f,m,v,g,w,E,D,y,j=!e[0].updating&&e[0].available&&!e[1].updating&&!e[2].updating&&F(e),I=!e[1].updating&&!e[2].updating&&L(e);const V=[Q,G],O=[];function q(e,t){return e[2].updating||e[1].updating?0:1}g=q(e),w=O[g]=V[g](e);let T=!e[2].updating&&!e[1].updating&&R(e);return{c(){t=s("div"),a=s("div"),u=s("div"),j&&j.c(),d=h(),f=s("div"),I&&I.c(),m=h(),v=s("div"),w.c(),E=h(),D=s("div"),T&&T.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0});var c=n(a);u=l(c,"DIV",{class:!0});var i=n(u);j&&j.l(i),i.forEach(r),d=p(c),f=l(c,"DIV",{class:!0});var o=n(f);I&&I.l(o),o.forEach(r),m=p(c),v=l(c,"DIV",{class:!0});var h=n(v);w.l(h),h.forEach(r),E=p(c),D=l(c,"DIV",{class:!0});var g=n(D);T&&T.l(g),g.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","weatherCurrent-data-location svelte-9kdo4s"),c(f,"class","weatherCurrent-data-date"),c(v,"class","weatherCurrent-data-kp svelte-9kdo4s"),c(D,"class","current-details svelte-9kdo4s"),c(a,"class","weatherCurrent-data svelte-9kdo4s"),c(t,"class","weatherCurrent-wrapper svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,u),j&&j.m(u,null),o(a,d),o(a,f),I&&I.m(f,null),o(a,m),o(a,v),O[g].m(v,null),o(a,E),o(a,D),T&&T.m(D,null),y=!0},p(e,[t]){e[0].updating||!e[0].available||e[1].updating||e[2].updating?j&&(j.d(1),j=null):j?j.p(e,t):(j=F(e),j.c(),j.m(u,null)),e[1].updating||e[2].updating?I&&(I.d(1),I=null):I?I.p(e,t):(I=L(e),I.c(),I.m(f,null));let a=g;g=q(e),g===a?O[g].p(e,t):(_(),k(O[a],1,1,(()=>{O[a]=null})),$(),w=O[g],w?w.p(e,t):(w=O[g]=V[g](e),w.c()),b(w,1),w.m(v,null)),e[2].updating||e[1].updating?T&&(T.d(1),T=null):T?T.p(e,t):(T=R(e),T.c(),T.m(D,null))},i(e){y||(b(w),y=!0)},o(e){k(w),y=!1},d(e){e&&r(t),j&&j.d(),I&&I.d(),O[g].d(),T&&T.d()}}}function Y(e,t,a){let s,l,n;return w(e,H,(e=>a(0,s=e))),w(e,J,(e=>a(1,l=e))),w(e,K,(e=>a(2,n=e))),[s,l,n]}!async function(){if("undefined"==typeof window)return;let e;z(H,!0);try{e=await async function(){return new Promise(((e,t)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((t=>{e({longitude:t.coords.longitude,latitude:t.coords.latitude})}),(e=>{t(e)})):t(Error())}))}()}catch(e){return console.log(e),H.update((e=>Object.assign(Object.assign({},e),{available:!1,city:null,longitude:null,latitude:null}))),void z(H,!1)}let t=await fetch(`https://geocode.xyz/${e.latitude},${e.longitude}?geoit=json`),a=await t.json();H.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:a.city}),e))),z(H,!1)}(),H.subscribe((async function(e=null){if("undefined"==typeof window)return;if(null===e)return;if(e.updating)return;if(!e.available)return J.update((e=>Object.assign(Object.assign({},e),{available:!1}))),void z(J,!1);z(J,!0);let t=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e.latitude}&lon=${e.longitude}`),a=await t.json(),s={clouds:null,temp:null};try{s.clouds=a.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=a.properties.timeseries[0].data.instant.details.air_temperature,a.properties.timeseries=a.properties.timeseries.map((e=>Object.assign(Object.assign({},e),{time:new Date(e.time)})))}catch(e){}J.update((e=>Object.assign(Object.assign({},e),{yr_data_raw:a,now:s,available:!0}))),z(J,!1)})),async function(){if("undefined"==typeof window)return;z(K,!0);let e=await async function(){let e,t={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},a=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");t.usnoaa_data_raw.solar_wind_mag_field=await a.json(),t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),t.now.bz=t.usnoaa_data_raw.solar_wind_mag_field.Bz,t.now.bt=t.usnoaa_data_raw.solar_wind_mag_field.Bt,a=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),e=await a.json(),e=e.map((e=>Object.assign(Object.assign({},e),{model_prediction_time:new Date(e.model_prediction_time)}))),t.usnoaa_data_raw.geospace_pred_est_kp_1_hour=e,a=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),e=await a.text(),e=[...e.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],e=e.map((e=>Object.assign(Object.assign({},e.groups),{time:new Date(e.groups.time+" UTC")}))),t.usnoaa_data_raw.outlook_27_day=e,a=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),t.usnoaa_data_raw.noaa_planetary_k_index_forecast=await a.json(),t.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let s=new Date,l=new Date(0,0,0),n=1e3,r=0;return t.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((e,a)=>{e[1]>r&&(r=e[1]),e[1]<n&&(n=e[1]);let c=new Date(e[0]+" UTC");Math.abs(c.getTime()-s.getTime())<Math.abs(l.getTime()-s.getTime())&&(l=c,t.now.kp=e[1]),t.usnoaa_data_raw.noaa_planetary_k_index_forecast[a]={time:c,kp:e[1],observed:e[2]}})),t.now.kp_min=n.toString(),t.now.kp_max=r.toString(),console.log(t),t}();K.update((t=>Object.assign(Object.assign({},t),e))),z(K,!1)}();class ee extends e{constructor(e){super(),t(this,e,Y,X,a,{})}}function te(e){let t,a;const o=e[1].default,u=I(o,e,e[0],null);return{c(){t=s("div"),u&&u.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);u&&u.l(a),a.forEach(r),this.h()},h(){c(t,"class","chip svelte-1jb0ny7")},m(e,s){i(e,t,s),u&&u.m(t,null),a=!0},p(e,[t]){u&&u.p&&(!a||1&t)&&V(u,o,e,e[0],a?q(o,e[0],t,null):O(e[0]),null)},i(e){a||(b(u,e),a=!0)},o(e){k(u,e),a=!1},d(e){e&&r(t),u&&u.d(e)}}}function ae(e,t,a){let{$$slots:s={},$$scope:l}=t;return e.$$set=e=>{"$$scope"in e&&a(0,l=e.$$scope)},[l,s]}class se extends e{constructor(e){super(),t(this,e,ae,te,a,{})}}function le(e){let t,a,d,g,_,k;return{c(){t=s("div"),a=s("div"),d=s("div"),g=h(),_=s("span"),k=f(e[1]),this.h()},l(s){t=l(s,"DIV",{class:!0,style:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"DIV",{class:!0}),n(d).forEach(r),i.forEach(r),g=p(c),_=l(c,"SPAN",{class:!0});var o=n(_);k=m(o,e[1]),o.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","bar svelte-1mo8cjf"),c(a,"class","bar-wrapper svelte-1mo8cjf"),c(_,"class","value svelte-1mo8cjf"),c(t,"class","wrapper svelte-1mo8cjf"),T(t,"--progress",100*e[0]+"%")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(t,g),o(t,_),o(_,k)},p(e,[a]){2&a&&v(k,e[1]),1&a&&T(t,"--progress",100*e[0]+"%")},i:u,o:u,d(e){e&&r(t)}}}function ne(e,t,a){let{percentage:s}=t,{value:l}=t;return e.$$set=e=>{"percentage"in e&&a(0,s=e.percentage),"value"in e&&a(1,l=e.value)},[s,l]}class re extends e{constructor(e){super(),t(this,e,ne,le,a,{percentage:0,value:1})}}function ce(e){let t,a,d,v,g,_,$,w,I,V,O,q,T;V=new re({props:{percentage:e[0]/9,value:e[0]}});let x=e[5]&&function(e){let t,a,d,v,g,_,k,$,b,w,E,D,y=Math.round(e[3])+"",j=Math.round(e[4])+"";return{c(){t=s("div"),a=s("p"),d=s("i"),v=h(),g=f(y),_=f("°C"),k=h(),$=s("p"),b=s("i"),w=h(),E=f(j),D=f("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=l(c,"I",{class:!0}),n(d).forEach(r),v=p(c),g=m(c,y),_=m(c,"°C"),c.forEach(r),k=p(s),$=l(s,"P",{class:!0});var i=n($);b=l(i,"I",{class:!0}),n(b).forEach(r),w=p(i),E=m(i,j),D=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","fas fa-thermometer-half svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(b,"class","fas fa-cloud svelte-m9qkku"),c($,"class","svelte-m9qkku"),c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(a,v),o(a,g),o(a,_),o(t,k),o(t,$),o($,b),o($,w),o($,E),o($,D)},p:u,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),d=s("h3"),v=f(e[2]),g=h(),_=s("p"),$=f(e[1]),w=h(),I=s("div"),E(V.$$.fragment),O=h(),q=s("div"),x&&x.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"H3",{class:!0});var o=n(d);v=m(o,e[2]),o.forEach(r),g=p(i),_=l(i,"P",{class:!0});var u=n(_);$=m(u,e[1]),u.forEach(r),i.forEach(r),w=p(c),I=l(c,"DIV",{class:!0});var h=n(I);D(V.$$.fragment,h),h.forEach(r),O=p(c),q=l(c,"DIV",{class:!0});var f=n(q);x&&x.l(f),f.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-m9qkku"),c(_,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(I,"class","KP svelte-m9qkku"),c(q,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(d,v),o(a,g),o(a,_),o(_,$),o(t,w),o(t,I),y(V,I,null),o(t,O),o(t,q),x&&x.m(q,null),T=!0},p(e,[t]){e[5]&&x.p(e,t)},i(e){T||(b(V.$$.fragment,e),T=!0)},o(e){k(V.$$.fragment,e),T=!1},d(e){e&&r(t),j(V),x&&x.d()}}}function ie(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function oe(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=ie(s.time.getHours().toString())+":"+ie(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(6,s=e.prediction)},[l,n,r,c,i,o,s]}class ue extends e{constructor(e){super(),t(this,e,oe,ce,a,{prediction:6})}}function de(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function he(e){let t,a;return t=new ue({props:{prediction:e[5]}}),{c(){E(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){k(t.$$.fragment,e),a=!1},d(e){j(t,e)}}}function fe(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=he(de(e,o,t));const d=e=>k(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=de(e,o,s);u[s]?(u[s].p(l,a),b(u[s],1)):(u[s]=he(l),u[s].c(),b(u[s],1),u[s].m(t,null))}for(_(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)k(u[e]);a=!1},d(e){e&&r(t),x(u,e)}}}function pe(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((e=>e.model_prediction_time>=new Date));a(0,n=e.map((e=>({time:e.model_prediction_time,kp:Math.round(e.k),temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>18e6)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return w(e,J,(e=>a(1,s=e))),w(e,K,(e=>a(2,l=e))),K.subscribe(r),J.subscribe(r),[n]}class me extends e{constructor(e){super(),t(this,e,pe,fe,a,{})}}function ve(e){let t,a,o;return a=new se({props:{$$slots:{default:[ge]},$$scope:{ctx:e}}}),{c(){t=s("div"),E(a.$$.fragment),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);D(a.$$.fragment,s),s.forEach(r),this.h()},h(){c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),y(a,t,null),o=!0},p(e,t){const s={};257&t&&(s.$$scope={dirty:t,ctx:e}),a.$set(s)},i(e){o||(b(a.$$.fragment,e),o=!0)},o(e){k(a.$$.fragment,e),o=!1},d(e){e&&r(t),j(a)}}}function ge(e){let t,a=e[0].observed+"";return{c(){t=f(a)},l(e){t=m(e,a)},m(e,a){i(e,t,a)},p(e,s){1&s&&a!==(a=e[0].observed+"")&&v(t,a)},d(e){e&&r(t)}}}function _e(e){let t,a,d,v,g,w,I,V,O,q,T,x,M,P,S="predicted"!=e[0].observed&&ve(e);T=new re({props:{percentage:e[1]/9,value:e[1]}});let N=e[6]&&function(e){let t,a,d,v,g,_,k,$,b,w,E,D,y=Math.round(e[4])+"",j=Math.round(e[5])+"";return{c(){t=s("div"),a=s("p"),d=s("i"),v=h(),g=f(y),_=f("°C"),k=h(),$=s("p"),b=s("i"),w=h(),E=f(j),D=f("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=l(c,"I",{class:!0}),n(d).forEach(r),v=p(c),g=m(c,y),_=m(c,"°C"),c.forEach(r),k=p(s),$=l(s,"P",{class:!0});var i=n($);b=l(i,"I",{class:!0}),n(b).forEach(r),w=p(i),E=m(i,j),D=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","fas fa-thermometer-half svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(b,"class","fas fa-cloud svelte-m9qkku"),c($,"class","svelte-m9qkku"),c(t,"class","svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(a,v),o(a,g),o(a,_),o(t,k),o(t,$),o($,b),o($,w),o($,E),o($,D)},p:u,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),d=s("h3"),v=f(e[3]),g=h(),w=s("p"),I=f(e[2]),V=h(),S&&S.c(),O=h(),q=s("div"),E(T.$$.fragment),x=h(),M=s("div"),N&&N.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"H3",{class:!0});var o=n(d);v=m(o,e[3]),o.forEach(r),g=p(i),w=l(i,"P",{class:!0});var u=n(w);I=m(u,e[2]),u.forEach(r),i.forEach(r),V=p(c),S&&S.l(c),O=p(c),q=l(c,"DIV",{class:!0});var h=n(q);D(T.$$.fragment,h),h.forEach(r),x=p(c),M=l(c,"DIV",{class:!0});var f=n(M);N&&N.l(f),f.forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-m9qkku"),c(w,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(q,"class","KP svelte-m9qkku"),c(M,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(d,v),o(a,g),o(a,w),o(w,I),o(t,V),S&&S.m(t,null),o(t,O),o(t,q),y(T,q,null),o(t,x),o(t,M),N&&N.m(M,null),P=!0},p(e,[a]){"predicted"!=e[0].observed?S?(S.p(e,a),1&a&&b(S,1)):(S=ve(e),S.c(),b(S,1),S.m(t,O)):S&&(_(),k(S,1,1,(()=>{S=null})),$()),e[6]&&N.p(e,a)},i(e){P||(b(S),b(T.$$.fragment,e),P=!0)},o(e){k(S),k(T.$$.fragment,e),P=!1},d(e){e&&r(t),S&&S.d(),j(T),N&&N.d()}}}function ke(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function $e(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=ke(s.time.getHours().toString())+":"+ke(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(0,s=e.prediction)},[s,l,n,r,c,i,o]}class be extends e{constructor(e){super(),t(this,e,$e,_e,a,{prediction:0})}}function we(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function Ee(e){let t,a;return t=new be({props:{prediction:e[5]}}),{c(){E(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){k(t.$$.fragment,e),a=!1},d(e){j(t,e)}}}function De(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=Ee(we(e,o,t));const d=e=>k(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=we(e,o,s);u[s]?(u[s].p(l,a),b(u[s],1)):(u[s]=Ee(l),u[s].c(),b(u[s],1),u[s].m(t,null))}for(_(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)k(u[e]);a=!1},d(e){e&&r(t),x(u,e)}}}function ye(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((e=>"observed"!==e.observed));a(0,n=e.map((e=>({time:e.time,kp:e.kp,observed:e.observed,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())&&(c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r}),n)}))}return w(e,J,(e=>a(1,s=e))),w(e,K,(e=>a(2,l=e))),K.subscribe(r),J.subscribe(r),[n]}class je extends e{constructor(e){super(),t(this,e,ye,De,a,{})}}function Ie(e){let t,a,u,d,v,g,_,$,w,I;return _=new re({props:{percentage:e[0]/9,value:e[0]}}),{c(){t=s("div"),a=s("div"),u=s("h3"),d=f(e[1]),v=h(),g=s("div"),E(_.$$.fragment),$=h(),w=s("div"),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"H3",{class:!0});var o=n(u);d=m(o,e[1]),o.forEach(r),i.forEach(r),v=p(c),g=l(c,"DIV",{class:!0});var h=n(g);D(_.$$.fragment,h),h.forEach(r),$=p(c),w=l(c,"DIV",{class:!0}),n(w).forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-m9qkku"),c(a,"class","svelte-m9qkku"),c(g,"class","KP svelte-m9qkku"),c(w,"class","data svelte-m9qkku"),c(t,"class","prediction-details svelte-m9qkku")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(u,d),o(t,v),o(t,g),y(_,g,null),o(t,$),o(t,w),I=!0},p(e,[t]){},i(e){I||(b(_.$$.fragment,e),I=!0)},o(e){k(_.$$.fragment,e),I=!1},d(e){e&&r(t),j(_)}}}function Ve(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function Oe(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()];Ve(s.time.getHours().toString()),Ve(s.time.getMinutes().toString());let r=s.temp,c=s.clouds;return e.$$set=e=>{"prediction"in e&&a(4,s=e.prediction)},[l,n,r,c,s]}class qe extends e{constructor(e){super(),t(this,e,Oe,Ie,a,{prediction:4})}}function Te(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function xe(e){let t,a;return t=new qe({props:{prediction:e[5]}}),{c(){E(t.$$.fragment)},l(e){D(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){k(t.$$.fragment,e),a=!1},d(e){j(t,e)}}}function Me(e){let t,a,o=e[0],u=[];for(let t=0;t<o.length;t+=1)u[t]=xe(Te(e,o,t));const d=e=>k(u[e],1,1,(()=>{u[e]=null}));return{c(){t=s("div");for(let e=0;e<u.length;e+=1)u[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<u.length;e+=1)u[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-1uc0m3l")},m(e,s){i(e,t,s);for(let e=0;e<u.length;e+=1)u[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=Te(e,o,s);u[s]?(u[s].p(l,a),b(u[s],1)):(u[s]=xe(l),u[s].c(),b(u[s],1),u[s].m(t,null))}for(_(),s=o.length;s<u.length;s+=1)d(s);$()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(u[e]);a=!0}},o(e){u=u.filter(Boolean);for(let e=0;e<u.length;e+=1)k(u[e]);a=!1},d(e){e&&r(t),x(u,e)}}}function Pe(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.outlook_27_day.filter((e=>e.time>=new Date));a(0,n=e.map((e=>({time:e.time,kp:e.kindex,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>864e5)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return w(e,J,(e=>a(1,s=e))),w(e,K,(e=>a(2,l=e))),K.subscribe(r),J.subscribe(r),[n]}class Se extends e{constructor(e){super(),t(this,e,Pe,Me,a,{})}}function Ne(e){let t,a,d,v,g;return{c(){t=s("div"),a=s("i"),d=h(),v=s("p"),g=f("No prediction data"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"I",{class:!0}),n(a).forEach(r),d=p(s),v=l(s,"P",{});var c=n(v);g=m(c,"No prediction data"),c.forEach(r),s.forEach(r),this.h()},h(){c(a,"class","fas fa-7x fa-exclamation-triangle"),c(t,"class","no-data svelte-5bytj")},m(e,s){i(e,t,s),o(t,a),o(t,d),o(t,v),o(v,g)},p:u,i:u,o:u,d(e){e&&r(t)}}}function Ce(e){let t,a,u,d,v,w,I,V,O,q,T,x,N,C,A,B,H,J,K;var z=e[0];return z&&(A=new z({})),{c(){t=s("div"),a=s("h2"),u=f("Forecast"),d=h(),v=s("div"),w=s("div"),I=f("hour"),V=h(),O=s("div"),q=f("3 day"),T=h(),x=s("div"),N=f("Long time"),C=h(),A&&E(A.$$.fragment),B=g(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"H2",{class:!0});var c=n(a);u=m(c,"Forecast"),c.forEach(r),d=p(s),v=l(s,"DIV",{class:!0});var i=n(v);w=l(i,"DIV",{class:!0});var o=n(w);I=m(o,"hour"),o.forEach(r),V=p(i),O=l(i,"DIV",{class:!0});var h=n(O);q=m(h,"3 day"),h.forEach(r),T=p(i),x=l(i,"DIV",{class:!0});var f=n(x);N=m(f,"Long time"),f.forEach(r),i.forEach(r),s.forEach(r),C=p(e),A&&D(A.$$.fragment,e),B=g(),this.h()},h(){c(a,"class","svelte-5bytj"),c(w,"class","svelte-5bytj"),M(w,"selected",e[0]==me),c(O,"class","svelte-5bytj"),M(O,"selected",e[0]==je),c(x,"class","svelte-5bytj"),M(x,"selected",e[0]==Se),c(v,"class","version-picker svelte-5bytj"),c(t,"class","header svelte-5bytj")},m(s,l){i(s,t,l),o(t,a),o(a,u),o(t,d),o(t,v),o(v,w),o(w,I),o(v,V),o(v,O),o(O,q),o(v,T),o(v,x),o(x,N),i(s,C,l),A&&y(A,s,l),i(s,B,l),H=!0,J||(K=[P(w,"click",e[3]),P(O,"click",e[4]),P(x,"click",e[5])],J=!0)},p(e,t){if(1&t&&M(w,"selected",e[0]==me),1&t&&M(O,"selected",e[0]==je),1&t&&M(x,"selected",e[0]==Se),z!==(z=e[0])){if(A){_();const e=A;k(e.$$.fragment,1,0,(()=>{j(e,1)})),$()}z?(A=new z({}),E(A.$$.fragment),b(A.$$.fragment,1),y(A,B.parentNode,B)):A=null}},i(e){H||(A&&b(A.$$.fragment,e),H=!0)},o(e){A&&k(A.$$.fragment,e),H=!1},d(e){e&&r(t),e&&r(C),e&&r(B),A&&j(A,e),J=!1,S(K)}}}function Ae(e){let t,a,o,u;const d=[Ce,Ne],h=[];function f(e,t){return e[1].updating||e[2].updating?1:0}return a=f(e),o=h[a]=d[a](e),{c(){t=s("div"),o.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);o.l(a),a.forEach(r),this.h()},h(){c(t,"class","drawer svelte-5bytj")},m(e,s){i(e,t,s),h[a].m(t,null),u=!0},p(e,[s]){let l=a;a=f(e),a===l?h[a].p(e,s):(_(),k(h[l],1,1,(()=>{h[l]=null})),$(),o=h[a],o?o.p(e,s):(o=h[a]=d[a](e),o.c()),b(o,1),o.m(t,null))},i(e){u||(b(o),u=!0)},o(e){k(o),u=!1},d(e){e&&r(t),h[a].d()}}}function Be(e,t,a){let s,l;w(e,J,(e=>a(1,s=e))),w(e,K,(e=>a(2,l=e)));let n=je;return[n,s,l,()=>a(0,n=me),()=>a(0,n=je),()=>a(0,n=Se)]}class He extends e{constructor(e){super(),t(this,e,Be,Ae,a,{})}}function Je(e){let t,a,d,f,m,v;return d=new ee({}),m=new He({}),{c(){t=h(),a=s("div"),E(d.$$.fragment),f=h(),E(m.$$.fragment),this.h()},l(e){N('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),t=p(e),a=l(e,"DIV",{class:!0});var s=n(a);D(d.$$.fragment,s),f=p(s),D(m.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(a,"class","homescreen svelte-pf4p6y")},m(e,s){i(e,t,s),i(e,a,s),y(d,a,null),o(a,f),y(m,a,null),v=!0},p:u,i(e){v||(b(d.$$.fragment,e),b(m.$$.fragment,e),v=!0)},o(e){k(d.$$.fragment,e),k(m.$$.fragment,e),v=!1},d(e){e&&r(t),e&&r(a),j(d),j(m)}}}class Ke extends e{constructor(e){super(),t(this,e,null,Je,a,{})}}export{Ke as default}; diff --git a/client/index.18661d3d.js b/client/index.18661d3d.js deleted file mode 100644 index 72d1e49..0000000 --- a/client/index.18661d3d.js +++ /dev/null @@ -1 +0,0 @@ -import{S as e,i as t,s as a,e as s,c as l,a as n,d as r,b as c,f as i,g as o,n as d,w as u,h,t as f,j as p,k as m,l as v,m as g,o as _,p as $,q as w,r as b,u as E,v as D,x as k,y,z as I,A as V,B as q,C as j,D as O,E as x,F as T,G as z,H as M,I as P,J as S}from"./client.e4b23ecd.js";function N(e){let t,a,u,h,f,p,m,v,g;return{c(){t=s("div"),a=s("div"),u=s("div"),h=s("div"),f=s("div"),p=s("div"),m=s("div"),v=s("div"),g=s("div"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0}),n(a).forEach(r),u=l(s,"DIV",{class:!0}),n(u).forEach(r),h=l(s,"DIV",{class:!0}),n(h).forEach(r),f=l(s,"DIV",{class:!0}),n(f).forEach(r),p=l(s,"DIV",{class:!0}),n(p).forEach(r),m=l(s,"DIV",{class:!0}),n(m).forEach(r),v=l(s,"DIV",{class:!0}),n(v).forEach(r),g=l(s,"DIV",{class:!0}),n(g).forEach(r),s.forEach(r),this.h()},h(){c(a,"class","svelte-7k6qu0"),c(u,"class","svelte-7k6qu0"),c(h,"class","svelte-7k6qu0"),c(f,"class","svelte-7k6qu0"),c(p,"class","svelte-7k6qu0"),c(m,"class","svelte-7k6qu0"),c(v,"class","svelte-7k6qu0"),c(g,"class","svelte-7k6qu0"),c(t,"class","lds-roller svelte-7k6qu0")},m(e,s){i(e,t,s),o(t,a),o(t,u),o(t,h),o(t,f),o(t,p),o(t,m),o(t,v),o(t,g)},p:d,i:d,o:d,d(e){e&&r(t)}}}class C extends e{constructor(e){super(),t(this,e,null,N,a,{})}}const A={updated:!1,updating:!0},B=u(Object.assign(Object.assign({},A),{available:!1,longitude:null,latitude:null,city:null})),H=u(Object.assign(Object.assign({},A),{available:!1})),J=u(Object.assign({},A));function K(e,t=!1){let a=t?{}:{updated:new Date};e.update((e=>Object.assign(Object.assign(Object.assign({},e),a),{updating:t})))}function F(e){let t,a,d,u,g=e[0].city+"";return{c(){t=s("i"),a=h(),d=s("h1"),u=f(g),this.h()},l(e){t=l(e,"I",{class:!0}),n(t).forEach(r),a=p(e),d=l(e,"H1",{class:!0});var s=n(d);u=m(s,g),s.forEach(r),this.h()},h(){c(t,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),c(d,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),i(e,a,s),i(e,d,s),o(d,u)},p(e,t){1&t&&g!==(g=e[0].city+"")&&v(u,g)},d(e){e&&r(t),e&&r(a),e&&r(d)}}}function L(e){let t,a;function s(e,a){return 6&a&&(t=null),null==t&&(t=!!(Math.abs(e[1].updated-e[2].updated)>6e5)),t?Z:U}let l=s(e,-1),n=l(e);return{c(){n.c(),a=g()},l(e){n.l(e),a=g()},m(e,t){n.m(e,t),i(e,a,t)},p(e,t){l===(l=s(e,t))&&n?n.p(e,t):(n.d(1),n=l(e),n&&(n.c(),n.m(a.parentNode,a)))},d(e){n.d(e),e&&r(a)}}}function U(e){let t,a,c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c(){t=s("p"),a=f(c)},l(e){t=l(e,"P",{});var s=n(t);a=m(s,c),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p(e,t){2&t&&c!==(c=e[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&v(a,c)},d(e){e&&r(t)}}}function Z(e){let t,a;return{c(){t=s("p"),a=f("There is more than 10 minutes difference between data updates")},l(e){t=l(e,"P",{});var s=n(t);a=m(s,"There is more than 10 minutes difference between data updates"),s.forEach(r)},m(e,s){i(e,t,s),o(t,a)},p:d,d(e){e&&r(t)}}}function G(e){let t,a,u,g,_,$,w,b,E,D,k,y,I=e[2].now.kp+"",V=e[2].now.kp_max+"",q=e[2].now.kp_min+"";return{c(){t=s("h2"),a=f("KP "),u=f(I),g=h(),_=s("p"),$=s("span"),w=f("↑ KP "),b=f(V),E=h(),D=s("span"),k=f("↓ KP "),y=f(q),this.h()},l(e){t=l(e,"H2",{class:!0});var s=n(t);a=m(s,"KP "),u=m(s,I),s.forEach(r),g=p(e),_=l(e,"P",{});var c=n(_);$=l(c,"SPAN",{classname:!0});var i=n($);w=m(i,"↑ KP "),b=m(i,V),i.forEach(r),E=p(c),D=l(c,"SPAN",{classname:!0});var o=n(D);k=m(o,"↓ KP "),y=m(o,q),o.forEach(r),c.forEach(r),this.h()},h(){c(t,"class","svelte-9kdo4s"),c($,"classname","pr-2"),c(D,"classname","pl-2")},m(e,s){i(e,t,s),o(t,a),o(t,u),i(e,g,s),i(e,_,s),o(_,$),o($,w),o($,b),o(_,E),o(_,D),o(D,k),o(D,y)},p(e,t){4&t&&I!==(I=e[2].now.kp+"")&&v(u,I),4&t&&V!==(V=e[2].now.kp_max+"")&&v(b,V),4&t&&q!==(q=e[2].now.kp_min+"")&&v(y,q)},i:d,o:d,d(e){e&&r(t),e&&r(g),e&&r(_)}}}function Q(e){let t,a;return t=new C({}),{c(){D(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p:d,i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){$(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function R(e){let t,a,d,u,_,$,w,b,E,D,k,y,I,V,q,j=e[2].now.bz+"",O=e[2].now.bt+"",x=e[1].available&&W(e);return{c(){t=s("div"),a=s("p"),d=f("BZ"),u=h(),_=s("p"),$=f(j),w=h(),b=s("div"),E=s("p"),D=f("BT"),k=h(),y=s("p"),I=f(O),V=h(),x&&x.c(),q=g(),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=m(c,"BZ"),c.forEach(r),u=p(s),_=l(s,"P",{class:!0});var i=n(_);$=m(i,j),i.forEach(r),s.forEach(r),w=p(e),b=l(e,"DIV",{});var o=n(b);E=l(o,"P",{class:!0});var h=n(E);D=m(h,"BT"),h.forEach(r),k=p(o),y=l(o,"P",{class:!0});var f=n(y);I=m(f,O),f.forEach(r),o.forEach(r),V=p(e),x&&x.l(e),q=g(),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(_,"class","svelte-9kdo4s"),c(E,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(t,u),o(t,_),o(_,$),i(e,w,s),i(e,b,s),o(b,E),o(E,D),o(b,k),o(b,y),o(y,I),i(e,V,s),x&&x.m(e,s),i(e,q,s)},p(e,t){4&t&&j!==(j=e[2].now.bz+"")&&v($,j),4&t&&O!==(O=e[2].now.bt+"")&&v(I,O),e[1].available?x?x.p(e,t):(x=W(e),x.c(),x.m(q.parentNode,q)):x&&(x.d(1),x=null)},d(e){e&&r(t),e&&r(w),e&&r(b),e&&r(V),x&&x.d(e),e&&r(q)}}}function W(e){let t,a,d,u,g,_,$,w,b,E,D,k,y,I,V,q=e[1].now.temp+"",j=e[1].now.clouds+"";return{c(){t=s("div"),a=s("p"),d=f("Temp"),u=h(),g=s("p"),_=f(q),$=f("°C"),w=h(),b=s("div"),E=s("p"),D=f("Clouds"),k=h(),y=s("p"),I=f(j),V=f("%"),this.h()},l(e){t=l(e,"DIV",{});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);d=m(c,"Temp"),c.forEach(r),u=p(s),g=l(s,"P",{class:!0});var i=n(g);_=m(i,q),$=m(i,"°C"),i.forEach(r),s.forEach(r),w=p(e),b=l(e,"DIV",{});var o=n(b);E=l(o,"P",{class:!0});var h=n(E);D=m(h,"Clouds"),h.forEach(r),k=p(o),y=l(o,"P",{class:!0});var f=n(y);I=m(f,j),V=m(f,"%"),f.forEach(r),o.forEach(r),this.h()},h(){c(a,"class","svelte-9kdo4s"),c(g,"class","svelte-9kdo4s"),c(E,"class","svelte-9kdo4s"),c(y,"class","svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(t,u),o(t,g),o(g,_),o(g,$),i(e,w,s),i(e,b,s),o(b,E),o(E,D),o(b,k),o(b,y),o(y,I),o(y,V)},p(e,t){2&t&&q!==(q=e[1].now.temp+"")&&v(_,q),2&t&&j!==(j=e[1].now.clouds+"")&&v(I,j)},d(e){e&&r(t),e&&r(w),e&&r(b)}}}function X(e){let t,a,d,u,f,m,v,g,E,D,k,y,I=!e[0].updating&&e[0].available&&!e[1].updating&&!e[2].updating&&F(e),V=!e[1].updating&&!e[2].updating&&L(e);const q=[Q,G],j=[];function O(e,t){return e[2].updating||e[1].updating?0:1}g=O(e),E=j[g]=q[g](e);let x=!e[2].updating&&!e[1].updating&&R(e);return{c(){t=s("div"),a=s("div"),d=s("div"),I&&I.c(),u=h(),f=s("div"),V&&V.c(),m=h(),v=s("div"),E.c(),D=h(),k=s("div"),x&&x.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"DIV",{class:!0});var c=n(a);d=l(c,"DIV",{class:!0});var i=n(d);I&&I.l(i),i.forEach(r),u=p(c),f=l(c,"DIV",{class:!0});var o=n(f);V&&V.l(o),o.forEach(r),m=p(c),v=l(c,"DIV",{class:!0});var h=n(v);E.l(h),h.forEach(r),D=p(c),k=l(c,"DIV",{class:!0});var g=n(k);x&&x.l(g),g.forEach(r),c.forEach(r),s.forEach(r),this.h()},h(){c(d,"class","weatherCurrent-data-location svelte-9kdo4s"),c(f,"class","weatherCurrent-data-date"),c(v,"class","weatherCurrent-data-kp svelte-9kdo4s"),c(k,"class","current-details svelte-9kdo4s"),c(a,"class","weatherCurrent-data svelte-9kdo4s"),c(t,"class","weatherCurrent-wrapper svelte-9kdo4s")},m(e,s){i(e,t,s),o(t,a),o(a,d),I&&I.m(d,null),o(a,u),o(a,f),V&&V.m(f,null),o(a,m),o(a,v),j[g].m(v,null),o(a,D),o(a,k),x&&x.m(k,null),y=!0},p(e,[t]){e[0].updating||!e[0].available||e[1].updating||e[2].updating?I&&(I.d(1),I=null):I?I.p(e,t):(I=F(e),I.c(),I.m(d,null)),e[1].updating||e[2].updating?V&&(V.d(1),V=null):V?V.p(e,t):(V=L(e),V.c(),V.m(f,null));let a=g;g=O(e),g===a?j[g].p(e,t):(_(),$(j[a],1,1,(()=>{j[a]=null})),w(),E=j[g],E?E.p(e,t):(E=j[g]=q[g](e),E.c()),b(E,1),E.m(v,null)),e[2].updating||e[1].updating?x&&(x.d(1),x=null):x?x.p(e,t):(x=R(e),x.c(),x.m(k,null))},i(e){y||(b(E),y=!0)},o(e){$(E),y=!1},d(e){e&&r(t),I&&I.d(),V&&V.d(),j[g].d(),x&&x.d()}}}function Y(e,t,a){let s,l,n;return E(e,B,(e=>a(0,s=e))),E(e,H,(e=>a(1,l=e))),E(e,J,(e=>a(2,n=e))),[s,l,n]}!async function(){if("undefined"==typeof window)return;let e;K(B,!0);try{e=await async function(){return new Promise(((e,t)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((t=>{e({longitude:t.coords.longitude,latitude:t.coords.latitude})}),(e=>{t(e)})):t(Error())}))}()}catch(e){return console.log(e),B.update((e=>Object.assign(Object.assign({},e),{available:!1,city:null,longitude:null,latitude:null}))),void K(B,!1)}let t=await fetch(`https://geocode.xyz/${e.latitude},${e.longitude}?geoit=json`),a=await t.json();B.update((t=>Object.assign(Object.assign(Object.assign({},t),{available:!0,city:a.city}),e))),K(B,!1)}(),B.subscribe((async function(e=null){if("undefined"==typeof window)return;if(null===e)return;if(e.updating)return;if(!e.available)return H.update((e=>Object.assign(Object.assign({},e),{available:!1}))),void K(H,!1);K(H,!0);let t=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e.latitude}&lon=${e.longitude}`),a=await t.json(),s={clouds:null,temp:null};try{s.clouds=a.properties.timeseries[0].data.instant.details.cloud_area_fraction,s.temp=a.properties.timeseries[0].data.instant.details.air_temperature,a.properties.timeseries=a.properties.timeseries.map((e=>Object.assign(Object.assign({},e),{time:new Date(e.time)})))}catch(e){}H.update((e=>Object.assign(Object.assign({},e),{yr_data_raw:a,now:s,available:!0}))),K(H,!1)})),async function(){if("undefined"==typeof window)return;K(J,!0);let e=await async function(){let e,t={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},a=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");t.usnoaa_data_raw.solar_wind_mag_field=await a.json(),t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(t.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),t.now.bz=t.usnoaa_data_raw.solar_wind_mag_field.Bz,t.now.bt=t.usnoaa_data_raw.solar_wind_mag_field.Bt,a=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),e=await a.json(),e=e.map((e=>Object.assign(Object.assign({},e),{model_prediction_time:new Date(e.model_prediction_time)}))),t.usnoaa_data_raw.geospace_pred_est_kp_1_hour=e,a=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),e=await a.text(),e=[...e.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],e=e.map((e=>Object.assign(Object.assign({},e.groups),{time:new Date(e.groups.time+" UTC")}))),t.usnoaa_data_raw.outlook_27_day=e,a=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),t.usnoaa_data_raw.noaa_planetary_k_index_forecast=await a.json(),t.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let s=new Date,l=new Date(0,0,0),n=1e3,r=0;return t.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((e,a)=>{e[1]>r&&(r=e[1]),e[1]<n&&(n=e[1]);let c=new Date(e[0]+" UTC");Math.abs(c.getTime()-s.getTime())<Math.abs(l.getTime()-s.getTime())&&(l=c,t.now.kp=e[1]),t.usnoaa_data_raw.noaa_planetary_k_index_forecast[a]={time:c,kp:e[1],observed:e[2]}})),t.now.kp_min=n.toString(),t.now.kp_max=r.toString(),console.log(t),t}();J.update((t=>Object.assign(Object.assign({},t),e))),K(J,!1)}();class ee extends e{constructor(e){super(),t(this,e,Y,X,a,{})}}function te(e){let t,a;const o=e[1].default,d=V(o,e,e[0],null);return{c(){t=s("div"),d&&d.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);d&&d.l(a),a.forEach(r),this.h()},h(){c(t,"class","chip svelte-6dfxfp")},m(e,s){i(e,t,s),d&&d.m(t,null),a=!0},p(e,[t]){d&&d.p&&(!a||1&t)&&q(d,o,e,e[0],a?O(o,e[0],t,null):j(e[0]),null)},i(e){a||(b(d,e),a=!0)},o(e){$(d,e),a=!1},d(e){e&&r(t),d&&d.d(e)}}}function ae(e,t,a){let{$$slots:s={},$$scope:l}=t;return e.$$set=e=>{"$$scope"in e&&a(0,l=e.$$scope)},[l,s]}class se extends e{constructor(e){super(),t(this,e,ae,te,a,{})}}function le(e){let t,a,u,g,_,$;return{c(){t=s("div"),a=s("div"),u=s("div"),g=h(),_=s("span"),$=f(e[1]),this.h()},l(s){t=l(s,"DIV",{class:!0,style:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"DIV",{class:!0}),n(u).forEach(r),i.forEach(r),g=p(c),_=l(c,"SPAN",{class:!0});var o=n(_);$=m(o,e[1]),o.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","bar svelte-13cwtm1"),c(a,"class","bar-wrapper svelte-13cwtm1"),c(_,"class","value svelte-13cwtm1"),c(t,"class","wrapper svelte-13cwtm1"),x(t,"--progress",100*e[0]+"%")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(t,g),o(t,_),o(_,$)},p(e,[a]){2&a&&v($,e[1]),1&a&&x(t,"--progress",100*e[0]+"%")},i:d,o:d,d(e){e&&r(t)}}}function ne(e,t,a){let{percentage:s}=t,{value:l}=t;return e.$$set=e=>{"percentage"in e&&a(0,s=e.percentage),"value"in e&&a(1,l=e.value)},[s,l]}class re extends e{constructor(e){super(),t(this,e,ne,le,a,{percentage:0,value:1})}}function ce(e){let t,a,u,v,g,_,w,E,V,q,j,O,x;q=new re({props:{percentage:e[0]/9,value:e[0]}});let T=e[5]&&function(e){let t,a,u,v,g,_,$,w,b,E,D,k,y=Math.round(e[3])+"",I=Math.round(e[4])+"";return{c(){t=s("div"),a=s("p"),u=s("i"),v=h(),g=f(y),_=f("°C"),$=h(),w=s("p"),b=s("i"),E=h(),D=f(I),k=f("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=l(c,"I",{class:!0}),n(u).forEach(r),v=p(c),g=m(c,y),_=m(c,"°C"),c.forEach(r),$=p(s),w=l(s,"P",{class:!0});var i=n(w);b=l(i,"I",{class:!0}),n(b).forEach(r),E=p(i),D=m(i,I),k=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","fas fa-thermometer-half svelte-1q08cz7"),c(a,"class","svelte-1q08cz7"),c(b,"class","fas fa-cloud svelte-1q08cz7"),c(w,"class","svelte-1q08cz7"),c(t,"class","svelte-1q08cz7")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(a,v),o(a,g),o(a,_),o(t,$),o(t,w),o(w,b),o(w,E),o(w,D),o(w,k)},p:d,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),u=s("h3"),v=f(e[2]),g=h(),_=s("p"),w=f(e[1]),E=h(),V=s("div"),D(q.$$.fragment),j=h(),O=s("div"),T&&T.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"H3",{class:!0});var o=n(u);v=m(o,e[2]),o.forEach(r),g=p(i),_=l(i,"P",{class:!0});var d=n(_);w=m(d,e[1]),d.forEach(r),i.forEach(r),E=p(c),V=l(c,"DIV",{class:!0});var h=n(V);k(q.$$.fragment,h),h.forEach(r),j=p(c),O=l(c,"DIV",{class:!0});var f=n(O);T&&T.l(f),f.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-1q08cz7"),c(_,"class","svelte-1q08cz7"),c(a,"class","svelte-1q08cz7"),c(V,"class","KP svelte-1q08cz7"),c(O,"class","data svelte-1q08cz7"),c(t,"class","prediction-details svelte-1q08cz7")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(u,v),o(a,g),o(a,_),o(_,w),o(t,E),o(t,V),y(q,V,null),o(t,j),o(t,O),T&&T.m(O,null),x=!0},p(e,[t]){e[5]&&T.p(e,t)},i(e){x||(b(q.$$.fragment,e),x=!0)},o(e){$(q.$$.fragment,e),x=!1},d(e){e&&r(t),I(q),T&&T.d()}}}function ie(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function oe(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=ie(s.time.getHours().toString())+":"+ie(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(6,s=e.prediction)},[l,n,r,c,i,o,s]}class de extends e{constructor(e){super(),t(this,e,oe,ce,a,{prediction:6})}}function ue(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function he(e){let t,a;return t=new de({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){$(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function fe(e){let t,a,o=e[0],d=[];for(let t=0;t<o.length;t+=1)d[t]=he(ue(e,o,t));const u=e=>$(d[e],1,1,(()=>{d[e]=null}));return{c(){t=s("div");for(let e=0;e<d.length;e+=1)d[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<d.length;e+=1)d[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-dqc8qx")},m(e,s){i(e,t,s);for(let e=0;e<d.length;e+=1)d[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=ue(e,o,s);d[s]?(d[s].p(l,a),b(d[s],1)):(d[s]=he(l),d[s].c(),b(d[s],1),d[s].m(t,null))}for(_(),s=o.length;s<d.length;s+=1)u(s);w()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(d[e]);a=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)$(d[e]);a=!1},d(e){e&&r(t),T(d,e)}}}function pe(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((e=>e.model_prediction_time>=new Date));a(0,n=e.map((e=>({time:e.model_prediction_time,kp:Math.round(e.k),temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>18e6)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return E(e,H,(e=>a(1,s=e))),E(e,J,(e=>a(2,l=e))),J.subscribe(r),H.subscribe(r),[n]}class me extends e{constructor(e){super(),t(this,e,pe,fe,a,{})}}function ve(e){let t,a,o;return a=new se({props:{$$slots:{default:[ge]},$$scope:{ctx:e}}}),{c(){t=s("div"),D(a.$$.fragment),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);k(a.$$.fragment,s),s.forEach(r),this.h()},h(){c(t,"class","svelte-1q08cz7")},m(e,s){i(e,t,s),y(a,t,null),o=!0},p(e,t){const s={};257&t&&(s.$$scope={dirty:t,ctx:e}),a.$set(s)},i(e){o||(b(a.$$.fragment,e),o=!0)},o(e){$(a.$$.fragment,e),o=!1},d(e){e&&r(t),I(a)}}}function ge(e){let t,a=e[0].observed+"";return{c(){t=f(a)},l(e){t=m(e,a)},m(e,a){i(e,t,a)},p(e,s){1&s&&a!==(a=e[0].observed+"")&&v(t,a)},d(e){e&&r(t)}}}function _e(e){let t,a,u,v,g,E,V,q,j,O,x,T,z,M,P="predicted"!=e[0].observed&&ve(e);x=new re({props:{percentage:e[1]/9,value:e[1]}});let S=e[6]&&function(e){let t,a,u,v,g,_,$,w,b,E,D,k,y=Math.round(e[4])+"",I=Math.round(e[5])+"";return{c(){t=s("div"),a=s("p"),u=s("i"),v=h(),g=f(y),_=f("°C"),$=h(),w=s("p"),b=s("i"),E=h(),D=f(I),k=f("%"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"P",{class:!0});var c=n(a);u=l(c,"I",{class:!0}),n(u).forEach(r),v=p(c),g=m(c,y),_=m(c,"°C"),c.forEach(r),$=p(s),w=l(s,"P",{class:!0});var i=n(w);b=l(i,"I",{class:!0}),n(b).forEach(r),E=p(i),D=m(i,I),k=m(i,"%"),i.forEach(r),s.forEach(r),this.h()},h(){c(u,"class","fas fa-thermometer-half svelte-1q08cz7"),c(a,"class","svelte-1q08cz7"),c(b,"class","fas fa-cloud svelte-1q08cz7"),c(w,"class","svelte-1q08cz7"),c(t,"class","svelte-1q08cz7")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(a,v),o(a,g),o(a,_),o(t,$),o(t,w),o(w,b),o(w,E),o(w,D),o(w,k)},p:d,d(e){e&&r(t)}}}(e);return{c(){t=s("div"),a=s("div"),u=s("h3"),v=f(e[3]),g=h(),E=s("p"),V=f(e[2]),q=h(),P&&P.c(),j=h(),O=s("div"),D(x.$$.fragment),T=h(),z=s("div"),S&&S.c(),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);u=l(i,"H3",{class:!0});var o=n(u);v=m(o,e[3]),o.forEach(r),g=p(i),E=l(i,"P",{class:!0});var d=n(E);V=m(d,e[2]),d.forEach(r),i.forEach(r),q=p(c),P&&P.l(c),j=p(c),O=l(c,"DIV",{class:!0});var h=n(O);k(x.$$.fragment,h),h.forEach(r),T=p(c),z=l(c,"DIV",{class:!0});var f=n(z);S&&S.l(f),f.forEach(r),c.forEach(r),this.h()},h(){c(u,"class","svelte-1q08cz7"),c(E,"class","svelte-1q08cz7"),c(a,"class","svelte-1q08cz7"),c(O,"class","KP svelte-1q08cz7"),c(z,"class","data svelte-1q08cz7"),c(t,"class","prediction-details svelte-1q08cz7")},m(e,s){i(e,t,s),o(t,a),o(a,u),o(u,v),o(a,g),o(a,E),o(E,V),o(t,q),P&&P.m(t,null),o(t,j),o(t,O),y(x,O,null),o(t,T),o(t,z),S&&S.m(z,null),M=!0},p(e,[a]){"predicted"!=e[0].observed?P?(P.p(e,a),1&a&&b(P,1)):(P=ve(e),P.c(),b(P,1),P.m(t,j)):P&&(_(),$(P,1,1,(()=>{P=null})),w()),e[6]&&S.p(e,a)},i(e){M||(b(P),b(x.$$.fragment,e),M=!0)},o(e){$(P),$(x.$$.fragment,e),M=!1},d(e){e&&r(t),P&&P.d(),I(x),S&&S.d()}}}function $e(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function we(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=$e(s.time.getHours().toString())+":"+$e(s.time.getMinutes().toString()),c=s.temp,i=s.clouds,o=s.hasNOMETData;return e.$$set=e=>{"prediction"in e&&a(0,s=e.prediction)},[s,l,n,r,c,i,o]}class be extends e{constructor(e){super(),t(this,e,we,_e,a,{prediction:0})}}function Ee(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function De(e){let t,a;return t=new be({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){$(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function ke(e){let t,a,o=e[0],d=[];for(let t=0;t<o.length;t+=1)d[t]=De(Ee(e,o,t));const u=e=>$(d[e],1,1,(()=>{d[e]=null}));return{c(){t=s("div");for(let e=0;e<d.length;e+=1)d[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<d.length;e+=1)d[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-dqc8qx")},m(e,s){i(e,t,s);for(let e=0;e<d.length;e+=1)d[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=Ee(e,o,s);d[s]?(d[s].p(l,a),b(d[s],1)):(d[s]=De(l),d[s].c(),b(d[s],1),d[s].m(t,null))}for(_(),s=o.length;s<d.length;s+=1)u(s);w()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(d[e]);a=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)$(d[e]);a=!1},d(e){e&&r(t),T(d,e)}}}function ye(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((e=>"observed"!==e.observed));a(0,n=e.map((e=>({time:e.time,kp:e.kp,observed:e.observed,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0);s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())&&(c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction)})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r}),n)}))}return E(e,H,(e=>a(1,s=e))),E(e,J,(e=>a(2,l=e))),J.subscribe(r),H.subscribe(r),[n]}class Ie extends e{constructor(e){super(),t(this,e,ye,ke,a,{})}}function Ve(e){let t,a,d,u,v,g,_,w,E,V,q,j,O;return V=new re({props:{percentage:e[0]/9,value:e[0]}}),{c(){t=s("div"),a=s("div"),d=s("h3"),u=f(e[2]),v=h(),g=s("p"),_=f(e[1]),w=h(),E=s("div"),D(V.$$.fragment),q=h(),j=s("div"),this.h()},l(s){t=l(s,"DIV",{class:!0});var c=n(t);a=l(c,"DIV",{class:!0});var i=n(a);d=l(i,"H3",{class:!0});var o=n(d);u=m(o,e[2]),o.forEach(r),v=p(i),g=l(i,"P",{class:!0});var h=n(g);_=m(h,e[1]),h.forEach(r),i.forEach(r),w=p(c),E=l(c,"DIV",{class:!0});var f=n(E);k(V.$$.fragment,f),f.forEach(r),q=p(c),j=l(c,"DIV",{class:!0}),n(j).forEach(r),c.forEach(r),this.h()},h(){c(d,"class","svelte-1q08cz7"),c(g,"class","svelte-1q08cz7"),c(a,"class","svelte-1q08cz7"),c(E,"class","KP svelte-1q08cz7"),c(j,"class","data svelte-1q08cz7"),c(t,"class","prediction-details svelte-1q08cz7")},m(e,s){i(e,t,s),o(t,a),o(a,d),o(d,u),o(a,v),o(a,g),o(g,_),o(t,w),o(t,E),y(V,E,null),o(t,q),o(t,j),O=!0},p(e,[t]){},i(e){O||(b(V.$$.fragment,e),O=!0)},o(e){$(V.$$.fragment,e),O=!1},d(e){e&&r(t),I(V)}}}function qe(e,t=2){let a=e;for(let s=0;s<t-e.length;s++)a="0"+a;return a}function je(e,t,a){let{prediction:s}=t;let l=s.kp,n=s.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][s.time.getMonth()],r=qe(s.time.getHours().toString())+":"+qe(s.time.getMinutes().toString()),c=s.temp,i=s.clouds;return e.$$set=e=>{"prediction"in e&&a(5,s=e.prediction)},[l,n,r,c,i,s]}class Oe extends e{constructor(e){super(),t(this,e,je,Ve,a,{prediction:5})}}function xe(e,t,a){const s=e.slice();return s[5]=t[a],s[7]=a,s}function Te(e){let t,a;return t=new Oe({props:{prediction:e[5]}}),{c(){D(t.$$.fragment)},l(e){k(t.$$.fragment,e)},m(e,s){y(t,e,s),a=!0},p(e,a){const s={};1&a&&(s.prediction=e[5]),t.$set(s)},i(e){a||(b(t.$$.fragment,e),a=!0)},o(e){$(t.$$.fragment,e),a=!1},d(e){I(t,e)}}}function ze(e){let t,a,o=e[0],d=[];for(let t=0;t<o.length;t+=1)d[t]=Te(xe(e,o,t));const u=e=>$(d[e],1,1,(()=>{d[e]=null}));return{c(){t=s("div");for(let e=0;e<d.length;e+=1)d[e].c();this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);for(let e=0;e<d.length;e+=1)d[e].l(a);a.forEach(r),this.h()},h(){c(t,"class","prediction-table svelte-dqc8qx")},m(e,s){i(e,t,s);for(let e=0;e<d.length;e+=1)d[e].m(t,null);a=!0},p(e,[a]){if(1&a){let s;for(o=e[0],s=0;s<o.length;s+=1){const l=xe(e,o,s);d[s]?(d[s].p(l,a),b(d[s],1)):(d[s]=Te(l),d[s].c(),b(d[s],1),d[s].m(t,null))}for(_(),s=o.length;s<d.length;s+=1)u(s);w()}},i(e){if(!a){for(let e=0;e<o.length;e+=1)b(d[e]);a=!0}},o(e){d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)$(d[e]);a=!1},d(e){e&&r(t),T(d,e)}}}function Me(e,t,a){let s,l,n;async function r(){if(l.updating||s.updating)return void a(0,n=null);let e=l.usnoaa_data_raw.outlook_27_day.filter((e=>e.time>=new Date));a(0,n=e.map((e=>({time:e.time,kp:e.kindex,temp:null,clouds:null,hasNOMETData:s.available})))),s.available&&n.forEach(((e,t)=>{let l,r,c=new Date(0,0,0),i=!0;s.yr_data_raw.properties.timeseries.forEach(((t,a)=>{let s=new Date(t.time);if(Math.abs(s.getTime()-e.time.getTime())<Math.abs(c.getTime()-e.time.getTime())){if(Math.abs(s.getTime()-e.time.getTime())>864e5)return void(i=!1);c=s,l=t.data.instant.details.air_temperature,r=t.data.instant.details.cloud_area_fraction}})),a(0,n[t]=Object.assign(Object.assign({},n[t]),{temp:l,clouds:r,hasNOMETData:i}),n)}))}return E(e,H,(e=>a(1,s=e))),E(e,J,(e=>a(2,l=e))),J.subscribe(r),H.subscribe(r),[n]}class Pe extends e{constructor(e){super(),t(this,e,Me,ze,a,{})}}function Se(e){let t,a,u,v,g;return{c(){t=s("div"),a=s("i"),u=h(),v=s("p"),g=f("No prediction data"),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"I",{class:!0}),n(a).forEach(r),u=p(s),v=l(s,"P",{});var c=n(v);g=m(c,"No prediction data"),c.forEach(r),s.forEach(r),this.h()},h(){c(a,"class","fas fa-7x fa-exclamation-triangle"),c(t,"class","no-data svelte-6c4yca")},m(e,s){i(e,t,s),o(t,a),o(t,u),o(t,v),o(v,g)},p:d,i:d,o:d,d(e){e&&r(t)}}}function Ne(e){let t,a,d,u,v,E,V,q,j,O,x,T,S,N,C,A,B,H,J;var K=e[0];return K&&(C=new K({})),{c(){t=s("div"),a=s("h2"),d=f("Forecast"),u=h(),v=s("div"),E=s("div"),V=f("hour"),q=h(),j=s("div"),O=f("3 day"),x=h(),T=s("div"),S=f("Long time"),N=h(),C&&D(C.$$.fragment),A=g(),this.h()},l(e){t=l(e,"DIV",{class:!0});var s=n(t);a=l(s,"H2",{class:!0});var c=n(a);d=m(c,"Forecast"),c.forEach(r),u=p(s),v=l(s,"DIV",{class:!0});var i=n(v);E=l(i,"DIV",{class:!0});var o=n(E);V=m(o,"hour"),o.forEach(r),q=p(i),j=l(i,"DIV",{class:!0});var h=n(j);O=m(h,"3 day"),h.forEach(r),x=p(i),T=l(i,"DIV",{class:!0});var f=n(T);S=m(f,"Long time"),f.forEach(r),i.forEach(r),s.forEach(r),N=p(e),C&&k(C.$$.fragment,e),A=g(),this.h()},h(){c(a,"class","svelte-6c4yca"),c(E,"class","svelte-6c4yca"),z(E,"selected",e[0]==me),c(j,"class","svelte-6c4yca"),z(j,"selected",e[0]==Ie),c(T,"class","svelte-6c4yca"),z(T,"selected",e[0]==Pe),c(v,"class","version-picker svelte-6c4yca"),c(t,"class","header svelte-6c4yca")},m(s,l){i(s,t,l),o(t,a),o(a,d),o(t,u),o(t,v),o(v,E),o(E,V),o(v,q),o(v,j),o(j,O),o(v,x),o(v,T),o(T,S),i(s,N,l),C&&y(C,s,l),i(s,A,l),B=!0,H||(J=[M(E,"click",e[3]),M(j,"click",e[4]),M(T,"click",e[5])],H=!0)},p(e,t){if(1&t&&z(E,"selected",e[0]==me),1&t&&z(j,"selected",e[0]==Ie),1&t&&z(T,"selected",e[0]==Pe),K!==(K=e[0])){if(C){_();const e=C;$(e.$$.fragment,1,0,(()=>{I(e,1)})),w()}K?(C=new K({}),D(C.$$.fragment),b(C.$$.fragment,1),y(C,A.parentNode,A)):C=null}},i(e){B||(C&&b(C.$$.fragment,e),B=!0)},o(e){C&&$(C.$$.fragment,e),B=!1},d(e){e&&r(t),e&&r(N),e&&r(A),C&&I(C,e),H=!1,P(J)}}}function Ce(e){let t,a,o,d;const u=[Ne,Se],h=[];function f(e,t){return e[1].updating||e[2].updating?1:0}return a=f(e),o=h[a]=u[a](e),{c(){t=s("div"),o.c(),this.h()},l(e){t=l(e,"DIV",{class:!0});var a=n(t);o.l(a),a.forEach(r),this.h()},h(){c(t,"class","drawer svelte-6c4yca")},m(e,s){i(e,t,s),h[a].m(t,null),d=!0},p(e,[s]){let l=a;a=f(e),a===l?h[a].p(e,s):(_(),$(h[l],1,1,(()=>{h[l]=null})),w(),o=h[a],o?o.p(e,s):(o=h[a]=u[a](e),o.c()),b(o,1),o.m(t,null))},i(e){d||(b(o),d=!0)},o(e){$(o),d=!1},d(e){e&&r(t),h[a].d()}}}function Ae(e,t,a){let s,l;E(e,H,(e=>a(1,s=e))),E(e,J,(e=>a(2,l=e)));let n=Ie;return[n,s,l,()=>a(0,n=me),()=>a(0,n=Ie),()=>a(0,n=Pe)]}class Be extends e{constructor(e){super(),t(this,e,Ae,Ce,a,{})}}function He(e){let t,a,u,f,m,v;return u=new ee({}),m=new Be({}),{c(){t=h(),a=s("div"),D(u.$$.fragment),f=h(),D(m.$$.fragment),this.h()},l(e){S('[data-svelte="svelte-1q3846k"]',document.head).forEach(r),t=p(e),a=l(e,"DIV",{class:!0});var s=n(a);k(u.$$.fragment,s),f=p(s),k(m.$$.fragment,s),s.forEach(r),this.h()},h(){document.title="Aurora data",c(a,"class","homescreen svelte-pf4p6y")},m(e,s){i(e,t,s),i(e,a,s),y(u,a,null),o(a,f),y(m,a,null),v=!0},p:d,i(e){v||(b(u.$$.fragment,e),b(m.$$.fragment,e),v=!0)},o(e){$(u.$$.fragment,e),$(m.$$.fragment,e),v=!1},d(e){e&&r(t),e&&r(a),I(u),I(m)}}}class Je extends e{constructor(e){super(),t(this,e,null,He,a,{})}}export{Je as default}; diff --git a/client/legacy/client.1a413fbb.js b/client/legacy/client.c55e0741.js index ad8ae15..d6d3372 100644 --- a/client/legacy/client.1a413fbb.js +++ b/client/legacy/client.c55e0741.js @@ -1,4 +1,4 @@ -function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o,i,a,u=(o=function(e){var n=function(e){var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var _={};f(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==r&&o.call(w,a)&&(_=w);var $=b.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(i,a,u,c){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"===t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:n,done:!0}}return g.prototype=b,f($,"constructor",b),f(b,"constructor",g),g.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},E(S.prototype),f(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),f($,c,"Generator"),f($,a,(function(){return this})),f($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o(a={path:i,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports),c=u;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){}function b(t,e){for(var n in e)t[n]=e[n];return t}function _(t){return t()}function x(){return Object.create(null)}function w(t){t.forEach(_)}function $(t){return"function"==typeof t}function E(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function S(t,e,n){t.$$.on_destroy.push(function(t){if(null==t)return g;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.subscribe.apply(t,n);return o.unsubscribe?function(){return o.unsubscribe()}:o}(e,n))}function k(t,e,n,r){if(t){var o=L(t,e,n,r);return t[0](o)}}function L(t,e,n,r){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}function j(e,n,r,o){if(e[2]&&o){var i=e[2](o(r));if(void 0===n.dirty)return i;if("object"===t(i)){for(var a=[],u=Math.max(n.dirty.length,i.length),c=0;c<u;c+=1)a[c]=n.dirty[c]|i[c];return a}return n.dirty|i}return n.dirty}function O(t,e,n,r,o,i){if(o){var a=L(e,n,r,i);t.p(a,o)}}function R(t){if(t.ctx.length>32){for(var e=[],n=t.ctx.length/32,r=0;r<n;r++)e[r]=-1;return e}return-1}var A,P=!1;function N(){P=!0}function T(){P=!1}function I(t,e,n,r){for(;t<e;){var o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function q(t,e){if(P){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r<e.length;r++){var o=e[r];void 0!==o.claim_order&&n.push(o)}e=n}var i=new Int32Array(e.length+1),a=new Int32Array(e.length);i[0]=-1;for(var u=0,c=0;c<e.length;c++){var f=e[c].claim_order,s=(u>0&&e[i[u]].claim_order<=f?u+1:I(1,u,(function(t){return e[i[t]].claim_order}),f))-1;a[c]=i[s]+1;var l=s+1;i[l]=c,u=Math.max(l,u)}for(var h=[],p=[],d=e.length-1,v=i[u]+1;0!=v;v=a[v-1]){for(h.push(e[v-1]);d>=v;d--)p.push(e[d]);d--}for(;d>=0;d--)p.push(e[d]);h.reverse(),p.sort((function(t,e){return t.claim_order-e.claim_order}));for(var m=0,y=0;m<p.length;m++){for(;y<h.length&&p[m].claim_order>=h[y].claim_order;)y++;var g=y<h.length?h[y]:null;t.insertBefore(p[m],g)}}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function C(t,e,n){P&&!n?q(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function B(t){t.parentNode.removeChild(t)}function U(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function G(t){return document.createElement(t)}function F(t){return document.createTextNode(t)}function D(){return F(" ")}function M(){return F("")}function J(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function K(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function z(t){return Array.from(t.childNodes)}function H(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function V(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];H(t);var i=function(){for(var i=t.claim_info.last_index;i<t.length;i++){var a=t[i];if(e(a)){var u=n(a);return void 0===u?t.splice(i,1):t[i]=u,o||(t.claim_info.last_index=i),a}}for(var c=t.claim_info.last_index-1;c>=0;c--){var f=t[c];if(e(f)){var s=n(f);return void 0===s?t.splice(c,1):t[c]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=c,f}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Y(t,e,n){return function(t,e,n,r){return V(t,(function(t){return t.nodeName===e}),(function(t){for(var e=[],r=0;r<t.attributes.length;r++){var o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((function(e){return t.removeAttribute(e)}))}),(function(){return r(e)}))}(t,e,n,G)}function W(t,e){return V(t,(function(t){return 3===t.nodeType}),(function(t){var n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(function(){return F(e)}),!0)}function Q(t){return W(t," ")}function X(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Z(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function tt(t,e,n){t.classList[n?"add":"remove"](e)}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function nt(t){A=t}function rt(){if(!A)throw new Error("Function called outside component initialization");return A}var ot=[],it=[],at=[],ut=[],ct=Promise.resolve(),ft=!1;function st(t){at.push(t)}var lt=new Set,ht=0;function pt(){var t=A;do{for(;ht<ot.length;){var e=ot[ht];ht++,nt(e),dt(e.$$)}for(nt(null),ot.length=0,ht=0;it.length;)it.pop()();for(var n=0;n<at.length;n+=1){var r=at[n];lt.has(r)||(lt.add(r),r())}at.length=0}while(ot.length);for(;ut.length;)ut.pop()();ft=!1,lt.clear(),nt(t)}function dt(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(st)}}var vt,mt=new Set;function yt(){vt={r:0,c:[],p:vt}}function gt(){vt.r||w(vt.c),vt=vt.p}function bt(t,e){t&&t.i&&(mt.delete(t),t.i(e))}function _t(t,e,n,r){if(t&&t.o){if(mt.has(t))return;mt.add(t),vt.c.push((function(){mt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function xt(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 wt(e){return"object"===t(e)&&null!==e?e:{}}function $t(t){t&&t.c()}function Et(t,e){t&&t.l(e)}function St(t,e,n,r){var o=t.$$,i=o.fragment,a=o.on_mount,u=o.on_destroy,c=o.after_update;i&&i.m(e,n),r||st((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(st)}function kt(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 Lt(t,e){-1===t.$$.dirty[0]&&(ot.push(t),ft||(ft=!0,ct.then(pt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function jt(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=A;nt(t);var f=t.$$={fragment:null,ctx:null,props:i,update:g,not_equal:o,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:x(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};a&&a(f.root);var s=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),s&&Lt(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){N();var l=z(e.target);f.fragment&&f.fragment.l(l),l.forEach(B)}else f.fragment&&f.fragment.c();e.intro&&bt(t.$$.fragment),St(t,e.target,e.anchor,e.customElement),T(),pt()}nt(c)}var Ot=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){kt(this,1),this.$destroy=g}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function Rt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return At(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return At(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function At(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Pt=[];function Nt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=new Set;function o(n){if(E(t,n)&&(t=n,e)){var o,i=!Pt.length,a=Rt(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),Pt.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<Pt.length;c+=2)Pt[c][0](Pt[c+1]);Pt.length=0}}}function i(e){o(e(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,u=[i,a];return r.add(u),1===r.size&&(e=n(o)||g),i(t),function(){r.delete(u),0===r.size&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var Tt={};function It(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function qt(t){var e,n,o=t[1].default,i=k(o,t,t[0],null);return{c:function(){e=G("div"),i&&i.c(),this.h()},l:function(t){var n=z(e=Y(t,"DIV",{class:!0}));i&&i.l(n),n.forEach(B),this.h()},h:function(){K(e,"class","app-container svelte-lkkhqy")},m:function(t,r){C(t,e,r),i&&i.m(e,null),n=!0},p:function(t,e){var a=r(e,1)[0];i&&i.p&&(!n||1&a)&&O(i,o,t,t[0],n?j(o,t[0],a,null):R(t[0]),null)},i:function(t){n||(bt(i,t),n=!0)},o:function(t){_t(i,t),n=!1},d:function(t){t&&B(e),i&&i.d(t)}}}function Ct(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 Bt=function(t){h(n,Ot);var e=It(n);function n(t){var r;return v(this,n),jt(p(r=e.call(this)),t,Ct,qt,E,{}),r}return y(n)}();function Ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Gt(t){var e,n,r=t[1].stack+"";return{c:function(){e=G("pre"),n=F(r)},l:function(t){var o=z(e=Y(t,"PRE",{}));n=W(o,r),o.forEach(B)},m:function(t,r){C(t,e,r),q(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&X(n,r)},d:function(t){t&&B(e)}}}function Ft(t){var e,n,o,i,a,u,c,f,s,l=t[1].message+"";document.title=e=t[0];var h=t[2]&&t[1].stack&&Gt(t);return{c:function(){n=D(),o=G("h1"),i=F(t[0]),a=D(),u=G("p"),c=F(l),f=D(),h&&h.c(),s=M(),this.h()},l:function(e){et('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(B),n=Q(e);var r=z(o=Y(e,"H1",{class:!0}));i=W(r,t[0]),r.forEach(B),a=Q(e);var p=z(u=Y(e,"P",{class:!0}));c=W(p,l),p.forEach(B),f=Q(e),h&&h.l(e),s=M(),this.h()},h:function(){K(o,"class","svelte-jpshsi"),K(u,"class","svelte-jpshsi")},m:function(t,e){C(t,n,e),C(t,o,e),q(o,i),C(t,a,e),C(t,u,e),q(u,c),C(t,f,e),h&&h.m(t,e),C(t,s,e)},p:function(t,n){var o=r(n,1)[0];1&o&&e!==(e=t[0])&&(document.title=e),1&o&&X(i,t[0]),2&o&&l!==(l=t[1].message+"")&&X(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Gt(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&B(n),t&&B(o),t&&B(a),t&&B(u),t&&B(f),h&&h.d(t),t&&B(s)}}}function Dt(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 Mt=function(t){h(n,Ot);var e=Ut(n);function n(t){var r;return v(this,n),jt(p(r=e.call(this)),t,Dt,Ft,E,{status:0,error:1}),r}return y(n)}();function Jt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Kt(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n<o.length;n+=1)e=b(e,o[n]);return{props:e}}return i&&(e=new i(a())),{c:function(){e&&$t(e.$$.fragment),n=M()},l:function(t){e&&Et(e.$$.fragment,t),n=M()},m:function(t,o){e&&St(e,t,o),C(t,n,o),r=!0},p:function(t,r){var u=16&r?xt(o,[wt(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){yt();var c=e;_t(c.$$.fragment,1,0,(function(){kt(c,1)})),gt()}i?($t((e=new i(a())).$$.fragment),bt(e.$$.fragment,1),St(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&bt(e.$$.fragment,t),r=!0)},o:function(t){e&&_t(e.$$.fragment,t),r=!1},d:function(t){t&&B(n),e&&kt(e,t)}}}function zt(t){var e,n;return e=new Mt({props:{error:t[0],status:t[1]}}),{c:function(){$t(e.$$.fragment)},l:function(t){Et(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||(bt(e.$$.fragment,t),n=!0)},o:function(t){_t(e.$$.fragment,t),n=!1},d:function(t){kt(e,t)}}}function Ht(t){var e,n,r,o,i=[zt,Kt],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=M()},l:function(t){n.l(t),r=M()},m:function(t,n){a[e].m(t,n),C(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(yt(),_t(a[c],1,1,(function(){a[c]=null})),gt(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),bt(n,1),n.m(r.parentNode,r))},i:function(t){o||(bt(n),o=!0)},o:function(t){_t(n),o=!1},d:function(t){a[e].d(t),t&&B(r)}}}function Vt(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[Ht]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new Bt({props:i}),{c:function(){$t(e.$$.fragment)},l:function(t){Et(e.$$.fragment,t)},m:function(t,r){St(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?xt(o,[4&i&&{segment:t[2][0]},8&i&&wt(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(bt(e.$$.fragment,t),n=!0)},o:function(t){_t(e.$$.fragment,t),n=!1},d:function(t){kt(e,t)}}}function Yt(t,e,n){var r,o,i=e.stores,a=e.error,u=e.status,c=e.segments,f=e.level0,s=e.level1,l=void 0===s?null:s,h=e.notify;return function(t){rt().$$.after_update.push(t)}(h),r=Tt,o=i,rt().$$.context.set(r,o),t.$$set=function(t){"stores"in t&&n(5,i=t.stores),"error"in t&&n(0,a=t.error),"status"in t&&n(1,u=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,f=t.level0),"level1"in t&&n(4,l=t.level1),"notify"in t&&n(6,h=t.notify)},[a,u,c,f,l,i,h]}var Wt=function(t){h(n,Ot);var e=Jt(n);function n(t){var r;return v(this,n),jt(p(r=e.call(this)),t,Yt,Vt,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Qt=[],Xt=[{js:function(){return Promise.all([import("./index.7f481a6e.js"),__inject_styles(["client-ea61129f.css","index-ae7087a9.css"])]).then((function(t){return t[0]}))}}],Zt=[{pattern:/^\/$/,parts:[{i:0}]}]; +function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function n(t,n){if(t){if("string"==typeof t)return e(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}function r(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i=[],a=!0,u=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);a=!0);}catch(t){u=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(u)throw o}}return i}}(t,e)||n(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var o,i,a,u=(o=function(e){var n=function(e){var n,r=Object.prototype,o=r.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag";function f(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{f({},"")}catch(t){f=function(t,e,n){return t[e]=n}}function s(t,e,n,r){var o=e&&e.prototype instanceof y?e:y,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r=h;return function(o,i){if(r===d)throw new Error("Generator is already running");if(r===v){if("throw"===o)throw i;return A()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var u=k(a,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=v,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=d;var c=l(t,e,n);if("normal"===c.type){if(r=n.done?v:p,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=v,n.method="throw",n.arg=c.arg)}}}(t,n,a),i}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=s;var h="suspendedStart",p="suspendedYield",d="executing",v="completed",m={};function y(){}function g(){}function b(){}var _={};f(_,a,(function(){return this}));var x=Object.getPrototypeOf,w=x&&x(x(R([])));w&&w!==r&&o.call(w,a)&&(_=w);var $=b.prototype=y.prototype=Object.create(_);function E(t){["next","throw","return"].forEach((function(e){f(t,e,(function(t){return this._invoke(e,t)}))}))}function S(e,n){function r(i,a,u,c){var f=l(e[i],e,a);if("throw"!==f.type){var s=f.arg,h=s.value;return h&&"object"===t(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,u,c)}),(function(t){r("throw",t,u,c)})):n.resolve(h).then((function(t){s.value=t,u(s)}),(function(t){return r("throw",t,u,c)}))}c(f.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,o){r(t,e,n,o)}))}return i=i?i.then(o,o):o()}}function k(t,e){var r=t.iterator[e.method];if(r===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,k(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var o=l(r,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,m;var i=o.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function R(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=n,e.done=!0,e};return i.next=i}}return{next:A}}function A(){return{value:n,done:!0}}return g.prototype=b,f($,"constructor",b),f(b,"constructor",g),g.displayName=f(b,c,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,b):(t.__proto__=b,f(t,c,"GeneratorFunction")),t.prototype=Object.create($),t},e.awrap=function(t){return{__await:t}},E(S.prototype),f(S.prototype,u,(function(){return this})),e.AsyncIterator=S,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new S(s(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},E($),f($,c,"Generator"),f($,a,(function(){return this})),f($,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=R,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(r,o){return u.type="throw",u.arg=t,e.next=r,o&&(e.method="next",e.arg=n),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),f=o.call(a,"finallyLoc");if(c&&f){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!f)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;j(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:R(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),m}},e}(e.exports);try{regeneratorRuntime=n}catch(e){"object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},o(a={path:i,exports:{},require:function(t,e){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==e&&a.path)}},a.exports),a.exports),c=u;function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function s(t,e){return s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},s(t,e)}function l(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||n(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(e,n){if(n&&("object"===t(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return p(e)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function g(){}function b(t,e){for(var n in e)t[n]=e[n];return t}function _(t){return t()}function x(){return Object.create(null)}function w(t){t.forEach(_)}function $(t){return"function"==typeof t}function E(e,n){return e!=e?n==n:e!==n||e&&"object"===t(e)||"function"==typeof e}function S(t,e,n){t.$$.on_destroy.push(function(t){if(null==t)return g;for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=t.subscribe.apply(t,n);return o.unsubscribe?function(){return o.unsubscribe()}:o}(e,n))}function k(t,e,n,r){if(t){var o=L(t,e,n,r);return t[0](o)}}function L(t,e,n,r){return t[1]&&r?b(n.ctx.slice(),t[1](r(e))):n.ctx}function j(e,n,r,o){if(e[2]&&o){var i=e[2](o(r));if(void 0===n.dirty)return i;if("object"===t(i)){for(var a=[],u=Math.max(n.dirty.length,i.length),c=0;c<u;c+=1)a[c]=n.dirty[c]|i[c];return a}return n.dirty|i}return n.dirty}function O(t,e,n,r,o,i){if(o){var a=L(e,n,r,i);t.p(a,o)}}function R(t){if(t.ctx.length>32){for(var e=[],n=t.ctx.length/32,r=0;r<n;r++)e[r]=-1;return e}return-1}var A,P=!1;function N(){P=!0}function T(){P=!1}function I(t,e,n,r){for(;t<e;){var o=t+(e-t>>1);n(o)<=r?t=o+1:e=o}return t}function q(t,e){if(P){for(!function(t){if(!t.hydrate_init){t.hydrate_init=!0;var e=t.childNodes;if("HEAD"===t.nodeName){for(var n=[],r=0;r<e.length;r++){var o=e[r];void 0!==o.claim_order&&n.push(o)}e=n}var i=new Int32Array(e.length+1),a=new Int32Array(e.length);i[0]=-1;for(var u=0,c=0;c<e.length;c++){var f=e[c].claim_order,s=(u>0&&e[i[u]].claim_order<=f?u+1:I(1,u,(function(t){return e[i[t]].claim_order}),f))-1;a[c]=i[s]+1;var l=s+1;i[l]=c,u=Math.max(l,u)}for(var h=[],p=[],d=e.length-1,v=i[u]+1;0!=v;v=a[v-1]){for(h.push(e[v-1]);d>=v;d--)p.push(e[d]);d--}for(;d>=0;d--)p.push(e[d]);h.reverse(),p.sort((function(t,e){return t.claim_order-e.claim_order}));for(var m=0,y=0;m<p.length;m++){for(;y<h.length&&p[m].claim_order>=h[y].claim_order;)y++;var g=y<h.length?h[y]:null;t.insertBefore(p[m],g)}}}(t),(void 0===t.actual_end_child||null!==t.actual_end_child&&t.actual_end_child.parentElement!==t)&&(t.actual_end_child=t.firstChild);null!==t.actual_end_child&&void 0===t.actual_end_child.claim_order;)t.actual_end_child=t.actual_end_child.nextSibling;e!==t.actual_end_child?void 0===e.claim_order&&e.parentNode===t||t.insertBefore(e,t.actual_end_child):t.actual_end_child=e.nextSibling}else e.parentNode===t&&null===e.nextSibling||t.appendChild(e)}function C(t,e,n){P&&!n?q(t,e):e.parentNode===t&&e.nextSibling==n||t.insertBefore(e,n||null)}function B(t){t.parentNode.removeChild(t)}function U(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function G(t){return document.createElement(t)}function F(t){return document.createTextNode(t)}function D(){return F(" ")}function M(){return F("")}function J(t,e,n,r){return t.addEventListener(e,n,r),function(){return t.removeEventListener(e,n,r)}}function K(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function z(t){return Array.from(t.childNodes)}function H(t){void 0===t.claim_info&&(t.claim_info={last_index:0,total_claimed:0})}function V(t,e,n,r){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];H(t);var i=function(){for(var i=t.claim_info.last_index;i<t.length;i++){var a=t[i];if(e(a)){var u=n(a);return void 0===u?t.splice(i,1):t[i]=u,o||(t.claim_info.last_index=i),a}}for(var c=t.claim_info.last_index-1;c>=0;c--){var f=t[c];if(e(f)){var s=n(f);return void 0===s?t.splice(c,1):t[c]=s,o?void 0===s&&t.claim_info.last_index--:t.claim_info.last_index=c,f}}return r()}();return i.claim_order=t.claim_info.total_claimed,t.claim_info.total_claimed+=1,i}function Y(t,e,n){return function(t,e,n,r){return V(t,(function(t){return t.nodeName===e}),(function(t){for(var e=[],r=0;r<t.attributes.length;r++){var o=t.attributes[r];n[o.name]||e.push(o.name)}e.forEach((function(e){return t.removeAttribute(e)}))}),(function(){return r(e)}))}(t,e,n,G)}function W(t,e){return V(t,(function(t){return 3===t.nodeType}),(function(t){var n=""+e;if(t.data.startsWith(n)){if(t.data.length!==n.length)return t.splitText(n.length)}else t.data=n}),(function(){return F(e)}),!0)}function Q(t){return W(t," ")}function X(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function Z(t,e,n,r){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,r?"important":"")}function tt(t,e,n){t.classList[n?"add":"remove"](e)}function et(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.body;return Array.from(e.querySelectorAll(t))}function nt(t){A=t}function rt(){if(!A)throw new Error("Function called outside component initialization");return A}var ot=[],it=[],at=[],ut=[],ct=Promise.resolve(),ft=!1;function st(t){at.push(t)}var lt=new Set,ht=0;function pt(){var t=A;do{for(;ht<ot.length;){var e=ot[ht];ht++,nt(e),dt(e.$$)}for(nt(null),ot.length=0,ht=0;it.length;)it.pop()();for(var n=0;n<at.length;n+=1){var r=at[n];lt.has(r)||(lt.add(r),r())}at.length=0}while(ot.length);for(;ut.length;)ut.pop()();ft=!1,lt.clear(),nt(t)}function dt(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(st)}}var vt,mt=new Set;function yt(){vt={r:0,c:[],p:vt}}function gt(){vt.r||w(vt.c),vt=vt.p}function bt(t,e){t&&t.i&&(mt.delete(t),t.i(e))}function _t(t,e,n,r){if(t&&t.o){if(mt.has(t))return;mt.add(t),vt.c.push((function(){mt.delete(t),r&&(n&&t.d(1),r())})),t.o(e)}}function xt(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 wt(e){return"object"===t(e)&&null!==e?e:{}}function $t(t){t&&t.c()}function Et(t,e){t&&t.l(e)}function St(t,e,n,r){var o=t.$$,i=o.fragment,a=o.on_mount,u=o.on_destroy,c=o.after_update;i&&i.m(e,n),r||st((function(){var e=a.map(_).filter($);u?u.push.apply(u,l(e)):w(e),t.$$.on_mount=[]})),c.forEach(st)}function kt(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 Lt(t,e){-1===t.$$.dirty[0]&&(ot.push(t),ft||(ft=!0,ct.then(pt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function jt(t,e,n,r,o,i,a){var u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1],c=A;nt(t);var f=t.$$={fragment:null,ctx:null,props:i,update:g,not_equal:o,bound:x(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:x(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};a&&a(f.root);var s=!1;if(f.ctx=n?n(t,e.props||{},(function(e,n){var r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&o(f.ctx[e],f.ctx[e]=r)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](r),s&&Lt(t,e)),n})):[],f.update(),s=!0,w(f.before_update),f.fragment=!!r&&r(f.ctx),e.target){if(e.hydrate){N();var l=z(e.target);f.fragment&&f.fragment.l(l),l.forEach(B)}else f.fragment&&f.fragment.c();e.intro&&bt(t.$$.fragment),St(t,e.target,e.anchor,e.customElement),T(),pt()}nt(c)}var Ot=function(){function t(){v(this,t)}return y(t,[{key:"$destroy",value:function(){kt(this,1),this.$destroy=g}},{key:"$on",value:function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}();function Rt(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return At(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return At(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==n.return||n.return()}finally{if(u)throw i}}}}function At(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Pt=[];function Nt(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=new Set;function o(n){if(E(t,n)&&(t=n,e)){var o,i=!Pt.length,a=Rt(r);try{for(a.s();!(o=a.n()).done;){var u=o.value;u[1](),Pt.push(u,t)}}catch(t){a.e(t)}finally{a.f()}if(i){for(var c=0;c<Pt.length;c+=2)Pt[c][0](Pt[c+1]);Pt.length=0}}}function i(e){o(e(t))}function a(i){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,u=[i,a];return r.add(u),1===r.size&&(e=n(o)||g),i(t),function(){r.delete(u),0===r.size&&(e(),e=null)}}return{set:o,update:i,subscribe:a}}var Tt={};function It(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function qt(t){var e,n,o=t[1].default,i=k(o,t,t[0],null);return{c:function(){e=G("div"),i&&i.c(),this.h()},l:function(t){var n=z(e=Y(t,"DIV",{class:!0}));i&&i.l(n),n.forEach(B),this.h()},h:function(){K(e,"class","app-container svelte-lkkhqy")},m:function(t,r){C(t,e,r),i&&i.m(e,null),n=!0},p:function(t,e){var a=r(e,1)[0];i&&i.p&&(!n||1&a)&&O(i,o,t,t[0],n?j(o,t[0],a,null):R(t[0]),null)},i:function(t){n||(bt(i,t),n=!0)},o:function(t){_t(i,t),n=!1},d:function(t){t&&B(e),i&&i.d(t)}}}function Ct(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 Bt=function(t){h(n,Ot);var e=It(n);function n(t){var r;return v(this,n),jt(p(r=e.call(this)),t,Ct,qt,E,{}),r}return y(n)}();function Ut(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Gt(t){var e,n,r=t[1].stack+"";return{c:function(){e=G("pre"),n=F(r)},l:function(t){var o=z(e=Y(t,"PRE",{}));n=W(o,r),o.forEach(B)},m:function(t,r){C(t,e,r),q(e,n)},p:function(t,e){2&e&&r!==(r=t[1].stack+"")&&X(n,r)},d:function(t){t&&B(e)}}}function Ft(t){var e,n,o,i,a,u,c,f,s,l=t[1].message+"";document.title=e=t[0];var h=t[2]&&t[1].stack&&Gt(t);return{c:function(){n=D(),o=G("h1"),i=F(t[0]),a=D(),u=G("p"),c=F(l),f=D(),h&&h.c(),s=M(),this.h()},l:function(e){et('[data-svelte="svelte-1o9r2ue"]',document.head).forEach(B),n=Q(e);var r=z(o=Y(e,"H1",{class:!0}));i=W(r,t[0]),r.forEach(B),a=Q(e);var p=z(u=Y(e,"P",{class:!0}));c=W(p,l),p.forEach(B),f=Q(e),h&&h.l(e),s=M(),this.h()},h:function(){K(o,"class","svelte-jpshsi"),K(u,"class","svelte-jpshsi")},m:function(t,e){C(t,n,e),C(t,o,e),q(o,i),C(t,a,e),C(t,u,e),q(u,c),C(t,f,e),h&&h.m(t,e),C(t,s,e)},p:function(t,n){var o=r(n,1)[0];1&o&&e!==(e=t[0])&&(document.title=e),1&o&&X(i,t[0]),2&o&&l!==(l=t[1].message+"")&&X(c,l),t[2]&&t[1].stack?h?h.p(t,o):((h=Gt(t)).c(),h.m(s.parentNode,s)):h&&(h.d(1),h=null)},i:g,o:g,d:function(t){t&&B(n),t&&B(o),t&&B(a),t&&B(u),t&&B(f),h&&h.d(t),t&&B(s)}}}function Dt(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 Mt=function(t){h(n,Ot);var e=Ut(n);function n(t){var r;return v(this,n),jt(p(r=e.call(this)),t,Dt,Ft,E,{status:0,error:1}),r}return y(n)}();function Jt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function Kt(t){var e,n,r,o=[t[4].props],i=t[4].component;function a(t){for(var e={},n=0;n<o.length;n+=1)e=b(e,o[n]);return{props:e}}return i&&(e=new i(a())),{c:function(){e&&$t(e.$$.fragment),n=M()},l:function(t){e&&Et(e.$$.fragment,t),n=M()},m:function(t,o){e&&St(e,t,o),C(t,n,o),r=!0},p:function(t,r){var u=16&r?xt(o,[wt(t[4].props)]):{};if(i!==(i=t[4].component)){if(e){yt();var c=e;_t(c.$$.fragment,1,0,(function(){kt(c,1)})),gt()}i?($t((e=new i(a())).$$.fragment),bt(e.$$.fragment,1),St(e,n.parentNode,n)):e=null}else i&&e.$set(u)},i:function(t){r||(e&&bt(e.$$.fragment,t),r=!0)},o:function(t){e&&_t(e.$$.fragment,t),r=!1},d:function(t){t&&B(n),e&&kt(e,t)}}}function zt(t){var e,n;return e=new Mt({props:{error:t[0],status:t[1]}}),{c:function(){$t(e.$$.fragment)},l:function(t){Et(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||(bt(e.$$.fragment,t),n=!0)},o:function(t){_t(e.$$.fragment,t),n=!1},d:function(t){kt(e,t)}}}function Ht(t){var e,n,r,o,i=[zt,Kt],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=M()},l:function(t){n.l(t),r=M()},m:function(t,n){a[e].m(t,n),C(t,r,n),o=!0},p:function(t,o){var c=e;(e=u(t))===c?a[e].p(t,o):(yt(),_t(a[c],1,1,(function(){a[c]=null})),gt(),(n=a[e])?n.p(t,o):(n=a[e]=i[e](t)).c(),bt(n,1),n.m(r.parentNode,r))},i:function(t){o||(bt(n),o=!0)},o:function(t){_t(n),o=!1},d:function(t){a[e].d(t),t&&B(r)}}}function Vt(t){for(var e,n,o=[{segment:t[2][0]},t[3].props],i={$$slots:{default:[Ht]},$$scope:{ctx:t}},a=0;a<o.length;a+=1)i=b(i,o[a]);return e=new Bt({props:i}),{c:function(){$t(e.$$.fragment)},l:function(t){Et(e.$$.fragment,t)},m:function(t,r){St(e,t,r),n=!0},p:function(t,n){var i=r(n,1)[0],a=12&i?xt(o,[4&i&&{segment:t[2][0]},8&i&&wt(t[3].props)]):{};147&i&&(a.$$scope={dirty:i,ctx:t}),e.$set(a)},i:function(t){n||(bt(e.$$.fragment,t),n=!0)},o:function(t){_t(e.$$.fragment,t),n=!1},d:function(t){kt(e,t)}}}function Yt(t,e,n){var r,o,i=e.stores,a=e.error,u=e.status,c=e.segments,f=e.level0,s=e.level1,l=void 0===s?null:s,h=e.notify;return function(t){rt().$$.after_update.push(t)}(h),r=Tt,o=i,rt().$$.context.set(r,o),t.$$set=function(t){"stores"in t&&n(5,i=t.stores),"error"in t&&n(0,a=t.error),"status"in t&&n(1,u=t.status),"segments"in t&&n(2,c=t.segments),"level0"in t&&n(3,f=t.level0),"level1"in t&&n(4,l=t.level1),"notify"in t&&n(6,h=t.notify)},[a,u,c,f,l,i,h]}var Wt=function(t){h(n,Ot);var e=Jt(n);function n(t){var r;return v(this,n),jt(p(r=e.call(this)),t,Yt,Vt,E,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6}),r}return y(n)}(),Qt=[],Xt=[{js:function(){return Promise.all([import("./index.3cd72d89.js"),__inject_styles(["client-ea61129f.css","index-c3b4413a.css"])]).then((function(t){return t[0]}))}}],Zt=[{pattern:/^\/$/,parts:[{i:0}]}]; /*! ***************************************************************************** Copyright (c) Microsoft Corporation. diff --git a/client/legacy/index-ae7087a9.css b/client/legacy/index-ae7087a9.css deleted file mode 100644 index e3f81fa..0000000 --- a/client/legacy/index-ae7087a9.css +++ /dev/null @@ -1,19 +0,0 @@ -.lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} -.weatherCurrent-wrapper.svelte-9kdo4s.svelte-9kdo4s{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-9kdo4s.svelte-9kdo4s{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-9kdo4s.svelte-9kdo4s{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9kdo4s .symbol.svelte-9kdo4s{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9kdo4s h1.svelte-9kdo4s{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9kdo4s h2.svelte-9kdo4s{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9kdo4s.svelte-9kdo4s{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9kdo4s p.svelte-9kdo4s{line-height:1.375} -.chip.svelte-6dfxfp{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:linear-gradient(90deg, #84fab0, #8fd3f4 51%, #84fab0) 100% / 200%;color:white} -:root{--progress:100%}.wrapper.svelte-13cwtm1{position:relative;border-radius:15px;width:100%;height:100%}.bar-wrapper.svelte-13cwtm1{overflow:hidden;position:relative;border-radius:15px;height:100%;width:100%;left:calc(100% - var(--progress))}.bar.svelte-13cwtm1{position:absolute;height:100%;width:100%;right:calc(100% - var(--progress));overflow:hidden;background:linear-gradient(90deg, - rgba(255, 42,228,1) 0%, - rgba(164,255,177,1) 60%, - rgba(214,255,241,1) 85%, - rgba(255,255,255,1) 100%);border-radius:15px}.value.svelte-13cwtm1{position:absolute;right:0.1rem;top:0;font-size:1.5rem} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.prediction-details.svelte-1q08cz7.svelte-1q08cz7{display:flex;border-bottom-width:1px;padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-1q08cz7.svelte-1q08cz7:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-1q08cz7>.svelte-1q08cz7{margin:5px}.prediction-details.svelte-1q08cz7 div.svelte-1q08cz7:last-child{margin-left:auto}.prediction-details.svelte-1q08cz7 h3.svelte-1q08cz7{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-1q08cz7 .data.svelte-1q08cz7{display:flex;flex-direction:row}.prediction-details.svelte-1q08cz7 .data p.svelte-1q08cz7{min-width:3.3rem}.prediction-details.svelte-1q08cz7 .data i.svelte-1q08cz7{width:1rem;text-align:center}.KP.svelte-1q08cz7.svelte-1q08cz7{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} -.prediction-table.svelte-dqc8qx{height:100%;overflow-y:scroll;padding-bottom:1rem}.prediction-table.svelte-dqc8qx::-webkit-scrollbar{display:none} -.drawer.svelte-6c4yca.svelte-6c4yca{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;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-6c4yca.svelte-6c4yca{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-6c4yca.svelte-6c4yca{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-6c4yca .header.svelte-6c4yca{display:flex;align-items:flex-start}.drawer.svelte-6c4yca h2.svelte-6c4yca{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-6c4yca.svelte-6c4yca{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-6c4yca>.svelte-6c4yca{transition:all 0.1s ease}.version-picker.svelte-6c4yca .selected.svelte-6c4yca{background-color:#c2c2c2;padding:3px 5px;box-sizing:border-box;border-radius:10px;color:black}.no-data.svelte-6c4yca.svelte-6c4yca{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-6c4yca.svelte-6c4yca{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-c3b4413a.css b/client/legacy/index-c3b4413a.css new file mode 100644 index 0000000..30d5236 --- /dev/null +++ b/client/legacy/index-c3b4413a.css @@ -0,0 +1,15 @@ +.lds-roller.svelte-7k6qu0.svelte-7k6qu0{display:inline-block;position:relative;width:80px;height:80px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0{animation:svelte-7k6qu0-lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin:40px 40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:after{content:" ";display:block;position:absolute;width:7px;height:7px;border-radius:50%;background:#fff;margin:-4px 0 0 -4px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1){animation-delay:-0.036s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(1):after{top:63px;left:63px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2){animation-delay:-0.072s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(2):after{top:68px;left:56px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3){animation-delay:-0.108s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(3):after{top:71px;left:48px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4){animation-delay:-0.144s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(4):after{top:72px;left:40px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5){animation-delay:-0.18s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(5):after{top:71px;left:32px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6){animation-delay:-0.216s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(6):after{top:68px;left:24px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7){animation-delay:-0.252s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(7):after{top:63px;left:17px}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8){animation-delay:-0.288s}.lds-roller.svelte-7k6qu0 div.svelte-7k6qu0:nth-child(8):after{top:56px;left:12px}@keyframes svelte-7k6qu0-lds-roller{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}} +.weatherCurrent-wrapper.svelte-9kdo4s.svelte-9kdo4s{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-9kdo4s.svelte-9kdo4s{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-9kdo4s.svelte-9kdo4s{display:flex;justify-content:center;align-content:center;align-items:flex-end}.weatherCurrent-data-location.svelte-9kdo4s .symbol.svelte-9kdo4s{width:1.5rem;height:1.5rem;margin-right:1rem}.weatherCurrent-data-location.svelte-9kdo4s h1.svelte-9kdo4s{text-transform:uppercase;font-family:Roboto Condensed, sans-serif;font-size:1.125rem;letter-spacing:0.1em;margin-bottom:0}.weatherCurrent-data-kp.svelte-9kdo4s h2.svelte-9kdo4s{font-weight:700;font-size:3rem;letter-spacing:0.05em;line-height:1.25}.current-details.svelte-9kdo4s.svelte-9kdo4s{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-gap:1rem;gap:1rem;padding-bottom:1.5rem;text-shadow:1px 1px 2px rgba(0,0,0,.75)}.current-details.svelte-9kdo4s p.svelte-9kdo4s{line-height:1.375} +.chip.svelte-1jb0ny7{padding:3px 5px;box-sizing:border-box;border-radius:20px;background:var(--gradient-1, green);color:white} +:root{--progress:100%}.wrapper.svelte-1mo8cjf{position:relative;border-radius:15px;width:100%;height:100%}.bar-wrapper.svelte-1mo8cjf{overflow:hidden;position:relative;border-radius:15px;height:100%;width:100%;left:calc(100% - var(--progress))}.bar.svelte-1mo8cjf{position:absolute;height:100%;width:100%;right:calc(100% - var(--progress));overflow:hidden;background:var(--gradient-2, green);border-radius:15px}.value.svelte-1mo8cjf{position:absolute;right:0.1rem;top:0;font-size:1.5rem} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.prediction-details.svelte-m9qkku.svelte-m9qkku{display:flex;border-bottom-width:1px;border-color:var(--divider, #e2e8f0);padding-top:0.5rem;padding-bottom:0.5rem;font-size:0.75rem;letter-spacing:0.05em;align-items:center}.prediction-details.svelte-m9qkku.svelte-m9qkku:last-of-type{border-width:0;padding-bottom:0}.prediction-details.svelte-m9qkku>.svelte-m9qkku{margin:5px}.prediction-details.svelte-m9qkku div.svelte-m9qkku:last-child{margin-left:auto}.prediction-details.svelte-m9qkku h3.svelte-m9qkku{font-size:0.875rem;font-weight:600;text-transform:uppercase;letter-spacing:0.05em;margin-right:0.5rem}.prediction-details.svelte-m9qkku .data.svelte-m9qkku{display:flex;flex-direction:row}.prediction-details.svelte-m9qkku .data p.svelte-m9qkku{min-width:3.3rem}.prediction-details.svelte-m9qkku .data i.svelte-m9qkku{width:1rem;text-align:center}.KP.svelte-m9qkku.svelte-m9qkku{flex-grow:1;margin-right:1rem;font-size:1.7rem;height:2.2rem} +.prediction-table.svelte-1uc0m3l{height:100%;overflow-y:scroll;overflow-x:hidden;padding-bottom:1rem}.prediction-table.svelte-1uc0m3l::-webkit-scrollbar{display:none} +.drawer.svelte-5bytj.svelte-5bytj{border-top-left-radius:2rem;border-top-right-radius:2rem;background-color:var(--surface, #f7fafc);color:var(--on-surface, #1a202c);padding:1.5rem;height:100%;overflow:hidden;align-self:stretch;box-shadow:0px -6px 7px 0px black}@media(min-width: 640px), (min-height: 720px){.drawer.svelte-5bytj.svelte-5bytj{padding:2rem;padding-top:1.5rem}}@media(min-width: 640px){.drawer.svelte-5bytj.svelte-5bytj{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}}.drawer.svelte-5bytj .header.svelte-5bytj{display:flex;align-items:flex-start}.drawer.svelte-5bytj h2.svelte-5bytj{text-transform:uppercase;font-size:0.875rem;letter-spacing:0.1em;font-weight:700;margin-top:0.25rem;margin-bottom:0.5rem;margin-right:auto}.version-picker.svelte-5bytj.svelte-5bytj{display:flex;font-size:0.875rem;gap:0.5rem;align-items:center;color:#616161}.version-picker.svelte-5bytj>.svelte-5bytj{transition:all 0.1s ease}.version-picker.svelte-5bytj .selected.svelte-5bytj{background-color:#c2c2c2;padding:3px 5px;box-sizing:border-box;border-radius:10px;color:black}.no-data.svelte-5bytj.svelte-5bytj{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;color:grey}.no-data.svelte-5bytj.svelte-5bytj{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.3cd72d89.js b/client/legacy/index.3cd72d89.js new file mode 100644 index 0000000..7e43f30 --- /dev/null +++ b/client/legacy/index.3cd72d89.js @@ -0,0 +1 @@ +import{_ as t,a as n,b as e,c as a,i as r,s as c,d as i,e as o,S as s,f as u,g as f,h as l,j as v,k as d,l as h,m as p,n as m,w as g,o as y,t as _,p as k,q as b,r as $,u as w,v as E,x as D,y as R,z as j,A as I,B as O,C as V,D as P,E as x,F as q,G as T,H as M,I as B,J as S,K as N,L as C,M as A,N as H,O as J,P as K,Q as z}from"./client.c55e0741.js";function F(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function L(t){var n,e,a,r,c,i,o,s,g;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=u("div"),c=u("div"),i=u("div"),o=u("div"),s=u("div"),g=u("div"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"DIV",{class:!0}),l(e).forEach(v),a=f(u,"DIV",{class:!0}),l(a).forEach(v),r=f(u,"DIV",{class:!0}),l(r).forEach(v),c=f(u,"DIV",{class:!0}),l(c).forEach(v),i=f(u,"DIV",{class:!0}),l(i).forEach(v),o=f(u,"DIV",{class:!0}),l(o).forEach(v),s=f(u,"DIV",{class:!0}),l(s).forEach(v),g=f(u,"DIV",{class:!0}),l(g).forEach(v),u.forEach(v),this.h()},h:function(){d(e,"class","svelte-7k6qu0"),d(a,"class","svelte-7k6qu0"),d(r,"class","svelte-7k6qu0"),d(c,"class","svelte-7k6qu0"),d(i,"class","svelte-7k6qu0"),d(o,"class","svelte-7k6qu0"),d(s,"class","svelte-7k6qu0"),d(g,"class","svelte-7k6qu0"),d(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),p(n,r),p(n,c),p(n,i),p(n,o),p(n,s),p(n,g)},p:m,i:m,o:m,d:function(t){t&&v(n)}}}var U=function(n){t(u,s);var e=F(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,L,c,{}),n}return o(u)}();const Z={updated:!1,updating:!0},G=g(Object.assign(Object.assign({},Z),{available:!1,longitude:null,latitude:null,city:null})),Q=g(Object.assign(Object.assign({},Z),{available:!1})),W=g(Object.assign({},Z));function X(t,n=!1){let e=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),e),{updating:n})))}function Y(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function tt(t){var n,e,a,r,c=t[0].city+"";return{c:function(){n=u("i"),e=y(),a=u("h1"),r=_(c),this.h()},l:function(t){n=f(t,"I",{class:!0}),l(n).forEach(v),e=k(t),a=f(t,"H1",{class:!0});var i=l(a);r=b(i,c),i.forEach(v),this.h()},h:function(){d(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),d(a,"class","svelte-9kdo4s")},m:function(t,c){h(t,n,c),h(t,e,c),h(t,a,c),p(a,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&$(r,c)},d:function(t){t&&v(n),t&&v(e),t&&v(a)}}}function nt(t){var n,e;function a(t,e){return 6&e&&(n=null),null==n&&(n=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),n?at:et}var r=a(t,-1),c=r(t);return{c:function(){c.c(),e=w()},l:function(t){c.l(t),e=w()},m:function(t,n){c.m(t,n),h(t,e,n)},p:function(t,n){r===(r=a(t,n))&&c?c.p(t,n):(c.d(1),(c=r(t))&&(c.c(),c.m(e.parentNode,e)))},d:function(t){c.d(t),t&&v(e)}}}function et(t){var n,e,a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),e=_(a)},l:function(t){n=f(t,"P",{});var r=l(n);e=b(r,a),r.forEach(v)},m:function(t,a){h(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&$(e,a)},d:function(t){t&&v(n)}}}function at(t){var n,e;return{c:function(){n=u("p"),e=_("There is more than 10 minutes difference between data updates")},l:function(t){n=f(t,"P",{});var a=l(n);e=b(a,"There is more than 10 minutes difference between data updates"),a.forEach(v)},m:function(t,a){h(t,n,a),p(n,e)},p:m,d:function(t){t&&v(n)}}}function rt(t){var n,e,a,r,c,i,o,s,g,w,E,D,R=t[2].now.kp+"",j=t[2].now.kp_max+"",I=t[2].now.kp_min+"";return{c:function(){n=u("h2"),e=_("KP "),a=_(R),r=y(),c=u("p"),i=u("span"),o=_("↑ KP "),s=_(j),g=y(),w=u("span"),E=_("↓ KP "),D=_(I),this.h()},l:function(t){n=f(t,"H2",{class:!0});var u=l(n);e=b(u,"KP "),a=b(u,R),u.forEach(v),r=k(t),c=f(t,"P",{});var d=l(c);i=f(d,"SPAN",{classname:!0});var h=l(i);o=b(h,"↑ KP "),s=b(h,j),h.forEach(v),g=k(d),w=f(d,"SPAN",{classname:!0});var p=l(w);E=b(p,"↓ KP "),D=b(p,I),p.forEach(v),d.forEach(v),this.h()},h:function(){d(n,"class","svelte-9kdo4s"),d(i,"classname","pr-2"),d(w,"classname","pl-2")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),h(t,r,u),h(t,c,u),p(c,i),p(i,o),p(i,s),p(c,g),p(c,w),p(w,E),p(w,D)},p:function(t,n){4&n&&R!==(R=t[2].now.kp+"")&&$(a,R),4&n&&j!==(j=t[2].now.kp_max+"")&&$(s,j),4&n&&I!==(I=t[2].now.kp_min+"")&&$(D,I)},i:m,o:m,d:function(t){t&&v(n),t&&v(r),t&&v(c)}}}function ct(t){var n,e;return n=new U({}),{c:function(){V(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:m,i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){R(n.$$.fragment,t),e=!1},d:function(t){q(n,t)}}}function it(t){var n,e,a,r,c,i,o,s,m,g,E,D,R,j,I,O=t[2].now.bz+"",V=t[2].now.bt+"",P=t[1].available&&ot(t);return{c:function(){n=u("div"),e=u("p"),a=_("BZ"),r=y(),c=u("p"),i=_(O),o=y(),s=u("div"),m=u("p"),g=_("BT"),E=y(),D=u("p"),R=_(V),j=y(),P&&P.c(),I=w(),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var d=l(e);a=b(d,"BZ"),d.forEach(v),r=k(u),c=f(u,"P",{class:!0});var h=l(c);i=b(h,O),h.forEach(v),u.forEach(v),o=k(t),s=f(t,"DIV",{});var p=l(s);m=f(p,"P",{class:!0});var y=l(m);g=b(y,"BT"),y.forEach(v),E=k(p),D=f(p,"P",{class:!0});var _=l(D);R=b(_,V),_.forEach(v),p.forEach(v),j=k(t),P&&P.l(t),I=w(),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(m,"class","svelte-9kdo4s"),d(D,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),h(t,o,u),h(t,s,u),p(s,m),p(m,g),p(s,E),p(s,D),p(D,R),h(t,j,u),P&&P.m(t,u),h(t,I,u)},p:function(t,n){4&n&&O!==(O=t[2].now.bz+"")&&$(i,O),4&n&&V!==(V=t[2].now.bt+"")&&$(R,V),t[1].available?P?P.p(t,n):((P=ot(t)).c(),P.m(I.parentNode,I)):P&&(P.d(1),P=null)},d:function(t){t&&v(n),t&&v(o),t&&v(s),t&&v(j),P&&P.d(t),t&&v(I)}}}function ot(t){var n,e,a,r,c,i,o,s,m,g,w,E,D,R,j,I=t[1].now.temp+"",O=t[1].now.clouds+"";return{c:function(){n=u("div"),e=u("p"),a=_("Temp"),r=y(),c=u("p"),i=_(I),o=_("°C"),s=y(),m=u("div"),g=u("p"),w=_("Clouds"),E=y(),D=u("p"),R=_(O),j=_("%"),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var d=l(e);a=b(d,"Temp"),d.forEach(v),r=k(u),c=f(u,"P",{class:!0});var h=l(c);i=b(h,I),o=b(h,"°C"),h.forEach(v),u.forEach(v),s=k(t),m=f(t,"DIV",{});var p=l(m);g=f(p,"P",{class:!0});var y=l(g);w=b(y,"Clouds"),y.forEach(v),E=k(p),D=f(p,"P",{class:!0});var _=l(D);R=b(_,O),j=b(_,"%"),_.forEach(v),p.forEach(v),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(g,"class","svelte-9kdo4s"),d(D,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(c,o),h(t,s,u),h(t,m,u),p(m,g),p(g,w),p(m,E),p(m,D),p(D,R),p(D,j)},p:function(t,n){2&n&&I!==(I=t[1].now.temp+"")&&$(i,I),2&n&&O!==(O=t[1].now.clouds+"")&&$(R,O)},d:function(t){t&&v(n),t&&v(s),t&&v(m)}}}function st(t){var n,e,a,r,c,i,o,s,m,g,_,b,$=!t[0].updating&&t[0].available&&!t[1].updating&&!t[2].updating&&tt(t),w=!t[1].updating&&!t[2].updating&&nt(t),O=[ct,rt],V=[];function P(t,n){return t[2].updating||t[1].updating?0:1}s=P(t),m=V[s]=O[s](t);var x=!t[2].updating&&!t[1].updating&&it(t);return{c:function(){n=u("div"),e=u("div"),a=u("div"),$&&$.c(),r=y(),c=u("div"),w&&w.c(),i=y(),o=u("div"),m.c(),g=y(),_=u("div"),x&&x.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0});var d=l(a);$&&$.l(d),d.forEach(v),r=k(u),c=f(u,"DIV",{class:!0});var h=l(c);w&&w.l(h),h.forEach(v),i=k(u),o=f(u,"DIV",{class:!0});var p=l(o);m.l(p),p.forEach(v),g=k(u),_=f(u,"DIV",{class:!0});var y=l(_);x&&x.l(y),y.forEach(v),u.forEach(v),s.forEach(v),this.h()},h:function(){d(a,"class","weatherCurrent-data-location svelte-9kdo4s"),d(c,"class","weatherCurrent-data-date"),d(o,"class","weatherCurrent-data-kp svelte-9kdo4s"),d(_,"class","current-details svelte-9kdo4s"),d(e,"class","weatherCurrent-data svelte-9kdo4s"),d(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),$&&$.m(a,null),p(e,r),p(e,c),w&&w.m(c,null),p(e,i),p(e,o),V[s].m(o,null),p(e,g),p(e,_),x&&x.m(_,null),b=!0},p:function(t,n){var e=E(n,1)[0];t[0].updating||!t[0].available||t[1].updating||t[2].updating?$&&($.d(1),$=null):$?$.p(t,e):(($=tt(t)).c(),$.m(a,null)),t[1].updating||t[2].updating?w&&(w.d(1),w=null):w?w.p(t,e):((w=nt(t)).c(),w.m(c,null));var r=s;(s=P(t))===r?V[s].p(t,e):(D(),R(V[r],1,1,(function(){V[r]=null})),j(),(m=V[s])?m.p(t,e):(m=V[s]=O[s](t)).c(),I(m,1),m.m(o,null)),t[2].updating||t[1].updating?x&&(x.d(1),x=null):x?x.p(t,e):((x=it(t)).c(),x.m(_,null))},i:function(t){b||(I(m),b=!0)},o:function(t){R(m),b=!1},d:function(t){t&&v(n),$&&$.d(),w&&w.d(),V[s].d(),x&&x.d()}}}function ut(t,n,e){var a,r,c;return O(t,G,(function(t){return e(0,a=t)})),O(t,Q,(function(t){return e(1,r=t)})),O(t,W,(function(t){return e(2,c=t)})),[a,r,c]}!async function(){if("undefined"==typeof window)return;let t;X(G,!0);try{t=await async function(){return new Promise(((t,n)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((n=>{t({longitude:n.coords.longitude,latitude:n.coords.latitude})}),(t=>{n(t)})):n(Error())}))}()}catch(t){return console.log(t),G.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void X(G,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),e=await n.json();G.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:e.city}),t))),X(G,!1)}(),G.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return Q.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void X(Q,!1);X(Q,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),e=await n.json(),a={clouds:null,temp:null};try{a.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}Q.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:e,now:a,available:!0}))),X(Q,!1)})),async function(){if("undefined"==typeof window)return;X(W,!0);let t=await async function(){let t,n={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},e=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");n.usnoaa_data_raw.solar_wind_mag_field=await e.json(),n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),n.now.bz=n.usnoaa_data_raw.solar_wind_mag_field.Bz,n.now.bt=n.usnoaa_data_raw.solar_wind_mag_field.Bt,e=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),t=await e.json(),t=t.map((t=>Object.assign(Object.assign({},t),{model_prediction_time:new Date(t.model_prediction_time)}))),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=t,e=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),t=await e.text(),t=[...t.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],t=t.map((t=>Object.assign(Object.assign({},t.groups),{time:new Date(t.groups.time+" UTC")}))),n.usnoaa_data_raw.outlook_27_day=t,e=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=await e.json(),n.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let a=new Date,r=new Date(0,0,0),c=1e3,i=0;return n.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,e)=>{t[1]>i&&(i=t[1]),t[1]<c&&(c=t[1]);let o=new Date(t[0]+" UTC");Math.abs(o.getTime()-a.getTime())<Math.abs(r.getTime()-a.getTime())&&(r=o,n.now.kp=t[1]),n.usnoaa_data_raw.noaa_planetary_k_index_forecast[e]={time:o,kp:t[1],observed:t[2]}})),n.now.kp_min=c.toString(),n.now.kp_max=i.toString(),console.log(n),n}();W.update((n=>Object.assign(Object.assign({},n),t))),X(W,!1)}();var ft=function(n){t(u,s);var e=Y(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,ut,st,c,{}),n}return o(u)}();function lt(t,n,e,a,r,c,i){try{var o=t[c](i),s=o.value}catch(t){return void e(t)}o.done?n(s):Promise.resolve(s).then(a,r)}function vt(t){return function(){var n=this,e=arguments;return new Promise((function(a,r){var c=t.apply(n,e);function i(t){lt(c,a,r,i,o,"next",t)}function o(t){lt(c,a,r,i,o,"throw",t)}i(void 0)}))}}function dt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function ht(t){var n,e,a=t[1].default,r=T(a,t,t[0],null);return{c:function(){n=u("div"),r&&r.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);r&&r.l(e),e.forEach(v),this.h()},h:function(){d(n,"class","chip svelte-1jb0ny7")},m:function(t,a){h(t,n,a),r&&r.m(n,null),e=!0},p:function(t,n){var c=E(n,1)[0];r&&r.p&&(!e||1&c)&&M(r,a,t,t[0],e?S(a,t[0],c,null):B(t[0]),null)},i:function(t){e||(I(r,t),e=!0)},o:function(t){R(r,t),e=!1},d:function(t){t&&v(n),r&&r.d(t)}}}function pt(t,n,e){var a=n.$$slots,r=void 0===a?{}:a,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,r]}var mt=function(n){t(u,s);var e=dt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,pt,ht,c,{}),n}return o(u)}();function gt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function yt(t){var n,e,a,r,c,i;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=y(),c=u("span"),i=_(t[1]),this.h()},l:function(o){n=f(o,"DIV",{class:!0,style:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0}),l(a).forEach(v),u.forEach(v),r=k(s),c=f(s,"SPAN",{class:!0});var d=l(c);i=b(d,t[1]),d.forEach(v),s.forEach(v),this.h()},h:function(){d(a,"class","bar svelte-1mo8cjf"),d(e,"class","bar-wrapper svelte-1mo8cjf"),d(c,"class","value svelte-1mo8cjf"),d(n,"class","wrapper svelte-1mo8cjf"),N(n,"--progress",100*t[0]+"%")},m:function(t,o){h(t,n,o),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i)},p:function(t,e){var a=E(e,1)[0];2&a&&$(i,t[1]),1&a&&N(n,"--progress",100*t[0]+"%")},i:m,o:m,d:function(t){t&&v(n)}}}function _t(t,n,e){var a=n.percentage,r=n.value;return t.$$set=function(t){"percentage"in t&&e(0,a=t.percentage),"value"in t&&e(1,r=t.value)},[a,r]}var kt=function(n){t(u,s);var e=gt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,_t,yt,c,{percentage:0,value:1}),n}return o(u)}();function bt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function $t(t){var n,e,a,r,c,i,o,s,g,$,w,D,j;$=new kt({props:{percentage:t[0]/9,value:t[0]}});var O=t[5]&&function(t){var n,e,a,r,c,i,o,s,g,$,w,E,D=Math.round(t[3])+"",R=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(D),i=_("°C"),o=y(),s=u("p"),g=u("i"),$=y(),w=_(R),E=_("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var d=l(e);a=f(d,"I",{class:!0}),l(a).forEach(v),r=k(d),c=b(d,D),i=b(d,"°C"),d.forEach(v),o=k(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(v),$=k(h),w=b(h,R),E=b(h,"%"),h.forEach(v),u.forEach(v),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(g,"class","fas fa-cloud svelte-m9qkku"),d(s,"class","svelte-m9qkku"),d(n,"class","svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,$),p(s,w),p(s,E)},p:m,d:function(t){t&&v(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[2]),c=y(),i=u("p"),o=_(t[1]),s=y(),g=u("div"),V($.$$.fragment),w=y(),D=u("div"),O&&O.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=b(p,t[2]),p.forEach(v),c=k(h),i=f(h,"P",{class:!0});var m=l(i);o=b(m,t[1]),m.forEach(v),h.forEach(v),s=k(d),g=f(d,"DIV",{class:!0});var y=l(g);P($.$$.fragment,y),y.forEach(v),w=k(d),D=f(d,"DIV",{class:!0});var _=l(D);O&&O.l(_),_.forEach(v),d.forEach(v),this.h()},h:function(){d(a,"class","svelte-m9qkku"),d(i,"class","svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(g,"class","KP svelte-m9qkku"),d(D,"class","data svelte-m9qkku"),d(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,g),x($,g,null),p(n,w),p(n,D),O&&O.m(D,null),j=!0},p:function(t,n){var e=E(n,1)[0];t[5]&&O.p(t,e)},i:function(t){j||(I($.$$.fragment,t),j=!0)},o:function(t){R($.$$.fragment,t),j=!1},d:function(t){t&&v(n),q($),O&&O.d()}}}function wt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Et(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=wt(a.time.getHours().toString())+":"+wt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,i,o,s,u,a]}var Dt=function(n){t(u,s);var e=bt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Et,$t,c,{prediction:6}),n}return o(u)}();function Rt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function jt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function It(t){var n,e;return n=new Dt({props:{prediction:t[5]}}),{c:function(){V(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){R(n.$$.fragment,t),e=!1},d:function(t){q(n,t)}}}function Ot(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=It(jt(t,a,c));var i=function(t){return R(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(v),this.h()},h:function(){d(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=E(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=jt(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=It(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);j()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)R(r[n]);e=!1},d:function(t){t&&v(n),C(r,t)}}}function Vt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=vt(A.mark((function t(){var n;return A.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>18e6)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return O(t,Q,(function(t){return e(1,a=t)})),O(t,W,(function(t){return e(2,r=t)})),W.subscribe(i),Q.subscribe(i),[c]}var Pt=function(n){t(u,s);var e=Rt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Vt,Ot,c,{}),n}return o(u)}();function xt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function qt(t){var n,e,a;return e=new mt({props:{$$slots:{default:[Tt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),V(e.$$.fragment),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var a=l(n);P(e.$$.fragment,a),a.forEach(v),this.h()},h:function(){d(n,"class","svelte-m9qkku")},m:function(t,r){h(t,n,r),x(e,n,null),a=!0},p:function(t,n){var a={};257&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i:function(t){a||(I(e.$$.fragment,t),a=!0)},o:function(t){R(e.$$.fragment,t),a=!1},d:function(t){t&&v(n),q(e)}}}function Tt(t){var n,e=t[0].observed+"";return{c:function(){n=_(e)},l:function(t){n=b(t,e)},m:function(t,e){h(t,n,e)},p:function(t,a){1&a&&e!==(e=t[0].observed+"")&&$(n,e)},d:function(t){t&&v(n)}}}function Mt(t){var n,e,a,r,c,i,o,s,g,$,w,O,T,M,B="predicted"!=t[0].observed&&qt(t);w=new kt({props:{percentage:t[1]/9,value:t[1]}});var S=t[6]&&function(t){var n,e,a,r,c,i,o,s,g,$,w,E,D=Math.round(t[4])+"",R=Math.round(t[5])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(D),i=_("°C"),o=y(),s=u("p"),g=u("i"),$=y(),w=_(R),E=_("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var d=l(e);a=f(d,"I",{class:!0}),l(a).forEach(v),r=k(d),c=b(d,D),i=b(d,"°C"),d.forEach(v),o=k(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(v),$=k(h),w=b(h,R),E=b(h,"%"),h.forEach(v),u.forEach(v),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(g,"class","fas fa-cloud svelte-m9qkku"),d(s,"class","svelte-m9qkku"),d(n,"class","svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,$),p(s,w),p(s,E)},p:m,d:function(t){t&&v(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[3]),c=y(),i=u("p"),o=_(t[2]),s=y(),B&&B.c(),g=y(),$=u("div"),V(w.$$.fragment),O=y(),T=u("div"),S&&S.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=b(p,t[3]),p.forEach(v),c=k(h),i=f(h,"P",{class:!0});var m=l(i);o=b(m,t[2]),m.forEach(v),h.forEach(v),s=k(d),B&&B.l(d),g=k(d),$=f(d,"DIV",{class:!0});var y=l($);P(w.$$.fragment,y),y.forEach(v),O=k(d),T=f(d,"DIV",{class:!0});var _=l(T);S&&S.l(_),_.forEach(v),d.forEach(v),this.h()},h:function(){d(a,"class","svelte-m9qkku"),d(i,"class","svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d($,"class","KP svelte-m9qkku"),d(T,"class","data svelte-m9qkku"),d(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),B&&B.m(n,null),p(n,g),p(n,$),x(w,$,null),p(n,O),p(n,T),S&&S.m(T,null),M=!0},p:function(t,e){var a=E(e,1)[0];"predicted"!=t[0].observed?B?(B.p(t,a),1&a&&I(B,1)):((B=qt(t)).c(),I(B,1),B.m(n,g)):B&&(D(),R(B,1,1,(function(){B=null})),j()),t[6]&&S.p(t,a)},i:function(t){M||(I(B),I(w.$$.fragment,t),M=!0)},o:function(t){R(B),R(w.$$.fragment,t),M=!1},d:function(t){t&&v(n),B&&B.d(),q(w),S&&S.d()}}}function Bt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function St(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Bt(a.time.getHours().toString())+":"+Bt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,a=t.prediction)},[a,r,c,i,o,s,u]}var Nt=function(n){t(u,s);var e=xt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,St,Mt,c,{prediction:0}),n}return o(u)}();function Ct(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function At(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Ht(t){var n,e;return n=new Nt({props:{prediction:t[5]}}),{c:function(){V(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){R(n.$$.fragment,t),e=!1},d:function(t){q(n,t)}}}function Jt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Ht(At(t,a,c));var i=function(t){return R(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(v),this.h()},h:function(){d(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=E(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=At(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=Ht(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);j()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)R(r[n]);e=!1},d:function(t){t&&v(n),C(r,t)}}}function Kt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=vt(A.mark((function t(){var n;return A.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())&&(o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return O(t,Q,(function(t){return e(1,a=t)})),O(t,W,(function(t){return e(2,r=t)})),W.subscribe(i),Q.subscribe(i),[c]}var zt=function(n){t(u,s);var e=Ct(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Kt,Jt,c,{}),n}return o(u)}();function Ft(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Lt(t){var n,e,a,r,c,i,o,s,m,g;return o=new kt({props:{percentage:t[0]/9,value:t[0]}}),{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[1]),c=y(),i=u("div"),V(o.$$.fragment),s=y(),m=u("div"),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=b(p,t[1]),p.forEach(v),h.forEach(v),c=k(d),i=f(d,"DIV",{class:!0});var g=l(i);P(o.$$.fragment,g),g.forEach(v),s=k(d),m=f(d,"DIV",{class:!0}),l(m).forEach(v),d.forEach(v),this.h()},h:function(){d(a,"class","svelte-m9qkku"),d(e,"class","svelte-m9qkku"),d(i,"class","KP svelte-m9qkku"),d(m,"class","data svelte-m9qkku"),d(n,"class","prediction-details svelte-m9qkku")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(n,c),p(n,i),x(o,i,null),p(n,s),p(n,m),g=!0},p:function(t,n){E(n,1)[0]},i:function(t){g||(I(o.$$.fragment,t),g=!0)},o:function(t){R(o.$$.fragment,t),g=!1},d:function(t){t&&v(n),q(o)}}}function Ut(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Zt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()];Ut(a.time.getHours().toString()),Ut(a.time.getMinutes().toString());var i=a.temp,o=a.clouds;return t.$$set=function(t){"prediction"in t&&e(4,a=t.prediction)},[r,c,i,o,a]}var Gt=function(n){t(u,s);var e=Ft(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Zt,Lt,c,{prediction:4}),n}return o(u)}();function Qt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Wt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Xt(t){var n,e;return n=new Gt({props:{prediction:t[5]}}),{c:function(){V(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){x(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){R(n.$$.fragment,t),e=!1},d:function(t){q(n,t)}}}function Yt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Xt(Wt(t,a,c));var i=function(t){return R(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(v),this.h()},h:function(){d(n,"class","prediction-table svelte-1uc0m3l")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=E(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Wt(t,a,o);r[o]?(r[o].p(s,c),I(r[o],1)):(r[o]=Xt(s),r[o].c(),I(r[o],1),r[o].m(n,null))}for(D(),o=a.length;o<r.length;o+=1)i(o);j()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)I(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)R(r[n]);e=!1},d:function(t){t&&v(n),C(r,t)}}}function tn(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=vt(A.mark((function t(){var n;return A.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.outlook_27_day.filter((function(t){return t.time>=new Date})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kindex,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>864e5)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return O(t,Q,(function(t){return e(1,a=t)})),O(t,W,(function(t){return e(2,r=t)})),W.subscribe(i),Q.subscribe(i),[c]}var nn=function(n){t(u,s);var e=Qt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,tn,Yt,c,{}),n}return o(u)}();function en(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function an(t){var n,e,a,r,c;return{c:function(){n=u("div"),e=u("i"),a=y(),r=u("p"),c=_("No prediction data"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var i=l(n);e=f(i,"I",{class:!0}),l(e).forEach(v),a=k(i),r=f(i,"P",{});var o=l(r);c=b(o,"No prediction data"),o.forEach(v),i.forEach(v),this.h()},h:function(){d(e,"class","fas fa-7x fa-exclamation-triangle"),d(n,"class","no-data svelte-5bytj")},m:function(t,i){h(t,n,i),p(n,e),p(n,a),p(n,r),p(r,c)},p:m,i:m,o:m,d:function(t){t&&v(n)}}}function rn(t){var n,e,a,r,c,i,o,s,m,g,$,E,O,T,M,B,S,N,C,A=t[0];return A&&(M=new A({})),{c:function(){n=u("div"),e=u("h2"),a=_("Forecast"),r=y(),c=u("div"),i=u("div"),o=_("hour"),s=y(),m=u("div"),g=_("3 day"),$=y(),E=u("div"),O=_("Long time"),T=y(),M&&V(M.$$.fragment),B=w(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"H2",{class:!0});var d=l(e);a=b(d,"Forecast"),d.forEach(v),r=k(u),c=f(u,"DIV",{class:!0});var h=l(c);i=f(h,"DIV",{class:!0});var p=l(i);o=b(p,"hour"),p.forEach(v),s=k(h),m=f(h,"DIV",{class:!0});var y=l(m);g=b(y,"3 day"),y.forEach(v),$=k(h),E=f(h,"DIV",{class:!0});var _=l(E);O=b(_,"Long time"),_.forEach(v),h.forEach(v),u.forEach(v),T=k(t),M&&P(M.$$.fragment,t),B=w(),this.h()},h:function(){d(e,"class","svelte-5bytj"),d(i,"class","svelte-5bytj"),H(i,"selected",t[0]==Pt),d(m,"class","svelte-5bytj"),H(m,"selected",t[0]==zt),d(E,"class","svelte-5bytj"),H(E,"selected",t[0]==nn),d(c,"class","version-picker svelte-5bytj"),d(n,"class","header svelte-5bytj")},m:function(u,f){h(u,n,f),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(i,o),p(c,s),p(c,m),p(m,g),p(c,$),p(c,E),p(E,O),h(u,T,f),M&&x(M,u,f),h(u,B,f),S=!0,N||(C=[J(i,"click",t[3]),J(m,"click",t[4]),J(E,"click",t[5])],N=!0)},p:function(t,n){if(1&n&&H(i,"selected",t[0]==Pt),1&n&&H(m,"selected",t[0]==zt),1&n&&H(E,"selected",t[0]==nn),A!==(A=t[0])){if(M){D();var e=M;R(e.$$.fragment,1,0,(function(){q(e,1)})),j()}A?(M=new A({}),V(M.$$.fragment),I(M.$$.fragment,1),x(M,B.parentNode,B)):M=null}},i:function(t){S||(M&&I(M.$$.fragment,t),S=!0)},o:function(t){M&&R(M.$$.fragment,t),S=!1},d:function(t){t&&v(n),t&&v(T),t&&v(B),M&&q(M,t),N=!1,K(C)}}}function cn(t){var n,e,a,r,c=[rn,an],i=[];function o(t,n){return t[1].updating||t[2].updating?1:0}return e=o(t),a=i[e]=c[e](t),{c:function(){n=u("div"),a.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);a.l(e),e.forEach(v),this.h()},h:function(){d(n,"class","drawer svelte-5bytj")},m:function(t,a){h(t,n,a),i[e].m(n,null),r=!0},p:function(t,r){var s=E(r,1)[0],u=e;(e=o(t))===u?i[e].p(t,s):(D(),R(i[u],1,1,(function(){i[u]=null})),j(),(a=i[e])?a.p(t,s):(a=i[e]=c[e](t)).c(),I(a,1),a.m(n,null))},i:function(t){r||(I(a),r=!0)},o:function(t){R(a),r=!1},d:function(t){t&&v(n),i[e].d()}}}function on(t,n,e){var a,r;O(t,Q,(function(t){return e(1,a=t)})),O(t,W,(function(t){return e(2,r=t)}));var c=zt;return[c,a,r,function(){return e(0,c=Pt)},function(){return e(0,c=zt)},function(){return e(0,c=nn)}]}var sn=function(n){t(u,s);var e=en(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,on,cn,c,{}),n}return o(u)}();function un(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function fn(t){var n,e,a,r,c,i;return a=new ft({}),c=new sn({}),{c:function(){n=y(),e=u("div"),V(a.$$.fragment),r=y(),V(c.$$.fragment),this.h()},l:function(t){z('[data-svelte="svelte-1q3846k"]',document.head).forEach(v),n=k(t),e=f(t,"DIV",{class:!0});var i=l(e);P(a.$$.fragment,i),r=k(i),P(c.$$.fragment,i),i.forEach(v),this.h()},h:function(){document.title="Aurora data",d(e,"class","homescreen svelte-pf4p6y")},m:function(t,o){h(t,n,o),h(t,e,o),x(a,e,null),p(e,r),x(c,e,null),i=!0},p:m,i:function(t){i||(I(a.$$.fragment,t),I(c.$$.fragment,t),i=!0)},o:function(t){R(a.$$.fragment,t),R(c.$$.fragment,t),i=!1},d:function(t){t&&v(n),t&&v(e),q(a),q(c)}}}var ln=function(n){t(u,s);var e=un(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,fn,c,{}),n}return o(u)}();export{ln as default}; diff --git a/client/legacy/index.7f481a6e.js b/client/legacy/index.7f481a6e.js deleted file mode 100644 index 044d8b6..0000000 --- a/client/legacy/index.7f481a6e.js +++ /dev/null @@ -1 +0,0 @@ -import{_ as t,a as n,b as e,c as a,i as r,s as c,d as i,e as o,S as s,f as u,g as f,h as l,j as v,k as d,l as h,m as p,n as m,w as g,o as y,t as _,p as $,q as w,r as b,u as E,v as D,x as k,y as R,z as I,A as O,B as V,C as x,D as P,E as q,F as j,G as T,H as z,I as M,J as B,K as S,L as N,M as C,N as A,O as H,P as J,Q as K}from"./client.1a413fbb.js";function F(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function L(t){var n,e,a,r,c,i,o,s,g;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=u("div"),c=u("div"),i=u("div"),o=u("div"),s=u("div"),g=u("div"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"DIV",{class:!0}),l(e).forEach(v),a=f(u,"DIV",{class:!0}),l(a).forEach(v),r=f(u,"DIV",{class:!0}),l(r).forEach(v),c=f(u,"DIV",{class:!0}),l(c).forEach(v),i=f(u,"DIV",{class:!0}),l(i).forEach(v),o=f(u,"DIV",{class:!0}),l(o).forEach(v),s=f(u,"DIV",{class:!0}),l(s).forEach(v),g=f(u,"DIV",{class:!0}),l(g).forEach(v),u.forEach(v),this.h()},h:function(){d(e,"class","svelte-7k6qu0"),d(a,"class","svelte-7k6qu0"),d(r,"class","svelte-7k6qu0"),d(c,"class","svelte-7k6qu0"),d(i,"class","svelte-7k6qu0"),d(o,"class","svelte-7k6qu0"),d(s,"class","svelte-7k6qu0"),d(g,"class","svelte-7k6qu0"),d(n,"class","lds-roller svelte-7k6qu0")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),p(n,r),p(n,c),p(n,i),p(n,o),p(n,s),p(n,g)},p:m,i:m,o:m,d:function(t){t&&v(n)}}}var U=function(n){t(u,s);var e=F(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,L,c,{}),n}return o(u)}();const Z={updated:!1,updating:!0},G=g(Object.assign(Object.assign({},Z),{available:!1,longitude:null,latitude:null,city:null})),Q=g(Object.assign(Object.assign({},Z),{available:!1})),W=g(Object.assign({},Z));function X(t,n=!1){let e=n?{}:{updated:new Date};t.update((t=>Object.assign(Object.assign(Object.assign({},t),e),{updating:n})))}function Y(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function tt(t){var n,e,a,r,c=t[0].city+"";return{c:function(){n=u("i"),e=y(),a=u("h1"),r=_(c),this.h()},l:function(t){n=f(t,"I",{class:!0}),l(n).forEach(v),e=$(t),a=f(t,"H1",{class:!0});var i=l(a);r=w(i,c),i.forEach(v),this.h()},h:function(){d(n,"class","symbol fas fa-map-marker-alt svelte-9kdo4s"),d(a,"class","svelte-9kdo4s")},m:function(t,c){h(t,n,c),h(t,e,c),h(t,a,c),p(a,r)},p:function(t,n){1&n&&c!==(c=t[0].city+"")&&b(r,c)},d:function(t){t&&v(n),t&&v(e),t&&v(a)}}}function nt(t){var n,e;function a(t,e){return 6&e&&(n=null),null==n&&(n=!!(Math.abs(t[1].updated-t[2].updated)>6e5)),n?at:et}var r=a(t,-1),c=r(t);return{c:function(){c.c(),e=E()},l:function(t){c.l(t),e=E()},m:function(t,n){c.m(t,n),h(t,e,n)},p:function(t,n){r===(r=a(t,n))&&c?c.p(t,n):(c.d(1),(c=r(t))&&(c.c(),c.m(e.parentNode,e)))},d:function(t){c.d(t),t&&v(e)}}}function et(t){var n,e,a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"";return{c:function(){n=u("p"),e=_(a)},l:function(t){n=f(t,"P",{});var r=l(n);e=w(r,a),r.forEach(v)},m:function(t,a){h(t,n,a),p(n,e)},p:function(t,n){2&n&&a!==(a=t[1].updated.toLocaleString("no-NO",{dateStyle:"medium",timeStyle:"short"})+"")&&b(e,a)},d:function(t){t&&v(n)}}}function at(t){var n,e;return{c:function(){n=u("p"),e=_("There is more than 10 minutes difference between data updates")},l:function(t){n=f(t,"P",{});var a=l(n);e=w(a,"There is more than 10 minutes difference between data updates"),a.forEach(v)},m:function(t,a){h(t,n,a),p(n,e)},p:m,d:function(t){t&&v(n)}}}function rt(t){var n,e,a,r,c,i,o,s,g,E,D,k,R=t[2].now.kp+"",I=t[2].now.kp_max+"",O=t[2].now.kp_min+"";return{c:function(){n=u("h2"),e=_("KP "),a=_(R),r=y(),c=u("p"),i=u("span"),o=_("↑ KP "),s=_(I),g=y(),E=u("span"),D=_("↓ KP "),k=_(O),this.h()},l:function(t){n=f(t,"H2",{class:!0});var u=l(n);e=w(u,"KP "),a=w(u,R),u.forEach(v),r=$(t),c=f(t,"P",{});var d=l(c);i=f(d,"SPAN",{classname:!0});var h=l(i);o=w(h,"↑ KP "),s=w(h,I),h.forEach(v),g=$(d),E=f(d,"SPAN",{classname:!0});var p=l(E);D=w(p,"↓ KP "),k=w(p,O),p.forEach(v),d.forEach(v),this.h()},h:function(){d(n,"class","svelte-9kdo4s"),d(i,"classname","pr-2"),d(E,"classname","pl-2")},m:function(t,u){h(t,n,u),p(n,e),p(n,a),h(t,r,u),h(t,c,u),p(c,i),p(i,o),p(i,s),p(c,g),p(c,E),p(E,D),p(E,k)},p:function(t,n){4&n&&R!==(R=t[2].now.kp+"")&&b(a,R),4&n&&I!==(I=t[2].now.kp_max+"")&&b(s,I),4&n&&O!==(O=t[2].now.kp_min+"")&&b(k,O)},i:m,o:m,d:function(t){t&&v(n),t&&v(r),t&&v(c)}}}function ct(t){var n,e;return n=new U({}),{c:function(){x(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){q(n,t,a),e=!0},p:m,i:function(t){e||(O(n.$$.fragment,t),e=!0)},o:function(t){R(n.$$.fragment,t),e=!1},d:function(t){j(n,t)}}}function it(t){var n,e,a,r,c,i,o,s,m,g,D,k,R,I,O,V=t[2].now.bz+"",x=t[2].now.bt+"",P=t[1].available&&ot(t);return{c:function(){n=u("div"),e=u("p"),a=_("BZ"),r=y(),c=u("p"),i=_(V),o=y(),s=u("div"),m=u("p"),g=_("BT"),D=y(),k=u("p"),R=_(x),I=y(),P&&P.c(),O=E(),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var d=l(e);a=w(d,"BZ"),d.forEach(v),r=$(u),c=f(u,"P",{class:!0});var h=l(c);i=w(h,V),h.forEach(v),u.forEach(v),o=$(t),s=f(t,"DIV",{});var p=l(s);m=f(p,"P",{class:!0});var y=l(m);g=w(y,"BT"),y.forEach(v),D=$(p),k=f(p,"P",{class:!0});var _=l(k);R=w(_,x),_.forEach(v),p.forEach(v),I=$(t),P&&P.l(t),O=E(),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(m,"class","svelte-9kdo4s"),d(k,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),h(t,o,u),h(t,s,u),p(s,m),p(m,g),p(s,D),p(s,k),p(k,R),h(t,I,u),P&&P.m(t,u),h(t,O,u)},p:function(t,n){4&n&&V!==(V=t[2].now.bz+"")&&b(i,V),4&n&&x!==(x=t[2].now.bt+"")&&b(R,x),t[1].available?P?P.p(t,n):((P=ot(t)).c(),P.m(O.parentNode,O)):P&&(P.d(1),P=null)},d:function(t){t&&v(n),t&&v(o),t&&v(s),t&&v(I),P&&P.d(t),t&&v(O)}}}function ot(t){var n,e,a,r,c,i,o,s,m,g,E,D,k,R,I,O=t[1].now.temp+"",V=t[1].now.clouds+"";return{c:function(){n=u("div"),e=u("p"),a=_("Temp"),r=y(),c=u("p"),i=_(O),o=_("°C"),s=y(),m=u("div"),g=u("p"),E=_("Clouds"),D=y(),k=u("p"),R=_(V),I=_("%"),this.h()},l:function(t){n=f(t,"DIV",{});var u=l(n);e=f(u,"P",{class:!0});var d=l(e);a=w(d,"Temp"),d.forEach(v),r=$(u),c=f(u,"P",{class:!0});var h=l(c);i=w(h,O),o=w(h,"°C"),h.forEach(v),u.forEach(v),s=$(t),m=f(t,"DIV",{});var p=l(m);g=f(p,"P",{class:!0});var y=l(g);E=w(y,"Clouds"),y.forEach(v),D=$(p),k=f(p,"P",{class:!0});var _=l(k);R=w(_,V),I=w(_,"%"),_.forEach(v),p.forEach(v),this.h()},h:function(){d(e,"class","svelte-9kdo4s"),d(c,"class","svelte-9kdo4s"),d(g,"class","svelte-9kdo4s"),d(k,"class","svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(c,o),h(t,s,u),h(t,m,u),p(m,g),p(g,E),p(m,D),p(m,k),p(k,R),p(k,I)},p:function(t,n){2&n&&O!==(O=t[1].now.temp+"")&&b(i,O),2&n&&V!==(V=t[1].now.clouds+"")&&b(R,V)},d:function(t){t&&v(n),t&&v(s),t&&v(m)}}}function st(t){var n,e,a,r,c,i,o,s,m,g,_,w,b=!t[0].updating&&t[0].available&&!t[1].updating&&!t[2].updating&&tt(t),E=!t[1].updating&&!t[2].updating&&nt(t),V=[ct,rt],x=[];function P(t,n){return t[2].updating||t[1].updating?0:1}s=P(t),m=x[s]=V[s](t);var q=!t[2].updating&&!t[1].updating&&it(t);return{c:function(){n=u("div"),e=u("div"),a=u("div"),b&&b.c(),r=y(),c=u("div"),E&&E.c(),i=y(),o=u("div"),m.c(),g=y(),_=u("div"),q&&q.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0});var d=l(a);b&&b.l(d),d.forEach(v),r=$(u),c=f(u,"DIV",{class:!0});var h=l(c);E&&E.l(h),h.forEach(v),i=$(u),o=f(u,"DIV",{class:!0});var p=l(o);m.l(p),p.forEach(v),g=$(u),_=f(u,"DIV",{class:!0});var y=l(_);q&&q.l(y),y.forEach(v),u.forEach(v),s.forEach(v),this.h()},h:function(){d(a,"class","weatherCurrent-data-location svelte-9kdo4s"),d(c,"class","weatherCurrent-data-date"),d(o,"class","weatherCurrent-data-kp svelte-9kdo4s"),d(_,"class","current-details svelte-9kdo4s"),d(e,"class","weatherCurrent-data svelte-9kdo4s"),d(n,"class","weatherCurrent-wrapper svelte-9kdo4s")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),b&&b.m(a,null),p(e,r),p(e,c),E&&E.m(c,null),p(e,i),p(e,o),x[s].m(o,null),p(e,g),p(e,_),q&&q.m(_,null),w=!0},p:function(t,n){var e=D(n,1)[0];t[0].updating||!t[0].available||t[1].updating||t[2].updating?b&&(b.d(1),b=null):b?b.p(t,e):((b=tt(t)).c(),b.m(a,null)),t[1].updating||t[2].updating?E&&(E.d(1),E=null):E?E.p(t,e):((E=nt(t)).c(),E.m(c,null));var r=s;(s=P(t))===r?x[s].p(t,e):(k(),R(x[r],1,1,(function(){x[r]=null})),I(),(m=x[s])?m.p(t,e):(m=x[s]=V[s](t)).c(),O(m,1),m.m(o,null)),t[2].updating||t[1].updating?q&&(q.d(1),q=null):q?q.p(t,e):((q=it(t)).c(),q.m(_,null))},i:function(t){w||(O(m),w=!0)},o:function(t){R(m),w=!1},d:function(t){t&&v(n),b&&b.d(),E&&E.d(),x[s].d(),q&&q.d()}}}function ut(t,n,e){var a,r,c;return V(t,G,(function(t){return e(0,a=t)})),V(t,Q,(function(t){return e(1,r=t)})),V(t,W,(function(t){return e(2,c=t)})),[a,r,c]}!async function(){if("undefined"==typeof window)return;let t;X(G,!0);try{t=await async function(){return new Promise(((t,n)=>{"undefined"!=typeof navigator?navigator.geolocation.getCurrentPosition((n=>{t({longitude:n.coords.longitude,latitude:n.coords.latitude})}),(t=>{n(t)})):n(Error())}))}()}catch(t){return console.log(t),G.update((t=>Object.assign(Object.assign({},t),{available:!1,city:null,longitude:null,latitude:null}))),void X(G,!1)}let n=await fetch(`https://geocode.xyz/${t.latitude},${t.longitude}?geoit=json`),e=await n.json();G.update((n=>Object.assign(Object.assign(Object.assign({},n),{available:!0,city:e.city}),t))),X(G,!1)}(),G.subscribe((async function(t=null){if("undefined"==typeof window)return;if(null===t)return;if(t.updating)return;if(!t.available)return Q.update((t=>Object.assign(Object.assign({},t),{available:!1}))),void X(Q,!1);X(Q,!0);let n=await fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${t.latitude}&lon=${t.longitude}`),e=await n.json(),a={clouds:null,temp:null};try{a.clouds=e.properties.timeseries[0].data.instant.details.cloud_area_fraction,a.temp=e.properties.timeseries[0].data.instant.details.air_temperature,e.properties.timeseries=e.properties.timeseries.map((t=>Object.assign(Object.assign({},t),{time:new Date(t.time)})))}catch(t){}Q.update((t=>Object.assign(Object.assign({},t),{yr_data_raw:e,now:a,available:!0}))),X(Q,!1)})),async function(){if("undefined"==typeof window)return;X(W,!0);let t=await async function(){let t,n={now:{bz:"-",bt:"-",kp:"-",kp_min:"-",kp_max:"-"},usnoaa_data_raw:{solar_wind_mag_field:!1,noaa_planetary_k_index_forecast:!1,geospace_pred_est_kp_1_hour:!1,outlook_27_day:!1}},e=await fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json");n.usnoaa_data_raw.solar_wind_mag_field=await e.json(),n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp=new Date(n.usnoaa_data_raw.solar_wind_mag_field.TimeStamp+" UTC"),n.now.bz=n.usnoaa_data_raw.solar_wind_mag_field.Bz,n.now.bt=n.usnoaa_data_raw.solar_wind_mag_field.Bt,e=await fetch("https://services.swpc.noaa.gov/json/geospace/geospace_pred_est_kp_1_hour.json"),t=await e.json(),t=t.map((t=>Object.assign(Object.assign({},t),{model_prediction_time:new Date(t.model_prediction_time)}))),n.usnoaa_data_raw.geospace_pred_est_kp_1_hour=t,e=await fetch("https://services.swpc.noaa.gov/text/27-day-outlook.txt"),t=await e.text(),t=[...t.matchAll(/^(?<time>\d{4}\s.{3}\s\d{2})\s+(?<flux107>\d+)\s+(?<aindex>\d+)\s+(?<kindex>\d+)$/gm)],t=t.map((t=>Object.assign(Object.assign({},t.groups),{time:new Date(t.groups.time+" UTC")}))),n.usnoaa_data_raw.outlook_27_day=t,e=await fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json"),n.usnoaa_data_raw.noaa_planetary_k_index_forecast=await e.json(),n.usnoaa_data_raw.noaa_planetary_k_index_forecast.shift();let a=new Date,r=new Date(0,0,0),c=1e3,i=0;return n.usnoaa_data_raw.noaa_planetary_k_index_forecast.forEach(((t,e)=>{t[1]>i&&(i=t[1]),t[1]<c&&(c=t[1]);let o=new Date(t[0]+" UTC");Math.abs(o.getTime()-a.getTime())<Math.abs(r.getTime()-a.getTime())&&(r=o,n.now.kp=t[1]),n.usnoaa_data_raw.noaa_planetary_k_index_forecast[e]={time:o,kp:t[1],observed:t[2]}})),n.now.kp_min=c.toString(),n.now.kp_max=i.toString(),console.log(n),n}();W.update((n=>Object.assign(Object.assign({},n),t))),X(W,!1)}();var ft=function(n){t(u,s);var e=Y(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,ut,st,c,{}),n}return o(u)}();function lt(t,n,e,a,r,c,i){try{var o=t[c](i),s=o.value}catch(t){return void e(t)}o.done?n(s):Promise.resolve(s).then(a,r)}function vt(t){return function(){var n=this,e=arguments;return new Promise((function(a,r){var c=t.apply(n,e);function i(t){lt(c,a,r,i,o,"next",t)}function o(t){lt(c,a,r,i,o,"throw",t)}i(void 0)}))}}function dt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function ht(t){var n,e,a=t[1].default,r=T(a,t,t[0],null);return{c:function(){n=u("div"),r&&r.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);r&&r.l(e),e.forEach(v),this.h()},h:function(){d(n,"class","chip svelte-6dfxfp")},m:function(t,a){h(t,n,a),r&&r.m(n,null),e=!0},p:function(t,n){var c=D(n,1)[0];r&&r.p&&(!e||1&c)&&z(r,a,t,t[0],e?B(a,t[0],c,null):M(t[0]),null)},i:function(t){e||(O(r,t),e=!0)},o:function(t){R(r,t),e=!1},d:function(t){t&&v(n),r&&r.d(t)}}}function pt(t,n,e){var a=n.$$slots,r=void 0===a?{}:a,c=n.$$scope;return t.$$set=function(t){"$$scope"in t&&e(0,c=t.$$scope)},[c,r]}var mt=function(n){t(u,s);var e=dt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,pt,ht,c,{}),n}return o(u)}();function gt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function yt(t){var n,e,a,r,c,i;return{c:function(){n=u("div"),e=u("div"),a=u("div"),r=y(),c=u("span"),i=_(t[1]),this.h()},l:function(o){n=f(o,"DIV",{class:!0,style:!0});var s=l(n);e=f(s,"DIV",{class:!0});var u=l(e);a=f(u,"DIV",{class:!0}),l(a).forEach(v),u.forEach(v),r=$(s),c=f(s,"SPAN",{class:!0});var d=l(c);i=w(d,t[1]),d.forEach(v),s.forEach(v),this.h()},h:function(){d(a,"class","bar svelte-13cwtm1"),d(e,"class","bar-wrapper svelte-13cwtm1"),d(c,"class","value svelte-13cwtm1"),d(n,"class","wrapper svelte-13cwtm1"),S(n,"--progress",100*t[0]+"%")},m:function(t,o){h(t,n,o),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i)},p:function(t,e){var a=D(e,1)[0];2&a&&b(i,t[1]),1&a&&S(n,"--progress",100*t[0]+"%")},i:m,o:m,d:function(t){t&&v(n)}}}function _t(t,n,e){var a=n.percentage,r=n.value;return t.$$set=function(t){"percentage"in t&&e(0,a=t.percentage),"value"in t&&e(1,r=t.value)},[a,r]}var $t=function(n){t(u,s);var e=gt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,_t,yt,c,{percentage:0,value:1}),n}return o(u)}();function wt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function bt(t){var n,e,a,r,c,i,o,s,g,b,E,k,I;b=new $t({props:{percentage:t[0]/9,value:t[0]}});var V=t[5]&&function(t){var n,e,a,r,c,i,o,s,g,b,E,D,k=Math.round(t[3])+"",R=Math.round(t[4])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(k),i=_("°C"),o=y(),s=u("p"),g=u("i"),b=y(),E=_(R),D=_("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var d=l(e);a=f(d,"I",{class:!0}),l(a).forEach(v),r=$(d),c=w(d,k),i=w(d,"°C"),d.forEach(v),o=$(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(v),b=$(h),E=w(h,R),D=w(h,"%"),h.forEach(v),u.forEach(v),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-1q08cz7"),d(e,"class","svelte-1q08cz7"),d(g,"class","fas fa-cloud svelte-1q08cz7"),d(s,"class","svelte-1q08cz7"),d(n,"class","svelte-1q08cz7")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,b),p(s,E),p(s,D)},p:m,d:function(t){t&&v(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[2]),c=y(),i=u("p"),o=_(t[1]),s=y(),g=u("div"),x(b.$$.fragment),E=y(),k=u("div"),V&&V.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=w(p,t[2]),p.forEach(v),c=$(h),i=f(h,"P",{class:!0});var m=l(i);o=w(m,t[1]),m.forEach(v),h.forEach(v),s=$(d),g=f(d,"DIV",{class:!0});var y=l(g);P(b.$$.fragment,y),y.forEach(v),E=$(d),k=f(d,"DIV",{class:!0});var _=l(k);V&&V.l(_),_.forEach(v),d.forEach(v),this.h()},h:function(){d(a,"class","svelte-1q08cz7"),d(i,"class","svelte-1q08cz7"),d(e,"class","svelte-1q08cz7"),d(g,"class","KP svelte-1q08cz7"),d(k,"class","data svelte-1q08cz7"),d(n,"class","prediction-details svelte-1q08cz7")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,g),q(b,g,null),p(n,E),p(n,k),V&&V.m(k,null),I=!0},p:function(t,n){var e=D(n,1)[0];t[5]&&V.p(t,e)},i:function(t){I||(O(b.$$.fragment,t),I=!0)},o:function(t){R(b.$$.fragment,t),I=!1},d:function(t){t&&v(n),j(b),V&&V.d()}}}function Et(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Dt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Et(a.time.getHours().toString())+":"+Et(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(6,a=t.prediction)},[r,c,i,o,s,u,a]}var kt=function(n){t(u,s);var e=wt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Dt,bt,c,{prediction:6}),n}return o(u)}();function Rt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function It(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Ot(t){var n,e;return n=new kt({props:{prediction:t[5]}}),{c:function(){x(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){q(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(O(n.$$.fragment,t),e=!0)},o:function(t){R(n.$$.fragment,t),e=!1},d:function(t){j(n,t)}}}function Vt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Ot(It(t,a,c));var i=function(t){return R(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(v),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=It(t,a,o);r[o]?(r[o].p(s,c),O(r[o],1)):(r[o]=Ot(s),r[o].c(),O(r[o],1),r[o].m(n,null))}for(k(),o=a.length;o<r.length;o+=1)i(o);I()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)O(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)R(r[n]);e=!1},d:function(t){t&&v(n),N(r,t)}}}function xt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=vt(C.mark((function t(){var n;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.geospace_pred_est_kp_1_hour.filter((function(t){return t.model_prediction_time>=new Date})),e(0,c=n.map((function(t){return{time:t.model_prediction_time,kp:Math.round(t.k),temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>18e6)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return V(t,Q,(function(t){return e(1,a=t)})),V(t,W,(function(t){return e(2,r=t)})),W.subscribe(i),Q.subscribe(i),[c]}var Pt=function(n){t(u,s);var e=Rt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,xt,Vt,c,{}),n}return o(u)}();function qt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function jt(t){var n,e,a;return e=new mt({props:{$$slots:{default:[Tt]},$$scope:{ctx:t}}}),{c:function(){n=u("div"),x(e.$$.fragment),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var a=l(n);P(e.$$.fragment,a),a.forEach(v),this.h()},h:function(){d(n,"class","svelte-1q08cz7")},m:function(t,r){h(t,n,r),q(e,n,null),a=!0},p:function(t,n){var a={};257&n&&(a.$$scope={dirty:n,ctx:t}),e.$set(a)},i:function(t){a||(O(e.$$.fragment,t),a=!0)},o:function(t){R(e.$$.fragment,t),a=!1},d:function(t){t&&v(n),j(e)}}}function Tt(t){var n,e=t[0].observed+"";return{c:function(){n=_(e)},l:function(t){n=w(t,e)},m:function(t,e){h(t,n,e)},p:function(t,a){1&a&&e!==(e=t[0].observed+"")&&b(n,e)},d:function(t){t&&v(n)}}}function zt(t){var n,e,a,r,c,i,o,s,g,b,E,V,T,z,M="predicted"!=t[0].observed&&jt(t);E=new $t({props:{percentage:t[1]/9,value:t[1]}});var B=t[6]&&function(t){var n,e,a,r,c,i,o,s,g,b,E,D,k=Math.round(t[4])+"",R=Math.round(t[5])+"";return{c:function(){n=u("div"),e=u("p"),a=u("i"),r=y(),c=_(k),i=_("°C"),o=y(),s=u("p"),g=u("i"),b=y(),E=_(R),D=_("%"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"P",{class:!0});var d=l(e);a=f(d,"I",{class:!0}),l(a).forEach(v),r=$(d),c=w(d,k),i=w(d,"°C"),d.forEach(v),o=$(u),s=f(u,"P",{class:!0});var h=l(s);g=f(h,"I",{class:!0}),l(g).forEach(v),b=$(h),E=w(h,R),D=w(h,"%"),h.forEach(v),u.forEach(v),this.h()},h:function(){d(a,"class","fas fa-thermometer-half svelte-1q08cz7"),d(e,"class","svelte-1q08cz7"),d(g,"class","fas fa-cloud svelte-1q08cz7"),d(s,"class","svelte-1q08cz7"),d(n,"class","svelte-1q08cz7")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(e,r),p(e,c),p(e,i),p(n,o),p(n,s),p(s,g),p(s,b),p(s,E),p(s,D)},p:m,d:function(t){t&&v(n)}}}(t);return{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[3]),c=y(),i=u("p"),o=_(t[2]),s=y(),M&&M.c(),g=y(),b=u("div"),x(E.$$.fragment),V=y(),T=u("div"),B&&B.c(),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=w(p,t[3]),p.forEach(v),c=$(h),i=f(h,"P",{class:!0});var m=l(i);o=w(m,t[2]),m.forEach(v),h.forEach(v),s=$(d),M&&M.l(d),g=$(d),b=f(d,"DIV",{class:!0});var y=l(b);P(E.$$.fragment,y),y.forEach(v),V=$(d),T=f(d,"DIV",{class:!0});var _=l(T);B&&B.l(_),_.forEach(v),d.forEach(v),this.h()},h:function(){d(a,"class","svelte-1q08cz7"),d(i,"class","svelte-1q08cz7"),d(e,"class","svelte-1q08cz7"),d(b,"class","KP svelte-1q08cz7"),d(T,"class","data svelte-1q08cz7"),d(n,"class","prediction-details svelte-1q08cz7")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),M&&M.m(n,null),p(n,g),p(n,b),q(E,b,null),p(n,V),p(n,T),B&&B.m(T,null),z=!0},p:function(t,e){var a=D(e,1)[0];"predicted"!=t[0].observed?M?(M.p(t,a),1&a&&O(M,1)):((M=jt(t)).c(),O(M,1),M.m(n,g)):M&&(k(),R(M,1,1,(function(){M=null})),I()),t[6]&&B.p(t,a)},i:function(t){z||(O(M),O(E.$$.fragment,t),z=!0)},o:function(t){R(M),R(E.$$.fragment,t),z=!1},d:function(t){t&&v(n),M&&M.d(),j(E),B&&B.d()}}}function Mt(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Bt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Mt(a.time.getHours().toString())+":"+Mt(a.time.getMinutes().toString()),o=a.temp,s=a.clouds,u=a.hasNOMETData;return t.$$set=function(t){"prediction"in t&&e(0,a=t.prediction)},[a,r,c,i,o,s,u]}var St=function(n){t(u,s);var e=qt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Bt,zt,c,{prediction:0}),n}return o(u)}();function Nt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Ct(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function At(t){var n,e;return n=new St({props:{prediction:t[5]}}),{c:function(){x(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){q(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(O(n.$$.fragment,t),e=!0)},o:function(t){R(n.$$.fragment,t),e=!1},d:function(t){j(n,t)}}}function Ht(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=At(Ct(t,a,c));var i=function(t){return R(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(v),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Ct(t,a,o);r[o]?(r[o].p(s,c),O(r[o],1)):(r[o]=At(s),r[o].c(),O(r[o],1),r[o].m(n,null))}for(k(),o=a.length;o<r.length;o+=1)i(o);I()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)O(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)R(r[n]);e=!1},d:function(t){t&&v(n),N(r,t)}}}function Jt(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=vt(C.mark((function t(){var n;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.noaa_planetary_k_index_forecast.filter((function(t){return"observed"!==t.observed})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kp,observed:t.observed,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0);a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())&&(o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction)})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return V(t,Q,(function(t){return e(1,a=t)})),V(t,W,(function(t){return e(2,r=t)})),W.subscribe(i),Q.subscribe(i),[c]}var Kt=function(n){t(u,s);var e=Nt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Jt,Ht,c,{}),n}return o(u)}();function Ft(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Lt(t){var n,e,a,r,c,i,o,s,m,g,b,E,k;return g=new $t({props:{percentage:t[0]/9,value:t[0]}}),{c:function(){n=u("div"),e=u("div"),a=u("h3"),r=_(t[2]),c=y(),i=u("p"),o=_(t[1]),s=y(),m=u("div"),x(g.$$.fragment),b=y(),E=u("div"),this.h()},l:function(u){n=f(u,"DIV",{class:!0});var d=l(n);e=f(d,"DIV",{class:!0});var h=l(e);a=f(h,"H3",{class:!0});var p=l(a);r=w(p,t[2]),p.forEach(v),c=$(h),i=f(h,"P",{class:!0});var y=l(i);o=w(y,t[1]),y.forEach(v),h.forEach(v),s=$(d),m=f(d,"DIV",{class:!0});var _=l(m);P(g.$$.fragment,_),_.forEach(v),b=$(d),E=f(d,"DIV",{class:!0}),l(E).forEach(v),d.forEach(v),this.h()},h:function(){d(a,"class","svelte-1q08cz7"),d(i,"class","svelte-1q08cz7"),d(e,"class","svelte-1q08cz7"),d(m,"class","KP svelte-1q08cz7"),d(E,"class","data svelte-1q08cz7"),d(n,"class","prediction-details svelte-1q08cz7")},m:function(t,u){h(t,n,u),p(n,e),p(e,a),p(a,r),p(e,c),p(e,i),p(i,o),p(n,s),p(n,m),q(g,m,null),p(n,b),p(n,E),k=!0},p:function(t,n){D(n,1)[0]},i:function(t){k||(O(g.$$.fragment,t),k=!0)},o:function(t){R(g.$$.fragment,t),k=!1},d:function(t){t&&v(n),j(g)}}}function Ut(t){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=t,a=0;a<n-t.length;a++)e="0"+e;return e}function Zt(t,n,e){var a=n.prediction,r=a.kp,c=a.time.getDate()+". "+["January","February","March","April","May","June","July","August","September","October","November","December"][a.time.getMonth()],i=Ut(a.time.getHours().toString())+":"+Ut(a.time.getMinutes().toString()),o=a.temp,s=a.clouds;return t.$$set=function(t){"prediction"in t&&e(5,a=t.prediction)},[r,c,i,o,s,a]}var Gt=function(n){t(u,s);var e=Ft(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,Zt,Lt,c,{prediction:5}),n}return o(u)}();function Qt(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function Wt(t,n,e){var a=t.slice();return a[5]=n[e],a[7]=e,a}function Xt(t){var n,e;return n=new Gt({props:{prediction:t[5]}}),{c:function(){x(n.$$.fragment)},l:function(t){P(n.$$.fragment,t)},m:function(t,a){q(n,t,a),e=!0},p:function(t,e){var a={};1&e&&(a.prediction=t[5]),n.$set(a)},i:function(t){e||(O(n.$$.fragment,t),e=!0)},o:function(t){R(n.$$.fragment,t),e=!1},d:function(t){j(n,t)}}}function Yt(t){for(var n,e,a=t[0],r=[],c=0;c<a.length;c+=1)r[c]=Xt(Wt(t,a,c));var i=function(t){return R(r[t],1,1,(function(){r[t]=null}))};return{c:function(){n=u("div");for(var t=0;t<r.length;t+=1)r[t].c();this.h()},l:function(t){n=f(t,"DIV",{class:!0});for(var e=l(n),a=0;a<r.length;a+=1)r[a].l(e);e.forEach(v),this.h()},h:function(){d(n,"class","prediction-table svelte-dqc8qx")},m:function(t,a){h(t,n,a);for(var c=0;c<r.length;c+=1)r[c].m(n,null);e=!0},p:function(t,e){var c=D(e,1)[0];if(1&c){var o;for(a=t[0],o=0;o<a.length;o+=1){var s=Wt(t,a,o);r[o]?(r[o].p(s,c),O(r[o],1)):(r[o]=Xt(s),r[o].c(),O(r[o],1),r[o].m(n,null))}for(k(),o=a.length;o<r.length;o+=1)i(o);I()}},i:function(t){if(!e){for(var n=0;n<a.length;n+=1)O(r[n]);e=!0}},o:function(t){r=r.filter(Boolean);for(var n=0;n<r.length;n+=1)R(r[n]);e=!1},d:function(t){t&&v(n),N(r,t)}}}function tn(t,n,e){var a,r,c;function i(){return o.apply(this,arguments)}function o(){return(o=vt(C.mark((function t(){var n;return C.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!r.updating&&!a.updating){t.next=3;break}return e(0,c=null),t.abrupt("return");case 3:n=r.usnoaa_data_raw.outlook_27_day.filter((function(t){return t.time>=new Date})),e(0,c=n.map((function(t){return{time:t.time,kp:t.kindex,temp:null,clouds:null,hasNOMETData:a.available}}))),a.available&&c.forEach((function(t,n){var r,i,o=new Date(0,0,0),s=!0;a.yr_data_raw.properties.timeseries.forEach((function(n,e){var a=new Date(n.time);if(Math.abs(a.getTime()-t.time.getTime())<Math.abs(o.getTime()-t.time.getTime())){if(Math.abs(a.getTime()-t.time.getTime())>864e5)return void(s=!1);o=a,r=n.data.instant.details.air_temperature,i=n.data.instant.details.cloud_area_fraction}})),e(0,c[n]=Object.assign(Object.assign({},c[n]),{temp:r,clouds:i,hasNOMETData:s}),c)}));case 6:case"end":return t.stop()}}),t)})))).apply(this,arguments)}return V(t,Q,(function(t){return e(1,a=t)})),V(t,W,(function(t){return e(2,r=t)})),W.subscribe(i),Q.subscribe(i),[c]}var nn=function(n){t(u,s);var e=Qt(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,tn,Yt,c,{}),n}return o(u)}();function en(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function an(t){var n,e,a,r,c;return{c:function(){n=u("div"),e=u("i"),a=y(),r=u("p"),c=_("No prediction data"),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var i=l(n);e=f(i,"I",{class:!0}),l(e).forEach(v),a=$(i),r=f(i,"P",{});var o=l(r);c=w(o,"No prediction data"),o.forEach(v),i.forEach(v),this.h()},h:function(){d(e,"class","fas fa-7x fa-exclamation-triangle"),d(n,"class","no-data svelte-6c4yca")},m:function(t,i){h(t,n,i),p(n,e),p(n,a),p(n,r),p(r,c)},p:m,i:m,o:m,d:function(t){t&&v(n)}}}function rn(t){var n,e,a,r,c,i,o,s,m,g,b,D,V,T,z,M,B,S,N,C=t[0];return C&&(z=new C({})),{c:function(){n=u("div"),e=u("h2"),a=_("Forecast"),r=y(),c=u("div"),i=u("div"),o=_("hour"),s=y(),m=u("div"),g=_("3 day"),b=y(),D=u("div"),V=_("Long time"),T=y(),z&&x(z.$$.fragment),M=E(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=l(n);e=f(u,"H2",{class:!0});var d=l(e);a=w(d,"Forecast"),d.forEach(v),r=$(u),c=f(u,"DIV",{class:!0});var h=l(c);i=f(h,"DIV",{class:!0});var p=l(i);o=w(p,"hour"),p.forEach(v),s=$(h),m=f(h,"DIV",{class:!0});var y=l(m);g=w(y,"3 day"),y.forEach(v),b=$(h),D=f(h,"DIV",{class:!0});var _=l(D);V=w(_,"Long time"),_.forEach(v),h.forEach(v),u.forEach(v),T=$(t),z&&P(z.$$.fragment,t),M=E(),this.h()},h:function(){d(e,"class","svelte-6c4yca"),d(i,"class","svelte-6c4yca"),A(i,"selected",t[0]==Pt),d(m,"class","svelte-6c4yca"),A(m,"selected",t[0]==Kt),d(D,"class","svelte-6c4yca"),A(D,"selected",t[0]==nn),d(c,"class","version-picker svelte-6c4yca"),d(n,"class","header svelte-6c4yca")},m:function(u,f){h(u,n,f),p(n,e),p(e,a),p(n,r),p(n,c),p(c,i),p(i,o),p(c,s),p(c,m),p(m,g),p(c,b),p(c,D),p(D,V),h(u,T,f),z&&q(z,u,f),h(u,M,f),B=!0,S||(N=[H(i,"click",t[3]),H(m,"click",t[4]),H(D,"click",t[5])],S=!0)},p:function(t,n){if(1&n&&A(i,"selected",t[0]==Pt),1&n&&A(m,"selected",t[0]==Kt),1&n&&A(D,"selected",t[0]==nn),C!==(C=t[0])){if(z){k();var e=z;R(e.$$.fragment,1,0,(function(){j(e,1)})),I()}C?(z=new C({}),x(z.$$.fragment),O(z.$$.fragment,1),q(z,M.parentNode,M)):z=null}},i:function(t){B||(z&&O(z.$$.fragment,t),B=!0)},o:function(t){z&&R(z.$$.fragment,t),B=!1},d:function(t){t&&v(n),t&&v(T),t&&v(M),z&&j(z,t),S=!1,J(N)}}}function cn(t){var n,e,a,r,c=[rn,an],i=[];function o(t,n){return t[1].updating||t[2].updating?1:0}return e=o(t),a=i[e]=c[e](t),{c:function(){n=u("div"),a.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var e=l(n);a.l(e),e.forEach(v),this.h()},h:function(){d(n,"class","drawer svelte-6c4yca")},m:function(t,a){h(t,n,a),i[e].m(n,null),r=!0},p:function(t,r){var s=D(r,1)[0],u=e;(e=o(t))===u?i[e].p(t,s):(k(),R(i[u],1,1,(function(){i[u]=null})),I(),(a=i[e])?a.p(t,s):(a=i[e]=c[e](t)).c(),O(a,1),a.m(n,null))},i:function(t){r||(O(a),r=!0)},o:function(t){R(a),r=!1},d:function(t){t&&v(n),i[e].d()}}}function on(t,n,e){var a,r;V(t,Q,(function(t){return e(1,a=t)})),V(t,W,(function(t){return e(2,r=t)}));var c=Kt;return[c,a,r,function(){return e(0,c=Pt)},function(){return e(0,c=Kt)},function(){return e(0,c=nn)}]}var sn=function(n){t(u,s);var e=en(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,on,cn,c,{}),n}return o(u)}();function un(t){var a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var r,c=n(t);if(a){var i=n(this).constructor;r=Reflect.construct(c,arguments,i)}else r=c.apply(this,arguments);return e(this,r)}}function fn(t){var n,e,a,r,c,i;return a=new ft({}),c=new sn({}),{c:function(){n=y(),e=u("div"),x(a.$$.fragment),r=y(),x(c.$$.fragment),this.h()},l:function(t){K('[data-svelte="svelte-1q3846k"]',document.head).forEach(v),n=$(t),e=f(t,"DIV",{class:!0});var i=l(e);P(a.$$.fragment,i),r=$(i),P(c.$$.fragment,i),i.forEach(v),this.h()},h:function(){document.title="Aurora data",d(e,"class","homescreen svelte-pf4p6y")},m:function(t,o){h(t,n,o),h(t,e,o),q(a,e,null),p(e,r),q(c,e,null),i=!0},p:m,i:function(t){i||(O(a.$$.fragment,t),O(c.$$.fragment,t),i=!0)},o:function(t){R(a.$$.fragment,t),R(c.$$.fragment,t),i=!1},d:function(t){t&&v(n),t&&v(e),j(a),j(c)}}}var ln=function(n){t(u,s);var e=un(u);function u(t){var n;return a(this,u),n=e.call(this),r(i(n),t,null,fn,c,{}),n}return o(u)}();export{ln as default}; |