PageSourceSearch

https://signalsfantasy.com/_nuxt/D_ZdTA5v.js

js signalsfantasy.com collected 2026-10-02 01:43:29 UTC 19,427 bytes, 3 lines download raw bytes

1import{B as e,L as t,P as n,R as r,V as i,_ as a,a as o,c as s,d as c,h as l,i as u,l as d,m as ee,o as te,r as ne,s as re,t as f,u as ie,v as ae,z as p}from"./DtXu3ndo.js";var m=(t,n=e)=>(e,r,i)=>{let{message:a,recoverySuggestion:o}=t[r];if(!e)throw new n({name:r,message:i?`${a} ${i}`:a,recoverySuggestion:o})},h={convert(e,t){let r=e;return t?.urlSafe&&(r=r.replace(/-/g,`+`).replace(/_/g,`/`)),n()(r)}},g;(function(e){e.AuthTokenConfigException=`AuthTokenConfigException`,e.AuthUserPoolAndIdentityPoolException=`AuthUserPoolAndIdentityPoolException`,e.AuthUserPoolException=`AuthUserPoolException`,e.InvalidIdentityPoolIdException=`InvalidIdentityPoolIdException`,e.OAuthNotConfigureException=`OAuthNotConfigureException`})(g||={});var _=m({[g.AuthTokenConfigException]:{message:`Auth Token Provider not configured.`,recoverySuggestion:`Make sure to call Amplify.configure in your app.`},[g.AuthUserPoolAndIdentityPoolException]:{message:`Auth UserPool or IdentityPool not configured.`,recoverySuggestion:`Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId.`},[g.AuthUserPoolException]:{message:`Auth UserPool not configured.`,recoverySuggestion:`Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId.`},[g.InvalidIdentityPoolIdException]:{message:`Invalid identity pool id provided.`,recoverySuggestion:`Make sure a valid identityPoolId is given in the config.`},[g.OAuthNotConfigureException]:{message:`oauth param not configured.`,recoverySuggestion:`Make sure to call Amplify.configure with oauth parameter in your app.`}});function v(e){let t=!0;t=e?!!e.userPoolId&&!!e.userPoolClientId:!1,_(t,g.AuthUserPoolException)}function oe(e){_(!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType,g.OAuthNotConfigureException)}function se(e){_(!!e?.identityPoolId,g.InvalidIdentityPoolIdException)}function y(e){let t=e.split(`.`);if(t.length!==3)throw Error(`Invalid token`);try{let n=t[1].replace(/-/g,`+`).replace(/_/g,`/`),r=decodeURIComponent(h.convert(n).split(``).map(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join(``));return{toString:()=>e,payload:JSON.parse(r)}}catch{throw Error(`Invalid token payload`)}}var b=()=>typeof window<`u`&&window.document!==void 0,x=(e,t,n,r)=>async(i,a)=>{let o={...r,...i};return n(await e(await t(a,await o.endpointResolver(o,a)),{...o}))},S=u(ne,[o,()=>e=>async function(t){return t.headers[`amz-sdk-invocation-id`]||(t.headers[ie]=te()),e(t)},re,({maxAttempts:e=3})=>(t,n)=>async function(r){let i=n.attemptsCount??0;return r.headers[c]=`attempt=${i+1}; max=${e}`,t(r)}]),C={id:`aws`,outputs:{dnsSuffix:`amazonaws.com`},regionRegex:`^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$`,regions:[`aws-global`]},ce={partitions:[C,{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:[`aws-cn-global`]}]},w=e=>{let{partitions:t}=ce;for(let{regions:n,outputs:r,regionRegex:i}of t){let t=new RegExp(i);if(n.includes(e)||t.test(e))return r.dnsSuffix}return C.outputs.dnsSuffix},T=class extends e{constructor(){super({name:p.PlatformNotSupported,message:`Function not supported on current platform`})}},E=class{constructor(e){this.storage=e}async setItem(e,t){if(!this.storage)throw new T;this.storage.setItem(e,t)}async getItem(e){if(!this.storage)throw new T;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new T;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new T;this.storage.clear()}},D=class{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,t){this.storage.set(e,t)}getItem(e){return this.storage.get(e)??null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}},O=new i(`CoreStorageUtils`),le=()=>{try{if(typeof window<`u`&&window.localStorage)return window.localStorage}catch{O.info(`localStorage not found. InMemoryStorage is used as a fallback.`)}return new D},k=()=>{try{if(typeof window<`u`&&window.sessionStorage)return window.sessionStorage.getItem(`test`),window.sessionStorage;throw Error(`sessionStorage is not defined`)}catch{return O.info(`sessionStorage not found. InMemoryStorage is used as a fallback.`),new D}}
1,ue=class extends E{constructor(){super(le())}},de=class extends E{constructor(){super(k())}},fe=class{constructor(e){this._storage=e}get storage(){if(!this._storage)throw new T;return this._storage}setItem(e,t){this.storage.setItem(e,t)}getItem(e){return this.storage.getItem(e)}removeItem(e){this.storage.removeItem(e)}clear(){this.storage.clear()}},pe=class extends fe{constructor(){super(k())}},A=new ue;new de;var me=new pe;new E(new D);var he=e=>{let t;return async(...n)=>t||(t=new Promise((r,i)=>{e(...n).then(e=>{r(e)}).catch(e=>{i(e)}).finally(()=>{t=void 0})}),t)};function j({expiresAt:e,clockDrift:t,tolerance:n=5e3}){return Date.now()+t+n>e}var M=class t extends e{constructor(e){super(e),this.constructor=t,Object.setPrototypeOf(this,t.prototype)}};function N(e){let t=e?.split(`_`)[0];if(!e||e.indexOf(`_`)<0||!t||typeof t!=`string`)throw new M({name:`InvalidUserPoolId`,message:`Invalid user pool id provided.`});return t}function ge(e){if(!e||!e.includes(`:`))throw new M({name:`InvalidIdentityPoolIdException`,message:`Invalid identity pool id provided.`,recoverySuggestion:`Make sure a valid identityPoolId is given in the config.`});return e.split(`:`)[0]}var P=`UserUnAuthenticatedException`,_e=`UserAlreadyAuthenticatedException`,ve=`DeviceMetadataNotFoundException`,ye=`AutoSignInException`,be=`InvalidRedirectException`,xe=`InvalidAppSchemeException`,Se=`InvalidPreferredRedirectUrlException`,Ce=new M({name:be,message:`signInRedirect or signOutRedirect had an invalid format or was not found.`,recoverySuggestion:`Please make sure the signIn/Out redirect in your oauth config is valid.`});new M({name:xe,message:`A valid non-http app scheme was not found in the config.`,recoverySuggestion:`Please make sure a valid custom app scheme is present in the config.`});var we=new M({name:Se,message:`The given preferredRedirectUrl does not match any items in the redirectSignOutUrls array from the config.`,recoverySuggestion:`Please make sure a matching preferredRedirectUrl is provided.`}),Te=new M({name:`InvalidOriginException`,message:`redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin`,recoverySuggestion:`Please call signInWithRedirect from the same origin.`}),Ee=`OAuthSignOutException`,De=`TokenRefreshException`,Oe=`UnexpectedSignInInterruptionException`;function ke(e){if(!e||!e.accessToken)throw new M({name:P,message:`User needs to be authenticated to call this API.`,recoverySuggestion:`Sign in before calling this API again.`})}function Ae(e){if(!e||!e.idToken)throw new M({name:P,message:`User needs to be authenticated to call this API.`,recoverySuggestion:`Sign in before calling this API again.`})}var je=new M({name:De,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. 
2	Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow. 
3	E.g { responseType: 'code' }`}),Me=new M({name:P,message:`User needs to be authenticated to call this API.`,recoverySuggestion:`Sign in before calling this API again.`});function F(e){if(Ie(e))throw je;if(!Fe(e))throw Me}function Ne(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new M({name:ve,message:`Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.`,recoverySuggestion:`Make sure to not clear storage after calling the signIn API.`})}var Pe={inflightOAuth:`inflightOAuth`,oauthSignIn:`oauthSignIn`,oauthPKCE:`oauthPKCE`,oauthState:`oauthState`};function I(e){return e?.accessToken||e?.idToken}function Fe(e){return I(e)&&e?.refreshToken}function Ie(e){return I(e)&&!e?.refreshToken}var L=e=>(t,n)=>Re(n,Le(e),JSON.stringify(t)),Le=e=>({"content-type":`application/x-amz-json-1.1`,"x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),Re=({url:e},t,n)=>({headers:t,url:e,body:n,method:`POST`});function R(e){if(!e||e.name===`Error`||e instanceof TypeError)throw new M({name:p.Unknown,message:`An unknown error has occurred.`,underlyingError:e})}var z=()=>async e=>{if(e.statusCode>=300){let t=await l(e);throw R(t),new M({name:t.name,message:t.message,metadata:t.$metadata})}return ee(e)},B=u(S,[()=>(e,t)=>async function(t){return t.headers={...t.headers,"cache-control":`no-store`,...await a.libraryOptions?.Auth?.headers?.()},e(t)}]),V=`cognito-idp`,H={service:V,retryDecider:s(l),computeDelay:d,get userAgentValue(){return ae()},cache:`no-store`},ze=({region:e})=>({url:new f(`https://${V}.${e}.${w(e)}`)}),U=({endpointOverride:e})=>t=>e?{url:new f(e)}:ze(t),Be=e=>x(B,L(`GetTokensFromRefreshToken`),z(),{...H,...e}),Ve=he(async({tokens:e,authConfig:t,username:n,clientMetadata:r})=>
3{v(t?.Cognito);let{userPoolId:i,userPoolClientId:a,userPoolEndpoint:o}=t.Cognito,s=N(i);F(e);let{AuthenticationResult:c}=await Be({endpointResolver:U({endpointOverride:o})})({region:s},{ClientId:a,RefreshToken:e.refreshToken,DeviceKey:e.deviceMetadata?.deviceKey,ClientMetadata:r}),l=y(c?.AccessToken??``),u=c?.IdToken?y(c.IdToken):void 0,{iat:d}=l.payload;if(!d)throw new M({name:`iatNotFoundException`,message:`iat not found in access token`});return{accessToken:l,idToken:u,clockDrift:d*1e3-new Date().getTime(),refreshToken:c?.RefreshToken??e.refreshToken,username:n}}),He={accessToken:`accessToken`,idToken:`idToken`,oidcProvider:`oidcProvider`,clockDrift:`clockDrift`,refreshToken:`refreshToken`,deviceKey:`deviceKey`,randomPasswordKey:`randomPasswordKey`,deviceGroupKey:`deviceGroupKey`,signInDetails:`signInDetails`,oauthMetadata:`oauthMetadata`},W;(function(e){e.InvalidAuthTokens=`InvalidAuthTokens`})(W||={});var G=m({[W.InvalidAuthTokens]:{message:`Invalid tokens.`,recoverySuggestion:`Make sure the tokens are valid.`}}),K=`CognitoIdentityServiceProvider`,Ue=class{getKeyValueStorage(){if(!this.keyValueStorage)throw new M({name:`KeyValueStorageNotFoundException`,message:`KeyValueStorage was not found in TokenStore`});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{let e=await this.getAuthKeys(),t=await this.getKeyValueStorage().getItem(e.accessToken);if(!t)throw new M({name:`NoSessionFoundException`,message:`Auth session was not found. Make sure to call signIn.`});let n=y(t),r=await this.getKeyValueStorage().getItem(e.idToken),i=r?y(r):void 0,a=await this.getKeyValueStorage().getItem(e.refreshToken)??void 0,o=await this.getKeyValueStorage().getItem(e.clockDrift)??`0`,s=Number.parseInt(o),c=await this.getKeyValueStorage().getItem(e.signInDetails),l={accessToken:n,idToken:i,refreshToken:a,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:s,username:await this.getLastAuthUser()};return c&&(l.signInDetails=JSON.parse(c)),l}catch{return null}}async storeTokens(e){G(e!==void 0,W.InvalidAuthTokens);let t=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),t);let n=await this.getAuthKeys();await this.getKeyValueStorage().setItem(n.accessToken,e.accessToken.toString()),e.idToken?await this.getKeyValueStorage().setItem(n.idToken,e.idToken.toString()):await this.getKeyValueStorage().removeItem(n.idToken),e.refreshToken?await this.getKeyValueStorage().setItem(n.refreshToken,e.refreshToken):await this.getKeyValueStorage().removeItem(n.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(n.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(n.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(n.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetails?await this.getKeyValueStorage().setItem(n.signInDetails,JSON.stringify(e.signInDetails)):await this.getKeyValueStorage().removeItem(n.signInDetails),await this.getKeyValueStorage().setItem(n.clockDrift,`${e.clockDrift}`)}async clearTokens(){let e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey()),this.getKeyValueStorage().removeItem(e.oauthMetadata)])}async getDeviceMetadata(e){let t=await this.getAuthKeys(e),n=await this.getKeyValueStorage().getItem(t.deviceKey),r=await this.getKeyValueStorage().getItem(t.deviceGroupKey),i=await this.getKeyValueStorage().getItem(t.randomPasswordKey);return i&&r&&n?{deviceKey:n,deviceGroupKey:r,randomPassword:i}:null}async clearDeviceMetadata(e){let t=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(t.deviceKey),this.getKeyValueStorage().removeItem(t.deviceGroupKey),this.getKeyValueStorage().removeItem(t.randomPasswordKey)])}async getAuthKeys(e){v(this.authConfig?.Cognito);let t=e??await this.getLastAuthUser();return We(K,`${this.authConfig.Cognito.userPoolClientId}.${t}`)}getLastAuthUserKey(){return v(this.authConfig?.Cognito),`${K}.${this.authConfig.Cognito.userPoolClientId}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??`username`}async setOAuthMetadata(e){let{oauthMetadata:t}=await this.getAuthKeys();await this.getKeyValueStorage().setItem(t,JSON.stringify(e))}async getOAuthMetadata(){let{oauthMetadata:e}=await this.getAuthKeys(),t=await this.getKeyValueStorage().getItem(e);return t&&JSON.parse(t)}},We=(e,t)=>
3q(He)(`${e}`,t);function q(e){let t=Object.values({...e});return(e,n)=>t.reduce((t,r)=>({...t,[r]:`${e}.${n}.${r}`}),{})}var J=`amplify-signin-with-hostedUI`,Y=`CognitoIdentityServiceProvider`,X=class{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){v(this.cognitoConfig);let e=Z(Y,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){v(this.cognitoConfig);let e=Z(Y,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(J),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){v(this.cognitoConfig);let e=Z(Y,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){v(this.cognitoConfig);let t=Z(Y,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthState,e)}loadPKCE(){v(this.cognitoConfig);let e=Z(Y,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){v(this.cognitoConfig);let t=Z(Y,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){v(this.cognitoConfig);let e=Z(Y,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(e.inflightOAuth)===`true`}async storeOAuthInFlight(e){v(this.cognitoConfig);let t=Z(Y,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(t.inflightOAuth,`${e}`)}async loadOAuthSignIn(){v(this.cognitoConfig);let e=Z(Y,this.cognitoConfig.userPoolClientId),t=await this.keyValueStorage.getItem(J),[n,r]=(await this.keyValueStorage.getItem(e.oauthSignIn))?.split(`,`)??[];return{isOAuthSignIn:n===`true`||t===`true`,preferPrivateSession:r===`true`}}async storeOAuthSignIn(e,t=!1){v(this.cognitoConfig);let n=Z(Y,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.oauthSignIn,`${e},${t}`)}},Z=(e,t)=>q(Pe)(e,t),Q=new X(A),Ge=[],Ke=e=>{Ge.push(e)},qe=class{constructor(){this.waitForInflightOAuth=b()?async()=>{if(await Q.loadOAuthInFlight())return this.inflightPromise||=new Promise((e,t)=>{Ke(e)}),this.inflightPromise}:async()=>{}}setAuthConfig(e){Q.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new M({name:`EmptyTokenStoreException`,message:`TokenStore not set`});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new M({name:`EmptyTokenRefresherException`,message:`TokenRefresher not set`});return this.tokenRefresher}setClientMetadataProvider(e){this.clientMetadataProvider=e}async getTokens(e){let t;try{v(this.authConfig?.Cognito)}catch{return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,t=await this.getTokenStore().loadTokens();let n=await this.getTokenStore().getLastAuthUser();if(t===null)return null;let r=!!t?.idToken&&j({expiresAt:(t.idToken?.payload?.exp??0)*1e3,clockDrift:t.clockDrift??0}),i=j({expiresAt:(t.accessToken?.payload?.exp??0)*1e3,clockDrift:t.clockDrift??0});return(e?.forceRefresh||r||i)&&(t=await this.refreshTokens({tokens:t,username:n,clientMetadata:e?.clientMetadata??await this.clientMetadataProvider?.()}),t===null)?null:{accessToken:t?.accessToken,idToken:t?.idToken,signInDetails:t?.signInDetails}}async refreshTokens({tokens:e,username:n,clientMetadata:i}){try{let{signInDetails:a}=e,o=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:n,clientMetadata:i});return o.signInDetails=a,await this.setTokens({tokens:o}),r.dispatch(`auth`,{event:`tokenRefresh`},`Auth`,t),o}catch(e){return this.handleErrors(e)}}handleErrors(e){if(R(e),this.isAuthenticationError(e)&&this.clearTokens(),r.dispatch(`auth`,{event:`tokenRefresh_failure`,data:{error:e}},`Auth`,t),e.name.startsWith(`NotAuthorizedException`))return null;throw e}isAuthenticationError(e){return[`NotAuthorizedException`,`TokenRevokedException`,`UserNotFoundException`,`PasswordResetRequiredException`,`UserNotConfirmedException`,`RefreshTokenReuseException`].some(t=>e?.name?.startsWith?.(t))}async setTokens({tokens:e}){return this.getTokenStore().storeTokens(e)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}setOAuthMetadata(e){return this.getTokenStore().setOAuthMetadata(e)}getOAuthMetadata(){return this.getTokenStore().getOAuthMetadata()}},$=new class{constructor(){this.authTokenStore=new Ue,this.authTokenStore.setKeyValueStorage(A),this.tokenOrchestrator=new qe,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(Ve)}getTokens(e={}){return this.tokenOrchestrator.getTokens(e)}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setClientMetadataProvider(e){this.tokenOrchestrator.setClientMetadataProvider(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}},{tokenOrchestrator:Je}=$;export{x as A,ge as C,me as D,A as E,y as F,h as I,m as L,se as M,oe as N,w as O,v as P,Ce as S,M as T,Oe as _,U as a,Te as b,z as c,ke as d,F as f,Ee as g,ye as h,q as i,b as j,S as k,R as l,Ae as m,Je as n,H as o,Ne as p,X as r,B as s,$ as t,L as u,_e as v,N as w,we as x,P as y};

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.