1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e._posthogReleaseId=e._posthogReleaseId||"01a0d495-3f4a-0000-290a-2c30f385bc4f";var n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="a2edd4a9-b736-5294-a090-82357229e33e")}catch(e){}}();function e(){if(typeof crypto.randomUUID==`function`)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint8Array(16));e[6]=e[6]&15|64,e[8]=e[8]&63|128;let t=Array.from(e,e=>e.toString(16).padStart(2,`0`));return`${t.slice(0,4).join(``)}-${t.slice(4,6).join(``)}-${t.slice(6,8).join(``)}-${t.slice(8,10).join(``)}-${t.slice(10,16).join(``)}`}function t(t=`client`){let n=e();return sessionStorage.setItem(`oauth_nonce`,n),JSON.stringify({nonce:n,intent:t})}function n(e){return typeof e?.nonce==`string`?{nonce:e.nonce,intent:e.intent===`talent`?`talent`:`client`}:null}function r(e){let t=n(e),r=sessionStorage.getItem(`oauth_nonce`);return!t||t.nonce!==r?null:(sessionStorage.removeItem(`oauth_nonce`),{intent:t.intent})}function i(e=`client`){let n=t(e),r=new URL(`https://accounts.google.com/o/oauth2/auth`);r.searchParams.set(`response_type`,`code`),r.searchParams.set(`client_id`,`947696671784-j1f78s6c6o1gkuuo50cr0e3af7gscsk1.apps.googleusercontent.com`),r.searchParams.set(`redirect_uri`,`${window.location.origin}/oauth/google`),r.searchParams.set(`scope`,`email profile openid`),r.searchParams.set(`state`,n),window.location.href=r.toString()}function a(e=`client`){let n=t(e),r=new URL(`https://www.linkedin.com/oauth/v2/authorization`);r.searchParams.set(`response_type`,`code`),r.searchParams.set(`client_id`,`86avcazuu3zxd5`),r.searchParams.set(`redirect_uri`,`${window.location.origin}/oauth/linkedin`),r.searchParams.set(`scope`,`profile email openid`),r.searchParams.set(`state`,n),window.location.href=r.toString()}async function o(n=`client`){let r=t(n),i=e();sessionStorage.setItem(`oauth_code_verifier`,i);let a=s(await crypto.subtle.digest(`SHA-256`,new TextEncoder().encode(i))),o=new URL(`https://login.microsoftonline.com/common/oauth2/v2.0/authorize`);o.searchParams.set(`response_type`,`code`),o.searchParams.set(`client_id`,`788ebaf2-4b0b-4962-9c09-02c9b93dcdea`),o.searchParams.set(`redirect_uri`,`${window.location.origin}/oauth/microsoft`),o.searchParams.set(`scope`,`profile email openid`),o.searchParams.set(`state`,r),o.searchParams.set(`code_challenge`,a),o.searchParams.set(`code_challenge_method`,`S256`),o.searchParams.set(`response_mode`,`query`),window.location.href=o.toString()}function s(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}export{r as i,a as n,o as r,i as t}; 2//# sourceMappingURL=oauth-DtPaUIGY.js.map 3//# chunkId=a2edd4a9-b736-5294-a090-82357229e33e
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.