var e=RegExp(`^[A-Z0-9]{8}$`);function t(t){let n=t?.trim().replaceAll(`-`,``).toUpperCase();if(!(!n||!e.test(n)))return n}var n=128;function r(e){let t=e?.trim();if(t&&!(t.length>n||/\s/.test(t)))return t}var i=`/signin`,a=`/device`,o=`/auth/callback`,s=`/onboarding/connect-database`,c=`/invite/$invitationId`,l=`/$org_slug/home`;function u(e,n){let i=t(e);if(!i)return a;let o=new URLSearchParams({user_code:i}),s=r(n);return s&&o.set(`orgId`,s),`${a}?${o.toString()}`}function d(e){let t=r(e);return t?`${s}?${new URLSearchParams({orgId:t}).toString()}`:s}function f(e){return`/invite/${e}`}export{l as a,u as c,t as d,c as i,f as l,s as n,i as o,a as r,d as s,o as t,r as u};