/*! For license information please see 7.0f41f739.chunk.js.LICENSE.txt */ (this.webpackJsonpfrontend=this.webpackJsonpfrontend||[]).push([[7],[function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return s})),n.d(t,"e",(function(){return u}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}Object.create},function(e,t,n){"use strict";e.exports=n(318)},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return f})),n.d(t,"e",(function(){return d})),n.d(t,"f",(function(){return h})),n.d(t,"g",(function(){return p})),n.d(t,"d",(function(){return _})),n.d(t,"c",(function(){return S}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function a(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var e=[],t=0;t0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var a=function(){function e(e){this.method=e.method||"GET",this.hostname=e.hostname||"localhost",this.port=e.port,this.query=e.query||{},this.headers=e.headers||{},this.body=e.body,this.protocol=e.protocol?":"!==e.protocol.substr(-1)?e.protocol+":":e.protocol:"https:",this.path=e.path?"/"!==e.path.charAt(0)?"/"+e.path:e.path:"/"}return e.isInstance=function(e){if(!e)return!1;var t=e;return"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"===typeof t.query&&"object"===typeof t.headers},e.prototype.clone=function(){var t,n=new e(i(i({},this),{headers:i({},this.headers)}));return n.query&&(n.query=(t=n.query,Object.keys(t).reduce((function(e,n){var r,a=t[n];return i(i({},e),((r={})[n]=Array.isArray(a)?function(){for(var e=[],t=0;t=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return E(e)?"function"===typeof t?Object(r.a)({},n,{queryKey:e,queryFn:t}):Object(r.a)({},t,{queryKey:e}):e}function f(e,t,n){return E(e)?"function"===typeof t?Object(r.a)({},n,{mutationKey:e,mutationFn:t}):Object(r.a)({},t,{mutationKey:e}):"function"===typeof e?Object(r.a)({},t,{mutationFn:e}):Object(r.a)({},e)}function d(e,t,n){return E(e)?[Object(r.a)({},t,{queryKey:e}),n]:[e||{},t]}function h(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(E(s))if(r){if(t.queryHash!==v(s,t.options))return!1}else if(!m(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!==typeof u||t.isStale()===u)&&(("boolean"!==typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function p(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(E(o)){if(!t.options.mutationKey)return!1;if(n){if(g(t.options.mutationKey)!==g(o))return!1}else if(!m(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function v(e,t){return((null==t?void 0:t.queryKeyHashFn)||g)(e)}function g(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return _(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function m(e,t){return b(u(e),u(t))}function b(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!b(e[n],t[n])})))}function y(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||_(e)&&_(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u-1}function T(e){return M(e)?window.pageYOffset:e.scrollTop}function x(e,t){M(e)?window.scrollTo(0,t):e.scrollTop=t}function C(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:_,i=T(e),o=t-i,a=10,s=0;function u(){var t=C(s+=a,i,o,n);x(e,t),sn.bottom?x(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=h)return{placement:"bottom",maxHeight:t};if(E>=h&&!a)return o&&A(u,O,M),{placement:"bottom",maxHeight:t};if(!a&&E>=r||a&&_>=r)return o&&A(u,O,M),{placement:"bottom",maxHeight:a?_-b:E-b};if("auto"===i||a){var C=t,I=a?w:S;return I>=r&&(C=Math.min(I-b-s.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===i)return o&&x(u,O),{placement:"bottom",maxHeight:t};break;case"top":if(w>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return o&&A(u,k,M),{placement:"top",maxHeight:t};if(!a&&S>=r||a&&w>=r){var P=t;return(!a&&S>=r||a&&w>=r)&&(P=a?w-y:S-y),o&&A(u,k,M),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var F=function(e){return"auto"===e?"bottom":e},B=function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,o=r.spacing,a=r.colors;return t={label:"menu"},Object(d.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(d.a)(t,"backgroundColor",a.neutral0),Object(d.a)(t,"borderRadius",i),Object(d.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(d.a)(t,"marginBottom",o.menuGutter),Object(d.a)(t,"marginTop",o.menuGutter),Object(d.a)(t,"position","absolute"),Object(d.a)(t,"width","100%"),Object(d.a)(t,"zIndex",1),t},z=Object(h.createContext)({getPortalPlacement:null}),q=function(e){Object(f.a)(n,e);var t=w(n);function n(){var e;Object(c.a)(this,n);for(var r=arguments.length,i=new Array(r),o=0;o1?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var k=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&O(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(_))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(_,"active"),r.setAttribute("data-styled-version","5.3.0");var a=D();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},U=function(){function e(e){var t=this.element=N(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(c+=e+",")})),r+=""+s+u+'{content:"'+c+'"}/*!sc*/\n'}}}return r}(this)},e}(),H=/(a)(d)/gi,W=function(e){return String.fromCharCode(e+(e>25?39:97))};function G(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=W(t%52)+n;return(W(t%52)+n).replace(H,"$1-$2")}var K=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Y=function(e){return K(5381,e)};function $(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,c=K(this.baseHash,n.hash),l="",f=0;f>>0);if(!t.hasNameForId(r,v)){var g=n(l,"."+v,void 0,r);t.insertRules(r,v,g)}i.push(v)}}return i.join(" ")},e}(),Z=/^\s*\/\/.*$/gm,J=[":","[",".","#"];function ee(e){var t,n,r,i,o=void 0===e?m:e,a=o.options,s=void 0===a?m:a,c=o.plugins,l=void 0===c?g:c,f=new u.a(s),d=[],h=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,u,c,l,f){switch(n){case 1:if(0===l&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===c)return r+"/*|*/";break;case 3:switch(c){case 102:case 112:return e(i[0]+r),"";default:return r+(0===f?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){d.push(e)})),p=function(e,r,o){return 0===r&&-1!==J.indexOf(o[n.length])||o.match(i)?e:"."+t};function v(e,o,a,s){void 0===s&&(s="&");var u=e.replace(Z,""),c=o&&a?a+" "+o+" { "+u+" }":u;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),f(a||!o?"":o,c)}return f.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,p))},h,function(e){if(-2===e){var t=d;return d=[],t}}])),v.hash=l.length?l.reduce((function(e,t){return t.name||O(15),K(e,t.name)}),5381).toString():"",v}var te=o.a.createContext(),ne=(te.Consumer,o.a.createContext()),re=(ne.Consumer,new V),ie=ee();function oe(){return Object(i.useContext)(te)||re}function ae(){return Object(i.useContext)(ne)||ie}function se(e){var t=Object(i.useState)(e.stylisPlugins),n=t[0],r=t[1],a=oe(),u=Object(i.useMemo)((function(){var t=a;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),c=Object(i.useMemo)((function(){return ee({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return Object(i.useEffect)((function(){s()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),o.a.createElement(te.Provider,{value:u},o.a.createElement(ne.Provider,{value:c},e.children))}var ue=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=ie);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return O(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=ie),this.name+e.hash},e}(),ce=/([A-Z])/,le=/([A-Z])/g,fe=/^ms-/,de=function(e){return"-"+e.toLowerCase()};function he(e){return ce.test(e)?e.replace(le,de).replace(fe,"-ms-"):e}var pe=function(e){return null==e||!1===e||""===e};function ve(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,ye=/(^-|-$)/g;function we(e){return e.replace(be,"-").replace(ye,"")}var _e=function(e){return G(Y(e)>>>0)};function Se(e){return"string"==typeof e&&!0}var Ee=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Oe=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function ke(e,t,n){var r=e[n];Ee(t)&&Ee(r)?Me(r,t):e[n]=t}function Me(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+(Se(e)?e:we(y(e)));return Ce(e,h({},i,{attrs:S,componentId:o}),n)},Object.defineProperty(O,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Me({},e.defaultProps,t):t}}),O.toString=function(){return"."+O.styledComponentId},a&&d()(O,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),O}var Ae=function(e){return function e(t,n,i){if(void 0===i&&(i=m),!Object(r.isValidElementType)(n))return O(1,String(n));var o=function(){return t(n,i,ge.apply(void 0,arguments))};return o.withConfig=function(r){return e(t,n,h({},i,{},r))},o.attrs=function(r){return e(t,n,h({},i,{attrs:Array.prototype.concat(i.attrs,r).filter(Boolean)}))},o}(Ce,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Ae[e]=Ae(e)}));!function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=$(e),V.registerId(this.componentId+1)}var t=e.prototype;t.createStyles=function(e,t,n,r){var i=r(ve(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&V.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)}}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString(),n=D();return""},this.getStyleTags=function(){return e.sealed?O(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return O(2);var n=((t={})[_]="",t["data-styled-version"]="5.3.0",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=D();return r&&(n.nonce=r),[o.a.createElement("style",h({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new V({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?O(2):o.a.createElement(se,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return O(3)}}();t.a=Ae}).call(this,n(23))},function(e,t,n){"use strict";(function(e){var r=n(330),i=n(331),o=n(203);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function p(e,t){if(u.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return z(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return q(e).length;default:if(r)return z(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return A(this,t,n);case"utf8":case"utf-8":return M(this,t,n);case"ascii":return x(this,t,n);case"latin1":case"binary":return C(this,t,n);case"base64":return k(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function g(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:b(e,t,n,r,i);if("number"===typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):b(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function b(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;di&&(r=i):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function k(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function M(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i239?4:c>223?3:c>191?2:1;if(i+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128===(192&(o=e[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=f}return function(e){var t=e.length;if(t<=T)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},u.prototype.compare=function(e,t,n,r,i){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=e.slice(t,n),f=0;fi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return y(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return _(this,e,t,n);case"latin1":case"binary":return S(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var T=4096;function x(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;ir)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function R(e,t,n,r,i,o){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function L(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function D(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,o){return o||D(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,o){return o||D(e,0,n,8),i.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(i*=256);)r+=this[e+--t]*i;return r},u.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},u.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),i.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),i.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||R(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o=0&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):L(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>0)-s&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);R(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):L(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||R(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):L(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function q(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function V(e,t,n,r){for(var i=0;i=t.length||i>=e.length);++i)t[i+n]=e[i];return i}}).call(this,n(26))},function(e,t,n){var r=n(13),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},,function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(7),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){this.transactions++;var t=e();return this.transactions--,this.transactions||this.flush(),t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):Object(r.o)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1)for(var n=1;n=49&&a<=54?a-49+10:a>=17&&a<=22?a-17+10:15&a}return r}function u(e,t,n,r){for(var i=0,o=Math.min(e.length,n),a=t;a=49?s-49+10:s>=17?s-17+10:s}return i}o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&i++,16===t?this._parseHex(e,i):this._parseBase(e,t,i),"-"===e[0]&&(this.negative=1),this.strip(),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this.strip()},o.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n=t;n-=6)i=s(e,n,n+6),this.words[r]|=i<>>26-o&4194303,(o+=24)>=26&&(o-=26,r++);n+6!==t&&(i=s(e,t,n+6),this.words[r]|=i<>>26-o&4194303),this.strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},o.prototype.inspect=function(){return(this.red?""};var c=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],l=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,f=67108863&u,d=Math.min(c,t.length-1),h=Math.max(0,c-e.length+1);h<=d;h++){var p=c-h|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[h])+f)/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n.strip()}o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?c[6-u.length]+u+n:u+n,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var d=l[e],h=f[e];n="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(h).toString(e);n=(p=p.idivn(h)).isZero()?v+n:c[d-v.length]+v+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16)},o.prototype.toBuffer=function(e,t){return r("undefined"!==typeof a),this.toArrayLike(a,e,t)},o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},o.prototype.toArrayLike=function(e,t,n){var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0"),this.strip();var a,s,u="le"===t,c=new e(o),l=this.clone();if(u){for(s=0;!l.isZero();s++)a=l.andln(255),l.iushrn(8),c[s]=a;for(;s=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;te.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;ne.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;re.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this.strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;oe.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,h=0|a[1],p=8191&h,v=h>>>13,g=0|a[2],m=8191&g,b=g>>>13,y=0|a[3],w=8191&y,_=y>>>13,S=0|a[4],E=8191&S,O=S>>>13,k=0|a[5],M=8191&k,T=k>>>13,x=0|a[6],C=8191&x,A=x>>>13,I=0|a[7],P=8191&I,R=I>>>13,j=0|a[8],L=8191&j,D=j>>>13,N=0|a[9],U=8191&N,F=N>>>13,B=0|s[0],z=8191&B,q=B>>>13,V=0|s[1],H=8191&V,W=V>>>13,G=0|s[2],K=8191&G,Y=G>>>13,$=0|s[3],X=8191&$,Q=$>>>13,Z=0|s[4],J=8191&Z,ee=Z>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,he=0|s[9],pe=8191&he,ve=he>>>13;n.negative=e.negative^t.negative,n.length=19;var ge=(c+(r=Math.imul(f,z))|0)+((8191&(i=(i=Math.imul(f,q))+Math.imul(d,z)|0))<<13)|0;c=((o=Math.imul(d,q))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(p,z),i=(i=Math.imul(p,q))+Math.imul(v,z)|0,o=Math.imul(v,q);var me=(c+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,W)|0)+Math.imul(d,H)|0))<<13)|0;c=((o=o+Math.imul(d,W)|0)+(i>>>13)|0)+(me>>>26)|0,me&=67108863,r=Math.imul(m,z),i=(i=Math.imul(m,q))+Math.imul(b,z)|0,o=Math.imul(b,q),r=r+Math.imul(p,H)|0,i=(i=i+Math.imul(p,W)|0)+Math.imul(v,H)|0,o=o+Math.imul(v,W)|0;var be=(c+(r=r+Math.imul(f,K)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,K)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(w,z),i=(i=Math.imul(w,q))+Math.imul(_,z)|0,o=Math.imul(_,q),r=r+Math.imul(m,H)|0,i=(i=i+Math.imul(m,W)|0)+Math.imul(b,H)|0,o=o+Math.imul(b,W)|0,r=r+Math.imul(p,K)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(v,K)|0,o=o+Math.imul(v,Y)|0;var ye=(c+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,Q)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,Q)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(E,z),i=(i=Math.imul(E,q))+Math.imul(O,z)|0,o=Math.imul(O,q),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,W)|0)+Math.imul(_,H)|0,o=o+Math.imul(_,W)|0,r=r+Math.imul(m,K)|0,i=(i=i+Math.imul(m,Y)|0)+Math.imul(b,K)|0,o=o+Math.imul(b,Y)|0,r=r+Math.imul(p,X)|0,i=(i=i+Math.imul(p,Q)|0)+Math.imul(v,X)|0,o=o+Math.imul(v,Q)|0;var we=(c+(r=r+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(M,z),i=(i=Math.imul(M,q))+Math.imul(T,z)|0,o=Math.imul(T,q),r=r+Math.imul(E,H)|0,i=(i=i+Math.imul(E,W)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,W)|0,r=r+Math.imul(w,K)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(_,K)|0,o=o+Math.imul(_,Y)|0,r=r+Math.imul(m,X)|0,i=(i=i+Math.imul(m,Q)|0)+Math.imul(b,X)|0,o=o+Math.imul(b,Q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,ee)|0;var _e=(c+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;c=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(C,z),i=(i=Math.imul(C,q))+Math.imul(A,z)|0,o=Math.imul(A,q),r=r+Math.imul(M,H)|0,i=(i=i+Math.imul(M,W)|0)+Math.imul(T,H)|0,o=o+Math.imul(T,W)|0,r=r+Math.imul(E,K)|0,i=(i=i+Math.imul(E,Y)|0)+Math.imul(O,K)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Q)|0)+Math.imul(_,X)|0,o=o+Math.imul(_,Q)|0,r=r+Math.imul(m,J)|0,i=(i=i+Math.imul(m,ee)|0)+Math.imul(b,J)|0,o=o+Math.imul(b,ee)|0,r=r+Math.imul(p,ne)|0,i=(i=i+Math.imul(p,re)|0)+Math.imul(v,ne)|0,o=o+Math.imul(v,re)|0;var Se=(c+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(P,z),i=(i=Math.imul(P,q))+Math.imul(R,z)|0,o=Math.imul(R,q),r=r+Math.imul(C,H)|0,i=(i=i+Math.imul(C,W)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,W)|0,r=r+Math.imul(M,K)|0,i=(i=i+Math.imul(M,Y)|0)+Math.imul(T,K)|0,o=o+Math.imul(T,Y)|0,r=r+Math.imul(E,X)|0,i=(i=i+Math.imul(E,Q)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,Q)|0,r=r+Math.imul(w,J)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(_,J)|0,o=o+Math.imul(_,ee)|0,r=r+Math.imul(m,ne)|0,i=(i=i+Math.imul(m,re)|0)+Math.imul(b,ne)|0,o=o+Math.imul(b,re)|0,r=r+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(v,oe)|0,o=o+Math.imul(v,ae)|0;var Ee=(c+(r=r+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,z),i=(i=Math.imul(L,q))+Math.imul(D,z)|0,o=Math.imul(D,q),r=r+Math.imul(P,H)|0,i=(i=i+Math.imul(P,W)|0)+Math.imul(R,H)|0,o=o+Math.imul(R,W)|0,r=r+Math.imul(C,K)|0,i=(i=i+Math.imul(C,Y)|0)+Math.imul(A,K)|0,o=o+Math.imul(A,Y)|0,r=r+Math.imul(M,X)|0,i=(i=i+Math.imul(M,Q)|0)+Math.imul(T,X)|0,o=o+Math.imul(T,Q)|0,r=r+Math.imul(E,J)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(O,J)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(_,ne)|0,o=o+Math.imul(_,re)|0,r=r+Math.imul(m,oe)|0,i=(i=i+Math.imul(m,ae)|0)+Math.imul(b,oe)|0,o=o+Math.imul(b,ae)|0,r=r+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(v,ue)|0,o=o+Math.imul(v,ce)|0;var Oe=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(U,z),i=(i=Math.imul(U,q))+Math.imul(F,z)|0,o=Math.imul(F,q),r=r+Math.imul(L,H)|0,i=(i=i+Math.imul(L,W)|0)+Math.imul(D,H)|0,o=o+Math.imul(D,W)|0,r=r+Math.imul(P,K)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(R,K)|0,o=o+Math.imul(R,Y)|0,r=r+Math.imul(C,X)|0,i=(i=i+Math.imul(C,Q)|0)+Math.imul(A,X)|0,o=o+Math.imul(A,Q)|0,r=r+Math.imul(M,J)|0,i=(i=i+Math.imul(M,ee)|0)+Math.imul(T,J)|0,o=o+Math.imul(T,ee)|0,r=r+Math.imul(E,ne)|0,i=(i=i+Math.imul(E,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(_,oe)|0,o=o+Math.imul(_,ae)|0,r=r+Math.imul(m,ue)|0,i=(i=i+Math.imul(m,ce)|0)+Math.imul(b,ue)|0,o=o+Math.imul(b,ce)|0,r=r+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,de)|0)+Math.imul(v,fe)|0,o=o+Math.imul(v,de)|0;var ke=(c+(r=r+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ve)|0)+Math.imul(d,pe)|0))<<13)|0;c=((o=o+Math.imul(d,ve)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(U,H),i=(i=Math.imul(U,W))+Math.imul(F,H)|0,o=Math.imul(F,W),r=r+Math.imul(L,K)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(D,K)|0,o=o+Math.imul(D,Y)|0,r=r+Math.imul(P,X)|0,i=(i=i+Math.imul(P,Q)|0)+Math.imul(R,X)|0,o=o+Math.imul(R,Q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,ee)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,ee)|0,r=r+Math.imul(M,ne)|0,i=(i=i+Math.imul(M,re)|0)+Math.imul(T,ne)|0,o=o+Math.imul(T,re)|0,r=r+Math.imul(E,oe)|0,i=(i=i+Math.imul(E,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,ce)|0,r=r+Math.imul(m,fe)|0,i=(i=i+Math.imul(m,de)|0)+Math.imul(b,fe)|0,o=o+Math.imul(b,de)|0;var Me=(c+(r=r+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ve)|0)+Math.imul(v,pe)|0))<<13)|0;c=((o=o+Math.imul(v,ve)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,r=Math.imul(U,K),i=(i=Math.imul(U,Y))+Math.imul(F,K)|0,o=Math.imul(F,Y),r=r+Math.imul(L,X)|0,i=(i=i+Math.imul(L,Q)|0)+Math.imul(D,X)|0,o=o+Math.imul(D,Q)|0,r=r+Math.imul(P,J)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(R,J)|0,o=o+Math.imul(R,ee)|0,r=r+Math.imul(C,ne)|0,i=(i=i+Math.imul(C,re)|0)+Math.imul(A,ne)|0,o=o+Math.imul(A,re)|0,r=r+Math.imul(M,oe)|0,i=(i=i+Math.imul(M,ae)|0)+Math.imul(T,oe)|0,o=o+Math.imul(T,ae)|0,r=r+Math.imul(E,ue)|0,i=(i=i+Math.imul(E,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,de)|0;var Te=(c+(r=r+Math.imul(m,pe)|0)|0)+((8191&(i=(i=i+Math.imul(m,ve)|0)+Math.imul(b,pe)|0))<<13)|0;c=((o=o+Math.imul(b,ve)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(U,X),i=(i=Math.imul(U,Q))+Math.imul(F,X)|0,o=Math.imul(F,Q),r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,ee)|0,r=r+Math.imul(P,ne)|0,i=(i=i+Math.imul(P,re)|0)+Math.imul(R,ne)|0,o=o+Math.imul(R,re)|0,r=r+Math.imul(C,oe)|0,i=(i=i+Math.imul(C,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,r=r+Math.imul(M,ue)|0,i=(i=i+Math.imul(M,ce)|0)+Math.imul(T,ue)|0,o=o+Math.imul(T,ce)|0,r=r+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,de)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,de)|0;var xe=(c+(r=r+Math.imul(w,pe)|0)|0)+((8191&(i=(i=i+Math.imul(w,ve)|0)+Math.imul(_,pe)|0))<<13)|0;c=((o=o+Math.imul(_,ve)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(U,J),i=(i=Math.imul(U,ee))+Math.imul(F,J)|0,o=Math.imul(F,ee),r=r+Math.imul(L,ne)|0,i=(i=i+Math.imul(L,re)|0)+Math.imul(D,ne)|0,o=o+Math.imul(D,re)|0,r=r+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(R,oe)|0,o=o+Math.imul(R,ae)|0,r=r+Math.imul(C,ue)|0,i=(i=i+Math.imul(C,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,r=r+Math.imul(M,fe)|0,i=(i=i+Math.imul(M,de)|0)+Math.imul(T,fe)|0,o=o+Math.imul(T,de)|0;var Ce=(c+(r=r+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ve)|0)+Math.imul(O,pe)|0))<<13)|0;c=((o=o+Math.imul(O,ve)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(U,ne),i=(i=Math.imul(U,re))+Math.imul(F,ne)|0,o=Math.imul(F,re),r=r+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(D,oe)|0,o=o+Math.imul(D,ae)|0,r=r+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(R,ue)|0,o=o+Math.imul(R,ce)|0,r=r+Math.imul(C,fe)|0,i=(i=i+Math.imul(C,de)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,de)|0;var Ae=(c+(r=r+Math.imul(M,pe)|0)|0)+((8191&(i=(i=i+Math.imul(M,ve)|0)+Math.imul(T,pe)|0))<<13)|0;c=((o=o+Math.imul(T,ve)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(U,oe),i=(i=Math.imul(U,ae))+Math.imul(F,oe)|0,o=Math.imul(F,ae),r=r+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,ce)|0)+Math.imul(D,ue)|0,o=o+Math.imul(D,ce)|0,r=r+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,de)|0)+Math.imul(R,fe)|0,o=o+Math.imul(R,de)|0;var Ie=(c+(r=r+Math.imul(C,pe)|0)|0)+((8191&(i=(i=i+Math.imul(C,ve)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,ve)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(U,ue),i=(i=Math.imul(U,ce))+Math.imul(F,ue)|0,o=Math.imul(F,ce),r=r+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,de)|0)+Math.imul(D,fe)|0,o=o+Math.imul(D,de)|0;var Pe=(c+(r=r+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,ve)|0)+Math.imul(R,pe)|0))<<13)|0;c=((o=o+Math.imul(R,ve)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(U,fe),i=(i=Math.imul(U,de))+Math.imul(F,fe)|0,o=Math.imul(F,de);var Re=(c+(r=r+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,ve)|0)+Math.imul(D,pe)|0))<<13)|0;c=((o=o+Math.imul(D,ve)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863;var je=(c+(r=Math.imul(U,pe))|0)+((8191&(i=(i=Math.imul(U,ve))+Math.imul(F,pe)|0))<<13)|0;return c=((o=Math.imul(F,ve))+(i>>>13)|0)+(je>>>26)|0,je&=67108863,u[0]=ge,u[1]=me,u[2]=be,u[3]=ye,u[4]=we,u[5]=_e,u[6]=Se,u[7]=Ee,u[8]=Oe,u[9]=ke,u[10]=Me,u[11]=Te,u[12]=xe,u[13]=Ce,u[14]=Ae,u[15]=Ie,u[16]=Pe,u[17]=Re,u[18]=je,0!==c&&(u[19]=c,n.length++),n};function p(e,t,n){return(new v).mulp(e,t,n)}function v(e,t){this.x=e,this.y=t}Math.imul||(h=d),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?h(this,e,t):n<63?d(this,e,t):n<1024?function(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n.strip()}(this,e,t):p(this,e,t)},v.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r>=1;return r},v.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a>=26,t+=i/67108864|0,t+=o>>>26,this.words[n]=67108863&o}return 0!==t&&(this.words[n]=t,this.length++),this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n>>i}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this.strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this.strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s.strip(),r.strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modn=function(e){r(e<=67108863);for(var t=(1<<26)%e,n=0,i=this.length-1;i>=0;i--)n=(t*n+(0|this.words[i]))%e;return n},o.prototype.idivn=function(e){r(e<=67108863);for(var t=0,n=this.length-1;n>=0;n--){var i=(0|this.words[n])+67108864*t;this.words[n]=i/e|0,t=i%e}return this.strip()},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;0===(t.words[0]&h)&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(n.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0===(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:ie.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){ri&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new S(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function m(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){m.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){m.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){m.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function _(){m.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function S(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function E(e){S.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}m.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},m.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},m.prototype.split=function(e,t){e.iushrn(this.n,0,t)},m.prototype.imulK=function(e){return e.imul(this.k)},i(b,m),b.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},b.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new b;else if("p224"===e)t=new y;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new _}return g[e]=t,t},S.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},S.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},S.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},S.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},S.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},S.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},S.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},S.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},S.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},S.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},S.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},S.prototype.isqr=function(e){return this.imul(e,e.clone())},S.prototype.sqr=function(e){return this.mul(e,e)},S.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(s);){for(var v=h,g=0;0!==v.cmp(s);g++)v=v.redSqr();r(g=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var f=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},S.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},S.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new E(e)},i(E,S),E.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},E.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},E.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(97)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return u}));for(var r={},i={},o=0;o<256;o++){var a=o.toString(16).toLowerCase();1===a.length&&(a="0"+a),r[o]=a,i[a]=o}function s(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");for(var t=new Uint8Array(e.length/2),n=0;n>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=c.clone.call(this);return e.words=this.words.slice(0),e},random:function(e){for(var t=[],n=0;n>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new l.init(n,t/2)}},h=f.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new l.init(n,t)}},p=f.Utf8={stringify:function(e){try{return decodeURIComponent(escape(h.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return h.parse(unescape(encodeURIComponent(e)))}},v=u.BufferedBlockAlgorithm=c.extend({reset:function(){this._data=new l.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=p.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n,r=this._data,i=r.words,o=r.sigBytes,a=this.blockSize,s=o/(4*a),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*a,c=e.min(4*u,o);if(u){for(var f=0;f=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function h(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0||!Array.isArray(t)&&t?c({},e,t):{}}function y(e){var t=e.forwardedRef,n=d(e,["forwardedRef"]),i=n.icon,o=n.mask,a=n.symbol,s=n.className,u=n.title,l=n.titleId,p=m(i),v=b("classes",[].concat(h(function(e){var t,n=e.spin,r=e.pulse,i=e.fixedWidth,o=e.inverse,a=e.border,s=e.listItem,u=e.flip,l=e.size,f=e.rotation,d=e.pull,h=(c(t={"fa-spin":n,"fa-pulse":r,"fa-fw":i,"fa-inverse":o,"fa-border":a,"fa-li":s,"fa-flip-horizontal":"horizontal"===u||"both"===u,"fa-flip-vertical":"vertical"===u||"both"===u},"fa-".concat(l),"undefined"!==typeof l&&null!==l),c(t,"fa-rotate-".concat(f),"undefined"!==typeof f&&null!==f&&0!==f),c(t,"fa-pull-".concat(d),"undefined"!==typeof d&&null!==d),c(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(h).map((function(e){return h[e]?e:null})).filter((function(e){return e}))}(n)),h(s.split(" ")))),_=b("transform","string"===typeof n.transform?r.b.transform(n.transform):n.transform),S=b("mask",m(o)),E=Object(r.a)(p,f({},v,{},_,{},S,{symbol:a,title:u,titleId:l}));if(!E)return function(){var e;!g&&console&&"function"===typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",p),null;var O=E.abstract,k={ref:t};return Object.keys(n).forEach((function(e){y.defaultProps.hasOwnProperty(e)||(k[e]=n[e])})),w(O[0],k)}y.displayName="FontAwesomeIcon",y.propTypes={border:o.a.bool,className:o.a.string,mask:o.a.oneOfType([o.a.object,o.a.array,o.a.string]),fixedWidth:o.a.bool,inverse:o.a.bool,flip:o.a.oneOf(["horizontal","vertical","both"]),icon:o.a.oneOfType([o.a.object,o.a.array,o.a.string]),listItem:o.a.bool,pull:o.a.oneOf(["right","left"]),pulse:o.a.bool,rotation:o.a.oneOf([0,90,180,270]),size:o.a.oneOf(["lg","xs","sm","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:o.a.bool,symbol:o.a.oneOfType([o.a.bool,o.a.string]),title:o.a.string,transform:o.a.oneOfType([o.a.string,o.a.object]),swapOpacity:o.a.bool},y.defaultProps={border:!1,className:"",mask:null,fixedWidth:!1,inverse:!1,flip:null,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,symbol:!1,title:"",transform:null,swapOpacity:!1};var w=function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"===typeof n)return n;var i=(n.children||[]).map((function(n){return e(t,n)})),o=Object.keys(n.attributes||{}).reduce((function(e,t){var r=n.attributes[t];switch(t){case"class":e.attrs.className=r,delete n.attributes.class;break;case"style":e.attrs.style=v(r);break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=r:e.attrs[p(t)]=r}return e}),{attrs:{}}),a=r.style,s=void 0===a?{}:a,u=d(r,["style"]);return o.attrs.style=f({},o.attrs.style,{},s),t.apply(void 0,[n.tag,f({},o.attrs,{},u)].concat(h(i)))}.bind(null,s.a.createElement)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(128);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Object(r.a)(e,t)}},function(e,t,n){"use strict";var r=n(272),i=Object.prototype.toString;function o(e){return"[object Array]"===i.call(e)}function a(e){return"undefined"===typeof e}function s(e){return null!==e&&"object"===typeof e}function u(e){if("[object Object]"!==i.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===i.call(e)}function l(e,t){if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),o(e))for(var n=0,r=e.length;no?1*r:0})),!0},a=function(e,t){var n=Object.assign({},e);return t&&("string"===typeof t?delete n[t]:t.forEach((function(e){delete n[e]}))),n},s=function(e,t){void 0===t&&(t="application/octet-stream");var n=e.toLowerCase(),i=r.filter((function(e){return n.endsWith("."+e.ext)}));return i.length>0?i[0].type:t},u=function(e){var t=e.toLowerCase();return!!t.startsWith("text/")||("application/json"===t||"application/xml"===t||"application/sh"===t)},c=function(){for(var e="",t="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",n=32;n>0;n-=1)e+=t[Math.floor(Math.random()*t.length)];return e},l=function(e){if(e.isResolved)return e;var t=!0,n=!1,r=!1,i=e.then((function(e){return r=!0,t=!1,e}),(function(e){throw n=!0,t=!1,e}));return i.isFullfilled=function(){return r},i.isPending=function(){return t},i.isRejected=function(){return n},i},f=function(){if("undefined"===typeof self)return!1;var e=self;return"undefined"!==typeof e.WorkerGlobalScope&&self instanceof e.WorkerGlobalScope},d=function(){return{isBrowser:"undefined"!==typeof window&&"undefined"!==typeof window.document,isNode:"undefined"!==typeof e&&null!=e.versions&&null!=e.versions.node}},h=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!v(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toLowerCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},p=function e(t,n,r){if(void 0===n&&(n=[]),void 0===r&&(r=[]),!v(t))return t;var i={};for(var o in t){if(t.hasOwnProperty(o))i[n.includes(o)?o:o[0].toUpperCase()+o.slice(1)]=r.includes(o)?t[o]:e(t[o],n,r)}return i},v=function(e){return e instanceof Object&&!(e instanceof Array)&&!(e instanceof Function)&&!(e instanceof Number)&&!(e instanceof String)&&!(e instanceof Boolean)},g=function(){function e(){}return e.isEmpty=i,e.sortByField=o,e.objectLessAttributes=a,e.filenameToContentType=s,e.isTextFile=u,e.generateRandomString=c,e.makeQuerablePromise=l,e.isWebWorker=f,e.browserOrNode=d,e.transferKeyToLowerCase=h,e.transferKeyToUpperCase=p,e.isStrictObject=v,e}()}).call(this,n(23))},function(e,t,n){"use strict";t.a=function(e,t){}},function(e,t,n){"use strict";var r="Invariant failed";t.a=function(e,t){if(!e)throw new Error(r)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(196);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}}(e,t)||Object(r.a)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},function(e,t){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=n,n.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},function(e,t,n){"use strict";var r=t,i=n(29),o=n(42),a=n(240);r.assert=o,r.toArray=a.toArray,r.zero2=a.zero2,r.toHex=a.toHex,r.encode=a.encode,r.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},r.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0===(1&u)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[0].push(a),s=0===(1&c)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==u?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},r.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new i(e,"hex","le")}},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n(70),i=n(87),o=n(7);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"===typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,f=this,d=!1;this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){d=!0},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var h=function(t){f.isResolved||(f.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},p=function(t){f.isResolved||(f.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!f.isResolved){var l;try{l=e.fn()}catch(v){l=Promise.reject(v)}t=function(e){if(!f.isResolved&&(p(new u(e)),s(l)))try{l.cancel()}catch(t){}},f.isTransportCancelable=s(l),Promise.resolve(l).then(h).catch((function(t){var s,u;if(!f.isResolved){var l=null!=(s=e.retry)?s:3,h=null!=(u=e.retryDelay)?u:a,v="function"===typeof h?h(f.failureCount,t):h,g=!0===l||"number"===typeof l&&f.failureCount0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},o=new r.a("Amplify"),a=new(function(){function e(){this._components=[],this._config={},this._modules={},this.Auth=null,this.Analytics=null,this.API=null,this.Credentials=null,this.Storage=null,this.I18n=null,this.Cache=null,this.PubSub=null,this.Interactions=null,this.Pushnotification=null,this.UI=null,this.XR=null,this.Predictions=null,this.DataStore=null,this.Logger=r.a,this.ServiceWorker=null}return e.prototype.register=function(e){o.debug("component registered in amplify",e),this._components.push(e),"function"===typeof e.getModuleName?(this._modules[e.getModuleName()]=e,this[e.getModuleName()]=e):o.debug("no getModuleName method for component",e),e.configure(this._config)},e.prototype.configure=function(e){var t=this;return e?(this._config=Object.assign(this._config,e),o.debug("amplify config",this._config),Object.entries(this._modules).forEach((function(e){var n=i(e,2),r=(n[0],n[1]);Object.keys(r).forEach((function(e){t._modules[e]&&(r[e]=t._modules[e])}))})),this._components.map((function(e){e.configure(t._config)})),this._config):this._config},e.prototype.addPluggable=function(e){e&&e.getCategory&&"function"===typeof e.getCategory&&this._components.map((function(t){t.addPluggable&&"function"===typeof t.addPluggable&&t.addPluggable(e)}))},e}())},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return E})),n.d(t,"b",(function(){return C})),n.d(t,"d",(function(){return I})),n.d(t,"c",(function(){return v})),n.d(t,"f",(function(){return g})),n.d(t,"e",(function(){return p}));var r=n(5);function i(e){return"/"===e.charAt(0)}function o(e,t){for(var n=t,r=n+1,i=e.length;r=0;d--){var h=a[d];"."===h?o(a,d):".."===h?(o(a,d),f++):f&&(o(a,d),f--)}if(!c)for(;f--;f)a.unshift("..");!c||""===a[0]||a[0]&&i(a[0])||a.unshift("");var p=a.join("/");return n&&"/"!==p.substr(-1)&&(p+="/"),p};function s(e){return e.valueOf?e.valueOf():Object.prototype.valueOf.call(e)}var u=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every((function(t,r){return e(t,n[r])}));if("object"===typeof t||"object"===typeof n){var r=s(t),i=s(n);return r!==t||i!==n?e(r,i):Object.keys(Object.assign({},t,n)).every((function(r){return e(t[r],n[r])}))}return!1},c=n(40);function l(e){return"/"===e.charAt(0)?e:"/"+e}function f(e){return"/"===e.charAt(0)?e.substr(1):e}function d(e,t){return function(e,t){return 0===e.toLowerCase().indexOf(t.toLowerCase())&&-1!=="/?#".indexOf(e.charAt(t.length))}(e,t)?e.substr(t.length):e}function h(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e}function p(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}function v(e,t,n,i){var o;"string"===typeof e?(o=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(o=Object(r.a)({},e)).pathname&&(o.pathname=""),o.search?"?"!==o.search.charAt(0)&&(o.search="?"+o.search):o.search="",o.hash?"#"!==o.hash.charAt(0)&&(o.hash="#"+o.hash):o.hash="",void 0!==t&&void 0===o.state&&(o.state=t));try{o.pathname=decodeURI(o.pathname)}catch(s){throw s instanceof URIError?new URIError('Pathname "'+o.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):s}return n&&(o.key=n),i?o.pathname?"/"!==o.pathname.charAt(0)&&(o.pathname=a(o.pathname,i.pathname)):o.pathname=i.pathname:o.pathname||(o.pathname="/"),o}function g(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&u(e.state,t.state)}function m(){var e=null;var t=[];return{setPrompt:function(t){return e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"===typeof e?e(t,n):e;"string"===typeof o?"function"===typeof r?r(o,i):i(!0):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0;function r(){n&&e.apply(void 0,arguments)}return t.push(r),function(){n=!1,t=t.filter((function(e){return e!==r}))}},notifyListeners:function(){for(var e=arguments.length,n=new Array(e),r=0;rt?n.splice(t,n.length-t,i):n.push(i),f({action:r,location:i,index:t,entries:n})}}))},replace:function(e,t){var r="REPLACE",i=v(e,t,d(),w.location);l.confirmTransitionTo(i,r,n,(function(e){e&&(w.entries[w.index]=i,f({action:r,location:i}))}))},go:y,goBack:function(){y(-1)},goForward:function(){y(1)},canGo:function(e){var t=w.index+e;return t>=0&&t0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function h(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[e];if(void 0===u)return!1;if("function"===typeof u)o(u,this,t);else{var c=u.length,l=g(u,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1=0;r--)this.removeListener(e,t[r]);return this},s.prototype.listeners=function(e){return p(this,e,!0)},s.prototype.rawListeners=function(e){return p(this,e,!1)},s.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):v.call(e,t)},s.prototype.listenerCount=v,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(e,t,n){"use strict";n.r(t),n.d(t,"fromUtf8",(function(){return r})),n.d(t,"toUtf8",(function(){return i}));var r=function(e){return"function"===typeof TextEncoder?function(e){return(new TextEncoder).encode(e)}(e):function(e){for(var t=[],n=0,r=e.length;n>6|192,63&i|128);else if(n+1>18|240,o>>12&63|128,o>>6&63|128,63&o|128)}else t.push(i>>12|224,i>>6&63|128,63&i|128)}return Uint8Array.from(t)}(e)},i=function(e){return"function"===typeof TextDecoder?function(e){return new TextDecoder("utf-8").decode(e)}(e):function(e){for(var t="",n=0,r=e.length;n=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=Object(i.a)(e),f=l.getUTCDay(),d=(f=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var u=0,c=t;return u+=(c=c+r>>>0)>>0)>>0)>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,u,c){var l=0,f=t;return l+=(f=f+r>>>0)>>0)>>0)>>0)>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,u,c){return t+r+o+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(19),i=n(16);function o(e){Object(i.a)(1,arguments);var t=1,n=Object(r.a)(e),o=n.getUTCDay(),a=(o0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var s=function(e){return function(t,n){return function(r){return i(void 0,void 0,void 0,(function(){var i;return o(this,(function(o){return(null===(i=null===e||void 0===e?void 0:e.retryStrategy)||void 0===i?void 0:i.mode)&&(n.userAgent=function(){for(var e=[],t=0;t",'"',"`"," ","\r","\n","\t"]),l=["'"].concat(c),f=["%","/","?",";","#"].concat(l),d=["/","?","#"],h=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},m={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},b=n(426);function y(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?R+="x":R+=P[j];if(!R.match(h)){var D=A.slice(0,T),N=A.slice(T+1),U=P.match(p);U&&(D.push(U[1]),N.unshift(U[2])),N.length&&(y="/"+N.join(".")+y),this.hostname=D.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=r.toASCII(this.hostname));var F=this.port?":"+this.port:"",B=this.hostname||"";this.host=B+F,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==y[0]&&(y="/"+y))}if(!v[S])for(T=0,I=l.length;T0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift());return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=E.slice(-1)[0],M=(n.host||e.host||E.length>1)&&("."===k||".."===k)||""===k,T=0,x=E.length;x>=0;x--)"."===(k=E[x])?E.splice(x,1):".."===k?(E.splice(x,1),T++):T&&(E.splice(x,1),T--);if(!_&&!S)for(;T--;T)E.unshift("..");!_||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),M&&"/"!==E.join("/").substr(-1)&&E.push("");var C,A=""===E[0]||E[0]&&"/"===E[0].charAt(0);O&&(n.hostname=n.host=A?"":E.length?E.shift():"",(C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=C.shift(),n.host=n.hostname=C.shift()));return(_=_||n.host&&E.length)&&!A&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return pr})),n.d(t,"b",(function(){return cr})),n.d(t,"c",(function(){return ir})),n.d(t,"d",(function(){return Jn}));var r=n(1),i=n(67),o=n.n(i),a=function(e){return function(e){return!!e&&"object"===typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===s}(e)}(e)};var s="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function u(e,t){return!1!==t.clone&&t.isMergeableObject(e)?l((n=e,Array.isArray(n)?[]:{}),e,t):e;var n}function c(e,t,n){return e.concat(t).map((function(e){return u(e,n)}))}function l(e,t,n){(n=n||{}).arrayMerge=n.arrayMerge||c,n.isMergeableObject=n.isMergeableObject||a;var r=Array.isArray(t);return r===Array.isArray(e)?r?n.arrayMerge(e,t,n):function(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach((function(t){r[t]=u(e[t],n)})),Object.keys(t).forEach((function(i){n.isMergeableObject(t[i])&&e[i]?r[i]=l(e[i],t[i],n):r[i]=u(t[i],n)})),r}(e,t,n):u(t,n)}l.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,n){return l(e,n,t)}),{})};var f=l,d=n(27),h=d.a.Symbol,p=Object.prototype,v=p.hasOwnProperty,g=p.toString,m=h?h.toStringTag:void 0;var b=function(e){var t=v.call(e,m),n=e[m];try{e[m]=void 0;var r=!0}catch(o){}var i=g.call(e);return r&&(t?e[m]=n:delete e[m]),i},y=Object.prototype.toString;var w=function(e){return y.call(e)},_=h?h.toStringTag:void 0;var S=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?b(e):w(e)};var E=function(e,t){return function(n){return e(t(n))}},O=E(Object.getPrototypeOf,Object);var k=function(e){return null!=e&&"object"==typeof e},M=Function.prototype,T=Object.prototype,x=M.toString,C=T.hasOwnProperty,A=x.call(Object);var I=function(e){if(!k(e)||"[object Object]"!=S(e))return!1;var t=O(e);if(null===t)return!0;var n=C.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&x.call(n)==A};var P=function(){this.__data__=[],this.size=0};var R=function(e,t){return e===t||e!==e&&t!==t};var j=function(e,t){for(var n=e.length;n--;)if(R(e[n][0],t))return n;return-1},L=Array.prototype.splice;var D=function(e){var t=this.__data__,n=j(t,e);return!(n<0)&&(n==t.length-1?t.pop():L.call(t,n,1),--this.size,!0)};var N=function(e){var t=this.__data__,n=j(t,e);return n<0?void 0:t[n][1]};var U=function(e){return j(this.__data__,e)>-1};var F=function(e,t){var n=this.__data__,r=j(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function B(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},Ye={};Ye["[object Float32Array]"]=Ye["[object Float64Array]"]=Ye["[object Int8Array]"]=Ye["[object Int16Array]"]=Ye["[object Int32Array]"]=Ye["[object Uint8Array]"]=Ye["[object Uint8ClampedArray]"]=Ye["[object Uint16Array]"]=Ye["[object Uint32Array]"]=!0,Ye["[object Arguments]"]=Ye["[object Array]"]=Ye["[object ArrayBuffer]"]=Ye["[object Boolean]"]=Ye["[object DataView]"]=Ye["[object Date]"]=Ye["[object Error]"]=Ye["[object Function]"]=Ye["[object Map]"]=Ye["[object Number]"]=Ye["[object Object]"]=Ye["[object RegExp]"]=Ye["[object Set]"]=Ye["[object String]"]=Ye["[object WeakMap]"]=!1;var $e=function(e){return k(e)&&Ke(e.length)&&!!Ye[S(e)]};var Xe=function(e){return function(t){return e(t)}},Qe=n(62),Ze=Qe.a&&Qe.a.isTypedArray,Je=Ze?Xe(Ze):$e,et=Object.prototype.hasOwnProperty;var tt=function(e,t){var n=Ve(e),r=!n&&qe(e),i=!n&&!r&&Object(He.a)(e),o=!n&&!r&&!i&&Je(e),a=n||r||i||o,s=a?Ne(e.length,String):[],u=s.length;for(var c in e)!t&&!et.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ge(c,u))||s.push(c);return s},nt=Object.prototype;var rt=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||nt)},it=E(Object.keys,Object),ot=Object.prototype.hasOwnProperty;var at=function(e){if(!rt(e))return it(e);var t=[];for(var n in Object(e))ot.call(e,n)&&"constructor"!=n&&t.push(n);return t};var st=function(e){return null!=e&&Ke(e.length)&&!K(e)};var ut=function(e){return st(e)?tt(e):at(e)};var ct=function(e,t){return e&&De(t,ut(t),e)};var lt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},ft=Object.prototype.hasOwnProperty;var dt=function(e){if(!G(e))return lt(e);var t=rt(e),n=[];for(var r in e)("constructor"!=r||!t&&ft.call(e,r))&&n.push(r);return n};var ht=function(e){return st(e)?tt(e,!0):dt(e)};var pt=function(e,t){return e&&De(t,ht(t),e)},vt=n(292);var gt=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n=0||(i[n]=e[n]);return i}function Fn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Bn=function(e){return Array.isArray(e)&&0===e.length},zn=function(e){return"function"===typeof e},qn=function(e){return null!==e&&"object"===typeof e},Vn=function(e){return String(Math.floor(Number(e)))===e},Hn=function(e){return"[object String]"===Object.prototype.toString.call(e)},Wn=function(e){return 0===r.Children.count(e)},Gn=function(e){return qn(e)&&zn(e.then)};function Kn(e,t,n,r){void 0===r&&(r=0);for(var i=In(t);e&&r=0?[]:{}}}return(0===o?e:i)[a[o]]===n?e:(void 0===n?delete i[a[o]]:i[a[o]]=n,0===o&&void 0===n&&delete r[a[o]],r)}function $n(e,t,n,r){void 0===n&&(n=new WeakMap),void 0===r&&(r={});for(var i=0,o=Object.keys(e);i=n.length)break;o=n[i++]}else{if((i=n.next()).done)break;o=i.value}var a=o;Kn(t,a.path)||(t=Yn(t,a.path,a.message))}}return t}(n)):t(n)}))}))}),[v.validationSchema]),T=Object(r.useCallback)((function(e,t){return new Promise((function(n){return n(_.current[e].validate(t))}))}),[]),x=Object(r.useCallback)((function(e){var t=Object.keys(_.current).filter((function(e){return zn(_.current[e].validate)})),n=t.length>0?t.map((function(t){return T(t,Kn(e,t))})):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(n).then((function(e){return e.reduce((function(e,n,r){return"DO_NOT_DELETE_YOU_WILL_BE_FIRED"===n||n&&(e=Yn(e,t[r],n)),e}),{})}))}),[T]),C=Object(r.useCallback)((function(e){return Promise.all([x(e),v.validationSchema?M(e):{},v.validate?k(e):{}]).then((function(e){var t=e[0],n=e[1],r=e[2];return f.all([t,n,r],{arrayMerge:ar})}))}),[v.validate,v.validationSchema,x,k,M]),A=ur((function(e){return void 0===e&&(e=E.values),O({type:"SET_ISVALIDATING",payload:!0}),C(e).then((function(e){return w.current&&(O({type:"SET_ISVALIDATING",payload:!1}),O({type:"SET_ERRORS",payload:e})),e}))}));Object(r.useEffect)((function(){u&&!0===w.current&&o()(g.current,v.initialValues)&&A(g.current)}),[u,A]);var I=Object(r.useCallback)((function(e){var t=e&&e.values?e.values:g.current,n=e&&e.errors?e.errors:m.current?m.current:v.initialErrors||{},r=e&&e.touched?e.touched:b.current?b.current:v.initialTouched||{},i=e&&e.status?e.status:y.current?y.current:v.initialStatus;g.current=t,m.current=n,b.current=r,y.current=i;var o=function(){O({type:"RESET_FORM",payload:{isSubmitting:!!e&&!!e.isSubmitting,errors:n,touched:r,status:i,values:t,isValidating:!!e&&!!e.isValidating,submitCount:e&&e.submitCount&&"number"===typeof e.submitCount?e.submitCount:0}})};if(v.onReset){var a=v.onReset(E.values,X);Gn(a)?a.then(o):o()}else o()}),[v.initialErrors,v.initialStatus,v.initialTouched]);Object(r.useEffect)((function(){!0!==w.current||o()(g.current,v.initialValues)||(d&&(g.current=v.initialValues,I()),u&&A(g.current))}),[d,v.initialValues,I,u,A]),Object(r.useEffect)((function(){d&&!0===w.current&&!o()(m.current,v.initialErrors)&&(m.current=v.initialErrors||tr,O({type:"SET_ERRORS",payload:v.initialErrors||tr}))}),[d,v.initialErrors]),Object(r.useEffect)((function(){d&&!0===w.current&&!o()(b.current,v.initialTouched)&&(b.current=v.initialTouched||nr,O({type:"SET_TOUCHED",payload:v.initialTouched||nr}))}),[d,v.initialTouched]),Object(r.useEffect)((function(){d&&!0===w.current&&!o()(y.current,v.initialStatus)&&(y.current=v.initialStatus,O({type:"SET_STATUS",payload:v.initialStatus}))}),[d,v.initialStatus,v.initialTouched]);var P=ur((function(e){if(_.current[e]&&zn(_.current[e].validate)){var t=Kn(E.values,e),n=_.current[e].validate(t);return Gn(n)?(O({type:"SET_ISVALIDATING",payload:!0}),n.then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}}),O({type:"SET_ISVALIDATING",payload:!1})}))):(O({type:"SET_FIELD_ERROR",payload:{field:e,value:n}}),Promise.resolve(n))}return v.validationSchema?(O({type:"SET_ISVALIDATING",payload:!0}),M(E.values,e).then((function(e){return e})).then((function(t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t[e]}}),O({type:"SET_ISVALIDATING",payload:!1})}))):Promise.resolve()})),R=Object(r.useCallback)((function(e,t){var n=t.validate;_.current[e]={validate:n}}),[]),j=Object(r.useCallback)((function(e){delete _.current[e]}),[]),L=ur((function(e,t){return O({type:"SET_TOUCHED",payload:e}),(void 0===t?a:t)?A(E.values):Promise.resolve()})),D=Object(r.useCallback)((function(e){O({type:"SET_ERRORS",payload:e})}),[]),N=ur((function(e,t){var r=zn(e)?e(E.values):e;return O({type:"SET_VALUES",payload:r}),(void 0===t?n:t)?A(r):Promise.resolve()})),U=Object(r.useCallback)((function(e,t){O({type:"SET_FIELD_ERROR",payload:{field:e,value:t}})}),[]),F=ur((function(e,t,r){return O({type:"SET_FIELD_VALUE",payload:{field:e,value:t}}),(void 0===r?n:r)?A(Yn(E.values,e,t)):Promise.resolve()})),B=Object(r.useCallback)((function(e,t){var n,r=t,i=e;if(!Hn(e)){e.persist&&e.persist();var o=e.target?e.target:e.currentTarget,a=o.type,s=o.name,u=o.id,c=o.value,l=o.checked,f=(o.outerHTML,o.options),d=o.multiple;r=t||(s||u),i=/number|range/.test(a)?(n=parseFloat(c),isNaN(n)?"":n):/checkbox/.test(a)?function(e,t,n){if("boolean"===typeof e)return Boolean(t);var r=[],i=!1,o=-1;if(Array.isArray(e))r=e,i=(o=e.indexOf(n))>=0;else if(!n||"true"==n||"false"==n)return Boolean(t);if(t&&n&&!i)return r.concat(n);if(!i)return r;return r.slice(0,o).concat(r.slice(o+1))}(Kn(E.values,r),l,c):f&&d?function(e){return Array.from(e).filter((function(e){return e.selected})).map((function(e){return e.value}))}(f):c}r&&F(r,i)}),[F,E.values]),z=ur((function(e){if(Hn(e))return function(t){return B(t,e)};B(e)})),q=ur((function(e,t,n){return void 0===t&&(t=!0),O({type:"SET_FIELD_TOUCHED",payload:{field:e,value:t}}),(void 0===n?a:n)?A(E.values):Promise.resolve()})),V=Object(r.useCallback)((function(e,t){e.persist&&e.persist();var n=e.target,r=n.name,i=n.id,o=(n.outerHTML,t||(r||i));q(o,!0)}),[q]),H=ur((function(e){if(Hn(e))return function(t){return V(t,e)};V(e)})),W=Object(r.useCallback)((function(e){zn(e)?O({type:"SET_FORMIK_STATE",payload:e}):O({type:"SET_FORMIK_STATE",payload:function(){return e}})}),[]),G=Object(r.useCallback)((function(e){O({type:"SET_STATUS",payload:e})}),[]),K=Object(r.useCallback)((function(e){O({type:"SET_ISSUBMITTING",payload:e})}),[]),Y=ur((function(){return O({type:"SUBMIT_ATTEMPT"}),A().then((function(e){var t=e instanceof Error;if(!t&&0===Object.keys(e).length){var n;try{if(void 0===(n=Q()))return}catch(r){throw r}return Promise.resolve(n).then((function(e){return w.current&&O({type:"SUBMIT_SUCCESS"}),e})).catch((function(e){if(w.current)throw O({type:"SUBMIT_FAILURE"}),e}))}if(w.current&&(O({type:"SUBMIT_FAILURE"}),t))throw e}))})),$=ur((function(e){e&&e.preventDefault&&zn(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&zn(e.stopPropagation)&&e.stopPropagation(),Y().catch((function(e){console.warn("Warning: An unhandled error was caught from submitForm()",e)}))})),X={resetForm:I,validateForm:A,validateField:P,setErrors:D,setFieldError:U,setFieldTouched:q,setFieldValue:F,setStatus:G,setSubmitting:K,setTouched:L,setValues:N,setFormikState:W,submitForm:Y},Q=ur((function(){return h(E.values,X)})),Z=ur((function(e){e&&e.preventDefault&&zn(e.preventDefault)&&e.preventDefault(),e&&e.stopPropagation&&zn(e.stopPropagation)&&e.stopPropagation(),I()})),J=Object(r.useCallback)((function(e){return{value:Kn(E.values,e),error:Kn(E.errors,e),touched:!!Kn(E.touched,e),initialValue:Kn(g.current,e),initialTouched:!!Kn(b.current,e),initialError:Kn(m.current,e)}}),[E.errors,E.touched,E.values]),ee=Object(r.useCallback)((function(e){return{setValue:function(t,n){return F(e,t,n)},setTouched:function(t,n){return q(e,t,n)},setError:function(t){return U(e,t)}}}),[F,q,U]),te=Object(r.useCallback)((function(e){var t=qn(e),n=t?e.name:e,r=Kn(E.values,n),i={name:n,value:r,onChange:z,onBlur:H};if(t){var o=e.type,a=e.value,s=e.as,u=e.multiple;"checkbox"===o?void 0===a?i.checked=!!r:(i.checked=!(!Array.isArray(r)||!~r.indexOf(a)),i.value=a):"radio"===o?(i.checked=r===a,i.value=a):"select"===s&&u&&(i.value=i.value||[],i.multiple=!0)}return i}),[H,z,E.values]),ne=Object(r.useMemo)((function(){return!o()(g.current,E.values)}),[g.current,E.values]),re=Object(r.useMemo)((function(){return"undefined"!==typeof c?ne?E.errors&&0===Object.keys(E.errors).length:!1!==c&&zn(c)?c(v):c:E.errors&&0===Object.keys(E.errors).length}),[c,ne,E.errors,v]);return Dn({},E,{initialValues:g.current,initialErrors:m.current,initialTouched:b.current,initialStatus:y.current,handleBlur:H,handleChange:z,handleReset:Z,handleSubmit:$,resetForm:I,setErrors:D,setFormikState:W,setFieldTouched:q,setFieldValue:F,setFieldError:U,setStatus:G,setSubmitting:K,setTouched:L,setValues:N,submitForm:Y,validateForm:A,validateField:P,isValid:re,dirty:ne,unregisterField:j,registerField:R,getFieldProps:te,getFieldMeta:J,getFieldHelpers:ee,validateOnBlur:a,validateOnChange:n,validateOnMount:u})}function ir(e){var t=rr(e),n=e.component,i=e.children,o=e.render,a=e.innerRef;return Object(r.useImperativeHandle)(a,(function(){return t})),Object(r.createElement)(Qn,{value:t},n?Object(r.createElement)(n,t):o?o(t):i?zn(i)?i(t):Wn(i)?null:r.Children.only(i):null)}function or(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);!0===Array.isArray(e[r])?t[r]=e[r].map((function(e){return!0===Array.isArray(e)||I(e)?or(e):""!==e?e:void 0})):I(e[r])?t[r]=or(e[r]):t[r]=""!==e[r]?e[r]:void 0}return t}function ar(e,t,n){var r=e.slice();return t.forEach((function(t,i){if("undefined"===typeof r[i]){var o=!1!==n.clone&&n.isMergeableObject(t);r[i]=o?f(Array.isArray(t)?[]:{},t,n):t}else n.isMergeableObject(t)?r[i]=f(e[i],t,n):-1===e.indexOf(t)&&r.push(t)})),r}var sr="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement?r.useLayoutEffect:r.useEffect;function ur(e){var t=Object(r.useRef)(e);return sr((function(){t.current=e})),Object(r.useCallback)((function(){for(var e=arguments.length,n=new Array(e),r=0;re?t:e}),0);return Array.from(Dn({},e,{length:t+1}))}return[]},hr=function(e){function t(t){var n;return(n=e.call(this,t)||this).updateArrayField=function(e,t,r){var i=n.props,o=i.name;(0,i.formik.setFormikState)((function(n){var i="function"===typeof r?r:e,a="function"===typeof t?t:e,s=Yn(n.values,o,e(Kn(n.values,o))),u=r?i(Kn(n.errors,o)):void 0,c=t?a(Kn(n.touched,o)):void 0;return Bn(u)&&(u=void 0),Bn(c)&&(c=void 0),Dn({},n,{values:s,errors:r?Yn(n.errors,o,u):n.errors,touched:t?Yn(n.touched,o,c):n.touched})}))},n.push=function(e){return n.updateArrayField((function(t){return[].concat(dr(t),[Ln(e)])}),!1,!1)},n.handlePush=function(e){return function(){return n.push(e)}},n.swap=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=dr(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t)}),!0,!0)},n.handleSwap=function(e,t){return function(){return n.swap(e,t)}},n.move=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=dr(e),i=r[t];return r.splice(t,1),r.splice(n,0,i),r}(n,e,t)}),!0,!0)},n.handleMove=function(e,t){return function(){return n.move(e,t)}},n.insert=function(e,t){return n.updateArrayField((function(n){return fr(n,e,t)}),(function(t){return fr(t,e,null)}),(function(t){return fr(t,e,null)}))},n.handleInsert=function(e,t){return function(){return n.insert(e,t)}},n.replace=function(e,t){return n.updateArrayField((function(n){return function(e,t,n){var r=dr(e);return r[t]=n,r}(n,e,t)}),!1,!1)},n.handleReplace=function(e,t){return function(){return n.replace(e,t)}},n.unshift=function(e){var t=-1;return n.updateArrayField((function(n){var r=n?[e].concat(n):[e];return t<0&&(t=r.length),r}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n}),(function(e){var n=e?[null].concat(e):[null];return t<0&&(t=n.length),n})),t},n.handleUnshift=function(e){return function(){return n.unshift(e)}},n.handleRemove=function(e){return function(){return n.remove(e)}},n.handlePop=function(){return function(){return n.pop()}},n.remove=n.remove.bind(Fn(n)),n.pop=n.pop.bind(Fn(n)),n}Nn(t,e);var n=t.prototype;return n.componentDidUpdate=function(e){this.props.validateOnChange&&this.props.formik.validateOnChange&&!o()(Kn(e.formik.values,e.name),Kn(this.props.formik.values,this.props.name))&&this.props.formik.validateForm(this.props.formik.values)},n.remove=function(e){var t;return this.updateArrayField((function(n){var r=n?dr(n):[];return t||(t=r[e]),zn(r.splice)&&r.splice(e,1),r}),!0,!0),t},n.pop=function(){var e;return this.updateArrayField((function(t){var n=t;return e||(e=n&&n.pop&&n.pop()),n}),!0,!0),e},n.render=function(){var e={push:this.push,pop:this.pop,swap:this.swap,move:this.move,insert:this.insert,replace:this.replace,unshift:this.unshift,remove:this.remove,handlePush:this.handlePush,handlePop:this.handlePop,handleSwap:this.handleSwap,handleMove:this.handleMove,handleInsert:this.handleInsert,handleReplace:this.handleReplace,handleUnshift:this.handleUnshift,handleRemove:this.handleRemove},t=this.props,n=t.component,i=t.render,o=t.children,a=t.name,s=Dn({},e,{form:Un(t.formik,["validate","validationSchema"]),name:a});return n?Object(r.createElement)(n,s):i?i(s):o?"function"===typeof o?o(s):Wn(o)?null:r.Children.only(o):null},t}(r.Component);hr.defaultProps={validateOnChange:!0};var pr=lr(function(e){function t(){return e.apply(this,arguments)||this}Nn(t,e);var n=t.prototype;return n.shouldComponentUpdate=function(e){return Kn(this.props.formik.errors,this.props.name)!==Kn(e.formik.errors,this.props.name)||Kn(this.props.formik.touched,this.props.name)!==Kn(e.formik.touched,this.props.name)||Object.keys(this.props).length!==Object.keys(e).length},n.render=function(){var e=this.props,t=e.component,n=e.formik,i=e.render,o=e.children,a=e.name,s=Un(e,["component","formik","render","children","name"]),u=Kn(n.touched,a),c=Kn(n.errors,a);return u&&c?i?zn(i)?i(c):null:o?zn(o)?o(c):null:t?Object(r.createElement)(t,s,c):c:null},t}(r.Component));r.Component},function(e,t,n){"use strict";var r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",i="["+r+"][:A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",o=new RegExp("^"+i+"$");t.isExist=function(e){return"undefined"!==typeof e},t.isEmptyObject=function(e){return 0===Object.keys(e).length},t.merge=function(e,t,n){if(t)for(var r=Object.keys(t),i=r.length,o=0;o=0||(i[n]=e[n]);return i}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var r=n(131),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.a.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(t){}}();t.a=s}).call(this,n(168)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(61);function i(e,t){if(null==e)return{};var n,i,o=Object(r.a)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}},function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},i=function(){for(var e=[],t=0;t=a){var u=console.log.bind(console);"ERROR"===t&&console.error&&(u=console.error.bind(console)),"WARN"===t&&console.warn&&(u=console.warn.bind(console));var c="["+t+"] "+this._ts()+" "+this.name;if(1===n.length&&"string"===typeof n[0])u(c+" - "+n[0]);else if(1===n.length)u(c,n[0]);else if("string"===typeof n[0]){var l=n.slice(1);1===l.length&&(l=l[0]),u(c+" - "+n[0],l)}else u(c,n)}},e.prototype.log=function(){for(var e=[],t=0;t>=6;var l=o/4*3;a>>=s%8;for(var f=Math.floor(s/8),d=0;d>h)}}return new Uint8Array(n)}function f(e){for(var t="",n=0;n>l]}t+="==".slice(0,4-u)}return t}},function(e,t,n){"use strict";function r(e){return(r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,"a",(function(){return i}))},function(e,t,n){"use strict";var r=n(14).Buffer,i=r.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function o(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return"utf8";for(var t;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase(),t=!0}}(e);if("string"!==typeof t&&(r.isEncoding===i||!i(e)))throw new Error("Unknown encoding: "+e);return t||e}(e),this.encoding){case"utf16le":this.text=u,this.end=c,t=4;break;case"utf8":this.fillLast=s,t=4;break;case"base64":this.text=l,this.end=f,t=3;break;default:return this.write=d,void(this.end=h)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function a(e){return e<=127?0:e>>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function u(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function c(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function l(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function f(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function d(e){return e.toString(this.encoding)}function h(e){return e&&e.length?this.write(e):""}t.StringDecoder=o,o.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(void 0===(t=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return i>0&&(e.lastNeed=i-1),i;if(--r=0)return i>0&&(e.lastNeed=i-2),i;if(--r=0)return i>0&&(2===i?i=0:e.lastNeed=i-3),i;return 0}(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)},o.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,t,n){"use strict";var r=n(119),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var o=Object.create(n(99));o.inherits=n(10);var a=n(213),s=n(152);o.inherits(f,a);for(var u=i(s.prototype),c=0;co)throw new RangeError("requested too many random bytes");var n=a.allocUnsafe(e);if(e>0)if(e>i)for(var u=0;u2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"===typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var u=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(205),o=n(209);n(10)(c,i);for(var a=r(o.prototype),s=0;s=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},function(e,t,n){"use strict";var r={};function i(e,t,n){n||(n=Error);var i=function(e){var n,r;function i(n,r,i){return e.call(this,function(e,n,r){return"string"===typeof t?t:t(e,n,r)}(n,r,i))||this}return r=e,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=e,r[e]=i}function o(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}i("ERR_INVALID_OPT_VALUE",(function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(e,t,n){var r,i,a,s;if("string"===typeof t&&(i="not ",t.substr(!a||a<0?0:+a,i.length)===i)?(r="must not be",t=t.replace(/^not /,"")):r="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))s="The ".concat(e," ").concat(r," ").concat(o(t,"type"));else{var u=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";s='The "'.concat(e,'" ').concat(u," ").concat(r," ").concat(o(t,"type"))}return s+=". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(e){return"The "+e+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(e){return"Cannot call "+e+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(e){return"Unknown encoding: "+e}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=r},function(e,t,n){"use strict";(function(t){var r=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=c;var i=n(234),o=n(238);n(10)(c,i);for(var a=r(o.prototype),s=0;s=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var i=n(66);function o(e){var t,n,o=[];try{for(var a=r(Object.keys(e).sort()),s=a.next();!s.done;s=a.next()){var u=s.value,c=e[u];if(u=Object(i.a)(u),Array.isArray(c))for(var l=0,f=c.length;l0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function s(){for(var e=[],t=0;t0})).map((function(e){return null===e||void 0===e?void 0:e.replace(f,"_")})).join("/")},h={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},p=function(e){return{applyToStack:function(t){var n;t.add((n=e,function(e,t){return function(a){return i(void 0,void 0,void 0,(function(){var i,u,f,h,p,v,g,m;return o(this,(function(o){switch(o.label){case 0:return i=a.request,c.a.isInstance(i)?(u=i.headers,f=(null===(g=null===t||void 0===t?void 0:t.userAgent)||void 0===g?void 0:g.map(d))||[],[4,n.defaultUserAgentProvider()]):[2,e(a)];case 1:return h=o.sent().map(d),p=(null===(m=null===n||void 0===n?void 0:n.customUserAgent)||void 0===m?void 0:m.map(d))||[],u["x-amz-user-agent"]=s(h,f,p).join(" "),v=s(h.filter((function(e){return e.startsWith("aws-sdk-")})),p).join(" "),"browser"!==n.runtime&&v&&(u[l]=u[l]?u[l]+" "+v:v),[2,e(r(r({},a),{request:i}))]}}))}))}}),h)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u})),n.d(t,"b",(function(){return l}));function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var a=n(4),s=n(86);var u=function(){function e(e){var t=(void 0===e?{}:e).requestTimeout;this.requestTimeout=t}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=(void 0===t?{}:t).abortSignal,r=this.requestTimeout;if(null===n||void 0===n?void 0:n.aborted){var i=new Error("Request aborted");return i.name="AbortError",Promise.reject(i)}var u=e.path;if(e.query){var c=Object(s.a)(e.query);c&&(u+="?"+c)}var l=e.port,f=e.method,d=e.protocol+"//"+e.hostname+(l?":"+l:"")+u,h={body:"GET"===f||"HEAD"===f?void 0:e.body,headers:new Headers(e.headers),method:f};"undefined"!==typeof AbortController&&(h.signal=n);var p,v=new Request(d,h),g=[fetch(v).then((function(e){var t,n,r=e.headers,i={};try{for(var s=o(r.entries()),u=s.next();!u.done;u=s.next()){var c=u.value;i[c[0]]=c[1]}}catch(l){t={error:l}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return void 0!==e.body?{response:new a.b({headers:i,statusCode:e.status,body:e.body})}:e.blob().then((function(t){return{response:new a.b({headers:i,statusCode:e.status,body:t})}}))})),(p=r,void 0===p&&(p=0),new Promise((function(e,t){p&&setTimeout((function(){var e=new Error("Request did not complete within "+p+" ms");e.name="TimeoutError",t(e)}),p)})))];return n&&g.push(new Promise((function(e,t){n.onabort=function(){var e=new Error("Request aborted");e.name="AbortError",t(e)}}))),Promise.race(g)},e}(),c=n(71),l=function(e){return"function"===typeof Blob&&e instanceof Blob?function(e){return r(this,void 0,void 0,(function(){var t,n;return i(this,(function(r){switch(r.label){case 0:return[4,f(e)];case 1:return t=r.sent(),n=Object(c.a)(t),[2,new Uint8Array(n)]}}))}))}(e):function(e){return r(this,void 0,void 0,(function(){var t,n,r,o,a,s,u;return i(this,(function(i){switch(i.label){case 0:t=new Uint8Array(0),n=e.getReader(),r=!1,i.label=1;case 1:return r?[3,3]:[4,n.read()];case 2:return o=i.sent(),a=o.done,(s=o.value)&&(u=t,(t=new Uint8Array(u.length+s.length)).set(u),t.set(s,u.length)),r=a,[3,1];case 3:return[2,t]}}))}))}(e)};function f(e){return new Promise((function(t,n){var r=new FileReader;r.onloadend=function(){var e;if(2!==r.readyState)return n(new Error("Reader aborted too early"));var i=null!==(e=r.result)&&void 0!==e?e:"",o=i.indexOf(","),a=o>-1?o+1:i.length;t(i.substring(a))},r.onabort=function(){return n(new Error("Read aborted"))},r.onerror=function(){return n(r.error)},r.readAsDataURL(e)}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},i=n(127),o=n(172),a=/[A-Z]|^ms/g,s=/_EMO_([^_]+?)_([^]*?)_EMO_/g,u=function(e){return 45===e.charCodeAt(1)},c=function(e){return null!=e&&"boolean"!==typeof e},l=Object(o.a)((function(e){return u(e)?e:e.replace(a,"-$&").toLowerCase()})),f=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(s,(function(e,t,n){return h={name:t,styles:n,next:h},t}))}return 1===i.a[e]||u(e)||"number"!==typeof t||0===t?t:t+"px"};function d(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return h={name:n.name,styles:n.styles,next:h},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)h={name:r.name,styles:r.styles,next:h},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),[2,t(n)]):[2,t(n)]}))}))}}}(e),s)}}}},function(e,t,n){var r,i;!function(o){if(void 0===(i="function"===typeof(r=o)?r.call(t,n,t,e):r)||(e.exports=i),!0,e.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function e(){for(var e=0,t={};e=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>7)^(p<<14|p>>>18)^p>>>3,g=c[h-2],m=(g<<15|g>>>17)^(g<<13|g>>>19)^g>>>10;c[h]=v+c[h-7]+m+c[h-16]}var b=r&i^r&o^i&o,y=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[h]+c[h];d=f,f=l,l=s,s=a+w|0,a=o,o=i,i=r,r=w+(y+b)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),i.SHA256)}()},function(e,t,n){"use strict";t.a=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}}},function(e,t){e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.default=e.exports,e.exports.__esModule=!0},function(e,t,n){"use strict";var r=n(133),i="-ms-",o="-moz-",a="-webkit-",s="comm",u="rule",c="decl",l=Math.abs,f=String.fromCharCode;function d(e){return e.trim()}function h(e,t,n){return e.replace(t,n)}function p(e,t){return e.indexOf(t)}function v(e,t){return 0|e.charCodeAt(t)}function g(e,t,n){return e.slice(t,n)}function m(e){return e.length}function b(e){return e.length}function y(e,t){return t.push(e),e}function w(e,t){return e.map(t).join("")}var _=1,S=1,E=0,O=0,k=0,M="";function T(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:_,column:S,length:a,return:""}}function x(e,t,n){return T(e,t.root,t.parent,n,t.props,t.children,0)}function C(){return k=O>0?v(M,--O):0,S--,10===k&&(S=1,_--),k}function A(){return k=O2||j(k)>3?"":" "}function F(e,t){for(;--t&&A()&&!(k<48||k>102||k>57&&k<65||k>70&&k<97););return R(e,P()+(t<6&&32==I()&&32==A()))}function B(e){for(;A();)switch(k){case e:return O;case 34:case 39:return B(34===e||39===e?e:k);case 40:41===e&&B(e);break;case 92:A()}return O}function z(e,t){for(;A()&&e+k!==57&&(e+k!==84||47!==I()););return"/*"+R(t,O-1)+"*"+f(47===e?e:A())}function q(e){for(;!j(I());)A();return R(e,O)}function V(e){return D(H("",null,null,null,[""],e=L(e),0,[0],e))}function H(e,t,n,r,i,o,a,s,u){for(var c=0,l=0,d=a,p=0,v=0,g=0,b=1,w=1,_=1,S=0,E="",O=i,k=o,M=r,T=E;w;)switch(g=S,S=A()){case 34:case 39:case 91:case 40:T+=N(S);break;case 9:case 10:case 13:case 32:T+=U(g);break;case 92:T+=F(P()-1,7);continue;case 47:switch(I()){case 42:case 47:y(G(z(A(),P()),t,n),u);break;default:T+="/"}break;case 123*b:s[c++]=m(T)*_;case 125*b:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+l:v>0&&m(T)-d&&y(v>32?K(T+";",r,n,d-1):K(h(T," ","")+";",r,n,d-2),u);break;case 59:T+=";";default:if(y(M=W(T,t,n,c,l,i,s,E,O=[],k=[],d),o),123===S)if(0===l)H(T,t,M,M,O,o,d,s,k);else switch(p){case 100:case 109:case 115:H(e,M,M,r&&y(W(e,M,M,0,0,i,s,E,i,O=[],d),k),i,k,d,s,r?O:k);break;default:H(T,M,M,M,[""],k,d,s,k)}}c=l=v=0,b=_=1,E=T="",d=a;break;case 58:d=1+m(T),v=g;default:if(b<1)if(123==S)--b;else if(125==S&&0==b++&&125==C())continue;switch(T+=f(S),S*b){case 38:_=l>0?1:(T+="\f",-1);break;case 44:s[c++]=(m(T)-1)*_,_=1;break;case 64:45===I()&&(T+=N(A())),p=I(),l=m(E=T+=q(P())),S++;break;case 45:45===g&&2==m(T)&&(b=0)}}return o}function W(e,t,n,r,i,o,a,s,c,f,p){for(var v=i-1,m=0===i?o:[""],y=b(m),w=0,_=0,S=0;w0?m[E]+" "+O:h(O,/&\f/g,m[E])))&&(c[S++]=k);return T(e,t,n,0===i?u:s,c,f,p)}function G(e,t,n){return T(e,t,n,s,f(k),g(e,2,-2),0)}function K(e,t,n,r){return T(e,t,n,c,g(e,0,r),g(e,r+1,-1),r)}function Y(e,t){switch(function(e,t){return(((t<<2^v(e,0))<<2^v(e,1))<<2^v(e,2))<<2^v(e,3)}(e,t)){case 5103:return a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a+e+o+e+i+e+e;case 6828:case 4268:return a+e+i+e+e;case 6165:return a+e+i+"flex-"+e+e;case 5187:return a+e+h(e,/(\w+).+(:[^]+)/,a+"box-$1$2"+i+"flex-$1$2")+e;case 5443:return a+e+i+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return a+e+i+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return a+e+i+h(e,"shrink","negative")+e;case 5292:return a+e+i+h(e,"basis","preferred-size")+e;case 6060:return a+"box-"+h(e,"-grow","")+a+e+i+h(e,"grow","positive")+e;case 4554:return a+h(e,/([^-])(transform)/g,"$1"+a+"$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+i+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(m(e)-1-t>6)switch(v(e,t+1)){case 109:if(45!==v(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+o+(108==v(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?Y(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==v(e,t+1))break;case 6444:switch(v(e,m(e)-3-(~p(e,"!important")&&10))){case 107:return h(e,":",":"+a)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===v(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+i+"$2box$3")+e}break;case 5936:switch(v(e,t+11)){case 114:return a+e+i+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+i+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+i+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+i+e+e}return e}function $(e,t){for(var n="",r=b(e),i=0;i>>6-a%4*2;i[o>>>2]|=s<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var s=n(135);function u(e){var t,n=this,u=c(e.credentials||e.credentialDefaultProvider(e)),l=e.signingEscapePath,f=void 0===l||l,d=e.systemClockOffset,h=void 0===d?e.systemClockOffset||0:d,p=e.sha256;return t=e.signer?c(e.signer):function(){return c(e.region)().then((function(t){return i(n,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,e.regionInfoProvider(t)];case 1:return[2,[n.sent()||{},t]]}}))}))})).then((function(t){var n=a(t,2),r=n[0],i=n[1],o=r.signingRegion,c=r.signingService;return e.signingRegion=e.signingRegion||o||i,e.signingName=e.signingName||c||e.serviceId,new s.a({credentials:u,region:e.signingRegion,service:e.signingName,sha256:p,uriEscapePath:f})}))},r(r({},e),{systemClockOffset:h,signingEscapePath:f,credentials:u,signer:t})}function c(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}var l=n(4),f=function(e){return new Date(Date.now()+e)};function d(e){return function(t,n){return function(a){return i(this,void 0,void 0,(function(){var i,s,u,c,d,h,p,v,g;return o(this,(function(o){switch(o.label){case 0:return l.a.isInstance(a.request)?"function"!==typeof e.signer?[3,2]:[4,e.signer()]:[2,t(a)];case 1:return s=o.sent(),[3,3];case 2:s=e.signer,o.label=3;case 3:return i=s,c=t,d=[r({},a)],g={},[4,i.sign(a.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})];case 4:return[4,c.apply(void 0,[r.apply(void 0,d.concat([(g.request=o.sent(),g)]))])];case 5:return u=o.sent(),h=u.response.headers,(p=h&&(h.date||h.Date))&&(v=Date.parse(p),m=v,b=e.systemClockOffset,Math.abs(f(b).getTime()-m)>=3e5&&(e.systemClockOffset=v-Date.now())),[2,u]}var m,b}))}))}}}var h={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},p=function(e){return{applyToStack:function(t){t.addRelativeTo(d(e),h)}}}},function(e,t,n){"use strict";(function(e,r){function i(e){return(i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n-1;i--){var o=n[i],a=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(r=o)}return g.head.insertBefore(t,r),e}}function J(){for(var e=12,t="";e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function ee(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function te(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n],";")}),"")}function ne(e){return e.size!==Q.size||e.x!==Q.x||e.y!==Q.y||e.rotate!==Q.rotate||e.flipX||e.flipY}function re(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:i,inner:{transform:"".concat(o," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(r/2*-1," -256)")}}}var ie={x:0,y:0,width:"100%",height:"100%"};function oe(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function ae(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,o=e.iconName,a=e.transform,u=e.symbol,c=e.title,l=e.maskId,f=e.titleId,d=e.extra,h=e.watchable,p=void 0!==h&&h,v=r.found?r:n,g=v.width,m=v.height,b="fak"===i,y=b?"":"fa-w-".concat(Math.ceil(g/m*16)),_=[M.replacementClass,o?"".concat(M.familyPrefix,"-").concat(o):"",y].filter((function(e){return-1===d.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(d.classes).join(" "),S={children:[],attributes:s({},d.attributes,{"data-prefix":i,"data-icon":o,class:_,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(m)})},E=b&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/m*16*.0625,"em")}:{};p&&(S.attributes[w]=""),c&&S.children.push({tag:"title",attributes:{id:S.attributes["aria-labelledby"]||"title-".concat(f||J())},children:[c]});var O=s({},S,{prefix:i,iconName:o,main:n,mask:r,maskId:l,transform:a,symbol:u,styles:s({},E,d.styles)}),k=r.found&&n.found?function(e){var t,n=e.children,r=e.attributes,i=e.main,o=e.mask,a=e.maskId,u=e.transform,c=i.width,l=i.icon,f=o.width,d=o.icon,h=re({transform:u,containerWidth:f,iconWidth:c}),p={tag:"rect",attributes:s({},ie,{fill:"white"})},v=l.children?{children:l.children.map(oe)}:{},g={tag:"g",attributes:s({},h.inner),children:[oe(s({tag:l.tag,attributes:s({},l.attributes,h.path)},v))]},m={tag:"g",attributes:s({},h.outer),children:[g]},b="mask-".concat(a||J()),y="clip-".concat(a||J()),w={tag:"mask",attributes:s({},ie,{id:b,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,m]},_={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:(t=d,"g"===t.tag?t.children:[t])},w]};return n.push(_,{tag:"rect",attributes:s({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(b,")")},ie)}),{children:n,attributes:r}}(O):function(e){var t=e.children,n=e.attributes,r=e.main,i=e.transform,o=te(e.styles);if(o.length>0&&(n.style=o),ne(i)){var a=re({transform:i,containerWidth:r.width,iconWidth:r.width});t.push({tag:"g",attributes:s({},a.outer),children:[{tag:"g",attributes:s({},a.inner),children:[{tag:r.icon.tag,children:r.icon.children,attributes:s({},r.icon.attributes,a.path)}]}]})}else t.push(r.icon);return{children:t,attributes:n}}(O),T=k.children,x=k.attributes;return O.children=T,O.attributes=x,u?function(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,o=e.symbol;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:s({},i,{id:!0===o?"".concat(t,"-").concat(M.familyPrefix,"-").concat(n):o}),children:r}]}]}(O):function(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,o=e.styles,a=e.transform;if(ne(a)&&n.found&&!r.found){var u={x:n.width/n.height/2,y:.5};i.style=te(s({},o,{"transform-origin":"".concat(u.x+a.x/16,"em ").concat(u.y+a.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}(O)}var se=function(){},ue=(M.measurePerformance&&m&&m.mark&&m.measure,function(e,t,n,r){var i,o,a,s=Object.keys(e),u=s.length,c=void 0!==r?function(e,t){return function(n,r,i,o){return e.call(t,n,r,i,o)}}(t,r):t;for(void 0===n?(i=1,a=e[s[0]]):(i=0,a=n);i2&&void 0!==arguments[2]?arguments[2]:{},r=n.skipHooks,i=void 0!==r&&r,o=Object.keys(t).reduce((function(e,n){var r=t[n];return!!r.icon?e[r.iconName]=r.icon:e[n]=r,e}),{});"function"!==typeof x.hooks.addPack||i?x.styles[e]=s({},x.styles[e]||{},o):x.hooks.addPack(e,o),"fas"===e&&ce("fa",t)}var le=x.styles,fe=x.shims,de=function(){var e=function(e){return ue(le,(function(t,n,r){return t[r]=ue(n,e,{}),t}),{})};e((function(e,t,n){return t[3]&&(e[t[3]]=n),e})),e((function(e,t,n){var r=t[2];return e[n]=n,r.forEach((function(t){e[t]=n})),e}));var t="far"in le;ue(fe,(function(e,n){var r=n[0],i=n[1],o=n[2];return"far"!==i||t||(i="fas"),e[r]={prefix:i,iconName:o},e}),{})};de();x.styles;function he(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}function pe(e){var t=e.tag,n=e.attributes,r=void 0===n?{}:n,i=e.children,o=void 0===i?[]:i;return"string"===typeof e?ee(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(ee(e[n]),'" ')}),"").trim()}(r),">").concat(o.map(pe).join(""),"")}var ve=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e?e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),r=n[0],i=n.slice(1).join("-");if(r&&"h"===i)return e.flipX=!0,e;if(r&&"v"===i)return e.flipY=!0,e;if(i=parseFloat(i),isNaN(i))return e;switch(r){case"grow":e.size=e.size+i;break;case"shrink":e.size=e.size-i;break;case"left":e.x=e.x-i;break;case"right":e.x=e.x+i;break;case"up":e.y=e.y-i;break;case"down":e.y=e.y+i;break;case"rotate":e.rotate=e.rotate+i}return e}),t):t};function ge(e){this.name="MissingIcon",this.message=e||"Icon unavailable",this.stack=(new Error).stack}ge.prototype=Object.create(Error.prototype),ge.prototype.constructor=ge;var me={fill:"currentColor"},be={attributeType:"XML",repeatCount:"indefinite",dur:"2s"},ye={tag:"path",attributes:s({},me,{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})},we=s({},be,{attributeName:"opacity"});s({},me,{cx:"256",cy:"364",r:"28"}),s({},be,{attributeName:"r",values:"28;14;28;28;14;28;"}),s({},we,{values:"1;0;1;1;0;1;"}),s({},me,{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),s({},we,{values:"1;0;0;0;0;1;"}),s({},me,{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),s({},we,{values:"0;0;1;1;0;0;"}),x.styles;function _e(e){var t=e[0],n=e[1],r=u(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(r)?{tag:"g",attributes:{class:"".concat(M.familyPrefix,"-").concat(E.GROUP)},children:[{tag:"path",attributes:{class:"".concat(M.familyPrefix,"-").concat(E.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat(M.familyPrefix,"-").concat(E.PRIMARY),fill:"currentColor",d:r[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:r}}}}x.styles;function Se(){var e="fa",t=y,n=M.familyPrefix,r=M.replacementClass,i='svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}';if(n!==e||r!==t){var o=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(o,".".concat(n,"-")).replace(a,"--".concat(n,"-")).replace(s,".".concat(r))}return i}function Ee(){M.autoAddCss&&!xe&&(Z(Se()),xe=!0)}function Oe(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return pe(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(b){var t=g.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function ke(e){var t=e.prefix,n=void 0===t?"fa":t,r=e.iconName;if(r)return he(Te.definitions,n,r)||he(x.styles,n,r)}var Me,Te=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.definitions={}}var t,n,r;return t=e,(n=[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,r=void 0===n?Q:n,i=t.symbol,o=void 0!==i&&i,a=t.mask,u=void 0===a?null:a,c=t.maskId,l=void 0===c?null:c,f=t.title,d=void 0===f?null:f,h=t.titleId,p=void 0===h?null:h,v=t.classes,g=void 0===v?[]:v,m=t.attributes,b=void 0===m?{}:m,y=t.styles,w=void 0===y?{}:y;if(e){var _=e.prefix,S=e.iconName,E=e.icon;return Oe(s({type:"icon"},e),(function(){return Ee(),M.autoA11y&&(d?b["aria-labelledby"]="".concat(M.replacementClass,"-title-").concat(p||J()):(b["aria-hidden"]="true",b.focusable="false")),ae({icons:{main:_e(E),mask:u?_e(u.icon):{found:!1,width:null,height:null,icon:{}}},prefix:_,iconName:S,transform:s({},Q,r),symbol:o,title:d,maskId:l,titleId:p,extra:{attributes:b,styles:w,classes:g}})}))}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=(e||{}).icon?e:ke(e||{}),r=t.mask;return r&&(r=(r||{}).icon?r:ke(r||{})),Me(n,s({},t,{mask:r}))})}).call(this,n(26),n(202).setImmediate)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p})),n.d(t,"c",(function(){return v})),n.d(t,"b",(function(){return g})),n.d(t,"d",(function(){return m})),n.d(t,"e",(function(){return b}));var r=n(298),i=n.n(r),o=n(299),a=n.n(o),s=n(107),u=n.n(s),c=n(1);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};h=f(f({},h),e)}(e.options.react),function(e){d=e}(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(297),i=n.n(r),o=n(107),a=n.n(o),s=n(1),u=n(112);function c(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return f("i18n.languages were undefined or empty",t.languages),!0;var r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!t.services.backendConnector.backend||!(!a(r,e)||i&&!a(o,e))))}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=Object(s.useContext)(u.a)||{},o=r.i18n,a=r.defaultNS,c=n||o||Object(u.d)();if(c&&!c.reportNamespaces&&(c.reportNamespaces=new u.b),!c){f("You will need to pass in an i18next instance by using initReactI18next");var l=function(e){return Array.isArray(e)?e[e.length-1]:e},p=[l,{},!1];return p.t=l,p.i18n={},p.ready=!1,p}c.options.react&&void 0!==c.options.react.wait&&f("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var g=v(v(v({},Object(u.c)()),c.options.react),t),m=g.useSuspense,b=e||a||c.options&&c.options.defaultNS;b="string"===typeof b?[b]:b||["translation"],c.reportNamespaces.addUsedNamespaces&&c.reportNamespaces.addUsedNamespaces(b);var y=(c.isInitialized||c.initializedStoreOnce)&&b.every((function(e){return h(e,c,g)}));function w(){return c.getFixedT(null,"fallback"===g.nsMode?b:b[0])}var _=Object(s.useState)(w),S=i()(_,2),E=S[0],O=S[1],k=Object(s.useRef)(!0);Object(s.useEffect)((function(){var e=g.bindI18n,t=g.bindI18nStore;function n(){k.current&&O(w)}return k.current=!0,y||m||d(c,b,(function(){k.current&&O(w)})),e&&c&&c.on(e,n),t&&c&&c.store.on(t,n),function(){k.current=!1,e&&c&&e.split(" ").forEach((function(e){return c.off(e,n)})),t&&c&&t.split(" ").forEach((function(e){return c.store.off(e,n)}))}}),[c,b.join()]);var M=Object(s.useRef)(!0);Object(s.useEffect)((function(){k.current&&!M.current&&O(w),M.current=!1}),[c]);var T=[E,c,y];if(T.t=E,T.i18n=c,T.ready=y,y)return T;if(!y&&!m)return T;throw new Promise((function(e){d(c,b,(function(){e()}))}))}},function(e,t,n){(function(e,r){var i;(function(){var o,a="Expected a function",s="__lodash_hash_undefined__",u="__lodash_placeholder__",c=16,l=32,f=64,d=128,h=256,p=1/0,v=9007199254740991,g=NaN,m=4294967295,b=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",l],["partialRight",f],["rearg",h]],y="[object Arguments]",w="[object Array]",_="[object Boolean]",S="[object Date]",E="[object Error]",O="[object Function]",k="[object GeneratorFunction]",M="[object Map]",T="[object Number]",x="[object Object]",C="[object Promise]",A="[object RegExp]",I="[object Set]",P="[object String]",R="[object Symbol]",j="[object WeakMap]",L="[object ArrayBuffer]",D="[object DataView]",N="[object Float32Array]",U="[object Float64Array]",F="[object Int8Array]",B="[object Int16Array]",z="[object Int32Array]",q="[object Uint8Array]",V="[object Uint8ClampedArray]",H="[object Uint16Array]",W="[object Uint32Array]",G=/\b__p \+= '';/g,K=/\b(__p \+=) '' \+/g,Y=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$=/&(?:amp|lt|gt|quot|#39);/g,X=/[&<>"']/g,Q=RegExp($.source),Z=RegExp(X.source),J=/<%-([\s\S]+?)%>/g,ee=/<%([\s\S]+?)%>/g,te=/<%=([\s\S]+?)%>/g,ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,re=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,oe=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(oe.source),se=/^\s+/,ue=/\s/,ce=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,le=/\{\n\/\* \[wrapped with (.+)\] \*/,fe=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,pe=/\\(\\)?/g,ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ge=/\w*$/,me=/^[-+]0x[0-9a-f]+$/i,be=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,we=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,Se=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ee=/($^)/,Oe=/['\n\r\u2028\u2029\\]/g,ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Me="\\u2700-\\u27bf",Te="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Ce="\\ufe0e\\ufe0f",Ae="\\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",Ie="['\u2019]",Pe="[\\ud800-\\udfff]",Re="["+Ae+"]",je="["+ke+"]",Le="\\d+",De="[\\u2700-\\u27bf]",Ne="["+Te+"]",Ue="[^\\ud800-\\udfff"+Ae+Le+Me+Te+xe+"]",Fe="\\ud83c[\\udffb-\\udfff]",Be="[^\\ud800-\\udfff]",ze="(?:\\ud83c[\\udde6-\\uddff]){2}",qe="[\\ud800-\\udbff][\\udc00-\\udfff]",Ve="["+xe+"]",He="(?:"+Ne+"|"+Ue+")",We="(?:"+Ve+"|"+Ue+")",Ge="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",Ke="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+je+"|"+Fe+")"+"?",$e="[\\ufe0e\\ufe0f]?",Xe=$e+Ye+("(?:\\u200d(?:"+[Be,ze,qe].join("|")+")"+$e+Ye+")*"),Qe="(?:"+[De,ze,qe].join("|")+")"+Xe,Ze="(?:"+[Be+je+"?",je,ze,qe,Pe].join("|")+")",Je=RegExp(Ie,"g"),et=RegExp(je,"g"),tt=RegExp(Fe+"(?="+Fe+")|"+Ze+Xe,"g"),nt=RegExp([Ve+"?"+Ne+"+"+Ge+"(?="+[Re,Ve,"$"].join("|")+")",We+"+"+Ke+"(?="+[Re,Ve+He,"$"].join("|")+")",Ve+"?"+He+"+"+Ge,Ve+"+"+Ke,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Le,Qe].join("|"),"g"),rt=RegExp("[\\u200d\\ud800-\\udfff"+ke+Ce+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[N]=st[U]=st[F]=st[B]=st[z]=st[q]=st[V]=st[H]=st[W]=!0,st[y]=st[w]=st[L]=st[_]=st[D]=st[S]=st[E]=st[O]=st[M]=st[T]=st[x]=st[A]=st[I]=st[P]=st[j]=!1;var ut={};ut[y]=ut[w]=ut[L]=ut[D]=ut[_]=ut[S]=ut[N]=ut[U]=ut[F]=ut[B]=ut[z]=ut[M]=ut[T]=ut[x]=ut[A]=ut[I]=ut[P]=ut[R]=ut[q]=ut[V]=ut[H]=ut[W]=!0,ut[E]=ut[O]=ut[j]=!1;var ct={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lt=parseFloat,ft=parseInt,dt="object"==typeof e&&e&&e.Object===Object&&e,ht="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||ht||Function("return this")(),vt=t&&!t.nodeType&&t,gt=vt&&"object"==typeof r&&r&&!r.nodeType&&r,mt=gt&>.exports===vt,bt=mt&&dt.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||bt&&bt.binding&&bt.binding("util")}catch(t){}}(),wt=yt&&yt.isArrayBuffer,_t=yt&&yt.isDate,St=yt&&yt.isMap,Et=yt&&yt.isRegExp,Ot=yt&&yt.isSet,kt=yt&&yt.isTypedArray;function Mt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Tt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i-1}function Rt(e,t,n){for(var r=-1,i=null==e?0:e.length;++r-1;);return n}function nn(e,t){for(var n=e.length;n--&&qt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var on=Kt({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"}),an=Kt({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+ct[e]}function un(e){return rt.test(e)}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function fn(e,t){for(var n=-1,r=e.length,i=0,o=[];++n",""":'"',"'":"'"});var bn=function e(t){var n=(t=null==t?pt:bn.defaults(pt.Object(),t,bn.pick(pt,ot))).Array,r=t.Date,i=t.Error,ue=t.Function,ke=t.Math,Me=t.Object,Te=t.RegExp,xe=t.String,Ce=t.TypeError,Ae=n.prototype,Ie=ue.prototype,Pe=Me.prototype,Re=t["__core-js_shared__"],je=Ie.toString,Le=Pe.hasOwnProperty,De=0,Ne=function(){var e=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ue=Pe.toString,Fe=je.call(Me),Be=pt._,ze=Te("^"+je.call(Le).replace(oe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=mt?t.Buffer:o,Ve=t.Symbol,He=t.Uint8Array,We=qe?qe.allocUnsafe:o,Ge=ln(Me.getPrototypeOf,Me),Ke=Me.create,Ye=Pe.propertyIsEnumerable,$e=Ae.splice,Xe=Ve?Ve.isConcatSpreadable:o,Qe=Ve?Ve.iterator:o,Ze=Ve?Ve.toStringTag:o,tt=function(){try{var e=ho(Me,"defineProperty");return e({},"",{}),e}catch(t){}}(),rt=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ct=r&&r.now!==pt.Date.now&&r.now,dt=t.setTimeout!==pt.setTimeout&&t.setTimeout,ht=ke.ceil,vt=ke.floor,gt=Me.getOwnPropertySymbols,bt=qe?qe.isBuffer:o,yt=t.isFinite,Ft=Ae.join,Kt=ln(Me.keys,Me),yn=ke.max,wn=ke.min,_n=r.now,Sn=t.parseInt,En=ke.random,On=Ae.reverse,kn=ho(t,"DataView"),Mn=ho(t,"Map"),Tn=ho(t,"Promise"),xn=ho(t,"Set"),Cn=ho(t,"WeakMap"),An=ho(Me,"create"),In=Cn&&new Cn,Pn={},Rn=Bo(kn),jn=Bo(Mn),Ln=Bo(Tn),Dn=Bo(xn),Nn=Bo(Cn),Un=Ve?Ve.prototype:o,Fn=Un?Un.valueOf:o,Bn=Un?Un.toString:o;function zn(e){if(rs(e)&&!Ga(e)&&!(e instanceof Wn)){if(e instanceof Hn)return e;if(Le.call(e,"__wrapped__"))return zo(e)}return new Hn(e)}var qn=function(){function e(){}return function(t){if(!ns(t))return{};if(Ke)return Ke(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Vn(){}function Hn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Wn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=m,this.__views__=[]}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function cr(e,t,n,r,i,a){var s,u=1&t,c=2&t,l=4&t;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!ns(e))return e;var f=Ga(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Le.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!u)return Ai(e,s)}else{var d=go(e),h=d==O||d==k;if(Xa(e))return Oi(e,u);if(d==x||d==y||h&&!i){if(s=c||h?{}:bo(e),!u)return c?function(e,t){return Ii(e,vo(e),t)}(e,function(e,t){return e&&Ii(t,js(t),e)}(s,e)):function(e,t){return Ii(e,po(e),t)}(e,or(s,e))}else{if(!ut[d])return i?e:{};s=function(e,t,n){var r=e.constructor;switch(t){case L:return ki(e);case _:case S:return new r(+e);case D:return function(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case U:case F:case B:case z:case q:case V:case H:case W:return Mi(e,n);case M:return new r;case T:case P:return new r(e);case A:return function(e){var t=new e.constructor(e.source,ge.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new r;case R:return i=e,Fn?Me(Fn.call(i)):{}}var i}(e,d,u)}}a||(a=new Xn);var p=a.get(e);if(p)return p;a.set(e,s),us(e)?e.forEach((function(r){s.add(cr(r,t,n,r,e,a))})):is(e)&&e.forEach((function(r,i){s.set(i,cr(r,t,n,i,e,a))}));var v=f?o:(l?c?oo:io:c?js:Rs)(e);return xt(v||e,(function(r,i){v&&(r=e[i=r]),nr(s,i,cr(r,t,n,i,e,a))})),s}function lr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Me(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function fr(e,t,n){if("function"!=typeof e)throw new Ce(a);return Ro((function(){e.apply(o,n)}),t)}function dr(e,t,n,r){var i=-1,o=Pt,a=!0,s=e.length,u=[],c=t.length;if(!s)return u;n&&(t=jt(t,Zt(n))),r?(o=Rt,a=!1):t.length>=200&&(o=en,a=!1,t=new $n(t));e:for(;++i-1},Kn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Yn.prototype.clear=function(){this.size=0,this.__data__={hash:new Gn,map:new(Mn||Kn),string:new Gn}},Yn.prototype.delete=function(e){var t=lo(this,e).delete(e);return this.size-=t?1:0,t},Yn.prototype.get=function(e){return lo(this,e).get(e)},Yn.prototype.has=function(e){return lo(this,e).has(e)},Yn.prototype.set=function(e,t){var n=lo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},$n.prototype.add=$n.prototype.push=function(e){return this.__data__.set(e,s),this},$n.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.clear=function(){this.__data__=new Kn,this.size=0},Xn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Xn.prototype.get=function(e){return this.__data__.get(e)},Xn.prototype.has=function(e){return this.__data__.has(e)},Xn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!Mn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Yn(r)}return n.set(e,t),this.size=n.size,this};var hr=ji(_r),pr=ji(Sr,!0);function vr(e,t){var n=!0;return hr(e,(function(e,r,i){return n=!!t(e,r,i)})),n}function gr(e,t,n){for(var r=-1,i=e.length;++r0&&n(s)?t>1?br(s,t-1,n,r,i):Lt(i,s):r||(i[i.length]=s)}return i}var yr=Li(),wr=Li(!0);function _r(e,t){return e&&yr(e,t,Rs)}function Sr(e,t){return e&&wr(e,t,Rs)}function Er(e,t){return It(t,(function(t){return Ja(e[t])}))}function Or(e,t){for(var n=0,r=(t=wi(t,e)).length;null!=e&&nt}function xr(e,t){return null!=e&&Le.call(e,t)}function Cr(e,t){return null!=e&&t in Me(e)}function Ar(e,t,r){for(var i=r?Rt:Pt,a=e[0].length,s=e.length,u=s,c=n(s),l=1/0,f=[];u--;){var d=e[u];u&&t&&(d=jt(d,Zt(t))),l=wn(d.length,l),c[u]=!r&&(t||a>=120&&d.length>=120)?new $n(u&&d):o}d=e[0];var h=-1,p=c[0];e:for(;++h=s?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Gr(e,t,n){for(var r=-1,i=t.length,o={};++r-1;)s!==e&&$e.call(s,u,1),$e.call(e,u,1);return e}function Yr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;wo(i)?$e.call(e,i,1):di(e,i)}}return e}function $r(e,t){return e+vt(En()*(t-e+1))}function Xr(e,t){var n="";if(!e||t<1||t>v)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Qr(e,t){return jo(xo(e,t,ou),e+"")}function Zr(e){return Zn(qs(e))}function Jr(e,t){var n=qs(e);return No(n,ur(t,0,n.length))}function ei(e,t,n,r){if(!ns(e))return e;for(var i=-1,a=(t=wi(t,e)).length,s=a-1,u=e;null!=u&&++io?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=n(o);++i>>1,a=e[o];null!==a&&!ls(a)&&(n?a<=t:a=200){var c=t?null:Xi(e);if(c)return dn(c);a=!1,i=en,u=new $n}else u=t?[]:s;e:for(;++r=r?e:ii(e,t,n)}var Ei=rt||function(e){return pt.clearTimeout(e)};function Oi(e,t){if(t)return e.slice();var n=e.length,r=We?We(n):new e.constructor(n);return e.copy(r),r}function ki(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Mi(e,t){var n=t?ki(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ti(e,t){if(e!==t){var n=e!==o,r=null===e,i=e===e,a=ls(e),s=t!==o,u=null===t,c=t===t,l=ls(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&_o(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=Me(t);++r-1?i[a?t[s]:s]:o}}function Bi(e){return ro((function(t){var n=t.length,r=n,i=Hn.prototype.thru;for(e&&t.reverse();r--;){var s=t[r];if("function"!=typeof s)throw new Ce(a);if(i&&!u&&"wrapper"==so(s))var u=new Hn([],!0)}for(r=u?r:n;++r1&&y.reverse(),h&&lu))return!1;var l=a.get(e),f=a.get(t);if(l&&f)return l==t&&f==e;var d=-1,h=!0,p=2&n?new $n:o;for(a.set(e,t),a.set(t,e);++d-1&&e%1==0&&e1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(ce,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return xt(b,(function(n){var r="_."+n[0];t&n[1]&&!Pt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(le);return t?t[1].split(fe):[]}(r),n)))}function Do(e){var t=0,n=0;return function(){var r=_n(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function No(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n1?e[t-1]:o;return n="function"==typeof n?(e.pop(),n):o,sa(e,n)}));function pa(e){var t=zn(e);return t.__chain__=!0,t}function va(e,t){return t(e)}var ga=ro((function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return sr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Wn&&wo(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:va,args:[i],thisArg:o}),new Hn(r,this.__chain__).thru((function(e){return t&&!e.length&&e.push(o),e}))):this.thru(i)}));var ma=Pi((function(e,t,n){Le.call(e,n)?++e[n]:ar(e,n,1)}));var ba=Fi(Wo),ya=Fi(Go);function wa(e,t){return(Ga(e)?xt:hr)(e,co(t,3))}function _a(e,t){return(Ga(e)?Ct:pr)(e,co(t,3))}var Sa=Pi((function(e,t,n){Le.call(e,n)?e[n].push(t):ar(e,n,[t])}));var Ea=Qr((function(e,t,r){var i=-1,o="function"==typeof t,a=Ya(e)?n(e.length):[];return hr(e,(function(e){a[++i]=o?Mt(t,e,r):Ir(e,t,r)})),a})),Oa=Pi((function(e,t,n){ar(e,n,t)}));function ka(e,t){return(Ga(e)?jt:Br)(e,co(t,3))}var Ma=Pi((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Ta=Qr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&_o(e,t[0],t[1])?t=[]:n>2&&_o(t[0],t[1],t[2])&&(t=[t[0]]),Wr(e,br(t,1),[])})),xa=ct||function(){return pt.Date.now()};function Ca(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Zi(e,d,o,o,o,o,t)}function Aa(e,t){var n;if("function"!=typeof t)throw new Ce(a);return e=gs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Ia=Qr((function(e,t,n){var r=1;if(n.length){var i=fn(n,uo(Ia));r|=l}return Zi(e,r,t,n,i)})),Pa=Qr((function(e,t,n){var r=3;if(n.length){var i=fn(n,uo(Pa));r|=l}return Zi(t,r,e,n,i)}));function Ra(e,t,n){var r,i,s,u,c,l,f=0,d=!1,h=!1,p=!0;if("function"!=typeof e)throw new Ce(a);function v(t){var n=r,a=i;return r=i=o,f=t,u=e.apply(a,n)}function g(e){return f=e,c=Ro(b,t),d?v(e):u}function m(e){var n=e-l;return l===o||n>=t||n<0||h&&e-f>=s}function b(){var e=xa();if(m(e))return y(e);c=Ro(b,function(e){var n=t-(e-l);return h?wn(n,s-(e-f)):n}(e))}function y(e){return c=o,p&&r?v(e):(r=i=o,u)}function w(){var e=xa(),n=m(e);if(r=arguments,i=this,l=e,n){if(c===o)return g(l);if(h)return Ei(c),c=Ro(b,t),v(l)}return c===o&&(c=Ro(b,t)),u}return t=bs(t)||0,ns(n)&&(d=!!n.leading,s=(h="maxWait"in n)?yn(bs(n.maxWait)||0,t):s,p="trailing"in n?!!n.trailing:p),w.cancel=function(){c!==o&&Ei(c),f=0,r=l=i=c=o},w.flush=function(){return c===o?u:y(xa())},w}var ja=Qr((function(e,t){return fr(e,1,t)})),La=Qr((function(e,t,n){return fr(e,bs(t)||0,n)}));function Da(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ce(a);var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a)||o,a};return n.cache=new(Da.Cache||Yn),n}function Na(e){if("function"!=typeof e)throw new Ce(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Da.Cache=Yn;var Ua=_i((function(e,t){var n=(t=1==t.length&&Ga(t[0])?jt(t[0],Zt(co())):jt(br(t,1),Zt(co()))).length;return Qr((function(r){for(var i=-1,o=wn(r.length,n);++i=t})),Wa=Pr(function(){return arguments}())?Pr:function(e){return rs(e)&&Le.call(e,"callee")&&!Ye.call(e,"callee")},Ga=n.isArray,Ka=wt?Zt(wt):function(e){return rs(e)&&Mr(e)==L};function Ya(e){return null!=e&&ts(e.length)&&!Ja(e)}function $a(e){return rs(e)&&Ya(e)}var Xa=bt||bu,Qa=_t?Zt(_t):function(e){return rs(e)&&Mr(e)==S};function Za(e){if(!rs(e))return!1;var t=Mr(e);return t==E||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!as(e)}function Ja(e){if(!ns(e))return!1;var t=Mr(e);return t==O||t==k||"[object AsyncFunction]"==t||"[object Proxy]"==t}function es(e){return"number"==typeof e&&e==gs(e)}function ts(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=v}function ns(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function rs(e){return null!=e&&"object"==typeof e}var is=St?Zt(St):function(e){return rs(e)&&go(e)==M};function os(e){return"number"==typeof e||rs(e)&&Mr(e)==T}function as(e){if(!rs(e)||Mr(e)!=x)return!1;var t=Ge(e);if(null===t)return!0;var n=Le.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&je.call(n)==Fe}var ss=Et?Zt(Et):function(e){return rs(e)&&Mr(e)==A};var us=Ot?Zt(Ot):function(e){return rs(e)&&go(e)==I};function cs(e){return"string"==typeof e||!Ga(e)&&rs(e)&&Mr(e)==P}function ls(e){return"symbol"==typeof e||rs(e)&&Mr(e)==R}var fs=kt?Zt(kt):function(e){return rs(e)&&ts(e.length)&&!!st[Mr(e)]};var ds=Ki(Fr),hs=Ki((function(e,t){return e<=t}));function ps(e){if(!e)return[];if(Ya(e))return cs(e)?vn(e):Ai(e);if(Qe&&e[Qe])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Qe]());var t=go(e);return(t==M?cn:t==I?dn:qs)(e)}function vs(e){return e?(e=bs(e))===p||e===-1/0?17976931348623157e292*(e<0?-1:1):e===e?e:0:0===e?e:0}function gs(e){var t=vs(e),n=t%1;return t===t?n?t-n:t:0}function ms(e){return e?ur(gs(e),0,m):0}function bs(e){if("number"==typeof e)return e;if(ls(e))return g;if(ns(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ns(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Qt(e);var n=be.test(e);return n||we.test(e)?ft(e.slice(2),n?2:8):me.test(e)?g:+e}function ys(e){return Ii(e,js(e))}function ws(e){return null==e?"":li(e)}var _s=Ri((function(e,t){if(ko(t)||Ya(t))Ii(t,Rs(t),e);else for(var n in t)Le.call(t,n)&&nr(e,n,t[n])})),Ss=Ri((function(e,t){Ii(t,js(t),e)})),Es=Ri((function(e,t,n,r){Ii(t,js(t),e,r)})),Os=Ri((function(e,t,n,r){Ii(t,Rs(t),e,r)})),ks=ro(sr);var Ms=Qr((function(e,t){e=Me(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&_o(t[0],t[1],i)&&(r=1);++n1),t})),Ii(e,oo(e),n),r&&(n=cr(n,7,to));for(var i=t.length;i--;)di(n,t[i]);return n}));var Us=ro((function(e,t){return null==e?{}:function(e,t){return Gr(e,t,(function(t,n){return Cs(e,n)}))}(e,t)}));function Fs(e,t){if(null==e)return{};var n=jt(oo(e),(function(e){return[e]}));return t=co(t),Gr(e,n,(function(e,n){return t(e,n[0])}))}var Bs=Qi(Rs),zs=Qi(js);function qs(e){return null==e?[]:Jt(e,Rs(e))}var Vs=Ni((function(e,t,n){return t=t.toLowerCase(),e+(n?Hs(t):t)}));function Hs(e){return Zs(ws(e).toLowerCase())}function Ws(e){return(e=ws(e))&&e.replace(Se,on).replace(et,"")}var Gs=Ni((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Ks=Ni((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ys=Di("toLowerCase");var $s=Ni((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Xs=Ni((function(e,t,n){return e+(n?" ":"")+Zs(t)}));var Qs=Ni((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zs=Di("toUpperCase");function Js(e,t,n){return e=ws(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var eu=Qr((function(e,t){try{return Mt(e,o,t)}catch(n){return Za(n)?n:new i(n)}})),tu=ro((function(e,t){return xt(t,(function(t){t=Fo(t),ar(e,t,Ia(e[t],e))})),e}));function nu(e){return function(){return e}}var ru=Bi(),iu=Bi(!0);function ou(e){return e}function au(e){return Dr("function"==typeof e?e:cr(e,1))}var su=Qr((function(e,t){return function(n){return Ir(n,e,t)}})),uu=Qr((function(e,t){return function(n){return Ir(e,n,t)}}));function cu(e,t,n){var r=Rs(t),i=Er(t,r);null!=n||ns(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Er(t,Rs(t)));var o=!(ns(n)&&"chain"in n)||!!n.chain,a=Ja(e);return xt(i,(function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__),i=n.__actions__=Ai(this.__actions__);return i.push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Lt([this.value()],arguments))})})),e}function lu(){}var fu=Hi(jt),du=Hi(At),hu=Hi(Ut);function pu(e){return So(e)?Gt(Fo(e)):function(e){return function(t){return Or(t,e)}}(e)}var vu=Gi(),gu=Gi(!0);function mu(){return[]}function bu(){return!1}var yu=Vi((function(e,t){return e+t}),0),wu=$i("ceil"),_u=Vi((function(e,t){return e/t}),1),Su=$i("floor");var Eu=Vi((function(e,t){return e*t}),1),Ou=$i("round"),ku=Vi((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new Ce(a);return e=gs(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ca,zn.assign=_s,zn.assignIn=Ss,zn.assignInWith=Es,zn.assignWith=Os,zn.at=ks,zn.before=Aa,zn.bind=Ia,zn.bindAll=tu,zn.bindKey=Pa,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Ga(e)?e:[e]},zn.chain=pa,zn.chunk=function(e,t,r){t=(r?_o(e,t,r):t===o)?1:yn(gs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=n(ht(i/t));ai?0:i+n),(r=r===o||r>i?i:gs(r))<0&&(r+=i),r=n>r?0:ms(r);n>>0)?(e=ws(e))&&("string"==typeof t||null!=t&&!ss(t))&&!(t=li(t))&&un(e)?Si(vn(e),0,n):e.split(t,n):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new Ce(a);return t=null==t?0:yn(gs(t),0),Qr((function(n){var r=n[t],i=Si(n,0,t);return r&&Lt(i,r),Mt(e,this,i)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?ii(e,1,t):[]},zn.take=function(e,t,n){return e&&e.length?ii(e,0,(t=n||t===o?1:gs(t))<0?0:t):[]},zn.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?ii(e,(t=r-(t=n||t===o?1:gs(t)))<0?0:t,r):[]},zn.takeRightWhile=function(e,t){return e&&e.length?pi(e,co(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?pi(e,co(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new Ce(a);return ns(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),Ra(e,t,{leading:r,maxWait:t,trailing:i})},zn.thru=va,zn.toArray=ps,zn.toPairs=Bs,zn.toPairsIn=zs,zn.toPath=function(e){return Ga(e)?jt(e,Fo):ls(e)?[e]:Ai(Uo(ws(e)))},zn.toPlainObject=ys,zn.transform=function(e,t,n){var r=Ga(e),i=r||Xa(e)||fs(e);if(t=co(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:ns(e)&&Ja(o)?qn(Ge(e)):{}}return(i?xt:_r)(e,(function(e,r,i){return t(n,e,r,i)})),n},zn.unary=function(e){return Ca(e,1)},zn.union=ra,zn.unionBy=ia,zn.unionWith=oa,zn.uniq=function(e){return e&&e.length?fi(e):[]},zn.uniqBy=function(e,t){return e&&e.length?fi(e,co(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?fi(e,o,t):[]},zn.unset=function(e,t){return null==e||di(e,t)},zn.unzip=aa,zn.unzipWith=sa,zn.update=function(e,t,n){return null==e?e:hi(e,t,yi(n))},zn.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:hi(e,t,yi(n),r)},zn.values=qs,zn.valuesIn=function(e){return null==e?[]:Jt(e,js(e))},zn.without=ua,zn.words=Js,zn.wrap=function(e,t){return Fa(yi(t),e)},zn.xor=ca,zn.xorBy=la,zn.xorWith=fa,zn.zip=da,zn.zipObject=function(e,t){return mi(e||[],t||[],nr)},zn.zipObjectDeep=function(e,t){return mi(e||[],t||[],ei)},zn.zipWith=ha,zn.entries=Bs,zn.entriesIn=zs,zn.extend=Ss,zn.extendWith=Es,cu(zn,zn),zn.add=yu,zn.attempt=eu,zn.camelCase=Vs,zn.capitalize=Hs,zn.ceil=wu,zn.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=bs(n))===n?n:0),t!==o&&(t=(t=bs(t))===t?t:0),ur(bs(e),t,n)},zn.clone=function(e){return cr(e,4)},zn.cloneDeep=function(e){return cr(e,5)},zn.cloneDeepWith=function(e,t){return cr(e,5,t="function"==typeof t?t:o)},zn.cloneWith=function(e,t){return cr(e,4,t="function"==typeof t?t:o)},zn.conformsTo=function(e,t){return null==t||lr(e,t,Rs(t))},zn.deburr=Ws,zn.defaultTo=function(e,t){return null==e||e!==e?t:e},zn.divide=_u,zn.endsWith=function(e,t,n){e=ws(e),t=li(t);var r=e.length,i=n=n===o?r:ur(gs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},zn.eq=qa,zn.escape=function(e){return(e=ws(e))&&Z.test(e)?e.replace(X,an):e},zn.escapeRegExp=function(e){return(e=ws(e))&&ae.test(e)?e.replace(oe,"\\$&"):e},zn.every=function(e,t,n){var r=Ga(e)?At:vr;return n&&_o(e,t,n)&&(t=o),r(e,co(t,3))},zn.find=ba,zn.findIndex=Wo,zn.findKey=function(e,t){return Bt(e,co(t,3),_r)},zn.findLast=ya,zn.findLastIndex=Go,zn.findLastKey=function(e,t){return Bt(e,co(t,3),Sr)},zn.floor=Su,zn.forEach=wa,zn.forEachRight=_a,zn.forIn=function(e,t){return null==e?e:yr(e,co(t,3),js)},zn.forInRight=function(e,t){return null==e?e:wr(e,co(t,3),js)},zn.forOwn=function(e,t){return e&&_r(e,co(t,3))},zn.forOwnRight=function(e,t){return e&&Sr(e,co(t,3))},zn.get=xs,zn.gt=Va,zn.gte=Ha,zn.has=function(e,t){return null!=e&&mo(e,t,xr)},zn.hasIn=Cs,zn.head=Yo,zn.identity=ou,zn.includes=function(e,t,n,r){e=Ya(e)?e:qs(e),n=n&&!r?gs(n):0;var i=e.length;return n<0&&(n=yn(i+n,0)),cs(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&qt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:gs(n);return i<0&&(i=yn(r+i,0)),qt(e,t,i)},zn.inRange=function(e,t,n){return t=vs(t),n===o?(n=t,t=0):n=vs(n),function(e,t,n){return e>=wn(t,n)&&e=-9007199254740991&&e<=v},zn.isSet=us,zn.isString=cs,zn.isSymbol=ls,zn.isTypedArray=fs,zn.isUndefined=function(e){return e===o},zn.isWeakMap=function(e){return rs(e)&&go(e)==j},zn.isWeakSet=function(e){return rs(e)&&"[object WeakSet]"==Mr(e)},zn.join=function(e,t){return null==e?"":Ft.call(e,t)},zn.kebabCase=Gs,zn.last=Zo,zn.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=gs(n))<0?yn(r+i,0):wn(i,r-1)),t===t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):zt(e,Ht,i,!0)},zn.lowerCase=Ks,zn.lowerFirst=Ys,zn.lt=ds,zn.lte=hs,zn.max=function(e){return e&&e.length?gr(e,ou,Tr):o},zn.maxBy=function(e,t){return e&&e.length?gr(e,co(t,2),Tr):o},zn.mean=function(e){return Wt(e,ou)},zn.meanBy=function(e,t){return Wt(e,co(t,2))},zn.min=function(e){return e&&e.length?gr(e,ou,Fr):o},zn.minBy=function(e,t){return e&&e.length?gr(e,co(t,2),Fr):o},zn.stubArray=mu,zn.stubFalse=bu,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=Eu,zn.nth=function(e,t){return e&&e.length?Hr(e,gs(t)):o},zn.noConflict=function(){return pt._===this&&(pt._=Be),this},zn.noop=lu,zn.now=xa,zn.pad=function(e,t,n){e=ws(e);var r=(t=gs(t))?pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return Wi(vt(i),n)+e+Wi(ht(i),n)},zn.padEnd=function(e,t,n){e=ws(e);var r=(t=gs(t))?pn(e):0;return t&&rt){var r=e;e=t,t=r}if(n||e%1||t%1){var i=En();return wn(e+i*(t-e+lt("1e-"+((i+"").length-1))),t)}return $r(e,t)},zn.reduce=function(e,t,n){var r=Ga(e)?Dt:Yt,i=arguments.length<3;return r(e,co(t,4),n,i,hr)},zn.reduceRight=function(e,t,n){var r=Ga(e)?Nt:Yt,i=arguments.length<3;return r(e,co(t,4),n,i,pr)},zn.repeat=function(e,t,n){return t=(n?_o(e,t,n):t===o)?1:gs(t),Xr(ws(e),t)},zn.replace=function(){var e=arguments,t=ws(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,n){var r=-1,i=(t=wi(t,e)).length;for(i||(i=1,e=o);++rv)return[];var n=m,r=wn(e,m);t=co(t),e-=m;for(var i=Xt(r,t);++n=a)return e;var u=n-pn(r);if(u<1)return r;var c=s?Si(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),ss(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=Te(i.source,ws(ge.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var d=l.index;c=c.slice(0,d===o?u:d)}}else if(e.indexOf(li(i),u)!=u){var h=c.lastIndexOf(i);h>-1&&(c=c.slice(0,h))}return c+r},zn.unescape=function(e){return(e=ws(e))&&Q.test(e)?e.replace($,mn):e},zn.uniqueId=function(e){var t=++De;return ws(e)+t},zn.upperCase=Qs,zn.upperFirst=Zs,zn.each=wa,zn.eachRight=_a,zn.first=Yo,cu(zn,function(){var e={};return _r(zn,(function(t,n){Le.call(zn.prototype,n)||(e[n]=t)})),e}(),{chain:!1}),zn.VERSION="4.17.21",xt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),xt(["drop","take"],(function(e,t){Wn.prototype[e]=function(n){n=n===o?1:yn(gs(n),0);var r=this.__filtered__&&!t?new Wn(this):this.clone();return r.__filtered__?r.__takeCount__=wn(n,r.__takeCount__):r.__views__.push({size:wn(n,m),type:e+(r.__dir__<0?"Right":"")}),r},Wn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),xt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;Wn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:co(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),xt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");Wn.prototype[e]=function(){return this[n](1).value()[0]}})),xt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");Wn.prototype[e]=function(){return this.__filtered__?new Wn(this):this[n](1)}})),Wn.prototype.compact=function(){return this.filter(ou)},Wn.prototype.find=function(e){return this.filter(e).head()},Wn.prototype.findLast=function(e){return this.reverse().find(e)},Wn.prototype.invokeMap=Qr((function(e,t){return"function"==typeof e?new Wn(this):this.map((function(n){return Ir(n,e,t)}))})),Wn.prototype.reject=function(e){return this.filter(Na(co(e)))},Wn.prototype.slice=function(e,t){e=gs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Wn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=gs(t))<0?n.dropRight(-t):n.take(t-e)),n)},Wn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Wn.prototype.toArray=function(){return this.take(m)},_r(Wn.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=zn[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof Wn,c=s[0],l=u||Ga(t),f=function(e){var t=i.apply(zn,Lt([e],s));return r&&d?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var d=this.__chain__,h=!!this.__actions__.length,p=a&&!d,v=u&&!h;if(!a&&l){t=v?t:new Wn(this);var g=e.apply(t,s);return g.__actions__.push({func:va,args:[f],thisArg:o}),new Hn(g,d)}return p&&v?e.apply(this,s):(g=this.thru(f),p?r?g.value()[0]:g.value():g)})})),xt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Ae[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Ga(i)?i:[],e)}return this[n]((function(n){return t.apply(Ga(n)?n:[],e)}))}})),_r(Wn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Le.call(Pn,r)||(Pn[r]=[]),Pn[r].push({name:t,func:n})}})),Pn[zi(o,2).name]=[{name:"wrapper",func:o}],Wn.prototype.clone=function(){var e=new Wn(this.__wrapped__);return e.__actions__=Ai(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Ai(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Ai(this.__views__),e},Wn.prototype.reverse=function(){if(this.__filtered__){var e=new Wn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Wn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Ga(e),r=t<0,i=n?e.length:0,o=function(e,t,n){var r=-1,i=n.length;for(;++r=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,n=this;n instanceof Vn;){var r=zo(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Wn){var t=e;return this.__actions__.length&&(t=new Wn(this)),(t=t.reverse()).__actions__.push({func:va,args:[na],thisArg:o}),new Hn(t,this.__chain__)}return this.thru(na)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,Qe&&(zn.prototype[Qe]=function(){return this}),zn}();pt._=bn,(i=function(){return bn}.call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(this,n(26),n(97)(e))},,function(e,t,n){"use strict";var r=n(45),i=n(305),o=n(179),a=n(126);n(170),n(280);r.a.Auth=o.a,r.a.Cache=a.a,r.a.ServiceWorker=i.a,t.default=r.a},,function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(18),i=n(19),o=n(52),a=n(16);function s(e,t){Object(a.a)(1,arguments);var n=Object(i.a)(e,t),s=n.getUTCFullYear(),u=t||{},c=u.locale,l=c&&c.options&&c.options.firstWeekContainsDate,f=null==l?1:Object(r.a)(l),d=null==u.firstWeekContainsDate?f:Object(r.a)(u.firstWeekContainsDate);if(!(d>=1&&d<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=new Date(0);h.setUTCFullYear(s+1,0,d),h.setUTCHours(0,0,0,0);var p=Object(o.a)(h,t),v=new Date(0);v.setUTCFullYear(s,0,d),v.setUTCHours(0,0,0,0);var g=Object(o.a)(v,t);return n.getTime()>=p.getTime()?s+1:n.getTime()>=g.getTime()?s:s-1}},function(e,t,n){"use strict";(function(t){"undefined"===typeof t||!t.version||0===t.version.indexOf("v0.")||0===t.version.indexOf("v1.")&&0!==t.version.indexOf("v1.8.")?e.exports={nextTick:function(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick((function(){e.call(null,n)}));case 3:return t.nextTick((function(){e.call(null,n,r)}));case 4:return t.nextTick((function(){e.call(null,n,r,i)}));default:for(o=new Array(s-1),a=0;a>>24]^l[p>>>16&255]^f[v>>>8&255]^d[255&g]^t[m++],a=c[p>>>24]^l[v>>>16&255]^f[g>>>8&255]^d[255&h]^t[m++],s=c[v>>>24]^l[g>>>16&255]^f[h>>>8&255]^d[255&p]^t[m++],u=c[g>>>24]^l[h>>>16&255]^f[p>>>8&255]^d[255&v]^t[m++],h=o,p=a,v=s,g=u;return o=(r[h>>>24]<<24|r[p>>>16&255]<<16|r[v>>>8&255]<<8|r[255&g])^t[m++],a=(r[p>>>24]<<24|r[v>>>16&255]<<16|r[g>>>8&255]<<8|r[255&h])^t[m++],s=(r[v>>>24]<<24|r[g>>>16&255]<<16|r[h>>>8&255]<<8|r[255&p])^t[m++],u=(r[g>>>24]<<24|r[h>>>16&255]<<16|r[p>>>8&255]<<8|r[255&v])^t[m++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var s=[0,1,2,4,8,16,32,64,128,27,54],u=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var n=[],r=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99,n[a]=c,r[c]=a;var l=e[a],f=e[l],d=e[f],h=257*e[c]^16843008*c;i[0][a]=h<<24|h>>>8,i[1][a]=h<<16|h>>>16,i[2][a]=h<<8|h>>>24,i[3][a]=h,h=16843009*d^65537*f^257*l^16843008*a,o[0][c]=h<<24|h>>>8,o[1][c]=h<<16|h>>>16,o[2][c]=h<<8|h>>>24,o[3][c]=h,0===a?a=s=1:(a=l^e[e[e[d^l]]],s^=e[e[s]])}return{SBOX:n,INV_SBOX:r,SUB_MIX:i,INV_SUB_MIX:o}}();function c(e){this._key=i(e),this._reset()}c.blockSize=16,c.keySize=32,c.prototype.blockSize=c.blockSize,c.prototype.keySize=c.keySize,c.prototype._reset=function(){for(var e=this._key,t=e.length,n=t+6,r=4*(n+1),i=[],o=0;o>>24,a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a],a^=s[o/t|0]<<24):t>6&&o%t===4&&(a=u.SBOX[a>>>24]<<24|u.SBOX[a>>>16&255]<<16|u.SBOX[a>>>8&255]<<8|u.SBOX[255&a]),i[o]=i[o-t]^a}for(var c=[],l=0;l>>24]]^u.INV_SUB_MIX[1][u.SBOX[d>>>16&255]]^u.INV_SUB_MIX[2][u.SBOX[d>>>8&255]]^u.INV_SUB_MIX[3][u.SBOX[255&d]]}this._nRounds=n,this._keySchedule=i,this._invKeySchedule=c},c.prototype.encryptBlockRaw=function(e){return a(e=i(e),this._keySchedule,u.SUB_MIX,u.SBOX,this._nRounds)},c.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),n=r.allocUnsafe(16);return n.writeUInt32BE(t[0],0),n.writeUInt32BE(t[1],4),n.writeUInt32BE(t[2],8),n.writeUInt32BE(t[3],12),n},c.prototype.decryptBlock=function(e){var t=(e=i(e))[1];e[1]=e[3],e[3]=t;var n=a(e,this._invKeySchedule,u.INV_SUB_MIX,u.INV_SBOX,this._nRounds),o=r.allocUnsafe(16);return o.writeUInt32BE(n[0],0),o.writeUInt32BE(n[3],4),o.writeUInt32BE(n[2],8),o.writeUInt32BE(n[1],12),o},c.prototype.scrub=function(){o(this._keySchedule),o(this._invKeySchedule),o(this._key)},e.exports.AES=c},function(e,t,n){var r=n(14).Buffer,i=n(145);e.exports=function(e,t,n,o){if(r.isBuffer(e)||(e=r.from(e,"binary")),t&&(r.isBuffer(t)||(t=r.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var a=n/8,s=r.alloc(a),u=r.alloc(o||0),c=r.alloc(0);a>0||o>0;){var l=new i;l.update(c),l.update(e),t&&l.update(t),c=l.digest();var f=0;if(a>0){var d=s.length-a;f=Math.min(a,c.length),c.copy(s,d,0,f),a-=f}if(f0){var h=u.length-o,p=Math.min(o,c.length-f);c.copy(u,h,f,f+p),o-=p}}return c.fill(0),{key:s,iv:u}}},function(e,t,n){"use strict";var r=n(29),i=n(43),o=i.getNAF,a=i.getJSF,s=i.assert;function u(e,t){this.type=e,this.p=new r(t.p,16),this.red=t.prime?r.red(t.prime):r.mont(this.p),this.zero=new r(0).toRed(this.red),this.one=new r(1).toRed(this.red),this.two=new r(2).toRed(this.red),this.n=t.n&&new r(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function c(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=u,u.prototype.point=function(){throw new Error("Not implemented")},u.prototype.validate=function(){throw new Error("Not implemented")},u.prototype._fixedNafMul=function(e,t){s(e.precomputed);var n=e._getDoubles(),r=o(t,1,this._bitLength),i=(1<=a;l--)u=(u<<1)+r[l];c.push(u)}for(var f=this.jpoint(null,null,null),d=this.jpoint(null,null,null),h=i;h>0;h--){for(a=0;a=0;c--){for(var l=0;c>=0&&0===a[c];c--)l++;if(c>=0&&l++,u=u.dblp(l),c<0)break;var f=a[c];s(0!==f),u="affine"===e.type?f>0?u.mixedAdd(i[f-1>>1]):u.mixedAdd(i[-f-1>>1].neg()):f>0?u.add(i[f-1>>1]):u.add(i[-f-1>>1].neg())}return"affine"===e.type?u.toP():u},u.prototype._wnafMulAdd=function(e,t,n,r,i){var s,u,c,l=this._wnafT1,f=this._wnafT2,d=this._wnafT3,h=0;for(s=0;s=1;s-=2){var v=s-1,g=s;if(1===l[v]&&1===l[g]){var m=[t[v],null,null,t[g]];0===t[v].y.cmp(t[g].y)?(m[1]=t[v].add(t[g]),m[2]=t[v].toJ().mixedAdd(t[g].neg())):0===t[v].y.cmp(t[g].y.redNeg())?(m[1]=t[v].toJ().mixedAdd(t[g]),m[2]=t[v].add(t[g].neg())):(m[1]=t[v].toJ().mixedAdd(t[g]),m[2]=t[v].toJ().mixedAdd(t[g].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=a(n[v],n[g]);for(h=Math.max(y[0].length,h),d[v]=new Array(h),d[g]=new Array(h),u=0;u=0;s--){for(var O=0;s>=0;){var k=!0;for(u=0;u=0&&O++,S=S.dblp(O),s<0)break;for(u=0;u0?c=f[u][M-1>>1]:M<0&&(c=f[u][-M-1>>1].neg()),S="affine"===c.type?S.mixedAdd(c):S.add(c))}}for(s=0;s=Math.ceil((e.bitLength()+1)/t.step)},c.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,r.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var a={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};t.defaultOptions=a;var s=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];function u(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=l(t=n.tagValueProcessor(t,e),n.parseNodeValue,n.parseTrueNumberOnly)),t}function c(e,t){if(t.ignoreNameSpace){var n=e.split(":"),r="/"===e.charAt(0)?"/":"";if("xmlns"===n[0])return"";2===n.length&&(e=r+n[1])}return e}function l(e,t,n){var i;return t&&"string"===typeof e?(""===e.trim()||isNaN(e)?i="true"===e||"false"!==e&&e:(-1!==e.indexOf("0x")?i=Number.parseInt(e,16):-1!==e.indexOf(".")?(i=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):i=Number.parseInt(e,10),n&&(i=String(i)===e?i:e)),i):r.isExist(e)?e:""}t.props=s;var f=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function d(e,t){if(!t.ignoreAttributes&&"string"===typeof e){e=e.replace(/\r?\n/g," ");for(var n=r.getAllMatches(e,f),i=n.length,o={},a=0;a"===o)return{data:r,index:i};"\t"===o&&(o=" ")}r+=o}}function p(e,t,n,r){var i=e.indexOf(t,n);if(-1===i)throw new Error(r);return i+t.length-1}t.getTraversalObj=function(e,t){e=e.replace(/\r\n?/g,"\n"),t=i(t,a,s);for(var n=new o("!xml"),c=n,l="",f=0;f",f,"Closing Tag is not closed."),g=e.substring(f+2,v).trim();if(t.ignoreNameSpace){var m=g.indexOf(":");-1!==m&&(g=g.substr(m+1))}c&&(c.val?c.val=r.getValue(c.val)+""+u(g,l,t):c.val=u(g,l,t)),t.stopNodes.length&&t.stopNodes.includes(c.tagname)&&(c.child=[],void 0==c.attrsMap&&(c.attrsMap={}),c.val=e.substr(c.startIndex+1,f-c.startIndex-1)),c=c.parent,l="",f=v}else if("?"===e[f+1])f=p(e,"?>",f,"Pi Tag is not closed.");else if("!--"===e.substr(f+1,3))f=p(e,"--\x3e",f,"Comment is not closed.");else if("!D"===e.substr(f+1,2)){var b=p(e,">",f,"DOCTYPE is not closed.");f=e.substring(f,b).indexOf("[")>=0?e.indexOf("]>",f)+1:b}else if("!["===e.substr(f+1,2)){var y=p(e,"]]>",f,"CDATA is not closed.")-2,w=e.substring(f+9,y);if(l&&(c.val=r.getValue(c.val)+""+u(c.tagname,l,t),l=""),t.cdataTagName){var _=new o(t.cdataTagName,c,w);c.addChild(_),c.val=r.getValue(c.val)+t.cdataPositionChar,w&&(_.val=w)}else c.val=(c.val||"")+(w||"");f=y+2}else{var S=h(e,f+1),E=S.data,O=S.index,k=E.indexOf(" "),M=E,T=!0;if(-1!==k&&(M=E.substr(0,k).replace(/\s\s*$/,""),E=E.substr(k+1)),t.ignoreNameSpace){var x=M.indexOf(":");-1!==x&&(T=(M=M.substr(x+1))!==S.data.substr(x+1))}if(c&&l&&"!xml"!==c.tagname&&(c.val=r.getValue(c.val)+""+u(c.tagname,l,t)),E.length>0&&E.lastIndexOf("/")===E.length-1){E="/"===M[M.length-1]?M=M.substr(0,M.length-1):E.substr(0,E.length-1);var C=new o(M,c,"");M!==E&&(C.attrsMap=d(E,t)),c.addChild(C)}else{var A=new o(M,c);t.stopNodes.length&&t.stopNodes.includes(A.tagname)&&(A.startIndex=O),M!==E&&T&&(A.attrsMap=d(E,t)),c.addChild(A),c=A}l="",f=O}else l+=e[f]}return n}},function(e,t,n){"use strict";var r=Number.isNaN||function(e){return"number"===typeof e&&e!==e};function i(e,t){if(e.length!==t.length)return!1;for(var n=0;n=0;n-=1){var r=e.charCodeAt(n);r>127&&r<=2047?t+=1:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&(n-=1)}return t}function a(){return(new Date).getTime()}function s(e){return Number.isInteger?Number.isInteger(e):function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}(e)}var u={},c=(function(){function e(){}e.clear=function(){u={}},e.getItem=function(e){return u[e]||null},e.setItem=function(e,t){u[e]=t},e.removeItem=function(e){delete u[e]}}(),n(65)),l=new c.a("StorageCache"),f=function(){function e(e){this.config=Object.assign({},e),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return e.prototype.getModuleName=function(){return"Cache"},e.prototype.checkConfig=function(){s(this.config.capacityInBytes)||(l.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes),s(this.config.itemMaxSize)||(l.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),s(this.config.defaultTTL)||(l.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=i.defaultTTL),s(this.config.defaultPriority)||(l.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=i.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(l.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=i.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(l.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=i.defaultPriority),(Number(this.config.warningThreshold)>1||Number(this.config.warningThreshold)<0)&&(l.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=i.warningThreshold);this.config.capacityInBytes>5242880&&(l.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=i.capacityInBytes)},e.prototype.fillCacheItem=function(e,t,n){var r={key:e,data:t,timestamp:a(),visitedTime:a(),priority:n.priority,expires:n.expires,type:typeof t,byteSize:0};return r.byteSize=o(JSON.stringify(r)),r.byteSize=o(JSON.stringify(r)),r},e.prototype.configure=function(e){return e?(e.keyPrefix&&l.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,e,e.Cache),this.checkConfig(),this.config):this.config},e}(),d=function(){var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),h=new c.a("Cache"),p=new(function(e){function t(t){var n=this,r=t?Object.assign({},i,t):i;return(n=e.call(this,r)||this).config.storage=r.storage,n.getItem=n.getItem.bind(n),n.setItem=n.setItem.bind(n),n.removeItem=n.removeItem.bind(n),n}return d(t,e),t.prototype._decreaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t-e).toString())},t.prototype._increaseCurSizeInBytes=function(e){var t=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(t+e).toString())},t.prototype._refreshItem=function(e,t){return e.visitedTime=a(),this.config.storage.setItem(t,JSON.stringify(e)),e},t.prototype._isExpired=function(e){var t=this.config.storage.getItem(e),n=JSON.parse(t);return a()>=n.expires},t.prototype._removeItem=function(e,t){var n=t||JSON.parse(this.config.storage.getItem(e)).byteSize;this._decreaseCurSizeInBytes(n),this.config.storage.removeItem(e)},t.prototype._setItem=function(e,t){this._increaseCurSizeInBytes(t.byteSize);try{this.config.storage.setItem(e,JSON.stringify(t))}catch(n){this._decreaseCurSizeInBytes(t.byteSize),h.error("Failed to set item "+n)}},t.prototype._sizeToPop=function(e){var t=this.getCacheCurSize()+e-this.config.capacityInBytes,n=(1-this.config.warningThreshold)*this.config.capacityInBytes;return t>n?t:n},t.prototype._isCacheFull=function(e){return e+this.getCacheCurSize()>this.config.capacityInBytes},t.prototype._findValidKeys=function(){for(var e=[],t=[],n=0;nt.priority?-1:e.priority5)h.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");else{var o=this.fillCacheItem(r,t,i);if(o.byteSize>this.config.itemMaxSize)h.warn("Item with key: "+e+" you are trying to put into is too big!");else try{var s=this.config.storage.getItem(r);if(s&&this._removeItem(r,JSON.parse(s).byteSize),this._isCacheFull(o.byteSize)){var u=this._findValidKeys();if(this._isCacheFull(o.byteSize)){var c=this._sizeToPop(o.byteSize);this._popOutItems(u,c)}}this._setItem(r,o)}catch(l){h.warn("setItem failed! "+l)}}}else h.warn("The value of item should not be undefined!");else h.warn("Invalid key: should not be empty or 'CurSize'")},t.prototype.getItem=function(e,t){h.log("Get item: key is "+e+" with options "+t);var n=null,r=this.config.keyPrefix+e;if(r===this.config.keyPrefix||r===this.cacheCurSizeKey)return h.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(null!=(n=this.config.storage.getItem(r))){if(!this._isExpired(r)){var i=JSON.parse(n);return(i=this._refreshItem(i,r)).data}this._removeItem(r,JSON.parse(n).byteSize),n=null}if(t&&void 0!==t.callback){var o=t.callback();return null!==o&&this.setItem(e,o,t),o}return null}catch(a){return h.warn("getItem failed! "+a),null}},t.prototype.removeItem=function(e){h.log("Remove item: key is "+e);var t=this.config.keyPrefix+e;if(t!==this.config.keyPrefix&&t!==this.cacheCurSizeKey)try{var n=this.config.storage.getItem(t);n&&this._removeItem(t,JSON.parse(n).byteSize)}catch(r){h.warn("removeItem failed! "+r)}},t.prototype.clear=function(){h.log("Clear Cache");for(var e=[],t=0;t=0;n--){var r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2)}return t}return"number"===typeof e.byteLength?e.byteLength:"number"===typeof e.size?e.size:void 0}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";(function(e){var n="object"==typeof e&&e&&e.Object===Object&&e;t.a=n}).call(this,n(26))},function(e,t,n){"use strict";(function(e){var r=n(27),i=n(291),o="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.a.Buffer:void 0,u=(s?s.isBuffer:void 0)||i.a;t.a=u}).call(this,n(168)(e))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t>>8^o[255&(this.checksum^s)]}}catch(u){t={error:u}}finally{try{a&&!a.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return this},e.prototype.digest=function(){return(4294967295^this.checksum)>>>0},e}();t.Crc32=i;var o=Uint32Array.from([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117])},function(e,t,n){"use strict";n.d(t,"a",(function(){return D}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function s(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var u=n(30),c="X-Amz-Date",l="X-Amz-Signature",f="X-Amz-Security-Token",d="authorization",h=c.toLowerCase(),p=[d,h,"date"],v=l.toLowerCase(),g="x-amz-content-sha256",m=f.toLowerCase(),b={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},y=/^proxy-/,w=/^sec-/,_="AWS4-HMAC-SHA256",S="AWS4-HMAC-SHA256-PAYLOAD",E="aws4_request",O={},k=[];function M(e,t,n){return e+"/"+t+"/"+n+"/"+E}function T(e,t,n){var r=new e(t);return r.update(n),r.digest()}function x(e,t,n){var r,i,o=e.headers,s={};try{for(var u=a(Object.keys(o).sort()),c=u.next();!c.done;c=u.next()){var l=c.value,f=l.toLowerCase();(f in b||(null===t||void 0===t?void 0:t.has(f))||y.test(f)||w.test(f))&&(!n||n&&!n.has(f))||(s[f]=o[l].trim().replace(/\s+/g," "))}}catch(d){r={error:d}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}return s}var C=n(66);var A=n(287);function I(e,t){var n=e.headers,r=e.body;return i(this,void 0,void 0,(function(){var e,i,s,c,l,f,d;return o(this,(function(o){switch(o.label){case 0:try{for(e=a(Object.keys(n)),i=e.next();!i.done;i=e.next())if((s=i.value).toLowerCase()===g)return[2,n[s]]}catch(h){f={error:h}}finally{try{i&&!i.done&&(d=e.return)&&d.call(e)}finally{if(f)throw f.error}}return void 0!=r?[3,1]:[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:return"string"===typeof r||ArrayBuffer.isView(r)||Object(A.a)(r)?((c=new t).update(r),l=u.b,[4,c.digest()]):[3,3];case 2:return[2,l.apply(void 0,[o.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}}))}))}function P(e){var t=e.headers,n=e.query,i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i-1&&delete e.headers[o]}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return e}function L(e){return function(e){if("number"===typeof e)return new Date(1e3*e);if("string"===typeof e)return Number(e)?new Date(1e3*Number(e)):new Date(e);return e}(e).toISOString().replace(/\.\d{3}Z$/,"Z")}var D=function(){function e(e){var t=e.applyChecksum,n=e.credentials,r=e.region,i=e.service,o=e.sha256,a=e.uriEscapePath,s=void 0===a||a;this.service=i,this.sha256=o,this.uriEscapePath=s,this.applyChecksum="boolean"!==typeof t||t,this.regionProvider=F(r),this.credentialProvider=B(n)}return e.prototype.presign=function(e,t){return void 0===t&&(t={}),i(this,void 0,void 0,(function(){var n,i,s,u,c,d,h,p,v,g,m,b,y,w,S,E,O,k,T,C,A,R,L,D;return o(this,(function(o){switch(o.label){case 0:return n=t.signingDate,i=void 0===n?new Date:n,s=t.expiresIn,u=void 0===s?3600:s,c=t.unsignableHeaders,d=t.unhoistableHeaders,h=t.signableHeaders,p=t.signingRegion,v=t.signingService,[4,this.credentialProvider()];case 1:return g=o.sent(),null===p||void 0===p?[3,2]:(b=p,[3,4]);case 2:return[4,this.regionProvider()];case 3:b=o.sent(),o.label=4;case 4:return m=b,y=N(i),w=y.longDate,S=y.shortDate,u>604800?[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")]:(E=M(S,m,null!==v&&void 0!==v?v:this.service),O=function(e,t){var n,i,o;void 0===t&&(t={});var s="function"===typeof e.clone?e.clone():P(e),u=s.headers,c=s.query,l=void 0===c?{}:c;try{for(var f=a(Object.keys(u)),d=f.next();!d.done;d=f.next()){var h=d.value,p=h.toLowerCase();"x-amz-"!==p.substr(0,6)||(null===(o=t.unhoistableHeaders)||void 0===o?void 0:o.has(p))||(l[h]=u[h],delete u[h])}}catch(v){n={error:v}}finally{try{d&&!d.done&&(i=f.return)&&i.call(f)}finally{if(n)throw n.error}}return r(r({},e),{headers:u,query:l})}(j(e),{unhoistableHeaders:d}),g.sessionToken&&(O.query[f]=g.sessionToken),O.query["X-Amz-Algorithm"]=_,O.query["X-Amz-Credential"]=g.accessKeyId+"/"+E,O.query["X-Amz-Date"]=w,O.query["X-Amz-Expires"]=u.toString(10),k=x(O,c,h),O.query["X-Amz-SignedHeaders"]=U(k),T=O.query,C=l,A=this.getSignature,R=[w,E,this.getSigningKey(g,m,S,v)],L=this.createCanonicalRequest,D=[O,k],[4,I(e,this.sha256)]);case 5:return[4,A.apply(this,R.concat([L.apply(this,D.concat([o.sent()]))]))];case 6:return T[C]=o.sent(),[2,O]}}))}))},e.prototype.sign=function(e,t){return i(this,void 0,void 0,(function(){return o(this,(function(n){return"string"===typeof e?[2,this.signString(e,t)]:e.headers&&e.payload?[2,this.signEvent(e,t)]:[2,this.signRequest(e,t)]}))}))},e.prototype.signEvent=function(e,t){var n=e.headers,r=e.payload,a=t.signingDate,s=void 0===a?new Date:a,c=t.priorSignature,l=t.signingRegion,f=t.signingService;return i(this,void 0,void 0,(function(){var e,t,i,a,d,h,p,v,g,m,b;return o(this,(function(o){switch(o.label){case 0:return null===l||void 0===l?[3,1]:(t=l,[3,3]);case 1:return[4,this.regionProvider()];case 2:t=o.sent(),o.label=3;case 3:return e=t,i=N(s),a=i.shortDate,d=i.longDate,h=M(a,e,null!==f&&void 0!==f?f:this.service),[4,I({headers:{},body:r},this.sha256)];case 4:return p=o.sent(),(v=new this.sha256).update(n),m=u.b,[4,v.digest()];case 5:return g=m.apply(void 0,[o.sent()]),b=[S,d,h,c,g,p].join("\n"),[2,this.signString(b,{signingDate:s,signingRegion:e,signingService:f})]}}))}))},e.prototype.signString=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,a=void 0===r?new Date:r,s=n.signingRegion,c=n.signingService;return i(this,void 0,void 0,(function(){var t,n,r,i,l,f,d,h;return o(this,(function(o){switch(o.label){case 0:return[4,this.credentialProvider()];case 1:return t=o.sent(),null===s||void 0===s?[3,2]:(r=s,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=o.sent(),o.label=4;case 4:return n=r,i=N(a).shortDate,d=(f=this.sha256).bind,[4,this.getSigningKey(t,n,i,c)];case 5:return(l=new(d.apply(f,[void 0,o.sent()]))).update(e),h=u.b,[4,l.digest()];case 6:return[2,h.apply(void 0,[o.sent()])]}}))}))},e.prototype.signRequest=function(e,t){var n=void 0===t?{}:t,r=n.signingDate,s=void 0===r?new Date:r,u=n.signableHeaders,c=n.unsignableHeaders,l=n.signingRegion,f=n.signingService;return i(this,void 0,void 0,(function(){var t,n,r,i,p,v,b,y,w,_,S;return o(this,(function(o){switch(o.label){case 0:return[4,this.credentialProvider()];case 1:return t=o.sent(),null===l||void 0===l?[3,2]:(r=l,[3,4]);case 2:return[4,this.regionProvider()];case 3:r=o.sent(),o.label=4;case 4:return n=r,i=j(e),p=N(s),v=p.longDate,b=p.shortDate,y=M(b,n,null!==f&&void 0!==f?f:this.service),i.headers[h]=v,t.sessionToken&&(i.headers[m]=t.sessionToken),[4,I(i,this.sha256)];case 5:return w=o.sent(),!function(e,t){var n,r;e=e.toLowerCase();try{for(var i=a(Object.keys(t)),o=i.next();!o.done;o=i.next())if(e===o.value.toLowerCase())return!0}catch(s){n={error:s}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return!1}(g,i.headers)&&this.applyChecksum&&(i.headers[g]=w),_=x(i,c,u),[4,this.getSignature(v,y,this.getSigningKey(t,n,b,f),this.createCanonicalRequest(i,_,w))];case 6:return S=o.sent(),i.headers[d]="AWS4-HMAC-SHA256 Credential="+t.accessKeyId+"/"+y+", SignedHeaders="+U(_)+", Signature="+S,[2,i]}}))}))},e.prototype.createCanonicalRequest=function(e,t,n){var r=Object.keys(t).sort();return e.method+"\n"+this.getCanonicalPath(e)+"\n"+function(e){var t,n,r=e.query,i=void 0===r?{}:r,o=[],s={},u=function(e){if(e.toLowerCase()===v)return"continue";o.push(e);var t=i[e];"string"===typeof t?s[e]=Object(C.a)(e)+"="+Object(C.a)(t):Array.isArray(t)&&(s[e]=t.slice(0).sort().reduce((function(t,n){return t.concat([Object(C.a)(e)+"="+Object(C.a)(n)])}),[]).join("&"))};try{for(var c=a(Object.keys(i).sort()),l=c.next();!l.done;l=c.next())u(l.value)}catch(f){t={error:f}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return o.map((function(e){return s[e]})).filter((function(e){return e})).join("&")}(e)+"\n"+r.map((function(e){return e+":"+t[e]})).join("\n")+"\n\n"+r.join(";")+"\n"+n},e.prototype.createStringToSign=function(e,t,n){return i(this,void 0,void 0,(function(){var r,i;return o(this,(function(o){switch(o.label){case 0:return(r=new this.sha256).update(n),[4,r.digest()];case 1:return i=o.sent(),[2,"AWS4-HMAC-SHA256\n"+e+"\n"+t+"\n"+Object(u.b)(i)]}}))}))},e.prototype.getCanonicalPath=function(e){var t=e.path;return this.uriEscapePath?"/"+encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/"):t},e.prototype.getSignature=function(e,t,n,r){return i(this,void 0,void 0,(function(){var i,a,s,c,l;return o(this,(function(o){switch(o.label){case 0:return[4,this.createStringToSign(e,t,r)];case 1:return i=o.sent(),c=(s=this.sha256).bind,[4,n];case 2:return(a=new(c.apply(s,[void 0,o.sent()]))).update(i),l=u.b,[4,a.digest()];case 3:return[2,l.apply(void 0,[o.sent()])]}}))}))},e.prototype.getSigningKey=function(e,t,n,r){return function(e,t,n,r,s){return i(void 0,void 0,void 0,(function(){var i,c,l,f,d,h,p,v,g;return o(this,(function(o){switch(o.label){case 0:return[4,T(e,t.secretAccessKey,t.accessKeyId)];case 1:if(i=o.sent(),(c=n+":"+r+":"+s+":"+Object(u.b)(i)+":"+t.sessionToken)in O)return[2,O[c]];for(k.push(c);k.length>50;)delete O[k.shift()];l="AWS4"+t.secretAccessKey,o.label=2;case 2:o.trys.push([2,7,8,9]),f=a([n,r,s,E]),d=f.next(),o.label=3;case 3:return d.done?[3,6]:(h=d.value,[4,T(e,l,h)]);case 4:l=o.sent(),o.label=5;case 5:return d=f.next(),[3,3];case 6:return[3,9];case 7:return p=o.sent(),v={error:p},[3,9];case 8:try{d&&!d.done&&(g=f.return)&&g.call(f)}finally{if(v)throw v.error}return[7];case 9:return[2,O[c]=l]}}))}))}(this.sha256,e,n,t,r||this.service)},e}(),N=function(e){var t=L(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},U=function(e){return Object.keys(e).sort().join(";")},F=function(e){if("string"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e},B=function(e){if("object"===typeof e){var t=Promise.resolve(e);return function(){return t}}return e}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));function r(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function i(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function i(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var o=function(e){var t,n=new URL(e),o=n.hostname,a=n.pathname,s=n.port,u=n.protocol,c=n.search;return c&&(t=function(e){var t,n,o={};if(e=e.replace(/^\?/,""))try{for(var a=r(e.split("&")),s=a.next();!s.done;s=a.next()){var u=i(s.value.split("="),2),c=u[0],l=u[1],f=void 0===l?null:l;c=decodeURIComponent(c),f&&(f=decodeURIComponent(f)),c in o?Array.isArray(o[c])?o[c].push(f):o[c]=[o[c],f]:o[c]=f}}catch(d){t={error:d}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return o}(c)),{hostname:o,port:s?parseInt(s):void 0,protocol:u,path:a,query:t}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.init(t,n)}return Object(s.a)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||p,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r-1?e.replace(/###/g,"."):e}function i(){return!e||"string"===typeof e}for(var o="string"!==typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function _(e,t,n){var r=w(e,t,Object);r.obj[r.k]=n}function S(e,t){var n=w(e,t),r=n.obj,i=n.k;if(r)return r[i]}function E(e,t,n){var r=S(e,n);return void 0!==r?r:S(t,n)}function O(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"===typeof e[r]||e[r]instanceof String||"string"===typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):O(e[r],t[r],n):e[r]=t[r]);return e}function k(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var M={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function T(e){return"string"===typeof e?e.replace(/[&<>"'\/]/g,(function(e){return M[e]})):e}var x="undefined"!==typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1;function C(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;oo+a;)a++,u=i[s=r.slice(o,o+a).join(n)];if(void 0===u)return;if("string"===typeof u)return u;if(s&&"string"===typeof u[s])return u[s];var c=r.slice(o+a).join(n);return c?C(u,c,n):void 0}i=i[r[o]]}return i}}var A=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Object(a.a)(this,t),n=f(this,d(t).call(this)),x&&g.call(Object(l.a)(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),void 0===n.options.ignoreJSONStructure&&(n.options.ignoreJSONStructure=!0),n}return Object(h.a)(t,e),Object(s.a)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!==typeof n&&(a=a.concat(n)),n&&"string"===typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=S(this.data,a);return s||!o||"string"!==typeof n?s:C(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),_(this.data,a,r),i.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!==typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var u=S(this.data,s)||{};r?O(u,n,i):u=o({},u,n),_(this.data,s,u),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?o({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(g),I={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}},P={},R=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(this,t),n=f(this,d(t).call(this)),x&&g.call(Object(l.a)(n)),y(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Object(l.a)(n)),n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=v.create("translator"),n}return Object(h.a)(t,e),Object(s.a)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,i=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:i};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return"string"===typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,n,i){var a=this;if("object"!==Object(r.a)(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),void 0===e||null===e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(e[e.length-1],n),c=u.key,l=u.namespaces,f=l[l.length-1],d=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(h){var p=n.nsSeparator||this.options.nsSeparator;return f+p+c}return c}var v=this.resolve(e,n),g=v&&v.res,m=v&&v.usedKey||c,b=v&&v.exactUsedKey||c,y=Object.prototype.toString.apply(g),w=["[object Number]","[object Function]","[object RegExp]"],_=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,S=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!==typeof g&&"boolean"!==typeof g&&"number"!==typeof g;if(S&&g&&E&&w.indexOf(y)<0&&("string"!==typeof _||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,o({},n,{ns:l})):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var O="[object Array]"===y,k=O?[]:{},M=O?b:m;for(var T in g)if(Object.prototype.hasOwnProperty.call(g,T)){var x="".concat(M).concat(s).concat(T);k[T]=this.translate(x,o({},n,{joinArrays:!1,ns:l})),k[T]===x&&(k[T]=g[T])}g=k}}else if(S&&"string"===typeof _&&"[object Array]"===y)(g=g.join(_))&&(g=this.extendTranslation(g,e,n,i));else{var C=!1,A=!1,I=void 0!==n.count&&"string"!==typeof n.count,P=t.hasDefaultValue(n),R=I?this.pluralResolver.getSuffix(d,n.count):"",j=n["defaultValue".concat(R)]||n.defaultValue;!this.isValidLookup(g)&&P&&(C=!0,g=j),this.isValidLookup(g)||(A=!0,g=c);var L=P&&j!==g&&this.options.updateMissing;if(A||C||L){if(this.logger.log(L?"updateKey":"missingKey",d,f,c,L?j:g),s){var D=this.resolve(c,o({},n,{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var N=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var F=0;F1&&void 0!==arguments[1]?arguments[1]:{};return"string"===typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!==typeof s.count,d=void 0!==s.context&&("string"===typeof s.context||"number"===typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!P["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(P["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u,l=c,h=[l];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(h,c,n,e,s);else f&&(o=a.pluralResolver.getSuffix(n,s.count)),f&&d&&h.push(l+o),d&&h.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&h.push(l+=o);for(;u=h.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{key:"isValidLookup",value:function(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(g);function j(e){return e.charAt(0).toUpperCase()+e.slice(1)}var L=function(){function e(t){Object(a.a)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=v.create("languageUtils")}return Object(s.a)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"===typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=j(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=j(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=j(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"===typeof e&&(e=e(t)),"string"===typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"===typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"===typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),D=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function U(){var e={};return D.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:N[t.fc]}}))})),e}var F=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object(a.a)(this,e),this.languageUtils=t,this.options=n,this.logger=v.create("pluralResolver"),this.rules=U()}return Object(s.a)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var i=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),o=r.numbers[i];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function(){return n.options.prepend&&o.toString()?n.options.prepend+o.toString():o.toString()};return"v1"===this.options.compatibilityJSON?1===o?"":"number"===typeof o?"_plural_".concat(o.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),B=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Object(a.a)(this,e),this.logger=v.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Object(s.a)(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:T,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?k(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?k(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?k(t.nestingPrefix):t.nestingPrefixEscaped||k("$t("),this.nestingSuffix=t.nestingSuffix?k(t.nestingSuffix):t.nestingSuffixEscaped||k(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var i,a,s,u=this,c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(e){return e.replace(/\$/g,"$$$$")}var f=function(e){if(e.indexOf(u.formatSeparator)<0){var i=E(t,c,e);return u.alwaysFormat?u.format(i,void 0,n,o({},r,t,{interpolationkey:e})):i}var a=e.split(u.formatSeparator),s=a.shift().trim(),l=a.join(u.formatSeparator).trim();return u.format(E(t,c,s),l,n,o({},r,t,{interpolationkey:s}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,h=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return l(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?l(u.escape(e)):l(e)}}].forEach((function(t){for(s=0;i=t.regex.exec(e);){if(void 0===(a=f(i[1].trim())))if("function"===typeof d){var n=d(e,i,r);a="string"===typeof n?n:""}else{if(h){a=i[0];continue}u.logger.warn("missed to pass in variable ".concat(i[1]," for interpolating ").concat(e)),a=""}else"string"===typeof a||u.useRawValueToEscape||(a=b(a));var o=t.safeValue(a);if(e=e.replace(i[0],o),h?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++s>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o({},a);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,s)).replace(/'/g,'"');try{s=JSON.parse(i),t&&(s=o({},t,s))}catch(a){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),a),"".concat(e).concat(n).concat(i)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=t(u.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!==typeof r)return r;"string"!==typeof r&&(r=b(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=c.reduce((function(e,t){return i.format(e,t,a.lng,o({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();var z=function(e){function t(e,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Object(a.a)(this,t),i=f(this,d(t).call(this)),x&&g.call(Object(l.a)(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=o,i.logger=v.create("backendConnector"),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,o.backend,o),i}return Object(h.a)(t,e),Object(s.a)(t,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?a.indexOf(s)<0&&a.push(s):(i.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){!function(e,t,n,r){var i=w(e,t,Object),o=i.obj,a=i.k;o[a]=o[a]||[],r&&(o[a]=o[a].concat(n)),r||o[a].push(n)}(n.loaded,[i],o),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&i<5?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"===typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"===typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):void 0!==n&&null!==n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,o({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(g);function q(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===Object(r.a)(e[1])&&(t=e[1]),"string"===typeof e[1]&&(t.defaultValue=e[1]),"string"===typeof e[2]&&(t.tDescription=e[2]),"object"===Object(r.a)(e[2])||"object"===Object(r.a)(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function V(e){return"string"===typeof e.ns&&(e.ns=[e.ns]),"string"===typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"===typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function H(){}var W=new(function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(Object(a.a)(this,t),e=f(this,d(t).call(this)),x&&g.call(Object(l.a)(e)),e.options=V(n),e.services={},e.logger=v,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),f(e,Object(l.a)(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Object(h.a)(t,e),Object(s.a)(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function r(e){return e?"function"===typeof e?new e:e:null}if("function"===typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=o({},q(),this.options,V(t)),this.format=this.options.interpolation.format,n||(n=H),!this.options.isClone){this.modules.logger?v.init(r(this.modules.logger),this.options):v.init(null,this.options);var i=new L(this.options);this.store=new A(this.options.resources,this.options);var a=this.services;a.logger=v,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new F(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new B(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new z(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i1?n-1:0),i=1;i0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var u=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];u.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var l=m(),f=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),l.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?f():setTimeout(f,0),l}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,r=n,i="string"===typeof e?e:this.language;if("function"===typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,r)}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=m();return e||(e=this.languages),t||(t=this.options.ns),n||(n=H),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&I.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=m();this.emit("languageChanging",e);var i=function(i){e||i||!n.services.languageDetector||(i=[]);var o="string"===typeof i?i:n.services.languageUtils.getBestMatchFromCodes(i);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,i){i?(n.language=i,n.languages=n.services.languageUtils.toResolveHierarchy(i),n.translator.changeLanguage(i),n.isLanguageChangingTo=void 0,n.emit("languageChanged",i),n.logger.log("languageChanged",i)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(i):i(e):i(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,i=function e(t,i){var a;if("object"!==Object(r.a)(i)){for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],i=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||(!this.services.backendConnector.backend||!(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=m();return this.options.ns?("string"===typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=m();"string"===typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,i=o({},this.options,n,{isClone:!0}),a=new t(i),s=["store","services","language"];return s.forEach((function(t){a[t]=e[t]})),a.services=o({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new R(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>32-t}function c(e,t,n,r,i,o,a){return u(e+(t&n|~t&r)+i+o|0,a)+t|0}function l(e,t,n,r,i,o,a){return u(e+(t&r|n&~r)+i+o|0,a)+t|0}function f(e,t,n,r,i,o,a){return u(e+(t^n^r)+i+o|0,a)+t|0}function d(e,t,n,r,i,o,a){return u(e+(n^(t|~r))+i+o|0,a)+t|0}r(s,i),s.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var n=this._a,r=this._b,i=this._c,o=this._d;n=c(n,r,i,o,e[0],3614090360,7),o=c(o,n,r,i,e[1],3905402710,12),i=c(i,o,n,r,e[2],606105819,17),r=c(r,i,o,n,e[3],3250441966,22),n=c(n,r,i,o,e[4],4118548399,7),o=c(o,n,r,i,e[5],1200080426,12),i=c(i,o,n,r,e[6],2821735955,17),r=c(r,i,o,n,e[7],4249261313,22),n=c(n,r,i,o,e[8],1770035416,7),o=c(o,n,r,i,e[9],2336552879,12),i=c(i,o,n,r,e[10],4294925233,17),r=c(r,i,o,n,e[11],2304563134,22),n=c(n,r,i,o,e[12],1804603682,7),o=c(o,n,r,i,e[13],4254626195,12),i=c(i,o,n,r,e[14],2792965006,17),n=l(n,r=c(r,i,o,n,e[15],1236535329,22),i,o,e[1],4129170786,5),o=l(o,n,r,i,e[6],3225465664,9),i=l(i,o,n,r,e[11],643717713,14),r=l(r,i,o,n,e[0],3921069994,20),n=l(n,r,i,o,e[5],3593408605,5),o=l(o,n,r,i,e[10],38016083,9),i=l(i,o,n,r,e[15],3634488961,14),r=l(r,i,o,n,e[4],3889429448,20),n=l(n,r,i,o,e[9],568446438,5),o=l(o,n,r,i,e[14],3275163606,9),i=l(i,o,n,r,e[3],4107603335,14),r=l(r,i,o,n,e[8],1163531501,20),n=l(n,r,i,o,e[13],2850285829,5),o=l(o,n,r,i,e[2],4243563512,9),i=l(i,o,n,r,e[7],1735328473,14),n=f(n,r=l(r,i,o,n,e[12],2368359562,20),i,o,e[5],4294588738,4),o=f(o,n,r,i,e[8],2272392833,11),i=f(i,o,n,r,e[11],1839030562,16),r=f(r,i,o,n,e[14],4259657740,23),n=f(n,r,i,o,e[1],2763975236,4),o=f(o,n,r,i,e[4],1272893353,11),i=f(i,o,n,r,e[7],4139469664,16),r=f(r,i,o,n,e[10],3200236656,23),n=f(n,r,i,o,e[13],681279174,4),o=f(o,n,r,i,e[0],3936430074,11),i=f(i,o,n,r,e[3],3572445317,16),r=f(r,i,o,n,e[6],76029189,23),n=f(n,r,i,o,e[9],3654602809,4),o=f(o,n,r,i,e[12],3873151461,11),i=f(i,o,n,r,e[15],530742520,16),n=d(n,r=f(r,i,o,n,e[2],3299628645,23),i,o,e[0],4096336452,6),o=d(o,n,r,i,e[7],1126891415,10),i=d(i,o,n,r,e[14],2878612391,15),r=d(r,i,o,n,e[5],4237533241,21),n=d(n,r,i,o,e[12],1700485571,6),o=d(o,n,r,i,e[3],2399980690,10),i=d(i,o,n,r,e[10],4293915773,15),r=d(r,i,o,n,e[1],2240044497,21),n=d(n,r,i,o,e[8],1873313359,6),o=d(o,n,r,i,e[15],4264355552,10),i=d(i,o,n,r,e[6],2734768916,15),r=d(r,i,o,n,e[13],1309151649,21),n=d(n,r,i,o,e[4],4149444226,6),o=d(o,n,r,i,e[11],3174756917,10),i=d(i,o,n,r,e[2],718787259,15),r=d(r,i,o,n,e[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+r|0,this._c=this._c+i|0,this._d=this._d+o|0},s.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=o.allocUnsafe(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},e.exports=s},function(e,t,n){(function(t){function n(e){try{if(!t.localStorage)return!1}catch(r){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,n(26))},function(e,t,n){"use strict";var r=n(81).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,o){if("function"===typeof n)return e(t,null,n);n||(n={}),o=function(e){var t=!1;return function(){if(!t){t=!0;for(var n=arguments.length,r=new Array(n),i=0;i>>32-t}function v(e,t,n,r,i,o,a,s){return p(e+(t^n^r)+o+a|0,s)+i|0}function g(e,t,n,r,i,o,a,s){return p(e+(t&n|~t&r)+o+a|0,s)+i|0}function m(e,t,n,r,i,o,a,s){return p(e+((t|~n)^r)+o+a|0,s)+i|0}function b(e,t,n,r,i,o,a,s){return p(e+(t&r|n&~r)+o+a|0,s)+i|0}function y(e,t,n,r,i,o,a,s){return p(e+(t^(n|~r))+o+a|0,s)+i|0}i(h,o),h.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);for(var n=0|this._a,r=0|this._b,i=0|this._c,o=0|this._d,h=0|this._e,w=0|this._a,_=0|this._b,S=0|this._c,E=0|this._d,O=0|this._e,k=0;k<80;k+=1){var M,T;k<16?(M=v(n,r,i,o,h,e[s[k]],f[0],c[k]),T=y(w,_,S,E,O,e[u[k]],d[0],l[k])):k<32?(M=g(n,r,i,o,h,e[s[k]],f[1],c[k]),T=b(w,_,S,E,O,e[u[k]],d[1],l[k])):k<48?(M=m(n,r,i,o,h,e[s[k]],f[2],c[k]),T=m(w,_,S,E,O,e[u[k]],d[2],l[k])):k<64?(M=b(n,r,i,o,h,e[s[k]],f[3],c[k]),T=g(w,_,S,E,O,e[u[k]],d[3],l[k])):(M=y(n,r,i,o,h,e[s[k]],f[4],c[k]),T=v(w,_,S,E,O,e[u[k]],d[4],l[k])),n=h,h=o,o=p(i,10),i=r,r=M,w=O,O=E,E=p(S,10),S=_,_=T}var x=this._b+i+E|0;this._b=this._c+o+O|0,this._c=this._d+h+w|0,this._d=this._e+n+_|0,this._e=this._a+r+S|0,this._a=x},h.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=r.alloc?r.alloc(20):new r(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},e.exports=h},function(e,t,n){(t=e.exports=function(e){e=e.toLowerCase();var n=t[e];if(!n)throw new Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(341),t.sha1=n(342),t.sha224=n(343),t.sha256=n(211),t.sha384=n(344),t.sha512=n(212)},function(e,t,n){(t=e.exports=n(213)).Stream=t,t.Readable=t,t.Writable=n(152),t.Duplex=n(75),t.Transform=n(216),t.PassThrough=n(348)},function(e,t,n){var r=n(13),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){"use strict";(function(t,r,i){var o=n(119);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){!function(e,t,n){var r=e.entry;e.entry=null;for(;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree?t.corkedRequestsFree.next=e:t.corkedRequestsFree=e}(t,e)}}e.exports=b;var s,u=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?r:o.nextTick;b.WritableState=m;var c=Object.create(n(99));c.inherits=n(10);var l={deprecate:n(146)},f=n(214),d=n(151).Buffer,h=i.Uint8Array||function(){};var p,v=n(215);function g(){}function m(e,t){s=s||n(75),e=e||{};var r=t instanceof s;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,c=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(c||0===c)?c:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var f=!1===e.decodeStrings;this.decodeStrings=!f,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var n=e._writableState,r=n.sync,i=n.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)!function(e,t,n,r,i){--t.pendingcb,n?(o.nextTick(i,r),o.nextTick(O,e,t),e._writableState.errorEmitted=!0,e.emit("error",r)):(i(r),e._writableState.errorEmitted=!0,e.emit("error",r),O(e,t))}(e,n,r,t,i);else{var a=S(n);a||n.corked||n.bufferProcessing||!n.bufferedRequest||_(e,n),r?u(w,e,n,a,i):w(e,n,a,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function b(e){if(s=s||n(75),!p.call(b,this)&&!(this instanceof s))return new b(e);this._writableState=new m(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),f.call(this)}function y(e,t,n,r,i,o,a){t.writelen=r,t.writecb=a,t.writing=!0,t.sync=!0,n?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function w(e,t,n,r){n||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,r(),O(e,t)}function _(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=new Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,u=!0;n;)i[s]=n,n.isBuf||(u=!1),n=n.next,s+=1;i.allBuffers=u,y(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,f=n.callback;if(y(e,t,!1,t.objectMode?1:c.length,c,l,f),n=n.next,t.bufferedRequestCount--,t.writing)break}null===n&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function S(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function E(e,t){e._final((function(n){t.pendingcb--,n&&e.emit("error",n),t.prefinished=!0,e.emit("prefinish"),O(e,t)}))}function O(e,t){var n=S(t);return n&&(!function(e,t){t.prefinished||t.finalCalled||("function"===typeof e._final?(t.pendingcb++,t.finalCalled=!0,o.nextTick(E,e,t)):(t.prefinished=!0,e.emit("prefinish")))}(e,t),0===t.pendingcb&&(t.finished=!0,e.emit("finish"))),n}c.inherits(b,f),m.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(m.prototype,"buffer",{get:l.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"===typeof Symbol&&Symbol.hasInstance&&"function"===typeof Function.prototype[Symbol.hasInstance]?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(b,Symbol.hasInstance,{value:function(e){return!!p.call(this,e)||this===b&&(e&&e._writableState instanceof m)}})):p=function(e){return e instanceof this},b.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},b.prototype.write=function(e,t,n){var r,i=this._writableState,a=!1,s=!i.objectMode&&(r=e,d.isBuffer(r)||r instanceof h);return s&&!d.isBuffer(e)&&(e=function(e){return d.from(e)}(e)),"function"===typeof t&&(n=t,t=null),s?t="buffer":t||(t=i.defaultEncoding),"function"!==typeof n&&(n=g),i.ended?function(e,t){var n=new Error("write after end");e.emit("error",n),o.nextTick(t,n)}(this,n):(s||function(e,t,n,r){var i=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),o.nextTick(r,a),i=!1),i}(this,i,e,n))&&(i.pendingcb++,a=function(e,t,n,r,i,o){if(!n){var a=function(e,t,n){e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=d.from(t,n));return t}(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var u=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||function(e,t,n){t.ending=!0,O(e,t),n&&(t.finished?o.nextTick(n):e.once("finish",n));t.ended=!0,e.writable=!1}(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=v.destroy,b.prototype._undestroy=v.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n(23),n(202).setImmediate,n(26))},function(e,t,n){"use strict";var r=n(42);function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}e.exports=i,i.prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var n=Math.min(this.buffer.length-this.bufferOff,e.length-t),r=0;r0;r--)t+=this._buffer(e,t),n+=this._flushBuffer(i,n);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,n;return e&&(t=this.update(e)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(n):n},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t=0||!t.umod(e.prime1)||!t.umod(e.prime2));return t}function a(e,n){var i=function(e){var t=o(e);return{blinder:t.toRed(r.mont(e.modulus)).redPow(new r(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(n),a=n.modulus.byteLength(),s=new r(e).mul(i.blinder).umod(n.modulus),u=s.toRed(r.mont(n.prime1)),c=s.toRed(r.mont(n.prime2)),l=n.coefficient,f=n.prime1,d=n.prime2,h=u.redPow(n.exponent1).fromRed(),p=c.redPow(n.exponent2).fromRed(),v=h.isub(p).imul(l).umod(f).imul(d);return p.iadd(v).imul(i.unblinder).umod(n.modulus).toArrayLike(t,"be",a)}a.getr=o,e.exports=a}).call(this,n(13).Buffer)},function(e,t,n){"use strict";var r=t;r.version=n(388).version,r.utils=n(43),r.rand=n(156),r.curve=n(241),r.curves=n(160),r.ec=n(399),r.eddsa=n(403)},function(e,t,n){"use strict";var r,i=t,o=n(161),a=n(241),s=n(43).assert;function u(e){"short"===e.type?this.curve=new a.short(e):"edwards"===e.type?this.curve=new a.edwards(e):this.curve=new a.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(e,t){Object.defineProperty(i,e,{configurable:!0,enumerable:!0,get:function(){var n=new u(t);return Object.defineProperty(i,e,{configurable:!0,enumerable:!0,value:n}),n}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=n(398)}catch(l){r=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})},function(e,t,n){var r=t;r.utils=n(53),r.common=n(101),r.sha=n(392),r.ripemd=n(396),r.hmac=n(397),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},function(e,t,n){"use strict";(function(t){var r,i=n(13),o=i.Buffer,a={};for(r in i)i.hasOwnProperty(r)&&"SlowBuffer"!==r&&"Buffer"!==r&&(a[r]=i[r]);var s=a.Buffer={};for(r in o)o.hasOwnProperty(r)&&"allocUnsafe"!==r&&"allocUnsafeSlow"!==r&&(s[r]=o[r]);if(a.Buffer.prototype=o.prototype,s.from&&s.from!==Uint8Array.from||(s.from=function(e,t,n){if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof e);if(e&&"undefined"===typeof e.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);return o(e,t,n)}),s.alloc||(s.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError('The "size" argument must be of type number. Received type '+typeof e);if(e<0||e>=2*(1<<30))throw new RangeError('The value "'+e+'" is invalid for option "size"');var r=o(e);return t&&0!==t.length?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r}),!a.kStringMaxLength)try{a.kStringMaxLength=t.binding("buffer").kStringMaxLength}catch(u){}a.constants||(a.constants={MAX_LENGTH:a.kMaxLength},a.kStringMaxLength&&(a.constants.MAX_STRING_LENGTH=a.kStringMaxLength)),e.exports=a}).call(this,n(23))},function(e,t,n){"use strict";var r=n(164).Reporter,i=n(102).EncoderBuffer,o=n(102).DecoderBuffer,a=n(42),s=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],u=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(s);function c(e,t,n){var r={};this._baseState=r,r.name=n,r.enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}e.exports=c;var l=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];c.prototype.clone=function(){var e=this._baseState,t={};l.forEach((function(n){t[n]=e[n]}));var n=new this.constructor(t.parent);return n._baseState=t,n},c.prototype._wrap=function(){var e=this._baseState;u.forEach((function(t){this[t]=function(){var n=new this.constructor(this);return e.children.push(n),n[t].apply(n,arguments)}}),this)},c.prototype._init=function(e){var t=this._baseState;a(null===t.parent),e.call(this),t.children=t.children.filter((function(e){return e._baseState.parent===this}),this),a.equal(t.children.length,1,"Root node can have only one child")},c.prototype._useArgs=function(e){var t=this._baseState,n=e.filter((function(e){return e instanceof this.constructor}),this);e=e.filter((function(e){return!(e instanceof this.constructor)}),this),0!==n.length&&(a(null===t.children),t.children=n,n.forEach((function(e){e._baseState.parent=this}),this)),0!==e.length&&(a(null===t.args),t.args=e,t.reverseArgs=e.map((function(e){if("object"!==typeof e||e.constructor!==Object)return e;var t={};return Object.keys(e).forEach((function(n){n==(0|n)&&(n|=0);var r=e[n];t[r]=n})),t})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(e){c.prototype[e]=function(){var t=this._baseState;throw new Error(e+" not implemented for encoding: "+t.enc)}})),s.forEach((function(e){c.prototype[e]=function(){var t=this._baseState,n=Array.prototype.slice.call(arguments);return a(null===t.tag),t.tag=e,this._useArgs(n),this}})),c.prototype.use=function(e){a(e);var t=this._baseState;return a(null===t.use),t.use=e,this},c.prototype.optional=function(){return this._baseState.optional=!0,this},c.prototype.def=function(e){var t=this._baseState;return a(null===t.default),t.default=e,t.optional=!0,this},c.prototype.explicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.explicit=e,this},c.prototype.implicit=function(e){var t=this._baseState;return a(null===t.explicit&&null===t.implicit),t.implicit=e,this},c.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},c.prototype.key=function(e){var t=this._baseState;return a(null===t.key),t.key=e,this},c.prototype.any=function(){return this._baseState.any=!0,this},c.prototype.choice=function(e){var t=this._baseState;return a(null===t.choice),t.choice=e,this._useArgs(Object.keys(e).map((function(t){return e[t]}))),this},c.prototype.contains=function(e){var t=this._baseState;return a(null===t.use),t.contains=e,this},c.prototype._decode=function(e,t){var n=this._baseState;if(null===n.parent)return e.wrapResult(n.children[0]._decode(e,t));var r,i=n.default,a=!0,s=null;if(null!==n.key&&(s=e.enterKey(n.key)),n.optional){var u=null;if(null!==n.explicit?u=n.explicit:null!==n.implicit?u=n.implicit:null!==n.tag&&(u=n.tag),null!==u||n.any){if(a=this._peekTag(e,u,n.any),e.isError(a))return a}else{var c=e.save();try{null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t),a=!0}catch(v){a=!1}e.restore(c)}}if(n.obj&&a&&(r=e.enterObject()),a){if(null!==n.explicit){var l=this._decodeTag(e,n.explicit);if(e.isError(l))return l;e=l}var f=e.offset;if(null===n.use&&null===n.choice){var d;n.any&&(d=e.save());var h=this._decodeTag(e,null!==n.implicit?n.implicit:n.tag,n.any);if(e.isError(h))return h;n.any?i=e.raw(d):e=h}if(t&&t.track&&null!==n.tag&&t.track(e.path(),f,e.length,"tagged"),t&&t.track&&null!==n.tag&&t.track(e.path(),e.offset,e.length,"content"),n.any||(i=null===n.choice?this._decodeGeneric(n.tag,e,t):this._decodeChoice(e,t)),e.isError(i))return i;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(e,t)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){var p=new o(i);i=this._getUse(n.contains,e._reporterState.obj)._decode(p,t)}}return n.obj&&a&&(i=e.leaveObject(r)),null===n.key||null===i&&!0!==a?null!==s&&e.exitKey(s):e.leaveKey(s,n.key,i),i},c.prototype._decodeGeneric=function(e,t,n){var r=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,r.args[0],n):/str$/.test(e)?this._decodeStr(t,e,n):"objid"===e&&r.args?this._decodeObjid(t,r.args[0],r.args[1],n):"objid"===e?this._decodeObjid(t,null,null,n):"gentime"===e||"utctime"===e?this._decodeTime(t,e,n):"null_"===e?this._decodeNull(t,n):"bool"===e?this._decodeBool(t,n):"objDesc"===e?this._decodeStr(t,e,n):"int"===e||"enum"===e?this._decodeInt(t,r.args&&r.args[0],n):null!==r.use?this._getUse(r.use,t._reporterState.obj)._decode(t,n):t.error("unknown tag: "+e)},c.prototype._getUse=function(e,t){var n=this._baseState;return n.useDecoder=this._use(e,t),a(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},c.prototype._decodeChoice=function(e,t){var n=this._baseState,r=null,i=!1;return Object.keys(n.choice).some((function(o){var a=e.save(),s=n.choice[o];try{var u=s._decode(e,t);if(e.isError(u))return!1;r={type:o,value:u},i=!0}catch(c){return e.restore(a),!1}return!0}),this),i?r:e.error("Choice not matched")},c.prototype._createEncoderBuffer=function(e){return new i(e,this.reporter)},c.prototype._encode=function(e,t,n){var r=this._baseState;if(null===r.default||r.default!==e){var i=this._encodeValue(e,t,n);if(void 0!==i&&!this._skipDefault(i,t,n))return i}},c.prototype._encodeValue=function(e,t,n){var i=this._baseState;if(null===i.parent)return i.children[0]._encode(e,t||new r);var o=null;if(this.reporter=t,i.optional&&void 0===e){if(null===i.default)return;e=i.default}var a=null,s=!1;if(i.any)o=this._createEncoderBuffer(e);else if(i.choice)o=this._encodeChoice(e,t);else if(i.contains)a=this._getUse(i.contains,n)._encode(e,t),s=!0;else if(i.children)a=i.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,t,e);if(null===n._baseState.key)return t.error("Child should have a key");var r=t.enterKey(n._baseState.key);if("object"!==typeof e)return t.error("Child expected, but input is not object");var i=n._encode(e[n._baseState.key],t,e);return t.leaveKey(r),i}),this).filter((function(e){return e})),a=this._createEncoderBuffer(a);else if("seqof"===i.tag||"setof"===i.tag){if(!i.args||1!==i.args.length)return t.error("Too many args for : "+i.tag);if(!Array.isArray(e))return t.error("seqof/setof, but data is not Array");var u=this.clone();u._baseState.implicit=null,a=this._createEncoderBuffer(e.map((function(n){var r=this._baseState;return this._getUse(r.args[0],e)._encode(n,t)}),u))}else null!==i.use?o=this._getUse(i.use,n)._encode(e,t):(a=this._encodePrimitive(i.tag,e),s=!0);if(!i.any&&null===i.choice){var c=null!==i.implicit?i.implicit:i.tag,l=null===i.implicit?"universal":"context";null===c?null===i.use&&t.error("Tag could be omitted only for .use()"):null===i.use&&(o=this._encodeComposite(c,s,l,a))}return null!==i.explicit&&(o=this._encodeComposite(i.explicit,!1,"context",o)),o},c.prototype._encodeChoice=function(e,t){var n=this._baseState,r=n.choice[e.type];return r||a(!1,e.type+" not found in "+JSON.stringify(Object.keys(n.choice))),r._encode(e.value,t)},c.prototype._encodePrimitive=function(e,t){var n=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&n.args)return this._encodeObjid(t,n.reverseArgs[0],n.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,n.args&&n.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},c.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},c.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(e)}},function(e,t,n){"use strict";var r=n(10);function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}t.Reporter=i,i.prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,n){var r=this._reporterState;this.exitKey(e),null!==r.obj&&(r.obj[t]=n)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,n=t.obj;return t.obj=e,n},i.prototype.error=function(e){var t,n=this._reporterState,r=e instanceof o;if(t=r?e:new o(n.path.map((function(e){return"["+JSON.stringify(e)+"]"})).join(""),e.message||e,e.stack),!n.options.partial)throw t;return r||n.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},r(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(e,t,n){"use strict";function r(e){var t={};return Object.keys(e).forEach((function(n){(0|n)==n&&(n|=0);var r=e[n];t[r]=n})),t}t.tagClass={0:"universal",1:"application",2:"context",3:"private"},t.tagClassByName=r(t.tagClass),t.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},t.tagByName=r(t.tag)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return o})),n.d(t,"__rest",(function(){return a})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return u})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return l})),n.d(t,"__generator",(function(){return f})),n.d(t,"__createBinding",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return p})),n.d(t,"__read",(function(){return v})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__await",(function(){return b})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return w})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return S})),n.d(t,"__importStar",(function(){return E})),n.d(t,"__importDefault",(function(){return O})),n.d(t,"__classPrivateFieldGet",(function(){return k})),n.d(t,"__classPrivateFieldSet",(function(){return M}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return(o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"===typeof Reflect&&"function"===typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function g(){for(var e=[],t=0;t1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof b?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function w(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:b(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function S(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function E(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function O(e){return e&&e.__esModule?e:{default:e}}function k(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function M(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},function(e,t,n){"use strict";n.r(t),n.d(t,"locateWindow",(function(){return i}));var r={};function i(){return"undefined"!==typeof window?window:"undefined"!==typeof self?self:r}},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var r,i=n(465);var o=((r=i)&&r.__esModule?r:{default:r}).default,a=o.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=o.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=o.canUseDOM?window.NodeList:{},t.canUseDOM=o.canUseDOM;t.default=a},function(e,t,n){"use strict";var r,i,o,a,s,u,c,l,f,d,h,p,v,g,m,b,y,w,_,S,E,O,k,M,T,x,C,A,I,P,R,j,L,D,N,U,F,B,z,q,V,H,W,G,K,Y,$,X,Q,Z,J,ee,te,ne,re,ie,oe,ae,se,ue,ce,le,fe,de,he,pe,ve,ge,me,be,ye,we,_e,Se,Ee,Oe,ke,Me,Te,xe,Ce,Ae,Ie,Pe,Re,je,Le,De,Ne,Ue,Fe,Be,ze,qe,Ve,He,We,Ge,Ke,Ye,$e,Xe,Qe,Ze,Je,et,tt,nt,rt,it,ot,at,st,ut,ct,lt,ft,dt,ht,pt,vt,gt,mt,bt,yt,wt,_t,St,Et,Ot,kt,Mt,Tt,xt,Ct,At,It,Pt,Rt,jt,Lt,Dt,Nt,Ut,Ft,Bt,zt,qt,Vt,Ht,Wt,Gt,Kt,Yt,$t,Xt,Qt,Zt,Jt,en,tn,nn,rn,on,an,sn,un,cn,ln,fn,dn,hn,pn,vn,gn,mn,bn,yn,wn,_n,Sn,En,On,kn,Mn,Tn,xn,Cn,An,In,Pn,Rn,jn,Ln,Dn,Nn,Un,Fn,Bn,zn,qn,Vn,Hn,Wn,Gn,Kn,Yn,$n,Xn,Qn,Zn,Jn,er,tr,nr,rr,ir,or,ar,sr,ur,cr,lr,fr,dr,hr,pr,vr,gr,mr,br,yr,wr,_r,Sr,Er,Or,kr,Mr,Tr,xr,Cr,Ar,Ir,Pr,Rr,jr,Lr,Dr,Nr,Ur,Fr=n(65),Br=n(522),zr=n(284),qr=n(523),Vr=n(142),Hr=n(0),Wr=n(2);(r||(r={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(i||(i={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(o||(o={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(a||(a={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(s||(s={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(u||(u={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(c||(c={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(l||(l={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(f||(f={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(d||(d={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(h||(h={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c})},(p||(p={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(v||(v={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(g||(g={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(m||(m={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(b||(b={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Wr.c})},(y||(y={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Wr.c}),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Wr.c}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Wr.c})},(w||(w={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(_||(_={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(S||(S={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(E||(E={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(O||(O={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(k||(k={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(M||(M={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Wr.c})},(T||(T={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Wr.c}),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Wr.c})},(x||(x={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(C||(C={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(A||(A={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(I||(I={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(P||(P={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(R||(R={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(j||(j={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(L||(L={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(D||(D={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(N||(N={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(U||(U={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(F||(F={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(B||(B={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(z||(z={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(q||(q={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(V||(V={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(H||(H={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(W||(W={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(G||(G={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(K||(K={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Y||(Y={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},($||($={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(X||(X={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Q||(Q={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Z||(Z={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(J||(J={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ee||(ee={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(te||(te={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ne||(ne={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(re||(re={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:re.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(ie||(ie={})),(oe||(oe={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ae||(ae={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(se||(se={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ue||(ue={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ce||(ce={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Filter&&{Filter:ie.filterSensitiveLog(e.Filter)})},(le||(le={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:ce.filterSensitiveLog(e.AnalyticsConfiguration)})},(fe||(fe={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(de||(de={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(he||(he={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(pe||(pe={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ve||(ve={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.KMSMasterKeyID&&{KMSMasterKeyID:Wr.c})},(ge||(ge={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:ve.filterSensitiveLog(e.ApplyServerSideEncryptionByDefault)})},(me||(me={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return ge.filterSensitiveLog(e)}))})},(be||(be={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:me.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})},(ye||(ye={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(we||(we={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(_e||(_e={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Se||(Se={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ee||(Ee={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Oe||(Oe={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ke||(ke={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Me||(Me={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.KeyId&&{KeyId:Wr.c})},(Te||(Te={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(xe||(xe={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMS&&{SSEKMS:Me.filterSensitiveLog(e.SSEKMS)})},(Ce||(Ce={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Encryption&&{Encryption:xe.filterSensitiveLog(e.Encryption)})},(Ae||(Ae={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.S3BucketDestination&&{S3BucketDestination:Ce.filterSensitiveLog(e.S3BucketDestination)})},(Ie||(Ie={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Pe||(Pe={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Re||(Re={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Destination&&{Destination:Ae.filterSensitiveLog(e.Destination)})},(je||(je={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.InventoryConfiguration&&{InventoryConfiguration:Re.filterSensitiveLog(e.InventoryConfiguration)})},(Le||(Le={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(De||(De={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ne||(Ne={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Ne.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Ue||(Ue={})),(Fe||(Fe={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Be||(Be={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ze||(ze={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(qe||(qe={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Filter&&{Filter:Ue.filterSensitiveLog(e.Filter)})},(Ve||(Ve={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return qe.filterSensitiveLog(e)}))})},(He||(He={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(We||(We={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ge||(Ge={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ke||(Ke={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ye||(Ye={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},($e||($e={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Xe||(Xe={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Qe||(Qe={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Qe.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Ze||(Ze={})),(Je||(Je={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Filter&&{Filter:Ze.filterSensitiveLog(e.Filter)})},(et||(et={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.MetricsConfiguration&&{MetricsConfiguration:Je.filterSensitiveLog(e.MetricsConfiguration)})},(tt||(tt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(nt||(nt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(rt||(rt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(it||(it={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ot||(ot={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(at||(at={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(st||(st={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ut||(ut={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ct||(ct={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(lt||(lt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ft||(ft={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(dt||(dt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ht||(ht={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(pt||(pt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(vt||(vt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(gt||(gt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(mt||(mt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(bt||(bt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(yt||(yt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(wt||(wt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(_t||(_t={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(St||(St={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Et||(Et={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ot||(Ot={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(kt||(kt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Mt||(Mt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},function(e){e.visit=function(e,t){return void 0!==e.Prefix?t.Prefix(e.Prefix):void 0!==e.Tag?t.Tag(e.Tag):void 0!==e.And?t.And(e.And):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Prefix?{Prefix:e.Prefix}:void 0!==e.Tag?{Tag:ne.filterSensitiveLog(e.Tag)}:void 0!==e.And?{And:Mt.filterSensitiveLog(e.And)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Tt||(Tt={})),(xt||(xt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ct||(Ct={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(At||(At={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(It||(It={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Filter&&{Filter:Tt.filterSensitiveLog(e.Filter)})},(Pt||(Pt={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return It.filterSensitiveLog(e)}))})},(Rt||(Rt={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:Pt.filterSensitiveLog(e.ReplicationConfiguration)})},(jt||(jt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Lt||(Lt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Dt||(Dt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Nt||(Nt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ut||(Ut={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ft||(Ft={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Bt||(Bt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(zt||(zt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(qt||(qt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Vt||(Vt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ht||(Ht={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Wt||(Wt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Gt||(Gt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Kt||(Kt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Yt||(Yt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},($t||($t={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c})},(Xt||(Xt={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Wr.c})},(Qt||(Qt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Zt||(Zt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Jt||(Jt={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(en||(en={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(tn||(tn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(nn||(nn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(rn||(rn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(on||(on={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(an||(an={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(sn||(sn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(un||(un={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(cn||(cn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ln||(ln={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(fn||(fn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(dn||(dn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(hn||(hn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(pn||(pn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(vn||(vn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(gn||(gn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(mn||(mn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(bn||(bn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(yn||(yn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(wn||(wn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(_n||(_n={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Sn||(Sn={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c})},(En||(En={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Wr.c})},(On||(On={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.AnalyticsConfigurationList&&{AnalyticsConfigurationList:e.AnalyticsConfigurationList.map((function(e){return ce.filterSensitiveLog(e)}))})},(kn||(kn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Mn||(Mn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Tn||(Tn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(xn||(xn={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map((function(e){return Re.filterSensitiveLog(e)}))})},(Cn||(Cn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(An||(An={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.MetricsConfigurationList&&{MetricsConfigurationList:e.MetricsConfigurationList.map((function(e){return Je.filterSensitiveLog(e)}))})},(In||(In={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Pn||(Pn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Rn||(Rn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(jn||(jn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ln||(Ln={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Dn||(Dn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Nn||(Nn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Un||(Un={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Fn||(Fn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Bn||(Bn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(zn||(zn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(qn||(qn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Vn||(Vn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Hn||(Hn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Wn||(Wn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Gn||(Gn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Kn||(Kn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Yn||(Yn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},($n||($n={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Xn||(Xn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Qn||(Qn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Zn||(Zn={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Jn||(Jn={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.AnalyticsConfiguration&&{AnalyticsConfiguration:ce.filterSensitiveLog(e.AnalyticsConfiguration)})},(er||(er={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(tr||(tr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(nr||(nr={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:me.filterSensitiveLog(e.ServerSideEncryptionConfiguration)})},(rr||(rr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ir||(ir={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.InventoryConfiguration&&{InventoryConfiguration:Re.filterSensitiveLog(e.InventoryConfiguration)})},(or||(or={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Rules&&{Rules:e.Rules.map((function(e){return qe.filterSensitiveLog(e)}))})},(ar||(ar={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.LifecycleConfiguration&&{LifecycleConfiguration:or.filterSensitiveLog(e.LifecycleConfiguration)})},(sr||(sr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ur||(ur={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(cr||(cr={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.MetricsConfiguration&&{MetricsConfiguration:Je.filterSensitiveLog(e.MetricsConfiguration)})},(lr||(lr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(fr||(fr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(dr||(dr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(hr||(hr={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.ReplicationConfiguration&&{ReplicationConfiguration:Pt.filterSensitiveLog(e.ReplicationConfiguration)})},(pr||(pr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(vr||(vr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(gr||(gr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(mr||(mr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(br||(br={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(yr||(yr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(wr||(wr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(_r||(_r={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Sr||(Sr={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Wr.c})},(Er||(Er={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Wr.c}),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c}),e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Wr.c})},(Or||(Or={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(kr||(kr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Mr||(Mr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Tr||(Tr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(xr||(xr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Cr||(Cr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ar||(Ar={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ir||(Ir={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Pr||(Pr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Rr||(Rr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(jr||(jr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Lr||(Lr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Dr||(Dr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Nr||(Nr={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ur||(Ur={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.KMSKeyId&&{KMSKeyId:Wr.c})};var Gr=n(4);function Kr(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var Yr=function(){function e(e,t){void 0===t&&(t=[]),this.name=e,this.children=t,this.attributes={}}return e.prototype.withName=function(e){return this.name=e,this},e.prototype.addAttribute=function(e,t){return this.attributes[e]=t,this},e.prototype.addChildNode=function(e){return this.children.push(e),this},e.prototype.removeAttribute=function(e){return delete this.attributes[e],this},e.prototype.toString=function(){var e,t,n=Boolean(this.children.length),r="<"+this.name,i=this.attributes;try{for(var o=Kr(Object.keys(i)),a=o.next();!a.done;a=o.next()){var s=a.value,u=i[s];"undefined"!==typeof u&&null!==u&&(r+=" "+s+'="'+((""+u).replace(/&/g,"&").replace(//g,">").replace(/"/g,""")+'"'))}}catch(c){e={error:c}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r+(n?">"+this.children.map((function(e){return e.toString()})).join("")+"":"/>")},e}();var $r=function(){function e(e){this.value=e}return e.prototype.toString=function(){return(""+this.value).replace(/&/g,"&").replace(//g,">")},e}(),Xr=n(306),Qr=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c;return Object(Hr.d)(this,(function(l){switch(l.label){case 0:return r=[Object(Hr.a)({},e)],c={},[4,Ei(e.body,t)];case 1:switch(n=Hr.a.apply(void 0,r.concat([(c.body=l.sent(),c)])),o="UnknownError",o=Oi(e,n.body),o){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":return[3,2]}return[3,4];case 2:return a=[{}],[4,li(n,t)];case 3:return i=Hr.a.apply(void 0,[Hr.a.apply(void 0,a.concat([l.sent()])),{name:o,$metadata:wi(e)}]),[3,5];case 4:s=n.body,o=s.code||s.Code||o,i=Object(Hr.a)(Object(Hr.a)({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:wi(e)}),l.label=5;case 5:return u=i.message||i.Message||o,i.message=u,delete i.Message,[2,Promise.reject(Object.assign(new Error(u),i))]}}))}))},Zr=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return Object(Hr.d)(this,(function(c){switch(c.label){case 0:return r=[Object(Hr.a)({},e)],u={},[4,Ei(e.body,t)];case 1:return n=Hr.a.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=Oi(e,n.body),a=n.body,o=a.code||a.Code||o,i=Object(Hr.a)(Object(Hr.a)({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:wi(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},Jr=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c;return Object(Hr.d)(this,(function(l){switch(l.label){case 0:return r=[Object(Hr.a)({},e)],c={},[4,Ei(e.body,t)];case 1:switch(n=Hr.a.apply(void 0,r.concat([(c.body=l.sent(),c)])),o="UnknownError",o=Oi(e,n.body),o){case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":return[3,2]}return[3,4];case 2:return a=[{}],[4,fi(n,t)];case 3:return i=Hr.a.apply(void 0,[Hr.a.apply(void 0,a.concat([l.sent()])),{name:o,$metadata:wi(e)}]),[3,5];case 4:s=n.body,o=s.code||s.Code||o,i=Object(Hr.a)(Object(Hr.a)({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:wi(e)}),l.label=5;case 5:return u=i.message||i.Message||o,i.message=u,delete i.Message,[2,Promise.reject(Object.assign(new Error(u),i))]}}))}))},ei=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return Object(Hr.d)(this,(function(c){switch(c.label){case 0:return r=[Object(Hr.a)({},e)],u={},[4,Ei(e.body,t)];case 1:return n=Hr.a.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=Oi(e,n.body),a=n.body,o=a.code||a.Code||o,i=Object(Hr.a)(Object(Hr.a)({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:wi(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},ti=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return Object(Hr.d)(this,(function(c){switch(c.label){case 0:return r=[Object(Hr.a)({},e)],u={},[4,Ei(e.body,t)];case 1:return n=Hr.a.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=Oi(e,n.body),a=n.body,o=a.code||a.Code||o,i=Object(Hr.a)(Object(Hr.a)({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:wi(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},ni=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return Object(Hr.d)(this,(function(f){switch(f.label){case 0:return r=[Object(Hr.a)({},e)],l={},[4,Ei(e.body,t)];case 1:switch(n=Hr.a.apply(void 0,r.concat([(l.body=f.sent(),l)])),o="UnknownError",o=Oi(e,n.body),o){case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":return[3,2];case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":return[3,4]}return[3,6];case 2:return a=[{}],[4,si(n,t)];case 3:return i=Hr.a.apply(void 0,[Hr.a.apply(void 0,a.concat([f.sent()])),{name:o,$metadata:wi(e)}]),[3,7];case 4:return s=[{}],[4,ci(n,t)];case 5:return i=Hr.a.apply(void 0,[Hr.a.apply(void 0,s.concat([f.sent()])),{name:o,$metadata:wi(e)}]),[3,7];case 6:u=n.body,o=u.code||u.Code||o,i=Object(Hr.a)(Object(Hr.a)({},u),{name:""+o,message:u.message||u.Message||o,$fault:"client",$metadata:wi(e)}),f.label=7;case 7:return c=i.message||i.Message||o,i.message=c,delete i.Message,[2,Promise.reject(Object.assign(new Error(c),i))]}}))}))},ri=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c;return Object(Hr.d)(this,(function(l){switch(l.label){case 0:return r=[Object(Hr.a)({},e)],c={},[4,Ei(e.body,t)];case 1:switch(n=Hr.a.apply(void 0,r.concat([(c.body=l.sent(),c)])),o="UnknownError",o=Oi(e,n.body),o){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:return a=[{}],[4,ui(n,t)];case 3:return i=Hr.a.apply(void 0,[Hr.a.apply(void 0,a.concat([l.sent()])),{name:o,$metadata:wi(e)}]),[3,5];case 4:s=n.body,o=s.code||s.Code||o,i=Object(Hr.a)(Object(Hr.a)({},s),{name:""+o,message:s.message||s.Message||o,$fault:"client",$metadata:wi(e)}),l.label=5;case 5:return u=i.message||i.Message||o,i.message=u,delete i.Message,[2,Promise.reject(Object.assign(new Error(u),i))]}}))}))},ii=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return Object(Hr.d)(this,(function(c){switch(c.label){case 0:return r=[Object(Hr.a)({},e)],u={},[4,Ei(e.body,t)];case 1:return n=Hr.a.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=Oi(e,n.body),a=n.body,o=a.code||a.Code||o,i=Object(Hr.a)(Object(Hr.a)({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:wi(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},oi=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return Object(Hr.d)(this,(function(c){switch(c.label){case 0:return r=[Object(Hr.a)({},e)],u={},[4,Ei(e.body,t)];case 1:return n=Hr.a.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=Oi(e,n.body),a=n.body,o=a.code||a.Code||o,i=Object(Hr.a)(Object(Hr.a)({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:wi(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},ai=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u;return Object(Hr.d)(this,(function(c){switch(c.label){case 0:return r=[Object(Hr.a)({},e)],u={},[4,Ei(e.body,t)];case 1:return n=Hr.a.apply(void 0,r.concat([(u.body=c.sent(),u)])),o="UnknownError",o=Oi(e,n.body),a=n.body,o=a.code||a.Code||o,i=Object(Hr.a)(Object(Hr.a)({},a),{name:""+o,message:a.message||a.Message||o,$fault:"client",$metadata:wi(e)}),s=i.message||i.Message||o,i.message=s,delete i.Message,[2,Promise.reject(Object.assign(new Error(s),i))]}}))}))},si=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var t,n;return Object(Hr.d)(this,(function(r){return t={name:"InvalidObjectState",$fault:"client",$metadata:wi(e),AccessTier:void 0,StorageClass:void 0},void 0!==(n=e.body).AccessTier&&(t.AccessTier=n.AccessTier),void 0!==n.StorageClass&&(t.StorageClass=n.StorageClass),[2,t]}))}))},ui=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var t;return Object(Hr.d)(this,(function(n){return t={name:"NoSuchBucket",$fault:"client",$metadata:wi(e)},e.body,[2,t]}))}))},ci=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var t;return Object(Hr.d)(this,(function(n){return t={name:"NoSuchKey",$fault:"client",$metadata:wi(e)},e.body,[2,t]}))}))},li=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var t;return Object(Hr.d)(this,(function(n){return t={name:"NoSuchUpload",$fault:"client",$metadata:wi(e)},e.body,[2,t]}))}))},fi=function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var t;return Object(Hr.d)(this,(function(n){return t={name:"ObjectNotInActiveTierError",$fault:"client",$metadata:wi(e)},e.body,[2,t]}))}))},di=function(e,t){var n=new Yr("CompletedMultipartUpload");void 0!==e.Parts&&null!==e.Parts&&hi(e.Parts,t).map((function(e){e=e.withName("Part"),n.addChildNode(e)}));return n},hi=function(e,t){return e.filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n=new Yr("CompletedPart");if(void 0!==e.ETag&&null!==e.ETag){var r=new Yr("ETag").addChildNode(new $r(e.ETag)).withName("ETag");n.addChildNode(r)}void 0!==e.PartNumber&&null!==e.PartNumber&&(r=new Yr("PartNumber").addChildNode(new $r(String(e.PartNumber))).withName("PartNumber"),n.addChildNode(r));return n}(e).withName("member")}))},pi=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Prefix:void 0};return void 0!==e.Prefix&&(n.Prefix=e.Prefix),n}(e)}))},vi=function(e,t){var n={ETag:void 0,LastModified:void 0};return void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),n},gi=function(e,t){var n={ID:void 0,DisplayName:void 0};return void 0!==e.ID&&(n.ID=e.ID),void 0!==e.DisplayName&&(n.DisplayName=e.DisplayName),n},mi=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={Key:void 0,LastModified:void 0,ETag:void 0,Size:void 0,StorageClass:void 0,Owner:void 0};return void 0!==e.Key&&(n.Key=e.Key),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.Size&&(n.Size=parseInt(e.Size)),void 0!==e.StorageClass&&(n.StorageClass=e.StorageClass),void 0!==e.Owner&&(n.Owner=bi(e.Owner,t)),n}(e,t)}))},bi=function(e,t){var n={DisplayName:void 0,ID:void 0};return void 0!==e.DisplayName&&(n.DisplayName=e.DisplayName),void 0!==e.ID&&(n.ID=e.ID),n},yi=function(e,t){return(e||[]).filter((function(e){return null!=e})).map((function(e){return null===e?null:function(e,t){var n={PartNumber:void 0,LastModified:void 0,ETag:void 0,Size:void 0};return void 0!==e.PartNumber&&(n.PartNumber=parseInt(e.PartNumber)),void 0!==e.LastModified&&(n.LastModified=new Date(e.LastModified)),void 0!==e.ETag&&(n.ETag=e.ETag),void 0!==e.Size&&(n.Size=parseInt(e.Size)),n}(e)}))},wi=function(e){var t;return{httpStatusCode:e.statusCode,requestId:null!==(t=e.headers["x-amzn-requestid"])&&void 0!==t?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},_i=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},Si=function(e){return void 0!==e&&null!==e&&""!==e&&(!Object.getOwnPropertyNames(e).includes("length")||0!=e.length)&&(!Object.getOwnPropertyNames(e).includes("size")||0!=e.size)},Ei=function(e,t){return function(e,t){return _i(e,t).then((function(e){return t.utf8Encoder(e)}))}(e,t).then((function(e){if(e.length){var t=Object(Xr.parse)(e,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,tagValueProcessor:function(e,t){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,'"').replace(/>/g,">").replace(/</g,"<")}}),n=Object.keys(t)[0],r=t[n];return r["#text"]&&(r[n]=r["#text"],delete r["#text"]),Object(Wr.g)(r)}return{}}))},Oi=function(e,t){return void 0!==t.Code?t.Code:404==e.statusCode?"NotFound":""};var ki=function(){return(ki=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function Ci(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}var Ai=function(e){return"string"===typeof e&&0===e.indexOf("arn:")&&e.split(":").length>=6},Ii=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Pi=/(\d+\.){3}\d+/,Ri=/\.\./,ji=/\./,Li=/^(.+\.)?s3[.-]([a-z0-9-]+)\./,Di=/^s3(-external-1)?\.amazonaws\.com$/,Ni="amazonaws.com",Ui=function(e){return Bi(e)?e.replace(/fips-|-fips/,""):e},Fi=function(e){var t=e.match(Li);return[t[2],e.replace(new RegExp("^"+t[0]),"")]},Bi=function(e){return e.startsWith("fips-")||e.endsWith("-fips")},zi=function(e,t){return e===t||Ui(e)===t||e===Ui(t)},qi=function(e,t){if(void 0===t&&(t={tlsCompatible:!0}),e.length>=64||!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(e)||/(\d+\.){3}\d+/.test(e)||/[.-]{2}/.test(e)||(null===t||void 0===t?void 0:t.tlsCompatible)&&ji.test(e))throw new Error("Invalid DNS label "+e)},Vi=function(e){var t=e.isCustomEndpoint,n=(e.baseHostname,e.dualstackEndpoint),r=e.accelerateEndpoint;if(t){if(n)throw new Error("Dualstack endpoint is not supported with custom endpoint");if(r)throw new Error("Accelerate endpoint is not supported with custom endpoint")}return function(e){return"string"===typeof e.bucketName}(e)?Wi(ki(ki({},e),{isCustomEndpoint:t})):Hi(ki(ki({},e),{isCustomEndpoint:t}))},Hi=function(e){var t,n=e.isCustomEndpoint,r=e.baseHostname,i=xi(n?[e.clientRegion,r]:(t=r,Di.test(t)?[t.replace(".amazonaws.com",""),Ni]:Fi(t)),2),o=i[0],a=i[1],s=e.pathStyleEndpoint,u=e.dualstackEndpoint,c=void 0!==u&&u,l=e.accelerateEndpoint,f=void 0!==l&&l,d=e.tlsCompatible,h=void 0===d||d,p=e.useArnRegion,v=e.bucketName,g=e.clientPartition,m=void 0===g?"aws":g,b=e.clientSigningRegion,y=void 0===b?o:b;!function(e){if(e.pathStyleEndpoint)throw new Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(e.accelerateEndpoint)throw new Error("Accelerate endpoint is not supported when bucket is an ARN");if(!e.tlsCompatible)throw new Error("HTTPS is required when bucket is an ARN")}({pathStyleEndpoint:s,accelerateEndpoint:f,tlsCompatible:h});var w=v.service,_=v.partition,S=v.accountId,E=v.region,O=v.resource;!function(e){if("s3"!==e&&"s3-outposts"!==e)throw new Error("Expect 's3' or 's3-outposts' in ARN service component")}(w),function(e,t){if(e!==t.clientPartition)throw new Error('Partition in ARN is incompatible, got "'+e+'" but expected "'+t.clientPartition+'"')}(_,{clientPartition:m}),function(e){if(!/[0-9]{12}/.exec(e))throw new Error("Access point ARN accountID does not match regex '[0-9]{12}'")}(S),function(e,t){if(""===e)throw new Error("ARN region is empty");if(!t.useArnRegion&&!zi(e,t.clientRegion)&&!zi(e,t.clientSigningRegion))throw new Error("Region in ARN is incompatible, got "+e+" but expected "+t.clientRegion);if(t.useArnRegion&&Bi(e))throw new Error("Endpoint does not support FIPS region")}(E,{useArnRegion:p,clientRegion:o,clientSigningRegion:y});var k=function(e){var t=e.includes(":")?":":"/",n=xi(e.split(t)),r=n[0],i=n.slice(1);if("accesspoint"===r){if(1!==i.length||""===i[0])throw new Error("Access Point ARN should have one resource accesspoint"+t+"{accesspointname}");return{accesspointName:i[0]}}if("outpost"===r){if(!i[0]||"accesspoint"!==i[1]||!i[2]||3!==i.length)throw new Error("Outpost ARN should have resource outpost"+t+"{outpostId}"+t+"accesspoint"+t+"{accesspointName}");var o=xi(i,3),a=o[0];return o[1],{outpostId:a,accesspointName:o[2]}}throw new Error("ARN resource should begin with 'accesspoint"+t+"' or 'outpost"+t+"'")}(O),M=k.accesspointName,T=k.outpostId;qi(M+"-"+S,{tlsCompatible:h});var x=p?E:o,C=p?E:y;return T?(function(e){if("s3-outposts"!==e)throw new Error("Expect 's3-posts' in Outpost ARN service component")}(w),qi(T,{tlsCompatible:h}),function(e){if(e)throw new Error("Dualstack endpoint is not supported with Outpost")}(c),function(e){if(Bi(null!==e&&void 0!==e?e:""))throw new Error("FIPS region is not supported with Outpost, got "+e)}(x),{bucketEndpoint:!0,hostname:M+"-"+S+"."+T+(n?"":".s3-outposts."+x)+"."+a,signingRegion:C,signingService:"s3-outposts"}):(function(e){if("s3"!==e)throw new Error("Expect 's3' in Accesspoint ARN service component")}(w),{bucketEndpoint:!0,hostname:M+"-"+S+(n?"":".s3-accesspoint"+(c?".dualstack":"")+"."+x)+"."+a,signingRegion:C})},Wi=function(e){var t,n=e.accelerateEndpoint,r=void 0!==n&&n,i=e.clientRegion,o=e.baseHostname,a=e.bucketName,s=e.dualstackEndpoint,u=void 0!==s&&s,c=e.pathStyleEndpoint,l=void 0!==c&&c,f=e.tlsCompatible,d=void 0===f||f,h=e.isCustomEndpoint,p=xi(void 0!==h&&h?[i,o]:(t=o,Di.test(t)?["us-east-1",Ni]:Fi(t)),2),v=p[0],g=p[1];return l||!function(e){return Ii.test(e)&&!Pi.test(e)&&!Ri.test(e)}(a)||d&&ji.test(a)?{bucketEndpoint:!1,hostname:u?"s3.dualstack."+v+"."+g:o}:(r?o="s3-accelerate"+(u?".dualstack":"")+"."+g:u&&(o="s3.dualstack."+v+"."+g),{bucketEndpoint:!0,hostname:a+"."+o})},Gi=function(e){return function(t,n){return function(r){return Mi(void 0,void 0,void 0,(function(){var i,o,a,s,u,c,l,f,d,h,p,v,g,m,b,y,w,_;return Ti(this,(function(S){switch(S.label){case 0:return i=r.input.Bucket,o=e.bucketEndpoint,a=r.request,Gr.a.isInstance(a)?e.bucketEndpoint?(a.hostname=i,[3,7]):[3,1]:[3,8];case 1:return Ai(i)?(s=function(e){var t=e.split(":");if(t.length<6||"arn"!==t[0])throw new Error("Malformed ARN");var n=Ci(t);return{partition:n[1],service:n[2],region:n[3],accountId:n[4],resource:n.slice(5).join(":")}}(i),u=Ui,[4,e.region()]):[3,5];case 2:return m=u.apply(void 0,[S.sent()]),[4,e.regionInfoProvider(m)];case 3:return c=S.sent()||{},l=c.partition,f=c.signingRegion,d=void 0===f?m:f,[4,e.useArnRegion()];case 4:return h=S.sent(),p=Vi({bucketName:s,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,useArnRegion:h,clientPartition:l,clientSigningRegion:d,clientRegion:m,isCustomEndpoint:e.isCustomEndpoint}),w=p.hostname,_=p.bucketEndpoint,v=p.signingRegion,g=p.signingService,v&&v!==d&&(n.signing_region=v),g&&"s3"!==g&&(n.signing_service=g),a.hostname=w,o=_,[3,7];case 5:return b=Ui,[4,e.region()];case 6:m=b.apply(void 0,[S.sent()]),y=Vi({bucketName:i,clientRegion:m,baseHostname:a.hostname,accelerateEndpoint:e.useAccelerateEndpoint,dualstackEndpoint:e.useDualstackEndpoint,pathStyleEndpoint:e.forcePathStyle,tlsCompatible:"https:"===a.protocol,isCustomEndpoint:e.isCustomEndpoint}),w=y.hostname,_=y.bucketEndpoint,a.hostname=w,o=_,S.label=7;case 7:o&&(a.path=a.path.replace(/^(\/)?[^\/]+/,""),""===a.path&&(a.path="/")),S.label=8;case 8:return[2,t(ki(ki({},r),{request:a}))]}}))}))}}},Ki={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},Yi=function(e){return{applyToStack:function(t){t.addRelativeTo(Gi(e),Ki)}}};var $i=function(){return($i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=0)throw(r=new Error("Bucket name shouldn't contain '/', received '"+e+"'")).name="InvalidBucketName",r;return[2,t($i({},n))]}))}))}}}(),Zi)}}},eo={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware",override:!0},to=function(e){return{applyToStack:function(t){t.add(function(e){return function(t){return function(n){return Xi(void 0,void 0,void 0,(function(){var r,i;return Qi(this,(function(o){switch(o.label){case 0:return r=n.request,!Gr.a.isInstance(r)||e.isCustomEndpoint?[2,t($i({},n))]:"s3.amazonaws.com"!==r.hostname?[3,1]:(r.hostname="s3.us-east-1.amazonaws.com",[3,3]);case 1:return i="aws-global",[4,e.region()];case 2:i===o.sent()&&(r.hostname="s3.amazonaws.com"),o.label=3;case 3:return[2,t($i({},n))]}}))}))}}}(e),eo)}}},no=function(e,t){return void 0===e&&(e=new Uint8Array),e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array)},ro=function(e,t){return no(e,t).then((function(e){return t.utf8Encoder(e)}))},io={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},oo=function(e){return{applyToStack:function(t){t.addRelativeTo(function(e){return function(t){return function(n){return Xi(void 0,void 0,void 0,(function(){var r,i,o,a,s,u,c;return Qi(this,(function(l){switch(l.label){case 0:return[4,t(n)];case 1:return r=l.sent(),i=r.response,Gr.b.isInstance(i)?(o=i.statusCode,a=i.body,o<200&&o>=300?[2,r]:[4,no(a,e)]):[2,r];case 2:return s=l.sent(),[4,ro(s,e)];case 3:if(u=l.sent(),0===s.length)throw(c=new Error("S3 aborted request")).name="InternalError",c;return u&&u.match("")&&(i.statusCode=400),i.body=s,[2,r]}}))}))}}}(e),io)}}},ao=n(21);var so=function(){return(so=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var fo={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},ho=function(e){return{applyToStack:function(t){t.add(function(e){var t=this;return function(n){return function(r){return uo(t,void 0,void 0,(function(){var t,i,o,a,s,u,c,l,f,d,h,p,v,g,m,b,y;return co(this,(function(w){switch(w.label){case 0:t=so({},r.input),i=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}],w.label=1;case 1:w.trys.push([1,6,7,8]),o=lo(i),a=o.next(),w.label=2;case 2:return a.done?[3,5]:(s=a.value,(u=t[s.target])?(c=ArrayBuffer.isView(u)?new Uint8Array(u.buffer,u.byteOffset,u.byteLength):"string"===typeof u?e.utf8Decoder(u):new Uint8Array(u),l=e.base64Encoder(c),(f=new e.md5).update(c),d=[so({},t)],(y={})[s.target]=l,h=s.hash,v=(p=e).base64Encoder,[4,f.digest()]):[3,4]);case 3:t=so.apply(void 0,d.concat([(y[h]=v.apply(p,[w.sent()]),y)])),w.label=4;case 4:return a=o.next(),[3,2];case 5:return[3,8];case 6:return g=w.sent(),m={error:g},[3,8];case 7:try{a&&!a.done&&(b=o.return)&&b.call(o)}finally{if(m)throw m.error}return[7];case 8:return[2,n(so(so({},r),{input:t}))]}}))}))}}}(e),fo)}}},po=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(oo(t)),this.middlewareStack.use(ho(t)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CopyObjectCommand",inputFilterSensitiveLog:y.filterSensitiveLog,outputFilterSensitiveLog:b.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return Object(Hr.d)(this,(function(f){switch(f.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},Si(e.ACL)&&{"x-amz-acl":e.ACL}),Si(e.CacheControl)&&{"cache-control":e.CacheControl}),Si(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Si(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Si(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Si(e.ContentType)&&{"content-type":e.ContentType}),Si(e.CopySource)&&{"x-amz-copy-source":e.CopySource}),Si(e.CopySourceIfMatch)&&{"x-amz-copy-source-if-match":e.CopySourceIfMatch}),Si(e.CopySourceIfModifiedSince)&&{"x-amz-copy-source-if-modified-since":Object(Wr.d)(e.CopySourceIfModifiedSince).toString()}),Si(e.CopySourceIfNoneMatch)&&{"x-amz-copy-source-if-none-match":e.CopySourceIfNoneMatch}),Si(e.CopySourceIfUnmodifiedSince)&&{"x-amz-copy-source-if-unmodified-since":Object(Wr.d)(e.CopySourceIfUnmodifiedSince).toString()}),Si(e.Expires)&&{expires:Object(Wr.d)(e.Expires).toString()}),Si(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Si(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Si(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Si(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Si(e.MetadataDirective)&&{"x-amz-metadata-directive":e.MetadataDirective}),Si(e.TaggingDirective)&&{"x-amz-tagging-directive":e.TaggingDirective}),Si(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Si(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Si(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Si(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Si(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Si(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Si(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Si(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Si(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Si(e.CopySourceSSECustomerAlgorithm)&&{"x-amz-copy-source-server-side-encryption-customer-algorithm":e.CopySourceSSECustomerAlgorithm}),Si(e.CopySourceSSECustomerKey)&&{"x-amz-copy-source-server-side-encryption-customer-key":e.CopySourceSSECustomerKey}),Si(e.CopySourceSSECustomerKeyMD5)&&{"x-amz-copy-source-server-side-encryption-customer-key-md5":e.CopySourceSSECustomerKeyMD5}),Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Si(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Si(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Si(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),Si(e.ExpectedSourceBucketOwner)&&{"x-amz-source-expected-bucket-owner":e.ExpectedSourceBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var r;return Object(Hr.a)(Object(Hr.a)({},t),((r={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))}),{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o={"x-id":"CopyObject"},[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Gr.a({protocol:c,hostname:s,port:l,method:"PUT",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r;return Object(Hr.d)(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Jr(e,t)]:(n={$metadata:wi(e),BucketKeyEnabled:void 0,CopyObjectResult:void 0,CopySourceVersionId:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-copy-source-version-id"]&&(n.CopySourceVersionId=e.headers["x-amz-copy-source-version-id"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Ei(e.body,t)]);case 1:return r=i.sent(),n.CopyObjectResult=vi(r,t),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b),vo=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ho(t)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:Xt.filterSensitiveLog,outputFilterSensitiveLog:$t.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return Object(Hr.d)(this,(function(f){switch(f.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},Si(e.IfMatch)&&{"if-match":e.IfMatch}),Si(e.IfModifiedSince)&&{"if-modified-since":Object(Wr.d)(e.IfModifiedSince).toString()}),Si(e.IfNoneMatch)&&{"if-none-match":e.IfNoneMatch}),Si(e.IfUnmodifiedSince)&&{"if-unmodified-since":Object(Wr.d)(e.IfUnmodifiedSince).toString()}),Si(e.Range)&&{range:e.Range}),Si(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Si(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Si(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({"x-id":"GetObject"},void 0!==e.ResponseCacheControl&&{"response-cache-control":e.ResponseCacheControl}),void 0!==e.ResponseContentDisposition&&{"response-content-disposition":e.ResponseContentDisposition}),void 0!==e.ResponseContentEncoding&&{"response-content-encoding":e.ResponseContentEncoding}),void 0!==e.ResponseContentLanguage&&{"response-content-language":e.ResponseContentLanguage}),void 0!==e.ResponseContentType&&{"response-content-type":e.ResponseContentType}),void 0!==e.ResponseExpires&&{"response-expires":(e.ResponseExpires.toISOString().split(".")[0]+"Z").toString()}),void 0!==e.VersionId&&{versionId:e.VersionId}),void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Gr.a({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r;return Object(Hr.d)(this,(function(i){return 200!==e.statusCode&&e.statusCode>=300?[2,ni(e,t)]:(n={$metadata:wi(e),AcceptRanges:void 0,Body:void 0,BucketKeyEnabled:void 0,CacheControl:void 0,ContentDisposition:void 0,ContentEncoding:void 0,ContentLanguage:void 0,ContentLength:void 0,ContentRange:void 0,ContentType:void 0,DeleteMarker:void 0,ETag:void 0,Expiration:void 0,Expires:void 0,LastModified:void 0,Metadata:void 0,MissingMeta:void 0,ObjectLockLegalHoldStatus:void 0,ObjectLockMode:void 0,ObjectLockRetainUntilDate:void 0,PartsCount:void 0,ReplicationStatus:void 0,RequestCharged:void 0,Restore:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,StorageClass:void 0,TagCount:void 0,VersionId:void 0,WebsiteRedirectLocation:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["accept-ranges"]&&(n.AcceptRanges=e.headers["accept-ranges"]),void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-restore"]&&(n.Restore=e.headers["x-amz-restore"]),void 0!==e.headers["last-modified"]&&(n.LastModified=new Date(e.headers["last-modified"])),void 0!==e.headers["content-length"]&&(n.ContentLength=parseInt(e.headers["content-length"],10)),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-missing-meta"]&&(n.MissingMeta=parseInt(e.headers["x-amz-missing-meta"],10)),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["cache-control"]&&(n.CacheControl=e.headers["cache-control"]),void 0!==e.headers["content-disposition"]&&(n.ContentDisposition=e.headers["content-disposition"]),void 0!==e.headers["content-encoding"]&&(n.ContentEncoding=e.headers["content-encoding"]),void 0!==e.headers["content-language"]&&(n.ContentLanguage=e.headers["content-language"]),void 0!==e.headers["content-range"]&&(n.ContentRange=e.headers["content-range"]),void 0!==e.headers["content-type"]&&(n.ContentType=e.headers["content-type"]),void 0!==e.headers.expires&&(n.Expires=new Date(e.headers.expires)),void 0!==e.headers["x-amz-website-redirect-location"]&&(n.WebsiteRedirectLocation=e.headers["x-amz-website-redirect-location"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-storage-class"]&&(n.StorageClass=e.headers["x-amz-storage-class"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),void 0!==e.headers["x-amz-replication-status"]&&(n.ReplicationStatus=e.headers["x-amz-replication-status"]),void 0!==e.headers["x-amz-mp-parts-count"]&&(n.PartsCount=parseInt(e.headers["x-amz-mp-parts-count"],10)),void 0!==e.headers["x-amz-tagging-count"]&&(n.TagCount=parseInt(e.headers["x-amz-tagging-count"],10)),void 0!==e.headers["x-amz-object-lock-mode"]&&(n.ObjectLockMode=e.headers["x-amz-object-lock-mode"]),void 0!==e.headers["x-amz-object-lock-retain-until-date"]&&(n.ObjectLockRetainUntilDate=new Date(e.headers["x-amz-object-lock-retain-until-date"])),void 0!==e.headers["x-amz-object-lock-legal-hold"]&&(n.ObjectLockLegalHoldStatus=e.headers["x-amz-object-lock-legal-hold"]),Object.keys(e.headers).forEach((function(t){void 0===n.Metadata&&(n.Metadata={}),t.startsWith("x-amz-meta-")&&(n.Metadata[t.substring(11)]=e.headers[t])})),r=e.body,n.Body=r,[2,Promise.resolve(n)])}))}))}(e,t)},t}(Wr.b),go=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:q.filterSensitiveLog,outputFilterSensitiveLog:z.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return Object(Hr.d)(this,(function(f){switch(f.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},Si(e.MFA)&&{"x-amz-mfa":e.MFA}),Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":e.BypassGovernanceRetention.toString()}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o=Object(Hr.a)({"x-id":"DeleteObject"},void 0!==e.VersionId&&{versionId:e.VersionId}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Gr.a({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n;return Object(Hr.d)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,ti(e,t)]:(n={$metadata:wi(e),DeleteMarker:void 0,RequestCharged:void 0,VersionId:void 0},void 0!==e.headers["x-amz-delete-marker"]&&(n.DeleteMarker="true"===e.headers["x-amz-delete-marker"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,_i(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b),mo=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:zn.filterSensitiveLog,outputFilterSensitiveLog:Bn.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return Object(Hr.d)(this,(function(f){switch(f.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)({},Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");return r=r.replace("{Bucket}",Object(Wr.e)(i)),o=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},void 0!==e.Delimiter&&{delimiter:e.Delimiter}),void 0!==e.EncodingType&&{"encoding-type":e.EncodingType}),void 0!==e.Marker&&{marker:e.Marker}),void 0!==e.MaxKeys&&{"max-keys":e.MaxKeys.toString()}),void 0!==e.Prefix&&{prefix:e.Prefix}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Gr.a({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r;return Object(Hr.d)(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ri(e,t)]:(n={$metadata:wi(e),CommonPrefixes:void 0,Contents:void 0,Delimiter:void 0,EncodingType:void 0,IsTruncated:void 0,Marker:void 0,MaxKeys:void 0,Name:void 0,NextMarker:void 0,Prefix:void 0},[4,Ei(e.body,t)]);case 1:return""===(r=i.sent()).CommonPrefixes&&(n.CommonPrefixes=[]),void 0!==r.CommonPrefixes&&(n.CommonPrefixes=pi(Object(Wr.f)(r.CommonPrefixes),t)),""===r.Contents&&(n.Contents=[]),void 0!==r.Contents&&(n.Contents=mi(Object(Wr.f)(r.Contents),t)),void 0!==r.Delimiter&&(n.Delimiter=r.Delimiter),void 0!==r.EncodingType&&(n.EncodingType=r.EncodingType),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.Marker&&(n.Marker=r.Marker),void 0!==r.MaxKeys&&(n.MaxKeys=parseInt(r.MaxKeys)),void 0!==r.Name&&(n.Name=r.Name),void 0!==r.NextMarker&&(n.NextMarker=r.NextMarker),void 0!==r.Prefix&&(n.Prefix=r.Prefix),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b),bo=n(307),yo=n(129),wo=n(134);function _o(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}var So=n(30),Eo=function(){function e(e){if(this.bytes=e,8!==e.byteLength)throw new Error("Int64 buffers must be exactly 8 bytes")}return e.fromNumber=function(t){if(t>0x8000000000000000||t<-0x8000000000000000)throw new Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var n=new Uint8Array(8),r=7,i=Math.abs(Math.round(t));r>-1&&i>0;r--,i/=256)n[r]=i;return t<0&&Oo(n),new e(n)},e.prototype.valueOf=function(){var e=this.bytes.slice(0),t=128&e[0];return t&&Oo(e),parseInt(Object(So.b)(e),16)*(t?-1:1)},e.prototype.toString=function(){return String(this.valueOf())},e}();function Oo(e){for(var t=0;t<8;t++)e[t]^=255;for(t=7;t>-1&&(e[t]++,0===e[t]);t--);}var ko,Mo=function(){function e(e,t){this.toUtf8=e,this.fromUtf8=t}return e.prototype.format=function(e){var t,n,r,i,o=[];try{for(var a=_o(Object.keys(e)),s=a.next();!s.done;s=a.next()){var u=s.value,c=this.fromUtf8(u);o.push(Uint8Array.from([c.byteLength]),c,this.formatHeaderValue(e[u]))}}catch(v){t={error:v}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}var l=new Uint8Array(o.reduce((function(e,t){return e+t.byteLength}),0)),f=0;try{for(var d=_o(o),h=d.next();!h.done;h=d.next()){var p=h.value;l.set(p,f),f+=p.byteLength}}catch(g){r={error:g}}finally{try{h&&!h.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}return l},e.prototype.formatHeaderValue=function(e){switch(e.type){case"boolean":return Uint8Array.from([e.value?0:1]);case"byte":return Uint8Array.from([2,e.value]);case"short":var t=new DataView(new ArrayBuffer(3));return t.setUint8(0,3),t.setInt16(1,e.value,!1),new Uint8Array(t.buffer);case"integer":var n=new DataView(new ArrayBuffer(5));return n.setUint8(0,4),n.setInt32(1,e.value,!1),new Uint8Array(n.buffer);case"long":var r=new Uint8Array(9);return r[0]=5,r.set(e.value.bytes,1),r;case"binary":var i=new DataView(new ArrayBuffer(3+e.value.byteLength));i.setUint8(0,6),i.setUint16(1,e.value.byteLength,!1);var o=new Uint8Array(i.buffer);return o.set(e.value,3),o;case"string":var a=this.fromUtf8(e.value),s=new DataView(new ArrayBuffer(3+a.byteLength));s.setUint8(0,7),s.setUint16(1,a.byteLength,!1);var u=new Uint8Array(s.buffer);return u.set(a,3),u;case"timestamp":var c=new Uint8Array(9);return c[0]=8,c.set(Eo.fromNumber(e.value.valueOf()).bytes,1),c;case"uuid":if(!Do.test(e.value))throw new Error("Invalid UUID received: "+e.value);var l=new Uint8Array(17);return l[0]=9,l.set(Object(So.a)(e.value.replace(/\-/g,"")),1),l}},e.prototype.parse=function(e){for(var t={},n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bo(e){return this instanceof Bo?(this.v=e,this):new Bo(e)}function zo(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){o.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof Bo?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function qo(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=Fo(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var Vo=function(){function e(e){var t=e.utf8Encoder,n=e.utf8Decoder;this.eventMarshaller=new No(t,n),this.utfEncoder=t}return e.prototype.deserialize=function(e,t){return function(e,t){var n;return(n={})[Symbol.asyncIterator]=function(){return zo(this,arguments,(function(){var n,r,i,o,a,s,u,c,l,f,d,h,p,v,g,m,b;return Uo(this,(function(y){switch(y.label){case 0:y.trys.push([0,12,13,18]),n=qo(e),y.label=1;case 1:return[4,Bo(n.next())];case 2:if((r=y.sent()).done)return[3,11];if(i=r.value,o=t.eventMarshaller.unmarshall(i),"error"!==(a=o.headers[":message-type"].value))return[3,3];throw(s=new Error(o.headers[":error-message"].value||"UnknownError")).name=o.headers[":error-code"].value,s;case 3:return"exception"!==a?[3,5]:(u=o.headers[":exception-type"].value,(v={})[u]=o,c=v,[4,Bo(t.deserializer(c))]);case 4:if((l=y.sent()).$unknown)throw(f=new Error(t.toUtf8(o.body))).name=u,f;throw l[u];case 5:return"event"!==a?[3,9]:((g={})[o.headers[":event-type"].value]=o,d=g,[4,Bo(t.deserializer(d))]);case 6:return(h=y.sent()).$unknown?[3,10]:[4,Bo(h)];case 7:return[4,y.sent()];case 8:return y.sent(),[3,10];case 9:throw Error("Unrecognizable event type: "+o.headers[":event-type"].value);case 10:return[3,1];case 11:return[3,18];case 12:return p=y.sent(),m={error:p},[3,18];case 13:return y.trys.push([13,,16,17]),r&&!r.done&&(b=n.return)?[4,Bo(b.call(n))]:[3,15];case 14:y.sent(),y.label=15;case 15:return[3,17];case 16:if(m)throw m.error;return[7];case 17:return[7];case 18:return[2]}}))}))},n}(function(e){var t,n=0,r=0,i=null,o=null,a=function(e){if("number"!==typeof e)throw new Error("Attempted to allocate an event message where size was not a number: "+e);n=e,r=4,i=new Uint8Array(e),new DataView(i.buffer).setUint32(0,e,!1)};return(t={})[Symbol.asyncIterator]=function(){return zo(this,arguments,(function(){var t,s,u,c,l,f,d,h;return Uo(this,(function(p){switch(p.label){case 0:t=e[Symbol.asyncIterator](),p.label=1;case 1:return[4,Bo(t.next())];case 2:return s=p.sent(),u=s.value,s.done?n?[3,4]:[4,Bo(void 0)]:[3,10];case 3:return[2,p.sent()];case 4:return n!==r?[3,7]:[4,Bo(i)];case 5:return[4,p.sent()];case 6:return p.sent(),[3,8];case 7:throw new Error("Truncated event message received.");case 8:return[4,Bo(void 0)];case 9:return[2,p.sent()];case 10:c=u.length,l=0,p.label=11;case 11:if(!(l0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof Go?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(r){l(o[0][3],r)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}var Yo=function(){function e(e){var t=e.utf8Encoder,n=e.utf8Decoder;this.eventMarshaller=new No(t,n),this.universalMarshaller=new Vo({utf8Decoder:n,utf8Encoder:t})}return e.prototype.deserialize=function(e,t){var n=$o(e)?function(e){var t;return(t={})[Symbol.asyncIterator]=function(){return Ko(this,arguments,(function(){var t,n,r,i;return Wo(this,(function(o){switch(o.label){case 0:t=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Go(t.read())];case 3:return n=o.sent(),r=n.done,i=n.value,r?[4,Go(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Go(i)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}}))}))},t}(e):e;return this.universalMarshaller.deserialize(n,t)},e.prototype.serialize=function(e,t){var n=this.universalMarshaller.serialize(e,t);return"function"===typeof ReadableStream?function(e){var t=e[Symbol.asyncIterator]();return new ReadableStream({pull:function(e){return Ho(this,void 0,void 0,(function(){var n,r,i;return Wo(this,(function(o){switch(o.label){case 0:return[4,t.next()];case 1:return n=o.sent(),r=n.done,i=n.value,r?[2,e.close()]:(e.enqueue(i),[2])}}))}))}})}(n):n},e}(),$o=function(e){return"function"===typeof ReadableStream&&e instanceof ReadableStream},Xo=n(92);function Qo(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function Zo(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=a?r():o.readAsArrayBuffer(e.slice(s,Math.min(a,s+n)))}o.addEventListener("load",(function(e){var n=e.target.result;t(new Uint8Array(n)),s+=n.byteLength,u()})),u()}))}var ea=n(137);function ta(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function na(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0;)this.buffer.setUint8(this.bufferLength++,t[n++]),r--,this.bufferLength===ia&&(this.hashBuffer(),this.bufferLength=0)}},e.prototype.digest=function(){return ta(this,void 0,void 0,(function(){var e,t,n,r,i,o,a;return na(this,(function(s){if(!this.finished){if(t=(e=this).buffer,n=e.bufferLength,r=e.bytesHashed,i=8*r,t.setUint8(this.bufferLength++,128),n%ia>=56){for(a=this.bufferLength;a>>0,!0),t.setUint32(60,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}for(o=new DataView(new ArrayBuffer(16)),a=0;a<4;a++)o.setUint32(4*a,this.state[a],!0);return[2,new Uint8Array(o.buffer,o.byteOffset,o.byteLength)]}))}))},e.prototype.hashBuffer=function(){var e=this.buffer,t=this.state,n=t[0],r=t[1],i=t[2],o=t[3];n=ua(n,r,i,o,e.getUint32(0,!0),7,3614090360),o=ua(o,n,r,i,e.getUint32(4,!0),12,3905402710),i=ua(i,o,n,r,e.getUint32(8,!0),17,606105819),r=ua(r,i,o,n,e.getUint32(12,!0),22,3250441966),n=ua(n,r,i,o,e.getUint32(16,!0),7,4118548399),o=ua(o,n,r,i,e.getUint32(20,!0),12,1200080426),i=ua(i,o,n,r,e.getUint32(24,!0),17,2821735955),r=ua(r,i,o,n,e.getUint32(28,!0),22,4249261313),n=ua(n,r,i,o,e.getUint32(32,!0),7,1770035416),o=ua(o,n,r,i,e.getUint32(36,!0),12,2336552879),i=ua(i,o,n,r,e.getUint32(40,!0),17,4294925233),r=ua(r,i,o,n,e.getUint32(44,!0),22,2304563134),n=ua(n,r,i,o,e.getUint32(48,!0),7,1804603682),o=ua(o,n,r,i,e.getUint32(52,!0),12,4254626195),i=ua(i,o,n,r,e.getUint32(56,!0),17,2792965006),n=ca(n,r=ua(r,i,o,n,e.getUint32(60,!0),22,1236535329),i,o,e.getUint32(4,!0),5,4129170786),o=ca(o,n,r,i,e.getUint32(24,!0),9,3225465664),i=ca(i,o,n,r,e.getUint32(44,!0),14,643717713),r=ca(r,i,o,n,e.getUint32(0,!0),20,3921069994),n=ca(n,r,i,o,e.getUint32(20,!0),5,3593408605),o=ca(o,n,r,i,e.getUint32(40,!0),9,38016083),i=ca(i,o,n,r,e.getUint32(60,!0),14,3634488961),r=ca(r,i,o,n,e.getUint32(16,!0),20,3889429448),n=ca(n,r,i,o,e.getUint32(36,!0),5,568446438),o=ca(o,n,r,i,e.getUint32(56,!0),9,3275163606),i=ca(i,o,n,r,e.getUint32(12,!0),14,4107603335),r=ca(r,i,o,n,e.getUint32(32,!0),20,1163531501),n=ca(n,r,i,o,e.getUint32(52,!0),5,2850285829),o=ca(o,n,r,i,e.getUint32(8,!0),9,4243563512),i=ca(i,o,n,r,e.getUint32(28,!0),14,1735328473),n=la(n,r=ca(r,i,o,n,e.getUint32(48,!0),20,2368359562),i,o,e.getUint32(20,!0),4,4294588738),o=la(o,n,r,i,e.getUint32(32,!0),11,2272392833),i=la(i,o,n,r,e.getUint32(44,!0),16,1839030562),r=la(r,i,o,n,e.getUint32(56,!0),23,4259657740),n=la(n,r,i,o,e.getUint32(4,!0),4,2763975236),o=la(o,n,r,i,e.getUint32(16,!0),11,1272893353),i=la(i,o,n,r,e.getUint32(28,!0),16,4139469664),r=la(r,i,o,n,e.getUint32(40,!0),23,3200236656),n=la(n,r,i,o,e.getUint32(52,!0),4,681279174),o=la(o,n,r,i,e.getUint32(0,!0),11,3936430074),i=la(i,o,n,r,e.getUint32(12,!0),16,3572445317),r=la(r,i,o,n,e.getUint32(24,!0),23,76029189),n=la(n,r,i,o,e.getUint32(36,!0),4,3654602809),o=la(o,n,r,i,e.getUint32(48,!0),11,3873151461),i=la(i,o,n,r,e.getUint32(60,!0),16,530742520),n=fa(n,r=la(r,i,o,n,e.getUint32(8,!0),23,3299628645),i,o,e.getUint32(0,!0),6,4096336452),o=fa(o,n,r,i,e.getUint32(28,!0),10,1126891415),i=fa(i,o,n,r,e.getUint32(56,!0),15,2878612391),r=fa(r,i,o,n,e.getUint32(20,!0),21,4237533241),n=fa(n,r,i,o,e.getUint32(48,!0),6,1700485571),o=fa(o,n,r,i,e.getUint32(12,!0),10,2399980690),i=fa(i,o,n,r,e.getUint32(40,!0),15,4293915773),r=fa(r,i,o,n,e.getUint32(4,!0),21,2240044497),n=fa(n,r,i,o,e.getUint32(32,!0),6,1873313359),o=fa(o,n,r,i,e.getUint32(60,!0),10,4264355552),i=fa(i,o,n,r,e.getUint32(24,!0),15,2734768916),r=fa(r,i,o,n,e.getUint32(52,!0),21,1309151649),n=fa(n,r,i,o,e.getUint32(16,!0),6,4149444226),o=fa(o,n,r,i,e.getUint32(44,!0),10,3174756917),i=fa(i,o,n,r,e.getUint32(8,!0),15,718787259),r=fa(r,i,o,n,e.getUint32(36,!0),21,3951481745),t[0]=n+t[0]&4294967295,t[1]=r+t[1]&4294967295,t[2]=i+t[2]&4294967295,t[3]=o+t[3]&4294967295},e}();function sa(e,t,n,r,i,o){return((t=(t+e&4294967295)+(r+o&4294967295)&4294967295)<>>32-i)+n&4294967295}function ua(e,t,n,r,i,o,a){return sa(t&n|~t&r,e,t,i,o,a)}function ca(e,t,n,r,i,o,a){return sa(t&r|n&~r,e,t,i,o,a)}function la(e,t,n,r,i,o,a){return sa(t^n^r,e,t,i,o,a)}function fa(e,t,n,r,i,o,a){return sa(n^(t|~r),e,t,i,o,a)}var da=n(56),ha=n(71),pa=n(130),va=n(140),ga="s3.{region}.amazonaws.com",ma=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","me-south-1","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"]),ba=new Set(["cn-north-1","cn-northwest-1"]),ya=new Set(["us-iso-east-1"]),wa=new Set(["us-isob-east-1"]),_a=new Set(["us-gov-east-1","us-gov-west-1"]),Sa={apiVersion:"2006-03-01",disableHostPrefix:!1,logger:{},regionInfoProvider:function(e,t){var n=void 0;switch(e){case"af-south-1":n={hostname:"s3.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"s3.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"s3.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"s3.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"s3.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"s3.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"s3.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":n={hostname:"s3.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":n={hostname:"s3.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"s3.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"s3.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"s3.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"s3.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"s3.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"s3.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"s3.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"s3.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-gov-west-1":n={hostname:"s3-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"me-south-1":n={hostname:"s3.me-south-1.amazonaws.com",partition:"aws"};break;case"s3-external-1":n={hostname:"s3-external-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"sa-east-1":n={hostname:"s3.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"s3.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":n={hostname:"s3.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-east-1":n={hostname:"s3.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1":n={hostname:"s3.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-iso-east-1":n={hostname:"s3.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"s3.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"s3.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":n={hostname:"s3.us-west-2.amazonaws.com",partition:"aws"};break;default:ma.has(e)&&(n={hostname:ga.replace("{region}",e),partition:"aws"}),ba.has(e)&&(n={hostname:"s3.{region}.amazonaws.com.cn".replace("{region}",e),partition:"aws-cn"}),ya.has(e)&&(n={hostname:"s3.{region}.c2s.ic.gov".replace("{region}",e),partition:"aws-iso"}),wa.has(e)&&(n={hostname:"s3.{region}.sc2s.sgov.gov".replace("{region}",e),partition:"aws-iso-b"}),_a.has(e)&&(n={hostname:"s3.{region}.amazonaws.com".replace("{region}",e),partition:"aws-us-gov"}),void 0===n&&(n={hostname:ga.replace("{region}",e),partition:"aws"})}return Promise.resolve(Object(Hr.a)({signingService:"s3"},n))},serviceId:"S3",signingEscapePath:!1,urlParser:n(138).a,useArnRegion:!1},Ea=Object(Hr.a)(Object(Hr.a)({},Sa),{runtime:"browser",base64Decoder:ha.a,base64Encoder:ha.b,bodyLengthChecker:pa.a,credentialDefaultProvider:function(e){return function(){return Promise.reject(new Error("Credential is missing"))}},defaultUserAgentProvider:Object(va.a)({serviceId:Sa.serviceId,clientVersion:bo.version}),eventStreamSerdeProvider:function(e){return new Yo(e)},maxAttempts:da.a,md5:aa,region:Object(ea.a)("Region is missing"),requestHandler:new Xo.a,sha256:yo.Sha256,streamCollector:Xo.b,streamHasher:function(e,t){return Qo(this,void 0,void 0,(function(){var n;return Zo(this,(function(r){switch(r.label){case 0:return n=new e,[4,Jo(t,(function(e){n.update(e)}))];case 1:return r.sent(),[2,n.digest()]}}))}))},utf8Decoder:ra.fromUtf8,utf8Encoder:ra.toUtf8}),Oa=n(93);var ka=function(){return(ka=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},Za=function(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Ja=new Fr.a("axios-http-handler"),es="sendProgress";var ts=function(e,t){var n,r;try{for(var i=Qa(Object.entries(e)),o=i.next();!o.done;o=i.next()){var a=Za(o.value,2),s=a[0],u=a[1];s!==t&&s.toUpperCase()===t.toUpperCase()&&(e[t]=u,delete e[s])}}catch(c){n={error:c}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},ns=[function(e,t){return n=e,"undefined"!==typeof Blob&&n instanceof Blob?(ts(t,"Content-Type"),ts(t,"Accept"),e):Xa.a.defaults.transformRequest[0].call(null,e,t);var n}],rs=function(){function e(e,t,n){void 0===e&&(e={}),this.httpOptions=e,this.emitter=t,this.cancelTokenSource=n}return e.prototype.destroy=function(){},e.prototype.handle=function(e,t){var n=this.httpOptions.requestTimeout,r=this.emitter,i=e.path;if(e.query){var o=Object(Na.a)(e.query);o&&(i+="?"+o)}var a=e.port,s=e.protocol+"//"+e.hostname+(a?":"+a:"")+i,u={};u.url=s,u.method=e.method,u.headers=e.headers,delete u.headers.host,e.body?u.data=e.body:u.headers["Content-Type"]&&(u.data=null),r&&(u.onUploadProgress=function(e){r.emit(es,e),Ja.debug(e)}),this.cancelTokenSource&&(u.cancelToken=this.cancelTokenSource.token),u.responseType="blob",Vr.a.isReactNative&&(u.transformRequest=ns);var c=[Xa.a.request(u).then((function(e){return{response:new Gr.b({headers:e.headers,statusCode:e.status,body:e.data})}})).catch((function(e){throw Ja.error(e.message),e})),is(n)];return Promise.race(c)},e}();function is(e){return void 0===e&&(e=0),new Promise((function(t,n){e&&setTimeout((function(){var t=new Error("Request did not complete within "+e+" ms");t.name="TimeoutError",n(t)}),e)}))}var os,as,ss,us,cs,ls,fs,ds,hs,ps,vs,gs,ms,bs,ys,ws,_s,Ss,Es,Os,ks,Ms,Ts,xs,Cs,As,Is,Ps,Rs,js,Ls,Ds,Ns,Us,Fs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ho(t)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:Er.filterSensitiveLog,outputFilterSensitiveLog:Sr.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l,f,d;return Object(Hr.d)(this,(function(h){switch(h.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({"content-type":"application/octet-stream"},Si(e.ACL)&&{"x-amz-acl":e.ACL}),Si(e.CacheControl)&&{"cache-control":e.CacheControl}),Si(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Si(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Si(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Si(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),Si(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Si(e.ContentType)&&{"content-type":e.ContentType}),Si(e.Expires)&&{expires:Object(Wr.d)(e.Expires).toString()}),Si(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Si(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Si(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Si(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Si(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Si(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Si(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Si(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Si(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Si(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Si(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Si(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Si(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Si(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Si(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Si(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var r;return Object(Hr.a)(Object(Hr.a)({},t),((r={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))}),{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o={"x-id":"PutObject"},void 0!==e.Body&&(s=e.Body,a=s),[4,t.endpoint()];case 1:return u=h.sent(),c=u.hostname,l=u.protocol,f=void 0===l?"https":l,d=u.port,[2,new Gr.a({protocol:f,hostname:c,port:d,method:"PUT",headers:n,path:r,query:o,body:a})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n;return Object(Hr.d)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,oi(e,t)]:(n={$metadata:wi(e),BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,_i(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b),Bs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ho(t)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:T.filterSensitiveLog,outputFilterSensitiveLog:M.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return Object(Hr.d)(this,(function(f){switch(f.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},Si(e.ACL)&&{"x-amz-acl":e.ACL}),Si(e.CacheControl)&&{"cache-control":e.CacheControl}),Si(e.ContentDisposition)&&{"content-disposition":e.ContentDisposition}),Si(e.ContentEncoding)&&{"content-encoding":e.ContentEncoding}),Si(e.ContentLanguage)&&{"content-language":e.ContentLanguage}),Si(e.ContentType)&&{"content-type":e.ContentType}),Si(e.Expires)&&{expires:Object(Wr.d)(e.Expires).toString()}),Si(e.GrantFullControl)&&{"x-amz-grant-full-control":e.GrantFullControl}),Si(e.GrantRead)&&{"x-amz-grant-read":e.GrantRead}),Si(e.GrantReadACP)&&{"x-amz-grant-read-acp":e.GrantReadACP}),Si(e.GrantWriteACP)&&{"x-amz-grant-write-acp":e.GrantWriteACP}),Si(e.ServerSideEncryption)&&{"x-amz-server-side-encryption":e.ServerSideEncryption}),Si(e.StorageClass)&&{"x-amz-storage-class":e.StorageClass}),Si(e.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":e.WebsiteRedirectLocation}),Si(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Si(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Si(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Si(e.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":e.SSEKMSKeyId}),Si(e.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":e.SSEKMSEncryptionContext}),Si(e.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":e.BucketKeyEnabled.toString()}),Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.Tagging)&&{"x-amz-tagging":e.Tagging}),Si(e.ObjectLockMode)&&{"x-amz-object-lock-mode":e.ObjectLockMode}),Si(e.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(e.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),Si(e.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":e.ObjectLockLegalHoldStatus}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),void 0!==e.Metadata&&Object.keys(e.Metadata).reduce((function(t,n){var r;return Object(Hr.a)(Object(Hr.a)({},t),((r={})["x-amz-meta-"+n.toLowerCase()]=e.Metadata[n],r))}),{})),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o={uploads:""},[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Gr.a({protocol:c,hostname:s,port:l,method:"POST",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r;return Object(Hr.d)(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ei(e,t)]:(n={$metadata:wi(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,BucketKeyEnabled:void 0,Key:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSEncryptionContext:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-context"]&&(n.SSEKMSEncryptionContext=e.headers["x-amz-server-side-encryption-context"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Ei(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.UploadId&&(n.UploadId=r.UploadId),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b);(os||(os={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(as||(as={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Encryption&&{Encryption:Ur.filterSensitiveLog(e.Encryption)})},(ss||(ss={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.S3&&{S3:as.filterSensitiveLog(e.S3)})},function(e){e.IGNORE="IGNORE",e.NONE="NONE",e.USE="USE"}(us||(us={})),(cs||(cs={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},function(e){e.DOCUMENT="DOCUMENT",e.LINES="LINES"}(ls||(ls={})),(fs||(fs={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ds||(ds={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(hs||(hs={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},function(e){e.ALWAYS="ALWAYS",e.ASNEEDED="ASNEEDED"}(ps||(ps={})),(vs||(vs={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(gs||(gs={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ms||(ms={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(bs||(bs={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},function(e){e.SELECT="SELECT"}(ys||(ys={})),(ws||(ws={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.OutputLocation&&{OutputLocation:ss.filterSensitiveLog(e.OutputLocation)})},(_s||(_s={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.RestoreRequest&&{RestoreRequest:ws.filterSensitiveLog(e.RestoreRequest)})},(Ss||(Ss={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Es||(Es={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Os||(Os={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(ks||(ks={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ms||(Ms={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ts||(Ts={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(xs||(xs={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},function(e){e.visit=function(e,t){return void 0!==e.Records?t.Records(e.Records):void 0!==e.Stats?t.Stats(e.Stats):void 0!==e.Progress?t.Progress(e.Progress):void 0!==e.Cont?t.Cont(e.Cont):void 0!==e.End?t.End(e.End):t._(e.$unknown[0],e.$unknown[1])},e.filterSensitiveLog=function(e){var t;return void 0!==e.Records?{Records:Ms.filterSensitiveLog(e.Records)}:void 0!==e.Stats?{Stats:xs.filterSensitiveLog(e.Stats)}:void 0!==e.Progress?{Progress:ks.filterSensitiveLog(e.Progress)}:void 0!==e.Cont?{Cont:Ss.filterSensitiveLog(e.Cont)}:void 0!==e.End?{End:Es.filterSensitiveLog(e.End)}:void 0!==e.$unknown?((t={})[e.$unknown[0]]="UNKNOWN",t):void 0}}(Cs||(Cs={})),(As||(As={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.Payload&&{Payload:"STREAMING_CONTENT"})},(Is||(Is={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ps||(Ps={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Rs||(Rs={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Wr.c})},(js||(js={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c})},(Ls||(Ls={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Wr.c})},(Ds||(Ds={})).filterSensitiveLog=function(e){return Object(Hr.a)({},e)},(Ns||(Ns={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)({},e),e.SSEKMSKeyId&&{SSEKMSKeyId:Wr.c})},(Us||(Us={})).filterSensitiveLog=function(e){return Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({},e),e.SSECustomerKey&&{SSECustomerKey:Wr.c}),e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Wr.c})};var zs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(ho(t)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:Ls.filterSensitiveLog,outputFilterSensitiveLog:js.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l,f,d;return Object(Hr.d)(this,(function(h){switch(h.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({"content-type":"application/octet-stream"},Si(e.ContentLength)&&{"content-length":e.ContentLength.toString()}),Si(e.ContentMD5)&&{"content-md5":e.ContentMD5}),Si(e.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":e.SSECustomerAlgorithm}),Si(e.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":e.SSECustomerKey}),Si(e.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":e.SSECustomerKeyMD5}),Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o=Object(Hr.a)(Object(Hr.a)({"x-id":"UploadPart"},void 0!==e.PartNumber&&{partNumber:e.PartNumber.toString()}),void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.Body&&(s=e.Body,a=s),[4,t.endpoint()];case 1:return u=h.sent(),c=u.hostname,l=u.protocol,f=void 0===l?"https":l,d=u.port,[2,new Gr.a({protocol:f,hostname:c,port:d,method:"PUT",headers:n,path:r,query:o,body:a})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n;return Object(Hr.d)(this,(function(r){switch(r.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ai(e,t)]:(n={$metadata:wi(e),BucketKeyEnabled:void 0,ETag:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers.etag&&(n.ETag=e.headers.etag),void 0!==e.headers["x-amz-server-side-encryption-customer-algorithm"]&&(n.SSECustomerAlgorithm=e.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==e.headers["x-amz-server-side-encryption-customer-key-md5"]&&(n.SSECustomerKeyMD5=e.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,_i(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b),qs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(oo(t)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:g.filterSensitiveLog,outputFilterSensitiveLog:h.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l,f,d;return Object(Hr.d)(this,(function(h){switch(h.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)({"content-type":"application/xml"},Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o=Object(Hr.a)({},void 0!==e.UploadId&&{uploadId:e.UploadId}),void 0!==e.MultipartUpload&&(s=di(e.MultipartUpload,t),a='',s.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),a+=s.toString()),[4,t.endpoint()];case 1:return u=h.sent(),c=u.hostname,l=u.protocol,f=void 0===l?"https":l,d=u.port,[2,new Gr.a({protocol:f,hostname:c,port:d,method:"POST",headers:n,path:r,query:o,body:a})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r;return Object(Hr.d)(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,Zr(e,t)]:(n={$metadata:wi(e),Bucket:void 0,BucketKeyEnabled:void 0,ETag:void 0,Expiration:void 0,Key:void 0,Location:void 0,RequestCharged:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0,VersionId:void 0},void 0!==e.headers["x-amz-expiration"]&&(n.Expiration=e.headers["x-amz-expiration"]),void 0!==e.headers["x-amz-server-side-encryption"]&&(n.ServerSideEncryption=e.headers["x-amz-server-side-encryption"]),void 0!==e.headers["x-amz-version-id"]&&(n.VersionId=e.headers["x-amz-version-id"]),void 0!==e.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(n.SSEKMSKeyId=e.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==e.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(n.BucketKeyEnabled="true"===e.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Ei(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.ETag&&(n.ETag=r.ETag),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.Location&&(n.Location=r.Location),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b),Vs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),a={logger:t.logger,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:o.filterSensitiveLog,outputFilterSensitiveLog:i.filterSensitiveLog},s=t.requestHandler;return r.resolve((function(e){return s.handle(e.request,n||{})}),a)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return Object(Hr.d)(this,(function(f){switch(f.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)({},Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o=Object(Hr.a)({"x-id":"AbortMultipartUpload"},void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Gr.a({protocol:c,hostname:s,port:l,method:"DELETE",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n;return Object(Hr.d)(this,(function(r){switch(r.label){case 0:return 204!==e.statusCode&&e.statusCode>=300?[2,Qr(e,t)]:(n={$metadata:wi(e),RequestCharged:void 0},void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,_i(e.body,t)]);case 1:return r.sent(),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b),Hs=function(e){function t(t){var n=e.call(this)||this;return n.input=t,n}return Object(Hr.c)(t,e),t.prototype.resolveMiddleware=function(e,t,n){this.middlewareStack.use(Object(ao.a)(t,this.serialize,this.deserialize)),this.middlewareStack.use(Yi(t));var r=e.concat(this.middlewareStack),i={logger:t.logger,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:Xn.filterSensitiveLog,outputFilterSensitiveLog:$n.filterSensitiveLog},o=t.requestHandler;return r.resolve((function(e){return o.handle(e.request,n||{})}),i)},t.prototype.serialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r,i,o,a,s,u,c,l;return Object(Hr.d)(this,(function(f){switch(f.label){case 0:if(n=Object(Hr.a)(Object(Hr.a)({},Si(e.RequestPayer)&&{"x-amz-request-payer":e.RequestPayer}),Si(e.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":e.ExpectedBucketOwner}),r="/{Bucket}/{Key+}",void 0===e.Bucket)throw new Error("No value provided for input HTTP label: Bucket.");if((i=e.Bucket).length<=0)throw new Error("Empty value provided for input HTTP label: Bucket.");if(r=r.replace("{Bucket}",Object(Wr.e)(i)),void 0===e.Key)throw new Error("No value provided for input HTTP label: Key.");if((i=e.Key).length<=0)throw new Error("Empty value provided for input HTTP label: Key.");return r=r.replace("{Key+}",i.split("/").map((function(e){return Object(Wr.e)(e)})).join("/")),o=Object(Hr.a)(Object(Hr.a)(Object(Hr.a)({"x-id":"ListParts"},void 0!==e.MaxParts&&{"max-parts":e.MaxParts.toString()}),void 0!==e.PartNumberMarker&&{"part-number-marker":e.PartNumberMarker}),void 0!==e.UploadId&&{uploadId:e.UploadId}),[4,t.endpoint()];case 1:return a=f.sent(),s=a.hostname,u=a.protocol,c=void 0===u?"https":u,l=a.port,[2,new Gr.a({protocol:c,hostname:s,port:l,method:"GET",headers:n,path:r,query:o,body:void 0})]}}))}))}(e,t)},t.prototype.deserialize=function(e,t){return function(e,t){return Object(Hr.b)(void 0,void 0,void 0,(function(){var n,r;return Object(Hr.d)(this,(function(i){switch(i.label){case 0:return 200!==e.statusCode&&e.statusCode>=300?[2,ii(e,t)]:(n={$metadata:wi(e),AbortDate:void 0,AbortRuleId:void 0,Bucket:void 0,Initiator:void 0,IsTruncated:void 0,Key:void 0,MaxParts:void 0,NextPartNumberMarker:void 0,Owner:void 0,PartNumberMarker:void 0,Parts:void 0,RequestCharged:void 0,StorageClass:void 0,UploadId:void 0},void 0!==e.headers["x-amz-abort-date"]&&(n.AbortDate=new Date(e.headers["x-amz-abort-date"])),void 0!==e.headers["x-amz-abort-rule-id"]&&(n.AbortRuleId=e.headers["x-amz-abort-rule-id"]),void 0!==e.headers["x-amz-request-charged"]&&(n.RequestCharged=e.headers["x-amz-request-charged"]),[4,Ei(e.body,t)]);case 1:return void 0!==(r=i.sent()).Bucket&&(n.Bucket=r.Bucket),void 0!==r.Initiator&&(n.Initiator=gi(r.Initiator,t)),void 0!==r.IsTruncated&&(n.IsTruncated="true"==r.IsTruncated),void 0!==r.Key&&(n.Key=r.Key),void 0!==r.MaxParts&&(n.MaxParts=parseInt(r.MaxParts)),void 0!==r.NextPartNumberMarker&&(n.NextPartNumberMarker=r.NextPartNumberMarker),void 0!==r.Owner&&(n.Owner=bi(r.Owner,t)),void 0!==r.PartNumberMarker&&(n.PartNumberMarker=r.PartNumberMarker),""===r.Part&&(n.Parts=[]),void 0!==r.Part&&(n.Parts=yi(Object(Wr.f)(r.Part),t)),void 0!==r.StorageClass&&(n.StorageClass=r.StorageClass),void 0!==r.UploadId&&(n.UploadId=r.UploadId),[2,Promise.resolve(n)]}}))}))}(e,t)},t}(Wr.b),Ws=n(49),Gs=function(){return(Gs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)throw new Error("Multi Part upload clean up failed");return[2]}}))}))},e.prototype.removeEventListener=function(e){e.emitter.removeAllListeners(es)},e.prototype.setupEventListener=function(e){var t=this;e.emitter.on(es,(function(n){t.progressChanged(e.partNumber,n.loaded-e._lastUploadedBytes),e._lastUploadedBytes=n.loaded}))},e.prototype.progressChanged=function(e,t){this.bytesUploaded+=t,this.emitter.emit(es,{loaded:this.bytesUploaded,total:this.totalBytesToUpload,part:e,key:this.params.Key})},e.prototype.byteLength=function(e){if(null===e||void 0===e)return 0;if("number"===typeof e.byteLength)return e.byteLength;if("number"===typeof e.length)return e.length;if("number"===typeof e.size)return e.size;if("string"!==typeof e.path)throw new Error("Cannot determine length of "+e)},e.prototype.validateAndSanitizeBody=function(e){return Ks(this,void 0,void 0,(function(){return Ys(this,(function(t){return this.isGenericObject(e)?[2,JSON.stringify(e)]:[2,e]}))}))},e.prototype.isGenericObject=function(e){if(null!==e&&"object"===typeof e)try{return!(this.byteLength(e)>=0)}catch(t){return!0}return!1},e.prototype._createNewS3Client=function(e,t){return Ks(this,void 0,void 0,(function(){var n,r,i,o,a,s;return Ys(this,(function(u){switch(u.label){case 0:return[4,this._getCredentials()];case 1:return n=u.sent(),r=e.region,i=e.dangerouslyConnectToHttpEndpointForTesting,o=e.cancelTokenSource,a={},i&&(a={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),(s=new Da(Gs(Gs({region:r,credentials:n},a),{requestHandler:new rs({},t,o),customUserAgent:Object(Vr.b)()}))).middlewareStack.remove("contentLengthMiddleware"),[2,s]}}))}))},e.prototype._getCredentials=function(){return qr.a.get().then((function(e){if(!e)return!1;var t=qr.a.shear(e);return $s.debug("set credentials for storage",t),t})).catch((function(e){return $s.warn("ensure credentials error",e),!1}))},e}(),Qs=function(){return(Qs=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},cu=new Fr.a("StorageClass"),lu="AWSS3",fu=function(){function e(){this._config={},this._pluggables=[],this._cancelTokenSourceMap=new WeakMap,cu.debug("Storage Options",this._config),this.get=this.get.bind(this),this.put=this.put.bind(this),this.remove=this.remove.bind(this),this.list=this.list.bind(this)}return e.prototype.getModuleName=function(){return"Storage"},e.prototype.addPluggable=function(e){if(e&&"Storage"===e.getCategory()){this._pluggables.push(e);return e.configure(this._config[e.getProviderName()])}},e.prototype.getPluggable=function(e){var t=this._pluggables.find((function(t){return t.getProviderName()===e}));return void 0===t?(cu.debug("No plugin found with providerName",e),null):t},e.prototype.removePluggable=function(e){this._pluggables=this._pluggables.filter((function(t){return t.getProviderName()!==e}))},e.prototype.configure=function(e){var t=this;if(cu.debug("configure Storage"),!e)return this._config;var n=Br.a.parseMobilehubConfig(e),r=Object.keys(n.Storage),i=["bucket","region","level","track","customPrefix","serverSideEncryption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"],o=function(e){return i.some((function(t){return t===e}))};return r&&r.find((function(e){return o(e)}))&&!n.Storage.AWSS3&&(n.Storage.AWSS3={}),Object.entries(n.Storage).map((function(e){var t=uu(e,2),r=t[0],i=t[1];r&&o(r)&&void 0!==i&&(n.Storage.AWSS3[r]=i,delete n.Storage[r])})),Object.keys(n.Storage).forEach((function(e){"string"!==typeof n.Storage[e]&&(t._config[e]=ou(ou({},t._config[e]),n.Storage[e]))})),this._pluggables.forEach((function(e){e.configure(t._config[e.getProviderName()])})),0===this._pluggables.length&&this.addPluggable(new iu),this._config},e.prototype.getCancellableTokenSource=function(){return Xa.a.CancelToken.source()},e.prototype.updateRequestToBeCancellable=function(e,t){this._cancelTokenSourceMap.set(e,t)},e.prototype.cancel=function(e,t){var n=this._cancelTokenSourceMap.get(e);n?n.cancel(t):cu.debug("The request does not map to any cancel token")},e.prototype.copy=function(e,t,n){var r=(n||{}).provider,i=void 0===r?lu:r,o=this._pluggables.find((function(e){return e.getProviderName()===i}));if(void 0===o)return cu.debug("No plugin found with providerName",i),Promise.reject("No plugin found in Storage for the provider");var a=this.getCancellableTokenSource(),s=o.copy(e,t,ou(ou({},n),{cancelTokenSource:a}));return this.updateRequestToBeCancellable(s,a),s},e.prototype.get=function(e,t){var n=(t||{}).provider,r=void 0===n?lu:n,i=this._pluggables.find((function(e){return e.getProviderName()===r}));if(void 0===i)return cu.debug("No plugin found with providerName",r),Promise.reject("No plugin found in Storage for the provider");var o=this.getCancellableTokenSource(),a=i.get(e,ou(ou({},t),{cancelTokenSource:o}));return this.updateRequestToBeCancellable(a,o),a},e.prototype.isCancelError=function(e){return Xa.a.isCancel(e)},e.prototype.put=function(e,t,n){var r=(n||{}).provider,i=void 0===r?lu:r,o=this._pluggables.find((function(e){return e.getProviderName()===i}));if(void 0===o)return cu.debug("No plugin found with providerName",i),Promise.reject("No plugin found in Storage for the provider");var a=this.getCancellableTokenSource(),s=o.put(e,t,ou(ou({},n),{cancelTokenSource:a}));return this.updateRequestToBeCancellable(s,a),s},e.prototype.remove=function(e,t){return au(this,void 0,void 0,(function(){var n,r,i;return su(this,(function(o){return n=(t||{}).provider,r=void 0===n?lu:n,void 0===(i=this._pluggables.find((function(e){return e.getProviderName()===r})))?(cu.debug("No plugin found with providerName",r),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,i.remove(e,t)]}))}))},e.prototype.list=function(e,t){return au(this,void 0,void 0,(function(){var n,r,i;return su(this,(function(o){return n=(t||{}).provider,r=void 0===n?lu:n,void 0===(i=this._pluggables.find((function(e){return e.getProviderName()===r})))?(cu.debug("No plugin found with providerName",r),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,i.list(e,t)]}))}))},e}(),du=n(45),hu=function(){return(hu=Object.assign||function(e){for(var t,n=1,r=arguments.length;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(this.props,[]);return function(e){l.forEach((function(t){return delete e[t]}))}(i),i.className=this.props.inputClassName,i.id=this.state.inputId,i.style=n,a.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),a.default.createElement("input",r({},i,{ref:this.inputRef})),a.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?a.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(o.Component);p.propTypes={className:s.default.string,defaultValue:s.default.any,extraWidth:s.default.oneOfType([s.default.number,s.default.string]),id:s.default.string,injectStyles:s.default.bool,inputClassName:s.default.string,inputRef:s.default.func,inputStyle:s.default.object,minWidth:s.default.oneOfType([s.default.number,s.default.string]),onAutosize:s.default.func,onChange:s.default.func,placeholder:s.default.string,placeholderIsMinWidth:s.default.bool,style:s.default.object,value:s.default.any},p.defaultProps={minWidth:1,injectStyles:!0},t.default=p},function(e,t,n){"use strict";var r=n(51),i=n.n(r);t.a=function(e,t){return i()(e,t)}},function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),o=n(22),a=n(6),s=n.n(a),u=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function l(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter((function(t){return t!==e}))},get:function(){return e},set:function(n,r){e=n,t.forEach((function(t){return t(e,r)}))}}}var f=i.a.createContext||function(e,t){var n,i,a="__create-react-context-"+function(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}()+"__",f=function(e){function n(){var t;return(t=e.apply(this,arguments)||this).emitter=l(t.props.value),t}Object(o.a)(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return(e={})[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;((o=r)===(a=i)?0!==o||1/o===1/a:o!==o&&a!==a)?n=0:(n="function"===typeof t?t(r,i):u,0!==(n|=0)&&this.emitter.set(e.value,n))}var o,a},r.render=function(){return this.props.children},n}(r.Component);f.childContextTypes=((n={})[a]=s.a.object.isRequired,n);var d=function(t){function n(){var e;return(e=t.apply(this,arguments)||this).state={value:e.getValue()},e.onUpdate=function(t,n){0!==((0|e.observedBits)&n)&&e.setState({value:e.getValue()})},e}Object(o.a)(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?u:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?u:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return(e=this.props.children,Array.isArray(e)?e[0]:e)(this.state.value);var e},n}(r.Component);return d.contextTypes=((i={})[a]=s.a.object,i),{Provider:f,Consumer:d}};t.a=f}).call(this,n(26))},function(e,t,n){var r=n(329);e.exports=h,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t),t)},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=d;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],d=n[1],h=n.index;if(s+=e.slice(a,h),a=h+f.length,d)s+=d[1];else{var p=e[a],v=n[2],g=n[3],m=n[4],b=n[5],y=n[6],w=n[7];s&&(r.push(s),s="");var _=null!=v&&null!=p&&p!==v,S="+"===y||"*"===y,E="?"===y||"*"===y,O=n[2]||l,k=m||b;r.push({name:g||o++,prefix:v||"",delimiter:O,optional:E,repeat:S,partial:_,asterisk:!!w,pattern:k?c(k):w?".*":"[^"+u(O)+"]+?"})}}return a=0&&this.changeListeners.splice(t,1)},e}(),v=n(38),g=Object(v.b)().isBrowser,m=function(){function e(e){void 0===e&&(e={}),this.cookies=new p,this.store=g?window.localStorage:Object.create(null),this.cookies=e.req?new p(e.req.headers.cookie):new p,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(e.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){var e=this;Array.from(new Array(this.length)).map((function(t,n){return e.key(n)})).forEach((function(t){return e.removeItem(t)}))},e.prototype.getItem=function(e){return this.getLocalItem(e)},e.prototype.getLocalItem=function(e){return Object.prototype.hasOwnProperty.call(this.store,e)?this.store[e]:null},e.prototype.getUniversalItem=function(e){return this.cookies.get(e)},e.prototype.key=function(e){return Object.keys(this.store)[e]},e.prototype.removeItem=function(e){this.removeLocalItem(e),this.removeUniversalItem(e)},e.prototype.removeLocalItem=function(e){delete this.store[e]},e.prototype.removeUniversalItem=function(e){this.cookies.remove(e,{path:"/"})},e.prototype.setItem=function(e,t){switch(this.setLocalItem(e,t),e.split(".").pop()){case"LastAuthUser":case"accessToken":case"idToken":this.setUniversalItem(e,t)}},e.prototype.setLocalItem=function(e,t){this.store[e]=t},e.prototype.setUniversalItem=function(e,t){this.cookies.set(e,t,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},e}(),b=n(285);var y,w=n(45),_=function(){function e(e){var t=e||{},n=t.ValidationData,r=t.Username,i=t.Password,o=t.AuthParameters,a=t.ClientMetadata;this.validationData=n||{},this.authParameters=o||{},this.clientMetadata=a||{},this.username=r,this.password=i}var t=e.prototype;return t.getUsername=function(){return this.username},t.getPassword=function(){return this.password},t.getValidationData=function(){return this.validationData},t.getAuthParameters=function(){return this.authParameters},t.getClientMetadata=function(){return this.clientMetadata},e}(),S=n(13),E=n(32),O=n.n(E),k=(n(255),n(105)),M=n.n(k),T=n(88),x=n.n(T);function C(){if(y){if("function"===typeof y.getRandomValues)try{return y.getRandomValues(new Uint32Array(1))[0]}catch(e){}if("function"===typeof y.randomBytes)try{return y.randomBytes(4).readInt32LE()}catch(e){}}throw new Error("Native crypto module could not be used to get secure random number.")}"undefined"!==typeof window&&window.crypto&&(y=window.crypto),!y&&"undefined"!==typeof window&&window.msCrypto&&(y=window.msCrypto);var A,I=function(){function e(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length}var t=e.prototype;return t.random=function(t){for(var n=[],r=0;r>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")}(this)},e}(),P=R;function R(e,t){null!=e&&this.fromString(e,t)}function j(){return new R(null)}var L="undefined"!==typeof navigator;L&&"Microsoft Internet Explorer"==navigator.appName?(R.prototype.am=function(e,t,n,r,i,o){for(var a=32767&t,s=t>>15;--o>=0;){var u=32767&this[e],c=this[e++]>>15,l=s*u+c*a;i=((u=a*u+((32767&l)<<15)+n[r]+(1073741823&i))>>>30)+(l>>>15)+s*c+(i>>>30),n[r++]=1073741823&u}return i},A=30):L&&"Netscape"!=navigator.appName?(R.prototype.am=function(e,t,n,r,i,o){for(;--o>=0;){var a=t*this[e++]+n[r]+i;i=Math.floor(a/67108864),n[r++]=67108863&a}return i},A=26):(R.prototype.am=function(e,t,n,r,i,o){for(var a=16383&t,s=t>>14;--o>=0;){var u=16383&this[e],c=this[e++]>>14,l=s*u+c*a;i=((u=a*u+((16383&l)<<14)+n[r]+i)>>28)+(l>>14)+s*c,n[r++]=268435455&u}return i},A=28),R.prototype.DB=A,R.prototype.DM=(1<>>16)&&(e=t,n+=16),0!=(t=e>>8)&&(e=t,n+=8),0!=(t=e>>4)&&(e=t,n+=4),0!=(t=e>>2)&&(e=t,n+=2),0!=(t=e>>1)&&(e=t,n+=1),n}function V(e){this.m=e,this.mp=e.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<0&&this.m.subTo(t,t),t},V.prototype.revert=function(e){var t=j();return e.copyTo(t),this.reduce(t),t},V.prototype.reduce=function(e){for(;e.t<=this.mt2;)e[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;for(e[n=t+this.m.t]+=this.m.am(0,r,e,t,0,this.m.t);e[n]>=e.DV;)e[n]-=e.DV,e[++n]++}e.clamp(),e.drShiftTo(this.m.t,e),e.compareTo(this.m)>=0&&e.subTo(this.m,e)},V.prototype.mulTo=function(e,t,n){e.multiplyTo(t,n),this.reduce(n)},V.prototype.sqrTo=function(e,t){e.squareTo(t),this.reduce(t)},R.prototype.copyTo=function(e){for(var t=this.t-1;t>=0;--t)e[t]=this[t];e.t=this.t,e.s=this.s},R.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},R.prototype.fromString=function(e,t){var n;if(16==t)n=4;else if(8==t)n=3;else if(2==t)n=1;else if(32==t)n=5;else{if(4!=t)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");n=2}this.t=0,this.s=0;for(var r=e.length,i=!1,o=0;--r>=0;){var a=B(e,r);a<0?"-"==e.charAt(r)&&(i=!0):(i=!1,0==o?this[this.t++]=a:o+n>this.DB?(this[this.t-1]|=(a&(1<>this.DB-o):this[this.t-1]|=a<=this.DB&&(o-=this.DB))}this.clamp(),i&&R.ZERO.subTo(this,this)},R.prototype.clamp=function(){for(var e=this.s&this.DM;this.t>0&&this[this.t-1]==e;)--this.t},R.prototype.dlShiftTo=function(e,t){var n;for(n=this.t-1;n>=0;--n)t[n+e]=this[n];for(n=e-1;n>=0;--n)t[n]=0;t.t=this.t+e,t.s=this.s},R.prototype.drShiftTo=function(e,t){for(var n=e;n=0;--n)t[n+a+1]=this[n]>>i|s,s=(this[n]&o)<=0;--n)t[n]=0;t[a]=s,t.t=this.t+a+1,t.s=this.s,t.clamp()},R.prototype.rShiftTo=function(e,t){t.s=this.s;var n=Math.floor(e/this.DB);if(n>=this.t)t.t=0;else{var r=e%this.DB,i=this.DB-r,o=(1<>r;for(var a=n+1;a>r;r>0&&(t[this.t-n-1]|=(this.s&o)<>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r-=e.s}t.s=r<0?-1:0,r<-1?t[n++]=this.DV+r:r>0&&(t[n++]=r),t.t=n,t.clamp()},R.prototype.multiplyTo=function(e,t){var n=this.abs(),r=e.abs(),i=n.t;for(t.t=i+r.t;--i>=0;)t[i]=0;for(i=0;i=0;)e[n]=0;for(n=0;n=t.DV&&(e[n+t.t]-=t.DV,e[n+t.t+1]=1)}e.t>0&&(e[e.t-1]+=t.am(n,t[n],e,2*n,0,1)),e.s=0,e.clamp()},R.prototype.divRemTo=function(e,t,n){var r=e.abs();if(!(r.t<=0)){var i=this.abs();if(i.t0?(r.lShiftTo(u,o),i.lShiftTo(u,n)):(r.copyTo(o),i.copyTo(n));var c=o.t,l=o[c-1];if(0!=l){var f=l*(1<1?o[c-2]>>this.F2:0),d=this.FV/f,h=(1<=0&&(n[n.t++]=1,n.subTo(m,n)),R.ONE.dlShiftTo(c,m),m.subTo(o,o);o.t=0;){var b=n[--v]==l?this.DM:Math.floor(n[v]*d+(n[v-1]+p)*h);if((n[v]+=o.am(0,b,n,g,0,c))0&&n.rShiftTo(u,n),a<0&&R.ZERO.subTo(n,n)}}},R.prototype.invDigit=function(){if(this.t<1)return 0;var e=this[0];if(0==(1&e))return 0;var 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},R.prototype.addTo=function(e,t){for(var n=0,r=0,i=Math.min(e.t,this.t);n>=this.DB;if(e.t>=this.DB;r+=this.s}else{for(r+=this.s;n>=this.DB;r+=e.s}t.s=r<0?-1:0,r>0?t[n++]=r:r<-1&&(t[n++]=this.DV+r),t.t=n,t.clamp()},R.prototype.toString=function(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(16==e)t=4;else if(8==e)t=3;else if(2==e)t=1;else if(32==e)t=5;else{if(4!=e)throw new Error("Only radix 2, 4, 8, 16, 32 are supported");t=2}var n,r=(1<0)for(s>s)>0&&(i=!0,o=F(n));a>=0;)s>(s+=this.DB-t)):(n=this[a]>>(s-=t)&r,s<=0&&(s+=this.DB,--a)),n>0&&(i=!0),i&&(o+=F(n));return i?o:"0"},R.prototype.negate=function(){var e=j();return R.ZERO.subTo(this,e),e},R.prototype.abs=function(){return this.s<0?this.negate():this},R.prototype.compareTo=function(e){var t=this.s-e.s;if(0!=t)return t;var n=this.t;if(0!=(t=n-e.t))return this.s<0?-t:t;for(;--n>=0;)if(0!=(t=this[n]-e[n]))return t;return 0},R.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+q(this[this.t-1]^this.s&this.DM)},R.prototype.mod=function(e){var t=j();return this.abs().divRemTo(e,null,t),this.s<0&&t.compareTo(R.ZERO)>0&&e.subTo(t,t),t},R.prototype.equals=function(e){return 0==this.compareTo(e)},R.prototype.add=function(e){var t=j();return this.addTo(e,t),t},R.prototype.subtract=function(e){var t=j();return this.subTo(e,t),t},R.prototype.multiply=function(e){var t=j();return this.multiplyTo(e,t),t},R.prototype.divide=function(e){var t=j();return this.divRemTo(e,t,null),t},R.prototype.modPow=function(e,t,n){var r,i=e.bitLength(),o=z(1),a=new V(t);if(i<=0)return o;r=i<18?1:i<48?3:i<144?4:i<768?5:6;var s=new Array,u=3,c=r-1,l=(1<1){var f=j();for(a.sqrTo(s[1],f);u<=l;)s[u]=j(),a.mulTo(f,s[u-2],s[u]),u+=2}var d,h,p=e.t-1,v=!0,g=j();for(i=q(e[p])-1;p>=0;){for(i>=c?d=e[p]>>i-c&l:(d=(e[p]&(1<0&&(d|=e[p-1]>>this.DB+i-c)),u=r;0==(1&d);)d>>=1,--u;if((i-=u)<0&&(i+=this.DB,--p),v)s[d].copyTo(o),v=!1;else{for(;u>1;)a.sqrTo(o,g),a.sqrTo(g,o),u-=2;u>0?a.sqrTo(o,g):(h=o,o=g,g=h),a.mulTo(g,s[d],o)}for(;p>=0&&0==(e[p]&1<e)&&i}}(n))})((function(t){return new Promise((function(n,i){r.request(e,t,(function(e,t){e?i(e):n(t)}))}))}),[t],5e3).then((function(e){return n(null,e)})).catch((function(e){return n(e)}))},t.request=function(e,t,n){var r,i={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProviderService."+e,"X-Amz-User-Agent":pe.prototype.userAgent},o=Object.assign({},this.fetchOptions,{headers:i,method:"POST",mode:"cors",cache:"no-cache",body:JSON.stringify(t)});fetch(this.endpoint,o).then((function(e){return r=e,e}),(function(e){if(e instanceof TypeError)throw new Error("Network error");throw e})).then((function(e){return e.json().catch((function(){return{}}))})).then((function(e){if(r.ok)return n(null,e);e;var t=(e.__type||e.code).split("#").pop(),i={code:t,name:t,message:e.message||e.Message||null};return n(i)})).catch((function(e){if(!(r&&r.headers&&r.headers.get("x-amzn-errortype"))){if(e instanceof Error&&"Network error"===e.message){var t={code:"NetworkError",name:e.name,message:e.message};return n(t)}return n(e)}try{var i=r.headers.get("x-amzn-errortype").split(":")[0],o={code:i,name:i,statusCode:r.status,message:r.status?r.status.toString():null};return n(o)}catch(a){return n(e)}}))},e}(),ke=function(){},Me=(Error,function(e){return e&&e.nonRetryable});function Te(e,t,n,r){return xe.apply(this,arguments)}function xe(){return(xe=ge(de.a.mark((function e(t,n,r,i){var o;return de.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===i&&(i=1),"function"===typeof t){e.next=3;break}throw Error("functionToRetry must be a function");case 3:return ke(t.name+" attempt #"+i+" with args: "+JSON.stringify(n)),e.prev=4,e.next=7,t.apply(void 0,n);case 7:return e.abrupt("return",e.sent);case 10:if(e.prev=10,e.t0=e.catch(4),ke("error on "+t.name,e.t0),!Me(e.t0)){e.next=16;break}throw ke(t.name+" non retryable error",e.t0),e.t0;case 16:if(o=r(i,n,e.t0),ke(t.name+" retrying in "+o+" ms"),!1===o){e.next=26;break}return e.next=21,new Promise((function(e){return setTimeout(e,o)}));case 21:return e.next=23,Te(t,n,r,i+1);case 23:return e.abrupt("return",e.sent);case 26:throw e.t0;case 27:case"end":return e.stop()}}),e,null,[[4,10]])})))).apply(this,arguments)}var Ce=3e5;var Ae,Ie=function(){function e(e,t){var n=e||{},r=n.UserPoolId,i=n.ClientId,o=n.endpoint,a=n.fetchOptions,s=n.AdvancedSecurityDataCollectionFlag;if(!r||!i)throw new Error("Both UserPoolId and ClientId are required.");if(!/^[\w-]+_.+$/.test(r))throw new Error("Invalid UserPoolId format.");var u=r.split("_")[0];this.userPoolId=r,this.clientId=i,this.client=new Oe(u,o,a),this.advancedSecurityDataCollectionFlag=!1!==s,this.storage=e.Storage||(new ue).getStorage(),t&&(this.wrapRefreshSessionCallback=t)}var t=e.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getClientId=function(){return this.clientId},t.signUp=function(e,t,n,r,i,o){var a=this,s={ClientId:this.clientId,Username:e,Password:t,UserAttributes:n,ValidationData:r,ClientMetadata:o};this.getUserContextData(e)&&(s.UserContextData=this.getUserContextData(e)),this.client.request("SignUp",s,(function(t,n){if(t)return i(t,null);var r={Username:e,Pool:a,Storage:a.storage},o={user:new le(r),userConfirmed:n.UserConfirmed,userSub:n.UserSub,codeDeliveryDetails:n.CodeDeliveryDetails};return i(null,o)}))},t.getCurrentUser=function(){var e="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",t=this.storage.getItem(e);if(t){var n={Username:t,Pool:this,Storage:this.storage};return new le(n)}return null},t.getUserContextData=function(e){if("undefined"!==typeof AmazonCognitoAdvancedSecurityData){var t=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var n=t.getData(e,this.userPoolId,this.clientId);if(n)return{EncodedData:n}}return{}}},e}(),Pe=n(96),Re=function(){function e(e){if(!e.domain)throw new Error("The domain of cookieStorage can not be undefined.");if(this.domain=e.domain,e.path?this.path=e.path:this.path="/",Object.prototype.hasOwnProperty.call(e,"expires")?this.expires=e.expires:this.expires=365,Object.prototype.hasOwnProperty.call(e,"secure")?this.secure=e.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(e,"sameSite")){if(!["strict","lax","none"].includes(e.sameSite))throw new Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===e.sameSite&&!this.secure)throw new Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=e.sameSite}else this.sameSite=null}var t=e.prototype;return t.setItem=function(e,t){var n={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(n.sameSite=this.sameSite),Pe.set(e,t,n),Pe.get(e)},t.getItem=function(e){return Pe.get(e)},t.removeItem=function(e){var t={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(t.sameSite=this.sameSite),Pe.remove(e,t)},t.clear=function(){for(var e=Pe.get(),t=Object.keys(e).length,n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Be="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",ze=function(e,t,n){u.a.dispatch("auth",{event:e,data:t,message:n},"Auth",Be)},qe=new s.a("OAuth"),Ve=function(){function e(e){var t=e.config,n=e.cognitoClientId,r=e.scopes,i=void 0===r?[]:r;if(this._urlOpener=t.urlOpener||Le,this._config=t,this._cognitoClientId=n,!this.isValidScopes(i))throw Error("scopes must be a String Array");this._scopes=i}return e.prototype.isValidScopes=function(e){return Array.isArray(e)&&e.every((function(e){return"string"===typeof e}))},e.prototype.oauthSignIn=function(e,t,n,i,o,a){void 0===e&&(e="code"),void 0===o&&(o=r.Cognito);var s=this._generateState(32),u=a?s+"-"+a.split("").map((function(e){return e.charCodeAt(0).toString(16).padStart(2,"0")})).join(""):s;!function(e){window.sessionStorage.setItem("oauth_state",e)}(u);var c,l=this._generateRandom(128);c=l,window.sessionStorage.setItem("ouath_pkce_key",c);var f=this._generateChallenge(l),d=this._scopes.join(" "),h="https://"+t+"/oauth2/authorize?"+Object.entries(De(De({redirect_uri:n,response_type:e,client_id:i,identity_provider:o,scope:d,state:u},"code"===e?{code_challenge:f}:{}),"code"===e?{code_challenge_method:"S256"}:{})).map((function(e){var t=Fe(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&");qe.debug("Redirecting to "+h),this._urlOpener(h,n)},e.prototype._handleCodeFlow=function(e){return Ne(this,void 0,void 0,(function(){var t,n,r,i,o,s,u,c,l,f,d,h,p,v;return Ue(this,(function(g){switch(g.label){case 0:return t=(Object(je.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=Fe(t,2),i=r[0],o=r[1];return De(De({},e),((n={})[i]=o,n))}),{code:void 0}).code,n=Object(je.parse)(e).pathname||"/",r=Object(je.parse)(this._config.redirectSignIn).pathname||"/",t&&n===r?(i="https://"+this._config.domain+"/oauth2/token",ze("codeFlow",{},"Retrieving tokens from "+i),o=a(this._config)?this._cognitoClientId:this._config.clientID,s=a(this._config)?this._config.redirectSignIn:this._config.redirectUri,u=function(){var e=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),e}(),c=De({grant_type:"authorization_code",code:t,client_id:o,redirect_uri:s},u?{code_verifier:u}:{}),qe.debug("Calling token endpoint: "+i+" with",c),l=Object.entries(c).map((function(e){var t=Fe(e,2),n=t[0],r=t[1];return encodeURIComponent(n)+"="+encodeURIComponent(r)})).join("&"),[4,fetch(i,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:l})]):[2];case 1:return[4,g.sent().json()];case 2:if(f=g.sent(),d=f.access_token,h=f.refresh_token,p=f.id_token,v=f.error)throw new Error(v);return[2,{accessToken:d,refreshToken:h,idToken:p}]}}))}))},e.prototype._handleImplicitFlow=function(e){return Ne(this,void 0,void 0,(function(){var t,n,r;return Ue(this,(function(i){return t=(Object(je.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n,r=Fe(t,2),i=r[0],o=r[1];return De(De({},e),((n={})[i]=o,n))}),{id_token:void 0,access_token:void 0}),n=t.id_token,r=t.access_token,ze("implicitFlow",{},"Got tokens from "+e),qe.debug("Retrieving implicit tokens from "+e+" with"),[2,{accessToken:r,idToken:n,refreshToken:null}]}))}))},e.prototype.handleAuthResponse=function(e){return Ne(this,void 0,void 0,(function(){var t,n,r,i,o,a,s;return Ue(this,(function(u){switch(u.label){case 0:if(u.trys.push([0,5,,6]),t=e?De(De({},(Object(je.parse)(e).hash||"#").substr(1).split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=Fe(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})),(Object(je.parse)(e).query||"").split("&").map((function(e){return e.split("=")})).reduce((function(e,t){var n=Fe(t,2),r=n[0],i=n[1];return e[r]=i,e}),{})):{},n=t.error,r=t.error_description,n)throw new Error(r);return i=this._validateState(t),qe.debug("Starting "+this._config.responseType+" flow with "+e),"code"!==this._config.responseType?[3,2]:(o=[{}],[4,this._handleCodeFlow(e)]);case 1:return[2,De.apply(void 0,[De.apply(void 0,o.concat([u.sent()])),{state:i}])];case 2:return a=[{}],[4,this._handleImplicitFlow(e)];case 3:return[2,De.apply(void 0,[De.apply(void 0,a.concat([u.sent()])),{state:i}])];case 4:return[3,6];case 5:throw s=u.sent(),qe.error("Error handling auth response.",s),s;case 6:return[2]}}))}))},e.prototype._validateState=function(e){if(e){var t=function(){var e=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),e}(),n=e.state;if(t&&t!==n)throw new Error("Invalid state in OAuth flow");return n}},e.prototype.signOut=function(){return Ne(this,void 0,void 0,(function(){var e,t,n;return Ue(this,(function(r){return e="https://"+this._config.domain+"/logout?",t=a(this._config)?this._cognitoClientId:this._config.oauth.clientID,n=a(this._config)?this._config.redirectSignOut:this._config.returnTo,e+=Object.entries({client_id:t,logout_uri:encodeURIComponent(n)}).map((function(e){var t=Fe(e,2);return t[0]+"="+t[1]})).join("&"),ze("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+e),qe.debug("Signing out from "+e),[2,this._urlOpener(e)]}))}))},e.prototype._generateState=function(e){for(var t="",n=e,r="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";n>0;--n)t+=r[Math.round(Math.random()*(r.length-1))];return t},e.prototype._generateChallenge=function(e){return this._base64URL(M()(e))},e.prototype._base64URL=function(e){return e.toString(ee.a).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},e.prototype._generateRandom=function(e){var t=new Uint8Array(e);if("undefined"!==typeof window&&window.crypto)window.crypto.getRandomValues(t);else for(var n=0;n0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]0)&&!(r=o.next()).done;)a.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a},Je=new s.a("AuthClass"),et="aws.cognito.signin.user.admin",tt="undefined"!==typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",nt=function(e,t,n){u.a.dispatch("auth",{event:e,data:t,message:n},"Auth",tt)},rt=new(function(){function e(e){var t=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=c.a,this.wrapRefreshSessionCallback=function(e){return function(t,n){return n?nt("tokenRefresh",void 0,"New token retrieved"):nt("tokenRefresh_failure",t,"Failed to retrieve new token"),e(t,n)}},this.configure(e),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),u.a.listen("auth",(function(e){switch(e.payload.event){case"signIn":t._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":t._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":t._storage.setItem("amplify-signin-with-hostedUI","true")}}))}return e.prototype.getModuleName=function(){return"Auth"},e.prototype.configure=function(e){var t=this;if(!e)return this._config||{};Je.debug("configure Auth");var n=Object.assign({},this._config,l.a.parseMobilehubConfig(e).Auth,e);this._config=n;var r=this._config,i=r.userPoolId,o=r.userPoolWebClientId,s=r.cookieStorage,u=r.oauth,c=r.region,f=r.identityPoolId,d=r.mandatorySignIn,h=r.refreshHandlers,p=r.identityPoolRegion,g=r.clientMetadata,y=r.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw Je.error("The storage in the Auth config is not valid!"),new Error("Empty storage object");this._storage=this._config.storage}else this._storage=s?new Re(s):e.ssr?new m:(new b.a).getStorage();if(this._storageSync=Promise.resolve(),"function"===typeof this._storage.sync&&(this._storageSync=this._storage.sync()),i){var w={UserPoolId:i,ClientId:o,endpoint:y};w.Storage=this._storage,this.userPool=new Ie(w,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:d,region:p||c,userPoolId:i,identityPoolId:f,refreshHandlers:h,storage:this._storage});var _=u?a(this._config.oauth)?u:u.awsCognito:void 0;if(_){var S=Object.assign({cognitoClientId:o,UserPoolId:i,domain:_.domain,scopes:_.scope,redirectSignIn:_.redirectSignIn,redirectSignOut:_.redirectSignOut,responseType:_.responseType,Storage:this._storage,urlOpener:_.urlOpener,clientMetadata:g},_.options);this._oAuthHandler=new Ve({scopes:S.scopes,config:S,cognitoClientId:S.cognitoClientId});var E={};!function(e){if(v.a.browserOrNode().isBrowser&&window.location)e({url:window.location.href});else if(!v.a.browserOrNode().isNode)throw new Error("Not supported")}((function(e){var n=e.url;E[n]||(E[n]=!0,t._handleAuthResponse(n))}))}return nt("configured",null,"The Auth category has been configured successfully"),this._config},e.prototype.signUp=function(e){for(var t=this,n=[],r=1;r1?n-1:0),i=1;i=0||(i[n]=e[n]);return i}(n,["delay","staleId"]);if(g(e)&&!function(e){var t=e.containerId,n=e.toastId,r=e.updateId;return!!(!a.current||m.props.enableMultiContainer&&t!==m.props.containerId||v[n]&&null==r)}(b)){var y=b.toastId,w=b.updateId,_=m.props,S=function(){return E(y)},k=null==b.updateId;k&&s++;var T,x,C={toastId:y,updateId:w,isIn:!1,key:b.key||m.toastKey++,type:b.type,closeToast:S,closeButton:b.closeButton,rtl:_.rtl,position:b.position||_.position,transition:b.transition||_.transition,className:h(b.className||_.toastClassName),bodyClassName:h(b.bodyClassName||_.bodyClassName),style:b.style||_.toastStyle,bodyStyle:b.bodyStyle||_.bodyStyle,onClick:b.onClick||_.onClick,pauseOnHover:l(b.pauseOnHover)?b.pauseOnHover:_.pauseOnHover,pauseOnFocusLoss:l(b.pauseOnFocusLoss)?b.pauseOnFocusLoss:_.pauseOnFocusLoss,draggable:l(b.draggable)?b.draggable:_.draggable,draggablePercent:c(b.draggablePercent)?b.draggablePercent:_.draggablePercent,draggableDirection:b.draggableDirection||_.draggableDirection,closeOnClick:l(b.closeOnClick)?b.closeOnClick:_.closeOnClick,progressClassName:h(b.progressClassName||_.progressClassName),progressStyle:b.progressStyle||_.progressStyle,autoClose:(T=b.autoClose,x=_.autoClose,!1===T||c(T)&&T>0?T:x),hideProgressBar:l(b.hideProgressBar)?b.hideProgressBar:_.hideProgressBar,progress:b.progress,role:f(b.role)?b.role:_.role,deleteToast:function(){!function(e){delete v[e];var n=u.length;(s=p(e)?s-1:s-m.displayedToast)<0&&(s=0);if(n>0){var r=p(e)?1:m.props.limit;if(1===n||1===r)m.displayedToast++,O();else{var i=r>n?n:r;m.displayedToast=i;for(var o=0;o0&&s>_.limit&&k?u.push({toastContent:I,toastProps:C,staleId:o}):c(i)&&i>0?setTimeout((function(){M(I,C,o)}),i):M(I,C,o)}}function M(e,t,n){var r=t.toastId;n&&delete v[n],v[r]={content:e,props:t},o({type:0,toastId:r,staleId:n})}return Object(r.useEffect)((function(){return m.containerId=e.containerId,w.cancelEmit(3).on(0,k).on(1,(function(e){return a.current&&E(e)})).on(5,y).emit(2,m),function(){return w.emit(3,m)}}),[]),Object(r.useEffect)((function(){m.isToastActive=b,m.displayedToast=i.length,w.emit(4,i.length,e.containerId)}),[i]),Object(r.useEffect)((function(){m.props=e})),{getToastToRender:function(t){for(var n={},r=e.newestOnTop?Object.keys(v).reverse():Object.keys(v),i=0;i=1?e.targetTouches[0].clientX:e.clientX}function k(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function M(e){var t=Object(r.useState)(!0),n=t[0],i=t[1],o=Object(r.useState)(!1),a=o[0],s=o[1],u=Object(r.useRef)(null),c=_({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null}),l=_(e,!0),f=e.autoClose,h=e.pauseOnHover,p=e.closeToast,v=e.onClick,g=e.closeOnClick;function m(t){if(e.draggable){var n=u.current;c.canCloseOnClick=!0,c.canDrag=!0,c.boundingRect=n.getBoundingClientRect(),n.style.transition="",c.x=O(t.nativeEvent),c.y=k(t.nativeEvent),"x"===e.draggableDirection?(c.start=c.x,c.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(c.start=c.y,c.removalDistance=n.offsetHeight*(e.draggablePercent/100))}}function b(){if(c.boundingRect){var t=c.boundingRect,n=t.top,r=t.bottom,i=t.left,o=t.right;e.pauseOnHover&&c.x>=i&&c.x<=o&&c.y>=n&&c.y<=r?w():y()}}function y(){i(!0)}function w(){i(!1)}function S(t){if(c.canDrag){t.preventDefault();var r=u.current;n&&w(),c.x=O(t),c.y=k(t),"x"===e.draggableDirection?c.delta=c.x-c.start:c.delta=c.y-c.start,c.start!==c.x&&(c.canCloseOnClick=!1),r.style.transform="translate"+e.draggableDirection+"("+c.delta+"px)",r.style.opacity=""+(1-Math.abs(c.delta/c.removalDistance))}}function E(){var t=u.current;if(c.canDrag){if(c.canDrag=!1,Math.abs(c.delta)>c.removalDistance)return s(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform="translate"+e.draggableDirection+"(0)",t.style.opacity="1"}}Object(r.useEffect)((function(){return d(e.onOpen)&&e.onOpen(Object(r.isValidElement)(e.children)&&e.children.props),function(){d(l.onClose)&&l.onClose(Object(r.isValidElement)(l.children)&&l.children.props)}}),[]),Object(r.useEffect)((function(){return e.draggable&&(document.addEventListener("mousemove",S),document.addEventListener("mouseup",E),document.addEventListener("touchmove",S),document.addEventListener("touchend",E)),function(){e.draggable&&(document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",E),document.removeEventListener("touchmove",S),document.removeEventListener("touchend",E))}}),[e.draggable]),Object(r.useEffect)((function(){return e.pauseOnFocusLoss&&function(){document.hasFocus()||w();window.addEventListener("focus",y),window.addEventListener("blur",w)}(),function(){e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",w))}}),[e.pauseOnFocusLoss]);var M={onMouseDown:m,onTouchStart:m,onMouseUp:b,onTouchEnd:b};return f&&h&&(M.onMouseEnter=w,M.onMouseLeave=y),g&&(M.onClick=function(e){v&&v(e),c.canCloseOnClick&&p()}),{playToast:y,pauseToast:w,isRunning:n,preventExitTransition:a,toastRef:u,eventHandlers:M}}function T(e){var t=e.closeToast,n=e.type,i=e.ariaLabel,o=void 0===i?"close":i;return Object(r.createElement)("button",{className:"Toastify__close-button Toastify__close-button--"+n,type:"button",onClick:function(e){e.stopPropagation(),t(e)},"aria-label":o},Object(r.createElement)("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},Object(r.createElement)("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function x(e){var t,n,i=e.delay,o=e.isRunning,s=e.closeToast,c=e.type,l=e.hide,f=e.className,h=e.style,p=e.controlledProgress,v=e.progress,g=e.rtl,m=e.isIn,b=u({},h,{animationDuration:i+"ms",animationPlayState:o?"running":"paused",opacity:l?0:1});p&&(b.transform="scaleX("+v+")");var y=a("Toastify__progress-bar",p?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated","Toastify__progress-bar--"+c,((t={})["Toastify__progress-bar--rtl"]=g,t)),w=d(f)?f({rtl:g,type:c,defaultClassName:y}):a(y,f),_=((n={})[p&&v>=1?"onTransitionEnd":"onAnimationEnd"]=p&&v<1?null:function(){m&&s()},n);return Object(r.createElement)("div",Object.assign({role:"progressbar","aria-hidden":l?"true":"false","aria-label":"notification timer",className:w,style:b},_))}x.defaultProps={type:b.DEFAULT,hide:!1};var C=function(e){var t,n=M(e),i=n.isRunning,o=n.preventExitTransition,s=n.toastRef,u=n.eventHandlers,c=e.closeButton,l=e.children,f=e.autoClose,h=e.onClick,p=e.type,v=e.hideProgressBar,g=e.closeToast,m=e.transition,b=e.position,y=e.className,w=e.style,_=e.bodyClassName,S=e.bodyStyle,E=e.progressClassName,O=e.progressStyle,k=e.updateId,T=e.role,C=e.progress,A=e.rtl,I=e.toastId,P=e.deleteToast,R=e.isIn,j=a("Toastify__toast","Toastify__toast--"+p,((t={})["Toastify__toast--rtl"]=A,t)),L=d(y)?y({rtl:A,position:b,type:p,defaultClassName:j}):a(j,y),D=!!C;return Object(r.createElement)(m,{isIn:R,done:P,position:b,preventExitTransition:o,nodeRef:s},Object(r.createElement)("div",Object.assign({id:I,onClick:h,className:L},u,{style:w,ref:s}),Object(r.createElement)("div",Object.assign({},R&&{role:T},{className:d(_)?_({type:p}):a("Toastify__toast-body",_),style:S}),l),function(e){if(e){var t={closeToast:g,type:p};return d(e)?e(t):Object(r.isValidElement)(e)?Object(r.cloneElement)(e,t):void 0}}(c),(f||D)&&Object(r.createElement)(x,Object.assign({},k&&!D?{key:"pb-"+k}:{},{rtl:A,delay:f,isRunning:i,isIn:R,closeToast:g,hide:v,type:p,style:O,className:E,controlledProgress:D,progress:C}))))},A=y({enter:"Toastify--animate Toastify__bounce-enter",exit:"Toastify--animate Toastify__bounce-exit",appendPosition:!0}),I=function(e){var t=E(e),n=t.getToastToRender,i=t.containerRef,o=t.isToastActive,s=e.className,c=e.style,l=e.rtl,f=e.containerId;function p(e){var t,n=a("Toastify__toast-container","Toastify__toast-container--"+e,((t={})["Toastify__toast-container--rtl"]=l,t));return d(s)?s({position:e,rtl:l,defaultClassName:n}):a(n,h(s))}return Object(r.createElement)("div",{ref:i,className:"Toastify",id:f},n((function(e,t){var n=0===t.length?u({},c,{pointerEvents:"none"}):u({},c);return Object(r.createElement)("div",{className:p(e),style:n,key:"container-"+e},t.map((function(e){var t=e.content,n=e.props;return Object(r.createElement)(C,Object.assign({},n,{isIn:o(n.toastId),key:"toast-"+n.key,closeButton:!0===n.closeButton?T:n.closeButton}),t)})))})))};I.defaultProps={position:m.TOP_RIGHT,transition:A,rtl:!1,autoClose:5e3,hideProgressBar:!1,closeButton:T,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,newestOnTop:!1,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert"};var P,R,j,L=new Map,D=[],N=!1;function U(){return Math.random().toString(36).substr(2,9)}function F(e){return e&&(f(e.toastId)||c(e.toastId))?e.toastId:U()}function B(e,t){return L.size>0?w.emit(0,e,t):(D.push({content:e,options:t}),N&&v&&(N=!1,R=document.createElement("div"),document.body.appendChild(R),Object(s.render)(Object(r.createElement)(I,Object.assign({},j)),R))),t.toastId}function z(e,t){return u({},t,{type:t&&t.type||e,toastId:F(t)})}var q=function(e){return function(t,n){return B(t,z(e,n))}},V=function(e,t){return B(e,z(b.DEFAULT,t))};V.success=q(b.SUCCESS),V.info=q(b.INFO),V.error=q(b.ERROR),V.warning=q(b.WARNING),V.dark=q(b.DARK),V.warn=V.warning,V.dismiss=function(e){return w.emit(1,e)},V.clearWaitingQueue=function(e){return void 0===e&&(e={}),w.emit(5,e)},V.isActive=function(e){var t=!1;return L.forEach((function(n){n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},V.update=function(e,t){void 0===t&&(t={}),setTimeout((function(){var n=function(e,t){var n=t.containerId,r=L.get(n||P);return r?r.getToast(e):null}(e,t);if(n){var r=n.props,i=n.content,o=u({},r,t,{toastId:t.toastId||e,updateId:U()});o.toastId!==e&&(o.staleId=e);var a=o.render||i;delete o.render,B(a,o)}}),0)},V.done=function(e){V.update(e,{progress:1})},V.onChange=function(e){return d(e)&&w.on(4,e),function(){d(e)&&w.off(4,e)}},V.configure=function(e){void 0===e&&(e={}),N=!0,j=e},V.POSITION=m,V.TYPE=b,w.on(2,(function(e){P=e.containerId||e,L.set(P,e),D.forEach((function(e){w.emit(0,e.content,e.options)})),D=[]})).on(3,(function(e){L.delete(e.containerId||e),0===L.size&&w.off(0).off(1).off(5),v&&R&&document.body.removeChild(R)}))},function(e,t,n){"use strict";(function(e){var r=n(1),i=n.n(r),o=n(6),a=n.n(o),s=n(495);function u(e,t){for(var n=0;nw},R=function(e){return function(e){var t=g[e].b;return v+t+y}(e)>_},j=function(e){return function(e){return k(e)<0}(e)||P(e)||function(e){return I(e)<0}(e)||R(e)},L=function(e){return!j(e)},D=["top","bottom","left","right"],N=[],U=0;U<4;U++){var F=D[U];L(F)&&N.push(F)}var B,z=!1,q=i!==r;return L(i)&&q?(z=!0,B=i):N.length>0&&j(i)&&j(r)&&(z=!0,B=N[0]),z?{isNewState:!0,newState:{place:B}}:{isNewState:!1,position:{left:parseInt(k(r)-O,10),top:parseInt(I(r)-E,10)}}}var M=function(e){var t=e.getBoundingClientRect(),n=t.height,r=t.width;return{height:parseInt(n,10),width:parseInt(r,10)}},T=function(e,t,n){var r=t.getBoundingClientRect(),i=r.top,o=r.left,a=M(t),s=a.width,u=a.height;return"float"===n?{mouseX:e.clientX,mouseY:e.clientY}:{mouseX:o+s/2,mouseY:i+u/2}},x=function(e,t,n,r,i){var o,a,s,u;return"float"===e?(o={l:-r/2,r:r/2,t:-(i+3+2),b:-3},s={l:-r/2,r:r/2,t:15,b:i+3+2+12},u={l:-(r+3+2),r:-3,t:-i/2,b:i/2},a={l:3,r:r+3+2,t:-i/2,b:i/2}):"solid"===e&&(o={l:-r/2,r:r/2,t:-(n/2+i+2),b:-n/2},s={l:-r/2,r:r/2,t:n/2,b:n/2+i+2},u={l:-(r+t/2+2),r:-t/2,t:-i/2,b:i/2},a={l:t/2,r:r+t/2+2,t:-i/2,b:i/2}),{top:o,bottom:s,left:u,right:a}},C=function(e){var t=0,n=0;for(var r in"[object String]"===Object.prototype.toString.apply(e)&&(e=JSON.parse(e.toString().replace(/'/g,'"'))),e)"top"===r?n-=parseInt(e[r],10):"bottom"===r?n+=parseInt(e[r],10):"left"===r?t-=parseInt(e[r],10):"right"===r&&(t+=parseInt(e[r],10));return{extraOffsetX:t,extraOffsetY:n}},A=function(e){for(var t=e;t;){var n=window.getComputedStyle(t);if("none"!==n.getPropertyValue("transform")||"transform"===n.getPropertyValue("will-change"))break;t=t.parentElement}return{parentTop:t&&t.getBoundingClientRect().top||0,parentLeft:t&&t.getBoundingClientRect().left||0}};function I(e,t,n,r){if(t)return t;if(void 0!==n&&null!==n)return n;if(null===n)return null;var o=//;return r&&"false"!==r&&o.test(e)?e.split(o).map((function(e,t){return i.a.createElement("span",{key:t,className:"multi-line"},e)})):e}function P(e){var t={};return Object.keys(e).filter((function(e){return/(^aria-\w+$|^role$)/.test(e)})).forEach((function(n){t[n]=e[n]})),t}function R(e){var t=e.length;return e.hasOwnProperty?Array.prototype.slice.call(e):new Array(t).fill().map((function(t){return e[t]}))}var j={dark:{text:"#fff",background:"#222",border:"transparent",arrow:"#222"},success:{text:"#fff",background:"#8DC572",border:"transparent",arrow:"#8DC572"},warning:{text:"#fff",background:"#F0AD4E",border:"transparent",arrow:"#F0AD4E"},error:{text:"#fff",background:"#BE6464",border:"transparent",arrow:"#BE6464"},info:{text:"#fff",background:"#337AB7",border:"transparent",arrow:"#337AB7"},light:{text:"#222",background:"#fff",border:"transparent",arrow:"#fff"}};function L(e,t,n,r){return function(e,t){var n=t.text,r=t.background,i=t.border,o=t.arrow;return"\n \t.".concat(e," {\n\t color: ").concat(n,";\n\t background: ").concat(r,";\n\t border: 1px solid ").concat(i,";\n \t}\n\n \t.").concat(e,".place-top {\n margin-top: -10px;\n }\n .").concat(e,".place-top::before {\n border-top: 8px solid ").concat(i,";\n }\n .").concat(e,".place-top::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n bottom: -6px;\n left: 50%;\n margin-left: -8px;\n border-top-color: ").concat(o,";\n border-top-style: solid;\n border-top-width: 6px;\n }\n\n .").concat(e,".place-bottom {\n margin-top: 10px;\n }\n .").concat(e,".place-bottom::before {\n border-bottom: 8px solid ").concat(i,";\n }\n .").concat(e,".place-bottom::after {\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n top: -6px;\n left: 50%;\n margin-left: -8px;\n border-bottom-color: ").concat(o,";\n border-bottom-style: solid;\n border-bottom-width: 6px;\n }\n\n .").concat(e,".place-left {\n margin-left: -10px;\n }\n .").concat(e,".place-left::before {\n border-left: 8px solid ").concat(i,";\n }\n .").concat(e,".place-left::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n right: -6px;\n top: 50%;\n margin-top: -4px;\n border-left-color: ").concat(o,";\n border-left-style: solid;\n border-left-width: 6px;\n }\n\n .").concat(e,".place-right {\n margin-left: 10px;\n }\n .").concat(e,".place-right::before {\n border-right: 8px solid ").concat(i,";\n }\n .").concat(e,".place-right::after {\n border-top: 5px solid transparent;\n border-bottom: 5px solid transparent;\n left: -6px;\n top: 50%;\n margin-top: -4px;\n border-right-color: ").concat(o,";\n border-right-style: solid;\n border-right-width: 6px;\n }\n ")}(e,function(e,t,n){var r=e.text,i=e.background,o=e.border,a=e.arrow?e.arrow:e.background,s=function(e){return j[e]?h({},j[e]):void 0}(t);r&&(s.text=r);i&&(s.background=i);n&&(s.border=o||("light"===t?"black":"white"));a&&(s.arrow=a);return s}(t,n,r))}var D="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:"undefined"!==typeof self?self:{};function N(e,t){return e(t={exports:{}},t.exports),t.exports}var U=function(e){return e&&e.Math==Math&&e},F=U("object"==typeof globalThis&&globalThis)||U("object"==typeof window&&window)||U("object"==typeof self&&self)||U("object"==typeof D&&D)||function(){return this}()||Function("return this")(),B=function(e){try{return!!e()}catch(t){return!0}},z=!B((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),q={}.propertyIsEnumerable,V=Object.getOwnPropertyDescriptor,H={f:V&&!q.call({1:2},1)?function(e){var t=V(this,e);return!!t&&t.enumerable}:q},W=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},G={}.toString,K=function(e){return G.call(e).slice(8,-1)},Y="".split,$=B((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==K(e)?Y.call(e,""):Object(e)}:Object,X=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},Q=function(e){return $(X(e))},Z=function(e){return"object"===typeof e?null!==e:"function"===typeof e},J=function(e,t){if(!Z(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!Z(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!Z(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!Z(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},ee=function(e){return Object(X(e))},te={}.hasOwnProperty,ne=function(e,t){return te.call(ee(e),t)},re=F.document,ie=Z(re)&&Z(re.createElement),oe=function(e){return ie?re.createElement(e):{}},ae=!z&&!B((function(){return 7!=Object.defineProperty(oe("div"),"a",{get:function(){return 7}}).a})),se=Object.getOwnPropertyDescriptor,ue={f:z?se:function(e,t){if(e=Q(e),t=J(t,!0),ae)try{return se(e,t)}catch(n){}if(ne(e,t))return W(!H.f.call(e,t),e[t])}},ce=function(e){if(!Z(e))throw TypeError(String(e)+" is not an object");return e},le=Object.defineProperty,fe={f:z?le:function(e,t,n){if(ce(e),t=J(t,!0),ce(n),ae)try{return le(e,t,n)}catch(r){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},de=z?function(e,t,n){return fe.f(e,t,W(1,n))}:function(e,t,n){return e[t]=n,e},he=function(e,t){try{de(F,e,t)}catch(n){F[e]=t}return t},pe="__core-js_shared__",ve=F[pe]||he(pe,{}),ge=Function.toString;"function"!=typeof ve.inspectSource&&(ve.inspectSource=function(e){return ge.call(e)});var me,be,ye,we=ve.inspectSource,_e=F.WeakMap,Se="function"===typeof _e&&/native code/.test(we(_e)),Ee=N((function(e){(e.exports=function(e,t){return ve[e]||(ve[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.12.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"})})),Oe=0,ke=Math.random(),Me=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++Oe+ke).toString(36)},Te=Ee("keys"),xe=function(e){return Te[e]||(Te[e]=Me(e))},Ce={},Ae="Object already initialized",Ie=F.WeakMap;if(Se||ve.state){var Pe=ve.state||(ve.state=new Ie),Re=Pe.get,je=Pe.has,Le=Pe.set;me=function(e,t){if(je.call(Pe,e))throw new TypeError(Ae);return t.facade=e,Le.call(Pe,e,t),t},be=function(e){return Re.call(Pe,e)||{}},ye=function(e){return je.call(Pe,e)}}else{var De=xe("state");Ce[De]=!0,me=function(e,t){if(ne(e,De))throw new TypeError(Ae);return t.facade=e,de(e,De,t),t},be=function(e){return ne(e,De)?e[De]:{}},ye=function(e){return ne(e,De)}}var Ne,Ue,Fe={set:me,get:be,has:ye,enforce:function(e){return ye(e)?be(e):me(e,{})},getterFor:function(e){return function(t){var n;if(!Z(t)||(n=be(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}},Be=N((function(e){var t=Fe.get,n=Fe.enforce,r=String(String).split("String");(e.exports=function(e,t,i,o){var a,s=!!o&&!!o.unsafe,u=!!o&&!!o.enumerable,c=!!o&&!!o.noTargetGet;"function"==typeof i&&("string"!=typeof t||ne(i,"name")||de(i,"name",t),(a=n(i)).source||(a.source=r.join("string"==typeof t?t:""))),e!==F?(s?!c&&e[t]&&(u=!0):delete e[t],u?e[t]=i:de(e,t,i)):u?e[t]=i:he(t,i)})(Function.prototype,"toString",(function(){return"function"==typeof this&&t(this).source||we(this)}))})),ze=F,qe=function(e){return"function"==typeof e?e:void 0},Ve=function(e,t){return arguments.length<2?qe(ze[e])||qe(F[e]):ze[e]&&ze[e][t]||F[e]&&F[e][t]},He=Math.ceil,We=Math.floor,Ge=function(e){return isNaN(e=+e)?0:(e>0?We:He)(e)},Ke=Math.min,Ye=function(e){return e>0?Ke(Ge(e),9007199254740991):0},$e=Math.max,Xe=Math.min,Qe=function(e){return function(t,n,r){var i,o=Q(t),a=Ye(o.length),s=function(e,t){var n=Ge(e);return n<0?$e(n+t,0):Xe(n,t)}(r,a);if(e&&n!=n){for(;a>s;)if((i=o[s++])!=i)return!0}else for(;a>s;s++)if((e||s in o)&&o[s]===n)return e||s||0;return!e&&-1}},Ze={includes:Qe(!0),indexOf:Qe(!1)}.indexOf,Je=function(e,t){var n,r=Q(e),i=0,o=[];for(n in r)!ne(Ce,n)&&ne(r,n)&&o.push(n);for(;t.length>i;)ne(r,n=t[i++])&&(~Ze(o,n)||o.push(n));return o},et=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],tt=et.concat("length","prototype"),nt={f:Object.getOwnPropertyNames||function(e){return Je(e,tt)}},rt={f:Object.getOwnPropertySymbols},it=Ve("Reflect","ownKeys")||function(e){var t=nt.f(ce(e)),n=rt.f;return n?t.concat(n(e)):t},ot=function(e,t){for(var n=it(t),r=fe.f,i=ue.f,o=0;o=74)&&(Ne=gt.match(/Chrome\/(\d+)/))&&(Ue=Ne[1]);var wt,_t=Ue&&+Ue,St=!!Object.getOwnPropertySymbols&&!B((function(){return!String(Symbol())||!Symbol.sham&&_t&&_t<41})),Et=St&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Ot=Ee("wks"),kt=F.Symbol,Mt=Et?kt:kt&&kt.withoutSetter||Me,Tt=function(e){return ne(Ot,e)&&(St||"string"==typeof Ot[e])||(St&&ne(kt,e)?Ot[e]=kt[e]:Ot[e]=Mt("Symbol."+e)),Ot[e]},xt=Tt("species"),Ct=function(e,t){var n;return vt(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!vt(n.prototype)?Z(n)&&null===(n=n[xt])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)},At=[].push,It=function(e){var t=1==e,n=2==e,r=3==e,i=4==e,o=6==e,a=7==e,s=5==e||o;return function(u,c,l,f){for(var d,h,p=ee(u),v=$(p),g=pt(c,l,3),m=Ye(v.length),b=0,y=f||Ct,w=t?y(u,m):n||a?y(u,0):void 0;m>b;b++)if((s||b in v)&&(h=g(d=v[b],b,p),e))if(t)w[b]=h;else if(h)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:At.call(w,d)}else switch(e){case 4:return!1;case 7:At.call(w,d)}return o?-1:r||i?i:w}},Pt={forEach:It(0),map:It(1),filter:It(2),some:It(3),every:It(4),find:It(5),findIndex:It(6),filterOut:It(7)},Rt=Object.keys||function(e){return Je(e,et)},jt=z?Object.defineProperties:function(e,t){ce(e);for(var n,r=Rt(t),i=r.length,o=0;i>o;)fe.f(e,n=r[o++],t[n]);return e},Lt=Ve("document","documentElement"),Dt=xe("IE_PROTO"),Nt=function(){},Ut=function(e){return"