uptime/client/legacy/index.a009a1a5.js

2 lines
32 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

import{_ as t,a as n,b as e,c as a,i as c,s as r,d as i,e as o,S as s,f as u,t as l,g as f,h,j as d,k as v,l as m,m as p,n as g,o as $,p as E,q as w,r as y,u as _,v as D,w as R,x as I,y as T,z as k,A as S,B as b,C as L,D as M,E as x,F as N,G as B,H,I as A,J as O,K as V,L as U,M as P,N as C,O as F,P as j,Q as W}from"./client.9d68dd7a.js";import{c as Y,_ as z,h as G,a as q,L as J}from"./createOctokit.006dd7f3.js";function K(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 c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function Q(t,n,e){var a=t.slice();return a[5]=n[e],a}function X(t){var n,e,a,c=S.i18n.allSystemsOperational+"";return{c:function(){n=u("article"),e=l("✅   "),a=l(c),this.h()},l:function(t){n=f(t,"ARTICLE",{class:!0});var r=h(n);e=d(r,"✅   "),a=d(r,c),r.forEach(v),this.h()},h:function(){m(n,"class","up")},m:function(t,c){p(t,n,c),g(n,e),g(n,a)},p:$,d:function(t){t&&v(n)}}}function Z(t){for(var n,e,a,c,r=S.i18n.activeIncidents+"",i=t[1],o=[],s=0;s<i.length;s+=1)o[s]=nt(Q(t,i,s));return{c:function(){n=u("h2"),e=l(r),a=E();for(var t=0;t<o.length;t+=1)o[t].c();c=L()},l:function(t){n=f(t,"H2",{});var i=h(n);e=d(i,r),i.forEach(v),a=w(t);for(var s=0;s<o.length;s+=1)o[s].l(t);c=L()},m:function(t,r){p(t,n,r),g(n,e),p(t,a,r);for(var i=0;i<o.length;i+=1)o[i].m(t,r);p(t,c,r)},p:function(t,n){if(2&n){var e;for(i=t[1],e=0;e<i.length;e+=1){var a=Q(t,i,e);o[e]?o[e].p(a,n):(o[e]=nt(a),o[e].c(),o[e].m(c.parentNode,c))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length}},i:$,o:$,d:function(t){t&&v(n),t&&v(a),M(o,t),t&&v(c)}}}function tt(t){var n,e;return n=new J({}),{c:function(){x(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,a){B(n,t,a),e=!0},p:$,i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){D(n.$$.fragment,t),e=!1},d:function(t){H(n,t)}}}function nt(t){var n,e,a,c,r,i,o,s,$,y,_,D,R,I,T,k=t[5].title.replace("🛑","").replace("⚠️","").trim()+"",L=S.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(t[5].created_at).toLocaleString()).replace(/\$POSTS/g,t[5].comments)+"",M=S.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"";return{c:function(){n=u("article"),e=u("div"),a=u("div"),c=u("h4"),r=l(k),i=E(),o=u("div"),s=l(L),$=E(),y=u("div"),_=u("a"),D=l(M),I=E(),this.h()},l:function(t){n=f(t,"ARTICLE",{class:!0});var u=h(n);e=f(u,"DIV",{class:!0});var l=h(e);a=f(l,"DIV",{});var m=h(a);c=f(m,"H4",{});var p=h(c);r=d(p,k),p.forEach(v),i=w(m),o=f(m,"DIV",{});var g=h(o);s=d(g,L),g.forEach(v),m.forEach(v),$=w(l),y=f(l,"DIV",{class:!0});var E=h(y);_=f(E,"A",{href:!0});var R=h(_);D=d(R,M),R.forEach(v),E.forEach(v),l.forEach(v),I=w(u),u.forEach(v),this.h()},h:function(){m(_,"href",R="".concat(S.path,"/incident/").concat(t[5].number)),m(y,"class","f r"),m(e,"class","f"),m(n,"class",T="down down-active link "+(t[5].title.includes("degraded")?"degraded":""))},m:function(t,u){p(t,n,u),g(n,e),g(e,a),g(a,c),g(c,r),g(a,i),g(a,o),g(o,s),g(e,$),g(e,y),g(y,_),g(_,D),g(n,I)},p:function(t,e){2&e&&k!==(k=t[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(r,k),2&e&&L!==(L=S.i18n.activeIncidentSummary.replace(/\$DATE/g,new Date(t[5].created_at).toLocaleString()).replace(/\$POSTS/g,t[5].comments)+"")&&b(s,L),2&e&&M!==(M=S.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"")&&b(D,M),2&e&&R!==(R="".concat(S.path,"/incident/").concat(t[5].number))&&m(_,"href",R),2&e&&T!==(T="down down-active link "+(t[5].title.includes("degraded")?"degraded":""))&&m(n,"class",T)},d:function(t){t&&v(n)}}}function et(t){var n,e,a,c,r,i=!t[1].length&&!t[0]&&X(),o=[tt,Z],s=[];function l(t,n){return t[0]?0:t[1].length?1:-1}return~(a=l(t))&&(c=s[a]=o[a](t)),{c:function(){i&&i.c(),n=E(),e=u("section"),c&&c.c(),this.h()},l:function(t){i&&i.l(t),n=w(t),e=f(t,"SECTION",{class:!0});var a=h(e);c&&c.l(a),a.forEach(v),this.h()},h:function(){m(e,"class","svelte-8lnl4f")},m:function(t,c){i&&i.m(t,c),p(t,n,c),p(t,e,c),~a&&s[a].m(e,null),r=!0},p:function(t,r){var u=y(r,1)[0];t[1].length||t[0]?i&&(i.d(1),i=null):i?i.p(t,u):((i=X()).c(),i.m(n.parentNode,n));var f=a;(a=l(t))===f?~a&&s[a].p(t,u):(c&&(_(),D(s[f],1,1,(function(){s[f]=null})),R()),~a?((c=s[a])?c.p(t,u):(c=s[a]=o[a](t)).c(),I(c,1),c.m(e,null)):c=null)},i:function(t){r||(I(c),r=!0)},o:function(t){D(c),r=!1},d:function(t){i&&i.d(t),t&&v(n),t&&v(e),~a&&s[a].d()}}}function at(t,n,e){var a=!0,c=Y(),r=S.owner,i=S.repo,o=[];return T(z(k.mark((function t(){return k.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=e,t.next=4,q("issues-".concat(r,"-").concat(i),(function(){return c.issues.listForRepo({owner:r,repo:i,state:"open",filter:"all",sort:"created",direction:"desc",labels:"status"})}));case 4:t.t1=o=t.sent.data,(0,t.t0)(1,t.t1),e(1,o=o.map((function(t,n){return t.showHeading=0===n||new Date(o[n-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t}))),t.next=12;break;case 9:t.prev=9,t.t2=t.catch(0),G(t.t2);case 12:e(0,a=!1);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))),[a,o]}var ct=function(n){t(u,s);var e=K(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,at,et,r,{}),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 c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function it(t,n,e){var a=t.slice();return a[5]=n[e],a}function ot(t){for(var n,e,a,c,r=S.i18n.scheduledMaintenance+"",i=t[1],o=[],s=0;s<i.length;s+=1)o[s]=lt(it(t,i,s));return{c:function(){n=u("h2"),e=l(r),a=E();for(var t=0;t<o.length;t+=1)o[t].c();c=L()},l:function(t){n=f(t,"H2",{});var i=h(n);e=d(i,r),i.forEach(v),a=w(t);for(var s=0;s<o.length;s+=1)o[s].l(t);c=L()},m:function(t,r){p(t,n,r),g(n,e),p(t,a,r);for(var i=0;i<o.length;i+=1)o[i].m(t,r);p(t,c,r)},p:function(t,n){if(2&n){var e;for(i=t[1],e=0;e<i.length;e+=1){var a=it(t,i,e);o[e]?o[e].p(a,n):(o[e]=lt(a),o[e].c(),o[e].m(c.parentNode,c))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length}},i:$,o:$,d:function(t){t&&v(n),t&&v(a),M(o,t),t&&v(c)}}}function st(t){var n,e;return n=new J({}),{c:function(){x(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,a){B(n,t,a),e=!0},p:$,i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){D(n.$$.fragment,t),e=!1},d:function(t){H(n,t)}}}function ut(t){var n,e,a=(new Date(t[5].metadata.start).getTime()<(new Date).getTime()?S.i18n.scheduledMaintenanceSummaryStarted:S.i18n.scheduledMaintenanceSummaryStarts).replace(/\$DATE/g,new Date(t[5].metadata.start).toLocaleString()).replace(/\$DURATION/g,Math.floor((new Date(t[5].metadata.end).getTime()-new Date(t[5].metadata.start).getTime())/6e4))+"";return{c:function(){n=u("div"),e=l(a)},l:function(t){n=f(t,"DIV",{});var c=h(n);e=d(c,a),c.forEach(v)},m:function(t,a){p(t,n,a),g(n,e)},p:function(t,n){2&n&&a!==(a=(new Date(t[5].metadata.start).getTime()<(new Date).getTime()?S.i18n.scheduledMaintenanceSummaryStarted:S.i18n.scheduledMaintenanceSummaryStarts).replace(/\$DATE/g,new Date(t[5].metadata.start).toLocaleString()).replace(/\$DURATION/g,Math.floor((new Date(t[5].metadata.end).getTime()-new Date(t[5].metadata.start).getTime())/6e4))+"")&&b(e,a)},d:function(t){t&&v(n)}}}function lt(t){var n,e,a,c,r,i,o,s,$,y,_,D,R=t[5].title.replace("🛑","").replace("⚠️","").trim()+"",I=S.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"",T=t[5].metadata.start&&t[5].metadata.end&&ut(t);return{c:function(){n=u("article"),e=u("div"),a=u("div"),c=u("h4"),r=l(R),i=E(),T&&T.c(),o=E(),s=u("div"),$=u("a"),y=l(I),D=E(),this.h()},l:function(t){n=f(t,"ARTICLE",{class:!0});var u=h(n);e=f(u,"DIV",{class:!0});var l=h(e);a=f(l,"DIV",{});var m=h(a);c=f(m,"H4",{});var p=h(c);r=d(p,R),p.forEach(v),i=w(m),T&&T.l(m),m.forEach(v),o=w(l),s=f(l,"DIV",{class:!0});var g=h(s);$=f(g,"A",{href:!0});var E=h($);y=d(E,I),E.forEach(v),g.forEach(v),l.forEach(v),D=w(u),u.forEach(v),this.h()},h:function(){m($,"href",_="".concat(S.path,"/incident/").concat(t[5].number)),m(s,"class","f r"),m(e,"class","f"),m(n,"class","degraded degraded-active link")},m:function(t,u){p(t,n,u),g(n,e),g(e,a),g(a,c),g(c,r),g(a,i),T&&T.m(a,null),g(e,o),g(e,s),g(s,$),g($,y),g(n,D)},p:function(t,n){2&n&&R!==(R=t[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(r,R),t[5].metadata.start&&t[5].metadata.end?T?T.p(t,n):((T=ut(t)).c(),T.m(a,null)):T&&(T.d(1),T=null),2&n&&I!==(I=S.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"")&&b(y,I),2&n&&_!==(_="".concat(S.path,"/incident/").concat(t[5].number))&&m($,"href",_)},d:function(t){t&&v(n),T&&T.d()}}}function ft(t){var n,e,a,c,r=[st,ot],i=[];function o(t,n){return t[0]?0:t[1].length?1:-1}return~(e=o(t))&&(a=i[e]=r[e](t)),{c:function(){n=u("section"),a&&a.c(),this.h()},l:function(t){n=f(t,"SECTION",{class:!0});var e=h(n);a&&a.l(e),e.forEach(v),this.h()},h:function(){m(n,"class","svelte-8lnl4f")},m:function(t,a){p(t,n,a),~e&&i[e].m(n,null),c=!0},p:function(t,c){var s=y(c,1)[0],u=e;(e=o(t))===u?~e&&i[e].p(t,s):(a&&(_(),D(i[u],1,1,(function(){i[u]=null})),R()),~e?((a=i[e])?a.p(t,s):(a=i[e]=r[e](t)).c(),I(a,1),a.m(n,null)):a=null)},i:function(t){c||(I(a),c=!0)},o:function(t){D(a),c=!1},d:function(t){t&&v(n),~e&&i[e].d()}}}function ht(t,n,e){var a=!0,c=Y(),r=S.owner,i=S.repo,o=[];return T(z(k.mark((function t(){return k.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=e,t.next=4,q("scheduled-current-".concat(r,"-").concat(i),(function(){return c.issues.listForRepo({owner:r,repo:i,state:"open",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})}));case 4:t.t1=o=t.sent.data,(0,t.t0)(1,t.t1),e(1,o=o.map((function(t,n){(t.showHeading=0===n||new Date(o[n-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t.metadata={},t.body.includes("\x3c!--"))&&t.body.split("\x3c!--")[1].split("--\x3e")[0].split("\n").filter((function(t){return t.trim()})).filter((function(t){return t.includes(":")})).forEach((function(n){t.metadata[n.split(/:(.+)/)[0].trim()]=n.split(/:(.+)/)[1].trim()}));return t}))),t.next=12;break;case 9:t.prev=9,t.t2=t.catch(0),G(t.t2);case 12:e(0,a=!1);case 13:case"end":return t.stop()}}),t,null,[[0,9]])})))),[a,o]}var dt=function(n){t(u,s);var e=rt(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,ht,ft,r,{}),n}return o(u)}();function vt(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 c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function mt(t,n,e){var a=t.slice();return a[5]=n[e],a}function pt(t){for(var n,e,a,c,r=S.i18n.pastIncidents+"",i=t[1],o=[],s=0;s<i.length;s+=1)o[s]=Et(mt(t,i,s));return{c:function(){n=u("h2"),e=l(r),a=E();for(var t=0;t<o.length;t+=1)o[t].c();c=L(),this.h()},l:function(t){n=f(t,"H2",{class:!0});var i=h(n);e=d(i,r),i.forEach(v),a=w(t);for(var s=0;s<o.length;s+=1)o[s].l(t);c=L(),this.h()},h:function(){m(n,"class","svelte-18y4uo2")},m:function(t,r){p(t,n,r),g(n,e),p(t,a,r);for(var i=0;i<o.length;i+=1)o[i].m(t,r);p(t,c,r)},p:function(t,n){if(2&n){var e;for(i=t[1],e=0;e<i.length;e+=1){var a=mt(t,i,e);o[e]?o[e].p(a,n):(o[e]=Et(a),o[e].c(),o[e].m(c.parentNode,c))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length}},i:$,o:$,d:function(t){t&&v(n),t&&v(a),M(o,t),t&&v(c)}}}function gt(t){var n,e;return n=new J({}),{c:function(){x(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,a){B(n,t,a),e=!0},p:$,i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){D(n.$$.fragment,t),e=!1},d:function(t){H(n,t)}}}function $t(t){var n,e,a=new Date(t[5].created_at).toLocaleDateString()+"";return{c:function(){n=u("h3"),e=l(a)},l:function(t){n=f(t,"H3",{});var c=h(n);e=d(c,a),c.forEach(v)},m:function(t,a){p(t,n,a),g(n,e)},p:function(t,n){2&n&&a!==(a=new Date(t[5].created_at).toLocaleDateString()+"")&&b(e,a)},d:function(t){t&&v(n)}}}function Et(t){var n,e,a,c,r,i,o,s,$,y,_,D,R,I,T,k=t[5].title.replace("🛑","").replace("⚠️","").trim()+"",L=S.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(t[5].closed_at).getTime()-new Date(t[5].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,t[5].comments)+"",M=S.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"",x=t[5].showHeading&&$t(t);return{c:function(){x&&x.c(),n=E(),e=u("article"),a=u("div"),c=u("div"),r=u("h4"),i=l(k),o=E(),s=u("div"),$=E(),y=u("div"),_=u("a"),D=l(M),I=E(),this.h()},l:function(t){x&&x.l(t),n=w(t),e=f(t,"ARTICLE",{class:!0});var u=h(e);a=f(u,"DIV",{class:!0});var l=h(a);c=f(l,"DIV",{});var m=h(c);r=f(m,"H4",{});var p=h(r);i=d(p,k),p.forEach(v),o=w(m),s=f(m,"DIV",{}),h(s).forEach(v),m.forEach(v),$=w(l),y=f(l,"DIV",{class:!0});var g=h(y);_=f(g,"A",{href:!0});var E=h(_);D=d(E,M),E.forEach(v),g.forEach(v),l.forEach(v),I=w(u),u.forEach(v),this.h()},h:function(){m(_,"href",R="".concat(S.path,"/incident/").concat(t[5].number)),m(y,"class","f r"),m(a,"class","f"),m(e,"class",T="down link "+(t[5].title.includes("degraded")?"degraded":""))},m:function(t,u){x&&x.m(t,u),p(t,n,u),p(t,e,u),g(e,a),g(a,c),g(c,r),g(r,i),g(c,o),g(c,s),s.innerHTML=L,g(a,$),g(a,y),g(y,_),g(_,D),g(e,I)},p:function(t,a){t[5].showHeading?x?x.p(t,a):((x=$t(t)).c(),x.m(n.parentNode,n)):x&&(x.d(1),x=null),2&a&&k!==(k=t[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(i,k),2&a&&L!==(L=S.i18n.pastIncidentsResolved.replace(/\$MINUTES/g,((new Date(t[5].closed_at).getTime()-new Date(t[5].created_at).getTime())/6e4).toFixed(0)).replace(/\$POSTS/g,t[5].comments)+"")&&(s.innerHTML=L),2&a&&M!==(M=S.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"")&&b(D,M),2&a&&R!==(R="".concat(S.path,"/incident/").concat(t[5].number))&&m(_,"href",R),2&a&&T!==(T="down link "+(t[5].title.includes("degraded")?"degraded":""))&&m(e,"class",T)},d:function(t){x&&x.d(t),t&&v(n),t&&v(e)}}}function wt(t){var n,e,a,c,r=[gt,pt],i=[];function o(t,n){return t[0]?0:t[1].length?1:-1}return~(e=o(t))&&(a=i[e]=r[e](t)),{c:function(){n=u("section"),a&&a.c()},l:function(t){n=f(t,"SECTION",{});var e=h(n);a&&a.l(e),e.forEach(v)},m:function(t,a){p(t,n,a),~e&&i[e].m(n,null),c=!0},p:function(t,c){var s=y(c,1)[0],u=e;(e=o(t))===u?~e&&i[e].p(t,s):(a&&(_(),D(i[u],1,1,(function(){i[u]=null})),R()),~e?((a=i[e])?a.p(t,s):(a=i[e]=r[e](t)).c(),I(a,1),a.m(n,null)):a=null)},i:function(t){c||(I(a),c=!0)},o:function(t){D(a),c=!1},d:function(t){t&&v(n),~e&&i[e].d()}}}function yt(t,n,e){var a=!0,c=Y(),r=S.owner,i=S.repo,o=[];return T(z(k.mark((function t(){return k.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=e,t.next=4,q("closed-issues-".concat(r,"-").concat(i),(function(){return c.issues.listForRepo({owner:r,repo:i,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"status"})}));case 4:t.t1=o=t.sent.data,(0,t.t0)(1,t.t1),t.next=11;break;case 8:t.prev=8,t.t2=t.catch(0),G(t.t2);case 11:e(1,o=o.map((function(t,n){return t.showHeading=0===n||new Date(o[n-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t}))),e(0,a=!1);case 13:case"end":return t.stop()}}),t,null,[[0,8]])})))),[a,o]}var _t=function(n){t(u,s);var e=vt(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,yt,wt,r,{}),n}return o(u)}();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 c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function Rt(t,n,e){var a=t.slice();return a[18]=n[e],a}function It(t){for(var n,e=t[1],a=[],c=0;c<e.length;c+=1)a[c]=kt(Rt(t,e,c));return{c:function(){for(var t=0;t<a.length;t+=1)a[t].c();n=L()},l:function(t){for(var e=0;e<a.length;e+=1)a[e].l(t);n=L()},m:function(t,e){for(var c=0;c<a.length;c+=1)a[c].m(t,e);p(t,n,e)},p:function(t,c){if(26&c){var r;for(e=t[1],r=0;r<e.length;r+=1){var i=Rt(t,e,r);a[r]?a[r].p(i,c):(a[r]=kt(i),a[r].c(),a[r].m(n.parentNode,n))}for(;r<a.length;r+=1)a[r].d(1);a.length=e.length}},i:$,o:$,d:function(t){M(a,t),t&&v(n)}}}function Tt(t){var n,e;return n=new J({}),{c:function(){x(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,a){B(n,t,a),e=!0},p:$,i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){D(n.$$.fragment,t),e=!1},d:function(t){H(n,t)}}}function kt(t){var n,e,a,c,r,i,o,s,$,y,_,D,R,I,T,k,L,M,x,N,B,H,A,O,V,j,W,Y,z,G=t[18].name+"",q=S.i18n.overallUptime.split("$UPTIME")[0]+"",J=("day"===t[3]?t[18].uptimeDay:"week"===t[3]?t[18].uptimeWeek:"month"===t[3]?t[18].uptimeMonth:"year"===t[3]?t[18].uptimeYear:t[18].uptime)+"",K=S.i18n.overallUptime.split("$UPTIME")[1]+"",Q=S.i18n.averageResponseTime.split("$TIME")[0]+"",X=("day"===t[3]?t[18].timeDay:"week"===t[3]?t[18].timeWeek:"month"===t[3]?t[18].timeMonth:"year"===t[3]?t[18].timeYear:t[18].time)+"",Z=S.i18n.averageResponseTime.split("$TIME")[1]+"";return{c:function(){n=u("article"),e=u("h4"),a=u("img"),r=E(),i=u("a"),o=l(G),$=E(),y=u("img"),D=E(),R=u("div"),I=new U,T=E(),k=u("span"),L=l(J),M=E(),x=new U,N=E(),B=u("div"),H=new U,A=E(),O=u("span"),V=l(X),j=E(),W=new U,Y=E(),this.h()},l:function(t){n=f(t,"ARTICLE",{class:!0});var c=h(n);e=f(c,"H4",{class:!0});var s=h(e);a=f(s,"IMG",{class:!0,alt:!0,src:!0}),r=w(s),i=f(s,"A",{href:!0,class:!0});var u=h(i);o=d(u,G),u.forEach(v),s.forEach(v),$=w(c),y=f(c,"IMG",{alt:!0,class:!0,src:!0}),D=w(c),R=f(c,"DIV",{class:!0});var l=h(R);I=P(l),T=w(l),k=f(l,"SPAN",{class:!0});var m=h(k);L=d(m,J),M=w(m),x=P(m),m.forEach(v),l.forEach(v),N=w(c),B=f(c,"DIV",{class:!0});var p=h(B);H=P(p),A=w(p),O=f(p,"SPAN",{class:!0});var g=h(O);V=d(g,X),j=w(g),W=P(g),g.forEach(v),p.forEach(v),Y=w(c),c.forEach(v),this.h()},h:function(){m(a,"class","icon svelte-14gfn20"),m(a,"alt",""),C(a.src,c=t[18].icon)||m(a,"src",c),m(i,"href",s="".concat(S.path,"/history/").concat(t[18].slug)),m(i,"class","svelte-14gfn20"),m(e,"class","svelte-14gfn20"),m(y,"alt",""),m(y,"class","graph svelte-14gfn20"),C(y.src,_="".concat(t[4],"/").concat(t[18].slug,"/response-time").concat("day"===t[3]?"-day":"week"===t[3]?"-week":"month"===t[3]?"-month":"year"===t[3]?"-year":"",".png"))||m(y,"src",_),I.a=T,x.a=null,m(k,"class","data svelte-14gfn20"),m(R,"class","svelte-14gfn20"),H.a=A,W.a=null,m(O,"class","data svelte-14gfn20"),m(B,"class","svelte-14gfn20"),m(n,"class",z=F("".concat(t[18].status," link"))+" svelte-14gfn20")},m:function(t,c){p(t,n,c),g(n,e),g(e,a),g(e,r),g(e,i),g(i,o),g(n,$),g(n,y),g(n,D),g(n,R),I.m(q,R),g(R,T),g(R,k),g(k,L),g(k,M),x.m(K,k),g(n,N),g(n,B),H.m(Q,B),g(B,A),g(B,O),g(O,V),g(O,j),W.m(Z,O),g(n,Y)},p:function(t,e){2&e&&!C(a.src,c=t[18].icon)&&m(a,"src",c),2&e&&G!==(G=t[18].name+"")&&b(o,G),2&e&&s!==(s="".concat(S.path,"/history/").concat(t[18].slug))&&m(i,"href",s),10&e&&!C(y.src,_="".concat(t[4],"/").concat(t[18].slug,"/response-time").concat("day"===t[3]?"-day":"week"===t[3]?"-week":"month"===t[3]?"-month":"year"===t[3]?"-year":"",".png"))&&m(y,"src",_),10&e&&J!==(J=("day"===t[3]?t[18].uptimeDay:"week"===t[3]?t[18].uptimeWeek:"month"===t[3]?t[18].uptimeMonth:"year"===t[3]?t[18].uptimeYear:t[18].uptime)+"")&&b(L,J),10&e&&X!==(X=("day"===t[3]?t[18].timeDay:"week"===t[3]?t[18].timeWeek:"month"===t[3]?t[18].timeMonth:"year"===t[3]?t[18].timeYear:t[18].time)+"")&&b(V,X),2&e&&z!==(z=F("".concat(t[18].status," link"))+" svelte-14gfn20")&&m(n,"class",z)},d:function(t){t&&v(n)}}}function St(t){var n,e,a,c,r,i,o,s,$,T,k,b,L,M,x,N,B,H,V,U,P,C,F,j,W,Y,z,G,q,J,K,Q,X,Z,tt,nt,et=S.i18n.liveStatus+"",at=[Tt,It],ct=[];function rt(t,n){return t[0]?0:t[1].length?1:-1}return~(Q=rt(t))&&(X=ct[Q]=at[Q](t)),{c:function(){n=u("div"),e=u("h2"),a=l(et),c=E(),r=u("form"),i=u("div"),o=u("input"),s=u("label"),$=l("24h"),T=E(),k=u("div"),b=u("input"),L=u("label"),M=l("7d"),x=E(),N=u("div"),B=u("input"),H=u("label"),V=l("30d"),U=E(),P=u("div"),C=u("input"),F=u("label"),j=l("1y"),W=E(),Y=u("div"),z=u("input"),G=u("label"),q=l("all"),J=E(),K=u("section"),X&&X.c(),this.h()},l:function(t){n=f(t,"DIV",{class:!0});var u=h(n);e=f(u,"H2",{});var l=h(e);a=d(l,et),l.forEach(v),c=w(u),r=f(u,"FORM",{class:!0});var m=h(r);i=f(m,"DIV",{});var p=h(i);o=f(p,"INPUT",{name:!0,type:!0,id:!0,class:!0}),s=f(p,"LABEL",{for:!0,class:!0});var g=h(s);$=d(g,"24h"),g.forEach(v),p.forEach(v),T=w(m),k=f(m,"DIV",{});var E=h(k);b=f(E,"INPUT",{name:!0,type:!0,id:!0,class:!0}),L=f(E,"LABEL",{for:!0,class:!0});var y=h(L);M=d(y,"7d"),y.forEach(v),E.forEach(v),x=w(m),N=f(m,"DIV",{});var _=h(N);B=f(_,"INPUT",{name:!0,type:!0,id:!0,class:!0}),H=f(_,"LABEL",{for:!0,class:!0});var D=h(H);V=d(D,"30d"),D.forEach(v),_.forEach(v),U=w(m),P=f(m,"DIV",{});var R=h(P);C=f(R,"INPUT",{name:!0,type:!0,id:!0,class:!0}),F=f(R,"LABEL",{for:!0,class:!0});var I=h(F);j=d(I,"1y"),I.forEach(v),R.forEach(v),W=w(m),Y=f(m,"DIV",{});var S=h(Y);z=f(S,"INPUT",{name:!0,type:!0,id:!0,class:!0}),G=f(S,"LABEL",{for:!0,class:!0});var A=h(G);q=d(A,"all"),A.forEach(v),S.forEach(v),m.forEach(v),u.forEach(v),J=w(t),K=f(t,"SECTION",{class:!0});var O=h(K);X&&X.l(O),O.forEach(v),this.h()},h:function(){o.__value="day",o.value=o.__value,m(o,"name","d"),m(o,"type","radio"),m(o,"id","data_day"),m(o,"class","svelte-14gfn20"),t[7][0].push(o),m(s,"for","data_day"),m(s,"class","svelte-14gfn20"),b.__value="week",b.value=b.__value,m(b,"name","d"),m(b,"type","radio"),m(b,"id","data_week"),m(b,"class","svelte-14gfn20"),t[7][0].push(b),m(L,"for","data_week"),m(L,"class","svelte-14gfn20"),B.__value="month",B.value=B.__value,m(B,"name","d"),m(B,"type","radio"),m(B,"id","data_month"),m(B,"class","svelte-14gfn20"),t[7][0].push(B),m(H,"for","data_month"),m(H,"class","svelte-14gfn20"),C.__value="year",C.value=C.__value,m(C,"name","d"),m(C,"type","radio"),m(C,"id","data_year"),m(C,"class","svelte-14gfn20"),t[7][0].push(C),m(F,"for","data_year"),m(F,"class","svelte-14gfn20"),z.__value="all",z.value=z.__value,m(z,"name","d"),m(z,"type","radio"),m(z,"id","data_all"),m(z,"class","svelte-14gfn20"),t[7][0].push(z),m(G,"for","data_all"),m(G,"class","svelte-14gfn20"),m(r,"class","f r svelte-14gfn20"),m(n,"class","f changed svelte-14gfn20"),m(K,"class","live-status svelte-14gfn20")},m:function(u,l){p(u,n,l),g(n,e),g(e,a),g(n,c),g(n,r),g(r,i),g(i,o),o.checked=o.__value===t[3],g(i,s),g(s,$),g(r,T),g(r,k),g(k,b),b.checked=b.__value===t[3],g(k,L),g(L,M),g(r,x),g(r,N),g(N,B),B.checked=B.__value===t[3],g(N,H),g(H,V),g(r,U),g(r,P),g(P,C),C.checked=C.__value===t[3],g(P,F),g(F,j),g(r,W),g(r,Y),g(Y,z),z.checked=z.__value===t[3],g(Y,G),g(G,q),t[12](n),p(u,J,l),p(u,K,l),~Q&&ct[Q].m(K,null),Z=!0,tt||(nt=[A(o,"change",t[6]),A(o,"change",t[5]),A(b,"change",t[8]),A(b,"change",t[5]),A(B,"change",t[9]),A(B,"change",t[5]),A(C,"change",t[10]),A(C,"change",t[5]),A(z,"change",t[11]),A(z,"change",t[5])],tt=!0)},p:function(t,n){var e=y(n,1)[0];8&e&&(o.checked=o.__value===t[3]),8&e&&(b.checked=b.__value===t[3]),8&e&&(B.checked=B.__value===t[3]),8&e&&(C.checked=C.__value===t[3]),8&e&&(z.checked=z.__value===t[3]);var a=Q;(Q=rt(t))===a?~Q&&ct[Q].p(t,e):(X&&(_(),D(ct[a],1,1,(function(){ct[a]=null})),R()),~Q?((X=ct[Q])?X.p(t,e):(X=ct[Q]=at[Q](t)).c(),I(X,1),X.m(K,null)):X=null)},i:function(t){Z||(I(X),Z=!0)},o:function(t){D(X),Z=!1},d:function(e){e&&v(n),t[7][0].splice(t[7][0].indexOf(o),1),t[7][0].splice(t[7][0].indexOf(b),1),t[7][0].splice(t[7][0].indexOf(B),1),t[7][0].splice(t[7][0].indexOf(C),1),t[7][0].splice(t[7][0].indexOf(z),1),t[12](null),e&&v(J),e&&v(K),~Q&&ct[Q].d(),tt=!1,O(nt)}}}function bt(t,n,e){var a=!0;Y();var c=S.owner,r=S.repo,i=(S["status-website"]||{}).apiBaseUrl,o=[];i||(i="https://api.github.com");var s=i.includes("api.github.com")?"https://raw.githubusercontent.com":i,u="".concat(s,"/").concat(c,"/").concat(r,"/master/graphs"),l=null,f="week";T(z(k.mark((function t(){var n;return k.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch("".concat(s,"/").concat(c,"/").concat(r,"/master/history/summary.json"));case 3:return n=t.sent,t.t0=e,t.next=7,n.json();case 7:t.t1=o=t.sent,(0,t.t0)(1,t.t1),t.next=14;break;case 11:t.prev=11,t.t2=t.catch(0),G(t.t2);case 14:e(0,a=!1),l&&l.classList.remove("changed");case 16:case"end":return t.stop()}}),t,null,[[0,11]])}))));return[a,o,l,f,u,function(){l&&(l.classList.add("changed"),setTimeout((function(){return l.classList.remove("changed")}),500))},function(){f=this.__value,e(3,f)},[[]],function(){f=this.__value,e(3,f)},function(){f=this.__value,e(3,f)},function(){f=this.__value,e(3,f)},function(){f=this.__value,e(3,f)},function(t){V[t?"unshift":"push"]((function(){e(2,l=t)}))}]}var Lt=function(n){t(u,s);var e=Dt(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,bt,St,r,{}),n}return o(u)}();function Mt(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 c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function xt(t,n,e){var a=t.slice();return a[5]=n[e],a}function Nt(t){for(var n,e,a,c,r=S.i18n.pastScheduledMaintenance+"",i=t[1],o=[],s=0;s<i.length;s+=1)o[s]=At(xt(t,i,s));return{c:function(){n=u("h2"),e=l(r),a=E();for(var t=0;t<o.length;t+=1)o[t].c();c=L(),this.h()},l:function(t){n=f(t,"H2",{class:!0});var i=h(n);e=d(i,r),i.forEach(v),a=w(t);for(var s=0;s<o.length;s+=1)o[s].l(t);c=L(),this.h()},h:function(){m(n,"class","svelte-18y4uo2")},m:function(t,r){p(t,n,r),g(n,e),p(t,a,r);for(var i=0;i<o.length;i+=1)o[i].m(t,r);p(t,c,r)},p:function(t,n){if(2&n){var e;for(i=t[1],e=0;e<i.length;e+=1){var a=xt(t,i,e);o[e]?o[e].p(a,n):(o[e]=At(a),o[e].c(),o[e].m(c.parentNode,c))}for(;e<o.length;e+=1)o[e].d(1);o.length=i.length}},i:$,o:$,d:function(t){t&&v(n),t&&v(a),M(o,t),t&&v(c)}}}function Bt(t){var n,e;return n=new J({}),{c:function(){x(n.$$.fragment)},l:function(t){N(n.$$.fragment,t)},m:function(t,a){B(n,t,a),e=!0},p:$,i:function(t){e||(I(n.$$.fragment,t),e=!0)},o:function(t){D(n.$$.fragment,t),e=!1},d:function(t){H(n,t)}}}function Ht(t){var n,e,a=new Date(t[5].created_at).toLocaleDateString()+"";return{c:function(){n=u("h3"),e=l(a)},l:function(t){n=f(t,"H3",{});var c=h(n);e=d(c,a),c.forEach(v)},m:function(t,a){p(t,n,a),g(n,e)},p:function(t,n){2&n&&a!==(a=new Date(t[5].created_at).toLocaleDateString()+"")&&b(e,a)},d:function(t){t&&v(n)}}}function At(t){var n,e,a,c,r,i,o,s,$,y,_,D,R,I,T,k=t[5].title.replace("🛑","").replace("⚠️","").trim()+"",L=S.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"",M=t[5].showHeading&&Ht(t);return{c:function(){M&&M.c(),n=E(),e=u("article"),a=u("div"),c=u("div"),r=u("h4"),i=l(k),o=E(),s=u("div"),$=l("Completed"),y=E(),_=u("div"),D=u("a"),R=l(L),T=E(),this.h()},l:function(t){M&&M.l(t),n=w(t),e=f(t,"ARTICLE",{class:!0});var u=h(e);a=f(u,"DIV",{class:!0});var l=h(a);c=f(l,"DIV",{});var m=h(c);r=f(m,"H4",{});var p=h(r);i=d(p,k),p.forEach(v),o=w(m),s=f(m,"DIV",{});var g=h(s);$=d(g,"Completed"),g.forEach(v),m.forEach(v),y=w(l),_=f(l,"DIV",{class:!0});var E=h(_);D=f(E,"A",{href:!0});var I=h(D);R=d(I,L),I.forEach(v),E.forEach(v),l.forEach(v),T=w(u),u.forEach(v),this.h()},h:function(){m(D,"href",I="".concat(S.path,"/incident/").concat(t[5].number)),m(_,"class","f r"),m(a,"class","f"),m(e,"class","link degraded")},m:function(t,u){M&&M.m(t,u),p(t,n,u),p(t,e,u),g(e,a),g(a,c),g(c,r),g(r,i),g(c,o),g(c,s),g(s,$),g(a,y),g(a,_),g(_,D),g(D,R),g(e,T)},p:function(t,e){t[5].showHeading?M?M.p(t,e):((M=Ht(t)).c(),M.m(n.parentNode,n)):M&&(M.d(1),M=null),2&e&&k!==(k=t[5].title.replace("🛑","").replace("⚠️","").trim()+"")&&b(i,k),2&e&&L!==(L=S.i18n.incidentReport.replace(/\$NUMBER/g,t[5].number)+"")&&b(R,L),2&e&&I!==(I="".concat(S.path,"/incident/").concat(t[5].number))&&m(D,"href",I)},d:function(t){M&&M.d(t),t&&v(n),t&&v(e)}}}function Ot(t){var n,e,a,c,r=[Bt,Nt],i=[];function o(t,n){return t[0]?0:t[1].length?1:-1}return~(e=o(t))&&(a=i[e]=r[e](t)),{c:function(){n=u("section"),a&&a.c()},l:function(t){n=f(t,"SECTION",{});var e=h(n);a&&a.l(e),e.forEach(v)},m:function(t,a){p(t,n,a),~e&&i[e].m(n,null),c=!0},p:function(t,c){var s=y(c,1)[0],u=e;(e=o(t))===u?~e&&i[e].p(t,s):(a&&(_(),D(i[u],1,1,(function(){i[u]=null})),R()),~e?((a=i[e])?a.p(t,s):(a=i[e]=r[e](t)).c(),I(a,1),a.m(n,null)):a=null)},i:function(t){c||(I(a),c=!0)},o:function(t){D(a),c=!1},d:function(t){t&&v(n),~e&&i[e].d()}}}function Vt(t,n,e){var a=!0,c=Y(),r=S.owner,i=S.repo,o=[];return T(z(k.mark((function t(){return k.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.t0=e,t.next=4,q("maintenance-issues-".concat(r,"-").concat(i),(function(){return c.issues.listForRepo({owner:r,repo:i,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})}));case 4:t.t1=o=t.sent.data,(0,t.t0)(1,t.t1),t.next=11;break;case 8:t.prev=8,t.t2=t.catch(0),G(t.t2);case 11:e(1,o=o.map((function(t,n){return t.showHeading=0===n||new Date(o[n-1].created_at).toLocaleDateString()!==new Date(t.created_at).toLocaleDateString(),t}))),e(0,a=!1);case 13:case"end":return t.stop()}}),t,null,[[0,8]])})))),[a,o]}var Ut=function(n){t(u,s);var e=Mt(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,Vt,Ot,r,{}),n}return o(u)}();function Pt(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 c,r=n(t);if(a){var i=n(this).constructor;c=Reflect.construct(r,arguments,i)}else c=r.apply(this,arguments);return e(this,c)}}function Ct(t){var n,e=W(S["status-website"].introTitle)+"";return{c:function(){n=u("h1")},l:function(t){n=f(t,"H1",{}),h(n).forEach(v)},m:function(t,a){p(t,n,a),n.innerHTML=e},p:$,d:function(t){t&&v(n)}}}function Ft(t){var n,e=W(S["status-website"].introMessage)+"";return{c:function(){n=u("p"),this.h()},l:function(t){n=f(t,"P",{class:!0}),h(n).forEach(v),this.h()},h:function(){m(n,"class","lead svelte-ngkazm")},m:function(t,a){p(t,n,a),n.innerHTML=e},p:$,d:function(t){t&&v(n)}}}function jt(t){var n,e,a,c,r,i,o,s,l,d,g,$,_,R;document.title=n=t[0];var T=S["status-website"]&&function(t){var n,e,a=S["status-website"].introTitle&&Ct(),c=S["status-website"].introMessage&&Ft();return{c:function(){a&&a.c(),n=E(),c&&c.c(),e=L()},l:function(t){a&&a.l(t),n=w(t),c&&c.l(t),e=L()},m:function(t,r){a&&a.m(t,r),p(t,n,r),c&&c.m(t,r),p(t,e,r)},p:function(t,n){S["status-website"].introTitle&&a.p(t,n),S["status-website"].introMessage&&c.p(t,n)},d:function(t){a&&a.d(t),t&&v(n),c&&c.d(t),t&&v(e)}}}();return r=new ct({}),o=new dt({}),l=new Lt({}),g=new Ut({}),_=new _t({}),{c:function(){e=E(),a=u("header"),T&&T.c(),c=E(),x(r.$$.fragment),i=E(),x(o.$$.fragment),s=E(),x(l.$$.fragment),d=E(),x(g.$$.fragment),$=E(),x(_.$$.fragment),this.h()},l:function(t){j('[data-svelte="svelte-1258swp"]',document.head).forEach(v),e=w(t),a=f(t,"HEADER",{class:!0});var n=h(a);T&&T.l(n),n.forEach(v),c=w(t),N(r.$$.fragment,t),i=w(t),N(o.$$.fragment,t),s=w(t),N(l.$$.fragment,t),d=w(t),N(g.$$.fragment,t),$=w(t),N(_.$$.fragment,t),this.h()},h:function(){m(a,"class","svelte-ngkazm")},m:function(t,n){p(t,e,n),p(t,a,n),T&&T.m(a,null),p(t,c,n),B(r,t,n),p(t,i,n),B(o,t,n),p(t,s,n),B(l,t,n),p(t,d,n),B(g,t,n),p(t,$,n),B(_,t,n),R=!0},p:function(t,e){var a=y(e,1)[0];(!R||1&a)&&n!==(n=t[0])&&(document.title=n),S["status-website"]&&T.p(t,a)},i:function(t){R||(I(r.$$.fragment,t),I(o.$$.fragment,t),I(l.$$.fragment,t),I(g.$$.fragment,t),I(_.$$.fragment,t),R=!0)},o:function(t){D(r.$$.fragment,t),D(o.$$.fragment,t),D(l.$$.fragment,t),D(g.$$.fragment,t),D(_.$$.fragment,t),R=!1},d:function(t){t&&v(e),t&&v(a),T&&T.d(),t&&v(c),H(r,t),t&&v(i),H(o,t),t&&v(s),H(l,t),t&&v(d),H(g,t),t&&v($),H(_,t)}}}function Wt(t,n,e){var a="Status";try{a=S["status-website"].name}catch(t){}return[a]}var Yt=function(n){t(u,s);var e=Pt(u);function u(t){var n;return a(this,u),n=e.call(this),c(i(n),t,Wt,jt,r,{}),n}return o(u)}();export{Yt as default};