PageSourceSearch

https://outorah.org/_nuxt/DnjnAFvW.js

js outorah.org collected 2026-10-02 02:53:36 UTC 50,168 bytes, 3 lines download raw bytes

1(function(){try{var e=typeof window<`u`?window:typeof global<`u`?global:typeof globalThis<`u`?globalThis:typeof self<`u`?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]=`d9b7dd89-aba7-43cb-8d9e-772d1feccdca`,e._sentryDebugIdIdentifier=`sentry-dbid-d9b7dd89-aba7-43cb-8d9e-772d1feccdca`)}catch{}})();var e=`x-amz-user-agent`,t=`NoHubcallbackProvidedException`,n;(function(e){e.DEBUG=`DEBUG`,e.ERROR=`ERROR`,e.INFO=`INFO`,e.WARN=`WARN`,e.VERBOSE=`VERBOSE`,e.NONE=`NONE`})(n||={});var r={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6},i=class e{constructor(e,t=n.WARN){this.name=e,this.level=t,this._pluggables=[]}_padding(e){return e<10?`0`+e:``+e}_ts(){let e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(`:`)+`.`+e.getMilliseconds()}configure(e){return e&&(this._config=e),this._config}_log(t,...i){let a=this.level;e.LOG_LEVEL&&(a=e.LOG_LEVEL),typeof window<`u`&&window.LOG_LEVEL&&(a=window.LOG_LEVEL);let o=r[a];if(!(r[t]>=o))return;let s=console.log.bind(console);t===n.ERROR&&console.error&&(s=console.error.bind(console)),t===n.WARN&&console.warn&&(s=console.warn.bind(console)),e.BIND_ALL_LOG_LEVELS&&(t===n.INFO&&console.info&&(s=console.info.bind(console)),t===n.DEBUG&&console.debug&&(s=console.debug.bind(console)));let c=`[${t}] ${this._ts()} ${this.name}`,l=``;if(i.length===1&&typeof i[0]==`string`)l=`${c} - ${i[0]}`,s(l);else if(i.length===1)l=`${c} ${i[0]}`,s(c,i[0]);else if(typeof i[0]==`string`){let e=i.slice(1);e.length===1&&(e=e[0]),l=`${c} - ${i[0]} ${e}`,s(`${c} - ${i[0]}`,e)}else l=`${c} ${i}`,s(c,i);for(let e of this._pluggables){let t={message:l,timestamp:Date.now()};e.pushLogs([t])}}log(...e){this._log(n.INFO,...e)}info(...e){this._log(n.INFO,...e)}warn(...e){this._log(n.WARN,...e)}error(...e){this._log(n.ERROR,...e)}debug(...e){this._log(n.DEBUG,...e)}verbose(...e){this._log(n.VERBOSE,...e)}addPluggable(e){e&&e.getCategoryName()===`Logging`&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}};i.LOG_LEVEL=null,i.BIND_ALL_LOG_LEVELS=!1;var a=class e extends Error{constructor({message:t,name:n,recoverySuggestion:r,underlyingError:i,metadata:a}){if(super(t),this.name=n,this.underlyingError=i,this.recoverySuggestion=r,a){let{extendedRequestId:e,httpStatusCode:t,requestId:n}=a;this.metadata={extendedRequestId:e,httpStatusCode:t,requestId:n}}this.constructor=e,Object.setPrototypeOf(this,e.prototype)}},o;(function(e){e.NoEndpointId=`NoEndpointId`,e.PlatformNotSupported=`PlatformNotSupported`,e.Unknown=`Unknown`,e.NetworkError=`NetworkError`})(o||={});var s=(e,t=a)=>(n,r,i)=>{let{message:a,recoverySuggestion:o}=e[r];if(!n)throw new t({name:r,message:i?`${a} ${i}`:a,recoverySuggestion:o})},c=typeof Symbol<`u`?Symbol(`amplify_default`):`@@amplify_default`,l=new i(`Hub`),u=class{constructor(e){this.listeners=new Map,this.protectedChannels=[`core`,`auth`,`api`,`analytics`,`interactions`,`pubsub`,`storage`,`ui`,`xr`],this.name=e}_remove(e,t){let n=this.listeners.get(e);if(!n){l.warn(`No listeners for ${e}`);return}this.listeners.set(e,[...n.filter(({callback:e})=>e!==t)])}dispatch(e,t,n,r){typeof e==`string`&&this.protectedChannels.indexOf(e)>-1&&r!==c&&l.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`);let i={channel:e,payload:{...t},source:n,patternInfo:[]};try{this._toListeners(i)}catch(e){l.error(e)}}listen(e,n,r=`noname`){let i;if(typeof n!=`function`)throw new a({name:t,message:`No callback supplied to Hub`});i=n;let o=this.listeners.get(e);return o||(o=[],this.listeners.set(e,o)),o.push({name:r,callback:i}),()=>{this._remove(e,i)}}_toListeners(e){let{channel:t,payload:n}=e,r=this.listeners.get(t);r&&r.forEach(r=>{l.debug(`Dispatching to ${t} with `,n);try{r.callback(e)}catch(e){l.error(e)}})}},d=new u(`__default__`),f=new u(`internal-hub`),p=()=>{if(typeof window==`object`&&typeof window.crypto==`object`)return window.crypto;if(typeof crypto==`object`)return crypto;throw new a({name:`MissingPolyfill`,message:"Cannot resolve the `crypto` function from the environment."})},m=()=>{if(typeof window<`u`&&typeof window.btoa==`function`)return window.btoa;if(typeof btoa==`function`)return btoa;throw new a({name:`Base64EncoderError`,message:"Cannot resolve the `btoa` function from the environment."})},h=()=>
1{if(typeof window<`u`&&typeof window.atob==`function`)return window.atob;if(typeof atob==`function`)return atob;throw new a({name:`Base64EncoderError`,message:"Cannot resolve the `atob` function from the environment."})},g={convert(e,t){let n=e;return t?.urlSafe&&(n=n.replace(/-/g,`+`).replace(/_/g,`/`)),h()(n)}},_;(function(e){e.AuthTokenConfigException=`AuthTokenConfigException`,e.AuthUserPoolAndIdentityPoolException=`AuthUserPoolAndIdentityPoolException`,e.AuthUserPoolException=`AuthUserPoolException`,e.InvalidIdentityPoolIdException=`InvalidIdentityPoolIdException`,e.OAuthNotConfigureException=`OAuthNotConfigureException`})(_||={});var v=s({[_.AuthTokenConfigException]:{message:`Auth Token Provider not configured.`,recoverySuggestion:`Make sure to call Amplify.configure in your app.`},[_.AuthUserPoolAndIdentityPoolException]:{message:`Auth UserPool or IdentityPool not configured.`,recoverySuggestion:`Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId.`},[_.AuthUserPoolException]:{message:`Auth UserPool not configured.`,recoverySuggestion:`Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId.`},[_.InvalidIdentityPoolIdException]:{message:`Invalid identity pool id provided.`,recoverySuggestion:`Make sure a valid identityPoolId is given in the config.`},[_.OAuthNotConfigureException]:{message:`oauth param not configured.`,recoverySuggestion:`Make sure to call Amplify.configure with oauth parameter in your app.`}});function y(e){let t=!0;t=e?!!e.userPoolId&&!!e.userPoolClientId:!1,v(t,_.AuthUserPoolException)}function ee(e){v(!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType,_.OAuthNotConfigureException)}function te(e){v(!!e?.identityPoolId,_.InvalidIdentityPoolIdException)}function b(e){let t=e.split(`.`);if(t.length!==3)throw Error(`Invalid token`);try{let n=t[1].replace(/-/g,`+`).replace(/_/g,`/`),r=decodeURIComponent(g.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 x=e=>{let t=Reflect.ownKeys(e);for(let n of t){let t=e[n];(t&&typeof t==`object`||typeof t==`function`)&&x(t)}return Object.freeze(e)},ne=new i(`parseAWSExports`),re={API_KEY:`apiKey`,AWS_IAM:`iam`,AMAZON_COGNITO_USER_POOLS:`userPool`,OPENID_CONNECT:`oidc`,NONE:`none`,AWS_LAMBDA:`lambda`,LAMBDA:`lambda`},S=(e={})=>{if(!Object.prototype.hasOwnProperty.call(e,`aws_project_region`))throw new a({name:`InvalidParameterException`,message:`Invalid config parameter.`,recoverySuggestion:"Ensure passing the config object imported from  `amplifyconfiguration.json`."});let{aws_appsync_apiKey:t,aws_appsync_authenticationType:n,aws_appsync_graphqlEndpoint:r,aws_appsync_region:i,aws_bots_config:o,aws_cognito_identity_pool_id:s,aws_cognito_sign_up_verification_method:c,aws_cognito_mfa_configuration:l,aws_cognito_mfa_types:u,aws_cognito_password_protection_settings:d,aws_cognito_verification_mechanisms:f,aws_cognito_signup_attributes:p,aws_cognito_social_providers:m,aws_cognito_username_attributes:h,aws_mandatory_sign_in:g,aws_mobile_analytics_app_id:_,aws_mobile_analytics_app_region:v,aws_user_files_s3_bucket:y,aws_user_files_s3_bucket_region:ee,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:te,aws_user_pools_id:b,aws_user_pools_web_client_id:x,geo:S,oauth:C,predictions:w,aws_cloud_logic_custom:T,Notifications:oe,modelIntrospection:E}=e,D={};_&&(D.Analytics={Pinpoint:{appId:_,region:v}});let{InAppMessaging:O,Push:k}=oe??{};if(O?.AWSPinpoint||k?.AWSPinpoint){if(O?.AWSPinpoint){let{appId:e,region:t}=O.AWSPinpoint;D.Notifications={InAppMessaging:{Pinpoint:{appId:e,region:t}}}}if(k?.AWSPinpoint){let{appId:e,region:t}=k.AWSPinpoint;D.Notifications={...D.Notifications,PushNotification:{Pinpoint:{appId:e,region:t}}}}}if(Array.isArray(o)&&(D.Interactions={LexV1:Object.fromEntries(o.map(e=>[e.name,e]))}),r){let e=re[n];e||ne.debug(`Invalid authentication type ${n}. Falling back to IAM.`),D.API={GraphQL:{endpoint:r,apiKey:t,region:i,defaultAuthMode:e??`iam`}},E&&(D.API.GraphQL.modelIntrospection=E)}let se=l?{status:l&&l.toLowerCase(),totpEnabled:u?.includes(`TOTP`)??!1,smsEnabled:u?.includes(`SMS`)??!1}
1:void 0,ce=d?{minLength:d.passwordPolicyMinLength,requireLowercase:d.passwordPolicyCharacters?.includes(`REQUIRES_LOWERCASE`)??!1,requireUppercase:d.passwordPolicyCharacters?.includes(`REQUIRES_UPPERCASE`)??!1,requireNumbers:d.passwordPolicyCharacters?.includes(`REQUIRES_NUMBERS`)??!1,requireSpecialCharacters:d.passwordPolicyCharacters?.includes(`REQUIRES_SYMBOLS`)??!1}:void 0,le=Array.from(new Set([...f??[],...p??[]])).reduce((e,t)=>({...e,[t.toLowerCase()]:{required:!0}}),{}),ue=h?.includes(`EMAIL`)??!1,de=h?.includes(`PHONE_NUMBER`)??!1;(s||b)&&(D.Auth={Cognito:{identityPoolId:s,allowGuestAccess:g!==`enable`,signUpVerificationMethod:c,userAttributes:le,userPoolClientId:x,userPoolId:b,mfa:se,passwordFormat:ce,loginWith:{username:!(ue||de),email:ue,phone:de}}});let fe=C?Object.keys(C).length>0:!1,pe=m?m.length>0:!1;if(D.Auth&&fe&&(D.Auth.Cognito.loginWith={...D.Auth.Cognito.loginWith,oauth:{...ie(C),...pe&&{providers:ae(m)}}}),y&&(D.Storage={S3:{bucket:y,region:ee,dangerouslyConnectToHttpEndpointForTesting:te}}),S){let{amazon_location_service:e}=S;D.Geo={LocationService:{maps:e.maps,geofenceCollections:e.geofenceCollections,searchIndices:e.search_indices,region:e.region}}}if(T&&(D.API={...D.API,REST:T.reduce((e,t)=>{let{name:n,endpoint:r,region:i,service:a}=t;return{...e,[n]:{endpoint:r,...a?{service:a}:void 0,...i?{region:i}:void 0}}},{})}),w){let{VoiceId:e}=w?.convert?.speechGenerator?.defaults??{};D.Predictions=e?{...w,convert:{...w.convert,speechGenerator:{...w.convert.speechGenerator,defaults:{voiceId:e}}}}:w}return D},C=e=>e?.split(`,`)??[],ie=({domain:e,scope:t,redirectSignIn:n,redirectSignOut:r,responseType:i})=>({domain:e,scopes:t,redirectSignIn:C(n),redirectSignOut:C(r),responseType:i}),ae=e=>e.map(e=>{let t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}),w=Symbol(`oauth-listener`),T=[];for(let e=0;e<256;++e)T.push((e+256).toString(16).slice(1));function oe(e,t=0){return(T[e[t+0]]+T[e[t+1]]+T[e[t+2]]+T[e[t+3]]+`-`+T[e[t+4]]+T[e[t+5]]+`-`+T[e[t+6]]+T[e[t+7]]+`-`+T[e[t+8]]+T[e[t+9]]+`-`+T[e[t+10]]+T[e[t+11]]+T[e[t+12]]+T[e[t+13]]+T[e[t+14]]+T[e[t+15]]).toLowerCase()}var E,D=new Uint8Array(16);function O(){if(!E){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);E=crypto.getRandomValues.bind(crypto)}return E(D)}var k={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function se(e,t,n){if(k.randomUUID&&!t&&!e)return k.randomUUID();e||={};let r=e.random??e.rng?.()??O();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return oe(r)}function ce(e){let{version:t}=e;return t?t.startsWith(`1`):!1}function le(e){if(!e)return;let{bucket_name:t,aws_region:n,buckets:r}=e;return{S3:{bucket:t,region:n,buckets:r&&Se(r)}}}function ue(e){if(!e)return;let{user_pool_id:t,user_pool_client_id:n,identity_pool_id:r,password_policy:i,mfa_configuration:a,mfa_methods:o,unauthenticated_identities_enabled:s,oauth:c,username_attributes:l,standard_required_attributes:u,groups:d,passwordless:f}=e,p={Cognito:{userPoolId:t,userPoolClientId:n,groups:d}};return r&&(p.Cognito={...p.Cognito,identityPoolId:r}),i&&(p.Cognito.passwordFormat={requireLowercase:i.require_lowercase,requireNumbers:i.require_numbers,requireUppercase:i.require_uppercase,requireSpecialCharacters:i.require_symbols,minLength:i.min_length??6}),a&&(p.Cognito.mfa={status:xe(a),smsEnabled:o?.includes(`SMS`),totpEnabled:o?.includes(`TOTP`)}),s&&(p.Cognito.allowGuestAccess=s),c&&(p.Cognito.loginWith={oauth:{domain:c.domain,redirectSignIn:c.redirect_sign_in_uri,redirectSignOut:c.redirect_sign_out_uri,responseType:c.response_type===`token`?`token`:`code`,scopes:c.scopes,providers:be(c.identity_providers)}}),l&&(p.Cognito.loginWith={...p.Cognito.loginWith,email:l.includes(`email`),phone:l.includes(`phone_number`),username:l.includes(`username`)}),u&&(p.Cognito.userAttributes=u.reduce((e,t)=>
1({...e,[t]:{required:!0}}),{})),f&&(p.Cognito.passwordless={emailOtpEnabled:f.email_otp_enabled,smsOtpEnabled:f.sms_otp_enabled,webAuthn:f.web_authn?{relyingPartyId:f.web_authn.relying_party_id,userVerification:f.web_authn.user_verification}:void 0,preferredChallenge:f.preferred_challenge}),p}function de(e){if(!e?.amazon_pinpoint)return;let{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}function fe(e){if(!e)return;let{aws_region:t,geofence_collections:n,maps:r,search_indices:i}=e;return{LocationService:{region:t,searchIndices:i,geofenceCollections:n,maps:r}}}function pe(e){if(!e)return;let{aws_region:t,default_authorization_type:n,url:r,api_key:i,model_introspection:a}=e;return{GraphQL:{endpoint:r,defaultAuthMode:ve(n),region:t,apiKey:i,modelIntrospection:a}}}function me(e){if(!e?.events)return;let{url:t,aws_region:n,api_key:r,default_authorization_type:i}=e.events;return{Events:{endpoint:t,defaultAuthMode:ve(i),region:n,apiKey:r}}}function he(e){if(!e)return;let{aws_region:t,channels:n,amazon_pinpoint_app_id:r,amazon_connect:i}=e,a=n??[],o=a.includes(`IN_APP_MESSAGING`),s=a.includes(`APNS`)||a.includes(`FCM`);if(!(o||s||i))return;let c={};o&&r&&t&&(c.InAppMessaging={Pinpoint:{appId:r,region:t}});let l={};return s&&r&&t&&(l.Pinpoint={appId:r,region:t}),i&&(l.CustomerProfiles={endpoint:i.endpoint,region:i.aws_region}),Object.keys(l).length>0&&(c.PushNotification=l),c}function ge(e){let t={};if(e.storage&&(t.Storage=le(e.storage)),e.auth&&(t.Auth=ue(e.auth)),e.analytics&&(t.Analytics=de(e.analytics)),e.geo&&(t.Geo=fe(e.geo)),e.data&&(t.API=pe(e.data)),e.custom){let n=me(e.custom);n&&`Events`in n&&(t.API={...t.API,...n})}return e.notifications&&(t.Notifications=he(e.notifications)),t}var _e={AMAZON_COGNITO_USER_POOLS:`userPool`,API_KEY:`apiKey`,AWS_IAM:`iam`,AWS_LAMBDA:`lambda`,OPENID_CONNECT:`oidc`};function ve(e){return _e[e]}var ye={GOOGLE:`Google`,LOGIN_WITH_AMAZON:`Amazon`,FACEBOOK:`Facebook`,SIGN_IN_WITH_APPLE:`Apple`};function be(e=[]){return e.reduce((e,t)=>(ye[t]!==void 0&&e.push(ye[t]),e),[])}function xe(e){return e===`OPTIONAL`?`optional`:e===`REQUIRED`?`on`:`off`}function Se(e){let t={};return e.forEach(({name:e,bucket_name:n,aws_region:r,paths:i})=>{if(e in t)throw Error(`Duplicate friendly name found: ${e}. Name must be unique.`);let a=i?Object.entries(i).reduce((e,[t,n])=>(n!==void 0&&(e[t]=n),e),{}):void 0;t[e]={bucketName:n,region:r,paths:a}}),t}var Ce=e=>Object.keys(e).some(e=>e.startsWith(`aws_`))?S(e):ce(e)?ge(e):e;function we(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})}function Te(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o=Object.create((typeof Iterator==`function`?Iterator:Object).prototype);return o.next=s(0),o.throw=s(1),o.return=s(2),typeof Symbol==`function`&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return c([e,t])}}function c(s){if(r)throw TypeError(`Generator is already executing.`);for(;o&&(o=0,s[0]&&(n=0)),n;)try{if(r=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return n.label++,{value:s[1],done:!1};case 5:n.label++,i=s[1],s=[0];continue;case 7:s=n.ops.pop(),n.trys.pop();continue;default:if(a=n.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){n=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){n.label=s[1];break}if(s[0]===6&&n.label<a[1]){n.label=a[1],a=s;break}if(a&&n.label<a[2]){n.label=a[2],n.ops.push(s);break}a[2]&&n.ops.pop(),n.trys.pop();continue}s=t.call(e,n)}catch(e){s=[6,e],i=0}finally{r=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var Ee=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298]),De=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],Oe=2**53-1,A=function(){function e(){this.state=Int32Array.from(De),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error(`Attempted to update an already finished hash.`);var t=0,n=e.byteLength;if(this.bytesHashed+=n,this.bytesHashed*8>Oe)throw Error(`Cannot hash more than 2^53 - 1 bits`);for(;n>0;)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===64&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=this.bytesHashed*8,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%64>=56){for(var r=this.bufferLength;r<64;r++)t.setUint8(r,0);this.hashBuffer(),this.bufferLength=0}for(var r=this.bufferLength;r<56;r++)t.setUint8(r,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(32),r=0;r<8;r++)i[r*4]=this.state[r]>>>24&255,i[r*4+1]=this.state[r]>>>16&255,i[r*4+2]=this.state[r]>>>8&255,i[r*4+3]=this.state[r]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,r=n[0],i=n[1],a=n[2],o=n[3],s=n[4],c=n[5],l=n[6],u=n[7],d=0;d<64;d++){if(d<16)this.temp[d]=(t[d*4]&255)<<24|(t[d*4+1]&255)<<16|(t[d*4+2]&255)<<8|t[d*4+3]&255;else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10;f=this.temp[d-15];var m=(f>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(m+this.temp[d-16]|0)}var h=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&c^~s&l)|0)+(u+(Ee[d]+this.temp[d]|0)|0)|0,g=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&a^i&a)|0;u=l,l=c,c=s,s=o+h|0,o=a,a=i,i=r,r=h+g|0}n[0]+=r,n[1]+=i,n[2]+=a,n[3]+=o,n[4]+=s,n[5]+=c,n[6]+=l,n[7]+=u},e}(),ke=typeof Buffer<`u`&&Buffer.from?function(e){return Buffer.from(e,`utf8`)}:e=>new TextEncoder().encode(e);function Ae(e){return e instanceof Uint8Array?e:typeof e==`string`?ke(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function je(e){return typeof e==`string`?e.length===0:e.byteLength===0}var Me=function(){function e(e){this.secret=e,this.hash=new A,this.reset()}return e.prototype.update=function(e){if(!(je(e)||this.error))try{this.hash.update(Ae(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return we(this,void 0,void 0,function(){return Te(this,function(e){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new A,this.secret){this.outer=new A;var e=Ne(this.secret),t=new Uint8Array(64);t.set(e);for(var n=0;n<64;n++)e[n]^=54,t[n]^=92;this.hash.update(e),this.outer.update(t);for(var n=0;n<e.byteLength;n++)e[n]=0}},e}();function Ne(e){var t=Ae(e);if(t.byteLength>64){var n=new A;n.update(t),t=n.digest()}var r=new Uint8Array(64);return r.set(t),r}var Pe={},Fe={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Pe[e]=t,Fe[t]=e}function Ie(e){let t=``;for(let n=0;n<e.byteLength;n++)t+=Pe[e[n]];return t}var j;(function(e){e.WebUnknown=`0`,e.React=`1`,e.NextJs=`2`,e.Angular=`3`,e.VueJs=`4`,e.Nuxt=`5`,e.Svelte=`6`,e.ServerSideUnknown=`100`,e.ReactSSR=`101`,e.NextJsSSR=`102`,e.AngularSSR=`103`,e.VueJsSSR=`104`,e.NuxtSSR=`105`,e.SvelteSSR=`106`,e.ReactNative=`201`,e.Expo=`202`})(j||={});var Le;(function(e){e.AI=`ai`,e.API=`api`,e.Auth=`auth`,e.Analytics=`analytics`,e.DataStore=`datastore`,e.Geo=`geo`,e.InAppMessaging=`inappmessaging`,e.Interactions=`interactions`,e.Predictions=`predictions`,e.PubSub=`pubsub`,e.PushNotification=`pushnotification`,e.Storage=`storage`})(Le||={});var Re;(function(e){e.CreateConversation=`1`,e.GetConversation=`2`,e.ListConversations=`3`,e.DeleteConversation=`4`,e.SendMessage=`5`,e.ListMessages=`6`,e.OnMessage=`7`,e.Generation=`8`,e.UpdateConversation=`9`})(Re||={});var ze;(function(e){e.Record=`1`,e.IdentifyUser=`2`})(ze||={});var Be;(function(e){e.GraphQl=`1`,e.Get=`2`,e.Post=`3`,e.Put=`4`,e.Patch=`5`,e.Del=`6`,e.Head=`7`})(Be||={});var Ve;(function(e){e.SignUp=`1`,e.ConfirmSignUp=`2`,e.ResendSignUpCode=`3`,e.SignIn=`4`,e.FetchMFAPreference=`6`,e.UpdateMFAPreference=`7`,e.SetUpTOTP=`10`,e.VerifyTOTPSetup=`11`,e.ConfirmSignIn=`12`,e.DeleteUserAttributes=`15`,e.DeleteUser=`16`,e.UpdateUserAttributes=`17`,e.FetchUserAttributes=`18`,e.ConfirmUserAttribute=`22`,e.SignOut=`26`,e.UpdatePassword=`27`,e.ResetPassword=`28`,e.ConfirmResetPassword=`29`,e.FederatedSignIn=`30`,e.RememberDevice=`32`,e.ForgetDevice=`33`,e.FetchDevices=`34`,e.SendUserAttributeVerificationCode=`35`,e.SignInWithRedirect=`36`,e.StartWebAuthnRegistration=`37`,e.CompleteWebAuthnRegistration=`38`,e.ListWebAuthnCredentials=`39`,e.DeleteWebAuthnCredential=`40`})(Ve||={});var He;(function(e){e.Subscribe=`1`,e.GraphQl=`2`})(He||={});var Ue;(function(e){e.SearchByText=`0`,e.SearchByCoordinates=`1`,e.SearchForSuggestions=`2`,e.SearchByPlaceId=`3`,e.SaveGeofences=`4`,e.GetGeofence=`5`,e.ListGeofences=`6`,e.DeleteGeofences=`7`})(Ue||={});var We;(function(e){e.SyncMessages=`1`,e.IdentifyUser=`2`,e.NotifyMessageInteraction=`3`})(We||={});var Ge;(function(e){e.None=`0`})(Ge||={});var Ke;(function(e){e.Convert=`1`,e.Identify=`2`,e.Interpret=`3`})(Ke||={});var qe;(function(e){e.Subscribe=`1`})(qe||={});var Je;(function(e){e.InitializePushNotifications=`1`,e.IdentifyUser=`2`,e.RegisterDevice=`3`,e.RemoveDevice=`4`})(Je||={});var Ye;(function(e){e.UploadData=`1`,e.DownloadData=`2`,e.List=`3`,e.Copy=`4`,e.Remove=`5`,e.GetProperties=`6`,e.GetUrl=`7`,e.GetDataAccess=`8`,e.ListCallerAccessGrants=`9`})(Ye||={});var Xe=`6.20.0`,M=()=>typeof global<`u`,N=()=>typeof window<`u`,Ze=()=>typeof document<`u`,P=()=>typeof process<`u`,F=(e,t)=>!!Object.keys(e).find(e=>e.startsWith(t));function Qe(){let e=e=>e.startsWith(`_react`)||e.startsWith(`__react`);return Ze()&&Array.from(document.querySelectorAll(`[id]`)).some(t=>Object.keys(t).find(e))}function $e(){return P()&&!!Object.keys({}).find(e=>e.includes(`react`))}function et(){return N()&&F(window,`__VUE`)}function tt(){return M()&&F(global,`__VUE`)}function nt(){return N()&&F(window,`__SVELTE`)}function rt(){return P()&&!!Object.keys({}).find(e=>e.includes(`svelte`))}function it(){return N()&&window.next&&typeof window.next==`object`}function at(){return M()&&(F(global,`__next`)||F(global,`__NEXT`))}function ot(){return N()&&(window.__NUXT__!==void 0||window.$nuxt!==void 0)}function st(){return M()&&global.__NUXT_PATHS__!==void 0}function ct(){let e=!!(Ze()&&document.querySelector(`[ng-version]`)),t=!!(N()&&window.ng!==void 0);return e||t}function lt(){return P()&&{}.npm_lifecycle_script?.startsWith(`ng `)||!1}function ut(){return typeof navigator<`u`&&navigator.product!==void 0&&navigator.product===`ReactNative`}function dt(){return M()&&global.expo!==void 0}function ft(){return N()}var pt=[{platform:j.Expo,detectionMethod:dt},{platform:j.ReactNative,detectionMethod:ut},{platform:j.NextJs,detectionMethod:it},{platform:j.Nuxt,detectionMethod:ot},{platform:j.Angular,detectionMethod:ct},{platform:j.React,detectionMethod:Qe},{platform:j.VueJs,detectionMethod:et},{platform:j.Svelte,detectionMethod:nt},{platform:j.WebUnknown,detectionMethod:ft},{platform:j.NextJsSSR,detectionMethod:at},{platform:j.NuxtSSR,detectionMethod:st},{platform:j.ReactSSR,detectionMethod:$e},{platform:j.VueJsSSR,detectionMethod:tt},{platform:j.AngularSSR,detectionMethod:lt},{platform:j.SvelteSSR,detectionMethod:rt}];function mt(){return pt.find(e=>e.detectionMethod())?.platform||j.ServerSideUnknown}var I,L=[],R=!1,ht=10,gt=10,_t=1e3,z=()=>{if(!I){if(I=mt(),R)for(;L.length;)L.pop()?.();
1else L.forEach(e=>{e()});bt(j.ServerSideUnknown,ht),bt(j.WebUnknown,gt)}return I},vt=e=>{R||L.push(e)};function yt(){I=void 0}function bt(e,t){I===e&&!R&&setTimeout(()=>{yt(),R=!0,setTimeout(z,_t)},t)}var B={},xt=e=>{B[e.category]=e.apis.reduce((t,n)=>({...t,[n]:{refCount:t[n]?.refCount?t[n].refCount+1:1,additionalDetails:e.additionalDetails}}),B[e.category]??{});let t=!1;return()=>{t||(t=!0,e.apis.forEach(t=>{let n=B[e.category][t].refCount;n>1?B[e.category][t].refCount=n-1:(delete B[e.category][t],Object.keys(B[e.category]).length||delete B[e.category])}))}},St=(e,t)=>B[e]?.[t]?.additionalDetails,Ct=`aws-amplify`,wt=e=>e.replace(/\+.*/,``);new class{constructor(){this.userAgent=`${Ct}/${wt(Xe)}`}get framework(){return z()}get isReactNative(){return this.framework===j.ReactNative||this.framework===j.Expo}observeFrameworkChanges(e){vt(e)}};var Tt=({category:e,action:t}={})=>{let n=[[Ct,wt(Xe)]];if(e&&n.push([e,t]),n.push([`framework`,z()]),e&&t){let r=St(e,t);r&&r.forEach(e=>{n.push(e)})}return n},Et=e=>Tt(e).map(([e,t])=>e&&t?`${e}/${t}`:e).join(` `),Dt=()=>typeof window<`u`&&window.document!==void 0,Ot=new i(`Auth`),kt=class{configure(e,t){this.authConfig=e,this.authOptions=t,e&&e.Cognito?.userPoolEndpoint&&Ot.warn(At(`Amazon Cognito User Pool`)),e&&e.Cognito?.identityPoolEndpoint&&Ot.warn(At(`Amazon Cognito Identity Pool`))}async fetchAuthSession(e={}){let t,n,r=await this.getTokens(e);return r?(n=r.accessToken?.payload?.sub,t=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:r,authenticated:!0,forceRefresh:e.forceRefresh})):t=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:e.forceRefresh}),{tokens:r,credentials:t?.credentials,identityId:t?.identityId,userSub:n}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(e){return await this.authOptions?.tokenProvider?.getTokens(e)??void 0}},At=e=>`You are using a custom Amazon ${e} endpoint, ensure the endpoint is correct.`,jt=new class{constructor(){this.oAuthListener=void 0,this.isConfigured=!1,this.resourcesConfig={},this.libraryOptions={},this.Auth=new kt}configure(e,t){let n=Ce(e);this.resourcesConfig=n,t&&(this.libraryOptions=t),this.resourcesConfig=x(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),(this.resourcesConfig.Analytics?.Pinpoint||this.resourcesConfig.Notifications?.InAppMessaging?.Pinpoint||this.resourcesConfig.Notifications?.PushNotification?.Pinpoint)&&console.warn(`AWS will end support for Amazon Pinpoint on October 30, 2026. The guidance is to use AWS End User Messaging for push notifications and SMS, Amazon Simple Email Service for sending emails, Amazon Connect for campaigns, journeys, endpoints, and engagement analytics. Pinpoint recommends Amazon Kinesis for event collection and mobile analytics.`),d.dispatch(`core`,{event:`configure`,data:this.resourcesConfig},`Configure`,c),this.notifyOAuthListener(),this.isConfigured=!0}getConfig(){return this.isConfigured||console.warn(`Amplify has not been configured. Please call Amplify.configure() before using this service.`),this.resourcesConfig}[w](e){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?e(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=e}notifyOAuthListener(){!this.resourcesConfig.Auth?.Cognito.loginWith?.oauth||!this.oAuthListener||(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}},V=e=>{let{headers:t,statusCode:n}=e;return{...Mt(e)?e.$metadata:{},httpStatusCode:n,requestId:t[`x-amzn-requestid`]??t[`x-amzn-request-id`]??t[`x-amz-request-id`],extendedRequestId:t[`x-amz-id-2`],cfId:t[`x-amz-cf-id`]}},Mt=e=>typeof e?.$metadata==`object`,H=async e=>{if(!e||e.statusCode<300)return;let t=await U(e),n=(e=>{let[t]=e.toString().split(/[,:]+/);return t.includes(`#`)?t.split(`#`)[1]:t})(e.headers[`x-amzn-errortype`]??t.code??t.__type??`UnknownError`),r=t.message??t.Message??`Unknown error`,i=Error(r);return Object.assign(i,{name:n,$metadata:V(e)})},U=async e=>{if(!e.body)throw Error(`Missing response payload`);let t=await e.body.json();return Object.assign(t,{$metadata:V(e)})},Nt=(e,t,n,r)=>async(i,a)=>{let o={...r,...i};return n(await e(await t(a,await o.endpointResolver(o,a)),{...o}))},Pt=3e5;function Ft(e=Pt){return t=>{let n=2**t*100+100*Math.random();return n>e?!1:n}}var It=`amz-sdk-invocation-id`,Lt=`amz-sdk-request`,Rt=3e5,zt=e=>{let t=Ft(Rt)(e);return t===!1?Rt:t},Bt=[`AuthFailure`,`InvalidSignatureException`,`RequestExpired`,`RequestInTheFuture`,`RequestTimeTooSkewed`,`SignatureDoesNotMatch`,`BadRequestException`],Vt=e=>!!e&&Bt.includes(e),Ht=e=>async(t,n)=>{let r=n??await e(t)??void 0,i=r?.code||r?.name,a=t?.statusCode;return{retryable:Kt(n)||Gt(a,i)||Vt(i)||qt(a,i)}},Ut=[`BandwidthLimitExceeded`,`EC2ThrottledException`,`LimitExceededException`,`PriorRequestNotComplete`,`ProvisionedThroughputExceededException`,`RequestLimitExceeded`,`RequestThrottled`,`RequestThrottledException`,`SlowDown`,`ThrottledException`,`Throttling`,`ThrottlingException`,`TooManyRequestsException`],Wt=[`TimeoutError`,`RequestTimeout`,`RequestTimeoutException`],Gt
1=(e,t)=>e===429||!!t&&Ut.includes(t),Kt=e=>[o.NetworkError,`ERR_NETWORK`].includes(e?.name),qt=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&Wt.includes(t),Jt=({maxAttempts:e=3,retryDecider:t,computeDelay:n,abortSignal:r})=>{if(e<1)throw Error(`maxAttempts must be greater than 0`);return(i,a)=>async function(o){let s,c=a.attemptsCount??0,l,u=()=>{if(l)return Xt(l,c),l;throw Xt(s,c),s};for(;!r?.aborted&&c<e;){try{l=await i(o),s=void 0}catch(e){s=e,l=void 0}c=(a.attemptsCount??0)>c?a.attemptsCount??0:c+1,a.attemptsCount=c;let{isCredentialsExpiredError:d,retryable:f}=await t(l,s,a);if(f){a.isCredentialsExpired=!!d,!r?.aborted&&c<e&&await Yt(n(c),r);continue}return u()}if(r?.aborted)throw Error(`Request aborted.`);return u()}},Yt=(e,t)=>{if(t?.aborted)return Promise.resolve();let n,r,i=new Promise(t=>{r=t,n=setTimeout(t,e)});return t?.addEventListener(`abort`,function e(i){clearTimeout(n),t?.removeEventListener(`abort`,e),r()}),i},Xt=(e,t)=>{Object.prototype.toString.call(e)===`[object Object]`&&(e.$metadata={...e.$metadata??{},attempts:t})},Zt=se,Qt=()=>e=>async function(t){return t.headers[`amz-sdk-invocation-id`]||(t.headers[It]=Zt()),e(t)},$t=({maxAttempts:e=3})=>(t,n)=>async function(r){let i=n.attemptsCount??0;return r.headers[Lt]=`attempt=${i+1}; max=${e}`,t(r)},en=({userAgentHeader:e=`x-amz-user-agent`,userAgentValue:t=``})=>n=>async function(r){if(t.trim().length===0)return await n(r);{let i=e.toLowerCase();return r.headers[i]=r.headers[i]?`${r.headers[i]} ${t}`:t,await n(r)}},W=(e,t)=>(n,r)=>{let i={},a=t=>e(t,r);for(let e=t.length-1;e>=0;e--){let n=t[e];a=n(r)(a,i)}return a(n)},G=e=>{let t;return()=>(t||=e(),t)},tn=e=>![`HEAD`,`GET`].includes(e.toUpperCase()),nn=W(async({url:e,method:t,headers:n,body:r},{abortSignal:i,cache:s,withCrossDomainCredentials:c})=>{let l;try{l=await fetch(e,{method:t,headers:n,body:tn(t)?r:void 0,signal:i,cache:s,credentials:c?`include`:`same-origin`})}catch(e){throw e instanceof TypeError?new a({name:o.NetworkError,message:`A network error has occurred.`,underlyingError:e}):e}let u={};l.headers?.forEach((e,t)=>{u[t.toLowerCase()]=e});let d={statusCode:l.status,headers:u,body:null},f=Object.assign(l.body??{},{text:G(()=>l.text()),blob:G(()=>l.blob()),json:G(()=>l.json())});return{...d,body:f}},[en,Qt,Jt,$t]),rn={id:`aws`,outputs:{dnsSuffix:`amazonaws.com`},regionRegex:`^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$`,regions:[`aws-global`]},an={partitions:[rn,{id:`aws-cn`,outputs:{dnsSuffix:`amazonaws.com.cn`},regionRegex:`^cn\\-\\w+\\-\\d+$`,regions:[`aws-cn-global`]}]},on=e=>{let{partitions:t}=an;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 rn.outputs.dnsSuffix},K=URL,sn=URLSearchParams,q=class extends a{constructor(){super({name:o.PlatformNotSupported,message:`Function not supported on current platform`})}},cn=class{constructor(e){this.storage=e}async setItem(e,t){if(!this.storage)throw new q;this.storage.setItem(e,t)}async getItem(e){if(!this.storage)throw new q;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new q;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new q;this.storage.clear()}},ln=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()}},un=new i(`CoreStorageUtils`),dn=()=>{try{if(typeof window<`u`&&window.localStorage)return window.localStorage}catch{un.info(`localStorage not found. InMemoryStorage is used as a fallback.`)}return new ln},fn=()=>{try{if(typeof window<`u`&&window.sessionStorage)return window.sessionStorage.getItem(`test`),window.sessionStorage;throw Error(`sessionStorage is not defined`)}catch{return un.info(`sessionStorage not found. InMemoryStorage is used as a fallback.`),new ln}},pn=class extends cn{constructor(){super(dn())}},mn=class extends cn{constructor(){super(fn())}},hn=class{constructor(e){this._storage=e}get storage(){if(!this._storage)throw new q;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()}},gn=class extends hn{constructor(){super(fn())}},_n=new pn;new mn;var vn=new gn;new cn(new ln);var yn=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 bn({expiresAt:e,clockDrift:t,tolerance:n=5e3}){return Date.now()+t+n>e}var J=class e extends a{constructor(t){super(t),this.constructor=e,Object.setPrototypeOf(this,e.prototype)}};function xn(e){let t=e?.split(`_`)[0];if(!e||e.indexOf(`_`)<0||!t||typeof t!=`string`)throw new J({name:`InvalidUserPoolId`,message:`Invalid user pool id provided.`});return t}function Sn(e){if(!e||!e.includes(`:`))throw new J({name:`InvalidIdentityPoolIdException`,message:`Invalid identity pool id provided.`,recoverySuggestion:`Make sure a valid identityPoolId is given in the config.`});return e.split(`:`)[0]}var Y=`UserUnAuthenticatedException`,Cn=`UserAlreadyAuthenticatedException`,wn=`DeviceMetadataNotFoundException`,Tn=`AutoSignInException`,En=`InvalidRedirectException`,Dn=`InvalidAppSchemeException`,On=`InvalidPreferredRedirectUrlException`,kn=new J({
1name:En,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 J({name:Dn,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 An=new J({name:On,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.`}),jn=new J({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.`}),Mn=`OAuthSignOutException`,Nn=`TokenRefreshException`,Pn=`UnexpectedSignInInterruptionException`;function Fn(e){if(!e||!e.accessToken)throw new J({name:Y,message:`User needs to be authenticated to call this API.`,recoverySuggestion:`Sign in before calling this API again.`})}function In(e){if(!e||!e.idToken)throw new J({name:Y,message:`User needs to be authenticated to call this API.`,recoverySuggestion:`Sign in before calling this API again.`})}var Ln=new J({name:Nn,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' }`}),Rn=new J({name:Y,message:`User needs to be authenticated to call this API.`,recoverySuggestion:`Sign in before calling this API again.`});function zn(e){if(Wn(e))throw Ln;if(!Un(e))throw Rn}function Bn(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new J({name:wn,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 Vn={inflightOAuth:`inflightOAuth`,oauthSignIn:`oauthSignIn`,oauthPKCE:`oauthPKCE`,oauthState:`oauthState`};function Hn(e){return e?.accessToken||e?.idToken}function Un(e){return Hn(e)&&e?.refreshToken}function Wn(e){return Hn(e)&&!e?.refreshToken}var Gn=e=>(t,n)=>qn(n,Kn(e),JSON.stringify(t)),Kn=e=>({"content-type":`application/x-amz-json-1.1`,"x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),qn=({url:e},t,n)=>({headers:t,url:e,body:n,method:`POST`});function Jn(e){if(!e||e.name===`Error`||e instanceof TypeError)throw new J({name:o.Unknown,message:`An unknown error has occurred.`,underlyingError:e})}var Yn=()=>async e=>{if(e.statusCode>=300){let t=await H(e);throw Jn(t),new J({name:t.name,message:t.message,metadata:t.$metadata})}return U(e)},Xn=W(nn,[()=>(e,t)=>async function(t){return t.headers={...t.headers,"cache-control":`no-store`,...await jt.libraryOptions?.Auth?.headers?.()},e(t)}]),Zn=`cognito-idp`,Qn={service:Zn,retryDecider:Ht(H),computeDelay:zt,get userAgentValue(){return Et()},cache:`no-store`},$n=({region:e})=>({url:new K(`https://${Zn}.${e}.${on(e)}`)}),er=({endpointOverride:e})=>t=>e?{url:new K(e)}:$n(t),tr=e=>Nt(Xn,Gn(`GetTokensFromRefreshToken`),Yn(),{...Qn,...e}),nr=yn(async({tokens:e,authConfig:t,username:n,clientMetadata:r})=>{y(t?.Cognito);let{userPoolId:i,userPoolClientId:a,userPoolEndpoint:o}=t.Cognito,s=xn(i);zn(e);let{AuthenticationResult:c}=await tr({endpointResolver:er({endpointOverride:o})})({region:s},{ClientId:a,RefreshToken:e.refreshToken,DeviceKey:e.deviceMetadata?.deviceKey,ClientMetadata:r}),l=b(c?.AccessToken??``),u=c?.IdToken?b(c.IdToken):void 0,{iat:d}=l.payload;if(!d)throw new J({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}}),rr={accessToken:`accessToken`,idToken:`idToken`,oidcProvider:`oidcProvider`,clockDrift:`clockDrift`,refreshToken:`refreshToken`,deviceKey:`deviceKey`,randomPasswordKey:`randomPasswordKey`,deviceGroupKey:`deviceGroupKey`,signInDetail
3s:`signInDetails`,oauthMetadata:`oauthMetadata`},X;(function(e){e.InvalidAuthTokens=`InvalidAuthTokens`})(X||={});var ir=s({[X.InvalidAuthTokens]:{message:`Invalid tokens.`,recoverySuggestion:`Make sure the tokens are valid.`}}),ar=`CognitoIdentityServiceProvider`,or=class{getKeyValueStorage(){if(!this.keyValueStorage)throw new J({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 J({name:`NoSessionFoundException`,message:`Auth session was not found. Make sure to call signIn.`});let n=b(t),r=await this.getKeyValueStorage().getItem(e.idToken),i=r?b(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){ir(e!==void 0,X.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){y(this.authConfig?.Cognito);let t=e??await this.getLastAuthUser();return sr(ar,`${this.authConfig.Cognito.userPoolClientId}.${t}`)}getLastAuthUserKey(){return y(this.authConfig?.Cognito),`${ar}.${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)}},sr=(e,t)=>cr(rr)(`${e}`,t);function cr(e){let t=Object.values({...e});return(e,n)=>t.reduce((t,r)=>({...t,[r]:`${e}.${n}.${r}`}),{})}var lr=`amplify-signin-with-hostedUI`,Z=`CognitoIdentityServiceProvider`,ur=class{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){y(this.cognitoConfig);let e=Q(Z,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){y(this.cognitoConfig);let e=Q(Z,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(lr),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){y(this.cognitoConfig);let e=Q(Z,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){y(this.cognitoConfig);let t=Q(Z,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthState,e)}loadPKCE(){y(this.cognitoConfig);let e=Q(Z,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){y(this.cognitoConfig);let t=Q(Z,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){y(this.cognitoConfig);let e=Q(Z,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(e.inflightOAuth)===`true`}async storeOAuthInFlight(e){y(this.cognitoConfig);let t=Q(Z,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(t.inflightOAuth,`${e}`)}async loadOAuthSignIn(){y(this.cognitoConfig);let e=Q(Z,this.cognitoConfig.userPoolClientId),t=await this.keyValueStorage.getItem(lr),[n,r]=(await this.keyValueStorage.getItem(e.oauthSignIn))?.split(`,`)??[];return{isOAuthSignIn:n===`true`||t===`true`,preferPrivateSession:r===`true`}}async storeOAuthSignIn(e,t=!1){y(this.cognitoConfig);let n=Q(Z,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(n.oauthSignIn,`${e},${t}`)}},Q=(e,t)=>cr(Vn)(e,t),dr=new ur(_n),$=[],fr=e=>{$.push(e)},pr=()=>{for(;$.length;)$.pop()?.()},mr=class{constructor(){this.waitForInflightOAuth=Dt()?async()=>
3{if(await dr.loadOAuthInFlight())return this.inflightPromise||=new Promise((e,t)=>{fr(e)}),this.inflightPromise}:async()=>{}}setAuthConfig(e){dr.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new J({name:`EmptyTokenStoreException`,message:`TokenStore not set`});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new J({name:`EmptyTokenRefresherException`,message:`TokenRefresher not set`});return this.tokenRefresher}setClientMetadataProvider(e){this.clientMetadataProvider=e}async getTokens(e){let t;try{y(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&&bn({expiresAt:(t.idToken?.payload?.exp??0)*1e3,clockDrift:t.clockDrift??0}),i=bn({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:t,clientMetadata:n}){try{let{signInDetails:r}=e,i=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:t,clientMetadata:n});return i.signInDetails=r,await this.setTokens({tokens:i}),d.dispatch(`auth`,{event:`tokenRefresh`},`Auth`,c),i}catch(e){return this.handleErrors(e)}}handleErrors(e){if(Jn(e),this.isAuthenticationError(e)&&this.clearTokens(),d.dispatch(`auth`,{event:`tokenRefresh_failure`,data:{error:e}},`Auth`,c),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()}},hr=new class{constructor(){this.authTokenStore=new or,this.authTokenStore.setKeyValueStorage(_n),this.tokenOrchestrator=new mr,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(nr)}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:gr}=hr;export{Ue as $,K as A,Ht as B,An as C,J as D,xn as E,W as F,V as G,Nt as H,en as I,Et as J,jt as K,$t as L,on as M,nn as N,_n as O,G as P,Le as Q,Qt as R,jn as S,Sn as T,U,zt as V,H as W,Re as X,xt as Y,Ve as Z,Tn as _,o as _t,ur as a,w as at,Cn as b,e as bt,Qn as c,y as ct,Jn as d,m as dt,We as et,Gn as f,p as ft,In as g,s as gt,Bn as h,f as ht,dr as i,Ce as it,sn as j,vn as k,Xn as l,b as lt,zn as m,d as mt,gr as n,Ie as nt,cr as o,te as ot,Fn as p,c as pt,Dt as q,pr as r,Me as rt,er as s,ee as st,hr as t,Ye as tt,Yn as u,g as ut,Mn as v,a as vt,kn as w,Y as x,Pn as y,i as yt,Jt as z};

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.