Build 620073canary
Module 936494
800 characters · in web.692b1813fcabadaf.js, 1b81e34255261fd2.jsDependencies
Source Raw
function(e,t,n){n.d(t,{$k:()=>u,Xd:()=>a,hj:()=>s,uQ:()=>o});var i=n(652215),r=n(50617),l=n(375708);class o extends Error{reason;status;constructor(e,t){super(`vibegrations create failed: ${e} [${t}]`),this.name="VibegrationsCreateError",this.reason=e,this.status=t}}function s(e){if("object"!=typeof e||null===e)return"unknown";let{status:t,body:n}=e;if("number"!=typeof t)return"unknown";if(429===t)return"rate_limited";let r=n?.code;return 409===t&&r===i.t02.TOO_MANY_VIBEGRATIONS_PROJECTS?"project_limit":"unknown"}function u(e){let t=e?.status;return"number"==typeof t?t:0}function a(e){switch(e instanceof o?e.reason:"unknown"){case"project_limit":return l.intl.string(r.default.Asusmn);case"rate_limited":return l.intl.string(r.default.DT6qly);default:return l.intl.string(r.default.KKkp5Y)}}}