(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-759ecdb2"],{"0103":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n("9ab4"),o=n("5b94"),i=n("e076"),a=n("5d63"),s=function(){function e(e){if(this.hash=new i.RawSha256,e){this.outer=new i.RawSha256;var t=c(e),n=new Uint8Array(o.BLOCK_SIZE);n.set(t);for(var r=0;ro.BLOCK_SIZE){var n=new i.RawSha256;n.update(t),t=n.digest()}var r=new Uint8Array(o.BLOCK_SIZE);return r.set(t),r}function u(e){return"string"===typeof e?0===e.length:0===e.byteLength}function d(e){return"string"===typeof e?a.fromUtf8(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},1833:function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(e){return"function"===typeof ArrayBuffer&&e instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(e)}},2415:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2446:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},"2d52":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},"311b":function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n("9ab4"),o=n("44e3"),i=n("7807"),a=n("3492"),s="IdentityIds",c=function(){function e(e){void 0===e&&(e="aws:cognito-identity-ids"),this.dbName=e}return e.prototype.getItem=function(e){return this.withObjectStore("readonly",(function(t){var n=t.get(e);return new Promise((function(e){n.onerror=function(){return e(null)},n.onsuccess=function(){return e(n.result?n.result.value:null)}}))})).catch((function(){return null}))},e.prototype.removeItem=function(e){return this.withObjectStore("readwrite",(function(t){var n=t.delete(e);return new Promise((function(e,t){n.onerror=function(){return t(n.error)},n.onsuccess=function(){return e()}}))}))},e.prototype.setItem=function(e,t){return this.withObjectStore("readwrite",(function(n){var r=n.put({id:e,value:t});return new Promise((function(e,t){r.onerror=function(){return t(r.error)},r.onsuccess=function(){return e()}}))}))},e.prototype.getDb=function(){var e=self.indexedDB.open(this.dbName,1);return new Promise((function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)},e.onblocked=function(){n(new Error("Unable to access DB"))},e.onupgradeneeded=function(){var t=e.result;t.onerror=function(){n(new Error("Failed to create object store"))},t.createObjectStore(s,{keyPath:"id"})}}))},e.prototype.withObjectStore=function(e,t){return this.getDb().then((function(n){var r=n.transaction(s,e);return r.oncomplete=function(){return n.close()},new Promise((function(e,n){r.onerror=function(){return n(r.error)},e(t(r.objectStore(s)))})).catch((function(e){throw n.close(),e}))}))},e}(),u=function(){function e(e){void 0===e&&(e={}),this.store=e}return e.prototype.getItem=function(e){return e in this.store?this.store[e]:null},e.prototype.removeItem=function(e){delete this.store[e]},e.prototype.setItem=function(e,t){this.store[e]=t},e}(),d=new u;function f(){return"object"===typeof self&&self.indexedDB?new c:"object"===typeof window&&window.localStorage?window.localStorage:d}var l=n("3caf");function p(e){var t=this,n=e.accountId,i=e.cache,s=void 0===i?f():i,c=e.client,u=e.customRoleArn,d=e.identityPoolId,p=e.logins,h=e.userIdentifier,b=void 0===h?p&&0!==Object.keys(p).length?void 0:"ANONYMOUS":h,y=b?"aws:cognito-identity-credentials:"+d+":"+b:void 0,m=function(){return Object(r["__awaiter"])(t,void 0,void 0,(function(){var e,t,i,f,h,b,g,w,O;return Object(r["__generator"])(this,(function(r){switch(r.label){case 0:return t=y,t?[4,s.getItem(y)]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return e=t,e?[3,7]:(b=(h=c).send,g=o["a"].bind,O={AccountId:n,IdentityPoolId:d},p?[4,Object(l["a"])(p)]:[3,4]);case 3:return w=r.sent(),[3,5];case 4:w=void 0,r.label=5;case 5:return[4,b.apply(h,[new(g.apply(o["a"],[void 0,(O.Logins=w,O)]))])];case 6:i=r.sent().IdentityId,f=void 0===i?v():i,e=f,y&&Promise.resolve(s.setItem(y,e)).catch((function(){})),r.label=7;case 7:return m=Object(a["a"])({client:c,customRoleArn:u,logins:p,identityId:e}),[2,m()]}}))}))};return function(){return m().catch((function(e){return Object(r["__awaiter"])(t,void 0,void 0,(function(){return Object(r["__generator"])(this,(function(t){throw y&&Promise.resolve(s.removeItem(y)).catch((function(){})),e}))}))}))}}function v(){throw new i["a"]("Response from Amazon Cognito contained no identity ID")}},3492:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n("9ab4"),o=n("822f"),i=n("7f29"),a=n("ed04"),s=n("991b"),c=n("108d"),u=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(o["c"])(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(s["a"])(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.logger,a="CognitoIdentityClient",c="GetCredentialsForIdentityCommand",u={logger:o,clientName:a,commandName:c,inputFilterSensitiveLog:i["a"].filterSensitiveLog,outputFilterSensitiveLog:i["b"].filterSensitiveLog},d=t.requestHandler;return r.resolve((function(e){return d.handle(e.request,n||{})}),u)},t.prototype.serialize=function(e,t){return Object(a["c"])(e,t)},t.prototype.deserialize=function(e,t){return Object(a["a"])(e,t)},t}(c["b"]),d=n("7807"),f=n("3caf");function l(e){var t=this;return function(){return Object(r["__awaiter"])(t,void 0,void 0,(function(){var t,n,o,i,a,s,c,d,l,b,y,m,g;return Object(r["__generator"])(this,(function(r){switch(r.label){case 0:return b=(l=e.client).send,y=u.bind,g={CustomRoleArn:e.customRoleArn,IdentityId:e.identityId},e.logins?[4,Object(f["a"])(e.logins)]:[3,2];case 1:return m=r.sent(),[3,3];case 2:m=void 0,r.label=3;case 3:return[4,b.apply(l,[new(y.apply(u,[void 0,(g.Logins=m,g)]))])];case 4:return t=r.sent().Credentials,n=void 0===t?v():t,o=n.AccessKeyId,i=void 0===o?p():o,a=n.Expiration,s=n.SecretKey,c=void 0===s?h():s,d=n.SessionToken,[2,{identityId:e.identityId,accessKeyId:i,secretAccessKey:c,sessionToken:d,expiration:a}]}}))}))}}function p(){throw new d["a"]("Response from Amazon Cognito contained no access key ID")}function v(){throw new d["a"]("Response from Amazon Cognito contained no credentials")}function h(){throw new d["a"]("Response from Amazon Cognito contained no secret key")}},"3caf":function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("9ab4");function o(e){return Promise.all(Object.keys(e).reduce((function(t,n){var r=e[n];return"string"===typeof r?t.push([n,r]):t.push(r().then((function(e){return[n,e]}))),t}),[])).then((function(e){return e.reduce((function(e,t){var n=Object(r["__read"])(t,2),o=n[0],i=n[1];return e[o]=i,e}),{})}))}},"44e3":function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n("822f"),o=n("7f29"),i=n("ed04"),a=n("991b"),s=n("108d"),c=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(r["c"])(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(a["a"])(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),i=t.logger,s="CognitoIdentityClient",c="GetIdCommand",u={logger:i,clientName:s,commandName:c,inputFilterSensitiveLog:o["c"].filterSensitiveLog,outputFilterSensitiveLog:o["d"].filterSensitiveLog},d=t.requestHandler;return r.resolve((function(e){return d.handle(e.request,n||{})}),u)},t.prototype.serialize=function(e,t){return Object(i["d"])(e,t)},t.prototype.deserialize=function(e,t){return Object(i["b"])(e,t)},t}(s["b"])},"5b94":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MAX_HASHABLE_LENGTH=t.INIT=t.KEY=t.DIGEST_LENGTH=t.BLOCK_SIZE=void 0,t.BLOCK_SIZE=64,t.DIGEST_LENGTH=32,t.KEY=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,2756734187,3204031479,3329325298]),t.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],t.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1},"617e":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9ab4");r.__exportStar(n("ad4f"),t),r.__exportStar(n("2d52"),t),r.__exportStar(n("2415"),t),r.__exportStar(n("2446"),t),r.__exportStar(n("76e4"),t)},"648c":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n("7451"),o=n("6f83"),i=n("9c7a"),a=n("6d5b"),s=n("617e"),c=n("b652"),u=function(){function e(e){a.supportsWebCrypto(c.locateWindow())?this.hash=new o.Sha256(e):s.isMsWindow(c.locateWindow())?this.hash=new r.Sha256(e):this.hash=new i.Sha256(e)}return e.prototype.update=function(e,t){this.hash.update(e,t)},e.prototype.digest=function(){return this.hash.digest()},e}();t.Sha256=u},"6d5b":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9ab4");r.__exportStar(n("9ed1"),t)},"6f83":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n("5d63"),o=n("9103"),i=n("a7bd"),a=n("b652"),s=function(){function e(e){this.toHash=new Uint8Array(0),void 0!==e&&(this.key=new Promise((function(t,n){a.locateWindow().crypto.subtle.importKey("raw",c(e),i.SHA_256_HMAC_ALGO,!1,["sign"]).then(t,n)})),this.key.catch((function(){})))}return e.prototype.update=function(e){if(!o.isEmptyData(e)){var t=c(e),n=new Uint8Array(this.toHash.byteLength+t.byteLength);n.set(this.toHash,0),n.set(t,this.toHash.byteLength),this.toHash=n}},e.prototype.digest=function(){var e=this;return this.key?this.key.then((function(t){return a.locateWindow().crypto.subtle.sign(i.SHA_256_HMAC_ALGO,t,e.toHash).then((function(e){return new Uint8Array(e)}))})):o.isEmptyData(this.toHash)?Promise.resolve(i.EMPTY_DATA_SHA_256):Promise.resolve().then((function(){return a.locateWindow().crypto.subtle.digest(i.SHA_256_HASH,e.toHash)})).then((function(e){return Promise.resolve(new Uint8Array(e))}))},e}();function c(e){return"string"===typeof e?r.fromUtf8(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},7451:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sha256=void 0;var r=n("9103"),o=n("a7bd"),i=n("5d63"),a=n("b652"),s=function(){function e(e){e?(this.operation=c(e).then((function(e){return a.locateWindow().msCrypto.subtle.sign(o.SHA_256_HMAC_ALGO,e)})),this.operation.catch((function(){}))):this.operation=Promise.resolve(a.locateWindow().msCrypto.subtle.digest("SHA-256"))}return e.prototype.update=function(e){var t=this;r.isEmptyData(e)||(this.operation=this.operation.then((function(n){return n.onerror=function(){t.operation=Promise.reject(new Error("Error encountered updating hash"))},n.process(u(e)),n})),this.operation.catch((function(){})))},e.prototype.digest=function(){return this.operation.then((function(e){return new Promise((function(t,n){e.onerror=function(){n("Error encountered finalizing hash")},e.oncomplete=function(){e.result&&t(new Uint8Array(e.result)),n("Error encountered finalizing hash")},e.finish()}))}))},e}();function c(e){return new Promise((function(t,n){var r=a.locateWindow().msCrypto.subtle.importKey("raw",u(e),o.SHA_256_HMAC_ALGO,!1,["sign"]);r.oncomplete=function(){r.result&&t(r.result),n("ImportKey completed without importing key.")},r.onerror=function(){n("ImportKey failed to import key.")}}))}function u(e){return"string"===typeof e?i.fromUtf8(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}t.Sha256=s},"76e4":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isMsWindow=void 0;var r=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function o(e){return"MSInputMethodContext"in e&&"msCrypto"in e}function i(e){if(o(e)&&void 0!==e.msCrypto.subtle){var t=e.msCrypto,n=t.getRandomValues,i=t.subtle;return r.map((function(e){return i[e]})).concat(n).every((function(e){return"function"===typeof e}))}return!1}t.isMsWindow=i},"7f29":function(e,t,n){"use strict";n.d(t,"a",(function(){return S})),n.d(t,"b",(function(){return E})),n.d(t,"c",(function(){return I})),n.d(t,"d",(function(){return L}));var r,o,i,a,s,c,u,d,f,l,p,v,h,b,y,m,g,w,O,j,S,_,E,A,I,L,C,k,x,P,z,R,H,M,T,U,N,K,$,B,D,q,G,W,Z,F,Y,V,J,X,Q,ee,te,ne,re,oe,ie,ae=n("822f");(function(e){e["AUTHENTICATED_ROLE"]="AuthenticatedRole",e["DENY"]="Deny"})(r||(r={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(o||(o={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(i||(i={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(a||(a={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(s||(s={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(c||(c={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(u||(u={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(d||(d={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(f||(f={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(l||(l={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(p||(p={})),function(e){e["ACCESS_DENIED"]="AccessDenied",e["INTERNAL_SERVER_ERROR"]="InternalServerError"}(v||(v={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(h||(h={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(b||(b={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(y||(y={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(m||(m={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(g||(g={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(w||(w={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(O||(O={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(j||(j={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(S||(S={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(_||(_={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(E||(E={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(A||(A={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(I||(I={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(L||(L={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(C||(C={})),function(e){e["CONTAINS"]="Contains",e["EQUALS"]="Equals",e["NOT_EQUAL"]="NotEqual",e["STARTS_WITH"]="StartsWith"}(k||(k={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(x||(x={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(P||(P={})),function(e){e["RULES"]="Rules",e["TOKEN"]="Token"}(z||(z={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(R||(R={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(H||(H={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(M||(M={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(T||(T={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(U||(U={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(N||(N={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(K||(K={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}($||($={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(B||(B={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(D||(D={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(q||(q={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(G||(G={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(W||(W={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(Z||(Z={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(F||(F={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(Y||(Y={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(V||(V={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(J||(J={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(X||(X={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(Q||(Q={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(ee||(ee={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(te||(te={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(ne||(ne={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(re||(re={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(oe||(oe={})),function(e){e.filterSensitiveLog=function(e){return Object(ae["a"])({},e)}}(ie||(ie={}))},"822f":function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return c})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function o(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]0)&&!(r=i.next()).done)a.push(r.value)}catch(s){o={error:s}}finally{try{r&&!r.done&&(n=i["return"])&&n.call(i)}finally{if(o)throw o.error}}return a}Object.create},8265:function(e,t,n){"use strict";n.d(t,"a",(function(){return W}));var r=n("822f"),o=n("f8a3"),i=n("be23"),a=n("9ab4"),s=n("1279"),c=n("ded1");function u(e){return void 0===e&&(e=0),new Promise((function(t,n){e&&setTimeout((function(){var t=new Error("Request did not complete within "+e+" ms");t.name="TimeoutError",n(t)}),e)}))}var d=function(){function e(e){var t=void 0===e?{}:e,n=t.requestTimeout;this.requestTimeout=n}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=void 0===t?{}:t,r=n.abortSignal,o=this.requestTimeout;if(null===r||void 0===r?void 0:r.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var d=e.path;if(e.query){var f=Object(c["a"])(e.query);f&&(d+="?"+f)}var l=e.port,p=e.method,v=e.protocol+"//"+e.hostname+(l?":"+l:"")+d,h="GET"===p||"HEAD"===p?void 0:e.body,b={body:h,headers:new Headers(e.headers),method:p};"undefined"!==typeof AbortController&&(b["signal"]=r);var y=new Request(v,b),m=[fetch(y).then((function(e){var t,n,r=e.headers,o={};try{for(var i=Object(a["__values"])(r.entries()),c=i.next();!c.done;c=i.next()){var u=c.value;o[u[0]]=u[1]}}catch(f){t={error:f}}finally{try{c&&!c.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}var d=void 0!==e.body;return d?{response:new s["b"]({headers:o,statusCode:e.status,body:e.body})}:e.blob().then((function(t){return{response:new s["b"]({headers:o,statusCode:e.status,body:t})}}))})),u(o)];return r&&m.push(new Promise((function(e,t){r.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),Promise.race(m)},e}(),f=n("4b75"),l=function(e){return"function"===typeof Blob&&e instanceof Blob?p(e):v(e)};function p(e){return Object(a["__awaiter"])(this,void 0,void 0,(function(){var t,n;return Object(a["__generator"])(this,(function(r){switch(r.label){case 0:return[4,h(e)];case 1:return t=r.sent(),n=Object(f["a"])(t),[2,new Uint8Array(n)]}}))}))}function v(e){return Object(a["__awaiter"])(this,void 0,void 0,(function(){var t,n,r,o,i,s,c;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,a.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return o=a.sent(),i=o.done,s=o.value,s&&(c=t,t=new Uint8Array(c.length+s.length),t.set(c),t.set(s,c.length)),r=i,[3,1];case 3:return[2,t]}}))}))}function h(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var o=null!==(e=r.result)&&void 0!==e?e:"",i=o.indexOf(","),a=i>-1?i+1:o.length;t(o.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}var b=function(e){return function(){return Promise.reject(e)}},y=n("50c7"),m=n("37db"),g=n("c14f"),w=n("5d63"),O="cognito-identity.{region}.amazonaws.com",j="cognito-identity.{region}.amazonaws.com.cn",S="cognito-identity.{region}.c2s.ic.gov",_="cognito-identity.{region}.sc2s.sgov.gov",E="cognito-identity.{region}.amazonaws.com",A=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),I=new Set(["cn-north-1","cn-northwest-1"]),L=new Set(["us-iso-east-1"]),C=new Set(["us-isob-east-1"]),k=new Set(["us-gov-east-1","us-gov-west-1"]),x=function(e,t){var n=void 0;switch(e){case"ap-northeast-1":n={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":n={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":n={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":n={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":n={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":n={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":n={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":n={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:A.has(e)&&(n={hostname:O.replace("{region}",e),partition:"aws"}),I.has(e)&&(n={hostname:j.replace("{region}",e),partition:"aws-cn"}),L.has(e)&&(n={hostname:S.replace("{region}",e),partition:"aws-iso"}),C.has(e)&&(n={hostname:_.replace("{region}",e),partition:"aws-iso-b"}),k.has(e)&&(n={hostname:E.replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:O.replace("{region}",e),partition:"aws"})}return Promise.resolve(Object(r["a"])({signingService:"cognito-identity"},n))},P=n("da3e"),z={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:x,serviceId:"Cognito Identity",urlParser:P["a"]},R=Object(r["a"])(Object(r["a"])({},z),{runtime:"browser",base64Decoder:f["a"],base64Encoder:f["b"],bodyLengthChecker:m["a"],credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(g["a"])({serviceId:z.serviceId,clientVersion:o.version}),maxAttempts:y["a"],region:b("Region is missing"),requestHandler:new d,sha256:i["Sha256"],streamCollector:l,utf8Decoder:w["fromUtf8"],utf8Encoder:w["toUtf8"]}),H=function(e){var t;return Object(a["__assign"])(Object(a["__assign"])({},e),{tls:null===(t=e.tls)||void 0===t||t,endpoint:e.endpoint?M(e):function(){return T(e)},isCustomEndpoint:!!e.endpoint})},M=function(e){var t=e.endpoint,n=e.urlParser;if("string"===typeof t){var r=Promise.resolve(n(t));return function(){return r}}if("object"===typeof t){var o=Promise.resolve(t);return function(){return o}}return t},T=function(e){return Object(a["__awaiter"])(void 0,void 0,void 0,(function(){var t,n,r,o,i,s;return Object(a["__generator"])(this,(function(a){switch(a.label){case 0:return t=e.tls,n=void 0===t||t,[4,e.region()];case 1:if(r=a.sent(),o=new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/),!o.test(r))throw new Error("Invalid region in client config");return[4,e.regionInfoProvider(r)];case 2:if(i=(null!==(s=a.sent())&&void 0!==s?s:{}).hostname,!i)throw new Error("Cannot resolve hostname from client config");return[2,e.urlParser((n?"https:":"http:")+"//"+i)]}}))}))},U=function(e){if(!e.region)throw new Error("Region is missing");return Object(a["__assign"])(Object(a["__assign"])({},e),{region:N(e.region)})},N=function(e){if("string"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e},K=n("9dac"),$=n("365f"),B=n("fad4"),D=n("a9cb"),q=n("f3b6"),G=n("108d"),W=function(e){function t(t){var n=this,o=Object(r["a"])(Object(r["a"])({},R),t),i=U(o),a=H(i),s=Object(D["a"])(a),c=Object(y["c"])(s),u=Object($["b"])(c),d=Object(q["b"])(u);return n=e.call(this,d)||this,n.config=d,n.middlewareStack.use(Object(y["b"])(n.config)),n.middlewareStack.use(Object(K["a"])(n.config)),n.middlewareStack.use(Object($["a"])(n.config)),n.middlewareStack.use(Object(B["a"])(n.config)),n.middlewareStack.use(Object(q["a"])(n.config)),n}return Object(r["c"])(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this)},t}(G["a"])},9103:function(e,t,n){"use strict";function r(e){return"string"===typeof e?0===e.length:0===e.byteLength}Object.defineProperty(t,"__esModule",{value:!0}),t.isEmptyData=void 0,t.isEmptyData=r},"9c7a":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("9ab4");r.__exportStar(n("0103"),t)},"9ed1":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.supportsZeroByteGCM=t.supportsSubtleCrypto=t.supportsSecureRandom=t.supportsWebCrypto=void 0;var r=n("9ab4"),o=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function i(e){if(a(e)&&"object"===typeof e.crypto.subtle){var t=e.crypto.subtle;return s(t)}return!1}function a(e){if("object"===typeof e&&"object"===typeof e.crypto){var t=e.crypto.getRandomValues;return"function"===typeof t}return!1}function s(e){return e&&o.every((function(t){return"function"===typeof e[t]}))}function c(e){return r.__awaiter(this,void 0,void 0,(function(){var t,n;return r.__generator(this,(function(r){switch(r.label){case 0:if(!s(e))return[2,!1];r.label=1;case 1:return r.trys.push([1,4,,5]),[4,e.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return t=r.sent(),[4,e.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},t,new Uint8Array(0))];case 3:return n=r.sent(),[2,16===n.byteLength];case 4:return r.sent(),[2,!1];case 5:return[2]}}))}))}t.supportsWebCrypto=i,t.supportsSecureRandom=a,t.supportsSubtleCrypto=s,t.supportsZeroByteGCM=c},a7bd:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EMPTY_DATA_SHA_256=t.SHA_256_HMAC_ALGO=t.SHA_256_HASH=void 0,t.SHA_256_HASH={name:"SHA-256"},t.SHA_256_HMAC_ALGO={name:"HMAC",hash:t.SHA_256_HASH},t.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},ad4f:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},be23:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WebCryptoSha256=t.Ie11Sha256=void 0;var r=n("9ab4");r.__exportStar(n("648c"),t);var o=n("7451");Object.defineProperty(t,"Ie11Sha256",{enumerable:!0,get:function(){return o.Sha256}});var i=n("6f83");Object.defineProperty(t,"WebCryptoSha256",{enumerable:!0,get:function(){return i.Sha256}})},e076:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RawSha256=void 0;var r=n("5b94"),o=function(){function e(){this.state=Int32Array.from(r.INIT),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 new Error("Attempted to update an already finished hash.");var t=0,n=e.byteLength;if(this.bytesHashed+=n,8*this.bytesHashed>r.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");while(n>0)this.buffer[this.bufferLength++]=e[t++],n--,this.bufferLength===r.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),n=this.bufferLength;if(t.setUint8(this.bufferLength++,128),n%r.BLOCK_SIZE>=r.BLOCK_SIZE-8){for(var o=this.bufferLength;o>>24&255,i[4*o+1]=this.state[o]>>>16&255,i[4*o+2]=this.state[o]>>>8&255,i[4*o+3]=this.state[o]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var e=this,t=e.buffer,n=e.state,o=n[0],i=n[1],a=n[2],s=n[3],c=n[4],u=n[5],d=n[6],f=n[7],l=0;l>>17|p<<15)^(p>>>19|p<<13)^p>>>10;p=this.temp[l-15];var h=(p>>>7|p<<25)^(p>>>18|p<<14)^p>>>3;this.temp[l]=(v+this.temp[l-7]|0)+(h+this.temp[l-16]|0)}var b=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&u^~c&d)|0)+(f+(r.KEY[l]+this.temp[l]|0)|0)|0,y=((o>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+(o&i^o&a^i&a)|0;f=d,d=u,u=c,c=s+b|0,s=a,a=i,i=o,o=b+y|0}n[0]+=o,n[1]+=i,n[2]+=a,n[3]+=s,n[4]+=c,n[5]+=u,n[6]+=d,n[7]+=f},e}();t.RawSha256=o},ed04:function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"d",(function(){return a})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));var r=n("822f"),o=n("1279"),i=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o;return Object(r["d"])(this,(function(r){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},o=JSON.stringify(w(e,t)),[2,U(t,n,"/",void 0,o)]}))}))},a=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o;return Object(r["d"])(this,(function(r){return n={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},o=JSON.stringify(O(e,t)),[2,U(t,n,"/",void 0,o)]}))}))},s=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){switch(a.label){case 0:return e.statusCode>=300?[2,c(e,t)]:[4,N(e.body,t)];case 1:return n=a.sent(),o={},o=E(n,t),i=Object(r["a"])({$metadata:H(e)},o),[2,Promise.resolve(i)]}}))}))},c=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i,a,s,c,u,d,h,w,O,j,S,_,E,A;return Object(r["d"])(this,(function(I){switch(I.label){case 0:return o=[Object(r["a"])({},e)],A={},[4,N(e.body,t)];case 1:switch(n=r["a"].apply(void 0,o.concat([(A.body=I.sent(),A)])),a="UnknownError",a=K(e,n.body),s=a,s){case"ExternalServiceException":return[3,2];case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":return[3,4];case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":return[3,6];case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":return[3,8];case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":return[3,10];case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":return[3,12];case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":return[3,14];case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":return[3,16];case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return c=[{}],[4,f(n,t)];case 3:return i=r["a"].apply(void 0,[r["a"].apply(void 0,c.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 4:return u=[{}],[4,l(n,t)];case 5:return i=r["a"].apply(void 0,[r["a"].apply(void 0,u.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 6:return d=[{}],[4,p(n,t)];case 7:return i=r["a"].apply(void 0,[r["a"].apply(void 0,d.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 8:return h=[{}],[4,v(n,t)];case 9:return i=r["a"].apply(void 0,[r["a"].apply(void 0,h.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 10:return w=[{}],[4,b(n,t)];case 11:return i=r["a"].apply(void 0,[r["a"].apply(void 0,w.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 12:return O=[{}],[4,y(n,t)];case 13:return i=r["a"].apply(void 0,[r["a"].apply(void 0,O.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 14:return j=[{}],[4,m(n,t)];case 15:return i=r["a"].apply(void 0,[r["a"].apply(void 0,j.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 16:return S=[{}],[4,g(n,t)];case 17:return i=r["a"].apply(void 0,[r["a"].apply(void 0,S.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 18:_=n.body,a=_.code||_.Code||a,i=Object(r["a"])(Object(r["a"])({},_),{name:""+a,message:_.message||_.Message||a,$fault:"client",$metadata:H(e)}),I.label=19;case 19:return E=i.message||i.Message||a,i.message=E,delete i.Message,[2,Promise.reject(Object.assign(new Error(E),i))]}}))}))},u=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){switch(a.label){case 0:return e.statusCode>=300?[2,d(e,t)]:[4,N(e.body,t)];case 1:return n=a.sent(),o={},o=A(n,t),i=Object(r["a"])({$metadata:H(e)},o),[2,Promise.resolve(i)]}}))}))},d=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i,a,s,c,u,d,p,w,O,j,S,_,E,A;return Object(r["d"])(this,(function(I){switch(I.label){case 0:return o=[Object(r["a"])({},e)],A={},[4,N(e.body,t)];case 1:switch(n=r["a"].apply(void 0,o.concat([(A.body=I.sent(),A)])),a="UnknownError",a=K(e,n.body),s=a,s){case"ExternalServiceException":return[3,2];case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":return[3,4];case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":return[3,6];case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":return[3,8];case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":return[3,10];case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":return[3,12];case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":return[3,14];case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":return[3,16];case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16]}return[3,18];case 2:return c=[{}],[4,f(n,t)];case 3:return i=r["a"].apply(void 0,[r["a"].apply(void 0,c.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 4:return u=[{}],[4,l(n,t)];case 5:return i=r["a"].apply(void 0,[r["a"].apply(void 0,u.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 6:return d=[{}],[4,v(n,t)];case 7:return i=r["a"].apply(void 0,[r["a"].apply(void 0,d.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 8:return p=[{}],[4,h(n,t)];case 9:return i=r["a"].apply(void 0,[r["a"].apply(void 0,p.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 10:return w=[{}],[4,b(n,t)];case 11:return i=r["a"].apply(void 0,[r["a"].apply(void 0,w.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 12:return O=[{}],[4,y(n,t)];case 13:return i=r["a"].apply(void 0,[r["a"].apply(void 0,O.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 14:return j=[{}],[4,m(n,t)];case 15:return i=r["a"].apply(void 0,[r["a"].apply(void 0,j.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 16:return S=[{}],[4,g(n,t)];case 17:return i=r["a"].apply(void 0,[r["a"].apply(void 0,S.concat([I.sent()])),{name:a,$metadata:H(e)}]),[3,19];case 18:_=n.body,a=_.code||_.Code||a,i=Object(r["a"])(Object(r["a"])({},_),{name:""+a,message:_.message||_.Message||a,$fault:"client",$metadata:H(e)}),I.label=19;case 19:return E=i.message||i.Message||a,i.message=E,delete i.Message,[2,Promise.reject(Object.assign(new Error(E),i))]}}))}))},f=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=_(n,t),i=Object(r["a"])({name:"ExternalServiceException",$fault:"client",$metadata:H(e)},o),[2,i]}))}))},l=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=I(n,t),i=Object(r["a"])({name:"InternalErrorException",$fault:"server",$metadata:H(e)},o),[2,i]}))}))},p=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=L(n,t),i=Object(r["a"])({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:H(e)},o),[2,i]}))}))},v=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=C(n,t),i=Object(r["a"])({name:"InvalidParameterException",$fault:"client",$metadata:H(e)},o),[2,i]}))}))},h=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=k(n,t),i=Object(r["a"])({name:"LimitExceededException",$fault:"client",$metadata:H(e)},o),[2,i]}))}))},b=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=x(n,t),i=Object(r["a"])({name:"NotAuthorizedException",$fault:"client",$metadata:H(e)},o),[2,i]}))}))},y=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=P(n,t),i=Object(r["a"])({name:"ResourceConflictException",$fault:"client",$metadata:H(e)},o),[2,i]}))}))},m=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=z(n,t),i=Object(r["a"])({name:"ResourceNotFoundException",$fault:"client",$metadata:H(e)},o),[2,i]}))}))},g=function(e,t){return Object(r["b"])(void 0,void 0,void 0,(function(){var n,o,i;return Object(r["d"])(this,(function(a){return n=e.body,o=R(n,t),i=Object(r["a"])({name:"TooManyRequestsException",$fault:"client",$metadata:H(e)},o),[2,i]}))}))},w=function(e,t){return Object(r["a"])(Object(r["a"])(Object(r["a"])({},void 0!==e.CustomRoleArn&&null!==e.CustomRoleArn&&{CustomRoleArn:e.CustomRoleArn}),void 0!==e.IdentityId&&null!==e.IdentityId&&{IdentityId:e.IdentityId}),void 0!==e.Logins&&null!==e.Logins&&{Logins:j(e.Logins,t)})},O=function(e,t){return Object(r["a"])(Object(r["a"])(Object(r["a"])({},void 0!==e.AccountId&&null!==e.AccountId&&{AccountId:e.AccountId}),void 0!==e.IdentityPoolId&&null!==e.IdentityPoolId&&{IdentityPoolId:e.IdentityPoolId}),void 0!==e.Logins&&null!==e.Logins&&{Logins:j(e.Logins,t)})},j=function(e,t){return Object.entries(e).reduce((function(e,t){var n,o=Object(r["e"])(t,2),i=o[0],a=o[1];return null===a?e:Object(r["a"])(Object(r["a"])({},e),(n={},n[i]=a,n))}),{})},S=function(e,t){return{AccessKeyId:void 0!==e.AccessKeyId&&null!==e.AccessKeyId?e.AccessKeyId:void 0,Expiration:void 0!==e.Expiration&&null!==e.Expiration?new Date(Math.round(1e3*e.Expiration)):void 0,SecretKey:void 0!==e.SecretKey&&null!==e.SecretKey?e.SecretKey:void 0,SessionToken:void 0!==e.SessionToken&&null!==e.SessionToken?e.SessionToken:void 0}},_=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},E=function(e,t){return{Credentials:void 0!==e.Credentials&&null!==e.Credentials?S(e.Credentials,t):void 0,IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},A=function(e,t){return{IdentityId:void 0!==e.IdentityId&&null!==e.IdentityId?e.IdentityId:void 0}},I=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},L=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},C=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},k=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},x=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},P=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},z=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},R=function(e,t){return{message:void 0!==e.message&&null!==e.message?e.message:void 0}},H=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},M=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},T=function(e,t){return M(e,t).then((function(e){return t.utf8Encoder(e)}))},U=function(e,t,n,i,a){return Object(r["b"])(void 0,void 0,void 0,(function(){var s,c,u,d,f,l;return Object(r["d"])(this,(function(r){switch(r.label){case 0:return[4,e.endpoint()];case 1:return s=r.sent(),c=s.hostname,u=s.protocol,d=void 0===u?"https":u,f=s.port,l={protocol:d,hostname:c,port:f,method:"POST",path:n,headers:t},void 0!==i&&(l.hostname=i),void 0!==a&&(l.body=a),[2,new o["a"](l)]}}))}))},N=function(e,t){return T(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},K=function(e,t){var n=function(e,t){return Object.keys(e).find((function(e){return e.toLowerCase()===t.toLowerCase()}))},r=function(e){var t=e;return t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},o=n(e.headers,"x-amzn-errortype");return void 0!==o?r(e.headers[o]):void 0!==t.code?r(t.code):void 0!==t["__type"]?r(t["__type"]):""}},f8a3:function(e){e.exports=JSON.parse('{"name":"@aws-sdk/client-cognito-identity","description":"AWS SDK for JavaScript Cognito Identity Client for Node.js, Browser and React Native","version":"3.6.1","scripts":{"clean":"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","prepublishOnly":"yarn build","pretest":"yarn build:cjs","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs","test:unit":"mocha **/cjs/**/*.spec.js","test:e2e":"mocha **/cjs/**/*.ispec.js && karma start karma.conf.js","test":"yarn test:unit","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json","build":"yarn build:cjs && yarn build:es","postbuild":"downlevel-dts types types/ts3.4"},"main":"./dist/cjs/index.js","types":"./types/index.d.ts","module":"./dist/es/index.js","browser":{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},"sideEffects":false,"dependencies":{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.6.1","@aws-sdk/credential-provider-node":"3.6.1","@aws-sdk/fetch-http-handler":"3.6.1","@aws-sdk/hash-node":"3.6.1","@aws-sdk/invalid-dependency":"3.6.1","@aws-sdk/middleware-content-length":"3.6.1","@aws-sdk/middleware-host-header":"3.6.1","@aws-sdk/middleware-logger":"3.6.1","@aws-sdk/middleware-retry":"3.6.1","@aws-sdk/middleware-serde":"3.6.1","@aws-sdk/middleware-signing":"3.6.1","@aws-sdk/middleware-stack":"3.6.1","@aws-sdk/middleware-user-agent":"3.6.1","@aws-sdk/node-config-provider":"3.6.1","@aws-sdk/node-http-handler":"3.6.1","@aws-sdk/protocol-http":"3.6.1","@aws-sdk/smithy-client":"3.6.1","@aws-sdk/types":"3.6.1","@aws-sdk/url-parser":"3.6.1","@aws-sdk/url-parser-native":"3.6.1","@aws-sdk/util-base64-browser":"3.6.1","@aws-sdk/util-base64-node":"3.6.1","@aws-sdk/util-body-length-browser":"3.6.1","@aws-sdk/util-body-length-node":"3.6.1","@aws-sdk/util-user-agent-browser":"3.6.1","@aws-sdk/util-user-agent-node":"3.6.1","@aws-sdk/util-utf8-browser":"3.6.1","@aws-sdk/util-utf8-node":"3.6.1","tslib":"^2.0.0"},"devDependencies":{"@aws-sdk/client-documentation-generator":"3.6.1","@aws-sdk/client-iam":"3.6.1","@types/chai":"^4.2.11","@types/mocha":"^8.0.4","@types/node":"^12.7.5","downlevel-dts":"0.7.0","jest":"^26.1.0","rimraf":"^3.0.0","typedoc":"^0.19.2","typescript":"~4.1.2"},"engines":{"node":">=10.0.0"},"typesVersions":{"<4.0":{"types/*":["types/ts3.4/*"]}},"author":{"name":"AWS SDK for JavaScript Team","url":"https://aws.amazon.com/javascript/"},"license":"Apache-2.0","homepage":"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-cognito-identity","repository":{"type":"git","url":"https://github.com/aws/aws-sdk-js-v3.git","directory":"clients/client-cognito-identity"}}')}}]);