uptime/client/legacy/rate-limit-exceeded.d2549c6...

2 lines
4.6 KiB
JavaScript

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