(self["webpackChunk_19531_6_sof_quasarspa_03"]=self["webpackChunk_19531_6_sof_quasarspa_03"]||[]).push([[736],{6377:(e,t,n)=>{"use strict";function r(){var e=[];if("undefined"!==typeof window){var t=window;function r(){try{var e=new URL("b","http://a");return e.pathname="c%20d","http://a/c%20d"===e.href&&e.searchParams}catch(t){return!1}}t.customElements&&(!t.Element||t.Element.prototype.closest&&t.Element.prototype.matches&&t.Element.prototype.remove&&t.Element.prototype.getRootNode)||e.push(n.e(736).then(n.t.bind(n,3779,23))),"function"===typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!t.NodeList||t.NodeList.prototype.forEach)&&t.fetch&&r()&&"undefined"!=typeof WeakMap||e.push(n.e(736).then(n.t.bind(n,8210,23)))}return Promise.all(e)}n.d(t,{m:()=>r,q:()=>c});var o=n(7652),i=n(5148),a=function(){return o.C&&o.C.supports&&o.C.supports("color","var(--c)")?(0,o.a)():n.e(736).then(n.t.bind(n,2967,23)).then((function(){return(o.p.$cssShim$=o.w.__cssshim)?o.p.$cssShim$.i():0}))};if((0,i.lC)().isBrowser){var s=document.createElement("style");s.appendChild(document.createTextNode("\n :root {\n /* Typography */\n --amplify-font-family: 'Amazon Ember', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;\n\n --amplify-text-xxs: 0.75rem;\n --amplify-text-xs: 0.81rem;\n --amplify-text-sm: 0.875rem;\n --amplify-text-md: 1rem;\n --amplify-text-md-sub: 1.15rem;\n --amplify-text-lg: 1.5rem;\n --amplify-text-xl: 2rem;\n --amplify-text-xxl: 2.5rem;\n\n /* Colors */\n --amplify-primary-color: #ff9900;\n --amplify-primary-contrast: var(--amplify-white);\n --amplify-primary-tint: #ffac31;\n --amplify-primary-shade: #e88b01;\n\n --amplify-secondary-color: #152939;\n --amplify-secondary-contrast: var(--amplify-white);\n --amplify-secondary-tint: #31465f;\n --amplify-secondary-shade: #1F2A37;\n\n --amplify-tertiary-color: #5d8aff;\n --amplify-tertiary-contrast: var(--amplify-white);\n --amplify-tertiary-tint: #7da1ff;\n --amplify-tertiary-shade: #537BE5;\n\n --amplify-background-color: var(--amplify-white);\n\n /* Neutral */\n --amplify-grey: #828282;\n --amplify-light-grey: #c4c4c4;\n --amplify-white: #ffffff;\n --amplify-smoke-white: #f5f5f5;\n --amplify-red: #dd3f5b;\n --amplify-blue: #099ac8;\n }\n "));var u=document.getElementsByTagName("head")[0],l=u.firstChild;u.insertBefore(s,l)}var c=function(e,t){return"undefined"===typeof window?Promise.resolve():a().then((function(){return(0,o.b)([["amplify-icon",[[2,"amplify-icon",{name:[1]}]]],["amplify-authenticator",[[1,"amplify-authenticator",{initialAuthState:[1,"initial-auth-state"],federated:[16],usernameAlias:[1,"username-alias"],handleAuthStateChange:[16],hideToast:[4,"hide-toast"],authState:[32],authData:[32],toastMessage:[32]}]]],["amplify-federated-sign-in",[[1,"amplify-federated-sign-in",{authState:[1,"auth-state"],federated:[8]}]]],["amplify-select-mfa-type",[[1,"amplify-select-mfa-type",{MFATypes:[16],authData:[16],handleSubmit:[16],TOTPSetup:[32],selectMessage:[32],MFAMethod:[32],isTOTP:[32],isNoMFA:[32],isSMS:[32],loading:[32],isToastVisible:[32]}]]],["amplify-s3-image-picker",[[4,"amplify-s3-image-picker",{path:[1],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],fileToKey:[16],headerTitle:[1,"header-title"],headerHint:[1,"header-hint"],placeholderHint:[1,"placeholder-hint"],buttonText:[1,"button-text"],src:[32]}]]],["amplify-chatbot",[[1,"amplify-chatbot",{botName:[1,"bot-name"],clearOnComplete:[4,"clear-on-complete"],conversationModeOn:[4,"conversation-mode-on"],welcomeMessage:[1,"welcome-message"],botTitle:[1,"bot-title"],voiceEnabled:[4,"voice-enabled"],textEnabled:[4,"text-enabled"],silenceTime:[2,"silence-time"],silenceThreshold:[2,"silence-threshold"],messages:[32],text:[32],chatState:[32],error:[32]},[[0,"formSubmit","submitHandler"]]]]],["amplify-greetings",[[1,"amplify-greetings",{username:[1],logo:[16],handleAuthStateChange:[16]}]]],["amplify-s3-album",[[1,"amplify-s3-album",{path:[1],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],fileToKey:[16],filter:[16],sort:[16],picker:[4],handleOnLoad:[16],handleOnError:[16],pickerText:[1,"picker-text"],albumItems:[32]}]]],["amplify-s3-text-picker",[[1,"amplify-s3-text-picker",{path:[1],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],fileToKey:[16],fallbackText:[1,"fallback-text"],src:[32]}]]],["amplify-icon-button",[[1,"amplify-icon-button",{name:[1],tooltip:[1],autoShowTooltip:[4,"auto-show-tooltip"]}]]],["amplify-checkbox",[[1,"amplify-checkbox",{name:[1],value:[1],fieldId:[1,"field-id"],label:[1],checked:[4],disabled:[4]}]]],["amplify-auth-container",[[4,"amplify-auth-container"]]],["amplify-container",[[4,"amplify-container"]]],["amplify-link",[[1,"amplify-link",{role:[1]}]]],["amplify-photo-picker",[[1,"amplify-photo-picker",{headerTitle:[1,"header-title"],headerHint:[1,"header-hint"],placeholderHint:[1,"placeholder-hint"],buttonText:[1,"button-text"],previewSrc:[1,"preview-src"],handleClick:[16],previewState:[32],file:[32]}]]],["amplify-s3-image",[[1,"amplify-s3-image",{imgKey:[1,"img-key"],path:[1],alt:[1],body:[16],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],handleOnLoad:[16],handleOnError:[16],imgProps:[16],src:[32]}]]],["amplify-s3-text",[[1,"amplify-s3-text",{textKey:[1,"text-key"],path:[1],body:[16],contentType:[1,"content-type"],level:[1],track:[4],identityId:[1,"identity-id"],fallbackText:[1,"fallback-text"],src:[32]}]]],["amplify-tooltip",[[1,"amplify-tooltip",{text:[1],shouldAutoShow:[4,"should-auto-show"]}]]],["amplify-nav_2",[[1,"amplify-sign-out",{handleAuthStateChange:[16],buttonText:[1,"button-text"]}],[1,"amplify-nav"]]],["amplify-picker",[[1,"amplify-picker",{pickerText:[1,"picker-text"],acceptValue:[1,"accept-value"],inputHandler:[16]}]]],["amplify-federated-buttons_2",[[6,"amplify-strike"],[1,"amplify-federated-buttons",{authState:[1,"auth-state"],federated:[16],handleAuthStateChange:[16]}]]],["amplify-form-field_4",[[4,"amplify-form-field",{fieldId:[1,"field-id"],label:[1],description:[1],hint:[1],type:[1],required:[4],handleInputChange:[16],placeholder:[1],name:[1],value:[1],inputProps:[16],disabled:[4]}],[1,"amplify-hint"],[0,"amplify-input",{fieldId:[1,"field-id"],description:[1],type:[1],handleInputChange:[16],placeholder:[1],name:[1],value:[1],inputProps:[16],disabled:[4],required:[4],autoCompleted:[32]}],[4,"amplify-label",{htmlFor:[1,"html-for"]}]]],["amplify-auth-fields_9",[[0,"amplify-auth-fields",{formFields:[16]}],[0,"amplify-phone-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],hint:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4],dialCode:[8,"dial-code"]}],[0,"amplify-code-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],hint:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4]}],[0,"amplify-email-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4],hint:[1]}],[0,"amplify-password-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],hint:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4]}],[0,"amplify-username-field",{fieldId:[1,"field-id"],label:[1],placeholder:[1],required:[4],handleInputChange:[16],value:[1],inputProps:[16],disabled:[4],hint:[1]}],[1,"amplify-country-dial-code",{fieldId:[1,"field-id"],options:[16],handleInputChange:[16],dialCode:[8,"dial-code"]}],[1,"amplify-select",{options:[16],fieldId:[1,"field-id"],handleInputChange:[16],selected:[8]}],[4,"amplify-form-section",{handleSubmit:[16],submitButtonText:[1,"submit-button-text"],headerText:[1,"header-text"],testDataPrefix:[1,"test-data-prefix"],loading:[4],secondaryFooterContent:[1,"secondary-footer-content"]},[[0,"formSubmit","handleFormSubmit"]]]]],["amplify-radio-button_3",[[1,"amplify-totp-setup",{user:[16],handleAuthStateChange:[16],headerText:[1,"header-text"],issuer:[1],handleComplete:[16],standalone:[4],code:[32],setupMessage:[32],qrCodeImageSource:[32],qrCodeInput:[32],loading:[32]}],[0,"amplify-radio-button",{handleInputChange:[16],name:[1],value:[1],placeholder:[1],fieldId:[1,"field-id"],label:[1],checked:[4],disabled:[4],inputProps:[16]}],[1,"amplify-toast",{handleClose:[16],message:[1]}]]],["amplify-sign-in-button",[[6,"amplify-sign-in-button",{provider:[1]}]]],["amplify-amazon-button_5",[[1,"amplify-amazon-button",{clientId:[1,"client-id"],handleAuthStateChange:[16]}],[1,"amplify-auth0-button",{config:[16],handleAuthStateChange:[16]}],[1,"amplify-facebook-button",{appId:[1,"app-id"],handleAuthStateChange:[16]}],[1,"amplify-google-button",{handleAuthStateChange:[16],clientId:[1,"client-id"]}],[1,"amplify-oauth-button",{config:[16]}]]],["amplify-button_3",[[1,"amplify-loading-spinner"],[4,"amplify-section",{role:[1]}],[4,"amplify-button",{type:[1],variant:[1],handleButtonClick:[16],disabled:[4],icon:[1]}]]],["amplify-confirm-sign-in_7",[[1,"amplify-sign-in",{handleSubmit:[16],headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],federated:[16],handleAuthStateChange:[16],usernameAlias:[1,"username-alias"],formFields:[16],hideSignUp:[4,"hide-sign-up"],loading:[32],signInAttributes:[32]}],[1,"amplify-confirm-sign-in",{handleSubmit:[16],headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],handleAuthStateChange:[16],formFields:[16],user:[16],mfaOption:[32],loading:[32],code:[32]}],[1,"amplify-confirm-sign-up",{handleSubmit:[16],headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],formFields:[16],handleAuthStateChange:[16],user:[16],usernameAlias:[1,"username-alias"],code:[32],loading:[32],userInput:[32]}],[1,"amplify-forgot-password",{headerText:[1,"header-text"],sendButtonText:[1,"send-button-text"],submitButtonText:[1,"submit-button-text"],formFields:[16],handleSend:[16],handleSubmit:[16],handleAuthStateChange:[16],usernameAlias:[1,"username-alias"],delivery:[32],loading:[32],forgotPasswordAttrs:[32]}],[1,"amplify-require-new-password",{headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],handleSubmit:[16],handleAuthStateChange:[16],user:[16],formFields:[16],password:[32],loading:[32]}],[1,"amplify-sign-up",{handleSubmit:[16],handleSignUp:[16],validationErrors:[1,"validation-errors"],headerText:[1,"header-text"],submitButtonText:[1,"submit-button-text"],haveAccountText:[1,"have-account-text"],signInText:[1,"sign-in-text"],formFields:[16],handleAuthStateChange:[16],usernameAlias:[1,"username-alias"],loading:[32],signUpAttributes:[32]}],[1,"amplify-verify-contact",{handleAuthStateChange:[16],user:[16],verifyAttr:[32],loading:[32],code:[32],contact:[32]}]]]],t)}))};(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var e=HTMLElement;window.HTMLElement=function(){return Reflect.construct(e,[],this.constructor)},HTMLElement.prototype=e.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,e)}})()},5716:(e,t,n)=>{"use strict";var r,o;function i(e){var t=["provider"];return e&&!!t.find((function(t){return e.hasOwnProperty(t)}))}function a(e){var t=["customProvider"];return e&&!!t.find((function(t){return e.hasOwnProperty(t)}))}function s(e){var t=["customState"];return e&&!!t.find((function(t){return e.hasOwnProperty(t)}))}function u(e){return void 0!==e.redirectSignIn}function l(e){return!!e.username}n.d(t,{g:()=>kt}),function(e){e["Cognito"]="COGNITO",e["Google"]="Google",e["Facebook"]="Facebook",e["Amazon"]="LoginWithAmazon",e["Apple"]="SignInWithApple"}(r||(r={})),function(e){e["NoConfig"]="noConfig",e["MissingAuthConfig"]="missingAuthConfig",e["EmptyUsername"]="emptyUsername",e["InvalidUsername"]="invalidUsername",e["EmptyPassword"]="emptyPassword",e["EmptyCode"]="emptyCode",e["SignUpError"]="signUpError",e["NoMFA"]="noMFA",e["InvalidMFA"]="invalidMFA",e["EmptyChallengeResponse"]="emptyChallengeResponse",e["NoUserSession"]="noUserSession",e["Default"]="default",e["DeviceConfig"]="deviceConfig",e["NetworkError"]="networkError"}(o||(o={}));var c,f="Logging",d=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},h=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{while((void 0===t||t-- >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},p=function(){for(var e=[],t=0;t=s){var l=console.log.bind(console);t===c.ERROR&&console.error&&(l=console.error.bind(console)),t===c.WARN&&console.warn&&(l=console.warn.bind(console));var f="["+t+"] "+this._ts()+" "+this.name,h="";if(1===o.length&&"string"===typeof o[0])h=f+" - "+o[0],l(h);else if(1===o.length)h=f+" "+o[0],l(f,o[0]);else if("string"===typeof o[0]){var p=o.slice(1);1===p.length&&(p=p[0]),h=f+" - "+o[0]+" "+p,l(f+" - "+o[0],p)}else h=f+" "+o,l(f,o);try{for(var v=d(this._pluggables),m=v.next();!m.done;m=v.next()){var y=m.value,b={message:h,timestamp:Date.now()};y.pushLogs([b])}}catch(w){n={error:w}}finally{try{m&&!m.done&&(r=v.return)&&r.call(v)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var e=[],t=0;t0)&&!(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},b=function(){for(var e=[],t=0;t-1){var o=r===S;o||w.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences")}var i={channel:e,payload:m({},t),source:n,patternInfo:[]};try{this._toListeners(i)}catch(a){w.error(a)}},e.prototype.listen=function(e,t,n){var r,o=this;if(void 0===n&&(n="noname"),_(t))w.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else{if("function"!==typeof t)throw new Error("No callback supplied to Hub");r=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var i=this.listeners[e];i||(i=[],this.listeners[e]=i),i.push({name:n,callback:r})}return function(){o.remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach((function(r){w.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(o){w.error(o)}})),this.patterns.length>0){if(!n.message)return void w.warn("Cannot perform pattern matching without a message key");var o=n.message;this.patterns.forEach((function(t){var n=o.match(t.pattern);if(n){var r=y(n),i=r.slice(1),a=m(m({},e),{patternInfo:i});try{t.callback(a)}catch(s){w.error(s)}}}))}},e}(),E=new C("__default__");var x={},A=function(){function e(){}return e.setItem=function(e,t){return x[e]=t,x[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(x,e)?x[e]:void 0},e.removeItem=function(e){return delete x[e]},e.clear=function(){return x={},x},e}(),k=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=A}}return e.prototype.getStorage=function(){return this.storageWindow},e}();var T=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],I=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},P=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort((function(e,n){var o=e[t],i=n[t];return"undefined"===typeof i?"undefined"===typeof o?0:1*r:"undefined"===typeof o||oi?1*r:0})),!0},O=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},L=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),r=T.filter((function(e){return n.endsWith("."+e.ext)}));return r.length>0?r[0].type:t},R=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},M=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},U=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,o=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return o.isFullfilled=function(){return r},o.isPending=function(){return t},o.isRejected=function(){return n},o},N=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},F=function(){var e="undefined"!==typeof window&&"undefined"!==typeof window.document,t="undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node;return{isBrowser:e,isNode:t}},D=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!j(e))return e;var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=t.includes(o)?o:o[0].toLowerCase()+o.slice(1);r[i]=n.includes(o)?e[o]:D(e[o],t,n)}return r},B=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!j(e))return e;var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=t.includes(o)?o:o[0].toUpperCase()+o.slice(1);r[i]=n.includes(o)?e[o]:B(e[o],t,n)}return r},j=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},q=function(){function e(){}return e.isEmpty=I,e.sortByField=P,e.objectLessAttributes=O,e.filenameToContentType=L,e.isTextFile=R,e.generateRandomString=M,e.makeQuerablePromise=U,e.isWebWorker=N,e.browserOrNode=F,e.transferKeyToLowerCase=D,e.transferKeyToUpperCase=B,e.isStrictObject=j,e}();var z=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},H=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&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},K=function(){for(var e=[],t=0;te)&&o}}var Q=function(e,t,n){return void 0===n&&(n=J),Y(e,t,X(n))},ee=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},te=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&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&&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},me=new v("Amplify"),ye=function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Logger=v,this.ServiceWorker=null}return e.prototype.register=function(e){me.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):me.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),me.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=ve(e,2),r=(n[0],n[1]);Object.keys(r).forEach((function(e){t._modules[e]&&(r[e]=t._modules[e])}))})),this._components.map((function(e){e.configure(t._config)})),this._config):this._config},e.prototype.addPluggable=function(e){e&&e["getCategory"]&&"function"===typeof e["getCategory"]&&this._components.map((function(t){t["addPluggable"]&&"function"===typeof t["addPluggable"]&&t.addPluggable(e)}))},e}(),be=new ye;var we=n(1369),Se=n(9832),_e=n(9001),Ce=n(1432),Ee=n(7674),xe=function(){return xe=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](new Date).getTime()?(Te.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:o,expires_at:i})):a._refreshHandlers[t]&&"function"===typeof a._refreshHandlers[t]?(Te.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:a._refreshHandlers[t],provider:t,user:n})):(Te.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,o=e.user,i=1e4;return Q(n,[],i).then((function(e){return Te.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:o,identity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e){var n="string"===typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length);return n||t.clear(),Te.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return Te.debug("no credentials for expiration check"),!0;Te.debug("are these credentials expired?",e);var t=Date.now(),n=e.expiration;return n.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){return Ae(this,void 0,void 0,(function(){var e,t,n,r,o,i,a,s,u,l,c=this;return ke(this,(function(f){switch(f.label){case 0:return Te.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,r=e.mandatorySignIn,r?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:t?n?(i=this,[4,this._getGuestIdentityId()]):(Te.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(Te.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return o=i._identityId=f.sent(),a=new _e.Q({region:n,customUserAgent:ge()}),s=void 0,o?(u={identityId:o,client:a},s=(0,we.o)(u)()):(l=function(){return Ae(c,void 0,void 0,(function(){var e,n,r;return ke(this,(function(o){switch(o.label){case 0:return[4,a.send(new Ce.n({IdentityPoolId:t}))];case 1:return e=o.sent().IdentityId,this._identityId=e,n={client:a,identityId:e},r=(0,we.o)(n),[2,r()]}}))}))},s=l().catch((function(e){return Ae(c,void 0,void 0,(function(){return ke(this,(function(t){throw e}))}))}))),[2,this._loadCredentials(s,"guest",!1,null).then((function(e){return e})).catch((function(e){return Ae(c,void 0,void 0,(function(){var n,r=this;return ke(this,(function(i){switch(i.label){case 0:return"ResourceNotFoundException"!==e.name||e.message!=="Identity '"+o+"' not found."?[3,2]:(Te.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]);case 1:return i.sent(),n=function(){return Ae(r,void 0,void 0,(function(){var e,n,r;return ke(this,(function(o){switch(o.label){case 0:return[4,a.send(new Ce.n({IdentityPoolId:t}))];case 1:return e=o.sent().IdentityId,this._identityId=e,n={client:a,identityId:e},r=(0,we.o)(n),[2,r()]}}))}))},s=n().catch((function(e){return Ae(r,void 0,void 0,(function(){return ke(this,(function(t){throw e}))}))})),[2,this._loadCredentials(s,"guest",!1,null)];case 2:return[2,e]}}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"},i=o[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var a={};a[i]=n;var s=this._config,u=s.identityPoolId,l=s.region;if(!u)return Te.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!l)return Te.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=new _e.Q({region:l,customUserAgent:ge()}),f=void 0;if(r){var d={identityId:r,logins:a,client:c};f=(0,we.o)(d)()}else{d={logins:a,identityPoolId:u,client:c};f=(0,Se.s)(d)()}return this._loadCredentials(f,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;Te.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,o=r.region,i=r.userPoolId,a=r.identityPoolId;if(!a)return Te.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!o)return Te.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s="cognito-idp."+o+".amazonaws.com/"+i,u={};u[s]=n;var l=new _e.Q({region:o,customUserAgent:ge()}),c=function(){return Ae(t,void 0,void 0,(function(){var e,t,n,r,o,i,s,c,f,d;return ke(this,(function(h){switch(h.label){case 0:return[4,this._getGuestIdentityId()];case 1:return e=h.sent(),e?[3,3]:[4,l.send(new Ce.n({IdentityPoolId:a,Logins:u}))];case 2:n=h.sent().IdentityId,t=n,h.label=3;case 3:return[4,l.send(new Ee.L({IdentityId:e||t,Logins:u}))];case 4:return r=h.sent(),o=r.Credentials,i=o.AccessKeyId,s=o.Expiration,c=o.SecretKey,f=o.SessionToken,d=r.IdentityId,this._identityId=d,e?(Te.debug("The guest identity "+e+" has been successfully linked to the logins"),e===d&&Te.debug("The guest identity "+e+" has become the primary identity"),[4,this._removeGuestIdentityId()]):[3,6];case 5:h.sent(),h.label=6;case 6:return[2,{accessKeyId:i,secretAccessKey:c,sessionToken:f,expiration:s,identityId:d}]}}))}))},f=c().catch((function(e){return Ae(t,void 0,void 0,(function(){return ke(this,(function(t){throw e}))}))}));return this._loadCredentials(f,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var o=this,i=this;return new Promise((function(a,s){e.then((function(e){return Ae(o,void 0,void 0,(function(){var o,s,u,l,c;return ke(this,(function(f){switch(f.label){case 0:if(Te.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e["identityId"]=this._identityId),i._credentials=e,i._credentials.authenticated=n,i._credentials_source=t,i._nextCredentialsRefresh=(new Date).getTime()+Ie,"federated"===t){o=Object.assign({id:this._credentials.identityId},r.user),s=r.provider,u=r.token,l=r.expires_at,c=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:s,token:u,user:o,expires_at:l,identity_id:c}))}catch(d){Te.debug("Failed to put federated info into auth storage",d)}}return"guest"!==t?[3,2]:[4,this._setGuestIdentityId(e.identityId)];case 1:f.sent(),f.label=2;case 2:return a(i._credentials),[2]}}))}))})).catch((function(t){if(t)return Te.debug("Failed to load credentials",e),Te.debug("Error loading credentials",t),void s(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(Te.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return Ae(this,void 0,void 0,(function(){return ke(this,(function(e){return this._credentials=null,this._credentials_source=null,Te.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype._getGuestIdentityId=function(){return Ae(this,void 0,void 0,(function(){var e,t;return ke(this,(function(n){switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return t=n.sent(),Te.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}}))}))},e.prototype._setGuestIdentityId=function(e){return Ae(this,void 0,void 0,(function(){var t,n;return ke(this,(function(r){switch(r.label){case 0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),[3,4];case 3:return n=r.sent(),Te.debug("Failed to cache guest identityId",n),[3,4];case 4:return[2]}}))}))},e.prototype._removeGuestIdentityId=function(){return Ae(this,void 0,void 0,(function(){var e;return ke(this,(function(t){return e=this._config.identityPoolId,Te.debug("removing "+this._getCognitoIdentityIdStorageKey(e)+" from storage"),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}(),Le=new Oe(null);be.register(Le);var Re=function(){return Re=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},ot="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",it=function(e,t,n){E.dispatch("auth",{event:e,data:t,message:n},"Auth",ot)},at=new v("OAuth"),st=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,o=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||Ve,this._config=t,this._cognitoClientId=n,!this.isValidScopes(o))throw Error("scopes must be a String Array");this._scopes=o}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"===typeof e}))},e.prototype.oauthSignIn=function(e,t,n,o,i,a){void 0===e&&(e="code"),void 0===i&&(i=r.Cognito);var s=this._generateState(32),u=a?s+"-"+je(a):s;Ke(u);var l=this._generateRandom(128);Ge(l);var c=this._generateChallenge(l),f="S256",d=this._scopes.join(" "),h=Object.entries(et(et({redirect_uri:n,response_type:e,client_id:o,identity_provider:i,scope:d,state:u},"code"===e?{code_challenge:c}:{}),"code"===e?{code_challenge_method:f}:{})).map((function(e){var t=rt(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),p="https://"+t+"/oauth2/authorize?"+h;at.debug("Redirecting to "+p),this._urlOpener(p,n)},e.prototype._handleCodeFlow=function(e){return tt(this,void 0,void 0,(function(){var t,n,r,o,i,a,s,l,c,f,d,h,p,g;return nt(this,(function(v){switch(v.label){case 0:return t=((0,$e.Qc)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=rt(t,2),o=r[0],i=r[1];return et(et({},e),(n={},n[o]=i,n))}),{code:void 0}).code,n=(0,$e.Qc)(e).pathname||"/",r=(0,$e.Qc)(this._config.redirectSignIn).pathname||"/",t&&n===r?(o="https://"+this._config.domain+"/oauth2/token",it("codeFlow",{},"Retrieving tokens from "+o),i=u(this._config)?this._cognitoClientId:this._config.clientID,a=u(this._config)?this._config.redirectSignIn:this._config.redirectUri,s=Ze(),l=et({grant_type:"authorization_code",code:t,client_id:i,redirect_uri:a},s?{code_verifier:s}:{}),at.debug("Calling token endpoint: "+o+" with",l),c=Object.entries(l).map((function(e){var t=rt(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(o,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:c})]):[2];case 1:return[4,v.sent().json()];case 2:if(f=v.sent(),d=f.access_token,h=f.refresh_token,p=f.id_token,g=f.error,g)throw new Error(g);return[2,{accessToken:d,refreshToken:h,idToken:p}]}}))}))},e.prototype._handleImplicitFlow=function(e){return tt(this,void 0,void 0,(function(){var t,n,r;return nt(this,(function(o){return t=((0,$e.Qc)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=rt(t,2),o=r[0],i=r[1];return et(et({},e),(n={},n[o]=i,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,it("implicitFlow",{},"Got tokens from "+e),at.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return tt(this,void 0,void 0,(function(){var t,n,r,o,i,a,s;return nt(this,(function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),t=e?et(et({},((0,$e.Qc)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=rt(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})),((0,$e.Qc)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=rt(t,2),r=n[0],o=n[1];return e[r]=o,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return o=this._validateState(t),at.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(i=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,et.apply(void 0,[et.apply(void 0,i.concat([u.sent()])),{state:o}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,et.apply(void 0,[et.apply(void 0,a.concat([u.sent()])),{state:o}])];case 4:return[3,6];case 5:throw s=u.sent(),at.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t=We(),n=e.state;if(t&&t!==n)throw new Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return tt(this,void 0,void 0,(function(){var e,t,n;return nt(this,(function(r){return e="https://"+this._config.domain+"/logout?",t=u(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=u(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=rt(e,2),n=t[0],r=t[1];return n+"="+r})).join("&"),it("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),at.debug("Signing out from "+e),[2,this._urlOpener(e,n)]}))}))},e.prototype._generateState=function(e){for(var t="",n=e,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(Je()(e))},e.prototype._base64URL=function(e){return e.toString(Qe()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",n=new Uint8Array(e);if("undefined"!==typeof window&&window.crypto)window.crypto.getRandomValues(n);else for(var r=0;r0&&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},wt=new v("AuthClass"),St="aws.cognito.signin.user.admin",_t=1e4,Ct="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Et=function(e,t,n){E.dispatch("auth",{event:e,data:t,message:n},"Auth",Ct)},xt=60,At=function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=Le,this.wrapRefreshSessionCallback=function(e){var t=function(t,n){return n?Et("tokenRefresh",void 0,"New token retrieved"):Et("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,n)};return t},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),E.listen("auth",(function(e){var n=e.payload,r=n.event;switch(r){case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true");break}}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};wt.debug("configure Auth");var n=Object.assign({},this._config,Ne.parseMobilehubConfig(e).Auth,e);this._config=n;var r=this._config,o=r.userPoolId,i=r.userPoolWebClientId,a=r.cookieStorage,s=r.oauth,l=r.region,c=r.identityPoolId,f=r.mandatorySignIn,d=r.refreshHandlers,h=r.identityPoolRegion,p=r.clientMetadata,g=r.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw wt.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=a?new ze.eR(a):e.ssr?new Be:(new k).getStorage();if(this._storageSync=Promise.resolve(),"function"===typeof this._storage["sync"]&&(this._storageSync=this._storage["sync"]()),o){var v={UserPoolId:o,ClientId:i,endpoint:g};v.Storage=this._storage,this.userPool=new ze.AM(v,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:f,region:h||l,userPoolId:o,identityPoolId:c,refreshHandlers:d,storage:this._storage});var m=s?u(this._config.oauth)?s:s.awsCognito:void 0;if(m){var y=Object.assign({cognitoClientId:i,UserPoolId:o,domain:m["domain"],scopes:m["scope"],redirectSignIn:m["redirectSignIn"],redirectSignOut:m["redirectSignOut"],responseType:m["responseType"],Storage:this._storage,urlOpener:m["urlOpener"],clientMetadata:p},m["options"]);this._oAuthHandler=new ut({scopes:y.scopes,config:y,cognitoClientId:y.cognitoClientId});var b={};lt((function(e){var n=e.url;b[n]||(b[n]=!0,t._handleAuthResponse(n))}))}return Et("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],r=1;r{"use strict";var r;n.d(t,{A:()=>r}),function(e){e["DEFAULT_MSG"]="Authentication Error",e["EMPTY_EMAIL"]="Email cannot be empty",e["EMPTY_PHONE"]="Phone number cannot be empty",e["EMPTY_USERNAME"]="Username cannot be empty",e["INVALID_USERNAME"]="The username should either be a string or one of the sign in types",e["EMPTY_PASSWORD"]="Password cannot be empty",e["EMPTY_CODE"]="Confirmation code cannot be empty",e["SIGN_UP_ERROR"]="Error creating account",e["NO_MFA"]="No valid MFA method provided",e["INVALID_MFA"]="Invalid MFA type",e["EMPTY_CHALLENGE"]="Challenge response cannot be empty",e["NO_USER_SESSION"]="Failed to get the session because the user is empty",e["NETWORK_ERROR"]="Network Error",e["DEVICE_CONFIG"]="Device tracking has not been configured in this User Pool"}(r||(r={}))},5696:(e,t,n)=>{"use strict";n.d(t,{sD:()=>o,ZA:()=>we,xk:()=>Ce,bR:()=>Ee,ws:()=>Fe,KC:()=>Oe,AM:()=>st,MZ:()=>ke,eR:()=>lt,Ib:()=>$e}); /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var r,o=function(){function e(e){var t=e||{},n=t.ValidationData,r=t.Username,o=t.Password,i=t.AuthParameters,a=t.ClientMetadata;this.validationData=n||{},this.authParameters=i||{},this.clientMetadata=a||{},this.username=r,this.password=o}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),i=n(6124),a=n(3486),s=n.n(a),u=(n(190),n(5250)),l=n.n(u),c=n(7944),f=n.n(c);if("undefined"!==typeof window&&window.crypto&&(r=window.crypto),!r&&"undefined"!==typeof window&&window.msCrypto&&(r=window.msCrypto),!r&&"undefined"!==typeof n.g&&n.g.crypto&&(r=n.g.crypto),!r)try{r=n(3727)}catch(ct){}function d(){if(r){if("function"===typeof r.getRandomValues)try{return r.getRandomValues(new Uint32Array(1))[0]}catch(ct){}if("function"===typeof r.randomBytes)try{return r.randomBytes(4).readInt32LE()}catch(ct){}}throw new Error("Native crypto module could not be used to get secure random number.")}function h(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")}var p=function(){function e(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],r=0;r=0){var a=t*this[e++]+n[r]+o;o=Math.floor(a/67108864),n[r++]=67108863&a}return o}function _(e,t,n,r,o,i){var a=32767&t,s=t>>15;while(--i>=0){var u=32767&this[e],l=this[e++]>>15,c=s*u+l*a;u=a*u+((32767&c)<<15)+n[r]+(1073741823&o),o=(u>>>30)+(c>>>15)+s*l+(o>>>30),n[r++]=1073741823&u}return o}function C(e,t,n,r,o,i){var a=16383&t,s=t>>14;while(--i>=0){var u=16383&this[e],l=this[e++]>>14,c=s*u+l*a;u=a*u+((16383&c)<<14)+n[r]+o,o=(u>>28)+(c>>14)+s*l,n[r++]=268435455&u}return o}var E="undefined"!==typeof navigator;E&&w&&"Microsoft Internet Explorer"==navigator.appName?(v.prototype.am=_,y=30):E&&w&&"Netscape"!=navigator.appName?(v.prototype.am=S,y=26):(v.prototype.am=C,y=28),v.prototype.DB=y,v.prototype.DM=(1<=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s}function R(e){this.t=1,this.s=e<0?-1:0,e>0?this[0]=e:e<-1?this[0]=e+this.DV:this.t=0}function M(e){var t=m();return t.fromInt(e),t}function U(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;var r=e.length,o=!1,i=0;while(--r>=0){var a=O(e,r);a<0?"-"==e.charAt(r)&&(o=!0):(o=!1,0==i?this[this.t++]=a:i+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-i):this[this.t-1]|=a<=this.DB&&(i-=this.DB))}this.clamp(),o&&v.ZERO.subTo(this,this)}function N(){var e=this.s&this.DM;while(this.t>0&&this[this.t-1]==e)--this.t}function F(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<0){s>s)>0&&(o=!0,i=P(n));while(a>=0)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(o=!0),o&&(i+=P(n))}return o?i:"0"}function D(){var e=m();return v.ZERO.subTo(this,e),e}function B(){return this.s<0?this.negate():this}function j(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(t=n-e.t,0!=t)return this.s<0?-t:t;while(--n>=0)if(0!=(t=this[n]-e[n]))return t;return 0}function q(e){var t,n=1;return 0!=(t=e>>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function z(){return this.t<=0?0:this.DB*(this.t-1)+q(this[this.t-1]^this.s&this.DM)}function $(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s}function H(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>o|s,s=(this[n]&i)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()}function K(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,o=this.DB-r,i=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&i)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{r+=this.s;while(n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()}function G(e,t){var n=this.abs(),r=e.abs(),o=n.t;t.t=o+r.t;while(--o>=0)t[o]=0;for(o=0;o=0)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()}function Y(e,t,n){var r=e.abs();if(!(r.t<=0)){var o=this.abs();if(o.t0?(r.lShiftTo(u,i),o.lShiftTo(u,n)):(r.copyTo(i),o.copyTo(n));var l=i.t,c=i[l-1];if(0!=c){var f=c*(1<1?i[l-2]>>this.F2:0),d=this.FV/f,h=(1<=0&&(n[n.t++]=1,n.subTo(b,n)),v.ONE.dlShiftTo(l,b),b.subTo(i,i);while(i.t=0){var w=n[--g]==c?this.DM:Math.floor(n[g]*d+(n[g-1]+p)*h);if((n[g]+=i.am(0,w,n,y,0,l))0&&n.rShiftTo(u,n),a<0&&v.ZERO.subTo(n,n)}}}function J(e){var t=m();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(v.ZERO)>0&&e.subTo(t,t),t}function X(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var t=3&e;return t=t*(2-(15&e)*t)&15,t=t*(2-(255&e)*t)&255,t=t*(2-((65535&e)*t&65535))&65535,t=t*(2-e*t%this.DV)%this.DV,t>0?this.DV-t:-t}function Q(e){return 0==this.compareTo(e)}function ee(e,t){var n=0,r=0,o=Math.min(e.t,this.t);while(n>=this.DB;if(e.t>=this.DB;r+=this.s}else{r+=this.s;while(n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()}function te(e){var t=m();return this.addTo(e,t),t}function ne(e){var t=m();return this.subTo(e,t),t}function re(e){var t=m();return this.multiplyTo(e,t),t}function oe(e){var t=m();return this.divRemTo(e,t,null),t}function ie(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t}function se(e){var t=m();return e.copyTo(t),this.reduce(t),t}function ue(e){while(e.t<=this.mt2)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;n=t+this.m.t,e[n]+=this.m.am(0,r,e,t,0,this.m.t);while(e[n]>=e.DV)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)}function le(e,t){e.squareTo(t),this.reduce(t)}function ce(e,t,n){e.multiplyTo(t,n),this.reduce(n)}function fe(e,t,n){var r,o=e.bitLength(),i=M(1),a=new ie(t);if(o<=0)return i;r=o<18?1:o<48?3:o<144?4:o<768?5:6;var s=new Array,u=3,l=r-1,c=(1<1){var f=m();a.sqrTo(s[1],f);while(u<=c)s[u]=m(),a.mulTo(f,s[u-2],s[u]),u+=2}var d,h,p=e.t-1,g=!0,v=m();o=q(e[p])-1;while(p>=0){o>=l?d=e[p]>>o-l&c:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+o-l)),u=r;while(0==(1&d))d>>=1,--u;if((o-=u)<0&&(o+=this.DB,--p),g)s[d].copyTo(i),g=!1;else{while(u>1)a.sqrTo(i,v),a.sqrTo(v,i),u-=2;u>0?a.sqrTo(i,v):(h=i,i=v,v=h),a.mulTo(v,s[d],i)}while(p>=0&&0==(e[p]&1<e)&&o}}var ot=3e5;function it(e,t,n){return void 0===n&&(n=ot),nt(e,t,rt(n))} /*! * Copyright 2016 Amazon.com, * Inc. or its affiliates. All Rights Reserved. * * Licensed under the Amazon Software License (the "License"). * You may not use this file except in compliance with the * License. A copy of the License is located at * * http://aws.amazon.com/asl/ * * or in the "license" file accompanying this file. This file is * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, express or implied. See the License * for the specific language governing permissions and * limitations under the License. */ var at=55,st=function(){function e(e,t){var n=e||{},r=n.UserPoolId,o=n.ClientId,i=n.endpoint,a=n.fetchOptions,s=n.AdvancedSecurityDataCollectionFlag;if(!r||!o)throw new Error("Both UserPoolId and ClientId are required.");if(r.length>at||!/^[\w-]+_[0-9a-zA-Z]+$/.test(r))throw new Error("Invalid UserPoolId format.");var u=r.split("_")[0];this.userPoolId=r,this.clientId=o,this.client=new Qe(u,i,a),this.advancedSecurityDataCollectionFlag=!1!==s,this.storage=e.Storage||(new Me).getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,n,r,o,i){var a=this,s={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:r,ClientMetadata:i};this.getUserContextData(e)&&(s.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",s,(function(t,n){if(t)return o(t,null);var r={Username:e,Pool:a,Storage:a.storage},i={user:new Fe(r),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDeliveryDetails};return o(null,i)}))},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new Fe(n)}return null},t.getUserContextData=function(e){if("undefined"!==typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n){var r={EncodedData:n};return r}}return{}}},e}(),ut=n(2599),lt=function(){function e(e){if(!e.domain)throw new Error("The domain of cookieStorage can not be undefined.");if(this.domain=e.domain,e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),ut.set(e,t,n),ut.get(e)},t.getItem=function(e){return ut.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),ut.remove(e,t)},t.clear=function(){for(var e=ut.get(),t=Object.keys(e).length,n=0;n{"use strict";var r=n(3282),o=n(2259),i=n(5348); /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */function a(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"===typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(t){return!1}}function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),l.alloc(+e)}function w(e,t){if(l.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(e).length;default:if(r)return Y(e).length;t=(""+t).toLowerCase(),r=!0}}function S(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return F(this,t,n);case"utf8":case"utf-8":return L(this,t,n);case"ascii":return U(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return D(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function C(e,t,n,r,o){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"===typeof t&&(t=l.from(t,r)),l.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,o);if("number"===typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,o){var i,a=1,s=e.length,u=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var c=-1;for(i=n;is&&(n=s-u),i=n;i>=0;i--){for(var f=!0,d=0;do&&(r=o)):r=o;var i=t.length;if(i%2!==0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(c=l);break;case 2:i=e[o+1],128===(192&i)&&(u=(31&l)<<6|63&i,u>127&&(c=u));break;case 3:i=e[o+1],a=e[o+2],128===(192&i)&&128===(192&a)&&(u=(15&l)<<12|(63&i)<<6|63&a,u>2047&&(u<55296||u>57343)&&(c=u));break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128===(192&i)&&128===(192&a)&&128===(192&s)&&(u=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&s,u>65535&&u<1114112&&(c=u))}null===c?(c=65533,f=1):c>65535&&(c-=65536,r.push(c>>>10&1023|55296),c=56320|1023&c),r.push(c),o+=f}return M(r)}t.lW=l,t.h2=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:a(),s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return d(null,e,t,n)},l.allocUnsafe=function(e){return h(null,e)},l.allocUnsafeSlow=function(e){return h(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},l.prototype.compare=function(e,t,n,r,o){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),u=this.slice(r,o),c=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return x(this,e,t,n);case"utf8":case"utf-8":return A(this,e,t,n);case"ascii":return k(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return I(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function M(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function j(e,t,n,r,o,i){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function q(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function z(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function $(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function H(e,t,n,r,i){return i||$(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function V(e,t,n,r,i){return i||$(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}l.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(o*=256))r+=this[e+--t]*o;return r},l.prototype.readUInt8=function(e,t){return t||B(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||B(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||B(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||B(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||B(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var r=this[e],o=1,i=0;while(++i=o&&(r-=Math.pow(2,8*t)),r},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||B(e,t,this.length);var r=t,o=1,i=this[e+--r];while(r>0&&(o*=256))i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return t||B(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||B(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||B(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||B(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||B(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||B(e,4,this.length),o.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||B(e,4,this.length),o.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||B(e,8,this.length),o.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||B(e,8,this.length),o.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var o=Math.pow(2,8*n)-1;j(this,e,t,n,o,0)}var i=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+i]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):z(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=0,a=1,s=0;this[t]=255&e;while(++i>0)-s&255;return t+n},l.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);j(this,e,t,n,o-1,-o)}var i=n-1,a=1,s=0;this[t+i]=255&e;while(--i>=0&&(a*=256))e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):q(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):q(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):z(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||j(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):z(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return H(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return H(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return V(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return V(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function J(e){for(var t=[],n=0;n>8,o=n%256,i.push(o),i.push(r)}return i}function Q(e){return r.toByteArray(W(e))}function ee(e,t,n,r){for(var o=0;o=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function te(e){return e!==e}},1803:(e,t,n)=>{"use strict";n.d(t,{dQ:()=>s});var r=n(6867),o=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{while((void 0===t||t-- >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},i=new r.k("Amplify"),a=function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Geo=null,this.Logger=r.k,this.ServiceWorker=null}return e.prototype.register=function(e){i.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):i.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),i.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=o(e,2),r=(n[0],n[1]);Object.keys(r).forEach((function(e){t._modules[e]&&(r[e]=t._modules[e])}))})),this._components.map((function(e){e.configure(t._config)})),this._config):this._config},e.prototype.addPluggable=function(e){e&&e["getCategory"]&&"function"===typeof e["getCategory"]&&this._components.map((function(t){t["addPluggable"]&&"function"===typeof t["addPluggable"]&&t.addPluggable(e)}))},e}(),s=new a},3987:(e,t,n)=>{"use strict";n.d(t,{cN:()=>H});var r=n(6867),o=n(6586),i=n(5148),a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},u=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&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},c=function(){for(var e=[],t=0;te)&&o}}var m=function(e,t,n){return void 0===n&&(n=g),p(e,t,v(n))},y=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},b=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&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&&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&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1](new Date).getTime()?(j.debug("token not expired"),this._setCredentialsFromFederation({provider:t,token:r,user:n,identity_id:o,expires_at:i})):a._refreshHandlers[t]&&"function"===typeof a._refreshHandlers[t]?(j.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:a._refreshHandlers[t],provider:t,user:n})):(j.debug("no refresh handler for provider:",t),this.clear(),Promise.reject("no refresh handler for provider"))},e.prototype._providerRefreshWithRetry=function(e){var t=this,n=e.refreshHandler,r=e.provider,o=e.user,i=1e4;return m(n,[],i).then((function(e){return j.debug("refresh federated token sucessfully",e),t._setCredentialsFromFederation({provider:r,token:e.token,user:o,identity_id:e.identity_id,expires_at:e.expires_at})})).catch((function(e){var n="string"===typeof e&&0===e.toLowerCase().lastIndexOf("network error",e.length);return n||t.clear(),j.debug("refresh federated token failed",e),Promise.reject("refreshing federation token failed: "+e)}))},e.prototype._isExpired=function(e){if(!e)return j.debug("no credentials for expiration check"),!0;j.debug("are these credentials expired?",e);var t=Date.now(),n=e.expiration;return n.getTime()<=t},e.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},e.prototype._setCredentialsForGuest=function(){return D(this,void 0,void 0,(function(){var e,t,n,r,o,i,a,s,u,l,c=this;return B(this,(function(f){switch(f.label){case 0:return j.debug("setting credentials for guest"),e=this._config,t=e.identityPoolId,n=e.region,r=e.mandatorySignIn,r?[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")]:t?n?(i=this,[4,this._getGuestIdentityId()]):(j.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")]):(j.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")]);case 1:return o=i._identityId=f.sent(),a=new M.Q({region:n,customUserAgent:(0,P.Zm)()}),s=void 0,o?(u={identityId:o,client:a},s=(0,L.o)(u)()):(l=function(){return D(c,void 0,void 0,(function(){var e,n,r;return B(this,(function(o){switch(o.label){case 0:return[4,a.send(new U.n({IdentityPoolId:t}))];case 1:return e=o.sent().IdentityId,this._identityId=e,n={client:a,identityId:e},r=(0,L.o)(n),[2,r()]}}))}))},s=l().catch((function(e){return D(c,void 0,void 0,(function(){return B(this,(function(t){throw e}))}))}))),[2,this._loadCredentials(s,"guest",!1,null).then((function(e){return e})).catch((function(e){return D(c,void 0,void 0,(function(){var n,r=this;return B(this,(function(i){switch(i.label){case 0:return"ResourceNotFoundException"!==e.name||e.message!=="Identity '"+o+"' not found."?[3,2]:(j.debug("Failed to load guest credentials"),[4,this._removeGuestIdentityId()]);case 1:return i.sent(),n=function(){return D(r,void 0,void 0,(function(){var e,n,r;return B(this,(function(o){switch(o.label){case 0:return[4,a.send(new U.n({IdentityPoolId:t}))];case 1:return e=o.sent().IdentityId,this._identityId=e,n={client:a,identityId:e},r=(0,L.o)(n),[2,r()]}}))}))},s=n().catch((function(e){return D(r,void 0,void 0,(function(){return B(this,(function(t){throw e}))}))})),[2,this._loadCredentials(s,"guest",!1,null)];case 2:return[2,e]}}))}))}))]}}))}))},e.prototype._setCredentialsFromFederation=function(e){var t=e.provider,n=e.token,r=e.identity_id,o={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"},i=o[t]||t;if(!i)return Promise.reject("You must specify a federated provider");var a={};a[i]=n;var s=this._config,u=s.identityPoolId,l=s.region;if(!u)return j.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!l)return j.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var c=new M.Q({region:l,customUserAgent:(0,P.Zm)()}),f=void 0;if(r){var d={identityId:r,logins:a,client:c};f=(0,L.o)(d)()}else{d={logins:a,identityPoolId:u,client:c};f=(0,R.s)(d)()}return this._loadCredentials(f,"federated",!0,e)},e.prototype._setCredentialsFromSession=function(e){var t=this;j.debug("set credentials from session");var n=e.getIdToken().getJwtToken(),r=this._config,o=r.region,i=r.userPoolId,a=r.identityPoolId;if(!a)return j.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!o)return j.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var s="cognito-idp."+o+".amazonaws.com/"+i,u={};u[s]=n;var l=new M.Q({region:o,customUserAgent:(0,P.Zm)()}),c=function(){return D(t,void 0,void 0,(function(){var e,t,n,r,o,i,s,c,f,d;return B(this,(function(h){switch(h.label){case 0:return[4,this._getGuestIdentityId()];case 1:return e=h.sent(),e?[3,3]:[4,l.send(new U.n({IdentityPoolId:a,Logins:u}))];case 2:n=h.sent().IdentityId,t=n,h.label=3;case 3:return[4,l.send(new N.L({IdentityId:e||t,Logins:u}))];case 4:return r=h.sent(),o=r.Credentials,i=o.AccessKeyId,s=o.Expiration,c=o.SecretKey,f=o.SessionToken,d=r.IdentityId,this._identityId=d,e?(j.debug("The guest identity "+e+" has been successfully linked to the logins"),e===d&&j.debug("The guest identity "+e+" has become the primary identity"),[4,this._removeGuestIdentityId()]):[3,6];case 5:h.sent(),h.label=6;case 6:return[2,{accessKeyId:i,secretAccessKey:c,sessionToken:f,expiration:s,identityId:d}]}}))}))},f=c().catch((function(e){return D(t,void 0,void 0,(function(){return B(this,(function(t){throw e}))}))}));return this._loadCredentials(f,"userPool",!0,null)},e.prototype._loadCredentials=function(e,t,n,r){var o=this,i=this;return new Promise((function(a,s){e.then((function(e){return D(o,void 0,void 0,(function(){var o,s,u,l,c;return B(this,(function(f){switch(f.label){case 0:if(j.debug("Load credentials successfully",e),this._identityId&&!e.identityId&&(e["identityId"]=this._identityId),i._credentials=e,i._credentials.authenticated=n,i._credentials_source=t,i._nextCredentialsRefresh=(new Date).getTime()+q,"federated"===t){o=Object.assign({id:this._credentials.identityId},r.user),s=r.provider,u=r.token,l=r.expires_at,c=r.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:s,token:u,user:o,expires_at:l,identity_id:c}))}catch(d){j.debug("Failed to put federated info into auth storage",d)}}return"guest"!==t?[3,2]:[4,this._setGuestIdentityId(e.identityId)];case 1:f.sent(),f.label=2;case 2:return a(i._credentials),[2]}}))}))})).catch((function(t){if(t)return j.debug("Failed to load credentials",e),j.debug("Error loading credentials",t),void s(t)}))}))},e.prototype.set=function(e,t){return"session"===t?this._setCredentialsFromSession(e):"federation"===t?this._setCredentialsFromFederation(e):"guest"===t?this._setCredentialsForGuest():(j.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},e.prototype.clear=function(){return D(this,void 0,void 0,(function(){return B(this,(function(e){return this._credentials=null,this._credentials_source=null,j.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]}))}))},e.prototype._getGuestIdentityId=function(){return D(this,void 0,void 0,(function(){var e,t;return B(this,(function(n){switch(n.label){case 0:e=this._config.identityPoolId,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this._storageSync];case 2:return n.sent(),[2,this._storage.getItem(this._getCognitoIdentityIdStorageKey(e))];case 3:return t=n.sent(),j.debug("Failed to get the cached guest identityId",t),[3,4];case 4:return[2]}}))}))},e.prototype._setGuestIdentityId=function(e){return D(this,void 0,void 0,(function(){var t,n;return B(this,(function(r){switch(r.label){case 0:t=this._config.identityPoolId,r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this._storageSync];case 2:return r.sent(),this._storage.setItem(this._getCognitoIdentityIdStorageKey(t),e),[3,4];case 3:return n=r.sent(),j.debug("Failed to cache guest identityId",n),[3,4];case 4:return[2]}}))}))},e.prototype._removeGuestIdentityId=function(){return D(this,void 0,void 0,(function(){var e;return B(this,(function(t){return e=this._config.identityPoolId,j.debug("removing "+this._getCognitoIdentityIdStorageKey(e)+" from storage"),this._storage.removeItem(this._getCognitoIdentityIdStorageKey(e)),[2]}))}))},e.prototype.shear=function(e){return{accessKeyId:e.accessKeyId,sessionToken:e.sessionToken,secretAccessKey:e.secretAccessKey,identityId:e.identityId,authenticated:e.authenticated}},e}(),H=new $(null);O.dQ.register(H)},6954:(e,t,n)=>{"use strict";n.d(t,{Xb:()=>f});var r=n(6867),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0)&&!(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},a=function(){for(var e=[],t=0;t-1){var i=r===u;i||s.warn("WARNING: "+e+" is protected and dispatching on it can have unintended consequences")}var a={channel:e,payload:o({},t),source:n,patternInfo:[]};try{this._toListeners(a)}catch(l){s.error(l)}},e.prototype.listen=function(e,t,n){var r,o=this;if(void 0===n&&(n="noname"),l(t))s.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),r=t.onHubCapsule.bind(t);else{if("function"!==typeof t)throw new Error("No callback supplied to Hub");r=t}if(e instanceof RegExp)this.patterns.push({pattern:e,callback:r});else{var i=this.listeners[e];i||(i=[],this.listeners[e]=i),i.push({name:n,callback:r})}return function(){o.remove(e,r)}},e.prototype._toListeners=function(e){var t=e.channel,n=e.payload,r=this.listeners[t];if(r&&r.forEach((function(r){s.debug("Dispatching to "+t+" with ",n);try{r.callback(e)}catch(o){s.error(o)}})),this.patterns.length>0){if(!n.message)return void s.warn("Cannot perform pattern matching without a message key");var a=n.message;this.patterns.forEach((function(t){var n=a.match(t.pattern);if(n){var r=i(n),u=r.slice(1),l=o(o({},e),{patternInfo:u});try{t.callback(l)}catch(c){s.error(c)}}}))}},e}(),f=new c("__default__")},7619:(e,t,n)=>{"use strict";n.d(t,{o:()=>c});var r=n(6867),o=new r.k("I18n"),i=function(){function e(e){this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},e),this._lang=this._options.language,!this._lang&&"undefined"!==typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),o.debug(this._lang)}return e.prototype.setLanguage=function(e){this._lang=e},e.prototype.get=function(e,t){if(void 0===t&&(t=void 0),!this._lang)return"undefined"!==typeof t?t:e;var n=this._lang,r=this.getByLanguage(e,n);return r||(n.indexOf("-")>0&&(r=this.getByLanguage(e,n.split("-")[0])),r||("undefined"!==typeof t?t:e))},e.prototype.getByLanguage=function(e,t,n){if(void 0===n&&(n=null),!t)return n;var r=this._dict[t];return r?r[e]:n},e.prototype.putVocabulariesForLanguage=function(e,t){var n=this._dict[e];n||(n=this._dict[e]={}),Object.assign(n,t)},e.prototype.putVocabularies=function(e){var t=this;Object.keys(e).map((function(n){t.putVocabulariesForLanguage(n,e[n])}))},e}(),a=n(1803),s=new r.k("I18n"),u=null,l=null,c=function(){function e(){}return e.configure=function(t){return s.debug("configure I18n"),t?(u=Object.assign({},u,t.I18n||t),e.createInstance(),u):u},e.getModuleName=function(){return"I18n"},e.createInstance=function(){s.debug("create I18n instance"),l||(l=new i(u))},e.setLanguage=function(t){return e.checkConfig(),l.setLanguage(t)},e.get=function(t,n){return e.checkConfig()?l.get(t,n):"undefined"===typeof n?t:n},e.putVocabulariesForLanguage=function(t,n){return e.checkConfig(),l.putVocabulariesForLanguage(t,n)},e.putVocabularies=function(t){return e.checkConfig(),l.putVocabularies(t)},e.checkConfig=function(){return l||(l=new i(u)),!0},e}();a.dQ.register(c)},5148:(e,t,n)=>{"use strict";n.d(t,{xb:()=>o,rI:()=>s,ML:()=>c,lC:()=>d,JS:()=>v});var r=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],o=function(e){return void 0===e&&(e={}),0===Object.keys(e).length},i=function(e,t,n){if(!e||!e.sort)return!1;var r=n&&"desc"===n?-1:1;return e.sort((function(e,n){var o=e[t],i=n[t];return"undefined"===typeof i?"undefined"===typeof o?0:1*r:"undefined"===typeof o||oi?1*r:0})),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),o=r.filter((function(e){return n.endsWith("."+e.ext)}));return o.length>0?o[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},l=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},c=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,o=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return o.isFullfilled=function(){return r},o.isPending=function(){return t},o.isRejected=function(){return n},o},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){var e="undefined"!==typeof window&&"undefined"!==typeof window.document,t="undefined"!==typeof process&&null!=process.versions&&null!=process.versions.node;return{isBrowser:e,isNode:t}},h=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!g(e))return e;var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=t.includes(o)?o:o[0].toLowerCase()+o.slice(1);r[i]=n.includes(o)?e[o]:h(e[o],t,n)}return r},p=function(e,t,n){if(void 0===t&&(t=[]),void 0===n&&(n=[]),!g(e))return e;var r={};for(var o in e)if(e.hasOwnProperty(o)){var i=t.includes(o)?o:o[0].toUpperCase()+o.slice(1);r[i]=n.includes(o)?e[o]:p(e[o],t,n)}return r},g=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},v=function(){function e(){}return e.isEmpty=o,e.sortByField=i,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=l,e.makeQuerablePromise=c,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=h,e.transferKeyToUpperCase=p,e.isStrictObject=g,e}()},6867:(e,t,n)=>{"use strict";n.d(t,{k:()=>l});var r,o="Logging",i=function(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},a=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{while((void 0===t||t-- >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},s=function(){for(var e=[],t=0;t=c){var d=console.log.bind(console);t===r.ERROR&&console.error&&(d=console.error.bind(console)),t===r.WARN&&console.warn&&(d=console.warn.bind(console));var h="["+t+"] "+this._ts()+" "+this.name,p="";if(1===a.length&&"string"===typeof a[0])p=h+" - "+a[0],d(p);else if(1===a.length)p=h+" "+a[0],d(h,a[0]);else if("string"===typeof a[0]){var g=a.slice(1);1===g.length&&(g=g[0]),p=h+" - "+a[0]+" "+g,d(h+" - "+a[0],g)}else p=h+" "+a,d(h,a);try{for(var v=i(this._pluggables),m=v.next();!m.done;m=v.next()){var y=m.value,b={message:p,timestamp:Date.now()};y.pushLogs([b])}}catch(w){n={error:w}}finally{try{m&&!m.done&&(o=v.return)&&o.call(v)}finally{if(n)throw n.error}}}},e.prototype.log=function(){for(var e=[],t=0;t{"use strict";n.d(t,{_b:()=>s});var r=n(6867),o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{t4:()=>i,Zm:()=>a});var r="4.2.11",o="aws-amplify/"+r,i={userAgent:o+" js",product:"",navigator:null,isReactNative:!1};if("undefined"!==typeof navigator&&navigator.product)switch(i.product=navigator.product||"",i.navigator=navigator||null,navigator.product){case"ReactNative":i.userAgent=o+" react-native",i.isReactNative=!0;break;default:i.userAgent=o+" js",i.isReactNative=!1;break}var a=function(){return i.userAgent}},6586:(e,t,n)=>{"use strict";n.d(t,{c4:()=>i});var r={},o=function(){function e(){}return e.setItem=function(e,t){return r[e]=t,r[e]},e.getItem=function(e){return Object.prototype.hasOwnProperty.call(r,e)?r[e]:void 0},e.removeItem=function(e){return delete r[e]},e.clear=function(){return r={},r},e}(),i=function(){function e(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(e){this.storageWindow=o}}return e.prototype.getStorage=function(){return this.storageWindow},e}()},2493:(e,t,n)=>{"use strict";n.d(t,{Ke:()=>ql});var r,o,i,a,s,u,l,c,f,d,h,p,g,v,m,y,b,w,S,_,C,E,x,A,k,T,I,P,O,L,R,M,U,N,F,D,B,j,q,z,$,H,V,K,W,G,Z,Y,J,X,Q,ee,te,ne,re,oe,ie,ae,se,ue,le,ce,fe,de,he,pe,ge,ve,me,ye,be,we,Se,_e,Ce,Ee,xe,Ae,ke,Te,Ie,Pe,Oe,Le,Re,Me,Ue,Ne,Fe,De,Be,je,qe,ze,$e,He,Ve,Ke,We,Ge,Ze,Ye,Je,Xe,Qe,et,tt,nt,rt,ot,it,at,st,ut,lt,ct,ft,dt,ht,pt,gt,vt,mt,yt,bt,wt,St,_t,Ct,Et,xt,At,kt,Tt,It,Pt,Ot,Lt,Rt,Mt,Ut,Nt,Ft,Dt,Bt,jt,qt,zt,$t,Ht,Vt,Kt,Wt,Gt,Zt,Yt,Jt,Xt,Qt,en,tn,nn,rn,on,an,sn,un,ln,cn,fn,dn,hn,pn,gn,vn,mn,yn,bn,wn,Sn,_n,Cn,En,xn,An,kn,Tn,In,Pn,On,Ln,Rn,Mn,Un,Nn,Fn,Dn,Bn,jn,qn,zn,$n,Hn,Vn,Kn,Wn,Gn,Zn,Yn,Jn,Xn,Qn,er,tr,nr,rr,or,ir,ar,sr,ur,lr,cr,fr,dr,hr,pr,gr,vr,mr,yr,br,wr,Sr,_r,Cr,Er,xr,Ar,kr,Tr,Ir,Pr,Or,Lr,Rr,Mr,Ur,Nr,Fr,Dr,Br=n(6867),jr=n(2305),qr=n(6954),zr=n(3987),$r=n(8174),Hr=n(8430),Vr=n(1016);(function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}})(r||(r={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(o||(o={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(i||(i={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(a||(a={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(s||(s={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(u||(u={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(l||(l={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(c||(c={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(f||(f={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(d||(d={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc})}}(h||(h={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(p||(p={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(g||(g={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(v||(v={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(m||(m={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Vr.oc})}}(y||(y={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Vr.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Vr.oc}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Vr.oc})}}(b||(b={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(w||(w={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(S||(S={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(_||(_={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(C||(C={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(E||(E={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(x||(x={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Vr.oc})}}(A||(A={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Vr.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Vr.oc})}}(k||(k={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(T||(T={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(I||(I={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(P||(P={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(O||(O={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(L||(L={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(R||(R={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(M||(M={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(U||(U={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(N||(N={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(F||(F={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(D||(D={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(B||(B={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(j||(j={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(q||(q={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(z||(z={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}($||($={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(H||(H={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(V||(V={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(K||(K={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(W||(W={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(G||(G={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Z||(Z={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Y||(Y={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(J||(J={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(X||(X={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Q||(Q={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ee||(ee={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(te||(te={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ne||(ne={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(re||(re={})),function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:re.filterSensitiveLog(e.And)}:void 0!==e.$unknown?(t={},t[e.$unknown[0]]="UNKNOWN",t):void 0}}(oe||(oe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ie||(ie={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ae||(ae={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(se||(se={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ue||(ue={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Filter&&{Filter:oe.filterSensitiveLog(e.Filter)})}}(le||(le={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:le.filterSensitiveLog(e.AnalyticsConfiguration)})}}(ce||(ce={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(fe||(fe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(de||(de={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(he||(he={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(pe||(pe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.KMSMasterKeyID&&{KMSMasterKeyID:Vr.oc})}}(ge||(ge={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:ge.filterSensitiveLog(e.ApplyServerSideEncryptionByDefault)})}}(ve||(ve={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return ve.filterSensitiveLog(e)}))})}}(me||(me={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:me.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})}}(ye||(ye={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(be||(be={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(we||(we={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Se||(Se={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(_e||(_e={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ce||(Ce={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ee||(Ee={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(xe||(xe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.KeyId&&{KeyId:Vr.oc})}}(Ae||(Ae={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ke||(ke={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMS&&{SSEKMS:Ae.filterSensitiveLog(e.SSEKMS)})}}(Te||(Te={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Encryption&&{Encryption:Te.filterSensitiveLog(e.Encryption)})}}(Ie||(Ie={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.S3BucketDestination&&{S3BucketDestination:Ie.filterSensitiveLog(e.S3BucketDestination)})}}(Pe||(Pe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Oe||(Oe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Le||(Le={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Destination&&{Destination:Pe.filterSensitiveLog(e.Destination)})}}(Re||(Re={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.InventoryConfiguration&&{InventoryConfiguration:Re.filterSensitiveLog(e.InventoryConfiguration)})}}(Me||(Me={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ue||(Ue={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ne||(Ne={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Fe||(Fe={})),function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Fe.filterSensitiveLog(e.And)}:void 0!==e.$unknown?(t={},t[e.$unknown[0]]="UNKNOWN",t):void 0}}(De||(De={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Be||(Be={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(je||(je={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(qe||(qe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Filter&&{Filter:De.filterSensitiveLog(e.Filter)})}}(ze||(ze={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return ze.filterSensitiveLog(e)}))})}}($e||($e={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(He||(He={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ve||(Ve={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ke||(Ke={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(We||(We={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ge||(Ge={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ze||(Ze={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ye||(Ye={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Je||(Je={})),function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Je.filterSensitiveLog(e.And)}:void 0!==e.$unknown?(t={},t[e.$unknown[0]]="UNKNOWN",t):void 0}}(Xe||(Xe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Filter&&{Filter:Xe.filterSensitiveLog(e.Filter)})}}(Qe||(Qe={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.MetricsConfiguration&&{MetricsConfiguration:Qe.filterSensitiveLog(e.MetricsConfiguration)})}}(et||(et={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(tt||(tt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(nt||(nt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(rt||(rt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ot||(ot={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(it||(it={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(at||(at={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(st||(st={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ut||(ut={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(lt||(lt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ct||(ct={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ft||(ft={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(dt||(dt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ht||(ht={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(pt||(pt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(gt||(gt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(vt||(vt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(mt||(mt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(yt||(yt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(bt||(bt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(wt||(wt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(St||(St={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(_t||(_t={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ct||(Ct={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Et||(Et={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(xt||(xt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(At||(At={})),function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:At.filterSensitiveLog(e.And)}:void 0!==e.$unknown?(t={},t[e.$unknown[0]]="UNKNOWN",t):void 0}}(kt||(kt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Tt||(Tt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(It||(It={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Pt||(Pt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Filter&&{Filter:kt.filterSensitiveLog(e.Filter)})}}(Ot||(Ot={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return Ot.filterSensitiveLog(e)}))})}}(Lt||(Lt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:Lt.filterSensitiveLog(e.ReplicationConfiguration)})}}(Rt||(Rt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Mt||(Mt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ut||(Ut={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Nt||(Nt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ft||(Ft={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Dt||(Dt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Bt||(Bt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(jt||(jt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(qt||(qt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(zt||(zt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}($t||($t={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ht||(Ht={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Vt||(Vt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Kt||(Kt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Wt||(Wt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Gt||(Gt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc})}}(Zt||(Zt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Vr.oc})}}(Yt||(Yt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Jt||(Jt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Xt||(Xt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Qt||(Qt={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(en||(en={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(tn||(tn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(nn||(nn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(rn||(rn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(on||(on={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(an||(an={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(sn||(sn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(un||(un={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ln||(ln={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(cn||(cn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(fn||(fn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(dn||(dn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(hn||(hn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(pn||(pn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(gn||(gn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(vn||(vn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(mn||(mn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(yn||(yn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(bn||(bn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(wn||(wn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Sn||(Sn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc})}}(_n||(_n={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Vr.oc})}}(Cn||(Cn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.AnalyticsConfigurationList&&{AnalyticsConfigurationList:e.AnalyticsConfigurationList.map((function(e){return le.filterSensitiveLog(e)}))})}}(En||(En={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(xn||(xn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(An||(An={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(kn||(kn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map((function(e){return Re.filterSensitiveLog(e)}))})}}(Tn||(Tn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(In||(In={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.MetricsConfigurationList&&{MetricsConfigurationList:e.MetricsConfigurationList.map((function(e){return Qe.filterSensitiveLog(e)}))})}}(Pn||(Pn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(On||(On={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ln||(Ln={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Rn||(Rn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Mn||(Mn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Un||(Un={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Nn||(Nn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Fn||(Fn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Dn||(Dn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Bn||(Bn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(jn||(jn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(qn||(qn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(zn||(zn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}($n||($n={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Hn||(Hn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Vn||(Vn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Kn||(Kn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Wn||(Wn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Gn||(Gn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Zn||(Zn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Yn||(Yn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Jn||(Jn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Xn||(Xn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:le.filterSensitiveLog(e.AnalyticsConfiguration)})}}(Qn||(Qn={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(er||(er={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(tr||(tr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:me.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})}}(nr||(nr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(rr||(rr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.InventoryConfiguration&&{InventoryConfiguration:Re.filterSensitiveLog(e.InventoryConfiguration)})}}(or||(or={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return ze.filterSensitiveLog(e)}))})}}(ir||(ir={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.LifecycleConfiguration&&{LifecycleConfiguration:ir.filterSensitiveLog(e.LifecycleConfiguration)})}}(ar||(ar={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(sr||(sr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(ur||(ur={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.MetricsConfiguration&&{MetricsConfiguration:Qe.filterSensitiveLog(e.MetricsConfiguration)})}}(lr||(lr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(cr||(cr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(fr||(fr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(dr||(dr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:Lt.filterSensitiveLog(e.ReplicationConfiguration)})}}(hr||(hr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(pr||(pr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(gr||(gr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(vr||(vr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(mr||(mr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(yr||(yr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(br||(br={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(wr||(wr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Sr||(Sr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Vr.oc})}}(_r||(_r={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Vr.oc}),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Vr.oc})}}(Cr||(Cr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Er||(Er={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(xr||(xr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ar||(Ar={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(kr||(kr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Tr||(Tr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ir||(Ir={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Pr||(Pr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Or||(Or={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Lr||(Lr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Rr||(Rr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Mr||(Mr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ur||(Ur={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Nr||(Nr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Fr||(Fr={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.KMSKeyId&&{KMSKeyId:Vr.oc})}}(Dr||(Dr={}));var Kr=n(957);function Wr(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Gr(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""")}var Zr=function(){function e(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}return e.prototype.withName=function(e){return this.name=e,this},e.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},e.prototype.addChildNode=function(e){return this.children.push(e),this},e.prototype.removeAttribute=function(e){return delete this.attributes[e],this},e.prototype.toString=function(){var e,t,n=Boolean(this.children.length),r="<"+this.name,o=this.attributes;try{for(var i=Wr(Object.keys(o)),a=i.next();!a.done;a=i.next()){var s=a.value,u=o[s];"undefined"!==typeof u&&null!==u&&(r+=" "+s+'="'+Gr(""+u)+'"')}}catch(l){e={error:l}}finally{try{a&&!a.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}return r+(n?">"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e}();function Yr(e){return e.replace(/&/g,"&").replace(//g,">")}var Jr=function(){function e(e){this.value=e}return e.prototype.toString=function(){return Yr(""+this.value)},e}(),Xr=n(4614),Qr=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f;return(0,Hr.Jh)(this,(function(d){switch(d.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)({},Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i=(0,Hr.pi)({"x-id":"AbortMultipartUpload"},void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return s=d.sent(),u=s.hostname,l=s.protocol,c=void 0===l?"https":l,f=s.port,[2,new Kr.aW({protocol:c,hostname:u,port:f,method:"DELETE",headers:n,path:r,query:i,body:a})]}}))}))},eo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f,d;return(0,Hr.Jh)(this,(function(h){switch(h.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)({"content-type":"application/xml"},Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i=(0,Hr.pi)({},void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.MultipartUpload&&(s=Uo(e.MultipartUpload,t),a='',s.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),a+=s.toString()),[4,t.endpoint()];case 1:return u=h.sent(),l=u.hostname,c=u.protocol,f=void 0===c?"https":c,d=u.port,[2,new Kr.aW({protocol:f,hostname:l,port:d,method:"POST",headers:n,path:r,query:i,body:a})]}}))}))},to=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f;return(0,Hr.Jh)(this,(function(d){switch(d.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},Yo(e.ACL)&&{"x-amz-acl":e.ACL}),Yo(e.CacheControl)&&{"cache-control":e.CacheControl}),Yo(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Yo(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Yo(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Yo(e.ContentType)&&{"content-type":e.ContentType}),Yo(e.CopySource)&&{"x-amz-copy-source":e.CopySource}),Yo(e.CopySourceIfMatch)&&{"x-amz-copy-source-if-match":e.CopySourceIfMatch}),Yo(e.CopySourceIfModifiedSince)&&{"x-amz-copy-source-if-modified-since":(0,Vr._w)(e.CopySourceIfModifiedSince).toString()}),Yo(e.CopySourceIfNoneMatch)&&{"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch}),Yo(e.CopySourceIfUnmodifiedSince)&&{"x-amz-copy-source-if-unmodified-since":(0,Vr._w)(e.CopySourceIfUnmodifiedSince).toString()}),Yo(e.Expires)&&{expires:(0,Vr._w)(e.Expires).toString()}),Yo(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Yo(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Yo(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Yo(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Yo(e.MetadataDirective)&&{"x-amz-metadata-directive":e.MetadataDirective}),Yo(e.TaggingDirective)&&{"x-amz-tagging-directive":e.TaggingDirective}),Yo(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Yo(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Yo(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Yo(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Yo(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Yo(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Yo(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Yo(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Yo(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Yo(e.CopySourceSSECustomerAlgorithm)&&{"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm}),Yo(e.CopySourceSSECustomerKey)&&{"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey}),Yo(e.CopySourceSSECustomerKeyMD5)&&{"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5}),Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Yo(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Yo(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Yo(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),Yo(e.ExpectedSourceBucketOwner)&&{"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var r;return(0,Hr.pi)((0,Hr.pi)({},t),(r={},r["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))}),{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i={"x-id":"CopyObject"},[4,t.endpoint()];case 1:return s=d.sent(),u=s.hostname,l=s.protocol,c=void 0===l?"https":l,f=s.port,[2,new Kr.aW({protocol:c,hostname:u,port:f,method:"PUT",headers:n,path:r,query:i,body:a})]}}))}))},no=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f;return(0,Hr.Jh)(this,(function(d){switch(d.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},Yo(e.ACL)&&{"x-amz-acl":e.ACL}),Yo(e.CacheControl)&&{"cache-control":e.CacheControl}),Yo(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Yo(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Yo(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Yo(e.ContentType)&&{"content-type":e.ContentType}),Yo(e.Expires)&&{expires:(0,Vr._w)(e.Expires).toString()}),Yo(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Yo(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Yo(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Yo(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Yo(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Yo(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Yo(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Yo(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Yo(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Yo(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Yo(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Yo(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Yo(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Yo(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Yo(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Yo(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var r;return(0,Hr.pi)((0,Hr.pi)({},t),(r={},r["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))}),{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i={uploads:""},[4,t.endpoint()];case 1:return s=d.sent(),u=s.hostname,l=s.protocol,c=void 0===l?"https":l,f=s.port,[2,new Kr.aW({protocol:c,hostname:u,port:f,method:"POST",headers:n,path:r,query:i,body:a})]}}))}))},ro=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f;return(0,Hr.Jh)(this,(function(d){switch(d.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},Yo(e.MFA)&&{"x-amz-mfa":e.MFA}),Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i=(0,Hr.pi)({"x-id":"DeleteObject"},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return s=d.sent(),u=s.hostname,l=s.protocol,c=void 0===l?"https":l,f=s.port,[2,new Kr.aW({protocol:c,hostname:u,port:f,method:"DELETE",headers:n,path:r,query:i,body:a})]}}))}))},oo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f;return(0,Hr.Jh)(this,(function(d){switch(d.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},Yo(e.IfMatch)&&{"if-match":e.IfMatch}),Yo(e.IfModifiedSince)&&{"if-modified-since":(0,Vr._w)(e.IfModifiedSince).toString()}),Yo(e.IfNoneMatch)&&{"if-none-match":e.IfNoneMatch}),Yo(e.IfUnmodifiedSince)&&{"if-unmodified-since":(0,Vr._w)(e.IfUnmodifiedSince).toString()}),Yo(e.Range)&&{range:e.Range}),Yo(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Yo(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Yo(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({"x-id":"GetObject"},void 0!==e.ResponseCacheControl&&{"response-cache-control":e.ResponseCacheControl}),void 0!==e.ResponseContentDisposition&&{"response-content-disposition":e.ResponseContentDisposition}),void 0!==e.ResponseContentEncoding&&{"response-content-encoding":e.ResponseContentEncoding}),void 0!==e.ResponseContentLanguage&&{"response-content-language":e.ResponseContentLanguage}),void 0!==e.ResponseContentType&&{"response-content-type":e.ResponseContentType}),void 0!==e.ResponseExpires&&{"response-expires":(e.ResponseExpires.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),[4,t.endpoint()];case 1:return s=d.sent(),u=s.hostname,l=s.protocol,c=void 0===l?"https":l,f=s.port,[2,new Kr.aW({protocol:c,hostname:u,port:f,method:"GET",headers:n,path:r,query:i,body:a})]}}))}))},io=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f;return(0,Hr.Jh)(this,(function(d){switch(d.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)({},Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",(0,Vr.jc)(o)),i=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.Marker&&{marker:e.Marker}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),[4,t.endpoint()];case 1:return s=d.sent(),u=s.hostname,l=s.protocol,c=void 0===l?"https":l,f=s.port,[2,new Kr.aW({protocol:c,hostname:u,port:f,method:"GET",headers:n,path:r,query:i,body:a})]}}))}))},ao=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f;return(0,Hr.Jh)(this,(function(d){switch(d.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)({},Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({"x-id":"ListParts"},void 0!==e.MaxParts&&{"max-parts":e.MaxParts.toString()}),void 0!==e.PartNumberMarker&&{"part-number-marker":e.PartNumberMarker}),void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return s=d.sent(),u=s.hostname,l=s.protocol,c=void 0===l?"https":l,f=s.port,[2,new Kr.aW({protocol:c,hostname:u,port:f,method:"GET",headers:n,path:r,query:i,body:a})]}}))}))},so=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f,d;return(0,Hr.Jh)(this,(function(h){switch(h.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({"content-type":"application/octet-stream"},Yo(e.ACL)&&{"x-amz-acl":e.ACL}),Yo(e.CacheControl)&&{"cache-control":e.CacheControl}),Yo(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Yo(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Yo(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Yo(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),Yo(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Yo(e.ContentType)&&{"content-type":e.ContentType}),Yo(e.Expires)&&{expires:(0,Vr._w)(e.Expires).toString()}),Yo(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Yo(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Yo(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Yo(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Yo(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Yo(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Yo(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Yo(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Yo(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Yo(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Yo(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Yo(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Yo(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Yo(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Yo(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Yo(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var r;return(0,Hr.pi)((0,Hr.pi)({},t),(r={},r["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))}),{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i={"x-id":"PutObject"},void 0!==e.Body&&(s=e.Body,a=s),[4,t.endpoint()];case 1:return u=h.sent(),l=u.hostname,c=u.protocol,f=void 0===c?"https":c,d=u.port,[2,new Kr.aW({protocol:f,hostname:l,port:d,method:"PUT",headers:n,path:r,query:i,body:a})]}}))}))},uo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f,d;return(0,Hr.Jh)(this,(function(h){switch(h.label){case 0:if(n=(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({"content-type":"application/octet-stream"},Yo(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),Yo(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Yo(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Yo(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Yo(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Yo(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Yo(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if(o=e.Bucket,o.length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",(0,Vr.jc)(o)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if(o=e.Key,o.length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",o.split("/").map((function(e){return(0,Vr.jc)(e)})).join("/")),i=(0,Hr.pi)((0,Hr.pi)({"x-id":"UploadPart"},void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.Body&&(s=e.Body,a=s),[4,t.endpoint()];case 1:return u=h.sent(),l=u.hostname,c=u.protocol,f=void 0===c?"https":c,d=u.port,[2,new Kr.aW({protocol:f,hostname:l,port:d,method:"PUT",headers:n,path:r,query:i,body:a})]}}))}))},lo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n;return(0,Hr.Jh)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,co(e,t)]:(n={$metadata:Wo(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Go(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},co=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c;return(0,Hr.Jh)(this,(function(f){switch(f.label){case 0:return r=[(0,Hr.pi)({},e)],c={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(c.body=f.sent(),c)])),i="UnknownError",i=Qo(e,n.body),a=i,a){case"NoSuchUpload":return[3,2];case"com.amazonaws.s3#NoSuchUpload":return[3,2]}return[3,4];case 2:return s=[{}],[4,Ro(n,t)];case 3:return o=Hr.pi.apply(void 0,[Hr.pi.apply(void 0,s.concat([f.sent()])),{name:i,$metadata:Wo(e)}]),[3,5];case 4:u=n.body,i=u.code||u.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},u),{name:""+i,message:u.message||u.Message||i,$fault:"client",$metadata:Wo(e)}),f.label=5;case 5:return l=o.message||o.Message||i,o.message=l,delete o.Message,[2,Promise.reject(Object.assign(new Error(l),o))]}}))}))},fo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r;return(0,Hr.Jh)(this,(function(o){switch(o.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ho(e,t)]:(n={$metadata:Wo(e),Bucket:void 0,BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,Key:void 0,Location:void 0,RequestCharged:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Xo(e.body,t)]);case 1:return r=o.sent(),void 0!==r["Bucket"]&&(n.Bucket=r["Bucket"]),void 0!==r["ETag"]&&(n.ETag=r["ETag"]),void 0!==r["Key"]&&(n.Key=r["Key"]),void 0!==r["Location"]&&(n.Location=r["Location"]),[2,Promise.resolve(n)]}}))}))},ho=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u;return(0,Hr.Jh)(this,(function(l){switch(l.label){case 0:return r=[(0,Hr.pi)({},e)],u={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(u.body=l.sent(),u)])),i="UnknownError",i=Qo(e,n.body),i){default:a=n.body,i=a.code||a.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},a),{name:""+i,message:a.message||a.Message||i,$fault:"client",$metadata:Wo(e)})}return s=o.message||o.Message||i,o.message=s,delete o.Message,[2,Promise.reject(Object.assign(new Error(s),o))]}}))}))},po=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r;return(0,Hr.Jh)(this,(function(o){switch(o.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,go(e,t)]:(n={$metadata:Wo(e),BucketKeyEnabled:void 0,CopyObjectResult:void 0,CopySourceVersionId:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-copy-source-version-id"]&&(n.CopySourceVersionId=e.headers["x-amz-copy-source-version-id"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Xo(e.body,t)]);case 1:return r=o.sent(),n.CopyObjectResult=jo(r,t),[2,Promise.resolve(n)]}}))}))},go=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c;return(0,Hr.Jh)(this,(function(f){switch(f.label){case 0:return r=[(0,Hr.pi)({},e)],c={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(c.body=f.sent(),c)])),i="UnknownError",i=Qo(e,n.body),a=i,a){case"ObjectNotInActiveTierError":return[3,2];case"com.amazonaws.s3#ObjectNotInActiveTierError":return[3,2]}return[3,4];case 2:return s=[{}],[4,Mo(n,t)];case 3:return o=Hr.pi.apply(void 0,[Hr.pi.apply(void 0,s.concat([f.sent()])),{name:i,$metadata:Wo(e)}]),[3,5];case 4:u=n.body,i=u.code||u.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},u),{name:""+i,message:u.message||u.Message||i,$fault:"client",$metadata:Wo(e)}),f.label=5;case 5:return l=o.message||o.Message||i,o.message=l,delete o.Message,[2,Promise.reject(Object.assign(new Error(l),o))]}}))}))},vo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r;return(0,Hr.Jh)(this,(function(o){switch(o.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,mo(e,t)]:(n={$metadata:Wo(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,BucketKeyEnabled:void 0,Key:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Xo(e.body,t)]);case 1:return r=o.sent(),void 0!==r["Bucket"]&&(n.Bucket=r["Bucket"]),void 0!==r["Key"]&&(n.Key=r["Key"]),void 0!==r["UploadId"]&&(n.UploadId=r["UploadId"]),[2,Promise.resolve(n)]}}))}))},mo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u;return(0,Hr.Jh)(this,(function(l){switch(l.label){case 0:return r=[(0,Hr.pi)({},e)],u={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(u.body=l.sent(),u)])),i="UnknownError",i=Qo(e,n.body),i){default:a=n.body,i=a.code||a.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},a),{name:""+i,message:a.message||a.Message||i,$fault:"client",$metadata:Wo(e)})}return s=o.message||o.Message||i,o.message=s,delete o.Message,[2,Promise.reject(Object.assign(new Error(s),o))]}}))}))},yo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n;return(0,Hr.Jh)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,bo(e,t)]:(n={$metadata:Wo(e),DeleteMarker:void 0,RequestCharged:void 0,VersionId:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Go(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},bo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u;return(0,Hr.Jh)(this,(function(l){switch(l.label){case 0:return r=[(0,Hr.pi)({},e)],u={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(u.body=l.sent(),u)])),i="UnknownError",i=Qo(e,n.body),i){default:a=n.body,i=a.code||a.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},a),{name:""+i,message:a.message||a.Message||i,$fault:"client",$metadata:Wo(e)})}return s=o.message||o.Message||i,o.message=s,delete o.Message,[2,Promise.reject(Object.assign(new Error(s),o))]}}))}))},wo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r;return(0,Hr.Jh)(this,(function(o){return 200!==e.statusCode&&e.statusCode>=300?[2,So(e,t)]:(n={$metadata:Wo(e),AcceptRanges:void 0,Body:void 0,BucketKeyEnabled:void 0,CacheControl:void 0,ContentDisposition:void 0,ContentEncoding:void 0,ContentLanguage:void 0,ContentLength:void 0,ContentRange:void 0,ContentType:void 0,DeleteMarker:void 0,ETag:void 0,Expiration:void 0,Expires:void 0,LastModified:void 0,Metadata:void 0,MissingMeta:void 0,ObjectLockLegalHoldStatus:void 0,ObjectLockMode:void 0,ObjectLockRetainUntilDate:void 0,PartsCount:void 0,ReplicationStatus:void 0,RequestCharged:void 0,Restore:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,StorageClass:void 0,TagCount:void 0,VersionId:void 0,WebsiteRedirectLocation:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["accept-ranges"]&&(n.AcceptRanges=e.headers["accept-ranges"]),void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-restore"]&&(n.Restore=e.headers["x-amz-restore"]),void 0!==e.headers["last-modified"]&&(n.LastModified=new Date(e.headers["last-modified"])),void 0!==e.headers["content-length"]&&(n.ContentLength=parseInt(e.headers["content-length"],10)),void 0!==e.headers["etag"]&&(n.ETag=e.headers["etag"]),void 0!==e.headers["x-amz-missing-meta"]&&(n.MissingMeta=parseInt(e.headers["x-amz-missing-meta"],10)),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["cache-control"]&&(n.CacheControl=e.headers["cache-control"]),void 0!==e.headers["content-disposition"]&&(n.ContentDisposition=e.headers["content-disposition"]),void 0!==e.headers["content-encoding"]&&(n.ContentEncoding=e.headers["content-encoding"]),void 0!==e.headers["content-language"]&&(n.ContentLanguage=e.headers["content-language"]),void 0!==e.headers["content-range"]&&(n.ContentRange=e.headers["content-range"]),void 0!==e.headers["content-type"]&&(n.ContentType=e.headers["content-type"]),void 0!==e.headers["expires"]&&(n.Expires=new Date(e.headers["expires"])),void 0!==e.headers["x-amz-website-redirect-location"]&&(n.WebsiteRedirectLocation=e.headers["x-amz-website-redirect-location"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-storage-class"]&&(n.StorageClass=e.headers["x-amz-storage-class"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-replication-status"]&&(n.ReplicationStatus=e.headers["x-amz-replication-status"]),void 0!==e.headers["x-amz-mp-parts-count"]&&(n.PartsCount=parseInt(e.headers["x-amz-mp-parts-count"],10)),void 0!==e.headers["x-amz-tagging-count"]&&(n.TagCount=parseInt(e.headers["x-amz-tagging-count"],10)),void 0!==e.headers["x-amz-object-lock-mode"]&&(n.ObjectLockMode=e.headers["x-amz-object-lock-mode"]),void 0!==e.headers["x-amz-object-lock-retain-until-date"]&&(n.ObjectLockRetainUntilDate=new Date(e.headers["x-amz-object-lock-retain-until-date"])),void 0!==e.headers["x-amz-object-lock-legal-hold"]&&(n.ObjectLockLegalHoldStatus=e.headers["x-amz-object-lock-legal-hold"]),Object.keys(e.headers).forEach((function(t){void 0===n.Metadata&&(n.Metadata={}),t.startsWith("x-amz-meta-")&&(n.Metadata[t.substring(11)]=e.headers[t])})),r=e.body,n.Body=r,[2,Promise.resolve(n)])}))}))},So=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f;return(0,Hr.Jh)(this,(function(d){switch(d.label){case 0:return r=[(0,Hr.pi)({},e)],f={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(f.body=d.sent(),f)])),i="UnknownError",i=Qo(e,n.body),a=i,a){case"InvalidObjectState":return[3,2];case"com.amazonaws.s3#InvalidObjectState":return[3,2];case"NoSuchKey":return[3,4];case"com.amazonaws.s3#NoSuchKey":return[3,4]}return[3,6];case 2:return s=[{}],[4,Po(n,t)];case 3:return o=Hr.pi.apply(void 0,[Hr.pi.apply(void 0,s.concat([d.sent()])),{name:i,$metadata:Wo(e)}]),[3,7];case 4:return u=[{}],[4,Lo(n,t)];case 5:return o=Hr.pi.apply(void 0,[Hr.pi.apply(void 0,u.concat([d.sent()])),{name:i,$metadata:Wo(e)}]),[3,7];case 6:l=n.body,i=l.code||l.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},l),{name:""+i,message:l.message||l.Message||i,$fault:"client",$metadata:Wo(e)}),d.label=7;case 7:return c=o.message||o.Message||i,o.message=c,delete o.Message,[2,Promise.reject(Object.assign(new Error(c),o))]}}))}))},_o=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r;return(0,Hr.Jh)(this,(function(o){switch(o.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Co(e,t)]:(n={$metadata:Wo(e),CommonPrefixes:void 0,Contents:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,Marker:void 0,MaxKeys:void 0,Name:void 0,NextMarker:void 0,Prefix:void 0},[4,Xo(e.body,t)]);case 1:return r=o.sent(),""===r.CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==r["CommonPrefixes"]&&(n.CommonPrefixes=Bo((0,Vr.L)(r["CommonPrefixes"]),t)),""===r.Contents&&(n.Contents=[]),void 0!==r["Contents"]&&(n.Contents=$o((0,Vr.L)(r["Contents"]),t)),void 0!==r["Delimiter"]&&(n.Delimiter=r["Delimiter"]),void 0!==r["EncodingType"]&&(n.EncodingType=r["EncodingType"]),void 0!==r["IsTruncated"]&&(n.IsTruncated="true"==r["IsTruncated"]),void 0!==r["Marker"]&&(n.Marker=r["Marker"]),void 0!==r["MaxKeys"]&&(n.MaxKeys=parseInt(r["MaxKeys"])),void 0!==r["Name"]&&(n.Name=r["Name"]),void 0!==r["NextMarker"]&&(n.NextMarker=r["NextMarker"]),void 0!==r["Prefix"]&&(n.Prefix=r["Prefix"]),[2,Promise.resolve(n)]}}))}))},Co=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c;return(0,Hr.Jh)(this,(function(f){switch(f.label){case 0:return r=[(0,Hr.pi)({},e)],c={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(c.body=f.sent(),c)])),i="UnknownError",i=Qo(e,n.body),a=i,a){case"NoSuchBucket":return[3,2];case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return s=[{}],[4,Oo(n,t)];case 3:return o=Hr.pi.apply(void 0,[Hr.pi.apply(void 0,s.concat([f.sent()])),{name:i,$metadata:Wo(e)}]),[3,5];case 4:u=n.body,i=u.code||u.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},u),{name:""+i,message:u.message||u.Message||i,$fault:"client",$metadata:Wo(e)}),f.label=5;case 5:return l=o.message||o.Message||i,o.message=l,delete o.Message,[2,Promise.reject(Object.assign(new Error(l),o))]}}))}))},Eo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r;return(0,Hr.Jh)(this,(function(o){switch(o.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,xo(e,t)]:(n={$metadata:Wo(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,Initiator:void 0,IsTruncated:void 0,Key:void 0,MaxParts:void 0,NextPartNumberMarker:void 0,Owner:void 0,PartNumberMarker:void 0,Parts:void 0,RequestCharged:void 0,StorageClass:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Xo(e.body,t)]);case 1:return r=o.sent(),void 0!==r["Bucket"]&&(n.Bucket=r["Bucket"]),void 0!==r["Initiator"]&&(n.Initiator=qo(r["Initiator"],t)),void 0!==r["IsTruncated"]&&(n.IsTruncated="true"==r["IsTruncated"]),void 0!==r["Key"]&&(n.Key=r["Key"]),void 0!==r["MaxParts"]&&(n.MaxParts=parseInt(r["MaxParts"])),void 0!==r["NextPartNumberMarker"]&&(n.NextPartNumberMarker=r["NextPartNumberMarker"]),void 0!==r["Owner"]&&(n.Owner=Ho(r["Owner"],t)),void 0!==r["PartNumberMarker"]&&(n.PartNumberMarker=r["PartNumberMarker"]),""===r.Part&&(n.Parts=[]),void 0!==r["Part"]&&(n.Parts=Ko((0,Vr.L)(r["Part"]),t)),void 0!==r["StorageClass"]&&(n.StorageClass=r["StorageClass"]),void 0!==r["UploadId"]&&(n.UploadId=r["UploadId"]),[2,Promise.resolve(n)]}}))}))},xo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u;return(0,Hr.Jh)(this,(function(l){switch(l.label){case 0:return r=[(0,Hr.pi)({},e)],u={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(u.body=l.sent(),u)])),i="UnknownError",i=Qo(e,n.body),i){default:a=n.body,i=a.code||a.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},a),{name:""+i,message:a.message||a.Message||i,$fault:"client",$metadata:Wo(e)})}return s=o.message||o.Message||i,o.message=s,delete o.Message,[2,Promise.reject(Object.assign(new Error(s),o))]}}))}))},Ao=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n;return(0,Hr.Jh)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ko(e,t)]:(n={$metadata:Wo(e),BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["etag"]&&(n.ETag=e.headers["etag"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Go(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},ko=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u;return(0,Hr.Jh)(this,(function(l){switch(l.label){case 0:return r=[(0,Hr.pi)({},e)],u={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(u.body=l.sent(),u)])),i="UnknownError",i=Qo(e,n.body),i){default:a=n.body,i=a.code||a.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},a),{name:""+i,message:a.message||a.Message||i,$fault:"client",$metadata:Wo(e)})}return s=o.message||o.Message||i,o.message=s,delete o.Message,[2,Promise.reject(Object.assign(new Error(s),o))]}}))}))},To=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n;return(0,Hr.Jh)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Io(e,t)]:(n={$metadata:Wo(e),BucketKeyEnabled:void 0,ETag:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["etag"]&&(n.ETag=e.headers["etag"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Go(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))},Io=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u;return(0,Hr.Jh)(this,(function(l){switch(l.label){case 0:return r=[(0,Hr.pi)({},e)],u={},[4,Xo(e.body,t)];case 1:switch(n=Hr.pi.apply(void 0,r.concat([(u.body=l.sent(),u)])),i="UnknownError",i=Qo(e,n.body),i){default:a=n.body,i=a.code||a.Code||i,o=(0,Hr.pi)((0,Hr.pi)({},a),{name:""+i,message:a.message||a.Message||i,$fault:"client",$metadata:Wo(e)})}return s=o.message||o.Message||i,o.message=s,delete o.Message,[2,Promise.reject(Object.assign(new Error(s),o))]}}))}))},Po=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,Hr.Jh)(this,(function(r){return t={name:"InvalidObjectState",$fault:"client",$metadata:Wo(e),AccessTier:void 0,StorageClass:void 0},n=e.body,void 0!==n["AccessTier"]&&(t.AccessTier=n["AccessTier"]),void 0!==n["StorageClass"]&&(t.StorageClass=n["StorageClass"]),[2,t]}))}))},Oo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var t;return(0,Hr.Jh)(this,(function(n){return t={name:"NoSuchBucket",$fault:"client",$metadata:Wo(e)},e.body,[2,t]}))}))},Lo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var t;return(0,Hr.Jh)(this,(function(n){return t={name:"NoSuchKey",$fault:"client",$metadata:Wo(e)},e.body,[2,t]}))}))},Ro=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var t;return(0,Hr.Jh)(this,(function(n){return t={name:"NoSuchUpload",$fault:"client",$metadata:Wo(e)},e.body,[2,t]}))}))},Mo=function(e,t){return(0,Hr.mG)(void 0,void 0,void 0,(function(){var t;return(0,Hr.Jh)(this,(function(n){return t={name:"ObjectNotInActiveTierError",$fault:"client",$metadata:Wo(e)},e.body,[2,t]}))}))},Uo=function(e,t){var n=new Zr("CompletedMultipartUpload");if(void 0!==e.Parts&&null!==e.Parts){var r=Fo(e.Parts,t);r.map((function(e){e=e.withName("Part"),n.addChildNode(e)}))}return n},No=function(e,t){var n=new Zr("CompletedPart");if(void 0!==e.ETag&&null!==e.ETag){var r=new Zr("ETag").addChildNode(new Jr(e.ETag)).withName("ETag");n.addChildNode(r)}if(void 0!==e.PartNumber&&null!==e.PartNumber){r=new Zr("PartNumber").addChildNode(new Jr(String(e.PartNumber))).withName("PartNumber");n.addChildNode(r)}return n},Fo=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){if(null===e)return null;var n=No(e,t);return n.withName("member")}))},Do=function(e,t){var n={Prefix:void 0};return void 0!==e["Prefix"]&&(n.Prefix=e["Prefix"]),n},Bo=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Do(e,t)}))},jo=function(e,t){var n={ETag:void 0,LastModified:void 0};return void 0!==e["ETag"]&&(n.ETag=e["ETag"]),void 0!==e["LastModified"]&&(n.LastModified=new Date(e["LastModified"])),n},qo=function(e,t){var n={ID:void 0,DisplayName:void 0};return void 0!==e["ID"]&&(n.ID=e["ID"]),void 0!==e["DisplayName"]&&(n.DisplayName=e["DisplayName"]),n},zo=function(e,t){var n={Key:void 0,LastModified:void 0,ETag:void 0,Size:void 0,StorageClass:void 0,Owner:void 0};return void 0!==e["Key"]&&(n.Key=e["Key"]),void 0!==e["LastModified"]&&(n.LastModified=new Date(e["LastModified"])),void 0!==e["ETag"]&&(n.ETag=e["ETag"]),void 0!==e["Size"]&&(n.Size=parseInt(e["Size"])),void 0!==e["StorageClass"]&&(n.StorageClass=e["StorageClass"]),void 0!==e["Owner"]&&(n.Owner=Ho(e["Owner"],t)),n},$o=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:zo(e,t)}))},Ho=function(e,t){var n={DisplayName:void 0,ID:void 0};return void 0!==e["DisplayName"]&&(n.DisplayName=e["DisplayName"]),void 0!==e["ID"]&&(n.ID=e["ID"]),n},Vo=function(e,t){var n={PartNumber:void 0,LastModified:void 0,ETag:void 0,Size:void 0};return void 0!==e["PartNumber"]&&(n.PartNumber=parseInt(e["PartNumber"])),void 0!==e["LastModified"]&&(n.LastModified=new Date(e["LastModified"])),void 0!==e["ETag"]&&(n.ETag=e["ETag"]),void 0!==e["Size"]&&(n.Size=parseInt(e["Size"])),n},Ko=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Vo(e,t)}))},Wo=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"]}},Go=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},Zo=function(e,t){return Go(e,t).then((function(e){return t.utf8Encoder(e)}))},Yo=function(e){return void 0!==e&&null!==e&&""!==e&&(!Object.getOwnPropertyNames(e).includes("length")||0!=e.length)&&(!Object.getOwnPropertyNames(e).includes("size")||0!=e.size)},Jo=function(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<")},Xo=function(e,t){return Zo(e,t).then((function(e){if(e.length){var t=(0,Xr.parse)(e,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,tagValueProcessor:function(e,t){return Jo(e)}}),n="#text",r=Object.keys(t)[0],o=t[r];return o[n]&&(o[r]=o[n],delete o[n]),(0,Vr.sT)(o)}return{}}))},Qo=function(e,t){return void 0!==t.Code?t.Code:404==e.statusCode?"NotFound":""};var ei=function(){return ei=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}function oi(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{while((void 0===t||t-- >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}var ii=function(e){return"string"===typeof e&&0===e.indexOf("arn:")&&e.split(":").length>=6},ai=function(e){var t=e.split(":");if(t.length<6||"arn"!==t[0])throw new Error("Malformed ARN");var n=oi(t),r=n[1],o=n[2],i=n[3],a=n[4],s=n.slice(5);return{partition:r,service:o,region:i,accountId:a,resource:s.join(":")}},si=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,ui=/(\d+\.){3}\d+/,li=/\.\./,ci=/\./,fi=/^(.+\.)?s3[.-]([a-z0-9-]+)\./,di=/^s3(-external-1)?\.amazonaws\.com$/,hi="amazonaws.com",pi=function(e){return"string"===typeof e.bucketName},gi=function(e){return Ai(e)?e.replace(/fips-|-fips/,""):e},vi=function(e){return si.test(e)&&!ui.test(e)&&!li.test(e)},mi=function(e){var t=e.match(fi);return[t[2],e.replace(new RegExp("^"+t[0]),"")]},yi=function(e){return di.test(e)?["us-east-1",hi]:mi(e)},bi=function(e){return di.test(e)?[e.replace("."+hi,""),hi]:mi(e)},wi=function(e){if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")},Si=function(e){if("s3"!==e&&"s3-outposts"!==e)throw new Error("Expect 's3' or 's3-outposts' in ARN service component")},_i=function(e){if("s3"!==e)throw new Error("Expect 's3' in Accesspoint ARN service component")},Ci=function(e){if("s3-outposts"!==e)throw new Error("Expect 's3-posts' in Outpost ARN service component")},Ei=function(e,t){if(e!==t.clientPartition)throw new Error('Partition in ARN is incompatible, got "'+e+'" but expected "'+t.clientPartition+'"')},xi=function(e,t){if(""===e)throw new Error("ARN region is empty");if(!t.useArnRegion&&!ki(e,t.clientRegion)&&!ki(e,t.clientSigningRegion))throw new Error("Region in ARN is incompatible, got "+e+" but expected "+t.clientRegion);if(t.useArnRegion&&Ai(e))throw new Error("Endpoint does not support FIPS region")},Ai=function(e){return e.startsWith("fips-")||e.endsWith("-fips")},ki=function(e,t){return e===t||gi(e)===t||e===gi(t)},Ti=function(e){if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")},Ii=function(e,t){if(void 0===t&&(t={tlsCompatible:!0}),e.length>=64||!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||(null===t||void 0===t?void 0:t.tlsCompatible)&&ci.test(e))throw new Error("Invalid DNS label "+e)},Pi=function(e){var t=e.includes(":")?":":"/",n=ri(e.split(t)),r=n[0],o=n.slice(1);if("accesspoint"===r){if(1!==o.length||""===o[0])throw new Error("Access Point ARN should have one resource accesspoint"+t+"{accesspointname}");return{accesspointName:o[0]}}if("outpost"===r){if(!o[0]||"accesspoint"!==o[1]||!o[2]||3!==o.length)throw new Error("Outpost ARN should have resource outpost"+t+"{outpostId}"+t+"accesspoint"+t+"{accesspointName}");var i=ri(o,3),a=i[0],s=(i[1],i[2]);return{outpostId:a,accesspointName:s}}throw new Error("ARN resource should begin with 'accesspoint"+t+"' or 'outpost"+t+"'")},Oi=function(e){if(e)throw new Error("Dualstack endpoint is not supported with Outpost")},Li=function(e){if(Ai(null!==e&&void 0!==e?e:""))throw new Error("FIPS region is not supported with Outpost, got "+e)},Ri=function(e){var t=e.isCustomEndpoint,n=(e.baseHostname,e.dualstackEndpoint),r=e.accelerateEndpoint;if(t){if(n)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(r)throw new Error("Accelerate endpoint is not supported with custom endpoint")}return pi(e)?Ui(ei(ei({},e),{isCustomEndpoint:t})):Mi(ei(ei({},e),{isCustomEndpoint:t}))},Mi=function(e){var t=e.isCustomEndpoint,n=e.baseHostname,r=ri(t?[e.clientRegion,n]:bi(n),2),o=r[0],i=r[1],a=e.pathStyleEndpoint,s=e.dualstackEndpoint,u=void 0!==s&&s,l=e.accelerateEndpoint,c=void 0!==l&&l,f=e.tlsCompatible,d=void 0===f||f,h=e.useArnRegion,p=e.bucketName,g=e.clientPartition,v=void 0===g?"aws":g,m=e.clientSigningRegion,y=void 0===m?o:m;wi({pathStyleEndpoint:a,accelerateEndpoint:c,tlsCompatible:d});var b=p.service,w=p.partition,S=p.accountId,_=p.region,C=p.resource;Si(b),Ei(w,{clientPartition:v}),Ti(S),xi(_,{useArnRegion:h,clientRegion:o,clientSigningRegion:y});var E=Pi(C),x=E.accesspointName,A=E.outpostId;Ii(x+"-"+S,{tlsCompatible:d});var k=h?_:o,T=h?_:y;if(A){Ci(b),Ii(A,{tlsCompatible:d}),Oi(u),Li(k);var I=x+"-"+S+"."+A;return{bucketEndpoint:!0,hostname:I+(t?"":".s3-outposts."+k)+"."+i,signingRegion:T,signingService:"s3-outposts"}}_i(b);var P=x+"-"+S;return{bucketEndpoint:!0,hostname:P+(t?"":".s3-accesspoint"+(u?".dualstack":"")+"."+k)+"."+i,signingRegion:T}},Ui=function(e){var t=e.accelerateEndpoint,n=void 0!==t&&t,r=e.clientRegion,o=e.baseHostname,i=e.bucketName,a=e.dualstackEndpoint,s=void 0!==a&&a,u=e.pathStyleEndpoint,l=void 0!==u&&u,c=e.tlsCompatible,f=void 0===c||c,d=e.isCustomEndpoint,h=void 0!==d&&d,p=ri(h?[r,o]:yi(o),2),g=p[0],v=p[1];return l||!vi(i)||f&&ci.test(i)?{bucketEndpoint:!1,hostname:s?"s3.dualstack."+g+"."+v:o}:(n?o="s3-accelerate"+(s?".dualstack":"")+"."+v:s&&(o="s3.dualstack."+g+"."+v),{bucketEndpoint:!0,hostname:i+"."+o})},Ni=function(e){return function(t,n){return function(r){return ti(void 0,void 0,void 0,(function(){var o,i,a,s,u,l,c,f,d,h,p,g,v,m,y,b,w,S;return ni(this,(function(_){switch(_.label){case 0:return o=r.input.Bucket,i=e.bucketEndpoint,a=r.request,Kr.aW.isInstance(a)?e.bucketEndpoint?(a.hostname=o,[3,7]):[3,1]:[3,8];case 1:return ii(o)?(s=ai(o),u=gi,[4,e.region()]):[3,5];case 2:return m=u.apply(void 0,[_.sent()]),[4,e.regionInfoProvider(m)];case 3:return l=_.sent()||{},c=l.partition,f=l.signingRegion,d=void 0===f?m:f,[4,e.useArnRegion()];case 4:return h=_.sent(),p=Ri({bucketName:s,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,useArnRegion:h,clientPartition:c,clientSigningRegion:d,clientRegion:m,isCustomEndpoint:e.isCustomEndpoint}),w=p.hostname,S=p.bucketEndpoint,g=p.signingRegion,v=p.signingService,g&&g!==d&&(n["signing_region"]=g),v&&"s3"!==v&&(n["signing_service"]=v),a.hostname=w,i=S,[3,7];case 5:return y=gi,[4,e.region()];case 6:m=y.apply(void 0,[_.sent()]),b=Ri({bucketName:o,clientRegion:m,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,isCustomEndpoint:e.isCustomEndpoint}),w=b.hostname,S=b.bucketEndpoint,a.hostname=w,i=S,_.label=7;case 7:i&&(a.path=a.path.replace(/^(\/)?[^\/]+/,""),""===a.path&&(a.path="/")),_.label=8;case 8:return[2,t(ei(ei({},r),{request:a}))]}}))}))}}},Fi={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},Di=function(e){return{applyToStack:function(t){t.addRelativeTo(Ni(e),Fi)}}};function Bi(e){var t=e.bucketEndpoint,n=void 0!==t&&t,r=e.forcePathStyle,o=void 0!==r&&r,i=e.useAccelerateEndpoint,a=void 0!==i&&i,s=e.useDualstackEndpoint,u=void 0!==s&&s,l=e.useArnRegion,c=void 0!==l&&l;return ei(ei({},e),{bucketEndpoint:n,forcePathStyle:o,useAccelerateEndpoint:a,useDualstackEndpoint:u,useArnRegion:"function"===typeof c?c:function(){return Promise.resolve(c)}})}var ji=function(){return ji=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)throw r=new Error("Bucket name shouldn't contain '/', received '"+e+"'"),r.name="InvalidBucketName",r;return[2,t(ji({},n))]}))}))}}}var Hi={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},Vi=function(e){return{applyToStack:function(e){e.add($i(),Hi)}}},Ki=function(e){return function(t){return function(n){return qi(void 0,void 0,void 0,(function(){var r,o;return zi(this,(function(i){switch(i.label){case 0:return r=n.request,!Kr.aW.isInstance(r)||e.isCustomEndpoint?[2,t(ji({},n))]:"s3.amazonaws.com"!==r.hostname?[3,1]:(r.hostname="s3.us-east-1.amazonaws.com",[3,3]);case 1:return o="aws-global",[4,e.region()];case 2:o===i.sent()&&(r.hostname="s3.amazonaws.com"),i.label=3;case 3:return[2,t(ji({},n))]}}))}))}}},Wi={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware",override:!0},Gi=function(e){return{applyToStack:function(t){t.add(Ki(e),Wi)}}},Zi=function(e){return function(t){return function(n){return qi(void 0,void 0,void 0,(function(){var r,o,i,a,s,u,l;return zi(this,(function(c){switch(c.label){case 0:return[4,t(n)];case 1:return r=c.sent(),o=r.response,Kr.Zn.isInstance(o)?(i=o.statusCode,a=o.body,i<200&&i>=300?[2,r]:[4,Yi(a,e)]):[2,r];case 2:return s=c.sent(),[4,Ji(s,e)];case 3:if(u=c.sent(),0===s.length)throw l=new Error("S3 aborted request"),l.name="InternalError",l;return u&&u.match("")&&(o.statusCode=400),o.body=s,[2,r]}}))}))}}},Yi=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},Ji=function(e,t){return Yi(e,t).then((function(e){return t.utf8Encoder(e)}))},Xi={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Qi=function(e){return{applyToStack:function(t){t.addRelativeTo(Zi(e),Xi)}}},ea=n(3646);var ta=function(){return ta=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]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ia(e){var t=this;return function(n){return function(r){return na(t,void 0,void 0,(function(){var t,o,i,a,s,u,l,c,f,d,h,p,g,v,m,y,b;return ra(this,(function(w){switch(w.label){case 0:t=ta({},r.input),o=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}],w.label=1;case 1:w.trys.push([1,6,7,8]),i=oa(o),a=i.next(),w.label=2;case 2:return a.done?[3,5]:(s=a.value,u=t[s.target],u?(l=ArrayBuffer.isView(u)?new Uint8Array(u.buffer,u.byteOffset,u.byteLength):"string"===typeof u?e.utf8Decoder(u):new Uint8Array(u),c=e.base64Encoder(l),f=new e.md5,f.update(l),d=[ta({},t)],b={},b[s.target]=c,h=s.hash,g=(p=e).base64Encoder,[4,f.digest()]):[3,4]);case 3:t=ta.apply(void 0,d.concat([(b[h]=g.apply(p,[w.sent()]),b)])),w.label=4;case 4:return a=i.next(),[3,2];case 5:return[3,8];case 6:return v=w.sent(),m={error:v},[3,8];case 7:try{a&&!a.done&&(y=i.return)&&y.call(i)}finally{if(m)throw m.error}return[7];case 8:return[2,n(ta(ta({},r),{input:t}))]}}))}))}}}var aa={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},sa=function(e){return{applyToStack:function(t){t.add(ia(e),aa)}}},ua=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Qi(t)),this.middlewareStack.use(sa(t)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="CopyObjectCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:b.filterSensitiveLog,outputFilterSensitiveLog:y.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return to(e,t)},t.prototype.deserialize=function(e,t){return po(e,t)},t}(Vr.mY),la=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(sa(t)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="GetObjectCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:Yt.filterSensitiveLog,outputFilterSensitiveLog:Zt.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return oo(e,t)},t.prototype.deserialize=function(e,t){return wo(e,t)},t}(Vr.mY),ca=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="DeleteObjectCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:z.filterSensitiveLog,outputFilterSensitiveLog:q.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return ro(e,t)},t.prototype.deserialize=function(e,t){return yo(e,t)},t}(Vr.mY),fa=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="ListObjectsCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:qn.filterSensitiveLog,outputFilterSensitiveLog:jn.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return io(e,t)},t.prototype.deserialize=function(e,t){return _o(e,t)},t}(Vr.mY);const da={i8:"3.6.1"};var ha=n(4402),pa=n(2863);function ga(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var va=n(9183),ma=function(){function e(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}return e.fromNumber=function(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var n=new Uint8Array(8),r=7,o=Math.abs(Math.round(t));r>-1&&o>0;r--,o/=256)n[r]=o;return t<0&&ya(n),new e(n)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&ya(e),parseInt((0,va.N)(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function ya(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1;t--)if(e[t]++,0!==e[t])break}var ba,wa=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return e.prototype.format=function(e){var t,n,r,o,i=[];try{for(var a=ga(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,l=this.fromUtf8(u);i.push(Uint8Array.from([l.byteLength]),l,this.formatHeaderValue(e[u]))}}catch(g){t={error:g}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}var c=new Uint8Array(i.reduce((function(e,t){return e+t.byteLength}),0)),f=0;try{for(var d=ga(i),h=d.next();!h.done;h=d.next()){var p=h.value;c.set(p,f),f+=p.byteLength}}catch(v){r={error:v}}finally{try{h&&!h.done&&(o=d.return)&&o.call(d)}finally{if(r)throw r.error}}return c},e.prototype.formatHeaderValue=function(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":var t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":var n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":var r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":var o=new DataView(new ArrayBuffer(3+e.value.byteLength));o.setUint8(0,6),o.setUint16(1,e.value.byteLength,!1);var i=new Uint8Array(o.buffer);return i.set(e.value,3),i;case"string":var a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);var u=new Uint8Array(s.buffer);return u.set(a,3),u;case"timestamp":var l=new Uint8Array(9);return l[0]=8,l.set(ma.fromNumber(e.value.valueOf()).bytes,1),l;case"uuid":if(!Pa.test(e.value))throw new Error("Invalid UUID received: "+e.value);var c=new Uint8Array(17);return c[0]=9,c.set((0,va.H)(e.value.replace(/\-/g,"")),1),c}},e.prototype.parse=function(e){var t={},n=0;while(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]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ba(e){return this instanceof Ba?(this.v=e,this):new Ba(e)}function ja(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){o[e]&&(r[e]=function(t){return new Promise((function(n,r){i.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{u(o[e](t))}catch(n){f(i[0][3],n)}}function u(e){e.value instanceof Ba?Promise.resolve(e.value.v).then(l,c):f(i[0][2],e)}function l(e){s("next",e)}function c(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}function qa(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e="function"===typeof Da?Da(e):e[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){t=e[n](t),o(r,i,t.done,t.value)}))}}function o(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)}}function za(e){var t,n=0,r=0,o=null,i=null,a=function(e){if("number"!==typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);n=e,r=4,o=new Uint8Array(e);var t=new DataView(o.buffer);t.setUint32(0,e,!1)},s=function(){return ja(this,arguments,(function(){var t,s,u,l,c,f,d,h,p;return Fa(this,(function(g){switch(g.label){case 0:t=e[Symbol.asyncIterator](),g.label=1;case 1:return[4,Ba(t.next())];case 2:return s=g.sent(),u=s.value,l=s.done,l?n?[3,4]:[4,Ba(void 0)]:[3,10];case 3:return[2,g.sent()];case 4:return n!==r?[3,7]:[4,Ba(o)];case 5:return[4,g.sent()];case 6:return g.sent(),[3,8];case 7:throw new Error("Truncated event message received.");case 8:return[4,Ba(void 0)];case 9:return[2,g.sent()];case 10:c=u.length,f=0,g.label=11;case 11:if(!(f0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1||s(e,t)}))})}function s(e,t){try{u(o[e](t))}catch(n){f(i[0][3],n)}}function u(e){e.value instanceof Wa?Promise.resolve(e.value.v).then(l,c):f(i[0][2],e)}function l(e){s("next",e)}function c(e){s("throw",e)}function f(e,t){e(t),i.shift(),i.length&&s(i[0][0],i[0][1])}}var Za=function(e){var t;return t={},t[Symbol.asyncIterator]=function(){return Ga(this,arguments,(function(){var t,n,r,o;return Ka(this,(function(i){switch(i.label){case 0:t=e.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,Wa(t.read())];case 3:return n=i.sent(),r=n.done,o=n.value,r?[4,Wa(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,Wa(o)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t},Ya=function(e){var t=e[Symbol.asyncIterator]();return new ReadableStream({pull:function(e){return Va(this,void 0,void 0,(function(){var n,r,o;return Ka(this,(function(i){switch(i.label){case 0:return[4,t.next()];case 1:return n=i.sent(),r=n.done,o=n.value,r?[2,e.close()]:(e.enqueue(o),[2])}}))}))}})},Ja=function(){function e(e){var t=e.utf8Encoder,n=e.utf8Decoder;this.eventMarshaller=new Na(t,n),this.universalMarshaller=new Ha({utf8Decoder:n,utf8Encoder:t})}return e.prototype.deserialize=function(e,t){var n=Xa(e)?Za(e):e;return this.universalMarshaller.deserialize(n,t)},e.prototype.serialize=function(e,t){var n=this.universalMarshaller.serialize(e,t);return"function"===typeof ReadableStream?Ya(n):n},e}(),Xa=function(e){return"function"===typeof ReadableStream&&e instanceof ReadableStream},Qa=function(e){return new Ja(e)},es=n(9870);function ts(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function ns(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=a?r():i.readAsArrayBuffer(e.slice(s,Math.min(a,s+n)))}i.addEventListener("load",(function(e){var n=e.target.result;t(new Uint8Array(n)),s+=n.byteLength,u()})),u()}))}var os=function(e,t){return ts(this,void 0,void 0,(function(){var n;return ns(this,(function(r){switch(r.label){case 0:return n=new e,[4,rs(t,(function(e){n.update(e)}))];case 1:return r.sent(),[2,n.digest()]}}))}))},is=n(4584);function as(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function ss(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&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)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===ls&&(this.hashBuffer(),this.bufferLength=0)}},e.prototype.digest=function(){return as(this,void 0,void 0,(function(){var e,t,n,r,o,i,a;return ss(this,(function(s){if(!this.finished){if(e=this,t=e.buffer,n=e.bufferLength,r=e.bytesHashed,o=8*r,t.setUint8(this.bufferLength++,128),n%ls>=ls-8){for(a=this.bufferLength;a>>0,!0),t.setUint32(ls-4,Math.floor(o/4294967296),!0),this.hashBuffer(),this.finished=!0}for(i=new DataView(new ArrayBuffer(cs)),a=0;a<4;a++)i.setUint32(4*a,this.state[a],!0);return[2,new Uint8Array(i.buffer,i.byteOffset,i.byteLength)]}))}))},e.prototype.hashBuffer=function(){var e=this,t=e.buffer,n=e.state,r=n[0],o=n[1],i=n[2],a=n[3];r=ps(r,o,i,a,t.getUint32(0,!0),7,3614090360),a=ps(a,r,o,i,t.getUint32(4,!0),12,3905402710),i=ps(i,a,r,o,t.getUint32(8,!0),17,606105819),o=ps(o,i,a,r,t.getUint32(12,!0),22,3250441966),r=ps(r,o,i,a,t.getUint32(16,!0),7,4118548399),a=ps(a,r,o,i,t.getUint32(20,!0),12,1200080426),i=ps(i,a,r,o,t.getUint32(24,!0),17,2821735955),o=ps(o,i,a,r,t.getUint32(28,!0),22,4249261313),r=ps(r,o,i,a,t.getUint32(32,!0),7,1770035416),a=ps(a,r,o,i,t.getUint32(36,!0),12,2336552879),i=ps(i,a,r,o,t.getUint32(40,!0),17,4294925233),o=ps(o,i,a,r,t.getUint32(44,!0),22,2304563134),r=ps(r,o,i,a,t.getUint32(48,!0),7,1804603682),a=ps(a,r,o,i,t.getUint32(52,!0),12,4254626195),i=ps(i,a,r,o,t.getUint32(56,!0),17,2792965006),o=ps(o,i,a,r,t.getUint32(60,!0),22,1236535329),r=gs(r,o,i,a,t.getUint32(4,!0),5,4129170786),a=gs(a,r,o,i,t.getUint32(24,!0),9,3225465664),i=gs(i,a,r,o,t.getUint32(44,!0),14,643717713),o=gs(o,i,a,r,t.getUint32(0,!0),20,3921069994),r=gs(r,o,i,a,t.getUint32(20,!0),5,3593408605),a=gs(a,r,o,i,t.getUint32(40,!0),9,38016083),i=gs(i,a,r,o,t.getUint32(60,!0),14,3634488961),o=gs(o,i,a,r,t.getUint32(16,!0),20,3889429448),r=gs(r,o,i,a,t.getUint32(36,!0),5,568446438),a=gs(a,r,o,i,t.getUint32(56,!0),9,3275163606),i=gs(i,a,r,o,t.getUint32(12,!0),14,4107603335),o=gs(o,i,a,r,t.getUint32(32,!0),20,1163531501),r=gs(r,o,i,a,t.getUint32(52,!0),5,2850285829),a=gs(a,r,o,i,t.getUint32(8,!0),9,4243563512),i=gs(i,a,r,o,t.getUint32(28,!0),14,1735328473),o=gs(o,i,a,r,t.getUint32(48,!0),20,2368359562),r=vs(r,o,i,a,t.getUint32(20,!0),4,4294588738),a=vs(a,r,o,i,t.getUint32(32,!0),11,2272392833),i=vs(i,a,r,o,t.getUint32(44,!0),16,1839030562),o=vs(o,i,a,r,t.getUint32(56,!0),23,4259657740),r=vs(r,o,i,a,t.getUint32(4,!0),4,2763975236),a=vs(a,r,o,i,t.getUint32(16,!0),11,1272893353),i=vs(i,a,r,o,t.getUint32(28,!0),16,4139469664),o=vs(o,i,a,r,t.getUint32(40,!0),23,3200236656),r=vs(r,o,i,a,t.getUint32(52,!0),4,681279174),a=vs(a,r,o,i,t.getUint32(0,!0),11,3936430074),i=vs(i,a,r,o,t.getUint32(12,!0),16,3572445317),o=vs(o,i,a,r,t.getUint32(24,!0),23,76029189),r=vs(r,o,i,a,t.getUint32(36,!0),4,3654602809),a=vs(a,r,o,i,t.getUint32(48,!0),11,3873151461),i=vs(i,a,r,o,t.getUint32(60,!0),16,530742520),o=vs(o,i,a,r,t.getUint32(8,!0),23,3299628645),r=ms(r,o,i,a,t.getUint32(0,!0),6,4096336452),a=ms(a,r,o,i,t.getUint32(28,!0),10,1126891415),i=ms(i,a,r,o,t.getUint32(56,!0),15,2878612391),o=ms(o,i,a,r,t.getUint32(20,!0),21,4237533241),r=ms(r,o,i,a,t.getUint32(48,!0),6,1700485571),a=ms(a,r,o,i,t.getUint32(12,!0),10,2399980690),i=ms(i,a,r,o,t.getUint32(40,!0),15,4293915773),o=ms(o,i,a,r,t.getUint32(4,!0),21,2240044497),r=ms(r,o,i,a,t.getUint32(32,!0),6,1873313359),a=ms(a,r,o,i,t.getUint32(60,!0),10,4264355552),i=ms(i,a,r,o,t.getUint32(24,!0),15,2734768916),o=ms(o,i,a,r,t.getUint32(52,!0),21,1309151649),r=ms(r,o,i,a,t.getUint32(16,!0),6,4149444226),a=ms(a,r,o,i,t.getUint32(44,!0),10,3174756917),i=ms(i,a,r,o,t.getUint32(8,!0),15,718787259),o=ms(o,i,a,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=o+n[1]&4294967295,n[2]=i+n[2]&4294967295,n[3]=a+n[3]&4294967295},e}();function hs(e,t,n,r,o,i){return t=(t+e&4294967295)+(r+i&4294967295)&4294967295,(t<>>32-o)+n&4294967295}function ps(e,t,n,r,o,i,a){return hs(t&n|~t&r,e,t,o,i,a)}function gs(e,t,n,r,o,i,a){return hs(t&r|n&~r,e,t,o,i,a)}function vs(e,t,n,r,o,i,a){return hs(t^n^r,e,t,o,i,a)}function ms(e,t,n,r,o,i,a){return hs(n^(t|~r),e,t,o,i,a)}function ys(e){return"string"===typeof e?0===e.length:0===e.byteLength}function bs(e){return"string"===typeof e?(0,us.fromUtf8)(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var ws=n(5122),Ss=n(810),_s=n(9646),Cs=n(5167),Es="s3.{region}.amazonaws.com",xs="s3.{region}.amazonaws.com.cn",As="s3.{region}.c2s.ic.gov",ks="s3.{region}.sc2s.sgov.gov",Ts="s3.{region}.amazonaws.com",Is=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"]),Ps=new Set(["cn-north-1","cn-northwest-1"]),Os=new Set(["us-iso-east-1"]),Ls=new Set(["us-isob-east-1"]),Rs=new Set(["us-gov-east-1","us-gov-west-1"]),Ms=function(e,t){var n=void 0;switch(e){case"af-south-1":n={hostname:"s3.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"s3.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"s3.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"s3.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"s3.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"s3.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"s3.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":n={hostname:"s3.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":n={hostname:"s3.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"s3.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"s3.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"s3.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"s3.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"s3.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"s3.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"s3.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"s3.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-gov-west-1":n={hostname:"s3-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"me-south-1":n={hostname:"s3.me-south-1.amazonaws.com",partition:"aws"};break;case"s3-external-1":n={hostname:"s3-external-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"sa-east-1":n={hostname:"s3.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"s3.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"s3.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-east-1":n={hostname:"s3.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1":n={hostname:"s3.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-iso-east-1":n={hostname:"s3.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"s3.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"s3.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"s3.us-west-2.amazonaws.com",partition:"aws"};break;default:Is.has(e)&&(n={hostname:Es.replace("{region}",e),partition:"aws"}),Ps.has(e)&&(n={hostname:xs.replace("{region}",e),partition:"aws-cn"}),Os.has(e)&&(n={hostname:As.replace("{region}",e),partition:"aws-iso"}),Ls.has(e)&&(n={hostname:ks.replace("{region}",e),partition:"aws-iso-b"}),Rs.has(e)&&(n={hostname:Ts.replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:Es.replace("{region}",e),partition:"aws"})}return Promise.resolve((0,Hr.pi)({signingService:"s3"},n))},Us=n(3038),Ns={apiVersion:"2006-03-01",disableHostPrefix:!1,logger:{},regionInfoProvider:Ms,serviceId:"S3",signingEscapePath:!1,urlParser:Us.e,useArnRegion:!1},Fs=(0,Hr.pi)((0,Hr.pi)({},Ns),{runtime:"browser",base64Decoder:Ss.G,base64Encoder:Ss.s,bodyLengthChecker:_s.W,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:(0,Cs.f)({serviceId:Ns.serviceId,clientVersion:da.i8}),eventStreamSerdeProvider:Qa,maxAttempts:ws.J,md5:ds,region:(0,is.n)("Region is missing"),requestHandler:new es.B,sha256:ha.Sha256,streamCollector:es.C,streamHasher:os,utf8Decoder:us.fromUtf8,utf8Encoder:us.toUtf8}),Ds=n(5618);var Bs=function(){return Bs=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&&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&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},gu=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),a=[];try{while((void 0===t||t-- >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},vu=new Br.k("axios-http-handler"),mu="sendUploadProgress",yu="sendDownloadProgress";function bu(e){return"undefined"!==typeof Blob&&e instanceof Blob}var wu,Su,_u=function(e,t){var n,r;try{for(var o=pu(Object.entries(e)),i=o.next();!i.done;i=o.next()){var a=gu(i.value,2),s=a[0],u=a[1];s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=u,delete e[s])}}catch(l){n={error:l}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}},Cu=[function(e,t){return bu(e)?(_u(t,"Content-Type"),_u(t,"Accept"),e):hu().defaults.transformRequest[0].call(null,e,t)}],Eu=function(){function e(e,t,n){void 0===e&&(e={}),this.httpOptions=e,this.emitter=t,this.cancelTokenSource=n}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=this.httpOptions.requestTimeout,r=this.emitter,o=e.path;if(e.query){var i=(0,Qs.I)(e.query);i&&(o+="?"+i)}var a=e.port,s=e.protocol+"//"+e.hostname+(a?":"+a:"")+o,u={};u.url=s,u.method=e.method,u.headers=e.headers,delete u.headers["host"],e.body?u.data=e.body:u.headers["Content-Type"]&&(u.data=null),r&&(u.onUploadProgress=function(e){r.emit(mu,e),vu.debug(e)},u.onDownloadProgress=function(e){r.emit(yu,e),vu.debug(e)}),this.cancelTokenSource&&(u.cancelToken=this.cancelTokenSource.token),u.responseType="blob",$r.t4.isReactNative&&(u.transformRequest=Cu);var l=[hu().request(u).then((function(e){return{response:new Kr.Zn({headers:e.headers,statusCode:e.status,body:e.data})}})).catch((function(e){throw vu.error(e.message),e})),xu(n)];return Promise.race(l)},e}();function xu(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)}))}(function(e){e["NO_CREDENTIALS"]="No credentials",e["NO_SRC_KEY"]='source param should be an object with the property "key" with value of type string',e["NO_DEST_KEY"]='destination param should be an object with the property "key" with value of type string'})(wu||(wu={})),function(e){e["CLEANUP_FAILED"]="Multipart copy clean up failed",e["NO_OBJECT_FOUND"]="Object does not exist",e["INVALID_QUEUESIZE"]="Queue size must be a positive number",e["NO_COPYSOURCE"]="You must specify a copy source",e["MAX_NUM_PARTS_EXCEEDED"]="Only a maximum of 10000 parts are allowed"}(Su||(Su={}));var Au,ku,Tu,Iu,Pu,Ou,Lu,Ru,Mu,Uu,Nu,Fu,Du,Bu,ju,qu,zu,$u,Hu,Vu,Ku,Wu,Gu,Zu,Yu,Ju,Xu,Qu,el,tl,nl,rl,ol,il,al=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(sa(t)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="PutObjectCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:Cr.filterSensitiveLog,outputFilterSensitiveLog:_r.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return so(e,t)},t.prototype.deserialize=function(e,t){return Ao(e,t)},t}(Vr.mY),sl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(sa(t)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="CreateMultipartUploadCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:k.filterSensitiveLog,outputFilterSensitiveLog:A.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return no(e,t)},t.prototype.deserialize=function(e,t){return vo(e,t)},t}(Vr.mY);(function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}})(Au||(Au={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Encryption&&{Encryption:Dr.filterSensitiveLog(e.Encryption)})}}(ku||(ku={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.S3&&{S3:ku.filterSensitiveLog(e.S3)})}}(Tu||(Tu={})),function(e){e["IGNORE"]="IGNORE",e["NONE"]="NONE",e["USE"]="USE"}(Iu||(Iu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Pu||(Pu={})),function(e){e["DOCUMENT"]="DOCUMENT",e["LINES"]="LINES"}(Ou||(Ou={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Lu||(Lu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ru||(Ru={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Mu||(Mu={})),function(e){e["ALWAYS"]="ALWAYS",e["ASNEEDED"]="ASNEEDED"}(Uu||(Uu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Nu||(Nu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Fu||(Fu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Du||(Du={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Bu||(Bu={})),function(e){e["SELECT"]="SELECT"}(ju||(ju={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.OutputLocation&&{OutputLocation:Tu.filterSensitiveLog(e.OutputLocation)})}}(qu||(qu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.RestoreRequest&&{RestoreRequest:qu.filterSensitiveLog(e.RestoreRequest)})}}(zu||(zu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}($u||($u={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Hu||(Hu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Vu||(Vu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Ku||(Ku={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Wu||(Wu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Gu||(Gu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Zu||(Zu={})),function(e){e.visit=function(e,t){return void 0!==e.Records?t.Records(e.Records):void 0!==e.Stats?t.Stats(e.Stats):void 0!==e.Progress?t.Progress(e.Progress):void 0!==e.Cont?t.Cont(e.Cont):void 0!==e.End?t.End(e.End):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Records?{Records:Wu.filterSensitiveLog(e.Records)}:void 0!==e.Stats?{Stats:Zu.filterSensitiveLog(e.Stats)}:void 0!==e.Progress?{Progress:Ku.filterSensitiveLog(e.Progress)}:void 0!==e.Cont?{Cont:$u.filterSensitiveLog(e.Cont)}:void 0!==e.End?{End:Hu.filterSensitiveLog(e.End)}:void 0!==e.$unknown?(t={},t[e.$unknown[0]]="UNKNOWN",t):void 0}}(Yu||(Yu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.Payload&&{Payload:"STREAMING_CONTENT"})}}(Ju||(Ju={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Xu||(Xu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(Qu||(Qu={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Vr.oc})}}(el||(el={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc})}}(tl||(tl={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Vr.oc})}}(nl||(nl={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)({},e)}}(rl||(rl={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Vr.oc})}}(ol||(ol={})),function(e){e.filterSensitiveLog=function(e){return(0,Hr.pi)((0,Hr.pi)((0,Hr.pi)({},e),e.SSECustomerKey&&{SSECustomerKey:Vr.oc}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Vr.oc})}}(il||(il={}));var ul=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(sa(t)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="UploadPartCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:nl.filterSensitiveLog,outputFilterSensitiveLog:tl.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return uo(e,t)},t.prototype.deserialize=function(e,t){return To(e,t)},t}(Vr.mY),ll=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Qi(t)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="CompleteMultipartUploadCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:v.filterSensitiveLog,outputFilterSensitiveLog:h.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return eo(e,t)},t.prototype.deserialize=function(e,t){return fo(e,t)},t}(Vr.mY),cl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),a=t.logger,s="S3Client",u="AbortMultipartUploadCommand",l={logger:a,clientName:s,commandName:u,inputFilterSensitiveLog:i.filterSensitiveLog,outputFilterSensitiveLog:o.filterSensitiveLog},c=t.requestHandler;return r.resolve((function(e){return c.handle(e.request,n||{})}),l)},t.prototype.serialize=function(e,t){return Qr(e,t)},t.prototype.deserialize=function(e,t){return lo(e,t)},t}(Vr.mY),fl=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,Hr.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,ea.p2)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Di(t));var r=e.concat(this.middlewareStack),o=t.logger,i="S3Client",a="ListPartsCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:Yn.filterSensitiveLog,outputFilterSensitiveLog:Zn.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return ao(e,t)},t.prototype.deserialize=function(e,t){return Eo(e,t)},t}(Vr.mY),dl=n(9584),hl=function(){return hl=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)throw new Error("Multi Part upload clean up failed");return[2]}}))}))},e.prototype.removeEventListener=function(e){e.emitter.removeAllListeners(mu),e.emitter.removeAllListeners(yu)},e.prototype.setupEventListener=function(e){var t=this;e.emitter.on(mu,(function(n){t.progressChanged(e.partNumber,n.loaded-e._lastUploadedBytes),e._lastUploadedBytes=n.loaded}))},e.prototype.progressChanged=function(e,t){this.bytesUploaded+=t,this.emitter.emit(mu,{loaded:this.bytesUploaded,total:this.totalBytesToUpload,part:e,key:this.params.Key})},e.prototype.byteLength=function(e){if(null===e||void 0===e)return 0;if("number"===typeof e.byteLength)return e.byteLength;if("number"===typeof e.length)return e.length;if("number"===typeof e.size)return e.size;if("string"!==typeof e.path)throw new Error("Cannot determine length of "+e)},e.prototype.validateAndSanitizeBody=function(e){return pl(this,void 0,void 0,(function(){return gl(this,(function(t){return this.isGenericObject(e)?[2,JSON.stringify(e)]:[2,e]}))}))},e.prototype.isGenericObject=function(e){if(null!==e&&"object"===typeof e)try{return!(this.byteLength(e)>=0)}catch(t){return!0}return!1},e.prototype._createNewS3Client=function(e,t){return pl(this,void 0,void 0,(function(){var n,r,o,i,a,s,u;return gl(this,(function(l){switch(l.label){case 0:return[4,this._getCredentials()];case 1:return n=l.sent(),r=e.region,o=e.dangerouslyConnectToHttpEndpointForTesting,i=e.cancelTokenSource,a=e.useAccelerateEndpoint,s={},o&&(s={endpoint:ml,tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),u=new Xs(hl(hl({region:r,credentials:n,useAccelerateEndpoint:a},s),{requestHandler:new Eu({},t,i),customUserAgent:(0,$r.Zm)()})),u.middlewareStack.remove(yl),[2,u]}}))}))},e.prototype._getCredentials=function(){return zr.cN.get().then((function(e){if(!e)return!1;var t=zr.cN.shear(e);return vl.debug("set credentials for storage",t),t})).catch((function(e){return vl.warn("ensure credentials error",e),!1}))},e}(),wl=function(){return wl=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},Rl=new Br.k("StorageClass"),Ml="AWSS3",Ul=function(){function e(){this._config={},this._pluggables=[],this._cancelTokenSourceMap=new WeakMap,Rl.debug("Storage Options",this._config),this.get=this.get.bind(this),this.put=this.put.bind(this),this.remove=this.remove.bind(this),this.list=this.list.bind(this)}return e.prototype.getModuleName=function(){return"Storage"},e.prototype.addPluggable=function(e){if(e&&"Storage"===e.getCategory()){this._pluggables.push(e);var t={};return t=e.configure(this._config[e.getProviderName()]),t}},e.prototype.getPluggable=function(e){var t=this._pluggables.find((function(t){return t.getProviderName()===e}));return void 0===t?(Rl.debug("No plugin found with providerName",e),null):t},e.prototype.removePluggable=function(e){this._pluggables=this._pluggables.filter((function(t){return t.getProviderName()!==e}))},e.prototype.configure=function(e){var t=this;if(Rl.debug("configure Storage"),!e)return this._config;var n=jr._b.parseMobilehubConfig(e),r=Object.keys(n.Storage),o=["bucket","region","level","track","customPrefix","serverSideEncryption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"],i=function(e){return o.some((function(t){return t===e}))},a=function(e){return e.find((function(e){return i(e)}))};return r&&a(r)&&!n.Storage[Ml]&&(n.Storage[Ml]={}),Object.entries(n.Storage).map((function(e){var t=Ll(e,2),r=t[0],o=t[1];r&&i(r)&&void 0!==o&&(n.Storage[Ml][r]=o,delete n.Storage[r])})),Object.keys(n.Storage).forEach((function(e){"string"!==typeof n.Storage[e]&&(t._config[e]=Ol(Ol({},t._config[e]),n.Storage[e]))})),this._pluggables.forEach((function(e){e.configure(t._config[e.getProviderName()])})),0===this._pluggables.length&&this.addPluggable(new Pl),this._config},e.prototype.getCancellableTokenSource=function(){return hu().CancelToken.source()},e.prototype.updateRequestToBeCancellable=function(e,t){this._cancelTokenSourceMap.set(e,t)},e.prototype.cancel=function(e,t){var n=this._cancelTokenSourceMap.get(e);n?n.cancel(t):Rl.debug("The request does not map to any cancel token")},e.prototype.copy=function(e,t,n){var r,o=(null===(r=n)||void 0===r?void 0:r.provider)||Ml,i=this._pluggables.find((function(e){return e.getProviderName()===o}));if(void 0===i)return Rl.debug("No plugin found with providerName",o),Promise.reject("No plugin found in Storage for the provider");var a=this.getCancellableTokenSource();if("function"!==typeof i.copy)return Promise.reject(".copy is not implemented on provider "+i.getProviderName());var s=i.copy(e,t,Ol(Ol({},n),{cancelTokenSource:a}));return this.updateRequestToBeCancellable(s,a),s},e.prototype.get=function(e,t){var n,r=(null===(n=t)||void 0===n?void 0:n.provider)||Ml,o=this._pluggables.find((function(e){return e.getProviderName()===r}));if(void 0===o)return Rl.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider");var i=this.getCancellableTokenSource(),a=o.get(e,Ol(Ol({},t),{cancelTokenSource:i}));return this.updateRequestToBeCancellable(a,i),a},e.prototype.isCancelError=function(e){return hu().isCancel(e)},e.prototype.put=function(e,t,n){var r,o=(null===(r=n)||void 0===r?void 0:r.provider)||Ml,i=this._pluggables.find((function(e){return e.getProviderName()===o}));if(void 0===i)return Rl.debug("No plugin found with providerName",o),Promise.reject("No plugin found in Storage for the provider");var a=this.getCancellableTokenSource(),s=i.put(e,t,Ol(Ol({},n),{cancelTokenSource:a}));return this.updateRequestToBeCancellable(s,a),s},e.prototype.remove=function(e,t){var n,r=(null===(n=t)||void 0===n?void 0:n.provider)||Ml,o=this._pluggables.find((function(e){return e.getProviderName()===r}));return void 0===o?(Rl.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider")):o.remove(e,t)},e.prototype.list=function(e,t){var n,r=(null===(n=t)||void 0===n?void 0:n.provider)||Ml,o=this._pluggables.find((function(e){return e.getProviderName()===r}));return void 0===o?(Rl.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider")):o.list(e,t)},e}();var Nl=n(1803),Fl=function(){return Fl=Object.assign||function(e){for(var t,n=1,r=arguments.length;n{"use strict";n.d(t,{T:()=>a});var r,o,i=n(2541);(function(e){e["BACK_TO_SIGN_IN"]="Back to Sign In",e["CHANGE_PASSWORD_ACTION"]="Change",e["CHANGE_PASSWORD"]="Change Password",e["CODE_LABEL"]="Verification code",e["CODE_PLACEHOLDER"]="Enter code",e["CONFIRM_SIGN_UP_CODE_LABEL"]="Confirmation Code",e["CONFIRM_SIGN_UP_CODE_PLACEHOLDER"]="Enter your code",e["CONFIRM_SIGN_UP_HEADER_TEXT"]="Confirm Sign up",e["CONFIRM_SIGN_UP_LOST_CODE"]="Lost your code?",e["CONFIRM_SIGN_UP_RESEND_CODE"]="Resend Code",e["CONFIRM_SIGN_UP_SUBMIT_BUTTON_TEXT"]="Confirm",e["CONFIRM_SMS_CODE"]="Confirm SMS Code",e["CONFIRM_TOTP_CODE"]="Confirm TOTP Code",e["CONFIRM"]="Confirm",e["CREATE_ACCOUNT_TEXT"]="Create account",e["EMAIL_LABEL"]="Email Address *",e["EMAIL_PLACEHOLDER"]="Enter your email address",e["FORGOT_PASSWORD_TEXT"]="Forgot your password?",e["LESS_THAN_TWO_MFA_VALUES_MESSAGE"]="Less than two MFA types available",e["NEW_PASSWORD_LABEL"]="New password",e["NEW_PASSWORD_PLACEHOLDER"]="Enter your new password",e["NO_ACCOUNT_TEXT"]="No account?",e["USERNAME_REMOVE_WHITESPACE"]="Username cannot contain whitespace",e["PASSWORD_REMOVE_WHITESPACE"]="Password cannot start or end with whitespace",e["PASSWORD_LABEL"]="Password *",e["PASSWORD_PLACEHOLDER"]="Enter your password",e["PHONE_LABEL"]="Phone Number *",e["PHONE_PLACEHOLDER"]="(555) 555-1212",e["QR_CODE_ALT"]="qrcode",e["RESET_PASSWORD_TEXT"]="Reset password",e["RESET_YOUR_PASSWORD"]="Reset your password",e["SELECT_MFA_TYPE_HEADER_TEXT"]="Select MFA Type",e["SELECT_MFA_TYPE_SUBMIT_BUTTON_TEXT"]="Verify",e["SEND_CODE"]="Send Code",e["SUBMIT"]="Submit",e["SETUP_TOTP_REQUIRED"]="TOTP needs to be configured",e["SIGN_IN_ACTION"]="Sign In",e["SIGN_IN_HEADER_TEXT"]="Sign in to your account",e["SIGN_IN_TEXT"]="Sign in",e["SIGN_IN_WITH_AMAZON"]="Sign in with Amazon",e["SIGN_IN_WITH_AUTH0"]="Sign in with Auth0",e["SIGN_IN_WITH_AWS"]="Sign in with AWS",e["SIGN_IN_WITH_FACEBOOK"]="Sign in with Facebook",e["SIGN_IN_WITH_GOOGLE"]="Sign in with Google",e["SIGN_OUT"]="Sign Out",e["SIGN_UP_EMAIL_PLACEHOLDER"]="Email",e["SIGN_UP_HAVE_ACCOUNT_TEXT"]="Have an account?",e["SIGN_UP_HEADER_TEXT"]="Create a new account",e["SIGN_UP_PASSWORD_PLACEHOLDER"]="Password",e["SIGN_UP_SUBMIT_BUTTON_TEXT"]="Create Account",e["SIGN_UP_USERNAME_PLACEHOLDER"]="Username",e["SUCCESS_MFA_TYPE"]="Success! Your MFA Type is now:",e["TOTP_HEADER_TEXT"]="Scan then enter verification code",e["TOTP_LABEL"]="Enter Security Code:",e["TOTP_ISSUER"]="AWSCognito",e["TOTP_SETUP_FAILURE"]="TOTP Setup has failed",e["TOTP_SUBMIT_BUTTON_TEXT"]="Verify Security Token",e["TOTP_SUCCESS_MESSAGE"]="Setup TOTP successfully!",e["UNABLE_TO_SETUP_MFA_AT_THIS_TIME"]="Failed! Unable to configure MFA at this time",e["USERNAME_LABEL"]="Username *",e["USERNAME_PLACEHOLDER"]="Enter your username",e["VERIFY_CONTACT_EMAIL_LABEL"]="Email",e["VERIFY_CONTACT_HEADER_TEXT"]="Account recovery requires verified contact information",e["VERIFY_CONTACT_PHONE_LABEL"]="Phone Number",e["VERIFY_CONTACT_SUBMIT_LABEL"]="Submit",e["VERIFY_CONTACT_VERIFY_LABEL"]="Verify",e["ADDRESS_LABEL"]="Address",e["ADDRESS_PLACEHOLDER"]="Enter your address",e["NICKNAME_LABEL"]="Nickname",e["NICKNAME_PLACEHOLDER"]="Enter your nickname",e["BIRTHDATE_LABEL"]="Birthday",e["BIRTHDATE_PLACEHOLDER"]="Enter your birthday",e["PICTURE_LABEL"]="Picture URL",e["PICTURE_PLACEHOLDER"]="Enter your picture URL",e["FAMILY_NAME_LABEL"]="Family Name",e["FAMILY_NAME_PLACEHOLDER"]="Enter your family name",e["PREFERRED_USERNAME_LABEL"]="Preferred Username",e["PREFERRED_USERNAME_PLACEHOLDER"]="Enter your preferred username",e["GENDER_LABEL"]="Gender",e["GENDER_PLACEHOLDER"]="Enter your gender",e["PROFILE_LABEL"]="Profile URL",e["PROFILE_PLACEHOLDER"]="Enter your profile URL",e["GIVEN_NAME_LABEL"]="First Name",e["GIVEN_NAME_PLACEHOLDER"]="Enter your first name",e["ZONEINFO_LABEL"]="Time zone",e["ZONEINFO_PLACEHOLDER"]="Enter your time zone",e["LOCALE_LABEL"]="Locale",e["LOCALE_PLACEHOLDER"]="Enter your locale",e["UPDATED_AT_LABEL"]="Updated At",e["UPDATED_AT_PLACEHOLDER"]="Enter the time the information was last updated",e["MIDDLE_NAME_LABEL"]="Middle Name",e["MIDDLE_NAME_PLACEHOLDER"]="Enter your middle name",e["WEBSITE_LABEL"]="Website",e["WEBSITE_PLACEHOLDER"]="Enter your website",e["NAME_LABEL"]="Full Name",e["NAME_PLACEHOLDER"]="Enter your full name",e["PHOTO_PICKER_TITLE"]="Picker Title",e["PHOTO_PICKER_HINT"]="Ancillary text or content may occupy this space here",e["PHOTO_PICKER_PLACEHOLDER_HINT"]="Placeholder hint",e["PHOTO_PICKER_BUTTON_TEXT"]="Button",e["IMAGE_PICKER_TITLE"]="Add Profile Photo",e["IMAGE_PICKER_HINT"]="Preview the image before upload",e["IMAGE_PICKER_PLACEHOLDER_HINT"]="Tap to image select",e["IMAGE_PICKER_BUTTON_TEXT"]="Upload",e["PICKER_TEXT"]="Pick a file",e["TEXT_FALLBACK_CONTENT"]="Fallback Content",e["CONFIRM_SIGN_UP_FAILED"]="Confirm Sign Up Failed",e["SIGN_UP_FAILED"]="Sign Up Failed"})(r||(r={})),function(e){e["CHATBOT_TITLE"]="ChatBot Lex",e["TEXT_INPUT_PLACEHOLDER"]="Write a message",e["VOICE_INPUT_PLACEHOLDER"]="Click mic to speak",e["CHAT_DISABLED_ERROR"]="Error: Either voice or text must be enabled for the chatbot",e["NO_BOT_NAME_ERROR"]="Error: Bot name must be provided to ChatBot"}(o||(o={}));var a=Object.assign(Object.assign(Object.assign({},r),i.A),o)},4175:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_amazon_button:()=>p,amplify_auth0_button:()=>v,amplify_facebook_button:()=>y,amplify_google_button:()=>w,amplify_oauth_button:()=>S});var r=n(7652),o=n(6867),i=n(7619),a=n(8292),s=n(5716),u=n(2715),l=n(9186),c=n(5501),f=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},d=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.r(t),n.d(t,{amplify_auth_container:()=>o});var r=n(7652),o=function(){function e(e){(0,r.r)(this,e)}return e.prototype.render=function(){return(0,r.h)(r.H,null,(0,r.h)("form",{autoComplete:"on",hidden:!0},(0,r.h)("input",{name:"username"}),(0,r.h)("input",{name:"password",type:"password"}),(0,r.h)("input",{type:"submit"})),(0,r.h)("slot",null))},e}()},560:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_auth_fields:()=>c,amplify_code_field:()=>f,amplify_country_dial_code:()=>h,amplify_email_field:()=>p,amplify_form_section:()=>v,amplify_password_field:()=>m,amplify_phone_field:()=>b,amplify_select:()=>C,amplify_username_field:()=>E});var r=n(7652),o=n(7619),i=n(6867),a=n(2715),s=n(9186),u={username:function(e){return(0,r.h)("amplify-username-field",{label:e.label,placeholder:e.placeholder,required:e.required,handleInputChange:e.handleInputChange,value:e.value,inputProps:e.inputProps,disabled:e.disabled,hint:e.hint})},password:function(e){return(0,r.h)("amplify-password-field",{label:e.label,placeholder:e.placeholder,hint:e.hint,required:e.required,handleInputChange:e.handleInputChange,value:e.value,inputProps:e.inputProps,disabled:e.disabled})},email:function(e){return(0,r.h)("amplify-email-field",{label:e.label,placeholder:e.placeholder,required:e.required,handleInputChange:e.handleInputChange,value:e.value,inputProps:e.inputProps,disabled:e.disabled,hint:e.hint})},code:function(e){return(0,r.h)("amplify-code-field",{label:e.label,placeholder:e.placeholder,hint:e.hint,required:e.required,handleInputChange:e.handleInputChange,value:e.value,inputProps:Object.assign(Object.assign({},e.inputProps),{min:"0"}),disabled:e.disabled})},phone_number:function(e){return(0,r.h)("amplify-phone-field",{label:e.label,placeholder:e.placeholder,required:e.required,handleInputChange:e.handleInputChange,value:e.value,inputProps:e.inputProps,disabled:e.disabled,dialCode:e.dialCode,hint:e.hint})},default:function(e){return(0,r.h)("amplify-form-field",{label:e.label,type:e.type,placeholder:e.placeholder,required:e.required,handleInputChange:e.handleInputChange,value:e.value,inputProps:e.inputProps,disabled:e.disabled,hint:e.hint})}},l=".auth-fields{margin-bottom:2rem}",c=function(){function e(e){(0,r.r)(this,e)}return e.prototype.constructFormFieldOptions=function(e){var t=[];return void 0===e?"":(e.forEach((function(e){"string"===typeof e?t.push(u[e](e)):Object.keys(u).includes(e.type)?t.push(u[e.type](e)):t.push(u["default"](e))})),t)},e.prototype.render=function(){return(0,r.h)("div",{class:"auth-fields"},this.constructFormFieldOptions(this.formFields))},e}();c.style=l;var f=function(){function e(e){(0,r.r)(this,e),this.fieldId=s.i,this.label=a.T.CODE_LABEL,this.placeholder=a.T.CODE_PLACEHOLDER,this.required=!1}return e.prototype.render=function(){return(0,r.h)("amplify-form-field",{fieldId:this.fieldId,label:o.o.get(this.label),placeholder:o.o.get(this.placeholder),type:"number",hint:this.hint,required:this.required,handleInputChange:this.handleInputChange,value:this.value,inputProps:this.inputProps,disabled:this.disabled})},e}(),d=[{label:"+1",value:"+1"},{label:"+7",value:"+7"},{label:"+20",value:"+20"},{label:"+27",value:"+27"},{label:"+30",value:"+30"},{label:"+31",value:"+31"},{label:"+32",value:"+32"},{label:"+33",value:"+33"},{label:"+34",value:"+34"},{label:"+36",value:"+36"},{label:"+39",value:"+39"},{label:"+40",value:"+40"},{label:"+41",value:"+41"},{label:"+43",value:"+43"},{label:"+44",value:"+44"},{label:"+45",value:"+45"},{label:"+46",value:"+46"},{label:"+47",value:"+47"},{label:"+48",value:"+48"},{label:"+49",value:"+49"},{label:"+51",value:"+51"},{label:"+52",value:"+52"},{label:"+53",value:"+53"},{label:"+54",value:"+54"},{label:"+55",value:"+55"},{label:"+56",value:"+56"},{label:"+57",value:"+57"},{label:"+58",value:"+58"},{label:"+60",value:"+60"},{label:"+61",value:"+61"},{label:"+62",value:"+62"},{label:"+63",value:"+63"},{label:"+64",value:"+64"},{label:"+65",value:"+65"},{label:"+66",value:"+66"},{label:"+81",value:"+81"},{label:"+82",value:"+82"},{label:"+84",value:"+84"},{label:"+86",value:"+86"},{label:"+90",value:"+90"},{label:"+91",value:"+91"},{label:"+92",value:"+92"},{label:"+93",value:"+93"},{label:"+94",value:"+94"},{label:"+95",value:"+95"},{label:"+98",value:"+98"},{label:"+212",value:"+212"},{label:"+213",value:"+213"},{label:"+216",value:"+216"},{label:"+218",value:"+218"},{label:"+220",value:"+220"},{label:"+221",value:"+221"},{label:"+222",value:"+222"},{label:"+223",value:"+223"},{label:"+224",value:"+224"},{label:"+225",value:"+225"},{label:"+226",value:"+226"},{label:"+227",value:"+227"},{label:"+228",value:"+228"},{label:"+229",value:"+229"},{label:"+230",value:"+230"},{label:"+231",value:"+231"},{label:"+232",value:"+232"},{label:"+233",value:"+233"},{label:"+234",value:"+234"},{label:"+235",value:"+235"},{label:"+236",value:"+236"},{label:"+237",value:"+237"},{label:"+238",value:"+238"},{label:"+239",value:"+239"},{label:"+240",value:"+240"},{label:"+241",value:"+241"},{label:"+242",value:"+242"},{label:"+243",value:"+243"},{label:"+244",value:"+244"},{label:"+245",value:"+245"},{label:"+246",value:"+246"},{label:"+248",value:"+248"},{label:"+249",value:"+249"},{label:"+250",value:"+250"},{label:"+251",value:"+251"},{label:"+252",value:"+252"},{label:"+253",value:"+253"},{label:"+254",value:"+254"},{label:"+255",value:"+255"},{label:"+256",value:"+256"},{label:"+257",value:"+257"},{label:"+258",value:"+258"},{label:"+260",value:"+260"},{label:"+261",value:"+261"},{label:"+262",value:"+262"},{label:"+263",value:"+263"},{label:"+264",value:"+264"},{label:"+265",value:"+265"},{label:"+266",value:"+266"},{label:"+267",value:"+267"},{label:"+268",value:"+268"},{label:"+269",value:"+269"},{label:"+290",value:"+290"},{label:"+291",value:"+291"},{label:"+297",value:"+297"},{label:"+298",value:"+298"},{label:"+299",value:"+299"},{label:"+345",value:"+345"},{label:"+350",value:"+350"},{label:"+351",value:"+351"},{label:"+352",value:"+352"},{label:"+353",value:"+353"},{label:"+354",value:"+354"},{label:"+355",value:"+355"},{label:"+356",value:"+356"},{label:"+357",value:"+357"},{label:"+358",value:"+358"},{label:"+359",value:"+359"},{label:"+370",value:"+370"},{label:"+371",value:"+371"},{label:"+372",value:"+372"},{label:"+373",value:"+373"},{label:"+374",value:"+374"},{label:"+375",value:"+375"},{label:"+376",value:"+376"},{label:"+377",value:"+377"},{label:"+378",value:"+378"},{label:"+379",value:"+379"},{label:"+380",value:"+380"},{label:"+381",value:"+381"},{label:"+382",value:"+382"},{label:"+385",value:"+385"},{label:"+386",value:"+386"},{label:"+387",value:"+387"},{label:"+389",value:"+389"},{label:"+420",value:"+420"},{label:"+421",value:"+421"},{label:"+423",value:"+423"},{label:"+500",value:"+500"},{label:"+501",value:"+501"},{label:"+502",value:"+502"},{label:"+503",value:"+503"},{label:"+504",value:"+504"},{label:"+505",value:"+505"},{label:"+506",value:"+506"},{label:"+507",value:"+507"},{label:"+508",value:"+508"},{label:"+509",value:"+509"},{label:"+537",value:"+537"},{label:"+590",value:"+590"},{label:"+591",value:"+591"},{label:"+593",value:"+593"},{label:"+594",value:"+594"},{label:"+595",value:"+595"},{label:"+596",value:"+596"},{label:"+597",value:"+597"},{label:"+598",value:"+598"},{label:"+599",value:"+599"},{label:"+670",value:"+670"},{label:"+672",value:"+672"},{label:"+673",value:"+673"},{label:"+674",value:"+674"},{label:"+675",value:"+675"},{label:"+676",value:"+676"},{label:"+677",value:"+677"},{label:"+678",value:"+678"},{label:"+679",value:"+679"},{label:"+680",value:"+680"},{label:"+681",value:"+681"},{label:"+682",value:"+682"},{label:"+683",value:"+683"},{label:"+685",value:"+685"},{label:"+686",value:"+686"},{label:"+687",value:"+687"},{label:"+688",value:"+688"},{label:"+689",value:"+689"},{label:"+690",value:"+690"},{label:"+691",value:"+691"},{label:"+692",value:"+692"},{label:"+850",value:"+850"},{label:"+852",value:"+852"},{label:"+853",value:"+853"},{label:"+855",value:"+855"},{label:"+856",value:"+856"},{label:"+872",value:"+872"},{label:"+880",value:"+880"},{label:"+886",value:"+886"},{label:"+960",value:"+960"},{label:"+961",value:"+961"},{label:"+962",value:"+962"},{label:"+963",value:"+963"},{label:"+964",value:"+964"},{label:"+965",value:"+965"},{label:"+966",value:"+966"},{label:"+967",value:"+967"},{label:"+968",value:"+968"},{label:"+970",value:"+970"},{label:"+971",value:"+971"},{label:"+972",value:"+972"},{label:"+973",value:"+973"},{label:"+974",value:"+974"},{label:"+975",value:"+975"},{label:"+976",value:"+976"},{label:"+977",value:"+977"},{label:"+992",value:"+992"},{label:"+993",value:"+993"},{label:"+994",value:"+994"},{label:"+995",value:"+995"},{label:"+996",value:"+996"},{label:"+998",value:"+998"}],h=function(){function e(e){(0,r.r)(this,e),this.fieldId=s.C,this.options=d,this.dialCode="+1"}return e.prototype.componentWillLoad=function(){this.setSelectedDialCode()},e.prototype.watchDialCodeHandler=function(){this.setSelectedDialCode()},e.prototype.setSelectedDialCode=function(){"number"===typeof this.dialCode?this.selectedDialCode="+"+this.dialCode:this.selectedDialCode=this.dialCode},e.prototype.render=function(){return(0,r.h)("amplify-select",{fieldId:this.fieldId,options:this.options,handleInputChange:this.handleInputChange,selected:this.selectedDialCode})},Object.defineProperty(e,"watchers",{get:function(){return{dialCode:["watchDialCodeHandler"]}},enumerable:!1,configurable:!0}),e}(),p=function(){function e(e){(0,r.r)(this,e),this.fieldId=s.E,this.label=a.T.EMAIL_LABEL,this.placeholder=a.T.EMAIL_PLACEHOLDER,this.required=!1}return e.prototype.render=function(){return(0,r.h)("amplify-form-field",{fieldId:this.fieldId,label:o.o.get(this.label),placeholder:o.o.get(this.placeholder),type:"email",name:"email",required:this.required,handleInputChange:this.handleInputChange,value:this.value,inputProps:this.inputProps,disabled:this.disabled,hint:this.hint})},e}(),g="amplify-form-section{--header-color:var(--amplify-secondary-color);--header-size:var(--amplify-text-md-sub);--subtitle-size:var(--amplify-grey);--subtitle-color:var(--amplify-grey);--footer-color:var(--amplify-grey);--footer-size:var(--amplify-text-sm);--font-family:var(--amplify-font-family);--font-weight:var(--amplify-font-weight)}.form-section-header{margin:1rem 0 1.5rem 0}.form-section-header .header{color:var(--header-color);font-size:var(--header-size);font-weight:700;margin-bottom:0.75rem}.form-section-header .subtitle{font-weight:400;font-size:var(--amplify-text-sm);color:var(--subtitle-color)}.form-section-footer{font-family:var(--font-family);font-weight:var(--font-weight);font-size:var(--footer-size);color:var(--footer-color);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:distribute;justify-content:space-around}@media (min-width: 672px){.form-section-footer{display:-ms-flexbox;display:flex;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:baseline;align-items:baseline}}.form-section-footer *+*{margin-top:15px}",v=function(){function e(e){(0,r.r)(this,e),this.submitButtonText="Submit",this.testDataPrefix="form-section",this.loading=!1,this.secondaryFooterContent=null}return e.prototype.handleFormSubmit=function(e){this.handleSubmit(e.detail)},e.prototype.render=function(){return(0,r.h)("form",{onSubmit:this.handleSubmit},(0,r.h)("amplify-section",null,(0,r.h)("div",null,(0,r.h)("slot",{name:"amplify-form-section-header"},(0,r.h)("div",{class:"form-section-header"},(0,r.h)("h3",{class:"header","data-test":this.testDataPrefix+"-header-section"},this.headerText),(0,r.h)("div",{class:"subtitle"},(0,r.h)("slot",{name:"subtitle"}))))),(0,r.h)("slot",null),(0,r.h)("div",null,(0,r.h)("slot",{name:"amplify-form-section-footer"},(0,r.h)("div",{class:"form-section-footer"},(0,r.h)("amplify-button",{type:"submit","data-test":this.testDataPrefix+"-"+this.testDataPrefix+"-button"},this.loading?(0,r.h)("amplify-loading-spinner",null):(0,r.h)("span",null,this.submitButtonText)),this.secondaryFooterContent)))))},e}();v.style=g;var m=function(){function e(e){(0,r.r)(this,e),this.fieldId=s.j,this.label=a.T.PASSWORD_LABEL,this.placeholder=a.T.PASSWORD_PLACEHOLDER,this.required=!1}return e.prototype.render=function(){return(0,r.h)("amplify-form-field",{type:"password",name:"password",fieldId:this.fieldId,label:o.o.get(this.label),placeholder:o.o.get(this.placeholder),hint:this.hint,required:this.required,handleInputChange:this.handleInputChange,value:this.value,inputProps:this.inputProps,disabled:this.disabled})},e}(),y=".phone-field{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:start;align-items:flex-start;width:100%}.phone-field input{border-left:none;border-radius:0 3px 3px 0}",b=function(){function e(e){(0,r.r)(this,e),this.fieldId=s.b,this.label=a.T.PHONE_LABEL,this.placeholder=a.T.PHONE_PLACEHOLDER,this.required=!1}return e.prototype.render=function(){return(0,r.h)("div",null,(0,r.h)("amplify-form-field",{label:o.o.get(this.label),hint:this.hint},(0,r.h)("div",{class:"phone-field",slot:"input"},(0,r.h)("amplify-country-dial-code",{dialCode:this.dialCode,handleInputChange:this.handleInputChange}),(0,r.h)("amplify-input",{fieldId:this.fieldId,type:"tel",handleInputChange:this.handleInputChange,placeholder:o.o.get(this.placeholder),name:this.fieldId,value:this.value,inputProps:this.inputProps,disabled:this.disabled,required:this.required}))))},e}();b.style=y;var w=":host{--color:var(--amplify-secondary-color);--background-color:var(--amplify-secondary-contrast);--border-color:var(--amplify-light-grey);--border-focus:var(--amplify-primary-color);--background-image:linear-gradient(45deg, transparent 50%, gray 50%),\n \tlinear-gradient(135deg, gray 50%, transparent 50%),\n \tlinear-gradient(to right, #ccc, #ccc)}.select{padding:1rem 1.75rem 1rem 1rem;font-size:var(--amplify-text-sm);color:var(--color);background-color:var(--background-color);border:1px solid var(--border-color);border-radius:3px 0 0 3px;-webkit-box-sizing:border-box;box-sizing:border-box;-webkit-appearance:none;-moz-appearance:none;appearance:none;-ms-flex-preferred-size:auto;flex-basis:auto;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;margin:0;height:3.125rem;background-image:var(--background-image);background-position:calc(100% - 1rem) calc(1em + 0.5rem), calc(100% - 0.7rem) calc(1em + 0.5rem), calc(100% - 2.5em) 0.5em;background-size:6px 5px, 6px 5px, 0px 1.5em;background-repeat:no-repeat}.select :focus{outline:none;border-color:var(--border-focus)}",S=[{label:"",value:1}],_=new i.k("amplify-select"),C=function(){function e(e){(0,r.r)(this,e),this.options=S}return e.prototype.componentWillLoad=function(){this.selectOptions=this.contructSelectOptions(this.options)},e.prototype.handleSelectOptionsChange=function(){this.selectOptions=this.contructSelectOptions(this.options)},e.prototype.isSelectedOptionValid=function(e){return!(e&&!this.options.some((function(t){return t.value===e})))||(_.warn("Selected option does not exist in options values, falling back to initial option"),!1)},e.prototype.contructSelectOptions=function(e){var t=this;this.isSelectedOptionValid(this.selected);var n=[];return e.forEach((function(e){n.push((0,r.h)("option",{value:e.value,selected:e.value===t.selected},e.label))})),n},e.prototype.render=function(){return(0,r.h)("select",{name:this.fieldId,id:this.fieldId,class:"select",onChange:this.handleInputChange},this.selectOptions)},Object.defineProperty(e,"watchers",{get:function(){return{options:["handleSelectOptionsChange"],selected:["handleSelectOptionsChange"]}},enumerable:!1,configurable:!0}),e}();C.style=w;var E=function(){function e(e){(0,r.r)(this,e),this.fieldId=s.k,this.label=a.T.USERNAME_LABEL,this.placeholder=a.T.USERNAME_PLACEHOLDER,this.required=!1}return e.prototype.render=function(){return(0,r.h)("amplify-form-field",{name:"username",fieldId:this.fieldId,label:o.o.get(this.label),placeholder:o.o.get(this.placeholder),required:this.required,handleInputChange:this.handleInputChange,value:this.value,inputProps:this.inputProps,disabled:this.disabled,hint:this.hint})},e}()},3326:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_authenticator:()=>y});var r,o=n(7652),i=n(6867),a=n(6954),s=n(8292),u=n(5696),l=n(5716),c=(n(2715),n(9186)),f=n(5501),d=n(1614),h=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},p=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.r(t),n.d(t,{amplify_button:()=>i,amplify_loading_spinner:()=>s,amplify_section:()=>l});var r=n(7652),o="amplify-button{--background-color:var(--amplify-primary-color);--background-color-active:var(--amplify-primary-shade);--background-color-disable:var(--amplify-primary-tint);--color:var(--amplify-primary-contrast);--border-width:0;--border-color:initial;--border-style:initial;--border-radius:initial;--link-color:var(--amplify-primary-color);--link-hover:var(--amplify-primary-tint);--link-active:var(--amplify-primary-shade);--text-transform:uppercase;--icon-fill:var(--amplify-white);--icon-height:1.25rem;--padding:1rem;--width:100%;width:var(--width);text-align:center}@media (min-width: 672px){amplify-button{width:inherit}}.button{width:100%;min-width:153px;display:inline-block;margin-bottom:0;font-size:var(--amplify-text-sm);font-family:var(--amplify-font-family);font-weight:600;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;color:var(--color);padding:var(--padding);letter-spacing:0.75px;text-transform:var(--text-transform);background-color:var(--background-color);border-width:var(--border-width);border-color:var(--border-color);border-style:var(--border-style);border-radius:var(--border-radius)}.button:active{opacity:1;background-color:var(--background-color-active)}.button:hover{opacity:0.8}.button:disabled{opacity:0.65;cursor:auto;background-color:var(--background-color-disable)}.icon{background-color:inherit;border:none;font:inherit;cursor:pointer;padding:var(--padding)}.icon amplify-icon{--icon-fill-color:var(--icon-fill);--height:var(--icon-height)}.anchor{color:var(--link-color);background-color:inherit;padding:0;border:none;font:inherit;cursor:pointer}.anchor:link{color:var(--link-color);text-decoration:none}.anchor:hover{color:var(--link-hover);text-decoration:underline}.anchor:active{color:var(--link-active);text-decoration:underline}",i=function(){function e(e){(0,r.r)(this,e),this.type="button",this.variant="button",this.disabled=!1}return e.prototype.render=function(){var e;return(0,r.h)(r.H,null,(0,r.h)("button",{class:(e={},e[this.variant]=!0,e),type:this.type,disabled:this.disabled,onClick:this.handleButtonClick},"icon"===this.variant&&(0,r.h)("amplify-icon",{name:this.icon}),(0,r.h)("slot",null)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();i.style=o;var a=":host{--spinner-circle-fill:var(--amplify-smoke-white);--spinner-bar-fill:var(--amplify-primary-color);--width:0.875rem;--height:0.875rem}.loading-spinner svg{-webkit-animation:loading-spinner 1s linear infinite;animation:loading-spinner 1s linear infinite;width:var(--width);height:var(--height)}.loading-spinner svg #spinner-circle{fill:var(--spinner-circle-fill)}.loading-spinner svg #spinner-bar{fill:var(--spinner-bar-fill)}@-webkit-keyframes loading-spinner{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loading-spinner{from{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}",s=function(){function e(e){(0,r.r)(this,e)}return e.prototype.render=function(){return(0,r.h)("amplify-icon",{class:"loading-spinner",name:"loading"})},e}();s.style=a;var u="amplify-section{--font-family:var(--amplify-font-family);--background-color:var(--amplify-background-color)}.section{position:relative;margin-bottom:var(--margin-bottom, 20px);background-color:var(--background-color);padding:var(--padding, 35px 40px);text-align:left;display:inline-block;border-radius:var(--border-radius, 6px);-webkit-box-shadow:var(--box-shadow, 1px 1px 4px 0 rgba(0, 0, 0, 0.15));box-shadow:var(--box-shadow, 1px 1px 4px 0 rgba(0, 0, 0, 0.15));-webkit-box-sizing:border-box;box-sizing:border-box;font-family:var(--font-family);width:100%;min-width:var(--min-width, 20rem)}@media (min-width: 672px){.section{width:var(--width, 28.75rem)}}",l=function(){function e(e){(0,r.r)(this,e),this.role="application"}return e.prototype.render=function(){return(0,r.h)("section",{class:"section",role:this.role},(0,r.h)("slot",null))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();l.style=u},3843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_chatbot:()=>rn});var r=n(7652),o=n(6867),i=n(5148),a=n(7619),s=n(2715),u=n(9186),l=n(1803),c=function(){return c=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=300?[2,Le(e,t)]:(n={$metadata:ft(e),activeContexts:void 0,alternativeIntents:void 0,audioStream:void 0,botVersion:void 0,contentType:void 0,dialogState:void 0,inputTranscript:void 0,intentName:void 0,message:void 0,messageFormat:void 0,nluIntentConfidence:void 0,sentimentResponse:void 0,sessionAttributes:void 0,sessionId:void 0,slotToElicit:void 0,slots:void 0},void 0!==e.headers["content-type"]&&(n.contentType=e.headers["content-type"]),void 0!==e.headers["x-amz-lex-intent-name"]&&(n.intentName=e.headers["x-amz-lex-intent-name"]),void 0!==e.headers["x-amz-lex-nlu-intent-confidence"]&&(n.nluIntentConfidence=new Ae.QT(Buffer.from(e.headers["x-amz-lex-nlu-intent-confidence"],"base64").toString("ascii"))),void 0!==e.headers["x-amz-lex-alternative-intents"]&&(n.alternativeIntents=new Ae.QT(Buffer.from(e.headers["x-amz-lex-alternative-intents"],"base64").toString("ascii"))),void 0!==e.headers["x-amz-lex-slots"]&&(n.slots=new Ae.QT(Buffer.from(e.headers["x-amz-lex-slots"],"base64").toString("ascii"))),void 0!==e.headers["x-amz-lex-session-attributes"]&&(n.sessionAttributes=new Ae.QT(Buffer.from(e.headers["x-amz-lex-session-attributes"],"base64").toString("ascii"))),void 0!==e.headers["x-amz-lex-sentiment"]&&(n.sentimentResponse=e.headers["x-amz-lex-sentiment"]),void 0!==e.headers["x-amz-lex-message"]&&(n.message=e.headers["x-amz-lex-message"]),void 0!==e.headers["x-amz-lex-message-format"]&&(n.messageFormat=e.headers["x-amz-lex-message-format"]),void 0!==e.headers["x-amz-lex-dialog-state"]&&(n.dialogState=e.headers["x-amz-lex-dialog-state"]),void 0!==e.headers["x-amz-lex-slot-to-elicit"]&&(n.slotToElicit=e.headers["x-amz-lex-slot-to-elicit"]),void 0!==e.headers["x-amz-lex-input-transcript"]&&(n.inputTranscript=e.headers["x-amz-lex-input-transcript"]),void 0!==e.headers["x-amz-lex-bot-version"]&&(n.botVersion=e.headers["x-amz-lex-bot-version"]),void 0!==e.headers["x-amz-lex-session-id"]&&(n.sessionId=e.headers["x-amz-lex-session-id"]),void 0!==e.headers["x-amz-lex-active-contexts"]&&(n.activeContexts=new Ae.QT(Buffer.from(e.headers["x-amz-lex-active-contexts"],"base64").toString("ascii"))),r=e.body,n.audioStream=r,[2,Promise.resolve(n)])}))}))},Le=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f,d,p,g,v,m,y,b,w,S;return(0,h.Jh)(this,(function(_){switch(_.label){case 0:return r=[(0,h.pi)({},e)],S={},[4,gt(e.body,t)];case 1:switch(n=h.pi.apply(void 0,r.concat([(S.body=_.sent(),S)])),i="UnknownError",i=vt(e,n.body),a=i,a){case"BadGatewayException":return[3,2];case"com.amazonaws.lexruntimeservice#BadGatewayException":return[3,2];case"BadRequestException":return[3,4];case"com.amazonaws.lexruntimeservice#BadRequestException":return[3,4];case"ConflictException":return[3,6];case"com.amazonaws.lexruntimeservice#ConflictException":return[3,6];case"DependencyFailedException":return[3,8];case"com.amazonaws.lexruntimeservice#DependencyFailedException":return[3,8];case"InternalFailureException":return[3,10];case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,10];case"LimitExceededException":return[3,12];case"com.amazonaws.lexruntimeservice#LimitExceededException":return[3,12];case"LoopDetectedException":return[3,14];case"com.amazonaws.lexruntimeservice#LoopDetectedException":return[3,14];case"NotAcceptableException":return[3,16];case"com.amazonaws.lexruntimeservice#NotAcceptableException":return[3,16];case"NotFoundException":return[3,18];case"com.amazonaws.lexruntimeservice#NotFoundException":return[3,18];case"RequestTimeoutException":return[3,20];case"com.amazonaws.lexruntimeservice#RequestTimeoutException":return[3,20];case"UnsupportedMediaTypeException":return[3,22];case"com.amazonaws.lexruntimeservice#UnsupportedMediaTypeException":return[3,22]}return[3,24];case 2:return s=[{}],[4,Ue(n,t)];case 3:return o=h.pi.apply(void 0,[h.pi.apply(void 0,s.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 4:return u=[{}],[4,Ne(n,t)];case 5:return o=h.pi.apply(void 0,[h.pi.apply(void 0,u.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 6:return l=[{}],[4,Fe(n,t)];case 7:return o=h.pi.apply(void 0,[h.pi.apply(void 0,l.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 8:return c=[{}],[4,De(n,t)];case 9:return o=h.pi.apply(void 0,[h.pi.apply(void 0,c.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 10:return f=[{}],[4,Be(n,t)];case 11:return o=h.pi.apply(void 0,[h.pi.apply(void 0,f.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 12:return d=[{}],[4,je(n,t)];case 13:return o=h.pi.apply(void 0,[h.pi.apply(void 0,d.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 14:return p=[{}],[4,qe(n,t)];case 15:return o=h.pi.apply(void 0,[h.pi.apply(void 0,p.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 16:return g=[{}],[4,ze(n,t)];case 17:return o=h.pi.apply(void 0,[h.pi.apply(void 0,g.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 18:return v=[{}],[4,$e(n,t)];case 19:return o=h.pi.apply(void 0,[h.pi.apply(void 0,v.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 20:return m=[{}],[4,He(n,t)];case 21:return o=h.pi.apply(void 0,[h.pi.apply(void 0,m.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 22:return y=[{}],[4,Ve(n,t)];case 23:return o=h.pi.apply(void 0,[h.pi.apply(void 0,y.concat([_.sent()])),{name:i,$metadata:ft(e)}]),[3,25];case 24:b=n.body,i=b.code||b.Code||i,o=(0,h.pi)((0,h.pi)({},b),{name:""+i,message:b.message||b.Message||i,$fault:"client",$metadata:ft(e)}),_.label=25;case 25:return w=o.message||o.Message||i,o.message=w,delete o.Message,[2,Promise.reject(Object.assign(new Error(w),o))]}}))}))},Re=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var n,r;return(0,h.Jh)(this,(function(o){switch(o.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Me(e,t)]:(n={$metadata:ft(e),activeContexts:void 0,alternativeIntents:void 0,botVersion:void 0,dialogState:void 0,intentName:void 0,message:void 0,messageFormat:void 0,nluIntentConfidence:void 0,responseCard:void 0,sentimentResponse:void 0,sessionAttributes:void 0,sessionId:void 0,slotToElicit:void 0,slots:void 0},[4,gt(e.body,t)]);case 1:return r=o.sent(),void 0!==r.activeContexts&&null!==r.activeContexts&&(n.activeContexts=Qe(r.activeContexts,t)),void 0!==r.alternativeIntents&&null!==r.alternativeIntents&&(n.alternativeIntents=it(r.alternativeIntents,t)),void 0!==r.botVersion&&null!==r.botVersion&&(n.botVersion=r.botVersion),void 0!==r.dialogState&&null!==r.dialogState&&(n.dialogState=r.dialogState),void 0!==r.intentName&&null!==r.intentName&&(n.intentName=r.intentName),void 0!==r.message&&null!==r.message&&(n.message=r.message),void 0!==r.messageFormat&&null!==r.messageFormat&&(n.messageFormat=r.messageFormat),void 0!==r.nluIntentConfidence&&null!==r.nluIntentConfidence&&(n.nluIntentConfidence=ot(r.nluIntentConfidence,t)),void 0!==r.responseCard&&null!==r.responseCard&&(n.responseCard=ut(r.responseCard,t)),void 0!==r.sentimentResponse&&null!==r.sentimentResponse&&(n.sentimentResponse=lt(r.sentimentResponse,t)),void 0!==r.sessionAttributes&&null!==r.sessionAttributes&&(n.sessionAttributes=ct(r.sessionAttributes,t)),void 0!==r.sessionId&&null!==r.sessionId&&(n.sessionId=r.sessionId),void 0!==r.slotToElicit&&null!==r.slotToElicit&&(n.slotToElicit=r.slotToElicit),void 0!==r.slots&&null!==r.slots&&(n.slots=ct(r.slots,t)),[2,Promise.resolve(n)]}}))}))},Me=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var n,r,o,i,a,s,u,l,c,f,d,p,g,v,m,y;return(0,h.Jh)(this,(function(b){switch(b.label){case 0:return r=[(0,h.pi)({},e)],y={},[4,gt(e.body,t)];case 1:switch(n=h.pi.apply(void 0,r.concat([(y.body=b.sent(),y)])),i="UnknownError",i=vt(e,n.body),a=i,a){case"BadGatewayException":return[3,2];case"com.amazonaws.lexruntimeservice#BadGatewayException":return[3,2];case"BadRequestException":return[3,4];case"com.amazonaws.lexruntimeservice#BadRequestException":return[3,4];case"ConflictException":return[3,6];case"com.amazonaws.lexruntimeservice#ConflictException":return[3,6];case"DependencyFailedException":return[3,8];case"com.amazonaws.lexruntimeservice#DependencyFailedException":return[3,8];case"InternalFailureException":return[3,10];case"com.amazonaws.lexruntimeservice#InternalFailureException":return[3,10];case"LimitExceededException":return[3,12];case"com.amazonaws.lexruntimeservice#LimitExceededException":return[3,12];case"LoopDetectedException":return[3,14];case"com.amazonaws.lexruntimeservice#LoopDetectedException":return[3,14];case"NotFoundException":return[3,16];case"com.amazonaws.lexruntimeservice#NotFoundException":return[3,16]}return[3,18];case 2:return s=[{}],[4,Ue(n,t)];case 3:return o=h.pi.apply(void 0,[h.pi.apply(void 0,s.concat([b.sent()])),{name:i,$metadata:ft(e)}]),[3,19];case 4:return u=[{}],[4,Ne(n,t)];case 5:return o=h.pi.apply(void 0,[h.pi.apply(void 0,u.concat([b.sent()])),{name:i,$metadata:ft(e)}]),[3,19];case 6:return l=[{}],[4,Fe(n,t)];case 7:return o=h.pi.apply(void 0,[h.pi.apply(void 0,l.concat([b.sent()])),{name:i,$metadata:ft(e)}]),[3,19];case 8:return c=[{}],[4,De(n,t)];case 9:return o=h.pi.apply(void 0,[h.pi.apply(void 0,c.concat([b.sent()])),{name:i,$metadata:ft(e)}]),[3,19];case 10:return f=[{}],[4,Be(n,t)];case 11:return o=h.pi.apply(void 0,[h.pi.apply(void 0,f.concat([b.sent()])),{name:i,$metadata:ft(e)}]),[3,19];case 12:return d=[{}],[4,je(n,t)];case 13:return o=h.pi.apply(void 0,[h.pi.apply(void 0,d.concat([b.sent()])),{name:i,$metadata:ft(e)}]),[3,19];case 14:return p=[{}],[4,qe(n,t)];case 15:return o=h.pi.apply(void 0,[h.pi.apply(void 0,p.concat([b.sent()])),{name:i,$metadata:ft(e)}]),[3,19];case 16:return g=[{}],[4,$e(n,t)];case 17:return o=h.pi.apply(void 0,[h.pi.apply(void 0,g.concat([b.sent()])),{name:i,$metadata:ft(e)}]),[3,19];case 18:v=n.body,i=v.code||v.Code||i,o=(0,h.pi)((0,h.pi)({},v),{name:""+i,message:v.message||v.Message||i,$fault:"client",$metadata:ft(e)}),b.label=19;case 19:return m=o.message||o.Message||i,o.message=m,delete o.Message,[2,Promise.reject(Object.assign(new Error(m),o))]}}))}))},Ue=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"BadGatewayException",$fault:"server",$metadata:ft(e),Message:void 0},n=e.body,void 0!==n.Message&&null!==n.Message&&(t.Message=n.Message),[2,t]}))}))},Ne=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"BadRequestException",$fault:"client",$metadata:ft(e),message:void 0},n=e.body,void 0!==n.message&&null!==n.message&&(t.message=n.message),[2,t]}))}))},Fe=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"ConflictException",$fault:"client",$metadata:ft(e),message:void 0},n=e.body,void 0!==n.message&&null!==n.message&&(t.message=n.message),[2,t]}))}))},De=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"DependencyFailedException",$fault:"client",$metadata:ft(e),Message:void 0},n=e.body,void 0!==n.Message&&null!==n.Message&&(t.Message=n.Message),[2,t]}))}))},Be=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"InternalFailureException",$fault:"server",$metadata:ft(e),message:void 0},n=e.body,void 0!==n.message&&null!==n.message&&(t.message=n.message),[2,t]}))}))},je=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"LimitExceededException",$fault:"client",$metadata:ft(e),message:void 0,retryAfterSeconds:void 0},void 0!==e.headers["retry-after"]&&(t.retryAfterSeconds=e.headers["retry-after"]),n=e.body,void 0!==n.message&&null!==n.message&&(t.message=n.message),[2,t]}))}))},qe=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"LoopDetectedException",$fault:"server",$metadata:ft(e),Message:void 0},n=e.body,void 0!==n.Message&&null!==n.Message&&(t.Message=n.Message),[2,t]}))}))},ze=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"NotAcceptableException",$fault:"client",$metadata:ft(e),message:void 0},n=e.body,void 0!==n.message&&null!==n.message&&(t.message=n.message),[2,t]}))}))},$e=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"NotFoundException",$fault:"client",$metadata:ft(e),message:void 0},n=e.body,void 0!==n.message&&null!==n.message&&(t.message=n.message),[2,t]}))}))},He=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"RequestTimeoutException",$fault:"client",$metadata:ft(e),message:void 0},n=e.body,void 0!==n.message&&null!==n.message&&(t.message=n.message),[2,t]}))}))},Ve=function(e,t){return(0,h.mG)(void 0,void 0,void 0,(function(){var t,n;return(0,h.Jh)(this,(function(r){return t={name:"UnsupportedMediaTypeException",$fault:"client",$metadata:ft(e),message:void 0},n=e.body,void 0!==n.message&&null!==n.message&&(t.message=n.message),[2,t]}))}))},Ke=function(e,t){return(0,h.pi)((0,h.pi)((0,h.pi)({},void 0!==e.name&&null!==e.name&&{name:e.name}),void 0!==e.parameters&&null!==e.parameters&&{parameters:We(e.parameters,t)}),void 0!==e.timeToLive&&null!==e.timeToLive&&{timeToLive:Ze(e.timeToLive,t)})},We=function(e,t){return Object.entries(e).reduce((function(e,t){var n,r=(0,h.CR)(t,2),o=r[0],i=r[1];return null===i?e:(0,h.pi)((0,h.pi)({},e),(n={},n[o]=i,n))}),{})},Ge=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:Ke(e,t)}))},Ze=function(e,t){return(0,h.pi)((0,h.pi)({},void 0!==e.timeToLiveInSeconds&&null!==e.timeToLiveInSeconds&&{timeToLiveInSeconds:e.timeToLiveInSeconds}),void 0!==e.turnsToLive&&null!==e.turnsToLive&&{turnsToLive:e.turnsToLive})},Ye=function(e,t){return Object.entries(e).reduce((function(e,t){var n,r=(0,h.CR)(t,2),o=r[0],i=r[1];return null===i?e:(0,h.pi)((0,h.pi)({},e),(n={},n[o]=i,n))}),{})},Je=function(e,t){return{name:void 0!==e.name&&null!==e.name?e.name:void 0,parameters:void 0!==e.parameters&&null!==e.parameters?Xe(e.parameters,t):void 0,timeToLive:void 0!==e.timeToLive&&null!==e.timeToLive?et(e.timeToLive,t):void 0}},Xe=function(e,t){return Object.entries(e).reduce((function(e,t){var n,r=(0,h.CR)(t,2),o=r[0],i=r[1];return null===i?e:(0,h.pi)((0,h.pi)({},e),(n={},n[o]=i,n))}),{})},Qe=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:Je(e,t)}))},et=function(e,t){return{timeToLiveInSeconds:void 0!==e.timeToLiveInSeconds&&null!==e.timeToLiveInSeconds?e.timeToLiveInSeconds:void 0,turnsToLive:void 0!==e.turnsToLive&&null!==e.turnsToLive?e.turnsToLive:void 0}},tt=function(e,t){return{text:void 0!==e.text&&null!==e.text?e.text:void 0,value:void 0!==e.value&&null!==e.value?e.value:void 0}},nt=function(e,t){return{attachmentLinkUrl:void 0!==e.attachmentLinkUrl&&null!==e.attachmentLinkUrl?e.attachmentLinkUrl:void 0,buttons:void 0!==e.buttons&&null!==e.buttons?at(e.buttons,t):void 0,imageUrl:void 0!==e.imageUrl&&null!==e.imageUrl?e.imageUrl:void 0,subTitle:void 0!==e.subTitle&&null!==e.subTitle?e.subTitle:void 0,title:void 0!==e.title&&null!==e.title?e.title:void 0}},rt=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:nt(e,t)}))},ot=function(e,t){return{score:void 0!==e.score&&null!==e.score?e.score:void 0}},it=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:st(e,t)}))},at=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:tt(e,t)}))},st=function(e,t){return{intentName:void 0!==e.intentName&&null!==e.intentName?e.intentName:void 0,nluIntentConfidence:void 0!==e.nluIntentConfidence&&null!==e.nluIntentConfidence?ot(e.nluIntentConfidence,t):void 0,slots:void 0!==e.slots&&null!==e.slots?ct(e.slots,t):void 0}},ut=function(e,t){return{contentType:void 0!==e.contentType&&null!==e.contentType?e.contentType:void 0,genericAttachments:void 0!==e.genericAttachments&&null!==e.genericAttachments?rt(e.genericAttachments,t):void 0,version:void 0!==e.version&&null!==e.version?e.version:void 0}},lt=function(e,t){return{sentimentLabel:void 0!==e.sentimentLabel&&null!==e.sentimentLabel?e.sentimentLabel:void 0,sentimentScore:void 0!==e.sentimentScore&&null!==e.sentimentScore?e.sentimentScore:void 0}},ct=function(e,t){return Object.entries(e).reduce((function(e,t){var n,r=(0,h.CR)(t,2),o=r[0],i=r[1];return null===i?e:(0,h.pi)((0,h.pi)({},e),(n={},n[o]=i,n))}),{})},ft=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"]}},dt=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},ht=function(e,t){return dt(e,t).then((function(e){return t.utf8Encoder(e)}))},pt=function(e){return void 0!==e&&null!==e&&""!==e&&(!Object.getOwnPropertyNames(e).includes("length")||0!=e.length)&&(!Object.getOwnPropertyNames(e).includes("size")||0!=e.size)},gt=function(e,t){return ht(e,t).then((function(e){return e.length?JSON.parse(e):{}}))},vt=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"]):""},mt=n(3646),yt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,h.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,mt.p2)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.logger,i="LexRuntimeServiceClient",a="PostTextCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:q.filterSensitiveLog,outputFilterSensitiveLog:Z.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return Pe(e,t)},t.prototype.deserialize=function(e,t){return Re(e,t)},t}(Ae.mY),bt=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return(0,h.ZT)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use((0,mt.p2)(t,this.serialize,this.deserialize));var r=e.concat(this.middlewareStack),o=t.logger,i="LexRuntimeServiceClient",a="PostContentCommand",s={logger:o,clientName:i,commandName:a,inputFilterSensitiveLog:N.filterSensitiveLog,outputFilterSensitiveLog:D.filterSensitiveLog},u=t.requestHandler;return r.resolve((function(e){return u.handle(e.request,n||{})}),s)},t.prototype.serialize=function(e,t){return Ie(e,t)},t.prototype.deserialize=function(e,t){return Oe(e,t)},t}(Ae.mY),wt=n(3987),St=n(8174),_t=function(e){if(e instanceof Blob||e instanceof ReadableStream)return new Response(e).arrayBuffer().then((function(e){return new Uint8Array(e)}));throw new Error("Readable is not supported.")},Ct=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Et=function(){return Et=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&&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&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]r||a<-1*r)&&(this.start=Date.now())}var s=Date.now(),u=s-this.start;u>o&&this.onSilence()}},e.prototype.exportWAV=function(e){return void 0===e&&(e=zt),Dt(this,void 0,void 0,(function(){var t,n;return Bt(this,(function(r){return this.audioSupported?(t=this.audioContext.sampleRate,n=Xt(this.streamBuffer,this.streamBufferLength,t,e),this.clear(),[2,n]):[2]}))}))},e}(),tn=function(e,t,n){if(n){if(!(0,i.lC)().isBrowser)throw new Error("Visualization is not supported on non-browsers.");var r=n.getBoundingClientRect(),o=r.width,a=r.height;n.width=o,n.height=a;var s=n.getContext("2d");s.fillStyle="white",s.clearRect(0,0,o,a);var u=function(){s.fillRect(0,0,o,a),s.lineWidth=1;var r=getComputedStyle(document.documentElement).getPropertyValue("--amplify-primary-color");s.strokeStyle=r&&""!==r?r:"#ff9900",s.beginPath();for(var i=1*o/t,u=0,l=0;l{"use strict";n.r(t),n.d(t,{amplify_checkbox:()=>i});var r=n(7652),o=":host{--font-family:var(--amplify-font-family)}.checkbox{margin-bottom:22px;display:block;width:100%;padding:16px;font-size:var(--amplify-text-sm);font-family:var(--font-family)}.checkbox input{margin-right:12px}",i=function(){function e(e){var t=this;(0,r.r)(this,e),this.checked=!1,this.disabled=!1,this.onClick=function(){t.checked=!t.checked}}return e.prototype.render=function(){return(0,r.h)("span",{class:"checkbox"},(0,r.h)("input",{onClick:this.onClick,type:"checkbox",name:this.name,value:this.value,id:this.fieldId,checked:this.checked,disabled:this.disabled}),(0,r.h)("amplify-label",{htmlFor:this.fieldId},this.label))},e}();i.style=o},1554:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_confirm_sign_in:()=>v,amplify_confirm_sign_up:()=>m,amplify_forgot_password:()=>b,amplify_require_new_password:()=>S,amplify_sign_in:()=>C,amplify_sign_up:()=>x,amplify_verify_contact:()=>k});var r=n(7652),o=n(7619),i=n(6867),a=n(5148),s=n(8292),u=n(5716),l=n(2715),c=n(9186),f=n(5501),d=n(1614),h=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},p=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&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)throw new Error(l.T.USERNAME_REMOVE_WHITESPACE);if(this.signUpAttributes.password!==this.signUpAttributes.password.trim())throw new Error(l.T.PASSWORD_REMOVE_WHITESPACE)},e.prototype.signUp=function(e){return h(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:if(e&&e.preventDefault(),!u.g||"function"!==typeof u.g.signUp)throw new Error(c.N);this.loading=!0,this.assignFormInputToSignUpAttributes(),o.label=1;case 1:return o.trys.push([1,6,7,8]),this.validateSignUpAttributes(),[4,this.handleSignUp(this.signUpAttributes)];case 2:return t=o.sent(),t.userConfirmed?[4,(0,d.h)(this.signUpAttributes.username,this.signUpAttributes.password,this.handleAuthStateChange)]:[3,4];case 3:return o.sent(),[3,5];case 4:n=Object.assign({},this.signUpAttributes),this.handleAuthStateChange(s.A.ConfirmSignUp,Object.assign(Object.assign({},t.user),{signUpAttrs:n})),o.label=5;case 5:return[3,8];case 6:return r=o.sent(),(0,f.a)(r),[3,8];case 7:return this.loading=!1,[7];case 8:return[2]}}))}))},e.prototype.buildDefaultFormFields=function(){switch(this.usernameAlias){case"email":this.newFormFields=[{type:"email",placeholder:o.o.get(l.T.SIGN_UP_EMAIL_PLACEHOLDER),required:!0,handleInputChange:this.handleFormFieldInputChange("email"),inputProps:{"data-test":"sign-up-email-input",autocomplete:"username"}},{type:"password",placeholder:o.o.get(l.T.SIGN_UP_PASSWORD_PLACEHOLDER),required:!0,handleInputChange:this.handleFormFieldInputChange("password"),inputProps:{"data-test":"sign-up-password-input",autocomplete:"new-password"}},{type:"phone_number",required:!0,handleInputChange:this.handleFormFieldInputChange("phone_number"),inputProps:{"data-test":"sign-up-phone-number-input",autocomplete:"tel-national"}}];break;case"phone_number":this.newFormFields=[{type:"phone_number",required:!0,handleInputChange:this.handleFormFieldInputChange("phone_number"),inputProps:{"data-test":"sign-up-phone-number-input",autocomplete:"username"}},{type:"password",placeholder:o.o.get(l.T.SIGN_UP_PASSWORD_PLACEHOLDER),required:!0,handleInputChange:this.handleFormFieldInputChange("password"),inputProps:{"data-test":"sign-up-password-input",autocomplete:"new-password"}},{type:"email",placeholder:o.o.get(l.T.SIGN_UP_EMAIL_PLACEHOLDER),required:!0,handleInputChange:this.handleFormFieldInputChange("email"),inputProps:{"data-test":"sign-up-email-input",autocomplete:"email"}}];break;case"username":default:this.newFormFields=[{type:"username",placeholder:o.o.get(l.T.SIGN_UP_USERNAME_PLACEHOLDER),required:!0,handleInputChange:this.handleFormFieldInputChange("username"),inputProps:{"data-test":"sign-up-username-input",autocomplete:"username"}},{type:"password",placeholder:o.o.get(l.T.SIGN_UP_PASSWORD_PLACEHOLDER),required:!0,handleInputChange:this.handleFormFieldInputChange("password"),inputProps:{"data-test":"sign-up-password-input",autocomplete:"new-password"}},{type:"email",placeholder:o.o.get(l.T.SIGN_UP_EMAIL_PLACEHOLDER),required:!0,handleInputChange:this.handleFormFieldInputChange("email"),inputProps:{"data-test":"sign-up-email-input"}},{type:"phone_number",required:!0,handleInputChange:this.handleFormFieldInputChange("phone_number"),inputProps:{"data-test":"sign-up-phone-number-input"}}];break}},e.prototype.buildFormFields=function(){var e=this;if(0===this.formFields.length)this.buildDefaultFormFields();else{var t=[];this.formFields.forEach((function(n){var r=Object.assign({},n);r["handleInputChange"]=function(t){return e.handleFormFieldInputWithCallback(t,n)},e.setFieldValue(n,e.signUpAttributes),t.push(r)})),this.newFormFields=t}},e.prototype.setFieldValue=function(e,t){switch(e.type){case"username":void 0===e.value?t.username="":t.username=e.value;break;case"password":void 0===e.value?t.password="":t.password=e.value;break;case"email":t.attributes.email=e.value;break;case"phone_number":e.dialCode&&(this.phoneNumber.countryDialCodeValue=e.dialCode),this.phoneNumber.phoneNumberValue=e.value;break;default:t.attributes[e.type]=e.value;break}},e.prototype.componentWillLoad=function(){(0,f.c)(this.usernameAlias),this.buildFormFields()},e.prototype.formFieldsHandler=function(){this.buildFormFields()},e.prototype.render=function(){var e=this;return(0,r.h)(r.H,null,(0,r.h)("amplify-form-section",{headerText:o.o.get(this.headerText),handleSubmit:this.handleSubmit,testDataPrefix:"sign-up"},(0,r.h)("div",{slot:"subtitle"},(0,r.h)("slot",{name:"header-subtitle"})),(0,r.h)("amplify-auth-fields",{formFields:this.newFormFields}),(0,r.h)("div",{class:"sign-up-form-footer",slot:"amplify-form-section-footer"},(0,r.h)("slot",{name:"footer"},(0,r.h)("slot",{name:"secondary-footer-content"},(0,r.h)("span",null,o.o.get(this.haveAccountText)," ",(0,r.h)("amplify-button",{variant:"anchor",onClick:function(){return e.handleAuthStateChange(s.A.SignIn)},"data-test":"sign-up-sign-in-link"},o.o.get(this.signInText)))),(0,r.h)("slot",{name:"primary-footer-content"},(0,r.h)("amplify-button",{type:"submit","data-test":"sign-up-create-account-button",disabled:this.loading},this.loading?(0,r.h)("amplify-loading-spinner",null):(0,r.h)("span",null,o.o.get(this.submitButtonText))))))))},Object.defineProperty(e,"watchers",{get:function(){return{formFields:["formFieldsHandler"]}},enumerable:!1,configurable:!0}),e}();x.style=E;var A=new i.k("AmplifyVerifyContact"),k=function(){function e(e){(0,r.r)(this,e),this.handleAuthStateChange=f.d,this.loading=!1}return e.prototype.handleSubmit=function(e){e.preventDefault(),this.verifyAttr?this.submit(this.code):this.verify(this.contact)},e.prototype.submit=function(e){return h(this,void 0,void 0,(function(){var t,n,r;return p(this,(function(o){switch(o.label){case 0:if(t=this.verifyAttr,!u.g||"function"!==typeof u.g.verifyCurrentUserAttributeSubmit)throw new Error(c.N);this.loading=!0,o.label=1;case 1:return o.trys.push([1,3,4,5]),[4,u.g.verifyCurrentUserAttributeSubmit(t,e)];case 2:return n=o.sent(),A.debug(n),this.handleAuthStateChange(s.A.SignedIn,this.user),this.verifyAttr=null,[3,5];case 3:return r=o.sent(),(0,f.a)(r),A.error(r),[3,5];case 4:return this.loading=!1,[7];case 5:return[2]}}))}))},e.prototype.verify=function(e){return h(this,void 0,void 0,(function(){var t,n;return p(this,(function(r){switch(r.label){case 0:if(!e)return A.error("Neither Email nor Phone Number selected"),[2];if(!u.g||"function"!==typeof u.g.verifyCurrentUserAttribute)throw new Error(c.N);this.loading=!0,r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,u.g.verifyCurrentUserAttribute(e)];case 2:return t=r.sent(),A.debug(t),this.verifyAttr=e,[3,5];case 3:return n=r.sent(),(0,f.a)(n),A.error(n),[3,5];case 4:return this.loading=!1,[7];case 5:return[2]}}))}))},e.prototype.handleInputChange=function(e){var t=e.target.name;"code"===t?this.code=e.target.value:"contact"===t&&(this.contact=e.target.value)},e.prototype.renderSubmit=function(){var e=this;return(0,r.h)("div",null,(0,r.h)("amplify-input",{inputProps:{autocomplete:"off","data-test":"verify-contact-code-input"},name:"code",placeholder:o.o.get(l.T.CODE_PLACEHOLDER),handleInputChange:function(t){return e.handleInputChange(t)}}))},e.prototype.renderVerify=function(){var e=this,t=this.user;if(!t)return A.debug("No user to verify"),null;var n=t.unverified;if(!n)return A.debug("Unverified variable does not exist on user"),null;var i=n.email,a=n.phone_number;return(0,r.h)("div",null,i&&(0,r.h)("amplify-radio-button",{label:o.o.get(l.T.VERIFY_CONTACT_EMAIL_LABEL),key:"email",name:"contact",value:"email",handleInputChange:function(t){return e.handleInputChange(t)},inputProps:{"data-test":"verify-contact-email-radio"}}),a&&(0,r.h)("amplify-radio-button",{label:o.o.get(l.T.VERIFY_CONTACT_PHONE_LABEL),key:"phone_number",name:"contact",value:"phone_number",handleInputChange:function(t){return e.handleInputChange(t)},inputProps:{"data-test":"verify-contact-phone-number-radio"}}))},e.prototype.render=function(){var e=this;return(0,r.h)(r.H,null,(0,r.h)("amplify-form-section",{handleSubmit:function(t){return e.handleSubmit(t)},headerText:o.o.get(l.T.VERIFY_CONTACT_HEADER_TEXT),loading:this.loading,secondaryFooterContent:(0,r.h)("span",null,(0,r.h)("amplify-button",{variant:"anchor",onClick:function(){return e.handleAuthStateChange(s.A.SignedIn,e.user)},"data-test":"verify-contact-skip-link"},"Skip")),submitButtonText:this.verifyAttr?o.o.get(l.T.VERIFY_CONTACT_SUBMIT_LABEL):o.o.get(l.T.VERIFY_CONTACT_VERIFY_LABEL)},this.verifyAttr?this.renderSubmit():this.renderVerify()))},e}()},50:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_container:()=>i});var r=n(7652),o="amplify-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:100vh}",i=function(){function e(e){(0,r.r)(this,e)}return e.prototype.render=function(){return(0,r.h)(r.H,null,(0,r.h)("slot",null))},e}();i.style=o},425:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_federated_buttons:()=>l,amplify_strike:()=>f});var r=n(7652),o=n(5148),i=n(8292),a=n(5716),s=(n(2715),n(9186)),u=n(5501),l=function(){function e(e){(0,r.r)(this,e),this.authState=i.A.SignIn,this.federated={},this.handleAuthStateChange=u.d}return e.prototype.componentWillLoad=function(){if(!a.g||"function"!==typeof a.g.configure)throw new Error(s.N);var e=a.g.configure().oauth,t=void 0===e?{}:e;t["domain"]?this.federated.oauthConfig=Object.assign(Object.assign({},this.federated.oauthConfig),t):t["awsCognito"]&&(this.federated.oauthConfig=Object.assign(Object.assign({},this.federated.oauthConfig),t["awsCognito"])),t["auth0"]&&(this.federated.auth0Config=Object.assign(Object.assign({},this.federated.auth0Config),t["auth0"]))},e.prototype.render=function(){if(!Object.values(i.A).includes(this.authState))return null;if((0,o.xb)(this.federated))return null;var e=this.federated,t=e.amazonClientId,n=e.auth0Config,a=e.facebookAppId,s=e.googleClientId,u=e.oauthConfig;return(0,r.h)("div",null,s&&(0,r.h)("div",null,(0,r.h)("amplify-google-button",{clientId:s,handleAuthStateChange:this.handleAuthStateChange})),a&&(0,r.h)("div",null,(0,r.h)("amplify-facebook-button",{appId:a,handleAuthStateChange:this.handleAuthStateChange})),t&&(0,r.h)("div",null,(0,r.h)("amplify-amazon-button",{clientId:t,handleAuthStateChange:this.handleAuthStateChange})),u&&(0,r.h)("div",null,(0,r.h)("amplify-oauth-button",{config:u})),n&&(0,r.h)("div",null,(0,r.h)("amplify-auth0-button",{config:n,handleAuthStateChange:this.handleAuthStateChange})))},e}(),c=".sc-amplify-strike-h{--color:var(--amplify-grey);--border-color:var(--amplify-light-grey);--content-background:var(--amplify-white);display:block;width:100%;text-align:center;border-bottom:1px solid var(--border-color);line-height:0.1em;margin:32px 0;color:var(--color)}.strike-content.sc-amplify-strike{background:var(--content-background);padding:0 25px;font-size:var(--amplify-text-sm);font-weight:500}",f=function(){function e(e){(0,r.r)(this,e)}return e.prototype.render=function(){return(0,r.h)("span",{class:"strike-content"},(0,r.h)("slot",null))},e}();f.style=c},4966:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_federated_sign_in:()=>l});var r=n(7652),o=n(6867),i=n(8292),a=n(5716),s=n(9186),u=new o.k("amplify-federated-sign-in"),l=function(){function e(e){(0,r.r)(this,e),this.authState=i.A.SignIn,this.federated={}}return e.prototype.componentWillLoad=function(){if(!a.g||"function"!==typeof a.g.configure)throw new Error(s.N);var e=a.g.configure().oauth,t=void 0===e?{}:e;t["domain"]?this.federated.oauth_config=Object.assign(Object.assign({},this.federated.oauth_config),t):t["awsCognito"]&&(this.federated.oauth_config=Object.assign(Object.assign({},this.federated.oauth_config),t["awsCognito"])),t["auth0"]&&(this.federated.auth0=Object.assign(Object.assign({},this.federated.auth0),t["auth0"]))},e.prototype.render=function(){return this.federated?Object.values(i.A).includes(this.authState)?(u.debug("federated Config is",this.federated),(0,r.h)("amplify-form-section",{"data-test":"federated-sign-in-section"},(0,r.h)("amplify-section",{"data-test":"federated-sign-in-body-section"},(0,r.h)("amplify-federated-buttons",{authState:this.authState,"data-test":"federated-sign-in-buttons",federated:this.federated})))):null:(u.debug("federated prop is empty. show nothing"),u.debug("federated={google_client_id: , facebook_app_id: , amazon_client_id}"),null)},e}()},4308:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_form_field:()=>a,amplify_hint:()=>u,amplify_input:()=>c,amplify_label:()=>d});var r=n(7652),o=(n(8292),n(2715),n(5501)),i="amplify-form-field{--label-font-size:var(--amplify-text-md);--description-font-size:var(--amplify-text-sm)}.form-field{margin-bottom:15px}.form-field-label{display:block;font-size:var(--label-font-size);padding-bottom:0.5em}.form-field-description{font-size:var(--description-font-size);padding-top:0.5em}",a=function(){function e(e){(0,r.r)(this,e),this.type="text",this.required=!1,this.placeholder=""}return e.prototype.render=function(){return(0,r.h)("div",{class:"form-field"},this.label&&(0,r.h)("div",{class:"form-field-label"},(0,r.h)("amplify-label",{htmlFor:this.fieldId},this.label)),this.description&&(0,r.h)("div",{id:this.fieldId+"-description",class:"form-field-description","data-test":"form-field-description"},this.description),(0,r.h)("div",null,(0,r.h)("slot",{name:"input"},(0,r.h)("amplify-input",{fieldId:this.fieldId,description:this.description,type:this.type,handleInputChange:this.handleInputChange,placeholder:this.placeholder,name:this.name,value:this.value,inputProps:this.inputProps,disabled:this.disabled,required:this.required}))),this.hint&&(0,r.h)("amplify-hint",{id:this.fieldId+"-hint"},this.hint))},e}();a.style=i;var s=":host{--color:var(--amplify-grey);--font-family:var(--amplify-font-family);--font-size:var(--amplify-text-xs);--font-weight:var(--amplify-font-weight)}.hint{color:var(--color);font-family:var(--font-family);font-weight:var(--font-weight);font-size:var(--font-size);margin-bottom:2.625rem}",u=function(){function e(e){(0,r.r)(this,e)}return e.prototype.render=function(){return(0,r.h)("div",{class:"hint"},(0,r.h)("slot",null))},e}();u.style=s;var l="amplify-input{--color:var(--amplify-secondary-color);--background-color:var(--amplify-secondary-contrast);--border-color:var(--amplify-light-grey);--border-color-focus:var(--amplify-primary-color);--border:1px solid var(--border-color);--margin:0 0 0.625rem 0}[data-autocompleted]{background-color:#e8f0fe !important}.input-host{width:100%}.input{display:block;width:100%;padding:1rem;font-size:var(--amplify-text-sm);color:var(--color);background-color:var(--background-color);background-image:none;border:var(--border);border-radius:3px;-webkit-box-sizing:border-box;box-sizing:border-box;margin:var(--margin);height:3.125rem;line-height:1.1;-webkit-box-shadow:none;box-shadow:none}.input:focus{outline:none;border-color:var(--border-color-focus)}.input:disabled{opacity:0.5}",c=function(){function e(e){(0,r.r)(this,e),this.type="text",this.handleInputChange=function(){},this.placeholder="",this.required=!1,this.autoCompleted=!1}return e.prototype.setAutoCompleteValue=function(e){var t=this.el.querySelector("input");t&&(t.value=e,t.dispatchEvent(new Event("input")),this.autoCompleted=!0)},e.prototype.checkAutoCompletion=function(e){var t=this;e&&(e.value?this.setAutoCompleteValue(e.value):e.addEventListener("input",(function(e){var n=e.target.value;t.setAutoCompleteValue(n)})))},e.prototype.disconnectedCallback=function(){this.removeHubListener&&this.removeHubListener()},e.prototype.componentWillLoad=function(){var e=this;(0,o.e)("amplify-authenticator",this.el)&&(this.removeHubListener=(0,o.o)((function(){var t=e.el.querySelector("input");t&&(t.value=""),e.autoCompleted=!1})))},e.prototype.componentDidLoad=function(){if(!this.autoCompleted&&!this.value&&!/Firefox/.test(navigator.userAgent)){var e=(0,o.e)("amplify-auth-container",this.el),t=(0,o.e)("amplify-sign-in",this.el);if(e&&t){var n=e.querySelector("input[name='username']"),r=e.querySelector("input[name='password']");"username"===this.name||"email"===this.name||"phone"===this.name?this.checkAutoCompletion(n):"password"===this.name&&this.checkAutoCompletion(r)}}},e.prototype.render=function(){var e=this;return(0,r.h)(r.H,{class:"input-host"},(0,r.h)("input",Object.assign({id:this.fieldId,"aria-describedby":this.fieldId&&this.description?this.fieldId+"-description":null,"data-autocompleted":this.autoCompleted,type:this.type,onInput:function(t){e.autoCompleted=!1,e.handleInputChange(t)},placeholder:this.placeholder,name:this.name,class:"input",value:this.value,disabled:this.disabled,required:this.required},this.inputProps)))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();c.style=l;var f=":host{--label-color:var(--amplify-secondary-color)}.label{color:var(--label-color);font-size:var(--amplify-text-sm);margin-bottom:16px}",d=function(){function e(e){(0,r.r)(this,e)}return e.prototype.render=function(){return(0,r.h)("label",{class:"label",htmlFor:this.htmlFor},(0,r.h)("slot",null))},e}();d.style=f},3151:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_greetings:()=>a});var r=n(7652),o=(n(8292),n(2715),n(5501)),i=":host{--background-color:var(--amplify-white);--border-color:var(--amplify-light-grey);--font-family:var(--amplify-font-family)}.greetings{display:-ms-flexbox;display:flex;border:1px solid transparent;background-color:var(--background-color);border-color:var(--border-color);padding:0.625rem;font-family:var(--font-family);-ms-flex-pack:justify;justify-content:space-between}.nav{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center}.logo{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;justify-self:flex-start}amplify-sign-out{margin-left:1rem}",a=function(){function e(e){(0,r.r)(this,e),this.username=null,this.logo=null,this.handleAuthStateChange=o.d}return e.prototype.render=function(){return(0,r.h)("header",{class:"greetings"},(0,r.h)("span",{class:"logo"},(0,r.h)("slot",{name:"logo"},this.logo&&(0,r.h)("span",null,this.logo))),(0,r.h)("span",{class:"nav"},(0,r.h)("slot",{name:"nav"},(0,r.h)("amplify-nav",null,this.username&&(0,r.h)("slot",{name:"greetings-message"},(0,r.h)("span",null,"Hello, ",this.username)),(0,r.h)("amplify-sign-out",{handleAuthStateChange:this.handleAuthStateChange})))))},e}();a.style=i},7645:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_icon_button:()=>i});var r=n(7652),o=":host{--button-color:var(--amplify-secondary-contrast);--button-background-hover:var(--amplify-secondary-color)}.action-button button{position:relative;padding:0;background:none;height:54px;width:54px;cursor:pointer;outline:none;text-decoration:none;border:none;border-radius:30px;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;color:var(--button-color);fill:currentColor}.action-button button:hover{background-color:var(--button-background-hover);-webkit-box-shadow:0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3);box-shadow:0.3px 0.3px 0.3px rgba(0, 0, 0, 0.3)}.action-button button:hover>.tooltip{display:block}.action-button button:hover>svg{-webkit-filter:none;filter:none}.action-button button:focus{outline:none}.action-button button svg{width:1.8em;height:1.8em;-webkit-filter:drop-shadow(1px 1px 1px var(--amplify-grey));filter:drop-shadow(1px 1px 1px var(--amplify-grey))}",i=function(){function e(e){(0,r.r)(this,e),this.tooltip=null,this.autoShowTooltip=!1}return e.prototype.render=function(){return(0,r.h)("span",{class:"action-button"},(0,r.h)("amplify-tooltip",{text:this.tooltip,shouldAutoShow:this.autoShowTooltip},(0,r.h)("button",null,(0,r.h)("amplify-icon",{name:this.name}))))},e}();i.style=o},3613:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_icon:()=>a});var r=n(7652),o=n(6714),i=".sc-amplify-icon-h{--width:auto;--height:auto;--icon-fill-color:var(--amplify-white)}svg.sc-amplify-icon{fill:var(--icon-fill-color);width:var(--width);height:var(--height)}",a=function(){function e(e){(0,r.r)(this,e)}return e.prototype.validateName=function(e){var t=null==typeof e;if(t)throw new Error("name: required")},e.prototype.render=function(){return o.i[this.name]()},Object.defineProperty(e,"watchers",{get:function(){return{name:["validateName"]}},enumerable:!1,configurable:!0}),e}();a.style=i},3108:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_link:()=>i});var r=n(7652),o=":host{--link-color:var(--amplify-primary-color);--link-hover:var(--amplify-primary-tint);--link-active:var(--amplify-primary-shade)}.link{color:var(--link-color);cursor:pointer}.link:link{color:var(--link-color);text-decoration:none}.link:hover{color:var(--link-hover);text-decoration:underline}.link:active{color:var(--link-active);text-decoration:underline}",i=function(){function e(e){(0,r.r)(this,e),this.role="navigation"}return e.prototype.render=function(){return(0,r.h)("a",{class:"link",role:this.role},(0,r.h)("slot",null))},Object.defineProperty(e.prototype,"el",{get:function(){return(0,r.g)(this)},enumerable:!1,configurable:!0}),e}();i.style=o},5369:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_nav:()=>h,amplify_sign_out:()=>p});var r=n(7652),o=n(7619),i=n(8292),a=n(5716),s=n(2715),u=n(9186),l=n(5501),c=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},f=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.r(t),n.d(t,{amplify_photo_picker:()=>s});var r=n(7652),o=n(7619),i=n(2715),a=":host{--object-fit:cover;--hint-color:var(--amplify-grey);--header-color:var(--amplify-secondary-color);--header-size:var(--amplify-text-lg);--header-hint-size:var(--amplify-text-md);--placeholder-hint-size:var(--amplify-text-sm);--placeholder-border-color:var(--amplify-grey)}.photo-picker-container{max-width:50rem}img{-o-object-fit:var(--object-fit);object-fit:var(--object-fit);width:100%;height:100%}input[type=file]{width:100%;height:100%;display:inline-block;position:absolute;left:0;top:0;opacity:0;cursor:pointer}.header{color:var(--header-color);font-size:var(--header-size);font-weight:bold;margin-bottom:24px}.header-hint{color:var(--hint-color);font-size:var(--header-hint-size);word-break:break-word;margin-bottom:24px}.picker-body{position:relative;width:25rem;height:16rem;border:2px dotted var(--placeholder-border-color);padding:10px;margin-bottom:8px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;overflow:hidden}.placeholder-hint{color:var(--hint-color);font-family:Helvetica;font-style:italic;font-size:var(--placeholder-hint-size);word-break:break-word;margin-bottom:30px}",s=function(){function e(e){var t=this;(0,r.r)(this,e),this.headerTitle=i.T.PHOTO_PICKER_TITLE,this.headerHint=i.T.PHOTO_PICKER_HINT,this.placeholderHint=i.T.PHOTO_PICKER_PLACEHOLDER_HINT,this.buttonText=i.T.PHOTO_PICKER_BUTTON_TEXT,this.handleClick=function(){},this.handleInput=function(e){t.file=e.target.files[0];var n=new FileReader;n.onload=function(e){var r=n.result;t.previewState=r},n.readAsDataURL(t.file)}}return e.prototype.componentWillLoad=function(){this.previewState=this.previewSrc},e.prototype.render=function(){var e=this;return(0,r.h)("div",{class:"photo-picker-container"},(0,r.h)("amplify-section",null,(0,r.h)("div",{class:"header"},o.o.get(this.headerTitle)),(0,r.h)("div",{class:"header-hint"},o.o.get(this.headerHint)),(0,r.h)("amplify-picker",{acceptValue:"image/*",inputHandler:this.handleInput},(0,r.h)("div",{class:"picker-body",slot:"picker"},this.previewState?(0,r.h)("img",{src:""+this.previewState}):(0,r.h)("amplify-icon",{name:"photoPlaceholder"}))),(0,r.h)("div",{class:"placeholder-hint"},o.o.get(this.placeholderHint)),(0,r.h)("amplify-button",{handleButtonClick:function(){return e.handleClick(e.file)}},o.o.get(this.buttonText))))},e}();s.style=a},7672:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_picker:()=>s});var r=n(7652),o=n(7619),i=n(2715),a=".picker{position:relative;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}input[type=file]{width:100%;height:100%;display:inline-block;position:absolute;left:0;top:0;opacity:0;cursor:pointer}",s=function(){function e(e){(0,r.r)(this,e),this.pickerText=i.T.PICKER_TEXT,this.acceptValue="*/*"}return e.prototype.render=function(){var e=this;return(0,r.h)("div",{class:"picker"},(0,r.h)("slot",{name:"picker"},(0,r.h)("amplify-button",null,o.o.get(this.pickerText))),(0,r.h)("input",{title:o.o.get(this.pickerText),type:"file",accept:this.acceptValue,onChange:function(t){return e.inputHandler(t)}}))},e}();s.style=a},5782:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_radio_button:()=>v,amplify_toast:()=>y,amplify_totp_setup:()=>Lt});var r=n(7652),o=n(6867),i=n(7619),a=n(8292),s=n(5716),u=n(2715),l=n(9186),c=n(5501),f=n(1614),d=n(4244),h=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},p=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]=C)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+C.toString(16)+" bytes");return 0|e}function A(e){return e!==e}function k(e,t){var n;return E.TYPED_ARRAY_SUPPORT?(n=new Uint8Array(t),n.__proto__=E.prototype):(n=e,null===n&&(n=new E(t)),n.length=t),n}function T(e,t){var n=k(e,t<0?0:0|x(t));if(!E.TYPED_ARRAY_SUPPORT)for(var r=0;r55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function M(e){if(E.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var t=e.length;return 0===t?0:R(e).length}function U(e,t,n,r){for(var o=0;o=t.length||o>=e.length)break;t[o+n]=e[o]}return o}function N(e,t,n,r){return U(R(t,e.length-n),e,n,r)}function F(e,t,n,r){if("number"===typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!==typeof ArrayBuffer&&t instanceof ArrayBuffer?O(e,t,n,r):"string"===typeof t?I(e,t):L(e,t)}E.TYPED_ARRAY_SUPPORT&&(E.prototype.__proto__=Uint8Array.prototype,E.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&E[Symbol.species]===E&&Object.defineProperty(E,Symbol.species,{value:null,configurable:!0,enumerable:!1,writable:!1})),E.prototype.write=function(e,t,n){void 0===t||void 0===n&&"string"===typeof t?(n=this.length,t=0):isFinite(t)&&(t|=0,isFinite(n)?n|=0:n=void 0);var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");return N(this,e,t,n)},E.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!E.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o40)throw new Error('"version" should be in range from 1 to 40');return 4*e+17},H=function(e){return z[e]},V=function(e){var t=0;while(0!==e)t++,e>>>=1;return t},K=function(e){if("function"!==typeof e)throw new Error('"toSJISFunc" is not a valid function.');D=e},W=function(){return"undefined"!==typeof D},G=function(e){return D(e)},Z={getSymbolSize:$,getSymbolTotalCodewords:H,getBCHDigit:V,setToSJISFunction:K,isKanjiModeEnabled:W,toSJIS:G};function Y(e,t,n){return n={path:t,exports:{},require:function(e,t){return J()}},e(n,n.exports),n.exports}function J(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}var X=Y((function(e,t){function n(e){if("string"!==typeof e)throw new Error("Param is not a string");var n=e.toLowerCase();switch(n){case"l":case"low":return t.L;case"m":case"medium":return t.M;case"q":case"quartile":return t.Q;case"h":case"high":return t.H;default:throw new Error("Unknown EC Level: "+e)}}t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&"undefined"!==typeof e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return n(e)}catch(o){return r}}}));function Q(){this.buffer=[],this.length=0}Q.prototype={get:function(e){var t=Math.floor(e/8);return 1===(this.buffer[t]>>>7-e%8&1)},put:function(e,t){for(var n=0;n>>t-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var ee=Q;function te(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=q.alloc(e*e),this.reservedBit=q.alloc(e*e)}te.prototype.set=function(e,t,n,r){var o=e*this.size+t;this.data[o]=n,r&&(this.reservedBit[o]=!0)},te.prototype.get=function(e,t){return this.data[e*this.size+t]},te.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n},te.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var ne=te,re=Y((function(e,t){var n=Z.getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];for(var t=Math.floor(e/7)+2,r=n(e),o=145===r?26:2*Math.ceil((r-13)/(2*t-2)),i=[r-7],a=1;a=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){for(var t=e.size,r=0,o=0,i=0,a=null,s=null,u=0;u=5&&(r+=n.N1+(o-5)),a=c,o=1),c=e.get(l,u),c===s?i++:(i>=5&&(r+=n.N1+(i-5)),s=c,i=1)}o>=5&&(r+=n.N1+(o-5)),i>=5&&(r+=n.N1+(i-5))}return r},t.getPenaltyN2=function(e){for(var t=e.size,r=0,o=0;o=10&&(1488===o||93===o)&&r++,i=i<<1&2047|e.get(s,a),s>=10&&(1488===i||93===i)&&r++}return r*n.N3},t.getPenaltyN4=function(e){for(var t=0,r=e.data.length,o=0;o=0){for(var r=n[0],o=0;o0){var i=q.alloc(this.degree);return r.copy(i,o),i}return r};var Ce=_e,Ee=function(e){return!isNaN(e)&&e>=1&&e<=40},xe={isValid:Ee},Ae="[0-9]+",ke="[A-Z $%*+\\-./:]+",Te="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Te=Te.replace(/u/g,"\\u");var Ie="(?:(?![A-Z0-9 $%*+\\-./:]|"+Te+")(?:.|[\r\n]))+",Pe=new RegExp(Te,"g"),Oe=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),Le=new RegExp(Ie,"g"),Re=new RegExp(Ae,"g"),Me=new RegExp(ke,"g"),Ue=new RegExp("^"+Te+"$"),Ne=new RegExp("^"+Ae+"$"),Fe=new RegExp("^[A-Z0-9 $%*+\\-./:]+$"),De=function(e){return Ue.test(e)},Be=function(e){return Ne.test(e)},je=function(e){return Fe.test(e)},qe={KANJI:Pe,BYTE_KANJI:Oe,BYTE:Le,NUMERIC:Re,ALPHANUMERIC:Me,testKanji:De,testNumeric:Be,testAlphanumeric:je},ze=Y((function(e,t){function n(e){if("string"!==typeof e)throw new Error("Param is not a string");var n=e.toLowerCase();switch(n){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw new Error("Unknown mode: "+e)}}t.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},t.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},t.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},t.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},t.MIXED={bit:-1},t.getCharCountIndicator=function(e,t){if(!e.ccBits)throw new Error("Invalid mode: "+e);if(!xe.isValid(t))throw new Error("Invalid version: "+t);return t>=1&&t<10?e.ccBits[0]:t<27?e.ccBits[1]:e.ccBits[2]},t.getBestModeForData=function(e){return qe.testNumeric(e)?t.NUMERIC:qe.testAlphanumeric(e)?t.ALPHANUMERIC:qe.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw new Error("Invalid mode")},t.isValid=function(e){return e&&e.bit&&e.ccBits},t.from=function(e,r){if(t.isValid(e))return e;try{return n(e)}catch(o){return r}}})),$e=Y((function(e,t){var n=7973,r=Z.getBCHDigit(n);function o(e,n,r){for(var o=1;o<=40;o++)if(n<=t.getCapacity(o,r,e))return o}function i(e,t){return ze.getCharCountIndicator(e,t)+4}function a(e,t){var n=0;return e.forEach((function(e){var r=i(e.mode,t);n+=r+e.getBitsLength()})),n}function s(e,n){for(var r=1;r<=40;r++){var o=a(e,r);if(o<=t.getCapacity(r,n,ze.MIXED))return r}}t.from=function(e,t){return xe.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,n){if(!xe.isValid(e))throw new Error("Invalid QR Code version");"undefined"===typeof n&&(n=ze.BYTE);var r=Z.getSymbolTotalCodewords(e),o=he.getTotalCodewordsCount(e,t),a=8*(r-o);if(n===ze.MIXED)return a;var s=a-i(n,e);switch(n){case ze.NUMERIC:return Math.floor(s/10*3);case ze.ALPHANUMERIC:return Math.floor(s/11*2);case ze.KANJI:return Math.floor(s/13);case ze.BYTE:default:return Math.floor(s/8)}},t.getBestVersionForData=function(e,t){var n,r=X.from(t,X.M);if(S(e)){if(e.length>1)return s(e,r);if(0===e.length)return 1;n=e[0]}else n=e;return o(n.mode,n.getLength(),r)},t.getEncodedBits=function(e){if(!xe.isValid(e)||e<7)throw new Error("Invalid QR Code version");var t=e<<12;while(Z.getBCHDigit(t)-r>=0)t^=n<=0)r^=He<0&&(n=this.data.substr(t),r=parseInt(n,10),e.put(r,3*o+1))};var Ye=Ze,Je=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Xe(e){this.mode=ze.ALPHANUMERIC,this.data=e}Xe.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},Xe.prototype.getLength=function(){return this.data.length},Xe.prototype.getBitsLength=function(){return Xe.getBitsLength(this.data.length)},Xe.prototype.write=function(e){var t;for(t=0;t+2<=this.data.length;t+=2){var n=45*Je.indexOf(this.data[t]);n+=Je.indexOf(this.data[t+1]),e.put(n,11)}this.data.length%2&&e.put(Je.indexOf(this.data[t]),6)};var Qe=Xe;function et(e){this.mode=ze.BYTE,this.data=q.from(e)}et.getBitsLength=function(e){return 8*e},et.prototype.getLength=function(){return this.data.length},et.prototype.getBitsLength=function(){return et.getBitsLength(this.data.length)},et.prototype.write=function(e){for(var t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else{if(!(n>=57408&&n<=60351))throw new Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");n-=49472}n=192*(n>>>8&255)+(255&n),e.put(n,13)}};var rt=nt,ot=Y((function(e){var t={single_source_shortest_paths:function(e,n,r){var o={},i={};i[n]=0;var a,s,u,l,c,f,d,h,p,g=t.PriorityQueue.make();g.push(n,0);while(!g.empty())for(u in a=g.pop(),s=a.value,l=a.cost,c=e[s]||{},c)c.hasOwnProperty(u)&&(f=c[u],d=l+f,h=i[u],p="undefined"===typeof i[u],(p||h>d)&&(i[u]=d,g.push(u,d),o[u]=s));if("undefined"!==typeof r&&"undefined"===typeof i[r]){var v=["Could not find a path from ",n," to ",r,"."].join("");throw new Error(v)}return o},extract_shortest_path_from_predecessor_list:function(e,t){var n=[],r=t;while(r)n.push(r),r=e[r];return n.reverse(),n},find_path:function(e,n,r){var o=t.single_source_shortest_paths(e,n,r);return t.extract_shortest_path_from_predecessor_list(o,r)},PriorityQueue:{make:function(e){var n,r=t.PriorityQueue,o={};for(n in e=e||{},r)r.hasOwnProperty(n)&&(o[n]=r[n]);return o.queue=[],o.sorter=e.sorter||r.default_sorter,o},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){var n={value:e,cost:t};this.queue.push(n),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t})),it=Y((function(e,t){function n(e){return unescape(encodeURIComponent(e)).length}function r(e,t,n){var r,o=[];while(null!==(r=e.exec(n)))o.push({data:r[0],index:r.index,mode:t,length:r[0].length});return o}function o(e){var t,n,o=r(qe.NUMERIC,ze.NUMERIC,e),i=r(qe.ALPHANUMERIC,ze.ALPHANUMERIC,e);Z.isKanjiModeEnabled()?(t=r(qe.BYTE,ze.BYTE,e),n=r(qe.KANJI,ze.KANJI,e)):(t=r(qe.BYTE_KANJI,ze.BYTE,e),n=[]);var a=o.concat(i,t,n);return a.sort((function(e,t){return e.index-t.index})).map((function(e){return{data:e.data,mode:e.mode,length:e.length}}))}function i(e,t){switch(t){case ze.NUMERIC:return Ye.getBitsLength(e);case ze.ALPHANUMERIC:return Qe.getBitsLength(e);case ze.KANJI:return rt.getBitsLength(e);case ze.BYTE:return tt.getBitsLength(e)}}function a(e){return e.reduce((function(e,t){var n=e.length-1>=0?e[e.length-1]:null;return n&&n.mode===t.mode?(e[e.length-1].data+=t.data,e):(e.push(t),e)}),[])}function s(e){for(var t=[],r=0;r=0&&s<=6&&(0===u||6===u)||u>=0&&u<=6&&(0===s||6===s)||s>=2&&s<=4&&u>=2&&u<=4?e.set(i+s,a+u,!0,!0):e.set(i+s,a+u,!1,!0))}function st(e){for(var t=e.size,n=8;n>s&1),e.set(n,r,o,!0),e.set(r,n,o,!0)}function ct(e,t,n){var r,o,i=e.size,a=Ge.getEncodedBits(t,n);for(r=0;r<15;r++)o=1===(a>>r&1),r<6?e.set(r,8,o,!0):r<8?e.set(r+1,8,o,!0):e.set(i-15+r,8,o,!0),r<8?e.set(8,i-r-1,o,!0):r<9?e.set(8,15-r-1+1,o,!0):e.set(8,15-r-1,o,!0);e.set(i-8,8,1,!0)}function ft(e,t){for(var n=e.size,r=-1,o=n-1,i=7,a=0,s=n-1;s>0;s-=2){6===s&&s--;while(1){for(var u=0;u<2;u++)if(!e.isReserved(o,s-u)){var l=!1;a>>i&1)),e.set(o,s-u,l),i--,-1===i&&(a++,i=7)}if(o+=r,o<0||n<=o){o-=r,r=-r;break}}}}function dt(e,t,n){var r=new ee;n.forEach((function(t){r.put(t.mode.bit,4),r.put(t.getLength(),ze.getCharCountIndicator(t.mode,e)),t.write(r)}));var o=Z.getSymbolTotalCodewords(e),i=he.getTotalCodewordsCount(e,t),a=8*(o-i);r.getLengthInBits()+4<=a&&r.put(0,4);while(r.getLengthInBits()%8!==0)r.putBit(0);for(var s=(a-r.getLengthInBits())/8,u=0;u=7&<(c,t),ft(c,u),isNaN(r)&&(r=ue.getBestMask(c,ct.bind(null,c,n))),ue.applyMask(r,c),ct(c,n,r),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:r,segments:o}}var gt=function(e,t){if("undefined"===typeof e||""===e)throw new Error("No input text");var n,r,o=X.M;return"undefined"!==typeof t&&(o=X.from(t.errorCorrectionLevel,X.M),n=$e.from(t.version),r=ue.from(t.maskPattern),t.toSJISFunc&&Z.setToSJISFunction(t.toSJISFunc)),pt(e,n,o,r)},vt={create:gt},mt=Y((function(e,t){function n(e){if("number"===typeof e&&(e=e.toString()),"string"!==typeof e)throw new Error("Color should be defined as hex string");var t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw new Error("Invalid hex color: "+e);3!==t.length&&4!==t.length||(t=Array.prototype.concat.apply([],t.map((function(e){return[e,e]})))),6===t.length&&t.push("F","F");var n=parseInt(t.join(""),16);return{r:n>>24&255,g:n>>16&255,b:n>>8&255,a:255&n,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});var t="undefined"===typeof e.margin||null===e.margin||e.margin<0?4:e.margin,r=e.width&&e.width>=21?e.width:void 0,o=e.scale||4;return{width:r,scale:r?4:o,margin:t,color:{dark:n(e.color.dark||"#000000ff"),light:n(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},t.getScale=function(e,t){return t.width&&t.width>=e+2*t.margin?t.width/(e+2*t.margin):t.scale},t.getImageWidth=function(e,n){var r=t.getScale(e,n);return Math.floor((e+2*n.margin)*r)},t.qrToImageData=function(e,n,r){for(var o=n.modules.size,i=n.modules.data,a=t.getScale(o,r),s=Math.floor((o+2*r.margin)*a),u=r.margin*a,l=[r.color.light,r.color.dark],c=0;c=u&&f>=u&&c0&&u>0&&e[s-1]||(r+=i?wt("M",u+n,.5+l+n):wt("m",o,0),o=0,i=!1),u+1':"",u="',l='viewBox="0 0 '+a+" "+a+'"',c=r.width?'width="'+r.width+'" height="'+r.width+'" ':"",f=''+s+u+"\n";return"function"===typeof n&&n(null,f),f},Ct={render:_t};function Et(e,t,n,r,o){var i=[].slice.call(arguments,1),a=i.length,s="function"===typeof i[a-1];if(!s&&!b())throw new Error("Callback required as last argument");if(!s){if(a<1)throw new Error("Too few arguments provided");return 1===a?(n=t,t=r=void 0):2!==a||t.getContext||(r=n,n=t,t=void 0),new Promise((function(o,i){try{var a=vt.create(n,r);o(e(a,t,r))}catch(s){i(s)}}))}if(a<2)throw new Error("Too few arguments provided");2===a?(o=n,n=t,t=r=void 0):3===a&&(t.getContext&&"undefined"===typeof o?(o=r,r=void 0):(o=r,r=n,n=t,t=void 0));try{var u=vt.create(n,r);o(null,e(u,t,r))}catch(l){o(l)}}var xt=vt.create,At=Et.bind(null,yt.render),kt=Et.bind(null,yt.renderToDataURL),Tt=Et.bind(null,(function(e,t,n){return Ct.render(e,n)})),It={create:xt,toCanvas:At,toDataURL:kt,toString:Tt},Pt=".totp-setup{text-align:center;margin-bottom:30px}.totp-setup img{height:128px;width:128px}",Ot=new o.k("TOTP"),Lt=function(){function e(e){(0,r.r)(this,e),this.inputProps={autoFocus:!0},this.handleAuthStateChange=c.d,this.headerText=u.T.TOTP_HEADER_TEXT,this.issuer=u.T.TOTP_ISSUER,this.handleComplete=this.onTOTPEvent,this.standalone=!1,this.code=null,this.setupMessage=null,this.qrCodeInput=null,this.loading=!1}return e.prototype.componentWillLoad=function(){return h(this,void 0,void 0,(function(){var e=this;return p(this,(function(t){switch(t.label){case 0:return this.standalone||(this.removeHubListener=(0,c.o)((function(t){t===a.A.TOTPSetup&&e.setup()}))),[4,this.setup()];case 1:return t.sent(),[2]}}))}))},e.prototype.handleUserChange=function(){this.standalone&&this.setup()},e.prototype.disconnectedCallback=function(){this.removeHubListener&&this.removeHubListener()},e.prototype.buildOtpAuthPath=function(e,t,n){return"otpauth://totp/"+t+":"+e.username+"?secret="+n+"&issuer="+t},e.prototype.onTOTPEvent=function(e){return h(this,void 0,void 0,(function(){return p(this,(function(t){switch(t.label){case 0:return Ot.debug("on totp event"),[4,(0,f.c)(e,this.handleAuthStateChange)];case 1:return t.sent(),[2]}}))}))},e.prototype.handleTotpInputChange=function(e){this.setupMessage=null,this.qrCodeInput=e.target.value},e.prototype.generateQRCode=function(e){return h(this,void 0,void 0,(function(){var t,n;return p(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),t=this,[4,It.toDataURL(e)];case 1:return t.qrCodeImageSource=r.sent(),[3,3];case 2:return n=r.sent(),(0,c.a)(n),[3,3];case 3:return[2]}}))}))},e.prototype.setup=function(){return h(this,void 0,void 0,(function(){var e,t,n;return p(this,(function(r){switch(r.label){case 0:if(this.code||this.loading)return Ot.debug("setup was attempted while another is in progress, skipping setup."),[2];if(!this.user||!this.user.associateSoftwareToken)return Ot.debug("setup was attempted with invalid `user`, skipping setup.",this.user),[2];if(!s.g||"function"!==typeof s.g.setupTOTP)throw new Error(l.N);this.setupMessage=null,e=encodeURI(i.o.get(this.issuer)),this.loading=!0,r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,s.g.setupTOTP(this.user)];case 2:return t=r.sent(),Ot.debug("secret key",t),this.code=this.buildOtpAuthPath(this.user,e,t),this.generateQRCode(this.code),[3,5];case 3:return n=r.sent(),(0,c.a)(n),Ot.debug(i.o.get(u.T.TOTP_SETUP_FAILURE),n),[3,5];case 4:return this.loading=!1,[7];case 5:return[2]}}))}))},e.prototype.verifyTotpToken=function(e){return h(this,void 0,void 0,(function(){var t,n;return p(this,(function(r){switch(r.label){case 0:if(e&&e.preventDefault(),!this.qrCodeInput)return Ot.debug("No TOTP Code provided"),[2];if(t=this.user,!s.g||"function"!==typeof s.g.verifyTotpToken||"function"!==typeof s.g.setPreferredMFA)throw new Error(l.N);r.label=1;case 1:return r.trys.push([1,5,,6]),[4,s.g.verifyTotpToken(t,this.qrCodeInput)];case 2:return r.sent(),[4,s.g.setPreferredMFA(t,a.M.TOTP)];case 3:return r.sent(),this.setupMessage=i.o.get(u.T.TOTP_SUCCESS_MESSAGE),Ot.debug(i.o.get(u.T.TOTP_SUCCESS_MESSAGE)),[4,this.handleComplete(t)];case 4:return r.sent(),[3,6];case 5:return n=r.sent(),this.setupMessage=i.o.get(u.T.TOTP_SETUP_FAILURE),Ot.error(n),[3,6];case 6:return[2]}}))}))},e.prototype.render=function(){var e=this;return(0,r.h)(r.H,null,(0,r.h)("amplify-form-section",{headerText:i.o.get(this.headerText),submitButtonText:i.o.get(u.T.TOTP_SUBMIT_BUTTON_TEXT),handleSubmit:function(t){return e.verifyTotpToken(t)},loading:this.loading},(0,r.h)("div",{class:"totp-setup"},this.qrCodeImageSource&&(0,r.h)("img",{src:this.qrCodeImageSource,alt:i.o.get(u.T.QR_CODE_ALT)}),(0,r.h)("amplify-form-field",{label:i.o.get(u.T.TOTP_LABEL),inputProps:this.inputProps,fieldId:"totpCode",name:"totpCode",handleInputChange:function(t){return e.handleTotpInputChange(t)}}))))},Object.defineProperty(e,"watchers",{get:function(){return{user:["handleUserChange"]}},enumerable:!1,configurable:!0}),e}();Lt.style=Pt},2127:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_s3_album:()=>A});var r,o=n(7652),i=n(6867),a=n(5148),s=n(7619),u=n(7100),l=n(2715),c=n(9186),f=n(2493),d=n(4179),h=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},p=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]1&&void 0!==arguments[1]?arguments[1]:0,n=(w[e[t+0]]+w[e[t+1]]+w[e[t+2]]+w[e[t+3]]+"-"+w[e[t+4]]+w[e[t+5]]+"-"+w[e[t+6]]+w[e[t+7]]+"-"+w[e[t+8]]+w[e[t+9]]+"-"+w[e[t+10]]+w[e[t+11]]+w[e[t+12]]+w[e[t+13]]+w[e[t+14]]+w[e[t+15]]).toLowerCase();if(!b(n))throw TypeError("Stringified UUID is invalid");return n}function C(e,t,n){e=e||{};var r=e.random||(e.rng||m)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return _(r)}var E=":host{--overlay-bg-color:rgba(0, 0, 0, 0.15)}.album-container{-webkit-box-sizing:border-box;box-sizing:border-box;max-width:100%;margin:0 auto;padding:0 2rem}.grid-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:-1rem -1rem;padding-bottom:3rem}.grid-item{position:relative;-ms-flex:1 0 22rem;flex:1 0 22rem;-ms-flex-positive:1;flex-grow:1;margin:1rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}amplify-s3-image{--width:22rem;--height:20rem;border-radius:5px;-o-object-fit:cover;object-fit:cover}.img-overlay{display:none;width:100%;height:21rem;position:absolute;top:0;left:0;background-color:var(--overlay-bg-color)}.grid-item:hover .img-overlay{display:block}",x=new i.k("S3Album"),A=function(){function e(e){var t=this;(0,o.r)(this,e),this.contentType="binary/octet-stream",this.level=u.A.Public,this.picker=!0,this.pickerText=l.T.PICKER_TEXT,this.albumItems=[],this.imgArr={},this.list=function(){return h(t,void 0,void 0,(function(){var e,t,n,r,o,i,a,s;return p(this,(function(u){switch(u.label){case 0:if(e=this,t=e.path,n=void 0===t?"":t,r=e.level,o=e.track,i=e.identityId,x.debug("Album path: "+n),!f.Ke||"function"!==typeof f.Ke.list)throw new Error(c.d);u.label=1;case 1:return u.trys.push([1,3,,4]),[4,f.Ke.list(n,{level:r,track:o,identityId:i})];case 2:return a=u.sent(),this.marshal(a),[3,4];case 3:return s=u.sent(),x.warn(s),[3,4];case 4:return[2]}}))}))},this.marshal=function(e){e.forEach((function(e){var n=e.key.toLowerCase(),r=n.split(".")[1];d.i.has(r)&&(!e.contentType||e.contentType&&"binary/octet-stream"===e.contentType)&&(e.contentType=t.getContentType(e))}));var n=e.filter((function(e){return e.contentType&&e.contentType.startsWith("image/")})),r=t.filter?t.filter(n):n;r=t.sort?t.sort(r):r,t.albumItems=r,x.debug("album items",t.albumItems),t.constructImgArray(t.albumItems)},this.constructImgArray=function(e){e.map((function(e){t.imgArr[""+e["key"]]=e["key"]}))},this.handlePick=function(e){return h(t,void 0,void 0,(function(){var t,n,r,o,i,a,s,u,l,c;return p(this,(function(f){switch(f.label){case 0:t=e.target.files[0],n=this,r=n.path,o=void 0===r?"":r,i=n.level,a=n.track,s=n.fileToKey,u=o+(0,d.c)(t,s),f.label=1;case 1:return f.trys.push([1,3,,4]),[4,(0,d.p)(u,t,i,a,t["type"],x)];case 2:return f.sent(),[3,4];case 3:throw l=f.sent(),x.error(l),new Error(l);case 4:return Object.keys(this.imgArr).includes(u)?(this.albumItems=g(this.albumItems),this.imgArr[u]=u+"-"+C()):(c=g(this.albumItems,this.filter?this.filter([{key:u}]):[{key:u}]),this.albumItems=this.sort?this.sort(c):c),[2]}}))}))}}return e.prototype.getContentType=function(e){return(0,a.rI)(e.key,"image/*")},e.prototype.componentWillLoad=function(){this.list()},e.prototype.render=function(){var e=this;return(0,o.h)("div",null,(0,o.h)("div",{class:"album-container"},(0,o.h)("div",{class:"grid-row"},this.albumItems.map((function(t){return(0,o.h)("div",{class:"grid-item",key:"key-"+t.key},(0,o.h)("amplify-s3-image",{key:e.imgArr[t.key],imgKey:t.key,level:e.level,path:e.path,identityId:e.identityId,track:e.track,handleOnError:e.handleOnError,handleOnLoad:e.handleOnLoad}),(0,o.h)("span",{class:"img-overlay"}))})))),this.picker&&(0,o.h)("amplify-picker",{pickerText:s.o.get(this.pickerText),inputHandler:function(t){return e.handlePick(t)},acceptValue:"image/*"}))},e}();A.style=E},9217:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_s3_image_picker:()=>d});var r=n(7652),o=n(6867),i=n(7619),a=n(7100),s=n(2715),u=(n(2493),n(4179)),l=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.r(t),n.d(t,{amplify_s3_image:()=>f});var r=n(7652),o=n(6867),i=n(7100),a=(n(2493),n(4179)),s=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},u=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.r(t),n.d(t,{amplify_s3_text_picker:()=>d});var r=n(7652),o=n(6867),i=n(7619),a=n(7100),s=n(2715),u=(n(2493),n(4179)),l=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.r(t),n.d(t,{amplify_s3_text:()=>h});var r=n(7652),o=n(6867),i=n(7619),a=n(7100),s=n(2715),u=(n(2493),n(4179)),l=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},c=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.r(t),n.d(t,{amplify_select_mfa_type:()=>h});var r=n(7652),o=n(6867),i=n(7619),a=n(8292),s=n(5716),u=n(2715),l=n(9186),c=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},f=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.r(t),n.d(t,{amplify_sign_in_button:()=>a});var r=n(7652),o=n(6714),i='.sc-amplify-sign-in-button-h{--button-color:var(--amplify-secondary-color);--amazon-button-background:var(--amplify-primary-color);--amazon-button-color:var(--amplify-primary-contrast);--auth0-button-background:#eb5424;--auth0--button-border-color:#e14615;--auth0-button-color:var(--amplify-white);--facebook-button-background:#4267b2;--facebook--button-border-color:#4267b2;--facebook-button-color:var(--amplify-white);--google-button-background:#4285f4;--google--button-border-color:#4285f4;--google-button-color:var(--amplify-white);--oauth-button-background:var(--amplify-white);--oauth--button-color:#152939}.sign-in-button.sc-amplify-sign-in-button button.sc-amplify-sign-in-button{position:relative;width:100%;border-radius:4px;margin-bottom:10px;cursor:pointer;padding:0;color:var(--button-color);font-size:var(--amplify-text-sm);-webkit-box-sizing:content-box;box-sizing:content-box}.sign-in-button.sc-amplify-sign-in-button button.sc-amplify-sign-in-button:hover{opacity:0.8}.sign-in-button.amazon.sc-amplify-sign-in-button button.sc-amplify-sign-in-button{background-color:var(--amazon-button-background);border:none;color:var(--amazon-button-color);font-family:"Amazon Ember"}.sign-in-button.auth0.sc-amplify-sign-in-button button.sc-amplify-sign-in-button{background-color:var(--auth0-button-background);font-family:Roboto;border:1px solid var(--auth0--button-border-color);color:var(--auth0-button-color)}.sign-in-button.facebook.sc-amplify-sign-in-button button.sc-amplify-sign-in-button{background-color:var(--facebook-button-background);border-color:var(--facebook--button-border-color);font-family:"Helvetica Neue";color:var(--facebook-button-color)}.sign-in-button.google.sc-amplify-sign-in-button button.sc-amplify-sign-in-button{background-color:var(--google-button-background);font-family:Roboto;border:1px solid var(--google--button-border-color);color:var(--google-button-color)}.sign-in-button.oauth.sc-amplify-sign-in-button button.sc-amplify-sign-in-button{background-color:var(--oauth-button-background);color:var(--oauth--button-color)}.sign-in-button.sc-amplify-sign-in-button .icon.sc-amplify-sign-in-button{position:absolute;left:0}.sign-in-button.amazon.sc-amplify-sign-in-button .icon.sc-amplify-sign-in-button{padding:10px;height:32px;width:32px}.sign-in-button.auth0.sc-amplify-sign-in-button .icon.sc-amplify-sign-in-button{border-radius:4px 0 0 4px;height:28px;width:28px;padding:12px;color:#fff}.sign-in-button.facebook.sc-amplify-sign-in-button .icon.sc-amplify-sign-in-button{height:33px;width:18px;padding:10px 14px}.sign-in-button.google.sc-amplify-sign-in-button .icon.sc-amplify-sign-in-button{background-color:#fff;border-radius:4px 0 0 4px;height:28px;width:28px;padding:12px}.sign-in-button.sc-amplify-sign-in-button .content.sc-amplify-sign-in-button{text-align:center;display:block;padding:18px 0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}',a=function(){function e(e){(0,r.r)(this,e)}return e.prototype.render=function(){return(0,r.h)("div",{class:"sign-in-button "+this.provider},(0,r.h)("button",null,this.provider in o.i&&(0,r.h)("span",{class:"icon"},(0,r.h)("amplify-icon",{name:this.provider})),(0,r.h)("span",{class:"content"},(0,r.h)("slot",null))))},e}();a.style=i},1977:(e,t,n)=>{"use strict";n.r(t),n.d(t,{amplify_tooltip:()=>i});var r=n(7652),o=':host{--font-family:var(--amplify-font-family);--background-color:var(--amplify-secondary-color);--color:var(--amplify-secondary-contrast);--border-color:var(--amplify-secondary-color)}.tooltip{display:inline;position:relative;font-size:var(--amplify-text-xxs);font-family:var(--font-family);margin:0 0 0 16px}.tooltip :after{background-color:var(--background-color);border-radius:2px;bottom:46px;color:var(--color);content:attr(data-text);text-decoration:none;padding:10px;left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%);position:absolute;white-space:nowrap;opacity:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}.tooltip :before{border:solid;border-color:var(--border-color) transparent transparent transparent;border-width:5px;bottom:36px;content:"";left:50%;-webkit-transform:translateX(-50%);-moz-transform:translateX(-50%);-ms-transform:translateX(-50%);-o-transform:translateX(-50%);transform:translateX(-50%);position:absolute;font-size:var(--amplify-text-sm);opacity:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}.tooltip :hover:after{opacity:1;-webkit-transition-delay:1s;transition-delay:1s}.tooltip :hover:before{opacity:1;-webkit-transition-delay:1s;transition-delay:1s}.auto-show-tooltip :after{opacity:1;-webkit-transition-delay:1s;transition-delay:1s}.auto-show-tooltip :before{opacity:1;-webkit-transition-delay:1s;transition-delay:1s}',i=function(){function e(e){(0,r.r)(this,e),this.shouldAutoShow=!1}return e.prototype.render=function(){return(0,r.h)("div",{class:{tooltip:!0,"auto-show-tooltip":this.shouldAutoShow},"data-text":this.text},(0,r.h)("slot",null))},e}();i.style=o},1614:(e,t,n)=>{"use strict";n.d(t,{c:()=>p,h:()=>g});var r=n(6867),o=n(5148),i=n(8292),a=n(5716),s=n(5696),u=n(2715),l=n(9186),c=n(5501),f=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},d=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";var r,o,i,a,s;n.d(t,{A:()=>r,C:()=>i,M:()=>o,U:()=>s,a:()=>a}),function(e){e["SignUp"]="signup",e["SignOut"]="signout",e["SignIn"]="signin",e["Loading"]="loading",e["SignedOut"]="signedout",e["SignedIn"]="signedin",e["SigningUp"]="signingup",e["ConfirmSignUp"]="confirmSignUp",e["confirmingSignUpCustomFlow"]="confirmsignupcustomflow",e["ConfirmSignIn"]="confirmSignIn",e["confirmingSignInCustomFlow"]="confirmingsignincustomflow",e["VerifyingAttributes"]="verifyingattributes",e["ForgotPassword"]="forgotpassword",e["ResetPassword"]="resettingpassword",e["SettingMFA"]="settingMFA",e["TOTPSetup"]="TOTPSetup",e["CustomConfirmSignIn"]="customConfirmSignIn",e["VerifyContact"]="verifyContact"}(r||(r={})),function(e){e["TOTP"]="TOTP",e["SMS"]="SMS",e["NOMFA"]="NOMFA"}(o||(o={})),function(e){e["SoftwareTokenMFA"]="SOFTWARE_TOKEN_MFA",e["SMSMFA"]="SMS_MFA",e["NewPasswordRequired"]="NEW_PASSWORD_REQUIRED",e["MFASetup"]="MFA_SETUP",e["CustomChallenge"]="CUSTOM_CHALLENGE"}(i||(i={})),function(e){e["Password"]="password"}(a||(a={})),function(e){e["username"]="username",e["email"]="email",e["phone_number"]="phone_number"}(s||(s={}))},9186:(e,t,n)=>{"use strict";n.d(t,{A:()=>m,C:()=>u,E:()=>o,N:()=>d,P:()=>f,T:()=>b,U:()=>y,a:()=>w,b:()=>a,c:()=>p,d:()=>h,e:()=>g,f:()=>v,g:()=>l,h:()=>c,i:()=>i,j:()=>s,k:()=>r});var r="username",o="email",i="code",a="phone",s="password",u="country-dial-code-select",l="+1",c="amplify-auth-source",f="Phone number can not be empty",d="No Auth module found, please ensure @aws-amplify/auth is imported",h="No Storage module found, please ensure @aws-amplify/storage is imported",p="No Interactions module found, please ensure @aws-amplify/interactions is imported",g="User has not set up software token mfa",v="User has not verified software token mfa",m="auth",y="UI Auth",b="ToastAuthError",w="AuthStateChange"},2967:()=>{var e=function(){this.start=0,this.end=0,this.previous=null,this.parent=null,this.rules=null,this.parsedCssText="",this.cssText="",this.atRule=!1,this.type=0,this.keyframesName="",this.selector="",this.parsedSelector=""};function t(e){return o(r(e=n(e)),e)}function n(e){return e.replace(l.comments,"").replace(l.port,"")}function r(t){var n=new e;n.start=0,n.end=t.length;for(var r=n,o=0,i=t.length;o0?a.join(",").trim():void 0}}function S(e,t,n){var r=w(e,n);if(!r)return t.push(e.substring(n,e.length)),e.length;var o=r.propName,i=null!=r.fallback?x(r.fallback):void 0;return t.push(e.substring(n,r.start),(function(e){return y(e,o,i)})),r.end}function _(e,t){for(var n="",r=0;r0&&e.parsedSelector.split(",").forEach((function(e){e=e.trim(),n.push({selector:e,declarations:r,specificity:T(),nu:t})})),t++})),n}function T(e){return 1}var I="!important",P=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gm;function O(e){for(var t,n=[];t=P.exec(e.trim());){var r=L(t[2]),o=r.value,i=r.important;n.push({prop:t[1].trim(),value:x(o),important:i})}return n}function L(e){var t=(e=e.replace(/\s+/gim," ").trim()).endsWith(I);return t&&(e=e.substr(0,e.length-I.length).trim()),{value:e,important:t}}function R(e,t,n){var r=[],o=M(t,e);return n.forEach((function(e){return r.push(e)})),o.forEach((function(e){return r.push(e)})),N(U(r).filter((function(t){return F(e,t.selector)})))}function M(e,t){for(var n=[];t;){var r=e.get(t);r&&n.push(r),t=t.parentElement}return n}function U(e){var t=[];return e.forEach((function(e){t.push.apply(t,e.selectors)})),t}function N(e){return e.sort((function(e,t){return e.specificity===t.specificity?e.nu-t.nu:e.specificity-t.specificity})),e}function F(e,t){return":root"===t||"html"===t||e.matches(t)}function D(e){var n=t(e),r=x(e);return{original:e,template:r,selectors:k(n),usesCssVars:r.length>1}}function B(e,t){if(e.some((function(e){return e.styleEl===t})))return!1;var n=D(t.textContent);return n.styleEl=t,e.push(n),!0}function j(e){var t=A(U(e));e.forEach((function(e){e.usesCssVars&&(e.styleEl.textContent=_(e.template,t))}))}function q(e,t){var n=e.template.map((function(n){return"string"==typeof n?z(n,e.scopeId,t):n})),r=e.selectors.map((function(n){return Object.assign(Object.assign({},n),{selector:z(n.selector,e.scopeId,t)})}));return Object.assign(Object.assign({},e),{template:n,selectors:r,scopeId:t})}function z(e,t,n){return $(e,"\\."+t,"."+n)}function $(e,t,n){return e.replace(new RegExp(t,"g"),n)}function H(e,t){return W(e,t),K(e,t).then((function(){j(t)}))}function V(e,t){"undefined"!=typeof MutationObserver&&new MutationObserver((function(){W(e,t)&&j(t)})).observe(document.head,{childList:!0})}function K(e,t){for(var n=[],r=e.querySelectorAll('link[rel="stylesheet"][href]:not([data-no-shim])'),o=0;o-1||Z.test(e)}var J=/url[\s]*\([\s]*['"]?(?!(?:https?|data)\:|\/)([^\'\"\)]*)[\s]*['"]?\)[\s]*/gim;function X(e){return J.lastIndex=0,J.test(e)}function Q(e,t){var n=t.replace(/[^/]*$/,"");return e.replace(J,(function(e,t){var r=n+t;return e.replace(t,r)}))}var ee=function(){function e(e,t){this.win=e,this.doc=t,this.count=0,this.hostStyleMap=new WeakMap,this.hostScopeMap=new WeakMap,this.globalScopes=[],this.scopesMap=new Map,this.didInit=!1}return e.prototype.i=function(){var e=this;return this.didInit||!this.win.requestAnimationFrame?Promise.resolve():(this.didInit=!0,new Promise((function(t){e.win.requestAnimationFrame((function(){V(e.doc,e.globalScopes),H(e.doc,e.globalScopes).then((function(){return t()}))}))})))},e.prototype.addLink=function(e){var t=this;return G(this.doc,this.globalScopes,e).then((function(){t.updateGlobal()}))},e.prototype.addGlobalStyle=function(e){B(this.globalScopes,e)&&this.updateGlobal()},e.prototype.createHostStyle=function(e,t,n,r){if(this.hostScopeMap.has(e))throw new Error("host style already created");var o=this.registerHostTemplate(n,t,r),i=this.doc.createElement("style");return i.setAttribute("data-no-shim",""),o.usesCssVars?r?(i["s-sc"]=t=o.scopeId+"-"+this.count,i.textContent="/*needs update*/",this.hostStyleMap.set(e,i),this.hostScopeMap.set(e,q(o,t)),this.count++):(o.styleEl=i,o.usesCssVars||(i.textContent=_(o.template,{})),this.globalScopes.push(o),this.updateGlobal(),this.hostScopeMap.set(e,o)):i.textContent=n,i},e.prototype.removeHost=function(e){var t=this.hostStyleMap.get(e);t&&t.remove(),this.hostStyleMap.delete(e),this.hostScopeMap.delete(e)},e.prototype.updateHost=function(e){var t=this.hostScopeMap.get(e);if(t&&t.usesCssVars&&t.isScoped){var n=this.hostStyleMap.get(e);if(n){var r=A(R(e,this.hostScopeMap,this.globalScopes));n.textContent=_(t.template,r)}}},e.prototype.updateGlobal=function(){j(this.globalScopes)},e.prototype.registerHostTemplate=function(e,t,n){var r=this.scopesMap.get(t);return r||((r=D(e)).scopeId=t,r.isScoped=n,this.scopesMap.set(t,r)),r},e}();!function(e){!e||e.__cssshim||e.CSS&&e.CSS.supports&&e.CSS.supports("color","var(--c)")||(e.__cssshim=new ee(e,e.document))}("undefined"!=typeof window&&window)},3994:()=>{(function(){var e=new Set("annotation-xml color-profile font-face font-face-src font-face-uri font-face-format font-face-name missing-glyph".split(" "));function t(t){var n=e.has(t);return t=/^[a-z][.0-9_a-z]*-[\-.0-9_a-z]*$/.test(t),!n&&t}function n(e){var t=e.isConnected;if(void 0!==t)return t;for(;e&&!(e.__CE_isImportDocument||e instanceof Document);)e=e.parentNode||(window.ShadowRoot&&e instanceof ShadowRoot?e.host:void 0);return!(!e||!(e.__CE_isImportDocument||e instanceof Document))}function r(e,t){for(;t&&t!==e&&!t.nextSibling;)t=t.parentNode;return t&&t!==e?t.nextSibling:null}function o(e,t,n){n=void 0===n?new Set:n;for(var i=e;i;){if(i.nodeType===Node.ELEMENT_NODE){var a=i;t(a);var s=a.localName;if("link"===s&&"import"===a.getAttribute("rel")){if(i=a.import,i instanceof Node&&!n.has(i))for(n.add(i),i=i.firstChild;i;i=i.nextSibling)o(i,t,n);i=r(e,a);continue}if("template"===s){i=r(e,a);continue}if(a=a.__CE_shadowRoot)for(a=a.firstChild;a;a=a.nextSibling)o(a,t,n)}i=i.firstChild?i.firstChild:r(e,i)}}function i(e,t,n){e[t]=n}function a(){this.a=new Map,this.g=new Map,this.c=[],this.f=[],this.b=!1}function s(e,t,n){e.a.set(t,n),e.g.set(n.constructorFunction,n)}function u(e,t){e.b=!0,e.c.push(t)}function l(e,t){e.b=!0,e.f.push(t)}function c(e,t){e.b&&o(t,(function(t){return f(e,t)}))}function f(e,t){if(e.b&&!t.__CE_patched){t.__CE_patched=!0;for(var n=0;n0?e.setAttribute("class",t.join(" ")):e.removeAttribute("class")}return""===t[0]&&t.splice(0,1),t.toggle=function(e,r){void 0!==r?r?t.add(e):t.remove(e):-1!==t.indexOf(e)?t.splice(t.indexOf(e),1):t.push(e),n()},t.add=function(){for(var e=[].slice.call(arguments),r=0,o=e.length;r{"use strict";n.d(t,{a:()=>g,b:()=>m,c:()=>y,d:()=>v,e:()=>p,g:()=>S,h:()=>_,i:()=>w,o:()=>b});var r=n(6867),o=n(6954),i=n(7619),a=n(8292),s=n(5716);n(5696);const u=s.g;var l=n(2715),c=n(9186),f=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},d=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";n.d(t,{i:()=>o});var r=n(7652),o={amazon:function(){return(0,r.h)("svg",{viewBox:"0 0 248 268",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"Artboard-Copy-2",fill:"none","fill-rule":"evenodd"},(0,r.h)("path",{d:"M139.056521,147.024612 C133.548808,156.744524 124.782731,162.726926 115.087401,162.726926 C101.790721,162.726926 93.9937779,152.612964 93.9937779,137.68681 C93.9937779,108.224571 120.447551,102.879017 145.533369,102.879017 L145.533369,110.365976 C145.533369,123.831358 145.876354,135.063787 139.056521,147.024612 M207.206992,162.579655 C209.400505,165.692256 209.887066,169.437725 207.063416,171.770186 C199.996315,177.653081 187.429476,188.590967 180.513926,194.716661 L180.46208,194.621133 C178.176838,196.663031 174.862638,196.810303 172.27828,195.445057 C160.780281,185.9162 158.686473,181.494078 152.405048,172.403055 C133.405233,191.751331 119.909143,197.534719 95.309886,197.534719 C66.1281801,197.534719 43.4791563,179.599451 43.4791563,143.669212 C43.4791563,115.616003 58.6782107,96.5105248 80.4019706,87.1727225 C99.2063636,78.9096034 125.464714,77.4528107 145.533369,75.1641337 L145.533369,70.694248 C145.533369,62.4749122 146.167493,52.7510201 141.297893,45.6541312 C137.110277,39.2856386 129.018206,36.6586354 121.859376,36.6586354 C108.658413,36.6586354 96.9171331,43.4171982 94.0416364,57.4199213 C93.4593582,60.532522 91.1701278,63.5933787 88.003492,63.7406501 L54.4387473,60.1424518 C51.6150972,59.5095829 48.4484614,57.2248862 49.2740201,52.8982915 C56.9712583,12.2553679 93.7983558,0 126.732964,0 C143.587124,0 165.606011,4.47386604 178.902691,17.2148315 C195.760839,32.917146 194.149604,53.8694866 194.149604,76.6726704 L194.149604,130.542157 C194.149604,146.734049 200.87372,153.830938 207.206992,162.579655 Z M233.826346,208.038962 C230.467669,203.683255 211.550709,205.9821 203.056405,206.998432 C200.470662,207.321077 200.076227,205.042397 202.406981,203.404973 C217.475208,192.664928 242.201125,195.766353 245.081698,199.363845 C247.966255,202.981502 244.336653,228.071183 230.172839,240.049379 C228.001452,241.888455 225.929671,240.904388 226.89783,238.468418 C230.077218,230.430525 237.204944,212.418868 233.826346,208.038962 Z M126.768855,264 C74.0234043,264 42.0764048,241.955028 17.7852554,217.541992 C12.9733903,212.705982 6.71799208,206.295994 3.31151296,200.690918 C1.90227474,198.372135 5.59096074,195.021875 8.0442063,196.84375 C38.2390146,219.267578 82.1011654,239.538304 125.529506,239.538304 C154.819967,239.538304 191.046475,227.469543 220.66851,214.867659 C225.146771,212.966167 225.146771,219.180222 224.511585,221.060516 C224.183264,222.03242 209.514625,236.221149 189.247207,247.047411 C170.304273,257.166172 146.397132,264 126.768855,264 Z",id:"Fill-6",fill:"#FFF"})))},auth0:function(){return(0,r.h)("svg",{id:"artwork",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 193.7 216.6"},(0,r.h)("path",{d:"M189,66.9L167.2,0H96.8l21.8,66.9H189z M96.8,0H26.5L4.8,66.9h70.4L96.8,0z M4.8,66.9L4.8,66.9\tc-13,39.9,1.2,83.6,35.2,108.3l21.7-66.9L4.8,66.9z M189,66.9L189,66.9l-57,41.4l21.7,66.9l0,0C187.7,150.6,201.9,106.8,189,66.9\tL189,66.9z M39.9,175.2L39.9,175.2l56.9,41.4l56.9-41.4l-56.9-41.4L39.9,175.2z",fill:"#FFF"}))},facebook:function(){return(0,r.h)("svg",{viewBox:"0 0 279 538",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"Page-1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Artboard",fill:"#FFF"},(0,r.h)("path",{d:"M82.3409742,538 L82.3409742,292.936652 L0,292.936652 L0,196.990154 L82.2410458,196.990154 L82.2410458,126.4295 C82.2410458,44.575144 132.205229,0 205.252865,0 C240.227794,0 270.306232,2.59855099 279,3.79788222 L279,89.2502322 L228.536175,89.2502322 C188.964542,89.2502322 181.270057,108.139699 181.270057,135.824262 L181.270057,196.89021 L276.202006,196.89021 L263.810888,292.836708 L181.16913,292.836708 L181.16913,538 L82.3409742,538 Z",id:"Fill-1"}))))},google:function(){return(0,r.h)("svg",{viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},(0,r.h)("path",{d:"M255.878 133.451c0-10.734-.871-18.567-2.756-26.69H130.55v48.448h71.947c-1.45 12.04-9.283 30.172-26.69 42.356l-.244 1.622 38.755 30.023 2.685.268c24.659-22.774 38.875-56.282 38.875-96.027",fill:"#4285F4"}),(0,r.h)("path",{d:"M130.55 261.1c35.248 0 64.839-11.605 86.453-31.622l-41.196-31.913c-11.024 7.688-25.82 13.055-45.257 13.055-34.523 0-63.824-22.773-74.269-54.25l-1.531.13-40.298 31.187-.527 1.465C35.393 231.798 79.49 261.1 130.55 261.1",fill:"#34A853"}),(0,r.h)("path",{d:"M56.281 156.37c-2.756-8.123-4.351-16.827-4.351-25.82 0-8.994 1.595-17.697 4.206-25.82l-.073-1.73L15.26 71.312l-1.335.635C5.077 89.644 0 109.517 0 130.55s5.077 40.905 13.925 58.602l42.356-32.782",fill:"#FBBC05"}),(0,r.h)("path",{d:"M130.55 50.479c24.514 0 41.05 10.589 50.479 19.438l36.844-35.974C195.245 12.91 165.798 0 130.55 0 79.49 0 35.393 29.301 13.925 71.947l42.211 32.783c10.59-31.477 39.891-54.251 74.414-54.251",fill:"#EB4335"}))},"sound-mute":function(){return(0,r.h)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"icons/minis/volumeOff","fill-rule":"evenodd"},(0,r.h)("path",{d:"M3.48026899,12.9630494 C3.63825091,12.9630494 3.79237961,13.0108921 3.92264322,13.1003479 L8.77467683,16.8113609 C9.29423971,17.1679383 10,16.7950396 10,16.1637406 L10,3.78619489 C10,3.15489596 9.29423971,2.78199725 8.77467683,3.13857463 L3.92264322,6.84545211 C3.79237961,6.93490793 3.63825091,6.9827506 3.48026899,6.9827506 L1.78294894,6.9827506 C1.3505185,6.9827506 1,7.33409518 1,7.76754476 L1,12.1781306 C1,12.6117048 1.3505185,12.9630494 1.78294894,12.9630494 L3.48026899,12.9630494 Z M17.2118156,7 L15.0918385,9.11997713 L12.9718614,7 L12,7.97174685 L14.1200917,10.091724 L12,12.2118156 L12.9718614,13.1835625 L15.0918385,11.0635854 L17.2118156,13.1835625 L18.1835625,12.2118156 L16.0635854,10.091724 L18.1835625,7.97174685 L17.2118156,7 Z",id:"Fill-2"})))},sound:function(){return(0,r.h)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"icons/minis/volumeOn","fill-rule":"evenodd"},(0,r.h)("path",{d:"M3.48026899,12.9630494 L1.78294894,12.9630494 C1.3505185,12.9630494 1,12.6117048 1,12.1781306 L1,7.76754476 C1,7.33409518 1.3505185,6.9827506 1.78294894,6.9827506 L3.48026899,6.9827506 C3.63825091,6.9827506 3.79237961,6.93490793 3.92264322,6.84545211 L8.77467683,3.13857463 C9.29423971,2.78199725 10,3.15489596 10,3.78619489 L10,16.1637406 C10,16.7950396 9.29423971,17.1679383 8.77467683,16.8113609 L3.92264322,13.1003479 C3.79237961,13.0108921 3.63825091,12.9630494 3.48026899,12.9630494 Z M14.9270376,3.03232286 C15.1729267,3.03232286 15.4040399,3.12815658 15.5777627,3.3022351 C17.3699891,5.09889099 18.3570052,7.48235058 18.3570052,10.0135053 C18.3570052,12.54466 17.3699891,14.9281196 15.5777627,16.7247755 C15.4041045,16.898854 15.1729914,16.9947524 14.9270052,16.9947524 C14.6820861,16.9947524 14.4515549,16.899436 14.2777674,16.7263598 C13.9192316,16.3684383 13.9185203,15.7852882 14.2762477,15.4264291 C15.7222893,13.9769926 16.5186727,12.0545954 16.5186727,10.0135053 C16.5186727,7.97241524 15.7222893,6.05001801 14.2762154,4.60058152 C13.9184879,4.24175473 13.9191992,3.65857229 14.277832,3.30065081 C14.4514256,3.1275746 14.6819567,3.03232286 14.9270376,3.03232286 Z M13.5730665,6.11570485 C14.6133991,7.15574642 15.1862998,8.54003279 15.1862998,10.0134924 C15.1862998,11.4892799 14.6113945,12.8741159 13.5675376,13.9128965 C13.3942351,14.0855848 13.1639626,14.1806425 12.9191727,14.1806425 C12.6727016,14.1806425 12.4412975,14.0844531 12.2677039,13.9097926 C12.0944984,13.7358111 11.9994406,13.5047303 11.9999903,13.2592291 C12.0005723,13.0136956 12.096794,12.7831644 12.2708079,12.6100882 C12.9654406,11.9185917 13.3479995,10.996467 13.3479995,10.0134924 C13.3479995,9.03119677 12.966346,8.1086194 12.2733298,7.4157649 C11.9150203,7.05745543 11.9149233,6.47436998 12.2731358,6.11589885 C12.4467617,5.94224065 12.6775838,5.84666559 12.923085,5.84666559 C13.1685538,5.84666559 13.3993436,5.94220831 13.5730665,6.11570485 Z",id:"Fill-2"})))},maximize:function(){return(0,r.h)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"icons/minis/screenfull","fill-rule":"evenodd"},(0,r.h)("path",{d:"M2.04162598,3 L2.04162598,16 L17.0147705,16 L17.0147705,3 L2.04162598,3 Z M1,2 L18,2 L18,17 L1,17 L1,2 Z M3,4 L16,4 L16,15 L3,15 L3,4 Z",id:"Rectangle-Copy","fill-rule":"nonzero"})))},minimize:function(){return(0,r.h)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"icons/minis/screensmall","fill-rule":"evenodd"},(0,r.h)("path",{d:"M11,16 L17.0147705,16 L17.0147705,3 L2.04162598,3 L2.04162598,10 L11,10 L11,16 Z M1,2 L18,2 L18,17 L1,17 L1,2 Z",id:"Rectangle","fill-rule":"nonzero"})))},"enter-vr":function(){return(0,r.h)("svg",{width:"19",height:"19",viewBox:"0 0 17 10",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"Page-1","fill-rule":"evenodd"},(0,r.h)("g",{id:"VRon","fill-rule":"nonzero"},(0,r.h)("path",{d:"M15.7856977,0.02395184 L15.8915734,0.02395184 C16.5037405,0.02395184 17,0.520211324 17,1.13237842 L17,1.54663675 L17,8.8915038 C17,9.5034193 16.4560011,10 15.7856977,10 L12.0095825,10 C9.98324439,7.1593807 8.80676009,5.741338 8.48012959,5.74587199 C8.16206045,5.75028714 7.01003321,7.1683298 5.02404785,10 L1.21426911,10 C0.543965735,10 3.32031236e-05,9.5034193 3.32031236e-05,8.8915038 L3.32031236e-05,1.54663675 L3.32031236e-05,1.13237842 L3.32031236e-05,1.13237842 C3.32031236e-05,0.520211324 0.496292687,0.02395184 1.10845978,0.02395184 L1.21426911,0.02395184 L15.7856977,0.02395184 Z M4.5,6 C5.32842712,6 6,5.32842712 6,4.5 C6,3.67157288 5.32842712,3 4.5,3 C3.67157288,3 3,3.67157288 3,4.5 C3,5.32842712 3.67157288,6 4.5,6 Z M12.5,6 C13.3284271,6 14,5.32842712 14,4.5 C14,3.67157288 13.3284271,3 12.5,3 C11.6715729,3 11,3.67157288 11,4.5 C11,5.32842712 11.6715729,6 12.5,6 Z",id:"Fill-1"}))))},"exit-vr":function(){return(0,r.h)("svg",{width:"19",height:"19",viewBox:"0 0 19 19",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"icons/minis/VRon-Copy","fill-rule":"evenodd"},(0,r.h)("g",{id:"Group-7-Copy",transform:"translate(1 3)"},(0,r.h)("path",{d:"M15.7856977,3.02395184 L17,3.02395184 L17,4.13237842 L17,4.54663675 L17,11.8915038 C17,12.5034193 16.4560011,13 15.7856977,13 L12.0095825,13 C9.98324439,10.1593807 8.80676009,8.741338 8.48012959,8.74587199 C8.16206045,8.75028714 7.01003321,10.1683298 5.02404785,13 L1.21426911,13 C0.543965735,13 3.32031236e-05,12.5034193 3.32031236e-05,11.8915038 L3.32031236e-05,4.54663675 L3.32031236e-05,4.13237842 L3.32031236e-05,3.02395184 L1.21426911,3.02395184 L15.7856977,3.02395184 Z M4.5,9 C5.32842712,9 6,8.32842712 6,7.5 C6,6.67157288 5.32842712,6 4.5,6 C3.67157288,6 3,6.67157288 3,7.5 C3,8.32842712 3.67157288,9 4.5,9 Z M12.5,9 C13.3284271,9 14,8.32842712 14,7.5 C14,6.67157288 13.3284271,6 12.5,6 C11.6715729,6 11,6.67157288 11,7.5 C11,8.32842712 11.6715729,9 12.5,9 Z M2.5486669,0 L14.420089,0 C14.7977406,0 15.1613805,0.149260956 15.4374308,0.417695511 L16.9999668,2.00634766 L0,2.00634766 L1.58537972,0.395493117 C1.84682061,0.141306827 2.19106994,0 2.5486669,0 Z",id:"Fill-1"}))))},warning:function(){return(0,r.h)("svg",{width:"21",height:"18",viewBox:"0 0 21 18",xmlns:"http://www.w3.org/2000/svg"},(0,r.h)("g",{id:"02-Basic-Inputs",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Bits-&-Loaders-1312px-/-16-Copy-2",transform:"translate(-287.000000, -2242.000000)",fill:"#FFFFFF"},(0,r.h)("path",{d:"M307.648967,2256.27828 L299.66725,2243.21184 C299.202561,2242.45466 298.384621,2242 297.500172,2242 C296.615722,2242 295.797783,2242.45466 295.333093,2243.18986 L287.351377,2256.27836 C286.886687,2257.03555 286.886687,2257.96598 287.32892,2258.74506 C287.771145,2259.52423 288.589084,2260 289.517579,2260 L305.481676,2260 C306.388591,2260 307.20653,2259.52423 307.670336,2258.74506 C308.113423,2257.96589 308.113423,2257.03549 307.648742,2256.27836 L307.648967,2256.27828 Z M296.482789,2248.23069 C296.482789,2247.68984 296.947479,2247.23518 297.50026,2247.23518 C298.053041,2247.23518 298.517731,2247.68984 298.517731,2248.23069 L298.517731,2252.36319 C298.517731,2252.90404 298.053041,2253.3587 297.50026,2253.3587 C296.947479,2253.3587 296.482789,2252.90404 296.482789,2252.36319 L296.482789,2248.23069 Z M297.50026,2256.81913 C296.814458,2256.81913 296.261677,2256.27828 296.261677,2255.60728 C296.261677,2254.93629 296.814458,2254.39544 297.50026,2254.39544 C298.186062,2254.39544 298.738844,2254.93629 298.738844,2255.60728 C298.738844,2256.27828 298.186062,2256.81913 297.50026,2256.81913 Z",id:"Fill-1"}))))},loading:function(){return(0,r.h)("svg",{width:"20px",height:"20px",viewBox:"0 0 20 20",version:"1.1"},(0,r.h)("g",{id:"02-Basic-Inputs",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},(0,r.h)("g",{id:"Bits-&-Loaders-1312px-/-16-Copy-2",transform:"translate(-392.000000, -448.000000)"},(0,r.h)("g",{id:"AmpBasicSmall",transform:"translate(392.000000, 448.000000)"},(0,r.h)("path",{d:"M10,0 C15.5228475,0 20,4.4771525 20,10 C20,15.5228475 15.5228475,20 10,20 C4.4771525,20 0,15.5228475 0,10 C0,4.4771525 4.4771525,0 10,0 Z M10,4 C6.6862915,4 4,6.6862915 4,10 C4,13.3137085 6.6862915,16 10,16 C13.3137085,16 16,13.3137085 16,10 C16,6.6862915 13.3137085,4 10,4 Z",id:"spinner-circle",fill:"#E1E1E1"}),(0,r.h)("path",{d:"M10,0 L10,4 C6.6862915,4 4,6.6862915 4,10 C4,12.0133587 4.99166921,13.7951006 6.51321137,14.8834295 L4.18685298,18.1377379 C1.65198576,16.3237368 0,13.3547894 0,10 C0,4.4771525 4.4771525,0 10,0 Z",id:"spinner-bar",fill:"#FF9900"})))))},photoPlaceholder:function(){return(0,r.h)("svg",{style:{padding:"64px 0px 64px",fill:"black"},xmlns:"http://www.w3.org/2000/svg",width:"64",height:"64",viewBox:"0 0 24 24"},(0,r.h)("circle",{cx:"12",cy:"12",r:"3.2"}),(0,r.h)("path",{d:"M9 2L7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2H9zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5z"}),(0,r.h)("path",{d:"M0 0h24v24H0z",fill:"none"}))},microphone:function(){return(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 352 512",height:"20px"},(0,r.h)("path",{d:"M176 352c53.02 0 96-42.98 96-96V96c0-53.02-42.98-96-96-96S80 42.98 80 96v160c0 53.02 42.98 96 96 96zm160-160h-16c-8.84 0-16 7.16-16 16v48c0 74.8-64.49 134.82-140.79 127.38C96.71 376.89 48 317.11 48 250.3V208c0-8.84-7.16-16-16-16H16c-8.84 0-16 7.16-16 16v40.16c0 89.64 63.97 169.55 152 181.69V464H96c-8.84 0-16 7.16-16 16v16c0 8.84 7.16 16 16 16h160c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16h-56v-33.77C285.71 418.47 352 344.9 352 256v-48c0-8.84-7.16-16-16-16z"}))},send:function(){return(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",height:"20px"},(0,r.h)("path",{d:"M476 3.2L12.5 270.6c-18.1 10.4-15.8 35.6 2.2 43.2L121 358.4l287.3-253.2c5.5-4.9 13.3 2.6 8.6 8.3L176 407v80.5c0 23.6 28.5 32.9 42.5 15.8L282 426l124.6 52.2c14.2 6 30.4-2.9 33-18.2l72-432C515 7.8 493.3-6.8 476 3.2z"}))},ban:function(){return(0,r.h)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},(0,r.h)("path",{d:"M256 8C119.034 8 8 119.033 8 256s111.034 248 248 248 248-111.034 248-248S392.967 8 256 8zm130.108 117.892c65.448 65.448 70 165.481 20.677 235.637L150.47 105.216c70.204-49.356 170.226-44.735 235.638 20.676zM125.892 386.108c-65.448-65.448-70-165.481-20.677-235.637L361.53 406.784c-70.203 49.356-170.226 44.736-235.638-20.676z"}))}}},7652:(e,t,n)=>{"use strict";n.d(t,{C:()=>y,H:()=>$,a:()=>_,b:()=>Le,c:()=>fe,g:()=>ce,h:()=>q,p:()=>w,r:()=>Ue,w:()=>m});var r,o,i,a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),s=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},u=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]-1}(),_=function(e){return Promise.resolve(e)},C=function(){try{return new CSSStyleSheet,!0}catch(e){}return!1}(),E=function(e,t,n,r){n&&n.map((function(n){var r=n[0],o=n[1],i=n[2],a=e,s=x(t,i),u=A(r);w.ael(a,o,s,u),(t.$rmListeners$=t.$rmListeners$||[]).push((function(){return w.rel(a,o,s,u)}))}))},x=function(e,t){return function(n){256&e.$flags$?e.$lazyInstance$[t](n):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,n])}},A=function(e){return 0!==(2&e)},k="{visibility:hidden}.hydrated{visibility:inherit}",T="http://www.w3.org/1999/xlink",I=function(e,t){return void 0===t&&(t=""),function(){}},P=function(e,t){return function(){}},O=new WeakMap,L=function(e,t,n){var r=qe.get(e);C&&n?(r=r||new CSSStyleSheet,r.replace(t)):r=t,qe.set(e,r)},R=function(e,t,n,r){var o=U(t),i=qe.get(o);if(e=11===e.nodeType?e:b,i)if("string"===typeof i){e=e.head||e;var a=O.get(e),s=void 0;if(a||O.set(e,a=new Set),!a.has(o)){if(w.$cssShim$){s=w.$cssShim$.createHostStyle(r,o,i,!!(10&t.$flags$));var u=s["s-sc"];u&&(o=u,a=null)}else s=b.createElement("style"),s.innerHTML=i;e.insertBefore(s,e.querySelector("link")),a&&a.add(o)}}else e.adoptedStyleSheets.includes(i)||(e.adoptedStyleSheets=l(e.adoptedStyleSheets,[i]));return o},M=function(e){var t=e.$cmpMeta$,n=e.$hostElement$,r=t.$flags$,o=I("attachStyles",t.$tagName$),i=R(S&&n.shadowRoot?n.shadowRoot:n.getRootNode(),t,e.$modeName$,n);10&r&&(n["s-sc"]=i,n.classList.add(i+"-h"),2&r&&n.classList.add(i+"-s")),o()},U=function(e,t){return"sc-"+e.$tagName$},N={},F="http://www.w3.org/2000/svg",D="http://www.w3.org/1999/xhtml",B=function(e){return null!=e},j=function(e){return e=typeof e,"object"===e||"function"===e},q=function(e,t){for(var n=[],r=2;r0&&(d.$children$=l),d.$key$=i,d.$name$=a,d},z=function(e,t){var n={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null};return n},$={},H=function(e){return e&&e.$tag$===$},V=function(e,t,n,r,o,i){if(n!==r){var a=Fe(e,t),s=t.toLowerCase();if("class"===t){var u=e.classList,l=W(n),c=W(r);u.remove.apply(u,l.filter((function(e){return e&&!c.includes(e)}))),u.add.apply(u,c.filter((function(e){return e&&!l.includes(e)})))}else if("style"===t){for(var f in n)r&&null!=r[f]||(f.includes("-")?e.style.removeProperty(f):e.style[f]="");for(var f in r)n&&r[f]===n[f]||(f.includes("-")?e.style.setProperty(f,r[f]):e.style[f]=r[f])}else if("key"===t);else if("ref"===t)r&&r(e);else if(a||"o"!==t[0]||"n"!==t[1]){var d=j(r);if((a||d&&null!==r)&&!o)try{if(e.tagName.includes("-"))e[t]=r;else{var h=null==r?"":r;"list"===t?a=!1:null!=n&&e[t]==h||(e[t]=h)}}catch(g){}var p=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(t=s,p=!0),null==r||!1===r?!1===r&&""!==e.getAttribute(t)||(p?e.removeAttributeNS(T,t):e.removeAttribute(t)):(!a||4&i||o)&&!d&&(r=!0===r?"":r,p?e.setAttributeNS(T,t,r):e.setAttribute(t,r))}else t="-"===t[2]?t.slice(3):Fe(m,s)?s.slice(2):s[2]+t.slice(3),n&&w.rel(e,t,n,!1),r&&w.ael(e,t,r,!1)}},K=/\s/,W=function(e){return e?e.split(K):[]},G=function(e,t,n,r){var o=11===t.$elm$.nodeType&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||N,a=t.$attrs$||N;for(r in i)r in a||V(o,r,i[r],void 0,n,t.$flags$);for(r in a)V(o,r,i[r],a[r],n,t.$flags$)},Z=function(e,t,n,a){var s,u,l,c=t.$children$[n],d=0;if(f||(h=!0,"slot"===c.$tag$&&(r&&a.classList.add(r+"-s"),c.$flags$|=c.$children$?2:1)),null!==c.$text$)s=c.$elm$=b.createTextNode(c.$text$);else if(1&c.$flags$)s=c.$elm$=b.createTextNode("");else{if(p||(p="svg"===c.$tag$),s=c.$elm$=b.createElementNS(p?F:D,2&c.$flags$?"slot-fb":c.$tag$),p&&"foreignObject"===c.$tag$&&(p=!1),G(null,c,p),B(r)&&s["s-si"]!==r&&s.classList.add(s["s-si"]=r),c.$children$)for(d=0;d=0;r--){var o=n[r];o["s-hn"]!==i&&o["s-ol"]&&(ne(o).insertBefore(o,te(o)),o["s-ol"].remove(),o["s-ol"]=void 0,h=!0),t&&Y(o,t)}w.$flags$&=-2},J=function(e,t,n,r,o,a){var s,u=e["s-cr"]&&e["s-cr"].parentNode||e;for(u.shadowRoot&&u.tagName===i&&(u=u.shadowRoot);o<=a;++o)r[o]&&(s=Z(null,n,o,e),s&&(r[o].$elm$=s,u.insertBefore(s,te(t))))},X=function(e,t,n,r,o){for(;t<=n;++t)(r=e[t])&&(o=r.$elm$,ue(r),d=!0,o["s-ol"]?o["s-ol"].remove():Y(o,!0),o.remove())},Q=function(e,t,n,r){var o,i,a=0,s=0,u=0,l=0,c=t.length-1,f=t[0],d=t[c],h=r.length-1,p=r[0],g=r[h];while(a<=c&&s<=h)if(null==f)f=t[++a];else if(null==d)d=t[--c];else if(null==p)p=r[++s];else if(null==g)g=r[--h];else if(ee(f,p))re(f,p),f=t[++a],p=r[++s];else if(ee(d,g))re(d,g),d=t[--c],g=r[--h];else if(ee(f,g))"slot"!==f.$tag$&&"slot"!==g.$tag$||Y(f.$elm$.parentNode,!1),re(f,g),e.insertBefore(f.$elm$,d.$elm$.nextSibling),f=t[++a],g=r[--h];else if(ee(d,p))"slot"!==f.$tag$&&"slot"!==g.$tag$||Y(d.$elm$.parentNode,!1),re(d,p),e.insertBefore(d.$elm$,f.$elm$),d=t[--c],p=r[++s];else{for(u=-1,l=a;l<=c;++l)if(t[l]&&null!==t[l].$key$&&t[l].$key$===p.$key$){u=l;break}u>=0?(i=t[u],i.$tag$!==p.$tag$?o=Z(t&&t[s],n,u,e):(re(i,p),t[u]=void 0,o=i.$elm$),p=r[++s]):(o=Z(t&&t[s],n,s,e),p=r[++s]),o&&ne(f.$elm$).insertBefore(o,te(f.$elm$))}a>c?J(e,null==r[h+1]?null:r[h+1].$elm$,n,r,s,h):s>h&&X(t,a,c)},ee=function(e,t){return e.$tag$===t.$tag$&&("slot"===e.$tag$?e.$name$===t.$name$:e.$key$===t.$key$)},te=function(e){return e&&e["s-ol"]||e},ne=function(e){return(e["s-ol"]?e["s-ol"]:e).parentNode},re=function(e,t){var n,r=t.$elm$=e.$elm$,o=e.$children$,i=t.$children$,a=t.$tag$,s=t.$text$;null===s?(p="svg"===a||"foreignObject"!==a&&p,"slot"===a||G(e,t,p),null!==o&&null!==i?Q(r,o,t,i):null!==i?(null!==e.$text$&&(r.textContent=""),J(r,null,t,i,0,i.length-1)):null!==o&&X(o,0,o.length-1),p&&"svg"===a&&(p=!1)):(n=r["s-cr"])?n.parentNode.textContent=s:e.$text$!==s&&(r.data=s)},oe=function(e){var t,n,r,o,i,a,s=e.childNodes;for(n=0,r=s.length;n=0;a--)n=r[a],n["s-cn"]||n["s-nr"]||n["s-hn"]===t["s-hn"]||(se(n,o)?(i=ie.find((function(e){return e.$nodeToRelocate$===n})),d=!0,n["s-sn"]=n["s-sn"]||o,i?i.$slotRefNode$=t:ie.push({$slotRefNode$:t,$nodeToRelocate$:n}),n["s-sr"]&&ie.map((function(e){se(e.$nodeToRelocate$,n["s-sn"])&&(i=ie.find((function(e){return e.$nodeToRelocate$===n})),i&&!e.$slotRefNode$&&(e.$slotRefNode$=i.$slotRefNode$))}))):ie.some((function(e){return e.$nodeToRelocate$===n}))||ie.push({$nodeToRelocate$:n}));1===t.nodeType&&ae(t)}},se=function(e,t){return 1===e.nodeType?null===e.getAttribute("slot")&&""===t||e.getAttribute("slot")===t:e["s-sn"]===t||""===t},ue=function(e){e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ue)},le=function(e,t){var n=e.$hostElement$,a=e.$cmpMeta$,s=e.$vnode$||z(null,null),u=H(t)?t:q(null,null,t);if(i=n.tagName,u.$tag$=null,u.$flags$|=4,e.$vnode$=u,u.$elm$=s.$elm$=n.shadowRoot||n,r=n["s-sc"],o=n["s-cr"],f=S&&0!==(1&a.$flags$),d=!1,re(s,u),w.$flags$|=1,h){ae(u.$elm$);for(var l=void 0,c=void 0,p=void 0,g=void 0,v=void 0,m=void 0,y=0;y0&&(He.push.apply(He,$e),$e.length=0),(v=ze.length+$e.length+He.length>0)?w.raf(Ge):g=0},Ze=function(e){return _().then(e)},Ye=Ve($e,!0)},5131:(e,t,n)=>{"use strict";n.r(t),n.d(t,{scopeCss:()=>W});var r=function(){for(var e=0,t=0,n=arguments.length;t\\s~+[.,{:][\\s\\S]*)?$",m=/-shadowcsshost/gim,y=/:host/gim,b=/::slotted/gim,w=/:host-context/gim,S=/\/\*\s*[\s\S]*?\*\//g,_=function(e){return e.replace(S,"")},C=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,E=function(e){return e.match(C)||[]},x=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,A=/([{}])/g,k="{",T="}",I="%BLOCK%",P=function(e,t){var n=O(e),r=0;return n.escapedString.replace(x,(function(){for(var e=[],o=0;o0?i.push(s):(i.length>0&&(r.push(i.join("")),n.push(I),i=[]),n.push(s)),s===k&&o++}i.length>0&&(r.push(i.join("")),n.push(I));var u={escapedString:n.join(""),blocks:r};return u},L=function(e){return e=e.replace(w,u).replace(y,a).replace(b,s),e},R=function(e,t,n){return e.replace(t,(function(){for(var e=[],t=0;t-1?M(e,t,n):e+t+n+", "+t+" "+e+n},F=function(e,t){var n="."+t+" > ",r=[];return e=e.replace(d,(function(){for(var e=[],t=0;t=0;u--){var l=e[5][u];if("}"===l||","===l)break;s=l+s}var c=s+a,f=""+s.trimRight()+a.trim();if(c.trim()!==f.trim()){var d=f+", "+c;r.push({orgSelector:c,updatedSelector:d})}return a}return h+e[3]})),{selectors:r,cssText:e}},D=function(e){return R(e,f,N)},B=function(e){return g.reduce((function(e,t){return e.replace(t," ")}),e)},j=function(e){var t=/\[/g,n=/\]/g;return e=e.replace(t,"\\[").replace(n,"\\]"),new RegExp("^("+e+")"+v,"m")},q=function(e,t){var n=j(t);return!n.test(e)},z=function(e,t,n){if(m.lastIndex=0,m.test(e)){var r="."+n;return e.replace(p,(function(e,t){return t.replace(/([^:]*)(:*)(.*)/,(function(e,t,n,o){return t+r+n+o}))})).replace(m,r+" ")}return t+" "+e},$=function(e,t,n){var r=/\[is=([^\]]*)\]/g;t=t.replace(r,(function(e){for(var t=[],n=1;n-1)r=z(e,t,n);else{var o=e.replace(m,"");if(o.length>0){var i=o.match(/([^:]*)(:*)(.*)/);i&&(r=i[1]+a+i[2]+i[3])}}return r},u=o(e);e=u.content;var l,c="",f=0,d=/( |>|\+|~(?!=))\s*/g,p=e.indexOf(h)>-1,g=!p;while(null!==(l=d.exec(e))){var v=l[1],y=e.slice(f,l.index).trim();g=g||y.indexOf(h)>-1;var b=g?s(y):y;c+=b+" "+v+" ",f=d.lastIndex}var w=e.substring(f);return g=g||w.indexOf(h)>-1,c+=g?s(w):w,i(u.placeholders,c)},H=function(e,t,n,r){return e.split(",").map((function(e){return r&&e.indexOf("."+r)>-1?e.trim():q(e,t)?$(e,t,n).trim():e.trim()})).join(", ")},V=function(e,t,n,r,o){return P(e,(function(e){var o=e.selector,i=e.content;"@"!==e.selector[0]?o=H(e.selector,t,n,r):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(i=V(e.content,t,n,r));var a={selector:o.replace(/\s{2,}/g," ").trim(),content:i};return a}))},K=function(e,t,n,r,o){e=L(e),e=U(e),e=D(e);var i=F(e,r);return e=i.cssText,e=B(e),t&&(e=V(e,t,n,r)),e=e.replace(/-shadowcsshost-no-combinator/g,"."+n),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:i.selectors}},W=function(e,t,n){var o=t+"-h",i=t+"-s",a=E(e);e=_(e);var s=[];if(n){var u=function(e){var t="/*!@___"+s.length+"___*/",n="/*!@"+e.selector+"*/";return s.push({placeholder:t,comment:n}),e.selector=t+e.selector,e};e=P(e,(function(e){return"@"!==e.selector[0]?u(e):e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document")?(e.content=P(e.content,u),e):e}))}var l=K(e,t,o,i);return e=r([l.cssText],a).join("\n"),n&&s.forEach((function(t){var n=t.placeholder,r=t.comment;e=e.replace(n,r)})),l.slottedSelectors.forEach((function(t){e=e.replace(t.orgSelector,t.updatedSelector)})),e}; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license * * This file is a port of shadowCSS from webcomponents.js to TypeScript. * https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js * https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts */},4179:(e,t,n)=>{"use strict";n.d(t,{a:()=>f,c:()=>u,g:()=>l,i:()=>s,p:()=>d});var r=n(9186),o=n(2493),i=function(e,t,n,r){function o(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,i){function a(e){try{u(r.next(e))}catch(t){i(t)}}function s(e){try{u(r["throw"](e))}catch(t){i(t)}}function u(e){e.done?n(e.value):o(e.value).then(a,s)}u((r=r.apply(e,t||[])).next())}))},a=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(e){return function(t){return u([e,t])}}function u(i){if(n)throw new TypeError("Generator is already executing.");while(a)try{if(n=1,r&&(o=2&i[0]?r["return"]:i[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(o=a.trys,!(o=o.length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]{"use strict";var r;n.d(t,{A:()=>r}),function(e){e["Public"]="public",e["Private"]="private",e["Protected"]="protected"}(r||(r={}))},8210:(e,t,n)=>{!function(e){"use strict";!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=106)}([function(e,t,n){var r=n(4),o=n(20).f,i=n(16),a=n(15),s=n(60),u=n(108),l=n(44);e.exports=function(e,t){var n,c,f,d,h,p=e.target,g=e.global,v=e.stat;if(n=g?r:v?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(d=t[c],f=e.noTargetGet?(h=o(n,c))&&h.value:n[c],!l(g?c:p+(v?".":"#")+c,e.forced)&&void 0!==f){if(typeof d==typeof f)continue;u(d,f)}(e.sham||f&&f.sham)&&i(d,"sham",!0),a(n,c,d,e)}}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(4),o=n(40),i=n(62),a=n(110),s=r.Symbol,u=o("wks");e.exports=function(e){return u[e]||(u[e]=a&&s[e]||(a?s:i)("Symbol."+e))}},function(e,t){var r="object",o=function(e){return e&&e.Math==Math&&e};e.exports=o(typeof globalThis==r&&globalThis)||o(typeof window==r&&window)||o(typeof self==r&&self)||o(typeof n.g==r&&n.g)||Function("return this")()},function(e,t,n){var r=n(1);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(18),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},function(e,t,n){var r=n(9);e.exports=function(e){return Object(r(e))}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(5),o=n(75),i=n(7),a=n(24),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=a(t,!0),i(n),o)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(9),o=/"/g;e.exports=function(e,t,n,i){var a=String(r(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,""")+'"'),s+">"+a+""}},function(e,t,n){var r=n(1);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){var r=n(39),o=n(9);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(4),o=n(40),i=n(16),a=n(11),s=n(60),u=n(77),l=n(17),c=l.get,f=l.enforce,d=String(u).split("toString");o("inspectSource",(function(e){return u.call(e)})),(e.exports=function(e,t,n,o){var u=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),f(n).source=d.join("string"==typeof t?t:"")),e!==r?(u?!c&&e[t]&&(l=!0):delete e[t],l?e[t]=n:i(e,t,n)):l?e[t]=n:s(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||u.call(this)}))},function(e,t,n){var r=n(5),o=n(10),i=n(38);e.exports=r?function(e,t,n){return o.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r,o,i,a=n(78),s=n(4),u=n(2),l=n(16),c=n(11),f=n(61),d=n(41),h=s.WeakMap;if(a){var p=new h,g=p.get,v=p.has,m=p.set;r=function(e,t){return m.call(p,e,t),t},o=function(e){return g.call(p,e)||{}},i=function(e){return v.call(p,e)}}else{var y=f("state");d[y]=!0,r=function(e,t){return l(e,y,t),t},o=function(e){return c(e,y)?e[y]:{}},i=function(e){return c(e,y)}}e.exports={set:r,get:o,has:i,enforce:function(e){return i(e)?o(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=o(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(3),o=n(46),i=n(16),a=r("unscopables"),s=Array.prototype;null==s[a]&&i(s,a,o(null)),e.exports=function(e){s[a][e]=!0}},function(e,t,n){var r=n(5),o=n(59),i=n(38),a=n(14),s=n(24),u=n(11),l=n(75),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=a(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(u(e,t))return i(!o.f.call(e,t),e[t])}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(24),o=n(10),i=n(38);e.exports=function(e,t,n){var a=r(t);a in e?o.f(e,a,i(0,n)):e[a]=n}},function(e,t,n){var r=n(41),o=n(2),i=n(11),a=n(10).f,s=n(62),u=n(50),l=s("meta"),c=0,f=Object.isExtensible||function(){return!0},d=function(e){a(e,l,{value:{objectID:"O"+ ++c,weakData:{}}})},h=e.exports={REQUIRED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,l)){if(!f(e))return"F";if(!t)return"E";d(e)}return e[l].objectID},getWeakData:function(e,t){if(!i(e,l)){if(!f(e))return!0;if(!t)return!1;d(e)}return e[l].weakData},onFreeze:function(e){return u&&h.REQUIRED&&f(e)&&!i(e,l)&&d(e),e}};r[l]=!0},function(e,t,n){var r=n(2);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=!1},function(e,t,n){var r=n(18),o=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?o(n+t,0):i(n,t)}},function(e,t,n){var r=n(28),o=n(39),i=n(8),a=n(6),s=n(33),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,f=6==e,d=5==e||f;return function(h,p,g,v){for(var m,y,b=i(h),w=o(b),S=r(p,g,3),_=a(w.length),C=0,E=v||s,x=t?E(h,_):n?E(h,0):void 0;_>C;C++)if((d||C in w)&&(y=S(m=w[C],C,b),e))if(t)x[C]=y;else if(y)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:u.call(x,m)}else if(c)return!1;return f?-1:l||c?c:x}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},function(e,t,n){var r=n(29);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,o){return e.call(t,n,r,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},function(e,t,n){var r=n(11),o=n(8),i=n(61),a=n(91),s=i("IE_PROTO"),u=Object.prototype;e.exports=a?Object.getPrototypeOf:function(e){return e=o(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?u:null}},function(e,t,n){var r=n(10).f,o=n(11),i=n(3)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){var r=n(9),o="["+n(53)+"]",i=RegExp("^"+o+o+"*"),a=RegExp(o+o+"*$"),s=function(e){return function(t){var n=String(r(t));return 1&e&&(n=n.replace(i,"")),2&e&&(n=n.replace(a,"")),n}};e.exports={start:s(1),end:s(2),trim:s(3)}},function(e,t,n){var r=n(2),o=n(45),i=n(3)("species");e.exports=function(e,t){var n;return o(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!o(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},function(e,t,n){var r=n(1),o=n(3)("species");e.exports=function(e){return!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t,n){if(!(e instanceof t))throw TypeError("Incorrect "+(n?n+" ":"")+"invocation");return e}},function(e,t,n){var r=n(7);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(1),o=n(21),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==o(e)?i.call(e,""):Object(e)}:Object},function(e,t,n){var r=n(4),o=n(60),i=n(25),a=r["__core-js_shared__"]||o("__core-js_shared__",{});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.2.0",mode:i?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports={}},function(e,t,n){var r=n(109),o=n(4),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(o[e]):r[e]&&r[e][t]||o[e]&&o[e][t]}},function(e,t,n){var r=n(80),o=n(63).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,o)}},function(e,t,n){var r=n(1),o=/#|\.prototype\./,i=function(e,t){var n=s[a(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},a=i.normalize=function(e){return String(e).replace(o,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},function(e,t,n){var r=n(21);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(7),o=n(83),i=n(63),a=n(41),s=n(113),u=n(76),l=n(61)("IE_PROTO"),c=function(){},f=function(){var e,t=u("iframe"),n=i.length;for(t.style.display="none",s.appendChild(t),t.src=String("javascript:"),(e=t.contentWindow.document).open(),e.write("