(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[93490],{75887:function(e,t,r){"use strict";r.d(t,{f:function(){return u}}),"function"==typeof SuppressedError&&SuppressedError;var o=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],i=function(){function e(){this.state=Int32Array.from(n),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(e){if(this.finished)throw Error("Attempted to update an already finished hash.");var t=0,r=e.byteLength;if(this.bytesHashed+=r,8*this.bytesHashed>9007199254740991)throw Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=e[t++],r--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var e=8*this.bytesHashed,t=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(t.setUint8(this.bufferLength++,128),r%64>=56){for(var o=this.bufferLength;o<64;o++)t.setUint8(o,0);this.hashBuffer(),this.bufferLength=0}for(var o=this.bufferLength;o<56;o++)t.setUint8(o,0);t.setUint32(56,Math.floor(e/4294967296),!0),t.setUint32(60,e),this.hashBuffer(),this.finished=!0}for(var n=new Uint8Array(32),o=0;o<8;o++)n[4*o]=this.state[o]>>>24&255,n[4*o+1]=this.state[o]>>>16&255,n[4*o+2]=this.state[o]>>>8&255,n[4*o+3]=this.state[o]>>>0&255;return n},e.prototype.hashBuffer=function(){for(var e=this.buffer,t=this.state,r=t[0],n=t[1],i=t[2],a=t[3],s=t[4],l=t[5],u=t[6],c=t[7],d=0;d<64;d++){if(d<16)this.temp[d]=(255&e[4*d])<<24|(255&e[4*d+1])<<16|(255&e[4*d+2])<<8|255&e[4*d+3];else{var f=this.temp[d-2],p=(f>>>17|f<<15)^(f>>>19|f<<13)^f>>>10,h=((f=this.temp[d-15])>>>7|f<<25)^(f>>>18|f<<14)^f>>>3;this.temp[d]=(p+this.temp[d-7]|0)+(h+this.temp[d-16]|0)}var g=(((s>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+(s&l^~s&u)|0)+(c+(o[d]+this.temp[d]|0)|0)|0,v=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&n^r&i^n&i)|0;c=u,u=l,l=s,s=a+g|0,a=i,i=n,n=r,r=g+v|0}t[0]+=r,t[1]+=n,t[2]+=i,t[3]+=a,t[4]+=s,t[5]+=l,t[6]+=u,t[7]+=c},e}(),a=r(9109).lW,s=void 0!==a&&a.from?function(e){return a.from(e,"utf8")}:e=>new TextEncoder().encode(e);function l(e){return e instanceof Uint8Array?e:"string"==typeof e?s(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var u=function(){function e(e){this.secret=e,this.hash=new i,this.reset()}return e.prototype.update=function(e){if(("string"==typeof e?0!==e.length:0!==e.byteLength)&&!this.error)try{this.hash.update(l(e))}catch(e){this.error=e}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){var e,t,r,o;return e=this,t=void 0,r=void 0,o=function(){return function(e,t){var r,o,n,i,a={label:0,sent:function(){if(1&n[0])throw n[1];return n[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(s){return function(l){return function(s){if(r)throw TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(r=1,o&&(n=2&s[0]?o.return:s[0]?o.throw||((n=o.return)&&n.call(o),0):o.next)&&!(n=n.call(o,s[1])).done)return n;switch(o=0,n&&(s=[2&s[0],n.value]),s[0]){case 0:case 1:n=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,o=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(n=(n=a.trys).length>0&&n[n.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!n||s[1]>n[0]&&s[1]<n[3])){a.label=s[1];break}if(6===s[0]&&a.label<n[1]){a.label=n[1],n=s;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(s);break}n[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],o=0}finally{r=n=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}(this,function(e){return[2,this.digestSync()]})},new(r||(r=Promise))(function(n,i){function a(e){try{l(o.next(e))}catch(e){i(e)}}function s(e){try{l(o.throw(e))}catch(e){i(e)}}function l(e){var t;e.done?n(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t)})).then(a,s)}l((o=o.apply(e,t||[])).next())})},e.prototype.reset=function(){if(this.hash=new i,this.secret){this.outer=new i;var e=function(e){var t=l(e);if(t.byteLength>64){var r=new i;r.update(t),t=r.digest()}var o=new Uint8Array(64);return o.set(t),o}(this.secret),t=new Uint8Array(64);t.set(e);for(var r=0;r<64;r++)e[r]^=54,t[r]^=92;this.hash.update(e),this.outer.update(t);for(var r=0;r<e.byteLength;r++)e[r]=0}},e}()},58010:function(e,t,r){"use strict";let o={},n={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),o[e]=t,n[t]=e}},48738:function(e,t){"use strict";t.byteLength=function(e){var t=l(e),r=t[0],o=t[1];return(r+o)*3/4-o},t.toByteArray=function(e){var t,r,i=l(e),a=i[0],s=i[1],u=new n((a+s)*3/4-s),c=0,d=s>0?a-4:a;for(r=0;r<d;r+=4)t=o[e.charCodeAt(r)]<<18|o[e.charCodeAt(r+1)]<<12|o[e.charCodeAt(r+2)]<<6|o[e.charCodeAt(r+3)],u[c++]=t>>16&255,u[c++]=t>>8&255,u[c++]=255&t;return 2===s&&(t=o[e.charCodeAt(r)]<<2|o[e.charCodeAt(r+1)]>>4,u[c++]=255&t),1===s&&(t=o[e.charCodeAt(r)]<<10|o[e.charCodeAt(r+1)]<<4|o[e.charCodeAt(r+2)]>>2,u[c++]=t>>8&255,u[c++]=255&t),u},t.fromByteArray=function(e){for(var t,o=e.length,n=o%3,i=[],a=0,s=o-n;a<s;a+=16383)i.push(function(e,t,o){for(var n,i=[],a=t;a<o;a+=3)i.push(r[(n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+r[n>>12&63]+r[n>>6&63]+r[63&n]);return i.join("")}(e,a,a+16383>s?s:a+16383));return 1===n?i.push(r[(t=e[o-1])>>2]+r[t<<4&63]+"=="):2===n&&i.push(r[(t=(e[o-2]<<8)+e[o-1])>>10]+r[t>>4&63]+r[t<<2&63]+"="),i.join("")};for(var r=[],o=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,s=i.length;a<s;++a)r[a]=i[a],o[i.charCodeAt(a)]=a;function l(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=e.indexOf("=");-1===r&&(r=t);var o=r===t?0:4-r%4;return[r,o]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},9109:function(e,t,r){"use strict";/*!
 * The buffer module from node.js, for the browser.
 *
 * @author   Feross Aboukhadijeh <http://feross.org>
 * @license  MIT
 */var o=r(48738),n=r(6868),i=r(35866);function a(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()<t)throw RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,r){if(!l.TYPED_ARRAY_SUPPORT&&!(this instanceof l))return new l(e,t,r);if("number"==typeof e){if("string"==typeof t)throw Error("If encoding is specified then the first argument must be a string");return d(this,e)}return u(this,e,t,r)}function u(e,t,r,o){if("number"==typeof t)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,o){if(t.byteLength,r<0||t.byteLength<r)throw RangeError("'offset' is out of bounds");if(t.byteLength<r+(o||0))throw RangeError("'length' is out of bounds");return t=void 0===r&&void 0===o?new Uint8Array(t):void 0===o?new Uint8Array(t,r):new Uint8Array(t,r,o),l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=f(e,t),e}(e,t,r,o):"string"==typeof t?function(e,t,r){if(("string"!=typeof r||""===r)&&(r="utf8"),!l.isEncoding(r))throw TypeError('"encoding" must be a valid string encoding');var o=0|h(t,r),n=(e=s(e,o)).write(t,r);return n!==o&&(e=e.slice(0,n)),e}(e,t,r):function(e,t){if(l.isBuffer(t)){var r,o=0|p(t.length);return 0===(e=s(e,o)).length||t.copy(e,0,0,o),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?s(e,0):f(e,t);if("Buffer"===t.type&&i(t.data))return f(e,t.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function c(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function d(e,t){if(c(t),e=s(e,t<0?0:0|p(t)),!l.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function f(e,t){var r=t.length<0?0:0|p(t.length);e=s(e,r);for(var o=0;o<r;o+=1)e[o]=255&t[o];return e}function p(e){if(e>=a())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function h(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 r=e.length;if(0===r)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return k(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return T(e).length;default:if(o)return k(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,r){var n,i,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===r||r>this.length)&&(r=this.length),r<=0||(r>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,r){var o,n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var i="",a=t;a<r;++a)i+=(o=e[a])<16?"0"+o.toString(16):o.toString(16);return i}(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return function(e,t,r){var o="";r=Math.min(e.length,r);for(var n=t;n<r;++n)o+=String.fromCharCode(127&e[n]);return o}(this,t,r);case"latin1":case"binary":return function(e,t,r){var o="";r=Math.min(e.length,r);for(var n=t;n<r;++n)o+=String.fromCharCode(e[n]);return o}(this,t,r);case"base64":return n=t,i=r,0===n&&i===this.length?o.fromByteArray(this):o.fromByteArray(this.slice(n,i));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,r){for(var o=e.slice(t,r),n="",i=0;i<o.length;i+=2)n+=String.fromCharCode(o[i]+256*o[i+1]);return n}(this,t,r);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function v(e,t,r){var o=e[t];e[t]=e[r],e[r]=o}function m(e,t,r,o,n){if(0===e.length)return -1;if("string"==typeof r?(o=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),isNaN(r=+r)&&(r=n?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(n)return -1;r=e.length-1}else if(r<0){if(!n)return -1;r=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:y(e,t,r,o,n);if("number"==typeof t)return(t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):y(e,[t],r,o,n);throw TypeError("val must be string, number or Buffer")}function y(e,t,r,o,n){var i,a=1,s=e.length,l=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)){if(e.length<2||t.length<2)return -1;a=2,s/=2,l/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var c=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===c?0:i-c)){if(-1===c&&(c=i),i-c+1===l)return c*a}else -1!==c&&(i-=i-c),c=-1}else for(r+l>s&&(r=s-l),i=r;i>=0;i--){for(var d=!0,f=0;f<l;f++)if(u(e,i+f)!==u(t,f)){d=!1;break}if(d)return i}return -1}function b(e,t,r){r=Math.min(e.length,r);for(var o=[],n=t;n<r;){var i,a,s,l,u=e[n],c=null,d=u>239?4:u>223?3:u>191?2:1;if(n+d<=r)switch(d){case 1:u<128&&(c=u);break;case 2:(192&(i=e[n+1]))==128&&(l=(31&u)<<6|63&i)>127&&(c=l);break;case 3:i=e[n+1],a=e[n+2],(192&i)==128&&(192&a)==128&&(l=(15&u)<<12|(63&i)<<6|63&a)>2047&&(l<55296||l>57343)&&(c=l);break;case 4:i=e[n+1],a=e[n+2],s=e[n+3],(192&i)==128&&(192&a)==128&&(192&s)==128&&(l=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&l<1114112&&(c=l)}null===c?(c=65533,d=1):c>65535&&(c-=65536,o.push(c>>>10&1023|55296),c=56320|1023&c),o.push(c),n+=d}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var r="",o=0;o<t;)r+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return r}(o)}function w(e,t,r){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>r)throw RangeError("Trying to access beyond buffer length")}function E(e,t,r,o,n,i){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<i)throw RangeError('"value" argument is out of bounds');if(r+o>e.length)throw RangeError("Index out of range")}function S(e,t,r,o){t<0&&(t=65535+t+1);for(var n=0,i=Math.min(e.length-r,2);n<i;++n)e[r+n]=(t&255<<8*(o?n:1-n))>>>(o?n:1-n)*8}function C(e,t,r,o){t<0&&(t=4294967295+t+1);for(var n=0,i=Math.min(e.length-r,4);n<i;++n)e[r+n]=t>>>(o?n:3-n)*8&255}function x(e,t,r,o,n,i){if(r+o>e.length||r<0)throw RangeError("Index out of range")}function I(e,t,r,o,i){return i||x(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,o,23,4),r+4}function A(e,t,r,o,i){return i||x(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,o,52,8),r+8}t.lW=l,t.h2=50,l.TYPED_ARRAY_SUPPORT=void 0!==r.g.TYPED_ARRAY_SUPPORT?r.g.TYPED_ARRAY_SUPPORT:function(){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(e){return!1}}(),a(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,r){return u(null,e,t,r)},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,r){return(c(e),e<=0)?s(null,e):void 0!==t?"string"==typeof r?s(null,e).fill(t,r):s(null,e).fill(t):s(null,e)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!!(null!=e&&e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,o=t.length,n=0,i=Math.min(r,o);n<i;++n)if(e[n]!==t[n]){r=e[n],o=t[n];break}return r<o?-1:o<r?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!i(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(r=0,t=0;r<e.length;++r)t+=e[r].length;var r,o=l.allocUnsafe(t),n=0;for(r=0;r<e.length;++r){var a=e[r];if(!l.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(o,n),n+=a.length}return o},l.byteLength=h,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?b(this,0,e):g.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",r=t.h2;return this.length>0&&(e=this.toString("hex",0,r).match(/.{2}/g).join(" "),this.length>r&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,r,o,n){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),t<0||r>e.length||o<0||n>this.length)throw RangeError("out of range index");if(o>=n&&t>=r)return 0;if(o>=n)return -1;if(t>=r)return 1;if(t>>>=0,r>>>=0,o>>>=0,n>>>=0,this===e)return 0;for(var i=n-o,a=r-t,s=Math.min(i,a),u=this.slice(o,n),c=e.slice(t,r),d=0;d<s;++d)if(u[d]!==c[d]){i=u[d],a=c[d];break}return i<a?-1:a<i?1:0},l.prototype.includes=function(e,t,r){return -1!==this.indexOf(e,t,r)},l.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},l.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},l.prototype.write=function(e,t,r,o){if(void 0===t)o="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)o=t,r=this.length,t=0;else if(isFinite(t))t|=0,isFinite(r)?(r|=0,void 0===o&&(o="utf8")):(o=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,i,a,s,l,u,c,d,f,p,h,g,v=this.length-t;if((void 0===r||r>v)&&(r=v),e.length>0&&(r<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var m=!1;;)switch(o){case"hex":return function(e,t,r,o){r=Number(r)||0;var n=e.length-r;o?(o=Number(o))>n&&(o=n):o=n;var i=t.length;if(i%2!=0)throw TypeError("Invalid hex string");o>i/2&&(o=i/2);for(var a=0;a<o;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))break;e[r+a]=s}return a}(this,e,t,r);case"utf8":case"utf-8":return l=t,u=r,P(k(e,this.length-l),this,l,u);case"ascii":return c=t,d=r,P(R(e),this,c,d);case"latin1":case"binary":return n=this,i=e,a=t,s=r,P(R(i),n,a,s);case"base64":return f=t,p=r,P(T(e),this,f,p);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=t,g=r,P(function(e,t){for(var r,o,n=[],i=0;i<e.length&&!((t-=2)<0);++i)o=(r=e.charCodeAt(i))>>8,n.push(r%256),n.push(o);return n}(e,this.length-h),this,h,g);default:if(m)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),m=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var r,o=this.length;if(e=~~e,t=void 0===t?o:~~t,e<0?(e+=o)<0&&(e=0):e>o&&(e=o),t<0?(t+=o)<0&&(t=0):t>o&&(t=o),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=l.prototype;else{var n=t-e;r=new l(n,void 0);for(var i=0;i<n;++i)r[i]=this[i+e]}return r},l.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var o=this[e],n=1,i=0;++i<t&&(n*=256);)o+=this[e+i]*n;return o},l.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var o=this[e+--t],n=1;t>0&&(n*=256);)o+=this[e+--t]*n;return o},l.prototype.readUInt8=function(e,t){return t||w(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||w(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||w(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||w(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||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var o=this[e],n=1,i=0;++i<t&&(n*=256);)o+=this[e+i]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||w(e,t,this.length);for(var o=t,n=1,i=this[e+--o];o>0&&(n*=256);)i+=this[e+--o]*n;return i>=(n*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readInt8=function(e,t){return(t||w(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){t||w(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt16BE=function(e,t){t||w(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},l.prototype.readInt32LE=function(e,t){return t||w(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||w(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||w(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||w(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||w(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||w(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,r,o){if(e=+e,t|=0,r|=0,!o){var n=Math.pow(2,8*r)-1;E(this,e,t,r,n,0)}var i=1,a=0;for(this[t]=255&e;++a<r&&(i*=256);)this[t+a]=e/i&255;return t+r},l.prototype.writeUIntBE=function(e,t,r,o){if(e=+e,t|=0,r|=0,!o){var n=Math.pow(2,8*r)-1;E(this,e,t,r,n,0)}var i=r-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+r},l.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||E(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,r){return e=+e,t|=0,r||E(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):S(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):S(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||E(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):C(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||E(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):C(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,r,o){if(e=+e,t|=0,!o){var n=Math.pow(2,8*r-1);E(this,e,t,r,n-1,-n)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},l.prototype.writeIntBE=function(e,t,r,o){if(e=+e,t|=0,!o){var n=Math.pow(2,8*r-1);E(this,e,t,r,n-1,-n)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--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+r},l.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||E(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,r){return e=+e,t|=0,r||E(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):S(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):S(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||E(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):C(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||E(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):C(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,r){return I(this,e,t,!0,r)},l.prototype.writeFloatBE=function(e,t,r){return I(this,e,t,!1,r)},l.prototype.writeDoubleLE=function(e,t,r){return A(this,e,t,!0,r)},l.prototype.writeDoubleBE=function(e,t,r){return A(this,e,t,!1,r)},l.prototype.copy=function(e,t,r,o){if(r||(r=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<r&&(o=r),o===r||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("sourceStart out of bounds");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-r&&(o=e.length-t+r);var n,i=o-r;if(this===e&&r<t&&t<o)for(n=i-1;n>=0;--n)e[n+t]=this[n+r];else if(i<1e3||!l.TYPED_ARRAY_SUPPORT)for(n=0;n<i;++n)e[n+t]=this[n+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},l.prototype.fill=function(e,t,r,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,r=this.length):"string"==typeof r&&(o=r,r=this.length),1===e.length){var n,i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw TypeError("Unknown encoding: "+o)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw RangeError("Out of range index");if(r<=t)return this;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(n=t;n<r;++n)this[n]=e;else{var a=l.isBuffer(e)?e:k(new l(e,o).toString()),s=a.length;for(n=0;n<r-t;++n)this[n+t]=a[n%s]}return this};var _=/[^+\/0-9A-Za-z-_]/g;function k(e,t){t=t||1/0;for(var r,o=e.length,n=null,i=[],a=0;a<o;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!n){if(r>56319||a+1===o){(t-=3)>-1&&i.push(239,191,189);continue}n=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),n=r;continue}r=(n-55296<<10|r-56320)+65536}else n&&(t-=3)>-1&&i.push(239,191,189);if(n=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return i}function R(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function T(e){return o.toByteArray(function(e){var t;if((e=((t=e).trim?t.trim():t.replace(/^\s+|\s+$/g,"")).replace(_,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function P(e,t,r,o){for(var n=0;n<o&&!(n+r>=t.length)&&!(n>=e.length);++n)t[n+r]=e[n];return n}},52892:function(e){"use strict";var t={single_source_shortest_paths:function(e,r,o){var n,i,a,s,l,u,c,d={},f={};f[r]=0;var p=t.PriorityQueue.make();for(p.push(r,0);!p.empty();)for(a in i=(n=p.pop()).value,s=n.cost,l=e[i]||{})l.hasOwnProperty(a)&&(u=s+l[a],c=f[a],(void 0===f[a]||c>u)&&(f[a]=u,p.push(a,u),d[a]=i));if(void 0!==o&&void 0===f[o])throw Error(["Could not find a path from ",r," to ",o,"."].join(""));return d},extract_shortest_path_from_predecessor_list:function(e,t){for(var r=[],o=t;o;)r.push(o),e[o],o=e[o];return r.reverse(),r},find_path:function(e,r,o){var n=t.single_source_shortest_paths(e,r,o);return t.extract_shortest_path_from_predecessor_list(n,o)},PriorityQueue:{make:function(e){var r,o=t.PriorityQueue,n={};for(r in e=e||{},o)o.hasOwnProperty(r)&&(n[r]=o[r]);return n.queue=[],n.sorter=e.sorter||o.default_sorter,n},default_sorter:function(e,t){return e.cost-t.cost},push:function(e,t){this.queue.push({value:e,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};e.exports=t},47059:function(e){"use strict";e.exports=function(e){for(var t=[],r=e.length,o=0;o<r;o++){var n=e.charCodeAt(o);if(n>=55296&&n<=56319&&r>o+1){var i=e.charCodeAt(o+1);i>=56320&&i<=57343&&(n=(n-55296)*1024+i-56320+65536,o+=1)}if(n<128){t.push(n);continue}if(n<2048){t.push(n>>6|192),t.push(63&n|128);continue}if(n<55296||n>=57344&&n<65536){t.push(n>>12|224),t.push(n>>6&63|128),t.push(63&n|128);continue}if(n>=65536&&n<=1114111){t.push(n>>18|240),t.push(n>>12&63|128),t.push(n>>6&63|128),t.push(63&n|128);continue}t.push(239,191,189)}return new Uint8Array(t).buffer}},6868:function(e,t){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */t.read=function(e,t,r,o,n){var i,a,s=8*n-o-1,l=(1<<s)-1,u=l>>1,c=-7,d=r?n-1:0,f=r?-1:1,p=e[t+d];for(d+=f,i=p&(1<<-c)-1,p>>=-c,c+=s;c>0;i=256*i+e[t+d],d+=f,c-=8);for(a=i&(1<<-c)-1,i>>=-c,c+=o;c>0;a=256*a+e[t+d],d+=f,c-=8);if(0===i)i=1-u;else{if(i===l)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,o),i-=u}return(p?-1:1)*a*Math.pow(2,i-o)},t.write=function(e,t,r,o,n,i){var a,s,l,u=8*i-n-1,c=(1<<u)-1,d=c>>1,f=23===n?5960464477539062e-23:0,p=o?0:i-1,h=o?1:-1,g=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(s=isNaN(t)?1:0,a=c):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),a+d>=1?t+=f/l:t+=f*Math.pow(2,1-d),t*l>=2&&(a++,l/=2),a+d>=c?(s=0,a=c):a+d>=1?(s=(t*l-1)*Math.pow(2,n),a+=d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),a=0));n>=8;e[r+p]=255&s,p+=h,s/=256,n-=8);for(a=a<<n|s,u+=n;u>0;e[r+p]=255&a,p+=h,a/=256,u-=8);e[r+p-h]|=128*g}},35866:function(e){var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},98266:function(e){e.exports=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}},2932:function(e){e.exports=function(e,t,r,o){var n=-1,i=null==e?0:e.length;for(o&&i&&(r=e[++n]);++n<i;)r=t(r,e[n],n,e);return r}},59416:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},25046:function(e,t,r){var o=r(85330),n=r(27087);e.exports=function(e,t,r){(void 0===r||n(e[t],r))&&(void 0!==r||t in e)||o(e,t,r)}},40158:function(e,t,r){var o=r(85330),n=r(27087),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&n(a,r)&&(void 0!==r||t in e)||o(e,t,r)}},85330:function(e,t,r){var o=r(98187);e.exports=function(e,t,r){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},20524:function(e,t,r){var o=r(63117),n=Object.create,i=function(){function e(){}return function(t){if(!o(t))return{};if(n)return n(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},7369:function(e,t,r){var o=r(63117),n=r(30761),i=r(69731),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return i(e);var t=n(e),r=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||r.push(s);return r}},97302:function(e,t,r){var o=r(45989),n=r(25046),i=r(60404),a=r(21743),s=r(63117),l=r(88395),u=r(81008);e.exports=function e(t,r,c,d,f){t!==r&&i(r,function(i,l){if(f||(f=new o),s(i))a(t,r,l,c,e,d,f);else{var p=d?d(u(t,l),i,l+"",t,r,f):void 0;void 0===p&&(p=i),n(t,l,p)}},l)}},21743:function(e,t,r){var o=r(25046),n=r(39881),i=r(49490),a=r(47120),s=r(45114),l=r(6727),u=r(60443),c=r(65767),d=r(46551),f=r(14380),p=r(63117),h=r(32999),g=r(78470),v=r(81008),m=r(81452);e.exports=function(e,t,r,y,b,w,E){var S=v(e,r),C=v(t,r),x=E.get(C);if(x){o(e,r,x);return}var I=w?w(S,C,r+"",e,t,E):void 0,A=void 0===I;if(A){var _=u(C),k=!_&&d(C),R=!_&&!k&&g(C);I=C,_||k||R?u(S)?I=S:c(S)?I=a(S):k?(A=!1,I=n(C,!0)):R?(A=!1,I=i(C,!0)):I=[]:h(C)||l(C)?(I=S,l(S)?I=m(S):(!p(S)||f(S))&&(I=s(C))):A=!1}A&&(E.set(C,I),b(I,C,y,w,E),E.delete(C)),o(e,r,I)}},95042:function(e,t,r){var o=r(29013),n=r(70334),i=r(57442);e.exports=function(e,t,r){for(var a=-1,s=t.length,l={};++a<s;){var u=t[a],c=o(e,u);r(c,u)&&n(l,i(u,e),c)}return l}},62447:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},48674:function(e,t,r){var o=r(15502),n=r(95694),i=r(45845);e.exports=function(e,t){return i(n(e,t,o),e+"")}},70334:function(e,t,r){var o=r(40158),n=r(57442),i=r(41056),a=r(63117),s=r(83863);e.exports=function(e,t,r,l){if(!a(e))return e;t=n(t,e);for(var u=-1,c=t.length,d=c-1,f=e;null!=f&&++u<c;){var p=s(t[u]),h=r;if("__proto__"===p||"constructor"===p||"prototype"===p)break;if(u!=d){var g=f[p];void 0===(h=l?l(g,p,f):void 0)&&(h=a(g)?g:i(t[u+1])?[]:{})}o(f,p,h),f=f[p]}return e}},95922:function(e,t,r){var o=r(24008),n=r(98187),i=r(15502),a=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:i;e.exports=a},29810:function(e,t,r){var o=r(88960);e.exports=function(e){var t=new e.constructor(e.byteLength);return new o(t).set(new o(e)),t}},39881:function(e,t,r){e=r.nmd(e);var o=r(2381),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,a=i&&i.exports===n?o.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,o=s?s(r):new e.constructor(r);return e.copy(o),o}},49490:function(e,t,r){var o=r(29810);e.exports=function(e,t){var r=t?o(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},47120:function(e){e.exports=function(e,t){var r=-1,o=e.length;for(t||(t=Array(o));++r<o;)t[r]=e[r];return t}},54133:function(e,t,r){var o=r(40158),n=r(85330);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(r[u],e[u],u,r,e):void 0;void 0===c&&(c=e[u]),a?n(r,u,c):o(r,u,c)}return r}},18541:function(e,t,r){var o=r(48674),n=r(60679);e.exports=function(e){return o(function(t,r){var o=-1,i=r.length,a=i>1?r[i-1]:void 0,s=i>2?r[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&n(r[0],r[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++o<i;){var l=r[o];l&&e(t,l,o,a)}return t})}},40841:function(e,t,r){var o=r(2932),n=r(88262),i=r(62332),a=RegExp("['’]","g");e.exports=function(e){return function(t){return o(i(n(t).replace(a,"")),e,"")}}},56987:function(e,t,r){var o=r(62447)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",Ĳ:"IJ",ĳ:"ij",Œ:"Oe",œ:"oe",ŉ:"'n",ſ:"s"});e.exports=o},98187:function(e,t,r){var o=r(19044),n=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},43323:function(e,t,r){var o=r(83066),n=r(89593),i=r(88395);e.exports=function(e){return o(e,i,n)}},98118:function(e,t,r){var o=r(23794)(Object.getPrototypeOf,Object);e.exports=o},89593:function(e,t,r){var o=r(80506),n=r(98118),i=r(75720),a=r(61810),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)o(t,i(e)),e=n(e);return t}:a;e.exports=s},18688:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},45114:function(e,t,r){var o=r(20524),n=r(98118),i=r(30761);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:o(n(e))}},60679:function(e,t,r){var o=r(27087),n=r(17806),i=r(41056),a=r(63117);e.exports=function(e,t,r){if(!a(r))return!1;var s=typeof t;return("number"==s?!!(n(r)&&i(t,r.length)):"string"==s&&t in r)&&o(r[t],e)}},69731:function(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},95694:function(e,t,r){var o=r(98266),n=Math.max;e.exports=function(e,t,r){return t=n(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=n(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=r(l),o(e,this,u)}}},81008:function(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},45845:function(e,t,r){var o=r(95922),n=r(68530)(o);e.exports=n},68530:function(e){var t=Date.now;e.exports=function(e){var r=0,o=0;return function(){var n=t(),i=16-(n-o);if(o=n,i>0){if(++r>=800)return arguments[0]}else r=0;return e.apply(void 0,arguments)}}},94842:function(e){var t="\ud800-\udfff",r="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",i="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",s="["+i+"]",l="["+o+"]",u="[^"+t+i+"\\d+"+r+o+n+"]",c="(?:\ud83c[\udde6-\uddff]){2}",d="[\ud800-\udbff][\udc00-\udfff]",f="["+n+"]",p="(?:"+l+"|"+u+")",h="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",g="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",m="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",c,d].join("|")+")"+m+v+")*",b="(?:"+["["+r+"]",c,d].join("|")+")"+(m+v+y),w=RegExp([f+"?"+l+"+"+h+"(?="+[s,f,"$"].join("|")+")","(?:"+f+"|"+u+")+"+g+"(?="+[s,f+p,"$"].join("|")+")",f+"?"+p+"+"+h,f+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(w)||[]}},24008:function(e){e.exports=function(e){return function(){return e}}},88262:function(e,t,r){var o=r(56987),n=r(61250),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=n(e))&&e.replace(i,o).replace(a,"")}},65767:function(e,t,r){var o=r(17806),n=r(50561);e.exports=function(e){return n(e)&&o(e)}},32999:function(e,t,r){var o=r(12731),n=r(98118),i=r(50561),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=o(e))return!1;var t=n(e);if(null===t)return!0;var r=l.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==u}},81976:function(e,t,r){var o=r(40841)(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()});e.exports=o},88395:function(e,t,r){var o=r(16347),n=r(7369),i=r(17806);e.exports=function(e){return i(e)?o(e,!0):n(e)}},15162:function(e,t,r){var o=r(97302),n=r(18541)(function(e,t,r){o(e,t,r)});e.exports=n},37374:function(e,t,r){var o=r(68165),n=r(37942),i=r(95042),a=r(43323);e.exports=function(e,t){if(null==e)return{};var r=o(a(e),function(e){return[e]});return t=n(t),i(e,r,function(e,r){return t(e,r[0])})}},81452:function(e,t,r){var o=r(54133),n=r(88395);e.exports=function(e){return o(e,n(e))}},62332:function(e,t,r){var o=r(59416),n=r(18688),i=r(61250),a=r(94842);e.exports=function(e,t,r){return(e=i(e),void 0===(t=r?void 0:t))?n(e)?a(e):o(e):e.match(t)||[]}},66648:function(e,t,r){"use strict";r.d(t,{default:function(){return n.a}});var o=r(55601),n=r.n(o)},87138:function(e,t,r){"use strict";r.d(t,{default:function(){return n.a}});var o=r(231),n=r.n(o)},16463:function(e,t,r){"use strict";var o=r(71169);r.o(o,"useParams")&&r.d(t,{useParams:function(){return o.useParams}}),r.o(o,"usePathname")&&r.d(t,{usePathname:function(){return o.usePathname}}),r.o(o,"useRouter")&&r.d(t,{useRouter:function(){return o.useRouter}}),r.o(o,"useSearchParams")&&r.d(t,{useSearchParams:function(){return o.useSearchParams}})},9197:function(e){"use strict";var t=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,n=Object.prototype.hasOwnProperty,i={};function a(e){var t;let r=["path"in e&&e.path&&`Path=${e.path}`,"expires"in e&&(e.expires||0===e.expires)&&`Expires=${("number"==typeof e.expires?new Date(e.expires):e.expires).toUTCString()}`,"maxAge"in e&&"number"==typeof e.maxAge&&`Max-Age=${e.maxAge}`,"domain"in e&&e.domain&&`Domain=${e.domain}`,"secure"in e&&e.secure&&"Secure","httpOnly"in e&&e.httpOnly&&"HttpOnly","sameSite"in e&&e.sameSite&&`SameSite=${e.sameSite}`,"partitioned"in e&&e.partitioned&&"Partitioned","priority"in e&&e.priority&&`Priority=${e.priority}`].filter(Boolean),o=`${e.name}=${encodeURIComponent(null!=(t=e.value)?t:"")}`;return 0===r.length?o:`${o}; ${r.join("; ")}`}function s(e){let t=new Map;for(let r of e.split(/; */)){if(!r)continue;let e=r.indexOf("=");if(-1===e){t.set(r,"true");continue}let[o,n]=[r.slice(0,e),r.slice(e+1)];try{t.set(o,decodeURIComponent(null!=n?n:"true"))}catch{}}return t}function l(e){var t,r;if(!e)return;let[[o,n],...i]=s(e),{domain:a,expires:l,httponly:d,maxage:f,path:p,samesite:h,secure:g,partitioned:v,priority:m}=Object.fromEntries(i.map(([e,t])=>[e.toLowerCase(),t]));return function(e){let t={};for(let r in e)e[r]&&(t[r]=e[r]);return t}({name:o,value:decodeURIComponent(n),domain:a,...l&&{expires:new Date(l)},...d&&{httpOnly:!0},..."string"==typeof f&&{maxAge:Number(f)},path:p,...h&&{sameSite:u.includes(t=(t=h).toLowerCase())?t:void 0},...g&&{secure:!0},...m&&{priority:c.includes(r=(r=m).toLowerCase())?r:void 0},...v&&{partitioned:!0}})}((e,r)=>{for(var o in r)t(e,o,{get:r[o],enumerable:!0})})(i,{RequestCookies:()=>d,ResponseCookies:()=>f,parseCookie:()=>s,parseSetCookie:()=>l,stringifyCookie:()=>a}),e.exports=((e,i,a,s)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let l of o(i))n.call(e,l)||l===a||t(e,l,{get:()=>i[l],enumerable:!(s=r(i,l))||s.enumerable});return e})(t({},"__esModule",{value:!0}),i);var u=["strict","lax","none"],c=["low","medium","high"],d=class{constructor(e){this._parsed=new Map,this._headers=e;let t=e.get("cookie");if(t)for(let[e,r]of s(t))this._parsed.set(e,{name:e,value:r})}[Symbol.iterator](){return this._parsed[Symbol.iterator]()}get size(){return this._parsed.size}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed);if(!e.length)return r.map(([e,t])=>t);let o="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(([e])=>e===o).map(([e,t])=>t)}has(e){return this._parsed.has(e)}set(...e){let[t,r]=1===e.length?[e[0].name,e[0].value]:e,o=this._parsed;return o.set(t,{name:t,value:r}),this._headers.set("cookie",Array.from(o).map(([e,t])=>a(t)).join("; ")),this}delete(e){let t=this._parsed,r=Array.isArray(e)?e.map(e=>t.delete(e)):t.delete(e);return this._headers.set("cookie",Array.from(t).map(([e,t])=>a(t)).join("; ")),r}clear(){return this.delete(Array.from(this._parsed.keys())),this}[Symbol.for("edge-runtime.inspect.custom")](){return`RequestCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(e=>`${e.name}=${encodeURIComponent(e.value)}`).join("; ")}},f=class{constructor(e){var t,r,o;this._parsed=new Map,this._headers=e;let n=null!=(o=null!=(r=null==(t=e.getSetCookie)?void 0:t.call(e))?r:e.get("set-cookie"))?o:[];for(let e of Array.isArray(n)?n:function(e){if(!e)return[];var t,r,o,n,i,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,i=!1;l();)if(","===(r=e.charAt(s))){for(o=s,s+=1,l(),n=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(i=!0,s=n,a.push(e.substring(t,o)),t=s):s=o+1}else s+=1;(!i||s>=e.length)&&a.push(e.substring(t,e.length))}return a}(n)){let t=l(e);t&&this._parsed.set(t.name,t)}}get(...e){let t="string"==typeof e[0]?e[0]:e[0].name;return this._parsed.get(t)}getAll(...e){var t;let r=Array.from(this._parsed.values());if(!e.length)return r;let o="string"==typeof e[0]?e[0]:null==(t=e[0])?void 0:t.name;return r.filter(e=>e.name===o)}has(e){return this._parsed.has(e)}set(...e){let[t,r,o]=1===e.length?[e[0].name,e[0].value,e[0]]:e,n=this._parsed;return n.set(t,function(e={name:"",value:""}){return"number"==typeof e.expires&&(e.expires=new Date(e.expires)),e.maxAge&&(e.expires=new Date(Date.now()+1e3*e.maxAge)),(null===e.path||void 0===e.path)&&(e.path="/"),e}({name:t,value:r,...o})),function(e,t){for(let[,r]of(t.delete("set-cookie"),e)){let e=a(r);t.append("set-cookie",e)}}(n,this._headers),this}delete(...e){let[t,r,o]="string"==typeof e[0]?[e[0]]:[e[0].name,e[0].path,e[0].domain];return this.set({name:t,path:r,domain:o,value:"",expires:new Date(0)})}[Symbol.for("edge-runtime.inspect.custom")](){return`ResponseCookies ${JSON.stringify(Object.fromEntries(this._parsed))}`}toString(){return[...this._parsed.values()].map(a).join("; ")}}},33551:function(e,t,r){var o;(()=>{var n={226:function(n,i){!function(a,s){"use strict";var l="function",u="undefined",c="object",d="string",f="major",p="model",h="name",g="type",v="vendor",m="version",y="architecture",b="console",w="mobile",E="tablet",S="smarttv",C="wearable",x="embedded",I="Amazon",A="Apple",_="ASUS",k="BlackBerry",R="Browser",T="Chrome",P="Firefox",N="Google",U="Huawei",M="Microsoft",F="Motorola",O="Opera",D="Samsung",L="Sharp",B="Sony",W="Xiaomi",z="Zebra",j="Facebook",V="Chromium OS",G="Mac OS",$=function(e,t){var r={};for(var o in e)t[o]&&t[o].length%2==0?r[o]=t[o].concat(e[o]):r[o]=e[o];return r},H=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},q=function(e,t){return typeof e===d&&-1!==K(t).indexOf(K(e))},K=function(e){return e.toLowerCase()},J=function(e,t){if(typeof e===d)return e=e.replace(/^\s\s*/,""),typeof t===u?e:e.substring(0,350)},Y=function(e,t){for(var r,o,n,i,a,u,d=0;d<t.length&&!a;){var f=t[d],p=t[d+1];for(r=o=0;r<f.length&&!a&&f[r];)if(a=f[r++].exec(e))for(n=0;n<p.length;n++)u=a[++o],typeof(i=p[n])===c&&i.length>0?2===i.length?typeof i[1]==l?this[i[0]]=i[1].call(this,u):this[i[0]]=i[1]:3===i.length?typeof i[1]!==l||i[1].exec&&i[1].test?this[i[0]]=u?u.replace(i[1],i[2]):void 0:this[i[0]]=u?i[1].call(this,u,i[2]):void 0:4===i.length&&(this[i[0]]=u?i[3].call(this,u.replace(i[1],i[2])):void 0):this[i]=u||s;d+=2}},Z=function(e,t){for(var r in t)if(typeof t[r]===c&&t[r].length>0){for(var o=0;o<t[r].length;o++)if(q(t[r][o],e))return"?"===r?s:r}else if(q(t[r],e))return"?"===r?s:r;return e},Q={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[m,[h,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[m,[h,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[h,m],[/opios[\/ ]+([\w\.]+)/i],[m,[h,O+" Mini"]],[/\bopr\/([\w\.]+)/i],[m,[h,O]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[h,m],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[m,[h,"UC"+R]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[m,[h,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[m,[h,"WeChat"]],[/konqueror\/([\w\.]+)/i],[m,[h,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[m,[h,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[m,[h,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[h,/(.+)/,"$1 Secure "+R],m],[/\bfocus\/([\w\.]+)/i],[m,[h,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[m,[h,O+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[m,[h,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[m,[h,"Dolphin"]],[/coast\/([\w\.]+)/i],[m,[h,O+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[m,[h,"MIUI "+R]],[/fxios\/([-\w\.]+)/i],[m,[h,P]],[/\bqihu|(qi?ho?o?|360)browser/i],[[h,"360 "+R]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[h,/(.+)/,"$1 "+R],m],[/(comodo_dragon)\/([\w\.]+)/i],[[h,/_/g," "],m],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[h,m],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[h],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[h,j],m],[/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[h,m],[/\bgsa\/([\w\.]+) .*safari\//i],[m,[h,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[m,[h,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[m,[h,T+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[h,T+" WebView"],m],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[m,[h,"Android "+R]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[h,m],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[m,[h,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[m,h],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[h,[m,Z,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[h,m],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[h,"Netscape"],m],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[m,[h,P+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i,/panasonic;(viera)/i],[h,m],[/(cobalt)\/([\w\.]+)/i],[h,[m,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,K]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[y,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[y,"armhf"]],[/windows (ce|mobile); ppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[y,/ower/,"",K]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[y,K]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[p,[v,D],[g,E]],[/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[p,[v,D],[g,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[p,[v,A],[g,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[p,[v,A],[g,E]],[/(macintosh);/i],[p,[v,A]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[p,[v,L],[g,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[p,[v,U],[g,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[p,[v,U],[g,w]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[p,/_/g," "],[v,W],[g,w]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[p,/_/g," "],[v,W],[g,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[p,[v,"OPPO"],[g,w]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[p,[v,"Vivo"],[g,w]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[p,[v,"Realme"],[g,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[p,[v,F],[g,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[p,[v,F],[g,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[p,[v,"LG"],[g,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[p,[v,"LG"],[g,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[p,[v,"Lenovo"],[g,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[p,/_/g," "],[v,"Nokia"],[g,w]],[/(pixel c)\b/i],[p,[v,N],[g,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[p,[v,N],[g,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[p,[v,B],[g,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[p,"Xperia Tablet"],[v,B],[g,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[p,[v,"OnePlus"],[g,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[p,[v,I],[g,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[p,/(.+)/g,"Fire Phone $1"],[v,I],[g,w]],[/(playbook);[-\w\),; ]+(rim)/i],[p,v,[g,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[p,[v,k],[g,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[p,[v,_],[g,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[p,[v,_],[g,w]],[/(nexus 9)/i],[p,[v,"HTC"],[g,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[v,[p,/_/g," "],[g,w]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[p,[v,"Acer"],[g,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[p,[v,"Meizu"],[g,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[v,p,[g,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[v,p,[g,E]],[/(surface duo)/i],[p,[v,M],[g,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[p,[v,"Fairphone"],[g,w]],[/(u304aa)/i],[p,[v,"AT&T"],[g,w]],[/\bsie-(\w*)/i],[p,[v,"Siemens"],[g,w]],[/\b(rct\w+) b/i],[p,[v,"RCA"],[g,E]],[/\b(venue[\d ]{2,7}) b/i],[p,[v,"Dell"],[g,E]],[/\b(q(?:mv|ta)\w+) b/i],[p,[v,"Verizon"],[g,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[p,[v,"Barnes & Noble"],[g,E]],[/\b(tm\d{3}\w+) b/i],[p,[v,"NuVision"],[g,E]],[/\b(k88) b/i],[p,[v,"ZTE"],[g,E]],[/\b(nx\d{3}j) b/i],[p,[v,"ZTE"],[g,w]],[/\b(gen\d{3}) b.+49h/i],[p,[v,"Swiss"],[g,w]],[/\b(zur\d{3}) b/i],[p,[v,"Swiss"],[g,E]],[/\b((zeki)?tb.*\b) b/i],[p,[v,"Zeki"],[g,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[v,"Dragon Touch"],p,[g,E]],[/\b(ns-?\w{0,9}) b/i],[p,[v,"Insignia"],[g,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[p,[v,"NextBook"],[g,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[v,"Voice"],p,[g,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[v,"LvTel"],p,[g,w]],[/\b(ph-1) /i],[p,[v,"Essential"],[g,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[p,[v,"Envizen"],[g,E]],[/\b(trio[-\w\. ]+) b/i],[p,[v,"MachSpeed"],[g,E]],[/\btu_(1491) b/i],[p,[v,"Rotor"],[g,E]],[/(shield[\w ]+) b/i],[p,[v,"Nvidia"],[g,E]],[/(sprint) (\w+)/i],[v,p,[g,w]],[/(kin\.[onetw]{3})/i],[[p,/\./g," "],[v,M],[g,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[p,[v,z],[g,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[p,[v,z],[g,w]],[/smart-tv.+(samsung)/i],[v,[g,S]],[/hbbtv.+maple;(\d+)/i],[[p,/^/,"SmartTV"],[v,D],[g,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[v,"LG"],[g,S]],[/(apple) ?tv/i],[v,[p,A+" TV"],[g,S]],[/crkey/i],[[p,T+"cast"],[v,N],[g,S]],[/droid.+aft(\w)( bui|\))/i],[p,[v,I],[g,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[p,[v,L],[g,S]],[/(bravia[\w ]+)( bui|\))/i],[p,[v,B],[g,S]],[/(mitv-\w{5}) bui/i],[p,[v,W],[g,S]],[/Hbbtv.*(technisat) (.*);/i],[v,p,[g,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[v,J],[p,J],[g,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[g,S]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[v,p,[g,b]],[/droid.+; (shield) bui/i],[p,[v,"Nvidia"],[g,b]],[/(playstation [345portablevi]+)/i],[p,[v,B],[g,b]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[p,[v,M],[g,b]],[/((pebble))app/i],[v,p,[g,C]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[p,[v,A],[g,C]],[/droid.+; (glass) \d/i],[p,[v,N],[g,C]],[/droid.+; (wt63?0{2,3})\)/i],[p,[v,z],[g,C]],[/(quest( 2| pro)?)/i],[p,[v,j],[g,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[v,[g,x]],[/(aeobc)\b/i],[p,[v,I],[g,x]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[p,[g,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[p,[g,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[g,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[g,w]],[/(android[-\w\. ]{0,9});.+buil/i],[p,[v,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[m,[h,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[m,[h,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[h,m],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[m,h]],os:[[/microsoft (windows) (vista|xp)/i],[h,m],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[h,[m,Z,Q]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[h,"Windows"],[m,Z,Q]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/ios;fbsv\/([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[m,/_/g,"."],[h,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[h,G],[m,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[m,h],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[h,m],[/\(bb(10);/i],[m,[h,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[m,[h,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[m,[h,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[m,[h,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[m,[h,"watchOS"]],[/crkey\/([\d\.]+)/i],[m,[h,T+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[h,V],m],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[h,m],[/(sunos) ?([\w\.\d]*)/i],[[h,"Solaris"],m],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[h,m]]},ee=function(e,t){if(typeof e===c&&(t=e,e=s),!(this instanceof ee))return new ee(e,t).getResult();var r=typeof a!==u&&a.navigator?a.navigator:s,o=e||(r&&r.userAgent?r.userAgent:""),n=r&&r.userAgentData?r.userAgentData:s,i=t?$(X,t):X,b=r&&r.userAgent==o;return this.getBrowser=function(){var e,t={};return t[h]=s,t[m]=s,Y.call(t,o,i.browser),t[f]=typeof(e=t[m])===d?e.replace(/[^\d\.]/g,"").split(".")[0]:s,b&&r&&r.brave&&typeof r.brave.isBrave==l&&(t[h]="Brave"),t},this.getCPU=function(){var e={};return e[y]=s,Y.call(e,o,i.cpu),e},this.getDevice=function(){var e={};return e[v]=s,e[p]=s,e[g]=s,Y.call(e,o,i.device),b&&!e[g]&&n&&n.mobile&&(e[g]=w),b&&"Macintosh"==e[p]&&r&&typeof r.standalone!==u&&r.maxTouchPoints&&r.maxTouchPoints>2&&(e[p]="iPad",e[g]=E),e},this.getEngine=function(){var e={};return e[h]=s,e[m]=s,Y.call(e,o,i.engine),e},this.getOS=function(){var e={};return e[h]=s,e[m]=s,Y.call(e,o,i.os),b&&!e[h]&&n&&"Unknown"!=n.platform&&(e[h]=n.platform.replace(/chrome os/i,V).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===d&&e.length>350?J(e,350):e,this},this.setUA(o),this};ee.VERSION="1.0.35",ee.BROWSER=H([h,m,f]),ee.CPU=H([y]),ee.DEVICE=H([p,v,g,b,w,S,E,C,x]),ee.ENGINE=ee.OS=H([h,m]),typeof i!==u?(n.exports&&(i=n.exports=ee),i.UAParser=ee):r.amdO?void 0!==(o=(function(){return ee}).call(t,r,t,e))&&(e.exports=o):typeof a!==u&&(a.UAParser=ee);var et=typeof a!==u&&(a.jQuery||a.Zepto);if(et&&!et.ua){var er=new ee;et.ua=er.getResult(),et.ua.get=function(){return er.getUA()},et.ua.set=function(e){er.setUA(e);var t=er.getResult();for(var r in t)et.ua[r]=t[r]}}}("object"==typeof window?window:this)}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var r=i[e]={exports:{}},o=!0;try{n[e].call(r.exports,r,r.exports,a),o=!1}finally{o&&delete i[e]}return r.exports}a.ab="//";var s=a(226);e.exports=s})()},8039:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{PageSignatureError:function(){return r},RemovedPageError:function(){return o},RemovedUAError:function(){return n}});class r extends Error{constructor({page:e}){super(`The middleware "${e}" accepts an async API directly with the form:
  
  export function middleware(request, event) {
    return NextResponse.redirect('/new-location')
  }
  
  Read more: https://nextjs.org/docs/messages/middleware-new-signature
  `)}}class o extends Error{constructor(){super(`The request.page has been deprecated in favour of \`URLPattern\`.
  Read more: https://nextjs.org/docs/messages/middleware-request-page
  `)}}class n extends Error{constructor(){super(`The request.ua has been removed in favour of \`userAgent\` function.
  Read more: https://nextjs.org/docs/messages/middleware-parse-user-agent
  `)}}},18663:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{ImageResponse:function(){return o.ImageResponse},NextRequest:function(){return n.NextRequest},NextResponse:function(){return i.NextResponse},URLPattern:function(){return s.URLPattern},userAgent:function(){return a.userAgent},userAgentFromString:function(){return a.userAgentFromString}});let o=r(83452),n=r(44404),i=r(36776),a=r(13832),s=r(62231)},21397:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextURL",{enumerable:!0,get:function(){return c}});let o=r(81892),n=r(40170),i=r(90738),a=r(31575),s=/(?!^https?:\/\/)(127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}|\[::1\]|localhost)/;function l(e,t){return new URL(String(e).replace(s,"localhost"),t&&String(t).replace(s,"localhost"))}let u=Symbol("NextURLInternal");class c{constructor(e,t,r){let o,n;"object"==typeof t&&"pathname"in t||"string"==typeof t?(o=t,n=r||{}):n=r||t||{},this[u]={url:l(e,o??n.base),options:n,basePath:""},this.analyze()}analyze(){var e,t,r,n,s;let l=(0,a.getNextPathnameInfo)(this[u].url.pathname,{nextConfig:this[u].options.nextConfig,parseData:!0,i18nProvider:this[u].options.i18nProvider}),c=(0,i.getHostname)(this[u].url,this[u].options.headers);this[u].domainLocale=this[u].options.i18nProvider?this[u].options.i18nProvider.detectDomainLocale(c):(0,o.detectDomainLocale)(null==(t=this[u].options.nextConfig)?void 0:null==(e=t.i18n)?void 0:e.domains,c);let d=(null==(r=this[u].domainLocale)?void 0:r.defaultLocale)||(null==(s=this[u].options.nextConfig)?void 0:null==(n=s.i18n)?void 0:n.defaultLocale);this[u].url.pathname=l.pathname,this[u].defaultLocale=d,this[u].basePath=l.basePath??"",this[u].buildId=l.buildId,this[u].locale=l.locale??d,this[u].trailingSlash=l.trailingSlash}formatPathname(){return(0,n.formatNextPathnameInfo)({basePath:this[u].basePath,buildId:this[u].buildId,defaultLocale:this[u].options.forceLocale?void 0:this[u].defaultLocale,locale:this[u].locale,pathname:this[u].url.pathname,trailingSlash:this[u].trailingSlash})}formatSearch(){return this[u].url.search}get buildId(){return this[u].buildId}set buildId(e){this[u].buildId=e}get locale(){return this[u].locale??""}set locale(e){var t,r;if(!this[u].locale||!(null==(r=this[u].options.nextConfig)?void 0:null==(t=r.i18n)?void 0:t.locales.includes(e)))throw TypeError(`The NextURL configuration includes no locale "${e}"`);this[u].locale=e}get defaultLocale(){return this[u].defaultLocale}get domainLocale(){return this[u].domainLocale}get searchParams(){return this[u].url.searchParams}get host(){return this[u].url.host}set host(e){this[u].url.host=e}get hostname(){return this[u].url.hostname}set hostname(e){this[u].url.hostname=e}get port(){return this[u].url.port}set port(e){this[u].url.port=e}get protocol(){return this[u].url.protocol}set protocol(e){this[u].url.protocol=e}get href(){let e=this.formatPathname(),t=this.formatSearch();return`${this.protocol}//${this.host}${e}${t}${this.hash}`}set href(e){this[u].url=l(e),this.analyze()}get origin(){return this[u].url.origin}get pathname(){return this[u].url.pathname}set pathname(e){this[u].url.pathname=e}get hash(){return this[u].url.hash}set hash(e){this[u].url.hash=e}get search(){return this[u].url.search}set search(e){this[u].url.search=e}get password(){return this[u].url.password}set password(e){this[u].url.password=e}get username(){return this[u].url.username}set username(e){this[u].url.username=e}get basePath(){return this[u].basePath}set basePath(e){this[u].basePath=e.startsWith("/")?e:`/${e}`}toString(){return this.href}toJSON(){return this.href}[Symbol.for("edge-runtime.inspect.custom")](){return{href:this.href,origin:this.origin,protocol:this.protocol,username:this.username,password:this.password,host:this.host,hostname:this.hostname,port:this.port,pathname:this.pathname,search:this.search,searchParams:this.searchParams,hash:this.hash}}clone(){return new c(String(this),this[u].options)}}},39523:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{RequestCookies:function(){return o.RequestCookies},ResponseCookies:function(){return o.ResponseCookies}});let o=r(9197)},83452:function(e,t){"use strict";function r(){throw Error('ImageResponse moved from "next/server" to "next/og" since Next.js 14, please import from "next/og" instead')}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"ImageResponse",{enumerable:!0,get:function(){return r}})},44404:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{INTERNALS:function(){return s},NextRequest:function(){return l}});let o=r(21397),n=r(27672),i=r(8039),a=r(39523),s=Symbol("internal request");class l extends Request{constructor(e,t={}){let r="string"!=typeof e&&"url"in e?e.url:String(e);(0,n.validateURL)(r),e instanceof Request?super(e,t):super(r,t);let i=new o.NextURL(r,{headers:(0,n.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig});this[s]={cookies:new a.RequestCookies(this.headers),geo:t.geo||{},ip:t.ip,nextUrl:i,url:i.toString()}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,geo:this.geo,ip:this.ip,nextUrl:this.nextUrl,url:this.url,bodyUsed:this.bodyUsed,cache:this.cache,credentials:this.credentials,destination:this.destination,headers:Object.fromEntries(this.headers),integrity:this.integrity,keepalive:this.keepalive,method:this.method,mode:this.mode,redirect:this.redirect,referrer:this.referrer,referrerPolicy:this.referrerPolicy,signal:this.signal}}get cookies(){return this[s].cookies}get geo(){return this[s].geo}get ip(){return this[s].ip}get nextUrl(){return this[s].nextUrl}get page(){throw new i.RemovedPageError}get ua(){throw new i.RemovedUAError}get url(){return this[s].url}}},36776:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"NextResponse",{enumerable:!0,get:function(){return u}});let o=r(21397),n=r(27672),i=r(39523),a=Symbol("internal response"),s=new Set([301,302,303,307,308]);function l(e,t){var r;if(null==e?void 0:null==(r=e.request)?void 0:r.headers){if(!(e.request.headers instanceof Headers))throw Error("request.headers must be an instance of Headers");let r=[];for(let[o,n]of e.request.headers)t.set("x-middleware-request-"+o,n),r.push(o);t.set("x-middleware-override-headers",r.join(","))}}class u extends Response{constructor(e,t={}){super(e,t),this[a]={cookies:new i.ResponseCookies(this.headers),url:t.url?new o.NextURL(t.url,{headers:(0,n.toNodeOutgoingHttpHeaders)(this.headers),nextConfig:t.nextConfig}):void 0}}[Symbol.for("edge-runtime.inspect.custom")](){return{cookies:this.cookies,url:this.url,body:this.body,bodyUsed:this.bodyUsed,headers:Object.fromEntries(this.headers),ok:this.ok,redirected:this.redirected,status:this.status,statusText:this.statusText,type:this.type}}get cookies(){return this[a].cookies}static json(e,t){let r=Response.json(e,t);return new u(r.body,r)}static redirect(e,t){let r="number"==typeof t?t:(null==t?void 0:t.status)??307;if(!s.has(r))throw RangeError('Failed to execute "redirect" on "response": Invalid status code');let o="object"==typeof t?t:{},i=new Headers(null==o?void 0:o.headers);return i.set("Location",(0,n.validateURL)(e)),new u(null,{...o,headers:i,status:r})}static rewrite(e,t){let r=new Headers(null==t?void 0:t.headers);return r.set("x-middleware-rewrite",(0,n.validateURL)(e)),l(t,r),new u(null,{...t,headers:r})}static next(e){let t=new Headers(null==e?void 0:e.headers);return t.set("x-middleware-next","1"),l(e,t),new u(null,{...e,headers:t})}}},62231:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"URLPattern",{enumerable:!0,get:function(){return r}});let r="undefined"==typeof URLPattern?void 0:URLPattern},13832:function(e,t,r){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{isBot:function(){return i},userAgent:function(){return s},userAgentFromString:function(){return a}});let n=(o=r(33551))&&o.__esModule?o:{default:o};function i(e){return/Googlebot|Mediapartners-Google|AdsBot-Google|googleweblight|Storebot-Google|Google-PageRenderer|Google-InspectionTool|Bingbot|BingPreview|Slurp|DuckDuckBot|baiduspider|yandex|sogou|LinkedInBot|bitlybot|tumblr|vkShare|quora link preview|facebookexternalhit|facebookcatalog|Twitterbot|applebot|redditbot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|ia_archiver/i.test(e)}function a(e){return{...(0,n.default)(e),isBot:void 0!==e&&i(e)}}function s({headers:e}){return a(e.get("user-agent")||void 0)}},27672:function(e,t){"use strict";function r(e){let t=new Headers;for(let[r,o]of Object.entries(e))for(let e of Array.isArray(o)?o:[o])void 0!==e&&("number"==typeof e&&(e=e.toString()),t.append(r,e));return t}function o(e){var t,r,o,n,i,a=[],s=0;function l(){for(;s<e.length&&/\s/.test(e.charAt(s));)s+=1;return s<e.length}for(;s<e.length;){for(t=s,i=!1;l();)if(","===(r=e.charAt(s))){for(o=s,s+=1,l(),n=s;s<e.length&&"="!==(r=e.charAt(s))&&";"!==r&&","!==r;)s+=1;s<e.length&&"="===e.charAt(s)?(i=!0,s=n,a.push(e.substring(t,o)),t=s):s=o+1}else s+=1;(!i||s>=e.length)&&a.push(e.substring(t,e.length))}return a}function n(e){let t={},r=[];if(e)for(let[n,i]of e.entries())"set-cookie"===n.toLowerCase()?(r.push(...o(i)),t[n]=1===r.length?r[0]:r):t[n]=i;return t}function i(e){try{return String(new URL(String(e)))}catch(t){throw Error(`URL is malformed "${String(e)}". Please use only absolute URLs - https://nextjs.org/docs/messages/middleware-relative-urls`,{cause:t})}}Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{fromNodeOutgoingHttpHeaders:function(){return r},splitCookiesString:function(){return o},toNodeOutgoingHttpHeaders:function(){return n},validateURL:function(){return i}})},90738:function(e,t){"use strict";function r(e,t){let r;if((null==t?void 0:t.host)&&!Array.isArray(t.host))r=t.host.toString().split(":",1)[0];else{if(!e.hostname)return;r=e.hostname}return r.toLowerCase()}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getHostname",{enumerable:!0,get:function(){return r}})},81892:function(e,t){"use strict";function r(e,t,r){if(e)for(let i of(r&&(r=r.toLowerCase()),e)){var o,n;if(t===(null==(o=i.domain)?void 0:o.split(":",1)[0].toLowerCase())||r===i.defaultLocale.toLowerCase()||(null==(n=i.locales)?void 0:n.some(e=>e.toLowerCase()===r)))return i}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"detectDomainLocale",{enumerable:!0,get:function(){return r}})},63578:function(e,t){"use strict";function r(e,t){let r;let o=e.split("/");return(t||[]).some(t=>!!o[1]&&o[1].toLowerCase()===t.toLowerCase()&&(r=t,o.splice(1,1),e=o.join("/")||"/",!0)),{pathname:e,detectedLocale:r}}Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return r}})},55601:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}(t,{default:function(){return l},getImageProps:function(){return s}});let o=r(99920),n=r(80497),i=r(38173),a=o._(r(21241));function s(e){let{props:t}=(0,n.getImgProps)(e,{defaultLoader:a.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,r]of Object.entries(t))void 0===r&&delete t[e];return{props:t}}let l=i.Image},56832:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addLocale",{enumerable:!0,get:function(){return i}});let o=r(22707),n=r(55121);function i(e,t,r,i){if(!t||t===r)return e;let a=e.toLowerCase();return!i&&((0,n.pathHasPrefix)(a,"/api")||(0,n.pathHasPrefix)(a,"/"+t.toLowerCase()))?e:(0,o.addPathPrefix)(e,"/"+t)}},29350:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"addPathSuffix",{enumerable:!0,get:function(){return n}});let o=r(31465);function n(e,t){if(!e.startsWith("/")||!t)return e;let{pathname:r,query:n,hash:i}=(0,o.parsePath)(e);return""+r+t+n+i}},40170:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"formatNextPathnameInfo",{enumerable:!0,get:function(){return s}});let o=r(67741),n=r(22707),i=r(29350),a=r(56832);function s(e){let t=(0,a.addLocale)(e.pathname,e.locale,e.buildId?void 0:e.defaultLocale,e.ignorePrefix);return(e.buildId||!e.trailingSlash)&&(t=(0,o.removeTrailingSlash)(t)),e.buildId&&(t=(0,i.addPathSuffix)((0,n.addPathPrefix)(t,"/_next/data/"+e.buildId),"/"===e.pathname?"index.json":".json")),t=(0,n.addPathPrefix)(t,e.basePath),!e.buildId&&e.trailingSlash?t.endsWith("/")?t:(0,i.addPathSuffix)(t,"/"):(0,o.removeTrailingSlash)(t)}},31575:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getNextPathnameInfo",{enumerable:!0,get:function(){return a}});let o=r(63578),n=r(70883),i=r(55121);function a(e,t){var r,a;let{basePath:s,i18n:l,trailingSlash:u}=null!=(r=t.nextConfig)?r:{},c={pathname:e,trailingSlash:"/"!==e?e.endsWith("/"):u};s&&(0,i.pathHasPrefix)(c.pathname,s)&&(c.pathname=(0,n.removePathPrefix)(c.pathname,s),c.basePath=s);let d=c.pathname;if(c.pathname.startsWith("/_next/data/")&&c.pathname.endsWith(".json")){let e=c.pathname.replace(/^\/_next\/data\//,"").replace(/\.json$/,"").split("/"),r=e[0];c.buildId=r,d="index"!==e[1]?"/"+e.slice(1).join("/"):"/",!0===t.parseData&&(c.pathname=d)}if(l){let e=t.i18nProvider?t.i18nProvider.analyze(c.pathname):(0,o.normalizeLocalePath)(c.pathname,l.locales);c.locale=e.detectedLocale,c.pathname=null!=(a=e.pathname)?a:c.pathname,!e.detectedLocale&&c.buildId&&(e=t.i18nProvider?t.i18nProvider.analyze(d):(0,o.normalizeLocalePath)(d,l.locales)).detectedLocale&&(c.locale=e.detectedLocale)}return c}},70883:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"removePathPrefix",{enumerable:!0,get:function(){return n}});let o=r(55121);function n(e,t){if(!(0,o.pathHasPrefix)(e,t))return e;let r=e.slice(t.length);return r.startsWith("/")?r:"/"+r}},19783:function(e,t,r){let o=r(87936),n=r(23364),i=r(64811),a=r(65773);function s(e,t,r,i,a){let s=[].slice.call(arguments,1),l=s.length,u="function"==typeof s[l-1];if(!u&&!o())throw Error("Callback required as last argument");if(u){if(l<2)throw Error("Too few arguments provided");2===l?(a=r,r=t,t=i=void 0):3===l&&(t.getContext&&void 0===a?(a=i,i=void 0):(a=i,i=r,r=t,t=void 0))}else{if(l<1)throw Error("Too few arguments provided");return 1===l?(r=t,t=i=void 0):2!==l||t.getContext||(i=r,r=t,t=void 0),new Promise(function(o,a){try{let a=n.create(r,i);o(e(a,t,i))}catch(e){a(e)}})}try{let o=n.create(r,i);a(null,e(o,t,i))}catch(e){a(e)}}t.create=n.create,t.toCanvas=s.bind(null,i.render),t.toDataURL=s.bind(null,i.renderToDataURL),t.toString=s.bind(null,function(e,t,r){return a.render(e,r)})},87936:function(e){e.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},80532:function(e,t,r){let o=r(2601).getSymbolSize;t.getRowColCoords=function(e){if(1===e)return[];let t=Math.floor(e/7)+2,r=o(e),n=145===r?26:2*Math.ceil((r-13)/(2*t-2)),i=[r-7];for(let e=1;e<t-1;e++)i[e]=i[e-1]-n;return i.push(6),i.reverse()},t.getPositions=function(e){let r=[],o=t.getRowColCoords(e),n=o.length;for(let e=0;e<n;e++)for(let t=0;t<n;t++)(0!==e||0!==t)&&(0!==e||t!==n-1)&&(e!==n-1||0!==t)&&r.push([o[e],o[t]]);return r}},62971:function(e,t,r){let o=r(58257),n=["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 i(e){this.mode=o.ALPHANUMERIC,this.data=e}i.getBitsLength=function(e){return 11*Math.floor(e/2)+e%2*6},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t+2<=this.data.length;t+=2){let r=45*n.indexOf(this.data[t]);r+=n.indexOf(this.data[t+1]),e.put(r,11)}this.data.length%2&&e.put(n.indexOf(this.data[t]),6)},e.exports=i},86423:function(e){function t(){this.buffer=[],this.length=0}t.prototype={get:function(e){return(this.buffer[Math.floor(e/8)]>>>7-e%8&1)==1},put:function(e,t){for(let r=0;r<t;r++)this.putBit((e>>>t-r-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){let t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}},e.exports=t},43143:function(e){function t(e){if(!e||e<1)throw Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}t.prototype.set=function(e,t,r,o){let n=e*this.size+t;this.data[n]=r,o&&(this.reservedBit[n]=!0)},t.prototype.get=function(e,t){return this.data[e*this.size+t]},t.prototype.xor=function(e,t,r){this.data[e*this.size+t]^=r},t.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]},e.exports=t},23841:function(e,t,r){let o=r(47059),n=r(58257);function i(e){this.mode=n.BYTE,this.data=new Uint8Array(o(e))}i.getBitsLength=function(e){return 8*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){for(let t=0,r=this.data.length;t<r;t++)e.put(this.data[t],8)},e.exports=i},34270:function(e,t,r){let o=r(38428),n=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],i=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];t.getBlocksCount=function(e,t){switch(t){case o.L:return n[(e-1)*4+0];case o.M:return n[(e-1)*4+1];case o.Q:return n[(e-1)*4+2];case o.H:return n[(e-1)*4+3];default:return}},t.getTotalCodewordsCount=function(e,t){switch(t){case o.L:return i[(e-1)*4+0];case o.M:return i[(e-1)*4+1];case o.Q:return i[(e-1)*4+2];case o.H:return i[(e-1)*4+3];default:return}}},38428:function(e,t){t.L={bit:1},t.M={bit:0},t.Q={bit:3},t.H={bit:2},t.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},t.from=function(e,r){if(t.isValid(e))return e;try{return function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){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 Error("Unknown EC Level: "+e)}}(e)}catch(e){return r}}},16123:function(e,t,r){let o=r(2601).getSymbolSize;t.getPositions=function(e){let t=o(e);return[[0,0],[t-7,0],[0,t-7]]}},59906:function(e,t,r){let o=r(2601),n=o.getBCHDigit(1335);t.getEncodedBits=function(e,t){let r=e.bit<<3|t,i=r<<10;for(;o.getBCHDigit(i)-n>=0;)i^=1335<<o.getBCHDigit(i)-n;return(r<<10|i)^21522}},61011:function(e,t){let r=new Uint8Array(512),o=new Uint8Array(256);!function(){let e=1;for(let t=0;t<255;t++)r[t]=e,o[e]=t,256&(e<<=1)&&(e^=285);for(let e=255;e<512;e++)r[e]=r[e-255]}(),t.log=function(e){if(e<1)throw Error("log("+e+")");return o[e]},t.exp=function(e){return r[e]},t.mul=function(e,t){return 0===e||0===t?0:r[o[e]+o[t]]}},62558:function(e,t,r){let o=r(58257),n=r(2601);function i(e){this.mode=o.KANJI,this.data=e}i.getBitsLength=function(e){return 13*e},i.prototype.getLength=function(){return this.data.length},i.prototype.getBitsLength=function(){return i.getBitsLength(this.data.length)},i.prototype.write=function(e){let t;for(t=0;t<this.data.length;t++){let r=n.toSJIS(this.data[t]);if(r>=33088&&r<=40956)r-=33088;else if(r>=57408&&r<=60351)r-=49472;else throw Error("Invalid SJIS character: "+this.data[t]+"\nMake sure your charset is UTF-8");r=(r>>>8&255)*192+(255&r),e.put(r,13)}},e.exports=i},42903:function(e,t){t.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};let r={N1:3,N2:3,N3:40,N4:10};t.isValid=function(e){return null!=e&&""!==e&&!isNaN(e)&&e>=0&&e<=7},t.from=function(e){return t.isValid(e)?parseInt(e,10):void 0},t.getPenaltyN1=function(e){let t=e.size,o=0,n=0,i=0,a=null,s=null;for(let l=0;l<t;l++){n=i=0,a=s=null;for(let u=0;u<t;u++){let t=e.get(l,u);t===a?n++:(n>=5&&(o+=r.N1+(n-5)),a=t,n=1),(t=e.get(u,l))===s?i++:(i>=5&&(o+=r.N1+(i-5)),s=t,i=1)}n>=5&&(o+=r.N1+(n-5)),i>=5&&(o+=r.N1+(i-5))}return o},t.getPenaltyN2=function(e){let t=e.size,o=0;for(let r=0;r<t-1;r++)for(let n=0;n<t-1;n++){let t=e.get(r,n)+e.get(r,n+1)+e.get(r+1,n)+e.get(r+1,n+1);(4===t||0===t)&&o++}return o*r.N2},t.getPenaltyN3=function(e){let t=e.size,o=0,n=0,i=0;for(let r=0;r<t;r++){n=i=0;for(let a=0;a<t;a++)n=n<<1&2047|e.get(r,a),a>=10&&(1488===n||93===n)&&o++,i=i<<1&2047|e.get(a,r),a>=10&&(1488===i||93===i)&&o++}return o*r.N3},t.getPenaltyN4=function(e){let t=0,o=e.data.length;for(let r=0;r<o;r++)t+=e.data[r];return Math.abs(Math.ceil(100*t/o/5)-10)*r.N4},t.applyMask=function(e,r){let o=r.size;for(let n=0;n<o;n++)for(let i=0;i<o;i++)r.isReserved(i,n)||r.xor(i,n,function(e,r,o){switch(e){case t.Patterns.PATTERN000:return(r+o)%2==0;case t.Patterns.PATTERN001:return r%2==0;case t.Patterns.PATTERN010:return o%3==0;case t.Patterns.PATTERN011:return(r+o)%3==0;case t.Patterns.PATTERN100:return(Math.floor(r/2)+Math.floor(o/3))%2==0;case t.Patterns.PATTERN101:return r*o%2+r*o%3==0;case t.Patterns.PATTERN110:return(r*o%2+r*o%3)%2==0;case t.Patterns.PATTERN111:return(r*o%3+(r+o)%2)%2==0;default:throw Error("bad maskPattern:"+e)}}(e,i,n))},t.getBestMask=function(e,r){let o=Object.keys(t.Patterns).length,n=0,i=1/0;for(let a=0;a<o;a++){r(a),t.applyMask(a,e);let o=t.getPenaltyN1(e)+t.getPenaltyN2(e)+t.getPenaltyN3(e)+t.getPenaltyN4(e);t.applyMask(a,e),o<i&&(i=o,n=a)}return n}},58257:function(e,t,r){let o=r(66477),n=r(36276);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 Error("Invalid mode: "+e);if(!o.isValid(t))throw 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 n.testNumeric(e)?t.NUMERIC:n.testAlphanumeric(e)?t.ALPHANUMERIC:n.testKanji(e)?t.KANJI:t.BYTE},t.toString=function(e){if(e&&e.id)return e.id;throw 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 function(e){if("string"!=typeof e)throw Error("Param is not a string");switch(e.toLowerCase()){case"numeric":return t.NUMERIC;case"alphanumeric":return t.ALPHANUMERIC;case"kanji":return t.KANJI;case"byte":return t.BYTE;default:throw Error("Unknown mode: "+e)}}(e)}catch(e){return r}}},6078:function(e,t,r){let o=r(58257);function n(e){this.mode=o.NUMERIC,this.data=e.toString()}n.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)},n.prototype.getLength=function(){return this.data.length},n.prototype.getBitsLength=function(){return n.getBitsLength(this.data.length)},n.prototype.write=function(e){let t,r;for(t=0;t+3<=this.data.length;t+=3)r=parseInt(this.data.substr(t,3),10),e.put(r,10);let o=this.data.length-t;o>0&&(r=parseInt(this.data.substr(t),10),e.put(r,3*o+1))},e.exports=n},80958:function(e,t,r){let o=r(61011);t.mul=function(e,t){let r=new Uint8Array(e.length+t.length-1);for(let n=0;n<e.length;n++)for(let i=0;i<t.length;i++)r[n+i]^=o.mul(e[n],t[i]);return r},t.mod=function(e,t){let r=new Uint8Array(e);for(;r.length-t.length>=0;){let e=r[0];for(let n=0;n<t.length;n++)r[n]^=o.mul(t[n],e);let n=0;for(;n<r.length&&0===r[n];)n++;r=r.slice(n)}return r},t.generateECPolynomial=function(e){let r=new Uint8Array([1]);for(let n=0;n<e;n++)r=t.mul(r,new Uint8Array([1,o.exp(n)]));return r}},23364:function(e,t,r){let o=r(2601),n=r(38428),i=r(86423),a=r(43143),s=r(80532),l=r(16123),u=r(42903),c=r(34270),d=r(84001),f=r(11888),p=r(59906),h=r(58257),g=r(25051);function v(e,t,r){let o,n;let i=e.size,a=p.getEncodedBits(t,r);for(o=0;o<15;o++)n=(a>>o&1)==1,o<6?e.set(o,8,n,!0):o<8?e.set(o+1,8,n,!0):e.set(i-15+o,8,n,!0),o<8?e.set(8,i-o-1,n,!0):o<9?e.set(8,15-o-1+1,n,!0):e.set(8,15-o-1,n,!0);e.set(i-8,8,1,!0)}t.create=function(e,t){let r,p;if(void 0===e||""===e)throw Error("No input text");let m=n.M;return void 0!==t&&(m=n.from(t.errorCorrectionLevel,n.M),r=f.from(t.version),p=u.from(t.maskPattern),t.toSJISFunc&&o.setToSJISFunction(t.toSJISFunc)),function(e,t,r,n){let p;if(Array.isArray(e))p=g.fromArray(e);else if("string"==typeof e){let o=t;if(!o){let t=g.rawSplit(e);o=f.getBestVersionForData(t,r)}p=g.fromString(e,o||40)}else throw Error("Invalid data");let m=f.getBestVersionForData(p,r);if(!m)throw Error("The amount of data is too big to be stored in a QR Code");if(t){if(t<m)throw Error("\nThe chosen QR Code version cannot contain this amount of data.\nMinimum version required to store current data is: "+m+".\n")}else t=m;let y=function(e,t,r){let n=new i;r.forEach(function(t){n.put(t.mode.bit,4),n.put(t.getLength(),h.getCharCountIndicator(t.mode,e)),t.write(n)});let a=(o.getSymbolTotalCodewords(e)-c.getTotalCodewordsCount(e,t))*8;for(n.getLengthInBits()+4<=a&&n.put(0,4);n.getLengthInBits()%8!=0;)n.putBit(0);let s=(a-n.getLengthInBits())/8;for(let e=0;e<s;e++)n.put(e%2?17:236,8);return function(e,t,r){let n,i;let a=o.getSymbolTotalCodewords(t),s=a-c.getTotalCodewordsCount(t,r),l=c.getBlocksCount(t,r),u=a%l,f=l-u,p=Math.floor(a/l),h=Math.floor(s/l),g=h+1,v=p-h,m=new d(v),y=0,b=Array(l),w=Array(l),E=0,S=new Uint8Array(e.buffer);for(let e=0;e<l;e++){let t=e<f?h:g;b[e]=S.slice(y,y+t),w[e]=m.encode(b[e]),y+=t,E=Math.max(E,t)}let C=new Uint8Array(a),x=0;for(n=0;n<E;n++)for(i=0;i<l;i++)n<b[i].length&&(C[x++]=b[i][n]);for(n=0;n<v;n++)for(i=0;i<l;i++)C[x++]=w[i][n];return C}(n,e,t)}(t,r,p),b=new a(o.getSymbolSize(t));return function(e,t){let r=e.size,o=l.getPositions(t);for(let t=0;t<o.length;t++){let n=o[t][0],i=o[t][1];for(let t=-1;t<=7;t++)if(!(n+t<=-1)&&!(r<=n+t))for(let o=-1;o<=7;o++)i+o<=-1||r<=i+o||(t>=0&&t<=6&&(0===o||6===o)||o>=0&&o<=6&&(0===t||6===t)||t>=2&&t<=4&&o>=2&&o<=4?e.set(n+t,i+o,!0,!0):e.set(n+t,i+o,!1,!0))}}(b,t),function(e){let t=e.size;for(let r=8;r<t-8;r++){let t=r%2==0;e.set(r,6,t,!0),e.set(6,r,t,!0)}}(b),function(e,t){let r=s.getPositions(t);for(let t=0;t<r.length;t++){let o=r[t][0],n=r[t][1];for(let t=-2;t<=2;t++)for(let r=-2;r<=2;r++)-2===t||2===t||-2===r||2===r||0===t&&0===r?e.set(o+t,n+r,!0,!0):e.set(o+t,n+r,!1,!0)}}(b,t),v(b,r,0),t>=7&&function(e,t){let r,o,n;let i=e.size,a=f.getEncodedBits(t);for(let t=0;t<18;t++)r=Math.floor(t/3),o=t%3+i-8-3,n=(a>>t&1)==1,e.set(r,o,n,!0),e.set(o,r,n,!0)}(b,t),function(e,t){let r=e.size,o=-1,n=r-1,i=7,a=0;for(let s=r-1;s>0;s-=2)for(6===s&&s--;;){for(let r=0;r<2;r++)if(!e.isReserved(n,s-r)){let o=!1;a<t.length&&(o=(t[a]>>>i&1)==1),e.set(n,s-r,o),-1==--i&&(a++,i=7)}if((n+=o)<0||r<=n){n-=o,o=-o;break}}}(b,y),isNaN(n)&&(n=u.getBestMask(b,v.bind(null,b,r))),u.applyMask(n,b),v(b,r,n),{modules:b,version:t,errorCorrectionLevel:r,maskPattern:n,segments:p}}(e,r,m,p)}},84001:function(e,t,r){let o=r(80958);function n(e){this.genPoly=void 0,this.degree=e,this.degree&&this.initialize(this.degree)}n.prototype.initialize=function(e){this.degree=e,this.genPoly=o.generateECPolynomial(this.degree)},n.prototype.encode=function(e){if(!this.genPoly)throw Error("Encoder not initialized");let t=new Uint8Array(e.length+this.degree);t.set(e);let r=o.mod(t,this.genPoly),n=this.degree-r.length;if(n>0){let e=new Uint8Array(this.degree);return e.set(r,n),e}return r},e.exports=n},36276:function(e,t){let r="[0-9]+",o="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+",n="(?:(?![A-Z0-9 $%*+\\-./:]|"+(o=o.replace(/u/g,"\\u"))+")(?:.|[\r\n]))+";t.KANJI=RegExp(o,"g"),t.BYTE_KANJI=RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),t.BYTE=RegExp(n,"g"),t.NUMERIC=RegExp(r,"g"),t.ALPHANUMERIC=RegExp("[A-Z $%*+\\-./:]+","g");let i=RegExp("^"+o+"$"),a=RegExp("^"+r+"$"),s=RegExp("^[A-Z0-9 $%*+\\-./:]+$");t.testKanji=function(e){return i.test(e)},t.testNumeric=function(e){return a.test(e)},t.testAlphanumeric=function(e){return s.test(e)}},25051:function(e,t,r){let o=r(58257),n=r(6078),i=r(62971),a=r(23841),s=r(62558),l=r(36276),u=r(2601),c=r(52892);function d(e){return unescape(encodeURIComponent(e)).length}function f(e,t,r){let o;let n=[];for(;null!==(o=e.exec(r));)n.push({data:o[0],index:o.index,mode:t,length:o[0].length});return n}function p(e){let t,r;let n=f(l.NUMERIC,o.NUMERIC,e),i=f(l.ALPHANUMERIC,o.ALPHANUMERIC,e);return u.isKanjiModeEnabled()?(t=f(l.BYTE,o.BYTE,e),r=f(l.KANJI,o.KANJI,e)):(t=f(l.BYTE_KANJI,o.BYTE,e),r=[]),n.concat(i,t,r).sort(function(e,t){return e.index-t.index}).map(function(e){return{data:e.data,mode:e.mode,length:e.length}})}function h(e,t){switch(t){case o.NUMERIC:return n.getBitsLength(e);case o.ALPHANUMERIC:return i.getBitsLength(e);case o.KANJI:return s.getBitsLength(e);case o.BYTE:return a.getBitsLength(e)}}function g(e,t){let r;let l=o.getBestModeForData(e);if((r=o.from(t,l))!==o.BYTE&&r.bit<l.bit)throw Error('"'+e+'" cannot be encoded with mode '+o.toString(r)+".\n Suggested mode is: "+o.toString(l));switch(r!==o.KANJI||u.isKanjiModeEnabled()||(r=o.BYTE),r){case o.NUMERIC:return new n(e);case o.ALPHANUMERIC:return new i(e);case o.KANJI:return new s(e);case o.BYTE:return new a(e)}}t.fromArray=function(e){return e.reduce(function(e,t){return"string"==typeof t?e.push(g(t,null)):t.data&&e.push(g(t.data,t.mode)),e},[])},t.fromString=function(e,r){let n=function(e,t){let r={},n={start:{}},i=["start"];for(let a=0;a<e.length;a++){let s=e[a],l=[];for(let e=0;e<s.length;e++){let u=s[e],c=""+a+e;l.push(c),r[c]={node:u,lastCount:0},n[c]={};for(let e=0;e<i.length;e++){let a=i[e];r[a]&&r[a].node.mode===u.mode?(n[a][c]=h(r[a].lastCount+u.length,u.mode)-h(r[a].lastCount,u.mode),r[a].lastCount+=u.length):(r[a]&&(r[a].lastCount=u.length),n[a][c]=h(u.length,u.mode)+4+o.getCharCountIndicator(u.mode,t))}}i=l}for(let e=0;e<i.length;e++)n[i[e]].end=0;return{map:n,table:r}}(function(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];switch(n.mode){case o.NUMERIC:t.push([n,{data:n.data,mode:o.ALPHANUMERIC,length:n.length},{data:n.data,mode:o.BYTE,length:n.length}]);break;case o.ALPHANUMERIC:t.push([n,{data:n.data,mode:o.BYTE,length:n.length}]);break;case o.KANJI:t.push([n,{data:n.data,mode:o.BYTE,length:d(n.data)}]);break;case o.BYTE:t.push([{data:n.data,mode:o.BYTE,length:d(n.data)}])}}return t}(p(e,u.isKanjiModeEnabled())),r),i=c.find_path(n.map,"start","end"),a=[];for(let e=1;e<i.length-1;e++)a.push(n.table[i[e]].node);return t.fromArray(a.reduce(function(e,t){let r=e.length-1>=0?e[e.length-1]:null;return r&&r.mode===t.mode?e[e.length-1].data+=t.data:e.push(t),e},[]))},t.rawSplit=function(e){return t.fromArray(p(e,u.isKanjiModeEnabled()))}},2601:function(e,t){let r;let o=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];t.getSymbolSize=function(e){if(!e)throw Error('"version" cannot be null or undefined');if(e<1||e>40)throw Error('"version" should be in range from 1 to 40');return 4*e+17},t.getSymbolTotalCodewords=function(e){return o[e]},t.getBCHDigit=function(e){let t=0;for(;0!==e;)t++,e>>>=1;return t},t.setToSJISFunction=function(e){if("function"!=typeof e)throw Error('"toSJISFunc" is not a valid function.');r=e},t.isKanjiModeEnabled=function(){return void 0!==r},t.toSJIS=function(e){return r(e)}},66477:function(e,t){t.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40}},11888:function(e,t,r){let o=r(2601),n=r(34270),i=r(38428),a=r(58257),s=r(66477),l=o.getBCHDigit(7973);function u(e,t){return a.getCharCountIndicator(e,t)+4}t.from=function(e,t){return s.isValid(e)?parseInt(e,10):t},t.getCapacity=function(e,t,r){if(!s.isValid(e))throw Error("Invalid QR Code version");void 0===r&&(r=a.BYTE);let i=(o.getSymbolTotalCodewords(e)-n.getTotalCodewordsCount(e,t))*8;if(r===a.MIXED)return i;let l=i-u(r,e);switch(r){case a.NUMERIC:return Math.floor(l/10*3);case a.ALPHANUMERIC:return Math.floor(l/11*2);case a.KANJI:return Math.floor(l/13);case a.BYTE:default:return Math.floor(l/8)}},t.getBestVersionForData=function(e,r){let o;let n=i.from(r,i.M);if(Array.isArray(e)){if(e.length>1)return function(e,r){for(let o=1;o<=40;o++)if(function(e,t){let r=0;return e.forEach(function(e){let o=u(e.mode,t);r+=o+e.getBitsLength()}),r}(e,o)<=t.getCapacity(o,r,a.MIXED))return o}(e,n);if(0===e.length)return 1;o=e[0]}else o=e;return function(e,r,o){for(let n=1;n<=40;n++)if(r<=t.getCapacity(n,o,e))return n}(o.mode,o.getLength(),n)},t.getEncodedBits=function(e){if(!s.isValid(e)||e<7)throw Error("Invalid QR Code version");let t=e<<12;for(;o.getBCHDigit(t)-l>=0;)t^=7973<<o.getBCHDigit(t)-l;return e<<12|t}},64811:function(e,t,r){let o=r(59472);t.render=function(e,t,r){var n;let i=r,a=t;void 0!==i||t&&t.getContext||(i=t,t=void 0),t||(a=function(){try{return document.createElement("canvas")}catch(e){throw Error("You need to specify a canvas element")}}()),i=o.getOptions(i);let s=o.getImageWidth(e.modules.size,i),l=a.getContext("2d"),u=l.createImageData(s,s);return o.qrToImageData(u.data,e,i),n=a,l.clearRect(0,0,n.width,n.height),n.style||(n.style={}),n.height=s,n.width=s,n.style.height=s+"px",n.style.width=s+"px",l.putImageData(u,0,0),a},t.renderToDataURL=function(e,r,o){let n=o;void 0!==n||r&&r.getContext||(n=r,r=void 0),n||(n={});let i=t.render(e,r,n),a=n.type||"image/png",s=n.rendererOpts||{};return i.toDataURL(a,s.quality)}},65773:function(e,t,r){let o=r(59472);function n(e,t){let r=e.a/255,o=t+'="'+e.hex+'"';return r<1?o+" "+t+'-opacity="'+r.toFixed(2).slice(1)+'"':o}function i(e,t,r){let o=e+t;return void 0!==r&&(o+=" "+r),o}t.render=function(e,t,r){let a=o.getOptions(t),s=e.modules.size,l=e.modules.data,u=s+2*a.margin,c=a.color.light.a?"<path "+n(a.color.light,"fill")+' d="M0 0h'+u+"v"+u+'H0z"/>':"",d="<path "+n(a.color.dark,"stroke")+' d="'+function(e,t,r){let o="",n=0,a=!1,s=0;for(let l=0;l<e.length;l++){let u=Math.floor(l%t),c=Math.floor(l/t);u||a||(a=!0),e[l]?(s++,l>0&&u>0&&e[l-1]||(o+=a?i("M",u+r,.5+c+r):i("m",n,0),n=0,a=!1),u+1<t&&e[l+1]||(o+=i("h",s),s=0)):n++}return o}(l,s,a.margin)+'"/>',f='<svg xmlns="http://www.w3.org/2000/svg" '+(a.width?'width="'+a.width+'" height="'+a.width+'" ':"")+('viewBox="0 0 '+u)+" "+u+'" shape-rendering="crispEdges">'+c+d+"</svg>\n";return"function"==typeof r&&r(null,f),f}},59472:function(e,t){function r(e){if("number"==typeof e&&(e=e.toString()),"string"!=typeof e)throw Error("Color should be defined as hex string");let t=e.slice().replace("#","").split("");if(t.length<3||5===t.length||t.length>8)throw 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");let r=parseInt(t.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:255&r,hex:"#"+t.slice(0,6).join("")}}t.getOptions=function(e){e||(e={}),e.color||(e.color={});let t=void 0===e.margin||null===e.margin||e.margin<0?4:e.margin,o=e.width&&e.width>=21?e.width:void 0,n=e.scale||4;return{width:o,scale:o?4:n,margin:t,color:{dark:r(e.color.dark||"#000000ff"),light:r(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,r){let o=t.getScale(e,r);return Math.floor((e+2*r.margin)*o)},t.qrToImageData=function(e,r,o){let n=r.modules.size,i=r.modules.data,a=t.getScale(n,o),s=Math.floor((n+2*o.margin)*a),l=o.margin*a,u=[o.color.light,o.color.dark];for(let t=0;t<s;t++)for(let r=0;r<s;r++){let c=(t*s+r)*4,d=o.color.light;t>=l&&r>=l&&t<s-l&&r<s-l&&(d=u[i[Math.floor((t-l)/a)*n+Math.floor((r-l)/a)]?1:0]),e[c++]=d.r,e[c++]=d.g,e[c++]=d.b,e[c]=d.a}}},92658:function(e,t,r){"use strict";var o=r(2265).useLayoutEffect;t.Z=o},34492:function(e,t,r){"use strict";/**
 * @license React
 * use-sync-external-store-shim.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o=r(2265),n="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=o.useState,a=o.useEffect,s=o.useLayoutEffect,l=o.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var r=t();return!n(e,r)}catch(e){return!0}}var c="undefined"==typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var r=t(),o=i({inst:{value:r,getSnapshot:t}}),n=o[0].inst,c=o[1];return s(function(){n.value=r,n.getSnapshot=t,u(n)&&c({inst:n})},[e,r,t]),a(function(){return u(n)&&c({inst:n}),e(function(){u(n)&&c({inst:n})})},[e]),l(r),r};t.useSyncExternalStore=void 0!==o.useSyncExternalStore?o.useSyncExternalStore:c},85107:function(e,t,r){"use strict";/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var o=r(2265),n=r(10554),i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=n.useSyncExternalStore,s=o.useRef,l=o.useEffect,u=o.useMemo,c=o.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,r,o,n){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;var p=a(e,(d=u(function(){function e(e){if(!l){if(l=!0,a=e,e=o(e),void 0!==n&&f.hasValue){var t=f.value;if(n(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var r=o(e);return void 0!==n&&n(t,r)?t:(a=e,s=r)}var a,s,l=!1,u=void 0===r?null:r;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]},[t,r,o,n]))[0],d[1]);return l(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}},10554:function(e,t,r){"use strict";e.exports=r(34492)},35006:function(e,t,r){"use strict";e.exports=r(85107)},25566:function(e){var t,r,o,n=e.exports={};function i(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:i}catch(e){t=i}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var l=[],u=!1,c=-1;function d(){u&&o&&(u=!1,o.length?l=o.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(o=l,l=[];++c<t;)o&&o[c].run();c=-1,t=l.length}o=null,u=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw Error("process.chdir is not supported")},n.umask=function(){return 0}},80763:function(e,t,r){"use strict";r.d(t,{O:function(){return eO}});var o,n,i=r(7051),a=r(35658);let s={sameSite:"lax",secure:!0,path:"/"},l=(e,t)=>({setItem:(t,r)=>(e.delete(t),e.set(t,r,{...s,expires:new Date(Date.now()+31536e6)}),Promise.resolve()),async getItem(r){let o=e.get(r),n=o?.value??null;return n&&t?.getItem&&!await t.getItem(r,n)?null:n},removeItem:t=>(e.delete(t),Promise.resolve()),clear(){throw Error("This method has not implemented.")}});var u=r(29737),c=r(22765);let d=(e,t)=>new u.$(new c.S(t));var f=r(15439),p=r(40923),h=r(45130);let g=(e,t)=>{let r=new f.sI;r.setAuthConfig(e),r.setKeyValueStorage(t);let o=new p.X;return o.setAuthConfig(e),o.setAuthTokenStore(r),o.setTokenRefresher(h.H),{getTokens:({forceRefresh:e}={forceRefresh:!1})=>o.getTokens({forceRefresh:e})}};var v=r(90922);let m=new WeakMap,y={register(e){let t={value:Symbol("AmplifyServerContextToken")};return m.set(t,e),{token:t}},deregister:e=>m.delete(e.token),get:e=>m.get(e.token)},b=(e,t)=>{let r=new v.b;return r.configure(e,t),y.register({amplify:r})},w=e=>{y.deregister(e)},E=async(e,t,r)=>{let o=b(e,t);try{return await r(o)}finally{w(o)}};class S extends Error{}class C extends S{constructor(e,t,r){super(e),this.failedAssertion={actual:t,expected:r}}}class x extends S{constructor(e,t){super(null!=t?`${e}: ${t}`:e)}}class I extends S{}class A extends S{}class _ extends C{}class k extends C{withRawJwt({header:e,payload:t}){return this.rawJwt={header:e,payload:t},this}}class R extends k{}class T extends k{}class P extends k{}class N extends k{}class U extends k{}class M extends k{}class F extends k{}class O extends k{}class D extends S{}class L extends S{}class B extends S{}class W extends S{}class z extends S{}class j extends S{}class V extends C{}class G extends C{}class $ extends S{constructor(e,t){super(`Failed to fetch ${e}: ${t}`)}}class H extends ${}class q extends S{}function K(e){return"object"==typeof e&&!Array.isArray(e)&&null!==e}function J(e){return JSON.parse(e,(e,t)=>("object"!=typeof t||Array.isArray(t)||null===t||(delete t.__proto__,delete t.constructor),t))}(o=n||(n={})).RS256="SHA-256",o.RS384="SHA-384",o.RS512="SHA-512";let Y={fetchJson:async(e,t,r)=>{let o=Number(t?.responseTimeout);if(o){let r=new AbortController;setTimeout(()=>r.abort(new $(e,`Response time-out (after ${o} ms.)`)),o),t={signal:r.signal,...t}}let n=await fetch(e,{...t,body:r});return!function(e,t,r){if(429===t)throw new $(e,"Too many requests");if(200!==t)throw new H(e,`Status code is ${t}, expected 200`);if(!r||!r.toLowerCase().startsWith("application/json"))throw new H(e,`Content-type is "${r}", expected "application/json"`)}(e,n.status,n.headers.get("content-type")??void 0),n.text().then(e=>J(e))},defaultFetchTimeouts:{response:3e3},transformJwkToKeyObjectSync:()=>{throw new q("Synchronously transforming a JWK into a key object is not supported in the browser")},transformJwkToKeyObjectAsync:(e,t)=>{let r=e.alg??t;if(!r)throw new _("Missing alg on both JWK and JWT header",r);return crypto.subtle.importKey("jwk",e,{name:"RSASSA-PKCS1-v1_5",hash:n[r]},!1,["verify"])},verifySignatureSync:()=>{throw new q("Synchronously verifying a JWT signature is not supported in the browser")},verifySignatureAsync:({jwsSigningInput:e,keyObject:t,signature:r})=>crypto.subtle.verify({name:"RSASSA-PKCS1-v1_5"},t,Z(r),new TextEncoder().encode(e)),parseB64UrlString:e=>new TextDecoder().decode(Z(e)),setTimeoutUnref:setTimeout.bind(void 0)},Z=function(){let e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".split("").reduce((e,t,r)=>Object.assign(e,{[t.charCodeAt(0)]:r}),{});return function(t){let r,o,n,i;let a=t.match(/^.+?(=?=?)$/)[1].length;return t.match(/.{1,4}/g).reduce((t,a,s)=>(r=e[a.charCodeAt(0)],o=e[a.charCodeAt(1)],n=e[a.charCodeAt(2)],i=e[a.charCodeAt(3)],t[3*s]=r<<2|o>>4,t[3*s+1]=(15&o)<<4|n>>2,t[3*s+2]=(3&n)<<6|i,t),new Uint8Array(3*t.length/4-a))}}(),Q=Y.fetchJson;class X{constructor(e){this.defaultRequestOptions={timeout:Y.defaultFetchTimeouts.socketIdle,responseTimeout:Y.defaultFetchTimeouts.response,...e?.defaultRequestOptions}}async fetch(e,t,r){t={...this.defaultRequestOptions,...t};try{return await Q(e,t,r)}catch(o){if(o instanceof H)throw o;return Q(e,t,r)}}}function ee(e,t,r,o=C){if(!t)throw new o(`Missing ${e}. Expected: ${r}`,t,r);if("string"!=typeof t)throw new o(`${e} is not of type string`,t,r);if(r!==t)throw new o(`${e} not allowed: ${t}. Expected: ${r}`,t,r)}function et(e,t,r,o=C){if(!t)throw new o(`Missing ${e}. ${eo(r)}`,t,r);if("string"!=typeof t)throw new o(`${e} is not of type string`,t,r);return er(e,t,r,o)}function er(e,t,r,o=C){if(!t)throw new o(`Missing ${e}. ${eo(r)}`,t,r);let n=new Set(Array.isArray(r)?r:[r]);if("string"==typeof t&&(t=[t]),!Array.isArray(t))throw new o(`${e} is not an array`,t,r);if(!t.some(i=>{if("string"!=typeof i)throw new o(`${e} includes elements that are not of type string`,t,r);return n.has(i)}))throw new o(`${e} not allowed: ${t.join(", ")}. ${eo(r)}`,t,r)}function eo(e){return Array.isArray(e)?e.length>1?`Expected one of: ${e.join(", ")}`:`Expected: ${e[0]}`:`Expected: ${e}`}let en=["use","alg","kid","n","e"],ei=["kty"];function ea(e,t){return e.keys.find(e=>null!=e.kid&&e.kid===t)}async function es(e){let t=await Q(e);return eu(t),t}async function el(e,t){if(!t.header.kid)throw new B("JWT header does not have valid kid claim");let r=ea(await es(e),t.header.kid);if(!r)throw new W(`JWK for kid "${t.header.kid}" not found in the JWKS`);return r}function eu(e){if(!e)throw new D("JWKS empty");if(!K(e))throw new D("JWKS should be an object");if(!Object.keys(e).includes("keys"))throw new D("JWKS does not include keys");if(!Array.isArray(e.keys))throw new D("JWKS keys should be an array");for(let t of e.keys)ec(t)}function ec(e){if(!e)throw new L("JWK empty");if(!K(e))throw new L("JWK should be an object");for(let t of ei)if("string"!=typeof e[t])throw new L(`JWK ${t} should be a string`);for(let t of en)if(t in e&&"string"!=typeof e[t])throw new L(`JWK ${t} should be a string`)}class ed{constructor(e){this.waitingUris=new Map,this.waitSeconds=e?.waitSeconds??10}async wait(e){if(this.waitingUris.has(e))throw new z("Not allowed to fetch JWKS yet, still waiting for back off period to end")}release(e){let t=this.waitingUris.get(e);t&&(clearTimeout(t),this.waitingUris.delete(e))}registerFailedAttempt(e){let t=Y.setTimeoutUnref(()=>{this.waitingUris.delete(e)},1e3*this.waitSeconds);this.waitingUris.set(e,t)}registerSuccessfulAttempt(e){this.release(e)}}class ef{constructor(e){this.jwksCache=new Map,this.fetchingJwks=new Map,this.penaltyBox=e?.penaltyBox??new ed,this.fetcher=e?.fetcher??new X}addJwks(e,t){this.jwksCache.set(e,t)}async getJwks(e){let t;let r=this.fetchingJwks.get(e);if(r)return r;let o=this.fetcher.fetch(e).then(e=>(eu(e),e));this.fetchingJwks.set(e,o);try{t=await o}finally{this.fetchingJwks.delete(e)}return this.jwksCache.set(e,t),t}getCachedJwk(e,t){if("string"!=typeof t.header.kid)throw new B("JWT header does not have valid kid claim");if(!this.jwksCache.has(e))throw new j(`JWKS for uri ${e} not yet available in cache`);let r=ea(this.jwksCache.get(e),t.header.kid);if(!r)throw new W(`JWK for kid ${t.header.kid} not found in the JWKS`);return r}async getJwk(e,t){if("string"!=typeof t.header.kid)throw new B("JWT header does not have valid kid claim");let r=this.jwksCache.get(e);if(r){let e=ea(r,t.header.kid);if(e)return e}await this.penaltyBox.wait(e,t.header.kid);let o=ea(await this.getJwks(e),t.header.kid);if(o)this.penaltyBox.registerSuccessfulAttempt(e,t.header.kid);else throw this.penaltyBox.registerFailedAttempt(e,t.header.kid),new W(`JWK for kid "${t.header.kid}" not found in the JWKS`);return o}}let ep=["RS256","RS384","RS512"];function eh(e,t){if(void 0!==e.exp&&e.exp+(t.graceSeconds??0)<Date.now()/1e3)throw new N(`Token expired at ${new Date(1e3*e.exp).toISOString()}`,e.exp);if(void 0!==e.nbf&&e.nbf-(t.graceSeconds??0)>Date.now()/1e3)throw new U(`Token can't be used before ${new Date(1e3*e.nbf).toISOString()}`,e.nbf);if(null!==t.issuer){if(void 0===t.issuer)throw new I("issuer must be provided or set to null explicitly");et("Issuer",e.iss,t.issuer,R)}if(null!==t.audience){if(void 0===t.audience)throw new I("audience must be provided or set to null explicitly");er("Audience",e.aud,t.audience,T)}null!=t.scope&&er("Scope",e.scope?.split(" "),t.scope,P)}function eg(e,t){!function(e){if(ee("JWK use",e.use,"sig",V),ee("JWK kty",e.kty,"RSA",G),!e.n)throw new L("Missing modulus (n)");if(!e.e)throw new L("Missing exponent (e)")}(t),t.alg&&ee("JWT signature algorithm",e.alg,t.alg,_),et("JWT signature algorithm",e.alg,ep,_)}async function ev(e,t,r,o=el,n=Y.transformJwkToKeyObjectAsync){let{header:i,headerB64:a,payload:s,payloadB64:l,signatureB64:u}=e,c=await o(t,e);eg(e.header,c);let d=await n(c,i.alg,s.iss);if(!await Y.verifySignatureAsync({jwsSigningInput:`${a}.${l}`,signature:u,alg:i.alg,keyObject:d}))throw new A("Invalid signature");try{eh(s,r),r.customJwtCheck&&await r.customJwtCheck({header:i,payload:s,jwk:c})}catch(t){if(r.includeRawJwtInErrors&&t instanceof k)throw t.withRawJwt(e);throw t}return s}class em{constructor(e,t=new ef){if(this.jwksCache=t,this.issuersConfig=new Map,this.publicKeyCache=new ey,Array.isArray(e)){if(!e.length)throw new I("Provide at least one issuer configuration");for(let t of e){if(this.issuersConfig.has(t.issuer))throw new I(`issuer ${t.issuer} supplied multiple times`);this.issuersConfig.set(t.issuer,this.withJwksUri(t))}}else this.issuersConfig.set(e.issuer,this.withJwksUri(e))}get expectedIssuers(){return Array.from(this.issuersConfig.keys())}getIssuerConfig(e){if(!e){if(1!==this.issuersConfig.size)throw new I("issuer must be provided");e=this.issuersConfig.keys().next().value}let t=this.issuersConfig.get(e);if(!t)throw new I(`issuer not configured: ${e}`);return t}cacheJwks(...[e,t]){let r=this.getIssuerConfig(t);this.jwksCache.addJwks(r.jwksUri,e),this.publicKeyCache.clearCache(r.issuer)}async hydrate(){let e=this.expectedIssuers.map(e=>this.getIssuerConfig(e).jwksUri).map(e=>this.jwksCache.getJwks(e));await Promise.all(e)}verifySync(...[e,t]){let{decomposedJwt:r,jwksUri:o,verifyProperties:n}=this.getVerifyParameters(e,t);return this.verifyDecomposedJwtSync(r,o,n)}verifyDecomposedJwtSync(e,t,r){let o=this.jwksCache.getCachedJwk(t,e);return function(e,t,r,o){let n;let{header:i,headerB64:a,payload:s,payloadB64:l,signatureB64:u}=e;if(function(e){try{return ec(e),!0}catch{return!1}}(t))n=t;else if(function(e){try{return eu(e),!0}catch{return!1}}(t)){let e=i.kid?ea(t,i.kid):void 0;if(!e)throw new W(`JWK for kid ${i.kid} not found in the JWKS`);n=e}else throw new I(`Expected a valid JWK or JWKS (parsed as JavaScript object), but received: ${t}.,If you're passing a JWKS URI, use the async verify() method instead, it will download and parse the JWKS for you`);eg(e.header,n);let c=o(n,i.alg,s.iss);if(!Y.verifySignatureSync({jwsSigningInput:`${a}.${l}`,signature:u,alg:i.alg,keyObject:c}))throw new A("Invalid signature");try{if(eh(s,r),r.customJwtCheck){let e=r.customJwtCheck({header:i,payload:s,jwk:n});!function(e,t){if(e&&"function"==typeof e.then)throw t()}(e,()=>new I("Custom JWT checks must be synchronous but a promise was returned"))}}catch(t){if(r.includeRawJwtInErrors&&t instanceof k)throw t.withRawJwt(e);throw t}return s}(e,o,r,this.publicKeyCache.transformJwkToKeyObjectSync.bind(this.publicKeyCache))}async verify(...[e,t]){let{decomposedJwt:r,jwksUri:o,verifyProperties:n}=this.getVerifyParameters(e,t);return this.verifyDecomposedJwt(r,o,n)}verifyDecomposedJwt(e,t,r){return ev(e,t,r,this.jwksCache.getJwk.bind(this.jwksCache),this.publicKeyCache.transformJwkToKeyObjectAsync.bind(this.publicKeyCache))}getVerifyParameters(e,t){let r=function(e){let t,r;if(!e)throw new x("Empty JWT");if("string"!=typeof e)throw new x("JWT is not a string");if(!e.match(/^[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+$/))throw new x("JWT string does not consist of exactly 3 parts (header, payload, signature)");let[o,n,i]=e.split("."),[a,s]=[o,n].map(Y.parseB64UrlString);try{t=J(a)}catch(e){throw new x("Invalid JWT. Header is not a valid JSON object",e)}!function(e){if(!K(e))throw new x("JWT header is not an object");if(void 0!==e.alg&&"string"!=typeof e.alg)throw new x("JWT header alg claim is not a string");if(void 0!==e.kid&&"string"!=typeof e.kid)throw new x("JWT header kid claim is not a string")}(t);try{r=J(s)}catch(e){throw new x("Invalid JWT. Payload is not a valid JSON object",e)}return!function(e){if(!K(e))throw new x("JWT payload is not an object");if(void 0!==e.exp&&!Number.isFinite(e.exp))throw new x("JWT payload exp claim is not a number");if(void 0!==e.iss&&"string"!=typeof e.iss)throw new x("JWT payload iss claim is not a string");if(void 0!==e.sub&&"string"!=typeof e.sub)throw new x("JWT payload sub claim is not a string");if(void 0!==e.aud&&"string"!=typeof e.aud&&(!Array.isArray(e.aud)||e.aud.some(e=>"string"!=typeof e)))throw new x("JWT payload aud claim is not a string or array of strings");if(void 0!==e.nbf&&!Number.isFinite(e.nbf))throw new x("JWT payload nbf claim is not a number");if(void 0!==e.iat&&!Number.isFinite(e.iat))throw new x("JWT payload iat claim is not a number");if(void 0!==e.scope&&"string"!=typeof e.scope)throw new x("JWT payload scope claim is not a string");if(void 0!==e.jti&&"string"!=typeof e.jti)throw new x("JWT payload jti claim is not a string")}(r),{header:t,headerB64:o,payload:r,payloadB64:n,signatureB64:i}}(e);et("Issuer",r.payload.iss,this.expectedIssuers,R);let o=this.getIssuerConfig(r.payload.iss);return{decomposedJwt:r,jwksUri:o.jwksUri,verifyProperties:{...o,...t}}}withJwksUri(e){if(e.jwksUri)return e;let t=new URL(e.issuer).pathname.replace(/\/$/,"");return{jwksUri:new URL(`${t}/.well-known/jwks.json`,e.issuer).href,...e}}}class ey{constructor(e=Y.transformJwkToKeyObjectSync,t=Y.transformJwkToKeyObjectAsync){this.transformJwkToKeyObjectSyncFn=e,this.transformJwkToKeyObjectAsyncFn=t,this.publicKeys=new Map}transformJwkToKeyObjectSync(e,t,r){let o=e.alg??t;if(!r||!e.kid||!o)return this.transformJwkToKeyObjectSyncFn(e,o,r);let n=this.publicKeys.get(r)?.get(e.kid)?.get(o);if(n)return n;let i=this.transformJwkToKeyObjectSyncFn(e,o,r);return this.putKeyObjectInCache(r,e.kid,o,i),i}async transformJwkToKeyObjectAsync(e,t,r){let o=e.alg??t;if(!r||!e.kid||!o)return this.transformJwkToKeyObjectAsyncFn(e,o,r);let n=this.publicKeys.get(r)?.get(e.kid)?.get(o);if(n)return n;let i=await this.transformJwkToKeyObjectAsyncFn(e,o,r);return this.putKeyObjectInCache(r,e.kid,o,i),i}putKeyObjectInCache(e,t,r,o){let n=this.publicKeys.get(e),i=n?.get(t);i?i.set(r,o):n?n.set(t,new Map([[r,o]])):this.publicKeys.set(e,new Map([[t,new Map([[r,o]])]]))}clearCache(e){this.publicKeys.delete(e)}}function eb(e,t){if(null!=t.groups&&er("Cognito group",e["cognito:groups"],t.groups,M),et("Token use",e.token_use,["id","access"],F),null!==t.tokenUse){if(void 0===t.tokenUse)throw new I("tokenUse must be provided or set to null explicitly");ee("Token use",e.token_use,t.tokenUse,F)}if(null!==t.clientId){if(void 0===t.clientId)throw new I("clientId must be provided or set to null explicitly");"id"===e.token_use?et('Client ID ("audience")',e.aud,t.clientId,O):et("Client ID",e.client_id,t.clientId,O)}}class ew extends em{constructor(e,t){super(Array.isArray(e)?e.map(e=>({...e,...ew.parseUserPoolId(e.userPoolId),audience:null})):{...e,...ew.parseUserPoolId(e.userPoolId),audience:null},t)}static parseUserPoolId(e){let t=e.match(/^(?<region>(\w+-)?\w+-\w+-\d)+_\w+$/);if(!t)throw new I(`Invalid Cognito User Pool ID: ${e}`);let r=t.groups.region,o=`https://cognito-idp.${r}.amazonaws.com/${e}`;return{issuer:o,jwksUri:`${o}/.well-known/jwks.json`}}static create(e,t){return new this(e,t?.jwksCache)}verifySync(...[e,t]){let{decomposedJwt:r,jwksUri:o,verifyProperties:n}=this.getVerifyParameters(e,t);this.verifyDecomposedJwtSync(r,o,n);try{eb(r.payload,n)}catch(e){if(n.includeRawJwtInErrors&&e instanceof k)throw e.withRawJwt(r);throw e}return r.payload}async verify(...[e,t]){let{decomposedJwt:r,jwksUri:o,verifyProperties:n}=this.getVerifyParameters(e,t);await this.verifyDecomposedJwt(r,o,n);try{eb(r.payload,n)}catch(e){if(n.includeRawJwtInErrors&&e instanceof k)throw e.withRawJwt(r);throw e}return r.payload}cacheJwks(...[e,t]){let r;if(void 0!==t)r=ew.parseUserPoolId(t).issuer;else if(this.expectedIssuers.length>1)throw new I("userPoolId must be provided");let o=this.getIssuerConfig(r);super.cacheJwks(e,o.issuer)}}let eE=async e=>{let{userPoolId:t,clientId:r,tokenType:o,token:n}=e;try{let e=ew.create({userPoolId:t,tokenUse:o,clientId:r});return await e.verify(n),!0}catch(e){if(e instanceof N)return!0;return!1}},eS=({userPoolId:e,userPoolClientId:t})=>({getItem:async(r,o)=>{let n=r.includes(".accessToken")?"access":r.includes(".idToken")?"id":null;return!n||!!e&&!!t&&eE({clientId:t,userPoolId:e,tokenType:n,token:o})}});var eC=r(18663),ex=r(72407);class eI extends ex._{constructor({message:e,recoverySuggestion:t,underlyingError:r}){super({name:"AmplifyServerContextError",message:e,recoverySuggestion:t,underlyingError:r})}}let eA=new Date(0),e_=e=>{let{request:t,response:r}=e;if(t&&r&&"[object Object]"===Object.prototype.toString.call(t.cookies)&&"function"==typeof r.setHeader)return eP(t,r);let{request:o,response:n}=e;if(o&&n)return n instanceof eC.NextResponse?ek(o,n):eR(o,n);let{cookies:i}=e;if("function"==typeof i)return eT(i);throw new eI({message:"Attempted to create cookie storage adapter from an unsupported Next.js server context."})},ek=(e,t)=>{let r=e.cookies,o=t.cookies;return{get:e=>r.get(eM(e)),getAll:r.getAll.bind(r),set(e,t,r){o.set(eM(e),t,r)},delete(e){o.delete(eM(e))}}},eR=(e,t)=>{let r=e.cookies,o=eN(t.headers);return{get:e=>r.get(eM(e)),getAll:r.getAll.bind(r),...o}},eT=e=>{let t=e();return{get:e=>t.get(eM(e)),getAll:t.getAll.bind(t),set:(e,r,o)=>{try{t.set(eM(e),r,o)}catch{}},delete:e=>{try{t.delete(eM(e))}catch{}}}},eP=(e,t)=>{let r={...e.cookies},o=Object.entries(r).map(([e,t])=>({name:e,value:t}));return{get(e){let t=r[eM(e)];return t?{name:e,value:t}:void 0},getAll:()=>o,set(e,r,o){t.appendHeader("Set-Cookie",`${eM(e)}=${r};${o?eU(o):""}`)},delete(e){t.appendHeader("Set-Cookie",`${eM(e)}=;Expires=${eA.toUTCString()}`)}}},eN=e=>({set:(t,r,o)=>{e.append("Set-Cookie",`${eM(t)}=${r};${o?eU(o):""}`)},delete:t=>{e.append("Set-Cookie",`${eM(t)}=;Expires=${eA.toUTCString()}`)}}),eU=e=>{let{expires:t,domain:r,httpOnly:o,sameSite:n,secure:i,path:a}=e,s=[];return r&&s.push(`Domain=${r}`),t&&s.push(`Expires=${t.toUTCString()}`),o&&s.push("HttpOnly"),n&&s.push(`SameSite=${n}`),i&&s.push("Secure"),a&&s.push(`Path=${a}`),s.join(";")},eM=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent),eF=({config:e})=>async({nextServerContext:t,operation:r})=>{if(e.Auth){let o=null===t?a.Ed:l(e_(t),eS({userPoolId:e?.Auth.Cognito?.userPoolId,userPoolClientId:e?.Auth.Cognito?.userPoolClientId})),n=d(e.Auth,o),i=g(e.Auth,o);return E(e,{Auth:{credentialsProvider:n,tokenProvider:i}},r)}return E(e,{},r)},eO=({config:e})=>({runWithAmplifyServerContext:eF({config:(0,i.h)(e)})})},75919:function(e,t,r){"use strict";r.d(t,{l:function(){return n}});var o=r(72407);class n extends o._{constructor(e){super(e),this.constructor=n,Object.setPrototypeOf(this,n.prototype)}}},77959:function(e,t,r){"use strict";r.d(t,{EU:function(){return i},Jg:function(){return n},MA:function(){return s},VL:function(){return u},hj:function(){return d},mP:function(){return a},sX:function(){return f},vC:function(){return l},wW:function(){return c}});var o=r(75919);let n="UserUnAuthenticatedException",i="UserAlreadyAuthenticatedException",a="DeviceMetadataNotFoundException",s="AutoSignInException",l=new o.l({name:"InvalidRedirectException",message:"signInRedirect or signOutRedirect had an invalid format or was not found.",recoverySuggestion:"Please make sure the signIn/Out redirect in your oauth config is valid."}),u=new o.l({name:"InvalidOriginException",message:"redirect is coming from a different origin. The oauth flow needs to be initiated from the same origin",recoverySuggestion:"Please call signInWithRedirect from the same origin."}),c="OAuthSignOutException",d="TokenRefreshException",f="UnexpectedSignInInterruptionException"},49052:function(e,t,r){"use strict";r.d(t,{R:function(){return i}});var o=r(12053),n=r(75919);function i(e){if(!e||"Error"===e.name||e instanceof TypeError)throw new n.l({name:o.Z.Unknown,message:"An unknown error has occurred.",underlyingError:e})}},17134:function(e,t,r){"use strict";r.d(t,{w:function(){return x}});var o=r(15810),n=r(90922),i=r(35658);function a(){return n.d.Auth.clearCredentials()}var s=r(34335),l=r(12887),u=r(95760),c=r(79753),d=r(75919),f=r(69088),p=r(40739),h=r(81808),g=r(60645),v=r(65355);r(75887);let m=async e=>{await e.clearOAuthData(),p.C.clearTokens(),await a(),s.Xb.dispatch("auth",{event:"signedOut"},"Auth",s.SQ)};var y=r(78922),b=r(63701);let w=async(e,t=!1)=>{(0,l.V0)(e);let{loginWith:r,userPoolClientId:o}=e,{domain:n,redirectSignOut:i}=r.oauth,a=(0,b.B)(i),s=`https://${n}/logout?${Object.entries({client_id:o,logout_uri:encodeURIComponent(a)}).map(([e,t])=>`${e}=${t}`).join("&")}`;return(0,y.A)(s)},E=async(e,t)=>{let{isOAuthSignIn:r}=await t.loadOAuthSignIn();if(await m(t),r)return w(e)};var S=r(77959);let C=new o.k("Auth");async function x(e){let t;let r=n.d.getConfig().Auth?.Cognito;(0,l.FG)(r),e?.global?await A(r):await I(r);try{(0,l.V0)(r),t=!0}catch(e){t=!1}if(t){let e=new f.R(i.Fm);e.setAuthConfig(r);let{type:t}=await E(r,e)??{};if("error"===t)throw new d.l({name:S.wW,message:"An error occurred when attempting to log out from OAuth provider."})}else p.C.clearTokens(),await a(),s.Xb.dispatch("auth",{event:"signedOut"},"Auth",s.SQ)}async function I(e){try{let t=await p.C.getTokenStore().loadTokens();(0,v.XD)(t),_(t.accessToken)&&await (0,h.PX)({region:(0,g.u)(e.userPoolId),userAgentValue:(0,c.W)(u.g4.SignOut)},{ClientId:e.userPoolClientId,Token:t.refreshToken})}catch(e){C.debug("Client signOut error caught but will proceed with token removal")}}async function A(e){try{let t=await p.C.getTokenStore().loadTokens();(0,v.CA)(t),await (0,h.oe)({region:(0,g.u)(e.userPoolId),userAgentValue:(0,c.W)(u.g4.SignOut)},{AccessToken:t.accessToken.toString()})}catch(e){C.debug("Global signOut error caught but will proceed with token removal")}}let _=e=>!!e?.payload?.origin_jti},22765:function(e,t,r){"use strict";r.d(t,{S:function(){return l}});var o=r(15810),n=r(12887),i=r(15439);let a={identityId:"identityId"},s=new o.k("DefaultIdentityIdStore");class l{setAuthConfig(e){(0,n.YE)(e.Cognito),this.authConfig=e,this._authKeys=u("Cognito",e.Cognito.identityPoolId)}constructor(e){this._authKeys={},this.keyValueStorage=e}async loadIdentityId(){(0,n.YE)(this.authConfig?.Cognito);try{if(this._primaryIdentityId)return{id:this._primaryIdentityId,type:"primary"};{let e=await this.keyValueStorage.getItem(this._authKeys.identityId);if(e)return{id:e,type:"guest"};return null}}catch(e){return s.log("Error getting stored IdentityId.",e),null}}async storeIdentityId(e){(0,n.YE)(this.authConfig?.Cognito),"guest"===e.type?(this.keyValueStorage.setItem(this._authKeys.identityId,e.id),this._primaryIdentityId=void 0):(this._primaryIdentityId=e.id,this.keyValueStorage.removeItem(this._authKeys.identityId))}async clearIdentityId(){this._primaryIdentityId=void 0,await this.keyValueStorage.removeItem(this._authKeys.identityId)}}let u=(e,t)=>(0,i._X)(a)(`com.amplify.${e}`,t)},29737:function(e,t,r){"use strict";r.d(t,{$:function(){return U}});var o=r(15810);r(75887),r(58010);var n=r(9893),i=r(55962),a=r(48591),s=r(14221),l=r(37836),u=r(77880),c=r(1123),d=r(79101),f=r(64043),p=r(18816),h=r(67431);let g=(0,f.V)(l.y,[()=>e=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]),v={service:"cognito-identity",endpointResolver:({region:e})=>({url:new d.a(`https://cognito-identity.${e}.${(0,s.b)(e)}`)}),retryDecider:(0,c.j)(i.f),computeDelay:u.k,userAgentValue:(0,p.Zm)(),cache:"no-store"};(0,h.QW)(()=>{v.userAgentValue=(0,p.Zm)()});let m=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityService.${e}`}),y=({url:e},t,r)=>({headers:t,url:e,body:r,method:"POST"}),b=async e=>{if(e.statusCode>=300)throw await (0,i.f)(e);{let t=await (0,i.e)(e);return{IdentityId:t.IdentityId,Credentials:w(t.Credentials),$metadata:(0,n.B)(e)}}},w=({AccessKeyId:e,SecretKey:t,SessionToken:r,Expiration:o}={})=>({AccessKeyId:e,SecretKey:t,SessionToken:r,Expiration:o&&new Date(1e3*o)}),E=(0,a.z)(g,(e,t)=>y(t,m("GetCredentialsForIdentity"),JSON.stringify(e)),b,v);var S=r(12887),C=r(75919),x=r(60645),I=r(65355);let A=async e=>{if(!(e.statusCode>=300))return{IdentityId:(await (0,i.e)(e)).IdentityId,$metadata:(0,n.B)(e)};throw await (0,i.f)(e)},_=(0,a.z)(g,(e,t)=>y(t,m("GetId"),JSON.stringify(e)),A,v);function k(e){let t=(0,S.xp)(e).payload.iss,r={};if(!t)throw new C.l({name:"InvalidIdTokenException",message:"Invalid Idtoken."});return r[t.replace(/(^\w+:|^)\/\//,"")]=e,r}let R=new o.k("CognitoIdentityIdProvider");async function T({tokens:e,authConfig:t,identityIdStore:r}){r.setAuthConfig({Cognito:t});let o=await r.loadIdentityId();if(e){if(o&&"primary"===o.type)return o.id;{let r=e.idToken?k(e.idToken.toString()):{},n=await P(r,t);o&&o.id===n&&R.debug(`The guest identity ${o.id} has become the primary identity.`),o={id:n,type:"primary"}}}else{if(o&&"guest"===o.type)return o.id;o={id:await P({},t),type:"guest"}}return r.storeIdentityId(o),o.id}async function P(e,t){let r=t?.identityPoolId,o=(0,x.N)(r),n=(await _({region:o},{IdentityPoolId:r,Logins:e})).IdentityId;if(!n)throw new C.l({name:"GetIdResponseException",message:"Received undefined response from getId operation",recoverySuggestion:"Make sure to pass a valid identityPoolId in the configuration."});return n}let N=new o.k("CognitoCredentialsProvider");class U{constructor(e){this._nextCredentialsRefresh=0,this._identityIdStore=e}async clearCredentialsAndIdentityId(){N.debug("Clearing out credentials and identityId"),this._credentialsAndIdentityId=void 0,await this._identityIdStore.clearIdentityId()}async clearCredentials(){N.debug("Clearing out in-memory credentials"),this._credentialsAndIdentityId=void 0}async getCredentialsAndIdentityId(e){let t=e.authenticated,{tokens:r}=e,{authConfig:o}=e;try{(0,S.YE)(o?.Cognito)}catch{return}if(!t&&!o.Cognito.allowGuestAccess)return;let{forceRefresh:n}=e,i=this.hasTokenChanged(r),a=await T({tokens:r,authConfig:o.Cognito,identityIdStore:this._identityIdStore});return((n||i)&&this.clearCredentials(),t)?((0,I.Cg)(r),this.credsForOIDCTokens(o.Cognito,r,a)):this.getGuestCredentials(a,o.Cognito)}async getGuestCredentials(e,t){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!1===this._credentialsAndIdentityId.isAuthenticatedCreds)return N.info("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();let r=(0,x.N)(t.identityPoolId),o=await E({region:r},{IdentityId:e});if(o.Credentials&&o.Credentials.AccessKeyId&&o.Credentials.SecretKey){this._nextCredentialsRefresh=new Date().getTime()+3e6;let t={credentials:{accessKeyId:o.Credentials.AccessKeyId,secretAccessKey:o.Credentials.SecretKey,sessionToken:o.Credentials.SessionToken,expiration:o.Credentials.Expiration},identityId:e},r=o.IdentityId;return r&&(t.identityId=r,this._identityIdStore.storeIdentityId({id:r,type:"guest"})),this._credentialsAndIdentityId={...t,isAuthenticatedCreds:!1},t}throw new C.l({name:"CredentialsNotFoundException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}async credsForOIDCTokens(e,t,r){if(this._credentialsAndIdentityId&&!this.isPastTTL()&&!0===this._credentialsAndIdentityId.isAuthenticatedCreds)return N.debug("returning stored credentials as they neither past TTL nor expired."),this._credentialsAndIdentityId;this.clearCredentials();let o=t.idToken?k(t.idToken.toString()):{},n=(0,x.N)(e.identityPoolId),i=await E({region:n},{IdentityId:r,Logins:o});if(i.Credentials&&i.Credentials.AccessKeyId&&i.Credentials.SecretKey){let e={credentials:{accessKeyId:i.Credentials.AccessKeyId,secretAccessKey:i.Credentials.SecretKey,sessionToken:i.Credentials.SessionToken,expiration:i.Credentials.Expiration},identityId:r};this._credentialsAndIdentityId={...e,isAuthenticatedCreds:!0,associatedIdToken:t.idToken?.toString()},this._nextCredentialsRefresh=new Date().getTime()+3e6;let o=i.IdentityId;return o&&(e.identityId=o,this._identityIdStore.storeIdentityId({id:o,type:"primary"})),e}throw new C.l({name:"CredentialsException",message:"Cognito did not respond with either Credentials, AccessKeyId or SecretKey."})}isPastTTL(){return void 0===this._nextCredentialsRefresh||this._nextCredentialsRefresh<=Date.now()}hasTokenChanged(e){return!!e&&!!this._credentialsAndIdentityId?.associatedIdToken&&e.idToken?.toString()!==this._credentialsAndIdentityId.associatedIdToken}}},40923:function(e,t,r){"use strict";r.d(t,{X:function(){return d}});var o=r(34335),n=r(37811),i=r(12887),a=r(69399),s=r(49052),l=r(75919),u=r(97045),c=r(81154);class d{constructor(){this.waitForInflightOAuth=(0,n.j)()?async()=>await u.V.loadOAuthInFlight()?(this.inflightPromise||(this.inflightPromise=new Promise((e,t)=>{(0,c.q)(e)})),this.inflightPromise):void 0:async()=>{}}setAuthConfig(e){u.V.setAuthConfig(e.Cognito),this.authConfig=e}setTokenRefresher(e){this.tokenRefresher=e}setAuthTokenStore(e){this.tokenStore=e}getTokenStore(){if(!this.tokenStore)throw new l.l({name:"EmptyTokenStoreException",message:"TokenStore not set"});return this.tokenStore}getTokenRefresher(){if(!this.tokenRefresher)throw new l.l({name:"EmptyTokenRefresherException",message:"TokenRefresher not set"});return this.tokenRefresher}async getTokens(e){let t;try{(0,i.FG)(this.authConfig?.Cognito)}catch(e){return null}await this.waitForInflightOAuth(),this.inflightPromise=void 0,t=await this.getTokenStore().loadTokens();let r=await this.getTokenStore().getLastAuthUser();if(null===t)return null;let o=!!t?.idToken&&(0,a.p)({expiresAt:(t.idToken?.payload?.exp??0)*1e3,clockDrift:t.clockDrift??0}),n=(0,a.p)({expiresAt:(t.accessToken?.payload?.exp??0)*1e3,clockDrift:t.clockDrift??0});return(e?.forceRefresh||o||n)&&null===(t=await this.refreshTokens({tokens:t,username:r}))?null:{accessToken:t?.accessToken,idToken:t?.idToken,signInDetails:t?.signInDetails}}async refreshTokens({tokens:e,username:t}){try{let{signInDetails:r}=e,n=await this.getTokenRefresher()({tokens:e,authConfig:this.authConfig,username:t});return n.signInDetails=r,await this.setTokens({tokens:n}),o.Xb.dispatch("auth",{event:"tokenRefresh"},"Auth",o.SQ),n}catch(e){return this.handleErrors(e)}}handleErrors(e){if((0,s.R)(e),"Network error"!==e.message&&this.clearTokens(),o.Xb.dispatch("auth",{event:"tokenRefresh_failure",data:{error:e}},"Auth",o.SQ),e.name.startsWith("NotAuthorizedException"))return null;throw e}async setTokens({tokens:e}){return this.getTokenStore().storeTokens(e)}async clearTokens(){return this.getTokenStore().clearTokens()}getDeviceMetadata(e){return this.getTokenStore().getDeviceMetadata(e)}clearDeviceMetadata(e){return this.getTokenStore().clearDeviceMetadata(e)}}},15439:function(e,t,r){"use strict";r.d(t,{sI:function(){return c},_X:function(){return f}});var o,n=r(12887),i=r(75919);let a={accessToken:"accessToken",idToken:"idToken",oidcProvider:"oidcProvider",clockDrift:"clockDrift",refreshToken:"refreshToken",deviceKey:"deviceKey",randomPasswordKey:"randomPasswordKey",deviceGroupKey:"deviceGroupKey",signInDetails:"signInDetails"};var s=r(47752);(o||(o={})).InvalidAuthTokens="InvalidAuthTokens";let l={[o.InvalidAuthTokens]:{message:"Invalid tokens.",recoverySuggestion:"Make sure the tokens are valid."}},u=(0,s.$)(l);class c{constructor(){this.name="CognitoIdentityServiceProvider"}getKeyValueStorage(){if(!this.keyValueStorage)throw new i.l({name:"KeyValueStorageNotFoundException",message:"KeyValueStorage was not found in TokenStore"});return this.keyValueStorage}setKeyValueStorage(e){this.keyValueStorage=e}setAuthConfig(e){this.authConfig=e}async loadTokens(){try{let e=await this.getAuthKeys(),t=await this.getKeyValueStorage().getItem(e.accessToken);if(!t)throw new i.l({name:"NoSessionFoundException",message:"Auth session was not found. Make sure to call signIn."});let r=(0,n.xp)(t),o=await this.getKeyValueStorage().getItem(e.idToken),a=o?(0,n.xp)(o):void 0,s=await this.getKeyValueStorage().getItem(e.refreshToken)??void 0,l=await this.getKeyValueStorage().getItem(e.clockDrift)??"0",u=Number.parseInt(l),c=await this.getKeyValueStorage().getItem(e.signInDetails),d={accessToken:r,idToken:a,refreshToken:s,deviceMetadata:await this.getDeviceMetadata()??void 0,clockDrift:u,username:await this.getLastAuthUser()};return c&&(d.signInDetails=JSON.parse(c)),d}catch(e){return null}}async storeTokens(e){u(void 0!==e,o.InvalidAuthTokens),await this.clearTokens();let t=e.username;await this.getKeyValueStorage().setItem(this.getLastAuthUserKey(),t);let r=await this.getAuthKeys();await this.getKeyValueStorage().setItem(r.accessToken,e.accessToken.toString()),e.idToken&&await this.getKeyValueStorage().setItem(r.idToken,e.idToken.toString()),e.refreshToken&&await this.getKeyValueStorage().setItem(r.refreshToken,e.refreshToken),e.deviceMetadata&&(e.deviceMetadata.deviceKey&&await this.getKeyValueStorage().setItem(r.deviceKey,e.deviceMetadata.deviceKey),e.deviceMetadata.deviceGroupKey&&await this.getKeyValueStorage().setItem(r.deviceGroupKey,e.deviceMetadata.deviceGroupKey),await this.getKeyValueStorage().setItem(r.randomPasswordKey,e.deviceMetadata.randomPassword)),e.signInDetails&&await this.getKeyValueStorage().setItem(r.signInDetails,JSON.stringify(e.signInDetails)),await this.getKeyValueStorage().setItem(r.clockDrift,`${e.clockDrift}`)}async clearTokens(){let e=await this.getAuthKeys();await Promise.all([this.getKeyValueStorage().removeItem(e.accessToken),this.getKeyValueStorage().removeItem(e.idToken),this.getKeyValueStorage().removeItem(e.clockDrift),this.getKeyValueStorage().removeItem(e.refreshToken),this.getKeyValueStorage().removeItem(e.signInDetails),this.getKeyValueStorage().removeItem(this.getLastAuthUserKey())])}async getDeviceMetadata(e){let t=await this.getAuthKeys(e),r=await this.getKeyValueStorage().getItem(t.deviceKey),o=await this.getKeyValueStorage().getItem(t.deviceGroupKey),n=await this.getKeyValueStorage().getItem(t.randomPasswordKey);return n&&o&&r?{deviceKey:r,deviceGroupKey:o,randomPassword:n}:null}async clearDeviceMetadata(e){let t=await this.getAuthKeys(e);await Promise.all([this.getKeyValueStorage().removeItem(t.deviceKey),this.getKeyValueStorage().removeItem(t.deviceGroupKey),this.getKeyValueStorage().removeItem(t.randomPasswordKey)])}async getAuthKeys(e){(0,n.FG)(this.authConfig?.Cognito);let t=e??await this.getLastAuthUser();return d(this.name,`${this.authConfig.Cognito.userPoolClientId}.${t}`)}getLastAuthUserKey(){(0,n.FG)(this.authConfig?.Cognito);let e=this.authConfig.Cognito.userPoolClientId;return`${this.name}.${e}.LastAuthUser`}async getLastAuthUser(){return await this.getKeyValueStorage().getItem(this.getLastAuthUserKey())??"username"}}let d=(e,t)=>f(a)(`${e}`,t);function f(e){let t=Object.values({...e});return(e,r)=>t.reduce((t,o)=>({...t,[o]:`${e}.${r}.${o}`}),{})}},40739:function(e,t,r){"use strict";r.d(t,{D:function(){return l},C:function(){return u}});var o=r(35658),n=r(45130),i=r(15439),a=r(40923);class s{constructor(){this.authTokenStore=new i.sI,this.authTokenStore.setKeyValueStorage(o.Fm),this.tokenOrchestrator=new a.X,this.tokenOrchestrator.setAuthTokenStore(this.authTokenStore),this.tokenOrchestrator.setTokenRefresher(n.L)}getTokens({forceRefresh:e}={forceRefresh:!1}){return this.tokenOrchestrator.getTokens({forceRefresh:e})}setKeyValueStorage(e){this.authTokenStore.setKeyValueStorage(e)}setAuthConfig(e){this.authTokenStore.setAuthConfig(e),this.tokenOrchestrator.setAuthConfig(e)}}let l=new s,{tokenOrchestrator:u}=l},81808:function(e,t,r){"use strict";r.d(t,{Vo:function(){return N},Cq:function(){return M},fI:function(){return k},_f:function(){return A},gF:function(){return _},PR:function(){return U},V3:function(){return F},oe:function(){return O},Cg:function(){return C},S5:function(){return T},H6:function(){return R},PX:function(){return x},y1:function(){return I},fn:function(){return P},tl:function(){return D}});var o=r(48591),n=r(55962),i=r(49052),a=r(75919),s=r(90922),l=r(14221),u=r(37836),c=r(1123),d=r(77880),f=r(79101),p=r(18816),h=r(64043);let g="cognito-idp",v=(0,h.V)(u.y,[()=>(e,t)=>async function(t){return t.headers["cache-control"]="no-store",e(t)}]),m={service:g,endpointResolver:({region:e})=>{let t=s.d.getConfig().Auth?.Cognito,r=t?.userPoolEndpoint,o=new f.a(`https://${g}.${e}.${(0,l.b)(e)}`);return{url:r?new f.a(r):o}},retryDecider:(0,c.j)(n.f),computeDelay:d.k,userAgentValue:(0,p.Zm)(),cache:"no-store"},y=e=>({"content-type":"application/x-amz-json-1.1","x-amz-target":`AWSCognitoIdentityProviderService.${e}`}),b=({url:e},t,r)=>({headers:t,url:e,body:r,method:"POST"}),w=e=>(t,r)=>b(r,y(e),JSON.stringify(t)),E=()=>async e=>{if(!(e.statusCode>=300))return await (0,n.e)(e);{let t=await (0,n.f)(e);throw(0,i.R)(t),new a.l({name:t.name,message:t.message})}},S=()=>async e=>{if(e.statusCode>=300){let t=await (0,n.f)(e);throw(0,i.R)(t),new a.l({name:t.name,message:t.message})}},C=(0,o.z)(v,w("InitiateAuth"),E(),m),x=(0,o.z)(v,w("RevokeToken"),E(),m),I=(0,o.z)(v,w("SignUp"),E(),m),A=(0,o.z)(v,w("ConfirmSignUp"),E(),m),_=(0,o.z)(v,w("ForgotPassword"),E(),m),k=(0,o.z)(v,w("ConfirmForgotPassword"),E(),m),R=(0,o.z)(v,w("RespondToAuthChallenge"),E(),m),T=(0,o.z)(v,w("ResendConfirmationCode"),E(),m),P=(0,o.z)(v,w("VerifySoftwareToken"),E(),m),N=(0,o.z)(v,w("AssociateSoftwareToken"),E(),m);(0,o.z)(v,w("SetUserMFAPreference"),E(),m);let U=(0,o.z)(v,w("GetUser"),E(),m);(0,o.z)(v,w("ChangePassword"),E(),m);let M=(0,o.z)(v,w("ConfirmDevice"),E(),m);(0,o.z)(v,w("ForgetDevice"),S(),m),(0,o.z)(v,w("DeleteUser"),S(),m);let F=(0,o.z)(v,w("GetUserAttributeVerificationCode"),E(),m),O=(0,o.z)(v,w("GlobalSignOut"),E(),m);(0,o.z)(v,w("UpdateUserAttributes"),E(),m);let D=(0,o.z)(v,w("VerifyUserAttribute"),E(),m);(0,o.z)(v,w("UpdateDeviceStatus"),E(),m),(0,o.z)(v,w("ListDevices"),E(),m),(0,o.z)(v,w("DeleteUserAttributes"),E(),m)},60645:function(e,t,r){"use strict";r.d(t,{N:function(){return i},u:function(){return n}});var o=r(75919);function n(e){let t=e?.split("_")[0];if(!e||0>e.indexOf("_")||!t||"string"!=typeof t)throw new o.l({name:"InvalidUserPoolId",message:"Invalid user pool id provided."});return t}function i(e){if(!e||!e.includes(":"))throw new o.l({name:"InvalidIdentityPoolIdException",message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."});return e.split(":")[0]}},63701:function(e,t,r){"use strict";r.d(t,{B:function(){return n}});var o=r(77959);function n(e){let t=e?.find(i)??e?.find(a),r=e?.find(l)??e?.find(s);if(t)return t;if(r)throw o.VL;throw o.vC}let i=e=>e.startsWith(String((window.location.origin+window.location.pathname)??"/")),a=e=>e.includes(String(window.location.hostname)),s=e=>e.startsWith("http://"),l=e=>e.startsWith("https://")},81154:function(e,t,r){"use strict";r.d(t,{P:function(){return i},q:function(){return n}});let o=[],n=e=>{o.push(e)},i=()=>{for(;o.length;)o.pop()?.()}},97045:function(e,t,r){"use strict";r.d(t,{V:function(){return n}});var o=r(35658);let n=new(r(69088)).R(o.Fm)},45130:function(e,t,r){"use strict";let o;r.d(t,{L:function(){return d},H:function(){return f}});var n=r(12887),i=r(81808),a=r(60645),s=r(65355),l=r(75919),u=r(77352);let c=async({tokens:e,authConfig:t,username:r})=>{(0,n.FG)(t?.Cognito);let o=(0,a.u)(t.Cognito.userPoolId);(0,s.XD)(e);let c=e.refreshToken,d={REFRESH_TOKEN:c};e.deviceMetadata?.deviceKey&&(d.DEVICE_KEY=e.deviceMetadata.deviceKey);let f=(0,u.u)({username:r,userPoolId:t.Cognito.userPoolId,userPoolClientId:t.Cognito.userPoolClientId}),{AuthenticationResult:p}=await (0,i.Cg)({region:o},{ClientId:t?.Cognito?.userPoolClientId,AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:d,UserContextData:f}),h=(0,n.xp)(p?.AccessToken??""),g=p?.IdToken?(0,n.xp)(p.IdToken):void 0,{iat:v}=h.payload;if(!v)throw new l.l({name:"iatNotFoundException",message:"iat not found in access token"});return{accessToken:h,idToken:g,clockDrift:1e3*v-new Date().getTime(),refreshToken:c,username:r}},d=async(...e)=>o||(o=new Promise((t,r)=>{c(...e).then(e=>{t(e)}).catch(e=>{r(e)}).finally(()=>{o=void 0})})),f=c},69088:function(e,t,r){"use strict";r.d(t,{R:function(){return l}});var o=r(12887),n=r(15439),i=r(65355);let a="amplify-signin-with-hostedUI",s="CognitoIdentityServiceProvider";class l{constructor(e){this.keyValueStorage=e}async clearOAuthInflightData(){(0,o.FG)(this.cognitoConfig);let e=u(s,this.cognitoConfig.userPoolClientId);await Promise.all([this.keyValueStorage.removeItem(e.inflightOAuth),this.keyValueStorage.removeItem(e.oauthPKCE),this.keyValueStorage.removeItem(e.oauthState)])}async clearOAuthData(){(0,o.FG)(this.cognitoConfig);let e=u(s,this.cognitoConfig.userPoolClientId);return await this.clearOAuthInflightData(),await this.keyValueStorage.removeItem(a),this.keyValueStorage.removeItem(e.oauthSignIn)}loadOAuthState(){(0,o.FG)(this.cognitoConfig);let e=u(s,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthState)}storeOAuthState(e){(0,o.FG)(this.cognitoConfig);let t=u(s,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthState,e)}loadPKCE(){(0,o.FG)(this.cognitoConfig);let e=u(s,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.getItem(e.oauthPKCE)}storePKCE(e){(0,o.FG)(this.cognitoConfig);let t=u(s,this.cognitoConfig.userPoolClientId);return this.keyValueStorage.setItem(t.oauthPKCE,e)}setAuthConfig(e){this.cognitoConfig=e}async loadOAuthInFlight(){(0,o.FG)(this.cognitoConfig);let e=u(s,this.cognitoConfig.userPoolClientId);return await this.keyValueStorage.getItem(e.inflightOAuth)==="true"}async storeOAuthInFlight(e){(0,o.FG)(this.cognitoConfig);let t=u(s,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(t.inflightOAuth,`${e}`)}async loadOAuthSignIn(){(0,o.FG)(this.cognitoConfig);let e=u(s,this.cognitoConfig.userPoolClientId),t=await this.keyValueStorage.getItem(a),[r,n]=(await this.keyValueStorage.getItem(e.oauthSignIn))?.split(",")??[];return{isOAuthSignIn:"true"===r||"true"===t,preferPrivateSession:"true"===n}}async storeOAuthSignIn(e,t=!1){(0,o.FG)(this.cognitoConfig);let r=u(s,this.cognitoConfig.userPoolClientId);await this.keyValueStorage.setItem(r.oauthSignIn,`${e},${t}`)}}let u=(e,t)=>(0,n._X)(i.Bx)(e,t)},65355:function(e,t,r){"use strict";r.d(t,{Bx:function(){return d},CA:function(){return i},Cg:function(){return a},XD:function(){return u},tr:function(){return c}});var o=r(75919),n=r(77959);function i(e){if(!e||!e.accessToken)throw new o.l({name:n.Jg,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}function a(e){if(!e||!e.idToken)throw new o.l({name:n.Jg,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."})}let s=new o.l({name:n.hj,message:`Token refresh is not supported when authenticated with the 'implicit grant' (token) oauth flow. 
	Please change your oauth configuration to use 'code grant' flow.`,recoverySuggestion:`Please logout and change your Amplify configuration to use "code grant" flow. 
	E.g { responseType: 'code' }`}),l=new o.l({name:n.Jg,message:"User needs to be authenticated to call this API.",recoverySuggestion:"Sign in before calling this API again."});function u(e){if(f(e)&&!e?.refreshToken)throw s;if(!(f(e)&&e?.refreshToken))throw l}function c(e){if(!e||!e.deviceKey||!e.deviceGroupKey||!e.randomPassword)throw new o.l({name:n.mP,message:"Either deviceKey, deviceGroupKey or secretPassword were not found during the sign-in process.",recoverySuggestion:"Make sure to not clear storage after calling the signIn API."})}let d={inflightOAuth:"inflightOAuth",oauthSignIn:"oauthSignIn",oauthPKCE:"oauthPKCE",oauthState:"oauthState"};function f(e){return e?.accessToken||e?.idToken}},77352:function(e,t,r){"use strict";function o({username:e,userPoolId:t,userPoolClientId:r}){if("undefined"==typeof window)return;let o=window.AmazonCognitoAdvancedSecurityData;if(void 0===o)return;let n=o.getData(e,t,r);return n?{EncodedData:n}:{}}r.d(t,{u:function(){return o}})},79753:function(e,t,r){"use strict";r.d(t,{W:function(){return i}});var o=r(18816),n=r(95760);let i=(e,t)=>(0,o.Zm)({category:n.WD.Auth,action:e,...t})},78922:function(e,t,r){"use strict";r.d(t,{A:function(){return o}});let o=async e=>{window?.location&&(window.location.href=e.replace("http://","https://"))}},34335:function(e,t,r){"use strict";r.d(t,{SQ:function(){return a},Xb:function(){return u},qC:function(){return c}});var o=r(15810),n=r(19457),i=r(72407);let a="undefined"!=typeof Symbol?Symbol("amplify_default"):"@@amplify_default",s=new o.k("Hub");class l{constructor(e){this.listeners=new Map,this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","ui","xr"],this.name=e}_remove(e,t){let r=this.listeners.get(e);if(!r){s.warn(`No listeners for ${e}`);return}this.listeners.set(e,[...r.filter(({callback:e})=>e!==t)])}dispatch(e,t,r,o){"string"==typeof e&&this.protectedChannels.indexOf(e)>-1&&o!==a&&s.warn(`WARNING: ${e} is protected and dispatching on it can have unintended consequences`);let n={channel:e,payload:{...t},source:r,patternInfo:[]};try{this._toListeners(n)}catch(e){s.error(e)}}listen(e,t,r="noname"){if("function"!=typeof t)throw new i._({name:n.z2,message:"No callback supplied to Hub"});let o=this.listeners.get(e);return o||(o=[],this.listeners.set(e,o)),o.push({name:r,callback:t}),()=>{this._remove(e,t)}}_toListeners(e){let{channel:t,payload:r}=e,o=this.listeners.get(t);o&&o.forEach(o=>{s.debug(`Dispatching to ${t} with `,r);try{o.callback(e)}catch(e){s.error(e)}})}}let u=new l("__default__"),c=new l("internal-hub")},15810:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var o,n,i=r(19457);(o=n||(n={})).DEBUG="DEBUG",o.ERROR="ERROR",o.INFO="INFO",o.WARN="WARN",o.VERBOSE="VERBOSE",o.NONE="NONE";let a={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5,NONE:6};class s{constructor(e,t=n.WARN){this.name=e,this.level=t,this._pluggables=[]}_padding(e){return e<10?"0"+e:""+e}_ts(){let e=new Date;return[this._padding(e.getMinutes()),this._padding(e.getSeconds())].join(":")+"."+e.getMilliseconds()}configure(e){return e&&(this._config=e),this._config}_log(e,...t){let r=this.level;s.LOG_LEVEL&&(r=s.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(r=window.LOG_LEVEL);let o=a[r];if(!(a[e]>=o))return;let i=console.log.bind(console);e===n.ERROR&&console.error&&(i=console.error.bind(console)),e===n.WARN&&console.warn&&(i=console.warn.bind(console)),s.BIND_ALL_LOG_LEVELS&&(e===n.INFO&&console.info&&(i=console.info.bind(console)),e===n.DEBUG&&console.debug&&(i=console.debug.bind(console)));let l=`[${e}] ${this._ts()} ${this.name}`,u="";if(1===t.length&&"string"==typeof t[0])i(u=`${l} - ${t[0]}`);else if(1===t.length)u=`${l} ${t[0]}`,i(l,t[0]);else if("string"==typeof t[0]){let e=t.slice(1);1===e.length&&(e=e[0]),u=`${l} - ${t[0]} ${e}`,i(`${l} - ${t[0]}`,e)}else u=`${l} ${t}`,i(l,t);for(let e of this._pluggables){let t={message:u,timestamp:Date.now()};e.pushLogs([t])}}log(...e){this._log(n.INFO,...e)}info(...e){this._log(n.INFO,...e)}warn(...e){this._log(n.WARN,...e)}error(...e){this._log(n.ERROR,...e)}debug(...e){this._log(n.DEBUG,...e)}verbose(...e){this._log(n.VERBOSE,...e)}addPluggable(e){e&&e.getCategoryName()===i.YG&&(this._pluggables.push(e),e.configure(this._config))}listPluggables(){return this._pluggables}}s.LOG_LEVEL=null,s.BIND_ALL_LOG_LEVELS=!1},13744:function(e,t,r){"use strict";r.d(t,{D:function(){return i},o:function(){return n}});let o={},n=e=>{o[e.category]=e.apis.reduce((t,r)=>({...t,[r]:{refCount:t[r]?.refCount?t[r].refCount+1:1,additionalDetails:e.additionalDetails}}),o[e.category]??{});let t=!1;return()=>{t||(t=!0,e.apis.forEach(t=>{let r=o[e.category][t].refCount;r>1?o[e.category][t].refCount=r-1:(delete o[e.category][t],Object.keys(o[e.category]).length||delete o[e.category])}))}},i=(e,t)=>o[e]?.[t]?.additionalDetails},67431:function(e,t,r){"use strict";let o;r.d(t,{Cj:function(){return m},QW:function(){return y}});var n=r(95760),i=r(25566);let a=()=>"undefined"!=typeof global,s=()=>"undefined"!=typeof window,l=()=>"undefined"!=typeof document,u=()=>void 0!==i,c=(e,t)=>!!Object.keys(e).find(e=>e.startsWith(t));var d=r(25566),f=r(25566),p=r(25566);let h=[{platform:n.gQ.Expo,detectionMethod:function(){return a()&&void 0!==global.expo}},{platform:n.gQ.ReactNative,detectionMethod:function(){return"undefined"!=typeof navigator&&void 0!==navigator.product&&"ReactNative"===navigator.product}},{platform:n.gQ.NextJs,detectionMethod:function(){return s()&&window.next&&"object"==typeof window.next}},{platform:n.gQ.Nuxt,detectionMethod:function(){return s()&&(void 0!==window.__NUXT__||void 0!==window.$nuxt)}},{platform:n.gQ.Angular,detectionMethod:function(){let e=!!(l()&&document.querySelector("[ng-version]")),t=!!(s()&&void 0!==window.ng);return e||t}},{platform:n.gQ.React,detectionMethod:function(){let e=e=>e.startsWith("_react")||e.startsWith("__react");return l()&&Array.from(document.querySelectorAll("[id]")).some(t=>Object.keys(t).find(e))}},{platform:n.gQ.VueJs,detectionMethod:function(){return s()&&c(window,"__VUE")}},{platform:n.gQ.Svelte,detectionMethod:function(){return s()&&c(window,"__SVELTE")}},{platform:n.gQ.WebUnknown,detectionMethod:function(){return s()}},{platform:n.gQ.NextJsSSR,detectionMethod:function(){return a()&&(c(global,"__next")||c(global,"__NEXT"))}},{platform:n.gQ.NuxtSSR,detectionMethod:function(){return a()&&void 0!==global.__NUXT_PATHS__}},{platform:n.gQ.ReactSSR,detectionMethod:function(){return u()&&void 0!==d.env&&!!Object.keys(d.env).find(e=>e.includes("react"))}},{platform:n.gQ.VueJsSSR,detectionMethod:function(){return a()&&c(global,"__VUE")}},{platform:n.gQ.AngularSSR,detectionMethod:function(){return u()&&"object"==typeof p.env&&p.env.npm_lifecycle_script?.startsWith("ng ")||!1}},{platform:n.gQ.SvelteSSR,detectionMethod:function(){return u()&&void 0!==f.env&&!!Object.keys(f.env).find(e=>e.includes("svelte"))}}],g=[],v=!1,m=()=>{if(!o){if(o=h.find(e=>e.detectionMethod())?.platform||n.gQ.ServerSideUnknown,v)for(;g.length;)g.pop()?.();else g.forEach(e=>{e()});b(n.gQ.ServerSideUnknown,10),b(n.gQ.WebUnknown,10)}return o},y=e=>{v||g.push(e)};function b(e,t){o!==e||v||setTimeout(()=>{o=void 0,v=!0,setTimeout(m,1e3)},t)}},18816:function(e,t,r){"use strict";r.d(t,{Zm:function(){return c}});var o=r(95760);let n="6.5.1";var i=r(67431),a=r(13744);let s="aws-amplify";class l{constructor(){this.userAgent=`${s}/${n}`}get framework(){return(0,i.Cj)()}get isReactNative(){return this.framework===o.gQ.ReactNative||this.framework===o.gQ.Expo}observeFrameworkChanges(e){(0,i.QW)(e)}}new l;let u=({category:e,action:t}={})=>{let r=[[s,n]];if(e&&r.push([e,t]),r.push(["framework",(0,i.Cj)()]),e&&t){let o=(0,a.D)(e,t);o&&o.forEach(e=>{r.push(e)})}return r},c=e=>u(e).map(([e,t])=>e&&t?`${e}/${t}`:e).join(" ")},95760:function(e,t,r){"use strict";var o,n,i,a,s,l,u,c,d,f,p,h,g,v,m,y,b,w,E,S,C,x,I,A;r.d(t,{PL:function(){return u},WD:function(){return n},g4:function(){return s},gQ:function(){return o},r7:function(){return g},xf:function(){return c}}),(v=o||(o={})).WebUnknown="0",v.React="1",v.NextJs="2",v.Angular="3",v.VueJs="4",v.Nuxt="5",v.Svelte="6",v.ServerSideUnknown="100",v.ReactSSR="101",v.NextJsSSR="102",v.AngularSSR="103",v.VueJsSSR="104",v.NuxtSSR="105",v.SvelteSSR="106",v.ReactNative="201",v.Expo="202",(m=n||(n={})).API="api",m.Auth="auth",m.Analytics="analytics",m.DataStore="datastore",m.Geo="geo",m.InAppMessaging="inappmessaging",m.Interactions="interactions",m.Predictions="predictions",m.PubSub="pubsub",m.PushNotification="pushnotification",m.Storage="storage",(y=i||(i={})).Record="1",y.IdentifyUser="2",(b=a||(a={})).GraphQl="1",b.Get="2",b.Post="3",b.Put="4",b.Patch="5",b.Del="6",b.Head="7",(w=s||(s={})).SignUp="1",w.ConfirmSignUp="2",w.ResendSignUpCode="3",w.SignIn="4",w.FetchMFAPreference="6",w.UpdateMFAPreference="7",w.SetUpTOTP="10",w.VerifyTOTPSetup="11",w.ConfirmSignIn="12",w.DeleteUserAttributes="15",w.DeleteUser="16",w.UpdateUserAttributes="17",w.FetchUserAttributes="18",w.ConfirmUserAttribute="22",w.SignOut="26",w.UpdatePassword="27",w.ResetPassword="28",w.ConfirmResetPassword="29",w.FederatedSignIn="30",w.RememberDevice="32",w.ForgetDevice="33",w.FetchDevices="34",w.SendUserAttributeVerificationCode="35",w.SignInWithRedirect="36",(E=l||(l={})).Subscribe="1",E.GraphQl="2",(S=u||(u={})).SearchByText="0",S.SearchByCoordinates="1",S.SearchForSuggestions="2",S.SearchByPlaceId="3",S.SaveGeofences="4",S.GetGeofence="5",S.ListGeofences="6",S.DeleteGeofences="7",(C=c||(c={})).SyncMessages="1",C.IdentifyUser="2",C.NotifyMessageInteraction="3",(d||(d={})).None="0",(x=f||(f={})).Convert="1",x.Identify="2",x.Interpret="3",(p||(p={})).Subscribe="1",(I=h||(h={})).InitializePushNotifications="1",I.IdentifyUser="2",(A=g||(g={})).UploadData="1",A.DownloadData="2",A.List="3",A.Copy="4",A.Remove="5",A.GetProperties="6",A.GetUrl="7"},14221:function(e,t,r){"use strict";r.d(t,{b:function(){return i}});let o={id:"aws",outputs:{dnsSuffix:"amazonaws.com"},regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",regions:["aws-global"]},n={partitions:[o,{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn"},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:["aws-cn-global"]}]},i=e=>{let{partitions:t}=n;for(let{regions:r,outputs:o,regionRegex:n}of t){let t=new RegExp(n);if(r.includes(e)||t.test(e))return o.dnsSuffix}return o.outputs.dnsSuffix}},37836:function(e,t,r){"use strict";r.d(t,{y:function(){return c}});let o=3,n=(e,t)=>{let r,o;if(t?.aborted)return Promise.resolve();let n=new Promise(t=>{o=t,r=setTimeout(t,e)});return t?.addEventListener("abort",function e(n){clearTimeout(r),t?.removeEventListener("abort",e),o()}),n},i=(e,t)=>{"[object Object]"===Object.prototype.toString.call(e)&&(e.$metadata={...e.$metadata??{},attempts:t})};var a=r(64043);let s=e=>{let t;return()=>(t||(t=e()),t)},l=e=>!["HEAD","GET","DELETE"].includes(e.toUpperCase()),u=async({url:e,method:t,headers:r,body:o},{abortSignal:n,cache:i,withCrossDomainCredentials:a})=>{let u;try{u=await fetch(e,{method:t,headers:r,body:l(t)?o:void 0,signal:n,cache:i,credentials:a?"include":"same-origin"})}catch(e){if(e instanceof TypeError)throw Error("Network error");throw e}let c={};u.headers?.forEach((e,t)=>{c[t.toLowerCase()]=e});let d={statusCode:u.status,headers:c,body:null},f=Object.assign(u.body??{},{text:s(()=>u.text()),blob:s(()=>u.blob()),json:s(()=>u.json())});return{...d,body:f}},c=(0,a.V)(u,[({userAgentHeader:e="x-amz-user-agent",userAgentValue:t=""})=>r=>async function(o){if(0===t.trim().length)return await r(o);{let n=e.toLowerCase();return o.headers[n]=o.headers[n]?`${o.headers[n]} ${t}`:t,await r(o)}},({maxAttempts:e=o,retryDecider:t,computeDelay:r,abortSignal:a})=>{if(e<1)throw Error("maxAttempts must be greater than 0");return(o,s)=>async function(l){let u,c;let d=s.attemptsCount??0,f=()=>{if(c)return i(c,d),c;throw i(u,d),u};for(;!a?.aborted&&d<e;){try{c=await o(l),u=void 0}catch(e){u=e,c=void 0}if(d=(s.attemptsCount??0)>d?s.attemptsCount??0:d+1,s.attemptsCount=d,!await t(c,u))return f();if(!a?.aborted&&d<e){let e=r(d);await n(e,a)}}if(!a?.aborted)return f();throw Error("Request aborted.")}}])},48591:function(e,t,r){"use strict";r.d(t,{z:function(){return o}});let o=(e,t,r,o)=>async(n,i)=>{let a={...o,...n},s=await a.endpointResolver(a,i),l=await t(i,s);return r(await e(l,{...a}))}},64043:function(e,t,r){"use strict";r.d(t,{V:function(){return o}});let o=(e,t)=>(r,o)=>{let n={},i=t=>e(t,o);for(let e=t.length-1;e>=0;e--)i=(0,t[e])(o)(i,n);return i(r)}},1123:function(e,t,r){"use strict";r.d(t,{j:function(){return i}});let o=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch","BadRequestException"],n=e=>!!e&&o.includes(e),i=e=>async(t,r)=>{let o=r??await e(t)??void 0,i=o?.code||o?.name,a=t?.statusCode;return u(r)||l(a,i)||n(i)||c(a,i)},a=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException"],s=["TimeoutError","RequestTimeout","RequestTimeoutException"],l=(e,t)=>429===e||!!t&&a.includes(t),u=e=>e?.name==="Network error",c=(e,t)=>!!e&&[500,502,503,504].includes(e)||!!t&&s.includes(t)},77880:function(e,t,r){"use strict";r.d(t,{k:function(){return o}});let o=e=>{let t=(function(e=3e5){return t=>{let r=2**t*100+100*Math.random();return!(r>e)&&r}})(3e5)(e);return!1===t?3e5:t}},55962:function(e,t,r){"use strict";r.d(t,{e:function(){return i},f:function(){return n}});var o=r(9893);let n=async e=>{if(!e||e.statusCode<300)return;let t=await i(e),r=(e=>{let[t]=e.toString().split(/[,:]+/);return t.includes("#")?t.split("#")[1]:t})(e.headers["x-amzn-errortype"]??t.code??t.__type??"UnknownError");return Object.assign(Error(t.message??t.Message??"Unknown error"),{name:r,$metadata:(0,o.B)(e)})},i=async e=>{if(!e.body)throw Error("Missing response payload");return Object.assign(await e.body.json(),{$metadata:(0,o.B)(e)})}},9893:function(e,t,r){"use strict";r.d(t,{B:function(){return o}});let o=e=>{let{headers:t,statusCode:r}=e;return{...n(e)?e.$metadata:{},httpStatusCode:r,requestId:t["x-amzn-requestid"]??t["x-amzn-request-id"]??t["x-amz-request-id"],extendedRequestId:t["x-amz-id-2"],cfId:t["x-amz-cf-id"]}},n=e=>"object"==typeof e?.$metadata},19457:function(e,t,r){"use strict";r.d(t,{Mt:function(){return n},YG:function(){return o},z2:function(){return i}});let o="Logging",n="x-amz-user-agent",i="NoHubcallbackProvidedException"},72407:function(e,t,r){"use strict";r.d(t,{_:function(){return o}});class o extends Error{constructor({message:e,name:t,recoverySuggestion:r,underlyingError:n}){super(e),this.name=t,this.underlyingError=n,this.recoverySuggestion=r,this.constructor=o,Object.setPrototypeOf(this,o.prototype)}}},47752:function(e,t,r){"use strict";r.d(t,{$:function(){return n}});var o=r(72407);let n=(e,t=o._)=>(r,o,n)=>{let{message:i,recoverySuggestion:a}=e[o];if(!r)throw new t({name:o,message:n?`${i} ${n}`:i,recoverySuggestion:a})}},90922:function(e,t,r){"use strict";r.d(t,{d:function(){return u},b:function(){return l}});var o=r(34335);let n=e=>{for(let t of Reflect.ownKeys(e)){let r=e[t];(r&&"object"==typeof r||"function"==typeof r)&&n(r)}return Object.freeze(e)};var i=r(45775),a=r(7051),s=r(69399);r(75887),r(58010);class l{constructor(){this.oAuthListener=void 0,this.resourcesConfig={},this.libraryOptions={},this.Auth=new s.i}configure(e,t){let r=(0,a.h)(e);this.resourcesConfig=r,t&&(this.libraryOptions=t),this.resourcesConfig=n(this.resourcesConfig),this.Auth.configure(this.resourcesConfig.Auth,this.libraryOptions.Auth),o.Xb.dispatch("core",{event:"configure",data:this.resourcesConfig},"Configure",o.SQ),this.notifyOAuthListener()}getConfig(){return this.resourcesConfig}[i.w](e){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth?e(this.resourcesConfig.Auth?.Cognito):this.oAuthListener=e}notifyOAuthListener(){this.resourcesConfig.Auth?.Cognito.loginWith?.oauth&&this.oAuthListener&&(this.oAuthListener(this.resourcesConfig.Auth?.Cognito),this.oAuthListener=void 0)}}let u=new l},69399:function(e,t,r){"use strict";function o({expiresAt:e,clockDrift:t}){return Date.now()+t>e}r.d(t,{i:function(){return n},p:function(){return o}});class n{configure(e,t){this.authConfig=e,this.authOptions=t}async fetchAuthSession(e={}){let t,r;let o=await this.getTokens(e);return o?(r=o.accessToken?.payload?.sub,t=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,tokens:o,authenticated:!0,forceRefresh:e.forceRefresh})):t=await this.authOptions?.credentialsProvider?.getCredentialsAndIdentityId({authConfig:this.authConfig,authenticated:!1,forceRefresh:e.forceRefresh}),{tokens:o,credentials:t?.credentials,identityId:t?.identityId,userSub:r}}async clearCredentials(){await this.authOptions?.credentialsProvider?.clearCredentialsAndIdentityId()}async getTokens(e){return await this.authOptions?.tokenProvider?.getTokens(e)??void 0}}},12887:function(e,t,r){"use strict";r.d(t,{YE:function(){return d},V0:function(){return c},FG:function(){return u},xp:function(){return f}});var o,n,i=r(45386),a=r(47752);(o=n||(n={})).AuthTokenConfigException="AuthTokenConfigException",o.AuthUserPoolAndIdentityPoolException="AuthUserPoolAndIdentityPoolException",o.AuthUserPoolException="AuthUserPoolException",o.InvalidIdentityPoolIdException="InvalidIdentityPoolIdException",o.OAuthNotConfigureException="OAuthNotConfigureException";let s={[n.AuthTokenConfigException]:{message:"Auth Token Provider not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app."},[n.AuthUserPoolAndIdentityPoolException]:{message:"Auth UserPool or IdentityPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with UserPoolId and IdentityPoolId."},[n.AuthUserPoolException]:{message:"Auth UserPool not configured.",recoverySuggestion:"Make sure to call Amplify.configure in your app with userPoolId and userPoolClientId."},[n.InvalidIdentityPoolIdException]:{message:"Invalid identity pool id provided.",recoverySuggestion:"Make sure a valid identityPoolId is given in the config."},[n.OAuthNotConfigureException]:{message:"oauth param not configured.",recoverySuggestion:"Make sure to call Amplify.configure with oauth parameter in your app."}},l=(0,a.$)(s);function u(e){l(!!e&&!!e.userPoolId&&!!e.userPoolClientId,n.AuthUserPoolException)}function c(e){l(!!e?.loginWith?.oauth?.domain&&!!e?.loginWith?.oauth?.redirectSignOut&&!!e?.loginWith?.oauth?.redirectSignIn&&!!e?.loginWith?.oauth?.responseType,n.OAuthNotConfigureException)}function d(e){l(!!e?.identityPoolId,n.InvalidIdentityPoolIdException)}function f(e){let t=e.split(".");if(3!==t.length)throw Error("Invalid token");try{let r=t[1].replace(/-/g,"+").replace(/_/g,"/"),o=decodeURIComponent(i.$.convert(r).split("").map(e=>`%${`00${e.charCodeAt(0).toString(16)}`.slice(-2)}`).join("")),n=JSON.parse(o);return{toString:()=>e,payload:n}}catch(e){throw Error("Invalid token payload")}}},45775:function(e,t,r){"use strict";r.d(t,{w:function(){return o}});let o=Symbol("oauth-listener")},35658:function(e,t,r){"use strict";r.d(t,{Fm:function(){return f},Ed:function(){return p}});var o=r(12053),n=r(72407);class i extends n._{constructor(){super({name:o.Z.PlatformNotSupported,message:"Function not supported on current platform"})}}class a{constructor(e){this.storage=e}async setItem(e,t){if(!this.storage)throw new i;this.storage.setItem(e,t)}async getItem(e){if(!this.storage)throw new i;return this.storage.getItem(e)}async removeItem(e){if(!this.storage)throw new i;this.storage.removeItem(e)}async clear(){if(!this.storage)throw new i;this.storage.clear()}}class s{constructor(){this.storage=new Map}get length(){return this.storage.size}key(e){return e>this.length-1?null:Array.from(this.storage.keys())[e]}setItem(e,t){this.storage.set(e,t)}getItem(e){return this.storage.get(e)??null}removeItem(e){this.storage.delete(e)}clear(){this.storage.clear()}}let l=()=>"undefined"!=typeof window&&window.localStorage?window.localStorage:new s,u=()=>"undefined"!=typeof window&&window.sessionStorage?window.sessionStorage:new s;class c extends a{constructor(){super(l())}}class d extends a{constructor(){super(u())}}let f=new c;new d;let p=new a(new s)},12053:function(e,t,r){"use strict";var o,n;r.d(t,{Z:function(){return o}}),(n=o||(o={})).NoEndpointId="NoEndpointId",n.PlatformNotSupported="PlatformNotSupported",n.Unknown="Unknown"},79101:function(e,t,r){"use strict";r.d(t,{a:function(){return o}});let o=URL},45386:function(e,t,r){"use strict";r.d(t,{$:function(){return n}});var o=r(82384);let n={convert:e=>(0,o.tl)()(e)}},82384:function(e,t,r){"use strict";r.d(t,{Ds:function(){return i},MX:function(){return n},tl:function(){return a}});var o=r(72407);let n=()=>{if("object"==typeof window&&"object"==typeof window.crypto)return window.crypto;if("object"==typeof crypto)return crypto;throw new o._({name:"MissingPolyfill",message:"Cannot resolve the `crypto` function from the environment."})},i=()=>{if("undefined"!=typeof window&&"function"==typeof window.btoa)return window.btoa;if("function"==typeof btoa)return btoa;throw new o._({name:"Base64EncoderError",message:"Cannot resolve the `btoa` function from the environment."})},a=()=>{if("undefined"!=typeof window&&"function"==typeof window.atob)return window.atob;if("function"==typeof atob)return atob;throw new o._({name:"Base64EncoderError",message:"Cannot resolve the `atob` function from the environment."})}},37811:function(e,t,r){"use strict";r.d(t,{j:function(){return o}});let o=()=>"undefined"!=typeof window&&void 0!==window.document},7051:function(e,t,r){"use strict";r.d(t,{h:function(){return p}});var o=r(15810),n=r(72407);let i=new o.k("parseAWSExports"),a={API_KEY:"apiKey",AWS_IAM:"iam",AMAZON_COGNITO_USER_POOLS:"userPool",OPENID_CONNECT:"oidc",NONE:"none",AWS_LAMBDA:"lambda",LAMBDA:"lambda"},s=(e={})=>{if(!Object.prototype.hasOwnProperty.call(e,"aws_project_region"))throw new n._({name:"InvalidParameterException",message:"Invalid config parameter.",recoverySuggestion:"Ensure passing the config object imported from  `amplifyconfiguration.json`."});let{aws_appsync_apiKey:t,aws_appsync_authenticationType:r,aws_appsync_graphqlEndpoint:o,aws_appsync_region:s,aws_bots_config:l,aws_cognito_identity_pool_id:d,aws_cognito_sign_up_verification_method:f,aws_cognito_mfa_configuration:p,aws_cognito_mfa_types:h,aws_cognito_password_protection_settings:g,aws_cognito_verification_mechanisms:v,aws_cognito_signup_attributes:m,aws_cognito_social_providers:y,aws_cognito_username_attributes:b,aws_mandatory_sign_in:w,aws_mobile_analytics_app_id:E,aws_mobile_analytics_app_region:S,aws_user_files_s3_bucket:C,aws_user_files_s3_bucket_region:x,aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing:I,aws_user_pools_id:A,aws_user_pools_web_client_id:_,geo:k,oauth:R,predictions:T,aws_cloud_logic_custom:P,Notifications:N,modelIntrospection:U}=e,M={};E&&(M.Analytics={Pinpoint:{appId:E,region:S}});let{InAppMessaging:F,Push:O}=N??{};if(F?.AWSPinpoint||O?.AWSPinpoint){if(F?.AWSPinpoint){let{appId:e,region:t}=F.AWSPinpoint;M.Notifications={InAppMessaging:{Pinpoint:{appId:e,region:t}}}}if(O?.AWSPinpoint){let{appId:e,region:t}=O.AWSPinpoint;M.Notifications={...M.Notifications,PushNotification:{Pinpoint:{appId:e,region:t}}}}}if(Array.isArray(l)&&(M.Interactions={LexV1:Object.fromEntries(l.map(e=>[e.name,e]))}),o){let e=a[r];e||i.debug(`Invalid authentication type ${r}. Falling back to IAM.`),M.API={GraphQL:{endpoint:o,apiKey:t,region:s,defaultAuthMode:e??"iam"}},U&&(M.API.GraphQL.modelIntrospection=U)}let D=p?{status:p&&p.toLowerCase(),totpEnabled:h?.includes("TOTP")??!1,smsEnabled:h?.includes("SMS")??!1}:void 0,L=g?{minLength:g.passwordPolicyMinLength,requireLowercase:g.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE")??!1,requireUppercase:g.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE")??!1,requireNumbers:g.passwordPolicyCharacters?.includes("REQUIRES_NUMBERS")??!1,requireSpecialCharacters:g.passwordPolicyCharacters?.includes("REQUIRES_SYMBOLS")??!1}:void 0,B=Array.from(new Set([...v??[],...m??[]])).reduce((e,t)=>({...e,[t.toLowerCase()]:{required:!0}}),{}),W=b?.includes("EMAIL")??!1,z=b?.includes("PHONE_NUMBER")??!1;(d||A)&&(M.Auth={Cognito:{identityPoolId:d,allowGuestAccess:"enable"!==w,signUpVerificationMethod:f,userAttributes:B,userPoolClientId:_,userPoolId:A,mfa:D,passwordFormat:L,loginWith:{username:!(W||z),email:W,phone:z}}});let j=!!R&&Object.keys(R).length>0,V=!!y&&y.length>0;if(M.Auth&&j&&(M.Auth.Cognito.loginWith={...M.Auth.Cognito.loginWith,oauth:{...u(R),...V&&{providers:c(y)}}}),C&&(M.Storage={S3:{bucket:C,region:x,dangerouslyConnectToHttpEndpointForTesting:I}}),k){let{amazon_location_service:e}=k;M.Geo={LocationService:{maps:e.maps,geofenceCollections:e.geofenceCollections,searchIndices:e.search_indices,region:e.region}}}if(P&&(M.API={...M.API,REST:P.reduce((e,t)=>{let{name:r,endpoint:o,region:n,service:i}=t;return{...e,[r]:{endpoint:o,...i?{service:i}:void 0,...n?{region:n}:void 0}}},{})}),T){let{VoiceId:e}=T?.convert?.speechGenerator?.defaults??{};M.Predictions=e?{...T,convert:{...T.convert,speechGenerator:{...T.convert.speechGenerator,defaults:{voiceId:e}}}}:T}return M},l=e=>e?.split(",")??[],u=({domain:e,scope:t,redirectSignIn:r,redirectSignOut:o,responseType:n})=>({domain:e,scopes:t,redirectSignIn:l(r),redirectSignOut:l(o),responseType:n}),c=e=>e.map(e=>{let t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)}),d={AMAZON_COGNITO_USER_POOLS:"userPool",API_KEY:"apiKey",AWS_IAM:"iam",AWS_LAMBDA:"lambda",OPENID_CONNECT:"oidc"},f={GOOGLE:"Google",LOGIN_WITH_AMAZON:"Amazon",FACEBOOK:"Facebook",SIGN_IN_WITH_APPLE:"Apple"},p=e=>Object.keys(e).some(e=>e.startsWith("aws_"))?s(e):!function(e){let{version:t}=e;return!!t&&t.startsWith("1")}(e)?e:function(e){let t={};return e.storage&&(t.Storage=function(e){if(!e)return;let{bucket_name:t,aws_region:r,buckets:o}=e;return{S3:{bucket:t,region:r,buckets:o&&function(e){let t={};return e.forEach(({name:e,bucket_name:r,aws_region:o})=>{if(e in t)throw Error(`Duplicate friendly name found: ${e}. Name must be unique.`);t[e]={bucketName:r,region:o}}),t}(o)}}}(e.storage)),e.auth&&(t.Auth=function(e){if(!e)return;let{user_pool_id:t,user_pool_client_id:r,identity_pool_id:o,password_policy:n,mfa_configuration:i,mfa_methods:a,unauthenticated_identities_enabled:s,oauth:l,username_attributes:u,standard_required_attributes:c}=e,d={Cognito:{userPoolId:t,userPoolClientId:r}};return o&&(d.Cognito={...d.Cognito,identityPoolId:o}),n&&(d.Cognito.passwordFormat={requireLowercase:n.require_lowercase,requireNumbers:n.require_numbers,requireUppercase:n.require_uppercase,requireSpecialCharacters:n.require_symbols,minLength:n.min_length??6}),i&&(d.Cognito.mfa={status:"OPTIONAL"===i?"optional":"REQUIRED"===i?"on":"off",smsEnabled:a?.includes("SMS"),totpEnabled:a?.includes("TOTP")}),s&&(d.Cognito.allowGuestAccess=s),l&&(d.Cognito.loginWith={oauth:{domain:l.domain,redirectSignIn:l.redirect_sign_in_uri,redirectSignOut:l.redirect_sign_out_uri,responseType:"token"===l.response_type?"token":"code",scopes:l.scopes,providers:function(e=[]){return e.reduce((e,t)=>(void 0!==f[t]&&e.push(f[t]),e),[])}(l.identity_providers)}}),u&&(d.Cognito.loginWith={...d.Cognito.loginWith,email:u.includes("email"),phone:u.includes("phone_number"),username:u.includes("username")}),c&&(d.Cognito.userAttributes=c.reduce((e,t)=>({...e,[t]:{required:!0}}),{})),d}(e.auth)),e.analytics&&(t.Analytics=function(e){if(!e?.amazon_pinpoint)return;let{amazon_pinpoint:t}=e;return{Pinpoint:{appId:t.app_id,region:t.aws_region}}}(e.analytics)),e.geo&&(t.Geo=function(e){if(!e)return;let{aws_region:t,geofence_collections:r,maps:o,search_indices:n}=e;return{LocationService:{region:t,searchIndices:n,geofenceCollections:r,maps:o}}}(e.geo)),e.data&&(t.API=function(e){if(!e)return;let{aws_region:t,default_authorization_type:r,url:o,api_key:n,model_introspection:i}=e;return{GraphQL:{endpoint:o,defaultAuthMode:d[r],region:t,apiKey:n,modelIntrospection:i}}}(e.data)),e.notifications&&(t.Notifications=function(e){if(!e)return;let{aws_region:t,channels:r,amazon_pinpoint_app_id:o}=e,n=r.includes("IN_APP_MESSAGING"),i=r.includes("APNS")||r.includes("FCM");if(!(n||i))return;let a={};return n&&(a.InAppMessaging={Pinpoint:{appId:o,region:t}}),i&&(a.PushNotification={Pinpoint:{appId:o,region:t}}),a}(e.notifications)),t}(e)},15624:function(e,t,r){"use strict";r.d(t,{x:function(){return o}});let o=r(2265).createContext(null)},16549:function(e,t,r){"use strict";r.d(t,{Z:function(){return B}});var o=r(2265),n=r(35006);r(92658);var i=function(e,t){return e===t},a=function(e,t){if("state"in e&&"machine"in e){if(0===e.status&&t.current)return t.current;var r=0!==e.status?e.getSnapshot():e.machine.initialState;return t.current=0===e.status?r:null,r}return"state"in e?e.state:void 0};let s=e=>e.context.actorRef?.getSnapshot(),l=e=>s(e)?.context,u=(e,t)=>{if(t?.matches("federatedSignIn")){if(e.matches("signUpActor"))return"signUp";if(e.matches("signInActor"))return"signIn"}switch(!0){case e.matches("idle"):return"idle";case e.matches("setup"):return"setup";case e.matches("signOut"):return"signOut";case e.matches("authenticated"):return"authenticated";case t?.matches("confirmSignUp"):case t?.matches("resendSignUpCode"):return"confirmSignUp";case t?.matches("confirmSignIn"):return"confirmSignIn";case t?.matches("setupTotp.edit"):case t?.matches("setupTotp.submit"):return"setupTotp";case t?.matches("signIn"):return"signIn";case t?.matches("signUp"):case t?.matches("autoSignIn"):return"signUp";case t?.matches("forceChangePassword"):return"forceNewPassword";case t?.matches("forgotPassword"):return"forgotPassword";case t?.matches("confirmResetPassword"):return"confirmResetPassword";case t?.matches("selectUserAttributes"):return"verifyUser";case t?.matches("confirmVerifyUserAttribute"):return"confirmVerifyUser";case e.matches("getCurrentUser"):case t?.matches("fetchUserAttributes"):return"transition";default:return null}},c=e=>{let t=t=>r=>e({type:t,data:r});return{initializeMachine:t("INIT"),resendCode:t("RESEND"),signOut:t("SIGN_OUT"),submitForm:t("SUBMIT"),updateForm:t("CHANGE"),updateBlur:t("BLUR"),toFederatedSignIn:t("FEDERATED_SIGN_IN"),toForgotPassword:t("FORGOT_PASSWORD"),toSignIn:t("SIGN_IN"),toSignUp:t("SIGN_UP"),skipVerification:t("SKIP")}},d=e=>{let t=l(e)??{},{challengeName:r,codeDeliveryDetails:o,remoteError:n,validationError:i,totpSecretCode:a=null,unverifiedUserAttributes:c,username:d}=t,{socialProviders:f=[]}=e.context?.config??{},p=t?.user??e.context?.user,h=!!(i&&Object.keys(i).length>0),g=s(e),v=e.hasTag("pending")||g?.hasTag("pending"),m=u(e,g);return{authStatus:(e=>{switch(e){case"idle":case"setup":return"configuring";case"authenticated":return"authenticated";default:return"unauthenticated"}})(m),challengeName:r,codeDeliveryDetails:o,error:n,hasValidationErrors:h,isPending:v,route:m,socialProviders:f,totpSecretCode:a,unverifiedUserAttributes:c,user:p,username:d,validationErrors:i}},f=({send:e,state:t})=>{let r=c(e),o=d(t);return{...r,...o}};var p=r(15624),h=r(18854),g=r(22809),v=r(33720),m=r(2045),y=r(59149);let b=e=>{let[t]=e?.context.config?.loginMechanisms??["username"];return t},w=e=>{let t={...e};for(let[r,o]of Object.entries(e)){let{label:e,placeholder:n}=o;t[r]={...o,label:e?(0,y.Iu)(e):void 0,placeholder:n?(0,y.Iu)(n):void 0}}return t},E=e=>Object.entries(e).sort((e,t)=>(e[1].order||Number.MAX_VALUE)-(t[1].order||Number.MAX_VALUE)).filter(e=>void 0!==e[1]),S=e=>{let t=v.zn[e],{type:r}=t;return"tel"===r&&(t={...t,dialCode:"+1"}),t},C=e=>({...S(b(e)),autocomplete:"username"}),x=e=>({confirmation_code:{...S("confirmation_code"),label:"Code *",placeholder:"Code"}}),I={signIn:e=>({username:{...C(e)},password:{...S("password"),autocomplete:"current-password"}}),signUp:e=>{let{loginMechanisms:t,signUpAttributes:r}=e.context.config,o=b(e),n=Array.from(new Set([...t,"password","confirm_password",...r])),i={};for(let t of n)if((0,m.OG)(t)){let r=t===o?C(e):S(t);i[t]={...r}}else console.debug(`Authenticator does not have a default implementation for ${t}. Customize SignUp FormFields to add your own.`);return i},confirmSignUp:e=>({confirmation_code:{...S("confirmation_code"),placeholder:"Enter your code"}}),confirmSignIn:x,forceNewPassword:e=>{let{missingAttributes:t}=s(e).context,r=Array.from(new Set(["password","confirm_password",...t??[]])),o={};for(let e of r)(0,m.OG)(e)?o[e]={...S(e)}:console.debug(`Authenticator does not have a default implementation for ${e}. Customize ForceNewPassword FormFields to add your own.`);return o},forgotPassword:e=>{let t=b(e),{label:r}=v.zn[t];return{username:{...C(e),label:`Enter your ${r.toLowerCase()}`,placeholder:`Enter your ${r.toLowerCase()}`}}},confirmResetPassword:e=>({...x(),password:{...S("password"),label:"New Password",placeholder:"New Password"},confirm_password:{...S("confirm_password"),label:"Confirm Password",placeholder:"Confirm Password"}}),confirmVerifyUser:x,setupTotp:x},A=(e,t)=>(0,I[e])(t),_=(e,t)=>{let r=l(t)?.formFields?.[e];return r&&0!==Object.keys(r).length?Object.entries(r).reduce((r,[o,n])=>{if(("signIn"===e||"forgotPassword"===e)&&"username"===o){let e={...C(t),...n};return{...r,[o]:e}}if(!(0,g.P9)(o))return{...r,[o]:n};{let e={...v.zn[o],...n};return{...r,[o]:e}}},{}):{}},k=(e,t)=>{let r=A(e,t),o=_(e,t),n={...r,...o};return delete n.QR,w(n)},R=e=>e.map(e=>[e[0],{...e[1],order:void 0}]),T=(e,t)=>R(E(k(e,t))),P=["confirmResetPassword","confirmSignIn","confirmSignUp","confirmVerifyUser","forceNewPassword","forgotPassword","setupTotp","signIn","signUp","verifyUser"],N=e=>P.some(t=>t===e),U=()=>!1,M=e=>(t,r)=>{let o=e(t),n=e(r);return o.length===n.length&&o.every((e,t)=>{let r=n[t];return!!((0,h.yc)(e,r)||(0,h.XN)(e,r))||e===r})},F=e=>({...l(e)?.formFields?.setupTotp?.QR}),O=e=>e.flatMap(([e,t])=>({name:e,...t})),D=e=>e&&Object.entries(e).map(([e,t])=>(0,h.HD)(t)&&e?{name:e,label:t,type:"radio",value:t}:{}),L=(e,t,r)=>N(e)?"verifyUser"===e?D(r):O(T(e,t)):[];function B(e){var t,r,s,l,u;let c=o.useContext(p.x);if(!c)throw Error("`useAuthenticator` must be used inside an `Authenticator.Provider`.");let{service:d}=c,{send:h}=d,g=(0,o.useCallback)(e=>({...f({send:h,state:e})}),[h]),v=e?M(e):U,{authStatus:m}=c,{route:y,totpSecretCode:b,unverifiedUserAttributes:w,user:E,...S}=(void 0===(t=v)&&(t=i),s=(0,o.useRef)(null),l=(0,o.useCallback)(function(e){return d.subscribe(e).unsubscribe},[d]),u=(0,o.useCallback)(function(){return a(d,s)},[d,r]),(0,n.useSyncExternalStoreWithSelector)(l,u,u,g,t)),C=d.getSnapshot(),x="setupTotp"===y?F(C):null,I=L(y,C,w);return{...S,authStatus:m,route:y,totpSecretCode:b,unverifiedUserAttributes:w,user:E,fields:I,QRFields:x}}},51011:function(e,t,r){"use strict";let o,n,i,a,s;r.d(t,{_:function(){return s4}});var l,u,c,d,f,p,h,g,v,m,y,b,w,E,S,C,x,I,A,_,k,R,T,P,N,U,M,F,O,D,L,B,W,z,j,V,G,$,H,q,K,J,Y,Z,Q,X,ee,et,er,eo,en,ei,ea,es,el,eu,ec,ed,ef,ep,eh,eg,ev,em,ey,eb,ew,eE,eS,eC={};r.r(eC),r.d(eC,{e4:function(){return tq},assign:function(){return tH},al:function(){return tV},choose:function(){return tQ},aT:function(){return tK},Sl:function(){return tJ},vU:function(){return tY},Tn:function(){return tZ},o$:function(){return tO},bf:function(){return tF},OU:function(){return tW},yC:function(){return t0},lW:function(){return tz},xc:function(){return tj},BL:function(){return tG},stop:function(){return t$},Q8:function(){return tD},AE:function(){return tL},XA:function(){return tB}});var ex=r(2265),eI=r.t(ex,2),eA=r(18854),e_=r(16549);let ek=({route:e})=>[e];var eR=r(13744),eT=r(95760);let eP={apis:[eT.g4.DeleteUser,eT.g4.UpdatePassword],category:eT.WD.Auth},eN={apis:[eT.g4.SignUp,eT.g4.ConfirmSignUp,eT.g4.ResendSignUpCode,eT.g4.SignIn,eT.g4.ConfirmSignIn,eT.g4.FetchUserAttributes,eT.g4.SignOut,eT.g4.ResetPassword,eT.g4.ConfirmResetPassword,eT.g4.SignInWithRedirect],category:eT.WD.Auth},eU={apis:[eT.xf.NotifyMessageInteraction],category:eT.WD.InAppMessaging},eM={category:eT.WD.Geo,apis:[eT.PL.SearchByText,eT.PL.SearchForSuggestions,eT.PL.SearchByPlaceId]},eF={category:eT.WD.Geo,apis:[]},eO={apis:[eT.r7.UploadData],category:eT.WD.Storage},eD=({componentName:e,packageName:t,version:r})=>{let o=[`ui-${t}`,r];switch(e){case"Authenticator":(0,eR.o)({...eN,additionalDetails:[[e],o]});break;case"ChangePassword":case"DeleteUser":(0,eR.o)({...eP,additionalDetails:[["AccountSettings"],o]});break;case"InAppMessaging":(0,eR.o)({...eU,additionalDetails:[[e],o]});break;case"LocationSearch":(0,eR.o)({...eM,additionalDetails:[[e],o]});break;case"MapView":(0,eR.o)({...eF,additionalDetails:[[e],o]});break;case"StorageManager":(0,eR.o)({...eO,additionalDetails:[[e],o]})}return eA.ZT};var eL=r(92658),eB=function(){return(eB=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function eW(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function ez(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ej(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a}function eV(e,t,r){if(r||2==arguments.length)for(var o,n=0,i=t.length;n<i;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}(l=V||(V={})).Start="xstate.start",l.Stop="xstate.stop",l.Raise="xstate.raise",l.Send="xstate.send",l.Cancel="xstate.cancel",l.NullEvent="",l.Assign="xstate.assign",l.After="xstate.after",l.DoneState="done.state",l.DoneInvoke="done.invoke",l.Log="xstate.log",l.Init="xstate.init",l.Invoke="xstate.invoke",l.ErrorExecution="error.execution",l.ErrorCommunication="error.communication",l.ErrorPlatform="error.platform",l.ErrorCustom="xstate.error",l.Update="xstate.update",l.Pure="xstate.pure",l.Choose="xstate.choose",(u=G||(G={})).Parent="#_parent",u.Internal="#_internal";var eG={},e$="xstate.guard",eH=V.Start,eq=V.Stop,eK=V.Raise,eJ=V.Send,eY=V.Cancel,eZ=V.NullEvent,eQ=V.Assign;V.After,V.DoneState;var eX=V.Log,e0=V.Init,e1=V.Invoke;V.ErrorExecution;var e2=V.ErrorPlatform,e5=V.ErrorCustom,e3=V.Update,e6=V.Choose,e4=V.Pure;function e8(e,t,r){void 0===r&&(r=".");var o=te(e,r),n=te(t,r);return th(n)?!!th(o)&&n===o:th(o)?o in n:Object.keys(o).every(function(e){return e in n&&e8(o[e],n[e])})}function e9(e){try{return th(e)||"number"==typeof e?"".concat(e):e.type}catch(e){throw Error("Events must be strings or objects with a string event.type property.")}}function e7(e,t){try{if(tf(e))return e;return e.toString().split(t)}catch(t){throw Error("'".concat(e,"' is not a valid state path."))}}function te(e,t){return"object"==typeof e&&"value"in e&&"context"in e&&"event"in e&&"_event"in e?e.value:tf(e)?tt(e):"string"!=typeof e?e:tt(e7(e,t))}function tt(e){if(1===e.length)return e[0];for(var t={},r=t,o=0;o<e.length-1;o++)o===e.length-2?r[e[o]]=e[o+1]:(r[e[o]]={},r=r[e[o]]);return t}function tr(e,t){for(var r={},o=Object.keys(e),n=0;n<o.length;n++){var i=o[n];r[i]=t(e[i],i,e,n)}return r}function to(e,t,r){var o,n,i={};try{for(var a=ez(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,u=e[l];r(u)&&(i[l]=t(u,l,e))}}catch(e){o={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}var tn=function(e){return function(t){var r,o,n=t;try{for(var i=ez(e),a=i.next();!a.done;a=i.next())n=n[a.value]}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n}};function ti(e){return e?th(e)?[[e]]:ta(Object.keys(e).map(function(t){var r=e[t];return"string"==typeof r||r&&Object.keys(r).length?ti(e[t]).map(function(e){return[t].concat(e)}):[[t]]})):[[]]}function ta(e){var t;return(t=[]).concat.apply(t,eV([],ej(e),!1))}function ts(e){return void 0===e?[]:tf(e)?e:[e]}function tl(e,t,r){if(tp(e))return e(t,r.data);var o,n,i={};try{for(var a=ez(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,u=e[l];tp(u)?i[l]=u(t,r.data):i[l]=u}}catch(e){o={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}return i}function tu(e){return!!(e instanceof Promise||null!==e&&(tp(e)||"object"==typeof e)&&tp(e.then))}function tc(e,t,r,o){return e?r.reduce(function(e,r){var n,i,a=r.assignment,s={state:o,action:r,_event:t},l={};if(tp(a))l=a(e,t.data,s);else try{for(var u=ez(Object.keys(a)),c=u.next();!c.done;c=u.next()){var d=c.value,f=a[d];l[d]=tp(f)?f(e,t.data,s):f}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return Object.assign({},e,l)},e):e}var td=function(){};function tf(e){return Array.isArray(e)}function tp(e){return"function"==typeof e}function th(e){return"string"==typeof e}function tg(e,t){return e?th(e)?{type:e$,name:e,predicate:t?t[e]:void 0}:tp(e)?{type:e$,name:e.name,predicate:e}:e:void 0}var tv="function"==typeof Symbol&&Symbol.observable||"@@observable";function tm(e){return!!e&&"__xstatenode"in e}($={})[tv]=function(){return this},$[Symbol.observable]=function(){return this};var ty=(c=0,function(){return c++,c.toString(16)});function tb(e,t){return th(e)||"number"==typeof e?eB({type:e},t):e}function tw(e,t){if(!th(e)&&"$$type"in e&&"scxml"===e.$$type)return e;var r=tb(e);return eB({name:r.type,data:r,$$type:"scxml",type:"external"},t)}function tE(e,t){return(tf(t)?t:[t]).map(function(t){return void 0===t||"string"==typeof t||tm(t)?{target:t,event:e}:eB(eB({},t),{event:e})})}function tS(e,t,r,o,n){var i=e.options.guards,a={state:n,cond:t,_event:o};if(t.type===e$)return((null==i?void 0:i[t.name])||t.predicate)(r,o.data,a);var s=null==i?void 0:i[t.type];if(!s)throw Error("Guard '".concat(t.type,"' is not implemented on machine '").concat(e.id,"'."));return s(r,o.data,a)}function tC(e){return"string"==typeof e?{type:e}:e}function tx(e,t,r){var o=function(){},n="object"==typeof e,i=n?e:null;return{next:((n?e.next:e)||o).bind(i),error:((n?e.error:t)||o).bind(i),complete:((n?e.complete:r)||o).bind(i)}}function tI(e,t){return"".concat(e,":invocation[").concat(t,"]")}function tA(e){return(e.type===eK||e.type===eJ&&e.to===G.Internal)&&"number"!=typeof e.delay}var t_=function(e){return"atomic"===e.type||"final"===e.type};function tk(e){return Object.keys(e.states).map(function(t){return e.states[t]})}function tR(e){return tk(e).filter(function(e){return"history"!==e.type})}function tT(e,t){var r,o,n,i,a,s,l,u,c=tP(new Set(e)),d=new Set(t);try{for(var f=ez(d),p=f.next();!p.done;p=f.next())for(var h=p.value,g=h.parent;g&&!d.has(g);)d.add(g),g=g.parent}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}var v=tP(d);try{for(var m=ez(d),y=m.next();!y.done;y=m.next()){var h=y.value;if("compound"!==h.type||v.get(h)&&v.get(h).length){if("parallel"===h.type)try{for(var b=(a=void 0,ez(tR(h))),w=b.next();!w.done;w=b.next()){var E=w.value;d.has(E)||(d.add(E),c.get(E)?c.get(E).forEach(function(e){return d.add(e)}):E.initialStateNodes.forEach(function(e){return d.add(e)}))}}catch(e){a={error:e}}finally{try{w&&!w.done&&(s=b.return)&&s.call(b)}finally{if(a)throw a.error}}}else c.get(h)?c.get(h).forEach(function(e){return d.add(e)}):h.initialStateNodes.forEach(function(e){return d.add(e)})}}catch(e){n={error:e}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(n)throw n.error}}try{for(var S=ez(d),C=S.next();!C.done;C=S.next())for(var h=C.value,g=h.parent;g&&!d.has(g);)d.add(g),g=g.parent}catch(e){l={error:e}}finally{try{C&&!C.done&&(u=S.return)&&u.call(S)}finally{if(l)throw l.error}}return d}function tP(e){var t,r,o=new Map;try{for(var n=ez(e),i=n.next();!i.done;i=n.next()){var a=i.value;o.has(a)||o.set(a,[]),a.parent&&(o.has(a.parent)||o.set(a.parent,[]),o.get(a.parent).push(a))}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return o}function tN(e,t){return Array.isArray(e)?e.some(function(e){return e===t}):e instanceof Set&&e.has(t)}function tU(e,t){return"compound"===t.type?tR(t).some(function(t){return"final"===t.type&&tN(e,t)}):"parallel"===t.type&&tR(t).every(function(t){return tU(e,t)})}function tM(e){return new Set(ta(e.map(function(e){return e.tags})))}var tF=tw({type:e0});function tO(e,t){return t&&t[e]||void 0}function tD(e,t){var r;if(th(e)||"number"==typeof e){var o=tO(e,t);r=tp(o)?{type:e,exec:o}:o||{type:e,exec:void 0}}else if(tp(e))r={type:e.name||e.toString(),exec:e};else{var o=tO(e.type,t);if(tp(o))r=eB(eB({},e),{exec:o});else if(o){var n=o.type||e.type;r=eB(eB(eB({},o),e),{type:n})}else r=e}return r}var tL=function(e,t){return e?(tf(e)?e:[e]).map(function(e){return tD(e,t)}):[]};function tB(e){var t=tD(e);return eB(eB({id:th(e)?e:t.id},t),{type:t.type})}function tW(e,t){return{type:eK,event:"function"==typeof e?e:tb(e),delay:t?t.delay:void 0,id:null==t?void 0:t.id}}function tz(e,t){return{to:t?t.to:void 0,type:eJ,event:tp(e)?e:tb(e),delay:t?t.delay:void 0,id:t&&void 0!==t.id?t.id:tp(e)?e.name:e9(e)}}function tj(){return tz(e3,eB(eB({},void 0),{to:G.Parent}))}var tV=function(e){return{type:eY,sendId:e}};function tG(e){var t=tB(e);return{type:V.Start,activity:t,exec:void 0}}function t$(e){var t=tp(e)?e:tB(e);return{type:V.Stop,activity:t,exec:void 0}}var tH=function(e){return{type:eQ,assignment:e}};function tq(e,t){return"".concat(V.After,"(").concat(e,")").concat(t?"#".concat(t):"")}function tK(e,t){var r="".concat(V.DoneState,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function tJ(e,t){var r="".concat(V.DoneInvoke,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function tY(e,t){var r="".concat(V.ErrorPlatform,".").concat(e),o={type:r,data:t};return o.toString=function(){return r},o}function tZ(e,t){return tz(function(e,t){return t},eB(eB({},t),{to:e}))}function tQ(e){return{type:V.Choose,conds:e}}var tX=function(e){var t,r,o=[];try{for(var n=ez(e),i=n.next();!i.done;i=n.next())for(var a=i.value,s=0;s<a.actions.length;){if(a.actions[s].type===eQ){o.push(a.actions[s]),a.actions.splice(s,1);continue}s++}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return o};function t0(e,t,r,o,n,i,a){void 0===a&&(a=!1);var s=a?[]:tX(n),l=s.length?tc(r,o,s,t):r,u=a?[r]:void 0,c=[];return[ta(n.map(function(n){var s,d,f=[];try{for(var p=ez(n.actions),h=p.next();!h.done;h=p.next()){var g=h.value,v=function(n,s){var d;switch(s.type){case eK:var f=function(e,t,r,o){var n,i={_event:r},a=tw(tp(e.event)?e.event(t,r.data,i):e.event);if(th(e.delay)){var s=o&&o[e.delay];n=tp(s)?s(t,r.data,i):s}else n=tp(e.delay)?e.delay(t,r.data,i):e.delay;return eB(eB({},e),{type:eK,_event:a,delay:n})}(s,l,o,e.options.delays);return i&&"number"==typeof f.delay&&i(f,l,o),f;case eJ:var p=function(e,t,r,o){var n,i={_event:r},a=tw(tp(e.event)?e.event(t,r.data,i):e.event);if(th(e.delay)){var s=o&&o[e.delay];n=tp(s)?s(t,r.data,i):s}else n=tp(e.delay)?e.delay(t,r.data,i):e.delay;var l=tp(e.to)?e.to(t,r.data,i):e.to;return eB(eB({},e),{to:l,_event:a,event:a.data,delay:n})}(s,l,o,e.options.delays);return i&&p.to!==G.Internal&&("entry"===n?c.push(p):i(p,l,o)),p;case eX:var h,g=(h=l,eB(eB({},s),{value:th(s.expr)?s.expr:s.expr(h,o.data,{_event:o})}));return null==i||i(g,l,o),g;case e6:var v=null===(d=s.conds.find(function(r){var n=tg(r.cond,e.options.guards);return!n||tS(e,n,l,o,i?void 0:t)}))||void 0===d?void 0:d.actions;if(!v)return[];var m=ej(t0(e,t,l,o,[{type:n,actions:tL(ts(v),e.options.actions)}],i,a),2),y=m[0];return l=m[1],null==u||u.push(l),y;case e4:var v=s.get(l,o.data);if(!v)return[];var b=ej(t0(e,t,l,o,[{type:n,actions:tL(ts(v),e.options.actions)}],i,a),2),w=b[0];return l=b[1],null==u||u.push(l),w;case eq:var E,S,g=(E=l,S=tp(s.activity)?s.activity(E,o.data):s.activity,{type:V.Stop,activity:"string"==typeof S?{id:S}:S});return null==i||i(g,r,o),g;case eQ:l=tc(l,o,[s],i?void 0:t),null==u||u.push(l);break;default:var C=tD(s,e.options.actions),x=C.exec;if(i)i(C,l,o);else if(x&&u){var I=u.length-1;C=eB(eB({},C),{exec:function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];x.apply(void 0,eV([u[I]],ej(t),!1))}})}return C}}(n.type,g);v&&(f=f.concat(v))}}catch(e){s={error:e}}finally{try{h&&!h.done&&(d=p.return)&&d.call(p)}finally{if(s)throw s.error}}return c.forEach(function(e){i(e,l,o)}),c.length=0,f})),l]}var t1=function(){function e(e){var t,r,o=this;this.actions=[],this.activities=eG,this.meta={},this.events=[],this.value=e.value,this.context=e.context,this._event=e._event,this._sessionid=e._sessionid,this.event=this._event.data,this.historyValue=e.historyValue,this.history=e.history,this.actions=e.actions||[],this.activities=e.activities||eG,this.meta=(void 0===(t=e.configuration)&&(t=[]),t.reduce(function(e,t){return void 0!==t.meta&&(e[t.id]=t.meta),e},{})),this.events=e.events||[],this.matches=this.matches.bind(this),this.toStrings=this.toStrings.bind(this),this.configuration=e.configuration,this.transitions=e.transitions,this.children=e.children,this.done=!!e.done,this.tags=null!==(r=Array.isArray(e.tags)?new Set(e.tags):e.tags)&&void 0!==r?r:new Set,this.machine=e.machine,Object.defineProperty(this,"nextEvents",{get:function(){return eV([],ej(new Set(ta(eV([],ej(o.configuration.map(function(e){return e.ownEvents})),!1)))),!1)}})}return e.from=function(t,r){return t instanceof e?t.context!==r?new e({value:t.value,context:r,_event:t._event,_sessionid:null,historyValue:t.historyValue,history:t.history,actions:[],activities:t.activities,meta:{},events:[],configuration:[],transitions:[],children:{}}):t:new e({value:t,context:r,_event:tF,_sessionid:null,historyValue:void 0,history:void 0,actions:[],activities:void 0,meta:void 0,events:[],configuration:[],transitions:[],children:{}})},e.create=function(t){return new e(t)},e.inert=function(t,r){return t instanceof e?t.actions.length?new e({value:t.value,context:r,_event:tF,_sessionid:null,historyValue:t.historyValue,history:t.history,activities:t.activities,configuration:t.configuration,transitions:[],children:{}}):t:e.from(t,r)},e.prototype.toStrings=function(e,t){var r=this;if(void 0===e&&(e=this.value),void 0===t&&(t="."),th(e))return[e];var o=Object.keys(e);return o.concat.apply(o,eV([],ej(o.map(function(o){return r.toStrings(e[o],t).map(function(e){return o+t+e})})),!1))},e.prototype.toJSON=function(){this.configuration,this.transitions;var e=this.tags;this.machine;var t=eW(this,["configuration","transitions","tags","machine"]);return eB(eB({},t),{tags:Array.from(e)})},e.prototype.matches=function(e){return e8(e,this.value)},e.prototype.hasTag=function(e){return this.tags.has(e)},e.prototype.can=function(e){td(!!this.machine,"state.can(...) used outside of a machine-created State object; this will always return false.");var t,r=null===(t=this.machine)||void 0===t?void 0:t.getTransitionData(this,e);return!!(null==r?void 0:r.transitions.length)&&r.transitions.some(function(e){return void 0!==e.target||e.actions.length})},e}(),t2={deferEvents:!1},t5=function(){function e(e){this.processingEvent=!1,this.queue=[],this.initialized=!1,this.options=eB(eB({},t2),e)}return e.prototype.initialize=function(e){if(this.initialized=!0,e){if(!this.options.deferEvents){this.schedule(e);return}this.process(e)}this.flushEvents()},e.prototype.schedule=function(e){if(!this.initialized||this.processingEvent){this.queue.push(e);return}if(0!==this.queue.length)throw Error("Event queue should be empty when it is not processing events");this.process(e),this.flushEvents()},e.prototype.clear=function(){this.queue=[]},e.prototype.flushEvents=function(){for(var e=this.queue.shift();e;)this.process(e),e=this.queue.shift()},e.prototype.process=function(e){this.processingEvent=!0;try{e()}catch(e){throw this.clear(),e}finally{this.processingEvent=!1}},e}(),t3=[],t6=function(e,t){t3.push(e);var r=t(e);return t3.pop(),r};function t4(e){var t;return(t={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},getSnapshot:function(){},toJSON:function(){return{id:e}}})[tv]=function(){return this},t}function t8(e,t,r){var o=t4(t);if(o.deferred=!0,tm(e)){var n=o.state=t6(void 0,function(){return(r?e.withContext(r):e).initialState});o.getSnapshot=function(){return n}}return o}var t9=new Map,t7=0,re={bookId:function(){return"x:".concat(t7++)},register:function(e,t){return t9.set(e,t),e},get:function(e){return t9.get(e)},free:function(e){t9.delete(e)}};function rt(){return"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==r.g?r.g:void 0}var rr={sync:!1,autoForward:!1};(d=H||(H={}))[d.NotStarted=0]="NotStarted",d[d.Running=1]="Running",d[d.Stopped=2]="Stopped";var ro=function(){function e(t,r){void 0===r&&(r=e.defaultOptions);var o=this;this.machine=t,this.delayedEventsMap={},this.listeners=new Set,this.contextListeners=new Set,this.stopListeners=new Set,this.doneListeners=new Set,this.eventListeners=new Set,this.sendListeners=new Set,this.initialized=!1,this.status=H.NotStarted,this.children=new Map,this.forwardTo=new Set,this._outgoingQueue=[],this.init=this.start,this.send=function(e,t){if(tf(e))return o.batch(e),o.state;var r=tw(tb(e,t));if(o.status===H.Stopped)return o.state;if(o.status!==H.Running&&!o.options.deferEvents)throw Error('Event "'.concat(r.name,'" was sent to uninitialized service "').concat(o.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.\nEvent: ').concat(JSON.stringify(r.data)));return o.scheduler.schedule(function(){o.forward(r);var e=o._nextState(r);o.update(e,r)}),o._state},this.sendTo=function(e,t,r){var n=o.parent&&(t===G.Parent||o.parent.id===t),i=n?o.parent:th(t)?t===G.Internal?o:o.children.get(t)||re.get(t):t&&"function"==typeof t.send?t:void 0;if(!i){if(!n)throw Error("Unable to send event to child '".concat(t,"' from service '").concat(o.id,"'."));return}if("machine"in i){if(o.status!==H.Stopped||o.parent!==i||o.state.done){var a=eB(eB({},e),{name:e.name===e5?"".concat(tY(o.id)):e.name,origin:o.sessionId});!r&&o.machine.config.predictableActionArguments?o._outgoingQueue.push([i,a]):i.send(a)}}else!r&&o.machine.config.predictableActionArguments?o._outgoingQueue.push([i,e.data]):i.send(e.data)},this._exec=function(e,t,r,n){void 0===n&&(n=o.machine.options.actions);var i=e.exec||tO(e.type,n),a=tp(i)?i:i?i.exec:e.exec;if(a)try{return a(t,r.data,o.machine.config.predictableActionArguments?{action:e,_event:r}:{action:e,state:o.state,_event:r})}catch(e){throw o.parent&&o.parent.send({type:"xstate.error",data:e}),e}switch(e.type){case eK:o.defer(e);break;case eJ:if("number"==typeof e.delay){o.defer(e);return}e.to?o.sendTo(e._event,e.to,r===tF):o.send(e._event);break;case eY:o.cancel(e.sendId);break;case eH:if(o.status!==H.Running)return;var s=e.activity;if(!o.machine.config.predictableActionArguments&&!o.state.activities[s.id||s.type])break;if(s.type===V.Invoke){var l=tC(s.src),u=o.machine.options.services?o.machine.options.services[l.type]:void 0,c=s.id,d=s.data,f="autoForward"in s?s.autoForward:!!s.forward;if(!u)return;var p=d?tl(d,t,r):void 0;if("string"==typeof u)return;var h=tp(u)?u(t,r.data,{data:p,src:l,meta:s.meta}):u;if(!h)return;var g=void 0;tm(h)&&(h=p?h.withContext(p):h,g={autoForward:f}),o.spawn(h,c,g)}else o.spawnActivity(s);break;case eq:o.stopChild(e.activity.id);break;case eX:var v=e.label,m=e.value;v?o.logger(v,m):o.logger(m)}};var n=eB(eB({},e.defaultOptions),r),i=n.clock,a=n.logger,s=n.parent,l=n.id,u=void 0!==l?l:t.id;this.id=u,this.logger=a,this.clock=i,this.parent=s,this.options=n,this.scheduler=new t5({deferEvents:this.options.deferEvents}),this.sessionId=re.bookId()}return Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this;return this._initialState?this._initialState:t6(this,function(){return e._initialState=e.machine.initialState,e._initialState})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),e.prototype.execute=function(e,t){var r,o;try{for(var n=ez(e.actions),i=n.next();!i.done;i=n.next()){var a=i.value;this.exec(a,e,t)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}},e.prototype.update=function(e,t){var r,o,n,i,a,s,l,u,c=this;if(e._sessionid=this.sessionId,this._state=e,(!this.machine.config.predictableActionArguments||t===tF)&&this.options.execute)this.execute(this.state);else for(var d=void 0;d=this._outgoingQueue.shift();)d[0].send(d[1]);if(this.children.forEach(function(e){c.state.children[e.id]=e}),this.devTools&&this.devTools.send(t.data,e),e.event)try{for(var f=ez(this.eventListeners),p=f.next();!p.done;p=f.next()){var h=p.value;h(e.event)}}catch(e){r={error:e}}finally{try{p&&!p.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}try{for(var g=ez(this.listeners),v=g.next();!v.done;v=g.next()){var h=v.value;h(e,e.event)}}catch(e){n={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}try{for(var m=ez(this.contextListeners),y=m.next();!y.done;y=m.next())(0,y.value)(this.state.context,this.state.history?this.state.history.context:void 0)}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}if(this.state.done){var b=e.configuration.find(function(e){return"final"===e.type&&e.parent===c.machine}),w=b&&b.doneData?tl(b.doneData,e.context,t):void 0;this._doneEvent=tJ(this.id,w);try{for(var E=ez(this.doneListeners),S=E.next();!S.done;S=E.next()){var h=S.value;h(this._doneEvent)}}catch(e){l={error:e}}finally{try{S&&!S.done&&(u=E.return)&&u.call(E)}finally{if(l)throw l.error}}this._stop(),this._stopChildren(),re.free(this.sessionId)}},e.prototype.onTransition=function(e){return this.listeners.add(e),this.status===H.Running&&e(this.state,this.state.event),this},e.prototype.subscribe=function(e,t,r){var o=this,n=tx(e,t,r);this.listeners.add(n.next),this.status!==H.NotStarted&&n.next(this.state);var i=function(){o.doneListeners.delete(i),o.stopListeners.delete(i),n.complete()};return this.status===H.Stopped?n.complete():(this.onDone(i),this.onStop(i)),{unsubscribe:function(){o.listeners.delete(n.next),o.doneListeners.delete(i),o.stopListeners.delete(i)}}},e.prototype.onEvent=function(e){return this.eventListeners.add(e),this},e.prototype.onSend=function(e){return this.sendListeners.add(e),this},e.prototype.onChange=function(e){return this.contextListeners.add(e),this},e.prototype.onStop=function(e){return this.stopListeners.add(e),this},e.prototype.onDone=function(e){return this.status===H.Stopped&&this._doneEvent?e(this._doneEvent):this.doneListeners.add(e),this},e.prototype.off=function(e){return this.listeners.delete(e),this.eventListeners.delete(e),this.sendListeners.delete(e),this.stopListeners.delete(e),this.doneListeners.delete(e),this.contextListeners.delete(e),this},e.prototype.start=function(e){var t=this;if(this.status===H.Running)return this;this.machine._init(),re.register(this.sessionId,this),this.initialized=!0,this.status=H.Running;var r=void 0===e?this.initialState:t6(this,function(){return"object"==typeof e&&null!==e&&"value"in e&&"_event"in e?t.machine.resolveState(e):t.machine.resolveState(t1.from(e,t.machine.context))});return this.options.devTools&&this.attachDev(),this.scheduler.initialize(function(){t.update(r,tF)}),this},e.prototype._stopChildren=function(){this.children.forEach(function(e){tp(e.stop)&&e.stop()}),this.children.clear()},e.prototype._stop=function(){var e,t,r,o,n,i,a,s,l,u;try{for(var c=ez(this.listeners),d=c.next();!d.done;d=c.next()){var f=d.value;this.listeners.delete(f)}}catch(t){e={error:t}}finally{try{d&&!d.done&&(t=c.return)&&t.call(c)}finally{if(e)throw e.error}}try{for(var p=ez(this.stopListeners),h=p.next();!h.done;h=p.next()){var f=h.value;f(),this.stopListeners.delete(f)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}try{for(var g=ez(this.contextListeners),v=g.next();!v.done;v=g.next()){var f=v.value;this.contextListeners.delete(f)}}catch(e){n={error:e}}finally{try{v&&!v.done&&(i=g.return)&&i.call(g)}finally{if(n)throw n.error}}try{for(var m=ez(this.doneListeners),y=m.next();!y.done;y=m.next()){var f=y.value;this.doneListeners.delete(f)}}catch(e){a={error:e}}finally{try{y&&!y.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}if(!this.initialized)return this;this.initialized=!1,this.status=H.Stopped,this._initialState=void 0;try{for(var b=ez(Object.keys(this.delayedEventsMap)),w=b.next();!w.done;w=b.next()){var E=w.value;this.clock.clearTimeout(this.delayedEventsMap[E])}}catch(e){l={error:e}}finally{try{w&&!w.done&&(u=b.return)&&u.call(b)}finally{if(l)throw l.error}}this.scheduler.clear(),this.scheduler=new t5({deferEvents:this.options.deferEvents})},e.prototype.stop=function(){var e=this,t=this.scheduler;return this._stop(),t.schedule(function(){if(null===(t=e._state)||void 0===t||!t.done){var t,r=tw({type:"xstate.stop"}),o=t6(e,function(){var t=ta(eV([],ej(e.state.configuration),!1).sort(function(e,t){return t.order-e.order}).map(function(t){return tL(t.onExit,e.machine.options.actions)})),o=ej(t0(e.machine,e.state,e.state.context,r,[{type:"exit",actions:t}],e.machine.config.predictableActionArguments?e._exec:void 0,e.machine.config.predictableActionArguments||e.machine.config.preserveActionOrder),2),n=o[0],i=o[1],a=new t1({value:e.state.value,context:i,_event:r,_sessionid:e.sessionId,historyValue:void 0,history:e.state,actions:n.filter(function(e){return!tA(e)}),activities:{},events:[],configuration:[],transitions:[],children:{},done:e.state.done,tags:e.state.tags,machine:e.machine});return a.changed=!0,a});e.update(o,r),e._stopChildren(),re.free(e.sessionId)}}),this},e.prototype.batch=function(e){var t=this;if(this.status===H.NotStarted&&this.options.deferEvents);else if(this.status!==H.Running)throw Error("".concat(e.length,' event(s) were sent to uninitialized service "').concat(this.machine.id,'". Make sure .start() is called for this service, or set { deferEvents: true } in the service options.'));if(e.length){var r=!!this.machine.config.predictableActionArguments&&this._exec;this.scheduler.schedule(function(){var o,n,i=t.state,a=!1,s=[];try{for(var l=ez(e),u=l.next();!u.done;u=l.next()){var c=u.value;!function(e){var o=tw(e);t.forward(o),i=t6(t,function(){return t.machine.transition(i,o,void 0,r||void 0)}),s.push.apply(s,eV([],ej(t.machine.config.predictableActionArguments?i.actions:i.actions.map(function(e){var t,r;return t=i,r=e.exec,eB(eB({},e),{exec:void 0!==r?function(){return r(t.context,t.event,{action:e,state:t,_event:t._event})}:void 0})})),!1)),a=a||!!i.changed}(c)}}catch(e){o={error:e}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(o)throw o.error}}i.changed=a,i.actions=s,t.update(i,tw(e[e.length-1]))})}},e.prototype.sender=function(e){return this.send.bind(this,e)},e.prototype._nextState=function(e,t){var r=this;void 0===t&&(t=!!this.machine.config.predictableActionArguments&&this._exec);var o=tw(e);if(0===o.name.indexOf(e2)&&!this.state.nextEvents.some(function(e){return 0===e.indexOf(e2)}))throw o.data.data;return t6(this,function(){return r.machine.transition(r.state,o,void 0,t||void 0)})},e.prototype.nextState=function(e){return this._nextState(e,!1)},e.prototype.forward=function(e){var t,r;try{for(var o=ez(this.forwardTo),n=o.next();!n.done;n=o.next()){var i=n.value,a=this.children.get(i);if(!a)throw Error("Unable to forward event '".concat(e,"' from interpreter '").concat(this.id,"' to nonexistant child '").concat(i,"'."));a.send(e)}}catch(e){t={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}},e.prototype.defer=function(e){var t=this,r=this.clock.setTimeout(function(){"to"in e&&e.to?t.sendTo(e._event,e.to,!0):t.send(e._event)},e.delay);e.id&&(this.delayedEventsMap[e.id]=r)},e.prototype.cancel=function(e){this.clock.clearTimeout(this.delayedEventsMap[e]),delete this.delayedEventsMap[e]},e.prototype.exec=function(e,t,r){void 0===r&&(r=this.machine.options.actions),this._exec(e,t.context,t._event,r)},e.prototype.removeChild=function(e){var t;this.children.delete(e),this.forwardTo.delete(e),null===(t=this.state)||void 0===t||delete t.children[e]},e.prototype.stopChild=function(e){var t=this.children.get(e);t&&(this.removeChild(e),tp(t.stop)&&t.stop())},e.prototype.spawn=function(e,t,r){if(this.status!==H.Running)return t8(e,t);if(tu(e))return this.spawnPromise(Promise.resolve(e),t);if(tp(e))return this.spawnCallback(e,t);if(function(e){try{return"function"==typeof e.send}catch(e){return!1}}(e)&&"id"in e)return this.spawnActor(e,t);if(function(e){try{return"subscribe"in e&&tp(e.subscribe)}catch(e){return!1}}(e))return this.spawnObservable(e,t);if(tm(e))return this.spawnMachine(e,eB(eB({},r),{id:t}));if(null!==e&&"object"==typeof e&&"transition"in e&&"function"==typeof e.transition)return this.spawnBehavior(e,t);throw Error('Unable to spawn entity "'.concat(t,'" of type "').concat(typeof e,'".'))},e.prototype.spawnMachine=function(t,r){var o=this;void 0===r&&(r={});var n=new e(t,eB(eB({},this.options),{parent:this,id:r.id||t.id})),i=eB(eB({},rr),r);return i.sync&&n.onTransition(function(e){o.send(e3,{state:e,id:n.id})}),this.children.set(n.id,n),i.autoForward&&this.forwardTo.add(n.id),n.onDone(function(e){o.removeChild(n.id),o.send(tw(e,{origin:n.id}))}).start(),n},e.prototype.spawnBehavior=function(e,t){var r,o,n,i,a,s,l,u,c,d,f=(r={id:t,parent:this},o=e.initialState,n=new Set,i=[],a=!1,s=function(){if(!a){for(a=!0;i.length>0;){var t=i.shift();o=e.transition(o,t,d),n.forEach(function(e){return e.next(o)})}a=!1}},l={id:r.id,send:function(e){i.push(e),s()},getSnapshot:function(){return o},subscribe:function(e,t,r){var i=tx(e,t,r);return n.add(i),i.next(o),{unsubscribe:function(){n.delete(i)}}}},c=eB(((u={subscribe:function(){return{unsubscribe:function(){}}},id:"anonymous",getSnapshot:function(){}})[tv]=function(){return this},u),l),d={parent:r.parent,self:c,id:r.id||"anonymous",observers:n},o=e.start?e.start(d):o,c);return this.children.set(t,f),f},e.prototype.spawnPromise=function(e,t){var r,o,n=this,i=!1;e.then(function(e){i||(o=e,n.removeChild(t),n.send(tw(tJ(t,e),{origin:t})))},function(e){if(!i){n.removeChild(t);var r=tY(t,e);try{n.send(tw(r,{origin:t}))}catch(e){n.devTools&&n.devTools.send(r,n.state),n.machine.strict&&n.stop()}}});var a=((r={id:t,send:function(){},subscribe:function(t,r,o){var n=tx(t,r,o),i=!1;return e.then(function(e){!i&&(n.next(e),i||n.complete())},function(e){i||n.error(e)}),{unsubscribe:function(){return i=!0}}},stop:function(){i=!0},toJSON:function(){return{id:t}},getSnapshot:function(){return o}})[tv]=function(){return this},r);return this.children.set(t,a),a},e.prototype.spawnCallback=function(e,t){var r,o,n,i=this,a=!1,s=new Set,l=new Set;try{n=e(function(e){o=e,l.forEach(function(t){return t(e)}),a||i.send(tw(e,{origin:t}))},function(e){s.add(e)})}catch(e){this.send(tY(t,e))}if(tu(n))return this.spawnPromise(n,t);var u=((r={id:t,send:function(e){return s.forEach(function(t){return t(e)})},subscribe:function(e){var t=tx(e);return l.add(t.next),{unsubscribe:function(){l.delete(t.next)}}},stop:function(){a=!0,tp(n)&&n()},toJSON:function(){return{id:t}},getSnapshot:function(){return o}})[tv]=function(){return this},r);return this.children.set(t,u),u},e.prototype.spawnObservable=function(e,t){var r,o,n=this,i=e.subscribe(function(e){o=e,n.send(tw(e,{origin:t}))},function(e){n.removeChild(t),n.send(tw(tY(t,e),{origin:t}))},function(){n.removeChild(t),n.send(tw(tJ(t),{origin:t}))}),a=((r={id:t,send:function(){},subscribe:function(t,r,o){return e.subscribe(t,r,o)},stop:function(){return i.unsubscribe()},getSnapshot:function(){return o},toJSON:function(){return{id:t}}})[tv]=function(){return this},r);return this.children.set(t,a),a},e.prototype.spawnActor=function(e,t){return this.children.set(t,e),e},e.prototype.spawnActivity=function(e){var t=this.machine.options&&this.machine.options.activities?this.machine.options.activities[e.type]:void 0;if(t){var r=t(this.state.context,e);this.spawnEffect(e.id,r)}},e.prototype.spawnEffect=function(e,t){var r;this.children.set(e,((r={id:e,send:function(){},subscribe:function(){return{unsubscribe:function(){}}},stop:t||void 0,getSnapshot:function(){},toJSON:function(){return{id:e}}})[tv]=function(){return this},r))},e.prototype.attachDev=function(){var e=rt();if(this.options.devTools&&e){if(e.__REDUX_DEVTOOLS_EXTENSION__){var t="object"==typeof this.options.devTools?this.options.devTools:void 0;this.devTools=e.__REDUX_DEVTOOLS_EXTENSION__.connect(eB(eB({name:this.id,autoPause:!0,stateSanitizer:function(e){return{value:e.value,context:e.context,actions:e.actions}}},t),{features:eB({jump:!1,skip:!1},t?t.features:void 0)}),this.machine),this.devTools.init(this.state)}!function(e){if(rt()){var t=function(){var e=rt();if(e&&"__xstate__"in e)return e.__xstate__}();t&&t.register(e)}}(this)}},e.prototype.toJSON=function(){return{id:this.id}},e.prototype[tv]=function(){return this},e.prototype.getSnapshot=function(){return this.status===H.NotStarted?this.initialState:this._state},e.defaultOptions={execute:!0,deferEvents:!0,clock:{setTimeout:function(e,t){return setTimeout(e,t)},clearTimeout:function(e){return clearTimeout(e)}},logger:console.log.bind(console),devTools:!1},e.interpret=ri,e}();function rn(e,t){var r,o=th(t)?eB(eB({},rr),{name:t}):eB(eB(eB({},rr),{name:ty()}),t);return(r=t3[t3.length-1])?r.spawn(e,o.name,o):t8(e,o.name)}function ri(e,t){return new ro(e,t)}function ra(e){var t=ex.useRef();return t.current||(t.current={v:e()}),t.current.v}var rs=function(){return(rs=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},rl=function(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(r[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r},ru=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var o,n,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(o=i.next()).done;)a.push(o.value)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return a},rc=r(90922),rd=r(12887),rf=r(65355);let rp=async e=>{let t=e.getConfig().Auth?.Cognito;(0,rd.FG)(t);let r=await e.Auth.getTokens({forceRefresh:!1});(0,rf.CA)(r);let{"cognito:username":o,sub:n}=r.idToken?.payload??{},i={username:o,userId:n},a=r?.signInDetails;return a&&(i.signInDetails=a),i},rh=async()=>rp(rc.d);var rg=r(34335);let rv=({payload:e},t,r)=>{let{event:o}=e,{send:n}=t,{onSignIn:i,onSignOut:a}=r??{};switch(o){case"signedIn":(0,eA.mf)(i)&&i(e);break;case"signInWithRedirect":n("SIGN_IN_WITH_REDIRECT");break;case"signedOut":case"tokenRefresh_failure":"signedOut"===o&&(0,eA.mf)(a)&&a(),n("SIGN_OUT")}},rm=(e,t=rv)=>rg.Xb.listen("auth",r=>t(r,e),"authenticator-hub-handler");function ry(e){return eB(eB({type:e1},e),{toJSON:function(){e.onDone,e.onError;var t=eW(e,["onDone","onError"]);return eB(eB({},t),{type:e1,src:function(e){if("string"==typeof e){var t={type:e};return t.toString=function(){return e},t}return e}(e.src)})}})}var rb={},rw=function(e){return"#"===e[0]},rE=function(){function e(t,r,o,n){void 0===o&&(o="context"in t?t.context:void 0);var i,a=this;this.config=t,this._context=o,this.order=-1,this.__xstatenode=!0,this.__cache={events:void 0,relativeValue:new Map,initialStateValue:void 0,initialState:void 0,on:void 0,transitions:void 0,candidates:{},delayedTransitions:void 0},this.idMap={},this.tags=[],this.options=Object.assign({actions:{},guards:{},services:{},activities:{},delays:{}},r),this.parent=null==n?void 0:n.parent,this.key=this.config.key||(null==n?void 0:n.key)||this.config.id||"(machine)",this.machine=this.parent?this.parent.machine:this,this.path=this.parent?this.parent.path.concat(this.key):[],this.delimiter=this.config.delimiter||(this.parent?this.parent.delimiter:"."),this.id=this.config.id||eV([this.machine.key],ej(this.path),!1).join(this.delimiter),this.version=this.parent?this.parent.version:this.config.version,this.type=this.config.type||(this.config.parallel?"parallel":this.config.states&&Object.keys(this.config.states).length?"compound":this.config.history?"history":"atomic"),this.schema=this.parent?this.machine.schema:null!==(i=this.config.schema)&&void 0!==i?i:{},this.description=this.config.description,this.initial=this.config.initial,this.states=this.config.states?tr(this.config.states,function(t,r){var o,n=new e(t,{},void 0,{parent:a,key:r});return Object.assign(a.idMap,eB(((o={})[n.id]=n,o),n.idMap)),n}):rb;var s=0;!function e(t){var r,o;t.order=s++;try{for(var n=ez(tk(t)),i=n.next();!i.done;i=n.next()){var a=i.value;e(a)}}catch(e){r={error:e}}finally{try{i&&!i.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}}(this),this.history=!0===this.config.history?"shallow":this.config.history||!1,this._transient=!!this.config.always||!!this.config.on&&(Array.isArray(this.config.on)?this.config.on.some(function(e){return""===e.event}):""in this.config.on),this.strict=!!this.config.strict,this.onEntry=ts(this.config.entry||this.config.onEntry).map(function(e){return tD(e)}),this.onExit=ts(this.config.exit||this.config.onExit).map(function(e){return tD(e)}),this.meta=this.config.meta,this.doneData="final"===this.type?this.config.data:void 0,this.invoke=ts(this.config.invoke).map(function(e,t){if(tm(e)){var r,o,n=tI(a.id,t);return a.machine.options.services=eB(((r={})[n]=e,r),a.machine.options.services),ry({src:n,id:n})}if(th(e.src)){var n=e.id||tI(a.id,t);return ry(eB(eB({},e),{id:n,src:e.src}))}if(tm(e.src)||tp(e.src)){var n=e.id||tI(a.id,t);return a.machine.options.services=eB(((o={})[n]=e.src,o),a.machine.options.services),ry(eB(eB({id:n},e),{src:n}))}var i=e.src;return ry(eB(eB({id:tI(a.id,t)},e),{src:i}))}),this.activities=ts(this.config.activities).concat(this.invoke).map(function(e){return tB(e)}),this.transition=this.transition.bind(this),this.tags=ts(this.config.tags)}return e.prototype._init=function(){this.__cache.transitions||(function e(t){var r=[t];return t_(t)?r:r.concat(ta(tR(t).map(e)))})(this).forEach(function(e){return e.on})},e.prototype.withConfig=function(t,r){var o=this.options,n=o.actions,i=o.activities,a=o.guards,s=o.services,l=o.delays;return new e(this.config,{actions:eB(eB({},n),t.actions),activities:eB(eB({},i),t.activities),guards:eB(eB({},a),t.guards),services:eB(eB({},s),t.services),delays:eB(eB({},l),t.delays)},null!=r?r:this.context)},e.prototype.withContext=function(t){return new e(this.config,this.options,t)},Object.defineProperty(e.prototype,"context",{get:function(){return tp(this._context)?this._context():this._context},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return{id:this.id,key:this.key,version:this.version,context:this.context,type:this.type,initial:this.initial,history:this.history,states:tr(this.states,function(e){return e.definition}),on:this.on,transitions:this.transitions,entry:this.onEntry,exit:this.onExit,activities:this.activities||[],meta:this.meta,order:this.order||-1,data:this.doneData,invoke:this.invoke,description:this.description,tags:this.tags}},enumerable:!1,configurable:!0}),e.prototype.toJSON=function(){return this.definition},Object.defineProperty(e.prototype,"on",{get:function(){if(this.__cache.on)return this.__cache.on;var e=this.transitions;return this.__cache.on=e.reduce(function(e,t){return e[t.eventType]=e[t.eventType]||[],e[t.eventType].push(t),e},{})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"after",{get:function(){return this.__cache.delayedTransitions||(this.__cache.delayedTransitions=this.getDelayedTransitions(),this.__cache.delayedTransitions)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"transitions",{get:function(){return this.__cache.transitions||(this.__cache.transitions=this.formatTransitions(),this.__cache.transitions)},enumerable:!1,configurable:!0}),e.prototype.getCandidates=function(e){if(this.__cache.candidates[e])return this.__cache.candidates[e];var t=""===e,r=this.transitions.filter(function(r){var o=r.eventType===e;return t?o:o||"*"===r.eventType});return this.__cache.candidates[e]=r,r},e.prototype.getDelayedTransitions=function(){var e=this,t=this.config.after;if(!t)return[];var r=function(t,r){var o=tq(tp(t)?"".concat(e.id,":delay[").concat(r,"]"):t,e.id);return e.onEntry.push(tz(o,{delay:t})),e.onExit.push(tV(o)),o};return(tf(t)?t.map(function(e,t){var o=r(e.delay,t);return eB(eB({},e),{event:o})}):ta(Object.keys(t).map(function(e,o){var n=t[e],i=th(n)?{target:n}:n,a=isNaN(+e)?e:+e,s=r(a,o);return ts(i).map(function(e){return eB(eB({},e),{event:s,delay:a})})}))).map(function(t){var r=t.delay;return eB(eB({},e.formatTransition(t)),{delay:r})})},e.prototype.getStateNodes=function(e){var t,r=this;if(!e)return[];var o=e instanceof t1?e.value:te(e,this.delimiter);if(th(o)){var n=this.getStateNode(o).initial;return void 0!==n?this.getStateNodes(((t={})[o]=n,t)):[this,this.states[o]]}var i=Object.keys(o),a=[this];return a.push.apply(a,eV([],ej(ta(i.map(function(e){return r.getStateNode(e).getStateNodes(o[e])}))),!1)),a},e.prototype.handles=function(e){var t=e9(e);return this.events.includes(t)},e.prototype.resolveState=function(e){var t=e instanceof t1?e:t1.create(e),r=Array.from(tT([],this.getStateNodes(t.value)));return new t1(eB(eB({},t),{value:this.resolve(t.value),configuration:r,done:tU(r,this),tags:tM(r),machine:this.machine}))},e.prototype.transitionLeafNode=function(e,t,r){var o=this.getStateNode(e).next(t,r);return o&&o.transitions.length?o:this.next(t,r)},e.prototype.transitionCompoundNode=function(e,t,r){var o=Object.keys(e),n=this.getStateNode(o[0])._transition(e[o[0]],t,r);return n&&n.transitions.length?n:this.next(t,r)},e.prototype.transitionParallelNode=function(e,t,r){var o,n,i={};try{for(var a=ez(Object.keys(e)),s=a.next();!s.done;s=a.next()){var l=s.value,u=e[l];if(u){var c=this.getStateNode(l)._transition(u,t,r);c&&(i[l]=c)}}}catch(e){o={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(o)throw o.error}}var d=Object.keys(i).map(function(e){return i[e]}),f=ta(d.map(function(e){return e.transitions}));if(!d.some(function(e){return e.transitions.length>0}))return this.next(t,r);var p=ta(Object.keys(i).map(function(e){return i[e].configuration}));return{transitions:f,exitSet:ta(d.map(function(e){return e.exitSet})),configuration:p,source:t,actions:ta(Object.keys(i).map(function(e){return i[e].actions}))}},e.prototype._transition=function(e,t,r){return th(e)?this.transitionLeafNode(e,t,r):1===Object.keys(e).length?this.transitionCompoundNode(e,t,r):this.transitionParallelNode(e,t,r)},e.prototype.getTransitionData=function(e,t){return this._transition(e.value,e,tw(t))},e.prototype.next=function(e,t){var r,o,n,i=this,a=t.name,s=[],l=[];try{for(var u=ez(this.getCandidates(a)),c=u.next();!c.done;c=u.next()){var d=c.value,f=d.cond,p=d.in,h=e.context,g=!p||(th(p)&&rw(p)?e.matches(te(this.getStateNodeById(p).path,this.delimiter)):e8(te(p,this.delimiter),tn(this.path.slice(0,-2))(e.value))),v=!1;try{v=!f||tS(this.machine,f,h,t,e)}catch(e){throw Error("Unable to evaluate guard '".concat(f.name||f.type,"' in transition for event '").concat(a,"' in state node '").concat(this.id,"':\n").concat(e.message))}if(v&&g){void 0!==d.target&&(l=d.target),s.push.apply(s,eV([],ej(d.actions),!1)),n=d;break}}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}if(n){if(!l.length)return{transitions:[n],exitSet:[],configuration:e.value?[this]:[],source:e,actions:s};var m=ta(l.map(function(t){return i.getRelativeStateNodes(t,e.historyValue)})),y=!!n.internal;return{transitions:[n],exitSet:y?[]:ta(l.map(function(e){return i.getPotentiallyReenteringNodes(e)})),configuration:m,source:e,actions:s}}},e.prototype.getPotentiallyReenteringNodes=function(e){if(this.order<e.order)return[this];for(var t=[],r=this;r&&r!==e;)t.push(r),r=r.parent;return r!==e?[]:(t.push(e),t)},e.prototype.getActions=function(e,t,r,o,n,i,a){var s,l,u,c,d=this,f=i?tT([],this.getStateNodes(i.value)):[],p=new Set;try{for(var h=ez(Array.from(e).sort(function(e,t){return e.order-t.order})),g=h.next();!g.done;g=h.next()){var v=g.value;(!tN(f,v)||tN(r.exitSet,v)||v.parent&&p.has(v.parent))&&p.add(v)}}catch(e){s={error:e}}finally{try{g&&!g.done&&(l=h.return)&&l.call(h)}finally{if(s)throw s.error}}try{for(var m=ez(f),y=m.next();!y.done;y=m.next()){var v=y.value;(!tN(e,v)||tN(r.exitSet,v.parent))&&r.exitSet.push(v)}}catch(e){u={error:e}}finally{try{y&&!y.done&&(c=m.return)&&c.call(m)}finally{if(u)throw u.error}}r.exitSet.sort(function(e,t){return t.order-e.order});var b=Array.from(p).sort(function(e,t){return e.order-t.order}),w=new Set(r.exitSet),E=ta(b.map(function(e){var t=[];if("final"!==e.type)return t;var i=e.parent;if(!i.parent)return t;t.push(tK(e.id,e.doneData),tK(i.id,e.doneData?tl(e.doneData,o,n):void 0));var a=i.parent;return"parallel"===a.type&&tR(a).every(function(e){return tU(r.configuration,e)})&&t.push(tK(a.id)),t})),S=b.map(function(e){var t=e.onEntry,r=e.activities.map(function(e){return tG(e)});return{type:"entry",actions:tL(a?eV(eV([],ej(t),!1),ej(r),!1):eV(eV([],ej(r),!1),ej(t),!1),d.machine.options.actions)}}).concat({type:"state_done",actions:E.map(function(e){return tW(e)})}),C=Array.from(w).map(function(e){return{type:"exit",actions:tL(eV(eV([],ej(e.onExit),!1),ej(e.activities.map(function(e){return t$(e)})),!1),d.machine.options.actions)}}).concat({type:"transition",actions:tL(r.actions,this.machine.options.actions)}).concat(S);if(t){var x=tL(ta(eV([],ej(e),!1).sort(function(e,t){return t.order-e.order}).map(function(e){return e.onExit})),this.machine.options.actions).filter(function(e){return!tA(e)});return C.concat({type:"stop",actions:x})}return C},e.prototype.transition=function(e,t,r,o){void 0===e&&(e=this.initialState);var n,i,a=tw(t);if(e instanceof t1)i=void 0===r?e:this.resolveState(t1.from(e,r));else{var s=th(e)?this.resolve(tt(this.getResolvedPath(e))):this.resolve(e),l=null!=r?r:this.machine.context;i=this.resolveState(t1.from(s,l))}if(this.strict&&!this.events.includes(a.name)&&(n=a.name,!/^(done|error)\./.test(n)))throw Error("Machine '".concat(this.id,"' does not accept event '").concat(a.name,"'"));var u=this._transition(i.value,i,a)||{transitions:[],configuration:[],exitSet:[],source:i,actions:[]},c=tT([],this.getStateNodes(i.value)),d=u.configuration.length?tT(c,u.configuration):c;return u.configuration=eV([],ej(d),!1),this.resolveTransition(u,i,i.context,o,a)},e.prototype.resolveRaisedTransition=function(e,t,r,o){var n,i=e.actions;return(e=this.transition(e,t,void 0,o))._event=r,e.event=r.data,(n=e.actions).unshift.apply(n,eV([],ej(i),!1)),e},e.prototype.resolveTransition=function(e,t,r,o,n){var i,a,s,l,u,c,d=this;void 0===n&&(n=tF);var f=e.configuration,p=!t||e.transitions.length>0,h=p?e.configuration:t?t.configuration:[],g=tU(h,this),v=p?(a=tT([i=this.machine],f),function e(t,r){var o=r.get(t);if(!o)return{};if("compound"===t.type){var n=o[0];if(!n)return{};if(t_(n))return n.key}var i={};return o.forEach(function(t){i[t.key]=e(t,r)}),i}(i,tP(a))):void 0,m=t?t.historyValue?t.historyValue:e.source?this.machine.historyValue(t.value):void 0:void 0,y=this.getActions(new Set(h),g,e,r,n,t,o),b=t?eB({},t.activities):{};try{for(var w=ez(y),E=w.next();!E.done;E=w.next()){var S=E.value;try{for(var C=(u=void 0,ez(S.actions)),x=C.next();!x.done;x=C.next()){var I=x.value;I.type===eH?b[I.activity.id||I.activity.type]=I:I.type===eq&&(b[I.activity.id||I.activity.type]=!1)}}catch(e){u={error:e}}finally{try{x&&!x.done&&(c=C.return)&&c.call(C)}finally{if(u)throw u.error}}}}catch(e){s={error:e}}finally{try{E&&!E.done&&(l=w.return)&&l.call(w)}finally{if(s)throw s.error}}var A=ej(t0(this,t,r,n,y,o,this.machine.config.predictableActionArguments||this.machine.config.preserveActionOrder),2),_=A[0],k=A[1],R=ej(function(e,t){var r,o,n=ej([[],[]],2),i=n[0],a=n[1];try{for(var s=ez(e),l=s.next();!l.done;l=s.next()){var u=l.value;t(u)?i.push(u):a.push(u)}}catch(e){r={error:e}}finally{try{l&&!l.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return[i,a]}(_,tA),2),T=R[0],P=R[1],N=_.filter(function(e){var t;return e.type===eH&&(null===(t=e.activity)||void 0===t?void 0:t.type)===e1}).reduce(function(e,t){var r,o,i,a,s,l,u,c;return e[t.activity.id]=(r=t.activity,o=d.machine,i=n,s=tC(r.src),l=null===(a=null==o?void 0:o.options.services)||void 0===a?void 0:a[s.type],u=r.data?tl(r.data,k,i):void 0,(c=l?t8(l,r.id,u):t4(r.id)).meta=r,c),e},t?eB({},t.children):{}),U=new t1({value:v||t.value,context:k,_event:n,_sessionid:t?t._sessionid:null,historyValue:v?m?{current:v,states:function e(t,r){return tr(t.states,function(t,o){if(t){var n=(th(r)?void 0:r[o])||(t?t.current:void 0);if(n)return{current:n,states:e(t,n)}}})}(m,v)}:void 0:t?t.historyValue:void 0,history:!v||e.source?t:void 0,actions:v?P:[],activities:v?b:t?t.activities:{},events:[],configuration:h,transitions:e.transitions,children:N,done:g,tags:tM(h),machine:this}),M=r!==k;U.changed=n.name===e3||M;var F=U.history;F&&delete F.history;var O=!g&&(this._transient||f.some(function(e){return e._transient}));if(!p&&(!O||""===n.name))return U;var D=U;if(!g)for(O&&(D=this.resolveRaisedTransition(D,{type:eZ},n,o));T.length;){var L=T.shift();D=this.resolveRaisedTransition(D,L._event,n,o)}var B=D.changed||(F?!!D.actions.length||M||typeof F.value!=typeof D.value||!function e(t,r){if(t===r)return!0;if(void 0===t||void 0===r)return!1;if(th(t)||th(r))return t===r;var o=Object.keys(t),n=Object.keys(r);return o.length===n.length&&o.every(function(o){return e(t[o],r[o])})}(D.value,F.value):void 0);return D.changed=B,D.history=F,D},e.prototype.getStateNode=function(e){if(rw(e))return this.machine.getStateNodeById(e);if(!this.states)throw Error("Unable to retrieve child state '".concat(e,"' from '").concat(this.id,"'; no child states exist."));var t=this.states[e];if(!t)throw Error("Child state '".concat(e,"' does not exist on '").concat(this.id,"'"));return t},e.prototype.getStateNodeById=function(e){var t=rw(e)?e.slice(1):e;if(t===this.id)return this;var r=this.machine.idMap[t];if(!r)throw Error("Child state node '#".concat(t,"' does not exist on machine '").concat(this.id,"'"));return r},e.prototype.getStateNodeByPath=function(e){if("string"==typeof e&&rw(e))try{return this.getStateNodeById(e.slice(1))}catch(e){}for(var t=e7(e,this.delimiter).slice(),r=this;t.length;){var o=t.shift();if(!o.length)break;r=r.getStateNode(o)}return r},e.prototype.resolve=function(e){var t,r=this;if(!e)return this.initialStateValue||rb;switch(this.type){case"parallel":return tr(this.initialStateValue,function(t,o){return t?r.getStateNode(o).resolve(e[o]||t):rb});case"compound":if(th(e)){var o=this.getStateNode(e);if("parallel"===o.type||"compound"===o.type)return(t={})[e]=o.initialStateValue,t;return e}if(!Object.keys(e).length)return this.initialStateValue||{};return tr(e,function(e,t){return e?r.getStateNode(t).resolve(e):rb});default:return e||rb}},e.prototype.getResolvedPath=function(e){if(rw(e)){var t=this.machine.idMap[e.slice(1)];if(!t)throw Error("Unable to find state node '".concat(e,"'"));return t.path}return e7(e,this.delimiter)},Object.defineProperty(e.prototype,"initialStateValue",{get:function(){var e,t;if(this.__cache.initialStateValue)return this.__cache.initialStateValue;if("parallel"===this.type)t=to(this.states,function(e){return e.initialStateValue||rb},function(e){return"history"!==e.type});else if(void 0!==this.initial){if(!this.states[this.initial])throw Error("Initial state '".concat(this.initial,"' not found on '").concat(this.key,"'"));t=t_(this.states[this.initial])?this.initial:((e={})[this.initial]=this.states[this.initial].initialStateValue,e)}else t={};return this.__cache.initialStateValue=t,this.__cache.initialStateValue},enumerable:!1,configurable:!0}),e.prototype.getInitialState=function(e,t){this._init();var r=this.getStateNodes(e);return this.resolveTransition({configuration:r,exitSet:[],transitions:[],source:void 0,actions:[]},void 0,null!=t?t:this.machine.context,void 0)},Object.defineProperty(e.prototype,"initialState",{get:function(){var e=this.initialStateValue;if(!e)throw Error("Cannot retrieve initial state from simple state '".concat(this.id,"'."));return this.getInitialState(e)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"target",{get:function(){var e;if("history"===this.type){var t=this.config;e=th(t.target)&&rw(t.target)?tt(this.machine.getStateNodeById(t.target).path.slice(this.path.length-1)):t.target}return e},enumerable:!1,configurable:!0}),e.prototype.getRelativeStateNodes=function(e,t,r){return void 0===r&&(r=!0),r?"history"===e.type?e.resolveHistory(t):e.initialStateNodes:[e]},Object.defineProperty(e.prototype,"initialStateNodes",{get:function(){var e=this;return t_(this)?[this]:"compound"!==this.type||this.initial?ta(ti(this.initialStateValue).map(function(t){return e.getFromRelativePath(t)})):[this]},enumerable:!1,configurable:!0}),e.prototype.getFromRelativePath=function(e){if(!e.length)return[this];var t=ej(e),r=t[0],o=t.slice(1);if(!this.states)throw Error("Cannot retrieve subPath '".concat(r,"' from node with no states"));var n=this.getStateNode(r);if("history"===n.type)return n.resolveHistory();if(!this.states[r])throw Error("Child state '".concat(r,"' does not exist on '").concat(this.id,"'"));return this.states[r].getFromRelativePath(o)},e.prototype.historyValue=function(e){if(Object.keys(this.states).length)return{current:e||this.initialStateValue,states:to(this.states,function(t,r){if(!e)return t.historyValue();var o=th(e)?void 0:e[r];return t.historyValue(o||t.initialStateValue)},function(e){return!e.history})}},e.prototype.resolveHistory=function(e){var t,r=this;if("history"!==this.type)return[this];var o=this.parent;if(!e){var n=this.target;return n?ta(ti(n).map(function(e){return o.getFromRelativePath(e)})):o.initialStateNodes}var i=(t=o.path,function(e){var r,o,n=e;try{for(var i=ez(t),a=i.next();!a.done;a=i.next()){var s=a.value;n=n.states[s]}}catch(e){r={error:e}}finally{try{a&&!a.done&&(o=i.return)&&o.call(i)}finally{if(r)throw r.error}}return n})(e).current;return th(i)?[o.getStateNode(i)]:ta(ti(i).map(function(e){return"deep"===r.history?o.getFromRelativePath(e):[o.states[e[0]]]}))},Object.defineProperty(e.prototype,"stateIds",{get:function(){var e=this,t=ta(Object.keys(this.states).map(function(t){return e.states[t].stateIds}));return[this.id].concat(t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"events",{get:function(){if(this.__cache.events)return this.__cache.events;var e,t,r,o,n=this.states,i=new Set(this.ownEvents);if(n)try{for(var a=ez(Object.keys(n)),s=a.next();!s.done;s=a.next()){var l=n[s.value];if(l.states)try{for(var u=(r=void 0,ez(l.events)),c=u.next();!c.done;c=u.next()){var d=c.value;i.add("".concat(d))}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(e)throw e.error}}return this.__cache.events=Array.from(i)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"ownEvents",{get:function(){return Array.from(new Set(this.transitions.filter(function(e){return!(!e.target&&!e.actions.length&&e.internal)}).map(function(e){return e.eventType})))},enumerable:!1,configurable:!0}),e.prototype.resolveTarget=function(e){var t=this;if(void 0!==e)return e.map(function(e){if(!th(e))return e;var r=e[0]===t.delimiter;if(r&&!t.parent)return t.getStateNodeByPath(e.slice(1));var o=r?t.key+e:e;if(!t.parent)return t.getStateNodeByPath(o);try{return t.parent.getStateNodeByPath(o)}catch(e){throw Error("Invalid transition definition for state node '".concat(t.id,"':\n").concat(e.message))}})},e.prototype.formatTransition=function(e){var t=this,r=function(e){if(void 0!==e&&""!==e)return ts(e)}(e.target),o="internal"in e?e.internal:!r||r.some(function(e){return th(e)&&e[0]===t.delimiter}),n=this.machine.options.guards,i=this.resolveTarget(r),a=eB(eB({},e),{actions:tL(ts(e.actions)),cond:tg(e.cond,n),target:i,source:this,internal:o,eventType:e.event,toJSON:function(){return eB(eB({},a),{target:a.target?a.target.map(function(e){return"#".concat(e.id)}):void 0,source:"#".concat(t.id)})}});return a},e.prototype.formatTransitions=function(){var e,t,r,o=this;if(this.config.on){if(Array.isArray(this.config.on))r=this.config.on;else{var n=this.config.on,i=n["*"],a=eW(n,["*"]);r=ta(Object.keys(a).map(function(e){return tE(e,a[e])}).concat(tE("*",void 0===i?[]:i)))}}else r=[];var s=this.config.always?tE("",this.config.always):[],l=this.config.onDone?tE(String(tK(this.id)),this.config.onDone):[],u=ta(this.invoke.map(function(e){var t=[];return e.onDone&&t.push.apply(t,eV([],ej(tE(String(tJ(e.id)),e.onDone)),!1)),e.onError&&t.push.apply(t,eV([],ej(tE(String(tY(e.id)),e.onError)),!1)),t})),c=this.after,d=ta(eV(eV(eV(eV([],ej(l),!1),ej(u),!1),ej(r),!1),ej(s),!1).map(function(e){return ts(e).map(function(e){return o.formatTransition(e)})}));try{for(var f=ez(c),p=f.next();!p.done;p=f.next()){var h=p.value;d.push(h)}}catch(t){e={error:t}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}return d},e}();function rS(e,t){return new rE(e,t)}var rC=tj,rx=r(33720);let rI=e=>{let t=e.trim().split("");for(let e=0;e<t.length;e++)e>0&&e<t.length-1&&(t[e]="*");return t.join("")},rA=e=>{if(e.length<4)return e;let t=e.split("");for(let e=0;e<t.length-4;e++)t[e]="*";return t.join("")},r_=e=>{let t=e.split("@"),r=rI(t[0]);return`${r}@${t[1]}`},rk=(e,t)=>"Phone Number"===e?rA(t):r_(t),rR=e=>rx.Xo.some(t=>e.includes(t)),rT=(e,t,r)=>encodeURI(`otpauth://totp/${e}:${t}?secret=${r}&issuer=${e}`);var rP=r(37374);let rN=(e,t)=>`${e}${t}`.replace(/[^A-Z0-9+]/gi,""),rU=(e,t)=>{switch(t){case"address":case"birthdate":case"email":case"family_name":case"gender":case"given_name":case"locale":case"middle_name":case"name":case"nickname":case"phone_number":case"picture":case"preferred_username":case"profile":case"updated_at":case"website":case"zoneinfo":return!0;default:return t.startsWith("custom:")}},rM=e=>{let{phone_number:t,...r}=rP(e,rU);if((0,eA.HD)(t)&&""!==t){let{country_code:o}=e;return{...r,phone_number:rN(o,t)}}return r},rF=(e,t,r)=>{let{password:o,...n}=t,i=rM(n),a={autoSignIn:!0,userAttributes:{..."phone_number"===r?{...i,phone_number:e}:i}};return{username:e,password:o,options:a}},{assign:rO}=eC,rD=rO({actorDoneData:void 0}),rL=rO({challengeName:void 0}),rB=rO({missingAttributes:void 0}),rW=rO({remoteError:void 0}),rz=rO({formValues:{}}),rj=rO({touched:{}}),rV=rO({user:void 0}),rG=rO({validationError:{}}),r$=rO({totpSecretCode:(e,{data:t})=>{let{sharedSecret:r}=t.nextStep?.totpSetupDetails??{};return r}}),rH=rO({step:"SIGN_IN"}),rq=rO({step:"SHOULD_CONFIRM_USER_ATTRIBUTE"}),rK=rO({step:"CONFIRM_ATTRIBUTE_COMPLETE"}),rJ=rO({challengeName:(e,{data:t})=>{let{signInStep:r}=t.nextStep;return"CONFIRM_SIGN_IN_WITH_SMS_CODE"===r?"SMS_MFA":"CONFIRM_SIGN_IN_WITH_TOTP_CODE"===r?"SOFTWARE_TOKEN_MFA":void 0}}),rY=rO({username:({formValues:e,loginMechanisms:t})=>{let r=t[0],{username:o,country_code:n}=e;return"phone_number"===r?rN(n,o):o}}),rZ=rO({username:({formValues:e,loginMechanisms:t})=>{let r=t[0];if("phone_number"===r){let{country_code:t,phone_number:r}=e;return rN(t,r)}return e[r]}}),rQ=rO({username:({formValues:e,loginMechanisms:t})=>{let r=t[0],{username:o,country_code:n}=e;return"phone_number"===r?rN(n,o):o}}),rX=rO({step:(e,{data:t})=>"DONE"===t.nextStep.signInStep?"SIGN_IN_COMPLETE":t.nextStep.signInStep}),r0=rO({step:(e,{data:t})=>"DONE"===t.nextStep.signUpStep?"SIGN_UP_COMPLETE":t.nextStep.signUpStep}),r1=rO({step:(e,{data:t})=>"DONE"===t.nextStep.resetPasswordStep?"RESET_PASSWORD_COMPLETE":t.nextStep.resetPasswordStep}),r2=rO({missingAttributes:(e,{data:t})=>t.nextStep?.missingAttributes}),r5=rO({validationError:(e,{data:t})=>t}),r3=rO({remoteError:(e,{data:t})=>"NoUserPoolError"===t.name?`Configuration error (see console) – please contact the administrator`:t?.message||t}),r6=rO({user:(e,{data:t})=>t}),r4=e=>({Destination:e.destination,DeliveryMedium:e.deliveryMedium,AttributeName:e.attributName}),r8=rO({codeDeliveryDetails:(e,{data:t})=>t?.nextStep?.codeDeliveryDetails?r4(t.nextStep.codeDeliveryDetails):r4(t)}),r9=rO({formValues:(e,{data:t})=>{let{name:r,value:o}=t;return{...e.formValues,[r]:o}}}),r7=rO({formValues:(e,{data:t})=>(function(e,...t){return Object.entries(e).reduce((e,[r,o])=>({...e,[r]:t.includes(r)?o:o?.trim()}),{})})({...e.formValues,...t},"password")}),oe=rO({touched:(e,{data:t})=>({...e.touched,[t.name]:!0})}),ot=rO({unverifiedUserAttributes:(e,{data:t})=>{let{email:r,phone_number:o}=t;return{...r&&{email:r},...o&&{phone_number:o}}}}),or=rO({selectedUserAttribute:void 0}),oo=rO({selectedUserAttribute:e=>e.formValues?.unverifiedAttr}),on={clearActorDoneData:rD,clearChallengeName:rL,clearError:rW,clearFormValues:rz,clearMissingAttributes:rB,clearSelectedUserAttribute:or,clearTouched:rj,clearUser:rV,clearValidationError:rG,handleBlur:oe,handleInput:r9,handleSubmit:r7,setChallengeName:rJ,setCodeDeliveryDetails:r8,setFieldErrors:r5,setMissingAttributes:r2,setNextResetPasswordStep:r1,setNextSignInStep:rX,setNextSignUpStep:r0,setRemoteError:r3,setConfirmAttributeCompleteStep:rK,setConfirmSignUpSignUpStep:rO({step:"CONFIRM_SIGN_UP"}),setShouldVerifyUserAttributeStep:rq,setSelectedUserAttribute:oo,setSignInStep:rH,setTotpSecretCode:r$,setUser:r6,setUnverifiedUserAttributes:ot,setUsernameForgotPassword:rY,setUsernameSignIn:rQ,setUsernameSignUp:rZ},oi=["CONFIRM_SIGN_IN_WITH_SMS_CODE","CONFIRM_SIGN_IN_WITH_TOTP_CODE"],oa={hasCompletedAttributeConfirmation:(e,{data:t})=>t?.step==="CONFIRM_ATTRIBUTE_COMPLETE",hasCompletedResetPassword:(e,{data:t})=>t?.nextStep.resetPasswordStep==="DONE",hasCompletedSignIn:(e,{data:t})=>t?.nextStep.signInStep==="DONE",hasCompletedSignUp:(e,{data:t})=>t?.nextStep.signUpStep==="DONE",isConfirmSignUpStep:(e,{data:t})=>t?.step==="CONFIRM_SIGN_UP",isConfirmUserAttributeStep:(e,{data:t})=>t?.step==="CONFIRM_ATTRIBUTE_WITH_CODE",isResetPasswordStep:(e,{data:t})=>t?.step==="RESET_PASSWORD",isShouldConfirmUserAttributeStep:(e,{data:t})=>t?.step==="SHOULD_CONFIRM_USER_ATTRIBUTE",isUserAlreadyConfirmed:(e,{data:t})=>"User is already confirmed."===t.message,shouldAutoSignIn:(e,{data:t})=>t?.nextStep.signUpStep==="COMPLETE_AUTO_SIGN_IN",shouldConfirmResetPassword:({step:e})=>"CONFIRM_RESET_PASSWORD_WITH_CODE"===e,shouldConfirmSignIn:({step:e})=>oi.includes(e),shouldConfirmSignInWithNewPassword:(e,{data:t})=>t?.nextStep.signInStep==="CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",shouldConfirmSignUp:({step:e})=>"CONFIRM_SIGN_UP"===e,shouldConfirmSignUpFromSignIn:(e,{data:t})=>t?.nextStep.signInStep==="CONFIRM_SIGN_UP",shouldResetPassword:({step:e})=>"RESET_PASSWORD"===e,shouldResetPasswordFromSignIn:(e,{data:t})=>t?.nextStep?.signInStep==="RESET_PASSWORD",shouldSetupTotp:({step:e})=>"CONTINUE_SIGN_IN_WITH_TOTP_SETUP"===e,shouldVerifyAttribute:(e,{data:t})=>{let{phone_number_verified:r,email_verified:o}=t;return(void 0===o||"false"===o)&&(void 0===r||"false"===r)}};var os=r(15162);let ol=async(e,t,r,o)=>{let n=os({},...await Promise.all(o.map(o=>o(e,t,r))));return(0,eA.xb)(n)?Promise.resolve():Promise.reject(n)};var ou=r(769),oc=r(79101),od=r(82384);let of={convert(e,{urlSafe:t}={urlSafe:!1}){let r="string"==typeof e?e:Array.from(e,e=>String.fromCodePoint(e)).join(""),o=(0,od.Ds)()(r);return t?o.replace(/\+/g,"-").replace(/\//g,"_"):o}},op=async()=>{let{userAgentData:e}=navigator;if(!e)return navigator.userAgent;let{platform:t="",platformVersion:r="",model:o="",architecture:n="",fullVersionList:i=[]}=await e.getHighEntropyValues(["platform","platformVersion","architecture","model","fullVersionList"]);return[t,r,n,o,t,i.map(e=>`${e.brand}/${e.version}`).join(";")].filter(e=>e).join(" ")};var oh=r(75919);(f=q||(q={})).ConcurrentModificationException="ConcurrentModificationException",f.ForbiddenException="ForbiddenException",f.InternalErrorException="InternalErrorException",f.InvalidParameterException="InvalidParameterException",f.NotAuthorizedException="NotAuthorizedException",f.ResourceNotFoundException="ResourceNotFoundException",f.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",(p=K||(K={})).ForbiddenException="ForbiddenException",p.InternalErrorException="InternalErrorException",p.InvalidParameterException="InvalidParameterException",p.InvalidPasswordException="InvalidPasswordException",p.LimitExceededException="LimitExceededException",p.NotAuthorizedException="NotAuthorizedException",p.PasswordResetRequiredException="PasswordResetRequiredException",p.ResourceNotFoundException="ResourceNotFoundException",p.TooManyRequestsException="TooManyRequestsException",p.UserNotConfirmedException="UserNotConfirmedException",p.UserNotFoundException="UserNotFoundException",(h=J||(J={})).ForbiddenException="ForbiddenException",h.InternalErrorException="InternalErrorException",h.InvalidLambdaResponseException="InvalidLambdaResponseException",h.InvalidParameterException="InvalidParameterException",h.InvalidPasswordException="InvalidPasswordException",h.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",h.NotAuthorizedException="NotAuthorizedException",h.PasswordResetRequiredException="PasswordResetRequiredException",h.ResourceNotFoundException="ResourceNotFoundException",h.TooManyRequestsException="TooManyRequestsException",h.UsernameExistsException="UsernameExistsException",h.UserNotConfirmedException="UserNotConfirmedException",h.UserNotFoundException="UserNotFoundException",(g=Y||(Y={})).CodeMismatchException="CodeMismatchException",g.ExpiredCodeException="ExpiredCodeException",g.ForbiddenException="ForbiddenException",g.InternalErrorException="InternalErrorException",g.InvalidLambdaResponseException="InvalidLambdaResponseException",g.InvalidParameterException="InvalidParameterException",g.InvalidPasswordException="InvalidPasswordException",g.LimitExceededException="LimitExceededException",g.NotAuthorizedException="NotAuthorizedException",g.ResourceNotFoundException="ResourceNotFoundException",g.TooManyFailedAttemptsException="TooManyFailedAttemptsException",g.TooManyRequestsException="TooManyRequestsException",g.UnexpectedLambdaException="UnexpectedLambdaException",g.UserLambdaValidationException="UserLambdaValidationException",g.UserNotConfirmedException="UserNotConfirmedException",g.UserNotFoundException="UserNotFoundException",(v=Z||(Z={})).AliasExistsException="AliasExistsException",v.CodeMismatchException="CodeMismatchException",v.ExpiredCodeException="ExpiredCodeException",v.ForbiddenException="ForbiddenException",v.InternalErrorException="InternalErrorException",v.InvalidLambdaResponseException="InvalidLambdaResponseException",v.InvalidParameterException="InvalidParameterException",v.LimitExceededException="LimitExceededException",v.NotAuthorizedException="NotAuthorizedException",v.ResourceNotFoundException="ResourceNotFoundException",v.TooManyFailedAttemptsException="TooManyFailedAttemptsException",v.TooManyRequestsException="TooManyRequestsException",v.UnexpectedLambdaException="UnexpectedLambdaException",v.UserLambdaValidationException="UserLambdaValidationException",v.UserNotFoundException="UserNotFoundException",(m=Q||(Q={})).ForbiddenException="ForbiddenException",m.InternalErrorException="InternalErrorException",m.InvalidParameterException="InvalidParameterException",m.NotAuthorizedException="NotAuthorizedException",m.PasswordResetRequiredException="PasswordResetRequiredException",m.ResourceNotFoundException="ResourceNotFoundException",m.TooManyRequestsException="TooManyRequestsException",m.UserNotConfirmedException="UserNotConfirmedException",m.UserNotFoundException="UserNotFoundException",(y=X||(X={})).ForbiddenException="ForbiddenException",y.InternalErrorException="InternalErrorException",y.InvalidParameterException="InvalidParameterException",y.NotAuthorizedException="NotAuthorizedException",y.PasswordResetRequiredException="PasswordResetRequiredException",y.ResourceNotFoundException="ResourceNotFoundException",y.TooManyRequestsException="TooManyRequestsException",y.UserNotConfirmedException="UserNotConfirmedException",y.UserNotFoundException="UserNotFoundException",(b=ee||(ee={})).ForbiddenException="ForbiddenException",b.InternalErrorException="InternalErrorException",b.InvalidParameterException="InvalidParameterException",b.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",b.NotAuthorizedException="NotAuthorizedException",b.PasswordResetRequiredException="PasswordResetRequiredException",b.ResourceNotFoundException="ResourceNotFoundException",b.TooManyRequestsException="TooManyRequestsException",b.UserNotConfirmedException="UserNotConfirmedException",b.UserNotFoundException="UserNotFoundException",(w=et||(et={})).CodeDeliveryFailureException="CodeDeliveryFailureException",w.ForbiddenException="ForbiddenException",w.InternalErrorException="InternalErrorException",w.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",w.InvalidLambdaResponseException="InvalidLambdaResponseException",w.InvalidParameterException="InvalidParameterException",w.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",w.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",w.LimitExceededException="LimitExceededException",w.NotAuthorizedException="NotAuthorizedException",w.ResourceNotFoundException="ResourceNotFoundException",w.TooManyRequestsException="TooManyRequestsException",w.UnexpectedLambdaException="UnexpectedLambdaException",w.UserLambdaValidationException="UserLambdaValidationException",w.UserNotFoundException="UserNotFoundException",(E=er||(er={})).ForbiddenException="ForbiddenException",E.InternalErrorException="InternalErrorException",E.InvalidParameterException="InvalidParameterException",E.NotAuthorizedException="NotAuthorizedException",E.PasswordResetRequiredException="PasswordResetRequiredException",E.ResourceNotFoundException="ResourceNotFoundException",E.TooManyRequestsException="TooManyRequestsException",E.UserNotConfirmedException="UserNotConfirmedException",E.UserNotFoundException="UserNotFoundException",(S=eo||(eo={})).ExternalServiceException="ExternalServiceException",S.InternalErrorException="InternalErrorException",S.InvalidParameterException="InvalidParameterException",S.LimitExceededException="LimitExceededException",S.NotAuthorizedException="NotAuthorizedException",S.ResourceConflictException="ResourceConflictException",S.ResourceNotFoundException="ResourceNotFoundException",S.TooManyRequestsException="TooManyRequestsException",(C=en||(en={})).ExternalServiceException="ExternalServiceException",C.InternalErrorException="InternalErrorException",C.InvalidIdentityPoolConfigurationException="InvalidIdentityPoolConfigurationException",C.InvalidParameterException="InvalidParameterException",C.NotAuthorizedException="NotAuthorizedException",C.ResourceConflictException="ResourceConflictException",C.ResourceNotFoundException="ResourceNotFoundException",C.TooManyRequestsException="TooManyRequestsException",(x=ei||(ei={})).CodeDeliveryFailureException="CodeDeliveryFailureException",x.ForbiddenException="ForbiddenException",x.InternalErrorException="InternalErrorException",x.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",x.InvalidLambdaResponseException="InvalidLambdaResponseException",x.InvalidParameterException="InvalidParameterException",x.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",x.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",x.LimitExceededException="LimitExceededException",x.NotAuthorizedException="NotAuthorizedException",x.PasswordResetRequiredException="PasswordResetRequiredException",x.ResourceNotFoundException="ResourceNotFoundException",x.TooManyRequestsException="TooManyRequestsException",x.UnexpectedLambdaException="UnexpectedLambdaException",x.UserLambdaValidationException="UserLambdaValidationException",x.UserNotConfirmedException="UserNotConfirmedException",x.UserNotFoundException="UserNotFoundException",(I=ea||(ea={})).ForbiddenException="ForbiddenException",I.InternalErrorException="InternalErrorException",I.InvalidParameterException="InvalidParameterException",I.NotAuthorizedException="NotAuthorizedException",I.PasswordResetRequiredException="PasswordResetRequiredException",I.ResourceNotFoundException="ResourceNotFoundException",I.TooManyRequestsException="TooManyRequestsException",I.UserNotConfirmedException="UserNotConfirmedException",(A=es||(es={})).PasswordResetRequiredException="PasswordResetRequiredException",A.ForbiddenException="ForbiddenException",A.InternalErrorException="InternalErrorException",A.InvalidLambdaResponseException="InvalidLambdaResponseException",A.InvalidParameterException="InvalidParameterException",A.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",A.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",A.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",A.NotAuthorizedException="NotAuthorizedException",A.ResourceNotFoundException="ResourceNotFoundException",A.TooManyRequestsException="TooManyRequestsException",A.UnexpectedLambdaException="UnexpectedLambdaException",A.UserLambdaValidationException="UserLambdaValidationException",A.UserNotConfirmedException="UserNotConfirmedException",A.UserNotFoundException="UserNotFoundException",(_=el||(el={})).CodeDeliveryFailureException="CodeDeliveryFailureException",_.ForbiddenException="ForbiddenException",_.InternalErrorException="InternalErrorException",_.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",_.InvalidLambdaResponseException="InvalidLambdaResponseException",_.InvalidParameterException="InvalidParameterException",_.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",_.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",_.LimitExceededException="LimitExceededException",_.NotAuthorizedException="NotAuthorizedException",_.ResourceNotFoundException="ResourceNotFoundException",_.TooManyRequestsException="TooManyRequestsException",_.UnexpectedLambdaException="UnexpectedLambdaException",_.UserLambdaValidationException="UserLambdaValidationException",_.UserNotFoundException="UserNotFoundException",(k=eu||(eu={})).AliasExistsException="AliasExistsException",k.CodeMismatchException="CodeMismatchException",k.ExpiredCodeException="ExpiredCodeException",k.ForbiddenException="ForbiddenException",k.InternalErrorException="InternalErrorException",k.InvalidLambdaResponseException="InvalidLambdaResponseException",k.InvalidParameterException="InvalidParameterException",k.InvalidPasswordException="InvalidPasswordException",k.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",k.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",k.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",k.MFAMethodNotFoundException="MFAMethodNotFoundException",k.NotAuthorizedException="NotAuthorizedException",k.PasswordResetRequiredException="PasswordResetRequiredException",k.ResourceNotFoundException="ResourceNotFoundException",k.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",k.TooManyRequestsException="TooManyRequestsException",k.UnexpectedLambdaException="UnexpectedLambdaException",k.UserLambdaValidationException="UserLambdaValidationException",k.UserNotConfirmedException="UserNotConfirmedException",k.UserNotFoundException="UserNotFoundException",(R=ec||(ec={})).ForbiddenException="ForbiddenException",R.InternalErrorException="InternalErrorException",R.InvalidParameterException="InvalidParameterException",R.NotAuthorizedException="NotAuthorizedException",R.PasswordResetRequiredException="PasswordResetRequiredException",R.ResourceNotFoundException="ResourceNotFoundException",R.UserNotConfirmedException="UserNotConfirmedException",R.UserNotFoundException="UserNotFoundException",(T=ed||(ed={})).CodeDeliveryFailureException="CodeDeliveryFailureException",T.InternalErrorException="InternalErrorException",T.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",T.InvalidLambdaResponseException="InvalidLambdaResponseException",T.InvalidParameterException="InvalidParameterException",T.InvalidPasswordException="InvalidPasswordException",T.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",T.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",T.NotAuthorizedException="NotAuthorizedException",T.ResourceNotFoundException="ResourceNotFoundException",T.TooManyRequestsException="TooManyRequestsException",T.UnexpectedLambdaException="UnexpectedLambdaException",T.UserLambdaValidationException="UserLambdaValidationException",T.UsernameExistsException="UsernameExistsException",(P=ef||(ef={})).AliasExistsException="AliasExistsException",P.CodeDeliveryFailureException="CodeDeliveryFailureException",P.CodeMismatchException="CodeMismatchException",P.ExpiredCodeException="ExpiredCodeException",P.ForbiddenException="ForbiddenException",P.InternalErrorException="InternalErrorException",P.InvalidEmailRoleAccessPolicyException="InvalidEmailRoleAccessPolicyException",P.InvalidLambdaResponseException="InvalidLambdaResponseException",P.InvalidParameterException="InvalidParameterException",P.InvalidSmsRoleAccessPolicyException="InvalidSmsRoleAccessPolicyException",P.InvalidSmsRoleTrustRelationshipException="InvalidSmsRoleTrustRelationshipException",P.NotAuthorizedException="NotAuthorizedException",P.PasswordResetRequiredException="PasswordResetRequiredException",P.ResourceNotFoundException="ResourceNotFoundException",P.TooManyRequestsException="TooManyRequestsException",P.UnexpectedLambdaException="UnexpectedLambdaException",P.UserLambdaValidationException="UserLambdaValidationException",P.UserNotConfirmedException="UserNotConfirmedException",P.UserNotFoundException="UserNotFoundException",(N=ep||(ep={})).CodeMismatchException="CodeMismatchException",N.EnableSoftwareTokenMFAException="EnableSoftwareTokenMFAException",N.ForbiddenException="ForbiddenException",N.InternalErrorException="InternalErrorException",N.InvalidParameterException="InvalidParameterException",N.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",N.NotAuthorizedException="NotAuthorizedException",N.PasswordResetRequiredException="PasswordResetRequiredException",N.ResourceNotFoundException="ResourceNotFoundException",N.SoftwareTokenMFANotFoundException="SoftwareTokenMFANotFoundException",N.TooManyRequestsException="TooManyRequestsException",N.UserNotConfirmedException="UserNotConfirmedException",N.UserNotFoundException="UserNotFoundException",(U=eh||(eh={})).AliasExistsException="AliasExistsException",U.CodeMismatchException="CodeMismatchException",U.ExpiredCodeException="ExpiredCodeException",U.ForbiddenException="ForbiddenException",U.InternalErrorException="InternalErrorException",U.InvalidParameterException="InvalidParameterException",U.LimitExceededException="LimitExceededException",U.NotAuthorizedException="NotAuthorizedException",U.PasswordResetRequiredException="PasswordResetRequiredException",U.ResourceNotFoundException="ResourceNotFoundException",U.TooManyRequestsException="TooManyRequestsException",U.UserNotConfirmedException="UserNotConfirmedException",U.UserNotFoundException="UserNotFoundException",(M=eg||(eg={})).ForbiddenException="ForbiddenException",M.InternalErrorException="InternalErrorException",M.InvalidParameterException="InvalidParameterException",M.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",M.NotAuthorizedException="NotAuthorizedException",M.PasswordResetRequiredException="PasswordResetRequiredException",M.ResourceNotFoundException="ResourceNotFoundException",M.TooManyRequestsException="TooManyRequestsException",M.UserNotConfirmedException="UserNotConfirmedException",M.UserNotFoundException="UserNotFoundException",(F=ev||(ev={})).ForbiddenException="ForbiddenException",F.InternalErrorException="InternalErrorException",F.InvalidParameterException="InvalidParameterException",F.InvalidUserPoolConfigurationException="InvalidUserPoolConfigurationException",F.NotAuthorizedException="NotAuthorizedException",F.PasswordResetRequiredException="PasswordResetRequiredException",F.ResourceNotFoundException="ResourceNotFoundException",F.TooManyRequestsException="TooManyRequestsException",F.UserNotConfirmedException="UserNotConfirmedException",F.UserNotFoundException="UserNotFoundException",(O=em||(em={})).EmptySignInUsername="EmptySignInUsername",O.EmptySignInPassword="EmptySignInPassword",O.CustomAuthSignInPassword="CustomAuthSignInPassword",O.EmptySignUpUsername="EmptySignUpUsername",O.EmptySignUpPassword="EmptySignUpPassword",O.EmptyConfirmSignUpUsername="EmptyConfirmSignUpUsername",O.EmptyConfirmSignUpCode="EmptyConfirmSignUpCode",O.EmptyResendSignUpCodeUsername="EmptyresendSignUpCodeUsername",O.EmptyChallengeResponse="EmptyChallengeResponse",O.EmptyConfirmResetPasswordUsername="EmptyConfirmResetPasswordUsername",O.EmptyConfirmResetPasswordNewPassword="EmptyConfirmResetPasswordNewPassword",O.EmptyConfirmResetPasswordConfirmationCode="EmptyConfirmResetPasswordConfirmationCode",O.EmptyResetPasswordUsername="EmptyResetPasswordUsername",O.EmptyVerifyTOTPSetupCode="EmptyVerifyTOTPSetupCode",O.EmptyConfirmUserAttributeCode="EmptyConfirmUserAttributeCode",O.IncorrectMFAMethod="IncorrectMFAMethod",O.EmptyUpdatePassword="EmptyUpdatePassword";let og={[em.EmptyChallengeResponse]:{message:"challengeResponse is required to confirmSignIn"},[em.EmptyConfirmResetPasswordUsername]:{message:"username is required to confirmResetPassword"},[em.EmptyConfirmSignUpCode]:{message:"code is required to confirmSignUp"},[em.EmptyConfirmSignUpUsername]:{message:"username is required to confirmSignUp"},[em.EmptyConfirmResetPasswordConfirmationCode]:{message:"confirmationCode is required to confirmResetPassword"},[em.EmptyConfirmResetPasswordNewPassword]:{message:"newPassword is required to confirmResetPassword"},[em.EmptyResendSignUpCodeUsername]:{message:"username is required to confirmSignUp"},[em.EmptyResetPasswordUsername]:{message:"username is required to resetPassword"},[em.EmptySignInPassword]:{message:"password is required to signIn"},[em.EmptySignInUsername]:{message:"username is required to signIn"},[em.EmptySignUpPassword]:{message:"password is required to signUp"},[em.EmptySignUpUsername]:{message:"username is required to signUp"},[em.CustomAuthSignInPassword]:{message:"A password is not needed when signing in with CUSTOM_WITHOUT_SRP",recoverySuggestion:"Do not include a password in your signIn call."},[em.IncorrectMFAMethod]:{message:"Incorrect MFA method was chosen. It should be either SMS or TOTP",recoverySuggestion:"Try to pass TOTP or SMS as the challengeResponse"},[em.EmptyVerifyTOTPSetupCode]:{message:"code is required to verifyTotpSetup"},[em.EmptyUpdatePassword]:{message:"oldPassword and newPassword are required to changePassword"},[em.EmptyConfirmUserAttributeCode]:{message:"confirmation code is required to confirmUserAttribute"}};function ov(e,t){let{message:r,recoverySuggestion:o}=og[t];if(!e)throw new oh.l({name:t,message:r,recoverySuggestion:o})}(D=ey||(ey={})).DEFAULT_MSG="Authentication Error",D.EMPTY_EMAIL="Email cannot be empty",D.EMPTY_PHONE="Phone number cannot be empty",D.EMPTY_USERNAME="Username cannot be empty",D.INVALID_USERNAME="The username should either be a string or one of the sign in types",D.EMPTY_PASSWORD="Password cannot be empty",D.EMPTY_CODE="Confirmation code cannot be empty",D.SIGN_UP_ERROR="Error creating account",D.NO_MFA="No valid MFA method provided",D.INVALID_MFA="Invalid MFA type",D.EMPTY_CHALLENGE="Challenge response cannot be empty",D.NO_USER_SESSION="Failed to get the session because the user is empty",D.NETWORK_ERROR="Network Error",D.DEVICE_CONFIG="Device tracking has not been configured in this User Pool",D.AUTOSIGNIN_ERROR="Please use your credentials to sign in",D.OAUTH_ERROR="Couldn't finish OAuth flow, check your User Pool HostedUI settings",(L=eb||(eb={})).SignInException="SignInException",L.OAuthSignInError="OAuthSignInException";var om=r(77959),oy=r(79753);function ob(){return{username:void 0,challengeName:void 0,signInSession:void 0}}let ow=(s=(B=(e,t)=>{switch(t.type){case"SET_SIGN_IN_SESSION":return{...e,signInSession:t.value};case"SET_SIGN_IN_STATE":return{...t.value};case"SET_CHALLENGE_NAME":return{...e,challengeName:t.value};case"SET_USERNAME":return{...e,username:t.value};case"SET_INITIAL_STATE":return ob();default:return e}})(ob(),{type:"SET_INITIAL_STATE"}),{getState:()=>s,dispatch:e=>{s=B(s,e)}});function oE(e){ow.dispatch({type:"SET_SIGN_IN_STATE",value:e})}function oS(){ow.dispatch({type:"SET_INITIAL_STATE"})}var oC=r(81808),ox=r(60645);let oI={convert:e=>new TextEncoder().encode(e)};function oA(e,t){null!=e&&this.fromString(e,t)}function o_(){return new oA(null,null)}let ok="undefined"!=typeof navigator;ok&&"Microsoft Internet Explorer"===navigator.appName?(oA.prototype.am=function(e,t,r,o,n,i){let a=32767&t,s=t>>15;for(;--i>=0;){let t=32767&this[e],i=this[e++]>>15,l=s*t+i*a;n=((t=a*t+((32767&l)<<15)+r[o]+(1073741823&n))>>>30)+(l>>>15)+s*i+(n>>>30),r[o++]=1073741823&t}return n},o=30):ok&&"Netscape"!==navigator.appName?(oA.prototype.am=function(e,t,r,o,n,i){for(;--i>=0;){let i=t*this[e++]+r[o]+n;n=Math.floor(i/67108864),r[o++]=67108863&i}return n},o=26):(oA.prototype.am=function(e,t,r,o,n,i){let a=16383&t,s=t>>14;for(;--i>=0;){let t=16383&this[e],i=this[e++]>>14,l=s*t+i*a;n=((t=a*t+((16383&l)<<14)+r[o]+n)>>28)+(l>>14)+s*i,r[o++]=268435455&t}return n},o=28),oA.prototype.DB=o,oA.prototype.DM=(1<<o)-1,oA.prototype.DV=1<<o,oA.prototype.FV=4503599627370496,oA.prototype.F1=52-o,oA.prototype.F2=2*o-52;let oR=[];for(i=0,n=48;i<=9;++i)oR[n++]=i;for(i=10,n=97;i<36;++i)oR[n++]=i;for(i=10,n=65;i<36;++i)oR[n++]=i;function oT(e){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(e)}function oP(e){let t=o_();return t.fromInt(e),t}function oN(e){let t,r=1;return 0!=(t=e>>>16)&&(e=t,r+=16),0!=(t=e>>8)&&(e=t,r+=8),0!=(t=e>>4)&&(e=t,r+=4),0!=(t=e>>2)&&(e=t,r+=2),0!=(t=e>>1)&&(e=t,r+=1),r}function oU(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<e.DB-15)-1,this.mt2=2*e.t}oU.prototype.convert=function(e){let t=o_();return e.abs().dlShiftTo(this.m.t,t),t.divRemTo(this.m,null,t),e.s<0&&t.compareTo(oA.ZERO)>0&&this.m.subTo(t,t),t},oU.prototype.revert=function(e){let t=o_();return e.copyTo(t),this.reduce(t),t},oU.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(let t=0;t<this.m.t;++t){let r=32767&e[t],o=r*this.mpl+((r*this.mph+(e[t]>>15)*this.mpl&this.um)<<15)&e.DM;for(r=t+this.m.t,e[r]+=this.m.am(0,o,e,t,0,this.m.t);e[r]>=e.DV;)e[r]-=e.DV,e[++r]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},oU.prototype.mulTo=function(e,t,r){e.multiplyTo(t,r),this.reduce(r)},oU.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},oA.prototype.copyTo=function(e){for(let t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},oA.prototype.fromInt=function(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},oA.prototype.fromString=function(e,t){let r;if(16===t)r=4;else if(8===t)r=3;else if(2===t)r=1;else if(32===t)r=5;else if(4===t)r=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;let o=e.length,n=!1,i=0;for(;--o>=0;){let t=function(e,t){let r=oR[e.charCodeAt(t)];return null==r?-1:r}(e,o);if(t<0){"-"===e.charAt(o)&&(n=!0);continue}n=!1,0===i?this[this.t++]=t:i+r>this.DB?(this[this.t-1]|=(t&(1<<this.DB-i)-1)<<i,this[this.t++]=t>>this.DB-i):this[this.t-1]|=t<<i,(i+=r)>=this.DB&&(i-=this.DB)}this.clamp(),n&&oA.ZERO.subTo(this,this)},oA.prototype.clamp=function(){let e=this.s&this.DM;for(;this.t>0&&this[this.t-1]==e;)--this.t},oA.prototype.dlShiftTo=function(e,t){let r;for(r=this.t-1;r>=0;--r)t[r+e]=this[r];for(r=e-1;r>=0;--r)t[r]=0;t.t=this.t+e,t.s=this.s},oA.prototype.drShiftTo=function(e,t){for(let r=e;r<this.t;++r)t[r-e]=this[r];t.t=Math.max(this.t-e,0),t.s=this.s},oA.prototype.lShiftTo=function(e,t){let r;let o=e%this.DB,n=this.DB-o,i=(1<<n)-1,a=Math.floor(e/this.DB),s=this.s<<o&this.DM;for(r=this.t-1;r>=0;--r)t[r+a+1]=this[r]>>n|s,s=(this[r]&i)<<o;for(r=a-1;r>=0;--r)t[r]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},oA.prototype.rShiftTo=function(e,t){t.s=this.s;let r=Math.floor(e/this.DB);if(r>=this.t){t.t=0;return}let o=e%this.DB,n=this.DB-o,i=(1<<o)-1;t[0]=this[r]>>o;for(let e=r+1;e<this.t;++e)t[e-r-1]|=(this[e]&i)<<n,t[e-r]=this[e]>>o;o>0&&(t[this.t-r-1]|=(this.s&i)<<n),t.t=this.t-r,t.clamp()},oA.prototype.subTo=function(e,t){let r=0,o=0,n=Math.min(e.t,this.t);for(;r<n;)o+=this[r]-e[r],t[r++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o-=e.s;r<this.t;)o+=this[r],t[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<e.t;)o-=e[r],t[r++]=o&this.DM,o>>=this.DB;o-=e.s}t.s=o<0?-1:0,o<-1?t[r++]=this.DV+o:o>0&&(t[r++]=o),t.t=r,t.clamp()},oA.prototype.multiplyTo=function(e,t){let r=this.abs(),o=e.abs(),n=r.t;for(t.t=n+o.t;--n>=0;)t[n]=0;for(n=0;n<o.t;++n)t[n+r.t]=r.am(0,o[n],t,n,0,r.t);t.s=0,t.clamp(),this.s!==e.s&&oA.ZERO.subTo(t,t)},oA.prototype.squareTo=function(e){let t=this.abs(),r=e.t=2*t.t;for(;--r>=0;)e[r]=0;for(r=0;r<t.t-1;++r){let o=t.am(r,t[r],e,2*r,0,1);(e[r+t.t]+=t.am(r+1,2*t[r],e,2*r+1,o,t.t-r-1))>=t.DV&&(e[r+t.t]-=t.DV,e[r+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(r,t[r],e,2*r,0,1)),e.s=0,e.clamp()},oA.prototype.divRemTo=function(e,t,r){let o=e.abs();if(o.t<=0)return;let n=this.abs();if(n.t<o.t){null!=t&&t.fromInt(0),null!=r&&this.copyTo(r);return}null===r&&(r=o_());let i=o_(),a=this.s,s=e.s,l=this.DB-oN(o[o.t-1]);l>0?(o.lShiftTo(l,i),n.lShiftTo(l,r)):(o.copyTo(i),n.copyTo(r));let u=i.t,c=i[u-1];if(0===c)return;let d=c*(1<<this.F1)+(u>1?i[u-2]>>this.F2:0),f=this.FV/d,p=(1<<this.F1)/d,h=1<<this.F2,g=r.t,v=g-u,m=null===t?o_():t;for(i.dlShiftTo(v,m),r.compareTo(m)>=0&&(r[r.t++]=1,r.subTo(m,r)),oA.ONE.dlShiftTo(u,m),m.subTo(i,i);i.t<u;)i[i.t++]=0;for(;--v>=0;){let e=r[--g]===c?this.DM:Math.floor(r[g]*f+(r[g-1]+h)*p);if((r[g]+=i.am(0,e,r,v,0,u))<e)for(i.dlShiftTo(v,m),r.subTo(m,r);r[g]<--e;)r.subTo(m,r)}null!==t&&(r.drShiftTo(u,t),a!==s&&oA.ZERO.subTo(t,t)),r.t=u,r.clamp(),l>0&&r.rShiftTo(l,r),a<0&&oA.ZERO.subTo(r,r)},oA.prototype.invDigit=function(){if(this.t<1)return 0;let e=this[0];if((1&e)==0)return 0;let t=3&e;return(t=(t=(t=(t=t*(2-(15&e)*t)&15)*(2-(255&e)*t)&255)*(2-((65535&e)*t&65535))&65535)*(2-e*t%this.DV)%this.DV)>0?this.DV-t:-t},oA.prototype.addTo=function(e,t){let r=0,o=0,n=Math.min(e.t,this.t);for(;r<n;)o+=this[r]+e[r],t[r++]=o&this.DM,o>>=this.DB;if(e.t<this.t){for(o+=e.s;r<this.t;)o+=this[r],t[r++]=o&this.DM,o>>=this.DB;o+=this.s}else{for(o+=this.s;r<e.t;)o+=e[r],t[r++]=o&this.DM,o>>=this.DB;o+=e.s}t.s=o<0?-1:0,o>0?t[r++]=o:o<-1&&(t[r++]=this.DV+o),t.t=r,t.clamp()},oA.prototype.toString=function(e){let t,r;if(this.s<0)return"-"+this.negate().toString(e);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)t=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");let o=(1<<t)-1,n=!1,i="",a=this.t,s=this.DB-a*this.DB%t;if(a-- >0)for(s<this.DB&&(r=this[a]>>s)>0&&(n=!0,i=oT(r));a>=0;)s<t?r=(this[a]&(1<<s)-1)<<t-s|this[--a]>>(s+=this.DB-t):(r=this[a]>>(s-=t)&o,s<=0&&(s+=this.DB,--a)),r>0&&(n=!0),n&&(i+=oT(r));return n?i:"0"},oA.prototype.negate=function(){let e=o_();return oA.ZERO.subTo(this,e),e},oA.prototype.abs=function(){return this.s<0?this.negate():this},oA.prototype.compareTo=function(e){let t=this.s-e.s;if(0!=t)return t;let r=this.t;if(0!=(t=r-e.t))return this.s<0?-t:t;for(;--r>=0;)if(0!=(t=this[r]-e[r]))return t;return 0},oA.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+oN(this[this.t-1]^this.s&this.DM)},oA.prototype.mod=function(e){let t=o_();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(oA.ZERO)>0&&e.subTo(t,t),t},oA.prototype.equals=function(e){return 0===this.compareTo(e)},oA.prototype.add=function(e){let t=o_();return this.addTo(e,t),t},oA.prototype.subtract=function(e){let t=o_();return this.subTo(e,t),t},oA.prototype.multiply=function(e){let t=o_();return this.multiplyTo(e,t),t},oA.prototype.divide=function(e){let t=o_();return this.divRemTo(e,t,null),t},oA.prototype.modPow=function(e,t,r){let o,n,i,a=e.bitLength(),s=oP(1),l=new oU(t);if(a<=0)return s;let u=[],c=3,d=(o=a<18?1:a<48?3:a<144?4:a<768?5:6)-1,f=(1<<o)-1;if(u[1]=l.convert(this),o>1){let e=o_();for(l.sqrTo(u[1],e);c<=f;)u[c]=o_(),l.mulTo(e,u[c-2],u[c]),c+=2}let p=e.t-1,h=!0,g=o_();for(a=oN(e[p])-1;p>=0;){for(a>=d?n=e[p]>>a-d&f:(n=(e[p]&(1<<a+1)-1)<<d-a,p>0&&(n|=e[p-1]>>this.DB+a-d)),c=o;(1&n)==0;)n>>=1,--c;if((a-=c)<0&&(a+=this.DB,--p),h)u[n].copyTo(s),h=!1;else{for(;c>1;)l.sqrTo(s,g),l.sqrTo(g,s),c-=2;c>0?l.sqrTo(s,g):(i=s,s=g,g=i),l.mulTo(g,u[n],s)}for(;p>=0&&(e[p]&1<<a)==0;)l.sqrTo(s,g),i=s,s=g,g=i,--a<0&&(a=this.DB-1,--p)}let v=l.revert(s);return r(null,v),v},oA.ZERO=oP(0),oA.ONE=oP(1);let oM=async({a:e,g:t,k:r,x:o,B:n,N:i,U:a})=>new Promise((s,l)=>{t.modPow(o,i,(t,u)=>{if(t){l(t);return}n.subtract(r.multiply(u)).modPow(e.add(a.multiply(o)),i,(e,t)=>{if(e){l(e);return}s(t.mod(i))})})}),oF={},oO={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();1===t.length&&(t=`0${t}`),oF[e]=t,oO[t]=e}let oD=e=>{if(e.length%2!=0)throw Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let o=e.slice(r,r+2).toLowerCase();if(o in oO)t[r/2]=oO[o];else throw Error(`Cannot decode unrecognized sequence ${o} as hexadecimal`)}return t};var oL=r(75887);let oB=e=>{let t="";for(let r=0;r<e.byteLength;r++)t+=oF[e[r]];return t},oW=e=>{let t=new oL.f;t.update(e);let r=oB(t.digestSync());return Array(64-r.length).join("0")+r},oz=e=>oW(oD(e)),oj=/^[89a-f]/i,oV=e=>{if(!(e instanceof oA))throw Error("Not a BigInteger");let t=0>e.compareTo(oA.ZERO),r=e.abs().toString(16);return r=r.length%2!=0?`0${r}`:r,r=oj.test(r)?`00${r}`:r,t&&(r=new oA(r.split("").map(e=>{let t=15&~parseInt(e,16);return"0123456789ABCDEF".charAt(t)}).join(""),16).add(oA.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(r=r.substring(2)),r},oG=({A:e,B:t})=>{let r=new oA(oz(oV(e)+oV(t)),16);if(r.equals(oA.ZERO))throw Error("U cannot be zero.");return r},o$=(e,t,r)=>{let o=new oL.f(t);o.update(e);let n=o.digestSync(),i=new oL.f(n);return i.update(r),i.digestSync().slice(0,16)};class oH{constructor(e,t){this.words=[];let r=e;r=this.words=r||[],void 0!==t?this.sigBytes=t:this.sigBytes=4*r.length}random(e){let t=[];for(let r=0;r<e;r+=4)t.push((0,od.MX)().getRandomValues(new Uint32Array(1))[0]);return new oH(t,e)}toString(){return function(e){let{words:t}=e,{sigBytes:r}=e,o=[];for(let e=0;e<r;e++){let r=t[e>>>2]>>>24-e%4*8&255;o.push((r>>>4).toString(16)),o.push((15&r).toString(16))}return o.join("")}(this)}}let oq=e=>oD(new oH().random(e).toString()),oK=()=>of.convert(oq(40));class oJ{constructor({userPoolName:e,a:t,g:r,A:o,N:n}){this.encoder=oI,this.userPoolName=e,this.a=t,this.g=r,this.A=o,this.N=n,this.k=new oA(oz(`${oV(n)}${oV(r)}`),16)}getRandomPassword(){if(!this.randomPassword)throw new oh.l({name:"EmptyBigIntegerRandomPassword",message:"random password is empty"});return this.randomPassword}getSaltToHashDevices(){if(!this.saltToHashDevices)throw new oh.l({name:"EmptyBigIntegersaltToHashDevices",message:"saltToHashDevices is empty"});return this.saltToHashDevices}getVerifierDevices(){if(!this.verifierDevices)throw new oh.l({name:"EmptyBigIntegerVerifierDevices",message:"verifyDevices is empty"});return this.verifierDevices}async generateHashDevice(e,t){this.randomPassword=oK();let r=oW(`${e}${t}:${this.randomPassword}`),o=oB(oq(16));return this.saltToHashDevices=oV(new oA(o,16)),new Promise((e,t)=>{this.g.modPow(new oA(oz(this.saltToHashDevices+r),16),this.N,(r,o)=>{if(r){t(r);return}this.verifierDevices=oV(o),e()})})}async getPasswordAuthenticationKey({username:e,password:t,serverBValue:r,salt:o}){if(r.mod(this.N).equals(oA.ZERO))throw Error("B cannot be zero.");let n=oG({A:this.A,B:r}),i=oW(`${this.userPoolName}${e}:${t}`),a=new oA(oz(oV(o)+i),16),s=await oM({a:this.a,g:this.g,k:this.k,x:a,B:r,N:this.N,U:n}),l=this.encoder.convert("Caldera Derived Key"),u=this.encoder.convert("\x01"),c=new Uint8Array(l.byteLength+u.byteLength);return c.set(l,0),c.set(u,l.byteLength),o$(oD(oV(s)),oD(oV(n)),c)}}let oY=async({a:e,g:t,N:r})=>new Promise((o,n)=>{t.modPow(e,r,(e,t)=>{if(e){n(e);return}if(t.mod(r).equals(oA.ZERO)){n(Error("Illegal parameter. A mod N cannot be 0."));return}o(t)})}),oZ=async e=>{let t=new oA("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),r=new oA("2",16),o=oQ(),n=await oY({a:o,g:r,N:t});return new oJ({userPoolName:e,a:o,g:r,A:n,N:t})},oQ=()=>new oA(oB(oq(128)),16),oX=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],o0=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],o1=()=>{let e=new Date,t=o0[e.getUTCDay()],r=oX[e.getUTCMonth()],o=e.getUTCDate(),n=e.getUTCHours();n<10&&(n=`0${n}`);let i=e.getUTCMinutes();i<10&&(i=`0${i}`);let a=e.getUTCSeconds();a<10&&(a=`0${a}`);let s=e.getUTCFullYear();return`${t} ${r} ${o} ${n}:${i}:${a} UTC ${s}`};var o2=r(45386);let o5=({userPoolName:e,username:t,challengeParameters:r,dateNow:o,hkdf:n})=>{let i=oI.convert(e),a=oI.convert(t),s=o3(r.SECRET_BLOCK),l=oI.convert(o),u=new Uint8Array(i.byteLength+a.byteLength+s.byteLength+l.byteLength);u.set(i,0),u.set(a,i.byteLength),u.set(s,i.byteLength+a.byteLength),u.set(l,i.byteLength+a.byteLength+s.byteLength);let c=new oL.f(n);c.update(u);let d=c.digestSync();return of.convert(d)},o3=e=>{let t="=".repeat((4-e.length%4)%4),r=(e+t).replace(/-/g,"+").replace(/_/g,"/"),o=o2.$.convert(r),n=new Uint8Array(o.length);for(let e=0;e<o.length;++e)n[e]=o.charCodeAt(e);return n};var o6=r(77352);let o4="userAttributes.";async function o8({challengeResponse:e,clientMetadata:t,session:r,username:o,config:n,tokenOrchestrator:i}){let{userPoolId:a,userPoolClientId:s}=n,l={USERNAME:o,ANSWER:e},u=await i?.getDeviceMetadata(o);u&&u.deviceKey&&(l.DEVICE_KEY=u.deviceKey);let c=(0,o6.u)({username:o,userPoolId:a,userPoolClientId:s}),d=await (0,oC.H6)({region:(0,ox.u)(a),userAgentValue:(0,oy.W)(eT.g4.ConfirmSignIn)},{ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:l,Session:r,ClientMetadata:t,ClientId:s,UserContextData:c});return"DEVICE_SRP_AUTH"===d.ChallengeName?ns({username:o,config:n,clientMetadata:t,session:d.Session,tokenOrchestrator:i}):d}async function o9({challengeResponse:e,username:t,clientMetadata:r,session:o,deviceName:n,config:i}){let{userPoolId:a,userPoolClientId:s}=i,{Session:l}=await (0,oC.fn)({region:(0,ox.u)(a),userAgentValue:(0,oy.W)(eT.g4.ConfirmSignIn)},{UserCode:e,Session:o,FriendlyDeviceName:n});return ow.dispatch({type:"SET_SIGN_IN_SESSION",value:l}),(0,oC.H6)({region:(0,ox.u)(a)},{ChallengeName:"MFA_SETUP",ChallengeResponses:{USERNAME:t},Session:l,ClientMetadata:r,ClientId:s})}async function o7({challengeResponse:e,username:t,clientMetadata:r,session:o,config:n}){let i;let{userPoolId:a,userPoolClientId:s}=n;ov("TOTP"===e||"SMS"===e,em.IncorrectMFAMethod);let l={USERNAME:t,ANSWER:(i="SMS_MFA","TOTP"===e&&(i="SOFTWARE_TOKEN_MFA"),i)},u=(0,o6.u)({username:t,userPoolId:a,userPoolClientId:s});return(0,oC.H6)({region:(0,ox.u)(a),userAgentValue:(0,oy.W)(eT.g4.ConfirmSignIn)},{ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:l,Session:o,ClientMetadata:r,ClientId:s,UserContextData:u})}async function ne({challengeResponse:e,clientMetadata:t,session:r,username:o,config:n}){let{userPoolId:i,userPoolClientId:a}=n,s=(0,o6.u)({username:o,userPoolId:i,userPoolClientId:a});return(0,oC.H6)({region:(0,ox.u)(i),userAgentValue:(0,oy.W)(eT.g4.ConfirmSignIn)},{ChallengeName:"SMS_MFA",ChallengeResponses:{USERNAME:o,SMS_MFA_CODE:e},Session:r,ClientMetadata:t,ClientId:a,UserContextData:s})}async function nt({challengeResponse:e,clientMetadata:t,session:r,username:o,config:n}){let{userPoolId:i,userPoolClientId:a}=n,s=(0,o6.u)({username:o,userPoolId:i,userPoolClientId:a});return(0,oC.H6)({region:(0,ox.u)(i),userAgentValue:(0,oy.W)(eT.g4.ConfirmSignIn)},{ChallengeName:"SOFTWARE_TOKEN_MFA",ChallengeResponses:{USERNAME:o,SOFTWARE_TOKEN_MFA_CODE:e},Session:r,ClientMetadata:t,ClientId:a,UserContextData:s})}async function nr({challengeResponse:e,clientMetadata:t,session:r,username:o,requiredAttributes:n,config:i}){let{userPoolId:a,userPoolClientId:s}=i,l={...function(e){if(!e)return{};let t={};return Object.entries(e).forEach(([e,r])=>{r&&(t[`${o4}${e}`]=r)}),t}(n),NEW_PASSWORD:e,USERNAME:o},u=(0,o6.u)({username:o,userPoolId:a,userPoolClientId:s});return(0,oC.H6)({region:(0,ox.u)(a),userAgentValue:(0,oy.W)(eT.g4.ConfirmSignIn)},{ChallengeName:"NEW_PASSWORD_REQUIRED",ChallengeResponses:l,ClientMetadata:t,Session:r,ClientId:s,UserContextData:u})}async function no(e,t,r,o,n){let{userPoolClientId:i,userPoolId:a}=o,s={USERNAME:e,PASSWORD:t},l=await n.getDeviceMetadata(e);l&&l.deviceKey&&(s.DEVICE_KEY=l.deviceKey);let u=(0,o6.u)({username:e,userPoolId:a,userPoolClientId:i}),c=await (0,oC.Cg)({region:(0,ox.u)(a),userAgentValue:(0,oy.W)(eT.g4.SignIn)},{AuthFlow:"USER_PASSWORD_AUTH",AuthParameters:s,ClientMetadata:r,ClientId:i,UserContextData:u}),d=c.ChallengeParameters?.USERNAME??c.ChallengeParameters?.USER_ID_FOR_SRP??e;return(nb(d),"DEVICE_SRP_AUTH"===c.ChallengeName)?ns({username:d,config:o,clientMetadata:r,session:c.Session,tokenOrchestrator:n}):c}async function nn(e,t,r,o,n){let{userPoolId:i,userPoolClientId:a}=o,s=i?.split("_")[1]||"",l=await oZ(s),u={USERNAME:e,SRP_A:l.A.toString(16)},c=(0,o6.u)({username:e,userPoolId:i,userPoolClientId:a}),{ChallengeParameters:d,Session:f}=await (0,oC.Cg)({region:(0,ox.u)(i),userAgentValue:(0,oy.W)(eT.g4.SignIn)},{AuthFlow:"USER_SRP_AUTH",AuthParameters:u,ClientMetadata:r,ClientId:a,UserContextData:c}),p=d?.USERNAME??e;return nb(p),ny(nu,[t,d,r,f,l,o,n],p,n)}async function ni(e,t,r,o){let{userPoolClientId:n,userPoolId:i}=r,a={USERNAME:e},s=await o.getDeviceMetadata(e);s&&s.deviceKey&&(a.DEVICE_KEY=s.deviceKey);let l=(0,o6.u)({username:e,userPoolId:i,userPoolClientId:n}),u=await (0,oC.Cg)({region:(0,ox.u)(i),userAgentValue:(0,oy.W)(eT.g4.SignIn)},{AuthFlow:"CUSTOM_AUTH",AuthParameters:a,ClientMetadata:t,ClientId:n,UserContextData:l}),c=u.ChallengeParameters?.USERNAME??e;return(nb(c),"DEVICE_SRP_AUTH"===u.ChallengeName)?ns({username:c,config:r,clientMetadata:t,session:u.Session,tokenOrchestrator:o}):u}async function na(e,t,r,o,n){(0,rd.FG)(o);let{userPoolId:i,userPoolClientId:a}=o,s=i?.split("_")[1]||"",l=await oZ(s),u={USERNAME:e,SRP_A:l.A.toString(16),CHALLENGE_NAME:"SRP_A"},c=(0,o6.u)({username:e,userPoolId:i,userPoolClientId:a}),{ChallengeParameters:d,Session:f}=await (0,oC.Cg)({region:(0,ox.u)(i),userAgentValue:(0,oy.W)(eT.g4.SignIn)},{AuthFlow:"CUSTOM_AUTH",AuthParameters:u,ClientMetadata:r,ClientId:a,UserContextData:c}),p=d?.USERNAME??e;return nb(p),ny(nu,[t,d,r,f,l,o,n],p,n)}async function ns({username:e,config:t,clientMetadata:r,session:o,tokenOrchestrator:n}){let{userPoolId:i}=t,a=t.userPoolClientId,s=await n?.getDeviceMetadata(e);(0,rf.tr)(s);let l=await oZ(s.deviceGroupKey),u={USERNAME:e,SRP_A:l.A.toString(16),DEVICE_KEY:s.deviceKey},{ChallengeParameters:c,Session:d}=await (0,oC.H6)({region:(0,ox.u)(i)},{ChallengeName:"DEVICE_SRP_AUTH",ClientId:a,ChallengeResponses:u,ClientMetadata:r,Session:o});return nl(e,c,r,d,l,t,n)}async function nl(e,t,r,o,n,{userPoolId:i,userPoolClientId:a},s){let l=await s?.getDeviceMetadata(e);(0,rf.tr)(l);let u=new oA(t?.SRP_B,16),c=new oA(t?.SALT,16),{deviceKey:d}=l,{deviceGroupKey:f}=l,p=await n.getPasswordAuthenticationKey({username:l.deviceKey,password:l.randomPassword,serverBValue:u,salt:c}),h=o1(),g={USERNAME:t?.USERNAME??e,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:h,PASSWORD_CLAIM_SIGNATURE:o5({username:d,userPoolName:f,challengeParameters:t,dateNow:h,hkdf:p}),DEVICE_KEY:d},v=(0,o6.u)({username:e,userPoolId:i,userPoolClientId:a});return(0,oC.H6)({region:(0,ox.u)(i)},{ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:a,ChallengeResponses:g,Session:o,ClientMetadata:r,UserContextData:v})}async function nu(e,t,r,o,n,i,a){let{userPoolId:s,userPoolClientId:l}=i,u=s?.split("_")[1]||"",c=new oA(t?.SRP_B,16),d=new oA(t?.SALT,16),f=t?.USER_ID_FOR_SRP;if(!f)throw new oh.l({name:"EmptyUserIdForSRPException",message:"USER_ID_FOR_SRP was not found in challengeParameters"});let p=await n.getPasswordAuthenticationKey({username:f,password:e,serverBValue:c,salt:d}),h=o1(),g={USERNAME:f,PASSWORD_CLAIM_SECRET_BLOCK:t?.SECRET_BLOCK,TIMESTAMP:h,PASSWORD_CLAIM_SIGNATURE:o5({username:f,userPoolName:u,challengeParameters:t,dateNow:h,hkdf:p})},v=await a.getDeviceMetadata(f);v&&v.deviceKey&&(g.DEVICE_KEY=v.deviceKey);let m=(0,o6.u)({username:f,userPoolId:s,userPoolClientId:l}),y=await (0,oC.H6)({region:(0,ox.u)(s)},{ChallengeName:"PASSWORD_VERIFIER",ChallengeResponses:g,ClientMetadata:r,Session:o,ClientId:l,UserContextData:m});return"DEVICE_SRP_AUTH"===y.ChallengeName?ns({username:f,config:i,clientMetadata:r,session:y.Session,tokenOrchestrator:a}):y}async function nc(e){var t;let{challengeName:r,challengeParameters:o}=e,n=rc.d.getConfig().Auth?.Cognito;switch((0,rd.FG)(n),r){case"CUSTOM_CHALLENGE":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_CUSTOM_CHALLENGE",additionalInfo:o}};case"MFA_SETUP":{let{signInSession:e,username:t}=ow.getState();if(!function(e,t){let{MFAS_CAN_SETUP:r}=e,o=nh(ng(r));return!!o&&o.includes(t)}(o,"TOTP"))throw new oh.l({name:eb.SignInException,message:`Cannot initiate MFA setup from available types: ${nh(ng(o.MFAS_CAN_SETUP))}`});let{Session:r,SecretCode:i}=await (0,oC.Vo)({region:(0,ox.u)(n.userPoolId)},{Session:e});return ow.dispatch({type:"SET_SIGN_IN_SESSION",value:r}),{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_TOTP_SETUP",totpSetupDetails:{sharedSecret:i,getSetupUri:(e,r)=>{let o=`otpauth://totp/${e}:${r??t}?secret=${i}&issuer=${e}`;return new oc.a(o)}}}}}case"NEW_PASSWORD_REQUIRED":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED",missingAttributes:(t=o.requiredAttributes)?JSON.parse(t).map(e=>e.includes(o4)?e.replace(o4,""):e):[]}};case"SELECT_MFA_TYPE":return{isSignedIn:!1,nextStep:{signInStep:"CONTINUE_SIGN_IN_WITH_MFA_SELECTION",allowedMFATypes:nh(ng(o.MFAS_CAN_CHOOSE))}};case"SMS_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_SMS_CODE",codeDeliveryDetails:{deliveryMedium:o.CODE_DELIVERY_DELIVERY_MEDIUM,destination:o.CODE_DELIVERY_DESTINATION}}};case"SOFTWARE_TOKEN_MFA":return{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_IN_WITH_TOTP_CODE"}}}throw new oh.l({name:eb.SignInException,message:`An error occurred during the sign in process. ${r} challengeName returned by the underlying service was not addressed.`})}function nd(e){return e===es.PasswordResetRequiredException?{isSignedIn:!1,nextStep:{signInStep:"RESET_PASSWORD"}}:e===es.UserNotConfirmedException?{isSignedIn:!1,nextStep:{signInStep:"CONFIRM_SIGN_UP"}}:void 0}async function nf(e,t,r,o,n,i,a,s){let l=s?.userAttributes,u=s?.friendlyDeviceName;switch(t){case"SMS_MFA":return ne({challengeResponse:o,clientMetadata:a,session:r,username:e,config:n});case"SELECT_MFA_TYPE":return o7({challengeResponse:o,clientMetadata:a,session:r,username:e,config:n});case"MFA_SETUP":return o9({challengeResponse:o,clientMetadata:a,session:r,username:e,deviceName:u,config:n});case"NEW_PASSWORD_REQUIRED":return nr({challengeResponse:o,clientMetadata:a,session:r,username:e,requiredAttributes:l,config:n});case"CUSTOM_CHALLENGE":return ny(o8,[{challengeResponse:o,clientMetadata:a,session:r,username:e,config:n,tokenOrchestrator:i}],e,i);case"SOFTWARE_TOKEN_MFA":return nt({challengeResponse:o,clientMetadata:a,session:r,username:e,config:n})}throw new oh.l({name:eb.SignInException,message:`An error occurred during the sign in process. 
		${t} challengeName returned by the underlying service was not addressed.`})}function np(e){return"SMS_MFA"===e?"SMS":"SOFTWARE_TOKEN_MFA"===e?"TOTP":void 0}function nh(e){if(e)return e.map(np).filter(Boolean)}function ng(e){return e?JSON.parse(e):[]}async function nv(){let e;try{e=await rh()}catch(e){}if(e&&e.userId&&e.username)throw new oh.l({name:om.EU,message:"There is already a signed in user.",recoverySuggestion:"Call signOut before calling signIn again."})}async function nm(e,t,r){if(!t)return;let o=e.split("_")[1]||"",n=await oZ(o),i=t?.DeviceKey,a=t?.DeviceGroupKey;try{await n.generateHashDevice(a??"",i??"")}catch(e){return}let s={Salt:of.convert(oD(n.getSaltToHashDevices())),PasswordVerifier:of.convert(oD(n.getVerifierDevices()))},l=n.getRandomPassword();try{return await (0,oC.Cq)({region:(0,ox.u)(e)},{AccessToken:r,DeviceName:await op(),DeviceKey:t?.DeviceKey,DeviceSecretVerifierConfig:s}),{deviceKey:i,deviceGroupKey:a,randomPassword:l}}catch(e){return}}async function ny(e,t,r,o){try{return await e(...t)}catch(n){if(n instanceof oh.l&&"ResourceNotFoundException"===n.name&&n.message.includes("Device does not exist."))return await o.clearDeviceMetadata(r),e(...t);throw n}}function nb(e){let{dispatch:t}=ow;t({type:"SET_USERNAME",value:e})}function nw(e){return ow.getState().username??e}var nE=r(49052),nS=r(72407),nC=r(40739);async function nx(e){if(e.AccessToken){let t,r,o;let n=(0,rd.xp)(e.AccessToken),i=1e3*(n.payload.iat||0),a=new Date().getTime();e.RefreshToken&&(r=e.RefreshToken),e.IdToken&&(t=(0,rd.xp)(e.IdToken)),e?.NewDeviceMetadata&&(o=e.NewDeviceMetadata);let s={accessToken:n,idToken:t,refreshToken:r,clockDrift:i>0?i-a:0,deviceMetadata:o,username:e.username};e?.signInDetails&&(s.signInDetails=e.signInDetails),await nC.C.setTokens({tokens:s})}else throw new nS._({message:"Invalid tokens",name:"InvalidTokens",recoverySuggestion:"Check Cognito UserPool settings"})}let nI=async()=>{try{rg.Xb.dispatch("auth",{event:"signedIn",data:await rh()},"Auth",rg.SQ)}catch(e){if(e.name===om.Jg)throw new oh.l({name:om.sX,message:"Unable to get user session following successful sign-in.",recoverySuggestion:"This most likely is due to auth tokens not being persisted. If you are using cookie store, please ensure cookies can be correctly set from your server."});throw e}};async function nA(e){let t=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(t);let{username:r,password:o,options:n}=e,i={loginId:r,authFlowType:"CUSTOM_WITHOUT_SRP"},a=n?.clientMetadata;ov(!!r,em.EmptySignInUsername),ov(!o,em.CustomAuthSignInPassword);try{let{ChallengeName:e,ChallengeParameters:o,AuthenticationResult:n,Session:s}=await ny(ni,[r,a,t,nC.C],r,nC.C),l=nw(r);if(oE({signInSession:s,username:l,challengeName:e,signInDetails:i}),n)return oS(),await nx({username:l,...n,NewDeviceMetadata:await nm(t.userPoolId,n.NewDeviceMetadata,n.AccessToken),signInDetails:i}),await nI(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return nc({challengeName:e,challengeParameters:o})}catch(t){oS(),(0,nE.R)(t);let e=nd(t.name);if(e)return e;throw t}}async function n_(e){let{username:t,password:r,options:o}=e,n={loginId:t,authFlowType:"CUSTOM_WITH_SRP"},i=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(i);let a=o?.clientMetadata;ov(!!t,em.EmptySignInUsername),ov(!!r,em.EmptySignInPassword);try{let{ChallengeName:e,ChallengeParameters:o,AuthenticationResult:s,Session:l}=await na(t,r,a,i,nC.C),u=nw(t);if(oE({signInSession:l,username:u,challengeName:e,signInDetails:n}),s)return await nx({username:u,...s,NewDeviceMetadata:await nm(i.userPoolId,s.NewDeviceMetadata,s.AccessToken),signInDetails:n}),oS(),await nI(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return nc({challengeName:e,challengeParameters:o})}catch(t){oS(),(0,nE.R)(t);let e=nd(t.name);if(e)return e;throw t}}async function nk(e){let{username:t,password:r}=e,o=rc.d.getConfig().Auth?.Cognito,n={loginId:t,authFlowType:"USER_SRP_AUTH"};(0,rd.FG)(o);let i=e.options?.clientMetadata;ov(!!t,em.EmptySignInUsername),ov(!!r,em.EmptySignInPassword);try{let{ChallengeName:e,ChallengeParameters:a,AuthenticationResult:s,Session:l}=await nn(t,r,i,o,nC.C),u=nw(t);if(oE({signInSession:l,username:u,challengeName:e,signInDetails:n}),s)return oS(),await nx({username:u,...s,NewDeviceMetadata:await nm(o.userPoolId,s.NewDeviceMetadata,s.AccessToken),signInDetails:n}),await nI(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return nc({challengeName:e,challengeParameters:a})}catch(t){oS(),(0,nE.R)(t);let e=nd(t.name);if(e)return e;throw t}}async function nR(e){let{username:t,password:r,options:o}=e,n=rc.d.getConfig().Auth?.Cognito,i={loginId:t,authFlowType:"USER_PASSWORD_AUTH"};(0,rd.FG)(n);let a=o?.clientMetadata;ov(!!t,em.EmptySignInUsername),ov(!!r,em.EmptySignInPassword);try{let{ChallengeName:e,ChallengeParameters:o,AuthenticationResult:s,Session:l}=await ny(no,[t,r,a,n,nC.C],t,nC.C),u=nw(t);if(oE({signInSession:l,username:u,challengeName:e,signInDetails:i}),s)return await nx({...s,username:u,NewDeviceMetadata:await nm(n.userPoolId,s.NewDeviceMetadata,s.AccessToken),signInDetails:i}),oS(),await nI(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return nc({challengeName:e,challengeParameters:o})}catch(t){oS(),(0,nE.R)(t);let e=nd(t.name);if(e)return e;throw t}}async function nT(e){let t=e.options?.authFlowType;switch(await nv(),t){case"USER_SRP_AUTH":default:return nk(e);case"USER_PASSWORD_AUTH":return nR(e);case"CUSTOM_WITHOUT_SRP":return nA(e);case"CUSTOM_WITH_SRP":return n_(e)}}function nP(e){return Object.entries(e).map(([e,t])=>({Name:e,Value:t}))}let nN=async()=>{throw new oh.l({name:om.MA,message:"The autoSignIn flow has not started, or has been cancelled/completed.",recoverySuggestion:"Please try to use the signIn API or log out before starting a new autoSignIn flow."})},nU=nN;function nM(e,t){let r;return o=>{r||e(...o),clearTimeout(r),r=setTimeout(()=>{r=void 0},t)}}let nF=nM(function(e,t,r){let o=Date.now(),n=setInterval(async()=>{if(Date.now()-o>18e4)clearInterval(n),nL(!1),r(new oh.l({name:om.MA,message:"The account was not confirmed on time.",recoverySuggestion:"Try to verify your account by clicking the link sent your email or phone and then login manually."})),nU=nN;else try{let r=await nT(e);"CONFIRM_SIGN_UP"!==r.nextStep.signInStep&&(t(r),clearInterval(n),nL(!1),nU=nN)}catch(e){clearInterval(n),nL(!1),r(e),nU=nN}},5e3)},300),nO=nM(nW,300),nD=!1;function nL(e){!1===e&&(a=void 0),nD=e}function nB(e){return!!e.UserConfirmed}async function nW(e,t,r){try{let r=await nT(e);t(r),nU=nN}catch(e){r(e),nU=nN}}function nz(e){return async()=>new Promise((t,r)=>{nO([e,t,r])})}async function nj(e){let{challengeResponse:t,options:r}=e,{username:o,challengeName:n,signInSession:i,signInDetails:a}=ow.getState(),s=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(s);let l=r?.clientMetadata;if(ov(!!t,em.EmptyChallengeResponse),!o||!n||!i)throw new oh.l({name:eb.SignInException,message:`
			An error occurred during the sign in process. 
			
			This most likely occurred due to:
			1. signIn was not called before confirmSignIn.
			2. signIn threw an exception.
			3. page was refreshed during the sign in flow.
			`,recoverySuggestion:"Make sure a successful call to signIn is made before calling confirmSignInand that the page is not refreshed until the sign in process is done."});try{let{Session:e,ChallengeName:u,AuthenticationResult:c,ChallengeParameters:d}=await nf(o,n,i,t,s,nC.C,l,r);if(oE({signInSession:e,username:o,challengeName:u,signInDetails:a}),c)return oS(),await nx({username:o,...c,NewDeviceMetadata:await nm(s.userPoolId,c.NewDeviceMetadata,c.AccessToken),signInDetails:a}),await nI(),{isSignedIn:!0,nextStep:{signInStep:"DONE"}};return nc({challengeName:u,challengeParameters:d})}catch(t){(0,nE.R)(t);let e=nd(t.name);if(e)return e;throw t}}async function nV(e){let{username:t}=e;ov(!!t,em.EmptyResetPasswordUsername);let r=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(r);let{userPoolClientId:o,userPoolId:n}=r,i=e.options?.clientMetadata,a=(0,o6.u)({username:t,userPoolId:n,userPoolClientId:o}),s=(await (0,oC.gF)({region:(0,ox.u)(r.userPoolId),userAgentValue:(0,oy.W)(eT.g4.ResetPassword)},{Username:t,ClientMetadata:i,ClientId:r.userPoolClientId,UserContextData:a})).CodeDeliveryDetails;return{isPasswordReset:!1,nextStep:{resetPasswordStep:"CONFIRM_RESET_PASSWORD_WITH_CODE",codeDeliveryDetails:{deliveryMedium:s?.DeliveryMedium,destination:s?.Destination,attributeName:s?.AttributeName}}}}let nG=e=>Array.isArray(e),n$=e=>e?nG(e)?Object.entries(e).map(([e,t])=>Object.keys(t)[0]):Object.keys(e):void 0,nH={async getAmplifyConfig(){let e=ou.V.getConfig(),t=e.Auth?.Cognito,{loginWith:r,userAttributes:o}=e.Auth?.Cognito??{},n=r?Object.entries(r).filter(([e,t])=>"oauth"!==e).filter(([e,t])=>!!t).map(e=>"phone"===e[0]?"phone_number":e[0]):void 0,i=n$(o),a=r?.oauth?.providers?r.oauth.providers?.map(e=>e.toString().toLowerCase()):void 0;return{...t,loginMechanisms:n,signUpAttributes:i,socialProviders:a}},getCurrentUser:rh,handleSignIn:nT,handleSignUp:async function(e){let{username:t,password:r,options:o}=e,n=rc.d.getConfig().Auth?.Cognito,i=n?.signUpVerificationMethod??"code",{clientMetadata:s,validationData:l,autoSignIn:u}=e.options??{};(0,rd.FG)(n),ov(!!t,em.EmptySignUpUsername),ov(!!r,em.EmptySignUpPassword);let c="boolean"!=typeof u?u:void 0,d={username:t,options:c};c?.authFlowType!=="CUSTOM_WITHOUT_SRP"&&(d.password=r),(c||!0===u)&&(a=t,nL(!0));let{userPoolId:f,userPoolClientId:p}=n,h=await (0,oC.y1)({region:(0,ox.u)(f),userAgentValue:(0,oy.W)(eT.g4.SignUp)},{Username:t,Password:r,UserAttributes:o?.userAttributes&&nP(o?.userAttributes),ClientMetadata:s,ValidationData:l&&nP(l),ClientId:p,UserContextData:(0,o6.u)({username:t,userPoolId:f,userPoolClientId:p})}),{UserSub:g,CodeDeliveryDetails:v}=h;if(nB(h)&&nD)return nU=nz(d),{isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"},userId:g};if(nB(h)&&!nD)return{isSignUpComplete:!0,nextStep:{signUpStep:"DONE"},userId:g};if(!nB(h)&&nD&&"code"===i)!function(e){let t=rg.qC.listen("auth-internal",async({payload:r})=>{if("confirmSignUp"===r.event){let o=r.data;o?.isSignUpComplete&&(rg.qC.dispatch("auth-internal",{event:"autoSignIn"}),nU=nz(e),t())}}),r=setTimeout(()=>{t(),nL(!1),clearTimeout(r),nU=nN},18e4)}(d);else if(!nB(h)&&nD&&"link"===i)return nU=async()=>new Promise((e,t)=>{nF([d,e,t])}),{isSignUpComplete:!1,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN",codeDeliveryDetails:{deliveryMedium:v?.DeliveryMedium,destination:v?.Destination,attributeName:v?.AttributeName}},userId:g};return{isSignUpComplete:!1,nextStep:{signUpStep:"CONFIRM_SIGN_UP",codeDeliveryDetails:{deliveryMedium:v?.DeliveryMedium,destination:v?.Destination,attributeName:v?.AttributeName}},userId:g}},handleConfirmSignIn:nj,handleConfirmSignUp:async function(e){let{username:t,confirmationCode:r,options:o}=e,n=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(n);let{userPoolId:i,userPoolClientId:s}=n,l=o?.clientMetadata;ov(!!t,em.EmptyConfirmSignUpUsername),ov(!!r,em.EmptyConfirmSignUpCode);let u=(0,o6.u)({username:t,userPoolId:i,userPoolClientId:s});return await (0,oC._f)({region:(0,ox.u)(n.userPoolId),userAgentValue:(0,oy.W)(eT.g4.ConfirmSignUp)},{Username:t,ConfirmationCode:r,ClientMetadata:l,ForceAliasCreation:o?.forceAliasCreation,ClientId:n.userPoolClientId,UserContextData:u}),new Promise((e,r)=>{try{let r={isSignUpComplete:!0,nextStep:{signUpStep:"DONE"}};if(!nD||a!==t){e(r);return}let o=rg.qC.listen("auth-internal",({payload:t})=>{"autoSignIn"===t.event&&(e({isSignUpComplete:!0,nextStep:{signUpStep:"COMPLETE_AUTO_SIGN_IN"}}),nL(!1),o())});rg.qC.dispatch("auth-internal",{event:"confirmSignUp",data:r})}catch(e){r(e)}})},handleForgotPasswordSubmit:async function(e){let t=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(t);let{userPoolClientId:r,userPoolId:o}=t,{username:n,newPassword:i}=e;ov(!!n,em.EmptyConfirmResetPasswordUsername),ov(!!i,em.EmptyConfirmResetPasswordNewPassword);let a=e.confirmationCode;ov(!!a,em.EmptyConfirmResetPasswordConfirmationCode);let s=e.options?.clientMetadata,l=(0,o6.u)({username:n,userPoolId:o,userPoolClientId:r});await (0,oC.fI)({region:(0,ox.u)(t.userPoolId),userAgentValue:(0,oy.W)(eT.g4.ConfirmResetPassword)},{Username:n,ConfirmationCode:a,Password:i,ClientMetadata:s,ClientId:t.userPoolClientId,UserContextData:l})},handleForgotPassword:nV,async validateCustomSignUp(e,t){},async validateFormPassword(e,t,r){let{password:o}=e,{password:n}=t;if(!n||!r)return null;let i=[],a=r.minLength??8;return o.length<a&&i.push(`Password must have at least ${a} characters`),r.requireLowercase&&!/[a-z]/.test(o)&&i.push("Password must have lower case letters"),r.requireUppercase&&!/[A-Z]/.test(o)&&i.push("Password must have upper case letters"),r.requireNumbers&&!/[0-9]/.test(o)&&i.push("Password must have numbers"),r.requireSpecialCharacters&&!rR(o)&&i.push("Password must have special characters"),0!==i.length?{password:i}:null},async validateConfirmPassword(e,t){let{password:r,confirm_password:o}=e,{confirm_password:n,password:i}=t;return r||o?(r||o)&&r!==o&&(n&&i||r?.length>=6&&o?.length>=6)?{confirm_password:"Your passwords must match"}:void 0:null},async validatePreferredUsername(e,t){}},nq=(e,t)=>e.Auth.fetchAuthSession(t),nK=async e=>{let t=e.getConfig().Auth?.Cognito;(0,rd.FG)(t);let{tokens:r}=await nq(e,{forceRefresh:!1});(0,rf.CA)(r);let{UserAttributes:o}=await (0,oC.PR)({region:(0,ox.u)(t.userPoolId),userAgentValue:(0,oy.W)(eT.g4.FetchUserAttributes)},{AccessToken:r.accessToken.toString()});return function(e){let t={};return e?.forEach(e=>{e.Name&&(t[e.Name]=e.Value)}),t}(o)},nJ=()=>nK(rc.d);async function nY(e){let{username:t}=e;ov(!!t,em.EmptySignUpUsername);let r=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(r);let{userPoolClientId:o,userPoolId:n}=r,i=e.options?.clientMetadata,a=(0,o6.u)({username:t,userPoolId:n,userPoolClientId:o}),{CodeDeliveryDetails:s}=await (0,oC.S5)({region:(0,ox.u)(r.userPoolId),userAgentValue:(0,oy.W)(eT.g4.ResendSignUpCode)},{Username:t,ClientMetadata:i,ClientId:r.userPoolClientId,UserContextData:a}),{DeliveryMedium:l,AttributeName:u,Destination:c}={...s};return{destination:c,deliveryMedium:l,attributeName:u||void 0}}var nZ=r(37811),nQ=r(45775),nX=r(97045),n0=r(19457),n1=r(15810);new n1.k("AuthError");let n2={oauthSignInError:{message:ey.OAUTH_ERROR,log:"Make sure Cognito Hosted UI has been configured correctly"},noConfig:{message:ey.DEFAULT_MSG,log:`
            Error: Amplify has not been configured correctly.
            This error is typically caused by one of the following scenarios:

            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point
                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information
            
            2. There might be multiple conflicting versions of amplify packages in your node_modules.
				Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)
        `},missingAuthConfig:{message:ey.DEFAULT_MSG,log:`
            Error: Amplify has not been configured correctly. 
            The configuration object is missing required auth properties.
            This error is typically caused by one of the following scenarios:

            1. Did you run \`amplify push\` after adding auth via \`amplify add auth\`?
                See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information

            2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.
        `},emptyUsername:{message:ey.EMPTY_USERNAME},invalidUsername:{message:ey.INVALID_USERNAME},emptyPassword:{message:ey.EMPTY_PASSWORD},emptyCode:{message:ey.EMPTY_CODE},signUpError:{message:ey.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:ey.NO_MFA},invalidMFA:{message:ey.INVALID_MFA},emptyChallengeResponse:{message:ey.EMPTY_CHALLENGE},noUserSession:{message:ey.NO_USER_SESSION},deviceConfig:{message:ey.DEVICE_CONFIG},networkError:{message:ey.NETWORK_ERROR},autoSignInError:{message:ey.AUTOSIGNIN_ERROR},default:{message:ey.DEFAULT_MSG}},n5=(e,t)=>new oh.l({message:e??"An error has occurred during the oauth process.",name:eb.OAuthSignInError,recoverySuggestion:t??n2.oauthSignInError.log});var n3=r(81154);(W=ew||(ew={})).NoConfig="noConfig",W.MissingAuthConfig="missingAuthConfig",W.EmptyUsername="emptyUsername",W.InvalidUsername="invalidUsername",W.EmptyPassword="emptyPassword",W.EmptyCode="emptyCode",W.SignUpError="signUpError",W.NoMFA="noMFA",W.InvalidMFA="invalidMFA",W.EmptyChallengeResponse="emptyChallengeResponse",W.NoUserSession="noUserSession",W.Default="default",W.DeviceConfig="deviceConfig",W.NetworkError="networkError",W.AutoSignInError="autoSignInError",W.OAuthSignInError="oauthSignInError";let n6=async e=>{let t=await nX.V.loadOAuthState(),r=e===t?t:void 0;if(!r)throw new oh.l({name:ew.OAuthSignInError,message:null===e?"`signInWithRedirect` has been canceled.":"An error occurred while validating the state.",recoverySuggestion:null===e?void 0:"Try to initiate an OAuth flow from Amplify"});return r},n4=async({currentUrl:e,userAgentValue:t,clientId:r,redirectUri:o,responseType:n,domain:i,preferPrivateSession:a})=>{let s=new oc.a(e),l=s.searchParams.get("error"),u=s.searchParams.get("error_description");if(l)throw n5(u??l);return"code"===n?n8({currentUrl:e,userAgentValue:t,clientId:r,redirectUri:o,domain:i,preferPrivateSession:a}):n9({currentUrl:e,redirectUri:o,preferPrivateSession:a})},n8=async({currentUrl:e,userAgentValue:t,clientId:r,redirectUri:o,domain:n,preferPrivateSession:i})=>{let a=new oc.a(e),s=a.searchParams.get("code"),l=a.searchParams.get("state");if(!s||!l)throw n5("User cancelled OAuth flow.");let u=await n6(l),c=await nX.V.loadPKCE(),d=Object.entries({grant_type:"authorization_code",code:s,client_id:r,redirect_uri:o,...c?{code_verifier:c}:{}}).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&"),{access_token:f,refresh_token:p,id_token:h,error:g,error_message:v,token_type:m,expires_in:y}=await (await fetch("https://"+n+"/oauth2/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",[n0.Mt]:t},body:d})).json();if(g)throw n5(v??g);let b=(f&&(0,rd.xp)(f).payload.username)??"username";return await nx({username:b,AccessToken:f,IdToken:h,RefreshToken:p,TokenType:m,ExpiresIn:y}),n7({redirectUri:o,state:u,preferPrivateSession:i})},n9=async({currentUrl:e,redirectUri:t,preferPrivateSession:r})=>{let{id_token:o,access_token:n,state:i,token_type:a,expires_in:s,error_description:l,error:u}=(new oc.a(e).hash??"#").substring(1).split("&").map(e=>e.split("=")).reduce((e,[t,r])=>({...e,[t]:r}),{id_token:void 0,access_token:void 0,state:void 0,token_type:void 0,expires_in:void 0,error_description:void 0,error:void 0});if(u)throw n5(l??u);if(!n)throw n5("No access token returned from OAuth flow.");let c=await n6(i),d=(n&&(0,rd.xp)(n).payload.username)??"username";return await nx({username:d,AccessToken:n,IdToken:o,TokenType:a,ExpiresIn:s}),n7({redirectUri:t,state:c,preferPrivateSession:r})},n7=async({redirectUri:e,state:t,preferPrivateSession:r})=>{await nX.V.clearOAuthData(),await nX.V.storeOAuthSignIn(!0,r),(0,n3.P)(),ie(t)&&rg.Xb.dispatch("auth",{event:"customOAuthState",data:(it(t).match(/.{2}/g)||[]).map(e=>String.fromCharCode(parseInt(e,16))).join("")},"Auth",rg.SQ),rg.Xb.dispatch("auth",{event:"signInWithRedirect"},"Auth",rg.SQ),await nI(),ir(e)},ie=e=>/-/.test(e),it=e=>e.split("-").splice(1).join("-"),ir=e=>{"undefined"!=typeof window&&void 0!==window.history&&window.history.replaceState(window.history.state,"",e)};var io=r(63701);let ii=async e=>{(0,n3.P)(),await nX.V.clearOAuthInflightData(),rg.Xb.dispatch("auth",{event:"signInWithRedirect_failure",data:{error:e}},"Auth",rg.SQ)},ia=async e=>{try{(0,rd.FG)(e),(0,rd.V0)(e),nX.V.setAuthConfig(e)}catch(e){return}if(await nX.V.loadOAuthInFlight())try{let t=window.location.href,{loginWith:r,userPoolClientId:o}=e,{domain:n,redirectSignIn:i,responseType:a}=r.oauth,s=(0,io.B)(i);await n4({currentUrl:t,clientId:o,domain:n,redirectUri:s,responseType:a,userAgentValue:(0,oy.W)(eT.g4.SignInWithRedirect)})}catch(e){await ii(e)}};(0,nZ.j)()&&rc.d[nQ.w](ia);let is={Google:"Google",Facebook:"Facebook",Amazon:"LoginWithAmazon",Apple:"SignInWithApple"};var il=r(78922);let iu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",ic=e=>{let t;let r=new Uint8Array(e);(0,od.MX)().getRandomValues(r);let o="";for(let e of r)o+=iu.charAt(e%iu.length);return{value:o,method:"S256",toCodeChallenge:()=>t||(t=function(e){let t=new oL.f;return t.update(e),of.convert(t.digestSync(),{urlSafe:!0}).replace(/=/g,"")}(o))}},id=e=>{let t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r="";for(let o=0;o<e;o++)r+=t.charAt(Math.floor(Math.random()*t.length));return r},ip=()=>id(32),ih=e=>{async function t(r){if(r.persisted&&await e.loadOAuthInFlight()){let e=n5("User cancelled OAuth flow.");await ii(e)}window.removeEventListener("pageshow",t)}window.addEventListener("pageshow",t)};async function ig(e){let t=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(t),(0,rd.V0)(t),nX.V.setAuthConfig(t),await nv();let r="COGNITO";return"string"==typeof e?.provider?r=is[e.provider]:e?.provider?.custom&&(r=e.provider.custom),iv({oauthConfig:t.loginWith.oauth,clientId:t.userPoolClientId,provider:r,customState:e?.customState,preferPrivateSession:e?.options?.preferPrivateSession})}let iv=async({oauthConfig:e,provider:t,clientId:r,customState:o,preferPrivateSession:n})=>{let{domain:i,redirectSignIn:a,responseType:s,scopes:l}=e,u=ip(),c=o?`${u}-${o.split("").map(e=>e.charCodeAt(0).toString(16).padStart(2,"0")).join("")}`:u,{value:d,method:f,toCodeChallenge:p}=ic(128),h=(0,io.B)(e.redirectSignIn);(0,nZ.j)()&&nX.V.storeOAuthInFlight(!0),nX.V.storeOAuthState(c),nX.V.storePKCE(d);let g=Object.entries({redirect_uri:h,response_type:s,client_id:r,identity_provider:t,scope:l.join(" "),state:c,..."code"===s&&{code_challenge:p(),code_challenge_method:f}}).map(([e,t])=>`${encodeURIComponent(e)}=${encodeURIComponent(t)}`).join("&"),v=`https://${i}/oauth2/authorize?${g}`;ih(nX.V);let{type:m,error:y,url:b}=await (0,il.A)(v)??{};try{if("error"===m)throw n5(String(y));"success"===m&&b&&await n4({currentUrl:b,clientId:r,domain:i,redirectUri:h,responseType:s,userAgentValue:(0,oy.W)(eT.g4.SignInWithRedirect),preferPrivateSession:n})}catch(e){throw await ii(e),e}},im=e=>({entry:["sendUpdate","clearError"],invoke:{src:"signInWithRedirect",onDone:{target:e},onError:{actions:"setRemoteError",target:e}}}),iy={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signInActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:["setMissingAttributes","setNextSignInStep"],target:"#signInActor.forceChangePassword"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signInActor.resendSignUpCode"},{actions:["setChallengeName","setMissingAttributes","setNextSignInStep","setTotpSecretCode"],target:"#signInActor.init"}],onError:{actions:"setRemoteError",target:"edit"}},ib={onDone:[{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signInActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signInActor.resolved"}},iw={onDone:[{actions:"setCodeDeliveryDetails",target:"#signUpActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}},iE={onDone:[{cond:"hasCompletedSignIn",actions:"setNextSignInStep",target:"#signUpActor.fetchUserAttributes"},{cond:"shouldConfirmSignInWithNewPassword",actions:"setNextSignInStep",target:"#signUpActor.resolved"},{cond:"shouldResetPasswordFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resetPassword"},{cond:"shouldConfirmSignUpFromSignIn",actions:"setNextSignInStep",target:"#signUpActor.resendSignUpCode"},{actions:["setNextSignInStep","setChallengeName","setMissingAttributes","setTotpSecretCode"],target:"#signUpActor.resolved"}],onError:{actions:"setRemoteError",target:"#signUpActor.resolved"}},iS={onDone:[{cond:"shouldVerifyAttribute",actions:["setShouldVerifyUserAttributeStep","setUnverifiedUserAttributes"],target:"#signUpActor.resolved"},{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}],onError:{actions:"setConfirmAttributeCompleteStep",target:"#signUpActor.resolved"}};var iC=r(17134);let ix=()=>rS({initial:"pending",id:"signOutActor",predictableActionArguments:!0,states:{pending:{tags:"pending",invoke:{src:"signOut",onDone:"resolved",onError:"rejected"}},resolved:{type:"final"},rejected:{type:"final"}}},{services:{signOut:()=>(0,iC.w)()}}),iI=e=>nq(rc.d,e),iA=async e=>{let{userAttributeKey:t,options:r}=e,o=rc.d.getConfig().Auth?.Cognito,n=r?.clientMetadata;(0,rd.FG)(o);let{tokens:i}=await iI({forceRefresh:!1});(0,rf.CA)(i);let{CodeDeliveryDetails:a}=await (0,oC.V3)({region:(0,ox.u)(o.userPoolId),userAgentValue:(0,oy.W)(eT.g4.SendUserAttributeVerificationCode)},{AccessToken:i.accessToken.toString(),ClientMetadata:n,AttributeName:t}),{DeliveryMedium:s,AttributeName:l,Destination:u}={...a};return{destination:u,deliveryMedium:s,attributeName:l}};async function i_(e){let t=rc.d.getConfig().Auth?.Cognito;(0,rd.FG)(t);let{confirmationCode:r,userAttributeKey:o}=e;ov(!!r,em.EmptyConfirmUserAttributeCode);let{tokens:n}=await iI({forceRefresh:!1});(0,rf.CA)(n),await (0,oC.tl)({region:(0,ox.u)(t.userPoolId),userAgentValue:(0,oy.W)(eT.g4.ConfirmUserAttribute)},{AccessToken:n.accessToken.toString(),AttributeName:o,Code:r})}let ik=(e,t)=>({...e.actorDoneData,step:e?.actorDoneData?.step??t,formValues:{},touched:{},validationError:{},formFields:e.config?.formFields,loginMechanisms:e.config?.loginMechanisms,passwordSettings:e.config?.passwordSettings,signUpAttributes:e.config?.signUpAttributes,socialProviders:e.config?.socialProviders}),{choose:iR,stop:iT}=eC,iP=e=>iT(e),iN={on:{INIT:{actions:"configure",target:"getConfig"},SIGN_OUT:"#authenticator.signOut"}},iU={always:{actions:"configure",target:"getConfig"}};function iM(e){let{useNextWaitConfig:t,...r}=e??{};return rS({id:"authenticator",initial:"idle",context:{user:void 0,config:{},services:nH,actorRef:void 0,hasSetup:!1},predictableActionArguments:!0,states:{idle:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"setup"},onError:{target:"setup"}}},setup:{initial:"initConfig",states:{initConfig:t?iU:iN,getConfig:{invoke:{src:"getAmplifyConfig",onDone:[{actions:["applyAmplifyConfig","setHasSetup"],cond:"hasUser",target:"#authenticator.authenticated"},{actions:["applyAmplifyConfig","setHasSetup"],target:"goToInitialState"}]}},goToInitialState:{always:[{cond:"isInitialStateSignUp",target:"#authenticator.signUpActor"},{cond:"isInitialStateResetPassword",target:"#authenticator.forgotPasswordActor"},{target:"#authenticator.signInActor"}]}}},getCurrentUser:{invoke:{src:"handleGetCurrentUser",onDone:{actions:"setUser",target:"#authenticator.authenticated"},onError:{target:"#authenticator.setup"}}},signInActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignInActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:iP("signInActor")}},on:{FORGOT_PASSWORD:"forgotPasswordActor",SIGN_IN:"signInActor",SIGN_UP:"signUpActor","done.invoke.signInActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isResetPasswordStep",actions:"setActorDoneData",target:"#authenticator.forgotPasswordActor"},{cond:"isConfirmSignUpStep",actions:"setActorDoneData",target:"#authenticator.signUpActor"}]}},signUpActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignUpActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:iP("signUpActor")}},on:{SIGN_IN:"signInActor","done.invoke.signUpActor":[{cond:"hasCompletedAttributeConfirmation",target:"#authenticator.getCurrentUser"},{cond:"isShouldConfirmUserAttributeStep",actions:"setActorDoneData",target:"#authenticator.verifyUserAttributesActor"},{cond:"isConfirmUserAttributeStep",target:"#authenticator.verifyUserAttributesActor"},{actions:"setActorDoneData",target:"#authenticator.signInActor"}]}},forgotPasswordActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnForgotPasswordActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:iP("forgotPasswordActor")}},on:{SIGN_IN:"signInActor","done.invoke.forgotPasswordActor":[{target:"#authenticator.signInActor"}]}},verifyUserAttributesActor:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnVerifyUserAttributesActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:iP("verifyUserAttributesActor")}},on:{"done.invoke.verifyUserAttributesActor":[{actions:"setActorDoneData",target:"#authenticator.getCurrentUser"}]}},authenticated:{initial:"idle",states:{idle:{on:{TOKEN_REFRESH:"refreshUser"}},refreshUser:{invoke:{src:"#authenticator.getCurrentUser",onDone:{actions:"setUser",target:"idle"},onError:{target:"#authenticator.signOut"}}}},on:{SIGN_OUT:"signOut"}},signOut:{initial:"spawnActor",states:{spawnActor:{always:{actions:"spawnSignOutActor",target:"runActor"}},runActor:{entry:"clearActorDoneData",exit:iP("signOutActor")}},on:{"done.invoke.signOutActor":{actions:"clearUser",target:"setup.getConfig"}}}},on:{SIGN_IN_WITH_REDIRECT:{target:"#authenticator.getCurrentUser"},CHANGE:{actions:"forwardToActor"},BLUR:{actions:"forwardToActor"},SUBMIT:{actions:"forwardToActor"},FEDERATED_SIGN_IN:{actions:"forwardToActor"},RESEND:{actions:"forwardToActor"},SIGN_IN:{actions:"forwardToActor"},SKIP:{actions:"forwardToActor"}}},{actions:{...on,forwardToActor:iR([{cond:"hasActor",actions:tZ(({actorRef:e})=>e)}]),setActorDoneData:tH({actorDoneData:(e,t)=>({challengeName:t.data.challengeName,codeDeliveryDetails:t.data.codeDeliveryDetails,missingAttributes:t.data.missingAttributes,remoteError:t.data.remoteError,username:t.data.username,step:t.data.step,totpSecretCode:t.data.totpSecretCode,unverifiedUserAttributes:t.data.unverifiedUserAttributes})}),applyAmplifyConfig:tH({config(e,{data:t}){let{loginMechanisms:r=t.loginMechanisms??[],signUpAttributes:o=t.signUpAttributes??[],socialProviders:n=t.socialProviders??[],initialState:i,formFields:a,passwordSettings:s=t.passwordFormat??{}}=e.config;return 0===r.length&&r.push("username"),{formFields:(a&&Object.keys(a).forEach(e=>{Object.keys(a[e]).forEach(t=>{let r=a[e][t];r.required=r.isRequired})}),a??{}),initialState:i,loginMechanisms:r,passwordSettings:s,signUpAttributes:o,socialProviders:n}}}),spawnSignInActor:tH({actorRef:(e,t)=>{let{services:r}=e;return rn((function({services:e}){return rS({id:"signInActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignIn",target:"confirmSignIn"},{cond:"shouldSetupTotp",target:"setupTotp"},{cond:({step:e})=>"CONFIRM_SIGN_IN_WITH_NEW_PASSWORD_REQUIRED"===e,actions:"setActorDoneData",target:"forceChangePassword"},{target:"signIn"}]},federatedSignIn:im("signIn"),fetchUserAttributes:{invoke:{src:"fetchUserAttributes",...ib}},resendSignUpCode:{invoke:{src:"handleResendSignUpCode",onDone:{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"},onError:{actions:"setRemoteError",target:"#signInActor.signIn"}}},resetPassword:{invoke:{src:"resetPassword",onDone:[{actions:"setCodeDeliveryDetails",target:"#signInActor.resolved"}],onError:{actions:["setRemoteError","sendUpdate"]}}},signIn:{initial:"edit",exit:"clearTouched",states:{edit:{entry:"sendUpdate",on:{CHANGE:{actions:"handleInput"},FEDERATED_SIGN_IN:{target:"#signInActor.federatedSignIn"},SUBMIT:{actions:"handleSubmit",target:"submit"}}},submit:{tags:"pending",entry:["clearError","sendUpdate","setUsernameSignIn"],exit:"clearFormValues",invoke:{src:"handleSignIn",...iy}}}},confirmSignIn:{initial:"edit",exit:["clearChallengeName","clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignIn",...iy}}}},forceChangePassword:{entry:"sendUpdate",type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{SIGN_IN:{actions:"setSignInStep",target:"#signInActor.resolved"},CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submit:{initial:"edit",entry:"clearError",states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{actions:"clearValidationError",target:"pending"},onError:{actions:"setFieldErrors",target:"edit"}}},pending:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"handleForceChangePassword",...iy}}}}}},setupTotp:{initial:"edit",exit:["clearFormValues","clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SIGN_IN:"#signInActor.signIn",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["sendUpdate","clearError"],invoke:{src:"confirmSignIn",...iy}}}},resolved:{type:"final",data:e=>({codeDeliveryDetails:e.codeDeliveryDetails,remoteError:e.remoteError,step:e.step,unverifiedUserAttributes:e.unverifiedUserAttributes,username:e.username})}}},{actions:{...on,sendUpdate:rC()},guards:oa,services:{fetchUserAttributes:async()=>nJ(),resetPassword:({username:e})=>nV({username:e}),handleResendSignUpCode:({username:e})=>nY({username:e}),handleSignIn({formValues:t,username:r}){let{password:o}=t;return e.handleSignIn({username:r,password:o})},confirmSignIn({formValues:t}){let{confirmation_code:r}=t;return e.handleConfirmSignIn({challengeResponse:r})},async handleForceChangePassword({formValues:e}){let t,{password:r,phone_number:o,country_code:n,confirm_password:i,...a}=e;return o&&(t=`${n}${o}`.replace(/[^A-Z0-9+]/gi,""),a={...a,phone_number:t}),nj({challengeResponse:r,options:{userAttributes:a}})},signInWithRedirect:(e,{data:t})=>ig(t),validateFields:async e=>ol(e.formValues,e.touched,e.passwordSettings,[nH.validateFormPassword,nH.validateConfirmPassword])}})})({services:r}).withContext(ik(e,"SIGN_IN")),{name:"signInActor"})}}),spawnSignUpActor:tH({actorRef:(e,t)=>{let{services:r}=e;return rn((function({services:e}){return rS({id:"signUpActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldConfirmSignUp",target:"confirmSignUp"},{target:"signUp"}]},autoSignIn:{tags:"pending",invoke:{src:"autoSignIn",...iE}},fetchUserAttributes:{invoke:{src:"fetchUserAttributes",...iS}},federatedSignIn:im("signUp"),resetPassword:{invoke:{src:"resetPassword",...iw}},resendSignUpCode:{tags:"pending",entry:"sendUpdate",exit:"sendUpdate",invoke:{src:"resendSignUpCode",onDone:{actions:["setCodeDeliveryDetails","sendUpdate"],target:"#signUpActor.confirmSignUp"},onError:[{cond:"isUserAlreadyConfirmed",target:"#signUpActor.resolved"},{actions:["setRemoteError","sendUpdate"]}]}},signUp:{type:"parallel",exit:"clearTouched",on:{FEDERATED_SIGN_IN:{target:"federatedSignIn"}},states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateSignUp",onDone:{actions:"clearValidationError",target:"valid"},onError:{actions:"setFieldErrors",target:"invalid"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{BLUR:{actions:"handleBlur",target:".pending"},CHANGE:{actions:"handleInput",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:["sendUpdate"],on:{SUBMIT:{actions:"handleSubmit",target:"validate"}}},validate:{entry:"sendUpdate",invoke:{src:"validateSignUp",onDone:{target:"handleSignUp",actions:"clearValidationError"},onError:{actions:"setFieldErrors",target:"idle"}}},handleSignUp:{tags:"pending",entry:["setUsernameSignUp","clearError"],exit:"sendUpdate",invoke:{src:"handleSignUp",onDone:[{cond:"hasCompletedSignUp",actions:"setNextSignUpStep",target:"#signUpActor.resolved"},{cond:"shouldAutoSignIn",actions:"setNextSignUpStep",target:"#signUpActor.autoSignIn"},{actions:["setCodeDeliveryDetails","setNextSignUpStep"],target:"#signUpActor.init"}],onError:{actions:["sendUpdate","setRemoteError"],target:"idle"}}}}}}},confirmSignUp:{initial:"edit",entry:"sendUpdate",states:{edit:{on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"},RESEND:"#signUpActor.resendSignUpCode"}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmSignUp",onDone:[{cond:"shouldAutoSignIn",actions:["setNextSignUpStep","clearFormValues"],target:"#signUpActor.autoSignIn"},{actions:"setNextSignUpStep",target:"#signUpActor.init"}],onError:{actions:["setRemoteError","sendUpdate"],target:"edit"}}}}},resolved:{type:"final",data:e=>({challengeName:e.challengeName,missingAttributes:e.missingAttributes,remoteError:e.remoteError,step:e.step,totpSecretCode:e.totpSecretCode,username:e.username,unverifiedUserAttributes:e.unverifiedUserAttributes})}}},{actions:{...on,sendUpdate:rC()},guards:oa,services:{autoSignIn:()=>nU(),fetchUserAttributes:async()=>nJ(),confirmSignUp({formValues:t,username:r}){let{confirmation_code:o}=t;return e.handleConfirmSignUp({username:r,confirmationCode:o})},resendSignUpCode:({username:e})=>nY({username:e}),signInWithRedirect:(e,{data:t})=>ig(t),handleSignUp(t){let{formValues:r,loginMechanisms:o,username:n}=t,i=rF(n,r,o[0]);return e.handleSignUp(i)},validateSignUp:async t=>ol(t.formValues,t.touched,t.passwordSettings,[e.validateFormPassword,e.validateConfirmPassword,e.validatePreferredUsername,e.validateCustomSignUp])}})})({services:r}).withContext(ik(e,"SIGN_UP")),{name:"signUpActor"})}}),spawnForgotPasswordActor:tH({actorRef:(e,t)=>{let{services:r}=e;return rn((function({services:e}){return rS({id:"forgotPasswordActor",initial:"init",predictableActionArguments:!0,states:{init:{always:[{cond:"shouldResetPassword",target:"confirmResetPassword"},{cond:"shouldConfirmResetPassword",target:"confirmResetPassword"},{target:"forgotPassword"}]},forgotPassword:{initial:"edit",entry:"sendUpdate",exit:["clearError","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},submit:{tags:"pending",entry:["sendUpdate","clearError","setUsernameForgotPassword"],invoke:{src:"handleResetPassword",onDone:{actions:["setCodeDeliveryDetails","setNextResetPasswordStep"],target:"#forgotPasswordActor.confirmResetPassword"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmResetPassword:{type:"parallel",exit:["clearFormValues","clearError","clearTouched"],states:{validation:{initial:"pending",states:{pending:{invoke:{src:"validateFields",onDone:{target:"valid",actions:"clearValidationError"},onError:{target:"invalid",actions:"setFieldErrors"}}},valid:{entry:"sendUpdate"},invalid:{entry:"sendUpdate"}},on:{CHANGE:{actions:"handleInput",target:".pending"},BLUR:{actions:"handleBlur",target:".pending"}}},submission:{initial:"idle",states:{idle:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"validate"},RESEND:"resendCode",CHANGE:{actions:"handleInput"},BLUR:{actions:"handleBlur"}}},validate:{entry:"sendUpdate",invoke:{src:"validateFields",onDone:{target:"pending",actions:"clearValidationError"},onError:{target:"idle",actions:"setFieldErrors"}}},resendCode:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleResetPassword",onDone:{target:"idle"},onError:{actions:"setRemoteError",target:"idle"}}},pending:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"handleConfirmResetPassword",onDone:[{cond:"hasCompletedResetPassword",actions:"setNextResetPasswordStep",target:"#forgotPasswordActor.resolved"},{actions:"setSignInStep",target:"#forgotPasswordActor.resolved"}],onError:{actions:"setRemoteError",target:"idle"}}}}}}},resolved:{type:"final",data:({step:e})=>({step:e})}}},{actions:{...on,sendUpdate:rC()},guards:oa,services:{handleResetPassword:({username:t})=>e.handleForgotPassword({username:t}),handleConfirmResetPassword({formValues:t,username:r}){let{confirmation_code:o,password:n}=t;return e.handleForgotPasswordSubmit({confirmationCode:o,newPassword:n,username:r})},validateFields:e=>ol(e.formValues,e.touched,e.passwordSettings,[nH.validateFormPassword,nH.validateConfirmPassword])}})})({services:r}).withContext(ik(e,"FORGOT_PASSWORD")),{name:"forgotPasswordActor"})}}),spawnVerifyUserAttributesActor:tH({actorRef:e=>rn(rS({id:"verifyUserAttributesActor",initial:"selectUserAttributes",predictableActionArguments:!0,states:{selectUserAttributes:{initial:"edit",exit:["clearError","clearTouched","sendUpdate"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:{target:"#verifyUserAttributesActor.resolved"},CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"sendUserAttributeVerificationCode",onDone:{actions:["setSelectedUserAttribute","setCodeDeliveryDetails"],target:"#verifyUserAttributesActor.confirmVerifyUserAttribute"},onError:{actions:"setRemoteError",target:"edit"}}}}},confirmVerifyUserAttribute:{initial:"edit",exit:["clearError","clearFormValues","clearTouched"],states:{edit:{entry:"sendUpdate",on:{SUBMIT:{actions:"handleSubmit",target:"submit"},SKIP:"#verifyUserAttributesActor.resolved",CHANGE:{actions:"handleInput"}}},submit:{tags:"pending",entry:["clearError","sendUpdate"],invoke:{src:"confirmVerifyUserAttribute",onDone:{actions:["setConfirmAttributeCompleteStep","clearSelectedUserAttribute"],target:"#verifyUserAttributesActor.resolved"},onError:{actions:"setRemoteError",target:"edit"}}}}},resolved:{type:"final",data:({step:e})=>({step:e})}}},{actions:{...on,sendUpdate:rC()},services:{sendUserAttributeVerificationCode:({formValues:{unverifiedAttr:e}})=>iA({userAttributeKey:e}),confirmVerifyUserAttribute:async({formValues:{confirmation_code:e},selectedUserAttribute:t})=>i_({confirmationCode:e,userAttributeKey:t}),validateFields:async e=>ol(e.formValues,e.touched,e.passwordSettings,[nH.validateFormPassword,nH.validateConfirmPassword])}}).withContext(ik(e)),{name:"verifyUserAttributesActor"})}),spawnSignOutActor:tH({actorRef:e=>rn(ix().withContext({user:e?.user}),{name:"signOutActor"})}),configure:tH((e,t)=>{let{services:o,...n}=(0,eA.Qr)(r)?t.data??{}:r;return{services:{...nH,...o},config:n}}),setHasSetup:tH({hasSetup:!0})},guards:{...oa,hasActor:({actorRef:e})=>!!e,isInitialStateSignUp:({config:e})=>"signUp"===e.initialState,isInitialStateResetPassword:({config:e})=>"forgotPassword"===e.initialState,shouldSetup:({hasSetup:e})=>!e,hasUser:({user:e})=>!!e},services:{getAmplifyConfig:({services:e})=>e.getAmplifyConfig(),handleGetCurrentUser:({services:e})=>e.getCurrentUser()}})}var iF=r(15624);let iO=e=>(t,r)=>{rv(t,r,e)};function iD({children:e}){let[t,r]=ex.useState("configuring");ex.useEffect(()=>{rh().then(()=>{r("authenticated")}).catch(()=>{r("unauthenticated")})},[]);let o=(0,ex.useContext)(iF.x),n=function(e){for(var t,r,o,n,i,a,s,l,u,c=[],d=1;d<arguments.length;d++)c[d-1]=arguments[d];var f=ru(c,2),p=f[0],h=void 0===p?{}:p,g=f[1],v=(t=ra(function(){return"function"==typeof e?e():e}),r=h.context,o=h.guards,n=h.actions,i=h.activities,a=h.services,s=h.delays,h.state,l=rl(h,["context","guards","actions","activities","services","delays","state"]),u=ra(function(){return ri(t.withConfig({context:r,guards:o,actions:n,activities:i,services:a,delays:s},function(){return rs(rs({},t.context),r)}),l)}),(0,eL.Z)(function(){Object.assign(u.machine.options.actions,n),Object.assign(u.machine.options.guards,o),Object.assign(u.machine.options.activities,i),Object.assign(u.machine.options.services,a),Object.assign(u.machine.options.delays,s)},[n,o,i,a,s]),u);return(0,ex.useEffect)(function(){if(g){var e=v.subscribe(tx(g));return function(){e.unsubscribe()}}},[g]),(0,ex.useEffect)(function(){var e=h.state;return v.start(e?t1.create(e):void 0),function(){v.stop(),v.status=H.NotStarted}},[]),v}(iM),i=(0,ex.useMemo)(()=>o||{authStatus:t,service:n},[t,o,n]),{service:a}=i;return(0,ex.useEffect)(()=>rm(a,iO({onSignIn:()=>{r("authenticated")},onSignOut:()=>{r("unauthenticated")}})),[a]),ex.createElement(iF.x.Provider,{value:i},e)}let iL=({shouldWarn:e,message:t})=>{ex.useEffect(()=>{e&&console.warn(t)},[e,t])};var iB=r(25566);let iW=({message:e,shouldWarn:t})=>{iL({message:e,shouldWarn:t&&(void 0===iB||iB&&!1)})},iz=ex.createContext(null),ij=()=>{let e=ex.useContext(iz);if(!e)throw Error("`useCustomComponents` cannot be used outside of a `CustomComponentsContext.Provider`");return e};var iV=r(59149);let iG={amazon:"Amazon",apple:"Apple",facebook:"Facebook",google:"Google"},i$={getBackToSignInText:()=>(0,iV.Iu)(iV.uF.BACK_SIGN_IN),getChangePasswordText:()=>(0,iV.Iu)(iV.uF.CHANGE_PASSWORD),getChangingText:()=>(0,iV.Iu)(iV.uF.CHANGING_PASSWORD),getConfirmText:()=>(0,iV.Iu)(iV.uF.CONFIRM),getConfirmingText:()=>(0,iV.Iu)(iV.uF.CONFIRMING),getCopyText:()=>(0,iV.Iu)(iV.uF.UPPERCASE_COPY),getHidePasswordText:()=>(0,iV.Iu)(iV.uF.HIDE_PASSWORD),getLoadingText:()=>(0,iV.Iu)(iV.uF.LOADING),getOrText:()=>(0,iV.Iu)(iV.uF.OR),getResendCodeText:()=>(0,iV.Iu)(iV.uF.RESEND_CODE),getSendCodeText:()=>(0,iV.Iu)(iV.uF.SEND_CODE),getSendingText:()=>(0,iV.Iu)(iV.uF.SENDING),getShowPasswordText:()=>(0,iV.Iu)(iV.uF.SHOW_PASSWORD),getSubmitText:()=>(0,iV.Iu)(iV.uF.SUBMIT),getSubmittingText:()=>(0,iV.Iu)(iV.uF.SUBMITTING),getSignInTabText:()=>(0,iV.Iu)(iV.uF.SIGN_IN_TAB),getSignUpTabText:()=>(0,iV.Iu)(iV.uF.CREATE_ACCOUNT),getForgotPasswordText:e=>(0,iV.Iu)(e?iV.uF.FORGOT_PASSWORD:iV.uF.FORGOT_YOUR_PASSWORD),getSigningInText:()=>(0,iV.Iu)(iV.uF.SIGNING_IN_BUTTON),getSignInText:()=>(0,iV.Iu)(iV.uF.SIGN_IN_BUTTON),getCreatingAccountText:()=>(0,iV.Iu)(iV.uF.CREATING_ACCOUNT),getCreateAccountText:()=>(0,iV.Iu)(iV.uF.CREATE_ACCOUNT),getDeliveryMessageText:e=>{let{DeliveryMedium:t,Destination:r}=e??{},o="EMAIL"===t,n=(0,iV.Iu)(iV.uF.CODE_ARRIVAL);if(!(o||"SMS"===t))return`${(0,iV.Iu)(iV.uF.CODE_SENT)}. ${n}.`;let i=o?(0,iV.Iu)(iV.uF.CODE_EMAILED):(0,iV.Iu)(iV.uF.CODE_TEXTED);return`${i} ${r}. ${n}.`},getDeliveryMethodText:e=>{let{DeliveryMedium:t}=e??{},r="EMAIL"===t;return r||"SMS"!==t?r?(0,iV.Iu)(iV.uF.WE_EMAILED):(0,iV.Iu)(iV.uF.WE_TEXTED):(0,iV.Iu)(iV.uF.WE_SENT_CODE)},getChallengeText:e=>{switch(e){case"SMS_MFA":return(0,iV.Iu)(iV.uF.CONFIRM_SMS);case"SOFTWARE_TOKEN_MFA":return(0,iV.Iu)(iV.uF.CONFIRM_TOTP);default:return(0,iV.Iu)(iV.uF.CONFIRM_MFA_DEFAULT)}},getResetYourPasswordText:()=>(0,iV.Iu)(iV.uF.RESET_PASSWORD),getSetupTotpText:()=>(0,iV.Iu)(iV.uF.SETUP_TOTP),getSetupTotpInstructionsText:()=>(0,iV.Iu)("Copy and paste the secret key below into an authenticator app and then enter the code in the text field below."),getCopiedText:()=>(0,iV.Iu)("COPIED"),getSignInWithFederationText:(e,t)=>(0,iV.Iu)(`Sign ${"signIn"===e?"In":"Up"} with ${iG[t]}`),getSkipText:()=>(0,iV.Iu)(iV.uF.SKIP),getVerifyText:()=>(0,iV.Iu)(iV.uF.VERIFY),getVerifyContactText:()=>(0,iV.Iu)(iV.uF.VERIFY_CONTACT),getAccountRecoveryInfoText:()=>(0,iV.Iu)(iV.uF.VERIFY_HEADING),getInvalidEmailText:()=>(0,iV.Iu)("Please enter a valid email"),getRequiredFieldText:()=>(0,iV.Iu)("This field is required")};var iH=r(39467),iq=r(13864),iK=r(90510),iJ=r(64924),iY=r(53605),iZ=r(17956);let iQ={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"},iX=(0,iZ.R)(({className:e,children:t,isTruncated:r,level:o=6,...n},i)=>ex.createElement(iY.G,{as:iQ[o],className:(0,iK.A)(iJ.M.Heading,(0,eA.wq)(iJ.M.Heading,o),(0,eA.T2)(iJ.M.Heading,"truncated",r),e),ref:i,...n},t));iX.displayName="Heading";let i0=(0,iZ.R)(({as:e="p",className:t,children:r,isTruncated:o,variation:n,...i},a)=>{let s=(0,iK.A)(iJ.M.Text,(0,eA.wq)(iJ.M.Text,n),(0,eA.T2)(iJ.M.Text,"truncated",o),t);return ex.createElement(iY.G,{as:e,className:s,ref:a,...i},r)});i0.displayName="Text";let i1=e=>Object.fromEntries(new FormData(e.target));function i2(){let{submitForm:e,updateBlur:t,updateForm:r}=(0,e_.Z)(e=>[e.submitForm,e.updateBlur,e.updateForm]);return{handleBlur:(0,ex.useCallback)(({target:{name:e}})=>{t({name:e})},[t]),handleChange:(0,ex.useCallback)(({target:{checked:e,name:t,type:o,value:n}})=>{r({name:t,value:"checkbox"!==o||e?n:void 0})},[r]),handleSubmit:(0,ex.useCallback)(t=>{t.preventDefault(),e(i1(t))},[e])}}var i5=r(43408);let i3=ex.createContext({});function i6(e){let t=ex.useContext(i3);if(e&&t)return t[e]}let i4=e=>{let{className:t,...r}=e;return ex.createElement(iY.G,{as:"span",width:"1em",height:"1em",className:(0,iK.A)(iJ.M.Icon,t),...r},ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20ZM16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",fill:"currentColor"})))},i8=e=>{let{className:t,...r}=e;return ex.createElement(iY.G,{as:"span",width:"1em",height:"1em",className:(0,iK.A)(iJ.M.Icon,t),...r},ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V15H13V17ZM13 13H11V7H13V13Z",fill:"currentColor"})))},i9=e=>{let{className:t,...r}=e;return ex.createElement(iY.G,{as:"span",width:"1em",height:"1em",className:(0,iK.A)(iJ.M.Icon,t),...r},ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M11 7H13V9H11V7ZM11 11H13V17H11V11ZM12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM12 20C7.59 20 4 16.41 4 12C4 7.59 7.59 4 12 4C16.41 4 20 7.59 20 12C20 16.41 16.41 20 12 20Z",fill:"currentColor"})))},i7=e=>{let{className:t,...r}=e;return ex.createElement(iY.G,{as:"span",width:"1em",height:"1em",className:(0,iK.A)(iJ.M.Icon,t),...r},ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M1 21H23L12 2L1 21ZM13 18H11V16H13V18ZM13 14H11V10H13V14Z",fill:"currentColor"})))},ae=({variation:e,ariaHidden:t,ariaLabel:r,role:o})=>{let n;let i=i6("alert");switch(e){case"info":n=i?.info??ex.createElement(i9,{"aria-hidden":t,"aria-label":r,role:o});break;case"error":n=i?.error??ex.createElement(i8,{"aria-hidden":t,"aria-label":r,role:o});break;case"warning":n=i?.warning??ex.createElement(i7,{"aria-hidden":t,"aria-label":r,role:o});break;case"success":n=i?.success??ex.createElement(i4,{"aria-hidden":t,"aria-label":r,role:o})}return n?ex.createElement("span",{className:iJ.M.AlertIcon},n):null};ae.displayName="AlertIcon";let at=e=>{let{className:t,size:r,...o}=e;return ex.createElement(iY.G,{as:"span",width:r??"1em",height:r??"1em",className:(0,iK.A)(iJ.M.Icon,t),...o},ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:r?{width:r,height:r}:void 0},ex.createElement("path",{d:"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z",fill:"currentColor"})))},ar=(0,iZ.R)(({buttonRef:e,children:t,className:r,dismissButtonLabel:o=i5.ComponentText.Alert.dismissButtonLabel,hasIcon:n=!0,heading:i,isDismissible:a=!1,onDismiss:s,variation:l,...u},c)=>{let[d,f]=ex.useState(!1),p=i6("alert"),h=ex.useCallback(()=>{f(!d),(0,eA.mf)(s)&&s()},[f,s,d]);return d?null:ex.createElement(iq.k,{className:(0,iK.A)(iJ.M.Alert,r,(0,eA.wq)(iJ.M.Alert,l)),ref:c,role:"alert",...u},n&&ex.createElement(ae,{variation:l,ariaHidden:!0}),ex.createElement(iY.G,{flex:"1"},i&&ex.createElement(iY.G,{className:iJ.M.AlertHeading},i),ex.createElement(iY.G,{className:iJ.M.AlertBody},t)),a&&ex.createElement(iH.z,{ariaLabel:o,variation:"link",className:iJ.M.AlertDismiss,onClick:h,ref:e},p?.close??ex.createElement(at,{"aria-hidden":"true"})))});ar.displayName="Alert";let ao=()=>{let{error:e}=(0,e_.Z)(e=>[e.error]);return ex.createElement(ex.Fragment,null,e?ex.createElement(ar,{variation:"error",isDismissible:!0},(0,iV.Iu)(e)):null)};var an=r(2045);let ai=(0,iZ.R)(({as:e="span",children:t,className:r,...o},n)=>ex.createElement(iY.G,{as:e,className:(0,iK.A)(iJ.M.VisuallyHidden,r),ref:n,...o},t));ai.displayName="VisuallyHidden";let aa=e=>{let{className:t,...r}=e;return ex.createElement(iY.G,{as:"span",width:"1em",height:"1em",className:(0,iK.A)(iJ.M.Icon,t),...r},ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M12 6.0002C15.79 6.0002 19.17 8.1302 20.82 11.5002C20.23 12.7202 19.4 13.7702 18.41 14.6202L19.82 16.0302C21.21 14.8002 22.31 13.2602 23 11.5002C21.27 7.1102 17 4.0002 12 4.0002C10.73 4.0002 9.51 4.2002 8.36 4.5702L10.01 6.2202C10.66 6.0902 11.32 6.0002 12 6.0002ZM10.93 7.14019L13 9.2102C13.57 9.4602 14.03 9.9202 14.28 10.4902L16.35 12.5602C16.43 12.2202 16.49 11.8602 16.49 11.4902C16.5 9.0102 14.48 7.0002 12 7.0002C11.63 7.0002 11.28 7.05019 10.93 7.14019ZM2.01 3.8702L4.69 6.5502C3.06 7.8302 1.77 9.5302 1 11.5002C2.73 15.8902 7 19.0002 12 19.0002C13.52 19.0002 14.98 18.7102 16.32 18.1802L19.74 21.6002L21.15 20.1902L3.42 2.4502L2.01 3.8702ZM9.51 11.3702L12.12 13.9802C12.08 13.9902 12.04 14.0002 12 14.0002C10.62 14.0002 9.5 12.8802 9.5 11.5002C9.5 11.4502 9.51 11.4202 9.51 11.3702V11.3702ZM6.11 7.97019L7.86 9.7202C7.63 10.2702 7.5 10.8702 7.5 11.5002C7.5 13.9802 9.52 16.0002 12 16.0002C12.63 16.0002 13.23 15.8702 13.77 15.6402L14.75 16.6202C13.87 16.8602 12.95 17.0002 12 17.0002C8.21 17.0002 4.83 14.8702 3.18 11.5002C3.88 10.0702 4.9 8.89019 6.11 7.97019Z",fill:"currentColor"})))},as=e=>{let{className:t,...r}=e;return ex.createElement(iY.G,{as:"span",width:"1em",height:"1em",className:(0,iK.A)(iJ.M.Icon,t),...r},ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M12 6C15.79 6 19.17 8.13 20.82 11.5C19.17 14.87 15.79 17 12 17C8.21 17 4.83 14.87 3.18 11.5C4.83 8.13 8.21 6 12 6ZM12 4C7 4 2.73 7.11 1 11.5C2.73 15.89 7 19 12 19C17 19 21.27 15.89 23 11.5C21.27 7.11 17 4 12 4ZM12 9C13.38 9 14.5 10.12 14.5 11.5C14.5 12.88 13.38 14 12 14C10.62 14 9.5 12.88 9.5 11.5C9.5 10.12 10.62 9 12 9ZM12 7C9.52 7 7.5 9.02 7.5 11.5C7.5 13.98 9.52 16 12 16C14.48 16 16.5 13.98 16.5 11.5C16.5 9.02 14.48 7 12 7Z",fill:"currentColor"})))},{passwordIsHidden:al,passwordIsShown:au,showPassword:ac}=i5.ComponentText.PasswordField,ad=(0,iZ.R)(({fieldType:e,passwordIsHiddenLabel:t=al,passwordIsShownLabel:r=au,showPasswordButtonLabel:o=ac,size:n,hasError:i,...a},s)=>{let l=i6("passwordField"),u=(0,iK.A)(iJ.M.FieldShowPassword,(0,eA.T2)(iJ.M.FieldShowPassword,"error",i)),c="password"===e?l?.visibility??ex.createElement(as,{"aria-hidden":"true"}):l?.visibilityOff??ex.createElement(aa,{"aria-hidden":"true"});return ex.createElement(iH.z,{"aria-checked":"password"!==e,ariaLabel:o,className:u,colorTheme:i?"error":void 0,ref:s,role:"switch",size:n,...a},ex.createElement(ai,{"aria-live":"polite"},"password"===e?t:r),c)});ad.displayName="ShowPasswordButton";let af=({descriptiveText:e,labelHidden:t,...r})=>e?ex.createElement(i0,{"data-testid":"qa-field-description",className:(0,iK.A)(iJ.M.FieldDescription,{[iJ.M.VisuallyHidden]:t}),...r},e):null;af.displayName="FieldDescription";let ap=({errorMessage:e,hasError:t,...r})=>t&&e?ex.createElement(i0,{className:iJ.M.FieldErrorMessage,...r},e):null;ap.displayName="FieldErrorMessage";let ah=(0,iZ.R)(({children:e,className:t,innerEndComponent:r,innerStartComponent:o,orientation:n="horizontal",outerEndComponent:i,outerStartComponent:a,variation:s,...l},u)=>{let c=null!=r,d=null!=o?iJ.M.FieldGroupHasInnerStart:null,f=c?iJ.M.FieldGroupHasInnerEnd:null,p=(0,iK.A)(iJ.M.FieldGroup,d,f,(0,eA.wq)(iJ.M.FieldGroup,n),t);return ex.createElement(iq.k,{className:p,ref:u,...l},a&&ex.createElement(iY.G,{className:(0,iK.A)(iJ.M.FieldGroupOuterStart,(0,eA.wq)(iJ.M.FieldGroupOuterStart,s))},a),ex.createElement(iY.G,{className:(0,iK.A)(iJ.M.FieldGroupFieldWrapper,(0,eA.wq)(iJ.M.FieldGroupFieldWrapper,n))},o&&ex.createElement(iY.G,{className:iJ.M.FieldGroupInnerStart},o),e,r&&ex.createElement(iY.G,{className:iJ.M.FieldGroupInnerEnd},r)),i&&ex.createElement(iY.G,{className:(0,iK.A)(iJ.M.FieldGroupOuterEnd,(0,eA.wq)(iJ.M.FieldGroupOuterEnd,s))},i))});ah.displayName="FieldGroup";var ag=r(53032);let av=(0,iZ.R)(({autoComplete:e,checked:t,className:r,defaultChecked:o,defaultValue:n,id:i,isDisabled:a,isReadOnly:s,isRequired:l,size:u,type:c="text",hasError:d=!1,value:f,variation:p,...h},g)=>{let v=(0,iK.A)(iJ.M.Input,iJ.M.FieldGroupControl,(0,eA.wq)(iJ.M.Input,p),(0,eA.T2)(iJ.M.Input,"error",d),(0,eA.wq)(iJ.M.Input,u),r),{isFieldsetDisabled:m}=(0,ag.w)();return ex.createElement(iY.G,{"aria-invalid":d,as:"input",autoComplete:e,checked:t,className:v,defaultChecked:o,defaultValue:n,isDisabled:m||a,id:i,readOnly:s,ref:g,required:l,type:c,value:f,...h})});av.displayName="Input";let am=(0,iZ.R)(({children:e,className:t,visuallyHidden:r,...o},n)=>ex.createElement(iY.G,{as:"label",className:(0,iK.A)(iJ.M.Label,t,{[iJ.M.VisuallyHidden]:r}),ref:n,...o},e));am.displayName="Label";var ay=r(69966);let ab=e=>e in ay.Q,aw=e=>{let t={styleProps:{},rest:{}};return Object.keys(e).forEach(r=>{ab(r)?t.styleProps={...t.styleProps,[r]:e[r]}:t.rest={...t.rest,[r]:e[r]}}),t},aE=globalThis?.document?ex.useLayoutEffect:()=>{},aS=eI["useId".toString()]||(()=>void 0),aC=0,ax=e=>{let[t,r]=ex.useState(aS());return aE(()=>{e||r(e=>e??String(aC++))},[e]),e??(t?`amplify-id-${t}`:"")},aI=e=>{let t=e.filter(e=>void 0!==e).join(" ");return t.length>0?t:void 0};"undefined"!=typeof Symbol&&(0,eA.mf)(Symbol.for)&&Symbol.for("amplify_default");let aA="error",a_="description",ak=(e,t)=>e&&t?`${e}-${t}`:void 0,aR=(0,iZ.R)((e,t)=>{let{className:r,descriptiveText:o,errorMessage:n,hasError:i=!1,id:a,innerEndComponent:s,innerStartComponent:l,label:u,labelHidden:c=!1,outerEndComponent:d,outerStartComponent:f,size:p,testId:h,variation:g,inputStyles:v,...m}=e,y=ax(a),b=ax(),w=o?ak(b,a_):void 0,E=i?ak(b,aA):void 0,S=aI([E,w]),{styleProps:C,rest:x}=aw(m);return ex.createElement(iq.k,{className:(0,iK.A)(iJ.M.Field,(0,eA.wq)(iJ.M.Field,p),iJ.M.TextField,r),testId:h,...C},ex.createElement(am,{htmlFor:y,visuallyHidden:c},u),ex.createElement(af,{id:w,labelHidden:c,descriptiveText:o}),ex.createElement(ah,{outerStartComponent:f,outerEndComponent:d,innerStartComponent:l,innerEndComponent:s,variation:g},ex.createElement(av,{"aria-describedby":S,hasError:i,id:y,ref:t,size:p,variation:g,...v,...x})),ex.createElement(ap,{id:E,hasError:i,errorMessage:n}))});aR.displayName="TextField";let aT=(0,iZ.R)(({autoComplete:e="current-password",label:t,className:r,hideShowPassword:o=!1,passwordIsHiddenLabel:n,passwordIsShownLabel:i,showPasswordButtonLabel:a,showPasswordButtonRef:s,size:l,hasError:u,...c},d)=>{let[f,p]=ex.useState("password"),h=ex.useCallback(()=>{"password"===f?p("text"):p("password")},[p,f]);return ex.createElement(aR,{autoComplete:e,outerEndComponent:o?null:ex.createElement(ad,{fieldType:f,onClick:h,passwordIsHiddenLabel:n,passwordIsShownLabel:i,ref:s,size:l,showPasswordButtonLabel:a,hasError:u}),size:l,type:f,label:t,className:(0,iK.A)(iJ.M.PasswordField,r),ref:d,hasError:u,...c})});aT.displayName="PasswordField";var aP=r(27419);let aN=e=>{let{className:t,...r}=e;return ex.createElement(iY.G,{as:"span",width:"1em",height:"1em",className:(0,iK.A)(iJ.M.Icon,t),...r},ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M16.59 8.58984L12 13.1698L7.41 8.58984L6 9.99984L12 15.9998L18 9.99984L16.59 8.58984Z",fill:"currentColor"})))},aU=(0,iZ.R)(({autoComplete:e,className:t,size:r,variation:o,value:n,defaultValue:i,hasError:a,icon:s,iconColor:l,children:u,placeholder:c,isDisabled:d,isRequired:f,isMultiple:p=!1,selectSize:h=1,...g},v)=>{let m=void 0===n&&void 0===i&&c,y=p||h>1,b=(0,iK.A)(iJ.M.Select,iJ.M.FieldGroupControl,(0,eA.wq)(iJ.M.Select,r),(0,eA.wq)(iJ.M.Select,o),(0,eA.T2)(iJ.M.Select,"error",a),(0,eA.T2)(iJ.M.Select,"expanded",y),t),w=i6("select"),{isFieldsetDisabled:E}=(0,ag.w)();return ex.createElement(iY.G,{className:iJ.M.SelectWrapper},ex.createElement(iY.G,{"aria-invalid":a,as:"select",autoComplete:e,value:n,defaultValue:m?"":i,isDisabled:E||d,multiple:p,size:h,required:f,className:b,ref:v,...g},c&&ex.createElement("option",{value:""},c),u),y?null:ex.createElement(iq.k,{className:(0,iK.A)(iJ.M.SelectIcon,(0,eA.wq)(iJ.M.SelectIcon,r)),color:l,"aria-hidden":"true"},s??w?.expand??ex.createElement(aN,null)))});aU.displayName="Select";let aM=({children:e,options:t})=>e?(t?.length&&console.warn("Amplify UI: <SelectField> component  defaults to rendering children over `options`. When using the `options` prop, omit children."),e):t?.map((e,t)=>ex.createElement("option",{label:e,value:e,key:`${e}-${t}`},e)),aF=(0,iZ.R)((e,t)=>{let{children:r,className:o,descriptiveText:n,errorMessage:i,hasError:a=!1,id:s,label:l,labelHidden:u=!1,options:c,size:d,testId:f,inputStyles:p,...h}=e,g=ax(s),v=ax(),m=n?ak(v,a_):void 0,y=a?ak(v,aA):void 0,b=aI([y,m]),{styleProps:w,rest:E}=aw(h);return ex.createElement(iq.k,{className:(0,iK.A)(iJ.M.Field,(0,eA.wq)(iJ.M.Field,d),iJ.M.SelectField,o),testId:f,...w},ex.createElement(am,{htmlFor:g,visuallyHidden:u},l),ex.createElement(af,{id:m,labelHidden:u,descriptiveText:n}),ex.createElement(aU,{"aria-describedby":b,hasError:a,id:g,ref:t,size:d,...E,...p},aM({children:r,options:c})),ex.createElement(ap,{id:y,hasError:a,errorMessage:i}))});aF.displayName="SelectField";let aO=(0,iZ.R)(({className:e,dialCodeList:t,isReadOnly:r,...o},n)=>{let i=t??aP.u,a=ex.useMemo(()=>i.map(e=>ex.createElement("option",{key:e,value:e,disabled:r},e)),[i,r]);return ex.createElement(aF,{"aria-disabled":r,autoComplete:"tel-country-code",className:(0,iK.A)(iJ.M.CountryCodeSelect,iJ.M.DialCodeSelect,e),labelHidden:!0,ref:n,...o},a)});aO.displayName="DialCodeSelect";let aD=(0,iZ.R)(({autoComplete:e="tel-national",className:t,defaultDialCode:r,dialCodeLabel:o=i5.ComponentText.PhoneNumberField.countryCodeLabel,dialCodeList:n,dialCodeName:i,dialCodeRef:a,hasError:s,isDisabled:l,isReadOnly:u,onDialCodeChange:c,onInput:d,size:f,variation:p,...h},g)=>ex.createElement(aR,{outerStartComponent:ex.createElement(aO,{defaultValue:r,dialCodeList:n,className:t,hasError:s,isDisabled:l,isReadOnly:u,label:o,name:i,onChange:c,ref:a,size:f,variation:p}),autoComplete:e,className:(0,iK.A)(iJ.M.PhoneNumberField,t),hasError:s,isDisabled:l,isReadOnly:u,onInput:d,ref:g,size:f,type:"tel",variation:p,...h}));aD.displayName="PhoneNumberField";let aL=({errors:e,id:t,dataAttr:r})=>e?.length>0?ex.createElement(iY.G,{...r?{[r]:!0}:{},id:t},e.map(e=>ex.createElement(i0,{key:e,role:"alert",variation:"error"},(0,iV.Iu)(e)))):null;function aB({autocomplete:e,dialCode:t,name:r,type:o,...n}){let{validationErrors:i}=(0,e_.Z)(({validationErrors:e})=>[e]),a=ex.useMemo(()=>(0,an.FU)(i[r]),[r,i]),s=a?.length>0,l=ax(),u=s?l:void 0;return"tel"===o?ex.createElement(ex.Fragment,null,ex.createElement(aD,{...n,name:r,defaultDialCode:t,dialCodeName:"country_code",autoComplete:e,hasError:s,"aria-describedby":u}),ex.createElement(aL,{dataAttr:"data-amplify-sign-up-errors",errors:a,id:l})):"password"===o?ex.createElement(ex.Fragment,null,ex.createElement(aT,{...n,name:r,autoCapitalize:"off",autoComplete:e,hasError:s,"aria-describedby":u}),ex.createElement(aL,{dataAttr:"data-amplify-sign-up-errors",errors:a,id:l})):ex.createElement(ex.Fragment,null,ex.createElement(aR,{...n,name:r,autoCapitalize:"off",autoComplete:e,hasError:s,type:o,"aria-describedby":u}),ex.createElement(aL,{dataAttr:"data-amplify-sign-up-errors",errors:a,id:l}))}function aW(){let{fields:e}=(0,e_.Z)(({route:e})=>[e]),t=ex.useRef(e.map((e,t)=>ex.createElement(aB,{key:t,...e}))).current;return ex.createElement(ex.Fragment,null,t)}let az=e=>"signIn"===e||"signUp";function aj({children:e,className:t,variation:r="default"}){let{route:o}=(0,e_.Z)(({route:e})=>[e]),{components:{Header:n,Footer:i}}=ij();return ex.createElement(iY.G,{className:t,"data-amplify-authenticator":"","data-variation":r},ex.createElement(iY.G,{"data-amplify-container":""},ex.createElement(n,null),ex.createElement(iY.G,{"data-amplify-router":"","data-amplify-router-content":az(o)?void 0:""},e),ex.createElement(i,null)))}let{getDeliveryMessageText:aV,getDeliveryMethodText:aG,getConfirmingText:a$,getConfirmText:aH,getResendCodeText:aq}=i$;function aK({className:e,variation:t}){let{isPending:r,resendCode:o,codeDeliveryDetails:n}=(0,e_.Z)(e=>[e.isPending,e.resendCode,e.codeDeliveryDetails]),{handleChange:i,handleSubmit:a}=i2(),{components:{ConfirmSignUp:{Header:s=aK.Header,Footer:l=aK.Footer}}}=ij();return ex.createElement(aj,{className:e,variation:t},ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignup":"",method:"post",onChange:i,onSubmit:a},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:r},ex.createElement(s,null),ex.createElement(iq.k,{direction:"column"},ex.createElement(i0,{className:"amplify-authenticator__subtitle"},aV(n)),ex.createElement(aW,null),ex.createElement(ao,null),ex.createElement(iH.z,{variation:"primary",isDisabled:r,type:"submit",loadingText:a$(),isLoading:r},aH()),ex.createElement(iH.z,{onClick:o,type:"button"},aq())),ex.createElement(l,null))))}aK.Header=()=>{let{codeDeliveryDetails:e}=(0,e_.Z)(e=>[e.codeDeliveryDetails]);return ex.createElement(iX,{level:4},aG(e))},aK.Footer=function(){return null};let{getChangePasswordText:aJ,getChangingText:aY,getBackToSignInText:aZ}=i$,aQ=({className:e,variation:t})=>{let{isPending:r,toSignIn:o}=(0,e_.Z)(e=>[e.isPending,e.toSignIn]),{handleBlur:n,handleChange:i,handleSubmit:a}=i2(),{components:{ForceNewPassword:{FormFields:s=aQ.FormFields,Header:l=aQ.Header,Footer:u=aQ.Footer}}}=ij();return ex.createElement(aj,{className:e,variation:t},ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forcenewpassword":"",method:"post",onChange:i,onSubmit:a,onBlur:n},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:r},ex.createElement(l,null),ex.createElement(s,null),ex.createElement(ao,null),ex.createElement(iH.z,{isDisabled:r,type:"submit",variation:"primary",isLoading:r,loadingText:aY()},aJ()),ex.createElement(iH.z,{onClick:o,type:"button",variation:"link",size:"small"},aZ()),ex.createElement(u,null))))};aQ.FormFields=function(){return ex.createElement(aW,null)},aQ.Header=function(){return ex.createElement(iX,{level:4},aJ())},aQ.Footer=function(){return null};var aX=r(19783);let{getConfirmText:a0,getConfirmingText:a1,getBackToSignInText:a2}=i$,a5=()=>{let{isPending:e,toSignIn:t}=(0,e_.Z)(e=>[e.isPending,e.toSignIn]);return ex.createElement(iq.k,{direction:"column"},ex.createElement(iH.z,{isDisabled:e,type:"submit",variation:"primary",isLoading:e,loadingText:a1()},a0()),ex.createElement(iH.z,{onClick:t,type:"button",variation:"link",size:"small"},a2()))},a3=new n1.k("SetupTotp-logger"),{getSetupTotpText:a6,getCopiedText:a4,getLoadingText:a8}=i$,a9=({className:e,variation:t})=>{let{totpSecretCode:r,isPending:o,username:n,QRFields:i}=(0,e_.Z)(e=>[e.isPending,e.totpSecretCode,e.username]),{handleChange:a,handleSubmit:s}=i2(),{components:{SetupTotp:{Header:l=a9.Header,Footer:u=a9.Footer}}}=ij(),[c,d]=ex.useState(!0),[f,p]=ex.useState(),[h,g]=ex.useState("COPY"),{totpIssuer:v="AWSCognito",totpUsername:m=n}=i??{},y=ex.useCallback(async()=>{try{let e=rT(v,m,r),t=await aX.toDataURL(e);p(t)}catch(e){a3.error(e)}finally{d(!1)}},[v,m,r]);return ex.useEffect(()=>{f||y()},[y,f]),ex.createElement(aj,{className:e,variation:t},ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-setup-totp":"",method:"post",onChange:a,onSubmit:s},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:o},ex.createElement(l,null),ex.createElement(iq.k,{direction:"column"},c?ex.createElement("p",null,a8(),"…"):ex.createElement("img",{"data-amplify-qrcode":!0,src:f,alt:"qr code",width:"228",height:"228"}),ex.createElement(iq.k,{"data-amplify-copy":!0},ex.createElement("div",null,r),ex.createElement(iq.k,{"data-amplify-copy-svg":!0,onClick:()=>{navigator.clipboard.writeText(r),g(a4())}},ex.createElement("div",{"data-amplify-copy-tooltip":!0},h),ex.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M16 1H4C2.9 1 2 1.9 2 3V17H4V3H16V1ZM15 5H8C6.9 5 6.01 5.9 6.01 7L6 21C6 22.1 6.89 23 7.99 23H19C20.1 23 21 22.1 21 21V11L15 5ZM8 21V7H14V12H19V21H8Z"})))),ex.createElement(aW,null),ex.createElement(ao,null)),ex.createElement(a5,null),ex.createElement(u,null))))};a9.Header=function(){return ex.createElement(iX,{level:3},a6())},a9.Footer=function(){return null};let a7=ex.createContext({groupId:"",activeTab:"",setActiveTab:()=>{}}),se=(0,iZ.R)(({className:e,value:t,children:r,onClick:o,as:n="button",role:i="tab",...a},s)=>{let{activeTab:l,setActiveTab:u,groupId:c}=ex.useContext(a7),d=t;"string"==typeof d&&(d=d.replace(" ","-"));let f=l===t;return ex.createElement(iY.G,{...a,role:i,as:n,id:`${c}-tab-${d}`,"aria-selected":f,"aria-controls":`${c}-panel-${d}`,tabIndex:f?void 0:-1,className:(0,iK.A)(iJ.M.TabsItem,(0,eA.T2)(iJ.M.TabsItem,"active",l===t),e),ref:s,onClick:e=>{(0,eA.YX)(o)&&o?.(e),u(t)}},r)});se.displayName="Tabs.Item";let st=e=>ex.isValidElement(e),sr=(0,iZ.R)(({className:e,children:t,indicatorPosition:r,spacing:o,role:n="tablist",...i},a)=>{let s=ex.useRef(null),{activeTab:l,setActiveTab:u}=ex.useContext(a7);ex.useImperativeHandle(a,()=>s.current);let c=ex.useMemo(()=>ex.Children.toArray(t).map(e=>{if(e&&st(e))return e.props.value}).filter(e=>!!e),[t]),d=c.indexOf(l),f=ex.useCallback(()=>{let e=d===c.length-1?0:d+1,t=s.current?.querySelectorAll("button")??[];for(;t[e].disabled;)e===c.length-1?e=0:e++;let r=c[e];if(r){u(r);let o=t[e];o?.focus(),o?.click()}},[d,u,c]),p=ex.useCallback(()=>{let e=0===d?c.length-1:d-1,t=s.current?.querySelectorAll("button")??[];for(;t[e].disabled;)0===e?e=c.length-1:e--;let r=c[e];if(r){u(r);let o=t[e];o?.focus(),o?.click()}},[d,u,c]),h=ex.useCallback(e=>{switch(e.key){case"ArrowLeft":e.preventDefault(),e.stopPropagation(),p();break;case"ArrowUp":case"ArrowRight":e.preventDefault(),e.stopPropagation(),f()}},[p,f]);return ex.createElement(iY.G,{...i,role:n,onKeyDown:h,className:(0,iK.A)(iJ.M.TabsList,r?(0,eA.wq)(iJ.M.TabsList,r):null,o?(0,eA.wq)(iJ.M.TabsList,o):null,e),ref:s},t)});sr.displayName="Tabs.List";let so=(0,iZ.R)(({className:e,value:t,children:r,role:o="tabpanel",...n},i)=>{let{activeTab:a,isLazy:s,groupId:l}=ex.useContext(a7);if(s&&a!==t)return null;let u=t;return"string"==typeof u&&(u=u.replace(" ","-")),ex.createElement(iY.G,{...n,role:o,id:`${l}-panel-${u}`,"aria-labelledby":`${l}-tab-${u}`,className:(0,iK.A)(iJ.M.TabsPanel,(0,eA.T2)(iJ.M.TabsPanel,"active",a===t),e),ref:i},r)});so.displayName="Tabs.Panel";let sn=(0,iZ.R)(({children:e,defaultValue:t,className:r,value:o,onValueChange:n,isLazy:i,...a},s)=>{let l=ax(),u=void 0!==o,[c,d]=ex.useState(()=>u?o:t),f=u?o:c??"",p=ex.useCallback(e=>{(0,eA.mf)(n)&&n(e),u||d(e)},[n,u]),h=ex.useMemo(()=>({activeTab:f,isLazy:i,setActiveTab:p,groupId:l}),[f,p,i,l]);return ex.createElement(a7.Provider,{value:h},ex.createElement(iY.G,{...a,ref:s,className:(0,iK.A)(r,iJ.M.Tabs)},e))});sn.displayName="Tabs.Container";let si=Object.assign((0,iZ.R)(({items:e,indicatorPosition:t,justifyContent:r,spacing:o,...n},i)=>ex.createElement(sn,{...n,ref:i},ex.createElement(sr,{indicatorPosition:t,justifyContent:r,spacing:o},e?.map(({value:e,label:t,content:r,...o})=>ex.createElement(se,{...o,key:e,value:e},t))),e?.map(({value:e,content:t,isDisabled:r})=>ex.createElement(so,{key:e,value:e,isDisabled:r},t)))),{Item:se,List:sr,Panel:so,Container:sn});si.displayName="Tabs",(z=eE||(eE={})).Apple="Apple",z.Amazon="Amazon",z.Facebook="Facebook",z.Google="Google",(j=eS||(eS={})).Email="email",j.PhoneNumber="phone_number";let sa=(0,iZ.R)(({className:e,orientation:t="horizontal",size:r,label:o,...n},i)=>{let a=(0,iK.A)(iJ.M.Divider,(0,eA.wq)(iJ.M.Divider,t),(0,eA.wq)(iJ.M.Divider,r),e);return ex.createElement(iY.G,{"aria-orientation":t,as:"hr",className:a,"data-label":o,ref:i,...n})});sa.displayName="Divider";let ss={minX:0,minY:0,width:24,height:24},sl=(0,iZ.R)(({className:e,as:t="svg",fill:r="currentColor",pathData:o,viewBox:n=ss,children:i,paths:a,...s},l)=>{let u;let c=n.minX?n.minX:ss.minX,d=n.minY?n.minY:ss.minY,f=n.width?n.width:ss.width,p=n.height?n.height:ss.height;return i&&(u=i),a&&(u=a.map((e,t)=>ex.createElement("path",{...e,key:t}))),o&&(u=ex.createElement("path",{d:o,fill:r})),ex.createElement(iY.G,{as:t,className:(0,iK.A)(iJ.M.Icon,e),ref:l,viewBox:`${c} ${d} ${f} ${p}`,...s},u)});sl.displayName="Icon";let su=()=>ex.createElement("svg",{"aria-label":"Apple icon",className:"amplify-icon federated-sign-in-icon",fill:"#000",preserveAspectRatio:"xMidYMid",stroke:"#000",strokeWidth:"0",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg"},ex.createElement("path",{d:"M747.4 535.7c-.4-68.2 30.5-119.6 92.9-157.5-34.9-50-87.7-77.5-157.3-82.8-65.9-5.2-138 38.4-164.4 38.4-27.9 0-91.7-36.6-141.9-36.6C273.1 298.8 163 379.8 163 544.6c0 48.7 8.9 99 26.7 150.8 23.8 68.2 109.6 235.3 199.1 232.6 46.8-1.1 79.9-33.2 140.8-33.2 59.1 0 89.7 33.2 141.9 33.2 90.3-1.3 167.9-153.2 190.5-221.6-121.1-57.1-114.6-167.2-114.6-170.7zm-105.1-305c50.7-60.2 46.1-115 44.6-134.7-44.8 2.6-96.6 30.5-126.1 64.8-32.5 36.8-51.6 82.3-47.5 133.6 48.4 3.7 92.6-21.2 129-63.7z"})),sc=()=>ex.createElement("svg",{"aria-label":"Google icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 256 262",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},ex.createElement("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"}),ex.createElement("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"}),ex.createElement("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"}),ex.createElement("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"})),sd=()=>ex.createElement(sl,{className:"federated-sign-in-icon",ariaLabel:"Facebook icon",viewBox:{minX:0,minY:0,width:279,height:538},pathData:"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",fill:"#1877F2"}),sf=()=>ex.createElement("svg",{"aria-label":"Amazon icon",className:"amplify-icon federated-sign-in-icon",viewBox:"0 0 243 264",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},ex.createElement("path",{d:"M230.826 208.039C227.468 203.683 208.551 205.982 200.056 206.998C197.471 207.321 197.076 205.042 199.407 203.405C214.475 192.665 239.201 195.766 242.082 199.364C244.966 202.982 241.337 228.071 227.173 240.049C225.001 241.888 222.93 240.904 223.898 238.468C227.077 230.431 234.205 212.419 230.826 208.039ZM123.769 264C71.0234 264 39.0764 241.955 14.7853 217.542C9.97339 212.706 3.71799 206.296 0.311513 200.691C-1.09773 198.372 2.59096 195.022 5.04421 196.844C35.239 219.268 79.1012 239.538 122.53 239.538C151.82 239.538 188.046 227.47 217.669 214.868C222.147 212.966 222.147 219.18 221.512 221.061C221.183 222.032 206.515 236.221 186.247 247.047C167.304 257.166 143.397 264 123.769 264Z",fill:"#F2541B"}),ex.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M142.943 111.185C142.943 124.756 143.268 136.054 136.406 148.123C130.856 157.913 122.027 163.95 112.222 163.95C98.8288 163.95 90.9806 153.772 90.9806 138.693C90.9806 109.036 117.677 103.647 142.943 103.647V111.185ZM178.166 196.081C175.858 198.15 171.635 198.22 169.914 196.894C157.974 187.684 149.89 173.688 149.89 173.688C130.706 193.156 117.127 199 92.2879 199C62.8772 199 40 180.905 40 144.729C40 116.461 55.3552 97.2408 77.2563 87.823C96.2094 79.5256 122.684 78.0173 142.943 75.7517C142.943 75.7517 144.633 53.933 138.699 45.9806C134.098 39.8163 126.272 36.9329 119.089 36.9329C106.127 36.8829 93.61 43.9051 91.1262 57.4188C90.4136 61.2829 87.5533 64.5261 84.54 64.206L51.0823 60.5922C48.5156 60.2951 45.0381 57.6639 45.8636 53.3081C53.644 12.3684 90.7373 0 123.989 0C140.983 0 163.21 4.51651 176.608 17.3349C193.597 33.1648 191.969 54.2755 191.969 77.2722V131.51C191.969 147.835 198.768 154.987 205.151 163.775C207.376 166.953 207.886 170.714 205.04 173.032C197.902 178.999 178.166 196.081 178.166 196.081Z",fill:"#F2541B"})),sp=e=>{let t;let{icon:r,provider:o,text:n}=e,{toFederatedSignIn:i}=(0,e_.Z)();return"facebook"===r?t=ex.createElement(sd,null):"google"===r?t=ex.createElement(sc,null):"amazon"===r?t=ex.createElement(sf,null):"apple"===r&&(t=ex.createElement(su,null)),ex.createElement(iH.z,{onClick:e=>{e.preventDefault(),i({provider:o})},className:"federated-sign-in-button",gap:"1rem"},t,ex.createElement(i0,{as:"span"},n))},{getSignInWithFederationText:sh,getOrText:sg}=i$;function sv(){let{route:e,socialProviders:t}=(0,e_.Z)(({route:e,socialProviders:t})=>[e,t]);return 0===t.length?null:ex.createElement(iq.k,{direction:"column",padding:"0 0 1rem 0",className:"federated-sign-in-container"},t.map(t=>{switch(t){case"amazon":return ex.createElement(sp,{icon:"amazon",key:t,provider:eE.Amazon,text:sh(e,t)});case"apple":return ex.createElement(sp,{icon:"apple",key:t,provider:eE.Apple,text:sh(e,t)});case"facebook":return ex.createElement(sp,{icon:"facebook",key:t,provider:eE.Facebook,text:sh(e,t)});case"google":return ex.createElement(sp,{icon:"google",key:t,provider:eE.Google,text:sh(e,t)});default:console.error(`Authenticator does not support ${t}. Please open an issue: https://github.com/aws-amplify/amplify-ui/issues/choose`)}}),ex.createElement(sa,{size:"small",label:sg()}))}let{getSignInText:sm,getSigningInText:sy,getForgotPasswordText:sb}=i$;function sw(){let{isPending:e}=(0,e_.Z)(e=>[e.isPending]),{handleChange:t,handleSubmit:r}=i2(),{components:{SignIn:{Header:o=sw.Header,Footer:n=sw.Footer}}}=ij();return ex.createElement(iY.G,null,ex.createElement(o,null),ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signin":"",method:"post",onSubmit:r,onChange:t},ex.createElement(sv,null),ex.createElement(iq.k,{direction:"column"},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:e},ex.createElement(ai,null,ex.createElement("legend",null,sm())),ex.createElement(aW,null)),ex.createElement(ao,null),ex.createElement(iH.z,{isDisabled:e,type:"submit",variation:"primary",isLoading:e,loadingText:sy()},sm()),ex.createElement(n,null))))}sw.Footer=()=>{let{toForgotPassword:e}=(0,e_.Z)(e=>[e.toForgotPassword]);return ex.createElement(iY.G,{"data-amplify-footer":""},ex.createElement(iH.z,{onClick:e,size:"small",variation:"link"},sb()))},sw.Header=function(){return null};let{getCreateAccountText:sE,getCreatingAccountText:sS}=i$;function sC(){let{hasValidationErrors:e,isPending:t}=(0,e_.Z)(e=>[e.hasValidationErrors,e.isPending]),{handleChange:r,handleBlur:o,handleSubmit:n}=i2(),{components:{SignUp:{Header:i=sC.Header,FormFields:a=sC.FormFields,Footer:s=sC.Footer}}}=ij();return ex.createElement(iY.G,null,ex.createElement(i,null),ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-signup":"",method:"post",onChange:r,onSubmit:n,onBlur:o},ex.createElement(sv,null),ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:t},ex.createElement(iq.k,{direction:"column"},ex.createElement(a,null),ex.createElement(ao,null)),ex.createElement(iH.z,{isDisabled:e||t,isFullWidth:!0,type:"submit",variation:"primary",isLoading:t,loadingText:sS()},sE()),ex.createElement(s,null))))}sC.Header=function(){return null},sC.FormFields=function(){return ex.createElement(aW,null)},sC.Footer=function(){return null};let{getSignInTabText:sx,getSignUpTabText:sI}=i$,sA=({className:e,hideSignUp:t,variation:r})=>{let{route:o,toSignIn:n,toSignUp:i}=(0,e_.Z)(e=>[e.route,e.toSignIn,e.toSignUp]);return ex.createElement(aj,{className:e,variation:r},t?ex.createElement(iY.G,{"data-amplify-router-content":""},"signIn"===o&&ex.createElement(sw,null)):ex.createElement(si.Container,{value:o,isLazy:!0,onValueChange:()=>"signIn"===o?i():n()},ex.createElement(si.List,{spacing:"equal",indicatorPosition:"top"},ex.createElement(si.Item,{value:"signIn"},sx()),ex.createElement(si.Item,{value:"signUp"},sI())),ex.createElement(si.Panel,{value:"signIn","data-amplify-router-content":""},ex.createElement(sw,null)),ex.createElement(si.Panel,{value:"signUp","data-amplify-router-content":""},ex.createElement(sC,null))))},{getSubmitText:s_,getSubmittingText:sk}=i$,sR=e=>{let{cancelButtonSendType:t,cancelButtonText:r,submitButtonText:o}=e,{isPending:n,resendCode:i,skipVerification:a,toSignIn:s}=(0,e_.Z)(e=>[e.isPending]),l=n?ex.createElement(ex.Fragment,null,sk(),"…"):ex.createElement(ex.Fragment,null,s_());return ex.createElement(iq.k,{direction:"column"},ex.createElement(iH.z,{variation:"primary",isDisabled:n,type:"submit"},o??l),ex.createElement(iq.k,{direction:"column",alignItems:"center"},ex.createElement(iH.z,{onClick:()=>{switch(t){case"SKIP":a();break;case"RESEND":i();break;case"SIGN_IN":s();break;default:return}},type:"button",variation:"link",size:"small"},r)))},{getAccountRecoveryInfoText:sT,getSkipText:sP}=i$,sN=({className:e,variation:t})=>{let{isPending:r}=(0,e_.Z)(e=>[e.isPending]),{handleChange:o,handleSubmit:n}=i2(),{components:{ConfirmVerifyUser:{Header:i=sN.Header,Footer:a=sN.Footer}}}=ij();return ex.createElement(aj,{className:e,variation:t},ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmverifyuser":"",method:"post",onChange:o,onSubmit:n},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:r},ex.createElement(i,null),ex.createElement(iq.k,{direction:"column"},ex.createElement(aW,null)),ex.createElement(ao,null),ex.createElement(sR,{cancelButtonText:sP(),cancelButtonSendType:"SKIP"}),ex.createElement(a,null))))};sN.Header=function(){return ex.createElement(iX,{level:3},sT())},sN.Footer=function(){return null};let sU=ex.createContext({name:"default"}),sM=()=>(0,ex.useContext)(sU),sF=(0,iZ.R)(({children:e,className:t,id:r,isDisabled:o=!1,testId:n,value:i,labelPosition:a,...s},l)=>{let{currentValue:u,defaultValue:c,name:d,hasError:f,isGroupDisabled:p=!1,isRequired:h,isReadOnly:g,onChange:v,size:m,labelPosition:y}=sM(),{isFieldsetDisabled:b}=(0,ag.w)(),w=b||p||o||g&&c!==i,E=a||y;return ex.createElement(iq.k,{as:"label",className:(0,iK.A)(iJ.M.Radio,(0,eA.T2)(iJ.M.Radio,"disabled",w),E?`amplify-label-${E}`:null,t)},e&&ex.createElement(i0,{as:"span",className:(0,iK.A)(iJ.M.RadioLabel,(0,eA.T2)(iJ.M.RadioLabel,"disabled",w))},e),ex.createElement(av,{checked:void 0!==u?i===u:void 0,className:(0,iK.A)(iJ.M.VisuallyHidden,iJ.M.RadioInput),defaultChecked:void 0!==c?i===c:void 0,hasError:f,id:r,isDisabled:w,isReadOnly:g,isRequired:h,onChange:v,ref:l,type:"radio",name:d,value:i,...s}),ex.createElement(iq.k,{"aria-hidden":"true",as:"span",className:(0,iK.A)(iJ.M.RadioButton,(0,eA.wq)(iJ.M.RadioButton,m)),testId:n}))});sF.displayName="Radio";let sO=(0,iZ.R)(({children:e,className:t,isDisabled:r,legend:o,legendHidden:n,size:i,testId:a,variation:s="plain",...l},u)=>{let{isFieldsetDisabled:c}=(0,ag.w)(),d=c||r,f=ex.useMemo(()=>({isFieldsetDisabled:d}),[d]),p=(0,iK.A)(iJ.M.Fieldset,(0,eA.wq)(iJ.M.Fieldset,s),(0,eA.wq)(iJ.M.Fieldset,i),t),h=(0,iK.A)(iJ.M.FieldsetLegend,(0,eA.wq)(iJ.M.FieldsetLegend,i),{[iJ.M.VisuallyHidden]:n});return ex.createElement(ag.P.Provider,{value:f},ex.createElement(iq.k,{as:"fieldset",className:p,ref:u,disabled:d,testId:a,...l},ex.createElement(ai,{as:"legend"},o),ex.createElement(iY.G,{as:"div","aria-hidden":"true",className:h},o),e))});sO.displayName="Fieldset";let sD=(0,iZ.R)(({children:e,className:t,defaultValue:r,descriptiveText:o,errorMessage:n,hasError:i=!1,id:a,isDisabled:s,isRequired:l,isReadOnly:u,legend:c,legendHidden:d=!1,labelPosition:f,onChange:p,name:h,size:g,testId:v,value:m,variation:y,...b},w)=>{let E=ax(a),S=ax(),C=o?ak(S,a_):void 0,x=i?ak(S,aA):void 0,I=aI([x,C]),A=ak(v,iJ.M.RadioGroup),_=ex.useMemo(()=>({currentValue:m,defaultValue:r,hasError:i,isRequired:l,isReadOnly:u,isGroupDisabled:s,onChange:p,size:g,name:h,labelPosition:f}),[r,i,s,l,u,p,g,h,m,f]);return ex.createElement(sO,{className:(0,iK.A)(iJ.M.Field,(0,eA.wq)(iJ.M.Field,g),iJ.M.RadioGroupField,t),isDisabled:s,legend:c,legendHidden:d,ref:w,role:"radiogroup",size:g,testId:v,variation:y,...b},ex.createElement(af,{id:C,labelHidden:d,descriptiveText:o}),ex.createElement(iq.k,{"aria-describedby":I,className:iJ.M.RadioGroup,id:E,testId:A},ex.createElement(sU.Provider,{value:_},e)),ex.createElement(ap,{id:x,hasError:i,errorMessage:n}))});sD.displayName="RadioGroupField";let{getSkipText:sL,getVerifyText:sB,getVerifyContactText:sW,getAccountRecoveryInfoText:sz}=i$,sj=e=>Object.entries(e).map(([e,t],r)=>{let o=rx.zn[e].label;return ex.createElement(sF,{name:"unverifiedAttr",value:e,key:e,defaultChecked:0===r},(0,iV.Iu)(o),":"," ",rk(o,t))}),sV=({className:e,variation:t})=>{let{components:{VerifyUser:{Header:r=sV.Header,Footer:o=sV.Footer}}}=ij(),{isPending:n,unverifiedUserAttributes:i}=(0,e_.Z)(({isPending:e,unverifiedUserAttributes:t})=>[e,t]),{handleChange:a,handleSubmit:s}=i2(),l=n?ex.createElement(ex.Fragment,null,"Verifying…"):ex.createElement(ex.Fragment,null,sB()),u=ex.createElement(sD,{legend:sW(),name:"verify_context",isDisabled:n,legendHidden:!0},sj(i));return ex.createElement(aj,{className:e,variation:t},ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-verifyuser":"",method:"post",onChange:a,onSubmit:s},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:n},ex.createElement(r,null),u,ex.createElement(ao,null),ex.createElement(sR,{cancelButtonText:sL(),cancelButtonSendType:"SKIP",submitButtonText:l}),ex.createElement(o,null))))};sV.Header=function(){return ex.createElement(iX,{level:3},sz())},sV.Footer=function(){return null};let{getChallengeText:sG}=i$,s$=({className:e,variation:t})=>{let{isPending:r}=(0,e_.Z)(e=>[e.isPending]),{handleChange:o,handleSubmit:n}=i2(),{components:{ConfirmSignIn:{Header:i=s$.Header,Footer:a=s$.Footer}}}=ij();return ex.createElement(aj,{className:e,variation:t},ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmsignin":"",method:"post",onChange:o,onSubmit:n},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:r},ex.createElement(i,null),ex.createElement(iq.k,{direction:"column"},ex.createElement(aW,null),ex.createElement(ao,null)),ex.createElement(a5,null),ex.createElement(a,null))))};s$.Header=function(){let{challengeName:e}=(0,e_.Z)(({challengeName:e})=>[e]);return ex.createElement(iX,{level:3},sG(e))},s$.Footer=function(){return null};let{getResendCodeText:sH,getResetYourPasswordText:sq}=i$,sK=({className:e,variation:t})=>{let{isPending:r}=(0,e_.Z)(e=>[e.isPending]),{handleBlur:o,handleChange:n,handleSubmit:i}=i2(),{components:{ConfirmResetPassword:{Header:a=sK.Header,Footer:s=sK.Footer}}}=ij();return ex.createElement(aj,{className:e,variation:t},ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-confirmresetpassword":"",method:"post",onSubmit:i,onChange:n,onBlur:o},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:r},ex.createElement(a,null),ex.createElement(iq.k,{direction:"column"},ex.createElement(aW,null)),ex.createElement(ao,null),ex.createElement(sR,{cancelButtonSendType:"RESEND",cancelButtonText:sH()}),ex.createElement(s,null))))};sK.Header=function(){let e=sq();return ex.createElement(iX,{level:3},e)},sK.Footer=function(){return null};let{getBackToSignInText:sJ,getSendingText:sY,getSendCodeText:sZ,getResetYourPasswordText:sQ}=i$,sX=({className:e,variation:t})=>{let{isPending:r}=(0,e_.Z)(e=>[e.isPending]),{handleChange:o,handleSubmit:n}=i2(),{components:{ForgotPassword:{Header:i=sX.Header,Footer:a=sX.Footer}}}=ij();return ex.createElement(aj,{className:e,variation:t},ex.createElement("form",{"data-amplify-form":"","data-amplify-authenticator-forgotpassword":"",method:"post",onChange:o,onSubmit:n},ex.createElement(iq.k,{as:"fieldset",direction:"column",isDisabled:r},ex.createElement(i,null),ex.createElement(iq.k,{direction:"column"},ex.createElement(aW,null)),ex.createElement(ao,null),ex.createElement(sR,{cancelButtonText:sJ(),cancelButtonSendType:"SIGN_IN",submitButtonText:r?ex.createElement(ex.Fragment,null,sY(),"…"):ex.createElement(ex.Fragment,null,sZ())}),ex.createElement(a,null))))};sX.Header=function(){return ex.createElement(iX,{level:3},sQ())},sX.Footer=function(){return null};let s0=e=>"signIn"===e||"signUp"===e;function s1(){return null}let s2=e=>{switch(e){case"authenticated":case"idle":case"setup":case"transition":return s1;case"confirmSignUp":return aK;case"confirmSignIn":return s$;case"setupTotp":return a9;case"signIn":case"signUp":return sA;case"forceNewPassword":return aQ;case"forgotPassword":return sX;case"confirmResetPassword":return sK;case"verifyUser":return sV;case"confirmVerifyUser":return sN;default:return console.warn(`Unhandled Authenticator route - please open an issue: ${e}`),s1}};function s5({className:e,hideSignUp:t,variation:r}){let{route:o}=(0,e_.Z)(({route:e})=>[e]),n=(0,ex.useMemo)(()=>s2(o),[o]);return ex.createElement(n,{className:e,hideSignUp:s0(o)?t:void 0,variation:r})}let s3={Header:()=>null,SignIn:{Header:sw.Header,Footer:sw.Footer},SignUp:{Header:sC.Header,FormFields:sC.FormFields,Footer:sC.Footer},ConfirmSignUp:{Header:aK.Header,Footer:aK.Footer},SetupTotp:{Header:a9.Header,Footer:a9.Footer},ConfirmResetPassword:{Header:sK.Header,Footer:sK.Footer},ConfirmSignIn:{Header:s$.Header,Footer:s$.Footer},VerifyUser:{Header:sV.Header,Footer:sV.Footer},ConfirmVerifyUser:{Header:sN.Header,Footer:sN.Footer},ForceNewPassword:{Header:aQ.Header,Footer:aQ.Footer,FormFields:aQ.FormFields},ForgotPassword:{Header:sX.Header,Footer:sX.Footer},Footer:()=>null};function s6({children:e,className:t,components:r,formFields:o,hideSignUp:n,initialState:i,loginMechanisms:a,passwordSettings:s,signUpAttributes:l,services:u,socialProviders:c,variation:d}){iW({message:"The `passwordSettings` prop has been deprecated and will be removed in a future major version of Amplify UI.",shouldWarn:!1});let{route:f,signOut:p,user:h}=(0,e_.Z)(({route:e,signOut:t,user:r})=>[e,t,r]);!function(e){let{route:t,initializeMachine:r}=(0,e_.Z)(ek),o=ex.useRef(!1);ex.useEffect(()=>{o.current||"setup"!==t||(r(e),o.current=!0)},[r,t,e])}({initialState:i,loginMechanisms:a,passwordSettings:s,services:u,signUpAttributes:l,socialProviders:c,formFields:o});let g=ex.useMemo(()=>({components:{...s3,...r}}),[r]);return"authenticated"===f||"signOut"===f?e?ex.createElement(ex.Fragment,null,(0,eA.mf)(e)?e({signOut:p,user:h}):e):null:ex.createElement(iz.Provider,{value:g},ex.createElement(s5,{className:t,hideSignUp:n,variation:d}))}function s4(e){return!function({componentName:e,packageName:t,version:r}){(0,ex.useEffect)(()=>eD({componentName:e,packageName:t,version:r}),[e,t,r])}({componentName:"Authenticator",packageName:"react",version:"6.2.0"}),ex.createElement(iD,null,ex.createElement(s6,{...e}))}s4.Provider=iD,s4.ForgotPassword=sX,s4.SetupTotp=a9,s4.SignIn=sw,s4.SignUp=sC,s4.ForceNewPassword=aQ},3583:function(e,t,r){"use strict";r.d(t,{Fg:function(){return p}});var o=r(2265),n=r(69320),i=r(69866),a=r(18854);function s(e,t){return t?`${e} { ${Object.entries(t).map(([e,t])=>`--${e}:${t}; `).join(" ")}}
`:""}function l(e,t){let r="",{_modifiers:o={},_element:n={},_vars:u,...c}=t;if(Object.keys(c).length){let[t,o]=(0,a.MO)(c,e=>e.startsWith(":")||e.startsWith("["));Object.entries(t).forEach(([t,o])=>{let{_modifiers:n={},_element:a={},_vars:l,...u}=o;r+=`${e}${t} { ${(0,i.ky)(u)} }
`+s(`${e}${t}`,l)}),r+=`${e} { ${(0,i.ky)(o)} }
`}return r+=s(e,u),Object.entries(o).forEach(([t,o])=>{o&&Object.keys(o).length&&(r+=l(`${e}--${t}`,o))}),Object.entries(n).forEach(([t,o])=>{o&&Object.keys(o).length&&(r+=l(`${e}__${t}`,o))}),r}function u({keys:e,value:t}){return e.reduce((e,r)=>({...e,[r]:{value:`{colors.${t}.${r}.value}`}}),{})}function c(e,t=n.u){let r=(0,i.ZB)([{},t,{...e,components:{}}]),{primaryColor:o,secondaryColor:s}=r;(0,a.HD)(o)&&(r.tokens.colors.primary=u({keys:Object.keys(r.tokens.colors[o]),value:o})),(0,a.HD)(s)&&(r.tokens.colors.secondary=u({keys:Object.keys(r.tokens.colors[s]),value:s}));let c=(0,i.s$)({tokens:r.tokens,setupToken:i.um}),{breakpoints:d,name:f}=r,p=`[data-amplify-theme="${f}"] {
`+(0,i.Wx)(c).map(e=>`${e.name}: ${e.value};`).join("\n")+`
}
`;if(e?.components){var h,g;let t;p+=(h=e.components,g=r.breakpoints,t="",h.forEach(({name:e,theme:r,overrides:o})=>{let n=`amplify-${e}`,i=`[data-amplify-theme="${f}"] .${n}`,s=(0,a.mf)(r)?r(c):r;t+=l(i,s),o&&o.forEach(e=>{let r=(0,a.mf)(e.theme)?e.theme(c):e.theme;if("mediaQuery"in e&&(t+=`@media (${e.mediaQuery}) {
 ${l(i,r)} 
}`),"breakpoint"in e){let o=g.values[e.breakpoint];t+=`
@media (min-width: ${o}px) {
 ${l(i,r)} 
}`}"selector"in e&&(t+=l(`${e.selector} .${n}`,r)),"colorMode"in e&&(t+=`
@media (prefers-color-scheme: ${e.colorMode}) {
${l(`[data-amplify-theme="${f}"][data-amplify-color-mode="system"] .${n}`,r)}
}
`+l(`[data-amplify-theme="${f}"][data-amplify-color-mode="${e.colorMode}"] .${n}`,r))})}),t)}let v=[];return r.animations&&(p+=function({animations:e,tokens:t}){let r="";return Object.entries(e).forEach(([e,o])=>{r+=`
  @keyframes ${e} {`,Object.entries(o).forEach(([e,o])=>{r+=`
    ${e} {
`;let n=(0,a.mf)(o)?o(t):o;r+=(0,i.ky)(n)+`
    }`}),r+=`
  }`}),r}({animations:r.animations,tokens:c})),r.overrides&&(v=r.overrides.map(e=>{let t=(0,i.s$)({tokens:e.tokens,setupToken:i.um}),o=(0,i.Wx)(t).map(e=>`${e.name}: ${e.value};`).join("\n");if("selector"in e&&(p+=`
${e.selector} {
${o}
}
`),"mediaQuery"in e&&(p+=`
@media (${e.mediaQuery}) {
  [data-amplify-theme="${f}"] {
    ${o}
  }
}
`),"breakpoint"in e){let t=r.breakpoints.values[e.breakpoint];p+=`
@media (min-width: ${t}px) {
  [data-amplify-theme="${f}"] {
    ${o}
  }
}
`}return"colorMode"in e&&(p+=`
@media (prefers-color-scheme: ${e.colorMode}) {
          [data-amplify-theme="${f}"][data-amplify-color-mode="system"] {
            ${o}
            color-scheme: ${e.colorMode};
          }
        }

[data-amplify-theme="${f}"][data-amplify-color-mode="${e.colorMode}"] {
          ${o}
          color-scheme: ${e.colorMode};
        }
`),{...e,tokens:t}})),{tokens:c,breakpoints:d,name:f,cssText:p,containerProps:({colorMode:e}={})=>({"data-amplify-theme":f,"data-amplify-color-mode":e}),overrides:v}}let d=o.createContext({theme:c(),colorMode:void 0}),f=e=>void 0===e||void 0===e.theme?c():e.theme,p=()=>f(o.useContext(d))},39467:function(e,t,r){"use strict";r.d(t,{z:function(){return h}});var o=r(2265),n=r(90510),i=r(64924),a=r(18854),s=r(17956),l=r(53032),u=r(13864),c=r(53605);let d=84*Math.PI,f=(0,s.R)(({className:e,filledColor:t,emptyColor:r,size:s,variation:l,isDeterminate:u=!1,isPercentageTextHidden:f=!1,percentage:p=0,...h},g)=>{p=Math.max(p=Math.min(p,100),0);let v=`${p}%`,m=(0,n.A)(i.M.Loader,(0,a.wq)(i.M.Loader,s),(0,a.wq)(i.M.Loader,l),(0,a.T2)(i.M.Loader,"determinate",u),e),y=o.createElement("g",null,o.createElement("line",{x1:"0",x2:"100%",y1:"50%",y2:"50%",style:{stroke:String(r)},"data-testid":"linear-empty"}),o.createElement("line",{x1:"0",x2:u?v:"100%",y1:"50%",y2:"50%",style:{stroke:u&&0===p?"none":t?String(t):void 0},"data-testid":"linear-filled"}),u?o.createElement("text",{"aria-live":"polite",className:(0,n.A)(i.M.LoaderLabel,f?i.M.VisuallyHidden:null),x:`${-1+p}%`,y:"200%"},v):null),b=o.createElement("g",null,o.createElement("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(r)},"data-testid":"circular-empty"}),o.createElement("circle",{cx:"50%",cy:"50%",r:"42%",strokeWidth:"8%",style:{stroke:String(t),strokeDasharray:u?`${d}% ${d}%`:void 0,strokeDashoffset:u?`${d-d*p/100}%`:void 0},"data-testid":"circular-filled"}),u?o.createElement("text",{"aria-live":"polite",className:(0,n.A)(i.M.LoaderLabel,f?i.M.VisuallyHidden:null),x:"130%",y:"80%"},v):null);return o.createElement(c.G,{as:"svg",className:m,ref:g,role:"img",...h},"linear"===l?y:b)});f.displayName="Loader";let p=["link","primary",void 0],h=(0,s.R)(({className:e,children:t,colorTheme:r,isFullWidth:s=!1,isDisabled:d,isLoading:h,loadingText:g="",size:v,type:m="button",variation:y,...b},w)=>{let E=p.includes(y)&&r?`${y??"outlined"}--${r}`:void 0,{isFieldsetDisabled:S}=(0,l.w)(),C=S||(d??h??b.disabled),x=(0,n.A)(i.M.Button,i.M.FieldGroupControl,(0,a.wq)(i.M.Button,y),(0,a.wq)(i.M.Button,E),(0,a.wq)(i.M.Button,v),(0,a.T2)(i.M.Button,"disabled",C),(0,a.T2)(i.M.Button,"loading",h),(0,a.T2)(i.M.Button,"fullwidth",s),e);return o.createElement(c.G,{ref:w,as:"button",className:x,isDisabled:C,type:m,...b},h?o.createElement(u.k,{as:"span",className:i.M.ButtonLoaderWrapper},o.createElement(f,{size:v}),g||null):t)});h.displayName="Button"},53032:function(e,t,r){"use strict";r.d(t,{P:function(){return n},w:function(){return i}});var o=r(2265);let n=o.createContext({isFieldsetDisabled:!1}),i=()=>o.useContext(n)},13864:function(e,t,r){"use strict";r.d(t,{k:function(){return s}});var o=r(2265),n=r(90510),i=r(64924),a=r(53605);let s=(0,r(17956).R)(({className:e,children:t,...r},s)=>o.createElement(a.G,{className:(0,n.A)(i.M.Flex,e),ref:s,...r},t));s.displayName="Flex"},53605:function(e,t,r){"use strict";r.d(t,{G:function(){return R}});var o=r(2265),n=r(69866),i=r(69966),a=r(69320),s=r(43408);let l=e=>e in s.e5,u=e=>"string"==typeof e&&0===e.length,c=e=>null==e||u(e),d=e=>Object.keys(e),f=(e,t,r)=>{if("string"!=typeof t)return t;if(t.includes(" "))return t.split(" ").map(t=>f(e,t,r)).join(" ");if(l(e)){let o=t.split("."),i=r[s.e5[e]];for(let e=0;e<o.length;e++){if(i){i=i[o[e]];continue}break}return(0,n.Dr)(i)?`var(--${(0,n.Sn)({path:[s.e5[e],...o]})})`:t}return t},p=({breakpoint:e,breakpoints:t,values:r})=>{let o=r[e];if(void 0!==o)return o;let n=d(t).sort((e,r)=>t[r]-t[e]);for(let t of n.slice(n.indexOf(e))){let e=r[t];if(void 0!==e)return e}return null},h=e=>d(e).reduce((t,r)=>r in a.u.breakpoints.values?{...t,[r]:e[r]}:t,{}),g=({breakpoint:e,breakpoints:t,values:r})=>{let o={},n=d(t).sort((e,r)=>t[e]-t[r]);return Array.isArray(r)?r.forEach((e,t)=>{o[n[t]]=e}):"object"==typeof r&&(o=h(r)),p({breakpoint:e,breakpoints:t,values:o})},v=({breakpoints:e})=>{let t=d(e).sort((t,r)=>e[r]-e[t]);return t.map((r,o)=>{let n="",i=e[r],a=t[o-1],s=a?e[a]-1:null;return i>=0&&(n=`(min-width: ${i}px)`),null!==s&&(n&&(n+=" and "),n+=`(max-width: ${s}px)`),{breakpoint:r,query:n,maxWidth:s,minWidth:i}})},m="undefined"==typeof window?o.useEffect:o.useLayoutEffect,y=({breakpoints:e,defaultBreakpoint:t})=>{let r="undefined"!=typeof window&&void 0!==window.matchMedia?window.matchMedia:null,n=o.useMemo(()=>v({breakpoints:e}),[e]),[i,a]=o.useState(t),s=o.useCallback((e,t)=>{e&&a(t)},[a]);return m(()=>{if(!r)return;let e=n.map(({query:e,breakpoint:t})=>{let o=r(e);s(o.matches,t);let n=e=>{e.matches&&a(t)};return o.addEventListener("change",n),()=>o.removeEventListener("change",n)});return()=>{e.forEach(e=>e())}},[e,a,r,n]),o.useDebugValue(i,e=>e),i};var b=r(3583),w=r(18854);let E=({value:e,propKey:t,tokens:r})=>(0,n.Dr)(e)?e.toString():(0,w.HD)(e)?(0,w.HD)(t)?f(t,e,r):e:null,S=e=>"auto"===e||"number"==typeof e&&!isNaN(e)||"string"==typeof e&&!isNaN(parseFloat(e)),C=e=>"auto"===e?"auto":`span ${e}`,x=e=>S(e)?C(e):Array.isArray(e)?e.map(e=>C(e)):"object"==typeof e&&null!=e?Object.entries(e).reduce((e,[t,r])=>({...e,[t]:C(r)}),{}):null,I=e=>{let{rowSpan:t,columnSpan:r,row:n,column:i,...a}=e,{rowFromSpanValue:s,columnFromSpanValue:l}=o.useMemo(()=>({rowFromSpanValue:x(t),columnFromSpanValue:x(r)}),[t,r]);return{row:c(n)?s:n,column:c(i)?l:i,...a}},A=e=>e in i.Q,_=({props:e={},style:t={},breakpoint:r,breakpoints:o,tokens:a})=>{let s={};return Object.keys(e).filter(t=>null!==e[t]).forEach(l=>{if(A(l)){let s=e[l];if(!s||u(s))return;let c=i.Q[l],d="";(0,n.Dr)(s)?d=s.toString():"string"==typeof s?d=f(l,s,a):"number"==typeof s?d=s:"object"==typeof s&&(d=E({propKey:l,tokens:a,value:g({values:s,breakpoint:r,breakpoints:o})})),t={...t,[c]:d}}else void 0!==e[l]&&(s[l]=e[l])}),{propStyles:t,nonStyleProps:s}},k=(e,t)=>{let{breakpoints:{values:r,defaultBreakpoint:n},tokens:i}=(0,b.Fg)(),a=y({breakpoints:r,defaultBreakpoint:n}),s=I(e);return o.useMemo(()=>_({props:s,style:t,breakpoint:a,breakpoints:r,tokens:i}),[s,t,r,a,i])},R=(0,r(17956).R)(({as:e="div",children:t,testId:r,ariaLabel:n,isDisabled:i,style:a,inert:s,...l},u)=>{let{propStyles:c,nonStyleProps:d}=k(l,a);return o.createElement(e,{"aria-label":n,"data-testid":r,disabled:i,ref:u,inert:s?"":null,style:c,...d},t)});R.displayName="View"},43408:function(e,t,r){"use strict";r.d(t,{ComponentText:function(){return o},e5:function(){return n}});let o={Alert:{dismissButtonLabel:"Dismiss alert"},Autocomplete:{emptyText:"No options found",loadingText:"Loading options..."},Collection:{searchButtonLabel:"Search",searchNoResultsFound:"No results found"},Fields:{clearButtonLabel:"Clear input"},Message:{dismissLabel:"Dismiss message"},PaginationItem:{currentPageLabel:"Page",nextLabel:"Go to next page",pageLabel:"Go to page",previousLabel:"Go to previous page"},PhoneNumberField:{countryCodeLabel:"Country code"},SearchField:{searchButtonLabel:"Search"},PasswordField:{passwordIsHidden:"Password is hidden",passwordIsShown:"Password is shown",showPassword:"Show password"},StepperField:{increaseButtonLabel:"Increase to",decreaseButtonLabel:"Decrease to"}},n={backgroundColor:"colors",borderColor:"colors",borderWidth:"borderWidths",color:"colors",borderRadius:"radii",fontSize:"fontSizes",fontWeight:"fontWeights",fontFamily:"fonts",lineHeight:"lineHeights",opacity:"opacities",boxShadow:"shadows",transform:"transforms",left:"space",right:"space",top:"space",bottom:"space",height:"space",width:"space",letterSpacing:"space",margin:"space",marginBlock:"space",marginBlockEnd:"space",marginBlockStart:"space",marginInline:"space",marginInlineEnd:"space",marginInlineStart:"space",marginLeft:"space",marginRight:"space",marginTop:"space",marginBottom:"space",maxHeight:"space",maxWidth:"space",minHeight:"space",minWidth:"space",padding:"space",paddingBlock:"space",paddingBlockEnd:"space",paddingBlockStart:"space",paddingInline:"space",paddingInlineEnd:"space",paddingInlineStart:"space",paddingLeft:"space",paddingRight:"space",paddingTop:"space",paddingBottom:"space",gap:"space",columnGap:"space",rowGap:"space"}},69966:function(e,t,r){"use strict";r.d(t,{Q:function(){return o}});let o={alignContent:"alignContent",alignItems:"alignItems",alignSelf:"alignSelf",area:"gridArea",aspectRatio:"aspectRatio",autoColumns:"gridAutoColumns",autoFlow:"gridAutoFlow",autoRows:"gridAutoRows",backgroundColor:"backgroundColor",backgroundImage:"backgroundImage",basis:"flexBasis",border:"border",borderRadius:"borderRadius",borderColor:"borderColor",borderWidth:"borderWidth",borderStyle:"borderStyle",bottom:"bottom",boxShadow:"boxShadow",color:"color",column:"gridColumn",columnEnd:"gridColumnEnd",columnGap:"columnGap",columnSpan:"gridColumn",columnStart:"gridColumnStart",direction:"flexDirection",display:"display",flex:"flex",fontFamily:"fontFamily",fontSize:"fontSize",fontStyle:"fontStyle",fontWeight:"fontWeight",gap:"gap",grow:"flexGrow",height:"height",justifyContent:"justifyContent",left:"left",letterSpacing:"letterSpacing",lineHeight:"lineHeight",margin:"margin",marginBlock:"marginBlock",marginBlockEnd:"marginBlockEnd",marginBlockStart:"marginBlockStart",marginBottom:"marginBlockEnd",marginInline:"marginInline",marginInlineEnd:"marginInlineEnd",marginInlineStart:"marginInlineStart",marginLeft:"marginInlineStart",marginRight:"marginInlineEnd",marginTop:"marginBlockStart",maxHeight:"maxHeight",maxWidth:"maxWidth",minHeight:"minHeight",minWidth:"minWidth",objectFit:"objectFit",objectPosition:"objectPosition",opacity:"opacity",order:"order",overflow:"overflow",padding:"padding",paddingBlock:"paddingBlock",paddingBlockEnd:"paddingBlockEnd",paddingBlockStart:"paddingBlockStart",paddingBottom:"paddingBlockEnd",paddingInline:"paddingInline",paddingInlineEnd:"paddingInlineEnd",paddingInlineStart:"paddingInlineStart",paddingLeft:"paddingInlineStart",paddingRight:"paddingInlineEnd",paddingTop:"paddingBlockStart",position:"position",resize:"resize",right:"right",row:"gridRow",rowEnd:"gridRowEnd",rowGap:"rowGap",rowSpan:"gridRow",rowStart:"gridRowStart",shrink:"flexShrink",templateAreas:"gridTemplateAreas",templateColumns:"gridTemplateColumns",templateRows:"gridTemplateRows",textAlign:"textAlign",textDecoration:"textDecoration",textTransform:"textTransform",top:"top",transform:"transform",transformOrigin:"transformOrigin",width:"width",whiteSpace:"whiteSpace",wrap:"flexWrap"};Object.keys(o)},17956:function(e,t,r){"use strict";r.d(t,{R:function(){return n}});var o=r(2265);let n=e=>o.forwardRef(e)},33720:function(e,t,r){"use strict";r.d(t,{Xo:function(){return n},zn:function(){return o}});let o={birthdate:{label:"Birthdate",placeholder:"Enter your Birthdate",type:"date",autocomplete:"bday",isRequired:!0},confirmation_code:{label:"Confirmation Code",placeholder:"Enter your Confirmation Code",type:"text",autocomplete:"one-time-code",isRequired:!0},confirm_password:{label:"Confirm Password",placeholder:"Please confirm your Password",type:"password",autocomplete:"new-password",isRequired:!0},email:{label:"Email",placeholder:"Enter your Email",type:"email",autocomplete:"username",isRequired:!0},family_name:{label:"Family Name",placeholder:"Enter your Family Name",type:"text",autocomplete:"family-name",isRequired:!0},given_name:{label:"Given Name",placeholder:"Enter your Given Name",type:"text",autocomplete:"given-name",isRequired:!0},middle_name:{label:"Middle Name",placeholder:"Enter your Middle Name",type:"text",autocomplete:"additional-name",isRequired:!0},name:{label:"Name",placeholder:"Enter your Name",type:"text",autocomplete:"name",isRequired:!0},nickname:{label:"Nickname",placeholder:"Enter your Nickname",type:"text",autocomplete:"tel",isRequired:!0},password:{label:"Password",placeholder:"Enter your Password",type:"password",autocomplete:"new-password",isRequired:!0},phone_number:{label:"Phone Number",placeholder:"Enter your Phone Number",type:"tel",autocomplete:"tel",dialCode:"+1",dialCodeList:r(27419).u,isRequired:!0},preferred_username:{label:"Preferred Username",placeholder:"Enter your Preferred Username",type:"text",isRequired:!0},profile:{label:"Profile",placeholder:"Add your Profile",type:"url",autocomplete:"url",isRequired:!0},website:{label:"Website",placeholder:"Add your Website",type:"url",autocomplete:"url",isRequired:!0},username:{label:"Username",placeholder:"Enter your Username",type:"text",autocomplete:"username",isRequired:!0}},n=["^","$","*",".","[","]","{","}","(",")","?",'"',"!","@","#","%","&","/","\\",",",">","<","'",":",";","|","_","~","`","=","+","-"," "]},2045:function(e,t,r){"use strict";r.d(t,{FU:function(){return a},OG:function(){return n}});var o=r(22809);let n=e=>o.Sd.includes(e),i=e=>Array.isArray(e),a=e=>e?i(e)?e:[e]:null},27419:function(e,t,r){"use strict";r.d(t,{u:function(){return o}});let o=["+1","+7","+20","+27","+30","+31","+32","+33","+34","+36","+39","+40","+41","+43","+44","+45","+46","+47","+48","+49","+51","+52","+53","+54","+55","+56","+57","+58","+60","+61","+62","+63","+64","+65","+66","+81","+82","+84","+86","+90","+91","+92","+93","+94","+95","+98","+212","+213","+216","+218","+220","+221","+222","+223","+224","+225","+226","+227","+228","+229","+230","+231","+232","+233","+234","+235","+236","+237","+238","+239","+240","+241","+242","+243","+244","+245","+246","+248","+249","+250","+251","+252","+253","+254","+255","+256","+257","+258","+260","+261","+262","+263","+264","+265","+266","+267","+268","+269","+290","+291","+297","+298","+299","+345","+350","+351","+352","+353","+354","+355","+356","+357","+358","+359","+370","+371","+372","+373","+374","+375","+376","+377","+378","+379","+380","+381","+382","+385","+386","+387","+389","+420","+421","+423","+500","+501","+502","+503","+504","+505","+506","+507","+508","+509","+537","+590","+591","+593","+594","+595","+596","+597","+598","+599","+670","+672","+673","+674","+675","+676","+677","+678","+679","+680","+681","+682","+683","+685","+686","+687","+688","+689","+690","+691","+692","+850","+852","+853","+855","+856","+872","+880","+886","+960","+961","+962","+963","+964","+965","+966","+967","+968","+970","+971","+972","+973","+974","+975","+976","+977","+992","+993","+994","+995","+996","+998"]},59149:function(e,t,r){"use strict";r.d(t,{uF:function(){return h},Iu:function(){return g}});var o,n=r(15810);let i=new n.k("I18n"),a=class{constructor(){this._options=null,this._lang=null,this._dict={}}setDefaultLanguage(){!this._lang&&"undefined"!=typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),i.debug(this._lang)}setLanguage(e){this._lang=e}get(e,t){if(this.setDefaultLanguage(),!this._lang)return void 0!==t?t:e;let r=this._lang,o=this.getByLanguage(e,r);return o||((r.indexOf("-")>0&&(o=this.getByLanguage(e,r.split("-")[0])),o)?o:void 0!==t?t:e)}getByLanguage(e,t,r=null){if(!t)return r;let o=this._dict[t];return o?o[e]:r}putVocabulariesForLanguage(e,t){let r=this._dict[e];r||(r=this._dict[e]={}),this._dict[e]={...r,...t}}putVocabularies(e){Object.keys(e).forEach(t=>{this.putVocabulariesForLanguage(t,e[t])})}};var s=r(47752);(o||(o={})).NotConfigured="NotConfigured";let l={[o.NotConfigured]:{message:"i18n is not configured."}},u=(0,s.$)(l),c=new n.k("I18n"),d={language:null},f=null;class p{static configure(e){return c.debug("configure I18n"),e&&(d=Object.assign({},d,e.I18n||e),p.createInstance()),d}static getModuleName(){return"I18n"}static createInstance(){c.debug("create I18n instance"),f||(f=new a)}static setLanguage(e){p.checkConfig(),u(!!f,o.NotConfigured),f.setLanguage(e)}static get(e,t){return p.checkConfig()?(u(!!f,o.NotConfigured),f.get(e,t)):void 0===t?e:t}static putVocabulariesForLanguage(e,t){p.checkConfig(),u(!!f,o.NotConfigured),f.putVocabulariesForLanguage(e,t)}static putVocabularies(e){p.checkConfig(),u(!!f,o.NotConfigured),f.putVocabularies(e)}static checkConfig(){return f||p.createInstance(),!0}}p.createInstance();let h={ADD_PROFILE:"Add your Profile",ADD_WEBSITE:"Add your Website",BACK_SIGN_IN:"Back to Sign In",BIRTHDATE:"Birthdate",CHANGE_PASSWORD:"Change Password",CHANGING_PASSWORD:"Changing",CODE:"Code",CODE_ARRIVAL:"It may take a minute to arrive",CODE_EMAILED:"Your code is on the way. To log in, enter the code we emailed to",CODE_SENT:"Your code is on the way. To log in, enter the code we sent you",CODE_TEXTED:"Your code is on the way. To log in, enter the code we texted to",CONFIRM_PASSWORD:"Confirm Password",CONFIRM_PASSWORD_PLACEHOLDER:"Please confirm your Password",CONFIRM_RESET_PASSWORD_HEADING:"Reset your Password",CONFIRM_SIGNUP_HEADING:"Confirm Sign Up",CONFIRM_SMS:"Confirm SMS Code",CONFIRM_MFA_DEFAULT:"Confirm MFA Code",CONFIRM_TOTP:"Confirm TOTP Code",CONFIRM:"Confirm",CONFIRMATION_CODE:"Confirmation Code",CONFIRMING:"Confirming",CREATE_ACCOUNT:"Create Account",CREATING_ACCOUNT:"Creating Account",EMAIL_ADDRESS:"Email",ENTER_BIRTHDATE:"Enter your Birthdate",ENTER_CODE:"Enter your code",ENTER_CONFIRMATION_CODE:"Enter your Confirmation Code",ENTER_EMAIL:"Enter your Email",ENTER_FAMILY_NAME:"Enter your Family Name",ENTER_GIVEN_NAME:"Enter your Given Name",ENTER_MIDDLE_NAME:"Enter your Middle Name",ENTER_NAME:"Enter your Name",ENTER_NICK_NAME:"Enter your Nickname",ENTER_PASSWORD:"Enter your Password",ENTER_PHONE_NUMBER:"Enter your Phone Number",ENTER_PREFERRED_USERNAME:"Enter your Preferred Username",ENTER_USERNAME:"Enter your username",FAMILY_NAME:"Family Name",GIVEN_NAME:"Given Name",FORGOT_PASSWORD:"Forgot Password?",FORGOT_YOUR_PASSWORD:"Forgot your password?",HIDE_PASSWORD:"Hide password",LOADING:"Loading",LOGIN_NAME:"Username",MIDDLE_NAME:"Middle Name",NAME:"Name",NICKNAME:"Nickname",NEW_PASSWORD:"New password",OR:"or",PASSWORD:"Password",PHONE_NUMBER:"Phone Number",PREFERRED_USERNAME:"Preferred Username",PROFILE:"Profile",RESEND_CODE:"Resend Code",RESET_PASSWORD_HEADING:"Reset your password",RESET_PASSWORD:"Reset Password",SEND_CODE:"Send code",SENDING:"Sending",SETUP_TOTP:"Setup TOTP",SHOW_PASSWORD:"Show password",SIGN_IN_BUTTON:"Sign in",SIGN_IN_TAB:"Sign In",SIGN_IN_WITH_AMAZON:"Sign In with Amazon",SIGN_IN_WITH_APPLE:"Sign In with Apple",SIGN_IN_WITH_FACEBOOK:"Sign In with Facebook",SIGN_IN_WITH_GOOGLE:"Sign In with Google",SIGN_IN:"Sign in to your account",SIGN_UP_BUTTON:"Create a new account",SIGNING_IN_BUTTON:"Signing in",SKIP:"Skip",SUBMIT:"Submit",SUBMITTING:"Submitting",UPPERCASE_COPY:"COPY",VERIFY_CONTACT:"Verify Contact",VERIFY_HEADING:"Account recovery requires verified contact information",VERIFY:"Verify",WE_EMAILED:"We Emailed You",WE_SENT_CODE:"We Sent A Code",WE_TEXTED:"We Texted You",WEBSITE:"Website"};function g(e){return p.get(e)}},69866:function(e,t,r){"use strict";r.d(t,{Dr:function(){return u},Sn:function(){return a},Wx:function(){return function e(t,r){for(var o in r=r||[],t)(0,n.e$)(t,o)&&((0,n.Kn)(t[o])&&"value"in t[o]?r.push(t[o]):(0,n.Kn)(t[o])&&e(t[o],r));return r}},ZB:function(){return function e(t,r,o){if(null==t)return{};var i,a,s,l,u,c,d=t[0]||{},f=1,p=t.length;for(o=o||[],"object"!=typeof d&&(d={});f<p;f++)if(null!=(u=t[f])){for(l in u)if((0,n.e$)(u,l)&&"__proto__"!==l){if(i=d[l],d===(s=u[l]))continue;if(s&&((0,n.Kn)(s)||(a=Array.isArray(s)))){a?(a=!1,c=i&&Array.isArray(i)?i:[]):c=i&&(0,n.Kn)(i)?i:{};var h=o.slice(0);h.push(l),d[l]=e([c,s],r,h)}else void 0!==s&&(null!=i&&"function"==typeof r&&r({target:d,copy:u,path:o,key:l}),d[l]=s)}}return d}},ky:function(){return i},s$:function(){return function e({tokens:t,path:r=[],setupToken:o}){if((0,n.e$)(t,"value"))return o({token:t,path:r});let i={};for(let a in t)if((0,n.e$)(t,a)){let s=t[a],l=(0,n.Kn)(s)?s:{value:s};i[a]=e({tokens:l,path:r.concat(a),setupToken:o})}return i}},um:function(){return f}});var o=r(81976),n=r(18854);function i(e){return Object.entries(e).map(([e,t])=>{let r=u(t)?t.toString():l({value:t});return`${o(e)}:${r}; `}).join(" ")}function a({path:e=[]}){return`${o(["amplify",...e].join(" "))}`}let s=["offsetX","offsetY","blurRadius","spreadRadius","color"];function l(e){let{value:t}=e;return(0,n.HD)(t)?d(t):c(t)?s.map(r=>d(c(e)?e[r]:t[r])).join(" "):t}function u(e){return(0,n.Kn)(e)&&(0,n.e$)(e,"value")}function c(e){return(0,n.Kn)(e)&&(0,n.e$)(e,"offsetX")}function d(e){if(!e)return"";if(function e(t){let r=RegExp("\\{([^}]+)\\}","g");if("string"==typeof t)return r.test(t);if("object"==typeof t){let r=!1;for(let o in t)if((0,n.e$)(t,o)&&e(t[o])){r=!0;break}return r}return!1}(e)){let t=e.replace(/\{|\}/g,"").replace(".value","").split(".");return`var(--${a({path:t})})`}return e}let f=({token:e,path:t})=>{let r=`--${a({path:t})}`,{value:o}=e;return{name:r,original:o,path:t,value:l(e),toString:()=>`var(${r})`}}},69320:function(e,t,r){"use strict";r.d(t,{u:function(){return a}});let o={default:{variable:{value:`'InterVariable', 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont,
        'Helvetica Neue', 'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans',
        sans-serif`},static:{value:`'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
        'Segoe UI', Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif`}}},n={xxxs:{value:"0.375rem"},xxs:{value:"0.5rem"},xs:{value:"0.75rem"},small:{value:"0.875rem"},medium:{value:"1rem"},large:{value:"1.25rem"},xl:{value:"1.5rem"},xxl:{value:"2rem"},xxxl:{value:"2.5rem"},xxxxl:{value:"3rem"}},i={zero:{value:"0"},xxxs:{value:"0.25rem"},xxs:{value:"0.375rem"},xs:{value:"0.5rem"},small:{value:"0.75rem"},medium:{value:"1rem"},large:{value:"1.5rem"},xl:{value:"2.0rem"},xxl:{value:"3.0rem"},xxxl:{value:"4.5rem"},relative:{xxxs:{value:"0.25em"},xxs:{value:"0.375em"},xs:{value:"0.5em"},small:{value:"0.75em"},medium:{value:"1em"},large:{value:"1.5em"},xl:{value:"2.0em"},xxl:{value:"3.0em"},xxxl:{value:"4.5em"},full:{value:"100%"}}};n.xxs,n.xs,n.small,n.medium,n.large,n.xl,n.xxl,n.xxxl,i.xxxs,i.xs,i.small,i.medium,i.large,i.xl,i.xxl,i.xxxl;let a={tokens:{components:{accordion:{backgroundColor:{value:"{colors.background.primary.value}"},item:{borderColor:{value:"{colors.border.secondary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small.value}"},trigger:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.primary.value}"},color:{value:"inherit"},gap:{value:"{space.small.value}"},justifyContent:{value:"space-between"},paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},_hover:{color:{value:"inherit"},backgroundColor:{value:"{colors.overlay.5.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0",offsetY:"0",blurRadius:"0",spreadRadius:"2px",color:"{colors.border.focus.value}"}}}},content:{color:{value:"inherit"},paddingInline:{value:"{space.small.value}"},paddingBlockEnd:{value:"{space.small.value}"},paddingBlockStart:{value:"{space.xxxs.value}"}},icon:{color:{value:"{colors.font.tertiary.value}"},transitionDuration:{value:"{time.medium.value}"},transitionTimingFunction:{value:"cubic-bezier(0.87, 0, 0.13, 1)"}}}},alert:{alignItems:{value:"center"},justifyContent:{value:"space-between"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}}},authenticator:{maxWidth:{value:"60rem"},modal:{width:{value:"{space.relative.full}"},height:{value:"{space.relative.full}"},backgroundColor:{value:"{colors.overlay.50.value}"},top:{value:"{space.zero}"},left:{value:"{space.zero}"}},container:{widthMax:{value:"30rem"}},router:{borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.medium.value}"}},footer:{paddingBottom:{value:"{space.medium.value}"}},form:{padding:{value:"{space.xl.value}"}},state:{inactive:{backgroundColor:{value:"{colors.background.secondary.value}"}}},orContainer:{color:{value:"{colors.neutral.80.value}"},orLine:{backgroundColor:{value:"{colors.background.primary.value}"}}}},autocomplete:{menu:{width:{value:"100%"},marginBlockStart:{value:"{space.xxxs}"},backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.small}"},options:{display:{value:"flex"},flexDirection:{value:"column"},maxHeight:{value:"300px"}},option:{backgroundColor:{value:"{colors.background.primary}"},color:{value:"currentcolor"},cursor:{value:"pointer"},transitionDuration:{value:"{time.short}"},transitionProperty:{value:"background-color, color"},transitionTimingFunction:{value:"ease"},_active:{backgroundColor:{value:"{colors.primary.80}"},color:{value:"{colors.white}"}}},_empty:{display:{value:"flex"}},_loading:{alignItems:{value:"center"},display:{value:"flex"},gap:{value:"{space.xxxs}"}},spaceShared:{paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"}}}},badge:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:1},fontWeight:{value:"{fontWeights.semibold.value}"},fontSize:{value:"{fontSizes.small.value}"},textAlign:{value:"center"},paddingVertical:{value:"{space.xs.value}"},paddingHorizontal:{value:"{space.small.value}"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderRadius:{value:"{radii.xl.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"}},small:{fontSize:{value:"{fontSizes.xs.value}"},paddingVertical:{value:"{space.xxs.value}"},paddingHorizontal:{value:"{space.xs.value}"}},large:{fontSize:{value:"{fontSizes.medium.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"}}},breadcrumbs:{flexDirection:{value:"row"},flexWrap:{value:"wrap"},gap:{value:"0"},color:{value:"{colors.font.tertiary}"},item:{flexDirection:{value:"row"},color:{value:"inherit"},fontSize:{value:"inherit"},alignItems:{value:"center"},lineHeight:{value:"1"}},separator:{color:{value:"inherit"},fontSize:{value:"inherit"},paddingInline:{value:"{space.xxs}"}},link:{color:{value:"{components.link.color}"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"},paddingInline:{value:"{space.xs}"},paddingBlock:{value:"{space.xxs}"},current:{color:{value:"inherit"},fontSize:{value:"inherit"},fontWeight:{value:"normal"},textDecoration:{value:"none"}}}},button:{fontWeight:{value:"{fontWeights.bold.value}"},transitionDuration:{value:"{components.fieldcontrol.transitionDuration.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},lineHeight:{value:"{components.fieldcontrol.lineHeight.value}"},paddingBlockStart:{value:"{components.fieldcontrol.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.paddingInlineEnd.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},borderWidth:{value:"{components.fieldcontrol.borderWidth.value}"},borderStyle:{value:"{components.fieldcontrol.borderStyle.value}"},borderRadius:{value:"{components.fieldcontrol.borderRadius.value}"},color:{value:"{colors.font.primary.value}"},_hover:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.primary.60.value}"}},_focus:{color:{value:"{colors.font.focus.value}"},backgroundColor:{value:"{colors.primary.10.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{color:{value:"{colors.font.active.value}"},backgroundColor:{value:"{colors.primary.20.value}"},borderColor:{value:"{colors.primary.100.value}"}},_loading:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"}},outlined:{info:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"{colors.blue.60.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"}},_focus:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.blue.100.value}"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"{colors.orange.60.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"}},_focus:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.orange.100.value}"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"{colors.green.60.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"}},_focus:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.green.100.value}"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"{colors.red.80.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"}},_focus:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.red.100.value}"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_hover:{borderColor:{value:"{colors.overlay.60.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"}},_focus:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.neutral.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.neutral.100.value}"}}}},primary:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.font.inverse.value}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.100.value}"},color:{value:"{colors.font.inverse.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.100.value}"},color:{value:"{colors.font.inverse.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.100.value}"},color:{value:"{colors.font.inverse.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100.value}"},color:{value:"{colors.font.inverse.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.80}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.100.value}"},color:{value:"{colors.font.inverse.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.70}"},color:{value:"{colors.font.inverse.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.90.value}"},color:{value:"{colors.font.inverse.value}"}}}},menu:{borderWidth:{value:"{space.zero.value}"},backgroundColor:{value:"transparent"},justifyContent:{value:"start"},_hover:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_focus:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.80.value}"}},_active:{color:{value:"{colors.font.inverse.value}"},backgroundColor:{value:"{colors.primary.90.value}"}},_disabled:{color:{value:"{colors.font.disabled.value}"}}},link:{backgroundColor:{value:"transparent"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.interactive.value}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.hover.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.10.value}"},color:{value:"{colors.font.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.primary.20.value}"},color:{value:"{colors.font.active.value}"}},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled.value}"}},info:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.blue.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.10.value}"},color:{value:"{colors.blue.100.value}"},boxShadow:{value:"{components.fieldcontrol.info._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.blue.20.value}"},color:{value:"{colors.blue.100.value}"}}},warning:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.orange.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.10.value}"},color:{value:"{colors.orange.100.value}"},boxShadow:{value:"{components.fieldcontrol.warning._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.orange.20.value}"},color:{value:"{colors.orange.100.value}"}}},success:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.green.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.10.value}"},color:{value:"{colors.green.100.value}"},boxShadow:{value:"{components.fieldcontrol.success._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.green.20.value}"},color:{value:"{colors.green.100.value}"}}},error:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.red.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.90.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.10.value}"},color:{value:"{colors.red.100.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.20.value}"},color:{value:"{colors.red.100.value}"}}},overlay:{borderColor:{value:"transparent"},backgroundColor:{value:"transparent"},color:{value:"{colors.neutral.100}"},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.80.value}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.5.value}"},color:{value:"{colors.overlay.90.value}"},boxShadow:{value:"{components.fieldcontrol.overlay._focus.boxShadow.value}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.overlay.90.value}"}}}},warning:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.red.60}"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.red.60}"},_hover:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.font.error}"}},_focus:{borderColor:{value:"{colors.red.80}"},backgroundColor:{value:"{colors.red.10}"},color:{value:"{colors.red.80}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"{colors.red.100}"},backgroundColor:{value:"{colors.red.20}"},color:{value:"{colors.red.100}"}},_disabled:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"{colors.border.tertiary}"},backgroundColor:{value:"transparent"},color:{value:"{colors.font.disabled}"}}},destructive:{borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small}"},borderStyle:{value:"solid"},backgroundColor:{value:"{colors.red.60}"},color:{value:"{colors.font.inverse}"},_disabled:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_loading:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.background.disabled}"},color:{value:"{colors.font.disabled}"}},_hover:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"}},_focus:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.80}"},color:{value:"{colors.font.inverse}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow}"}},_active:{borderColor:{value:"transparent"},backgroundColor:{value:"{colors.red.100}"},color:{value:"{colors.font.inverse}"}}},small:{fontSize:{value:"{components.fieldcontrol.small.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.small.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.small.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.small.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.small.paddingInlineEnd.value}"}},large:{fontSize:{value:"{components.fieldcontrol.large.fontSize.value}"},paddingBlockStart:{value:"{components.fieldcontrol.large.paddingBlockStart.value}"},paddingBlockEnd:{value:"{components.fieldcontrol.large.paddingBlockEnd.value}"},paddingInlineStart:{value:"{components.fieldcontrol.large.paddingInlineStart.value}"},paddingInlineEnd:{value:"{components.fieldcontrol.large.paddingInlineEnd.value}"}},loaderWrapper:{alignItems:{value:"center"},gap:{value:"{space.xs.value}"}}},card:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"none"},padding:{value:"{space.medium.value}"},outlined:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{components.card.boxShadow.value}"}},elevated:{backgroundColor:{value:"{components.card.backgroundColor.value}"},borderRadius:{value:"{radii.xs.value}"},borderWidth:{value:"0"},borderStyle:{value:"solid"},borderColor:{value:"transparent"},boxShadow:{value:"{shadows.medium.value}"}}},checkbox:{cursor:{value:"pointer"},alignItems:{value:"center"},_disabled:{cursor:{value:"not-allowed"}},button:{position:{value:"relative"},alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},before:{width:{value:"100%"},height:{value:"100%"},borderWidth:{value:"{borderWidths.medium.value}"},borderRadius:{value:"20%"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"}},_focus:{outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{borderColor:{value:"{colors.border.error.value}"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},icon:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"20%"},opacity:{value:"{opacities.0.value}"},transform:{value:"scale(0)"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.short.value}"},transitionTimingFunction:{value:"ease-in-out"},_checked:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},_indeterminate:{opacity:{value:"{opacities.100.value}"},transform:{value:"scale(1)"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},checkboxfield:{alignItems:{value:"flex-start"},alignContent:{value:"center"},flexDirection:{value:"column"},justifyContent:{value:"center"}},collection:{pagination:{current:{color:{value:"{components.pagination.current.color}"},backgroundColor:{value:"{components.pagination.current.backgroundColor}"}},button:{color:{value:"{components.pagination.button.color}"},_hover:{backgroundColor:{value:"{components.pagination.button.hover.backgroundColor}"},color:{value:"{components.pagination.button.hover.color}"}},_disabled:{color:{value:"{components.pagination.button.disabled.color}"}}}},search:{input:{color:{value:"{components.searchfield.color}"}},button:{color:{value:"{components.searchfield.button.color}"},_active:{backgroundColor:{value:"{components.searchfield.button._active.backgroundColor}"},borderColor:{value:"{components.searchfield.button._active.borderColor}"},color:{value:"{components.searchfield.button._active.color}"}},_disabled:{backgroundColor:{value:"{components.searchfield.button._disabled.backgroundColor}"},borderColor:{value:"{components.searchfield.button._disabled.borderColor}"},color:{value:"{components.searchfield.button._disabled.color}"}},_focus:{backgroundColor:{value:"{components.searchfield.button._focus.backgroundColor}"},borderColor:{value:"{components.searchfield.button._focus.borderColor}"},color:{value:"{components.searchfield.button._focus.color}"}},_hover:{backgroundColor:{value:"{components.searchfield.button._hover.backgroundColor}"},borderColor:{value:"{components.searchfield.button._hover.borderColor}"},color:{value:"{components.searchfield.button._hover.color}"}}}}},copy:{fontSize:{value:"{fontSizes.xs}"},gap:{value:"{space.relative.medium}"},svg:{path:{fill:{value:"{colors.font.primary}"}}},toolTip:{bottom:{value:"{space.large}"},color:{value:"{colors.teal.100}"},fontSize:{value:"{fontSizes.xxs}"}}},countrycodeselect:{height:{value:"{space.relative.full.value}"}},divider:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.medium.value}"},label:{color:{value:"{colors.font.tertiary.value}"},paddingInline:{value:"{space.medium.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.background.primary.value}"}},small:{borderWidth:{value:"{borderWidths.small.value}"}},large:{borderWidth:{value:"{borderWidths.large.value}"}},opacity:{value:"{opacities.60.value}"}},dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},color:{value:"{colors.font.primary}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.primary}"}},_disabled:{backgroundColor:{value:"{colors.background.disabled}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.disabled}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.disabled}"}},accepted:{backgroundColor:{value:"{colors.background.success}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.success}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.success}"}},rejected:{backgroundColor:{value:"{colors.background.error}"},borderRadius:{value:"{components.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.dropzone.borderStyle}"},borderWidth:{value:"{components.dropzone.borderWidth}"},color:{value:"{colors.font.error}"}}},field:{gap:{value:"{space.xs.value}"},fontSize:{value:"{fontSizes.medium.value}"},flexDirection:{value:"column"},small:{gap:{value:"{space.xxxs.value}"},fontSize:{value:"{fontSizes.small.value}"}},large:{gap:{value:"{space.small.value}"},fontSize:{value:"{fontSizes.large.value}"}},label:{color:{value:"{colors.font.secondary.value}"}}},fieldcontrol:{borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.small.value}"},color:{value:"{colors.font.primary.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"},fontSize:{value:"{components.field.fontSize.value}"},lineHeight:{value:"{lineHeights.medium.value}"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},small:{fontSize:{value:"{components.field.small.fontSize.value}"},paddingBlockStart:{value:"{space.xxs.value}"},paddingBlockEnd:{value:"{space.xxs.value}"},paddingInlineStart:{value:"{space.small.value}"},paddingInlineEnd:{value:"{space.small.value}"}},large:{fontSize:{value:"{components.field.large.fontSize.value}"},paddingBlockStart:{value:"{space.xs.value}"},paddingBlockEnd:{value:"{space.xs.value}"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}},quiet:{borderStyle:{value:"none"},borderInlineStart:{value:"none"},borderInlineEnd:{value:"none"},borderBlockStart:{value:"none"},borderRadius:{value:"0"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderBlockEndColor:{value:"{colors.border.error.value}"},_focus:{borderBlockEndColor:{value:"transparent"},boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.focus.value}"}}},_disabled:{color:{value:"{colors.font.disabled.value}"},cursor:{value:"not-allowed"},borderColor:{value:"{colors.transparent.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},color:{value:"{colors.font.error.value}"},_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.border.error.value}"}}}},info:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.blue.100.value}"}}}},warning:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.orange.100.value}"}}}},success:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.green.100.value}"}}}},overlay:{_focus:{boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"2px",color:"{colors.overlay.90.value}"}}}}},fieldgroup:{gap:{value:"{space.zero.value}"},vertical:{alignItems:{value:"center"}},outer:{alignItems:{value:"center"}}},fieldmessages:{error:{color:{value:"{colors.font.error.value}"},fontSize:{value:"{fontSizes.small.value}"}},description:{color:{value:"{colors.font.secondary.value}"},fontStyle:{value:"italic"},fontSize:{value:"{fontSizes.small.value}"}}},fieldset:{backgroundColor:{value:"transparent"},borderRadius:{value:"{radii.xs.value}"},flexDirection:{value:"column"},gap:{value:"{components.field.gap.value}"},legend:{color:{value:"{colors.font.primary.value}"},fontSize:{value:"{components.field.fontSize.value}"},fontWeight:{value:"{fontWeights.bold.value}"},lineHeight:{value:"{lineHeights.medium.value}"},small:{fontSize:"{components.field.small.fontSize.value}"},large:{fontSize:"{components.field.large.fontSize.value}"}},outlined:{padding:"{space.medium.value}",borderColor:"{colors.neutral.40.value}",borderWidth:"{borderWidths.small.value}",borderStyle:"solid",small:{padding:"{space.small.value}"},large:{padding:"{space.large.value}"}},small:{gap:"{components.field.small.gap.value}"},large:{gap:"{components.field.large.gap.value}"}},flex:{gap:{value:"{space.medium.value}"},justifyContent:{value:"normal"},alignItems:{value:"stretch"},alignContent:{value:"normal"},flexWrap:{value:"nowrap"}},heading:{color:{value:"{colors.font.primary.value}"},lineHeight:{value:"{lineHeights.small.value}"},1:{fontSize:{value:"{fontSizes.xxxxl.value}"},fontWeight:{value:"{fontWeights.light.value}"}},2:{fontSize:{value:"{fontSizes.xxxl.value}"},fontWeight:{value:"{fontWeights.normal.value}"}},3:{fontSize:{value:"{fontSizes.xxl.value}"},fontWeight:{value:"{fontWeights.medium.value}"}},4:{fontSize:{value:"{fontSizes.xl.value}"},fontWeight:{value:"{fontWeights.semibold.value}"}},5:{fontSize:{value:"{fontSizes.large.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},6:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},icon:{lineHeight:{value:1},height:{value:"1em"}},highlightmatch:{highlighted:{fontWeight:{value:"{fontWeights.bold}"}}},image:{maxWidth:{value:"100%"},height:{value:"auto"},objectFit:{value:"initial"},objectPosition:{value:"initial"}},inappmessaging:{banner:{height:{value:"150px "},width:{value:"400px "}},button:{backgroundColor:{value:"#e8e8e8"},borderRadius:{value:"5px"},color:{value:"black"}},dialog:{height:{value:"50vh"},minHeight:{value:"400px"},minWidth:{value:"400px"},width:{value:"30vw"}},header:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.extrabold.value}"}}},input:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},link:{active:{color:{value:"{colors.font.active.value}"}},color:{value:"{colors.font.interactive.value}"},focus:{color:{value:"{colors.font.focus.value}"}},hover:{color:{value:"{colors.font.hover.value}"}},visited:{color:{value:"{colors.font.interactive.value}"}}},liveness:{cameraModule:{backgroundColor:{value:"{colors.background.primary.value}"}}},loader:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},fontSize:{value:"{fontSizes.xs.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"},fontSize:{value:"{fontSizes.xxs.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"},fontSize:{value:"{fontSizes.small.value}"}},linear:{width:{value:"100%"},minWidth:{value:"5rem"},fontSize:{value:"{fontSizes.xxs.value}"},strokeWidth:{value:"{fontSizes.xxs.value}"},strokeFilled:{value:"{colors.primary.80.value}"},strokeEmpty:{value:"{colors.neutral.20.value}"},strokeLinecap:{value:"round"},animationDuration:{value:"1s"},small:{strokeWidth:{value:"{fontSizes.xxxs.value}"},fontSize:{value:"{fontSizes.xxxs.value}"}},large:{strokeWidth:{value:"{fontSizes.xs.value}"},fontSize:{value:"{fontSizes.xs.value}"}}},text:{fill:{value:"{colors.font.primary.value}"}}},menu:{backgroundColor:{value:"{colors.background.primary.value}"},borderRadius:{value:"{radii.medium.value}"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderColor:{value:"{colors.border.primary.value}"},boxShadow:{value:"{shadows.large.value}"},flexDirection:{value:"column"},gap:{value:"{space.zero.value}"},maxWidth:{value:"30rem"},minWidth:{value:"14rem"},small:{width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"}},large:{width:{value:"{fontSizes.xxxl.value}"},height:{value:"{fontSizes.xxxl.value}"}},item:{minHeight:{value:"2.5rem"},paddingInlineStart:{value:"{space.medium.value}"},paddingInlineEnd:{value:"{space.medium.value}"}}},message:{alignItems:{value:"center"},backgroundColor:{value:"{colors.background.tertiary.value}"},borderColor:{value:"transparent"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},borderRadius:{value:"{radii.xs.value}"},color:{value:"{colors.font.primary.value}"},justifyContent:{value:"flex-start"},paddingBlock:{value:"{space.small.value}"},paddingInline:{value:"{space.medium.value}"},lineHeight:{value:"{lineHeights.small.value}"},icon:{size:{value:"{fontSizes.xl.value}"}},heading:{fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"}},dismiss:{gap:{value:"{space.xxs.value}"}},plain:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"}}},outlined:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.primary.value}"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.info.value}"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.error.value}"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.success.value}"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.warning.value}"}}},filled:{color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.background.secondary.value}"},borderColor:{value:"transparent"},info:{color:{value:"{colors.font.info.value}"},backgroundColor:{value:"{colors.background.info.value}"},borderColor:{value:"transparent"}},error:{color:{value:"{colors.font.error.value}"},backgroundColor:{value:"{colors.background.error.value}"},borderColor:{value:"transparent"}},success:{color:{value:"{colors.font.success.value}"},backgroundColor:{value:"{colors.background.success.value}"},borderColor:{value:"transparent"}},warning:{color:{value:"{colors.font.warning.value}"},backgroundColor:{value:"{colors.background.warning.value}"},borderColor:{value:"transparent"}}}},pagination:{current:{alignItems:{value:"center"},justifyContent:{value:"center"},color:{value:"{colors.font.inverse.value}"},fontSize:{value:"{fontSizes.small.value}"},backgroundColor:{value:"{colors.overlay.40.value}"}},button:{color:{value:"{colors.font.primary.value}"},paddingInlineStart:{value:"{space.xxs.value}"},paddingInlineEnd:{value:"{space.xxs.value}"},transitionProperty:{value:"background-color"},transitionDuration:{value:"{time.medium.value}"},hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},disabled:{color:{value:"{colors.font.disabled.value}"}}},ellipsis:{alignItems:{value:"baseline"},justifyContent:{value:"center"},paddingInlineStart:{value:"{space.xs.value}"},paddingInlineEnd:{value:"{space.xs.value}"}},itemContainer:{marginLeft:{value:"{space.xxxs.value}"},marginRight:{value:"{space.xxxs.value}"}},itemShared:{height:{value:"{fontSizes.xxl.value}"},minWidth:{value:"{fontSizes.xxl.value}"},borderRadius:{value:"{fontSizes.medium.value}"}}},passwordfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_error:{color:{value:"{components.button.outlined.error.color.value}"},backgroundColor:{value:"{components.button.outlined.error.backgroundColor.value}"},borderColor:{value:"{components.button.outlined.error.borderColor.value}"},_active:{borderColor:{value:"{components.button.outlined.error._active.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._active.backgroundColor.value}"},color:{value:"{components.button.outlined.error._active.color.value}"}},_focus:{borderColor:{value:"{components.button.outlined.error._focus.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._focus.backgroundColor.value}"},color:{value:"{components.button.outlined.error._focus.color.value}"},boxShadow:{value:"{components.button.outlined.error._focus.boxShadow.value}"}},_hover:{borderColor:{value:"{components.button.outlined.error._hover.borderColor.value}"},backgroundColor:{value:"{components.button.outlined.error._hover.backgroundColor.value}"},color:{value:"{components.button.outlined.error._hover.color.value}"}}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},phonenumberfield:{color:{value:"{components.fieldcontrol.color}"},borderColor:{value:"{components.fieldcontrol.borderColor}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}}},placeholder:{borderRadius:{value:"{radii.small.value}"},transitionDuration:{value:"{time.long.value}"},startColor:{value:"{colors.background.secondary.value}"},endColor:{value:"{colors.background.tertiary.value}"},small:{height:{value:"{space.small.value}"}},default:{height:{value:"{space.medium.value}"}},large:{height:{value:"{space.large.value}"}}},radio:{alignItems:{value:"center"},justifyContent:{value:"flex-start"},gap:{value:"inherit"},_disabled:{cursor:{value:"not-allowed"}},button:{alignItems:{value:"center"},justifyContent:{value:"center"},width:{value:"{fontSizes.medium.value}"},height:{value:"{fontSizes.medium.value}"},boxSizing:{value:"border-box"},borderWidth:{value:"{borderWidths.medium.value}"},borderStyle:{value:"solid"},borderRadius:{value:"50%"},borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.background.primary.value}"},backgroundColor:{value:"{colors.background.primary.value}"},transitionProperty:{value:"all"},transitionDuration:{value:"{time.medium.value}"},outlineColor:{value:"{colors.transparent.value}"},outlineStyle:{value:"solid"},outlineWidth:{value:"{outlineWidths.medium.value}"},outlineOffset:{value:"{outlineOffsets.medium.value}"},padding:{value:"{borderWidths.medium.value}"},small:{width:{value:"{fontSizes.small.value}"},height:{value:"{fontSizes.small.value}"}},large:{width:{value:"{fontSizes.large.value}"},height:{value:"{fontSizes.large.value}"}},_checked:{color:{value:"{colors.primary.80.value}"},_disabled:{color:{value:"{colors.background.disabled.value}"}}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},_error:{borderColor:{value:"{colors.border.error.value}"},_focus:{boxShadow:{value:"{components.fieldcontrol._error._focus.boxShadow.value}"}}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.primary.value}"}}},label:{color:{value:"{components.text.color.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"}}}},radiogroup:{radio:{borderWidth:{value:"{components.radio.button.borderWidth}"},borderColor:{value:"{components.radio.button.borderColor}"},backgroundColor:{value:"{components.radio.button.backgroundColor}"},_checked:{color:{value:"{components.radio.button._checked.color}"}},label:{color:{value:"{components.radio.label.color}"}}},legend:{color:{value:"{components.fieldset.legend.color}"},fontWeight:{value:"{fontWeights.normal}"}}},rating:{large:{size:{value:"{fontSizes.xxxl.value}"}},default:{size:{value:"{fontSizes.xl.value}"}},small:{size:{value:"{fontSizes.small.value}"}},filled:{color:{value:"{colors.secondary.80.value}"}},empty:{color:{value:"{colors.background.tertiary.value}"}}},searchfield:{color:{value:"{components.fieldcontrol.color.value}"},button:{color:{value:"{components.button.color.value}"},backgroundColor:{value:"{colors.background.primary.value}"},_active:{backgroundColor:{value:"{components.button._active.backgroundColor.value}"},borderColor:{value:"{components.button._active.borderColor.value}"},color:{value:"{components.button._active.color.value}"}},_disabled:{backgroundColor:{value:"{components.button._disabled.backgroundColor.value}"},borderColor:{value:"{components.button._disabled.borderColor.value}"},color:{value:"{components.button._disabled.color.value}"}},_focus:{backgroundColor:{value:"{components.button._focus.backgroundColor.value}"},borderColor:{value:"{components.button._focus.borderColor.value}"},color:{value:"{components.button._focus.color.value}"}},_hover:{backgroundColor:{value:"{components.button._hover.backgroundColor.value}"},borderColor:{value:"{components.button._hover.borderColor.value}"},color:{value:"{components.button._hover.color.value}"}}}},select:{color:{value:"{components.fieldcontrol.color}"},backgroundColor:{value:"{colors.background.primary.value}"},paddingInlineEnd:{value:"{space.xxl.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"}},wrapper:{flex:{value:"1"},display:{value:"block"},position:{value:"relative"},cursor:{value:"pointer"}},iconWrapper:{alignItems:{value:"center"},position:{value:"absolute"},top:{value:"50%"},right:{value:"{space.medium.value}"},transform:{value:"translateY(-50%)"},pointerEvents:{value:"none"},small:{right:{value:"{space.xs.value}"}},large:{right:{value:"{space.medium.value}"}}},option:{backgroundColor:{value:"transparent"},color:{value:"{colors.font.primary.value}"},_disabled:{color:{value:"{colors.font.disabled.value}"},backgroundColor:{value:"transparent"}}},whiteSpace:{value:"nowrap"},minWidth:{value:"6.5rem"},small:{minWidth:{value:"5.5rem"},paddingInlineEnd:{value:"{space.xl.value}"}},large:{minWidth:{value:"7.5rem"},paddingInlineEnd:{value:"{space.xxl.value}"}},expanded:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"},option:{paddingBlock:{value:"{space.xs.value}"},paddingInline:{value:"{space.small.value}"}}}},selectfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},color:{value:"{components.fieldcontrol.color}"},flexDirection:{value:"column"},fontSize:{value:"{components.fieldcontrol.fontSize}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor}"}},label:{color:{value:"{components.field.label.color}"}}},sliderfield:{paddingBlock:{value:"{space.xs.value}"},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"9999px"},height:{value:"0.375rem"},minWidth:{value:"10rem"}},range:{backgroundColor:{value:"{colors.primary.80.value}"},borderRadius:{value:"9999px"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"}}},thumb:{width:{value:"1.25rem"},height:{value:"1.25rem"},backgroundColor:{value:"{colors.background.primary.value}"},boxShadow:{value:"{shadows.small.value}"},borderRadius:{value:"50%"},borderWidth:{value:"{borderWidths.medium.value}"},borderColor:{value:"{colors.border.primary.value}"},borderStyle:{value:"solid"},_disabled:{backgroundColor:{value:"{colors.background.disabled.value}"},borderColor:{value:"transparent"},boxShadow:{value:"none"}},_hover:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"{colors.border.focus.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}}},small:{track:{height:{value:"0.25rem"}},thumb:{width:{value:"1rem"},height:{value:"1rem"}}},large:{track:{height:{value:"0.625rem"}},thumb:{width:{value:"1.5rem"},height:{value:"1.5rem"}}}},stepperfield:{borderColor:{value:"{components.fieldcontrol.borderColor}"},flexDirection:{value:"column"},input:{color:{value:"{components.fieldcontrol.color}"},fontSize:{value:"{components.fieldcontrol.fontSize}"},textAlign:{value:"center"}},button:{color:{value:"{components.button.color}"},backgroundColor:{value:"{colors.transparent}"},_active:{color:{value:"{components.button._active.color}"},backgroundColor:{value:"{components.button._active.backgroundColor}"}},_focus:{color:{value:"{components.button._focus.color}"},backgroundColor:{value:"{components.button._focus.backgroundColor}"}},_disabled:{color:{value:"{components.button._disabled.color}"},backgroundColor:{value:"{components.fieldcontrol._disabled.backgroundColor}"}},_hover:{color:{value:"{components.button._hover.color}"},backgroundColor:{value:"{components.button._hover.backgroundColor}"}}}},storagemanager:{dropzone:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"dashed"},borderWidth:{value:"{borderWidths.small}"},gap:{value:"{space.small}"},paddingBlock:{value:"{space.xl}"},paddingInline:{value:"{space.large}"},textAlign:{value:"center"},_active:{backgroundColor:{value:"{colors.primary.10}"},borderRadius:{value:"{components.storagemanager.dropzone.borderRadius}"},borderColor:{value:"{colors.border.pressed}"},borderStyle:{value:"{components.storagemanager.dropzone.borderStyle}"},borderWidth:{value:"{borderWidths.medium}"}},icon:{color:{value:"{colors.border.primary}"},fontSize:{value:"{fontSizes.xxl}"}},text:{color:{value:"{colors.font.tertiary}"},fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"}}},file:{backgroundColor:{value:"{colors.background.primary}"},borderRadius:{value:"{radii.small}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},paddingBlock:{value:"{space.xs}"},paddingInline:{value:"{space.small}"},gap:{value:"{space.small}"},alignItems:{value:"baseline"},name:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},size:{fontSize:{value:"{fontSizes.small}"},fontWeight:{value:"{fontWeights.normal}"},color:{value:"{colors.font.tertiary}"}},image:{width:{value:"{space.xxl}"},height:{value:"{space.xxl}"},backgroundColor:{value:"{colors.background.secondary}"},color:{value:"{colors.font.tertiary}"},borderRadius:{value:"{radii.small}"}}},filelist:{flexDirection:{value:"column"},gap:{value:"{space.small}"}},loader:{strokeLinecap:{value:"round"},strokeEmpty:{value:"{colors.border.secondary}"},strokeFilled:{value:"{components.loader.strokeFilled}"},strokeWidth:{value:"{borderWidths.large}"}},previewer:{backgroundColor:{value:"{colors.background.primary}"},borderColor:{value:"{colors.border.primary}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small}"},borderRadius:{value:"{radii.small}"},paddingBlock:{value:"{space.zero}"},paddingInline:{value:"{space.zero}"},maxHeight:{value:"40rem"},maxWidth:{value:"auto"},text:{fontSize:{value:"{fontSizes.medium}"},fontWeight:{value:"{fontWeights.bold}"},color:{value:"{colors.font.primary}"}},body:{paddingBlock:{value:"{space.medium}"},paddingInline:{value:"{space.medium}"},gap:{value:"{space.small}"}},footer:{justifyContent:{value:"flex-end"}}}},switchfield:{_disabled:{opacity:{value:"{opacities.60.value}"}},_focused:{shadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"}},fontSize:{value:"{fontSizes.medium.value}"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}},label:{padding:{value:"{space.xs.value}"}},thumb:{backgroundColor:{value:"{colors.background.primary.value}"},borderColor:{value:"transparent"},borderWidth:{value:"{borderWidths.small.value}"},borderStyle:{value:"solid"},borderRadius:{value:"{radii.xxxl.value}"},checked:{transform:{value:"{transforms.slideX.medium.value}"}},transition:{duration:{value:"{time.medium.value}"}},width:{value:"{space.relative.medium.value}"}},track:{backgroundColor:{value:"{colors.background.quaternary.value}"},borderRadius:{value:"{radii.xxxl.value}"},checked:{backgroundColor:{value:"{colors.primary.80.value}"}},height:{value:"{space.relative.medium.value}"},padding:{value:"{outlineWidths.medium.value}"},transition:{duration:{value:"{time.short.value}"}},width:{value:"{space.relative.xl.value}"},_error:{backgroundColor:{value:"{colors.background.error.value}"}}}},table:{borderCollapse:{value:"collapse"},display:{value:"table"},width:{value:"100%"},head:{display:{value:"table-header-group"},verticalAlign:{value:"middle"}},body:{display:{value:"table-row-group"},verticalAlign:{value:"middle"}},foot:{display:{value:"table-footer-group"},verticalAlign:{value:"middle"}},row:{display:{value:"table-row"},verticalAlign:{value:"middle"},hover:{backgroundColor:{value:"{colors.background.tertiary.value}"}},striped:{backgroundColor:{value:"{colors.background.secondary.value}"}}},header:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},data:{borderColor:{value:"{colors.border.tertiary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.small.value}"},color:{value:"{colors.font.primary.value}"},display:{value:"table-cell"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.normal.value}"},padding:{value:"{space.medium.value}"},verticalAlign:{value:"middle"},large:{fontSize:{value:"{fontSizes.large.value}"},padding:{value:"{space.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"},padding:{value:"{space.xs.value}"}}},caption:{captionSide:{value:"bottom"},color:{value:"{colors.font.primary.value}"},display:{value:"table-caption"},fontSize:{value:"{fontSizes.medium.value}"},textAlign:{value:"center"},wordBreak:{value:"break-all"},large:{fontSize:{value:"{fontSizes.large.value}"}},small:{fontSize:{value:"{fontSizes.small.value}"}}}},tabs:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},gap:{value:"0"},item:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.secondary.value}"},borderStyle:{value:"solid"},borderWidth:{value:"{borderWidths.medium.value}"},color:{value:"{colors.font.secondary.value}"},fontSize:{value:"{fontSizes.medium.value}"},fontWeight:{value:"{fontWeights.bold.value}"},paddingVertical:{value:"{space.small.value}"},paddingHorizontal:{value:"{space.medium.value}"},textAlign:{value:"center"},transitionDuration:{value:"{time.medium.value}"},_hover:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.hover.value}"}},_focus:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.focus.value}"},boxShadow:{value:{offsetX:"0px",offsetY:"0px",blurRadius:"0px",spreadRadius:"{borderWidths.medium}",color:"{colors.border.focus.value}"}},color:{value:"{colors.font.focus.value}"}},_active:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.font.interactive.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.interactive.value}"}},_disabled:{backgroundColor:{value:"transparent"},borderColor:{value:"{colors.border.tertiary.value}"},boxShadow:{value:"none"},color:{value:"{colors.font.disabled.value}"}}},panel:{backgroundColor:{value:"transparent"},paddingInline:{value:"0"},paddingBlock:{value:"{space.small.value}"}}},text:{color:{value:"{colors.font.primary.value}"},primary:{color:{value:"{colors.font.primary.value}"}},secondary:{color:{value:"{colors.font.secondary.value}"}},tertiary:{color:{value:"{colors.font.tertiary.value}"}},error:{color:{value:"{colors.font.error.value}"}},warning:{color:{value:"{colors.font.warning.value}"}},success:{color:{value:"{colors.font.success.value}"}},info:{color:{value:"{colors.font.info.value}"}}},textareafield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},textfield:{color:{value:"{components.fieldcontrol.color.value}"},borderColor:{value:"{components.fieldcontrol.borderColor.value}"},fontSize:{value:"{components.fieldcontrol.fontSize.value}"},_focus:{borderColor:{value:"{components.fieldcontrol._focus.borderColor.value}"}}},togglebutton:{borderColor:{value:"{colors.border.primary.value}"},color:{value:"{colors.font.primary.value}"},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"}},_focus:{borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.font.primary.value}"}},_active:{backgroundColor:{value:"{colors.transparent.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},borderColor:{value:"{colors.border.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{borderColor:{value:"{colors.border.pressed.value}"},color:{value:"{colors.font.primary.value}"},backgroundColor:{value:"{colors.overlay.20.value}"},_hover:{backgroundColor:{value:"{colors.overlay.30.value}"}}},primary:{backgroundColor:{value:"{colors.transparent.value}"},borderWidth:{value:"{borderWidths.small.value}"},_focus:{borderColor:{value:"{colors.border.focus.value}"},backgroundColor:{value:"{colors.transparent.value}"},boxShadow:{value:"{components.fieldcontrol._focus.boxShadow.value}"},color:{value:"{colors.font.primary.value}"}},_hover:{backgroundColor:{value:"{colors.overlay.10.value}"},color:{value:"{colors.font.primary.value}"}},_disabled:{borderColor:{value:"{colors.border.disabled.value}"},backgroundColor:{value:"{colors.background.disabled.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.primary.80.value}"},borderColor:{value:"{colors.primary.80.value}"},color:{value:"{colors.background.primary.value}"},_focus:{backgroundColor:{value:"{colors.border.focus.value}"},borderColor:{value:"{colors.border.focus.value}"},color:{value:"{colors.background.primary.value}"}},_hover:{borderColor:{value:"{colors.primary.60.value}"},backgroundColor:{value:"{colors.primary.60.value}"},boxShadow:{value:"{colors.primary.60.value}"},color:{value:"{colors.background.primary.value}"}}}},link:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"},_hover:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.50.value}"}},_disabled:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.font.disabled.value}"}},_pressed:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"},_focus:{backgroundColor:{value:"{colors.transparent.value}"},color:{value:"{colors.overlay.90.value}"}},_hover:{color:{value:"{colors.overlay.90.value}"},backgroundColor:{value:"{colors.transparent.value}"}}}}},togglebuttongroup:{alignItems:{value:"center"},alignContent:{value:"center"},justifyContent:{value:"flex-start"}}},borderWidths:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},colors:{red:{10:{value:"hsl(0, 75%, 95%)"},20:{value:"hsl(0, 75%, 85%)"},40:{value:"hsl(0, 75%, 75%)"},60:{value:"hsl(0, 50%, 50%)"},80:{value:"hsl(0, 95%, 30%)"},90:{value:"hsl(0, 100%, 20%)"},100:{value:"hsl(0, 100%, 15%)"}},orange:{10:{value:"hsl(30, 75%, 95%)"},20:{value:"hsl(30, 75%, 85%)"},40:{value:"hsl(30, 75%, 75%)"},60:{value:"hsl(30, 50%, 50%)"},80:{value:"hsl(30, 95%, 30%)"},90:{value:"hsl(30, 100%, 20%)"},100:{value:"hsl(30, 100%, 15%)"}},yellow:{10:{value:"hsl(60, 75%, 95%)"},20:{value:"hsl(60, 75%, 85%)"},40:{value:"hsl(60, 75%, 75%)"},60:{value:"hsl(60, 50%, 50%)"},80:{value:"hsl(60, 95%, 30%)"},90:{value:"hsl(60, 100%, 20%)"},100:{value:"hsl(60, 100%, 15%)"}},green:{10:{value:"hsl(130, 60%, 95%)"},20:{value:"hsl(130, 60%, 90%)"},40:{value:"hsl(130, 44%, 63%)"},60:{value:"hsl(130, 43%, 46%)"},80:{value:"hsl(130, 33%, 37%)"},90:{value:"hsl(130, 27%, 29%)"},100:{value:"hsl(130, 22%, 23%)"}},teal:{10:{value:"hsl(190, 75%, 95%)"},20:{value:"hsl(190, 75%, 85%)"},40:{value:"hsl(190, 70%, 70%)"},60:{value:"hsl(190, 50%, 50%)"},80:{value:"hsl(190, 95%, 30%)"},90:{value:"hsl(190, 100%, 20%)"},100:{value:"hsl(190, 100%, 15%)"}},blue:{10:{value:"hsl(220, 95%, 95%)"},20:{value:"hsl(220, 85%, 85%)"},40:{value:"hsl(220, 70%, 70%)"},60:{value:"hsl(220, 50%, 50%)"},80:{value:"hsl(220, 95%, 30%)"},90:{value:"hsl(220, 100%, 20%)"},100:{value:"hsl(220, 100%, 15%)"}},purple:{10:{value:"hsl(300, 95%, 95%)"},20:{value:"hsl(300, 85%, 85%)"},40:{value:"hsl(300, 70%, 70%)"},60:{value:"hsl(300, 50%, 50%)"},80:{value:"hsl(300, 95%, 30%)"},90:{value:"hsl(300, 100%, 20%)"},100:{value:"hsl(300, 100%, 15%)"}},pink:{10:{value:"hsl(340, 95%, 95%)"},20:{value:"hsl(340, 90%, 85%)"},40:{value:"hsl(340, 70%, 70%)"},60:{value:"hsl(340, 50%, 50%)"},80:{value:"hsl(340, 95%, 30%)"},90:{value:"hsl(340, 100%, 20%)"},100:{value:"hsl(340, 100%, 15%)"}},neutral:{10:{value:"hsl(210, 5%, 98%)"},20:{value:"hsl(210, 5%, 94%)"},40:{value:"hsl(210, 5%, 87%)"},60:{value:"hsl(210, 10%, 58%)"},80:{value:"hsl(210, 10%, 40%)"},90:{value:"hsl(210, 25%, 25%)"},100:{value:"hsl(210, 50%, 10%)"}},primary:{10:{value:"{colors.teal.10.value}"},20:{value:"{colors.teal.20.value}"},40:{value:"{colors.teal.40.value}"},60:{value:"{colors.teal.60.value}"},80:{value:"{colors.teal.80.value}"},90:{value:"{colors.teal.90.value}"},100:{value:"{colors.teal.100.value}"}},secondary:{10:{value:"{colors.purple.10.value}"},20:{value:"{colors.purple.20.value}"},40:{value:"{colors.purple.40.value}"},60:{value:"{colors.purple.60.value}"},80:{value:"{colors.purple.80.value}"},90:{value:"{colors.purple.90.value}"},100:{value:"{colors.purple.100.value}"}},font:{primary:{value:"{colors.neutral.100.value}"},secondary:{value:"{colors.neutral.90.value}"},tertiary:{value:"{colors.neutral.80.value}"},disabled:{value:"{colors.neutral.60.value}"},inverse:{value:"{colors.white.value}"},interactive:{value:"{colors.primary.80.value}"},hover:{value:"{colors.primary.90.value}"},focus:{value:"{colors.primary.100.value}"},active:{value:"{colors.primary.100.value}"},info:{value:"{colors.blue.90.value}"},warning:{value:"{colors.orange.90.value}"},error:{value:"{colors.red.90.value}"},success:{value:"{colors.green.90.value}"}},background:{primary:{value:"{colors.white.value}"},secondary:{value:"{colors.neutral.10.value}"},tertiary:{value:"{colors.neutral.20.value}"},quaternary:{value:"{colors.neutral.60.value}"},disabled:{value:"{colors.background.tertiary.value}"},info:{value:"{colors.blue.10.value}"},warning:{value:"{colors.orange.10.value}"},error:{value:"{colors.red.10.value}"},success:{value:"{colors.green.10.value}"}},border:{primary:{value:"{colors.neutral.60.value}"},secondary:{value:"{colors.neutral.40.value}"},tertiary:{value:"{colors.neutral.20.value}"},disabled:{value:"{colors.border.tertiary.value}"},pressed:{value:"{colors.primary.100.value}"},focus:{value:"{colors.primary.100.value}"},error:{value:"{colors.red.80.value}"},info:{value:"{colors.blue.80.value}"},success:{value:"{colors.green.80.value}"},warning:{value:"{colors.orange.80.value}"}},shadow:{primary:{value:"hsla(210, 50%, 10%, 0.25)"},secondary:{value:"hsla(210, 50%, 10%, 0.15)"},tertiary:{value:"hsla(210, 50%, 10%, 0.05)"}},overlay:{5:{value:"hsla(0, 0%, 0%, 0.05)"},10:{value:"hsla(0, 0%, 0%, 0.1)"},20:{value:"hsla(0, 0%, 0%, 0.2)"},30:{value:"hsla(0, 0%, 0%, 0.3)"},40:{value:"hsla(0, 0%, 0%, 0.4)"},50:{value:"hsla(0, 0%, 0%, 0.5)"},60:{value:"hsla(0, 0%, 0%, 0.6)"},70:{value:"hsla(0, 0%, 0%, 0.7)"},80:{value:"hsla(0, 0%, 0%, 0.8)"},90:{value:"hsla(0, 0%, 0%, 0.9)"}},black:{value:"hsl(0, 0%, 0%)"},white:{value:"hsl(0, 0%, 100%)"},transparent:{value:"transparent"}},fonts:o,fontSizes:n,fontWeights:{hairline:{value:100},thin:{value:200},light:{value:300},normal:{value:400},medium:{value:500},semibold:{value:600},bold:{value:700},extrabold:{value:800},black:{value:900}},lineHeights:{small:{value:"1.25"},medium:{value:"1.5"},large:{value:"2"}},opacities:{0:{value:"0"},10:{value:"0.1"},20:{value:"0.2"},30:{value:"0.3"},40:{value:"0.4"},50:{value:"0.5"},60:{value:"0.6"},70:{value:"0.7"},80:{value:"0.8"},90:{value:"0.9"},100:{value:"1"}},outlineOffsets:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},outlineWidths:{small:{value:"1px"},medium:{value:"2px"},large:{value:"3px"}},radii:{xs:{value:"0.125rem"},small:{value:"0.25rem"},medium:{value:"0.5rem"},large:{value:"1rem"},xl:{value:"2rem"},xxl:{value:"4rem"},xxxl:{value:"8rem"}},shadows:{small:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"4px",color:"{colors.shadow.tertiary.value}"}},medium:{value:{offsetX:"0px",offsetY:"2px",blurRadius:"6px",color:"{colors.shadow.secondary.value}"}},large:{value:{offsetX:"0px",offsetY:"4px",blurRadius:"12px",color:"{colors.shadow.primary.value}"}}},space:i,time:{short:{value:"100ms"},medium:{value:"250ms"},long:{value:"500ms"}},transforms:{slideX:{small:{value:"translateX(0.5em)"},medium:{value:"translateX(1em)"},large:{value:"translateX(2em)"}}}},breakpoints:{values:{base:0,small:480,medium:768,large:992,xl:1280,xxl:1536},defaultBreakpoint:"base"},name:"default-theme"}},22809:function(e,t,r){"use strict";r.d(t,{P9:function(){return n},Sd:function(){return o}});let o=["username","email","phone_number","birthdate","email","family_name","given_name","middle_name","name","nickname","phone_number","preferred_username","profile","website","confirmation_code","password","confirm_password"],n=e=>o.includes(e)},64924:function(e,t,r){"use strict";r.d(t,{M:function(){return o}});let o={Accordion:"amplify-accordion",AccordionItem:"amplify-accordion__item",AccordionItemTrigger:"amplify-accordion__item__trigger",AccordionItemContent:"amplify-accordion__item__content",AccordionItemIcon:"amplify-accordion__item__icon",Alert:"amplify-alert",AlertIcon:"amplify-alert__icon",AlertHeading:"amplify-alert__heading",AlertBody:"amplify-alert__body",AlertDismiss:"amplify-alert__dismiss",Autocomplete:"amplify-autocomplete",AutocompleteMenu:"amplify-autocomplete__menu",AutocompleteMenuEmpty:"amplify-autocomplete__menu--empty",AutocompleteMenuFooter:"amplify-autocomplete__menu__footer",AutocompleteMenuHeader:"amplify-autocomplete__menu__header",AutocompleteMenuLoading:"amplify-autocomplete__menu--loading",AutocompleteMenuOption:"amplify-autocomplete__menu__option",AutocompleteMenuOptions:"amplify-autocomplete__menu__options",Badge:"amplify-badge",Breadcrumbs:"amplify-breadcrumbs",BreadcrumbsList:"amplify-breadcrumbs__list",BreadcrumbsItem:"amplify-breadcrumbs__item",BreadcrumbsSeparator:"amplify-breadcrumbs__separator",BreadcrumbsLink:"amplify-breadcrumbs__link",Button:"amplify-button",ButtonGroup:"amplify-buttongroup",ButtonLoaderWrapper:"amplify-button__loader-wrapper",Card:"amplify-card",Checkbox:"amplify-checkbox",CheckboxButton:"amplify-checkbox__button",CheckboxIcon:"amplify-checkbox__icon",CheckboxInput:"amplify-checkbox__input",CheckboxLabel:"amplify-checkbox__label",CheckboxField:"amplify-checkboxfield",Collection:"amplify-collection",CollectionItems:"amplify-collection-items",CollectionSearch:"amplify-collection-search",CollectionPagination:"amplify-collection-pagination",CountryCodeSelect:"amplify-countrycodeselect",DialCodeSelect:"amplify-dialcodeselect",Divider:"amplify-divider",DividerLabel:"amplify-divider--label",DropZone:"amplify-dropzone",Field:"amplify-field",FieldDescription:"amplify-field__description",FieldErrorMessage:"amplify-field__error-message",FieldGroup:"amplify-field-group",FieldGroupControl:"amplify-field-group__control",FieldGroupOuterEnd:"amplify-field-group__outer-end",FieldGroupOuterStart:"amplify-field-group__outer-start",FieldGroupInnerEnd:"amplify-field-group__inner-end",FieldGroupInnerStart:"amplify-field-group__inner-start",FieldGroupIcon:"amplify-field-group__icon",FieldGroupIconButton:"amplify-field-group__icon-button",FieldGroupHasInnerEnd:"amplify-field-group--has-inner-end",FieldGroupHasInnerStart:"amplify-field-group--has-inner-start",FieldShowPassword:"amplify-field__show-password",FieldGroupFieldWrapper:"amplify-field-group__field-wrapper",Fieldset:"amplify-fieldset",FieldsetLegend:"amplify-fieldset__legend",Flex:"amplify-flex",Grid:"amplify-grid",Heading:"amplify-heading",HighlightMatch:"amplify-highlightmatch",HighlightMatchHighlighted:"amplify-highlightmatch__highlighted",Icon:"amplify-icon",Image:"amplify-image",Input:"amplify-input",Label:"amplify-label",Link:"amplify-link",Loader:"amplify-loader",LoaderLabel:"amplify-loader__label",MenuContent:"amplify-menu__content",MenuItem:"amplify-menu__content__item",MenuTrigger:"amplify-menu__trigger",MenuWrapper:"amplify-menu__wrapper",Message:"amplify-message",MessageIcon:"amplify-message__icon",MessageHeading:"amplify-message__heading",MessageBody:"amplify-message__body",MessageContent:"amplify-message__content",MessageDismiss:"amplify-message__dismiss",Pagination:"amplify-pagination",PaginationItem:"amplify-pagination__item",PasswordField:"amplify-passwordfield",PhoneNumberField:"amplify-phonenumberfield",Placeholder:"amplify-placeholder",Radio:"amplify-radio",RadioButton:"amplify-radio__button",RadioInput:"amplify-radio__input",RadioLabel:"amplify-radio__label",RadioGroupField:"amplify-radiogroupfield",RadioGroup:"amplify-radiogroup",Rating:"amplify-rating",RatingItem:"amplify-rating__item",RatingIcon:"amplify-rating__icon",RatingLabel:"amplify-rating__label",ScrollView:"amplify-scrollview",SearchField:"amplify-searchfield",SearchFieldClear:"amplify-searchfield__clear",SearchFieldSearch:"amplify-searchfield__search",Select:"amplify-select",SelectField:"amplify-selectfield",SelectWrapper:"amplify-select__wrapper",SelectIcon:"amplify-select__icon",SliderField:"amplify-sliderfield",SliderFieldGroup:"amplify-sliderfield__group",SliderFieldLabel:"amplify-sliderfield__label",SliderFieldRange:"amplify-sliderfield__range",SliderFieldRoot:"amplify-sliderfield__root",SliderFieldThumb:"amplify-sliderfield__thumb",SliderFieldTrack:"amplify-sliderfield__track",StepperField:"amplify-stepperfield",StepperFieldButtonDecrease:"amplify-stepperfield__button--decrease",StepperFieldButtonIncrease:"amplify-stepperfield__button--increase",StepperFieldInput:"amplify-stepperfield__input",StorageImage:"amplify-storageimage",StorageManager:"amplify-storagemanager",StorageManagerDropZone:"amplify-storagemanager__dropzone",StorageManagerDropZoneIcon:"amplify-storagemanager__dropzone__icon",StorageManagerDropZoneText:"amplify-storagemanager__dropzone__text",StorageManagerFilePicker:"amplify-storagemanager__file__picker",StorageManagerFile:"amplify-storagemanager__file",StorageManagerFileWrapper:"amplify-storagemanager__file__wrapper",StorageManagerFileList:"amplify-storagemanager__file__list",StorageManagerFileName:"amplify-storagemanager__file__name",StorageManagerFileSize:"amplify-storagemanager__file__size",StorageManagerFileInfo:"amplify-storagemanager__file__info",StorageManagerFileImage:"amplify-storagemanager__file__image",StorageManagerFileMain:"amplify-storagemanager__file__main",StorageManagerFileStatus:"amplify-storagemanager__file__status",StorageManagerLoader:"amplify-storagemanager__loader",StorageManagerPreviewer:"amplify-storagemanager__previewer",StorageManagerPreviewerText:"amplify-storagemanager__previewer__text",StorageManagerPreviewerActions:"amplify-storagemanager__previewer__actions",StorageManagerPreviewerFooter:"amplify-storagemanager__previewer__footer",SwitchField:"amplify-switchfield",SwitchLabel:"amplify-switch__label",SwitchThumb:"amplify-switch__thumb",SwitchTrack:"amplify-switch__track",SwitchWrapper:"amplify-switch__wrapper",Table:"amplify-table",TableCaption:"amplify-table__caption",TableBody:"amplify-table__body",TableTd:"amplify-table__td",TableTh:"amplify-table__th",TableFoot:"amplify-table__foot",TableHead:"amplify-table__head",TableRow:"amplify-table__row",Tabs:"amplify-tabs",TabsList:"amplify-tabs__list",TabsItem:"amplify-tabs__item",TabsPanel:"amplify-tabs__panel",Text:"amplify-text",Textarea:"amplify-textarea",TextAreaField:"amplify-textareafield",TextField:"amplify-textfield",ToggleButton:"amplify-togglebutton",ToggleButtonGroup:"amplify-togglebuttongroup",VisuallyHidden:"amplify-visually-hidden"}},90510:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});var o=r(18854);let n=(...e)=>{let t=[];for(let r of e)if(r){if((0,o.HD)(r)){t.push(r);continue}if("number"==typeof r){t.push(r.toString());continue}if(Array.isArray(r)){t.push(n(...r));continue}if((0,o.Kn)(r)){if(r.toString!==Object.prototype.toString&&"[object Object]"!==r.toString()){t.push(r.toString());continue}for(let e in r)(0,o.e$)(r,e)&&r[e]&&t.push(e)}}return t.join(" ")}},18854:function(e,t,r){"use strict";function o(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function n(e){return"string"==typeof e||"object"==typeof e&&"[object String]"===Object.prototype.toString.call(e)}function i(e){if(null==e)return!0;if(o(e)&&(o(e)&&"[object Map]"===Object.prototype.toString.call(e)||o(e)&&"[object Set]"===Object.prototype.toString.call(e)))return!e.size;if(o(e)&&(n(e)||Array.isArray(e)))return!e.length;for(let t in e)if(c(e,t))return!1;return!0}function a(e){return Array.isArray(e)&&i(e)}function s(...e){return e.every(a)}function l(e){return o(e)&&i(e)}function u(...e){return e.every(l)}function c(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function d(e){return"function"==typeof e}r.d(t,{HD:function(){return n},Kn:function(){return o},MO:function(){return v},Qr:function(){return l},T2:function(){return p},XN:function(){return u},YX:function(){return h},ZT:function(){return g},e$:function(){return c},mf:function(){return d},wq:function(){return f},xb:function(){return i},yc:function(){return s}});let f=(e,t)=>t?`${e}--${t}`:"",p=(e,t,r)=>r?`${e}--${t}`:"";function h(e){return d(e)}function g(...e){}function v(e,t){let r={},o={};return Object.entries(e).forEach(([e,n])=>{t(e)?r[e]=n:o[e]=n}),[r,o]}},769:function(e,t,r){"use strict";r.d(t,{V:function(){return f}});var o=r(90922);/*! js-cookie v3.0.5 | MIT */function n(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)e[o]=r[o]}return e}var i=function e(t,r){function o(e,o,i){if("undefined"!=typeof document){"number"==typeof(i=n({},r,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in i)i[s]&&(a+="; "+s,!0!==i[s]&&(a+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(o,e)+a}}return Object.create({set:o,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var r=document.cookie?document.cookie.split("; "):[],o={},n=0;n<r.length;n++){var i=r[n].split("="),a=i.slice(1).join("=");try{var s=decodeURIComponent(i[0]);if(o[s]=t.read(a,s),e===s)break}catch(e){}}return e?o[e]:o}},remove:function(e,t){o(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});class a{constructor(e={}){let{path:t,domain:r,expires:o,sameSite:n,secure:i}=e;if(this.domain=r,this.path=t||"/",this.expires=Object.prototype.hasOwnProperty.call(e,"expires")?o:365,this.secure=!Object.prototype.hasOwnProperty.call(e,"secure")||i,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!n||!["strict","lax","none"].includes(n))throw Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===n&&!this.secure)throw Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=n}}async setItem(e,t){i.set(e,t,this.getData())}async getItem(e){return i.get(e)??null}async removeItem(e){i.remove(e,this.getData())}async clear(){let e=Object.keys(i.get()).map(e=>this.removeItem(e));await Promise.all(e)}getData(){return{path:this.path,expires:this.expires,domain:this.domain,secure:this.secure,...this.sameSite&&{sameSite:this.sameSite}}}}var s=r(35658),l=r(7051),u=r(40739),c=r(22765);let d=new(r(29737)).$(new c.S(s.Fm)),f={configure(e,t){let r=(0,l.h)(e);if(!r.Auth||t?.Auth){o.d.configure(r,t);return}if(!o.d.libraryOptions.Auth){u.D.setAuthConfig(r.Auth),u.D.setKeyValueStorage(t?.ssr?new a({sameSite:"lax"}):s.Fm),o.d.configure(r,{...t,Auth:{tokenProvider:u.D,credentialsProvider:d}});return}if(t){void 0!==t.ssr&&u.D.setKeyValueStorage(t.ssr?new a({sameSite:"lax"}):s.Fm),o.d.configure(r,{Auth:o.d.libraryOptions.Auth,...t});return}o.d.configure(r)},getConfig:()=>o.d.getConfig()}}}]);