uptime/client/rate-limit-exceeded.120c349...

2 lines
3.9 KiB
JavaScript

import{S as e,i as t,s as a,r as i,j as s,e as r,t as n,v as o,I as c,d as l,k as d,c as h,a as u,b as m,f,g as E,h as p,n as v,q as x,M as w,N as g,B as L,O as b,C as T}from"./client.aae14c94.js";function P(e){let t,a,o,c,v,x,w,P,S,k,y,A=i.i18n.rateLimitExceededGitHubPAT+"",H=i.i18n.rateLimitExceededSaveToken+"";return{c(){t=r("form"),a=r("label"),o=r("span"),c=n(A),v=s(),x=r("input"),w=s(),P=r("button"),S=n(H),this.h()},l(e){t=h(e,"FORM",{});var i=u(t);a=h(i,"LABEL",{class:!0});var s=u(a);o=h(s,"SPAN",{class:!0});var r=u(o);c=m(r,A),r.forEach(l),v=d(s),x=h(s,"INPUT",{type:!0,placeholder:!0,class:!0}),s.forEach(l),w=d(i),P=h(i,"BUTTON",{class:!0,type:!0});var n=u(P);S=m(n,H),n.forEach(l),i.forEach(l),this.h()},h(){f(o,"class","svelte-1x7uoin"),f(x,"type","text"),f(x,"placeholder",i.i18n.rateLimitExceededCopyPastePAT),f(x,"class","svelte-1x7uoin"),f(a,"class","svelte-1x7uoin"),f(P,"class","submit-button svelte-1x7uoin"),f(P,"type","submit")},m(i,s){E(i,t,s),p(t,a),p(a,o),p(o,c),p(a,v),p(a,x),g(x,e[0]),p(t,w),p(t,P),p(P,S),k||(y=[L(x,"input",e[4]),L(t,"submit",b(e[2]))],k=!0)},p(e,t){1&t&&x.value!==e[0]&&g(x,e[0])},d(e){e&&l(t),k=!1,T(y)}}}function S(e){let t,a,o,c,x,w,g,b=i.i18n.rateLimitExceededHasSet+"",T=i.i18n.rateLimitExceededRemoveToken+"";return{c(){t=r("p"),a=n(b),o=s(),c=r("button"),x=n(T),this.h()},l(e){t=h(e,"P",{});var i=u(t);a=m(i,b),i.forEach(l),o=d(e),c=h(e,"BUTTON",{class:!0});var s=u(c);x=m(s,T),s.forEach(l),this.h()},h(){f(c,"class","svelte-1x7uoin")},m(i,s){E(i,t,s),p(t,a),E(i,o,s),E(i,c,s),p(c,x),w||(g=L(c,"click",e[3]),w=!0)},p:v,d(e){e&&l(t),e&&l(o),e&&l(c),w=!1,g()}}}function k(e){let t,a,x,w,g,L,b,T,k,y,A,H,I,N,B,M,O,C,F,U,j,G,R,q,D=i.i18n.rateLimitExceededTitle+"",W=i.i18n.rateLimitExceededIntro+"",_=i.i18n.rateLimitExceededWhatDoesErrorMean+"",z=i.i18n.rateLimitExceededErrorMeaning+"",J=i.i18n.rateLimitExceededErrorHowCanFix+"",K=i.i18n.rateLimitExceededErrorFix+"",Q=i.i18n.rateLimitExceededGeneratePAT+"";function V(e,t){return e[1]?S:P}document.title=t=i.i18n.rateLimitExceededTitle;let X=V(e),Y=X(e);return{c(){a=s(),x=r("h1"),w=n(D),g=s(),L=r("p"),b=n(W),T=s(),k=r("h2"),y=n(_),A=s(),H=r("p"),I=n(z),N=s(),B=r("h2"),M=n(J),O=s(),C=r("p"),F=n(K),U=s(),j=r("a"),G=n(Q),R=s(),Y.c(),q=o(),this.h()},l(e){c('[data-svelte="svelte-1xny0el"]',document.head).forEach(l),a=d(e),x=h(e,"H1",{});var t=u(x);w=m(t,D),t.forEach(l),g=d(e),L=h(e,"P",{class:!0});var i=u(L);b=m(i,W),i.forEach(l),T=d(e),k=h(e,"H2",{});var s=u(k);y=m(s,_),s.forEach(l),A=d(e),H=h(e,"P",{});var r=u(H);I=m(r,z),r.forEach(l),N=d(e),B=h(e,"H2",{});var n=u(B);M=m(n,J),n.forEach(l),O=d(e),C=h(e,"P",{});var f=u(C);F=m(f,K),U=d(f),j=h(f,"A",{href:!0,target:!0});var E=u(j);G=m(E,Q),E.forEach(l),f.forEach(l),R=d(e),Y.l(e),q=o(),this.h()},h(){f(L,"class","lead svelte-1x7uoin"),f(j,"href","https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token"),f(j,"target","_blank")},m(e,t){E(e,a,t),E(e,x,t),p(x,w),E(e,g,t),E(e,L,t),p(L,b),E(e,T,t),E(e,k,t),p(k,y),E(e,A,t),E(e,H,t),p(H,I),E(e,N,t),E(e,B,t),p(B,M),E(e,O,t),E(e,C,t),p(C,F),p(C,U),p(C,j),p(j,G),E(e,R,t),Y.m(e,t),E(e,q,t)},p(e,[a]){0&a&&t!==(t=i.i18n.rateLimitExceededTitle)&&(document.title=t),X===(X=V(e))&&Y?Y.p(e,a):(Y.d(1),Y=X(e),Y&&(Y.c(),Y.m(q.parentNode,q)))},i:v,o:v,d(e){e&&l(a),e&&l(x),e&&l(g),e&&l(L),e&&l(T),e&&l(k),e&&l(A),e&&l(H),e&&l(N),e&&l(B),e&&l(O),e&&l(C),e&&l(R),Y.d(e),e&&l(q)}}}function y(e,t,a){let s="",r=!1;return x((()=>{"undefined"!=typeof window&&"localStorage"in window&&localStorage.getItem("personal-access-token")&&a(1,r=!0)})),[s,r,()=>{"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.setItem("personal-access-token",s),w(i.path)},()=>{a(0,s=""),a(1,r=!1),"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.removeItem("personal-access-token")},function(){s=this.value,a(0,s)}]}class A extends e{constructor(e){super(),t(this,e,y,k,a,{})}}export{A as default};