From e2ff737bd6e39e2af6211fbcb9b10e6d6ec9e4f5 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Wed, 27 Apr 2022 00:51:36 +0200 Subject: Updates --- client/index.98d274eb.js | 1 - 1 file changed, 1 deletion(-) delete mode 100644 client/index.98d274eb.js (limited to 'client/index.98d274eb.js') diff --git a/client/index.98d274eb.js b/client/index.98d274eb.js deleted file mode 100644 index 75c0ce5..0000000 --- a/client/index.98d274eb.js +++ /dev/null @@ -1 +0,0 @@ -import{S as t,i as e,s as a,e as s,a as r,t as o,c as n,b as c,d as i,f as l,g as h,h as f,j as u,k as p,l as d,n as v,o as m,m as g,p as E,q as $,r as w,u as y,v as D,w as P,x as b,y as I,z as x}from"./client.cead19b7.js";function V(t){let e,a,m,g,E,$,w,y,D,P,b,I,x,V,j,C,N,M,T,_,k,A,S,H,J,K,z,B,O,q,F,Z,G,L,Q,R,U,W,X,Y,tt,et,at,st,rt,ot,nt,ct,it;return{c(){e=s("div"),a=s("div"),m=s("div"),g=s("i"),E=r(),$=s("h1"),w=o(t[0]),y=r(),D=s("div"),P=s("p"),b=o(t[1]),I=r(),x=s("div"),V=s("h2"),j=o("KP "),C=o(t[2]),N=r(),M=s("p"),T=s("span"),_=o("↑ KP "),k=o(t[4]),A=r(),S=s("span"),H=o("↓ KP "),J=o(t[3]),K=r(),z=s("div"),B=s("div"),O=s("p"),q=o("BZ"),F=r(),Z=s("p"),G=o(t[5]),L=r(),Q=s("div"),R=s("p"),U=o("Temp"),W=r(),X=s("p"),Y=o(t[7]),tt=o("°C"),et=r(),at=s("div"),st=s("p"),rt=o("Clouds"),ot=r(),nt=s("p"),ct=o(t[6]),it=o("%"),this.h()},l(s){e=n(s,"DIV",{class:!0});var r=c(e);a=n(r,"DIV",{class:!0});var o=c(a);m=n(o,"DIV",{class:!0});var f=c(m);g=n(f,"I",{class:!0}),c(g).forEach(i),E=l(f),$=n(f,"H1",{class:!0});var u=c($);w=h(u,t[0]),u.forEach(i),f.forEach(i),y=l(o),D=n(o,"DIV",{class:!0});var p=c(D);P=n(p,"P",{});var d=c(P);b=h(d,t[1]),d.forEach(i),p.forEach(i),I=l(o),x=n(o,"DIV",{class:!0});var v=c(x);V=n(v,"H2",{class:!0});var lt=c(V);j=h(lt,"KP "),C=h(lt,t[2]),lt.forEach(i),N=l(v),M=n(v,"P",{});var ht=c(M);T=n(ht,"SPAN",{className:!0});var ft=c(T);_=h(ft,"↑ KP "),k=h(ft,t[4]),ft.forEach(i),A=l(ht),S=n(ht,"SPAN",{className:!0});var ut=c(S);H=h(ut,"↓ KP "),J=h(ut,t[3]),ut.forEach(i),ht.forEach(i),v.forEach(i),K=l(o),z=n(o,"DIV",{class:!0});var pt=c(z);B=n(pt,"DIV",{});var dt=c(B);O=n(dt,"P",{class:!0});var vt=c(O);q=h(vt,"BZ"),vt.forEach(i),F=l(dt),Z=n(dt,"P",{class:!0});var mt=c(Z);G=h(mt,t[5]),mt.forEach(i),dt.forEach(i),L=l(pt),Q=n(pt,"DIV",{});var gt=c(Q);R=n(gt,"P",{class:!0});var Et=c(R);U=h(Et,"Temp"),Et.forEach(i),W=l(gt),X=n(gt,"P",{class:!0});var $t=c(X);Y=h($t,t[7]),tt=h($t,"°C"),$t.forEach(i),gt.forEach(i),et=l(pt),at=n(pt,"DIV",{});var wt=c(at);st=n(wt,"P",{class:!0});var yt=c(st);rt=h(yt,"Clouds"),yt.forEach(i),ot=l(wt),nt=n(wt,"P",{class:!0});var Dt=c(nt);ct=h(Dt,t[6]),it=h(Dt,"%"),Dt.forEach(i),wt.forEach(i),pt.forEach(i),o.forEach(i),r.forEach(i),this.h()},h(){f(g,"class","symbol fas fa-map-marker-alt svelte-1oi7i0p"),f($,"class","svelte-1oi7i0p"),f(m,"class","weatherCurrent-data-location svelte-1oi7i0p"),f(D,"class","weatherCurrent-data-date"),f(V,"class","svelte-1oi7i0p"),f(T,"classname","pr-2"),f(S,"classname","pl-2"),f(x,"class","weatherCurrent-data-kp svelte-1oi7i0p"),f(O,"class","svelte-1oi7i0p"),f(Z,"class","svelte-1oi7i0p"),f(R,"class","svelte-1oi7i0p"),f(X,"class","svelte-1oi7i0p"),f(st,"class","svelte-1oi7i0p"),f(nt,"class","svelte-1oi7i0p"),f(z,"class","current-details svelte-1oi7i0p"),f(a,"class","weatherCurrent-data svelte-1oi7i0p"),f(e,"class","weatherCurrent-wrapper svelte-1oi7i0p")},m(t,s){u(t,e,s),p(e,a),p(a,m),p(m,g),p(m,E),p(m,$),p($,w),p(a,y),p(a,D),p(D,P),p(P,b),p(a,I),p(a,x),p(x,V),p(V,j),p(V,C),p(x,N),p(x,M),p(M,T),p(T,_),p(T,k),p(M,A),p(M,S),p(S,H),p(S,J),p(a,K),p(a,z),p(z,B),p(B,O),p(O,q),p(B,F),p(B,Z),p(Z,G),p(z,L),p(z,Q),p(Q,R),p(R,U),p(Q,W),p(Q,X),p(X,Y),p(X,tt),p(z,et),p(z,at),p(at,st),p(st,rt),p(at,ot),p(at,nt),p(nt,ct),p(nt,it)},p(t,[e]){1&e&&d(w,t[0]),2&e&&d(b,t[1]),4&e&&d(C,t[2]),16&e&&d(k,t[4]),8&e&&d(J,t[3]),32&e&&d(G,t[5]),128&e&&d(Y,t[7]),64&e&&d(ct,t[6])},i:v,o:v,d(t){t&&i(e)}}}function j(t,e,a){var s=this&&this.__awaiter||function(t,e,a,s){return new(a||(a=Promise))((function(r,o){function n(t){try{i(s.next(t))}catch(t){o(t)}}function c(t){try{i(s.throw(t))}catch(t){o(t)}}function i(t){var e;t.done?r(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(n,c)}i((s=s.apply(t,e||[])).next())}))};const r=["January","February","March","April","May","June","July","August","September","October","November","December"];let o,n,c="-",i="-",l="-",h="-",f="-",u="-",p="-",d="-";function v(t){o=t.coords.longitude,n=t.coords.latitude,function(t,e){s(this,void 0,void 0,(function*(){let s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e}&lon=${t}`).then((t=>t.json()));a(6,p=s.properties.timeseries[0].data.instant.details.cloud_area_fraction),a(7,d=s.properties.timeseries[0].data.instant.details.air_temperature)}))}(o,n),function(t,e){s(this,void 0,void 0,(function*(){console.log(`https://geocode.xyz/${t},${e}?geoit=json`);let s=yield fetch(`https://geocode.xyz/${e},${t}?geoit=json`).then((t=>t.json()));console.log(s),a(0,c=s.city)}))}(o,n)}function g(t){E()}function E(){o=28.283333,n=-15.416667}return m((function(){!function(){s(this,void 0,void 0,(function*(){a(5,u=(yield fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((t=>t.json()))).Bz);let t=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));t.shift();let e=new Date,s=new Date(0,0,0),o=1e3,n=0;t.forEach(((t,r)=>{t[1]>n&&(n=t[1]),t[1]{"prediction"in t&&a(6,s=t.prediction)},[r,n,c,i,l,h,s]}class T extends t{constructor(t){super(),e(this,t,M,N,a,{prediction:6})}}function _(t,e,a){const s=t.slice();return s[13]=e[a],s[15]=a,s}function k(t){let e,a,d,m,g;return{c(){e=s("div"),a=s("i"),d=r(),m=s("p"),g=o("No prediction data"),this.h()},l(t){e=n(t,"DIV",{class:!0});var s=c(e);a=n(s,"I",{class:!0}),c(a).forEach(i),d=l(s),m=n(s,"P",{});var r=c(m);g=h(r,"No prediction data"),r.forEach(i),s.forEach(i),this.h()},h(){f(a,"class","fas fa-7x fa-exclamation-triangle"),f(e,"class","no-data svelte-1romtap")},m(t,s){u(t,e,s),p(e,a),p(e,d),p(e,m),p(m,g)},p:v,i:v,o:v,d(t){t&&i(e)}}}function A(t){let e,a,d,v,m,y,D=t[0],P=[];for(let e=0;eE(P[t],1,1,(()=>{P[t]=null}));return{c(){e=s("div"),a=s("h2"),d=o("Predicted"),v=r(),m=s("div");for(let t=0;t{h[o]=null})),$(),r=h[a],r||(r=h[a]=l[a](t),r.c()),w(r,1),r.m(e,null))},i(t){o||(w(r),o=!0)},o(t){E(r),o=!1},d(t){t&&i(e),h[a].d()}}}function J(t,e,a){var s=this&&this.__awaiter||function(t,e,a,s){return new(a||(a=Promise))((function(r,o){function n(t){try{i(s.next(t))}catch(t){o(t)}}function c(t){try{i(s.throw(t))}catch(t){o(t)}}function i(t){var e;t.done?r(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(n,c)}i((s=s.apply(t,e||[])).next())}))};let r,o,n,c=!1;function i(t,e){return s(this,void 0,void 0,(function*(){let s;c&&(s=yield fetch(`https://api.met.no/weatherapi/locationforecast/2.0/compact?lat=${e}&lon=${t}`).then((t=>t.json())));let r=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));r.shift();let o=[];r.forEach(((t,e)=>{if("observed"!=t[2]){let e,a,r=new Date(t[0]),n=new Date(0,0,0);c&&s.properties.timeseries.forEach(((t,s)=>{let o=new Date(t.time);Math.abs(o.getTime()-r.getTime())