import{S as e,i as t,s as a,a as n,e as c,c as r,b as s,d as l,f as i,g as o,h as d,j as h,t as u,k as f,l as m,o as p,m as g,n as v,p as $,q as E,r as w,u as D,v as _,w as y,x as T,y as I,z as S,A as b,B as L,C as k,D as q,E as R,H as M,F as N,G as A,I as H,J as V,K as U,L as B}from"./client.56de31c1.js";import{c as C,a as O,h as P,L as x}from"./createOctokit.36ff8155.js";function F(e,t,a){const n=e.slice();return n[5]=t[a],n}function j(e){let t,a,n,r=w.i18n.allSystemsOperational+"";return{c(){t=c("article"),a=g("✅   "),n=g(r),this.h()},l(e){t=s(e,"ARTICLE",{class:!0});var c=l(t);a=v(c,"✅   "),n=v(c,r),c.forEach(i),this.h()},h(){o(t,"class","up")},m(e,c){d(e,t,c),$(t,a),$(t,n)},p:E,d(e){e&&i(t)}}}function Y(e){let t,a,o,h,u=w.i18n.activeIncidents+"",f=e[1],m=[];for(let t=0;t{w[r]=null})),f()),~p?(g=w[p],g?g.p(e,c):(g=w[p]=E[p](e),g.c()),m(g,1),g.m(a,null)):g=null)},i(e){v||(m(g),v=!0)},o(e){u(g),v=!1},d(e){$&&$.d(e),e&&i(t),e&&i(a),~p&&w[p].d()}}}function J(e,t,a){let n=!0;const c=C(),r=w.owner,s=w.repo;let l=[];return p((async()=>{try{a(1,l=(await O("issues-".concat(r,"-").concat(s),(()=>c.issues.listForRepo({owner:r,repo:s,state:"open",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data),a(1,l=l.map(((e,t)=>(e.showHeading=0===t||new Date(l[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e))))}catch(e){P(e)}a(0,n=!1)})),[n,l]}class K extends e{constructor(e){super(),t(this,e,J,G,a,{})}}function Q(e,t,a){const n=e.slice();return n[5]=t[a],n}function X(e){let t,a,o,h,u=w.i18n.scheduledMaintenance+"",f=e[1],m=[];for(let t=0;t{g[s]=null})),f()),~a?(n=g[a],n?n.p(e,r):(n=g[a]=p[a](e),n.c()),m(n,1),n.m(t,null)):n=null)},i(e){r||(m(n),r=!0)},o(e){u(n),r=!1},d(e){e&&i(t),~a&&g[a].d()}}}function ne(e,t,a){let n=!0;const c=C(),r=w.owner,s=w.repo;let l=[];return p((async()=>{try{a(1,l=(await O("scheduled-current-".concat(r,"-").concat(s),(()=>c.issues.listForRepo({owner:r,repo:s,state:"open",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})))).data),a(1,l=l.map(((e,t)=>{if(e.showHeading=0===t||new Date(l[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e.metadata={},e.body.includes("\x3c!--")){e.body.split("\x3c!--")[1].split("--\x3e")[0].split("\n").filter((e=>e.trim())).filter((e=>e.includes(":"))).forEach((t=>{e.metadata[t.split(/:(.+)/)[0].trim()]=t.split(/:(.+)/)[1].trim()}))}return e})))}catch(e){P(e)}a(0,n=!1)})),[n,l]}class ce extends e{constructor(e){super(),t(this,e,ne,ae,a,{})}}function re(e,t,a){const n=e.slice();return n[5]=t[a],n}function se(e){let t,a,h,u,f=w.i18n.pastIncidents+"",m=e[1],p=[];for(let t=0;t{p[s]=null})),f()),~a?(n=p[a],n?n.p(e,r):(n=p[a]=o[a](e),n.c()),m(n,1),n.m(t,null)):n=null)},i(e){r||(m(n),r=!0)},o(e){u(n),r=!1},d(e){e&&i(t),~a&&p[a].d()}}}function he(e,t,a){let n=!0;const c=C(),r=w.owner,s=w.repo;let l=[];return p((async()=>{try{a(1,l=(await O("closed-issues-".concat(r,"-").concat(s),(()=>c.issues.listForRepo({owner:r,repo:s,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"status"})))).data)}catch(e){P(e)}a(1,l=l.map(((e,t)=>(e.showHeading=0===t||new Date(l[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e)))),a(0,n=!1)})),[n,l]}class ue extends e{constructor(e){super(),t(this,e,he,de,a,{})}}function fe(e,t,a){const n=e.slice();return n[18]=t[a],n}function me(e){let t,a=e[1],n=[];for(let t=0;t{de[n]=null})),f()),~Q?(X=de[Q],X?X.p(e,a):(X=de[Q]=oe[Q](e),X.c()),m(X,1),X.m(K,null)):X=null)},i(e){Z||(m(X),Z=!0)},o(e){u(X),Z=!1},d(a){a&&i(t),e[12](null),a&&i(J),a&&i(K),~Q&&de[Q].d(),ee.r(),te=!1,q(ae)}}}function Ee(e,t,a){let n=!0;C();const c=w.owner,r=w.repo;let s=[],{apiBaseUrl:l,userContentBaseUrl:i}=w["status-website"]||{};l||(l="https://api.github.com"),i||(i="https://raw.githubusercontent.com");const o="".concat(i,"/").concat(c,"/").concat(r,"/master/graphs");let d=null,h="week";p((async()=>{try{const e=await fetch("".concat(i,"/").concat(c,"/").concat(r,"/master/history/summary.json"));a(1,s=await e.json())}catch(e){P(e)}a(0,n=!1),d&&d.classList.remove("changed")}));return[n,s,d,h,o,()=>{d&&(d.classList.add("changed"),setTimeout((()=>d.classList.remove("changed")),500))},function(){h=this.__value,a(3,h)},[[]],function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(){h=this.__value,a(3,h)},function(e){R[e?"unshift":"push"]((()=>{d=e,a(2,d)}))}]}class we extends e{constructor(e){super(),t(this,e,Ee,$e,a,{})}}function De(e,t,a){const n=e.slice();return n[5]=t[a],n}function _e(e){let t,a,h,u,f=w.i18n.pastScheduledMaintenance+"",m=e[1],p=[];for(let t=0;t{p[s]=null})),f()),~a?(n=p[a],n?n.p(e,r):(n=p[a]=o[a](e),n.c()),m(n,1),n.m(t,null)):n=null)},i(e){r||(m(n),r=!0)},o(e){u(n),r=!1},d(e){e&&i(t),~a&&p[a].d()}}}function be(e,t,a){let n=!0;const c=C(),r=w.owner,s=w.repo;let l=[];return p((async()=>{try{a(1,l=(await O("maintenance-issues-".concat(r,"-").concat(s),(()=>c.issues.listForRepo({owner:r,repo:s,state:"closed",filter:"all",sort:"created",direction:"desc",labels:"maintenance"})))).data)}catch(e){P(e)}a(1,l=l.map(((e,t)=>(e.showHeading=0===t||new Date(l[t-1].created_at).toLocaleDateString()!==new Date(e.created_at).toLocaleDateString(),e)))),a(0,n=!1)})),[n,l]}class Le extends e{constructor(e){super(),t(this,e,be,Se,a,{})}}function ke(e){let t,a=B(w["status-website"].introTitle)+"";return{c(){t=c("h1")},l(e){t=s(e,"H1",{}),l(t).forEach(i)},m(e,n){d(e,t,n),t.innerHTML=a},p:E,d(e){e&&i(t)}}}function qe(e){let t,a=B(w["status-website"].introMessage)+"";return{c(){t=c("p"),this.h()},l(e){t=s(e,"P",{class:!0}),l(t).forEach(i),this.h()},h(){o(t,"class","lead svelte-ngkazm")},m(e,n){d(e,t,n),t.innerHTML=a},p:E,d(e){e&&i(t)}}}function Re(e){let t,a,h,f,p,g,v,$,E,_,b,L,k,q;document.title=t=e[0];let R=w["status-website"]&&function(e){let t,a,c=w["status-website"].introTitle&&ke(),s=w["status-website"].introMessage&&qe();return{c(){c&&c.c(),t=n(),s&&s.c(),a=D()},l(e){c&&c.l(e),t=r(e),s&&s.l(e),a=D()},m(e,n){c&&c.m(e,n),d(e,t,n),s&&s.m(e,n),d(e,a,n)},p(e,t){w["status-website"].introTitle&&c.p(e,t),w["status-website"].introMessage&&s.p(e,t)},d(e){c&&c.d(e),e&&i(t),s&&s.d(e),e&&i(a)}}}();return p=new K({}),v=new ce({}),E=new we({}),b=new Le({}),k=new ue({}),{c(){a=n(),h=c("header"),R&&R.c(),f=n(),y(p.$$.fragment),g=n(),y(v.$$.fragment),$=n(),y(E.$$.fragment),_=n(),y(b.$$.fragment),L=n(),y(k.$$.fragment),this.h()},l(e){U("svelte-1258swp",document.head).forEach(i),a=r(e),h=s(e,"HEADER",{class:!0});var t=l(h);R&&R.l(t),t.forEach(i),f=r(e),T(p.$$.fragment,e),g=r(e),T(v.$$.fragment,e),$=r(e),T(E.$$.fragment,e),_=r(e),T(b.$$.fragment,e),L=r(e),T(k.$$.fragment,e),this.h()},h(){o(h,"class","svelte-ngkazm")},m(e,t){d(e,a,t),d(e,h,t),R&&R.m(h,null),d(e,f,t),I(p,e,t),d(e,g,t),I(v,e,t),d(e,$,t),I(E,e,t),d(e,_,t),I(b,e,t),d(e,L,t),I(k,e,t),q=!0},p(e,a){let[n]=a;(!q||1&n)&&t!==(t=e[0])&&(document.title=t),w["status-website"]&&R.p(e,n)},i(e){q||(m(p.$$.fragment,e),m(v.$$.fragment,e),m(E.$$.fragment,e),m(b.$$.fragment,e),m(k.$$.fragment,e),q=!0)},o(e){u(p.$$.fragment,e),u(v.$$.fragment,e),u(E.$$.fragment,e),u(b.$$.fragment,e),u(k.$$.fragment,e),q=!1},d(e){e&&i(a),e&&i(h),R&&R.d(),e&&i(f),S(p,e),e&&i(g),S(v,e),e&&i($),S(E,e),e&&i(_),S(b,e),e&&i(L),S(k,e)}}}function Me(e,t,a){let n="Status";try{n=w["status-website"].name}catch(e){}return[n]}class Ne extends e{constructor(e){super(),t(this,e,Me,Re,a,{})}}export{Ne as default};