Files
d4c-service-status/client/legacy/client.bf1f4541.js
T
2026-02-01 18:57:56 +00:00

18 lines
42 KiB
JavaScript

function e(){}function t(e,t){for(const n in t)e[n]=t[n];return e}function n(e){return e()}function r(){return Object.create(null)}function s(e){e.forEach(n)}function o(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}let i;function c(e,t){return i||(i=document.createElement("a")),i.href=t,e===i.href}function l(e,n,r,s){return e[1]&&s?t(r.ctx.slice(),e[1](s(n))):r.ctx}function u(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function d(e){return null==e?"":e}let f=!1;function h(e,t,n,r){for(;e<t;){const s=e+(t-e>>1);n(s)<=r?e=s+1:t=s}return e}function p(e,t){if(f){for(!function(e){if(e.hydrate_init)return;e.hydrate_init=!0;let t=e.childNodes;if("HEAD"===e.nodeName){const e=[];for(let n=0;n<t.length;n++){const r=t[n];void 0!==r.claim_order&&e.push(r)}t=e}const n=new Int32Array(t.length+1),r=new Int32Array(t.length);n[0]=-1;let s=0;for(let e=0;e<t.length;e++){const o=t[e].claim_order,a=(s>0&&t[n[s]].claim_order<=o?s+1:h(1,s,e=>t[n[e]].claim_order,o))-1;r[e]=n[a]+1;const i=a+1;n[i]=e,s=Math.max(i,s)}const o=[],a=[];let i=t.length-1;for(let e=n[s]+1;0!=e;e=r[e-1]){for(o.push(t[e-1]);i>=e;i--)a.push(t[i]);i--}for(;i>=0;i--)a.push(t[i]);o.reverse(),a.sort((e,t)=>e.claim_order-t.claim_order);for(let t=0,n=0;t<a.length;t++){for(;n<o.length&&a[t].claim_order>=o[n].claim_order;)n++;const r=n<o.length?o[n]:null;e.insertBefore(a[t],r)}}(e),(void 0===e.actual_end_child||null!==e.actual_end_child&&e.actual_end_child.parentNode!==e)&&(e.actual_end_child=e.firstChild);null!==e.actual_end_child&&void 0===e.actual_end_child.claim_order;)e.actual_end_child=e.actual_end_child.nextSibling;t!==e.actual_end_child?void 0===t.claim_order&&t.parentNode===e||e.insertBefore(t,e.actual_end_child):e.actual_end_child=t.nextSibling}else t.parentNode===e&&null===t.nextSibling||e.appendChild(t)}function m(e,t,n){e.insertBefore(t,n||null)}function g(e,t,n){f&&!n?p(e,t):t.parentNode===e&&t.nextSibling==n||e.insertBefore(t,n||null)}function b(e){e.parentNode&&e.parentNode.removeChild(e)}function w(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function v(e){return document.createElement(e)}function y(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function _(e){return document.createTextNode(e)}function $(){return _(" ")}function E(){return _("")}function S(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function x(e){return function(t){return t.preventDefault(),e.call(this,t)}}function T(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const A=["width","height"];function N(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===A.indexOf(r)?e[r]=t[r]:T(e,r,t[r])}function P(e){let t;return{p(){for(var n=arguments.length,r=new Array(n),s=0;s<n;s++)r[s]=arguments[s];t=r,t.forEach(t=>e.push(t))},r(){t.forEach(t=>e.splice(e.indexOf(t),1))}}}function L(e){return Array.from(e.childNodes)}function I(e){void 0===e.claim_info&&(e.claim_info={last_index:0,total_claimed:0})}function R(e,t,n,r){let s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];I(e);const o=(()=>{for(let r=e.claim_info.last_index;r<e.length;r++){const o=e[r];if(t(o)){const t=n(o);return void 0===t?e.splice(r,1):e[r]=t,s||(e.claim_info.last_index=r),o}}for(let r=e.claim_info.last_index-1;r>=0;r--){const o=e[r];if(t(o)){const t=n(o);return void 0===t?e.splice(r,1):e[r]=t,s?void 0===t&&e.claim_info.last_index--:e.claim_info.last_index=r,o}}return r()})();return o.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1,o}function k(e,t,n,r){return R(e,e=>e.nodeName===t,e=>{const t=[];for(let r=0;r<e.attributes.length;r++){const s=e.attributes[r];n[s.name]||t.push(s.name)}t.forEach(t=>e.removeAttribute(t))},()=>r(t))}function O(e,t,n){return k(e,t,n,v)}function C(e,t,n){return k(e,t,n,y)}function H(e,t){return R(e,e=>3===e.nodeType,e=>{const n=""+t;if(e.data.startsWith(n)){if(e.data.length!==n.length)return e.splitText(n.length)}else e.data=n},()=>_(t),!0)}function M(e){return H(e," ")}function D(e,t,n){for(let r=n;r<e.length;r+=1){const n=e[r];if(8===n.nodeType&&n.textContent.trim()===t)return r}return e.length}function U(e,t){const n=D(e,"HTML_TAG_START",0),r=D(e,"HTML_TAG_END",n);if(n===r)return new Y(void 0,t);I(e);const s=e.splice(n,r-n+1);b(s[0]),b(s[s.length-1]);const o=s.slice(1,s.length-1);for(const t of o)t.claim_order=e.claim_info.total_claimed,e.claim_info.total_claimed+=1;return new Y(o,t)}function j(e,t){t=""+t,e.data!==t&&(e.data=t)}function G(e,t){e.value=null==t?"":t}function q(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}let B,z;function K(){if(void 0===B){B=!1;try{"undefined"!=typeof window&&window.parent&&window.parent.document}catch(e){B=!0}}return B}function J(e,t){"static"===getComputedStyle(e).position&&(e.style.position="relative");const n=v("iframe");n.setAttribute("style","display: block; position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; border: 0; opacity: 0; pointer-events: none; z-index: -1;"),n.setAttribute("aria-hidden","true"),n.tabIndex=-1;const r=K();let s;return r?(n.src="data:text/html,<script>onresize=function(){parent.postMessage(0,'*')}<\/script>",s=S(window,"message",e=>{e.source===n.contentWindow&&t()})):(n.src="about:blank",n.onload=()=>{s=S(n.contentWindow,"resize",t),t()}),function(e,t){e.appendChild(t)}(e,n),()=>{(r||s&&n.contentWindow)&&s(),b(n)}}function V(e,t){const n=[];let r=0;for(const s of t.childNodes)if(8===s.nodeType){const t=s.textContent.trim();t===`HEAD_${e}_END`?(r-=1,n.push(s)):t===`HEAD_${e}_START`&&(r+=1,n.push(s))}else r>0&&n.push(s);return n}class W{constructor(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.is_svg?this.e=y(t.nodeName):this.e=v(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)m(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(b)}}class Y extends W{constructor(e){super(arguments.length>1&&void 0!==arguments[1]&&arguments[1]),this.e=this.n=null,this.l=e}c(e){this.l?this.n=this.l:super.c(e)}i(e){for(let t=0;t<this.n.length;t+=1)g(this.t,this.n[t],e)}}function F(e,t){return new e(t)}function X(e){z=e}function Q(){if(!z)throw new Error("Function called outside component initialization");return z}function Z(e){Q().$$.on_mount.push(e)}function ee(e){Q().$$.after_update.push(e)}function te(e){Q().$$.on_destroy.push(e)}const ne=[],re=[];let se=[];const oe=[],ae=Promise.resolve();let ie=!1;function ce(e){se.push(e)}const le=new Set;let ue=0;function de(){if(0!==ue)return;const e=z;do{try{for(;ue<ne.length;){const e=ne[ue];ue++,X(e),fe(e.$$)}}catch(e){throw ne.length=0,ue=0,e}for(X(null),ne.length=0,ue=0;re.length;)re.pop()();for(let e=0;e<se.length;e+=1){const t=se[e];le.has(t)||(le.add(t),t())}se.length=0}while(ne.length);for(;oe.length;)oe.pop()();ie=!1,le.clear(),X(e)}function fe(e){if(null!==e.fragment){e.update(),s(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ce)}}const he=new Set;let pe;function me(){pe={r:0,c:[],p:pe}}function ge(){pe.r||s(pe.c),pe=pe.p}function be(e,t){e&&e.i&&(he.delete(e),e.i(t))}function we(e,t,n,r){if(e&&e.o){if(he.has(e))return;he.add(e),pe.c.push(()=>{he.delete(e),r&&(n&&e.d(1),r())}),e.o(t)}else r&&r()}function ve(e,t){const n={},r={},s={$$scope:1};let o=e.length;for(;o--;){const a=e[o],i=t[o];if(i){for(const e in a)e in i||(r[e]=1);for(const e in i)s[e]||(n[e]=i[e],s[e]=1);e[o]=i}else for(const e in a)s[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function ye(e){return"object"==typeof e&&null!==e?e:{}}function _e(e){e&&e.c()}function $e(e,t){e&&e.l(t)}function Ee(e,t,r,a){const{fragment:i,after_update:c}=e.$$;i&&i.m(t,r),a||ce(()=>{const t=e.$$.on_mount.map(n).filter(o);e.$$.on_destroy?e.$$.on_destroy.push(...t):s(t),e.$$.on_mount=[]}),c.forEach(ce)}function Se(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];se.forEach(r=>-1===e.indexOf(r)?t.push(r):n.push(r)),n.forEach(e=>e()),se=t}(n.after_update),s(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function xe(e,t){-1===e.$$.dirty[0]&&(ne.push(e),ie||(ie=!0,ae.then(de)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Te(t,n,o,a,i,c,l){let u=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[-1];const d=z;X(t);const h=t.$$={fragment:null,ctx:[],props:c,update:e,not_equal:i,bound:r(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:r(),dirty:u,skip_bound:!1,root:n.target||d.$$.root};l&&l(h.root);let p=!1;if(h.ctx=o?o(t,n.props||{},function(e,n){const r=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return h.ctx&&i(h.ctx[e],h.ctx[e]=r)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](r),p&&xe(t,e)),n}):[],h.update(),p=!0,s(h.before_update),h.fragment=!!a&&a(h.ctx),n.target){if(n.hydrate){f=!0;const e=L(n.target);h.fragment&&h.fragment.l(e),e.forEach(b)}else h.fragment&&h.fragment.c();n.intro&&be(t.$$.fragment),Ee(t,n.target,n.anchor,n.customElement),f=!1,de()}X(d)}class Ae{$destroy(){Se(this,1),this.$destroy=e}$on(t,n){if(!o(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Ne=[];function Pe(t){let n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;const s=new Set;function o(e){if(a(t,e)&&(t=e,n)){const e=!Ne.length;for(const e of s)e[1](),Ne.push(e,t);if(e){for(let e=0;e<Ne.length;e+=2)Ne[e][0](Ne[e+1]);Ne.length=0}}}return{set:o,update:function(e){o(e(t))},subscribe:function(a){const i=[a,arguments.length>1&&void 0!==arguments[1]?arguments[1]:e];return s.add(i),1===s.size&&(n=r(o)||e),a(t),()=>{s.delete(i),0===s.size&&n&&(n(),n=null)}}}}const Le={};var Ie={owner:"dataforcanada",repo:"status.dataforcanada.org",sites:[{name:"Main Website",url:"https://www.dataforcanada.org",faviconSvg:"https://raw.githubusercontent.com/dataforcanada/www.dataforcanada.org/refs/heads/main/static/logo.svg"},{name:"Production Ready Data",url:"https://data-01.dataforcanada.org"},{name:"Data in the Lab",url:"https://data-01.labs.dataforcanada.org"},{name:"Data in the Lab",url:"https://data-01.labs.dataforcanada.org"}],assignees:["diegoripley"],"status-website":{cname:"status.dataforcanada.org",theme:"light",logoUrl:"https://raw.githubusercontent.com/dataforcanada/www.dataforcanada.org/refs/heads/main/static/logo.svg",name:"Status Page for the Data for Canada Project",introTitle:"Status Page for the Data for Canada Project",introMessage:"This is a status page which uses **real-time** data from our [GitHub repository](https://github.com/dataforcanada/status.dataforcanada.org).",navbar:[{title:"Status",href:"/"},{title:"Status Updates",href:"https://github.com/dataforcanada/status.dataforcanada.org"},{title:"Prod",href:"https://www.dataforcanada.org"},{title:"Labs",href:"https://www.dataforcanada.org"}]},workflowSchedule:{graphs:"0 0 * * *",responseTime:"0 23 * * *",staticSite:"0 1 * * *",summary:"0 0 * * *",updateTemplate:"0 0 * * *",updates:"0 3 * * *",uptime:"*/10 * * * *"},"user-agent":"diegoripley",path:"https://status.dataforcanada.org",i18n:{activeIncidents:"Active Incidents",allSystemsOperational:"All systems are operational",incidentReport:"Incident #$NUMBER report →",activeIncidentSummary:"Opened at $DATE with $POSTS posts",incidentTitle:"Incident $NUMBER Details",incidentDetails:"Incident Details",incidentFixed:"Fixed",incidentOngoing:"Ongoing",incidentOpenedAt:"Opened at",incidentClosedAt:"Closed at",incidentViewOnGitHub:"View and Subscribe on GitHub",incidentCommentSummary:"Posted at $DATE by $AUTHOR",incidentBack:"← Back to all incidents",pastIncidents:"Past Incidents",pastIncidentsResolved:"Resolved in $MINUTES minutes with $POSTS posts",liveStatus:"Live Status",overallUptime:"Overall uptime: $UPTIME",overallUptimeTitle:"Overall uptime",averageResponseTime:"Average response time: $TIMEms",averageResponseTimeTitle:"Average response",sevelDayResponseTime:"7-day response time",responseTimeMs:"Response time (ms)",up:"Up",down:"Down",degraded:"Degraded",ms:"ms",loading:"Loading",navGitHub:"GitHub",footer:"This page is [open source]($REPO), powered by [Upptime](https://upptime.js.org)",rateLimitExceededTitle:"Rate limit exceeded",rateLimitExceededIntro:"You have exceeded the number of requests you can do in an hour, so you'll have to wait before accessing this website again. Alternately, you can add a GitHub Personal Access Token to continue to use this website.",rateLimitExceededWhatDoesErrorMean:"What does this error mean?",rateLimitExceededErrorMeaning:"This website uses the GitHub API to access real-time data about our websites' status. By default, GitHub allows each IP address 60 requests per hour, which you have consumed.",rateLimitExceededErrorHowCanFix:"How can I fix it?",rateLimitExceededErrorFix:"You can wait for another hour and your IP address' limit will be restored. Alternately, you can add your GitHub Personal Access Token, which gives you an additional 5,000 requests per hour.",rateLimitExceededGeneratePAT:"Learn how to generate a Personal Access Token",rateLimitExceededHasSet:"You have a personal access token set.",rateLimitExceededRemoveToken:"Remove token",rateLimitExceededGitHubPAT:"GitHub Personal Access Token",rateLimitExceededCopyPastePAT:"Copy and paste your token",rateLimitExceededSaveToken:"Save token",errorTitle:"An error occurred",errorIntro:"An error occurred in trying to get the latest status details.",errorText:"You can try again in a few moments.",errorHome:"Go to the homepage",pastScheduledMaintenance:"Past Scheduled Maintenance",scheduledMaintenance:"Scheduled Maintenance",scheduledMaintenanceSummaryStarted:"Started at $DATE for $DURATION minutes",scheduledMaintenanceSummaryStarts:"Starts at $DATE for $DURATION minutes",startedAt:"Started at",startsAt:"Starts at",duration:"Duration",durationMin:"$DURATION minutes",incidentCompleted:"Completed",incidentScheduled:"Scheduled",duration24H:"24h",duration7D:"7d",duration30D:"30d",duration1Y:"1y",durationAll:"all",locale:"en-US"}};function Re(e,t,n){const r=e.slice();return r[1]=t[n],r}function ke(t){let n,r,s,o=Ie["status-website"]&&!Ie["status-website"].hideNavLogo&&function(){let t,n;return{c(){t=v("img"),this.h()},l(e){t=O(e,"IMG",{alt:!0,src:!0,class:!0}),this.h()},h(){T(t,"alt",""),c(t.src,n=Ie["status-website"].logoUrl)||T(t,"src",n),T(t,"class","svelte-a08hsz")},m(e,n){g(e,t,n)},p:e,d(e){e&&b(t)}}}(),a=Ie["status-website"]&&!Ie["status-website"].hideNavTitle&&function(){let t,n,r=Ie["status-website"].name+"";return{c(){t=v("div"),n=_(r)},l(e){t=O(e,"DIV",{});var s=L(t);n=H(s,r),s.forEach(b)},m(e,r){g(e,t,r),p(t,n)},p:e,d(e){e&&b(t)}}}();return{c(){n=v("div"),r=v("a"),o&&o.c(),s=$(),a&&a.c(),this.h()},l(e){n=O(e,"DIV",{});var t=L(n);r=O(t,"A",{href:!0,class:!0});var i=L(r);o&&o.l(i),s=M(i),a&&a.l(i),i.forEach(b),t.forEach(b),this.h()},h(){T(r,"href",Ie["status-website"].logoHref||Ie.path),T(r,"class","logo svelte-a08hsz")},m(e,t){g(e,n,t),p(n,r),o&&o.m(r,null),p(r,s),a&&a.m(r,null)},p(e,t){Ie["status-website"]&&!Ie["status-website"].hideNavLogo&&o.p(e,t),Ie["status-website"]&&!Ie["status-website"].hideNavTitle&&a.p(e,t)},d(e){e&&b(n),o&&o.d(),a&&a.d()}}}function Oe(e){let t,n,r,s,o,a=e[1].title+"";return{c(){t=v("li"),n=v("a"),r=_(a),o=$(),this.h()},l(e){t=O(e,"LI",{});var s=L(t);n=O(s,"A",{"aria-current":!0,href:!0,target:!0,class:!0});var i=L(n);r=H(i,a),i.forEach(b),o=M(s),s.forEach(b),this.h()},h(){T(n,"aria-current",s=e[0]===("/"===e[1].href?void 0:e[1].href)?"page":void 0),T(n,"href",e[1].href.replace("$OWNER",Ie.owner).replace("$REPO",Ie.repo)),T(n,"target",e[1].target||"_self"),T(n,"class","svelte-a08hsz")},m(e,s){g(e,t,s),p(t,n),p(n,r),p(t,o)},p(e,t){1&t&&s!==(s=e[0]===("/"===e[1].href?void 0:e[1].href)?"page":void 0)&&T(n,"aria-current",s)},d(e){e&&b(t)}}}function Ce(t){let n,r,s,o,a,i=Ie["status-website"]&&Ie["status-website"].logoUrl&&ke(),c=Ie["status-website"]&&Ie["status-website"].navbar&&function(e){let t,n=Ie["status-website"].navbar,r=[];for(let t=0;t<n.length;t+=1)r[t]=Oe(Re(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=E()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=E()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);g(e,t,n)},p(e,s){if(1&s){let o;for(n=Ie["status-website"].navbar,o=0;o<n.length;o+=1){const a=Re(e,n,o);r[o]?r[o].p(a,s):(r[o]=Oe(a),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){w(r,e),e&&b(t)}}}(t),l=Ie["status-website"]&&Ie["status-website"].navbarGitHub&&!Ie["status-website"].navbar&&function(){let t,n,r,s=Ie.i18n.navGitHub+"";return{c(){t=v("li"),n=v("a"),r=_(s),this.h()},l(e){t=O(e,"LI",{});var o=L(t);n=O(o,"A",{href:!0,class:!0});var a=L(n);r=H(a,s),a.forEach(b),o.forEach(b),this.h()},h(){T(n,"href",`https://github.com/${Ie.owner}/${Ie.repo}`),T(n,"class","svelte-a08hsz")},m(e,s){g(e,t,s),p(t,n),p(n,r)},p:e,d(e){e&&b(t)}}}();return{c(){n=v("nav"),r=v("div"),i&&i.c(),s=$(),o=v("ul"),c&&c.c(),a=$(),l&&l.c(),this.h()},l(e){n=O(e,"NAV",{class:!0});var t=L(n);r=O(t,"DIV",{class:!0});var u=L(r);i&&i.l(u),s=M(u),o=O(u,"UL",{class:!0});var d=L(o);c&&c.l(d),a=M(d),l&&l.l(d),d.forEach(b),u.forEach(b),t.forEach(b),this.h()},h(){T(o,"class","svelte-a08hsz"),T(r,"class","container svelte-a08hsz"),T(n,"class","svelte-a08hsz")},m(e,t){g(e,n,t),p(n,r),i&&i.m(r,null),p(r,s),p(r,o),c&&c.m(o,null),p(o,a),l&&l.m(o,null)},p(e,t){let[n]=t;Ie["status-website"]&&Ie["status-website"].logoUrl&&i.p(e,n),Ie["status-website"]&&Ie["status-website"].navbar&&c.p(e,n),Ie["status-website"]&&Ie["status-website"].navbarGitHub&&!Ie["status-website"].navbar&&l.p(e,n)},i:e,o:e,d(e){e&&b(n),i&&i.d(),c&&c.d(),l&&l.d()}}}function He(e,t,n){let{segment:r}=t;return e.$$set=e=>{"segment"in e&&n(0,r=e.segment)},[r]}class Me extends Ae{constructor(e){super(),Te(this,e,He,Ce,a,{segment:0})}}var De={"":["<em>","</em>"],_:["<strong>","</strong>"],"*":["<strong>","</strong>"],"~":["<s>","</s>"],"\n":["<br />"]," ":["<br />"],"-":["<hr />"]};function Ue(e){return e.replace(RegExp("^"+(e.match(/^(\t| )+/)||"")[0],"gm"),"")}function je(e){return(e+"").replace(/"/g,"&quot;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ge(e,t){var n,r,s,o,a,i=/((?:^|\n+)(?:\n---+|\* \*(?: \*)+)\n)|(?:^``` *(\w*)\n([\s\S]*?)\n```$)|((?:(?:^|\n+)(?:\t| {2,}).+)+\n*)|((?:(?:^|\n)([>*+-]|\d+\.)\s+.*)+)|(?:!\[([^\]]*?)\]\(([^)]+?)\))|(\[)|(\](?:\(([^)]+?)\))?)|(?:(?:^|\n+)([^\s].*)\n(-{3,}|={3,})(?:\n+|$))|(?:(?:^|\n+)(#{1,6})\s*(.+)(?:\n+|$))|(?:`([^`].*?)`)|( \n\n*|\n{2,}|__|\*\*|[_*]|~~)/gm,c=[],l="",u=t||{},d=0;function f(e){var t=De[e[1]||""],n=c[c.length-1]==e;return t?t[1]?(n?c.pop():c.push(e),t[0|n]):t[0]:e}function h(){for(var e="";c.length;)e+=f(c[c.length-1]);return e}for(e=e.replace(/^\[(.+?)\]:\s*(.+)$/gm,function(e,t,n){return u[t.toLowerCase()]=n,""}).replace(/^\n+|\n+$/g,"");s=i.exec(e);)r=e.substring(d,s.index),d=i.lastIndex,n=s[0],r.match(/[^\\](\\\\)*\\$/)||((a=s[3]||s[4])?n='<pre class="code '+(s[4]?"poetry":s[2].toLowerCase())+'"><code'+(s[2]?' class="language-'+s[2].toLowerCase()+'"':"")+">"+Ue(je(a).replace(/^\n+|\n+$/g,""))+"</code></pre>":(a=s[6])?(a.match(/\./)&&(s[5]=s[5].replace(/^\d+/gm,"")),o=Ge(Ue(s[5].replace(/^\s*[>*+.-]/gm,""))),">"==a?a="blockquote":(a=a.match(/\./)?"ol":"ul",o=o.replace(/^(.*)(\n|$)/gm,"<li>$1</li>")),n="<"+a+">"+o+"</"+a+">"):s[8]?n='<img src="'+je(s[8])+'" alt="'+je(s[7])+'">':s[10]?(l=l.replace("<a>",'<a href="'+je(s[11]||u[r.toLowerCase()])+'">'),n=h()+"</a>"):s[9]?n="<a>":s[12]||s[14]?n="<"+(a="h"+(s[14]?s[14].length:s[13]>"="?1:2))+">"+Ge(s[12]||s[15],u)+"</"+a+">":s[16]?n="<code>"+je(s[16])+"</code>":(s[17]||s[1])&&(n=f(s[17]||"--"))),l+=r,l+=n;return(l+e.substring(d)+h()).replace(/^\n+|\n+$/g,"")}function qe(e,t,n){const r=e.slice();return r[3]=t[n],r}function Be(e,t,n){const r=e.slice();return r[3]=t[n],r}function ze(e,t,n){const r=e.slice();return r[8]=t[n],r}function Ke(t){let n,r,s,o,a,i;return{c(){n=v("script"),r=_("// If `prefers-color-scheme` is not supported, fall back to light mode.\n // In this case, light.css will be downloaded with `highest` priority.\n if (typeof window !== \"undefined\" && typeof document !== \"undefined\" && \"matchMedia\" in window && window.matchMedia('(prefers-color-scheme: dark)').media === 'not all') {\n document.documentElement.style.display = 'none';\n document.head.insertAdjacentHTML(\n 'beforeend',\n '<link rel=\"stylesheet\" href={`${config.path}/themes/light.css`} onload=\"document.documentElement.style.display = \\'\\'\">',\n );\n }"),s=$(),o=v("link"),a=$(),i=v("link"),this.h()},l(e){n=O(e,"SCRIPT",{});var t=L(n);r=H(t,"// If `prefers-color-scheme` is not supported, fall back to light mode.\n // In this case, light.css will be downloaded with `highest` priority.\n if (typeof window !== \"undefined\" && typeof document !== \"undefined\" && \"matchMedia\" in window && window.matchMedia('(prefers-color-scheme: dark)').media === 'not all') {\n document.documentElement.style.display = 'none';\n document.head.insertAdjacentHTML(\n 'beforeend',\n '<link rel=\"stylesheet\" href={`${config.path}/themes/light.css`} onload=\"document.documentElement.style.display = \\'\\'\">',\n );\n }"),t.forEach(b),s=M(e),o=O(e,"LINK",{rel:!0,href:!0,media:!0}),a=M(e),i=O(e,"LINK",{rel:!0,href:!0,media:!0}),this.h()},h(){T(o,"rel","stylesheet"),T(o,"href",`${Ie.path}/themes/light.css`),T(o,"media","(prefers-color-scheme: light)"),T(i,"rel","stylesheet"),T(i,"href",`${Ie.path}/themes/dark.css`),T(i,"media","(prefers-color-scheme: dark)")},m(e,t){g(e,n,t),p(n,r),g(e,s,t),g(e,o,t),g(e,a,t),g(e,i,t)},p:e,d(e){e&&b(n),e&&b(s),e&&b(o),e&&b(a),e&&b(i)}}}function Je(t){let n;return{c(){n=v("link"),this.h()},l(e){n=O(e,"LINK",{rel:!0,href:!0}),this.h()},h(){T(n,"rel","stylesheet"),T(n,"href",`${Ie.path}/themes/${Ie["status-website"].theme}.css`)},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function Ve(t){let n;return{c(){n=v("link"),this.h()},l(e){n=O(e,"LINK",{rel:!0,href:!0}),this.h()},h(){T(n,"rel","stylesheet"),T(n,"href",(Ie["status-website"]||{}).themeUrl)},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function We(t){let n,r;return{c(){n=v("script"),this.h()},l(e){n=O(e,"SCRIPT",{src:!0}),L(n).forEach(b),this.h()},h(){c(n.src,r=t[8].src)||T(n,"src",r),n.async=!!t[8].async,n.defer=!!t[8].async},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function Ye(t){let n;return{c(){n=v("link"),this.h()},l(e){n=O(e,"LINK",{rel:!0,href:!0,media:!0}),this.h()},h(){T(n,"rel",t[3].rel),T(n,"href",t[3].href),T(n,"media",t[3].media)},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function Fe(t){let n;return{c(){n=v("meta"),this.h()},l(e){n=O(e,"META",{name:!0,content:!0}),this.h()},h(){T(n,"name",t[3].name),T(n,"content",t[3].content)},m(e,t){g(e,n,t)},p:e,d(e){e&&b(n)}}}function Xe(t){let n,r,s,o,a,i,c,u,d,f,h,m,y,_,S,x,A,N,P=Ge(Ie.i18n.footer.replace(/\$REPO/,`https://github.com/${Ie.owner}/${Ie.repo}`))+"",I=(Ie["status-website"]||{}).customHeadHtml&&function(){let t,n,r=(Ie["status-website"]||{}).customHeadHtml+"";return{c(){t=new Y(!1),n=E(),this.h()},l(e){t=U(e,!1),n=E(),this.h()},h(){t.a=n},m(e,s){t.m(r,e,s),g(e,n,s)},p:e,d(e){e&&b(n),e&&t.d()}}}();let R=((Ie["status-website"]||{}).themeUrl?Ve:(Ie["status-website"]||{}).theme?Je:Ke)(t),k=(Ie["status-website"]||{}).scripts&&function(e){let t,n=(Ie["status-website"]||{}).scripts,r=[];for(let t=0;t<n.length;t+=1)r[t]=We(ze(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=E()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=E()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);g(e,t,n)},p(e,s){if(0&s){let o;for(n=(Ie["status-website"]||{}).scripts,o=0;o<n.length;o+=1){const a=ze(e,n,o);r[o]?r[o].p(a,s):(r[o]=We(a),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){w(r,e),e&&b(t)}}}(t),C=(Ie["status-website"]||{}).links&&function(e){let t,n=(Ie["status-website"]||{}).links,r=[];for(let t=0;t<n.length;t+=1)r[t]=Ye(Be(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=E()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=E()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);g(e,t,n)},p(e,s){if(0&s){let o;for(n=(Ie["status-website"]||{}).links,o=0;o<n.length;o+=1){const a=Be(e,n,o);r[o]?r[o].p(a,s):(r[o]=Ye(a),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){w(r,e),e&&b(t)}}}(t),H=(Ie["status-website"]||{}).metaTags&&function(e){let t,n=(Ie["status-website"]||{}).metaTags,r=[];for(let t=0;t<n.length;t+=1)r[t]=Fe(qe(e,n,t));return{c(){for(let e=0;e<r.length;e+=1)r[e].c();t=E()},l(e){for(let t=0;t<r.length;t+=1)r[t].l(e);t=E()},m(e,n){for(let t=0;t<r.length;t+=1)r[t]&&r[t].m(e,n);g(e,t,n)},p(e,s){if(0&s){let o;for(n=(Ie["status-website"]||{}).metaTags,o=0;o<n.length;o+=1){const a=qe(e,n,o);r[o]?r[o].p(a,s):(r[o]=Fe(a),r[o].c(),r[o].m(t.parentNode,t))}for(;o<r.length;o+=1)r[o].d(1);r.length=n.length}},d(e){w(r,e),e&&b(t)}}}(t),D=Ie["status-website"].css&&function(){let t,n,r=`<style>${Ie["status-website"].css}</style>`;return{c(){t=new Y(!1),n=E(),this.h()},l(e){t=U(e,!1),n=E(),this.h()},h(){t.a=n},m(e,s){t.m(r,e,s),g(e,n,s)},p:e,d(e){e&&b(n),e&&t.d()}}}(),j=Ie["status-website"].js&&function(){let t,n,r=`<script>${Ie["status-website"].js}<\/script>`;return{c(){t=new Y(!1),n=E(),this.h()},l(e){t=U(e,!1),n=E(),this.h()},h(){t.a=n},m(e,s){t.m(r,e,s),g(e,n,s)},p:e,d(e){e&&b(n),e&&t.d()}}}(),G=(Ie["status-website"]||{}).customBodyHtml&&function(){let t,n,r=(Ie["status-website"]||{}).customBodyHtml+"";return{c(){t=new Y(!1),n=E(),this.h()},l(e){t=U(e,!1),n=E(),this.h()},h(){t.a=n},m(e,s){t.m(r,e,s),g(e,n,s)},p:e,d(e){e&&b(n),e&&t.d()}}}();m=new Me({props:{segment:t[0]}});const q=t[2].default,B=function(e,t,n,r){if(e){const s=l(e,t,n,r);return e[0](s)}}(q,t,t[1],null);return{c(){I&&I.c(),n=E(),R.c(),r=v("link"),s=v("link"),o=v("link"),k&&k.c(),a=E(),C&&C.c(),i=E(),H&&H.c(),c=E(),D&&D.c(),u=E(),j&&j.c(),d=E(),f=$(),G&&G.c(),h=$(),_e(m.$$.fragment),y=$(),_=v("main"),B&&B.c(),S=$(),x=v("footer"),A=v("p"),this.h()},l(e){const t=V("svelte-z1n8lm",document.head);I&&I.l(t),n=E(),R.l(t),r=O(t,"LINK",{rel:!0,href:!0}),s=O(t,"LINK",{rel:!0,type:!0,href:!0}),o=O(t,"LINK",{rel:!0,type:!0,href:!0}),k&&k.l(t),a=E(),C&&C.l(t),i=E(),H&&H.l(t),c=E(),D&&D.l(t),u=E(),j&&j.l(t),d=E(),t.forEach(b),f=M(e),G&&G.l(e),h=M(e),$e(m.$$.fragment,e),y=M(e),_=O(e,"MAIN",{class:!0});var l=L(_);B&&B.l(l),l.forEach(b),S=M(e),x=O(e,"FOOTER",{class:!0});var p=L(x);A=O(p,"P",{}),L(A).forEach(b),p.forEach(b),this.h()},h(){T(r,"rel","stylesheet"),T(r,"href",`${Ie.path}/global.css`),T(s,"rel","icon"),T(s,"type","image/svg"),T(s,"href",(Ie["status-website"]||{}).faviconSvg||(Ie["status-website"]||{}).favicon||"https://raw.githubusercontent.com/upptime/upptime/master/assets/upptime-icon.svg"),T(o,"rel","icon"),T(o,"type","image/png"),T(o,"href",(Ie["status-website"]||{}).favicon||"/logo-192.png"),T(_,"class","container"),T(x,"class","svelte-jbr799")},m(e,t){I&&I.m(document.head,null),p(document.head,n),R.m(document.head,null),p(document.head,r),p(document.head,s),p(document.head,o),k&&k.m(document.head,null),p(document.head,a),C&&C.m(document.head,null),p(document.head,i),H&&H.m(document.head,null),p(document.head,c),D&&D.m(document.head,null),p(document.head,u),j&&j.m(document.head,null),p(document.head,d),g(e,f,t),G&&G.m(e,t),g(e,h,t),Ee(m,e,t),g(e,y,t),g(e,_,t),B&&B.m(_,null),g(e,S,t),g(e,x,t),p(x,A),A.innerHTML=P,N=!0},p(e,t){let[n]=t;(Ie["status-website"]||{}).customHeadHtml&&I.p(e,n),R.p(e,n),(Ie["status-website"]||{}).scripts&&k.p(e,n),(Ie["status-website"]||{}).links&&C.p(e,n),(Ie["status-website"]||{}).metaTags&&H.p(e,n),Ie["status-website"].css&&D.p(e,n),Ie["status-website"].js&&j.p(e,n),(Ie["status-website"]||{}).customBodyHtml&&G.p(e,n);const r={};1&n&&(r.segment=e[0]),m.$set(r),B&&B.p&&(!N||2&n)&&function(e,t,n,r,s,o){if(s){const a=l(t,n,r,o);e.p(a,s)}}(B,q,e,e[1],N?function(e,t,n,r){if(e[2]&&r){const s=e[2](r(n));if(void 0===t.dirty)return s;if("object"==typeof s){const e=[],n=Math.max(t.dirty.length,s.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|s[r];return e}return t.dirty|s}return t.dirty}(q,e[1],n,null):function(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}(e[1]),null)},i(e){N||(be(m.$$.fragment,e),be(B,e),N=!0)},o(e){we(m.$$.fragment,e),we(B,e),N=!1},d(e){I&&I.d(e),b(n),R.d(e),b(r),b(s),b(o),k&&k.d(e),b(a),C&&C.d(e),b(i),H&&H.d(e),b(c),D&&D.d(e),b(u),j&&j.d(e),b(d),e&&b(f),G&&G.d(e),e&&b(h),Se(m,e),e&&b(y),e&&b(_),B&&B.d(e),e&&b(S),e&&b(x)}}}function Qe(e,t,n){let{$$slots:r={},$$scope:s}=t,{segment:o}=t;return e.$$set=e=>{"segment"in e&&n(0,o=e.segment),"$$scope"in e&&n(1,s=e.$$scope)},[o,s,r]}class Ze extends Ae{constructor(e){super(),Te(this,e,Qe,Xe,a,{segment:0})}}function et(e){let t,n,r=e[1].stack+"";return{c(){t=v("pre"),n=_(r)},l(e){t=O(e,"PRE",{});var s=L(t);n=H(s,r),s.forEach(b)},m(e,r){g(e,t,r),p(t,n)},p(e,t){2&t&&r!==(r=e[1].stack+"")&&j(n,r)},d(e){e&&b(t)}}}function tt(t){let n,r,s,o,a,i,c,l,u,d=t[1].message+"";document.title=n=t[0];let f=t[2]&&t[1].stack&&et(t);return{c(){r=$(),s=v("h1"),o=_(t[0]),a=$(),i=v("p"),c=_(d),l=$(),f&&f.c(),u=E(),this.h()},l(e){V("svelte-1moakz",document.head).forEach(b),r=M(e),s=O(e,"H1",{class:!0});var n=L(s);o=H(n,t[0]),n.forEach(b),a=M(e),i=O(e,"P",{class:!0});var h=L(i);c=H(h,d),h.forEach(b),l=M(e),f&&f.l(e),u=E(),this.h()},h(){T(s,"class","svelte-17w3omn"),T(i,"class","svelte-17w3omn")},m(e,t){g(e,r,t),g(e,s,t),p(s,o),g(e,a,t),g(e,i,t),p(i,c),g(e,l,t),f&&f.m(e,t),g(e,u,t)},p(e,t){let[r]=t;1&r&&n!==(n=e[0])&&(document.title=n),1&r&&j(o,e[0]),2&r&&d!==(d=e[1].message+"")&&j(c,d),e[2]&&e[1].stack?f?f.p(e,r):(f=et(e),f.c(),f.m(u.parentNode,u)):f&&(f.d(1),f=null)},i:e,o:e,d(e){e&&b(r),e&&b(s),e&&b(a),e&&b(i),e&&b(l),f&&f.d(e),e&&b(u)}}}function nt(e,t,n){let{status:r}=t,{error:s}=t;return e.$$set=e=>{"status"in e&&n(0,r=e.status),"error"in e&&n(1,s=e.error)},[r,s,false]}class rt extends Ae{constructor(e){super(),Te(this,e,nt,tt,a,{status:0,error:1})}}function st(e){let n,r,s;const o=[e[4].props];var a=e[4].component;function i(e){let n={};for(let e=0;e<o.length;e+=1)n=t(n,o[e]);return{props:n}}return a&&(n=F(a,i())),{c(){n&&_e(n.$$.fragment),r=E()},l(e){n&&$e(n.$$.fragment,e),r=E()},m(e,t){n&&Ee(n,e,t),g(e,r,t),s=!0},p(e,t){const s=16&t?ve(o,[ye(e[4].props)]):{};if(16&t&&a!==(a=e[4].component)){if(n){me();const e=n;we(e.$$.fragment,1,0,()=>{Se(e,1)}),ge()}a?(n=F(a,i()),_e(n.$$.fragment),be(n.$$.fragment,1),Ee(n,r.parentNode,r)):n=null}else a&&n.$set(s)},i(e){s||(n&&be(n.$$.fragment,e),s=!0)},o(e){n&&we(n.$$.fragment,e),s=!1},d(e){e&&b(r),n&&Se(n,e)}}}function ot(e){let t,n;return t=new rt({props:{error:e[0],status:e[1]}}),{c(){_e(t.$$.fragment)},l(e){$e(t.$$.fragment,e)},m(e,r){Ee(t,e,r),n=!0},p(e,n){const r={};1&n&&(r.error=e[0]),2&n&&(r.status=e[1]),t.$set(r)},i(e){n||(be(t.$$.fragment,e),n=!0)},o(e){we(t.$$.fragment,e),n=!1},d(e){Se(t,e)}}}function at(e){let t,n,r,s;const o=[ot,st],a=[];function i(e,t){return e[0]?0:1}return t=i(e),n=a[t]=o[t](e),{c(){n.c(),r=E()},l(e){n.l(e),r=E()},m(e,n){a[t].m(e,n),g(e,r,n),s=!0},p(e,s){let c=t;t=i(e),t===c?a[t].p(e,s):(me(),we(a[c],1,1,()=>{a[c]=null}),ge(),n=a[t],n?n.p(e,s):(n=a[t]=o[t](e),n.c()),be(n,1),n.m(r.parentNode,r))},i(e){s||(be(n),s=!0)},o(e){we(n),s=!1},d(e){a[t].d(e),e&&b(r)}}}function it(e){let n,r;const s=[{segment:e[2][0]},e[3].props];let o={$$slots:{default:[at]},$$scope:{ctx:e}};for(let e=0;e<s.length;e+=1)o=t(o,s[e]);return n=new Ze({props:o}),{c(){_e(n.$$.fragment)},l(e){$e(n.$$.fragment,e)},m(e,t){Ee(n,e,t),r=!0},p(e,t){let[r]=t;const o=12&r?ve(s,[4&r&&{segment:e[2][0]},8&r&&ye(e[3].props)]):{};147&r&&(o.$$scope={dirty:r,ctx:e}),n.$set(o)},i(e){r||(be(n.$$.fragment,e),r=!0)},o(e){we(n.$$.fragment,e),r=!1},d(e){Se(n,e)}}}function ct(e,t,n){let{stores:r}=t,{error:s}=t,{status:o}=t,{segments:a}=t,{level0:i}=t,{level1:c=null}=t,{notify:l}=t;var u,d;return ee(l),u=Le,d=r,Q().$$.context.set(u,d),e.$$set=e=>{"stores"in e&&n(5,r=e.stores),"error"in e&&n(0,s=e.error),"status"in e&&n(1,o=e.status),"segments"in e&&n(2,a=e.segments),"level0"in e&&n(3,i=e.level0),"level1"in e&&n(4,c=e.level1),"notify"in e&&n(6,l=e.notify)},[s,o,a,i,c,r,l]}class lt extends Ae{constructor(e){super(),Te(this,e,ct,it,a,{stores:5,error:0,status:1,segments:2,level0:3,level1:4,notify:6})}}const ut=[],dt=[{js:()=>Promise.all([import("./index.c80b4b6e.js"),__inject_styles(["client-31a52aa5.css","createOctokit-a85f76c7.css","index-b0b6455a.css"])]).then(function(e){return e[0]})},{js:()=>Promise.all([import("./rate-limit-exceeded.a275bf41.js"),__inject_styles(["client-31a52aa5.css","rate-limit-exceeded-88af4d80.css"])]).then(function(e){return e[0]})},{js:()=>Promise.all([import("./_number_.3b78a49c.js"),__inject_styles(["client-31a52aa5.css","createOctokit-a85f76c7.css","_number_-d4d16748.css"])]).then(function(e){return e[0]})},{js:()=>Promise.all([import("./_number_.79cb8e05.js"),__inject_styles(["client-31a52aa5.css","createOctokit-a85f76c7.css","_number_-971b332f.css"])]).then(function(e){return e[0]})},{js:()=>Promise.all([import("./error.b5199c1b.js"),__inject_styles(["client-31a52aa5.css","error-37eeedae.css"])]).then(function(e){return e[0]})}],ft=(ht=decodeURIComponent,[{pattern:/^\/$/,parts:[{i:0}]},{pattern:/^\/rate-limit-exceeded\/?$/,parts:[{i:1}]},{pattern:/^\/incident\/([^/]+?)\/?$/,parts:[null,{i:2,params:e=>({number:ht(e[1])})}]},{pattern:/^\/history\/([^/]+?)\/?$/,parts:[null,{i:3,params:e=>({number:ht(e[1])})}]},{pattern:/^\/error\/?$/,parts:[{i:4}]}]);var ht;
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
function pt(e,t,n,r){return new(n||(n=Promise))(function(s,o){function a(e){try{c(r.next(e))}catch(e){o(e)}}function i(e){try{c(r.throw(e))}catch(e){o(e)}}function c(e){var t;e.done?s(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(a,i)}c((r=r.apply(e,t||[])).next())})}function mt(e){for(;e&&"A"!==e.nodeName.toUpperCase();)e=e.parentNode;return e}let gt,bt=1;const wt="undefined"!=typeof history?history:{pushState:()=>{},replaceState:()=>{},scrollRestoration:"auto"},vt={};let yt,_t;const $t=e=>"undefined"!=typeof URLSearchParams?[...new URLSearchParams(e).entries()]:e.slice(1).split("&").map(e=>{const[,t,n=""]=/([^=]*)(?:=([\S\s]*))?/.exec(decodeURIComponent(e.replace(/\+/g," ")));return[t,n]});function Et(e){const t=Object.create(null);return e.length?$t(e).reduce((e,t)=>{let[n,r]=t;return"string"==typeof e[n]&&(e[n]=[e[n]]),"object"==typeof e[n]?e[n].push(r):e[n]=r,e},t):t}function St(e){if(e.origin!==location.origin)return null;if(!e.pathname.startsWith(yt))return null;let t=e.pathname.slice(yt.length);if(""===t&&(t="/"),!ut.some(e=>e.test(t)))for(let n=0;n<ft.length;n+=1){const r=ft[n],s=r.pattern.exec(t);if(s){const n=Et(e.search),o=r.parts[r.parts.length-1],a=o.params?o.params(s):{},i={host:location.host,path:t,query:n,params:a};return{href:e.href,route:r,match:s,page:i}}}}function xt(e){if(1!==function(e){return null===e.which?e.button:e.which}(e))return;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;if(e.defaultPrevented)return;const t=mt(e.target);if(!t)return;if(!t.href)return;const n="object"==typeof t.href&&"SVGAnimatedString"===t.href.constructor.name,r=String(n?t.href.baseVal:t.href);if(r===location.href)return void(location.hash||e.preventDefault());if(t.hasAttribute("download")||"external"===t.getAttribute("rel"))return;if(n?t.target.baseVal:t.target)return;const s=new URL(r);if(s.pathname===location.pathname&&s.search===location.search)return;const o=St(s);if(o){Nt(o,null,t.hasAttribute("sapper:noscroll"),s.hash),e.preventDefault(),wt.pushState({id:gt},"",s.href)}}function Tt(){return{x:pageXOffset,y:pageYOffset}}function At(e){if(vt[gt]=Tt(),e.state){const t=St(new URL(location.href));t?Nt(t,e.state.id):location.href=location.href}else!function(e){bt=e}(bt+1),function(e){gt=e}(bt),wt.replaceState({id:gt},"",location.href)}function Nt(e,t,n,r){return pt(this,void 0,void 0,function*(){const s=!!t;if(s)gt=t;else{const e=Tt();vt[gt]=e,gt=t=++bt,vt[gt]=n?e:{x:0,y:0}}if(yield _t(e),document.activeElement&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),!n){let e,n=vt[t];r&&(e=document.getElementById(r.slice(1)),e&&(n={x:0,y:e.getBoundingClientRect().top+scrollY})),vt[gt]=n,n&&(s||e)?scrollTo(n.x,n.y):scrollTo(0,0)}})}function Pt(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}let Lt,It=null;function Rt(e){const t=mt(e.target);t&&t.hasAttribute("sapper:prefetch")&&function(e){const t=St(new URL(e,Pt(document)));if(t)It&&e===It.href||(It={href:e,promise:Ft(t)}),It.promise}(t.href)}function kt(e){clearTimeout(Lt),Lt=setTimeout(()=>{Rt(e)},20)}function Ot(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{noscroll:!1,replaceState:!1};const n=St(new URL(e,Pt(document)));if(n){const r=Nt(n,null,t.noscroll);return wt[t.replaceState?"replaceState":"pushState"]({id:gt},"",e),r}return location.href=e,new Promise(()=>{})}const Ct="undefined"!=typeof __SAPPER__&&__SAPPER__;let Ht,Mt,Dt,Ut=!1,jt=[],Gt="{}";const qt={page:function(e){const t=Pe(e);let n=!0;return{notify:function(){n=!0,t.update(e=>e)},set:function(e){n=!1,t.set(e)},subscribe:function(e){let r;return t.subscribe(t=>{(void 0===r||n&&t!==r)&&e(r=t)})}}}({}),preloading:Pe(null),session:Pe(Ct&&Ct.session)};let Bt,zt,Kt;function Jt(e){var t,n;return t=e.target,Kt=t,n=Ct.baseUrl,yt=n,_t=Wt,"scrollRestoration"in wt&&(wt.scrollRestoration="manual"),addEventListener("beforeunload",()=>{wt.scrollRestoration="auto"}),addEventListener("load",()=>{wt.scrollRestoration="manual"}),addEventListener("click",xt),addEventListener("popstate",At),addEventListener("touchstart",Rt),addEventListener("mousemove",kt),Ct.error?Promise.resolve().then(()=>function(){const{host:e,pathname:t,search:n}=location,{session:r,preloaded:s,status:o,error:a}=Ct;Dt||(Dt=s&&s[0]);const i={error:a,status:o,session:r,level0:{props:Dt},level1:{props:{status:o,error:a},component:rt},segments:s},c=Et(n);Yt([],i,{host:e,path:t,query:c,params:{},error:a})}()):Promise.resolve().then(()=>{const{hash:e,href:t}=location;wt.replaceState({id:bt},"",t);const n=St(new URL(location.href));if(n)return Nt(n,bt,!0,e)})}function Vt(e,t){const{error:n}=e;return Object.assign({error:n},t)}function Wt(e){return pt(this,void 0,void 0,function*(){Ht&&qt.preloading.set(!0);const t=function(e){return It&&It.href===e.href?It.promise:Ft(e)}(e),n=Mt={},r=yield t,{redirect:s}=r;if(n===Mt)if(s)yield Ot(s.location,{replaceState:!0});else{const{props:t,branch:n}=r;yield Yt(n,t,Vt(t,e.page))}})}function Yt(e,t,n){return pt(this,void 0,void 0,function*(){qt.page.set(n),qt.preloading.set(!1),Ht?Ht.$set(t):(t.stores={page:{subscribe:qt.page.subscribe},preloading:{subscribe:qt.preloading.subscribe},session:qt.session},t.level0={props:yield Dt},t.notify=qt.page.notify,Ht=new lt({target:Kt,props:t,hydrate:!0})),jt=e,Gt=JSON.stringify(n.query),Ut=!0,zt=!1})}function Ft(e){return pt(this,void 0,void 0,function*(){const{route:t,page:n}=e,r=n.path.split("/").filter(Boolean);let s=null;const o={error:null,status:200,segments:[r[0]]},a={fetch:(e,t)=>fetch(e,t),redirect:(e,t)=>{if(s&&(s.statusCode!==e||s.location!==t))throw new Error("Conflicting redirects");s={statusCode:e,location:t}},error:(e,t)=>{o.error="string"==typeof t?new Error(t):t,o.status=e}};if(!Dt){const e=()=>({});Dt=Ct.preloaded[0]||e.call(a,{host:n.host,path:n.path,query:n.query,params:{}},Bt)}let i,c=1;try{const s=JSON.stringify(n.query),l=t.pattern.exec(n.path);let u=!1;i=yield Promise.all(t.parts.map((t,i)=>pt(this,void 0,void 0,function*(){const d=r[i];if(function(e,t,n,r){if(r!==Gt)return!0;const s=jt[e];return!!s&&(t!==s.segment||!(!s.match||JSON.stringify(s.match.slice(1,e+2))===JSON.stringify(n.slice(1,e+2)))||void 0)}(i,d,l,s)&&(u=!0),o.segments[c]=r[i+1],!t)return{segment:d};const f=c++;let h;if(zt||u||!jt[i]||jt[i].part!==t.i){u=!1;const{default:r,preload:s}=yield dt[t.i].js();let o;o=Ut||!Ct.preloaded[i+1]?s?yield s.call(a,{host:n.host,path:n.path,query:n.query,params:t.params?t.params(e.match):{}},Bt):{}:Ct.preloaded[i+1],h={component:r,props:o,segment:d,match:l,part:t.i}}else h=jt[i];return o[`level${f}`]=h})))}catch(e){o.error=e,o.status=500,i=[]}return{redirect:s,props:o,branch:i}})}qt.session.subscribe(e=>pt(void 0,void 0,void 0,function*(){if(Bt=e,!Ut)return;zt=!0;const t=St(new URL(location.href)),n=Mt={},{redirect:r,props:s,branch:o}=yield Ft(t);n===Mt&&(r?yield Ot(r.location,{replaceState:!0}):yield Yt(o,s,Vt(s,t.page)))})),"loading"!==document.readyState?Jt({target:document.querySelector("#sapper")}):document.addEventListener("DOMContentLoaded",function(){Jt({target:document.querySelector("#sapper")})});export{j as A,P as B,S as C,s as D,re as E,U as F,c as G,Y as H,d as I,q as J,V as K,Ge as L,y as M,C as N,Ot as O,G as P,x as Q,t as R,Ae as S,N as T,ee as U,te as V,u as W,ve as X,ye as Y,ce as Z,J as _,$ as a,O as b,M as c,L as d,v as e,b as f,T as g,g as h,Te as i,me as j,ge as k,be as l,_ as m,H as n,Z as o,p,e as q,Ie as r,a as s,we as t,E as u,w as v,_e as w,$e as x,Ee as y,Se as z};
import __inject_styles from './inject_styles.099149d9.js';