From b3a3faccd745d10c8156bf2efcc3eb57369c6505 Mon Sep 17 00:00:00 2001 From: jakobst1n Date: Tue, 13 Oct 2020 20:50:56 +0200 Subject: Updates --- client/index.3e5f04b7.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 client/index.3e5f04b7.js (limited to 'client/index.3e5f04b7.js') diff --git a/client/index.3e5f04b7.js b/client/index.3e5f04b7.js new file mode 100644 index 0000000..c30cf05 --- /dev/null +++ b/client/index.3e5f04b7.js @@ -0,0 +1 @@ +import{S as t,i as e,s as a,e as s,a as r,t as n,c,b as o,d as l,f as i,g as f,h,j as u,k as d,l as v,n as p,o as m,m as g,p as w,q as E,r as y,u as $,v as b,w as P,x as D,y as I,z as V,A as x}from"./client.0916be27.js";function A(t){let e,a,m,g,w,E,y,$,b,P,D,I,V,x,A,N,j,M,T,_,k,S,H,J,K,B,O,q,z,F,Z,G,L,Q,R,U,W,X,Y,tt,et,at,st,rt,nt,ct,ot,lt;return{c(){e=s("div"),a=s("div"),m=s("div"),g=s("i"),w=r(),E=s("h1"),y=n(C),$=r(),b=s("div"),P=s("p"),D=n(t[0]),I=r(),V=s("div"),x=s("h2"),A=n("KP "),N=n(t[1]),j=r(),M=s("p"),T=s("span"),_=n("↑ KP "),k=n(t[3]),S=r(),H=s("span"),J=n("↓ KP "),K=n(t[2]),B=r(),O=s("div"),q=s("div"),z=s("p"),F=n("BZ"),Z=r(),G=s("p"),L=n(t[4]),Q=r(),R=s("div"),U=s("p"),W=n("Probability"),X=r(),Y=s("p"),tt=n("10%"),et=r(),at=s("div"),st=s("p"),rt=n("Clouds"),nt=r(),ct=s("p"),ot=n(t[5]),lt=n("%"),this.h()},l(s){e=c(s,"DIV",{class:!0});var r=o(e);a=c(r,"DIV",{class:!0});var n=o(a);m=c(n,"DIV",{class:!0});var h=o(m);g=c(h,"I",{class:!0}),o(g).forEach(l),w=i(h),E=c(h,"H1",{class:!0});var u=o(E);y=f(u,C),u.forEach(l),h.forEach(l),$=i(n),b=c(n,"DIV",{class:!0});var d=o(b);P=c(d,"P",{});var v=o(P);D=f(v,t[0]),v.forEach(l),d.forEach(l),I=i(n),V=c(n,"DIV",{class:!0});var p=o(V);x=c(p,"H2",{class:!0});var it=o(x);A=f(it,"KP "),N=f(it,t[1]),it.forEach(l),j=i(p),M=c(p,"P",{});var ft=o(M);T=c(ft,"SPAN",{className:!0});var ht=o(T);_=f(ht,"↑ KP "),k=f(ht,t[3]),ht.forEach(l),S=i(ft),H=c(ft,"SPAN",{className:!0});var ut=o(H);J=f(ut,"↓ KP "),K=f(ut,t[2]),ut.forEach(l),ft.forEach(l),p.forEach(l),B=i(n),O=c(n,"DIV",{class:!0});var dt=o(O);q=c(dt,"DIV",{});var vt=o(q);z=c(vt,"P",{class:!0});var pt=o(z);F=f(pt,"BZ"),pt.forEach(l),Z=i(vt),G=c(vt,"P",{class:!0});var mt=o(G);L=f(mt,t[4]),mt.forEach(l),vt.forEach(l),Q=i(dt),R=c(dt,"DIV",{});var gt=o(R);U=c(gt,"P",{class:!0});var wt=o(U);W=f(wt,"Probability"),wt.forEach(l),X=i(gt),Y=c(gt,"P",{class:!0});var Et=o(Y);tt=f(Et,"10%"),Et.forEach(l),gt.forEach(l),et=i(dt),at=c(dt,"DIV",{});var yt=o(at);st=c(yt,"P",{class:!0});var $t=o(st);rt=f($t,"Clouds"),$t.forEach(l),nt=i(yt),ct=c(yt,"P",{class:!0});var bt=o(ct);ot=f(bt,t[5]),lt=f(bt,"%"),bt.forEach(l),yt.forEach(l),dt.forEach(l),n.forEach(l),r.forEach(l),this.h()},h(){h(g,"class","symbol fas fa-map-marker-alt svelte-1fdstvw"),h(E,"class","svelte-1fdstvw"),h(m,"class","weatherCurrent-data-location svelte-1fdstvw"),h(b,"class","weatherCurrent-data-date"),h(x,"class","svelte-1fdstvw"),h(T,"classname","pr-2"),h(H,"classname","pl-2"),h(V,"class","weatherCurrent-data-kp svelte-1fdstvw"),h(z,"class","svelte-1fdstvw"),h(G,"class","svelte-1fdstvw"),h(U,"class","svelte-1fdstvw"),h(Y,"class","svelte-1fdstvw"),h(st,"class","svelte-1fdstvw"),h(ct,"class","svelte-1fdstvw"),h(O,"class","current-details svelte-1fdstvw"),h(a,"class","weatherCurrent-data svelte-1fdstvw"),h(e,"class","weatherCurrent-wrapper svelte-1fdstvw")},m(t,s){u(t,e,s),d(e,a),d(a,m),d(m,g),d(m,w),d(m,E),d(E,y),d(a,$),d(a,b),d(b,P),d(P,D),d(a,I),d(a,V),d(V,x),d(x,A),d(x,N),d(V,j),d(V,M),d(M,T),d(T,_),d(T,k),d(M,S),d(M,H),d(H,J),d(H,K),d(a,B),d(a,O),d(O,q),d(q,z),d(z,F),d(q,Z),d(q,G),d(G,L),d(O,Q),d(O,R),d(R,U),d(U,W),d(R,X),d(R,Y),d(Y,tt),d(O,et),d(O,at),d(at,st),d(st,rt),d(at,nt),d(at,ct),d(ct,ot),d(ct,lt)},p(t,[e]){1&e&&v(D,t[0]),2&e&&v(N,t[1]),8&e&&v(k,t[3]),4&e&&v(K,t[2]),16&e&&v(L,t[4]),32&e&&v(ot,t[5])},i:p,o:p,d(t){t&&l(e)}}}let C="The earth";function N(t,e,a){var s=this&&this.__awaiter||function(t,e,a,s){return new(a||(a=Promise))((function(r,n){function c(t){try{l(s.next(t))}catch(t){n(t)}}function o(t){try{l(s.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(c,o)}l((s=s.apply(t,e||[])).next())}))};const r=["January","February","March","April","May","June","July","August","September","October","November","December"];Array();let n,c,o="-",l="-",i="-",f="-",h="-",u="-";function d(t){n=t.coords.longitude,c=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(5,u=s.properties.timeseries[0].data.instant.details.cloud_area_fraction),a(4,h=(yield fetch("https://services.swpc.noaa.gov/products/summary/solar-wind-mag-field.json").then((t=>t.json()))).Bz);let n=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));n.shift();let c=new Date,d=new Date(0,0,0),v=1e3,p=0;n.forEach(((t,e)=>{t[1]>p&&(p=t[1]),t[1]{"prediction"in t&&a(5,s=t.prediction)},[r,c,o,l,i,s]}class _ extends t{constructor(t){super(),e(this,t,T,M,a,{prediction:5})}}function k(t,e,a){const s=t.slice();return s[18]=e[a],s[20]=a,s}function S(t){let e;return{c(){e=n("Cannot connect to NOAA")},l(t){e=f(t,"Cannot connect to NOAA")},m(t,a){u(t,e,a)},p:p,i:p,o:p,d(t){t&&l(e)}}}function H(t){let e,a,s=t[0],r=[];for(let e=0;ew(r[t],1,1,(()=>{r[t]=null}));return{c(){for(let t=0;t{V[a]=null})),E(),P=V[b],P||(P=V[b]=I[b](t),P.c()),y(P,1),P.m($,null))},i(t){D||(y(P),D=!0)},o(t){w(P),D=!1},d(t){t&&l(e),V[b].d()}}}function B(t,e,a){var s=this&&this.__awaiter||function(t,e,a,s){return new(a||(a=Promise))((function(r,n){function c(t){try{l(s.next(t))}catch(t){n(t)}}function o(t){try{l(s.throw(t))}catch(t){n(t)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof a?e:new a((function(t){t(e)}))).then(c,o)}l((s=s.apply(t,e||[])).next())}))};let r,n,c;Array();function o(t){n=t.coords.longitude,c=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())),n=yield fetch("https://services.swpc.noaa.gov/products/noaa-planetary-k-index-forecast.json").then((t=>t.json()));n.shift();let c=[];n.forEach(((t,e)=>{if("observed"!=t[2]){let e,a,r=new Date(t[0]),n=new Date(0,0,0);s.properties.timeseries.forEach(((t,s)=>{let c=new Date(t.time);Math.abs(c.getTime()-r.getTime())