mirror of
https://github.com/ethanrusz/status.git
synced 2025-01-31 08:57:47 -05:00
16 lines
208 KiB
JavaScript
16 lines
208 KiB
JavaScript
|
import{S as t,i as e,s as i,e as s,b as n,d as o,f as a,h as r,j as l,t as h,k as c,l as d,o as u,r as f,m as g,a as p,n as m,c as b,g as x,I as _,p as y,A as v,q as w,w as M,x as k,y as S,z as P,u as D,v as O,R as C,T as A,U as T,V as E,W as L,E as R,X as I,Y as z,Z as F,_ as V}from"./client.cbc41d67.js";import{h as B,L as N,c as W,a as j,_ as H}from"./createOctokit.1e8979f2.js";function $(t){let e,i,l,h,c,d,u,M,k,S,P,D,O,C,A=t[1].name+"",T=("up"===t[1].status?f.i18n.up:f.i18n.down)+"",E=f.i18n.overallUptimeTitle+"",L=t[1].uptime+"",R=(void 0===t[1].showAverageResponseTime||t[1].showAverageResponseTime)&&U(t);return{c(){e=s("h1"),i=s("a"),l=g(A),c=p(),d=s("span"),u=g(T),k=p(),S=s("dl"),P=s("dt"),D=g(E),O=s("dd"),C=g(L),R&&R.c(),this.h()},l(t){e=n(t,"H1",{});var s=o(e);i=n(s,"A",{class:!0,href:!0});var r=o(i);l=m(r,A),r.forEach(a),c=b(s),d=n(s,"SPAN",{class:!0});var h=o(d);u=m(h,T),h.forEach(a),s.forEach(a),k=b(t),S=n(t,"DL",{});var f=o(S);P=n(f,"DT",{});var g=o(P);D=m(g,E),g.forEach(a),O=n(f,"DD",{});var p=o(O);C=m(p,L),p.forEach(a),R&&R.l(f),f.forEach(a),this.h()},h(){x(i,"class","no-underline svelte-1d3m0a"),x(i,"href",h=t[1].url.startsWith("$")?"#":t[1].url),x(d,"class",M=_("tag ".concat(t[1].status))+" svelte-1d3m0a")},m(t,s){r(t,e,s),y(e,i),y(i,l),y(e,c),y(e,d),y(d,u),r(t,k,s),r(t,S,s),y(S,P),y(P,D),y(S,O),y(O,C),R&&R.m(S,null)},p(t,e){2&e&&A!==(A=t[1].name+"")&&v(l,A),2&e&&h!==(h=t[1].url.startsWith("$")?"#":t[1].url)&&x(i,"href",h),2&e&&T!==(T=("up"===t[1].status?f.i18n.up:f.i18n.down)+"")&&v(u,T),2&e&&M!==(M=_("tag ".concat(t[1].status))+" svelte-1d3m0a")&&x(d,"class",M),2&e&&L!==(L=t[1].uptime+"")&&v(C,L),void 0===t[1].showAverageResponseTime||t[1].showAverageResponseTime?R?R.p(t,e):(R=U(t),R.c(),R.m(S,null)):R&&(R.d(1),R=null)},i:w,o:w,d(t){t&&a(e),t&&a(k),t&&a(S),R&&R.d()}}}function Y(t){let e,i;return e=new N({}),{c(){M(e.$$.fragment)},l(t){k(e.$$.fragment,t)},m(t,s){S(e,t,s),i=!0},p:w,i(t){i||(d(e.$$.fragment,t),i=!0)},o(t){h(e.$$.fragment,t),i=!1},d(t){P(e,t)}}}function U(t){let e,i,l,h,c,d=f.i18n.averageResponseTimeTitle+"",u=t[1].time+"",p=f.i18n.ms+"";return{c(){e=s("dt"),i=g(d),l=s("dd"),h=g(u),c=g(p)},l(t){e=n(t,"DT",{});var s=o(e);i=m(s,d),s.forEach(a),l=n(t,"DD",{});var r=o(l);h=m(r,u),c=m(r,p),r.forEach(a)},m(t,s){r(t,e,s),y(e,i),r(t,l,s),y(l,h),y(l,c)},p(t,e){2&e&&u!==(u=t[1].time+"")&&v(h,u)},d(t){t&&a(e),t&&a(l)}}}function X(t){let e,i,u,f;const g=[Y,$],p=[];function m(t,e){return t[0]?0:t[1]?1:-1}return~(i=m(t))&&(u=p[i]=g[i](t)),{c(){e=s("section"),u&&u.c()},l(t){e=n(t,"SECTION",{});var i=o(e);u&&u.l(i),i.forEach(a)},m(t,s){r(t,e,s),~i&&p[i].m(e,null),f=!0},p(t,s){let[n]=s,o=i;i=m(t),i===o?~i&&p[i].p(t,n):(u&&(l(),h(p[o],1,1,(()=>{p[o]=null})),c()),~i?(u=p[i],u?u.p(t,n):(u=p[i]=g[i](t),u.c()),d(u,1),u.m(e,null)):u=null)},i(t){f||(d(u),f=!0)},o(t){h(u),f=!1},d(t){t&&a(e),~i&&p[i].d()}}}function q(t,e,i){let{slug:s}=e,n=!0,{apiBaseUrl:o,userContentBaseUrl:a}=f["status-website"]||{};o||(o="https://api.github.com"),a||(a="https://raw.githubusercontent.com");const r=f.owner,l=f.repo;let h=null;return u((async()=>{try{const t=await fetch("".concat(a,"/").concat(r,"/").concat(l,"/master/history/summary.json"));i(1,h=(await t.json()).find((t=>t.slug===s)))}catch(t){B(t)}i(0,n=!1)})),t.$$set=t=>{"slug"in t&&i(2,s=t.slug)},[n,h,s]}class K extends t{constructor(t){super(),e(this,t,q,X,i,{slug:2})}}function G(t,e,i){const s=t.slice();return s[6]=e[i],s}function Z(t){let e,i,l,h,c=f.i18n.pastIncidents+"",d=t[1],u=[];for(let e=0;e<d.length;e+=1)u[e]=tt(G(t,d,e));return{c(){e=s("h2"),i=g(c),l=p();for(let t=0;t<u.length;t+=1)u[t].c();h=D(),this.h()},l(t){e=n(t,"H2",{class:!0});var s=o(e);i=m(s,c),s.forEach(a),l=b(t);for(let e=0;e<u.length;e+=1)u[e].l(t);h=D(),this.h()},h(){x(e,"class","svelte-18y4uo2")},m(t,s){r(t,e,s),y(e,i),r(t,l,s);for(let e=0;e<u.length;e+=1)u[e]&&u[e].m(t,s);r(t,h,s)},p(t,e){if(2&e){let i;for(d=t[1],i=0;i<d.length;i+=1){const s=G(t,d,i);u[i]?u[i].p(s,e):(u[i]=tt(s),u[i].c(),u[i].m(h.parentNode,h))}for(;i<u.length;i+=1)u[i].d(1);u.length=d.length}},i:w,o:w,d(t){t&&a(e),t&&a(l),O(u,t),t&&
|
||
|
/*!
|
||
|
* Chart.js v3.9.1
|
||
|
* https://www.chartjs.org
|
||
|
* (c) 2022 Chart.js Contributors
|
||
|
* Released under the MIT License
|
||
|
*/
|
||
|
function nt(){}const ot=function(){let t=0;return function(){return t++}}();function at(t){return null==t}function rt(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function lt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ht=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function ct(t,e){return ht(t)?t:e}function dt(t,e){return void 0===t?e:t}const ut=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function ft(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function gt(t,e,i,s){let n,o,a;if(rt(t))if(o=t.length,s)for(n=o-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if(lt(t))for(a=Object.keys(t),o=a.length,n=0;n<o;n++)e.call(i,t[a[n]],a[n])}function pt(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function mt(t){if(rt(t))return t.map(mt);if(lt(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=mt(t[i[n]]);return e}return t}function bt(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function xt(t,e,i,s){if(!bt(t))return;const n=e[t],o=i[t];lt(n)&<(o)?_t(n,o,s):e[t]=mt(o)}function _t(t,e,i){const s=rt(e)?e:[e],n=s.length;if(!lt(t))return t;const o=(i=i||{}).merger||xt;for(let a=0;a<n;++a){if(!lt(e=s[a]))continue;const n=Object.keys(e);for(let s=0,a=n.length;s<a;++s)o(n[s],t,e,i)}return t}function yt(t,e){return _t(t,e,{merger:vt})}function vt(t,e,i){if(!bt(t))return;const s=e[t],n=i[t];lt(s)&<(n)?yt(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=mt(n))}const wt={"":t=>t,x:t=>t.x,y:t=>t.y};function Mt(t,e){const i=wt[e]||(wt[e]=function(t){const e=function(t){const e=t.split("."),i=[];let s="";for(const t of e)s+=t,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}(t);return t=>{for(const i of e){if(""===i)break;t=t&&t[i]}return t}}(e));return i(t)}function kt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const St=t=>void 0!==t,Pt=t=>"function"==typeof t,Dt=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const Ot=Math.PI,Ct=2*Ot,At=Ct+Ot,Tt=Number.POSITIVE_INFINITY,Et=Ot/180,Lt=Ot/2,Rt=Ot/4,It=2*Ot/3,zt=Math.log10,Ft=Math.sign;function Vt(t){const e=Math.round(t);t=Nt(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(zt(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function Bt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Nt(t,e,i){return Math.abs(t-e)<i}function Wt(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function jt(t){return t*(Ot/180)}function Ht(t){return t*(180/Ot)}function $t(t){if(!ht(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function Yt(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*Ot&&(o+=Ct),{angle:o,distance:n}}function Ut(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Xt(t,e){return(t-e+At)%Ct-Ot}function qt(t){return(t%Ct+Ct)%Ct}function Kt(t,e,i,s){const n=qt(t),o=qt(e),a=qt(i),r=qt(o-n),l=qt(a-n),h=qt(n-o),c=qt(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function Gt(t,e,i){return Math.max(e,Math.min(i,t))}function Zt(t,e,i){let s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e-6;return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}function Jt(t,e,i){i=i||(i=>t[i]<e);let s,n=t.length-1,o=0;for(;n-o>1;)s=o+n>>1,i(s)?o=s:n=s;return{lo:o,hi:n}}const Qt=(t,e,i,s)=>Jt(t,i,s?s=>t[s][e]<=i:s=>t[s][e]<i),te=(t,e,i)=>Jt(t,i,(s=>t[s][e]>=i));const ee=["push","pop","shift","splice","unshift"];function ie(t,e){const i=t._chartjs;if(!i)return;const s=i.listeners,n=s.indexOf(e);-1!==n&&s.splice(n,1),s.length>0||(ee.forEach((e=>{delete t[e]})),delete t._chartjs)}function se(t){const e=new Set;let i,s;for(i=0,s=t.length;i<s;++i)e.add(t[i]);return e.size===s?t:Array.from(e)}const ne="undefined"==typeof window?function(t){retur
|
||
|
/*!
|
||
|
* @kurkle/color v0.2.1
|
||
|
* https://github.com/kurkle/color#readme
|
||
|
* (c) 2022 Jukka Kurkela
|
||
|
* Released under the MIT License
|
||
|
*/
|
||
|
function ge(t){return t+.5|0}const pe=(t,e,i)=>Math.max(Math.min(t,i),e);function me(t){return pe(ge(2.55*t),0,255)}function be(t){return pe(ge(255*t),0,255)}function xe(t){return pe(ge(t/2.55)/100,0,1)}function _e(t){return pe(ge(100*t),0,100)}const ye={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ve=[..."0123456789ABCDEF"],we=t=>ve[15&t],Me=t=>ve[(240&t)>>4]+ve[15&t],ke=t=>(240&t)>>4==(15&t);function Se(t){var e=(t=>ke(t.r)&&ke(t.g)&&ke(t.b)&&ke(t.a))(t)?we:Me;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const Pe=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function De(t,e,i){const s=e*Math.min(i,1-i),n=function(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+t/30)%12;return i-s*Math.max(Math.min(n-3,9-n,1),-1)};return[n(0),n(8),n(4)]}function Oe(t,e,i){const s=function(s){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(s+t/60)%6;return i-i*e*Math.max(Math.min(n,4-n,1),0)};return[s(5),s(3),s(1)]}function Ce(t,e,i){const s=De(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function Ae(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function Te(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(be)}function Ee(t,e,i){return Te(De,t,e,i)}function Le(t){return(t%360+360)%360}function Re(t){const e=Pe.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?me(+e[5]):be(+e[5]));const n=Le(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return Te(Ce,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return Te(Oe,t,e,i)}(n,o,a):Ee(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}const Ie={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ze={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",s
|