PageSourceSearch

https://data.afmcluster.com/_next/static/chunks/pages/_app-cb49876b07b22f67.js

js afmcluster.com collected 2026-10-06 05:51:53 UTC 1,039,075 bytes, 98 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[888],{6743:function(t,a,s){"use strict";function getLocation(t,a){for(var s,c=/\r\n|[\n\r]/g,f=1,p=a+1;(s=c.exec(t.body))&&s.index<a;)f+=1,p=a+1-(s.index+s[0].length);return{line:f,column:p}}function highlightSourceAtLocation(t,a){var s=t.locationOffset.column-1,c=whitespace(s)+t.body,f=a.line-1,p=t.locationOffset.line-1,g=a.line+p,m=1===a.line?s:0,v=a.column+m,y=c.split(/\r\n|[\n\r]/g);return"".concat(t.name," (").concat(g,":").concat(v,")\n")+function(t){var a=t.filter(function(t){return t[0],void 0!==t[1]}),s=0,c=!0,f=!1,p=void 0;try{for(var g,m=a[Symbol.iterator]();!(c=(g=m.next()).done);c=!0){var v=g.value[0];s=Math.max(s,v.length)}}catch(t){f=!0,p=t}finally{try{c||null==m.return||m.return()}finally{if(f)throw p}}return a.map(function(t){var a=t[0],c=t[1];return whitespace(s-a.length)+a+c}).join("\n")}([["".concat(g-1,": "),y[f-1]],["".concat(g,": "),y[f]],["",whitespace(v-1)+"^"],["".concat(g+1,": "),y[f+1]]])}function whitespace(t){return Array(t+1).join(" ")}function GraphQLError(t,a,s,c,f,p,g){var m,v=Array.isArray(a)?0!==a.length?a:void 0:a?[a]:void 0,y=s;if(!y&&v){var _=v[0];y=_&&_.loc&&_.loc.source}var b=c;!b&&v&&(b=v.reduce(function(t,a){return a.loc&&t.push(a.loc.start),t},[])),b&&0===b.length&&(b=void 0),c&&s?m=c.map(function(t){return getLocation(s,t)}):v&&(m=v.reduce(function(t,a){return a.loc&&t.push(getLocation(a.loc.source,a.loc.start)),t},[]));var S=g||p&&p.extensions;Object.defineProperties(this,{message:{value:t,enumerable:!0,writable:!0},locations:{value:m||void 0,enumerable:!!m},path:{value:f||void 0,enumerable:!!f},nodes:{value:v||void 0},source:{value:y||void 0},positions:{value:b||void 0},originalError:{value:p},extensions:{value:S||void 0,enumerable:!!S}}),p&&p.stack?Object.defineProperty(this,"stack",{value:p.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,GraphQLError):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}s.d(a,{xC:function(){return eR},wT:function(){return graphqlOperation}}),GraphQLError.prototype=Object.create(Error.prototype,{constructor:{value:GraphQLError},name:{value:"GraphQLError"},toString:{value:function(){return function(t){var a=[];if(t.nodes){var s=!0,c=!1,f=void 0;try{for(var p,g=t.nodes[Symbol.iterator]();!(s=(p=g.next()).done);s=!0){var m=p.value;m.loc&&a.push(highlightSourceAtLocation(m.loc.source,getLocation(m.loc.source,m.loc.start)))}}catch(t){c=!0,f=t}finally{try{s||null==g.return||g.return()}finally{if(c)throw f}}}else if(t.source&&t.locations){var v=t.source,y=!0,_=!1,b=void 0;try{for(var S,w=t.locations[Symbol.iterator]();!(y=(S=w.next()).done);y=!0){var C=S.value;a.push(highlightSourceAtLocation(v,C))}}catch(t){_=!0,b=t}finally{try{y||null==w.return||w.return()}finally{if(_)throw b}}}return 0===a.length?t.message:[t.message].concat(a).join("\n\n")+"\n"}(this)}}});var c,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},T={};function isNode(t){return!!(t&&"string"==typeof t.kind)}function print(t){return function(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:I,c=void 0,f=Array.isArray(t),p=[t],g=-1,m=[],v=void 0,y=void 0,_=void 0,b=[],S=[],w=t;do{var C=++g===p.length,E=C&&0!==m.length;if(C){if(y=0===S.length?void 0:b[b.length-1],v=_,_=S.pop(),E){if(f)v=v.slice();else{var x={};for(var P in v)v.hasOwnProperty(P)&&(x[P]=v[P]);v=x}for(var k=0,O=0;O<m.length;O++){var R=m[O][0],M=m[O][1];f&&(R-=k),f&&null===M?(v.splice(R,1),k++):v[R]=M}}g=c.index,p=c.keys,m=c.edits,f=c.inArray,c=c.prev}else{if(y=_?f?g:p[g]:void 0,null==(v=_?_[y]:w))continue;
1_&&b.push(y)}var N=void 0;if(!Array.isArray(v)){if(!isNode(v))throw Error("Invalid AST Node: "+JSON.stringify(v));var U=function(t,a,s){var c=t[a];if(c){if(!s&&"function"==typeof c)return c;var f=s?c.leave:c.enter;if("function"==typeof f)return f}else{var p=s?t.leave:t.enter;if(p){if("function"==typeof p)return p;var g=p[a];if("function"==typeof g)return g}}}(a,v.kind,C);if(U){if((N=U.call(a,v,y,_,b,S))===T)break;if(!1===N){if(!C){b.pop();continue}}else if(void 0!==N&&(m.push([y,N]),!C)){if(isNode(N))v=N;else{b.pop();continue}}}}void 0===N&&E&&m.push([y,v]),C?b.pop():(c={inArray:f,index:g,keys:p,edits:m,prev:c},p=(f=Array.isArray(v))?v:s[v.kind]||[],g=-1,m=[],_&&S.push(_),_=v)}while(void 0!==c);return 0!==m.length&&(w=m[m.length-1][1]),w}(t,{leave:k})}var k={Name:function(t){return t.value},Variable:function(t){return"$"+t.name},Document:function(t){return join(t.definitions,"\n\n")+"\n"},OperationDefinition:function(t){var a=t.operation,s=t.name,c=wrap("(",join(t.variableDefinitions,", "),")"),f=join(t.directives," "),p=t.selectionSet;return s||f||c||"query"!==a?join([a,join([s,c]),f,p]," "):p},VariableDefinition:function(t){var a=t.variable,s=t.type,c=t.defaultValue,f=t.directives;return a+": "+s+wrap(" = ",c)+wrap(" ",join(f," "))},SelectionSet:function(t){return block(t.selections)},Field:function(t){var a=t.alias,s=t.name,c=t.arguments,f=t.directives,p=t.selectionSet;return join([wrap("",a,": ")+s+wrap("(",join(c,", "),")"),join(f," "),p]," ")},Argument:function(t){return t.name+": "+t.value},FragmentSpread:function(t){return"..."+t.name+wrap(" ",join(t.directives," "))},InlineFragment:function(t){var a=t.typeCondition,s=t.directives,c=t.selectionSet;return join(["...",wrap("on ",a),join(s," "),c]," ")},FragmentDefinition:function(t){var a=t.name,s=t.typeCondition,c=t.variableDefinitions,f=t.directives,p=t.selectionSet;return"fragment ".concat(a).concat(wrap("(",join(c,", "),")")," ")+"on ".concat(s," ").concat(wrap("",join(f," ")," "))+p},IntValue:function(t){return t.value},FloatValue:function(t){return t.value},StringValue:function(t,a){var s,c=t.value;return t.block?(s=c.replace(/"""/g,'\\"""'),(" "===c[0]||"	"===c[0])&&-1===c.indexOf("\n")?'"""'.concat(s.replace(/"$/,'"\n'),'"""'):'"""\n'.concat("description"===a?s:indent(s),'\n"""')):JSON.stringify(c)},BooleanValue:function(t){return t.value?"true":"false"},NullValue:function(){return"null"},EnumValue:function(t){return t.value},ListValue:function(t){return"["+join(t.values,", ")+"]"},ObjectValue:function(t){return"{"+join(t.fields,", ")+"}"},ObjectField:function(t){return t.name+": "+t.value},Directive:function(t){return"@"+t.name+wrap("(",join(t.arguments,", "),")")},NamedType:function(t){return t.name},ListType:function(t){return"["+t.type+"]"},NonNullType:function(t){return t.type+"!"},SchemaDefinition:function(t){var a=t.directives,s=t.operationTypes;return join(["schema",join(a," "),block(s)]," ")},OperationTypeDefinition:function(t){return t.operation+": "+t.type},ScalarTypeDefinition:addDescription(function(t){return join(["scalar",t.name,join(t.directives," ")]," ")}),ObjectTypeDefinition:addDescription(function(t){var a=t.name,s=t.interfaces,c=t.directives,f=t.fields;return join(["type",a,wrap("implements ",join(s," & ")),join(c," "),block(f)]," ")}),FieldDefinition:addDescription(function(t){var a=t.name,s=t.arguments,c=t.type,f=t.directives;return a+(s.every(function(t){return -1===t.indexOf("\n")})?wrap("(",join(s,", "),")"):wrap("(\n",indent(join(s,"\n")),"\n)"))+": "+c+wrap(" ",join(f," "))}),InputValueDefinition:addDescription(function(t){var a=t.name,s=t.type,c=t.defaultValue,f=t.directives;return join([a+": "+s,wrap("= ",c),join(f," ")]," ")}),InterfaceTypeDefinition:addDescription(function(t){var a=t.name,s=t.directives,c=t.fields;return join(["interface",a,join(s," "),block(c)]," ")}),UnionTypeDefinition:addDescription(function(t){var a=t.name,s=t.directives,c=t.types;return join(["union",a,join(s," "),c&&0!==c.length?"= "+join(c," | "):""]," ")}),EnumTypeDefinition:addDescription(function(t){var a=t.name,s=t.directives,c=t.values;return join(["enum",a,join(s," "),block(c)]," ")}
1),EnumValueDefinition:addDescription(function(t){return join([t.name,join(t.directives," ")]," ")}),InputObjectTypeDefinition:addDescription(function(t){var a=t.name,s=t.directives,c=t.fields;return join(["input",a,join(s," "),block(c)]," ")}),DirectiveDefinition:addDescription(function(t){var a=t.name,s=t.arguments,c=t.locations;return"directive @"+a+(s.every(function(t){return -1===t.indexOf("\n")})?wrap("(",join(s,", "),")"):wrap("(\n",indent(join(s,"\n")),"\n)"))+" on "+join(c," | ")}),SchemaExtension:function(t){var a=t.directives,s=t.operationTypes;return join(["extend schema",join(a," "),block(s)]," ")},ScalarTypeExtension:function(t){return join(["extend scalar",t.name,join(t.directives," ")]," ")},ObjectTypeExtension:function(t){var a=t.name,s=t.interfaces,c=t.directives,f=t.fields;return join(["extend type",a,wrap("implements ",join(s," & ")),join(c," "),block(f)]," ")},InterfaceTypeExtension:function(t){var a=t.name,s=t.directives,c=t.fields;return join(["extend interface",a,join(s," "),block(c)]," ")},UnionTypeExtension:function(t){var a=t.name,s=t.directives,c=t.types;return join(["extend union",a,join(s," "),c&&0!==c.length?"= "+join(c," | "):""]," ")},EnumTypeExtension:function(t){var a=t.name,s=t.directives,c=t.values;return join(["extend enum",a,join(s," "),block(c)]," ")},InputObjectTypeExtension:function(t){var a=t.name,s=t.directives,c=t.fields;return join(["extend input",a,join(s," "),block(c)]," ")}};function addDescription(t){return function(a){return join([a.description,t(a)],"\n")}}function join(t,a){return t?t.filter(function(t){return t}).join(a||""):""}function block(t){return t&&0!==t.length?"{\n"+indent(join(t,"\n"))+"\n}":""}function wrap(t,a,s){return a?t+a+(s||""):""}function indent(t){return t&&"  "+t.replace(/\n/g,"\n  ")}function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function invariant(t,a){if(!t)throw Error(a)}function _defineProperty(t,a,s){return a in t?Object.defineProperty(t,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[a]=s,t}var source_Source=function(t,a,s){_defineProperty(this,"body",void 0),_defineProperty(this,"name",void 0),_defineProperty(this,"locationOffset",void 0),this.body=t,this.name=a||"GraphQL request",this.locationOffset=s||{line:1,column:1},this.locationOffset.line>0||invariant(0,"line in locationOffset is 1-indexed and must be positive"),this.locationOffset.column>0||invariant(0,"column in locationOffset is 1-indexed and must be positive")};function syntaxError(t,a,s){return new GraphQLError("Syntax Error: ".concat(s),void 0,t,[a])}function leadingWhitespace(t){for(var a=0;a<t.length&&(" "===t[a]||"	"===t[a]);)a++;return a}function isBlank(t){return leadingWhitespace(t)===t.length}function advanceLexer(){return this.lastToken=this.token,this.token=this.lookahead()}function lookahead(){var t=this.token;if(t.kind!==O.EOF)do t=t.next||(t.next=function(t,a){var s=t.source,c=s.body,f=c.length,p=function(t,a,s){for(var c=t.length,f=a;f<c;){var p=R.call(t,f);if(9===p||32===p||44===p||65279===p)++f;else if(10===p)++f,++s.line,s.lineStart=f;else if(13===p)10===R.call(t,f+1)?f+=2:++f,++s.line,s.lineStart=f;else break}return f}(c,a.end,t),g=t.line,m=1+p-t.lineStart;if(p>=f)return new Tok(O.EOF,f,f,g,m,a);var v=R.call(c,p);switch(v){case 33:return new Tok(O.BANG,p,p+1,g,m,a);case 35:return function(t,a,s,c,f){var p,g=t.body,m=a;do p=R.call(g,++m);while(null!==p&&(p>31||9===p));return new Tok(O.COMMENT,a,m,s,c,f,M.call(g,a+1,m))}(s,p,g,m,a);case 36:return new Tok(O.DOLLAR,p,p+1,g,m,a);case 38:return new Tok(O.AMP,p,p+1,g,m,a);case 40:return new Tok(O.PAREN_L,p,p+1,g,m,a);case 41:return new Tok(O.PAREN_R,p,p+1,g,m,a);case 46:if(46===R.call(c,p+1)&&46===R.call(c,p+2))return new Tok(O.SPREAD,p,p+3,g,m,a);break;case 58:return new Tok(O.COLON,p,p+1,g,m,a);case 61:return new Tok(O.EQUALS,p,p+1,g,m,a);case 64:return new Tok(O.AT,p,p+1,g,m,a);case 91:return new Tok(O.BRACKET_L,p,p+1,g,m,a);case 93:return new Tok(O.BRACKET_R,p,p+1,g,m,a);case 123:return new Tok(O.BRACE_L,p,p+1,g,m,a);case 124:return new Tok(O.PIPE,p,p+1,g,m,a);case 125:return new Tok(O.BRACE_R,p,p+1,g,m,a);
1case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 95:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:return function(t,a,s,c,f){for(var p=t.body,g=p.length,m=a+1,v=0;m!==g&&null!==(v=R.call(p,m))&&(95===v||v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122);)++m;return new Tok(O.NAME,a,m,s,c,f,M.call(p,a,m))}(s,p,g,m,a);case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return function(t,a,s,c,f,p){var g=t.body,m=s,v=a,y=!1;if(45===m&&(m=R.call(g,++v)),48===m){if((m=R.call(g,++v))>=48&&m<=57)throw syntaxError(t,v,"Invalid number, unexpected digit after 0: ".concat(printCharCode(m),"."))}else v=readDigits(t,v,m),m=R.call(g,v);return 46===m&&(y=!0,m=R.call(g,++v),v=readDigits(t,v,m),m=R.call(g,v)),(69===m||101===m)&&(y=!0,(43===(m=R.call(g,++v))||45===m)&&(m=R.call(g,++v)),v=readDigits(t,v,m)),new Tok(y?O.FLOAT:O.INT,a,v,c,f,p,M.call(g,a,v))}(s,p,v,g,m,a);case 34:if(34===R.call(c,p+1)&&34===R.call(c,p+2))return function(t,a,s,c,f){for(var p=t.body,g=a+3,m=g,v=0,y="";g<p.length&&null!==(v=R.call(p,g));){if(34===v&&34===R.call(p,g+1)&&34===R.call(p,g+2))return y+=M.call(p,m,g),new Tok(O.BLOCK_STRING,a,g+3,s,c,f,function(t){for(var a=t.split(/\r\n|[\n\r]/g),s=null,c=1;c<a.length;c++){var f=a[c],p=leadingWhitespace(f);if(p<f.length&&(null===s||p<s)&&0===(s=p))break}if(s)for(var g=1;g<a.length;g++)a[g]=a[g].slice(s);for(;a.length>0&&isBlank(a[0]);)a.shift();for(;a.length>0&&isBlank(a[a.length-1]);)a.pop();return a.join("\n")}(y));if(v<32&&9!==v&&10!==v&&13!==v)throw syntaxError(t,g,"Invalid character within String: ".concat(printCharCode(v),"."));92===v&&34===R.call(p,g+1)&&34===R.call(p,g+2)&&34===R.call(p,g+3)?(y+=M.call(p,m,g)+'"""',g+=4,m=g):++g}throw syntaxError(t,g,"Unterminated string.")}(s,p,g,m,a);return function(t,a,s,c,f){for(var p=t.body,g=a+1,m=g,v=0,y="";g<p.length&&null!==(v=R.call(p,g))&&10!==v&&13!==v;){if(34===v)return y+=M.call(p,m,g),new Tok(O.STRING,a,g+1,s,c,f,y);if(v<32&&9!==v)throw syntaxError(t,g,"Invalid character within String: ".concat(printCharCode(v),"."));if(++g,92===v){switch(y+=M.call(p,m,g-1),v=R.call(p,g)){case 34:y+='"';break;case 47:y+="/";break;case 92:y+="\\";break;case 98:y+="\b";break;case 102:y+="\f";break;case 110:y+="\n";break;case 114:y+="\r";break;case 116:y+="	";break;case 117:var _,b,S,w,C=(_=R.call(p,g+1),b=R.call(p,g+2),S=R.call(p,g+3),w=R.call(p,g+4),char2hex(_)<<12|char2hex(b)<<8|char2hex(S)<<4|char2hex(w));if(C<0)throw syntaxError(t,g,"Invalid character escape sequence: "+"\\u".concat(p.slice(g+1,g+5),"."));y+=String.fromCharCode(C),g+=4;break;default:throw syntaxError(t,g,"Invalid character escape sequence: \\".concat(String.fromCharCode(v),"."))}m=++g}}throw syntaxError(t,g,"Unterminated string.")}(s,p,g,m,a)}throw syntaxError(s,p,v<32&&9!==v&&10!==v&&13!==v?"Cannot contain the invalid character ".concat(printCharCode(v),"."):39===v?"Unexpected single quote character ('), did you mean to use a double quote (\")?":"Cannot parse the unexpected character ".concat(printCharCode(v),"."))}(this,t));while(t.kind===O.COMMENT);return t}"function"==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(source_Source.prototype,Symbol.toStringTag,{get:function(){return this.constructor.name}});var O=Object.freeze({SOF:"<SOF>",EOF:"<EOF>",BANG:"!",DOLLAR:"$",AMP:"&",PAREN_L:"(",PAREN_R:")",SPREAD:"...",COLON:":",EQUALS:"=",AT:"@",BRACKET_L:"[",BRACKET_R:"]",BRACE_L:"{",PIPE:"|",BRACE_R:"}",NAME:"Name",INT:"Int",FLOAT:"Float",STRING:"String",BLOCK_STRING:"BlockString",COMMENT:"Comment"});function getTokenDesc(t){var a=t.value;return a?"".concat(t.kind,' "').concat(a,'"'):t.kind}var R=String.prototype.charCodeAt,M=String.prototype.slice;function Tok(t,a,s,c,f,p,g){this.kind=t,this.start=a,this.end=s,this.line=c,this.column=f,this.value=g,this.prev=p,this.next=null}function printCharCode(t){return isNaN(t)?O.EOF:t<127?JSON.stringify(String.fromCharCode(t)):'"\\u'.concat(("00"+t.toString(16).toUpperCase()).slice(-4),'"')}function readDigits(t,a,s){var c=t.body,f=a,p=s;if(p>=48&&p<=57){do p=R.call(c,++f);while(p>=48&&p<=57);return f}throw syntaxError(t,f,"Invalid number, expected digit but got: ".concat(printCharCode(p),"."))}function char2hex(t){return t>=48&&t<=57?t-48:t>=65&&t<=70?t-55:t>=97&&t<=102?t-87:-1}Tok.prototype.toJSON=Tok.prototype.inspect=function(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}};
1var N=Object.freeze({NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType",SCHEMA_DEFINITION:"SchemaDefinition",OPERATION_TYPE_DEFINITION:"OperationTypeDefinition",SCALAR_TYPE_DEFINITION:"ScalarTypeDefinition",OBJECT_TYPE_DEFINITION:"ObjectTypeDefinition",FIELD_DEFINITION:"FieldDefinition",INPUT_VALUE_DEFINITION:"InputValueDefinition",INTERFACE_TYPE_DEFINITION:"InterfaceTypeDefinition",UNION_TYPE_DEFINITION:"UnionTypeDefinition",ENUM_TYPE_DEFINITION:"EnumTypeDefinition",ENUM_VALUE_DEFINITION:"EnumValueDefinition",INPUT_OBJECT_TYPE_DEFINITION:"InputObjectTypeDefinition",DIRECTIVE_DEFINITION:"DirectiveDefinition",SCHEMA_EXTENSION:"SchemaExtension",SCALAR_TYPE_EXTENSION:"ScalarTypeExtension",OBJECT_TYPE_EXTENSION:"ObjectTypeExtension",INTERFACE_TYPE_EXTENSION:"InterfaceTypeExtension",UNION_TYPE_EXTENSION:"UnionTypeExtension",ENUM_TYPE_EXTENSION:"EnumTypeExtension",INPUT_OBJECT_TYPE_EXTENSION:"InputObjectTypeExtension"}),U=Object.freeze({QUERY:"QUERY",MUTATION:"MUTATION",SUBSCRIPTION:"SUBSCRIPTION",FIELD:"FIELD",FRAGMENT_DEFINITION:"FRAGMENT_DEFINITION",FRAGMENT_SPREAD:"FRAGMENT_SPREAD",INLINE_FRAGMENT:"INLINE_FRAGMENT",VARIABLE_DEFINITION:"VARIABLE_DEFINITION",SCHEMA:"SCHEMA",SCALAR:"SCALAR",OBJECT:"OBJECT",FIELD_DEFINITION:"FIELD_DEFINITION",ARGUMENT_DEFINITION:"ARGUMENT_DEFINITION",INTERFACE:"INTERFACE",UNION:"UNION",ENUM:"ENUM",ENUM_VALUE:"ENUM_VALUE",INPUT_OBJECT:"INPUT_OBJECT",INPUT_FIELD_DEFINITION:"INPUT_FIELD_DEFINITION"});function parse(t,a){var s,c,f,p="string"==typeof t?new source_Source(t):t;if(!(p instanceof source_Source))throw TypeError("Must provide Source. Received: ".concat(function inspect(t){return t&&"object"===_typeof(t)?"function"==typeof t.inspect?t.inspect():Array.isArray(t)?"["+t.map(inspect).join(", ")+"]":"{"+Object.keys(t).map(function(a){return"".concat(a,": ").concat(inspect(t[a]))}).join(", ")+"}":"string"==typeof t?'"'+t+'"':"function"==typeof t?"[function ".concat(t.name,"]"):String(t)}(p)));return c=(s={source:p,options:a||{},lastToken:f=new Tok(O.SOF,0,0,0,0,null),token:f,line:1,lineStart:0,advance:advanceLexer,lookahead:lookahead}).token,{kind:N.DOCUMENT,definitions:many(s,O.SOF,parseDefinition,O.EOF),loc:loc(s,c)}}function parseName(t){var a=expect(t,O.NAME);return{kind:N.NAME,value:a.value,loc:loc(t,a)}}function parseDefinition(t){if(peek(t,O.NAME))switch(t.token.value){case"query":case"mutation":case"subscription":case"fragment":return parseExecutableDefinition(t);case"schema":case"scalar":case"type":case"interface":case"union":case"enum":case"input":case"directive":return parseTypeSystemDefinition(t);case"extend":return function(t){var a=t.lookahead();if(a.kind===O.NAME)switch(a.value){case"schema":return function(t){var a=t.token;expectKeyword(t,"extend"),expectKeyword(t,"schema");var s=parseDirectives(t,!0),c=peek(t,O.BRACE_L)?many(t,O.BRACE_L,parseOperationTypeDefinition,O.BRACE_R):[];if(0===s.length&&0===c.length)throw unexpected(t);return{kind:N.SCHEMA_EXTENSION,directives:s,operationTypes:c,loc:loc(t,a)}}(t);case"scalar":return function(t){var a=t.token;expectKeyword(t,"extend"),expectKeyword(t,"scalar");var s=parseName(t),c=parseDirectives(t,!0);if(0===c.length)throw unexpected(t);return{kind:N.SCALAR_TYPE_EXTENSION,name:s,directives:c,loc:loc(t,a)}}(t);case"type":return function(t){var a=t.token;expectKeyword(t,"extend"),expectKeyword(t,"type");var s=parseName(t),c=parseImplementsInterfaces(t),f=parseDirectives(t,!0),p=parseFieldsDefinition(t);if(0===c.length&&0===f.length&&0===p.length)throw unexpected(t);return{kind:N.OBJECT_TYPE_EXTENSION,name:s,interfaces:c,directives:f,fields:p,loc:loc(t,a)}}(t);case"interface":return function(t){var a=t.token;expectKeyword(t,"extend"),expectKeyword(t,"interface");var s=parseName(t),c=parseDirectives(t,!0),f=parseFieldsDefinition(t);
1if(0===c.length&&0===f.length)throw unexpected(t);return{kind:N.INTERFACE_TYPE_EXTENSION,name:s,directives:c,fields:f,loc:loc(t,a)}}(t);case"union":return function(t){var a=t.token;expectKeyword(t,"extend"),expectKeyword(t,"union");var s=parseName(t),c=parseDirectives(t,!0),f=parseUnionMemberTypes(t);if(0===c.length&&0===f.length)throw unexpected(t);return{kind:N.UNION_TYPE_EXTENSION,name:s,directives:c,types:f,loc:loc(t,a)}}(t);case"enum":return function(t){var a=t.token;expectKeyword(t,"extend"),expectKeyword(t,"enum");var s=parseName(t),c=parseDirectives(t,!0),f=parseEnumValuesDefinition(t);if(0===c.length&&0===f.length)throw unexpected(t);return{kind:N.ENUM_TYPE_EXTENSION,name:s,directives:c,values:f,loc:loc(t,a)}}(t);case"input":return function(t){var a=t.token;expectKeyword(t,"extend"),expectKeyword(t,"input");var s=parseName(t),c=parseDirectives(t,!0),f=parseInputFieldsDefinition(t);if(0===c.length&&0===f.length)throw unexpected(t);return{kind:N.INPUT_OBJECT_TYPE_EXTENSION,name:s,directives:c,fields:f,loc:loc(t,a)}}(t)}throw unexpected(t,a)}(t)}else if(peek(t,O.BRACE_L))return parseExecutableDefinition(t);else if(peekDescription(t))return parseTypeSystemDefinition(t);throw unexpected(t)}function parseExecutableDefinition(t){if(peek(t,O.NAME))switch(t.token.value){case"query":case"mutation":case"subscription":return parseOperationDefinition(t);case"fragment":var a;return a=t.token,(expectKeyword(t,"fragment"),t.options.experimentalFragmentVariables)?{kind:N.FRAGMENT_DEFINITION,name:parseFragmentName(t),variableDefinitions:parseVariableDefinitions(t),typeCondition:(expectKeyword(t,"on"),parseNamedType(t)),directives:parseDirectives(t,!1),selectionSet:parseSelectionSet(t),loc:loc(t,a)}:{kind:N.FRAGMENT_DEFINITION,name:parseFragmentName(t),typeCondition:(expectKeyword(t,"on"),parseNamedType(t)),directives:parseDirectives(t,!1),selectionSet:parseSelectionSet(t),loc:loc(t,a)}}else if(peek(t,O.BRACE_L))return parseOperationDefinition(t);throw unexpected(t)}function parseOperationDefinition(t){var a,s=t.token;if(peek(t,O.BRACE_L))return{kind:N.OPERATION_DEFINITION,operation:"query",name:void 0,variableDefinitions:[],directives:[],selectionSet:parseSelectionSet(t),loc:loc(t,s)};var c=parseOperationType(t);return peek(t,O.NAME)&&(a=parseName(t)),{kind:N.OPERATION_DEFINITION,operation:c,name:a,variableDefinitions:parseVariableDefinitions(t),directives:parseDirectives(t,!1),selectionSet:parseSelectionSet(t),loc:loc(t,s)}}function parseOperationType(t){var a=expect(t,O.NAME);switch(a.value){case"query":return"query";case"mutation":return"mutation";case"subscription":return"subscription"}throw unexpected(t,a)}function parseVariableDefinitions(t){return peek(t,O.PAREN_L)?many(t,O.PAREN_L,parseVariableDefinition,O.PAREN_R):[]}function parseVariableDefinition(t){var a=t.token;return t.options.experimentalVariableDefinitionDirectives?{kind:N.VARIABLE_DEFINITION,variable:parseVariable(t),type:(expect(t,O.COLON),parseTypeReference(t)),defaultValue:skip(t,O.EQUALS)?parseValueLiteral(t,!0):void 0,directives:parseDirectives(t,!0),loc:loc(t,a)}:{kind:N.VARIABLE_DEFINITION,variable:parseVariable(t),type:(expect(t,O.COLON),parseTypeReference(t)),defaultValue:skip(t,O.EQUALS)?parseValueLiteral(t,!0):void 0,loc:loc(t,a)}}function parseVariable(t){var a=t.token;return expect(t,O.DOLLAR),{kind:N.VARIABLE,name:parseName(t),loc:loc(t,a)}}function parseSelectionSet(t){var a=t.token;return{kind:N.SELECTION_SET,selections:many(t,O.BRACE_L,parseSelection,O.BRACE_R),loc:loc(t,a)}}function parseSelection(t){var a,s,c,f,p,g;return peek(t,O.SPREAD)?(s=t.token,(expect(t,O.SPREAD),peek(t,O.NAME)&&"on"!==t.token.value)?{kind:N.FRAGMENT_SPREAD,name:parseFragmentName(t),directives:parseDirectives(t,!1),loc:loc(t,s)}:("on"===t.token.value&&(t.advance(),a=parseNamedType(t)),{kind:N.INLINE_FRAGMENT,typeCondition:a,directives:parseDirectives(t,!1),selectionSet:parseSelectionSet(t),loc:loc(t,s)})):(p=t.token,g=parseName(t),skip(t,O.COLON)?(c=g,f=parseName(t)):f=g,{kind:N.FIELD,alias:c,name:f,arguments:parseArguments(t,!1),directives:parseDirectives(t,!1),selectionSet:peek(t,O.BRACE_L)?parseSelectionSet(t):void 0,loc:loc(t,p)})}function parseArguments(t,a){var s=a?parseConstArgument:parseArgument;return peek(t,O.PAREN_L)?many(t,O.PAREN_L,s,O.PAREN_R):[]}function parseArgument(t){var a=t.token;return{kind:N.ARGUMENT,name:parseName(t),value:(expect(t,O.COLON),parseValueLiteral(t,!1)),loc:loc(t,a)}}function parseConstArgument(t){var a=t.token;return{kind:N.ARGUMENT,name:parseName(t),value:(expect(t,O.COLON),parseConstValue(t)),loc:loc(t,a)}}function parseFragmentName(t){if("on"===t.token.value)throw unexpected(t);return parseName(t)}function parseValueLiteral(t,a){var s,c,f=t.token;switch(f.kind){case O.BRACKET_L:return s=t.token,c=a?parseConstValue:parseValueValue,{kind:N.LIST,values:function(t,a,s,c){expect(t,a);for(var f=[];!skip(t,c);)f.push(s(t));return f}(t,O.BRACKET_L,c,O.BRACKET_R),loc:loc(t,s)};case O.BRACE_L:return function(t,a){var s=t.token;expect(t,O.BRACE_L);for(var c=[];!skip(t,O.BRACE_R);)c.push(function(t,a){var s=t.token;return{kind:N.OBJECT_FIELD,name:parseName(t),value:(expect(t,O.COLON),parseValueLiteral(t,a)),loc:loc(t,s)}}(t,a));return{kind:N.OBJECT,fields:c,loc:loc(t,s)}}(t,a);case O.INT:return t.advance(),{kind:N.INT,value:f.value,loc:loc(t,f)};case O.FLOAT:return t.advance(),{kind:N.FLOAT,value:f.value,loc:loc(t,f)};case O.STRING:case O.BLOCK_STRING:return parseStringLiteral(t);case O.NAME:if("true"===f.value||"false"===f.value)return t.advance(),{kind:N.BOOLEAN,value:"true"===f.value,loc:loc(t,f)};if("null"===f.value)return t.advance(),{kind:N.NULL,loc:loc(t,f)};return t.advance(),{kind:N.ENUM,value:f.value,loc:loc(t,f)};case O.DOLLAR:if(!a)return parseVariable(t)}
1throw unexpected(t)}function parseStringLiteral(t){var a=t.token;return t.advance(),{kind:N.STRING,value:a.value,block:a.kind===O.BLOCK_STRING,loc:loc(t,a)}}function parseConstValue(t){return parseValueLiteral(t,!0)}function parseValueValue(t){return parseValueLiteral(t,!1)}function parseDirectives(t,a){for(var s=[];peek(t,O.AT);)s.push(function(t,a){var s=t.token;return expect(t,O.AT),{kind:N.DIRECTIVE,name:parseName(t),arguments:parseArguments(t,a),loc:loc(t,s)}}(t,a));return s}function parseTypeReference(t){var a,s=t.token;return(skip(t,O.BRACKET_L)?(a=parseTypeReference(t),expect(t,O.BRACKET_R),a={kind:N.LIST_TYPE,type:a,loc:loc(t,s)}):a=parseNamedType(t),skip(t,O.BANG))?{kind:N.NON_NULL_TYPE,type:a,loc:loc(t,s)}:a}function parseNamedType(t){var a=t.token;return{kind:N.NAMED_TYPE,name:parseName(t),loc:loc(t,a)}}function parseTypeSystemDefinition(t){var a,s,c,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I,T,k,R,M,L,D,B,j,q,V,K,H,W,G,$,Y,J,Z,Q,X,ee=peekDescription(t)?t.lookahead():t.token;if(ee.kind===O.NAME)switch(ee.value){case"schema":return a=t.token,expectKeyword(t,"schema"),s=parseDirectives(t,!0),c=many(t,O.BRACE_L,parseOperationTypeDefinition,O.BRACE_R),{kind:N.SCHEMA_DEFINITION,directives:s,operationTypes:c,loc:loc(t,a)};case"scalar":return f=t.token,p=parseDescription(t),expectKeyword(t,"scalar"),g=parseName(t),m=parseDirectives(t,!0),{kind:N.SCALAR_TYPE_DEFINITION,description:p,name:g,directives:m,loc:loc(t,f)};case"type":return v=t.token,y=parseDescription(t),expectKeyword(t,"type"),_=parseName(t),b=parseImplementsInterfaces(t),S=parseDirectives(t,!0),w=parseFieldsDefinition(t),{kind:N.OBJECT_TYPE_DEFINITION,description:y,name:_,interfaces:b,directives:S,fields:w,loc:loc(t,v)};case"interface":return C=t.token,E=parseDescription(t),expectKeyword(t,"interface"),x=parseName(t),P=parseDirectives(t,!0),I=parseFieldsDefinition(t),{kind:N.INTERFACE_TYPE_DEFINITION,description:E,name:x,directives:P,fields:I,loc:loc(t,C)};case"union":return T=t.token,k=parseDescription(t),expectKeyword(t,"union"),R=parseName(t),M=parseDirectives(t,!0),L=parseUnionMemberTypes(t),{kind:N.UNION_TYPE_DEFINITION,description:k,name:R,directives:M,types:L,loc:loc(t,T)};case"enum":return D=t.token,B=parseDescription(t),expectKeyword(t,"enum"),j=parseName(t),q=parseDirectives(t,!0),V=parseEnumValuesDefinition(t),{kind:N.ENUM_TYPE_DEFINITION,description:B,name:j,directives:q,values:V,loc:loc(t,D)};case"input":return K=t.token,H=parseDescription(t),expectKeyword(t,"input"),W=parseName(t),G=parseDirectives(t,!0),$=parseInputFieldsDefinition(t),{kind:N.INPUT_OBJECT_TYPE_DEFINITION,description:H,name:W,directives:G,fields:$,loc:loc(t,K)};case"directive":return Y=t.token,J=parseDescription(t),expectKeyword(t,"directive"),expect(t,O.AT),Z=parseName(t),Q=parseArgumentDefs(t),expectKeyword(t,"on"),X=function(t){skip(t,O.PIPE);var a=[];do a.push(function(t){var a=t.token,s=parseName(t);if(U.hasOwnProperty(s.value))return s;throw unexpected(t,a)}(t));while(skip(t,O.PIPE));return a}(t),{kind:N.DIRECTIVE_DEFINITION,description:J,name:Z,arguments:Q,locations:X,loc:loc(t,Y)}}throw unexpected(t,ee)}function peekDescription(t){return peek(t,O.STRING)||peek(t,O.BLOCK_STRING)}function parseDescription(t){if(peekDescription(t))return parseStringLiteral(t)}function parseOperationTypeDefinition(t){var a=t.token,s=parseOperationType(t);expect(t,O.COLON);var c=parseNamedType(t);return{kind:N.OPERATION_TYPE_DEFINITION,operation:s,type:c,loc:loc(t,a)}}function parseImplementsInterfaces(t){var a=[];if("implements"===t.token.value){t.advance(),skip(t,O.AMP);do a.push(parseNamedType(t));while(skip(t,O.AMP)||t.options.allowLegacySDLImplementsInterfaces&&peek(t,O.NAME))}return a}function parseFieldsDefinition(t){return t.options.allowLegacySDLEmptyFields&&peek(t,O.BRACE_L)&&t.lookahead().kind===O.BRACE_R?(t.advance(),t.advance(),[]):peek(t,O.BRACE_L)?many(t,O.BRACE_L,parseFieldDefinition,O.BRACE_R):[]}function parseFieldDefinition(t){var a=t.token,s=parseDescription(t),c=parseName(t),f=parseArgumentDefs(t);expect(t,O.COLON);var p=parseTypeReference(t),g=parseDirectives(t,!0);return{kind:N.FIELD_DEFINITION,description:s,name:c,arguments:f,type:p,directives:g,loc:loc(t,a)}}function parseArgumentDefs(t){return peek(t,O.PAREN_L)?many(t,O.PAREN_L,parseInputValueDef,O.PAREN_R):[]}function parseInputValueDef(t){var a,s=t.token,c=parseDescription(t),f=parseName(t);expect(t,O.COLON);var p=parseTypeReference(t);skip(t,O.EQUALS)&&(a=parseConstValue(t));var g=parseDirectives(t,!0);return{kind:N.INPUT_VALUE_DEFINITION,description:c,name:f,type:p,defaultValue:a,directives:g,loc:loc(t,s)}}function parseUnionMemberTypes(t){var a=[];if(skip(t,O.EQUALS)){skip(t,O.PIPE);do a.push(parseNamedType(t));while(skip(t,O.PIPE))}return a}function parseEnumValuesDefinition(t){return peek(t,O.BRACE_L)?many(t,O.BRACE_L,parseEnumValueDefinition,O.BRACE_R):[]}function parseEnumValueDefinition(t){var a=t.token,s=parseDescription(t),c=parseName(t),f=parseDirectives(t,!0);return{kind:N.ENUM_VALUE_DEFINITION,description:s,name:c,directives:f,loc:loc(t,a)}}function parseInputFieldsDefinition(t){return peek(t,O.BRACE_L)?many(t,O.BRACE_L,parseInputValueDef,O.BRACE_R):[]}function loc(t,a){if(!t.options.noLocation)return new Loc(a,t.lastToken,t.source)}function Loc(t,a,s){this.start=t.start,this.end=a.end,this.startToken=t,this.endToken=a,this.source=s}function peek(t,a){return t.token.kind===a}function skip(t,a){var s=t.token.kind===a;return s&&t.advance(),s}function expect(t,a){var s=t.token;if(s.kind===a)return t.advance(),s;throw syntaxError(t.source,s.start,"Expected ".concat(a,", found ").concat(getTokenDesc(s)))}function expectKeyword(t,a){var s=t.token;if(s.kind===O.NAME&&s.value===a)return t.advance(),s;throw syntaxError(t.source,s.start,'Expected "'.concat(a,'", found ').concat(getTokenDesc(s)))}function unexpected(t,a){var s=a||t.token;return syntaxError(t.source,s.start,"Unexpected ".concat(getTokenDesc(s)))}function many(t,a,s,c){expect(t,a);for(var f=[s(t)];!skip(t,c);)f.push(s(t));return f}Loc.prototype.toJSON=Loc.prototype.inspect=function(){return{start:this.start,end:this.end}};var L=s(35069),D=s(32615),B=s(92752),j=new L.k("I18n"),q=function(){function I18n(t){this._options=null,this._lang=null,this._dict={},this._options=Object.assign({},t),this._lang=this._options.language,!this._lang&&"undefined"!=typeof window&&window&&window.navigator&&(this._lang=window.navigator.language),j.debug(this._lang)}return I18n.prototype.setLanguage=function(t){this._lang=t},I18n.prototype.get=function(t,a){if(void 0===a&&(a=void 0),!this._lang)return void 0!==a?a:t;var s=this._lang,c=this.getByLanguage(t,s);return c||((s.indexOf("-")>0&&(c=this.getByLanguage(t,s.split("-")[0])),c)?c:void 0!==a?a:t)},I18n.prototype.getByLanguage=function(t,a,s){if(void 0===s&&(s=null),!a)return s;var c=this._dict[a];return c?c[t]:s},I18n.prototype.putVocabulariesForLanguage=function(t,a){var s=this._dict[t];s||(s=this._dict[t]={}),Object.assign(s,a)},I18n.prototype.putVocabularies=function(t){var a=this;Object.keys(t).map(function(s){a.putVocabulariesForLanguage(s,t[s])})},I18n}(),V=s(25387),K=new L.k("I18n"),H=null,W=null,G=function(){function I18n(){}return I18n.configure=function(t){return K.debug("configure I18n"),t&&(H=Object.assign({},H,t.I18n||t),I18n.createInstance()),H},I18n.getModuleName=function(){return"I18n"},I18n.createInstance=function(){K.debug("create I18n instance"),W||(W=new q(H))}
1,I18n.setLanguage=function(t){return I18n.checkConfig(),W.setLanguage(t)},I18n.get=function(t,a){return I18n.checkConfig()?W.get(t,a):void 0===a?t:a},I18n.putVocabulariesForLanguage=function(t,a){return I18n.checkConfig(),W.putVocabulariesForLanguage(t,a)},I18n.putVocabularies=function(t){return I18n.checkConfig(),W.putVocabularies(t)},I18n.checkConfig=function(){return W||(W=new q(H)),!0},I18n}();V.dQ.register(G);var $={userAgent:B.t4.userAgent},Y="undefined"!=typeof Symbol&&"function"==typeof Symbol.for,J=Y?Symbol.for("INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER"):"@@INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER",Z=Y?Symbol.for("INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER"):"@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER",Q=s(79013),X=s.n(Q)(),ee=s(59222),et=s(68295),en=s(55877),__assign=function(){return(__assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},er=new L.k("AbstractPubSubProvider"),ei=function(){function AbstractPubSubProvider(t){void 0===t&&(t={}),this._config=t}return AbstractPubSubProvider.prototype.configure=function(t){return void 0===t&&(t={}),this._config=__assign(__assign({},t),this._config),er.debug("configure "+this.getProviderName(),this._config),this.options},AbstractPubSubProvider.prototype.getCategory=function(){return"PubSub"},Object.defineProperty(AbstractPubSubProvider.prototype,"options",{get:function(){return __assign({},this._config)},enumerable:!0,configurable:!0}),AbstractPubSubProvider}(),eo=(c=function(t,a){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])})(t,a)},function(t,a){function __(){this.constructor=t}c(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}),MqttOverWSProvider_assign=function(){return(MqttOverWSProvider_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},__awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},__generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},__rest=function(t,a){var s={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(s[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var f=0,c=Object.getOwnPropertySymbols(t);f<c.length;f++)0>a.indexOf(c[f])&&Object.prototype.propertyIsEnumerable.call(t,c[f])&&(s[c[f]]=t[c[f]]);return s},ea=new L.k("MqttOverWSProvider"),es=function(){function ClientsQueue(){this.promises=new Map}return ClientsQueue.prototype.get=function(t,a){return __awaiter(this,void 0,void 0,function(){var s;return __generator(this,function(c){return(s=this.promises.get(t))||(s=a(t),this.promises.set(t,s)),[2,s]})})},Object.defineProperty(ClientsQueue.prototype,"allClients",{get:function(){return Array.from(this.promises.keys())},enumerable:!0,configurable:!0}),ClientsQueue.prototype.remove=function(t){this.promises.delete(t)},ClientsQueue}(),eu="undefined"!=typeof Symbol?Symbol("topic"):"@@topic",ec=function(t){function MqttOverWSProvider(a){void 0===a&&(a={});var s=t.call(this,MqttOverWSProvider_assign(MqttOverWSProvider_assign({},a),{clientId:a.clientId||(0,en.v4)()}))||this;return s._clientsQueue=new es,s._topicObservers=new Map,s._clientIdObservers=new Map,s}return eo(MqttOverWSProvider,t),Object.defineProperty(MqttOverWSProvider.prototype,"clientId",{get:function(){return this.options.clientId},enumerable:!0,configurable:!0}),Object.defineProperty(MqttOverWSProvider.prototype,"endpoint",{get:function(){return this.options.aws_pubsub_endpoint},enumerable:!0,configurable:!0}),Object.defineProperty(MqttOverWSProvider.prototype,"clientsQueue",{get:function(){return this._clientsQueue},enumerable:!0,configurable:!0}),Object.defineProperty(MqttOverWSProvider.prototype,"isSSLEnabled",{get:function(){return!this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing},enumerable:!0,configurable:!0}),MqttOverWSProvider.prototype.getTopicForValue=function(t){return"object"==typeof t&&t[eu]},MqttOverWSProvider.prototype.getProviderName=function(){return"MqttOverWSProvider"},MqttOverWSProvider.prototype.onDisconnect=function(t){var a=this,s=t.clientId,c=t.errorCode,f=__rest(t,["clientId","errorCode"]);if(0!==c){ea.warn(s,JSON.stringify(MqttOverWSProvider_assign({errorCode:c},f),null,2));var p=[],g=this._clientIdObservers.get(s);if(!g)return;g.forEach(function(t){t.error("Disconnected, error code: "+c),a._topicObservers.forEac
1h(function(a,s){a.delete(t),0===a.size&&p.push(s)})}),this._clientIdObservers.delete(s),p.forEach(function(t){a._topicObservers.delete(t)})}},MqttOverWSProvider.prototype.newClient=function(t){var a=t.url,s=t.clientId;return __awaiter(this,void 0,void 0,function(){var t,c=this;return __generator(this,function(f){switch(f.label){case 0:return ea.debug("Creating new MQTT client",s),(t=new et.Client(a,s)).onMessageArrived=function(t){var a=t.destinationName,s=t.payloadString;c._onMessage(a,s)},t.onConnectionLost=function(t){var a=t.errorCode,f=__rest(t,["errorCode"]);c.onDisconnect(MqttOverWSProvider_assign({clientId:s,errorCode:a},f))},[4,new Promise(function(a,s){t.connect({useSSL:c.isSSLEnabled,mqttVersion:3,onSuccess:function(){return a(t)},onFailure:s})})];case 1:return f.sent(),[2,t]}})})},MqttOverWSProvider.prototype.connect=function(t,a){return void 0===a&&(a={}),__awaiter(this,void 0,void 0,function(){var s=this;return __generator(this,function(c){switch(c.label){case 0:return[4,this.clientsQueue.get(t,function(t){return s.newClient(MqttOverWSProvider_assign(MqttOverWSProvider_assign({},a),{clientId:t}))})];case 1:return[2,c.sent()]}})})},MqttOverWSProvider.prototype.disconnect=function(t){return __awaiter(this,void 0,void 0,function(){var a;return __generator(this,function(s){switch(s.label){case 0:return[4,this.clientsQueue.get(t,function(){return null})];case 1:return(a=s.sent())&&a.isConnected()&&a.disconnect(),this.clientsQueue.remove(t),[2]}})})},MqttOverWSProvider.prototype.publish=function(t,a){return __awaiter(this,void 0,void 0,function(){var s,c,f,p;return __generator(this,function(g){switch(g.label){case 0:return s=[].concat(t),c=JSON.stringify(a),[4,this.endpoint];case 1:return f=g.sent(),[4,this.connect(this.clientId,{url:f})];case 2:return p=g.sent(),ea.debug("Publishing to topic(s)",s.join(","),c),s.forEach(function(t){return p.send(t,c)}),[2]}})})},MqttOverWSProvider.prototype._onMessage=function(t,a){try{var s=[];this._topicObservers.forEach(function(a,c){(function(t,a){for(var s=t.split("/"),c=s.length,f=a.split("/"),p=0;p<c;++p){var g=s[p],m=f[p];if("#"===g)return f.length>=c;if("+"!==g&&g!==m)return!1}return c===f.length})(c,t)&&s.push(a)});var c=JSON.parse(a);"object"==typeof c&&(c[eu]=t),s.forEach(function(t){t.forEach(function(t){return t.next(c)})})}catch(t){ea.warn("Error handling message",t,a)}},MqttOverWSProvider.prototype.subscribe=function(t,a){var s=this;void 0===a&&(a={});var c=[].concat(t);return ea.debug("Subscribing to topic(s)",c.join(",")),new X(function(t){c.forEach(function(a){var c=s._topicObservers.get(a);c||(c=new Set,s._topicObservers.set(a,c)),c.add(t)});var f,p=a.clientId,g=void 0===p?s.clientId:p,m=s._clientIdObservers.get(g);return m||(m=new Set),m.add(t),s._clientIdObservers.set(g,m),__awaiter(s,void 0,void 0,function(){var s,p,m,v;return __generator(this,function(y){switch(y.label){case 0:if(void 0!==(s=a.url))return[3,2];return[4,this.endpoint];case 1:return m=y.sent(),[3,3];case 2:m=s,y.label=3;case 3:p=m,y.label=4;case 4:return y.trys.push([4,6,,7]),[4,this.connect(g,{url:p})];case 5:return f=y.sent(),c.forEach(function(t){f.subscribe(t)}),[3,7];case 6:return v=y.sent(),t.error(v),[3,7];case 7:return[2]}})}),function(){return ea.debug("Unsubscribing from topic(s)",c.join(",")),f&&(s._clientIdObservers.get(g).delete(t),0===s._clientIdObservers.get(g).size&&(s.disconnect(g),s._clientIdObservers.delete(g)),c.forEach(function(a){var c=s._topicObservers.get(a)||new Set;c.delete(t),0===c.size&&(s._topicObservers.delete(a),f.isConnected()&&f.unsubscribe(a))})),null}})},MqttOverWSProvider}(ei),el=(f=function(t,a){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])})(t,a)},function(t,a){function __(){this.constructor=t}f(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}),AWSAppSyncProvider_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},AWSAppSyncProvider_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]}
1,trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},AWSAppSyncProvider_rest=function(t,a){var s={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(s[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var f=0,c=Object.getOwnPropertySymbols(t);f<c.length;f++)0>a.indexOf(c[f])&&Object.prototype.propertyIsEnumerable.call(t,c[f])&&(s[c[f]]=t[c[f]]);return s},__read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},__spread=function(){for(var t=[],a=0;a<arguments.length;a++)t=t.concat(__read(arguments[a]));return t},ed=new L.k("AWSAppSyncProvider"),ef=function(t){function AWSAppSyncProvider(){var a=null!==t&&t.apply(this,arguments)||this;return a._topicClient=new Map,a._topicAlias=new Map,a}return el(AWSAppSyncProvider,t),Object.defineProperty(AWSAppSyncProvider.prototype,"endpoint",{get:function(){throw Error("Not supported")},enumerable:!0,configurable:!0}),AWSAppSyncProvider.prototype.getProviderName=function(){return"AWSAppSyncProvider"},AWSAppSyncProvider.prototype.publish=function(t,a,s){return AWSAppSyncProvider_awaiter(this,void 0,void 0,function(){return AWSAppSyncProvider_generator(this,function(t){throw Error("Operation not supported")})})},AWSAppSyncProvider.prototype._cleanUp=function(t){var a=this;Array.from(this._topicClient.entries()).filter(function(a){return __read(a,2)[1].clientId===t}).map(function(t){return __read(t,1)[0]}).forEach(function(t){return a._cleanUpForTopic(t)})},AWSAppSyncProvider.prototype._cleanUpForTopic=function(t){this._topicClient.delete(t),this._topicAlias.delete(t)},AWSAppSyncProvider.prototype.onDisconnect=function(t){var a=this,s=t.clientId,c=t.errorCode,f=AWSAppSyncProvider_rest(t,["clientId","errorCode"]);0!==c&&(Array.from(this._topicClient.entries()).filter(function(t){return __read(t,2)[1].clientId===s}).map(function(t){return __read(t,1)[0]}).forEach(function(t){a._topicObservers.has(t)&&(a._topicObservers.get(t).forEach(function(t){t.closed||t.error(f)}),a._topicObservers.delete(t))}),this._cleanUp(s))},AWSAppSyncProvider.prototype.disconnect=function(a){return AWSAppSyncProvider_awaiter(this,void 0,void 0,function(){return AWSAppSyncProvider_generator(this,function(s){switch(s.label){case 0:return[4,this.clientsQueue.get(a,function(){return null})];case 1:return s.sent(),[4,t.prototype.disconnect.call(this,a)];case 2:return s.sent(),this._cleanUp(a),[2]}})})},AWSAppSyncProvider.prototype.subscribe=function(t,a){var s=this;void 0===a&&(a={});var c=new X(function(c){var f=[].concat(t);return ed.debug("Subscribing to topic(s)",f.join(",")),AWSAppSyncProvider_awaiter(s,void 0,void 0,function(){var t,s,p,g=this;return AWSAppSyncProvider_generator(this,function(m){switch(m.label){case 0:return f.forEach(function(t){g._topicObservers.has(t)||g._topicObservers.set(t,new Set),g._topicObservers.get(t).add(c)}),s=void 0===(t=a.mqttConnections)?[]:t,p=Object.entries(a.newSubscriptions).map(function(t){var a=__read(t,2),s=a[0];return[a[1].topic,s]}),this._topicAlias=new Map(__spread(Array.from(this._topicAlias.entries()),p)),[4,Promise.all(Object.entries(f.reduce(function(t,a){var c=s.find(function(t){return t.topics.indexOf(a)>-1});if(c){var f=c.client,p=c.url;t[f]||(t[f]={url:p,topics:new Set}),t[f].topics.add(a)}return t},{})).map(function(t){var a=__read(t,2),s=a[0],f=a[1],p=f.url,m=f.topics;return AWSAppSyncProvider_awaiter(g,void 0,void 0,function(){var t,a,f=this;return AWSAppSyncProvider_generator(this,function(g){switch(g.label){case 0:t=null,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this.connect(s,{clientId:s,url:p})];case 2:return t=g.sent(),[3,4];case 3:return a=g.sent(),c.error({message:"Failed to connect",error:a}),c.complete(),[2,void 0];case 4:return m.forEach(function(a){t.isConnected()&&(t.subscribe(a),f._topicClient.set(a,t))}),[2,t]}})})}))];case 1:return m.sent(),[2]}})}),function(){ed.debug("Unsubscribing from topic(s)",f.join(",")),f.forEach(function(t){var a=s._topicClient.get(t);a&&a.isConnected()&&(a.unsubscribe(t),s._topicClient.delete(t),Array.from(s._topicClient.values()).some(function(t){return t===a})||s.disconnect(a.clientId)),s._topicObservers.delete(t)})}});return X.from(c).map(function(t){var a=s.getTopicForValue(t),c=s._topicAlias.get(a);return t.data=Object.entries(t.data).reduce(function(t,a){var s=__read(a,2),f=s[0],p=s[1];return t[c||f]=p,t},{}),t})},AWSAppSyncProvider}(ec),ep=s(11987),eh=s(48764),eg=s(20490),em=s(7262),ev=s(90633),ey=s(7895),e_=s(9432);s(940);
1var eb=e_.g,eS=(p=function(t,a){return(p=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])})(t,a)},function(t,a){function __(){this.constructor=t}p(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}),AWSAppSyncRealTimeProvider_assign=function(){return(AWSAppSyncRealTimeProvider_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},AWSAppSyncRealTimeProvider_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},AWSAppSyncRealTimeProvider_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},AWSAppSyncRealTimeProvider_read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},ew=new L.k("AWSAppSyncRealTimeProvider"),eA="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",dispatchApiEvent=function(t,a,s){eg.Xb.dispatch("api",{event:t,data:a,message:s},"PubSub",eA)},eC=[400,401,403];(g=S||(S={})).GQL_CONNECTION_INIT="connection_init",g.GQL_CONNECTION_ERROR="connection_error",g.GQL_CONNECTION_ACK="connection_ack",g.GQL_START="start",g.GQL_START_ACK="start_ack",g.GQL_DATA="data",g.GQL_CONNECTION_KEEP_ALIVE="ka",g.GQL_STOP="stop",g.GQL_COMPLETE="complete",g.GQL_ERROR="error",(m=w||(w={}))[m.PENDING=0]="PENDING",m[m.CONNECTED=1]="CONNECTED",m[m.FAILED=2]="FAILED",(v=C||(C={}))[v.CLOSED=0]="CLOSED",v[v.READY=1]="READY",v[v.CONNECTING=2]="CONNECTING";var eE={accept:"application/json, text/javascript","content-encoding":"amz-1.0","content-type":"application/json; charset=UTF-8"},ex=function(t){function AWSAppSyncRealTimeProvider(){var a=null!==t&&t.apply(this,arguments)||this;return a.socketStatus=C.CLOSED,a.keepAliveTimeout=3e5,a.subscriptionObserverMap=new Map,a.promiseArray=[],a}return eS(AWSAppSyncRealTimeProvider,t),AWSAppSyncRealTimeProvider.prototype.getProviderName=function(){return"AWSAppSyncRealTimeProvider"},AWSAppSyncRealTimeProvider.prototype.newClient=function(){throw Error("Not used here")},AWSAppSyncRealTimeProvider.prototype.publish=function(t,a,s){return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){return AWSAppSyncRealTimeProvider_generator(this,function(t){throw Error("Operation not supported")})})},AWSAppSyncRealTimeProvider.prototype.subscribe=function(t,a){var s=this,c=a.appSyncGraphqlEndpoint;return new X(function(t){if(c){var f=(0,en.v4)();return s._startSubscriptionWithAWSAppSyncRealTime({options:a,observer:t,subscriptionId:f}).catch(function(a){t.error({errors:[AWSAppSyncRealTimeProvider_assign({},new GraphQLError(E.REALTIME_SUBSCRIPTION_INIT_ERROR+": "+a))]}),t.complete()}),function(){return AWSAppSyncRealTimeProvider_awaiter(s,void 0,void 0,function(){var t,a;return AWSAppSyncRealTimeProvider_generator(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,3,4]),[4,this._waitForSubscriptionToBeConnected(f)];case 1:if(s.sent(),!(t=(this.subscriptionObserverMap.get(f)||{}).subscriptionState))return[2];if(t===w.CONNECTED)this._sendUnsubscriptionMessage(f);else throw Error("Subscription never connected");return[3,4];case 2:return a=s.sent(),ew.debug("Error while unsubscribing "+a),[3,4];case 3:return this._removeSubscriptionObserver(f),[7];case 4:return[2]}})})}}t.error({errors:[AWSAppSyncRealTimeProvider_assign({},new GraphQLError("Subscribe only available for AWS AppSync endpoint"))]}),t.complete()})},Object.defineProperty(AWSAppSyncRealTimeProvider.prototype,"isSSLEnabled",{get:function(){return!this.options.aws_appsync_dangerously_connect_to_http_endpoint_for_testing},enumerable:!0,configurable:!0}),AWSAppSyncRealTimeProvider.prototype._startSubscriptionWithAWSAppSyncRealTime=function(t){var a=t.options,s=t.observer,c=t.subscriptionId;return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){var t,f,p,g,m,v,y,_,b,C,x,P,I,T,k,O,R,M,N,U,L,D,B,j,q,V=this;return AWSAppSyncRealTimeProvider_generator(this,function(K){switch(K.label){case 0:return t=a.appSyncGraphqlEndpoint,f=a.authenticationType,p=a.query,g=a.variables,m=a.apiKey,v=a.region,_=void 0===(y=a.graphql_headers)?function(){return{}}:y,C=void 0===(b=a.additionalHeaders)?{}:b,x=w.PENDING,P={query:p,variables:g},this.subscriptionObserverMap.set(c,{observer:s,query:p,variables:g,subscriptionState:x,startAckTimeoutId:null}),I=JSON.stringify(P),k=[{}],[4,this._awsRealTimeHeaderBasedAuth({apiKey:m,appSyncGraphqlEndpoint:t,authenticationType:f,payload:I,canonicalUri:"",region:v})];case 1:return O=[AWSAppSyncRealTimeProvider_assign.apply(void 0,k.concat([K.sent()]))],[4,_()];case 2:T=AWSAppSyncRealTimeProvider_assign.apply(void 0,[AWSAppSyncRealTimeProvider_assign.apply(void 0,[AWSAppSyncRealTimeProvider_assign.apply(void 0,O.concat([K.sent()])),C]),((q={})["x-amz-user-agent"]=$.userAgent,q)]),R=JSON.stringify({id:c,payload:{data:I,extensions:{authorization:AWSAppSyncRealTimeProvider_assign({},T)}},type:S.GQL_START}),K.label=3;case 3:return K.trys.push([3,5,,6]),[4,this._initializeWebSocketConnection({apiKey:m,appSyncGraphqlEndpoint:t,authenticationType:f,regi
1on:v})];case 4:return K.sent(),[3,6];case 5:return M=K.sent(),ew.debug({err:M}),U=void 0===(N=M.message)?"":N,s.error({errors:[AWSAppSyncRealTimeProvider_assign({},new GraphQLError(E.CONNECTION_FAILED+": "+U))]}),s.complete(),"function"==typeof(L=(this.subscriptionObserverMap.get(c)||{}).subscriptionFailedCallback)&&L(),[2];case 6:return B=(D=this.subscriptionObserverMap.get(c)).subscriptionFailedCallback,j=D.subscriptionReadyCallback,this.subscriptionObserverMap.set(c,{observer:s,subscriptionState:x,variables:g,query:p,subscriptionReadyCallback:j,subscriptionFailedCallback:B,startAckTimeoutId:setTimeout(function(){V._timeoutStartSubscriptionAck.call(V,c)},15e3)}),this.awsRealTimeSocket&&this.awsRealTimeSocket.send(R),[2]}})})},AWSAppSyncRealTimeProvider.prototype._waitForSubscriptionToBeConnected=function(t){return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){var a=this;return AWSAppSyncRealTimeProvider_generator(this,function(s){return this.subscriptionObserverMap.get(t).subscriptionState===w.PENDING?[2,new Promise(function(s,c){var f=a.subscriptionObserverMap.get(t),p=f.observer,g=f.subscriptionState,m=f.variables,v=f.query;a.subscriptionObserverMap.set(t,{observer:p,subscriptionState:g,variables:m,query:v,subscriptionReadyCallback:s,subscriptionFailedCallback:c})})]:[2]})})},AWSAppSyncRealTimeProvider.prototype._sendUnsubscriptionMessage=function(t){try{if(this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.socketStatus===C.READY){var a={id:t,type:S.GQL_STOP},s=JSON.stringify(a);this.awsRealTimeSocket.send(s)}}catch(t){ew.debug({err:t})}},AWSAppSyncRealTimeProvider.prototype._removeSubscriptionObserver=function(t){this.subscriptionObserverMap.delete(t),setTimeout(this._closeSocketIfRequired.bind(this),1e3)},AWSAppSyncRealTimeProvider.prototype._closeSocketIfRequired=function(){if(!(this.subscriptionObserverMap.size>0)){if(!this.awsRealTimeSocket){this.socketStatus=C.CLOSED;return}if(this.awsRealTimeSocket.bufferedAmount>0)setTimeout(this._closeSocketIfRequired.bind(this),1e3);else{ew.debug("closing WebSocket..."),clearTimeout(this.keepAliveTimeoutId);var t=this.awsRealTimeSocket;t.onclose=void 0,t.onerror=void 0,t.close(1e3),this.awsRealTimeSocket=null,this.socketStatus=C.CLOSED}}},AWSAppSyncRealTimeProvider.prototype._handleIncomingSubscriptionMessage=function(t){ew.debug("subscription message from AWS AppSync RealTime: "+t.data);var a=JSON.parse(t.data),s=a.id,c=void 0===s?"":s,f=a.payload,p=a.type,g=this.subscriptionObserverMap.get(c)||{},m=g.observer,v=void 0===m?null:m,y=g.query,_=void 0===y?"":y,b=g.variables,C=void 0===b?{}:b,x=g.startAckTimeoutId,P=g.subscriptionReadyCallback,I=g.subscriptionFailedCallback;if(ew.debug({id:c,observer:v,query:_,variables:C}),p===S.GQL_DATA&&f&&f.data){v?v.next(f):ew.debug("observer not found for id: "+c);return}if(p===S.GQL_START_ACK){ew.debug("subscription ready for "+JSON.stringify({query:_,variables:C})),"function"==typeof P&&P(),clearTimeout(x),dispatchApiEvent(E.SUBSCRIPTION_ACK,{query:_,variables:C},"Connection established for subscription");var T=w.CONNECTED;this.subscriptionObserverMap.set(c,{observer:v,query:_,variables:C,startAckTimeoutId:null,subscriptionState:T,subscriptionReadyCallback:P,subscriptionFailedCallback:I});return}if(p===S.GQL_CONNECTION_KEEP_ALIVE){clearTimeout(this.keepAliveTimeoutId),this.keepAliveTimeoutId=setTimeout(this._errorDisconnect.bind(this,E.TIMEOUT_DISCONNECT),this.keepAliveTimeout);return}if(p===S.GQL_ERROR){var T=w.FAILED;this.subscriptionObserverMap.set(c,{observer:v,query:_,variables:C,startAckTimeoutId:x,subscriptionReadyCallback:P,subscriptionFailedCallback:I,subscriptionState:T}),v.error({errors:[AWSAppSyncRealTimeProvider_assign({},new GraphQLError(E.CONNECTION_FAILED+": "+JSON.stringify(f)))]}),clearTimeout(x),v.complete(),"function"==typeof I&&I()}},AWSAppSyncRealTimeProvider.prototype._errorDisconnect=function(t){ew.debug("Disconnect error: "+t),this.subscriptionObserverMap.forEach(function(a){var s=a.observer;s&&!s.closed&&s.error({errors:[AWSAppSyncRealTimeProvider_assign({},new GraphQLError(t))]})}),this.subscriptionObserverMap.clear(),this.awsRealTimeSocket&&this.awsRealTimeSocket.close(),this.socketStatus=C.CLOSED},AWSAppSyncRealTimeProvider.prototype._timeoutStartSubscriptionAck=function(t){var a=this.subscriptionObserverMap.get(t)||{},s=a.observer,c=a.query,f=a.variables;s&&(this.subscriptionObserverMap.set(t,{observer:s,query:c,variables:f,subscriptionState:w.FAILED}),s&&!s.closed&&(s.error({errors:[AWSAppSyncRealTimeProvider_assign({},new GraphQLError("Subscription timeout "+JSON.stringify({query:c,variables:f})))]}),s.complete()),ew.debug("timeoutStartSubscription",JSON.stringify({query:c,variables:f})))},AWSAppSyncRealTimeProvider.prototype._initializeWebSocketConnection=function(t){var a=this,s=t.appSyncGraphqlEndpoint,c=t.authenticationType,f=t.apiKey,p=t.region;if(this.socketStatus!==C.READY)return new Promise(function(t,g){return AWSAppSyncRealTimeProvider_awaiter(a,void 0,void 0,function(){var a,m,v,y,_,b,S,w,E,x;return AWSAppSyncRealTimeProvider_generator(this,function(P){switch(P.label){case 0:if(this.promiseArray.push({res:t,rej:g}),this.socketStatus!==C.CLOSED)return[3,5];P.label=1;case 1:return P.trys.push([1,4,,5]),this.socketStatus=C.CONNECTING,a=this.isSSLEnabled?"wss://":"ws://",m=s.replace("https://",a).replace("http://",a).replace("appsync-api","appsync-realtime-api").replace("gogi-beta","grt-beta"),v="{}",b=(_=JSON).stringify,[4,this._awsRealTimeHeaderBasedAuth({authenticationType:c,payload:v,canonicalUri:"/connect",apiKey:f,appSyncGraphqlEndpoint:s,region:p})];case 2:return y=b.apply(_,[P.sent()]),S=eh.lW.from(y).toString("base64"),w=eh.lW.from(v).toString("base64"),E=m+"?header="+S+"&payload="+w,[4,this._initializeRetryableHandshake({awsRealTimeUrl:E})];case 3:return P.sent(),this.promiseArray.forEach(function(t){var a=t.res;ew.debug("Notifying connection successful"),a()}),this.socketStatus=C.READY,this.promiseArray=[],[3,5];case 4:return x=P.sent(),this.promiseArray.forEach(function(t){return(0,t.rej)(x)}),this.promiseArray=[],this.awsRealTimeSocket&&this.awsRealTimeSocket.readyState===WebSocket.OPEN&&this.awsRealTimeSocket.close(3001),this.awsRealTimeSocket=null,this.socketStatus=C.CLOSED,[3,5];case 5:return[2]}})})})},AWSAppSyncRealTimeProvider.prototype._initializeRetryableHandshake=function(t){var a=t.awsRealTimeUrl;return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){return AWSAppSyncRealTimeProvider_generator(this,function(t){switch(t.label){case 0:return ew.debug("Initializaling retryable Handshake"),[4,(0,em.Xm)(this._initializeHandshake.bind(this),[{awsRealTimeUrl:a}],5e3)];case 1:return t.sent(),[2]}})})},AWSAppSyncRealTimeProvider.prototype._initializeHandshake=function(t){var a=t.awsRealTimeUrl;return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){var t,s,c,f=this;return AWSAppSyncRealTimeProvider_generator(this,function(p){switch(p.label){case 0:ew.debug("Initializing handshake "+a),p.label=1;case 1:return p.trys.push([1,4,,5]),[4,new Promise(function(t,s){var c=new WebSocket(a,"graphql-ws");c.onerror=function(){ew.debug("WebSocket connection error")}
1,c.onclose=function(){s(Error("Connection handshake error"))},c.onopen=function(){return f.awsRealTimeSocket=c,t()}})];case 2:return p.sent(),[4,new Promise(function(t,a){var s=!1;f.awsRealTimeSocket.onerror=function(t){ew.debug("WebSocket error "+JSON.stringify(t))},f.awsRealTimeSocket.onclose=function(t){ew.debug("WebSocket closed "+t.reason),a(Error(JSON.stringify(t)))},f.awsRealTimeSocket.onmessage=function(c){ew.debug("subscription message from AWS AppSyncRealTime: "+c.data+" ");var p=JSON.parse(c.data),g=p.type,m=p.payload,v=(void 0===m?{}:m).connectionTimeoutMs;if(g===S.GQL_CONNECTION_ACK){s=!0,f.keepAliveTimeout=void 0===v?3e5:v,f.awsRealTimeSocket.onmessage=f._handleIncomingSubscriptionMessage.bind(f),f.awsRealTimeSocket.onerror=function(t){ew.debug(t),f._errorDisconnect(E.CONNECTION_CLOSED)},f.awsRealTimeSocket.onclose=function(t){ew.debug("WebSocket closed "+t.reason),f._errorDisconnect(E.CONNECTION_CLOSED)},t("Cool, connected to AWS AppSyncRealTime");return}if(g===S.GQL_CONNECTION_ERROR){var y=p.payload,_=(void 0===y?{}:y).errors,b=AWSAppSyncRealTimeProvider_read(void 0===_?[]:_,1)[0],w=void 0===b?{}:b,C=w.errorType,x=w.errorCode;a({errorType:void 0===C?"":C,errorCode:void 0===x?0:x})}};var c={type:S.GQL_CONNECTION_INIT};f.awsRealTimeSocket.send(JSON.stringify(c)),setTimeout((function(){s||a(Error("Connection timeout: ack from AWSRealTime was not received on 15000 ms"))}
1).bind(f),15e3)})];case 3:return p.sent(),[3,5];case 4:if(s=(t=p.sent()).errorType,c=t.errorCode,eC.includes(c))throw new em.V2(s);if(s)throw Error(s);throw t;case 5:return[2]}})})},AWSAppSyncRealTimeProvider.prototype._awsRealTimeHeaderBasedAuth=function(t){var a=t.authenticationType,s=t.payload,c=t.canonicalUri,f=t.appSyncGraphqlEndpoint,p=t.apiKey,g=t.region;return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){var t,m;return AWSAppSyncRealTimeProvider_generator(this,function(v){switch(v.label){case 0:if("function"!=typeof(t=({API_KEY:this._awsRealTimeApiKeyHeader.bind(this),AWS_IAM:this._awsRealTimeIAMHeader.bind(this),OPENID_CONNECT:this._awsRealTimeOPENIDHeader.bind(this),AMAZON_COGNITO_USER_POOLS:this._awsRealTimeCUPHeader.bind(this)})[a]))return ew.debug("Authentication type "+a+" not supported"),[2,""];return m=ep.parse(f).host,[4,t({payload:s,canonicalUri:c,appSyncGraphqlEndpoint:f,apiKey:p,region:g,host:m})];case 1:return[2,v.sent()]}})})},AWSAppSyncRealTimeProvider.prototype._awsRealTimeCUPHeader=function(t){var a=t.host;return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){return AWSAppSyncRealTimeProvider_generator(this,function(t){switch(t.label){case 0:return[4,eb.currentSession()];case 1:return[2,{Authorization:t.sent().getAccessToken().getJwtToken(),host:a}]}})})},AWSAppSyncRealTimeProvider.prototype._awsRealTimeOPENIDHeader=function(t){var a=t.host;return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){var t,s,c;return AWSAppSyncRealTimeProvider_generator(this,function(f){switch(f.label){case 0:return[4,ey.ZP.getItem("federatedInfo")];case 1:if(!(s=f.sent()))return[3,2];return t=s.token,[3,4];case 2:return[4,eb.currentAuthenticatedUser()];case 3:(c=f.sent())&&(t=c.token),f.label=4;case 4:if(!t)throw Error("No federated jwt");return[2,{Authorization:t,host:a}]}})})},AWSAppSyncRealTimeProvider.prototype._awsRealTimeApiKeyHeader=function(t){var a=t.a
1piKey,s=t.host;return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){return AWSAppSyncRealTimeProvider_generator(this,function(t){return[2,{host:s,"x-amz-date":new Date().toISOString().replace(/[:\-]|\.\d{3}/g,""),"x-api-key":a}]})})},AWSAppSyncRealTimeProvider.prototype._awsRealTimeIAMHeader=function(t){var a=t.payload,s=t.canonicalUri,c=t.appSyncGraphqlEndpoint,f=t.region;return AWSAppSyncRealTimeProvider_awaiter(this,void 0,void 0,function(){var t,p,g;return AWSAppSyncRealTimeProvider_generator(this,function(m){switch(m.label){case 0:return t={region:f,service:"appsync"},[4,this._ensureCredentials()];case 1:if(!m.sent())throw Error("No credentials");return[4,D.cN.get().then(function(t){return{secret_key:t.secretAccessKey,access_key:t.accessKeyId,session_token:t.sessionToken}})];case 2:return p=m.sent(),g={url:""+c+s,data:a,method:"POST",headers:AWSAppSyncRealTimeProvider_assign({},eE)},[2,ev.E.sign(g,p,t).headers]}})})},AWSAppSyncRealTimeProvider.prototype._ensureCredentials=function(){return D.cN.get().then(function(t){if(!t)return!1;var a=D.cN.shear(t);return ew.debug("set credentials for AWSAppSyncRealTimeProvider",a),!0}).catch(function(t){return ew.warn("ensure credentials error",t),!1})},AWSAppSyncRealTimeProvider}(ei),PubSub_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},PubSub_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},eP=(0,ee.lC)().isNode,eI=new L.k("PubSub"),eT=new(function(){function PubSubClass(t){this._options=t,eI.debug("PubSub Options",this._options),this._pluggables=[],this.subscribe=this.subscribe.bind(this)}return Object.defineProperty(PubSubClass.prototype,"awsAppSyncProvider",{get:function(){return this._awsAppSyncProvider||(this._awsAppSyncProvider=new ef(this._options)),this._awsAppSyncProvider},enumerable:!0,configurable:!0}),Object.defineProperty(PubSubClass.prototype,"awsAppSyncRealTimeProvider",{get:function(){return this._awsAppSyncRealTimeProvider||(this._awsAppSyncRealTimeProvider=new ex(this._options)),this._awsAppSyncRealTimeProvider},enumerable:!0,configurable:!0}),PubSubClass.prototype.getModuleName=function(){return"PubSub"},PubSubClass.prototype.configure=function(t){var a=this,s=t?t.PubSub||t:{};return eI.debug("configure PubSub",{opt:s}),this._options=Object.assign({},this._options,s),this._pluggables.map(function(t){return t.configure(a._options)}),this._options},PubSubClass.prototype.addPluggable=function(t){return PubSub_awaiter(this,void 0,void 0,function(){return PubSub_generator(this,function(a){return t&&"PubSub"===t.getCategory()?(this._pluggables.push(t),[2,t.configure(this._options)]):[2]})})},PubSubClass.prototype.getProviderByName=function(t){return t===J?this.awsAppSyncProvider:t===Z?this.awsAppSyncRealTimeProvider:this._pluggables.find(function(a){return a.getProviderName()===t})},PubSubClass.prototype.getProviders=function(t){void 0===t&&(t={});var a=t.provider;if(!a)return this._pluggables;var s=this.getProviderByName(a);if(!s)throw Error("Could not find provider named "+a);return[s]},PubSubClass.prototype.publish=function(t,a,s){return PubSub_awaiter(this,void 0,void 0,function(){return PubSub_generator(this,function(c){return[2,Promise.all(this.getProviders(s).map(function(c){return c.publish(t,a,s)}))]})})},PubSubClass.prototype.subscribe=function(t,a){if(eP&&this._options&&this._options.ssr)throw Error("Subscriptions are not supported for Server-Side Rendering (SSR)");eI.debug("subscribe options",a);var s=this.getProviders(a);return new X(function(c){var f=s.map(function(s){return{provider:s,observable:s.subscribe(t,a)}}).map(function(t){var a=t.provider;return t.observable.subscribe({start:console.error,next:function(t){return c.next({provider:a,value:t})},error:function(t){return c.error({provider:a,error:t})}})});return function(){return f.forEach(function(t){return t.unsubscribe()})}})},PubSubClass}())(null);V.dQ.register(eT),(y=E||(E={})).CONNECTION_CLOSED="Connection closed",y.CONNECTION_FAILED="Connection failed",y.REALTIME_SUBSCRIPTION_INIT_ERROR="AppSync Realtime subscription init error",y.SUBSCRIPTION_ACK="Subscription ack",y.TIMEOUT_DISCONNECT="Timeout disconnect",(_=x||(x={})).API_KEY="API_KEY",_.AWS_IAM="AWS_IAM",_.OPENID_CONNECT="OPENID_CONNECT",_.AMAZON_COGNITO_USER_POOLS="AMAZON_COGNITO_USER_POOLS",(b=P||(P={})).NO_API_KEY="No api-key configured",b.NO_CURRENT_USER="No current user",b.NO_CREDENTIALS="No credentials",b.NO_FEDERATED_JWT="No federated jwt";var ek=s(11445),GraphQLAPI_assign=function(){return(GraphQLAPI_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)}
1,GraphQLAPI_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},GraphQLAPI_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},GraphQLAPI_rest=function(t,a){var s={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(s[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var f=0,c=Object.getOwnPropertySymbols(t);f<c.length;f++)0>a.indexOf(c[f])&&Object.prototype.propertyIsEnumerable.call(t,c[f])&&(s[c[f]]=t[c[f]]);return s},GraphQLAPI_read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},eO=new L.k("GraphQLAPI"),graphqlOperation=function(t,a){return void 0===a&&(a={}),{query:t,variables:a}},eR=function(){function GraphQLAPIClass(t){this._api=null,this.Auth=eb,this.Cache=ey.ZP,this.Credentials=D.cN,this._options=t,eO.debug("API Options",this._options)}return GraphQLAPIClass.prototype.getModuleName=function(){return"GraphQLAPI"},GraphQLAPIClass.prototype.configure=function(t){var a=t||{},s=a.API,c=GraphQLAPI_rest(a,["API"]),f=GraphQLAPI_assign(GraphQLAPI_assign({},c),void 0===s?{}:s);return eO.debug("configure GraphQL API",{opt:f}),f.aws_project_region&&(f=Object.assign({},f,{region:f.aws_project_region,header:{}})),void 0!==f.graphql_headers&&"function"!=typeof f.graphql_headers&&(eO.warn("graphql_headers should be a function"),f.graphql_headers=void 0),this._options=Object.assign({},this._options,f),this.createInstance(),this._options},GraphQLAPIClass.prototype.createInstance=function(){return(eO.debug("create Rest instance"),this._options)?(this._api=new ek.H(this._options),this._api.Credentials=this.Credentials,!0):Promise.reject("API not configured")},GraphQLAPIClass.prototype._headerBasedAuth=function(t){return GraphQLAPI_awaiter(this,void 0,void 0,function(){var a,s,c,f,p,g,m;return GraphQLAPI_generator(this,function(v){switch(v.label){case 0:switch(s=(a=this._options).aws_appsync_authenticationType,c=a.aws_appsync_apiKey,f={},t||s||"AWS_IAM"){case"API_KEY":return[3,1];case"AWS_IAM":return[3,2];case"OPENID_CONNECT":return[3,4];case"AMAZON_COGNITO_USER_POOLS":return[3,11]}return[3,15];case 1:if(!c)throw Error(P.NO_API_KEY);return f={Authorization:null,"X-Api-Key":c},[3,16];case 2:return[4,this._ensureCredentials()];case 3:if(!v.sent())throw Error(P.NO_CREDENTIALS);return[3,16];case 4:return v.trys.push([4,9,,10]),p=void 0,[4,ey.ZP.getItem("federatedInfo")];case 5:if(!(g=v.sent()))return[3,6];return p=g.token,[3,8];case 6:return[4,eb.currentAuthenticatedUser()];case 7:(m=v.sent())&&(p=m.token),v.label=8;case 8:if(!p)throw Error(P.NO_FEDERATED_JWT);return f={Authorization:p},[3,10];case 9:case 13:throw v.sent(),Error(P.NO_CURRENT_USER);
1case 10:case 14:return[3,16];case 11:return v.trys.push([11,13,,14]),[4,this.Auth.currentSession()];case 12:return f={Authorization:v.sent().getAccessToken().getJwtToken()},[3,14];case 15:return f={Authorization:null},[3,16];case 16:return[2,f]}})})},GraphQLAPIClass.prototype.getGraphqlOperationType=function(t){return GraphQLAPI_read(parse(t).definitions,1)[0].operation},GraphQLAPIClass.prototype.graphql=function(t,a){var s=t.query,c=t.variables,f=void 0===c?{}:c,p=t.authMode,g="string"==typeof s?parse(s):parse(print(s)),m=GraphQLAPI_read(g.definitions.filter(function(t){return"OperationDefinition"===t.kind}),1)[0],v=(void 0===m?{}:m).operation;switch(v){case"query":case"mutation":var y=this._api.getCancellableToken(),_=this._graphql({query:g,variables:f,authMode:p},a,{cancellableToken:y});return this._api.updateRequestToBeCancellable(_,y),_;case"subscription":return this._graphqlSubscribe({query:g,variables:f,authMode:p},a)}throw Error("invalid operation type: "+v)},GraphQLAPIClass.prototype._graphql=function(t,a,s){var c=t.query,f=t.variables,p=t.authMode;return void 0===a&&(a={}),void 0===s&&(s={}),GraphQLAPI_awaiter(this,void 0,void 0,function(){var t,g,m,v,y,_,b,S,w,C,E,x,P,I,T,k,O,R,M;return GraphQLAPI_generator(this,function(N){switch(N.label){case 0:if(this._api)return[3,2];return[4,this.createInstance()];case 1:N.sent(),N.label=2;case 2:if(g=(t=this._options).aws_appsync_region,m=t.aws_appsync_graphqlEndpoint,y=void 0===(v=t.graphql_headers)?function(){return{}}:v,_=t.graphql_endpoint,b=t.graphql_endpoint_iam_region,S=[{}],!(w=!_))return[3,4];return[4,this._headerBasedAuth(p)];case 3:w=N.sent(),N.label=4;case 4:if(C=[GraphQLAPI_assign.apply(void 0,S.concat([w]))],!(E=_))return[3,8];if(!b)return[3,6];return[4,this._headerBasedAuth(p)];case 5:return x=N.sent(),[3,7];case 6:x={Authorization:null},N.label=7;case 7:E=x,N.label=8;case 8:return P=[GraphQLAPI_assign.apply(void 0,C.concat([E]))],[4,y({query:c,variables:f})];case 9:if(I=Object.assign({headers:GraphQLAPI_assign.apply(void 0,[GraphQLAPI_assign.apply(void 0,[GraphQLAPI_assign.apply(void 0,P.concat([N.sent()])),a]),!_&&((M={})["x-amz-user-agent"]=$.userAgent,M)]),body:{query:print(c),variables:f},signerServiceInfo:{service:_?"execute-api":"appsync",region:_?b:g}},s),!(T=_||m))throw{data:{},errors:[new GraphQLError("No graphql endpoint provided.")]};N.label=10;case 10:return N.trys.push([10,12,,13]),[4,this._api.post(T,I)];case 11:return k=N.sent(),[3,13];case 12:if(O=N.sent(),this._api.isCancel(O))throw O;return k={data:{},errors:[new GraphQLError(O.message,null,null,null,null,O)]},[3,13];case 13:if((R=k.errors)&&R.length)throw k;return[2,k]}})})},GraphQLAPIClass.prototype.isCancel=function(t){return this._api.isCancel(t)},GraphQLAPIClass.prototype.cancel=function(t,a){return this._api.cancel(t,a)},GraphQLAPIClass.prototype._graphqlSubscribe=function(t,a){var s=t.query,c=t.variables,f=t.authMode;void 0===a&&(a={});var p=this._options,g=p.aws_appsync_region,m=p.aws_appsync_graphqlEndpoint,v=p.aws_appsync_authenticationType,y=p.aws_appsync_apiKey,_=p.graphql_headers;if(eT&&"function"==typeof eT.subscribe)return eT.subscribe("",{provider:Z,appSyncGraphqlEndpoint:m,authenticationType:f||v||"AWS_IAM",apiKey:y,query:print(s),region:g,variables:c,graphql_headers:void 0===_?function(){return{}}:_,additionalHeaders:a});throw eO.debug("No pubsub module applied for subscription"),Error("No pubsub module applied for subscription")},GraphQLAPIClass.prototype._ensureCredentials=function(){var t=this;return this.Credentials.get().then(function(a){if(!a)return!1;var s=t.Credentials.shear(a);return eO.debug("set credentials for api",s),!0}).catch(function(t){return eO.warn("ensure credentials error",t),!1})},GraphQLAPIClass}(),eM=new eR(null);V.dQ.register(eM)},11445:function(t,a,s){"use strict";s.d(a,{H:function(){return S}});var c=s(35069),f=s(32615),p=s(92752),g=s(74018),m=s(90633),v=s(731),y=s.n(v),_=s(11987),__assign=function(){return(__assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},__generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]}
1,trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},__rest=function(t,a){var s={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(s[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var f=0,c=Object.getOwnPropertySymbols(t);f<c.length;f++)0>a.indexOf(c[f])&&Object.prototype.propertyIsEnumerable.call(t,c[f])&&(s[c[f]]=t[c[f]]);return s},b=new c.k("RestClient"),S=function(){function RestClient(t){this._region="us-east-1",this._service="execute-api",this._custom_header=void 0,this._cancelTokenMap=null,this.Credentials=f.cN,this._options=t,b.debug("API Options",this._options),null==this._cancelTokenMap&&(this._cancelTokenMap=new WeakMap)}return RestClient.prototype.ajax=function(t,a,s){var c,f,m,v;return c=this,f=void 0,m=void 0,v=function(){var c,f,m,v,y,S,w,C,E,x,P,I,T,k=this;return __generator(this,function(O){switch(O.label){case 0:if(b.debug(a,t),m="us-east-1",v="execute-api",y=void 0,"string"==typeof t?(c=this._parseUrl(t),f=t):(f=t.endpoint,y=t.custom_header,m=t.region,v=t.service,c=this._parseUrl(t.endpoint)),S={method:a,url:f,host:c.host,path:c.path,headers:{},data:null,responseType:"json",timeout:0,cancelToken:null},w={},p.t4.isReactNative&&(w={"User-Agent":p.t4.userAgent||"aws-amplify/0.1.x"}),E=(C=Object.assign({},s)).response,C.body&&("function"==typeof FormData&&C.body instanceof FormData?(w["Content-Type"]="multipart/form-data",S.data=C.body):(w["Content-Type"]="application/json; charset=UTF-8",S.data=JSON.stringify(C.body))),C.responseType&&(S.responseType=C.responseType),C.withCredentials&&(S.withCredentials=C.withCredentials),C.timeout&&(S.timeout=C.timeout),C.cancellableToken&&(S.cancelToken=C.cancellableToken.token),S.signerServiceInfo=C.signerServiceInfo,"function"!=typeof y)return[3,2];return[4,y()];case 1:return P=O.sent(),[3,3];case 2:P=void 0,O.label=3;case 3:if(x=P,S.headers=__assign(__assign(__assign({},w),x),C.headers),(I=(0,_.parse)(f,!0,!0)).search,T=__rest(I,["search"]),S.url=(0,_.format)(__assign(__assign({},T),{query:__assign(__assign({},T.query),C.queryStringParameters||{})})),void 0!==S.headers.Authorization)return S.headers=Object.keys(S.headers).reduce(function(t,a){return S.headers[a]&&(t[a]=S.headers[a]),t},{}),[2,this._request(S,E)];return[2,this.Credentials.get().then(function(c){return k._signed(__assign({},S),c,E,{region:m,service:v}).catch(function(c){if(g.E.isClockSkewError(c)){var f=c.response.headers,p=f&&(f.date||f.Date),m=new Date(p),v=g.E.getDateFromHeaderString(S.headers["x-amz-date"]);if(g.E.isClockSkewed(v,m))return g.E.setClockOffset(m.getTime()-v.getTime()),k.ajax(t,a,s)}throw c})},function(t){return b.debug("No credentials available, the request will be unsigned"),k._request(S,E)})]}})},new(m||(m=Promise))(function(t,a){function fulfilled(t){try{step(v.next(t))}catch(t){a(t)}}function rejected(t){try{step(v.throw(t))}catch(t){a(t)}}function step(a){var s;a.done?t(a.value):((s=a.value)instanceof m?s:new m(function(t){t(s)})).then(fulfilled,rejected)}step((v=v.apply(c,f||[])).next())})},RestClient.prototype.get=function(t,a){return this.ajax(t,"GET",a)},RestClient.prototype.put=function(t,a){return this.ajax(t,"PUT",a)},RestClient.prototype.patch=function(t,a){return this.ajax(t,"PATCH",a)},RestClient.prototype.post=function(t,a){return this.ajax(t,"POST",a)},RestClient.prototype.del=function(t,a){return this.ajax(t,"DELETE",a)},RestClient.prototype.head=function(t,a){return this.ajax(t,"HEAD",a)},RestClient.prototype.cancel=function(t,a){var s=this._cancelTokenMap.get(t);return s&&s.cancel(a),!0},RestClient.prototype.isCancel=function(t){return y().isCancel(t)},RestClient.prototype.getCancellableToken=function(){return y().CancelToken.source()},RestClient.prototype.updateRequestToBeCancellable=function(t,a){this._cancelTokenMap.set(t,a)},RestClient.prototype.endpoint=function(t){var a=this,s=this._options.endpoints,c="";
1return Array.isArray(s)&&s.forEach(function(s){s.name===t&&(c=s.endpoint,"string"==typeof s.region?a._region=s.region:"string"==typeof a._options.region&&(a._region=a._options.region),"string"==typeof s.service?a._service=s.service||"execute-api":a._service="execute-api","function"==typeof s.custom_header?a._custom_header=s.custom_header:a._custom_header=void 0)}),c},RestClient.prototype._signed=function(t,a,s,c){var f=c.service,p=c.region,g=t.signerServiceInfo,v=__rest(t,["signerServiceInfo"]),_=p||this._region||this._options.region,S=f||this._service||this._options.service,w={secret_key:a.secretAccessKey,access_key:a.accessKeyId,session_token:a.sessionToken},C=Object.assign({region:_,service:S},g),E=m.E.sign(v,w,C);return E.data&&(E.body=E.data),b.debug("Signed Request: ",E),delete E.headers.host,y()(E).then(function(t){return s?t:t.data}).catch(function(t){throw b.debug(t),t})},RestClient.prototype._request=function(t,a){return void 0===a&&(a=!1),y()(t).then(function(t){return a?t:t.data}).catch(function(t){throw b.debug(t),t})},RestClient.prototype._parseUrl=function(t){var a=t.split("/");return{host:a[2],path:"/"+a.slice(3).join("/")}},RestClient}()},731:function(t,a,s){t.exports=s(30317)},85660:function(t,a,s){"use strict";var c=s(90606),f=s(4813),p=s(78218),g=s(61283),m=s(49238),v=s(67318),y=s(52975),_=s(45709);t.exports=function(t){return new Promise(function(a,s){var b=t.data,S=t.headers;c.isFormData(b)&&delete S["Content-Type"];var w=new XMLHttpRequest;if(t.auth){var C=t.auth.username||"",E=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";S.Authorization="Basic "+btoa(C+":"+E)}var x=m(t.baseURL,t.url);if(w.open(t.method.toUpperCase(),g(x,t.params,t.paramsSerializer),!0),w.timeout=t.timeout,w.onreadystatechange=function(){if(w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))){var c="getAllResponseHeaders"in w?v(w.getAllResponseHeaders()):null;f(a,s,{data:t.responseType&&"text"!==t.responseType?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:c,config:t,request:w}),w=null}},w.onabort=function(){w&&(s(_("Request aborted",t,"ECONNABORTED",w)),w=null)},w.onerror=function(){s(_("Network Error",t,null,w)),w=null},w.ontimeout=function(){var a="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(a=t.timeoutErrorMessage),s(_(a,t,"ECONNABORTED",w)),w=null},c.isStandardBrowserEnv()){var P=(t.withCredentials||y(x))&&t.xsrfCookieName?p.read(t.xsrfCookieName):void 0;P&&(S[t.xsrfHeaderName]=P)}if("setRequestHeader"in w&&c.forEach(S,function(t,a){void 0===b&&"content-type"===a.toLowerCase()?delete S[a]:w.setRequestHeader(a,t)}
1),c.isUndefined(t.withCredentials)||(w.withCredentials=!!t.withCredentials),t.responseType)try{w.responseType=t.responseType}catch(a){if("json"!==t.responseType)throw a}"function"==typeof t.onDownloadProgress&&w.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){w&&(w.abort(),s(t),w=null)}),b||(b=null),w.send(b)})}},30317:function(t,a,s){"use strict";var c=s(90606),f=s(6574),p=s(86527),g=s(1988);function createInstance(t){var a=new p(t),s=f(p.prototype.request,a);return c.extend(s,p.prototype,a),c.extend(s,a),s}var m=createInstance(s(91940));m.Axios=p,m.create=function(t){return createInstance(g(m.defaults,t))},m.Cancel=s(82446),m.CancelToken=s(79),m.isCancel=s(72710),m.all=function(t){return Promise.all(t)},m.spread=s(68433),m.isAxiosError=s(81323),t.exports=m,t.exports.default=m},82446:function(t){"use strict";function Cancel(t){this.message=t}Cancel.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,t.exports=Cancel},79:function(t,a,s){"use strict";var c=s(82446);function CancelToken(t){if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){a=t});var a,s=this;t(function(t){s.reason||(s.reason=new c(t),a(s.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.source=function(){var t;return{token:new CancelToken(function(a){t=a}),cancel:t}},t.exports=CancelToken},72710:function(t){"use strict";t.exports=function(t){return!!(t&&t.__CANCEL__)}},86527:function(t,a,s){"use strict";var c=s(90606),f=s(61283),p=s(72683),g=s(47092),m=s(1988);function Axios(t){this.defaults=t,this.interceptors={request:new p,response:new p}}Axios.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},(t=m(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var a=[g,void 0],s=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){a.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){a.push(t.fulfilled,t.rejected)});a.length;)s=s.then(a.shift(),a.shift());return s},Axios.prototype.getUri=function(t){return f((t=m(this.defaults,t)).url,t.params,t.paramsSerializer).replace(/^\?/,"")},c.forEach(["delete","get","head","options"],function(t){Axios.prototype[t]=function(a,s){return this.request(m(s||{},{method:t,url:a,data:(s||{}).data}))}}),c.forEach(["post","put","patch"],function(t){Axios.prototype[t]=function(a,s,c){return this.request(m(c||{},{method:t,url:a,data:s}))}}),t.exports=Axios},72683:function(t,a,s){"use strict";var c=s(90606);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function(t,a){return this.handlers.push({fulfilled:t,rejected:a}),this.handlers.length-1},InterceptorManager.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},InterceptorManager.prototype.forEach=function(t){c.forEach(this.handlers,function(a){null!==a&&t(a)})},t.exports=InterceptorManager},49238:function(t,a,s){"use strict";var c=s(80589),f=s(67110);t.exports=function(t,a){return t&&!c(a)?f(t,a):a}},45709:function(t,a,s){"use strict";var c=s(6546);t.exports=function(t,a,s,f,p){return c(Error(t),a,s,f,p)}},47092:function(t,a,s){"use strict";var c=s(90606),f=s(6755),p=s(72710),g=s(91940);function throwIfCancellationRequested(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return throwIfCancellationRequested(t),t.headers=t.headers||{},t.data=f(t.data,t.headers,t.transformRequest),t.headers=c.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),c.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]}),(t.adapter||g.adapter)(t).then(function(a){return throwIfCancellationRequested(t),a.data=f(a.data,a.headers,t.transformResponse),a},function(a){return!p(a)&&(throwIfCancellationRequested(t),a&&a.response&&(a.response.data=f(a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})}},6546:function(t){"use strict";
1t.exports=function(t,a,s,c,f){return t.config=a,s&&(t.code=s),t.request=c,t.response=f,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},1988:function(t,a,s){"use strict";var c=s(90606);t.exports=function(t,a){a=a||{};var s={},f=["url","method","data"],p=["headers","auth","proxy","params"],g=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],m=["validateStatus"];function getMergedValue(t,a){return c.isPlainObject(t)&&c.isPlainObject(a)?c.merge(t,a):c.isPlainObject(a)?c.merge({},a):c.isArray(a)?a.slice():a}function mergeDeepProperties(f){c.isUndefined(a[f])?c.isUndefined(t[f])||(s[f]=getMergedValue(void 0,t[f])):s[f]=getMergedValue(t[f],a[f])}c.forEach(f,function(t){c.isUndefined(a[t])||(s[t]=getMergedValue(void 0,a[t]))}),c.forEach(p,mergeDeepProperties),c.forEach(g,function(f){c.isUndefined(a[f])?c.isUndefined(t[f])||(s[f]=getMergedValue(void 0,t[f])):s[f]=getMergedValue(void 0,a[f])}),c.forEach(m,function(c){c in a?s[c]=getMergedValue(t[c],a[c]):c in t&&(s[c]=getMergedValue(void 0,t[c]))});var v=f.concat(p).concat(g).concat(m),y=Object.keys(t).concat(Object.keys(a)).filter(function(t){return -1===v.indexOf(t)});return c.forEach(y,mergeDeepProperties),s}},4813:function(t,a,s){"use strict";var c=s(45709);t.exports=function(t,a,s){var f=s.config.validateStatus;!s.status||!f||f(s.status)?t(s):a(c("Request failed with status code "+s.status,s.config,null,s.request,s))}},6755:function(t,a,s){"use strict";var c=s(90606);t.exports=function(t,a,s){return c.forEach(s,function(s){t=s(t,a)}),t}},91940:function(t,a,s){"use strict";var c,f=s(83454),p=s(90606),g=s(83613),m={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(t,a){!p.isUndefined(t)&&p.isUndefined(t["Content-Type"])&&(t["Content-Type"]=a)}var v={adapter:("undefined"!=typeof XMLHttpRequest?c=s(85660):void 0!==f&&"[object process]"===Object.prototype.toString.call(f)&&(c=s(85660)),c),transformRequest:[function(t,a){return(g(a,"Accept"),g(a,"Content-Type"),p.isFormData(t)||p.isArrayBuffer(t)||p.isBuffer(t)||p.isStream(t)||p.isFile(t)||p.isBlob(t))?t:p.isArrayBufferView(t)?t.buffer:p.isURLSearchParams(t)?(setContentTypeIfUnset(a,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):p.isObject(t)?(setContentTypeIfUnset(a,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};v.headers={common:{Accept:"application/json, text/plain, */*"}},p.forEach(["delete","get","head"],function(t){v.headers[t]={}}),p.forEach(["post","put","patch"],function(t){v.headers[t]=p.merge(m)}),t.exports=v},6574:function(t){"use strict";t.exports=function(t,a){return function(){for(var s=Array(arguments.length),c=0;c<s.length;c++)s[c]=arguments[c];return t.apply(a,s)}}},61283:function(t,a,s){"use strict";var c=s(90606);function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,a,s){if(!a)return t;if(s)f=s(a);else if(c.isURLSearchParams(a))f=a.toString();else{var f,p=[];c.forEach(a,function(t,a){null!=t&&(c.isArray(t)?a+="[]":t=[t],c.forEach(t,function(t){c.isDate(t)?t=t.toISOString():c.isObject(t)&&(t=JSON.stringify(t)),p.push(encode(a)+"="+encode(t))}))}),f=p.join("&")}if(f){var g=t.indexOf("#");-1!==g&&(t=t.slice(0,g)),t+=(-1===t.indexOf("?")?"?":"&")+f}return t}},67110:function(t){"use strict";
vendor: 1,624 bytes, line 1
1t.exports=function(t,a){return a?t.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):t}},78218:function(t,a,s){"use strict";var c=s(90606);t.exports=c.isStandardBrowserEnv()?{write:function(t,a,s,f,p,g){var m=[];m.push(t+"="+encodeURIComponent(a)),c.isNumber(s)&&m.push("expires="+new Date(s).toGMTString()),c.isString(f)&&m.push("path="+f),c.isString(p)&&m.push("domain="+p),!0===g&&m.push("secure"),document.cookie=m.join("; ")},read:function(t){var a=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},80589:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},81323:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},52975:function(t,a,s){"use strict";var c=s(90606);t.exports=c.isStandardBrowserEnv()?function(){var t,a=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");function resolveURL(t){var c=t;return a&&(s.setAttribute("href",c),c=s.href),s.setAttribute("href",c),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}return t=resolveURL(window.location.href),function(a){var s=c.isString(a)?resolveURL(a):a;return s.protocol===t.protocol&&s.host===t.host}}():function(){return!0}},83613:function(t,a,s){"use strict";var c=s(90606);
1t.exports=function(t,a){c.forEach(t,function(s,c){c!==a&&c.toUpperCase()===a.toUpperCase()&&(t[a]=s,delete t[c])})}},67318:function(t,a,s){"use strict";var c=s(90606),f=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var a,s,p,g={};return t&&c.forEach(t.split("\n"),function(t){p=t.indexOf(":"),a=c.trim(t.substr(0,p)).toLowerCase(),s=c.trim(t.substr(p+1)),a&&!(g[a]&&f.indexOf(a)>=0)&&("set-cookie"===a?g[a]=(g[a]?g[a]:[]).concat([s]):g[a]=g[a]?g[a]+", "+s:s)}),g}},68433:function(t){"use strict";t.exports=function(t){return function(a){return t.apply(null,a)}}},90606:function(t,a,s){"use strict";var c=s(6574),f=Object.prototype.toString;function isArray(t){return"[object Array]"===f.call(t)}function isUndefined(t){return void 0===t}function isObject(t){return null!==t&&"object"==typeof t}function isPlainObject(t){if("[object Object]"!==f.call(t))return!1;var a=Object.getPrototypeOf(t);return null===a||a===Object.prototype}function isFunction(t){return"[object Function]"===f.call(t)}function forEach(t,a){if(null!=t){if("object"!=typeof t&&(t=[t]),isArray(t))for(var s=0,c=t.length;s<c;s++)a.call(null,t[s],s,t);else for(var f in t)Object.prototype.hasOwnProperty.call(t,f)&&a.call(null,t[f],f,t)}}t.exports={isArray:isArray,isArrayBuffer:function(t){return"[object ArrayBuffer]"===f.call(t)},isBuffer:function(t){return null!==t&&!isUndefined(t)&&null!==t.constructor&&!isUndefined(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:function(t){return"[object Date]"===f.call(t)},isFile:function(t){return"[object File]"===f.call(t)},isBlob:function(t){return"[object Blob]"===f.call(t)},isFunction:isFunction,isStream:function(t){return isObject(t)&&isFunction(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:forEach,merge:function merge(){var t={};function assignValue(a,s){isPlainObject(t[s])&&isPlainObject(a)?t[s]=merge(t[s],a):isPlainObject(a)?t[s]=merge({},a):isArray(a)?t[s]=a.slice():t[s]=a}for(var a=0,s=arguments.length;a<s;a++)forEach(arguments[a],assignValue);return t},extend:function(t,a,s){return forEach(a,function(a,f){s&&"function"==typeof a?t[f]=c(a,s):t[f]=a}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},10552:function(t,a,s){"use strict";s.d(a,{b:function(){return C}});var c=s(9432),f=s(7895),p=s(11445),g=s(35069),m=s(32615),v=s(25387),__assign=function(){return(__assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},__generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>
10&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},__rest=function(t,a){var s={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(s[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var f=0,c=Object.getOwnPropertySymbols(t);f<c.length;f++)0>a.indexOf(c[f])&&Object.prototype.propertyIsEnumerable.call(t,c[f])&&(s[c[f]]=t[c[f]]);return s},y=new g.k("RestAPI"),_=function(){function RestAPIClass(t){this._api=null,this.Credentials=m.cN,this._options=t,y.debug("API Options",this._options)}return RestAPIClass.prototype.getModuleName=function(){return"RestAPI"},RestAPIClass.prototype.configure=function(t){var a=t||{},s=a.API,c=__rest(a,["API"]),f=__assign(__assign({},c),void 0===s?{}:s);if(y.debug("configure Rest API",{opt:f}),f.aws_project_region){if(f.aws_cloud_logic_custom){var p=f.aws_cloud_logic_custom;f.endpoints="string"==typeof p?JSON.parse(p):p}f=Object.assign({},f,{region:f.aws_project_region,header:{}})}return Array.isArray(f.endpoints)?f.endpoints.forEach(function(t){void 0!==t.custom_header&&"function"!=typeof t.custom_header&&(y.warn("Rest API "+t.name+", custom_header should be a function"),t.custom_header=void 0)}):this._options&&Array.isArray(this._options.endpoints)?f.endpoints=this._options.endpoints:f.endpoints=[],this._options=Object.assign({},this._options,f),this.createInstance(),this._options},RestAPIClass.prototype.createInstance=function(){return y.debug("create Rest API instance"),this._api=new p.H(this._options),this._api.Credentials=this.Credentials,!0},RestAPIClass.prototype.get=function(t,a,s){try{var c=this.getEndpointInfo(t,a),f=this._api.getCancellableToken(),p=Object.assign({},s);p.cancellableToken=f;var g=this._api.get(c,p);return this._api.updateRequestToBeCancellable(g,f),g}catch(t){return Promise.reject(t.message)}},RestAPIClass.prototype.post=function(t,a,s){try{var c=this.getEndpointInfo(t,a),f=this._api.getCancellableToken(),p=Object.assign({},s);p.cancellableToken=f;var g=this._api.post(c,p);return this._api.updateRequestToBeCancellable(g,f),g}catch(t){return Promise.reject(t.message)}},RestAPIClass.prototype.put=function(t,a,s){try{var c=this.getEndpointInfo(t,a),f=this._api.getCancellableToken(),p=Object.assign({},s);p.cancellableToken=f;var g=this._api.put(c,p);return this._api.updateRequestToBeCancellable(g,f),g}catch(t){return Promise.reject(t.message)}},RestAPIClass.prototype.patch=function(t,a,s){try{var c=this.getEndpointInfo(t,a),f=this._api.getCancellableToken(),p=Object.assign({},s);p.cancellableToken=f;var g=this._api.patch(c,p);return this._api.updateRequestToBeCancellable(g,f),g}catch(t){return Promise.reject(t.message)}},RestAPIClass.prototype.del=function(t,a,s){try{var c=this.getEndpointInfo(t,a),f=this._api.getCancellableToken(),p=Object.assign({},s);p.cancellableToken=f;var g=this._api.del(c,p);return this._api.updateRequestToBeCancellable(g,f),g}catch(t){return Promise.reject(t.message)}},RestAPIClass.prototype.head=function(t,a,s){try{var c=this.getEndpointInfo(t,a),f=this._api.getCancellableToken(),p=Object.assign({},s);p.cancellableToken=f;var g=this._api.head(c,p);return this._api.updateRequestToBeCancellable(g,f),g}catch(t){return Promise.reject(t.message)}},RestAPIClass.prototype.isCancel=function(t){return this._api.isCancel(t)},RestAPIClass.prototype.cancel=function(t,a){return this._api.cancel(t,a)},RestAPIClass.prototype.endpoint=function(t){var a,s,c,f;return a=this,s=void 0,c=void 0,f=function(){return __generator(this,function(a){return[2,this._api.endpoint(t)]})},new(c||(c=Promise))(function(t,p){function fulfilled(t){try{step(f.next(t))}catch(t){p(t)}}function rejected(t){try{step(f.throw(t))}catch(t){p(t)}}function step(a){var s;a.done?t(a.value):((s=a.value)instanceof c?s:new c(function(t){t(s)})).then(fulfilled,rejected)}step((f=f.apply(a,s||[])).next())})},RestAPIClass.prototype.getEndpointInfo=function(t,a){var s=this._options.endpoints;if(!Array.isArray(s))throw Error("API category not configured");var c=s.find(function(a){return a.name===t});if(!c)throw Error("API "+t+" does not exist");var f={endpoint:c.endpoint+a};return"string"==typeof c.region?f.region=c.region:"string"==typeof this._options.region&&(f.region=this._options.region),"string"==typeof c.service?f.service=c.service||"execute-api":f.service="execute-api","function"==typeof c.custom_header?f.custom_header=c.custom_header:f.custom_header=void 0,f},RestAPIClass}(),b=new _(null);v.dQ.register(b);var S=s(6743),API_assign=function(){return(API_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},API_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]}
1,trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},w=new g.k("API"),C=new(function(){function APIClass(t){this.Auth=c.g,this.Cache=f.ZP,this.Credentials=m.cN,this._options=t,this._restApi=new _(t),this._graphqlApi=new S.xC(t),w.debug("API Options",this._options)}return APIClass.prototype.getModuleName=function(){return"API"},APIClass.prototype.configure=function(t){this._options=Object.assign({},this._options,t),this._restApi.Credentials=this.Credentials,this._graphqlApi.Auth=this.Auth,this._graphqlApi.Cache=this.Cache,this._graphqlApi.Credentials=this.Credentials;var a=this._restApi.configure(this._options),s=this._graphqlApi.configure(this._options);return API_assign(API_assign({},a),s)},APIClass.prototype.get=function(t,a,s){return this._restApi.get(t,a,s)},APIClass.prototype.post=function(t,a,s){return this._restApi.post(t,a,s)},APIClass.prototype.put=function(t,a,s){return this._restApi.put(t,a,s)},APIClass.prototype.patch=function(t,a,s){return this._restApi.patch(t,a,s)},APIClass.prototype.del=function(t,a,s){return this._restApi.del(t,a,s)},APIClass.prototype.head=function(t,a,s){return this._restApi.head(t,a,s)},APIClass.prototype.isCancel=function(t){return this._restApi.isCancel(t)},APIClass.prototype.cancel=function(t,a){return this._restApi.cancel(t,a)},APIClass.prototype.endpoint=function(t){var a,s,c,f;return a=this,s=void 0,c=void 0,f=function(){return API_generator(this,function(a){return[2,this._restApi.endpoint(t)]})},new(c||(c=Promise))(function(t,p){function fulfilled(t){try{step(f.next(t))}catch(t){p(t)}}function rejected(t){try{step(f.throw(t))}catch(t){p(t)}}function step(a){var s;a.done?t(a.value):((s=a.value)instanceof c?s:new c(function(t){t(s)})).then(fulfilled,rejected)}step((f=f.apply(a,s||[])).next())})},APIClass.prototype.getGraphqlOperationType=function(t){return this._graphqlApi.getGraphqlOperationType(t)},APIClass.prototype.graphql=function(t,a){return this._graphqlApi.graphql(t,a)},APIClass}())(null);v.dQ.register(C)},9432:function(t,a,s){"use strict";function isFederatedSignInOptions(t){return t&&!!["provider"].find(function(a){return t.hasOwnProperty(a)})}function isCognitoHostedOpts(t){return void 0!==t.redirectSignIn}s.d(a,{g:function(){return J}}),(p=m||(m={})).Cognito="COGNITO",p.Google="Google",p.Facebook="Facebook",p.Amazon="LoginWithAmazon",p.Apple="SignInWithApple",(g=v||(v={})).NoConfig="noConfig",g.MissingAuthConfig="missingAuthConfig",g.EmptyUsername="emptyUsername",g.InvalidUsername="invalidUsername",g.EmptyPassword="emptyPassword",g.EmptyCode="emptyCode",g.SignUpError="signUpError",g.NoMFA="noMFA",g.InvalidMFA="invalidMFA",g.EmptyChallengeResponse="emptyChallengeResponse",g.NoUserSession="noUserSession",g.Default="default";var c,f,p,g,m,v,y,_=s(35069),b=s(20490),S=s(32615),w=s(85389),C=s(76489);function readCookie(t,a){void 0===a&&(a={});var s,c=t&&"j"===t[0]&&":"===t[1]?t.substr(2):t;if(void 0===(s=a.doNotParse)&&(s=!c||"{"!==c[0]&&"["!==c[0]&&'"'!==c[0]),!s)try{return JSON.parse(c)}catch(t){}return t}var __assign=function(){return(__assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},E=function(){function Cookies(t,a){var s=this;this.changeListeners=[],this.HAS_DOCUMENT_COOKIE=!1,this.cookies="string"==typeof t?C.Q(t,a):"object"==typeof t&&null!==t?t:{},new Promise(function(){s.HAS_DOCUMENT_COOKIE="object"==typeof document&&"string"==typeof document.cookie}).catch(function(){})}return Cookies.prototype._updateBrowserValues=function(t){this.HAS_DOCUMENT_COOKIE&&(this.cookies=C.Q(document.cookie,t))},Cookies.prototype._emitChange=function(t){for(var a=0;a<this.changeListeners.length;++a)this.changeListeners[a](t)},Cookies.prototype.get=function(t,a,s){return void 0===a&&(a={}),this._updateBrowserValues(s),readCookie(this.cookies[t],a)},Cookies.prototype.getAll=function(t,a){void 0===t&&(t={}),this._updateBrowserValues(a);var s={};for(var c in this.cookies)s[c]=readCookie(this.cookies[c],t);return s},Cookies.prototype.set=function(t,a,s){var c;"object"==typeof a&&(a=JSON.stringify(a)),this.cookies=__assign(__assign({},this.cookies),((c={})[t]=a,c)),this.HAS_DOCUMENT_COOKIE&&(document.cookie=C.q(t,a,s)),this._emitChange({name:t,value:a,options:s})},Cookies.prototype.remove=function(t,a){var s=a=__assign(__assign({},a),{expires:new Date(1970,1,1,0,0,1),maxAge:0}
1);this.cookies=__assign({},this.cookies),delete this.cookies[t],this.HAS_DOCUMENT_COOKIE&&(document.cookie=C.q(t,"",s)),this._emitChange({name:t,value:void 0,options:a})},Cookies.prototype.addChangeListener=function(t){this.changeListeners.push(t)},Cookies.prototype.removeChangeListener=function(t){var a=this.changeListeners.indexOf(t);a>=0&&this.changeListeners.splice(a,1)},Cookies}(),x=s(59222),P=(0,x.lC)().isBrowser,I=function(){function UniversalStorage(t){void 0===t&&(t={}),this.cookies=new E,this.store=P?window.localStorage:Object.create(null),this.cookies=t.req?new E(t.req.headers.cookie):new E,Object.assign(this.store,this.cookies.getAll())}return Object.defineProperty(UniversalStorage.prototype,"length",{get:function(){return Object.entries(this.store).length},enumerable:!0,configurable:!0}),UniversalStorage.prototype.clear=function(){var t=this;Array.from(Array(this.length)).map(function(a,s){return t.key(s)}).forEach(function(a){return t.removeItem(a)})},UniversalStorage.prototype.getItem=function(t){return this.getLocalItem(t)},UniversalStorage.prototype.getLocalItem=function(t){return Object.prototype.hasOwnProperty.call(this.store,t)?this.store[t]:null},UniversalStorage.prototype.getUniversalItem=function(t){return this.cookies.get(t)},UniversalStorage.prototype.key=function(t){return Object.keys(this.store)[t]},UniversalStorage.prototype.removeItem=function(t){this.removeLocalItem(t),this.removeUniversalItem(t)},UniversalStorage.prototype.removeLocalItem=function(t){delete this.store[t]},UniversalStorage.prototype.removeUniversalItem=function(t){this.cookies.remove(t,{path:"/"})},UniversalStorage.prototype.setItem=function(t,a){switch(this.setLocalItem(t,a),t.split(".").pop()){case"LastAuthUser":case"accessToken":case"idToken":this.setUniversalItem(t,a)}},UniversalStorage.prototype.setLocalItem=function(t,a){this.store[t]=a},UniversalStorage.prototype.setUniversalItem=function(t,a){this.cookies.set(t,a,{path:"/",sameSite:!0,secure:"localhost"!==window.location.hostname})},UniversalStorage}(),T=s(6648),k=s(25387),O=s(940),R=s(11987),launchUri=function(t){var a=window.open(t,"_self");return a?Promise.resolve(a):Promise.reject()},setState=function(t){window.sessionStorage.setItem("oauth_state",t)},getState=function(){var t=window.sessionStorage.getItem("oauth_state");return window.sessionStorage.removeItem("oauth_state"),t},setPKCE=function(t){window.sessionStorage.setItem("ouath_pkce_key",t)},getPKCE=function(){var t=window.sessionStorage.getItem("ouath_pkce_key");return window.sessionStorage.removeItem("ouath_pkce_key"),t},M=s(52153),N=s.n(M),U=s(98269),L=s.n(U),OAuth_assign=function(){return(OAuth_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},__awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},__generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},__read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},D="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",dispatchAuthEvent=function(t,a,s){b.Xb.dispatch("auth",{event:t,data:a,message:s},"Auth",D)},B=new _.k("OAuth"),j=function(){function OAuth(t){var a=t.config,s=t.cognitoClientId,c=t.scopes,f=void 0===c?[]:c;if(this._urlOpener=a.urlOpener||launchUri,this._config=a,this._cognitoClientId=s,!this.isValidScopes(f))throw Error("scopes must be a String Array");this._scopes=f}return OAuth.prototype.isValidScopes=function(t){return Array.isArray(t)&&t.every(function(t){return"string"==typeof t})},OAuth.prototype.oauthSignIn=function(t,a,s,c,f,p){void 0===t&&(t="code"),void 0===f&&(f=m.Cognito);var g=this._generateState(32),v=p?g+"-"+p.split("").map(function(t){return t.charCodeAt(0).toString(16).padStart(2,"0")}).join(""):g;setState(v);var y=this._generateRandom(128);setPKCE(y);var _=this._generateChallenge(y),b=this._scopes.join(" "),S="https://"+a+"/oauth2/authorize?"+Object.entries(OAuth_assign(OAuth_assign({redirect_uri:s,response_type:t,client_id:c,identity_provider:f,scope:b,state:v},"code"===t?{code_challenge:_}:{}),"code"===t?{code_challenge_method:"S256"}:{})).map(function(t){var a=__read(t,2),s=a[0],c=a[1];return encodeURIComponent(s)+"="+encodeURIComponent(c)}).join("&");B.debug("Redirecting to "+S),this._urlOpener(S,s)},OAuth.prototype._handleCodeFlow=function(t){return __awaiter(this,void 0,void 0,function(){var a,s,c,f,p,g,m,v,y,_,b,S,w,C;return __generator(this,function(E){switch(E.label){case 0:if(a=((0,R.parse)(t).query||"").split("&").map(function(t){return t.split("=")}).reduce(function(t,a){var s,c=__read(a,2),f=c[0],p=c[1];return OAuth_assign(OAuth_assign({},t),((s={})[f]=p,s))},{code:void 0}).code,s=(0,R.parse)(t).pathname||"/",c=(0,R.parse)(this._config.redirectSignIn).pathname||"/",!a||s!==c)return[2];
1return dispatchAuthEvent("codeFlow",{},"Retrieving tokens from "+(f="https://"+this._config.domain+"/oauth2/token")),p=isCognitoHostedOpts(this._config)?this._cognitoClientId:this._config.clientID,g=isCognitoHostedOpts(this._config)?this._config.redirectSignIn:this._config.redirectUri,m=getPKCE(),v=OAuth_assign({grant_type:"authorization_code",code:a,client_id:p,redirect_uri:g},m?{code_verifier:m}:{}),B.debug("Calling token endpoint: "+f+" with",v),y=Object.entries(v).map(function(t){var a=__read(t,2),s=a[0],c=a[1];return encodeURIComponent(s)+"="+encodeURIComponent(c)}).join("&"),[4,fetch(f,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:y})];case 1:return[4,E.sent().json()];case 2:if(b=(_=E.sent()).access_token,S=_.refresh_token,w=_.id_token,C=_.error)throw Error(C);return[2,{accessToken:b,refreshToken:S,idToken:w}]}})})},OAuth.prototype._handleImplicitFlow=function(t){return __awaiter(this,void 0,void 0,function(){var a,s,c;return __generator(this,function(f){return s=(a=((0,R.parse)(t).hash||"#").substr(1).split("&").map(function(t){return t.split("=")}).reduce(function(t,a){var s,c=__read(a,2),f=c[0],p=c[1];return OAuth_assign(OAuth_assign({},t),((s={})[f]=p,s))},{id_token:void 0,access_token:void 0})).id_token,c=a.access_token,dispatchAuthEvent("implicitFlow",{},"Got tokens from "+t),B.debug("Retrieving implicit tokens from "+t+" with"),[2,{accessToken:c,idToken:s,refreshToken:null}]})})},OAuth.prototype.handleAuthResponse=function(t){return __awaiter(this,void 0,void 0,function(){var a,s,c,f,p,g,m;return __generator(this,function(v){switch(v.label){case 0:if(v.trys.push([0,5,,6]),s=(a=t?OAuth_assign(OAuth_assign({},((0,R.parse)(t).hash||"#").substr(1).split("&").map(function(t){return t.split("=")}).reduce(function(t,a){var s=__read(a,2),c=s[0],f=s[1];return t[c]=f,t},{})),((0,R.parse)(t).query||"").split("&").map(function(t){return t.split("=")}).reduce(function(t,a){var s=__read(a,2),c=s[0],f=s[1];return t[c]=f,t},{})):{}).error,c=a.error_description,s)throw Error(c);if(f=this._validateState(a),B.debug("Starting "+this._config.responseType+" flow with "+t),"code"!==this._config.responseType)return[3,2];return p=[{}],[4,this._handleCodeFlow(t)];case 1:return[2,OAuth_assign.apply(void 0,[OAuth_assign.apply(void 0,p.concat([v.sent()])),{state:f}])];case 2:return g=[{}],[4,this._handleImplicitFlow(t)];case 3:return[2,OAuth_assign.apply(void 0,[OAuth_assign.apply(void 0,g.concat([v.sent()])),{state:f}])];case 4:return[3,6];case 5:throw m=v.sent(),B.error("Error handling auth response.",m),m;case 6:return[2]}})})},OAuth.prototype._validateState=function(t){if(t){var a=getState(),s=t.state;if(a&&a!==s)throw Error("Invalid state in OAuth flow");return s}},OAuth.prototype.signOut=function(){return __awaiter(this,void 0,void 0,function(){var t,a,s;return __generator(this,function(c){return t="https://"+this._config.domain+"/logout?",a=isCognitoHostedOpts(this._config)?this._cognitoClientId:this._config.oauth.clientID,s=isCognitoHostedOpts(this._config)?this._config.redirectSignOut:this._config.returnTo,dispatchAuthEvent("oAuthSignOut",{oAuth:"signOut"},"Signing out from "+(t+=Object.entries({client_id:a,logout_uri:encodeURIComponent(s)}).map(function(t){var a=__read(t,2);return a[0]+"="+a[1]}).join("&"))),B.debug("Signing out from "+t),[2,this._urlOpener(t)]})})},OAuth.prototype._generateState=function(t){for(var a="",s=t,c="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";s>0;--s)a+=c[Math.round(Math.random()*(c.length-1))];return a},OAuth.prototype._generateChallenge=function(t){return this._base64URL(N()(t))},OAuth.prototype._base64URL=function(t){return t.toString(L()).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")},OAuth.prototype._generateRandom=function(t){var a=new Uint8Array(t);if("undefined"!=typeof window&&window.crypto)window.crypto.getRandomValues(a);else for(var s=0;s<t;s+=1)a[s]=66*Math.random()|0;return this._bufferToString(a)},OAuth.prototype._bufferToString=function(t){for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",s=[],c=0;c<t.byteLength;c+=1){var f=t[c]%a.length;s.push(a[f])}return s.join("")},OAuth}(),urlListener=function(t){if(x.JS.browserOrNode().isBrowser&&window.location)t({url:window.location.href});else if(x.JS.browserOrNode().isNode);else throw Error("Not supported")};(c=y||(y={}
1)).DEFAULT_MSG="Authentication Error",c.EMPTY_USERNAME="Username cannot be empty",c.INVALID_USERNAME="The username should either be a string or one of the sign in types",c.EMPTY_PASSWORD="Password cannot be empty",c.EMPTY_CODE="Confirmation code cannot be empty",c.SIGN_UP_ERROR="Error creating account",c.NO_MFA="No valid MFA method provided",c.INVALID_MFA="Invalid MFA type",c.EMPTY_CHALLENGE="Challenge response cannot be empty",c.NO_USER_SESSION="Failed to get the session because the user is empty";var q=(f=function(t,a){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])})(t,a)},function(t,a){function __(){this.constructor=t}f(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}),V=new _.k("AuthError"),K=function(t){function AuthError(a){var s=this,c=W[a],f=c.message,p=c.log;return(s=t.call(this,f)||this).constructor=AuthError,Object.setPrototypeOf(s,AuthError.prototype),s.name="AuthError",s.log=p||f,V.error(s.log),s}return q(AuthError,t),AuthError}(Error),H=function(t){function NoUserPoolError(a){var s=t.call(this,a)||this;return s.constructor=NoUserPoolError,Object.setPrototypeOf(s,NoUserPoolError.prototype),s.name="NoUserPoolError",s}return q(NoUserPoolError,t),NoUserPoolError}(K),W={noConfig:{message:y.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly.\n            This error is typically caused by one of the following scenarios:\n\n            1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point\n                See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information\n            \n            2. There might be multiple conflicting versions of amplify packages in your node_modules.\n				Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js)\n        "},missingAuthConfig:{message:y.DEFAULT_MSG,log:"\n            Error: Amplify has not been configured correctly. \n            The configuration object is missing required auth properties.\n            This error is typically caused by one of the following scenarios:\n\n            1. Did you run `amplify push` after adding auth via `amplify add auth`?\n                See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information\n\n            2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages.\n        "},emptyUsername:{message:y.EMPTY_USERNAME},invalidUsername:{message:y.INVALID_USERNAME},emptyPassword:{message:y.EMPTY_PASSWORD},emptyCode:{message:y.EMPTY_CODE},signUpError:{message:y.SIGN_UP_ERROR,log:"The first parameter should either be non-null string or object"},noMFA:{message:y.NO_MFA},invalidMFA:{message:y.INVALID_MFA},emptyChallengeResponse:{message:y.EMPTY_CHALLENGE},noUserSession:{message:y.NO_USER_SESSION},default:{message:y.DEFAULT_MSG}},Auth_assign=function(){return(Auth_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},Auth_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},Auth_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>
10&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},Auth_read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},G=new _.k("AuthClass"),$="aws.cognito.signin.user.admin",Y="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",Auth_dispatchAuthEvent=function(t,a,s){b.Xb.dispatch("auth",{event:t,data:a,message:s},"Auth",Y)},J=new(function(){function AuthClass(t){var a=this;this.userPool=null,this.user=null,this.oAuthFlowInProgress=!1,this.Credentials=S.cN,this.wrapRefreshSessionCallback=function(t){return function(a,s){return s?Auth_dispatchAuthEvent("tokenRefresh",void 0,"New token retrieved"):Auth_dispatchAuthEvent("tokenRefresh_failure",a,"Failed to retrieve new token"),t(a,s)}},this.configure(t),this.currentCredentials=this.currentCredentials.bind(this),this.currentUserCredentials=this.currentUserCredentials.bind(this),b.Xb.listen("auth",function(t){switch(t.payload.event){case"signIn":a._storage.setItem("amplify-signin-with-hostedUI","false");break;case"signOut":a._storage.removeItem("amplify-signin-with-hostedUI");break;case"cognitoHostedUI":a._storage.setItem("amplify-signin-with-hostedUI","true")}})}return AuthClass.prototype.getModuleName=function(){return"Auth"},AuthClass.prototype.configure=function(t){var a=this;if(!t)return this._config||{};G.debug("configure Auth");var s=Object.assign({},this._config,w._b.parseMobilehubConfig(t).Auth,t);this._config=s;var c=this._config,f=c.userPoolId,p=c.userPoolWebClientId,g=c.cookieStorage,m=c.oauth,v=c.region,y=c.identityPoolId,_=c.mandatorySignIn,b=c.refreshHandlers,S=c.identityPoolRegion,C=c.clientMetadata,E=c.endpoint;if(this._config.storage){if(!this._isValidAuthStorage(this._config.storage))throw G.error("The storage in the Auth config is not valid!"),Error("Empty storage object");this._storage=this._config.storage}else g?this._storage=new O.eR(g):this._storage=t.ssr?new I:new T.c4().getStorage();if(this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),f){var x={UserPoolId:f,ClientId:p,endpoint:E};x.Storage=this._storage,this.userPool=new O.AM(x,this.wrapRefreshSessionCallback)}this.Credentials.configure({mandatorySignIn:_,region:S||v,userPoolId:f,i
1dentityPoolId:y,refreshHandlers:b,storage:this._storage});var P=m?isCognitoHostedOpts(this._config.oauth)?m:m.awsCognito:void 0;if(P){var k=Object.assign({cognitoClientId:p,UserPoolId:f,domain:P.domain,scopes:P.scope,redirectSignIn:P.redirectSignIn,redirectSignOut:P.redirectSignOut,responseType:P.responseType,Storage:this._storage,urlOpener:P.urlOpener,clientMetadata:C},P.options);this._oAuthHandler=new j({scopes:k.scopes,config:k,cognitoClientId:k.cognitoClientId});var R={};urlListener(function(t){var s=t.url;R[s]||(R[s]=!0,a._handleAuthResponse(s))})}return Auth_dispatchAuthEvent("configured",null,"The Auth category has been configured successfully"),this._config},AuthClass.prototype.signUp=function(t){for(var a,s=this,c=[],f=1;f<arguments.length;f++)c[f-1]=arguments[f];if(!this.userPool)return this.rejectNoUserPool();var p=null,g=null,m=[],y=null;if(t&&"string"==typeof t){p=t,g=c?c[0]:null;var _=c?c[1]:null,b=c?c[2]:null;_&&m.push(new O.KC({Name:"email",Value:_})),b&&m.push(new O.KC({Name:"phone_number",Value:b}))}else{if(!t||"object"!=typeof t)return this.rejectAuthError(v.SignUpError);p=t.username,g=t.password,t&&t.clientMetadata?a=t.clientMetadata:this._config.clientMetadata&&(a=this._config.clientMetadata);var S=t.attributes;S&&Object.keys(S).map(function(t){m.push(new O.KC({Name:t,Value:S[t]}))});var w=t.validationData;w&&(y=[],Object.keys(w).map(function(t){y.push(new O.KC({Name:t,Value:w[t]}))}))}return p?g?(G.debug("signUp attrs:",m),G.debug("signUp validation data:",y),new Promise(function(t,c){s.userPool.signUp(p,g,m,y,function(a,s){a?(Auth_dispatchAuthEvent("signUp_failure",a,p+" failed to signup"),c(a)):(Auth_dispatchAuthEvent("signUp",s,p+" has signed up successfully"),t(s))},a)})):this.rejectAuthError(v.EmptyPassword):this.rejectAuthError(v.EmptyUsername)}
1,AuthClass.prototype.confirmSignUp=function(t,a,s){if(!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(v.EmptyUsername);if(!a)return this.rejectAuthError(v.EmptyCode);var c,f=this.createCognitoUser(t),p=!s||"boolean"!=typeof s.forceAliasCreation||s.forceAliasCreation;return s&&s.clientMetadata?c=s.clientMetadata:this._config.clientMetadata&&(c=this._config.clientMetadata),new Promise(function(t,s){f.confirmRegistration(a,p,function(a,c){a?s(a):t(c)},c)})},AuthClass.prototype.resendSignUp=function(t,a){if(void 0===a&&(a=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(v.EmptyUsername);var s=this.createCognitoUser(t);return new Promise(function(t,c){s.resendConfirmationCode(function(a,s){a?c(a):t(s)},a)})},AuthClass.prototype.signIn=function(t,a,s){if(void 0===s&&(s=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();var c=null,f=null,p={};if("string"==typeof t)c=t,f=a;else{if(!t.username)return this.rejectAuthError(v.InvalidUsername);void 0!==a&&G.warn("The password should be defined under the first parameter object!"),c=t.username,f=t.password,p=t.validationData}if(!c)return this.rejectAuthError(v.EmptyUsername);var g=new O.sD({Username:c,Password:f,ValidationData:p,ClientMetadata:s});return f?this.signInWithPassword(g):this.signInWithoutPassword(g)},AuthClass.prototype.authCallbacks=function(t,a,s){var c=this,f=this;return{onSuccess:function(p){return Auth_awaiter(c,void 0,void 0,function(){var c,g,m,v;return Auth_generator(this,function(y){switch(y.label){case 0:G.debug(p),delete t.challengeName,delete t.challengeParam,y.label=1;case 1:return y.trys.push([1,4,5,9]),[4,this.Credentials.clear()];case 2:return y.sent(),[4,this.Credentials.set(p,"session")];case 3:return c=y.sent(),G.debug("succeed to get cognito credentials",c),[3,9];case 4:return g=y.sent(),G.debug("cannot get cognito credentials",g),[3,9];case 5:return y.trys.push([5,7,,8]),[4,this.currentUserPoolUser()];case 6:return m=y.sent(),f.user=m,Auth_dispatchAuthEvent("signIn",m,"A user "+t.getUsername()+" has been signed in"),a(m),[3,8];case 7:return v=y.sent(),G.error("Failed to get the signed in user",v),s(v),[3,8];case 8:return[7];case 9:return[2]}})})},onFailure:function(a){G.debug("signIn failure",a),Auth_dispatchAuthEvent("signIn_failure",a,t.getUsername()+" failed to signin"),s(a)},customChallenge:function(s){G.debug("signIn custom challenge answer required"),t.challengeName="CUSTOM_CHALLENGE",t.challengeParam=s,a(t)},mfaRequired:function(s,c){G.debug("signIn MFA required"),t.challengeName=s,t.challengeParam=c,a(t)},mfaSetup:function(s,c){G.debug("signIn mfa setup",s),t.challengeName=s,t.challengeParam=c,a(t)},newPasswordRequired:function(s,c){G.debug("signIn new password"),t.challengeName="NEW_PASSWORD_REQUIRED",t.challengeParam={userAttributes:s,requiredAttributes:c},a(t)},totpRequired:function(s,c){G.debug("signIn totpRequired"),t.challengeName=s,t.challengeParam=c,a(t)},selectMFAType:function(s,c){G.debug("signIn selectMFAType",s),t.challengeName=s,t.challengeParam=c,a(t)}}},AuthClass.prototype.signInWithPassword=function(t){var a=this;if(this.pendingSignIn)throw Error("Pending sign-in attempt already in progress");var s=this.createCognitoUser(t.getUsername());return this.pendingSignIn=new Promise(function(c,f){s.authenticateUser(t,a.authCallbacks(s,function(t){a.pendingSignIn=null,c(t)},function(t){a.pendingSignIn=null,f(t)}))}),this.pendingSignIn},AuthClass.prototype.signInWithoutPassword=function(t){var a=this,s=this.createCognitoUser(t.getUsername());return s.setAuthenticationFlowType("CUSTOM_AUTH"),new Promise(function(c,f){s.initiateAuth(t,a.authCallbacks(s,c,f))})},AuthClass.prototype.getMFAOptions=function(t){return new Promise(function(a,s){t.getMFAOptions(function(t,c){if(t){G.debug("get MFA Options failed",t),s(t);return}G.debug("get MFA options success",c),a(c)})})},AuthClass.prototype.getPreferredMFA=function(t,a){var s=this,c=this;return new Promise(function(f,p){var g=s._config.clientMetadata,m=!!a&&a.bypassCache;t.getUserData(function(t,a){if(t){G.debug("getting preferred mfa failed",t),p(t);return}var s=c._getMfaTypeFromUserData(a);if(s){f(s);return}p("invalid MFA Type")},{bypassCache:m,clientMetadata:g})})},AuthClass.prototype._getMfaTypeFromUserData=function(t){var a=null,s=t.PreferredMfaSetting;if(s)a=s;else{var c=t.UserMFASettingList;c?0===c.length?a="NOMFA":G.debug("invalid case for getPreferredMFA",t):a=t.MFAOptions?"SMS_MFA":"NOMFA"}return a},AuthClass.prototype._getUserData=function(t,a){return new Promise(function(s,c){t.getUserData(function(t,a){if(t){G.debug("getting user data failed",t),c(t);return}s(a)},a)})},AuthClass.prototype.setPreferredMFA=function(t,a){return Auth_awaiter(this,void 0,void 0,function(){var s,c,f,p,g,m;return Auth_generator(this,function(y){switch(y.label){case 0:return s=this._config.clientMetadata,[4,this._getUserData(t,{bypassCache:!0,clientMetadata:s})];case 1:switch(c=y.sent(),f=null,p=null,a){case"TOTP":return[3,2];case"SMS":return[3,3];case"NOMFA":return[3,4]}return[3,6];case 2:return p={PreferredMfa:!0,Enabled:!0},[3,7];case 3:return f={PreferredMfa:!0,Enabled:!0},[3,7];
1case 4:return g=c.UserMFASettingList,[4,this._getMfaTypeFromUserData(c)];case 5:if("NOMFA"===(m=y.sent()))return[2,Promise.resolve("No change for mfa type")];if("SMS_MFA"===m)f={PreferredMfa:!1,Enabled:!1};else{if("SOFTWARE_TOKEN_MFA"!==m)return[2,this.rejectAuthError(v.InvalidMFA)];p={PreferredMfa:!1,Enabled:!1}}return g&&0!==g.length&&g.forEach(function(t){"SMS_MFA"===t?f={PreferredMfa:!1,Enabled:!1}:"SOFTWARE_TOKEN_MFA"===t&&(p={PreferredMfa:!1,Enabled:!1})}),[3,7];case 6:return G.debug("no validmfa method provided"),[2,this.rejectAuthError(v.NoMFA)];case 7:return[2,new Promise(function(a,c){t.setUserMfaPreference(f,p,function(f,p){if(f)return G.debug("Set user mfa preference error",f),c(f);G.debug("Set user mfa success",p),G.debug("Caching the latest user data into local"),t.getUserData(function(t,s){return t?(G.debug("getting user data failed",t),c(t)):a(p)},{bypassCache:!0,clientMetadata:s})})})]}})})},AuthClass.prototype.disableSMS=function(t){return new Promise(function(a,s){t.disableMFA(function(t,c){if(t){G.debug("disable mfa failed",t),s(t);return}G.debug("disable mfa succeed",c),a(c)})})},AuthClass.prototype.enableSMS=function(t){return new Promise(function(a,s){t.enableMFA(function(t,c){if(t){G.debug("enable mfa failed",t),s(t);return}G.debug("enable mfa succeed",c),a(c)})})},AuthClass.prototype.setupTOTP=function(t){return new Promise(function(a,s){t.associateSoftwareToken({onFailure:function(t){G.debug("associateSoftwareToken failed",t),s(t)},associateSecretCode:function(t){G.debug("associateSoftwareToken sucess",t),a(t)}})})},AuthClass.prototype.verifyTotpToken=function(t,a){return G.debug("verification totp token",t,a),new Promise(function(s,c){t.verifySoftwareToken(a,"My TOTP device",{onFailure:function(t){G.debug("verifyTotpToken failed",t),c(t)},onSuccess:function(a){Auth_dispatchAuthEvent("signIn",t,"A user "+t.getUsername()+" has been signed in"),G.debug("verifyTotpToken success",a),s(a)}})})},AuthClass.prototype.confirmSignIn=function(t,a,s,c){var f=this;if(void 0===c&&(c=this._config.clientMetadata),!a)return this.rejectAuthError(v.EmptyCode);var p=this;return new Promise(function(g,m){t.sendMFACode(a,{onSuccess:function(a){return Auth_awaiter(f,void 0,void 0,function(){var s,c;return Auth_generator(this,function(f){switch(f.label){case 0:G.debug(a),f.label=1;case 1:return f.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return f.sent(),[4,this.Credentials.set(a,"session")];case 3:return s=f.sent(),G.debug("succeed to get cognito credentials",s),[3,6];case 4:return c=f.sent(),G.debug("cannot get cognito credentials",c),[3,6];case 5:return p.user=t,Auth_dispatchAuthEvent("signIn",t,"A user "+t.getUsername()+" has been signed in"),g(t),[7];case 6:return[2]}})})},onFailure:function(t){G.debug("confirm signIn failure",t),m(t)}},s,c)})},AuthClass.prototype.completeNewPassword=function(t,a,s,c){var f=this;if(void 0===s&&(s={}),void 0===c&&(c=this._config.clientMetadata),!a)return this.rejectAuthError(v.EmptyPassword);var p=this;return new Promise(function(g,m){t.completeNewPasswordChallenge(a,s,{onSuccess:function(a){return Auth_awaiter(f,void 0,void 0,function(){var s,c;return Auth_generator(this,function(f){switch(f.label){case 0:G.debug(a),f.label=1;case 1:return f.trys.push([1,4,5,6]),[4,this.Credentials.clear()];case 2:return f.sent(),[4,this.Credentials.set(a,"session")];case 3:return s=f.sent(),G.debug("succeed to get cognito credentials",s),[3,6];case 4:return c=f.sent(),G.debug("cannot get cognito credentials",c),[3,6];case 5:return p.user=t,Auth_dispatchAuthEvent("signIn",t,"A user "+t.getUsername()+" has been signed in"),g(t),[7];case 6:return[2]}})})},onFailure:function(t){G.debug("completeNewPassword failure",t),Auth_dispatchAuthEvent("completeNewPassword_failure",t,f.user+" failed to complete the new password flow"),m(t)},mfaRequired:function(a,s){G.debug("signIn MFA required"),t.challengeName=a,t.challengeParam=s,g(t)},mfaSetup:function(a,s){G.debug("signIn mfa setup",a),t.challengeName=a,t.challengeParam=s,g(t)},totpRequired:function(a,s){G.debug("signIn mfa setup",a),t.challengeName=a,t.challengeParam=s,g(t)}},c)})},AuthClass.prototype.sendCustomChallengeAnswer=function(t,a,s){var c=this;return(void 0===s&&(s=this._config.clientMetadata),this.userPool)?a?new Promise(function(f,p){t.sendCustomChallengeAnswer(a,c.authCallbacks(t,f,p),s)}):this.rejectAuthError(v.EmptyChallengeResponse):this.rejectNoUserPool()},AuthClass.prototype.updateUserAttributes=function(t,a,s){void 0===s&&(s=this._config.clientMetadata);var c=[],f=this;return new Promise(function(p,g){f.userSession(t).then(function(f){for(var m in a)if("sub"!==m&&0>m.indexOf("_verified")){var v={Name:m,Value:a[m]};c.push(v)}t.updateAttributes(c,function(t,a){return t?g(t):p(a)},s)})})},AuthClass.prototype.userAttributes=function(t){var a=this;return new Promise(function(s,c){a.userSession(t).then(function(a){t.getUserAttributes(function(t,a){t?c(t):s(a)})})})},AuthClass.prototype.verifiedContact=function(t){var a=this;return this.userAttributes(t).then(function(t){var s=a.attributesToObject(t),c={},f={};return s.email&&(s.email_verified?f.email=s.email:c.email=s.email),s.phone_number&&(s.phone_number_verified?f.phone_number=s.phone_number:c.phone_number=s.phone_number),{verified:f,unverified:c}})},AuthClass.prototype.currentUserPoolUser=function(t){var a=this;return this.userPool?new Promise(function(s,c){a._storageSync.then(function(){return Auth_awaiter(a,void 0,void 0,function(){var a,f,p=this;return Auth_generator(this,function(g){switch(g.label){case 0:if(!this.isOAuthInProgress())return[3,2];return G.debug("OAuth signIn in progress, waiting for resolution..."),[4,new Promise(function(t){var a=setTimeout(function(){G.debug("OAuth signIn in progress timeout"),b.Xb.remove("auth",hostedUISignCallback),t()},1e4);function hostedUISignCallback(s){var c=s.payload.event;("cognitoHostedUI"===c||"cognitoHostedUI_failure"===c)&&(G.debug("OAuth signIn resolved: "+c),clearTimeout(a),b.Xb.remove("auth",hostedUISignCallback),t())}b.Xb.listen("auth",hostedUISignCallback)})];case 1:g.sent(),g.label=2;case 2:if(!(a=this.userPool.getCurrentUser()))return G.debug("Failed to get user from user pool"),c("No current user"),[2];return f=this._config.clientMetadata,a.getSession(function(f,g){return Auth_awaiter(p,void 0,void 0,function(){var p,m,v,y=this;return Auth_generator(this,function(_){switch(_.label){case 0:if(f)return G.debug("Failed to get the user session",f),c(f),[2];if(!(p=!!t&&t.bypassCache))return[3,2];return[4,this.Credentials.clear()];case 1:_.sent(),_.label=2;case 2:if(m=this._config.clientMetadata,!(void 0===(v=g.getAccessToken().decodePayload().scope)?""
1:v).split(" ").includes($))return G.debug("Unable to get the user data because the "+$+" is not in the scopes of the access token"),[2,s(a)];return a.getUserData(function(t,f){if(t){G.debug("getting user data failed",t),"User is disabled."===t.message||"User does not exist."===t.message||"Access Token has been revoked"===t.message?c(t):s(a);return}for(var p=f.PreferredMfaSetting||"NOMFA",g=[],m=0;m<f.UserAttributes.length;m++){var v={Name:f.UserAttributes[m].Name,Value:f.UserAttributes[m].Value},_=new O.KC(v);g.push(_)}return Object.assign(a,{attributes:y.attributesToObject(g),preferredMFA:p}),s(a)},{bypassCache:p,clientMetadata:m}),[2]}})})},{clientMetadata:f}),[2]}})})}).catch(function(t){return G.debug("Failed to sync cache info into memory",t),c(t)})}):this.rejectNoUserPool()},AuthClass.prototype.isOAuthInProgress=function(){return this.oAuthFlowInProgress},AuthClass.prototype.currentAuthenticatedUser=function(t){return Auth_awaiter(this,void 0,void 0,function(){var a,s,c,f,p;return Auth_generator(this,function(g){switch(g.label){case 0:G.debug("getting current authenticated user"),a=null,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this._storageSync];case 2:return g.sent(),[3,4];case 3:throw s=g.sent(),G.debug("Failed to sync cache info into memory",s),s;case 4:try{(c=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")))&&(a=Auth_assign(Auth_assign({},c.user),{token:c.token}))}catch(t){G.debug("cannot load federated user from auth storage")}if(!a)return[3,5];return this.user=a,G.debug("get current authenticated federated user",this.user),[2,this.user];case 5:G.debug("get current authenticated userpool user"),f=null,g.label=6;case 6:return g.trys.push([6,8,,9]),[4,this.currentUserPoolUser(t)];case 7:return f=g.sent(),[3,9];case 8:return"No userPool"===(p=g.sent())&&G.error("Cannot get the current user because the user pool is missing. Please make sure the Auth module is configured with a valid Cognito User Pool ID"),G.debug("The user is not authenticated by the error",p),[2,Promise.reject("The user is not authenticated")];case 9:return this.user=f,[2,this.user]}})})},AuthClass.prototype.currentSession=function(){var t=this;return(G.debug("Getting current session"),this.userPool)?new Promise(function(a,s){t.currentUserPoolUser().then(function(c){t.userSession(c).then(function(t){a(t)}).catch(function(t){G.debug("Failed to get the current session",t),s(t)})}).catch(function(t){G.debug("Failed to get the current user",t),s(t)})}):Promise.reject()},AuthClass.prototype.userSession=function(t){if(!t)return G.debug("the user is null"),this.rejectAuthError(v.NoUserSession);var a=this._config.clientMetadata;return new Promise(function(s,c){G.debug("Getting the session from this user:",t),t.getSession(function(a,f){if(a){G.debug("Failed to get the session from user",t),c(a);return}G.debug("Succeed to get the user session",f),s(f)},{clientMetadata:a})})},AuthClass.prototype.currentUserCredentials=function(){return Auth_awaiter(this,void 0,void 0,function(){var t,a,s=this;return Auth_generator(this,function(c){switch(c.label){case 0:G.debug("Getting current user credentials"),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this._storageSync];case 2:return c.sent(),[3,4];case 3:throw t=c.sent(),G.debug("Failed to sync cache info into memory",t),t;case 4:a=null;try{a=JSON.parse(this._storage.getItem("aws-amplify-federatedInfo"))}catch(t){G.debug("failed to get or parse item aws-amplify-federatedInfo",t)}if(a)return[2,this.Credentials.refreshFederatedToken(a)];return[2,this.currentSession().then(function(t){return G.debug("getting session success",t),s.Credentials.set(t,"session")}).catch(function(t){return G.debug("getting session failed",t),s.Credentials.set(null,"guest")})]}})})},AuthClass.prototype.currentCredentials=function(){return G.debug("getting current credentials"),this.Credentials.get()},AuthClass.prototype.verifyUserAttribute=function(t,a,s){return void 0===s&&(s=this._config.clientMetadata),new Promise(function(c,f){t.getAttributeVerificationCode(a,{onSuccess:function(){return c()},onFailure:function(t){return f(t)}},s)})},AuthClass.prototype.verifyUserAttributeSubmit=function(t,a,s){return s?new Promise(function(c,f){t.verifyAttribute(a,s,{onSuccess:function(t){c(t)}
1,onFailure:function(t){f(t)}})}):this.rejectAuthError(v.EmptyCode)},AuthClass.prototype.verifyCurrentUserAttribute=function(t){var a=this;return a.currentUserPoolUser().then(function(s){return a.verifyUserAttribute(s,t)})},AuthClass.prototype.verifyCurrentUserAttributeSubmit=function(t,a){var s=this;return s.currentUserPoolUser().then(function(c){return s.verifyUserAttributeSubmit(c,t,a)})},AuthClass.prototype.cognitoIdentitySignOut=function(t,a){return Auth_awaiter(this,void 0,void 0,function(){var s,c,f=this;return Auth_generator(this,function(p){switch(p.label){case 0:return p.trys.push([0,2,,3]),[4,this._storageSync];case 1:return p.sent(),[3,3];case 2:throw s=p.sent(),G.debug("Failed to sync cache info into memory",s),s;case 3:return c=this._oAuthHandler&&"true"===this._storage.getItem("amplify-signin-with-hostedUI"),[2,new Promise(function(s,p){if(t&&t.global){G.debug("user global sign out",a);var g=f._config.clientMetadata;a.getSession(function(t,g){if(t)return G.debug("failed to get the user session",t),p(t);a.globalSignOut({onSuccess:function(t){if(G.debug("global sign out success"),!c)return s();f.oAuthSignOutRedirect(s,p)},onFailure:function(t){return G.debug("global sign out failed",t),p(t)}})},{clientMetadata:g})}else{if(G.debug("user sign out",a),a.signOut(),!c)return s();f.oAuthSignOutRedirect(s,p)}})]}})})},AuthClass.prototype.oAuthSignOutRedirect=function(t,a){x.JS.browserOrNode().isBrowser?this.oAuthSignOutRedirectOrReject(a):this.oAuthSignOutAndResolve(t)},AuthClass.prototype.oAuthSignOutAndResolve=function(t){this._oAuthHandler.signOut(),t()},AuthClass.prototype.oAuthSignOutRedirectOrReject=function(t){this._oAuthHandler.signOut(),setTimeout(function(){return t("Signout timeout fail")},3e3)},AuthClass.prototype.signOut=function(t){return Auth_awaiter(this,void 0,void 0,function(){var a;return Auth_generator(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.cleanCachedItems()];case 1:return s.sent(),[3,3];case 2:return s.sent(),G.debug("failed to clear cached items"),[3,3];case 3:if(!this.userPool)return[3,7];if(!(a=this.userPool.getCurrentUser()))return[3,5];return[4,this.cognitoIdentitySignOut(t,a)];case 4:return s.sent(),[3,6];case 5:G.debug("no current Cognito user"),s.label=6;case 6:return[3,8];case 7:G.debug("no Congito User pool"),s.label=8;case 8:return Auth_dispatchAuthEvent("signOut",this.user,"A user has been signed out"),this.user=null,[2]}})})},AuthClass.prototype.cleanCachedItems=function(){return Auth_awaiter(this,void 0,void 0,function(){return Auth_generator(this,function(t){switch(t.label){case 0:return[4,this.Credentials.clear()];case 1:return t.sent(),[2]}})})},AuthClass.prototype.changePassword=function(t,a,s,c){var f=this;return void 0===c&&(c=this._config.clientMetadata),new Promise(function(p,g){f.userSession(t).then(function(f){t.changePassword(a,s,function(t,a){return t?(G.debug("change password failure",t),g(t)):p(a)},c)})})},AuthClass.prototype.forgotPassword=function(t,a){if(void 0===a&&(a=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(v.EmptyUsername);var s=this.createCognitoUser(t);return new Promise(function(c,f){s.forgotPassword({onSuccess:function(){c()},onFailure:function(a){G.debug("forgot password failure",a),Auth_dispatchAuthEvent("forgotPassword_failure",a,t+" forgotPassword failed"),f(a)},inputVerificationCode:function(a){Auth_dispatchAuthEvent("forgotPassword",s,t+" has initiated forgot password flow"),c(a)}},a)})},AuthClass.prototype.forgotPasswordSubmit=function(t,a,s,c){if(void 0===c&&(c=this._config.clientMetadata),!this.userPool)return this.rejectNoUserPool();if(!t)return this.rejectAuthError(v.EmptyUsername);if(!a)return this.rejectAuthError(v.EmptyCode);if(!s)return this.rejectAuthError(v.EmptyPassword);var f=this.createCognitoUser(t);return new Promise(function(p,g){f.confirmPassword(a,s,{onSuccess:function(){Auth_dispatchAuthEvent("forgotPasswordSubmit",f,t+" forgotPasswordSubmit successful"),p()},onFailure:function(a){Auth_dispatchAuthEvent("forgotPasswordSubmit_failure",a,t+" forgotPasswordSubmit failed"),g(a)}},c)})},AuthClass.prototype.currentUserInfo=function(){return Auth_awaiter(this,void 0,void 0,function(){var t,a,s,c,f,p,g;return Auth_generator(this,function(m){switch(m.label){case 0:if(!(!(t=this.Credentials.getCredSource())||"aws"===t||"userPool"===t))return[3,9];return[4,this.currentUserPoolUser().catch(function(t){return G.debug(t)})];case 1:if(!(a=m.sent()))return[2,null];m.label=2;case 2:return m.trys.push([2,8,,9]),[4,this.userAttributes(a)];case 3:s=m.sent(),c=this.attributesToObject(s),f=null,m.label=4;case 4:return m.trys.push([4,6,,7]),[4,this.currentCredentials()];case 5:return f=m.sent(),[3,7];case 6:return p=m.sent(),G.debug("Failed to retrieve credentials while getting current user info",p),[3,7];case 7:return[2,{id:f?f.identityId:void 0,username:a.getUsername(),attributes:c}];case 8:return g=m.sent(),G.debug("currentUserInfo error",g),[2,{}];case 9:if("federated"===t)return[2,(a=this.user)||{}];return[2]}})})},AuthClass.prototype.federatedSignIn=function(t,a,s){return Auth_awaiter(this,void 0,void 0,function(){var c,f,p,g,v,y,_,b,S,w,C;return Auth_generator(this,function(E){switch(E.label){case 0:if(!this._config.identityPoolId&&!this._config.userPoolId)throw Error("Federation requires either a User Pool or Identity Pool in config");if(void 0===t&&this._config.identityPoolId&&!this._config.userPoolId)throw Error("Federation with Identity Pools requires tokens passed as arguments");if(!(isFederatedSignInOptions(t)||t&&["customProvider"].find(function(a){return t.hasOwnProperty(a)})||t&&["customState"].find(function(a){return t.hasOwnProperty(a)})||void 0===t))return[3,1];return f=isFederatedSignInOptions(c=t||{provider:m.Cognito})?c.provider:c.customProvider,isFederatedSignInOptions(c),p=c.customState,this._config.userPoolId&&(g=isCognitoHostedOpts(this._config.oauth)?this._config.userPoolWebClientId:this._config.oauth.clientID,v=isCognitoHostedOpts(this._config.oauth)?this._config.oauth.redirectSignIn:this._config.oauth.redirectUri,this._oAuthHandler.oauthSignIn(this._config.oauth.responseType,this._config.oauth.domain,v,g,f,p)),[3,4];case 1:f=t;try{(y=JSON.stringify(JSON.parse(this._storage.getItem("aws-amplify-federatedInfo")).user))&&G.warn("There is already a signed in user: "+y+" in y
1our app.\n																	You should not call Auth.federatedSignIn method again as it may cause unexpected behavior.")}catch(t){}return _=a.token,b=a.identity_id,S=a.expires_at,[4,this.Credentials.set({provider:f,token:_,identity_id:b,user:s,expires_at:S},"federation")];case 2:return w=E.sent(),[4,this.currentAuthenticatedUser()];case 3:return Auth_dispatchAuthEvent("signIn",C=E.sent(),"A user "+C.username+" has been signed in"),G.debug("federated sign in credentials",w),[2,w];case 4:return[2]}})})},AuthClass.prototype._handleAuthResponse=function(t){return Auth_awaiter(this,void 0,void 0,function(){var a,s,c,f,p,g,m,v,y,_,b,S,w;return Auth_generator(this,function(C){switch(C.label){case 0:if(this.oAuthFlowInProgress)return G.debug("Skipping URL "+t+" current flow in progress"),[2];C.label=1;case 1:if(C.trys.push([1,,8,9]),this.oAuthFlowInProgress=!0,!this._config.userPoolId)throw Error("OAuth responses require a User Pool defined in config");if(Auth_dispatchAuthEvent("parsingCallbackUrl",{url:t},"The callback url is being parsed"),a=t||(x.JS.browserOrNode().isBrowser?window.location.href:""),s=!!((0,R.parse)(a).query||"").split("&").map(function(t){return t.split("=")}).find(function(t){var a=Auth_read(t,1)[0];return"code"===a||"error"===a}),c=!!((0,R.parse)(a).hash||"#").substr(1).split("&").map(function(t){return t.split("=")}).find(function(t){var a=Auth_read(t,1)[0];return"access_token"===a||"error"===a}),!(s||c))return[3,7];this._storage.setItem("amplify-redirected-from-hosted-ui","true"),C.label=2;case 2:return C.trys.push([2,6,,7]),[4,this._oAuthHandler.handleAuthResponse(a)];case 3:if(p=(f=C.sent()).accessToken,g=f.idToken,m=f.refreshToken,v=f.state,y=new O.MZ({IdToken:new O.xk({IdToken:g}),RefreshToken:new O.bR({RefreshToken:m}),AccessToken:new O.ZA({AccessToken:p})}),_=void 0,!this._config.identityPoolId)return[3,5];return[4,this.Credentials.set(y,"session")];case 4:_=C.sent(),G.debug("AWS credentials",_),C.label=5;case 5:return b=/-/.test(v),(S=this.createCognitoUser(y.getIdToken().decodePayload()["cognito:username"])).setSignInUserSession(y),window&&void 0!==window.history&&window.history.replaceState({},null,this._config.oauth.redirectSignIn),Auth_dispatchAuthEvent("signIn",S,"A user "+S.getUsername()+" has been signed in"),Auth_dispatchAuthEvent("cognitoHostedUI",S,"A user "+S.getUsername()+" has been signed in via Cognito Hosted UI"),b&&Auth_dispatchAuthEvent("customOAuthState",v.split("-").splice(1).join("-").match(/.{2}/g).map(function(t){return String.fromCharCode(parseInt(t,16))}).join(""),"State for user "+S.getUsername()),[2,_];case 6:return w=C.sent(),G.debug("Error in cognito hosted auth response",w),Auth_dispatchAuthEvent("signIn_failure",w,"The OAuth response flow failed"),Auth_dispatchAuthEvent("cognitoHostedUI_failure",w,"A failure occurred when returning to the Cognito Hosted UI"),Auth_dispatchAuthEvent("customState_failure",w,"A failure occurred when returning state"),[3,7];case 7:return[3,9];case 8:return this.oAuthFlowInProgress=!1,[7];case 9:return[2]}})})},AuthClass.prototype.essentialCredentials=function(t){return{accessKeyId:t.accessKeyId,sessionToken:t.sessionToken,secretAccessKey:t.secretAccessKey,identityId:t.identityId,authenticated:t.authenticated}},AuthClass.prototype.attributesToObject=function(t){var a=this,s={};return t&&t.map(function(t){"email_verified"===t.Name||"phone_number_verified"===t.Name?s[t.Name]=a.isTruthyString(t.Value)||!0===t.Value:s[t.Name]=t.Value}),s},AuthClass.prototype.isTruthyString=function(t){return"function"==typeof t.toLowerCase&&"true"===t.toLowerCase()},AuthClass.prototype.createCognitoUser=function(t){var a={Username:t,Pool:this.userPool};a.Storage=this._storage;var s=this._config.authenticationFlowType,c=new O.ws(a);return s&&c.setAuthenticationFlowType(s),c},AuthClass.prototype._isValidAuthStorage=function(t){return!!t&&"function"==typeof t.getItem&&"function"==typeof t.setItem&&"function"==typeof t.removeItem&&"function"==typeof t.clear},AuthClass.prototype.noUserPoolErrorHandler=function(t){return!t||t.userPoolId&&t.identityPoolId?v.NoConfig:v.MissingAuthConfig},AuthClass.prototype.rejectAuthError=function(t){return Promise.reject(new K(t))},AuthClass.prototype.rejectNoUserPool=function(){var t=this.noUserPoolErrorHandler(this._config);return Promise.reject(new H(t))},AuthClass}())(null);k.dQ.register(J)},7895:function(t,a,s){"use strict";s.d(a,{ZP:function(){return w}});var c,f=s(25387),p={keyPrefix:"aws-amplify-cache",capacityInBytes:1048576,itemMaxSize:21e4,defaultTTL:2592e5,defaultPriority:5,warningThreshold:.8,storage:new(s(6648)).c4().getStorage()};function getByteLength(t){var a=0;a=t.length;for(var s=t.length;s>=0;s-=1){var c=t.charCodeAt(s);c>127&&c<=2047?a+=1:c>2047&&c<=65535&&(a+=2),c>=56320&&c<=57343&&(s-=1)}return a}function getCurrTime(){return new Date().getTime()}function isInteger(t){return Number.isInteger?Number.isInteger(t):"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}var g={};!function(){function CacheObject(){}CacheObject.clear=function(){g={}},CacheObject.getItem=function(t){return g[t]||null},CacheObject.setItem=function(t,a){g[t]=a},CacheObject.removeItem=function(t){delete g[t]}}();var m=s(35069),v=new m.k("StorageCache"),y=function(){function StorageCache(t){this.config=Object.assign({},t),this.cacheCurSizeKey=this.config.keyPrefix+"CurSize",this.checkConfig()}return StorageCache.prototype.getModuleName=function(){return"Cache"},StorageCache.prototype.checkConfig=function(){isInteger(this.config.capacityInBytes)||(v.error("Invalid parameter: capacityInBytes. It should be an Integer. Setting back to default."),this.config.capacityInBytes=p.capacityInBytes),isInteger(this.config.itemMaxSize)||(v.error("Invalid parameter: itemMaxSize. It should be an Integer. Setting back to default."),this.config.itemMaxSize=p.itemMaxSize),isInteger(this.config.defaultTTL)||(v.error("Invalid parameter: defaultTTL. It should be an Integer. Setting back to default."),this.config.defaultTTL=p.defaultTTL),isInteger(this.config.defaultPriority)||(v.error("Invalid parameter: defaultPriority. It should be an Integer. Setting back to default."),this.config.defaultPriority=p.defaultPriority),this.config.itemMaxSize>this.config.capacityInBytes&&(v.error("Invalid parameter: itemMaxSize. It should be smaller than capacityInBytes. Setting back to default."),this.config.itemMaxSize=p.itemMaxSize),(this.config.defaultPriority>5||this.config.defaultPriority<1)&&(v.error("Invalid parameter: defaultPriority. It should be between 1 and 5. Setting back to default."),this.config.defaultPriority=p.defaultPriority),(Number(this.config.warningThreshold)>1||0>Number(this.config.warningThreshold))&&(v.error("Invalid parameter: warningThreshold. It should be between 0 and 1. Setting back to default."),this.config.warningThreshold=p.warningThreshold),this.config.capacityInBytes>5242880&&(v.error("Cache Capacity should be less than 5MB. Setting back to default. Setting back to default."),this.config.capacityInBytes=p.capacityInBytes)},StorageCache.prototype.fillCacheItem=function(t,a,s){var c={key:t,data:a,timestamp:getCurrTime(),visitedTime:getCurrTime(),priority:s.priority,expires:s.expires,type:typeof a,byteSize:0};
1return c.byteSize=getByteLength(JSON.stringify(c)),c.byteSize=getByteLength(JSON.stringify(c)),c},StorageCache.prototype.configure=function(t){return t&&(t.keyPrefix&&v.warn("Don't try to configure keyPrefix!"),this.config=Object.assign({},this.config,t,t.Cache),this.checkConfig()),this.config},StorageCache}(),_=(c=function(t,a){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])})(t,a)},function(t,a){function __(){this.constructor=t}c(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}),b=new m.k("Cache"),S=new(function(t){function BrowserStorageCacheClass(a){var s=this,c=a?Object.assign({},p,a):p;return(s=t.call(this,c)||this).config.storage=c.storage,s.getItem=s.getItem.bind(s),s.setItem=s.setItem.bind(s),s.removeItem=s.removeItem.bind(s),s}return _(BrowserStorageCacheClass,t),BrowserStorageCacheClass.prototype._decreaseCurSizeInBytes=function(t){var a=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(a-t).toString())},BrowserStorageCacheClass.prototype._increaseCurSizeInBytes=function(t){var a=this.getCacheCurSize();this.config.storage.setItem(this.cacheCurSizeKey,(a+t).toString())},BrowserStorageCacheClass.prototype._refreshItem=function(t,a){return t.visitedTime=getCurrTime(),this.config.storage.setItem(a,JSON.stringify(t)),t},BrowserStorageCacheClass.prototype._isExpired=function(t){var a=JSON.parse(this.config.storage.getItem(t));return getCurrTime()>=a.expires},BrowserStorageCacheClass.prototype._removeItem=function(t,a){var s=a||JSON.parse(this.config.storage.getItem(t)).byteSize;this._decreaseCurSizeInBytes(s),this.config.storage.removeItem(t)},BrowserStorageCacheClass.prototype._setItem=function(t,a){this._increaseCurSizeInBytes(a.byteSize);try{this.config.storage.setItem(t,JSON.stringify(a))}catch(t){this._decreaseCurSizeInBytes(a.byteSize),b.error("Failed to set item "+t)}},BrowserStorageCacheClass.prototype._sizeToPop=function(t){var a=this.getCacheCurSize()+t-this.config.capacityInBytes,s=(1-this.config.warningThreshold)*this.config.capacityInBytes;return a>s?a:s},BrowserStorageCacheClass.prototype._isCacheFull=function(t){return t+this.getCacheCurSize()>this.config.capacityInBytes},BrowserStorageCacheClass.prototype._findValidKeys=function(){for(var t=[],a=[],s=0;s<this.config.storage.length;s+=1)a.push(this.config.storage.key(s));for(var s=0;s<a.length;s+=1){var c=a[s];0===c.indexOf(this.config.keyPrefix)&&c!==this.cacheCurSizeKey&&(this._isExpired(c)?this._removeItem(c):t.push(c))}return t},BrowserStorageCacheClass.prototype._popOutItems=function(t,a){for(var s=[],c=a,f=0;f<t.length;f+=1){var p=this.config.storage.getItem(t[f]);if(null!=p){var g=JSON.parse(p);s.push(g)}}s.sort(function(t,a){return t.priority>a.priority?-1:t.priority<a.priority?1:t.visitedTime<a.visitedTime?-1:1});for(var f=0;f<s.length;f+=1)if(this._removeItem(s[f].key,s[f].byteSize),(c-=s[f].byteSize)<=0)return},BrowserStorageCacheClass.prototype.setItem=function(t,a,s){b.log("Set item: key is "+t+", value is "+a+" with options: "+s);var c=this.config.keyPrefix+t;if(c===this.config.keyPrefix||c===this.cacheCurSizeKey){b.warn("Invalid key: should not be empty or 'CurSize'");return}if(void 0===a){b.warn("The value of item should not be undefined!");return}var f={priority:s&&void 0!==s.priority?s.priority:this.config.defaultPriority,expires:s&&void 0!==s.expires?s.expires:this.config.defaultTTL+getCurrTime()};if(f.priority<1||f.priority>5){b.warn("Invalid parameter: priority due to out or range. It should be within 1 and 5.");return}var p=this.fillCacheItem(c,a,f);if(p.byteSize>this.config.itemMaxSize){b.warn("Item with key: "+t+" you are trying to put into is too big!");return}try{var g=this.config.storage.getItem(c);if(g&&this._removeItem(c,JSON.parse(g).byteSize),this._isCacheFull(p.byteSize)){var m=this._findValidKeys();if(this._isCacheFull(p.byteSize)){var v=this._sizeToPop(p.byteSize);this._popOutItems(m,v)}}this._setItem(c,p)}catch(t){b.warn("setItem failed! "+t)}},BrowserStorageCacheClass.prototype.getItem=function(t,a){b.log("Get item: key is "+t+" with options "+a);var s=null,c=this.config.keyPrefix+t;if(c===this.config.keyPrefix||c===this.cacheCurSizeKey)return b.warn("Invalid key: should not be empty or 'CurSize'"),null;try{if(s=this.config.storage.getItem(c),null!=s){if(this._isExpired(c))this._removeItem(c,JSON.parse(s).byteSize),s=null;else{var f=JSON.parse(s);return(f=this._refreshItem(f,c)).data}}if(a&&void 0!==a.callback){var p=a.callback();return null!==p&&this.setItem(t,p,a),p}return null}catch(t){return b.warn("getItem failed! "+t),null}},BrowserStorageCacheClass.prototype.removeItem=function(t){b.log("Remove item: key is "+t);var a=this.config.keyPrefix+t;if(a!==this.config.keyPrefix&&a!==this.cacheCurSizeKey)try{var s=this.config.storage.getItem(a);s&&this._removeItem(a,JSON.parse(s).byteSize)}
1catch(t){b.warn("removeItem failed! "+t)}},BrowserStorageCacheClass.prototype.clear=function(){b.log("Clear Cache");for(var t=[],a=0;a<this.config.storage.length;a+=1){var s=this.config.storage.key(a);0===s.indexOf(this.config.keyPrefix)&&t.push(s)}try{for(var a=0;a<t.length;a+=1)this.config.storage.removeItem(t[a])}catch(t){b.warn("clear failed! "+t)}},BrowserStorageCacheClass.prototype.getAllKeys=function(){for(var t=[],a=0;a<this.config.storage.length;a+=1){var s=this.config.storage.key(a);0===s.indexOf(this.config.keyPrefix)&&s!==this.cacheCurSizeKey&&t.push(s.substring(this.config.keyPrefix.length))}return t},BrowserStorageCacheClass.prototype.getCacheCurSize=function(){var t=this.config.storage.getItem(this.cacheCurSizeKey);return t||(this.config.storage.setItem(this.cacheCurSizeKey,"0"),t="0"),Number(t)},BrowserStorageCacheClass.prototype.createInstance=function(t){return t.keyPrefix&&t.keyPrefix!==p.keyPrefix||(b.error("invalid keyPrefix, setting keyPrefix with timeStamp"),t.keyPrefix=getCurrTime.toString()),new BrowserStorageCacheClass(t)},BrowserStorageCacheClass}(y)),w=S;f.dQ.register(S)},25387:function(t,a,s){"use strict";s.d(a,{dQ:function(){return p}});var c=s(35069),__read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},f=new c.k("Amplify"),p=new(function(){function AmplifyClass(){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=c.k,this.ServiceWorker=null}return AmplifyClass.prototype.register=function(t){f.debug("component registered in amplify",t),this._components.push(t),"function"==typeof t.getModuleName?(this._modules[t.getModuleName()]=t,this[t.getModuleName()]=t):f.debug("no getModuleName method for component",t),t.configure(this._config)},AmplifyClass.prototype.configure=function(t){var a=this;return t&&(this._config=Object.assign(this._config,t),f.debug("amplify config",this._config),Object.entries(this._modules).forEach(function(t){var s=__read(t,2),c=(s[0],s[1]);Object.keys(c).forEach(function(t){a._modules[t]&&(c[t]=a._modules[t])})}),this._components.map(function(t){t.configure(a._config)})),this._config},AmplifyClass.prototype.addPluggable=function(t){t&&t.getCategory&&"function"==typeof t.getCategory&&this._components.map(function(a){a.addPluggable&&"function"==typeof a.addPluggable&&a.addPluggable(t)})},AmplifyClass}())},32615:function(t,a,s){"use strict";s.d(a,{cN:function(){return ta}});var c,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I,T,k,O,R,M,N,U,L,D,B,j,q,V,K,H,W,G,$,Y,J,Z,Q,X,ee,et,en,er,ei,eo,ea,es,eu,ec,el,ed,ef,ep,eh,eg,em,ev,ey,e_,eb,eS,ew=s(35069),eA=s(6648),eC=s(59222),eE=s(7262),GoogleOAuth_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},ex=new ew.k("CognitoCredentials"),eP=new Promise(function(t,a){return(0,eC.lC)().isBrowser?(window.gapi&&window.gapi.auth2?window.gapi.auth2:null)?(ex.debug("google api already loaded"),t()):void setTimeout(function(){return t()},2e3):(ex.debug("not in the browser, directly resolved"),t())}),eI=function(){function GoogleOAuth(){this.initialized=!1,this.refreshGoogleToken=this.refreshGoogleToken.bind(this),this._refreshGoogleTokenImpl=this._refreshGoogleTokenImpl.bind(this)}return GoogleOAuth.prototype.refreshGoogleToken=function(){var t,a,s,c;return t=this,a=void 0,s=void 0,c=function(){return GoogleOAuth_generator(this,function(t){switch(t.label){case 0:if(this.initialized)return[3,2];return ex.debug("need to wait for the Google SDK loaded"),[4,eP];case 1:t.sent(),this.initialized=!0,ex.debug("finish waiting"),t.label=2;case 2:return[2,this._refreshGoogleTokenImpl()]}})}
1,new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},GoogleOAuth.prototype._refreshGoogleTokenImpl=function(){var t=null;return((0,eC.lC)().isBrowser&&(t=window.gapi&&window.gapi.auth2?window.gapi.auth2:null),t)?new Promise(function(a,s){t.getAuthInstance().then(function(t){t||(ex.debug("google Auth undefined"),s(new eE.V2("google Auth undefined")));var c=t.currentUser.get();c.isSignedIn()?(ex.debug("refreshing the google access token"),c.reloadAuthResponse().then(function(t){a({token:t.id_token,expires_at:t.expires_at})}).catch(function(t){t&&"network_error"===t.error?s("Network error reloading google auth response"):s(new eE.V2("Failed to reload google auth response"))})):s(new eE.V2("User is not signed in with Google"))}).catch(function(t){ex.debug("Failed to refresh google token",t),s(new eE.V2("Failed to refresh google token"))})}):(ex.debug("no gapi auth2 available"),Promise.reject("no gapi auth2 available"))},GoogleOAuth}(),FacebookOAuth_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},eT=new ew.k("CognitoCredentials"),ek=new Promise(function(t,a){return(0,eC.lC)().isBrowser?window.FB?(eT.debug("FB SDK already loaded"),t()):void setTimeout(function(){return t()},2e3):(eT.debug("not in the browser, directly resolved"),t())}),eO=function(){function FacebookOAuth(){this.initialized=!1,this.refreshFacebookToken=this.refreshFacebookToken.bind(this),this._refreshFacebookTokenImpl=this._refreshFacebookTokenImpl.bind(this)}return FacebookOAuth.prototype.refreshFacebookToken=function(){var t,a,s,c;return t=this,a=void 0,s=void 0,c=function(){return FacebookOAuth_generator(this,function(t){switch(t.label){case 0:if(this.initialized)return[3,2];return eT.debug("need to wait for the Facebook SDK loaded"),[4,ek];case 1:t.sent(),this.initialized=!0,eT.debug("finish waiting"),t.label=2;case 2:return[2,this._refreshFacebookTokenImpl()]}})},new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},FacebookOAuth.prototype._refreshFacebookTokenImpl=function(){var t=null;if((0,eC.lC)().isBrowser&&(t=window.FB),!t){var a="no fb sdk available";return eT.debug(a),Promise.reject(new eE.V2(a))}return new Promise(function(a,s){t.getLoginStatus(function(t){if(t&&t.authResponse){var c=t.authResponse,f=c.accessToken,p=1e3*c.expiresIn+new Date().getTime();if(!f){var g="the jwtToken is undefined";eT.debug(g),s(new eE.V2(g))}a({token:f,expires_at:p})}else{var g="no response from facebook when refreshing the jwt token";eT.debug(g),s(new eE.V2(g))}},{scope:"public_profile,email"})})},FacebookOAuth}(),eR=new eI,eM=new eO,eN=s(92752),eU=s(25387),eL=s(70655),extendStatics=function(t,a){return(extendStatics=Object.
1setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])})(t,a)};function __extends(t,a){if("function"!=typeof a&&null!==a)throw TypeError("Class extends value "+String(a)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}var tslib_es6_assign=function(){return(tslib_es6_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)};function tslib_es6_awaiter(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})}function tslib_es6_generator(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(m){return function(v){return function(m){if(s)throw TypeError("Generator is already executing.");for(;p&&(p=0,m[0]&&(g=0)),g;)try{if(s=1,c&&(f=2&m[0]?c.return:m[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,m[1])).done)return f;switch(c=0,f&&(m=[2&m[0],f.value]),m[0]){case 0:case 1:f=m;break;case 4:return g.label++,{value:m[1],done:!1};case 5:g.label++,c=m[1],m=[0];continue;case 7:m=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===m[0]||2===m[0])){g=0;continue}if(3===m[0]&&(!f||m[1]>f[0]&&m[1]<f[3])){g.label=m[1];break}if(6===m[0]&&g.label<f[1]){g.label=f[1],f=m;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(m);break}f[2]&&g.ops.pop(),g.trys.pop();continue}m=a.call(t,g)}catch(t){m=[6,t],c=0}finally{s=f=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([m,v])}}}"function"==typeof SuppressedError&&SuppressedError,(c=m||(m={})).AUTHENTICATED_ROLE="AuthenticatedRole",c.DENY="Deny",(v||(v={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(y||(y={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(_||(_={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(b||(b={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(S||(S={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(w||(w={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(C||(C={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(E||(E={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(x||(x={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(P||(P={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(f=I||(I={})).ACCESS_DENIED="AccessDenied",f.INTERNAL_SERVER_ERROR="InternalServerError",(T||(T={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(k||(k={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(O||(O={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(R||(R={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(M||(M={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(N||(N={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(U||(U={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(L||(L={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(D||(D={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(B||(B={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(j||(j={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(q||(q={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(V||(V={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(K||(K={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(H||(H={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(p=W||(W={})).CONTAINS="Contains",p.EQUALS="Equals",p.NOT_EQUAL="NotEqual",p.STARTS_WITH="StartsWith",(G||(G={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},($||($={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(g=Y||(Y={})).RULES="Rules",g.TOKEN="Token",(J||(J={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(Z||(Z={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(Q||(Q={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(X||(X={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ee||(ee={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(et||(et={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(en||(en={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(er||(er={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ei||(ei={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eo||(eo={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ea||(ea={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(es||(es={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eu||(eu={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ec||(ec={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(el||(el={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ed||(ed={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ef||(ef={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ep||(ep={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eh||(eh={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eg||(eg={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(em||(em={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ev||(ev={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ey||(ey={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(e_||(e_={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eb||(eb={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eS||(eS={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)};var eD=s(96877),deserializeAws_json1_1ExternalServiceExceptionResponse=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){return s=deserializeAws_json1_1ExternalServiceException(t.body,a),[2,tslib_es6_assign({name:"ExternalServiceException",$fault:"client",$metadata:deserializeMetadata(t)},s)]})})},deserializeAws_json1_1InternalErrorExceptionResponse=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){return s=deserializeAws_json1_1InternalErrorException(t.body,a),[2,tslib_es6_assign({name:"InternalErrorException",$fault:"server",$metadata:deserializeMetadata(t)},s)]})})}
1,deserializeAws_json1_1InvalidParameterExceptionResponse=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){return s=deserializeAws_json1_1InvalidParameterException(t.body,a),[2,tslib_es6_assign({name:"InvalidParameterException",$fault:"client",$metadata:deserializeMetadata(t)},s)]})})},deserializeAws_json1_1NotAuthorizedExceptionResponse=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){return s=deserializeAws_json1_1NotAuthorizedException(t.body,a),[2,tslib_es6_assign({name:"NotAuthorizedException",$fault:"client",$metadata:deserializeMetadata(t)},s)]})})},deserializeAws_json1_1ResourceConflictExceptionResponse=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){return s=deserializeAws_json1_1ResourceConflictException(t.body,a),[2,tslib_es6_assign({name:"ResourceConflictException",$fault:"client",$metadata:deserializeMetadata(t)},s)]})})},deserializeAws_json1_1ResourceNotFoundExceptionResponse=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){return s=deserializeAws_json1_1ResourceNotFoundException(t.body,a),[2,tslib_es6_assign({name:"ResourceNotFoundException",$fault:"client",$metadata:deserializeMetadata(t)},s)]})})},deserializeAws_json1_1TooManyRequestsExceptionResponse=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){return s=deserializeAws_json1_1TooManyRequestsException(t.body,a),[2,tslib_es6_assign({name:"TooManyRequestsException",$fault:"client",$metadata:deserializeMetadata(t)},s)]})})},serializeAws_json1_1LoginsMap=function(t,a){return Object.entries(t).reduce(function(t,a){var s,c=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g}(a,2),f=c[0],p=c[1];return null===p?t:tslib_es6_assign(tslib_es6_assign({},t),((s={})[f]=p,s))},{})},deserializeAws_json1_1ExternalServiceException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}},deserializeAws_json1_1GetCredentialsForIdentityResponse=function(t,a){var s;return{Credentials:void 0!==t.Credentials&&null!==t.Credentials?{AccessKeyId:void 0!==(s=t.Credentials).AccessKeyId&&null!==s.AccessKeyId?s.AccessKeyId:void 0,Expiration:void 0!==s.Expiration&&null!==s.Expiration?new Date(Math.round(1e3*s.Expiration)):void 0,SecretKey:void 0!==s.SecretKey&&null!==s.SecretKey?s.SecretKey:void 0,SessionToken:void 0!==s.SessionToken&&null!==s.SessionToken?s.SessionToken:void 0}:void 0,IdentityId:void 0!==t.IdentityId&&null!==t.IdentityId?t.IdentityId:void 0}},deserializeAws_json1_1InternalErrorException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}}
1,deserializeAws_json1_1InvalidIdentityPoolConfigurationException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}},deserializeAws_json1_1InvalidParameterException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}},deserializeAws_json1_1LimitExceededException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}},deserializeAws_json1_1NotAuthorizedException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}},deserializeAws_json1_1ResourceConflictException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}},deserializeAws_json1_1ResourceNotFoundException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}},deserializeAws_json1_1TooManyRequestsException=function(t,a){return{message:void 0!==t.message&&null!==t.message?t.message:void 0}},deserializeMetadata=function(t){var a;return{httpStatusCode:t.statusCode,requestId:null!==(a=t.headers["x-amzn-requestid"])&&void 0!==a?a:t.headers["x-amzn-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}},collectBodyString=function(t,a){var s;return((void 0===(s=t)&&(s=new Uint8Array),s instanceof Uint8Array)?Promise.resolve(s):a.streamCollector(s)||Promise.resolve(new Uint8Array)).then(function(t){return a.utf8Encoder(t)})},buildHttpRpcRequest=function(t,a,s,c,f){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var p,g,m,v;return tslib_es6_generator(this,function(y){switch(y.label){case 0:return[4,t.endpoint()];case 1:return g=(p=y.sent()).hostname,v={protocol:void 0===(m=p.protocol)?"https":m,hostname:g,port:p.port,method:"POST",path:s,headers:a},void 0!==c&&(v.hostname=c),void 0!==f&&(v.body=f),[2,new eD.aW(v)]}})})},parseBody=function(t,a){return collectBodyString(t,a).then(function(t){return t.length?JSON.parse(t):{}})},loadRestJsonErrorCode=function(t,a){var sanitizeErrorCode=function(t){var a=t;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},s=Object.keys(t.headers).find(function(t){return"x-amzn-errortype"===t.toLowerCase()});return void 0!==s?sanitizeErrorCode(t.headers[s]):void 0!==a.code?sanitizeErrorCode(a.code):void 0!==a.__type?sanitizeErrorCode(a.__type):""},eB=s(86400),ej=s(57198),eF=function(t){function GetCredentialsForIdentityCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(GetCredentialsForIdentityCommand,t),GetCredentialsForIdentityCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,eB.p2)(a,this.serialize,this.deserialize));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"CognitoIdentityClient",commandName:"GetCredentialsForIdentityCommand",inputFilterSensitiveLog:D.filterSensitiveLog,outputFilterSensitiveLog:j.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},GetCredentialsForIdentityCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){return s={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetCredentialsForIdentity"},c=JSON.stringify(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},void 0!==t.CustomRoleArn&&null!==t.CustomRoleArn&&{CustomRoleArn:t.CustomRoleArn}),void 0!==t.IdentityId&&null!==t.IdentityId&&{IdentityId:t.IdentityId}),void 0!==t.Logins&&null!==t.Logins&&{Logins:serializeAws_json1_1LoginsMap(t.Logins,a)})),[2,buildHttpRpcRequest(a,s,"/",void 0,c)]})})},GetCredentialsForIdentityCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){switch(f.label){case 0:if(t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b,S,w,C,E,x;return tslib_es6_generator(this,function(P){switch(P.label){case 0:return c=[tslib_es6_assign({},t)],x={},[4,parseBody(t.body,a)];case 1:switch(s=tslib_es6_assign.apply(void 0,c.concat([(x.body=P.sent(),x)])),p="UnknownError",p=loadRestJsonErrorCode(t,s.body)){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidIdentityPoolConfigurationException":case"com.amazonaws.cognitoidentity#InvalidIdentityPoolConfigurationException":return[3,6];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16
1]}return[3,18];case 2:return g=[{}],[4,deserializeAws_json1_1ExternalServiceExceptionResponse(s,a)];case 3:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,g.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 4:return m=[{}],[4,deserializeAws_json1_1InternalErrorExceptionResponse(s,a)];case 5:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,m.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 6:var I,T;return v=[{}],[4,(I=s,T=a,tslib_es6_awaiter(void 0,void 0,void 0,function(){var t;return tslib_es6_generator(this,function(a){return t=deserializeAws_json1_1InvalidIdentityPoolConfigurationException(I.body,T),[2,tslib_es6_assign({name:"InvalidIdentityPoolConfigurationException",$fault:"client",$metadata:deserializeMetadata(I)},t)]})}))];case 7:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,v.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 8:return y=[{}],[4,deserializeAws_json1_1Invali
1dParameterExceptionResponse(s,a)];case 9:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,y.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 10:return _=[{}],[4,deserializeAws_json1_1NotAuthorizedExceptionResponse(s,a)];case 11:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,_.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 12:return b=[{}],[4,deserializeAws_json1_1ResourceConflictExceptionResponse(s,a)];case 13:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,b.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 14:return S=[{}],[4,deserializeAws_json1_1ResourceNotFoundExceptionResponse(s,a)];case 15:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,S.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 16:return w=[{}],[4,deserializeAws_json1_1TooManyRequestsExceptionResponse(s,a)];case 17:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,w.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 18:p=(C=s.body).code||C.Code||p,f=tslib_es6_assign(tslib_es6_assign({},C),{name:""+p,message:C.message||C.Message||p,$fault:"client",$metadata:deserializeMetadata(t)}),P.label=19;case 19:return E=f.message||f.Message||p,f.message=E,delete f.Message,[2,Promise.reject(Object.assign(Error(E),f))]}})})];return[4,parseBody(t.body,a)];case 1:return s=f.sent(),c={},c=deserializeAws_json1_1GetCredentialsForIdentityResponse(s,a),[2,Promise.resolve(tslib_es6_assign({$metadata:deserializeMetadata(t)},c))]}})})},GetCredentialsForIdentityCommand}(ej.mY),ez=function(t){function ProviderError(a,s){void 0===s&&(s=!0);var c=t.call(this,a)||this;return c.tryNextLink=s,c}return(0,eL.__extends)(ProviderError,t),ProviderError}(Error);function resolveLogins(t){return Promise.all(Object.keys(t).reduce(function(a,s){var c=t[s];return"string"==typeof c?a.push([s,c]):a.push(c().then(function(t){return[s,t]})),a},[])).then(function(t){return t.reduce(function(t,a){var s=(0,eL.__read)(a,2),c=s[0],f=s[1];return t[c]=f,t},{})})}function fromCognitoIdentity(t){var a=this;return function(){return(0,eL.__awaiter)(a,void 0,void 0,function(){var a,s,c,f,p,g,m,v,y,_,b,S,w;return(0,eL.__generator)(this,function(C){switch(C.label){case 0:if(_=(y=t.client).send,b=eF.bind,w={CustomRoleArn:t.customRoleArn,IdentityId:t.identityId},!t.logins)return[3,2];return[4,resolveLogins(t.logins)];case 1:return S=C.sent(),[3,3];case 2:S=void 0,C.label=3;case 3:return[4,_.apply(y,[new(b.apply(eF,[void 0,(w.Logins=S,w)]))])];case 4:return f=void 0===(c=(s=void 0===(a=C.sent().Credentials)?function(){throw new ez("Response from Amazon Cognito contained no credentials")}():a).AccessKeyId)?function(){throw new ez("Response from Amazon Cognito contained no access key ID")}():c,p=s.Expiration,m=void 0===(g=s.SecretKey)?function(){throw new ez("Response from Amazon Cognito contained no secret key")}():g,v=s.SessionToken,[2,{identityId:t.identityId,accessKeyId:f,secretAccessKey:m,sessionToken:v,expiration:p}]}})})}}var eq=function(t){function GetIdCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(GetIdCommand,t),GetIdCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,eB.p2)(a,this.serialize,this.deserialize));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"CognitoIdentityClient",commandName:"GetIdCommand",inputFilterSensitiveLog:V.filterSensitiveLog,outputFilterSensitiveLog:K.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},GetIdCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){return s={"content-type":"application/x-amz-json-1.1","x-amz-target":"AWSCognitoIdentityService.GetId"},c=JSON.stringify(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},void 0!==t.AccountId&&null!==t.AccountId&&{AccountId:t.AccountId}),void 0!==t.IdentityPoolId&&null!==t.IdentityPoolId&&{IdentityPoolId:t.IdentityPoolId}),void 0!==t.Logins&&null!==t.Logins&&{Logins:serializeAws_json1_1LoginsMap(t.Logins,a)})),[2,buildHttpRpcRequest(a,s,"/",void 0,c)]})})},GetIdCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){switch(f.label){case 0:if(t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b,S,w,C,E,x;return tslib_es6_generator(this,function(P){switch(P.label){case 0:return c=[tslib_es6_assign({},t)],x={},[4,parseBody(t.body,a)];case 1:switch(s=tslib_es6_assign.apply(void 0,c.concat([(x.body=P.sent(),x)])),p="UnknownError",p=loadRestJsonErrorCode(t,s.body)){case"ExternalServiceException":case"com.amazonaws.cognitoidentity#ExternalServiceException":return[3,2];case"InternalErrorException":case"com.amazonaws.cognitoidentity#InternalErrorException":return[3,4];case"InvalidParameterException":case"com.amazonaws.cognitoidentity#InvalidParameterException":return[3,6];case"LimitExceededException":case"com.amazonaws.cognitoidentity#LimitExceededException":return[3,8];case"NotAuthorizedException":case"com.amazonaws.cognitoidentity#NotAuthorizedException":return[3,10];case"ResourceConflictException":case"com.amazonaws.cognitoidentity#ResourceConflictException":return[3,12];case"ResourceNotFoundException":case"com.amazonaws.cognitoidentity#ResourceNotFoundException":return[3,14];case"TooManyRequestsException":case"com.amazonaws.cognitoidentity#TooManyRequestsException":return[3,16
1]}return[3,18];case 2:return g=[{}],[4,deserializeAws_json1_1ExternalServiceExceptionResponse(s,a)];case 3:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,g.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 4:return m=[{}],[4,deserializeAws_json1_1InternalErrorExceptionResponse(s,a)];case 5:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,m.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 6:return v=[{}],[4,deserializeAws_json1_1InvalidParameterExceptionResponse(s,a)];case 7:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,v.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 8:var I,T;return y=[{}],[4,(I=s,T=a,tslib_es6_awaiter(void 0,void 0,void 0,function(){var t;return tslib_es6_generator(this,function(a){return t=deserializeAws_json1_1LimitExceededException(I.body,T),[2,tslib_es6_assign({name:"LimitExceededException",$fault:"client",$metadata:deserializeMetadata(I)},t)]})}))];case 9:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,y.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 10:return _=[{}],[4,deserializeAws_json1_1NotAuthorizedExceptionResponse(s,a)];case 11:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,_.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 12:return b=[{}],[4,deserializeAws_json1_1ResourceConflictExceptionResponse(s,a)];case 13:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,b.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 14:return S=[{}],[4,deserializeAws_json1_1ResourceNotFoundExceptionResponse(s,a)];case 15:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,S.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 16:return w=[{}],[4,deserializeAws_json1_1TooManyRequestsExceptionResponse(s,a)];case 17:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,w.concat([P.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,19];case 18:p=(C=s.body).code||C.Code||p,f=tslib_es6_assign(tslib_es6_assign({},C),{name:""+p,message:C.message||C.Message||p,$fault:"client",$metadata:deserializeMetadata(t)}),P.label=19;case 19:return E=f.message||f.Message||p,f.message=E,delete f.Message,[2,Promise.reject(Object.assign(Error(E),f))]}})})];return[4,parseBody(t.body,a)];case 1:return s=f.sent(),c={},c={IdentityId:void 0!==s.IdentityId&&null!==s.IdentityId?s.IdentityId:void 0},[2,Promise.resolve(tslib_es6_assign({$metadata:deserializeMetadata(t)},c))]}})})},GetIdCommand}(ej.mY),eV="IdentityIds",eK=function(){function IndexedDbStorage(t){void 0===t&&(t="aws:cognito-identity-ids"),this.dbName=t}return IndexedDbStorage.prototype.getItem=function(t){return this.withObjectStore("readonly",function(a){var s=a.get(t);return new Promise(function(t){s.onerror=function(){return t(null)},s.onsuccess=function(){return t(s.result?s.result.value:null)}})}).catch(function(){return null})},IndexedDbStorage.prototype.removeItem=function(t){return this.withObjectStore("readwrite",function(a){var s=a.delete(t);return new Promise(function(t,a){s.onerror=function(){return a(s.error)},s.onsuccess=function(){return t()}})})},IndexedDbStorage.prototype.setItem=function(t,a){return this.withObjectStore("readwrite",function(s){var c=s.put({id:t,value:a});return new Promise(function(t,a){c.onerror=function(){return a(c.error)},c.onsuccess=function(){return t()}})})},IndexedDbStorage.prototype.getDb=function(){var t=self.indexedDB.open(this.dbName,1);return new Promise(function(a,s){t.onsuccess=function(){a(t.result)},t.onerror=function(){s(t.error)},t.onblocked=function(){s(Error("Unable to access DB"))},t.onupgradeneeded=function(){var a=t.result;a.onerror=function(){s(Error("Failed to create object store"))},a.createObjectStore(eV,{keyPath:"id"})}})},IndexedDbStorage.prototype.withObjectStore=function(t,a){return this.getDb().then(function(s){var c=s.transaction(eV,t);return c.oncomplete=function(){return s.close()},new Promise(function(t,s){c.onerror=function(){return s(c.error)},t(a(c.objectStore(eV)))}).catch(function(t){throw s.close(),t})})},IndexedDbStorage}(),eH=new(function(){function InMemoryStorage(t){void 0===t&&(t={}),this.store=t}return InMemoryStorage.prototype.getItem=function(t){return t in this.store?this.store[t]:null},InMemoryStorage.prototype.removeItem=function(t){delete this.store[t]},InMemoryStorage.prototype.setItem=function(t,a){this.store[t]=a},InMemoryStorage}()),eW=s(77643),eG=s(37691),e$=s(35749),eY=s(97845),eJ=s(67157),eZ=s(22795),eQ=s(85731),eX=s(20519),e0="cognito-identity.{region}.amazonaws.com",e1=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"]),e2=new Set(["cn-north-1","cn-northwest-1"]),e6=new Set(["us-iso-east-1"]),e3=new Set(["us-isob-east-1"]),e4=new Set(["us-gov-east-1","us-gov-west-1"]),e5={apiVersion:"2014-06-30",disableHostPrefix:!1,logger:{},regionInfoProvider:function(t,a){var s=void 0;switch(t){case"ap-northeast-1":s={hostname:"cognito-identity.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":s={hostname:"cognito-identity.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":s={hostname:"cognito-identity.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":s={hostname:"cognito-identity.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":s={hostname:"cognito-identity.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":s={hostname:"cognito-identity.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":s={hostname:"cognito-identity.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":s={hostname:"cognito-identity.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":s={hostname:"cognito-identity.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":s={hostname:"cognito-identity.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":s={hostname:"cognito-identity.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":s={hostname:"cognito-identity.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-east-1":s={hostname:"cognito-identity-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"fips-us-east-2":s={hostname:"cognito-identity-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"fips-us-gov-west-1":s={hostname:"cognito-identity-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"fips-us-west-2":s={hostname:"cognito-identity-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;case"sa-east-1":s={hostname:"cognito-identity.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":s={hostname:"cognito-identity.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":s={hostname:"cognito-identity.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-west-1":s={hostname:"cognito-identity.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-west-1":s={hostname:"cognito-identity.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":s={hostname:"cognito-identity.us-west-2.amazonaws.com",partition:"aws"};break;default:e1.has(t)&&(s={hostname:e0.replace("{region}",t),partition:"aws"}),e2.has(t)&&(s={hostname:"cognito-identity.{region}.amazonaws.com.cn".replace("{region}",t),partition:"aws-cn"}),e6.has(t)&&(s={hostname:"cognito-identity.{region}.c2s.ic.gov".replace("{region}",t),partition:"aws-iso"}),e3.has(t)&&(s={hostname:"cognito-identity.{region}.sc2s.sgov.gov".replace("{region}",t),partition:"aws-iso-b"}),e4.has(t)&&(s={hostname:"cognito-identity.{region}.amazonaws.com".replace("{region}",t),partition:"aws-us-gov"}),void 0===s&&(s={hostname:e0.replace("{region}",t),partition:"aws"})}return Promise.resolve(tslib_es6_assign({signingService:"cognito-identity"},s))},serviceId:"Cognito Identity",urlParser:s(31823).e},e8=tslib_es6_assign(tslib_es6_assign({},e5),{runtime:"browser",base64Decoder:eJ.G,base64Encoder:eJ.s,bodyLengthChecker:eZ.W,credentialDefaultProvider:function(t){return function(){return Promise.reject(Error("Credential is missing"))}},defaultUserAgentProvider:(0,eQ.f)({serviceId:e5.serviceId,clientVersion:"3.6.1"}),maxAttempts:eY.J,region:(0,e$.n)("Region is missing"),requestHandler:new eG.B,sha256:eW.Sha256,streamCollector:eG.C,utf8Decoder:eX.fromUtf8,utf8Encoder:eX.toUtf8}),e7=s(80428),e9=s(50672),te=s(43273),tt=s(70287),tn=s(31868),tr=s(56380),ti=function(t){function CognitoIdentityClient(a){var s=this,c=tslib_es6_assign(tslib_es6_assign({},e8),a),f=(0,e7.Xb)(c),p=(0,e7.g4)(f),g=(0,tn.A$)(p),m=(0,eY.BC)(g),v=(0,te.S8)(m),y=(0,tr.er)(v);return(s=t.call(this,y)||this).config=y,s.middlewareStack.use((0,eY.NQ)(s.config)),s.middlewareStack.use((0,e9.VG)(s.config)),s.middlewareStack.use((0,te.G2)(s.config)),s.middlewareStack.use((0,tt.cV)(s.config)),s.middlewareStack.use((0,tr.XJ)(s.config)),s}
1return __extends(CognitoIdentityClient,t),CognitoIdentityClient.prototype.destroy=function(){t.prototype.destroy.call(this)},CognitoIdentityClient}(ej.KU),Credentials_assign=function(){return(Credentials_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},Credentials_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},Credentials_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},to=new ew.k("Credentials"),ta=new(function(){function CredentialsClass(t){this._gettingCredPromise=null,this._refreshHandlers={},this.Auth=void 0,this.configure(t),this._refreshHandlers.google=eR.refreshGoogleToken,this._refreshHandlers.facebook=eM.refreshFacebookToken}return CredentialsClass.prototype.getModuleName=function(){return"Credentials"},CredentialsClass.prototype.getCredSource=function(){return this._credentials_source},CredentialsClass.prototype.configure=function(t){if(!t)return this._config||{};this._config=Object.assign({},this._config,t);var a=this._config.refreshHandlers;return a&&(this._refreshHandlers=Credentials_assign(Credentials_assign({},this._refreshHandlers),a)),this._storage=this._config.storage,this._storage||(this._storage=new eA.c4().getStorage()),this._storageSync=Promise.resolve(),"function"==typeof this._storage.sync&&(this._storageSync=this._storage.sync()),this._config},CredentialsClass.prototype.get=function(){return to.debug("getting credentials"),this._pickupCredentials()},CredentialsClass.prototype._pickupCredentials=function(){return to.debug("picking up credentials"),this._gettingCredPromise&&this._gettingCredPromise.isPending()?to.debug("getting old cred promise"):(to.debug("getting new cred promise"),this._gettingCredPromise=(0,eC.ML)(this._keepAlive())),this._gettingCredPromise},CredentialsClass.prototype._keepAlive=function(){return Credentials_awaiter(this,void 0,void 0,function(){var t,a,s,c,f,p;return Credentials_generator(this,function(g){switch(g.label){case 0:if(to.debug("checking if credentials exists and not expired"),(t=this._credentials)&&!this._isExpired(t)&&!this._isPastTTL())return to.debug("credentials not changed and not expired, directly return"),[2,Promise.resolve(t)];if(to.debug("need to get a new credential or refresh the existing one"),!(s=void 0===(a=this.Auth)?eU.dQ.Auth:a)||"function"!=typeof s.currentUserCredentials)return[2,Promise.reject("No Auth module registered in Amplify")];if(!(!this._isExpired(t)&&this._isPastTTL()))return[3,6];to.debug("ttl has passed but token is not yet expired"),g.label=1;case 1:return g.trys.push([1,5,,6]),[4,s.currentUserPoolUser()];case 2:return c=g.sent(),[4,s.currentSession()];case 3:return f=g.sent().refreshToken,[4,new Promise(function(t,a){c.refreshSession(f,function(s,c){return s?a(s):t(c)})})];case 4:return g.sent(),[3,6];case 5:return p=g.sent(),to.debug("Error attempting to refreshing the session",p),[3,6];case 6:return[2,s.currentUserCredentials()]}})})},CredentialsClass.prototype.refreshFederatedToken=function(t){to.debug("Getting federated credentials");var a=t.provider,s=t.user,c=t.token,f=t.identity_id,p=t.expires_at;return(p=1970===new Date(p).getFullYear()?1e3*p:p,to.debug("checking if federated jwt token expired"),p>new Date().getTime())?(to.debug("token not expired"),this._setCredentialsFromFederation({provider:a,token:c,user:s,identity_id:f,expires_at:p})):this._refreshHandlers[a]&&"function"==typeof this._refreshHandlers[a]?(to.debug("getting refreshed jwt token from federation provider"),this._providerRefreshWithRetry({refreshHandler:this._refreshHandlers[a],provider:a,user:s})):(to.debug("no refresh handler for provider:",a),this.clear(),Promise.reject("no refresh handler for provider"))},CredentialsClass.prototype._providerRefreshWithRetry=function(t){var a=this,s=t.refreshHandler,c=t.provider,f=t.user;return(0,eE.Xm)(s,[],1e4).then(function(t){return to.debug("refresh federated token sucessfully",t),a._setCredentialsFromFederation({provider:c,token:t.token,user:f,identity_id:t.identity_id,expires_at:t.expires_at})}).catch(function(t){return"string"==typeof t&&0===t.toLowerCase().lastIndexOf("network error",t.length)||a.clear(),to.debug("refresh federated token failed",t),Promise.reject("refreshing federation token failed: "+t)})},CredentialsClass.prototype._isExpired=function(t){if(!t)return to.debug("no credentials for expiration check"),!0;to.debug("are these credentials expired?",t);var a=Date.now();return t.expiration.getTime()<=a},CredentialsClass.prototype._isPastTTL=function(){return this._nextCredentialsRefresh<=Date.now()},CredentialsClass.prototype._setCredentialsForGuest=function(){return Credentials_awaiter(this,void 0,void 0,function(){var t,a,s,c,f,p,g,m=this;return Credentials_generator(this,function(v){switch(v.label){case 0:if(to.debug("setting credentials for guest"),a=(t=this._config).identityPoolId,s=t.regi
1on,t.mandatorySignIn)return[2,Promise.reject("cannot get guest credentials when mandatory signin enabled")];if(!a)return to.debug("No Cognito Identity pool provided for unauthenticated access"),[2,Promise.reject("No Cognito Identity pool provided for unauthenticated access")];if(!s)return to.debug("region is not configured for getting the credentials"),[2,Promise.reject("region is not configured for getting the credentials")];c=void 0,v.label=1;case 1:return v.trys.push([1,3,,4]),[4,this._storageSync];case 2:return v.sent(),c=this._storage.getItem("CognitoIdentityId-"+a),this._identityId=c,[3,4];case 3:return f=v.sent(),to.debug("Failed to get the cached identityId",f),[3,4];case 4:return p=new ti({region:s,customUserAgent:(0,eN.Zm)()}),g=void 0,g=c?fromCognitoIdentity({identityId:c,client:p})():Credentials_awaiter(m,void 0,void 0,function(){var t;return Credentials_generator(this,function(s){switch(s.label){case 0:return[4,p.send(new eq({IdentityPoolId:a}))];case 1:return t=s.sent().IdentityId,this._identityId=t,[2,fromCognitoIdentity({client:p,identityId:t})()]}})}).catch(function(t){return Credentials_awaiter(m,void 0,void 0,function(){return Credentials_generator(this,function(a){throw t})})}),[2,this._loadCredentials(g,"guest",!1,null).then(function(t){return t}).catch(function(t){return Credentials_awaiter(m,void 0,void 0,function(){var s=this;return Credentials_generator(this,function(f){return"ResourceNotFoundException"!==t.name||t.message!=="Identity '"+c+"' not found."?[2,t]:(to.debug("Failed to load guest credentials"),this._storage.removeItem("CognitoIdentityId-"+a),g=Credentials_awaiter(s,void 0,void 0,function(){var t;return Credentials_generator(this,function(s){switch(s.label){case 0:return[4,p.send(new eq({IdentityPoolId:a}))];case 1:return t=s.sent().IdentityId,this._identityId=t,[2,fromCognitoIdentity({client:p,identityId:t})()]}})}).catch(function(t){return Credentials_awaiter(s,void 0,void 0,function(){return Credentials_generator(this,function(a){throw t})})}),[2,this._loadCredentials(g,"guest",!1,null)])})})})]}})})},CredentialsClass.prototype._setCredentialsFromFederation=function(t){var a=t.provider,s=t.token,c=t.identity_id,f={google:"accounts.google.com",facebook:"graph.facebook.com",amazon:"www.amazon.com",developer:"cognito-identity.amazonaws.com"}[a]||a;if(!f)return Promise.reject("You must specify a federated provider");var p={};p[f]=s;var g=this._config,m=g.identityPoolId,v=g.region;if(!m)return to.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");if(!v)return to.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var y=new ti({region:v,customUserAgent:(0,eN.Zm)()}),_=void 0;if(c){var b={identityId:c,logins:p,client:y};_=fromCognitoIdentity(b)()}else{var b={logins:p,identityPoolId:m,client:y};_=(function(t){var a=this,s=t.accountId,c=t.cache,f=void 0===c?"object"==typeof self&&self.indexedDB?new eK:"object"==typeof window&&window.localStorage?window.localStorage:eH:c,p=t.client,g=t.customRoleArn,m=t.identityPoolId,v=t.logins,y=t.userIdentifier,_=void 0===y?v&&0!==Object.keys(v).length?void 0:"ANONYMOUS":y,b=_?"aws:cognito-identity-credentials:"+m+":"+_:void 0,provider=function(){return(0,eL.__awaiter)(a,void 0,void 0,function(){var t,a,c,y,_,S,w,C;return(0,eL.__generator)(this,function(E){switch(E.label){case 0:if(!(a=b))return[3,2];return[4,f.getItem(b)];case 1:a=E.sent(),E.label=2;case 2:if(t=a)return[3,7];if(_=(y=p).send,S=eq.bind,C={AccountId:s,IdentityPoolId:m},!v)return[3,4];return[4,resolveLogins(v)];case 3:return w=E.sent(),[3,5];case 4:w=void 0,E.label=5;case 5:return[4,_.apply(y,[new(S.apply(eq,[void 0,(C.Logins=w,C)]))])];case 6:t=void 0===(c=E.sent().IdentityId)?function(){throw new ez("Response from Amazon Cognito contained no identity ID")}():c,b&&Promise.resolve(f.setItem(b,t)).catch(function(){}),E.label=7;case 7:return[2,(provider=fromCognitoIdentity({client:p,customRoleArn:g,logins:v,identityId:t}))()]}})})};return function(){return provider().catch(function(t){return(0,eL.__awaiter)(a,void 0,void 0,function(){return(0,eL.__generator)(this,function(a){throw b&&Promise.resolve(f.removeItem(b)).catch(function(){}),t})})})}})(b)()}return this._loadCredentials(_,"federated",!0,t)},CredentialsClass.prototype._setCredentialsFromSession=function(t){var a=this;to.debug("set credentials from session");var s=t.getIdToken().getJwtToken(),c=this._config,f=c.region,p=c.userPoolId,g=c.identityPoolId;if(!g)return to.debug("No Cognito Federated Identity pool provided"),Promise.reject("No Cognito Federated Identity pool provided");
1if(!f)return to.debug("region is not configured for getting the credentials"),Promise.reject("region is not configured for getting the credentials");var m={};m["cognito-idp."+f+".amazonaws.com/"+p]=s;var v=new ti({region:f,customUserAgent:(0,eN.Zm)()}),y=Credentials_awaiter(a,void 0,void 0,function(){var t;return Credentials_generator(this,function(a){switch(a.label){case 0:return[4,v.send(new eq({IdentityPoolId:g,Logins:m}))];case 1:return t=a.sent().IdentityId,this._identityId=t,[2,fromCognitoIdentity({client:v,logins:m,identityId:t})()]}})}).catch(function(t){return Credentials_awaiter(a,void 0,void 0,function(){return Credentials_generator(this,function(a){throw t})})});return this._loadCredentials(y,"userPool",!0,null)},CredentialsClass.prototype._loadCredentials=function(t,a,s,c){var f=this,p=this,g=this._config.identityPoolId;return new Promise(function(m,v){t.then(function(t){return Credentials_awaiter(f,void 0,void 0,function(){var f,v,y,_,b,S;return Credentials_generator(this,function(w){switch(w.label){case 0:if(to.debug("Load credentials successfully",t),this._identityId&&!t.identityId&&(t.identityId=this._identityId),p._credentials=t,p._credentials.authenticated=s,p._credentials_source=a,p._nextCredentialsRefresh=new Date().getTime()+3e6,"federated"===a){f=Object.assign({id:this._credentials.identityId},c.user),v=c.provider,y=c.token,_=c.expires_at,b=c.identity_id;try{this._storage.setItem("aws-amplify-federatedInfo",JSON.stringify({provider:v,token:y,user:f,expires_at:_,identity_id:b}))}catch(t){to.debug("Failed to put federated info into auth storage",t)}}if("guest"!==a)return[3,4];w.label=1;case 1:return w.trys.push([1,3,,4]),[4,this._storageSync];case 2:return w.sent(),this._storage.setItem("CognitoIdentityId-"+g,t.identityId),[3,4];case 3:return S=w.sent(),to.debug("Failed to cache identityId",S),[3,4];case 4:return m(p._credentials),[2]}})})}).catch(function(a){if(a){to.debug("Failed to load credentials",t),to.debug("Error loading credentials",a),v(a);return}})})},CredentialsClass.prototype.set=function(t,a){return"session"===a?this._setCredentialsFromSession(t):"federation"===a?this._setCredentialsFromFederation(t):"guest"===a?this._setCredentialsForGuest():(to.debug("no source specified for setting credentials"),Promise.reject("invalid source"))},CredentialsClass.prototype.clear=function(){return Credentials_awaiter(this,void 0,void 0,function(){return Credentials_generator(this,function(t){return this._credentials=null,this._credentials_source=null,to.debug("removing aws-amplify-federatedInfo from storage"),this._storage.removeItem("aws-amplify-federatedInfo"),[2]})})},CredentialsClass.prototype.shear=function(t){return{accessKeyId:t.accessKeyId,sessionToken:t.sessionToken,secretAccessKey:t.secretAccessKey,identityId:t.identityId,authenticated:t.authenticated}},CredentialsClass}())(null);eU.dQ.register(ta)},20490:function(t,a,s){"use strict";s.d(a,{Xb:function(){return g}});var c=s(35069),__assign=function(){return(__assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},__read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},__spread=function(){for(var t=[],a=0;a<arguments.length;a++)t=t.concat(__read(arguments[a]));return t},f=new c.k("Hub"),p="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",g=new(function(){function HubClass(t){this.listeners=[],this.patterns=[],this.protectedChannels=["core","auth","api","analytics","interactions","pubsub","storage","xr"],this.name=t}return HubClass.prototype.remove=function(t,a){if(t instanceof RegExp){var s=this.patterns.find(function(a){return a.pattern.source===t.source});if(!s){f.warn("No listeners for "+t);return}this.patterns=__spread(this.patterns.filter(function(t){return t!==s}))}else{var c=this.listeners[t];if(!c){f.warn("No listeners for "+t);return}this.listeners[t]=__spread(c.filter(function(t){return t.callback!==a}))}},HubClass.prototype.dispatch=function(t,a,s,c){void 0===s&&(s=""),this.protectedChannels.indexOf(t)>-1&&c!==p&&f.warn("WARNING: "+t+" is protected and dispatching on it can have unintended consequences");var g={channel:t,payload:__assign({},a),source:s,patternInfo:[]};try{this._toListeners(g)}catch(t){f.error(t)}},HubClass.prototype.listen=function(t,a,s){var c,p=this;if(void 0===s&&(s="noname"),void 0!==a.onHubCapsule)f.warn("WARNING onHubCapsule is Deprecated. Please pass in a callback."),c=a.onHubCapsule.bind(a);else if("function"!=typeof a)throw Error("No callback supplied to Hub");else c=a;if(t instanceof RegExp)this.patterns.push({pattern:t,callback:c});else{var g=this.listeners[t];g||(g=[],this.listeners[t]=g),g.push({name:s,callback:c})}return function(){p.remove(t,c)}},HubClass.prototype._toListeners=function(t){var a=t.channel,s=t.payload,c=this.listeners[a];
1if(c&&c.forEach(function(c){f.debug("Dispatching to "+a+" with ",s);try{c.callback(t)}catch(t){f.error(t)}}),this.patterns.length>0){if(!s.message){f.warn("Cannot perform pattern matching without a message key");return}var p=s.message;this.patterns.forEach(function(a){var s=p.match(a.pattern);if(s){var c=__read(s).slice(1),g=__assign(__assign({},t),{patternInfo:c});try{a.callback(g)}catch(t){f.error(t)}}})}},HubClass}())("__default__")},59222:function(t,a,s){"use strict";s.d(a,{JS:function(){return p},ML:function(){return makeQuerablePromise},lC:function(){return browserOrNode}});var c=s(83454),f=[{type:"text/plain",ext:"txt"},{type:"text/html",ext:"html"},{type:"text/javascript",ext:"js"},{type:"text/css",ext:"css"},{type:"text/csv",ext:"csv"},{type:"text/yaml",ext:"yml"},{type:"text/yaml",ext:"yaml"},{type:"text/calendar",ext:"ics"},{type:"text/calendar",ext:"ical"},{type:"image/apng",ext:"apng"},{type:"image/bmp",ext:"bmp"},{type:"image/gif",ext:"gif"},{type:"image/x-icon",ext:"ico"},{type:"image/x-icon",ext:"cur"},{type:"image/jpeg",ext:"jpg"},{type:"image/jpeg",ext:"jpeg"},{type:"image/jpeg",ext:"jfif"},{type:"image/jpeg",ext:"pjp"},{type:"image/jpeg",ext:"pjpeg"},{type:"image/png",ext:"png"},{type:"image/svg+xml",ext:"svg"},{type:"image/tiff",ext:"tif"},{type:"image/tiff",ext:"tiff"},{type:"image/webp",ext:"webp"},{type:"application/json",ext:"json"},{type:"application/xml",ext:"xml"},{type:"application/x-sh",ext:"sh"},{type:"application/zip",ext:"zip"},{type:"application/x-rar-compressed",ext:"rar"},{type:"application/x-tar",ext:"tar"},{type:"application/x-bzip",ext:"bz"},{type:"application/x-bzip2",ext:"bz2"},{type:"application/pdf",ext:"pdf"},{type:"application/java-archive",ext:"jar"},{type:"application/msword",ext:"doc"},{type:"application/vnd.ms-excel",ext:"xls"},{type:"application/vnd.ms-excel",ext:"xlsx"},{type:"message/rfc822",ext:"eml"}],isEmpty=function(t){return void 0===t&&(t={}),0===Object.keys(t).length},sortByField=function(t,a,s){if(!t||!t.sort)return!1;var c=s&&"desc"===s?-1:1;return t.sort(function(t,s){var f=t[a],p=s[a];return void 0===p?void 0===f?0:1*c:void 0===f||f<p?-1*c:f>p?1*c:0}),!0},objectLessAttributes=function(t,a){var s=Object.assign({},t);return a&&("string"==typeof a?delete s[a]:a.forEach(function(t){delete s[t]})),s},filenameToContentType=function(t,a){void 0===a&&(a="application/octet-stream");var s=t.toLowerCase(),c=f.filter(function(t){return s.endsWith("."+t.ext)});return c.length>0?c[0].type:a},isTextFile=function(t){var a=t.toLowerCase();return!!a.startsWith("text/")||"application/json"===a||"application/xml"===a||"application/sh"===a},generateRandomString=function(){for(var t="",a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ",s=32;s>0;s-=1)t+=a[Math.floor(Math.random()*a.length)];return t},makeQuerablePromise=function(t){if(t.isResolved)return t;var a=!0,s=!1,c=!1,f=t.then(function(t){return c=!0,a=!1,t},function(t){throw s=!0,a=!1,t});return f.isFullfilled=function(){return c},f.isPending=function(){return a},f.isRejected=function(){return s},f},isWebWorker=function(){if("undefined"==typeof self)return!1;var t=self;return void 0!==t.WorkerGlobalScope&&self instanceof t.WorkerGlobalScope},browserOrNode=function(){return{isBrowser:"undefined"!=typeof window&&void 0!==window.document,isNode:void 0!==c&&null!=c.versions&&null!=c.versions.node}},transferKeyToLowerCase=function(t,a,s){if(void 0===a&&(a=[]),void 0===s&&(s=[]),!isStrictObject(t))return t;var c={};for(var f in t)t.hasOwnProperty(f)&&(c[a.includes(f)?f:f[0].toLowerCase()+f.slice(1)]=s.includes(f)?t[f]:transferKeyToLowerCase(t[f],a,s));return c},transferKeyToUpperCase=function(t,a,s){if(void 0===a&&(a=[]),void 0===s&&(s=[]),!isStrictObject(t))return t;var c={};for(var f in t)t.hasOwnProperty(f)&&(c[a.includes(f)?f:f[0].toUpperCase()+f.slice(1)]=s.includes(f)?t[f]:transferKeyToUpperCase(t[f],a,s));return c},isStrictObject=function(t){return t instanceof Object&&!(t instanceof Array)&&!(t instanceof Function)&&!(t instanceof Number)&&!(t instanceof String)&&!(t instanceof Boolean)},p=function(){function JS(){}return JS.isEmpty=isEmpty,JS.sortByField=sortByField,JS.objectLessAttributes=objectLessAttributes,JS.filenameToContentType=filenameToContentType,JS.isTextFile=isTextFile,JS.generateRandomString=generateRandomString,JS.makeQuerablePromise=makeQuerablePromise,JS.isWebWorker=isWebWorker,JS.browserOrNode=browserOrNode,JS.transferKeyToLowerCase=transferKeyToLowerCase,JS.transferKeyToUpperCase=transferKeyToUpperCase,JS.isStrictObject=isStrictObject,JS}()},35069:function(t,a,s){"use strict";s.d(a,{k:function(){return f}});var __read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},__spread=function(){for(var t=[],a=0;a<arguments.length;a++)t=t.concat(__read(arguments[a]));return t},c={VERBOSE:1,DEBUG:2,INFO:3,WARN:4,ERROR:5},f=function(){function ConsoleLogger(t,a){void 0===a&&(a="WARN"),this.name=t,this.level=a}return ConsoleLogger.prototype._padding=function(t){return t<10?"0"+t:""+t},ConsoleLogger.prototype._ts=function(){var t=new Date;return[this._padding(t.getMinutes()),this._padding(t.getSeconds())].join(":")+"."+t.getMilliseconds()},ConsoleLogger.prototype._log=function(t){for(var a=[],s=1;s<arguments.length;s++)a[s-1]=arguments[s];var f=this.level;ConsoleLogger.LOG_LEVEL&&(f=ConsoleLogger.LOG_LEVEL),"undefined"!=typeof window&&window.LOG_LEVEL&&(f=window.LOG_LEVEL);var p=c[f];if(c[t]>=p){var g=console.log.bind(console);"ERROR"===t&&console.error&&(g=console.error.bind(console)),"WARN"===t&&console.warn&&(g=console.warn.bind(console));var m="["+t+"] "+this._ts()+" "+this.name;if(1===a.length&&"string"==typeof a[0])g(m+" - "+a[0]);else if(1===a.length)g(m,a[0]);else if("string"==typeof a[0]){var v=a.slice(1);1===v.length&&(v=v[0]),g(m+" - "+a[0],v)}else g(m,a)}},ConsoleLogger.prototype.log=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];this._log.apply(this,__spread(["INFO"],t))},ConsoleLogger.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];this._log.apply(this,__spread(["INFO"],t))},ConsoleLogger.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];this._log.apply(this,__spread(["WARN"],t))},ConsoleLogger.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];this._log.apply(this,__spread(["ERROR"],t))},ConsoleLogger.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];this._log.apply(this,__spread(["DEBUG"],t))},ConsoleLogger.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];this._log.apply(this,__spread(["VERBOSE"],t))},ConsoleLogger.LOG_LEVEL=null,ConsoleLogger}()},85389:function(t,a,s){"use strict";s.d(a,{_b:function(){return f}});var c=new(s(35069)).k("Parser"),parseMobileHubConfig=function(t){var a,s={};if(t.aws_mobile_analytics_app_id){var f={AWSPinpoint:{appId:t.aws_mobile_analytics_app_id,region:t.aws_mobile_analytics_app_region}};s.Analytics=f}return(t.aws_cognito_identity_pool_id||t.aws_user_pools_id)&&(s.Auth={userPoolId:t.aws_user_pools_id,userPoolWebClientId:t.aws_user_pools_web_client_id,region:t.aws_cognito_regi
1on,identityPoolId:t.aws_cognito_identity_pool_id,identityPoolRegion:t.aws_cognito_region,mandatorySignIn:"enable"===t.aws_mandatory_sign_in}),a=t.aws_user_files_s3_bucket?{AWSS3:{bucket:t.aws_user_files_s3_bucket,region:t.aws_user_files_s3_bucket_region,dangerouslyConnectToHttpEndpointForTesting:t.aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing}}:t?t.Storage||t:{},s.Analytics=Object.assign({},s.Analytics,t.Analytics),s.Auth=Object.assign({},s.Auth,t.Auth),s.Storage=Object.assign({},a),c.debug("parse config",t,"to amplifyconfig",s),s},f=function(){function Parser(){}return Parser.parseMobilehubConfig=parseMobileHubConfig,Parser}()},92752:function(t,a,s){"use strict";s.d(a,{t4:function(){return f},Zm:function(){return getAmplifyUserAgent}});var c="aws-amplify/3.8.23",f={userAgent:c+" js",product:"",navigator:null,isReactNative:!1};"undefined"!=typeof navigator&&navigator.product&&((f.product=navigator.product||"",f.navigator=navigator||null,"ReactNative"===navigator.product)?(f.userAgent=c+" react-native",f.isReactNative=!0):(f.userAgent=c+" js",f.isReactNative=!1));var getAmplifyUserAgent=function(){return f.userAgent}},90633:function(t,a,s){"use strict";s.d(a,{E:function(){return _}});var c=s(35069),f=s(36051),p=s(25644),g=s(11987),m=s(74018),__assign=function(){return(__assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},__rest=function(t,a){var s={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(s[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var f=0,c=Object.getOwnPropertySymbols(t);f<c.length;f++)0>a.indexOf(c[f])&&Object.prototype.propertyIsEnumerable.call(t,c[f])&&(s[c[f]]=t[c[f]]);return s},v=new c.k("Signer"),y="AWS4-HMAC-SHA256",encrypt=function(t,a){var s=new f.Sha256(t);return s.update(a),s.digestSync()},hash=function(t){var a=t||"",s=new f.Sha256;return s.update(a),(0,p.N)(s.digestSync())},signed_headers=function(t){return Object.keys(t).map(function(t){return t.toLowerCase()}).sort().join(";")},canonical_request=function(t){var a,s,c=(0,g.parse)(t.url);return[t.method||"/",encodeURIComponent(c.pathname).replace(/%2F/gi,"/"),(a=c.query)&&0!==a.length?a.split("&").map(function(t){var a=t.split("=");if(1===a.length)return t;var s=a[1].replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()});return a[0]+"="+s}).sort(function(t,a){var s=t.split("=")[0],c=a.split("=")[0];return s===c?t<a?-1:1:s<c?-1:1}).join("&"):"",(s=t.headers)&&0!==Object.keys(s).length?Object.keys(s).map(function(t){return{key:t.toLowerCase(),value:s[t]?s[t].trim().replace(/\s+/g," "):""}}).sort(function(t,a){return t.key<a.key?-1:1}).map(function(t){return t.key+":"+t.value}).join("\n")+"\n":"",signed_headers(t.headers),hash(t.data)].join("\n")},parse_service_info=function(t){var a=((0,g.parse)(t.url).host.match(/([^\.]+)\.(?:([^\.]*)\.)?amazonaws\.com$/)||[]).slice(1,3);return"es"===a[1]&&(a=a.reverse()),{service:t.service||a[0],region:t.region||a[1]}},credential_scope=function(t,a,s){return[t,a,s,"aws4_request"].join("/")},string_to_sign=function(t,a,s,c){return[t,s,c,hash(a)].join("\n")},get_signing_key=function(t,a,s){v.debug(s);var c=encrypt("AWS4"+t,a),f=encrypt(c,s.region),p=encrypt(f,s.service);return encrypt(p,"aws4_request")},get_signature=function(t,a){return(0,p.N)(encrypt(t,a))},_=function(){function Signer(){}return Signer.sign=function(t,a,s){void 0===s&&(s=null),t.headers=t.headers||{};var c=m.E.getDateWithClockOffset().toISOString().replace(/[:\-]|\.\d{3}/g,""),f=c.substr(0,8),p=(0,g.parse)(t.url);t.headers.host=p.host,t.headers["x-amz-date"]=c,a.session_token&&(t.headers["X-Amz-Security-Token"]=a.session_token);var _=canonical_request(t);v.debug(_);var b=s||parse_service_info(t),S=credential_scope(f,b.region,b.service),w=string_to_sign(y,_,c,S),C=get_signature(get_signing_key(a.secret_key,f,b),w),E=[y+" Credential="+a.access_key+"/"+S,"SignedHeaders="+signed_headers(t.headers),"Signature="+C].join(", ");return t.headers.Authorization=E,t},Signer.signUrl=function(t,a,s,c){var f="object"==typeof t?t.url:t,p="object"==typeof t?t.method:"GET",v="object"==typeof t?t.body:void 0,_=m.E.getDateWithClockOffset().toISOString().replace(/[:\-]|\.\d{3}/g,""),b=_.substr(0,8),S=(0,g.parse)(f,!0,!0),w=(S.search,__rest(S,["search"])),C={host:w.host},E=s||parse_service_info({url:(0,g.format)(w)}),x=E.region,P=E.service,I=credential_scope(b,x,P),T=a.session_token&&"iotdevicegateway"!==P,k=__assign(__assign(__assign({"X-Amz-Algorithm":y,"X-Amz-Credential":[a.access_key,I].join("/"),"X-Amz-Date":_.substr(0,16)},T?{"X-Amz-Security-Token":""+a.session_token}:{}),c?{"X-Amz-Expires":""+c}:{}),{"X-Amz-SignedHeaders":Object.keys(C).join(",")}),O=string_to_sign(y,canonical_request({method:p,url:(0,g.format)(__assign(__assign({},w),{query:__assign(__assign({},w.query),k)})),headers:C,data:v}),_,I),R=get_signature(get_signing_key(a.secret_key,b,{region:x,service:P}),O),M=__assign({"X-Amz-Signature":R},a.session_token&&{"X-Amz-Security-Token":a.session_token});return(0,g.format)({protocol:w.protocol,slashes:!0,hostname:w.hostname,port:w.port,pathname:w.pathname,query:__assign(__assign(__assign({},w.query),k),M)})},Signer}()},6648:function(t,a,s){"use strict";s.d(a,{c4:function(){return p}});var c={},f=function(){function MemoryStorage(){}return MemoryStorage.setItem=function(t,a){return c[t]=a,c[t]},MemoryStorage.getItem=function(t){return Object.prototype.hasOwnProperty.call(c,t)?c[t]:void 0},MemoryStorage.removeItem=function(t){return delete c[t]},MemoryStorage.clear=function(){return c={}},MemoryStorage}(),p=function(){function StorageHelper(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.amplify.test-ls",1),this.storageWindow.removeItem("aws.amplify.test-ls")}catch(t){this.storageWindow=f}}return StorageHelper.prototype.getStorage=function(){return this.storageWindow},StorageHelper}()},74018:function(t,a,s){"use strict";s.d(a,{E:function(){return c}});var __read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},c={clockOffset:0,getDateWithClockOffset:function(){return c.clockOffset?new Date(new Date().getTime()+c.clockOffset):new Date},getClockOffset:function(){return c.clockOffset},getHeaderStringFromDate:function(t){return void 0===t&&(t=c.getDateWithClockOffset()),t.toISOString().replace(/[:\-]|\.\d{3}/g,"")},getDateFromHeaderString:function(t){var a=__read(t.match(/^(\d{4})(\d{2})(\d{2})T(\d{2})(\d{2})(\d{2}).+/),7),s=a[1],c=a[2],f=a[3],p=a[4],g=a[5],m=a[6];return new Date(Date.UTC(Number(s),Number(c)-1,Number(f),Number(p),Number(g),Number(m)))},isClockSkewed:function(t){return Math.abs(t.getTime()-c.getDateWithClockOffset().getTime())>=3e5},isClockSkewError:function(t){if(!t.response||!t.response.headers)return!1;var a=t.response.headers;return!!("BadRequestException"===a["x-amzn-errortype"]&&(a.date||a.Date))},setClockOffset:function(t){c.clockOffset=t}}},7262:function(t,a,s){"use strict";s.d(a,{V2:function(){return m},Xm:function(){return jitteredExponentialRetry}});
1var c,f=s(35069),p=(c=function(t,a){return(c=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])})(t,a)},function(t,a){function __(){this.constructor=t}c(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}),__generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},__read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},__spread=function(){for(var t=[],a=0;a<arguments.length;a++)t=t.concat(__read(arguments[a]));return t},g=new f.k("Util"),m=function(t){function NonRetryableError(a){var s=t.call(this,a)||this;return s.nonRetryable=!0,s}return p(NonRetryableError,t),NonRetryableError}(Error),jitteredExponentialRetry=function(t,a,s){var c;return void 0===s&&(s=3e5),function retry(t,a,s,c){var f,p,m,v;return void 0===c&&(c=1),f=this,p=void 0,m=void 0,v=function(){var f,p;return __generator(this,function(m){switch(m.label){case 0:if("function"!=typeof t)throw Error("functionToRetry must be a function");g.debug(t.name+" attempt #"+c+" with this vars: "+JSON.stringify(a)),m.label=1;case 1:return m.trys.push([1,3,,8]),[4,t.apply(void 0,__spread(a))];case 2:case 5:return[2,m.sent()];case 3:var v;if(f=m.sent(),g.debug("error on "+t.name,f),(v=f)&&v.nonRetryable)throw g.debug(t.name+" non retryable error",f),f;if(p=s(c,a,f),g.debug(t.name+" retrying in "+p+" ms"),!(!1!==p))return[3,6];return[4,new Promise(function(t){return setTimeout(t,p)})];case 4:return m.sent(),[4,retry(t,a,s,c+1)];case 6:throw f;case 7:return[3,8];case 8:return[2]}})},new(m||(m=Promise))(function(t,a){function fulfilled(t){try{step(v.next(t))}catch(t){a(t)}}function rejected(t){try{step(v.throw(t))}catch(t){a(t)}}function step(a){var s;a.done?t(a.value):((s=a.value)instanceof m?s:new m(function(t){t(s)})).then(fulfilled,rejected)}step((v=v.apply(f,p||[])).next())})}(t,a,(c=s,function(t){var a=100*Math.pow(2,t)+100*Math.random();return!(a>c)&&a}))}},41774:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=s(91888),f=function(){function RawSha256(){this.state=Int32Array.from(c.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return RawSha256.prototype.update=function(t){if(this.finished)throw Error("Attempted to update an already finished hash.");var a=0,s=t.byteLength;if(this.bytesHashed+=s,8*this.bytesHashed>c.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=t[a++],s--,this.bufferLength===c.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},RawSha256.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,a=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(a.setUint8(this.bufferLength++,128),s%c.BLOCK_SIZE>=c.BLOCK_SIZE-8){for(var f=this.bufferLength;f<c.BLOCK_SIZE;f++)a.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(var f=this.bufferLength;f<c.BLOCK_SIZE-8;f++)a.setUint8(f,0);a.setUint32(c.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),a.setUint32(c.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}for(var p=new Uint8Array(c.DIGEST_LENGTH),f=0;f<8;f++)p[4*f]=this.state[f]>>>24&255,p[4*f+1]=this.state[f]>>>16&255,p[4*f+2]=this.state[f]>>>8&255,p[4*f+3]=this.state[f]>>>0&255;return p},RawSha256.prototype.hashBuffer=function(){for(var t=this.buffer,a=this.state,s=a[0],f=a[1],p=a[2],g=a[3],m=a[4],v=a[5],y=a[6],_=a[7],b=0;b<c.BLOCK_SIZE;b++){if(b<16)this.temp[b]=(255&t[4*b])<<24|(255&t[4*b+1])<<16|(255&t[4*b+2])<<8|255&t[4*b+3];else{var S=this.temp[b-2],w=(S>>>17|S<<15)^(S>>>19|S<<13)^S>>>10,C=((S=this.temp[b-15])>>>7|S<<25)^(S>>>18|S<<14)^S>>>3;this.temp[b]=(w+this.temp[b-7]|0)+(C+this.temp[b-16]|0)}var E=(((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&v^~m&y)|0)+(_+(c.KEY[b]+this.temp[b]|0)|0)|0,x=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&f^s&p^f&p)|0;_=y,y=v,v=m,m=g+E|0,g=p,p=f,f=s,s=E+x|0}a[0]+=s,a[1]+=f,a[2]+=p,a[3]+=g,a[4]+=m,a[5]+=v,a[6]+=y,a[7]+=_},RawSha256}();a.RawSha256=f}
1,91888:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.BLOCK_SIZE=64,a.DIGEST_LENGTH=32,a.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),a.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a.MAX_HASHABLE_LENGTH=9007199254740991},36051:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),s(70655).__exportStar(s(78036),a)},78036:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=s(70655),f=s(91888),p=s(41774),g=s(24172),m=function(){function Sha256(t){if(this.hash=new p.RawSha256,t){this.outer=new p.RawSha256;var a=function(t){var a=convertToBuffer(t);if(a.byteLength>f.BLOCK_SIZE){var s=new p.RawSha256;s.update(a),a=s.digest()}var c=new Uint8Array(f.BLOCK_SIZE);return c.set(a),c}(t),s=new Uint8Array(f.BLOCK_SIZE);s.set(a);for(var c=0;c<f.BLOCK_SIZE;c++)a[c]^=54,s[c]^=92;this.hash.update(a),this.outer.update(s);for(var c=0;c<a.byteLength;c++)a[c]=0}}return Sha256.prototype.update=function(t){if(!("string"==typeof t?0===t.length:0===t.byteLength)&&!this.error)try{this.hash.update(convertToBuffer(t))}catch(t){this.error=t}},Sha256.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},Sha256.prototype.digest=function(){return c.__awaiter(this,void 0,void 0,function(){return c.__generator(this,function(t){return[2,this.digestSync()]})})},Sha256}();function convertToBuffer(t){return"string"==typeof t?g.fromUtf8(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}a.Sha256=m},24172:function(t,a,s){"use strict";s.r(a),s.d(a,{fromUtf8:function(){return es_fromUtf8},toUtf8:function(){return es_toUtf8}});var fromUtf8=function(t){for(var a=[],s=0,c=t.length;s<c;s++){var f=t.charCodeAt(s);if(f<128)a.push(f);else if(f<2048)a.push(f>>6|192,63&f|128);else if(s+1<t.length&&(64512&f)==55296&&(64512&t.charCodeAt(s+1))==56320){var p=65536+((1023&f)<<10)+(1023&t.charCodeAt(++s));a.push(p>>18|240,p>>12&63|128,p>>6&63|128,63&p|128)}else a.push(f>>12|224,f>>6&63|128,63&f|128)}return Uint8Array.from(a)},toUtf8=function(t){for(var a="",s=0,c=t.length;s<c;s++){var f=t[s];f<128?a+=String.fromCharCode(f):192<=f&&f<224?a+=String.fromCharCode((31&f)<<6|63&t[++s]):240<=f&&f<365?a+=decodeURIComponent("%"+[f,t[++s],t[++s],t[++s]].map(function(t){return t.toString(16)}).join("%")):a+=String.fromCharCode((15&f)<<12|(63&t[++s])<<6|63&t[++s])}return a},es_fromUtf8=function(t){return"function"==typeof TextEncoder?new TextEncoder().encode(t):fromUtf8(t)},es_toUtf8=function(t){return"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(t):toUtf8(t)}},11964:function(t,a,s){t.exports=s(22751)},74509:function(t,a,s){"use strict";var c=s(98163),f=s(5979),p=s(14118),g=s(32299),m=s(4832),v=s(77190),y=s(55675),_=s(29667);t.exports=function(t){return new Promise(function(a,s){var b=t.data,S=t.headers;c.isFormData(b)&&delete S["Content-Type"];var w=new XMLHttpRequest;if(t.auth){var C=t.auth.username||"",E=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";S.Authorization="Basic "+btoa(C+":"+E)}var x=m(t.baseURL,t.url);if(w.open(t.method.toUpperCase(),g(x,t.params,t.paramsSerializer),!0),w.timeout=t.timeout,w.onreadystatechange=function(){if(w&&4===w.readyState&&(0!==w.status||w.responseURL&&0===w.responseURL.indexOf("file:"))){var c="getAllResponseHeaders"in w?v(w.getAllResponseHeaders()):null;f(a,s,{data:t.responseType&&"text"!==t.responseType?w.response:w.responseText,status:w.status,statusText:w.statusText,headers:c,config:t,request:w}),w=null}},w.onabort=function(){w&&(s(_("Request aborted",t,"ECONNABORTED",w)),w=null)},w.onerror=function(){s(_("Network Error",t,null,w)),w=null},w.ontimeout=function(){var a="timeout of "+t.timeout+"ms exceeded";t.timeoutErrorMessage&&(a=t.timeoutErrorMessage),s(_(a,t,"ECONNABORTED",w)),w=null},c.isStandardBrowserEnv()){var P=(t.withCredentials||y(x))&&t.xsrfCookieName?p.read(t.xsrfCookieName):void 0;P&&(S[t.xsrfHeaderName]=P)}
vendor: 4,415 bytes, line 1
1if("setRequestHeader"in w&&c.forEach(S,function(t,a){void 0===b&&"content-type"===a.toLowerCase()?delete S[a]:w.setRequestHeader(a,t)}),c.isUndefined(t.withCredentials)||(w.withCredentials=!!t.withCredentials),t.responseType)try{w.responseType=t.responseType}catch(a){if("json"!==t.responseType)throw a}"function"==typeof t.onDownloadProgress&&w.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&w.upload&&w.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){w&&(w.abort(),s(t),w=null)}),b||(b=null),w.send(b)})}},22751:function(t,a,s){"use strict";var c=s(98163),f=s(19356),p=s(49195),g=s(78666);function createInstance(t){var a=new p(t),s=f(p.prototype.request,a);return c.extend(s,p.prototype,a),c.extend(s,a),s}var m=createInstance(s(25537));m.Axios=p,m.create=function(t){return createInstance(g(m.defaults,t))},m.Cancel=s(71213),m.CancelToken=s(75926),m.isCancel=s(20609),m.all=function(t){return Promise.all(t)},m.spread=s(23183),m.isAxiosError=s(52085),t.exports=m,t.exports.default=m},71213:function(t){"use strict";function Cancel(t){this.message=t}Cancel.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},Cancel.prototype.__CANCEL__=!0,t.exports=Cancel},75926:function(t,a,s){"use strict";var c=s(71213);function CancelToken(t){if("function"!=typeof t)throw TypeError("executor must be a function.");this.promise=new Promise(function(t){a=t});var a,s=this;t(function(t){s.reason||(s.reason=new c(t),a(s.reason))})}CancelToken.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},CancelToken.source=function(){var t;return{token:new CancelToken(function(a){t=a}),cancel:t}},t.exports=CancelToken},20609:function(t){"use strict";t.exports=function(t){return!!(t&&t.__CANCEL__)}},49195:function(t,a,s){"use strict";var c=s(98163),f=s(32299),p=s(13261),g=s(26179),m=s(78666);function Axios(t){this.defaults=t,this.interceptors={request:new p,response:new p}}Axios.prototype.request=function(t){"string"==typeof t?(t=arguments[1]||{},t.url=arguments[0]):t=t||{},(t=m(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var a=[g,void 0],s=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){a.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){a.push(t.fulfilled,t.rejected)});a.length;)s=s.then(a.shift(),a.shift());return s},Axios.prototype.getUri=function(t){return f((t=m(this.defaults,t)).url,t.params,t.paramsSerializer).replace(/^\?/,"")},c.forEach(["delete","get","head","options"],function(t){Axios.prototype[t]=function(a,s){return this.request(m(s||{},{method:t,url:a,data:(s||{}).data}))}}),c.forEach(["post","put","patch"],function(t){Axios.prototype[t]=function(a,s,c){return this.request(m(c||{},{method:t,url:a,data:s}))}}),t.exports=Axios},13261:function(t,a,s){"use strict";var c=s(98163);function InterceptorManager(){this.handlers=[]}InterceptorManager.prototype.use=function(t,a){return this.handlers.push({fulfilled:t,rejected:a}),this.handlers.length-1},InterceptorManager.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},InterceptorManager.prototype.forEach=function(t){c.forEach(this.handlers,function(a){null!==a&&t(a)})},t.exports=InterceptorManager},4832:function(t,a,s){"use strict";var c=s(28441),f=s(26953);t.exports=function(t,a){return t&&!c(a)?f(t,a):a}},29667:function(t,a,s){"use strict";var c=s(60318);t.exports=function(t,a,s,f,p){return c(Error(t),a,s,f,p)}},26179:function(t,a,s){"use strict";var c=s(98163),f=s(75222),p=s(20609),g=s(25537);function throwIfCancellationRequested(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(t){return throwIfCancellationRequested(t),t.headers=t.headers||{},t.data=f(t.data,t.headers,t.transformRequest),t.headers=c.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),c.forEach(["delete","get","head","post","put","patch","common"],function(a){delete t.headers[a]}),(t.adapter||g.adapter)(t).then(function(a){return throwIfCancellationRequested(t),a.data=f(a.data,a.headers,t.transformResponse),a},function(a){return!p(a)&&(throwIfCancellationRequested(t),a&&a.response&&(a.response.data=f(a.response.data,a.response.headers,t.transformResponse))),Promise.reject(a)})}},60318:function(t){"use strict";
1t.exports=function(t,a,s,c,f){return t.config=a,s&&(t.code=s),t.request=c,t.response=f,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},t}},78666:function(t,a,s){"use strict";var c=s(98163);t.exports=function(t,a){a=a||{};var s={},f=["url","method","data"],p=["headers","auth","proxy","params"],g=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],m=["validateStatus"];function getMergedValue(t,a){return c.isPlainObject(t)&&c.isPlainObject(a)?c.merge(t,a):c.isPlainObject(a)?c.merge({},a):c.isArray(a)?a.slice():a}function mergeDeepProperties(f){c.isUndefined(a[f])?c.isUndefined(t[f])||(s[f]=getMergedValue(void 0,t[f])):s[f]=getMergedValue(t[f],a[f])}c.forEach(f,function(t){c.isUndefined(a[t])||(s[t]=getMergedValue(void 0,a[t]))}),c.forEach(p,mergeDeepProperties),c.forEach(g,function(f){c.isUndefined(a[f])?c.isUndefined(t[f])||(s[f]=getMergedValue(void 0,t[f])):s[f]=getMergedValue(void 0,a[f])}),c.forEach(m,function(c){c in a?s[c]=getMergedValue(t[c],a[c]):c in t&&(s[c]=getMergedValue(void 0,t[c]))});var v=f.concat(p).concat(g).concat(m),y=Object.keys(t).concat(Object.keys(a)).filter(function(t){return -1===v.indexOf(t)});return c.forEach(y,mergeDeepProperties),s}},5979:function(t,a,s){"use strict";var c=s(29667);t.exports=function(t,a,s){var f=s.config.validateStatus;!s.status||!f||f(s.status)?t(s):a(c("Request failed with status code "+s.status,s.config,null,s.request,s))}},75222:function(t,a,s){"use strict";var c=s(98163);t.exports=function(t,a,s){return c.forEach(s,function(s){t=s(t,a)}),t}},25537:function(t,a,s){"use strict";var c,f=s(83454),p=s(98163),g=s(74604),m={"Content-Type":"application/x-www-form-urlencoded"};function setContentTypeIfUnset(t,a){!p.isUndefined(t)&&p.isUndefined(t["Content-Type"])&&(t["Content-Type"]=a)}var v={adapter:("undefined"!=typeof XMLHttpRequest?c=s(74509):void 0!==f&&"[object process]"===Object.prototype.toString.call(f)&&(c=s(74509)),c),transformRequest:[function(t,a){return(g(a,"Accept"),g(a,"Content-Type"),p.isFormData(t)||p.isArrayBuffer(t)||p.isBuffer(t)||p.isStream(t)||p.isFile(t)||p.isBlob(t))?t:p.isArrayBufferView(t)?t.buffer:p.isURLSearchParams(t)?(setContentTypeIfUnset(a,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):p.isObject(t)?(setContentTypeIfUnset(a,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300}};v.headers={common:{Accept:"application/json, text/plain, */*"}},p.forEach(["delete","get","head"],function(t){v.headers[t]={}}),p.forEach(["post","put","patch"],function(t){v.headers[t]=p.merge(m)}),t.exports=v},19356:function(t){"use strict";t.exports=function(t,a){return function(){for(var s=Array(arguments.length),c=0;c<s.length;c++)s[c]=arguments[c];return t.apply(a,s)}}},32299:function(t,a,s){"use strict";var c=s(98163);function encode(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,a,s){if(!a)return t;if(s)f=s(a);else if(c.isURLSearchParams(a))f=a.toString();else{var f,p=[];c.forEach(a,function(t,a){null!=t&&(c.isArray(t)?a+="[]":t=[t],c.forEach(t,function(t){c.isDate(t)?t=t.toISOString():c.isObject(t)&&(t=JSON.stringify(t)),p.push(encode(a)+"="+encode(t))}))}),f=p.join("&")}if(f){var g=t.indexOf("#");-1!==g&&(t=t.slice(0,g)),t+=(-1===t.indexOf("?")?"?":"&")+f}return t}},26953:function(t){"use strict";
vendor: 1,624 bytes, line 1
1t.exports=function(t,a){return a?t.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):t}},14118:function(t,a,s){"use strict";var c=s(98163);t.exports=c.isStandardBrowserEnv()?{write:function(t,a,s,f,p,g){var m=[];m.push(t+"="+encodeURIComponent(a)),c.isNumber(s)&&m.push("expires="+new Date(s).toGMTString()),c.isString(f)&&m.push("path="+f),c.isString(p)&&m.push("domain="+p),!0===g&&m.push("secure"),document.cookie=m.join("; ")},read:function(t){var a=document.cookie.match(RegExp("(^|;\\s*)("+t+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},28441:function(t){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},52085:function(t){"use strict";t.exports=function(t){return"object"==typeof t&&!0===t.isAxiosError}},55675:function(t,a,s){"use strict";var c=s(98163);t.exports=c.isStandardBrowserEnv()?function(){var t,a=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");function resolveURL(t){var c=t;return a&&(s.setAttribute("href",c),c=s.href),s.setAttribute("href",c),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:"/"===s.pathname.charAt(0)?s.pathname:"/"+s.pathname}}return t=resolveURL(window.location.href),function(a){var s=c.isString(a)?resolveURL(a):a;return s.protocol===t.protocol&&s.host===t.host}}():function(){return!0}},74604:function(t,a,s){"use strict";var c=s(98163);
1t.exports=function(t,a){c.forEach(t,function(s,c){c!==a&&c.toUpperCase()===a.toUpperCase()&&(t[a]=s,delete t[c])})}},77190:function(t,a,s){"use strict";var c=s(98163),f=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var a,s,p,g={};return t&&c.forEach(t.split("\n"),function(t){p=t.indexOf(":"),a=c.trim(t.substr(0,p)).toLowerCase(),s=c.trim(t.substr(p+1)),a&&!(g[a]&&f.indexOf(a)>=0)&&("set-cookie"===a?g[a]=(g[a]?g[a]:[]).concat([s]):g[a]=g[a]?g[a]+", "+s:s)}),g}},23183:function(t){"use strict";t.exports=function(t){return function(a){return t.apply(null,a)}}},98163:function(t,a,s){"use strict";var c=s(19356),f=Object.prototype.toString;function isArray(t){return"[object Array]"===f.call(t)}function isUndefined(t){return void 0===t}function isObject(t){return null!==t&&"object"==typeof t}function isPlainObject(t){if("[object Object]"!==f.call(t))return!1;var a=Object.getPrototypeOf(t);return null===a||a===Object.prototype}function isFunction(t){return"[object Function]"===f.call(t)}function forEach(t,a){if(null!=t){if("object"!=typeof t&&(t=[t]),isArray(t))for(var s=0,c=t.length;s<c;s++)a.call(null,t[s],s,t);else for(var f in t)Object.prototype.hasOwnProperty.call(t,f)&&a.call(null,t[f],f,t)}}t.exports={isArray:isArray,isArrayBuffer:function(t){return"[object ArrayBuffer]"===f.call(t)},isBuffer:function(t){return null!==t&&!isUndefined(t)&&null!==t.constructor&&!isUndefined(t.constructor)&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)},isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:isObject,isPlainObject:isPlainObject,isUndefined:isUndefined,isDate:function(t){return"[object Date]"===f.call(t)},isFile:function(t){return"[object File]"===f.call(t)},isBlob:function(t){return"[object Blob]"===f.call(t)},isFunction:isFunction,isStream:function(t){return isObject(t)&&isFunction(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:forEach,merge:function merge(){var t={};function assignValue(a,s){isPlainObject(t[s])&&isPlainObject(a)?t[s]=merge(t[s],a):isPlainObject(a)?t[s]=merge({},a):isArray(a)?t[s]=a.slice():t[s]=a}for(var a=0,s=arguments.length;a<s;a++)forEach(arguments[a],assignValue);return t},extend:function(t,a,s){return forEach(a,function(a,f){s&&"function"==typeof a?t[f]=c(a,s):t[f]=a}),t},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")},stripBOM:function(t){return 65279===t.charCodeAt(0)&&(t=t.slice(1)),t}}},55823:function(t){t.exports=function(t){var a={};function n(s){if(a[s])return a[s].exports;var c=a[s]={i:s,l:!1,exports:{}};return t[s].call(c.exports,c,c.exports,n),c.l=!0,c.exports}return n.m=t,n.c=a,n.d=function(t,a,s){n.o(t,a)||Object.defineProperty(t,a,{enumerable:!0,get:s})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,a){if(1&a&&(t=n(t)),8&a||4&a&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&a&&"string"!=typeof t)for(var c in t)n.d(s,c,(function(a){return t[a]}).bind(null,c));return s},n.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(a,"a",a),a},n.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},n.p="",n(n.s=0)}([function(t,a,s){"use strict";function o(t){for(var s in t)a.hasOwnProperty(s)||(a[s]=t[s])}Object.defineProperty(a,"__esModule",{value:!0}),o(s(1)),o(s(2)),o(s(3)),o(s(4)),o(s(5)),o(s(6)),o(s(7)),o(s(8)),o(s(9)),o(s(10)),o(s(11)),o(s(12)),o(s(13))},function(t,a,s){t.exports={a:"Anchor__a___1_Iz8"}},function(t,a,s){t.exports={button:"Button__button___vS7Mv",signInButton:"Button__signInButton___3bUH-",googleSignInButton:"Button__googleSignInButton___1YiCu",signInButtonIcon:"Button__signInButtonIcon___ihN75",auth0SignInButton:"Button__auth0SignInButton___znnCj",facebookSignInButton:"Button__facebookSignInButton___34Txh",amazonSignInButton:"Button__amazonSignInButton___2EMtl",oAuthSignInButton:"Button__oAuthSignInButton___3UGOl",signInButtonContent:"Button__signInButtonContent___xqTXJ"}},function(t,a,s){t.exports={formContainer:"Form__formContainer___1GA3x",formSection:"Form__formSection___1PPvW",formField:"Form__formField___38Ikl",formRow:"Form__formRow___2mwRs"}},function(t,a,s){t.exports={hint:"Hint__hint___2XngB"}},function(t,a,s){t.exports={input:"Input__input___3e_bf",inputLabel:"Input__inputLabel___3VF0S",label:"Input__label___23sO8",radio:"Input__radio___2hllK"}},function(t,a,s){t.exports={navBar:"Nav__navBar___xtCFA",navRight:"Nav__navRight___1QG2J",nav:"Nav__nav___2Dx2Y",navItem:"Nav__navItem___1LtFQ"}},function(t,a,s){t.exports={photoPickerButton:"PhotoPicker__photoPickerButton___2XdVn",photoPlaceholder:"PhotoPicker__photoPlaceholder___2JXO4",photoPlaceholderIcon:"PhotoPicker__photoPlaceholderIcon___3Et71"}},function(t,a,s){t.exports={container:"Section__container___3YYTG",actionRow:"Section__actionRow___2LWSU",sectionHeader:"Section__sectionHeader___2djyg",sectionHeaderHint:"Section__sectionHeaderHint___3Wxdc",sectionBody:"Section__sectionBody___ihqqd",sectionHeaderContent:"Section__sectionHeaderContent___1UCqa",sectionFooter:"Section__sectionFooter___1T54C",sectionFooterPrimaryContent:"Section__sectionFooterPrimaryContent___2r9ZX",sectionFooterSecondaryContent:"Section__sectionFooterSecondaryContent___Nj41Q"}},function(t,a,s){t.exports={selectInput:"SelectInput__selectInput___3efO4"}},function(t,a,s){t.exports={strike:"Strike__strike___1XV1b",strikeContent:"Strike__strikeContent___10gLb"}},function(t,a,s){t.exports={toast:"Toast__toast___XXr3v",toastClose:"Toast__toastClose___18lU4"}},function(t,a,s){t.exports={totpQrcode:"Totp__totpQrcode___1crLx"}},function(t,a,s){t.exports={sumerianSceneContainer:"XR__sumerianSceneContainer___3nVMt",sumerianScene:"XR__sumerianScene___2Tt7-",loadingOverlay:"XR__loadingOverlay___IbqcI",loadingContainer:"XR__loadingContainer___2Itxb",loadingLogo:"XR__loadingLogo___Ub7xQ",loadingSceneName:"XR__loadingSceneName___3__ne",loadingBar:"XR__loadingBar___2vcke",loadingBarFill:"XR__loadingBarFill___3M-D9",sceneErrorText:"XR__sceneErrorText___2y0tp",sce
1neBar:"XR__sceneBar___2ShrP",sceneName:"XR__sceneName___1ApHr",sceneActions:"XR__sceneActions___7plGs",actionButton:"XR__actionButton___2poIM",tooltip:"XR__tooltip___UYyhn",actionIcon:"XR__actionIcon___2qnd2",autoShowTooltip:"XR__autoShowTooltip___V1QH7"}}])},51446:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.AwsCrc32=void 0;var c=s(70655),f=s(17658),p=s(94079),g=function(){function AwsCrc32(){this.crc32=new p.Crc32}return AwsCrc32.prototype.update=function(t){(0,f.isEmptyData)(t)||this.crc32.update((0,f.convertToBuffer)(t))},AwsCrc32.prototype.digest=function(){return(0,c.__awaiter)(this,void 0,void 0,function(){return(0,c.__generator)(this,function(t){return[2,(0,f.numToUint8)(this.crc32.digest())]})})},AwsCrc32}();a.AwsCrc32=g},94079:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.AwsCrc32=a.Crc32=a.crc32=void 0;var c=s(70655),f=s(17658);a.crc32=function(t){return new p().update(t).digest()};var p=function(){function Crc32(){this.checksum=4294967295}return Crc32.prototype.update=function(t){var a,s;try{for(var f=(0,c.__values)(t),p=f.next();!p.done;p=f.next()){var m=p.value;this.checksum=this.checksum>>>8^g[(this.checksum^m)&255]}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}return this},Crc32.prototype.digest=function(){return(4294967295^this.checksum)>>>0},Crc32}();a.Crc32=p;var g=(0,f.uint32ArrayFrom)([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]),m=s(51446);Object.defineProperty(a,"AwsCrc32",{enumerable:!0,get:function(){return m.AwsCrc32}})},48260:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0})},16665:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0})},35470:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0})},30969:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0})},55287:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isMsWindow=void 0;var s=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];a.isMsWindow=function(t){if("MSInputMethodContext"in t&&"msCrypto"in t&&void 0!==t.msCrypto.subtle){var a=t.msCrypto,c=a.getRandomValues,f=a.subtle;return s.map(function(t){return f[t]}).concat(c).every(function(t){return"function"==typeof t})}return!1}},40087:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=s(70655);c.__exportStar(s(48260),a),c.__exportStar(s(16665),a),c.__exportStar(s(35470),a),c.__exportStar(s(30969),a),c.__exportStar(s(55287),a)},57333:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.EMPTY_DATA_SHA_256=a.SHA_256_HMAC_ALGO=a.SHA_256_HASH=void 0,a.SHA_256_HASH={name:"SHA-256"},a.SHA_256_HMAC_ALGO={name:"HMAC",hash:a.SHA_256_HASH},a.EMPTY_DATA_SHA_256=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85])},52769:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Sha256=void 0;var c=s(63479),f=s(38889),p=s(41938),g=s(21),m=s(40087),v=s(56495),y=function(){function Sha256(t){(0,g.supportsWebCrypto)((0,v.locateWindow)())?this.hash=new f.Sha256(t):(0,m.isMsWindow)((0,v.locateWindow)())?this.hash=new c.Sha256(t):this.hash=new p.Sha256(t)}return Sha256.prototype.update=function(t,a){this.hash.update(t,a)},Sha256.prototype.digest=function(){return this.hash.digest()},Sha256}();a.Sha256=y},63479:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Sha256=void 0;var c=s(38036),f=s(57333),p=s(20519),g=s(56495),m=function(){function Sha256(t){t?(this.operation=new Promise(function(a,s){var c=(0,g.locateWindow)().msCrypto.subtle.importKey("raw",toArrayBufferView(t),f.SHA_256_HMAC_ALGO,!1,["sign"]);c.oncomplete=function(){c.result&&a(c.result),s(Error("ImportKey completed without importing key."))},c.onerror=function(){s(Error("ImportKey failed to import key."))}}).then(function(t){return(0,g.locateWindow)().msCrypto.subtle.sign(f.SHA_256_HMAC_ALGO,t)}),this.operation.catch(function(){}
1)):this.operation=Promise.resolve((0,g.locateWindow)().msCrypto.subtle.digest("SHA-256"))}return Sha256.prototype.update=function(t){var a=this;(0,c.isEmptyData)(t)||(this.operation=this.operation.then(function(s){return s.onerror=function(){a.operation=Promise.reject(Error("Error encountered updating hash"))},s.process(toArrayBufferView(t)),s}),this.operation.catch(function(){}))},Sha256.prototype.digest=function(){return this.operation.then(function(t){return new Promise(function(a,s){t.onerror=function(){s(Error("Error encountered finalizing hash"))},t.oncomplete=function(){t.result&&a(new Uint8Array(t.result)),s(Error("Error encountered finalizing hash"))},t.finish()})})},Sha256}();function toArrayBufferView(t){return"string"==typeof t?(0,p.fromUtf8)(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}a.Sha256=m},77643:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.WebCryptoSha256=a.Ie11Sha256=void 0,(0,s(70655).__exportStar)(s(52769),a);var c=s(63479);Object.defineProperty(a,"Ie11Sha256",{enumerable:!0,get:function(){return c.Sha256}});var f=s(38889);Object.defineProperty(a,"WebCryptoSha256",{enumerable:!0,get:function(){return f.Sha256}})},38036:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isEmptyData=void 0,a.isEmptyData=function(t){return"string"==typeof t?0===t.length:0===t.byteLength}},38889:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Sha256=void 0;var c=s(17658),f=s(57333),p=s(56495),g=function(){function Sha256(t){this.toHash=new Uint8Array(0),void 0!==t&&(this.key=new Promise(function(a,s){(0,p.locateWindow)().crypto.subtle.importKey("raw",(0,c.convertToBuffer)(t),f.SHA_256_HMAC_ALGO,!1,["sign"]).then(a,s)}),this.key.catch(function(){}))}return Sha256.prototype.update=function(t){if(!(0,c.isEmptyData)(t)){var a=(0,c.convertToBuffer)(t),s=new Uint8Array(this.toHash.byteLength+a.byteLength);s.set(this.toHash,0),s.set(a,this.toHash.byteLength),this.toHash=s}},Sha256.prototype.digest=function(){var t=this;return this.key?this.key.then(function(a){return(0,p.locateWindow)().crypto.subtle.sign(f.SHA_256_HMAC_ALGO,a,t.toHash).then(function(t){return new Uint8Array(t)})}):(0,c.isEmptyData)(this.toHash)?Promise.resolve(f.EMPTY_DATA_SHA_256):Promise.resolve().then(function(){return(0,p.locateWindow)().crypto.subtle.digest(f.SHA_256_HASH,t.toHash)}).then(function(t){return Promise.resolve(new Uint8Array(t))})},Sha256}();a.Sha256=g},10914:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.RawSha256=void 0;var c=s(89945),f=function(){function RawSha256(){this.state=Int32Array.from(c.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return RawSha256.prototype.update=function(t){if(this.finished)throw Error("Attempted to update an already finished hash.");var a=0,s=t.byteLength;if(this.bytesHashed+=s,8*this.bytesHashed>c.MAX_HASHABLE_LENGTH)throw Error("Cannot hash more than 2^53 - 1 bits");for(;s>0;)this.buffer[this.bufferLength++]=t[a++],s--,this.bufferLength===c.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},RawSha256.prototype.digest=function(){if(!this.finished){var t=8*this.bytesHashed,a=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),s=this.bufferLength;if(a.setUint8(this.bufferLength++,128),s%c.BLOCK_SIZE>=c.BLOCK_SIZE-8){for(var f=this.bufferLength;f<c.BLOCK_SIZE;f++)a.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(var f=this.bufferLength;f<c.BLOCK_SIZE-8;f++)a.setUint8(f,0);a.setUint32(c.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),a.setUint32(c.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}for(var p=new Uint8Array(c.DIGEST_LENGTH),f=0;f<8;f++)p[4*f]=this.state[f]>>>24&255,p[4*f+1]=this.state[f]>>>16&255,p[4*f+2]=this.state[f]>>>8&255,p[4*f+3]=this.state[f]>>>0&255;return p},RawSha256.prototype.hashBuffer=function(){for(var t=this.buffer,a=this.state,s=a[0],f=a[1],p=a[2],g=a[3],m=a[4],v=a[5],y=a[6],_=a[7],b=0;b<c.BLOCK_SIZE;b++){if(b<16)this.temp[b]=(255&t[4*b])<<24|(255&t[4*b+1])<<16|(255&t[4*b+2])<<8|255&t[4*b+3];else{var S=this.temp[b-2],w=(S>>>17|S<<15)^(S>>>19|S<<13)^S>>>10,C=((S=this.temp[b-15])>>>7|S<<25)^(S>>>18|S<<14)^S>>>3;this.temp[b]=(w+this.temp[b-7]|0)+(C+this.temp[b-16]|0)}var E=(((m>>>6|m<<26)^(m>>>11|m<<21)^(m>>>25|m<<7))+(m&v^~m&y)|0)+(_+(c.KEY[b]+this.temp[b]|0)|0)|0,x=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&f^s&p^f&p)|0;_=y,y=v,v=m,m=g+E|0,g=p,p=f,f=s,s=E+x|0}a[0]+=s,a[1]+=f,a[2]+=p,a[3]+=g,a[4]+=m,a[5]+=v,a[6]+=y,a[7]+=_},RawSha256}();a.RawSha256=f},89945:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.MAX_HASHABLE_LENGTH=a.INIT=a.KEY=a.DIGEST_LENGTH=a.BLOCK_SIZE=void 0,a.BLOCK_SIZE=64,a.DIGEST_LENGTH=32,a.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
1734187,3204031479,3329325298]),a.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],a.MAX_HASHABLE_LENGTH=9007199254740991},41938:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),(0,s(70655).__exportStar)(s(65430),a)},65430:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.Sha256=void 0;var c=s(70655),f=s(89945),p=s(10914),g=s(17658),m=function(){function Sha256(t){if(this.hash=new p.RawSha256,t){this.outer=new p.RawSha256;var a=function(t){var a=(0,g.convertToBuffer)(t);if(a.byteLength>f.BLOCK_SIZE){var s=new p.RawSha256;s.update(a),a=s.digest()}var c=new Uint8Array(f.BLOCK_SIZE);return c.set(a),c}(t),s=new Uint8Array(f.BLOCK_SIZE);s.set(a);for(var c=0;c<f.BLOCK_SIZE;c++)a[c]^=54,s[c]^=92;this.hash.update(a),this.outer.update(s);for(var c=0;c<a.byteLength;c++)a[c]=0}}return Sha256.prototype.update=function(t){if(!(0,g.isEmptyData)(t)&&!this.error)try{this.hash.update((0,g.convertToBuffer)(t))}catch(t){this.error=t}},Sha256.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},Sha256.prototype.digest=function(){return(0,c.__awaiter)(this,void 0,void 0,function(){return(0,c.__generator)(this,function(t){return[2,this.digestSync()]})})},Sha256}();a.Sha256=m},21:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),s(70655).__exportStar(s(97787),a)},97787:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.supportsZeroByteGCM=a.supportsSubtleCrypto=a.supportsSecureRandom=a.supportsWebCrypto=void 0;var c=s(70655),f=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function supportsSecureRandom(t){return"object"==typeof t&&"object"==typeof t.crypto&&"function"==typeof t.crypto.getRandomValues}function supportsSubtleCrypto(t){return t&&f.every(function(a){return"function"==typeof t[a]})}a.supportsWebCrypto=function(t){return!!supportsSecureRandom(t)&&"object"==typeof t.crypto.subtle&&supportsSubtleCrypto(t.crypto.subtle)},a.supportsSecureRandom=supportsSecureRandom,a.supportsSubtleCrypto=supportsSubtleCrypto,a.supportsZeroByteGCM=function(t){return c.__awaiter(this,void 0,void 0,function(){var a;return c.__generator(this,function(s){switch(s.label){case 0:if(!supportsSubtleCrypto(t))return[2,!1];s.label=1;case 1:return s.trys.push([1,4,,5]),[4,t.generateKey({name:"AES-GCM",length:128},!1,["encrypt"])];case 2:return a=s.sent(),[4,t.encrypt({name:"AES-GCM",iv:new Uint8Array(Array(12)),additionalData:new Uint8Array(Array(16)),tagLength:128},a,new Uint8Array(0))];case 3:return[2,16===s.sent().byteLength];case 4:return s.sent(),[2,!1];case 5:return[2]}})})}},51106:function(t,a,s){"use strict";var c=s(48764).lW;Object.defineProperty(a,"__esModule",{value:!0}),a.convertToBuffer=void 0;var f=s(9355),p=void 0!==c&&c.from?function(t){return c.from(t,"utf8")}:f.fromUtf8;a.convertToBuffer=function(t){return t instanceof Uint8Array?t:"string"==typeof t?p(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t)}},17658:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.uint32ArrayFrom=a.numToUint8=a.isEmptyData=a.convertToBuffer=void 0;var c=s(51106);Object.defineProperty(a,"convertToBuffer",{enumerable:!0,get:function(){return c.convertToBuffer}});var f=s(84304);Object.defineProperty(a,"isEmptyData",{enumerable:!0,get:function(){return f.isEmptyData}});var p=s(22174);Object.defineProperty(a,"numToUint8",{enumerable:!0,get:function(){return p.numToUint8}});var g=s(81558);Object.defineProperty(a,"uint32ArrayFrom",{enumerable:!0,get:function(){return g.uint32ArrayFrom}})},84304:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.isEmptyData=void 0,a.isEmptyData=function(t){return"string"==typeof t?0===t.length:0===t.byteLength}},22174:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.numToUint8=void 0,a.numToUint8=function(t){return new Uint8Array([(4278190080&t)>>24,(16711680&t)>>16,(65280&t)>>8,255&t])}},81558:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.uint32ArrayFrom=void 0,a.uint32ArrayFrom=function(t){if(!Array.from){for(var a=new Uint32Array(t.length);0<t.length;)a[0]=t[0];return a}return Uint32Array.from(t)}},9355:function(t,a,s){"use strict";s.r(a),s.d(a,{fromUtf8:function(){return dist_es_fromUtf8},toUtf8:function(){return dist_es_toUtf8}});let fromUtf8=t=>{let a=[];for(let s=0,c=t.length;s<c;s++){let c=t.charCodeAt(s);if(c<128)a.push(c);else if(c<2048)a.push(c>>6|192,63&c|128);
1else if(s+1<t.length&&(64512&c)==55296&&(64512&t.charCodeAt(s+1))==56320){let f=65536+((1023&c)<<10)+(1023&t.charCodeAt(++s));a.push(f>>18|240,f>>12&63|128,f>>6&63|128,63&f|128)}else a.push(c>>12|224,c>>6&63|128,63&c|128)}return Uint8Array.from(a)},toUtf8=t=>{let a="";for(let s=0,c=t.length;s<c;s++){let c=t[s];if(c<128)a+=String.fromCharCode(c);else if(192<=c&&c<224){let f=t[++s];a+=String.fromCharCode((31&c)<<6|63&f)}else if(240<=c&&c<365){let f=[c,t[++s],t[++s],t[++s]],p="%"+f.map(t=>t.toString(16)).join("%");a+=decodeURIComponent(p)}else a+=String.fromCharCode((15&c)<<12|(63&t[++s])<<6|63&t[++s])}return a},dist_es_fromUtf8=t=>"function"==typeof TextEncoder?new TextEncoder().encode(t):fromUtf8(t),dist_es_toUtf8=t=>"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(t):toUtf8(t)},80428:function(t,a,s){"use strict";s.d(a,{g4:function(){return resolveEndpointsConfig},Xb:function(){return resolveRegionConfig}});var c=s(70655),resolveEndpointsConfig=function(t){var a;return(0,c.__assign)((0,c.__assign)({},t),{tls:null===(a=t.tls)||void 0===a||a,endpoint:t.endpoint?normalizeEndpoint(t):function(){return getEndPointFromRegion(t)},isCustomEndpoint:!!t.endpoint})},normalizeEndpoint=function(t){var a=t.endpoint,s=t.urlParser;if("string"==typeof a){var c=Promise.resolve(s(a));return function(){return c}}if("object"==typeof a){var f=Promise.resolve(a);return function(){return f}}return a},getEndPointFromRegion=function(t){return(0,c.__awaiter)(void 0,void 0,void 0,function(){var a,s,f,p,g;return(0,c.__generator)(this,function(c){switch(c.label){case 0:return s=void 0===(a=t.tls)||a,[4,t.region()];case 1:if(f=c.sent(),!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(f))throw Error("Invalid region in client config");return[4,t.regionInfoProvider(f)];case 2:if(!(p=(null!==(g=c.sent())&&void 0!==g?g:{}).hostname))throw Error("Cannot resolve hostname from client config");return[2,t.urlParser((s?"https:":"http:")+"//"+p)]}})})},resolveRegionConfig=function(t){if(!t.region)throw Error("Region is missing");return(0,c.__assign)((0,c.__assign)({},t),{region:normalizeRegion(t.region)})},normalizeRegion=function(t){if("string"==typeof t){var a=Promise.resolve(t);return function(){return a}}return t}},37691:function(t,a,s){"use strict";s.d(a,{B:function(){return g},C:function(){return streamCollector}});var c=s(70655),f=s(96877),p=s(39444),g=function(){function FetchHttpHandler(t){var a=(void 0===t?{}:t).requestTimeout;this.requestTimeout=a}return FetchHttpHandler.prototype.destroy=function(){},FetchHttpHandler.prototype.handle=function(t,a){var s,g=(void 0===a?{}:a).abortSignal,m=this.requestTimeout;if(null==g?void 0:g.aborted){var v=Error("Request aborted");return v.name="AbortError",Promise.reject(v)}var y=t.path;if(t.query){var _=(0,p.I)(t.query);_&&(y+="?"+_)}var b=t.port,S=t.method,w=t.protocol+"//"+t.hostname+(b?":"+b:"")+y,C={body:"GET"===S||"HEAD"===S?void 0:t.body,headers:new Headers(t.headers),method:S};"undefined"!=typeof AbortController&&(C.signal=g);var E=new Request(w,C),x=[fetch(E).then(function(t){var a,s,p=t.headers,g={};try{for(var m=(0,c.__values)(p.entries()),v=m.next();!v.done;v=m.next()){var y=v.value;g[y[0]]=y[1]}}catch(t){a={error:t}}finally{try{v&&!v.done&&(s=m.return)&&s.call(m)}finally{if(a)throw a.error}}return void 0!==t.body?{response:new f.Zn({headers:g,statusCode:t.status,body:t.body})}:t.blob().then(function(a){return{response:new f.Zn({headers:g,statusCode:t.status,body:a})}})}),(void 0===(s=m)&&(s=0),new Promise(function(t,a){s&&setTimeout(function(){var t=Error("Request did not complete within "+s+" ms");t.name="TimeoutError",a(t)},s)}))];return g&&x.push(new Promise(function(t,a){g.onabort=function(){var t=Error("Request aborted");t.name="AbortError",a(t)}})),Promise.race(x)},FetchHttpHandler}(),m=s(67157),streamCollector=function(t){return"function"==typeof Blob&&t instanceof Blob?function(t){return(0,c.__awaiter)(this,void 0,void 0,function(){var a,s;return(0,c.__generator)(this,function(c){switch(c.label){case 0:return[4,new Promise(function(a,s){var c=new FileReader;c.onloadend=function(){if(2!==c.readyState)return s(Error("Reader aborted too early"));var t,f=null!==(t=c.result)&&void 0!==t?t:"",p=f.indexOf(","),g=p>-1?p+1:f.length;a(f.substring(g))},c.onabort=function(){return s(Error("Read aborted"))},c.onerror=function(){return s(c.error)},c.readAsDataURL(t)})];case 1:return a=c.sent(),s=(0,m.G)(a),[2,new Uint8Array(s)]}})})}(t):function(t){return(0,c.__awaiter)(this,void 0,void 0,function(){var a,s,f,p,g,m,v;return(0,c.__generator)(this,function(c){switch(c.label){case 0:a=new Uint8Array(0),s=t.getReader(),f=!1,c.label=1;case 1:if(f)return[3,3];return[4,s.read()];case 2:return g=(p=c.sent()).done,(m=p.value)&&(v=a,(a=new Uint8Array(v.length+m.length)).set(v),a.set(m,v.length)),f=g,[3,1];case 3:return[2,a]}})})}(t)}},35749:function(t,a,s){"use strict";s.d(a,{n:function(){return invalidProvider}});var invalidProvider=function(t){return function(){return Promise.reject(t)}}},50672:function(t,a,s){"use strict";s.d(a,{VG:function(){return getContentLengthPlugin}});var c=s(70655),f=s(96877),p="content-length",g={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},getContentLengthPlugin=function(t){return{applyToStack:function(a){a.add(function(t){var a=this;return function(s){return function(g){return(0,c.__awaiter)(a,void 0,void 0,function(){var a,m,v,y,_;return(0,c.__generator)(this,function(b){return a=g.request,f.aW.isInstance(a)&&(m=a.body,v=a.headers,m&&-1===Object.keys(v).map(function(t){return t.toLowerCase()}).indexOf(p)&&void 0!==(y=t(m))&&(a.headers=(0,c.__assign)((0,c.__assign)({},a.headers),((_={})[p]=String(y),_)))),[2,s((0,c.__assign)((0,c.__assign)({},g),{request:a}))]})})}}}(t.bodyLengthChecker),g)}}}},43273:function(t,a,s){"use strict";s.d(a,{G2:function(){return getHostHeaderPlugin},S8:function(){return resolveHostHeaderConfig}});var c=s(70655),f=s(96877);function resolveHostHeaderConfig(t){return t}var p={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},getHostHeaderPlugin=function(t){return{applyToStack:function(a){a.add(function(a){return function(s){return(0,c.__awaiter)(void 0,void 0,void 0,function(){var p,g;return(0,c.__generator)(this,function(c){return f.aW.isInstance(s.request)&&(p=s.request,(void 0===(g=(t.requestHandler.metadata||{}).handlerProtocol)?"":g).indexOf("h2")>=0&&!p.headers[":authority"]?(delete p.headers.host,p.headers[":authority"]=""):p.headers.host||(p.headers.host=p.hostname)),[2,a(s)]})})}},p)}}}},70287:function(t,a,s){"use strict";s.d(a,{cV:function(){return getLoggerPlugin}});var c=s(70655),f={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},getLoggerPlugin=function(t){return{applyToStack:function(t){t.add(function(t,a){return function(s){return(0,c.__awaiter)(void 0,void 0,void 0,function(){var f,p,g,m,v,y,_,b,S;return(0,c.__generator)(this,function(w){switch(w.label){case 0:return f=a.clientName,p=a.commandName,g=a.inputFilterSensitiveLog,m=a.logger,v=a.outputFilterSensitiveLog,[4,t(s)];case 1:if(y=w.sent(),!m)return[2,y];return"function"==typeof m.info&&(b=(_=y.output).$metadata,S=(0,c.__rest)(_,["$metadata"]),m.info({clientName:f,commandName:p,input:g(s.input),output:v(S),metadata:b})),[2,y]}})})}},f)}}}},97845:function(t,a,s){"use strict";s.d(a,{J:function(){return b},NQ:function(){return getRetryPlugin},BC:function(){return resolveRetryConfig}});var c=s(70655),f={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},getRetryPlugin=function(t){return{applyToStack:function(a){a.add(function(a,s){return function(f){return(0,c.__awaiter)(void 0,void 0,void 0,function(){var p;return(0,c.__generator)(this,function(g){return(null===(p=null==t?void 0:t.retryStrategy)||void 0===p?void 0:p.mode)&&(s.userAgent=(0,c.__spread)(s.userAgent||[],[["cfg/retry-mode",t.retryStrategy.mode]])),[2,t.retryStrategy.retry(a,f)]})})}},f)}}},p=s(96877),g=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],m=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],v=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"],y=[500,502,503,504],isThrottlingError=function(t){var a,s;return(null===(a=t.$metadata)||void 0===a?void 0:a.httpStatusCode)===429||m.includes(t.name)||(null===(s=t.$retryable)||void 0===s?void 0:s.throttling)==!0},isTransientError=function(t){var a;return v.includes(t.name)||y.includes((null===(a=t.$metadata)||void 0===a?void 0:a.httpStatusCode)||0)},_=s(55877),getDefaultRetryQuota=function(t){var a=t,getCapacityAmount=function(t){return"TimeoutError"===t.name?10:5},hasRetryTokens=function(t){return getCapacityAmount(t)<=a};return Object.freeze({hasRetryTokens:hasRetryTokens,retrieveRetryTokens:function(t){if(!hasRetryTokens(t))throw Error("No retry token available");var s=getCapacityAmount(t);return a-=s,s},releaseRetryTokens:function(s){a+=null!=s?s:1,a=Math.min(a,t)}})},defaultDelayDecider=function(t,a){return Math.floor(Math.min(2e4,Math.random()*Math.pow(2,a)*t))},defaultRetryDecider=function(t){return!!t&&(void 0!==t.$retryable||g.includes(t.name)||isThrottlingError(t)||isTransientError(t))},b=3,S=function(){function StandardRetryStrategy(t,a){var s,c,f;
1this.maxAttemptsProvider=t,this.mode="standard",this.retryDecider=null!==(s=null==a?void 0:a.retryDecider)&&void 0!==s?s:defaultRetryDecider,this.delayDecider=null!==(c=null==a?void 0:a.delayDecider)&&void 0!==c?c:defaultDelayDecider,this.retryQuota=null!==(f=null==a?void 0:a.retryQuota)&&void 0!==f?f:getDefaultRetryQuota(500)}return StandardRetryStrategy.prototype.shouldRetry=function(t,a,s){return a<s&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)},StandardRetryStrategy.prototype.getMaxAttempts=function(){return(0,c.__awaiter)(this,void 0,void 0,function(){var t;return(0,c.__generator)(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.maxAttemptsProvider()];case 1:return t=a.sent(),[3,3];case 2:return a.sent(),t=b,[3,3];case 3:return[2,t]}})})},StandardRetryStrategy.prototype.retry=function(t,a){return(0,c.__awaiter)(this,void 0,void 0,function(){var s,f,g,m,v,y,b,S;return(0,c.__generator)(this,function(w){switch(w.label){case 0:return f=0,g=0,[4,this.getMaxAttempts()];case 1:m=w.sent(),v=a.request,p.aW.isInstance(v)&&(v.headers["amz-sdk-invocation-id"]=(0,_.v4)()),y=function(){var y,_,S,w,C;return(0,c.__generator)(this,function(c){switch(c.label){case 0:return c.trys.push([0,2,,5]),p.aW.isInstance(v)&&(v.headers["amz-sdk-request"]="attempt="+(f+1)+"; max="+m),[4,t(a)];case 1:return _=(y=c.sent()).response,S=y.output,b.retryQuota.releaseRetryTokens(s),S.$metadata.attempts=f+1,S.$metadata.totalRetryDelay=g,[2,{value:{response:_,output:S}}];case 2:if(w=c.sent(),f++,!b.shouldRetry(w,f,m))return[3,4];return s=b.retryQuota.retrieveRetryTokens(w),C=b.delayDecider(isThrottlingError(w)?500:100,f),g+=C,[4,new Promise(function(t){return setTimeout(t,C)})];case 3:return c.sent(),[2,"continue"];case 4:throw w.$metadata||(w.$metadata={}),w.$metadata.attempts=f,w.$metadata.totalRetryDelay=g,w;case 5:return[2]}})},b=this,w.label=2;case 2:return[5,y()];case 3:if("object"==typeof(S=w.sent()))return[2,S.value];return[3,2];case 4:return[2]}})})},StandardRetryStrategy}(),resolveRetryConfig=function(t){var a=normalizeMaxAttempts(t.maxAttempts);return(0,c.__assign)((0,c.__assign)({},t),{maxAttempts:a,retryStrategy:t.retryStrategy||new S(a)})},normalizeMaxAttempts=function(t){if(void 0===t&&(t=b),"number"==typeof t){var a=Promise.resolve(t);return function(){return a}}return t}},86400:function(t,a,s){"use strict";s.d(a,{p2:function(){return getSerdePlugin}});var c=s(70655),f={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},p={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function getSerdePlugin(t,a,s){return{applyToStack:function(g){g.add(function(a,f){return function(f){return(0,c.__awaiter)(void 0,void 0,void 0,function(){var p,g;return(0,c.__generator)(this,function(c){switch(c.label){case 0:return[4,a(f)];case 1:return[4,s(p=c.sent().response,t)];case 2:return g=c.sent(),[2,{response:p,output:g}]}})})}},f),g.add(function(s,f){return function(f){return(0,c.__awaiter)(void 0,void 0,void 0,function(){var p;return(0,c.__generator)(this,function(g){switch(g.label){case 0:return[4,a(f.input,t)];case 1:return p=g.sent(),[2,s((0,c.__assign)((0,c.__assign)({},f),{request:p}))]}})})}},p)}}}},31868:function(t,a,s){"use strict";s.d(a,{yt:function(){return getAwsAuthPlugin},A$:function(){return resolveAwsAuthConfig}});var c=s(70655),f=s(22099);function resolveAwsAuthConfig(t){var a,s=this,p=normalizeProvider(t.credentials||t.credentialDefaultProvider(t)),g=t.signingEscapePath,m=void 0===g||g,v=t.systemClockOffset,y=void 0===v?t.systemClockOffset||0:v,_=t.sha256;return a=t.signer?normalizeProvider(t.signer):function(){return normalizeProvider(t.region)().then(function(a){return(0,c.__awaiter)(s,void 0,void 0,function(){return(0,c.__generator)(this,function(s){switch(s.label){case 0:return[4,t.regionInfoProvider(a)];case 1:return[2,[s.sent()||{},a]]}})})}).then(function(a){var s=(0,c.__read)(a,2),g=s[0],v=s[1],y=g.signingRegion,b=g.signingService;return t.signingRegion=t.signingRegion||y||v,t.signingName=t.signingName||b||t.serviceId,new f.L1({credentials:p,region:t.signingRegion,service:t.signingName,sha256:_,uriEscapePath:m})})},(0,c.__assign)((0,c.__assign)({},t),{systemClockOffset:y,signingEscapePath:m,credentials:p,signer:a})}function normalizeProvider(t){if("object"==typeof t){var a=Promise.resolve(t);return function(){return a}}return t}var p=s(96877),g={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0},getAwsAuthPlugin=function(t){return{applyToStack:function(a){a.addRelativeTo(function(a,s){return function(f){return(0,c.__awaiter)(this,void 0,void 0,function(){var g,m,v,y,_,b,S,w,C;return(0,c.__generator)(this,function(E){switch(E.label){case 0:if(!p.aW.isInstance(f.request))return[2,a(f)];if("function"!=typeof t.signer)return[3,2];return[4,t.signer()];case 1:return m=E.sent(),[3,3];case 2:m=t.signer,E.label=3;case 3:return g=m,y=a,_=[(0,c.__assign)({},f)],C={},[4,g.sign(f.request,{signingDate:new Date(Date.now()+t.systemClockOffset),signingRegion:s.signing_region,signingService:s.signing_service})];case 4:return[4,y.apply(void 0,[c.__assign.apply(void 0,_.concat([(C.request=E.sent(),
1C)]))])];case 5:if(S=(b=(v=E.sent()).response.headers)&&(b.date||b.Date)){var x,P;x=w=Date.parse(S),Math.abs((P=t.systemClockOffset,new Date(Date.now()+P)).getTime()-x)>=3e5&&(t.systemClockOffset=w-Date.now())}return[2,v]}})})}},g)}}}},56380:function(t,a,s){"use strict";s.d(a,{XJ:function(){return getUserAgentPlugin},er:function(){return resolveUserAgentConfig}});var c=s(70655);function resolveUserAgentConfig(t){return(0,c.__assign)((0,c.__assign)({},t),{customUserAgent:"string"==typeof t.customUserAgent?[[t.customUserAgent]]:t.customUserAgent})}var f=s(96877),p="user-agent",g=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,escapeUserAgent=function(t){var a=(0,c.__read)(t,2),s=a[0],f=a[1],p=s.indexOf("/"),m=s.substring(0,p),v=s.substring(p+1);return"api"===m&&(v=v.toLowerCase()),[m,v,f].filter(function(t){return t&&t.length>0}).map(function(t){return null==t?void 0:t.replace(g,"_")}).join("/")},m={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},getUserAgentPlugin=function(t){return{applyToStack:function(a){a.add(function(a,s){return function(g){return(0,c.__awaiter)(void 0,void 0,void 0,function(){var m,v,y,_,b,S,w,C;return(0,c.__generator)(this,function(E){switch(E.label){case 0:if(m=g.request,!f.aW.isInstance(m))return[2,a(g)];return v=m.headers,y=(null===(w=null==s?void 0:s.userAgent)||void 0===w?void 0:w.map(escapeUserAgent))||[],[4,t.defaultUserAgentProvider()];case 1:return _=E.sent().map(escapeUserAgent),b=(null===(C=null==t?void 0:t.customUserAgent)||void 0===C?void 0:C.map(escapeUserAgent))||[],v["x-amz-user-agent"]=(0,c.__spread)(_,y,b).join(" "),S=(0,c.__spread)(_.filter(function(t){return t.startsWith("aws-sdk-")}),b).join(" "),"browser"!==t.runtime&&S&&(v[p]=v[p]?v[p]+" "+S:S),[2,a((0,c.__assign)((0,c.__assign)({},g),{request:m}))]}})})}},m)}}}},96877:function(t,a,s){"use strict";s.d(a,{aW:function(){return p},Zn:function(){return c}});var c=function(){function HttpResponse(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}return HttpResponse.isInstance=function(t){return!!t&&"number"==typeof t.statusCode&&"object"==typeof t.headers},HttpResponse}(),f=s(70655),p=function(){function HttpRequest(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?":"!==t.protocol.substr(-1)?t.protocol+":":t.protocol:"https:",this.path=t.path?"/"!==t.path.charAt(0)?"/"+t.path:t.path:"/"}return HttpRequest.isInstance=function(t){return!!t&&"method"in t&&"protocol"in t&&"hostname"in t&&"path"in t&&"object"==typeof t.query&&"object"==typeof t.headers},HttpRequest.prototype.clone=function(){var t,a=new HttpRequest((0,f.__assign)((0,f.__assign)({},this),{headers:(0,f.__assign)({},this.headers)}));return a.query&&(a.query=Object.keys(t=a.query).reduce(function(a,s){var c,p=t[s];return(0,f.__assign)((0,f.__assign)({},a),((c={})[s]=Array.isArray(p)?(0,f.__spread)(p):p,c))},{})),a},HttpRequest}()},39444:function(t,a,s){"use strict";s.d(a,{I:function(){return buildQueryString}});var c=s(70655),f=s(98143);function buildQueryString(t){var a,s,p=[];try{for(var g=(0,c.__values)(Object.keys(t).sort()),m=g.next();!m.done;m=g.next()){var v=m.value,y=t[v];if(v=(0,f.i)(v),Array.isArray(y))for(var _=0,b=y.length;_<b;_++)p.push(v+"="+(0,f.i)(y[_]));else{var S=v;(y||"string"==typeof y)&&(S+="="+(0,f.i)(y)),p.push(S)}}}catch(t){a={error:t}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}return p.join("&")}},22099:function(t,a,s){"use strict";s.d(a,{L1:function(){return R}});var c=s(70655),f=s(25644),p="X-Amz-Date",g="X-Amz-Signature",m="X-Amz-Security-Token",v="authorization",y=p.toLowerCase(),_=[v,y,"date"],b=g.toLowerCase(),S="x-amz-content-sha256",w=m.toLowerCase(),C={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},E=/^proxy-/,x=/^sec-/,P="AWS4-HMAC-SHA256",I="aws4_request",T={},k=[];function createScope(t,a,s){return t+"/"+a+"/"+s+"/"+I}function hmac(t,a,s){var c=new t(a);return c.update(s),c.digest()}function getCanonicalHeaders(t,a,s){var f,p,g=t.headers,m={};try{for(var v=(0,c.__values)(Object.keys(g).sort()),y=v.next();!y.done;y=v.next()){var _=y.value,b=_.toLowerCase();(!(b in C||(null==a?void 0:a.has(b))||E.test(b)||x.test(b))||s&&(!s||s.has(b)))&&(m[b]=g[_].trim().replace(/\s+/g," "))}}catch(t){f={error:t}}
1finally{try{y&&!y.done&&(p=v.return)&&p.call(v)}finally{if(f)throw f.error}}return m}var O=s(98143);function getPayloadHash(t,a){var s=t.headers,p=t.body;return(0,c.__awaiter)(this,void 0,void 0,function(){var t,g,m,v,y,_,b;return(0,c.__generator)(this,function(w){switch(w.label){case 0:try{for(g=(t=(0,c.__values)(Object.keys(s))).next();!g.done;g=t.next())if((m=g.value).toLowerCase()===S)return[2,s[m]]}catch(t){_={error:t}}finally{try{g&&!g.done&&(b=t.return)&&b.call(t)}finally{if(_)throw _.error}}if(void 0!=p)return[3,1];return[2,"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"];case 1:if(!("string"==typeof p||ArrayBuffer.isView(p)||"function"==typeof ArrayBuffer&&p instanceof ArrayBuffer||"[object ArrayBuffer]"===Object.prototype.toString.call(p)))return[3,3];return(v=new a).update(p),y=f.N,[4,v.digest()];case 2:return[2,y.apply(void 0,[w.sent()])];case 3:return[2,"UNSIGNED-PAYLOAD"]}})})}function cloneRequest(t){var a=t.headers,s=t.query,f=(0,c.__rest)(t,["headers","query"]);return(0,c.__assign)((0,c.__assign)({},f),{headers:(0,c.__assign)({},a),query:s?Object.keys(s).reduce(function(t,a){var f,p=s[a];return(0,c.__assign)((0,c.__assign)({},t),((f={})[a]=Array.isArray(p)?(0,c.__spread)(p):p,f))},{}):void 0})}function prepareRequest(t){var a,s;t="function"==typeof t.clone?t.clone():cloneRequest(t);try{for(var f=(0,c.__values)(Object.keys(t.headers)),p=f.next();!p.done;p=f.next()){var g=p.value;_.indexOf(g.toLowerCase())>-1&&delete t.headers[g]}}catch(t){a={error:t}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(a)throw a.error}}return t}
1var R=function(){function SignatureV4(t){var a=t.applyChecksum,s=t.credentials,c=t.region,f=t.service,p=t.sha256,g=t.uriEscapePath;this.service=f,this.sha256=p,this.uriEscapePath=void 0===g||g,this.applyChecksum="boolean"!=typeof a||a,this.regionProvider=normalizeRegionProvider(c),this.credentialProvider=normalizeCredentialsProvider(s)}return SignatureV4.prototype.presign=function(t,a){return void 0===a&&(a={}),(0,c.__awaiter)(this,void 0,void 0,function(){var s,f,v,y,_,b,S,w,C,E,x,I,T,k,O,R,M,N,U,L,D,B,j,q;return(0,c.__generator)(this,function(V){switch(V.label){case 0:return f=void 0===(s=a.signingDate)?new Date:s,y=void 0===(v=a.expiresIn)?3600:v,_=a.unsignableHeaders,b=a.unhoistableHeaders,S=a.signableHeaders,w=a.signingRegion,C=a.signingService,[4,this.credentialProvider()];case 1:if(E=V.sent(),!(null!=w))return[3,2];return I=w,[3,4];case 2:return[4,this.regionProvider()];case 3:I=V.sent(),V.label=4;case 4:if(x=I,k=(T=formatDate(f)).longDate,O=T.shortDate,y>604800)return[2,Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future")];return R=createScope(O,x,null!=C?C:this.service),M=function(t,a){void 0===a&&(a={});var s,f,p,g="function"==typeof t.clone?t.clone():cloneRequest(t),m=g.headers,v=g.query,y=void 0===v?{}:v;try{for(var _=(0,c.__values)(Object.keys(m)),b=_.next();!b.done;b=_.next()){var S=b.value,w=S.toLowerCase();"x-amz-"!==w.substr(0,6)||(null===(p=a.unhoistableHeaders)||void 0===p?void 0:p.has(w))||(y[S]=m[S],delete m[S])}}catch(t){s={error:t}}finally{try{b&&!b.done&&(f=_.return)&&f.call(_)}finally{if(s)throw s.error}}return(0,c.__assign)((0,c.__assign)({},t),{headers:m,query:y})}(prepareRequest(t),{unhoistableHeaders:b}),E.sessionToken&&(M.query[m]=E.sessionToken),M.query["X-Amz-Algorithm"]=P,M.query["X-Amz-Credential"]=E.accessKeyId+"/"+R,M.query[p]=k,M.query["X-Amz-Expires"]=y.toString(10),N=getCanonicalHeaders(M,_,S),M.query["X-Amz-SignedHeaders"]=getCanonicalHeaderList(N),U=M.query,L=g,D=this.getSignature,B=[k,R,this.getSigningKey(E,x,O,C)],j=this.createCanonicalRequest,q=[M,N],[4,getPayloadHash(t,this.sha256)];case 5:return[4,D.apply(this,B.concat([j.apply(this,q.concat([V.sent()]))]))];case 6:return U[L]=V.sent(),[2,M]}})})},SignatureV4.prototype.sign=function(t,a){return(0,c.__awaiter)(this,void 0,void 0,function(){return(0,c.__generator)(this,function(s){return"string"==typeof t?[2,this.signString(t,a)]:t.headers&&t.payload?[2,this.signEvent(t,a)]:[2,this.signRequest(t,a)]})})},SignatureV4.prototype.signEvent=function(t,a){var s=t.headers,p=t.payload,g=a.signingDate,m=void 0===g?new Date:g,v=a.priorSignature,y=a.signingRegion,_=a.signingService;return(0,c.__awaiter)(this,void 0,void 0,function(){var t,a,g,b,S,w,C,E,x,P,I;return(0,c.__generator)(this,function(c){switch(c.label){case 0:if(!(null!=y))return[3,1];return a=y,[3,3];case 1:return[4,this.regionProvider()];case 2:a=c.sent(),c.label=3;case 3:return t=a,b=(g=formatDate(m)).shortDate,S=g.longDate,w=createScope(b,t,null!=_?_:this.service),[4,getPayloadHash({headers:{},body:p},this.sha256)];case 4:return C=c.sent(),(E=new this.sha256).update(s),P=f.N,[4,E.digest()];case 5:return x=P.apply(void 0,[c.sent()]),I=["AWS4-HMAC-SHA256-PAYLOAD",S,w,v,x,C].join("\n"),[2,this.signString(I,{signingDate:m,signingRegion:t,signingService:_})]}})})},SignatureV4.prototype.signString=function(t,a){var s=void 0===a?{}:a,p=s.signingDate,g=void 0===p?new Date:p,m=s.signingRegion,v=s.signingService;return(0,c.__awaiter)(this,void 0,void 0,function(){var a,s,p,y,_,b,S,w;return(0,c.__generator)(this,function(c){switch(c.label){case 0:return[4,this.credentialProvider()];case 1:if(a=c.sent(),!(null!=m))return[3,2];return p=m,[3,4];case 2:return[4,this.regionProvider()];case 3:p=c.sent(),c.label=4;case 4:return s=p,y=formatDate(g).shortDate,S=(b=this.sha256).bind,[4,this.getSigningKey(a,s,y,v)];case 5:return(_=new(S.apply(b,[void 0,c.sent()]))).update(t),w=f.N,[4,_.digest()];case 6:return[2,w.apply(void 0,[c.sent()])]}})})},SignatureV4.prototype.signRequest=function(t,a){var s=void 0===a?{}:a,f=s.signingDate,p=void 0===f?new Date:f,g=s.signableHeaders,m=s.unsignableHeaders,_=s.signingRegion,b=s.signingService;return(0,c.__awaiter)(this,void 0,void 0,function(){var a,s,f,C,E,x,I,T,k,O,R;return(0,c.__generator)(this,function(M){switch(M.label){case 0:return[4,this.credentialProvider()];case 1:if(a=M.sent(),!(null!=_))return[3,2];return f=_,[3,4];case 2:return[4,this.regionProvider()];case 3:f=M.sent(),M.label=4;case 4:return s=f,C=prepareRequest(t),x=(E=formatDate(p)).longDate,T=createScope(I=E.shortDate,s,null!=b?b:this.service),C.headers[y]=x,a.sessionToken&&(C.headers[w]=a.sessionToken),[4,getPayloadHash(C,this.sha256)];case 5:return k=M.sent(),!function(t,a){var s,f;t=t.toLowerCase();try{for(var p=(0,c.__values)(Object.keys(a)),g=p.next();!g.done;g=p.next()){var m=g.value;if(t===m.toLowerCase())return!0}}catch(t){s={error:t}}finally{try{g&&!g.done&&(f=p.return)&&f.call(p)}finally{if(s)throw s.error}}return!1}(S,C.headers)&&this.applyChecksum&&(C.headers[S]=k),O=getCanonicalHeaders(C,m,g),[4,this.get
1Signature(x,T,this.getSigningKey(a,s,I,b),this.createCanonicalRequest(C,O,k))];case 6:return R=M.sent(),C.headers[v]=P+" "+("Credential="+a.accessKeyId)+"/"+T+", SignedHeaders="+getCanonicalHeaderList(O)+", Signature="+R,[2,C]}})})},SignatureV4.prototype.createCanonicalRequest=function(t,a,s){var f=Object.keys(a).sort();return t.method+"\n"+this.getCanonicalPath(t)+"\n"+function(t){var a,s,f=t.query,p=void 0===f?{}:f,g=[],m={},_loop_1=function(t){if(t.toLowerCase()===b)return"continue";g.push(t);var a=p[t];"string"==typeof a?m[t]=(0,O.i)(t)+"="+(0,O.i)(a):Array.isArray(a)&&(m[t]=a.slice(0).sort().reduce(function(a,s){return a.concat([(0,O.i)(t)+"="+(0,O.i)(s)])},[]).join("&"))};try{for(var v=(0,c.__values)(Object.keys(p).sort()),y=v.next();!y.done;y=v.next()){var _=y.value;_loop_1(_)}}catch(t){a={error:t}}finally{try{y&&!y.done&&(s=v.return)&&s.call(v)}finally{if(a)throw a.error}}return g.map(function(t){return m[t]}).filter(function(t){return t}).join("&")}(t)+"\n"+f.map(function(t){return t+":"+a[t]}).join("\n")+"\n\n"+f.join(";")+"\n"+s},SignatureV4.prototype.createStringToSign=function(t,a,s){return(0,c.__awaiter)(this,void 0,void 0,function(){var p,g;return(0,c.__generator)(this,function(c){switch(c.label){case 0:return(p=new this.sha256).update(s),[4,p.digest()];case 1:return g=c.sent(),[2,P+"\n"+t+"\n"+a+"\n"+(0,f.N)(g)]}})})},SignatureV4.prototype.getCanonicalPath=function(t){var a=t.path;return this.uriEscapePath?"/"+encodeURIComponent(a.replace(/^\//,"")).replace(/%2F/g,"/"):a},SignatureV4.prototype.getSignature=function(t,a,s,p){return(0,c.__awaiter)(this,void 0,void 0,function(){var g,m,v,y,_;return(0,c.__generator)(this,function(c){switch(c.label){case 0:return[4,this.createStringToSign(t,a,p)];case 1:return g=c.sent(),y=(v=this.sha256).bind,[4,s];case 2:return(m=new(y.apply(v,[void 0,c.sent()]))).update(g),_=f.N,[4,m.digest()];case 3:return[2,_.apply(void 0,[c.sent()])]}})})},SignatureV4.prototype.getSigningKey=function(t,a,s,p){var g,m;return g=this.sha256,m=p||this.service,(0,c.__awaiter)(void 0,void 0,void 0,function(){var p,v,y,_,b,S,w,C;return(0,c.__generator)(this,function(E){switch(E.label){case 0:return[4,hmac(g,t.secretAccessKey,t.accessKeyId)];case 1:if(p=E.sent(),(v=s+":"+a+":"+m+":"+(0,f.N)(p)+":"+t.sessionToken)in T)return[2,T[v]];for(k.push(v);k.length>50;)delete T[k.shift()];y="AWS4"+t.secretAccessKey,E.label=2;case 2:E.trys.push([2,7,8,9]),b=(_=(0,c.__values)([s,a,m,I])).next(),E.label=3;case 3:if(b.done)return[3,6];return S=b.value,[4,hmac(g,y,S)];case 4:y=E.sent(),E.label=5;case 5:return b=_.next(),[3,3];case 6:return[3,9];case 7:return w={error:E.sent()},[3,9];case 8:try{b&&!b.done&&(C=_.return)&&C.call(_)}finally{if(w)throw w.error}return[7];case 9:return[2,T[v]=y]}})})},SignatureV4}(),formatDate=function(t){var a=("number"==typeof t?new Date(1e3*t):"string"==typeof t?Number(t)?new Date(1e3*Number(t)):new Date(t):t).toISOString().replace(/\.\d{3}Z$/,"Z").replace(/[\-:]/g,"");return{longDate:a,shortDate:a.substr(0,8)}},getCanonicalHeaderList=function(t){return Object.keys(t).sort().join(";")},normalizeRegionProvider=function(t){if("string"!=typeof t)return t;var a=Promise.resolve(t);return function(){return a}},normalizeCredentialsProvider=function(t){if("object"!=typeof t)return t;var a=Promise.resolve(t);return function(){return a}}},57198:function(t,a,s){"use strict";s.d(a,{KU:function(){return g},mY:function(){return Command},oc:function(){return y},_w:function(){return dateToUtcString},jc:function(){return extendedEncodeURIComponent},L:function(){return getArrayIfSingleItem},sT:function(){return getValueFromTextNode}});var c=s(70655),constructStack=function(){var t=[],a=[],s=new Set,removeByName=function(c){var f=!1,filterCb=function(t){return!t.name||t.name!==c||(f=!0,s.delete(c),!1)};return t=t.filter(filterCb),a=a.filter(filterCb),f},removeByReference=function(c){var f=!1,filterCb=function(t){return t.middleware!==c||(f=!0,t.name&&s.delete(t.name),!1)};return t=t.filter(filterCb),a=a.filter(filterCb),f},cloneTo=function(s){return t.forEach(function(t){s.add(t.middleware,(0,c.__assign)({},t))}),a.forEach(function(t){s.addRelativeTo(t.middleware,(0,c.__assign)({},t))}),s},expandRelativeMiddlewareList=function(t){var a=[];return t.before.forEach(function(t){0===t.before.length&&0===t.after.length?a.push(t):a.push.apply(a,(0,c.__spread)(expandRelativeMiddlewareList(t)))}
1),a.push(t),t.after.reverse().forEach(function(t){0===t.before.length&&0===t.after.length?a.push(t):a.push.apply(a,(0,c.__spread)(expandRelativeMiddlewareList(t)))}),a},getMiddlewareList=function(){var s=[],g=[],m={};return t.forEach(function(t){var a=(0,c.__assign)((0,c.__assign)({},t),{before:[],after:[]});a.name&&(m[a.name]=a),s.push(a)}),a.forEach(function(t){var a=(0,c.__assign)((0,c.__assign)({},t),{before:[],after:[]});a.name&&(m[a.name]=a),g.push(a)}),g.forEach(function(t){if(t.toMiddleware){var a=m[t.toMiddleware];if(void 0===a)throw Error(t.toMiddleware+" is not found when adding "+(t.name||"anonymous")+" middleware "+t.relation+" "+t.toMiddleware);"after"===t.relation&&a.after.push(t),"before"===t.relation&&a.before.push(t)}}),s.sort(function(t,a){return f[a.step]-f[t.step]||p[a.priority||"normal"]-p[t.priority||"normal"]}).map(expandRelativeMiddlewareList).reduce(function(t,a){return t.push.apply(t,(0,c.__spread)(a)),t},[]).map(function(t){return t.middleware})},g={add:function(a,f){void 0===f&&(f={});var p=f.name,g=f.override,m=(0,c.__assign)({step:"initialize",priority:"normal",middleware:a},f);if(p){if(s.has(p)){if(!g)throw Error("Duplicate middleware name '"+p+"'");var v=t.findIndex(function(t){return t.name===p}),y=t[v];if(y.step!==m.step||y.priority!==m.priority)throw Error('"'+p+'" middleware with '+y.priority+" priority in "+y.step+" step cannot be "+("overridden by same-name middleware with "+m.priority)+" priority in "+m.step+" step.");t.splice(v,1)}s.add(p)}t.push(m)},addRelativeTo:function(t,f){var p=f.name,g=f.override,m=(0,c.__assign)({middleware:t},f);if(p){if(s.has(p)){if(!g)throw Error("Duplicate middleware name '"+p+"'");var v=a.findIndex(function(t){return t.name===p}),y=a[v];if(y.toMiddleware!==m.toMiddleware||y.relation!==m.relation)throw Error('"'+p+'" middleware '+y.relation+' "'+y.toMiddleware+'" middleware cannot be overridden '+("by same-name middleware "+m.relation)+' "'+m.toMiddleware+'" middleware.');a.splice(v,1)}s.add(p)}a.push(m)},clone:function(){return cloneTo(constructStack())},use:function(t){t.applyToStack(g)},remove:function(t){return"string"==typeof t?removeByName(t):removeByReference(t)},removeByTag:function(c){var f=!1,filterCb=function(t){var a=t.tags,p=t.name;return!(a&&a.includes(c))||(p&&s.delete(p),f=!0,!1)};return t=t.filter(filterCb),a=a.filter(filterCb),f},concat:function(t){var a=cloneTo(constructStack());return a.use(t),a},applyToStack:cloneTo,resolve:function(t,a){var s,f;try{for(var p=(0,c.__values)(getMiddlewareList().reverse()),g=p.next();!g.done;g=p.next())t=(0,g.value)(t,a)}catch(t){s={error:t}}finally{try{g&&!g.done&&(f=p.return)&&f.call(p)}finally{if(s)throw s.error}}return t}};return g},f={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},p={high:3,normal:2,low:1},g=function(){function Client(t){this.middlewareStack=constructStack(),this.config=t}return Client.prototype.send=function(t,a,s){var c="function"==typeof a?a:s,f=t.resolveMiddleware(this.middlewareStack,this.config,"function"!=typeof a?a:void 0);if(!c)return f(t).then(function(t){return t.output});f(t).then(function(t){return c(null,t.output)},function(t){return c(t)}).catch(function(){})},Client.prototype.destroy=function(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()},Client}(),Command=function(){this.middlewareStack=constructStack()};function extendedEncodeURIComponent(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16)})}var getArrayIfSingleItem=function(t){return Array.isArray(t)?t:[t]},getValueFromTextNode=function(t){var a="#text";for(var s in t)t.hasOwnProperty(s)&&void 0!==t[s][a]?t[s]=t[s][a]:"object"==typeof t[s]&&null!==t[s]&&(t[s]=getValueFromTextNode(t[s]));return t},StringWrapper=function(){var t=Object.getPrototypeOf(this).constructor,a=Function.bind.apply(String,(0,c.__spread)([null],arguments)),s=new a;return Object.setPrototypeOf(s,t.prototype),s};StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:StringWrapper,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(StringWrapper,String),function(t){function LazyJsonString(){return null!==t&&t.apply(this,arguments)||this}(0,c.__extends)(LazyJsonString,t),LazyJsonString.prototype.deserializeJSON=function(){return JSON.parse(t.prototype.toString.call(this))},LazyJsonString.prototype.toJSON=function(){return t.prototype.toString.call(this)},LazyJsonString.fromObject=function(t){return t instanceof LazyJsonString?t:new LazyJsonString(t instanceof String||"string"==typeof t?t:JSON.stringify(t))}}(StringWrapper);var m=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],v=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function dateToUtcString(t){var a=t.getUTCFullYear(),s=t.getUTCMonth(),c=t.getUTCDay(),f=t.getUTCDate(),p=t.getUTCHours(),g=t.getUTCMinutes(),y=t.getUTCSeconds();return m[c]+", "+(f<10?"0"+f:""+f)+" "+v[s]+" "+a+" "+(p<10?"0"+p:""+p)+":"+(g<10?"0"+g:""+g)+":"+(y<10?"0"+y:""+y)+" GMT"}var y="***SensitiveInformation***"},31823:function(t,a,s){"use strict";s.d(a,{e:function(){return parseUrl}});var c=s(70655),parseUrl=function(t){var a,s=new URL(t),f=s.hostname,p=s.pathname,g=s.port,m=s.protocol,v=s.search;return v&&(a=function(t){var a,s,f={};if(t=t.replace(/^\?/,""))try{for(var p=(0,c.__values)(t.split("&")),g=p.next();!g.done;g=p.next()){var m=g.value,v=(0,c.__read)(m.split("="),2),y=v[0],_=v[1],b=void 0===_?null:_;y=decodeURIComponent(y),b&&(b=decodeURIComponent(b)),y in f?Array.isArray(f[y])?f[y].push(b):f[y]=[f[y],b]:f[y]=b}}catch(t){a={error:t}}finally{try{g&&!g.done&&(s=p.return)&&s.call(p)}finally{if(a)throw a.error}}return f}(v)),{hostname:f,port:g?parseInt(g):void 0,protocol:m,path:p,query:a}}},67157:function(t,a,s){"use strict";s.d(a,{G:function(){return fromBase64},s:function(){return toBase64}});for(var c={},f=Array(64),p=0,g=65,m=90;p+g<=m;p++){var v=String.fromCharCode(p+g);c[v]=p,f[p]=v}for(var p=0,g=97,m=122;p+g<=m;p++){var v=String.fromCharCode(p+g),y=p+26;c[v]=y,f[y]=v}for(var p=0;p<10;p++){c[p.toString(10)]=p+52;var v=p.toString(10),y=p+52;c[v]=y,f[y]=v}function fromBase64(t){var a=t.length/4*3;"=="===t.substr(-2)?a-=2:"="===t.substr(-1)&&a--;for(var s=new ArrayBuffer(a),f=new DataView(s),p=0;p<t.length;p+=4){for(var g=0,m=0,v=p,y=p+3;v<=y;v++)"="!==t[v]?(g|=c[t[v]]<<(y-v)*6,m+=6):g>>=6;var _=p/4*3;g>>=m%8;for(var b=Math.floor(m/8),S=0;S<b;S++){var w=(b-S-1)*8;f.setUint8(_+S,(g&255<<w)>>w)}}return new Uint8Array(s)}function toBase64(t){for(var a="",s=0;s<t.length;s+=3){for(var c=0,p=0,g=s,m=Math.min(s+3,t.length);g<m;g++)c|=t[g]<<(m-g-1)*8,p+=8;var v=Math.ceil(p/6);c<<=6*v-p;for(var y=1;y<=v;y++){var _=(v-y)*6;a+=f[(c&63<<_)>>_]}a+="==".slice(0,4-v)}return a}
1c["+"]=62,f[62]="+",c["/"]=63,f[63]="/"},22795:function(t,a,s){"use strict";function calculateBodyLength(t){if("string"==typeof t){for(var a=t.length,s=a-1;s>=0;s--){var c=t.charCodeAt(s);c>127&&c<=2047?a++:c>2047&&c<=65535&&(a+=2)}return a}return"number"==typeof t.byteLength?t.byteLength:"number"==typeof t.size?t.size:void 0}s.d(a,{W:function(){return calculateBodyLength}})},25644:function(t,a,s){"use strict";s.d(a,{H:function(){return fromHex},N:function(){return toHex}});for(var c={},f={},p=0;p<256;p++){var g=p.toString(16).toLowerCase();1===g.length&&(g="0"+g),c[p]=g,f[g]=p}function fromHex(t){if(t.length%2!=0)throw Error("Hex encoded strings must have an even number length");for(var a=new Uint8Array(t.length/2),s=0;s<t.length;s+=2){var c=t.substr(s,2).toLowerCase();if(c in f)a[s/2]=f[c];else throw Error("Cannot decode unrecognized sequence "+c+" as hexadecimal")}return a}function toHex(t){for(var a="",s=0;s<t.byteLength;s++)a+=c[t[s]];return a}},56495:function(t,a,s){"use strict";s.r(a),s.d(a,{locateWindow:function(){return locateWindow}});let c={};function locateWindow(){return"undefined"!=typeof window?window:"undefined"!=typeof self?self:c}},98143:function(t,a,s){"use strict";s.d(a,{i:function(){return escapeUri}});var escapeUri=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,hexEncode)},hexEncode=function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()}},85731:function(t,a,s){"use strict";s.d(a,{f:function(){return defaultUserAgent}});var c=s(70655),f=s(51206),p=s.n(f),defaultUserAgent=function(t){var a=t.serviceId,s=t.clientVersion;return function(){return(0,c.__awaiter)(void 0,void 0,void 0,function(){var t,f,g,m,v,y,_,b,S;return(0,c.__generator)(this,function(c){return f=[["aws-sdk-js",s],["os/"+((null===(m=null==(t=(null===(g=null==window?void 0:window.navigator)||void 0===g?void 0:g.userAgent)?p().parse(window.navigator.userAgent):void 0)?void 0:t.os)||void 0===m?void 0:m.name)||"other"),null===(v=null==t?void 0:t.os)||void 0===v?void 0:v.version],["lang/js"],["md/browser",(null!==(_=null===(y=null==t?void 0:t.browser)||void 0===y?void 0:y.name)&&void 0!==_?_:"unknown")+"_"+(null!==(S=null===(b=null==t?void 0:t.browser)||void 0===b?void 0:b.version)&&void 0!==S?S:"unknown")]],a&&f.push(["api/"+a,s]),[2,f]})})}}},20519:function(t,a,s){"use strict";s.r(a),s.d(a,{fromUtf8:function(){return es_fromUtf8},toUtf8:function(){return es_toUtf8}});var fromUtf8=function(t){for(var a=[],s=0,c=t.length;s<c;s++){var f=t.charCodeAt(s);if(f<128)a.push(f);else if(f<2048)a.push(f>>6|192,63&f|128);else if(s+1<t.length&&(64512&f)==55296&&(64512&t.charCodeAt(s+1))==56320){var p=65536+((1023&f)<<10)+(1023&t.charCodeAt(++s));a.push(p>>18|240,p>>12&63|128,p>>6&63|128,63&p|128)}else a.push(f>>12|224,f>>6&63|128,63&f|128)}return Uint8Array.from(a)},toUtf8=function(t){for(var a="",s=0,c=t.length;s<c;s++){var f=t[s];f<128?a+=String.fromCharCode(f):192<=f&&f<224?a+=String.fromCharCode((31&f)<<6|63&t[++s]):240<=f&&f<365?a+=decodeURIComponent("%"+[f,t[++s],t[++s],t[++s]].map(function(t){return t.toString(16)}).join("%")):a+=String.fromCharCode((15&f)<<12|(63&t[++s])<<6|63&t[++s])}return a},es_fromUtf8=function(t){return"function"==typeof TextEncoder?new TextEncoder().encode(t):fromUtf8(t)},es_toUtf8=function(t){return"function"==typeof TextDecoder?new TextDecoder("utf-8").decode(t):toUtf8(t)}},59693:function(t,a,s){"use strict";s.d(a,{$n:function(){return lighten},Fq:function(){return alpha},_4:function(){return emphasize},_j:function(){return darken},mi:function(){return getContrastRatio}});var c=s(60288);function clamp(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(a,t),s)}function decomposeColor(t){if(t.type)return t;if("#"===t.charAt(0)){var a,s,f;return decomposeColor((a=(a=t).substr(1),s=RegExp(".{1,".concat(a.length>=6?2:1,"}"),"g"),(f=a.match(s))&&1===f[0].length&&(f=f.map(function(t){return t+t})),f?"rgb".concat(4===f.length?"a":"","(").concat(f.map(function(t,a){return a<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3}).join(", "),")"):""))}var p=t.indexOf("("),g=t.substring(0,p);if(-1===["rgb","rgba","hsl","hsla"].indexOf(g))throw Error((0,c.Z)(3,t));var m=t.substring(p+1,t.length-1).split(",");return{type:g,values:m=m.map(function(t){return parseFloat(t)})}}function recomposeColor(t){var a=t.type,s=t.values;return -1!==a.indexOf("rgb")?s=s.map(function(t,a){return a<3?parseInt(t,10):t}):-1!==a.indexOf("hsl")&&(s[1]="".concat(s[1],"%"),s[2]="".concat(s[2],"%")),"".concat(a,"(").concat(s.join(", "),")")}function getContrastRatio(t,a){var s=getLuminance(t),c=getLuminance(a);return(Math.max(s,c)+.05)/(Math.min(s,c)+.05)}function getLuminance(t){var a,s,c,f,p,g,m,v,y="hsl"===(t=decomposeColor(t)).type?decomposeColor((c=(s=(a=decomposeColor(a=t)).values)[0],p=s[1]/100*Math.min(f=s[2]/100,1-f),m="rgb",v=[Math.round(255*(g=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(t+c/30)%12;return f-p*Math.max(Math.min(a-3,9-a,1),-1)})(0)),Math.round(255*g(8)),Math.round(255*g(4))],"hsla"===a.type&&(m+="a",v.push(s[3])),recomposeColor({type:m,values:v}))).values:t.values;return Number((.2126*(y=y.map(function(t){return(t/=255)<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}
1))[0]+.7152*y[1]+.0722*y[2]).toFixed(3))}function emphasize(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return getLuminance(t)>.5?darken(t,a):lighten(t,a)}function alpha(t,a){return t=decomposeColor(t),a=clamp(a),("rgb"===t.type||"hsl"===t.type)&&(t.type+="a"),t.values[3]=a,recomposeColor(t)}function darken(t,a){if(t=decomposeColor(t),a=clamp(a),-1!==t.type.indexOf("hsl"))t.values[2]*=1-a;else if(-1!==t.type.indexOf("rgb"))for(var s=0;s<3;s+=1)t.values[s]*=1-a;return recomposeColor(t)}function lighten(t,a){if(t=decomposeColor(t),a=clamp(a),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*a;else if(-1!==t.type.indexOf("rgb"))for(var s=0;s<3;s+=1)t.values[s]+=(255-t.values[s])*a;return recomposeColor(t)}},6599:function(t,a,s){"use strict";s.d(a,{Z:function(){return styles_createTheme}});var c,f,p=s(45987),g=s(35953),m=s(87462),v=["xs","sm","md","lg","xl"],y=s(4942),_=s(60288),b={black:"#000",white:"#fff"},S={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"},w={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},C={A200:"#ff4081",A400:"#f50057",A700:"#c51162"},E={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},x={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},P={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},I={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},T=s(59693),k={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:b.white,default:S[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},O={text:{primary:b.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:S[800],default:"#303030"},action:{active:b.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function addLightOrDark(t,a,s,c){var f=c.light||c,p=c.dark||1.5*c;t[a]||(t.hasOwnProperty(s)?t[a]=t[s]:"light"===a?t.light=(0,T.$n)(t.main,f):"dark"===a&&(t.dark=(0,T._j)(t.main,p)))}function round(t){return Math.round(1e5*t)/1e5}function roundWithDeprecationWarning(t){return round(t)}var R={textTransform:"uppercase"},M='"Roboto", "Helvetica", "Arial", sans-serif';function createShadow(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var N=["none",createShadow(0,2,1,-1,0,1,1,0,0,1,3,0),createShadow(0,3,1,-2,0,2,2,0,0,1,5,0),createShadow(0,3,3,-2,0,3,4,0,0,1,8,0),createShadow(0,2,4,-1,0,4,5,0,0,1,10,0),createShadow(0,3,5,-1,0,5,8,0,0,1,14,0),createShadow(0,3,5,-1,0,6,10,0,0,1,18,0),createShadow(0,4,5,-2,0,7,10,1,0,2,16,1),createShadow(0,5,5,-3,0,8,10,1,0,3,14,2),createShadow(0,5,6,-3,0,9,12,1,0,3,16,2),createShadow(0,6,6,-3,0,10,14,1,0,4,18,3),createShadow(0,6,7,-4,0,11,15,1,0,4,20,3),createShadow(0,7,8,-4,0,12,17,2,0,5,22,4),createShadow(0,7,8,-4,0,13,19,2,0,5,24,4),createShadow(0,7,9,-4,0,14,21,2,0,5,26,4),createShadow(0,8,9,-5,0,15,22,2,0,6,28,5),createShadow(0,8,10,-5,0,16,24,2,0,6,30,5),createShadow(0,8,11,-5,0,17,26,2,0,6,32,5),createShadow(0,9,11,-5,0,18,28,2,0,7,34,6),createShadow(0,9,12,-6,0,19,29,2,0,7,36,6
1),createShadow(0,10,13,-6,0,20,31,3,0,8,38,7),createShadow(0,10,13,-6,0,21,33,3,0,8,40,7),createShadow(0,10,14,-6,0,22,35,3,0,8,42,7),createShadow(0,11,14,-7,0,23,36,3,0,9,44,8),createShadow(0,11,15,-7,0,24,38,3,0,9,46,8)],U={borderRadius:4},L=s(86854),D=s(71002),B={xs:0,sm:600,md:960,lg:1280,xl:1920},j={keys:["xs","sm","md","lg","xl"],up:function(t){return"@media (min-width:".concat(B[t],"px)")}},esm_merge=function(t,a){return a?(0,g.Z)(t,a,{clone:!1}):t},q={m:"margin",p:"padding"},V={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},K={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},H=(c=function(t){if(t.length>2){if(!K[t])return[t];t=K[t]}var a=t.split(""),s=(0,L.Z)(a,2),c=s[0],f=s[1],p=q[c],g=V[f]||"";return Array.isArray(g)?g.map(function(t){return p+t}):[p+g]},f={},function(t){return void 0===f[t]&&(f[t]=c(t)),f[t]}),W=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function createUnarySpacing(t){var a=t.spacing||8;return"number"==typeof a?function(t){return a*t}:Array.isArray(a)?function(t){return a[t]}:"function"==typeof a?a:function(){}}function spacing(t){var a=createUnarySpacing(t.theme);return Object.keys(t).map(function(s){if(-1===W.indexOf(s))return null;var c,f=(c=H(s),function(t){return c.reduce(function(s,c){return s[c]=function(t,a){if("string"==typeof a||null==a)return a;var s=t(Math.abs(a));return a>=0?s:"number"==typeof s?-s:"-".concat(s)}(a,t),s},{})}),p=t[s];return function(t,a,s){if(Array.isArray(a)){var c=t.theme.breakpoints||j;return a.reduce(function(t,f,p){return t[c.up(c.keys[p])]=s(a[p]),t},{})}if("object"===(0,D.Z)(a)){var f=t.theme.breakpoints||j;return Object.keys(a).reduce(function(t,c){return t[f.up(c)]=s(a[c]),t},{})}return s(a)}(t,p,f)}).reduce(esm_merge,{})}spacing.propTypes={},spacing.filterProps=W;var G=s(43366),$=s(92781),styles_createTheme=function(){for(var t,a,s,c,f,L,D,B,j,q,V,K,H,W,Y,J,Z,Q,X,ee,et,en,er,ei=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},eo=ei.breakpoints,ea=ei.mixins,es=ei.palette,eu=ei.spacing,ec=ei.typography,el=(0,p.Z)(ei,["breakpoints","mixins","palette","spacing","typography"]),ed=function(t){var a=t.primary,s=void 0===a?{light:w[300],main:w[500],dark:w[700]}:a,c=t.secondary,f=void 0===c?{light:C.A200,main:C.A400,dark:C.A700}:c,v=t.error,y=void 0===v?{light:E[300],main:E[500],dark:E[700]}:v,R=t.warning,M=void 0===R?{light:x[300],main:x[500],dark:x[700]}:R,N=t.info,U=void 0===N?{light:P[300],main:P[500],dark:P[700]}:N,L=t.success,D=void 0===L?{light:I[300],main:I[500],dark:I[700]}:L,B=t.type,j=void 0===B?"light":B,q=t.contrastThreshold,V=void 0===q?3:q,K=t.tonalOffset,H=void 0===K?.2:K,W=(0,p.Z)(t,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function getContrastText(t){return(0,T.mi)(t,O.text.primary)>=V?O.text.primary:k.text.primary}var augmentColor=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(t=(0,m.Z)({},t)).main&&t[a]&&(t.main=t[a]),!t.main)throw Error((0,_.Z)(4,a));if("string"!=typeof t.main)throw Error((0,_.Z)(5,JSON.stringify(t.main)));return addLightOrDark(t,"light",s,H),addLightOrDark(t,"dark",c,H),t.contrastText||(t.contrastText=getContrastText(t.main)),t};return(0,g.Z)((0,m.Z)({common:b,type:j,primary:augmentColor(s),secondary:augmentColor(f,"A400","A200","A700"),error:augmentColor(y),warning:augmentColor(M),info:augmentColor(U),success:augmentColor(D),grey:S,contrastThreshold:V,getContrastText:getContrastText,augmentColor:augmentColor,tonalOffset:H},{dark:O,light:k}[j]),W)}(void 0===es?{}:es),ef=function(t){var a=t.values,s=void 0===a?{xs:0,sm:600,md:960,lg:1280,xl:1920}:a,c=t.unit,f=void 0===c?"px":c,g=t.step,y=void 0===g?5:g,_=(0,p.Z)(t,["values","unit","step"]);function up(t){var a="number"==typeof s[t]?s[t]:t;return"@media (min-width:".concat(a).concat(f,")")}function between(t,a){var c=v.indexOf(a);return c===v.length-1?up(t):"@media (min-width:".concat("number"==typeof s[t]?s[t]:t).concat(f,") and ")+"(max-width:".concat((-1!==c&&"number"==typeof s[v[c+1]]?s[v[c+1]]:a)-y/100).concat(f,")")}return(0,m.Z)({keys:v,values:s,up:up,down:function(t){var a=v.indexOf(t)+1,c=s[v[a]];if(a===v.length)return up("xs");var p="number"==typeof c&&a>0?c:t;return"@media (max-width:".concat(p-y/100).concat(f,")")},between:between,only:function(t){return between(t,t)},width:function(t){return s[t]}},_)}(void 0===eo?{}:eo),ep=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var a=createUnarySpacing({spacing:t}),spacing=function(){for(var t=arguments.length,s=Array(t),c=0;c<t;c++)s[c]=arguments[c];return 0===s.length?a(1):1===s.length?a(s[0]):s.map(function(t){if("string"==typeof t)return t;var s=a(t);return"number"==typeof s?"".concat(s,"px"):s}).join(" ")};return Object.defineProperty(spacing,"unit",{get:function(){return t}}),spacing.mui=!0,spacing}(eu),eh=(0,g.Z)({breakpoints:ef,direction:"ltr",mixins:(0,m.Z)({gutters:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn("Material-UI: theme.mixins.gutters() is deprecated.\nYou can use the source of the mixin directly:\n\n      paddingLeft: theme.spacing(2),\n      paddingRight: theme.spacing(2),\n      [theme.breakpoints.up('sm')]: {\n        paddingLeft: theme.spacing(3),\n        paddingRight: theme.spacing(3),\n      },\n      "),(0,m.Z)({paddingLeft:ep(2),paddingRight:ep(2)},t,(0,y.Z)({},ef.up("sm"),(0,m.Z)({paddingLeft:ep(3),paddingRight:ep(3)},t[ef.up("sm")])))},toolbar:(t={minHeight:56},(0,y.Z)(t,"".concat(ef.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,y.Z)(t,ef.up("sm"),{minHeight:64}),t)},void 0===ea?{}:ea),overrides:{},palette:ed,props:{},shadows:N,typography:(f=void 0===(c=(s="function"==typeof(a=void 0===ec?{}:ec)?a(ed):a).fontFamily)?M:c,D=void 0===(L=s.fontSize)?14:L,j=void 0===(B=s.fontWeightLight)?300:B,V=void 0===(q=s.fontWeightRegular)?400:q,H=void 0===(K=s.fontWeightMedium)?500:K,W=s.fontWeightBold,J=void 0===(Y=s.htmlFontSize)?16:Y,Z=s.allVariants,Q=s.pxToRem,X=(0,p.Z)(s,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),ee=D/14,et=Q||function(t){return"".concat(t/J*ee,"rem")},er={h1:(en=function(t,a,s,c,p){return(0,m.Z)({fontFamily:f,fontWeight:t,fontSize:et(a),lineHeight:s},f===M?{letterSpacing:"".concat(round(c/a),"em")}:{},p,Z)})(j,96,1.167,-1.5),h2:en(j,60,1.2,-.5),h3:en(V,48,1.167,0),h4:en(V,34,1.235,.25),h5:en(V,24,1.334,0),h6:en(H,20,1.6,.15),subtitle1:en(V,16,1.75,.15),subtitle2:en(H,14,1.57,.1),body1:en(V,16,1.5,.15),body2:en(V,14,1.43,.15),button:en(H,14,1.75,.4,R),caption:en(V,12,1.66,.4),overline:en(V,12,2.66,1,R)},(0,g.Z)((0,m.Z)({htmlFontSize:J,pxToRem:et,round:roundWithDeprecationWarning,fontFamily:f,fontSize:D,fontWeightLight:j,fontWeightRegular:V,fontWeightMedium:H,fontWeightBold:void 0===W?700:W},er),X,{clone:!1})),spacing:ep,shape:U,transitions:G.ZP,zIndex:$.Z},el),eg=arguments.length,em=Array(eg>1?eg-1:0),ev=1;ev<eg;ev++)em[ev-1]=arguments[ev];return em.reduce(function(t,a){return(0,g.Z)(t,a)},eh)}},43366:function(t,a,s){"use strict";s.d(a,{x9:function(){return p}});
1var c=s(45987),f={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},p={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function formatMs(t){return"".concat(Math.round(t),"ms")}a.ZP={easing:f,duration:p,create:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.duration,g=void 0===s?p.standard:s,m=a.easing,v=void 0===m?f.easeInOut:m,y=a.delay,_=void 0===y?0:y;return(0,c.Z)(a,["duration","easing","delay"]),(Array.isArray(t)?t:[t]).map(function(t){return"".concat(t," ").concat("string"==typeof g?g:formatMs(g)," ").concat(v," ").concat("string"==typeof _?_:formatMs(_))}).join(",")},getAutoHeightDuration:function(t){if(!t)return 0;var a=t/36;return Math.round((4+15*Math.pow(a,.25)+a/5)*10)}}},92781:function(t,a){"use strict";a.Z={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}},17076:function(t,a){"use strict";var s="function"==typeof Symbol&&Symbol.for;a.Z=s?Symbol.for("mui.nested"):"__THEME_NESTED__"},5034:function(t,a,s){"use strict";s.d(a,{Z:function(){return createGenerateClassName}});var c=s(17076),f=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function createGenerateClassName(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=t.disableGlobal,s=void 0!==a&&a,p=t.productionPrefix,g=void 0===p?"jss":p,m=t.seed,v=void 0===m?"":m,y=""===v?"":"".concat(v,"-"),_=0,getNextCounterId=function(){return _+=1};return function(t,a){var p=a.options.name;if(p&&0===p.indexOf("Mui")&&!a.options.link&&!s){if(-1!==f.indexOf(t.key))return"Mui-".concat(t.key);var m="".concat(y).concat(p,"-").concat(t.key);return a.options.theme[c.Z]&&""===v?"".concat(m,"-").concat(getNextCounterId()):m}return"".concat(y).concat(g).concat(getNextCounterId())}}},83800:function(t,a,s){"use strict";var c=s(67294).createContext(null);a.Z=c},159:function(t,a,s){"use strict";s.d(a,{Z:function(){return useTheme}});var c=s(67294),f=s(83800);function useTheme(){return c.useContext(f.Z)}},35953:function(t,a,s){"use strict";s.d(a,{Z:function(){return function deepmerge(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},f=s.clone?(0,c.Z)({},t):t;return isPlainObject(t)&&isPlainObject(a)&&Object.keys(a).forEach(function(c){"__proto__"!==c&&(isPlainObject(a[c])&&c in t?f[c]=deepmerge(t[c],a[c],s):f[c]=a[c])}),f}}});var c=s(87462),f=s(71002);function isPlainObject(t){return t&&"object"===(0,f.Z)(t)&&t.constructor===Object}},60288:function(t,a,s){"use strict";function formatMuiErrorMessage(t){for(var a="https://mui.com/production-error/?code="+t,s=1;s<arguments.length;s+=1)a+="&args[]="+encodeURIComponent(arguments[s]);return"Minified Material-UI error #"+t+"; visit "+a+" for the full message."}s.d(a,{Z:function(){return formatMuiErrorMessage}})},940:function(t,a,s){"use strict";s.d(a,{sD:function(){return m},ZA:function(){return O},xk:function(){return R},bR:function(){return M},ws:function(){return G},KC:function(){return q},AM:function(){return J},MZ:function(){return L},eR:function(){return Q}});/*!
2 * Copyright 2016 Amazon.com,
3 * Inc. or its affiliates. All Rights Reserved.
4 *
5 * Licensed under the Amazon Software License (the "License").
6 * You may not use this file except in compliance with the
7 * License. A copy of the License is located at
8 *
9 *     http://aws.amazon.com/asl/
10 *
11 * or in the "license" file accompanying this file. This file is
12 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
13 * CONDITIONS OF ANY KIND, express or implied. See the License
14 * for the specific language governing permissions and
15 * limitations under the License.
16 */var c,f,p,g,m=function(){function AuthenticationDetails(t){var a=t||{},s=a.ValidationData,c=a.Username,f=a.Password,p=a.AuthParameters,g=a.ClientMetadata;this.validationData=s||{},this.authParameters=p||{},this.clientMetadata=g||{},this.username=c,this.password=f}
16var t=AuthenticationDetails.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},AuthenticationDetails}(),v=s(48764),y=s(78249),_=s.n(y);s(4433);var b=s(52153),S=s.n(b),w=s(88010),C=s.n(w);if("undefined"!=typeof window&&window.crypto&&(c=window.crypto),!c&&"undefined"!=typeof window&&window.msCrypto&&(c=window.msCrypto),!c&&void 0!==s.g&&s.g.crypto&&(c=s.g.crypto),!c)try{c=s(56249)}catch(t){}var E=function(){function WordArray(t,a){t=this.words=t||[],void 0!=a?this.sigBytes=a:this.sigBytes=4*t.length}var t=WordArray.prototype;return t.random=function(t){for(var a=[],s=0;s<t;s+=4)a.push(function(){if(c){if("function"==typeof c.getRandomValues)try{return c.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof c.randomBytes)try{return c.randomBytes(4).readInt32LE()}catch(t){}}throw Error("Native crypto module could not be used to get secure random number.")}());return new WordArray(a,t)},t.toString=function(){return function(t){for(var a=t.words,s=t.sigBytes,c=[],f=0;f<s;f++){var p=a[f>>>2]>>>24-f%4*8&255;c.push((p>>>4).toString(16)),c.push((15&p).toString(16))}return c.join("")}(this)},WordArray}();function BigInteger_BigInteger(t,a){null!=t&&this.fromString(t,a)}function nbi(){return new BigInteger_BigInteger(null)}var x="undefined"!=typeof navigator;x&&"Microsoft Internet Explorer"==navigator.appName?(BigInteger_BigInteger.prototype.am=function(t,a,s,c,f,p){for(var g=32767&a,m=a>>15;--p>=0;){var v=32767&this[t],y=this[t++]>>15,_=m*v+y*g;f=((v=g*v+((32767&_)<<15)+s[c]+(1073741823&f))>>>30)+(_>>>15)+m*y+(f>>>30),s[c++]=1073741823&v}return f},f=30):x&&"Netscape"!=navigator.appName?(BigInteger_BigInteger.prototype.am=function(t,a,s,c,f,p){for(;--p>=0;){var g=a*this[t++]+s[c]+f;f=Math.floor(g/67108864),s[c++]=67108863&g}return f},f=26):(BigInteger_BigInteger.prototype.am=function(t,a,s,c,f,p){for(var g=16383&a,m=a>>14;--p>=0;){var v=16383&this[t],y=this[t++]>>14,_=m*v+y*g;f=((v=g*v+((16383&_)<<14)+s[c]+f)>>28)+(_>>14)+m*y,s[c++]=268435455&v}return f},f=28),BigInteger_BigInteger.prototype.DB=f,BigInteger_BigInteger.prototype.DM=(1<<f)-1,BigInteger_BigInteger.prototype.DV=1<<f,BigInteger_BigInteger.prototype.FV=4503599627370496,BigInteger_BigInteger.prototype.F1=52-f,BigInteger_BigInteger.prototype.F2=2*f-52;var P=[];for(g=0,p=48;g<=9;++g)P[p++]=g;for(g=10,p=97;g<36;++g)P[p++]=g;for(g=10,p=65;g<36;++g)P[p++]=g;function int2char(t){return"0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)}function nbv(t){var a=nbi();return a.fromInt(t),a}function nbits(t){var a,s=1;return 0!=(a=t>>>16)&&(t=a,s+=16),0!=(a=t>>8)&&(t=a,s+=8),0!=(a=t>>4)&&(t=a,s+=4),0!=(a=t>>2)&&(t=a,s+=2),0!=(a=t>>1)&&(t=a,s+=1),s}function Montgomery(t){this.m=t,this.mp=t.invDigit(),this.mpl=32767&this.mp,this.mph=this.mp>>15,this.um=(1<<t.DB-15)-1,this.mt2=2*t.t}/*!
17 * Copyright 2016 Amazon.com,
18 * Inc. or its affiliates. All Rights Reserved.
19 *
20 * Licensed under the Amazon Software License (the "License").
21 * You may not use this file except in compliance with the
22 * License. A copy of the License is located at
23 *
24 *     http://aws.amazon.com/asl/
25 *
26 * or in the "license" file accompanying this file. This file is
27 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
28 * CONDITIONS OF ANY KIND, express or implied. See the License
29 * for the specific language governing permissions and
30 * limitations under the License.
31 */function randomBytes(t){return v.lW.from(new E().random(t).toString(),"hex")}Montgomery.prototype.convert=function(t){var a=nbi();return t.abs().dlShiftTo(this.m.t,a),a.divRemTo(this.m,null,a),t.s<0&&a.compareTo(BigInteger_BigInteger.ZERO)>0&&this.m.subTo(a,a),a},Montgomery.prototype.revert=function(t){var a=nbi();return t.copyTo(a),this.reduce(a),a},Montgomery.prototype.reduce=function(t){for(;t.t<=this.mt2;)t[t.t++]=0;for(var a=0;a<this.m.t;++a){var s=32767&t[a],c=s*this.mpl+((s*this.mph+(t[a]>>15)*this.mpl&this.um)<<15)&t.DM;for(s=a+this.m.t,t[s]+=this.m.am(0,c,t,a,0,this.m.t);t[s]>=t.DV;)t[s]-=t.DV,t[++s]++}t.clamp(),t.drShiftTo(this.m.t,t),t.compareTo(this.m)>=0&&t.subTo(this.m,t)},Montgomery.prototype.mulTo=function(t,a,s){t.multiplyTo(a,s),this.reduce(s)},Montgomery.prototype.sqrTo=function(t,a){t.squareTo(a),this.reduce(a)},BigInteger_BigInteger.prototype.copyTo=function(t){for(var a=this.t-1;a>=0;--a)t[a]=this[a];
vendor: 6,814 bytes, line 31
31t.t=this.t,t.s=this.s},BigInteger_BigInteger.prototype.fromInt=function(t){this.t=1,this.s=t<0?-1:0,t>0?this[0]=t:t<-1?this[0]=t+this.DV:this.t=0},BigInteger_BigInteger.prototype.fromString=function(t,a){if(16==a)s=4;else if(8==a)s=3;else if(2==a)s=1;else if(32==a)s=5;else if(4==a)s=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");this.t=0,this.s=0;for(var s,c=t.length,f=!1,p=0;--c>=0;){var g=function(t,a){var s=P[t.charCodeAt(a)];return null==s?-1:s}(t,c);if(g<0){"-"==t.charAt(c)&&(f=!0);continue}f=!1,0==p?this[this.t++]=g:p+s>this.DB?(this[this.t-1]|=(g&(1<<this.DB-p)-1)<<p,this[this.t++]=g>>this.DB-p):this[this.t-1]|=g<<p,(p+=s)>=this.DB&&(p-=this.DB)}this.clamp(),f&&BigInteger_BigInteger.ZERO.subTo(this,this)},BigInteger_BigInteger.prototype.clamp=function(){for(var t=this.s&this.DM;this.t>0&&this[this.t-1]==t;)--this.t},BigInteger_BigInteger.prototype.dlShiftTo=function(t,a){var s;for(s=this.t-1;s>=0;--s)a[s+t]=this[s];for(s=t-1;s>=0;--s)a[s]=0;a.t=this.t+t,a.s=this.s},BigInteger_BigInteger.prototype.drShiftTo=function(t,a){for(var s=t;s<this.t;++s)a[s-t]=this[s];a.t=Math.max(this.t-t,0),a.s=this.s},BigInteger_BigInteger.prototype.lShiftTo=function(t,a){var s,c=t%this.DB,f=this.DB-c,p=(1<<f)-1,g=Math.floor(t/this.DB),m=this.s<<c&this.DM;for(s=this.t-1;s>=0;--s)a[s+g+1]=this[s]>>f|m,m=(this[s]&p)<<c;for(s=g-1;s>=0;--s)a[s]=0;a[g]=m,a.t=this.t+g+1,a.s=this.s,a.clamp()},BigInteger_BigInteger.prototype.rShiftTo=function(t,a){a.s=this.s;var s=Math.floor(t/this.DB);if(s>=this.t){a.t=0;return}var c=t%this.DB,f=this.DB-c,p=(1<<c)-1;a[0]=this[s]>>c;for(var g=s+1;g<this.t;++g)a[g-s-1]|=(this[g]&p)<<f,a[g-s]=this[g]>>c;c>0&&(a[this.t-s-1]|=(this.s&p)<<f),a.t=this.t-s,a.clamp()},BigInteger_BigInteger.prototype.subTo=function(t,a){for(var s=0,c=0,f=Math.min(t.t,this.t);s<f;)c+=this[s]-t[s],a[s++]=c&this.DM,c>>=this.DB;if(t.t<this.t){for(c-=t.s;s<this.t;)c+=this[s],a[s++]=c&this.DM,c>>=this.DB;c+=this.s}else{for(c+=this.s;s<t.t;)c-=t[s],a[s++]=c&this.DM,c>>=this.DB;c-=t.s}a.s=c<0?-1:0,c<-1?a[s++]=this.DV+c:c>0&&(a[s++]=c),a.t=s,a.clamp()},BigInteger_BigInteger.prototype.multiplyTo=function(t,a){var s=this.abs(),c=t.abs(),f=s.t;for(a.t=f+c.t;--f>=0;)a[f]=0;for(f=0;f<c.t;++f)a[f+s.t]=s.am(0,c[f],a,f,0,s.t);a.s=0,a.clamp(),this.s!=t.s&&BigInteger_BigInteger.ZERO.subTo(a,a)},BigInteger_BigInteger.prototype.squareTo=function(t){for(var a=this.abs(),s=t.t=2*a.t;--s>=0;)t[s]=0;for(s=0;s<a.t-1;++s){var c=a.am(s,a[s],t,2*s,0,1);(t[s+a.t]+=a.am(s+1,2*a[s],t,2*s+1,c,a.t-s-1))>=a.DV&&(t[s+a.t]-=a.DV,t[s+a.t+1]=1)}t.t>0&&(t[t.t-1]+=a.am(s,a[s],t,2*s,0,1)),t.s=0,t.clamp()},BigInteger_BigInteger.prototype.divRemTo=function(t,a,s){var c=t.abs();if(!(c.t<=0)){var f=this.abs();if(f.t<c.t){null!=a&&a.fromInt(0),null!=s&&this.copyTo(s);return}null==s&&(s=nbi());var p=nbi(),g=this.s,m=t.s,v=this.DB-nbits(c[c.t-1]);v>0?(c.lShiftTo(v,p),f.lShiftTo(v,s)):(c.copyTo(p),f.copyTo(s));var y=p.t,_=p[y-1];if(0!=_){var b=_*(1<<this.F1)+(y>1?p[y-2]>>this.F2:0),S=this.FV/b,w=(1<<this.F1)/b,C=1<<this.F2,E=s.t,x=E-y,P=null==a?nbi():a;for(p.dlShiftTo(x,P),s.compareTo(P)>=0&&(s[s.t++]=1,s.subTo(P,s)),BigInteger_BigInteger.ONE.dlShiftTo(y,P),P.subTo(p,p);p.t<y;)p[p.t++]=0;for(;--x>=0;){var I=s[--E]==_?this.DM:Math.floor(s[E]*S+(s[E-1]+C)*w);if((s[E]+=p.am(0,I,s,x,0,y))<I)for(p.dlShiftTo(x,P),s.subTo(P,s);s[E]<--I;)s.subTo(P,s)}null!=a&&(s.drShiftTo(y,a),g!=m&&BigInteger_BigInteger.ZERO.subTo(a,a)),s.t=y,s.clamp(),v>0&&s.rShiftTo(v,s),g<0&&BigInteger_BigInteger.ZERO.subTo(s,s)}}},BigInteger_BigInteger.prototype.invDigit=function(){if(this.t<1)return 0;var t=this[0];if((1&t)==0)return 0;var a=3&t;return(a=(a=(a=(a=a*(2-(15&t)*a)&15)*(2-(255&t)*a)&255)*(2-((65535&t)*a&65535))&65535)*(2-t*a%this.DV)%this.DV)>0?this.DV-a:-a},BigInteger_BigInteger.prototype.addTo=function(t,a){for(var s=0,c=0,f=Math.min(t.t,this.t);s<f;)c+=this[s]+t[s],a[s++]=c&this.DM,c>>=this.DB;if(t.t<this.t){for(c+=t.s;s<this.t;)c+=this[s],a[s++]=c&this.DM,c>>=this.DB;c+=this.s}else{for(c+=this.s;s<t.t;)c+=t[s],a[s++]=c&this.DM,c>>=this.DB;c+=t.s}a.s=c<0?-1:0,c>0?a[s++]=c:c<-1&&(a[s++]=this.DV+c),a.t=s,a.clamp()},BigInteger_BigInteger.prototype.toString=function(t){if(this.s<0)return"-"+this.negate().toString(t);if(16==t)a=4;else if(8==t)a=3;else if(2==t)a=1;else if(32==t)a=5;else if(4==t)a=2;else throw Error("Only radix 2, 4, 8, 16, 32 are supported");var a,s,c=(1<<a)-1,f=!1,p="",g=this.t,m=this.DB-g*this.DB%a;if(g-- >0)for(m<this.DB&&(s=this[g]>>m)>0&&(f=!0,p=int2char(s));g>=0;)m<a?s=(this[g]&(1<<m)-1)<<a-m|this[--g]>>(m+=this.DB-a):(s=this[g]>>(m-=a)&c,m<=0&&(m+=this.DB,--g)),s>0&&(f=!0),f&&(p+=int2char(s));return f?p:"0"},BigInteger_BigInteger.prototype.negate=function(){var t=nbi();return BigInteger_BigInteger.ZERO.subTo(this,t),t},BigInteger_BigInteger.prototype.abs=function(){return this.s<0?this.negate():this},BigInteger_BigInteger.prototype.compareTo=function(t){var a=this.s-t.s;if(0!=a)return a;var s=this.t;if(0!=(a=s-t.t))return this.s<0?-a:a;for(;--s>=0;)if(0!=(a=this[s]-t[s]))return a;return 0},BigInteger_BigInteger.prototype.bitLength=function(){return this.t<=0?0:this.DB*(this.t-1)+nbits(this[this.t-1]^this.s&this.DM)},BigInteger_BigInteger.prototype.mod=function(t){var a=nbi();return this.abs().divRemTo(t,null,a),this.s<0&&a.compareTo(BigInteger_BigInteger.ZERO)>0&&t.subTo(a,a),a},BigInteger_BigInteger.prototype.equals=function(t){return 0==this.compareTo(t)},BigInteger_BigInteger.prototype.add=function(t){var a=nbi();return this.addTo(t,a),a},BigInteger_BigInteger.prototype.subtract=function(t){var a=nbi();return this.subTo(t,a),a},BigInteger_BigInteger.prototype.multiply=function(t){var a=nbi();return this.multiplyTo(t,a),a},BigInteger_BigInteger.prototype.divide=function(t){var a=nbi();return this.divRemTo(t,a,null),a},BigInteger_BigInteger.prototype.modPow=function(t,a,s){var c,f=t.bitLength(),p=nbv(1),g=new Montgomery(a);if(f<=0)return p;var m=[],v=3,y=(c=f<18?1:f<48?3:f<144?4:f<768?5:6)-1,_=(1<<c)-1;if(m[1]=g.convert(this),c>1){var b=nbi();for(g.sqrTo(m[1],b);v<=_;)m[v]=nbi(),g.mulTo(b,m[v-2],m[v]),v+=2}var S,w,C=t.t-1,E=!0,x=nbi();for(f=nbits(t[C])-1;C>=0;){for(f>=y?S=t[C]>>f-y&_:(S=(t[C]&(1<<f+1)-1)<<y-f,C>0&&(S|=t[C-1]>>this.DB+f-y)),v=c;(1&S)==0;)S>>=1,--v;if((f-=v)<0&&(f+=this.DB,--C),E)m[S].copyTo(p),E=!1;else{for(;v>1;)g.sqrTo(p,x),g.sqrTo(x,p),v-=2;v>0?g.sqrTo(p,x):(w=p,p=x,x=w),g.mulTo(x,m[S],p)}for(;C>=0&&(t[C]&1<<f)==0;)g.sqrTo(p,x),w=p,p=x,x=w,--f<0&&(f=this.DB-1,--C)}var P=g.revert(p);return s(null,P),P},BigInteger_BigInteger.ZERO=nbv(0),BigInteger_BigInteger.ONE=nbv(1);var I=/^[89a-f]/i,T=function(){function AuthenticationHelper(t){this.N=new BigInteger_BigInteger("FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD129024E088A67CC74020BBEA63B139B22514A08798E3404DDEF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245E485B576625E
317EC6F44C42E9A637ED6B0BFF5CB6F406B7EDEE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3DC2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F83655D23DCA3AD961C62F356208552BB9ED529077096966D670C354E4ABC9804F1746C08CA18217C32905E462E36CE3BE39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9DE2BCBF6955817183995497CEA956AE515D2261898FA051015728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6BF12FFA06D98A0864D87602733EC86A64521F2B18177B200CBBE117577A615D6C770988C0BAD946E208E24FA074E5AB3143DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF",16),this.g=new BigInteger_BigInteger("2",16),this.k=new BigInteger_BigInteger(this.hexHash(""+this.padHex(this.N)+this.padHex(this.g)),16),this.smallAValue=this.generateRandomSmallA(),this.getLargeAValue(function(){}),this.infoBits=v.lW.from("Caldera Derived Key","utf8"),this.poolName=t}var t=AuthenticationHelper.prototype;return t.getSmallAValue=function(){return this.smallAValue},t.getLargeAValue=function(t){var a=this;this.largeAValue?t(null,this.largeAValue):this.calculateA(this.smallAValue,function(s,c){s&&t(s,null),a.largeAValue=c,t(null,a.largeAValue)})},t.generateRandomSmallA=function(){var t=randomBytes(128).toString("hex");return new BigInteger_BigInteger(t,16)},t.generateRandomString=function(){return randomBytes(40).toString("base64")},t.getRandomPassword=function(){return this.randomPassword},t.getSaltDevices=function(){return this.SaltToHashDevices},t.getVerifierDevices=function(){return this.verifierDevices},t.generateHashDevice=function(t,a,s){var c=this;this.randomPassword=this.generateRandomString();var f=""+t+a+":"+this.randomPassword,p=this.hash(f),g=randomBytes(16).toString("hex");this.SaltToHashDevices=this.padHex(new BigInteger_BigInteger(g,16)),this.g.modPow(new BigInteger_BigInteger(this.hexHash(this.SaltToHashDevices+p),16),this.N,function(t,a){t&&s(t,null),c.verifierDevices=c.padHex(a),s(null,null)})},t.calculateA=function(t,a){var s=this;this.g.modPow(t,this.N,function(t,c){t&&a(t,null),c.mod(s.N).equals(BigInteger_BigInteger.ZERO)&&a(Error("Illegal paramater. A mod N cannot be 0."),null),a(null,c)})},t.calculateU=function(t,a){return this.UHexHash=this.hexHash(this.padHex(t)+this.padHex(a)),new BigInteger_BigInteger(this.UHexHash,16)},t.hash=function(t){var a=t instanceof v.lW?_().lib.WordArray.create(t):t,s=S()(a).toString();return Array(64-s.length).join("0")+s},t.hexHash=function(t){return this.hash(v.lW.from(t,"hex"))},t.computehkdf=function(t,a){var s=_().lib.WordArray.create(v.lW.concat([this.infoBits,v.lW.from("\x01","utf8")])),c=t instanceof v.lW?_().lib.WordArray.create(t):t,f=a instanceof v.lW?_().lib.WordArray.create(a):a,p=C()(c,f),g=C()(s,p);return v.lW.from(g.toString(),"hex").slice(0,16)},t.getPasswordAuthenticationKey=function(t,a,s,c,f){var p=this;if(s.mod(this.N).equals(BigInteger_BigInteger.ZERO))throw Error("B cannot be zero.");if(this.UValue=this.calculateU(this.largeAValue,s),this.UValue.equals(BigInteger_BigInteger.ZERO))throw Error("U cannot be zero.");var g=""+this.poolName+t+":"+a,m=this.hash(g),y=new BigInteger_BigInteger(this.hexHash(this.padHex(c)+m),16);this.calculateS(y,s,function(t,a){t&&f(t,null),f(null,p.computehkdf(v.lW.from(p.padHex(a),"hex"),v.lW.from(p.padHex(p.UValue),"hex")))})},t.calculateS=function(t,a,s){var c=this;this.g.modPow(t,this.N,function(f,p){f&&s(f,null),a.subtract(c.k.multiply(p)).modPow(c.smallAValue.add(c.UValue.multiply(t)),c.N,function(t,a){t&&s(t,null),s(null,a.mod(c.N))})})},t.getNewPasswordRequiredChallengeUserAttributePrefix=function(){return"userAttributes."},t.padHex=function(t){if(!(t instanceof BigInteger_BigInteger))throw Error("Not a BigInteger");var a=0>t.compareTo(BigInteger_BigInteger.ZERO),s=t.abs().toString(16);if(s=s.length%2!=0?"0"+s:s,s=I.test(s)?"00"+s:s,a){var c=s.split("").map(function(t){var a=15&~parseInt(t,16);return"0123456789ABCDEF".charAt(a)}).join("");(s=new BigInteger_BigInteger(c,16).add(BigInteger_BigInteger.ONE).toString(16)).toUpperCase().startsWith("FF8")&&(s=s.substring(2))}return s},AuthenticationHelper}(),k=function(){function CognitoJwtToken(t){this.jwtToken=t||"",this.payload=this.decodePayload()}var t=CognitoJwtToken.prototype;return t.getJwtToken=function(){return this.jwtToken},t.getExpiration=function(){return this.payload.exp},t.getIssuedAt=function(){return this.payload.iat},t.decodePayload=function(){var t=this.jwtToken.split(".")[1];try{return JSON.parse(v.lW.from(t,"base64").toString("utf8"))}catch(t){return{}}},CognitoJwtToken}();function _setPrototypeOf(t,a){return(_setPrototypeOf=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t})(t,a)}var O=function(t){function CognitoAccessToken(a){var s=(void 0===a?{}:a).AccessToken;return t.call(this,s||"")||this}return CognitoAccessToken.prototype=Object.create(t.prototype),CognitoAccessToken.prototype.constructor=CognitoAccessToken,_setPrototypeOf(CognitoAccessToken,t),CognitoAccessToken}(k);function CognitoIdToken_setPrototypeOf(t,a){return(CognitoIdToken_setPrototypeOf=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t})(t,a)}/*!
32 * Copyright 2016 Amazon.com,
33 * Inc. or its affiliates. All Rights Reserved.
34 *
35 * Licensed under the Amazon Software License (the "License").
36 * You may not use this file except in compliance with the
37 * License. A copy of the License is located at
38 *
39 *     http://aws.amazon.com/asl/
40 *
41 * or in the "license" file accompanying this file. This file is
42 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
43 * CONDITIONS OF ANY KIND, express or implied. See the License
44 * for the specific language governing permissions and
45 * limitations under the License.
46 */var R=function(t){function CognitoIdToken(a){var s=(void 0===a?{}:a).IdToken;return t.call(this,s||"")||this}return CognitoIdToken.prototype=Object.create(t.prototype),CognitoIdToken.prototype.constructor=CognitoIdToken,
46CognitoIdToken_setPrototypeOf(CognitoIdToken,t),CognitoIdToken}(k),M=function(){function CognitoRefreshToken(t){var a=(void 0===t?{}:t).RefreshToken;this.token=a||""}return CognitoRefreshToken.prototype.getToken=function(){return this.token},CognitoRefreshToken}(),N=s(98269),U=s.n(N),L=function(){function CognitoUserSession(t){var a=void 0===t?{}:t,s=a.IdToken,c=a.RefreshToken,f=a.AccessToken,p=a.ClockDrift;if(null==f||null==s)throw Error("Id token and Access Token must be present.");this.idToken=s,this.refreshToken=c,this.accessToken=f,this.clockDrift=void 0===p?this.calculateClockDrift():p}var t=CognitoUserSession.prototype;return t.getIdToken=function(){return this.idToken},t.getRefreshToken=function(){return this.refreshToken},t.getAccessToken=function(){return this.accessToken},t.getClockDrift=function(){return this.clockDrift},t.calculateClockDrift=function(){return Math.floor(new Date/1e3)-Math.min(this.accessToken.getIssuedAt(),this.idToken.getIssuedAt())},t.isValid=function(){var t=Math.floor(new Date/1e3)-this.clockDrift;return t<this.accessToken.getExpiration()&&t<this.idToken.getExpiration()},CognitoUserSession}(),D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],j=function(){function DateHelper(){}return DateHelper.prototype.getNowString=function(){var t=new Date,a=B[t.getUTCDay()],s=D[t.getUTCMonth()],c=t.getUTCDate(),f=t.getUTCHours();f<10&&(f="0"+f);var p=t.getUTCMinutes();p<10&&(p="0"+p);var g=t.getUTCSeconds();return g<10&&(g="0"+g),a+" "+s+" "+c+" "+f+":"+p+":"+g+" UTC "+t.getUTCFullYear()},DateHelper}(),q=function(){function CognitoUserAttribute(t){var a=void 0===t?{}:t,s=a.Name,c=a.Value;this.Name=s||"",this.Value=c||""}var t=CognitoUserAttribute.prototype;return t.getValue=function(){return this.Value},t.setValue=function(t){return this.Value=t,this},t.getName=function(){return this.Name},t.setName=function(t){return this.Name=t,this},t.toString=function(){return JSON.stringify(this)},t.toJSON=function(){return{Name:this.Name,Value:this.Value}},CognitoUserAttribute}(),V={},K=function(){function MemoryStorage(){}return MemoryStorage.setItem=function(t,a){return V[t]=a,V[t]},MemoryStorage.getItem=function(t){return Object.prototype.hasOwnProperty.call(V,t)?V[t]:void 0},MemoryStorage.removeItem=function(t){return delete V[t]},MemoryStorage.clear=function(){return V={}},MemoryStorage}(),H=function(){function StorageHelper(){try{this.storageWindow=window.localStorage,this.storageWindow.setItem("aws.cognito.test-ls",1),this.storageWindow.removeItem("aws.cognito.test-ls")}catch(t){this.storageWindow=K}}return StorageHelper.prototype.getStorage=function(){return this.storageWindow},StorageHelper}(),W="undefined"!=typeof navigator?navigator.userAgent:"nodejs",G=function(){function CognitoUser(t){if(null==t||null==t.Username||null==t.Pool)throw Error("Username and Pool information are required.");this.username=t.Username||"",this.pool=t.Pool,this.Session=null,this.client=t.Pool.client,this.signInUserSession=null,this.authenticationFlowType="USER_SRP_AUTH",this.storage=t.Storage||new H().getStorage(),this.keyPrefix="CognitoIdentityServiceProvider."+this.pool.getClientId(),this.userDataKey=this.keyPrefix+"."+this.username+".userData"}var t=CognitoUser.prototype;return t.setSignInUserSession=function(t){this.clearCachedUserData(),this.signInUserSession=t,this.cacheTokens()},t.getSignInUserSession=function(){return this.signInUserSession},t.getUsername=function(){return this.username},t.getAuthenticationFlowType=function(){return this.authenticationFlowType},t.setAuthenticationFlowType=function(t){this.authenticationFlowType=t},t.initiateAuth=function(t,a){var s=this,c=t.getAuthParameters();c.USERNAME=this.username;var f=0!==Object.keys(t.getValidationData()).length?t.getValidationData():t.getClientMetadata(),p={AuthFlow:"CUSTOM_AUTH",ClientId:this.pool.getClientId(),AuthParameters:c,ClientMetadata:f};this.getUserContextData()&&(p.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",p,function(t,c){if(t)return a.onFailure(t);var f=c.ChallengeName,p=c.ChallengeParameters;return"CUSTOM_CHALLENGE"===f?(s.Session=c.Session,a.customChallenge(p)):(s.signInUserSession=s.getCognitoUserSession(c.AuthenticationResult),s.cacheTokens(),a.onSuccess(s.signInUserSession))})},t.authenticateUser=function(t,a){return"USER_PASSWORD_AUTH"===this.authenticationFlowType?this.authenticateUserPlainUsernamePassword(t,a):"USER_
46SRP_AUTH"===this.authenticationFlowType||"CUSTOM_AUTH"===this.authenticationFlowType?this.authenticateUserDefaultAuth(t,a):a.onFailure(Error("Authentication flow type is invalid."))},t.authenticateUserDefaultAuth=function(t,a){var s,c,f=this,p=new T(this.pool.getUserPoolId().split("_")[1]),g=new j,m={};null!=this.deviceKey&&(m.DEVICE_KEY=this.deviceKey),m.USERNAME=this.username,p.getLargeAValue(function(y,b){y&&a.onFailure(y),m.SRP_A=b.toString(16),"CUSTOM_AUTH"===f.authenticationFlowType&&(m.CHALLENGE_NAME="SRP_A");var S=0!==Object.keys(t.getValidationData()).length?t.getValidationData():t.getClientMetadata(),w={AuthFlow:f.authenticationFlowType,ClientId:f.pool.getClientId(),AuthParameters:m,ClientMetadata:S};f.getUserContextData(f.username)&&(w.UserContextData=f.getUserContextData(f.username)),f.client.request("InitiateAuth",w,function(m,y){if(m)return a.onFailure(m);var b=y.ChallengeParameters;f.username=b.USER_ID_FOR_SRP,f.userDataKey=f.keyPrefix+"."+f.username+".userData",s=new BigInteger_BigInteger(b.SRP_B,16),c=new BigInteger_BigInteger(b.SALT,16),f.getCachedDeviceKeyAndPassword(),p.getPasswordAuthenticationKey(f.username,t.getPassword(),s,c,function(t,s){t&&a.onFailure(t);var c=g.getNowString(),m=_().lib.WordArray.create(v.lW.concat([v.lW.from(f.pool.getUserPoolId().split("_")[1],"utf8"),v.lW.from(f.username,"utf8"),v.lW.from(b.SECRET_BLOCK,"base64"),v.lW.from(c,"utf8")])),w=_().lib.WordArray.create(s),E=U().stringify(C()(m,w)),x={};x.USERNAME=f.username,x.PASSWORD_CLAIM_SECRET_BLOCK=b.SECRET_BLOCK,x.TIMESTAMP=c,x.PASSWORD_CLAIM_SIGNATURE=E,null!=f.deviceKey&&(x.DEVICE_KEY=f.deviceKey);var P={ChallengeName:"PASSWORD_VERIFIER",ClientId:f.pool.getClientId(),ChallengeResponses:x,Session:y.Session,ClientMetadata:S};f.getUserContextData()&&(P.UserContextData=f.getUserContextData()),function respondToAuthChallenge(t,a){return f.client.request("RespondToAuthChallenge",t,function(s,c){return s&&"ResourceNotFoundException"===s.co
46de&&-1!==s.message.toLowerCase().indexOf("device")?(x.DEVICE_KEY=null,f.deviceKey=null,f.randomPassword=null,f.deviceGroupKey=null,f.clearCachedDeviceKeyAndPassword(),respondToAuthChallenge(t,a)):a(s,c)})}(P,function(t,s){return t?a.onFailure(t):f.authenticateUserInternal(s,p,a)})})})})},t.authenticateUserPlainUsernamePassword=function(t,a){var s=this,c={};if(c.USERNAME=this.username,c.PASSWORD=t.getPassword(),!c.PASSWORD){a.onFailure(Error("PASSWORD parameter is required"));return}var f=new T(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(c.DEVICE_KEY=this.deviceKey);var p=0!==Object.keys(t.getValidationData()).length?t.getValidationData():t.getClientMetadata(),g={AuthFlow:"USER_PASSWORD_AUTH",ClientId:this.pool.getClientId(),AuthParameters:c,ClientMetadata:p};this.getUserContextData(this.username)&&(g.UserContextData=this.getUserContextData(this.username)),this.client.request("InitiateAuth",g,function(t,c){return t?a.onFailure(t):s.authenticateUserInternal(c,f,a)})},t.authenticateUserInternal=function(t,a,s){var c=this,f=t.ChallengeName,p=t.ChallengeParameters;if("SMS_MFA"===f)return this.Session=t.Session,s.mfaRequired(f,p);if("SELECT_MFA_TYPE"===f)return this.Session=t.Session,s.selectMFAType(f,p);if("MFA_SETUP"===f)return this.Session=t.Session,s.mfaSetup(f,p);if("SOFTWARE_TOKEN_MFA"===f)return this.Session=t.Session,s.totpRequired(f,p);if("CUSTOM_CHALLENGE"===f)return this.Session=t.Session,s.customChallenge(p);if("NEW_PASSWORD_REQUIRED"===f){this.Session=t.Session;var g=null,m=null,y=[],_=a.getNewPasswordRequiredChallengeUserAttributePrefix();if(p&&(g=JSON.parse(t.ChallengeParameters.userAttributes),m=JSON.parse(t.ChallengeParameters.requiredAttributes)),m)for(var b=0;b<m.length;b++)y[b]=m[b].substr(_.length);return s.newPasswordRequired(g,y)}if("DEVICE_SRP_AUTH"===f){this.getDeviceResponse(s);return}this.signInUserSession=this.getCognitoUserSession(t.AuthenticationResult),this.challengeName=f,this.cacheTokens();var S=t.AuthenticationResult.NewDeviceMetadata;if(null==S)return s.onSuccess(this.signInUserSession);a.generateHashDevice(t.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,t.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(f){if(f)return s.onFailure(f);var p={Salt:v.lW.from(a.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:v.lW.from(a.getVerifierDevices(),"hex").toString("base64")};c.verifierDevices=p.PasswordVerifier,c.deviceGroupKey=S.DeviceGroupKey,c.randomPassword=a.getRandomPassword(),c.client.request("ConfirmDevice",{DeviceKey:S.DeviceKey,AccessToken:c.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:p,DeviceName:W},function(a,f){return a?s.onFailure(a):(c.deviceKey=t.AuthenticationResult.NewDeviceMetadata.DeviceKey,c.cacheDeviceKeyAndPassword(),!0===f.UserConfirmationNecessary)?s.onSuccess(c.signInUserSession,f.UserConfirmationNecessary):s.onSuccess(c.signInUserSession)})})},t.completeNewPasswordChallenge=function(t,a,s,c){var f=this;if(!t)return s.onFailure(Error("New password is required."));var p=new T(this.pool.getUserPoolId().split("_")[1]),g=p.getNewPasswordRequiredChallengeUserAttributePrefix(),m={};a&&Object.keys(a).forEach(function(t){m[g+t]=a[t]}),m.NEW_PASSWORD=t,m.USERNAME=this.username;var v={ChallengeName:"NEW_PASSWORD_REQUIRED",ClientId:this.pool.getClientId(),ChallengeResponses:m,Session:this.Session,ClientMetadata:c};this.getUserContextData()&&(v.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",v,function(t,a){return t?s.onFailure(t):f.authenticateUserInternal(a,p,s)})},t.getDeviceResponse=function(t,a){var s=this,c=new T(this.deviceGroupKey),f=new j,p={};p.USERNAME=this.username,p.DEVICE_KEY=this.deviceKey,c.getLargeAValue(function(g,m){g&&t.onFailure(g),p.SRP_A=m.toString(16);var y={ChallengeName:"DEVICE_SRP_AUTH",ClientId:s.pool.getClientId(),ChallengeResponses:p,ClientMetadata:a};s.getUserContextData()&&(y.UserContextData=s.getUserContextData()),s.client.request("RespondToAuthChallenge",y,function(a,p){if(a)return t.onFailure(a);var g=p.ChallengeParameters,m=new BigInteger_BigInteger(g.SRP_B,16),y=new BigInteger_BigInteger(g.SALT,16);c.getPasswordAuthenticationKey(s.deviceKey,s.randomPassword,m,y,function(a,c){if(a)return t.onFailure(a);var m=f.getNowString(),y=_().lib.WordArray.create(v.lW.concat([v.lW.from(s.deviceGroupKey,"utf8"),v.lW.from(s.deviceKey,"utf8"),v.lW.from(g.SECRET_BLOCK,"base64"),v.lW.from(m,"utf8")])),b=_().lib.WordArray.create(c),S=U().stringify(C()(y,b)),w={};w.USERNAME=s.username,w.PASSWORD_CLAIM_SECRET_BLOCK=g.SECRET_BLOCK,w.TIMESTAMP=m,w.PASSWORD_CLAIM_SIGNATURE=S,w.DEVICE_KEY=s.deviceKey;var E={ChallengeName:"DEVICE_PASSWORD_VERIFIER",ClientId:s.pool.getClientId(),ChallengeResponses:w,Session:p.Session};s.getUserContextData()&&(E.UserContextData=s.getUserContextData()),s.client.request("RespondToAuthChallenge",E,function(a,c){return a?t.onFailure(a):(s.signInUserSession=s.getCognitoUserSession(c.AuthenticationResult),s.cacheTokens(),t.onSuccess(s.signInUserSession))})})})})},t.confirmRegistration=function(t,a,s,c){var f={ClientId:this.pool.getClientId(),ConfirmationCode:t,Username:this.username,ForceAliasCreation:a,ClientMetadata:c};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("ConfirmSignUp",f,function(t){return t?s(t,null):s(null,"SUCCESS")})},t.sendCustomChallengeAnswer=function(t,a,s){var c=this,f={};f.USERNAME=this.username,f.ANSWER=t;var p=new T(this.pool.getUserPoolId().split("_")[1]);this.getCachedDeviceKeyAndPassword(),null!=this.deviceKey&&(f.DEVICE_KEY=this.deviceKey);var g={ChallengeName:"CUSTOM_CHALLENGE",ChallengeResponses:f,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:s};this.getUserContextData()&&(g.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",g,function(t,s){return t?a.onFailure(t):c.authenticateUserInternal(s,p,a)})},t.sendMFACode=function(t,a,s,c){var f=this,p={};p.USERNAME=this.username,p.SMS_MFA_CODE=t;var g=s||"SMS_MFA";"SOFTWARE_TOKEN_MFA"===g&&(p.SOFTWARE_TOKEN_MFA_CODE=t),null!=this.deviceKey&&(p.DEVICE_KEY=this.deviceKey);var m={ChallengeName:g,ChallengeResponses:p,ClientId:this.pool.getClientId(),Session:this.Session,ClientMetadata:c};this.getUserContextData()&&(m.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",m,function(t,s){if(t)return a.onFailure(t);
46if("DEVICE_SRP_AUTH"===s.ChallengeName){f.getDeviceResponse(a);return}if(f.signInUserSession=f.getCognitoUserSession(s.AuthenticationResult),f.cacheTokens(),null==s.AuthenticationResult.NewDeviceMetadata)return a.onSuccess(f.signInUserSession);var c=new T(f.pool.getUserPoolId().split("_")[1]);c.generateHashDevice(s.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,s.AuthenticationResult.NewDeviceMetadata.DeviceKey,function(t){if(t)return a.onFailure(t);var p={Salt:v.lW.from(c.getSaltDevices(),"hex").toString("base64"),PasswordVerifier:v.lW.from(c.getVerifierDevices(),"hex").toString("base64")};f.verifierDevices=p.PasswordVerifier,f.deviceGroupKey=s.AuthenticationResult.NewDeviceMetadata.DeviceGroupKey,f.randomPassword=c.getRandomPassword(),f.client.request("ConfirmDevice",{DeviceKey:s.AuthenticationResult.NewDeviceMetadata.DeviceKey,AccessToken:f.signInUserSession.getAccessToken().getJwtToken(),DeviceSecretVerifierConfig:p,DeviceName:W},function(t,c){return t?a.onFailure(t):(f.deviceKey=s.AuthenticationResult.NewDeviceMetadata.DeviceKey,f.cacheDeviceKeyAndPassword(),!0===c.UserConfirmationNecessary)?a.onSuccess(f.signInUserSession,c.UserConfirmationNecessary):a.onSuccess(f.signInUserSession)})})})},t.changePassword=function(t,a,s,c){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return s(Error("User is not authenticated"),null);this.client.request("ChangePassword",{PreviousPassword:t,ProposedPassword:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:c},function(t){return t?s(t,null):s(null,"SUCCESS")})},t.enableMFA=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(Error("User is not authenticated"),null);var a=[];a.push({DeliveryMedium:"SMS",AttributeName:"phone_number"}),this.client.request("SetUserSettings",{MFAOptions:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?t(a,null):t(null,"SUCCESS")})},t.setUserMfaPreference=function(t,a,s){if(null==this.signInUserSession||!this.signInUserSession.isValid())return s(Error("User is not authenticated"),null);this.client.request("SetUserMFAPreference",{SMSMfaSettings:t,SoftwareTokenMfaSettings:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t){return t?s(t,null):s(null,"SUCCESS")})},t.disableMFA=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(Error("User is not authenticated"),null);this.client.request("SetUserSettings",{MFAOptions:[],AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a){return a?t(a,null):t(null,"SUCCESS")})},t.deleteUser=function(t,a){var s=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t(Error("User is not authenticated"),null);this.client.request("DeleteUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:a},function(a){return a?t(a,null):(s.clearCachedUser(),t(null,"SUCCESS"))})},t.updateAttributes=function(t,a,s){var c=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return a(Error("User is not authenticated"),null);this.client.request("UpdateUserAttributes",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserAttributes:t,ClientMetadata:s},function(t){return t?a(t,null):c.getUserData(function(){return a(null,"SUCCESS")},{bypassCache:!0})})},t.getUserAttributes=function(t){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return t(Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a,s){if(a)return t(a,null);for(var c=[],f=0;f<s.UserAttributes.length;f++){var p={Name:s.UserAttributes[f].Name,Value:s.UserAttributes[f].Value},g=new q(p);c.push(g)}return t(null,c)})},t.getMFAOptions=function(t){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return t(Error("User is not authenticated"),null);this.client.request("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a,s){return a?t(a,null):t(null,s.MFAOptions)})},t.createGetUserRequest=function(){return this.client.promisifyRequest("GetUser",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()})},t.refreshSessionIfPossible=function(t){var a=this;return void 0===t&&(t={}),new Promise(function(s){var c=a.signInUserSession.getRefreshToken();c&&c.getToken()?a.refreshSession(c,s,t.clientMetadata):s()})},t.getUserData=function(t,a){var s=this;if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return this.clearCachedUserData(),t(Error("User is not authenticated"),null);
46var c=this.getUserDataFromCache();if(!c){this.fetchUserData().then(function(a){t(null,a)}).catch(t);return}if(this.isFetchUserDataAndTokenRequired(a)){this.fetchUserData().then(function(t){return s.refreshSessionIfPossible(a).then(function(){return t})}).then(function(a){return t(null,a)}).catch(t);return}try{t(null,JSON.parse(c));return}catch(a){this.clearCachedUserData(),t(a,null);return}},t.getUserDataFromCache=function(){return this.storage.getItem(this.userDataKey)},t.isFetchUserDataAndTokenRequired=function(t){var a=(t||{}).bypassCache;return void 0!==a&&a},t.fetchUserData=function(){var t=this;return this.createGetUserRequest().then(function(a){return t.cacheUserData(a),a})},t.deleteAttributes=function(t,a){if(!(null!=this.signInUserSession&&this.signInUserSession.isValid()))return a(Error("User is not authenticated"),null);this.client.request("DeleteUserAttributes",{UserAttributeNames:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t){return t?a(t,null):a(null,"SUCCESS")})},t.resendConfirmationCode=function(t,a){var s={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:a};this.client.request("ResendConfirmationCode",s,function(a,s){return a?t(a,null):t(null,s)})},t.getSession=function(t,a){if(void 0===a&&(a={}),null==this.username)return t(Error("Username is null. Cannot retrieve a new session"),null);if(null!=this.signInUserSession&&this.signInUserSession.isValid())return t(null,this.signInUserSession);var s="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,c=s+".idToken";if(this.storage.getItem(c)){var f=new R({IdToken:this.storage.getItem(c)}),p=new O({AccessToken:this.storage.getItem(s+".accessToken")}),g=new M({RefreshToken:this.storage.getItem(s+".refreshToken")}),m=parseInt(this.storage.getItem(s+".clockDrift"),0)||0,v=new L({IdToken:f,AccessToken:p,RefreshToken:g,ClockDrift:m});if(v.isValid())return this.signInUserSession=v,t(null,this.signInUserSession);if(!g.getToken())return t(Error("Cannot retrieve a new session. Please authenticate."),null);this.refreshSession(g,t,a.clientMetadata)}else t(Error("Local storage is missing an ID Token, Please authenticate"),null)},t.refreshSession=function(t,a,s){var c=this,f=this.pool.wrapRefreshSessionCallback?this.pool.wrapRefreshSessionCallback(a):a,p={};p.REFRESH_TOKEN=t.getToken();var g="CognitoIdentityServiceProvider."+this.pool.getClientId(),m=g+".LastAuthUser";if(this.storage.getItem(m)){this.username=this.storage.getItem(m);var v=g+"."+this.username+".deviceKey";this.deviceKey=this.storage.getItem(v),p.DEVICE_KEY=this.deviceKey}var y={ClientId:this.pool.getClientId(),AuthFlow:"REFRESH_TOKEN_AUTH",AuthParameters:p,ClientMetadata:s};this.getUserContextData()&&(y.UserContextData=this.getUserContextData()),this.client.request("InitiateAuth",y,function(a,s){if(a)return"NotAuthorizedException"===a.code&&c.clearCachedUser(),f(a,null);if(s){var p=s.AuthenticationResult;return Object.prototype.hasOwnProperty.call(p,"RefreshToken")||(p.RefreshToken=t.getToken()),c.signInUserSession=c.getCognitoUserSession(p),c.cacheTokens(),f(null,c.signInUserSession)}})},t.cacheTokens=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId(),a=t+"."+this.username+".idToken",s=t+"."+this.username+".accessToken",c=t+"."+this.username+".refreshToken",f=t+"."+this.username+".clockDrift";this.storage.setItem(a,this.signInUserSession.getIdToken().getJwtToken()),this.storage.setItem(s,this.signInUserSession.getAccessToken().getJwtToken()),this.storage.setItem(c,this.signInUserSession.getRefreshToken().getToken()),this.storage.setItem(f,""+this.signInUserSession.getClockDrift()),this.storage.setItem(t+".LastAuthUser",this.username)},t.cacheUserData=function(t){this.storage.setItem(this.userDataKey,JSON.stringify(t))},t.clearCachedUserData=function(){this.storage.removeItem(this.userDataKey)},t.clearCachedUser=function(){this.clearCachedTokens(),this.clearCachedUserData()},t.cacheDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username;this.storage.setItem(t+".deviceKey",this.deviceKey),this.storage.setItem(t+".randomPasswordKey",this.randomPassword),this.storage.setItem(t+".deviceGroupKey",this.deviceGroupKey)},t.getCachedDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username,a=t+".deviceKey";
46this.storage.getItem(a)&&(this.deviceKey=this.storage.getItem(a),this.randomPassword=this.storage.getItem(t+".randomPasswordKey"),this.deviceGroupKey=this.storage.getItem(t+".deviceGroupKey"))},t.clearCachedDeviceKeyAndPassword=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId()+"."+this.username;this.storage.removeItem(t+".deviceKey"),this.storage.removeItem(t+".randomPasswordKey"),this.storage.removeItem(t+".deviceGroupKey")},t.clearCachedTokens=function(){var t="CognitoIdentityServiceProvider."+this.pool.getClientId(),a=t+"."+this.username+".idToken",s=t+"."+this.username+".accessToken",c=t+"."+this.username+".refreshToken",f=t+"."+this.username+".clockDrift";this.storage.removeItem(a),this.storage.removeItem(s),this.storage.removeItem(c),this.storage.removeItem(t+".LastAuthUser"),this.storage.removeItem(f)},t.getCognitoUserSession=function(t){var a=new R(t),s=new O(t),c=new M(t);return new L({IdToken:a,AccessToken:s,RefreshToken:c})},t.forgotPassword=function(t,a){var s={ClientId:this.pool.getClientId(),Username:this.username,ClientMetadata:a};this.getUserContextData()&&(s.UserContextData=this.getUserContextData()),this.client.request("ForgotPassword",s,function(a,s){return a?t.onFailure(a):"function"==typeof t.inputVerificationCode?t.inputVerificationCode(s):t.onSuccess(s)})},t.confirmPassword=function(t,a,s,c){var f={ClientId:this.pool.getClientId(),Username:this.username,ConfirmationCode:t,Password:a,ClientMetadata:c};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("ConfirmForgotPassword",f,function(t){return t?s.onFailure(t):s.onSuccess()})},t.getAttributeVerificationCode=function(t,a,s){if(null==this.signInUserSession||!this.signInUserSession.isValid())return a.onFailure(Error("User is not authenticated"));this.client.request("GetUserAttributeVerificationCode",{AttributeName:t,AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),ClientMetadata:s},function(t,s){return t?a.onFailure(t):"function"==typeof a.inputVerificationCode?a.inputVerificationCode(s):a.onSuccess()})},t.verifyAttribute=function(t,a,s){if(null==this.signInUserSession||!this.signInUserSession.isValid())return s.onFailure(Error("User is not authenticated"));this.client.request("VerifyUserAttribute",{AttributeName:t,Code:a,AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(t){return t?s.onFailure(t):s.onSuccess("SUCCESS")})},t.getDevice=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(Error("User is not authenticated"));this.client.request("GetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey},function(a,s){return a?t.onFailure(a):t.onSuccess(s)})},t.forgetSpecificDevice=function(t,a){if(null==this.signInUserSession||!this.signInUserSession.isValid())return a.onFailure(Error("User is not authenticated"));this.client.request("ForgetDevice",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:t},function(t){return t?a.onFailure(t):a.onSuccess("SUCCESS")})},t.forgetDevice=function(t){var a=this;this.forgetSpecificDevice(this.deviceKey,{onFailure:t.onFailure,onSuccess:function(s){return a.deviceKey=null,a.deviceGroupKey=null,a.randomPassword=null,a.clearCachedDeviceKeyAndPassword(),t.onSuccess(s)}})},t.setDeviceStatusRemembered=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"remembered"},function(a){return a?t.onFailure(a):t.onSuccess("SUCCESS")})},t.setDeviceStatusNotRemembered=function(t){if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(Error("User is not authenticated"));this.client.request("UpdateDeviceStatus",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),DeviceKey:this.deviceKey,DeviceRememberedStatus:"not_remembered"},function(a){return a?t.onFailure(a):t.onSuccess("SUCCESS")})},t.listDevices=function(t,a,s){if(null==this.signInUserSession||!this.signInUserSession.isValid())return s.onFailure(Error("User is not authenticated"));var c={AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),Limit:t};a&&(c.PaginationToken=a),this.client.request("ListDevices",c,function(t,a){return t?s.onFailure(t):s.onSuccess(a)})},t.globalSignOut=function(t){var a=this;if(null==this.signInUserSession||!this.signInUserSession.isValid())return t.onFailure(Error("User is not authenticated"));this.client.request("GlobalSignOut",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(s){return s?t.onFailure(s):(a.clearCachedUser(),t.onSuccess("SUCCESS"))})},t.signOut=function(){this.signInUserSession=null,this.clearCachedUser()},t.sendMFASelectionAnswer=function(t,a){var s=this,c={};c.USERNAME=this.username,c.ANSWER=t;var f={ChallengeName:"SELECT_MFA_TYPE",ChallengeResponses:c,ClientId:this.pool.getClientId(),Session:this.Session};this.getUserContextData()&&(f.UserContextData=this.getUserContextData()),this.client.request("RespondToAuthChallenge",f,function(c,f){return c?a.onFailure(c):(s.Session=f.Session,"SMS_MFA"===t)?a.mfaRequired(f.ChallengeName,f.ChallengeParameters):"SOFTWARE_TOKEN_MFA"===t?a.totpRequired(f.ChallengeName,f.ChallengeParameters):void 0})},t.getUserContextData=function(){return this.pool.getUserContextData(this.username)},t.associateSoftwareToken=function(t){var a=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("AssociateSoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken()},function(a,s){return a?t.onFailure(a):t.associateSecretCode(s.SecretCode)}):this.client.request("AssociateSoftwareToken",{Session:this.Session},function(s,c){return s?t.onFailure(s):(a.Session=c.Session,t.associateSecretCode(c.SecretCode))})},t.verifySoftwareToken=function(t,a,s){var c=this;null!=this.signInUserSession&&this.signInUserSession.isValid()?this.client.request("VerifySoftwareToken",{AccessToken:this.signInUserSession.getAccessToken().getJwtToken(),UserCode:t,FriendlyDeviceName:a},function(t,a){return t?s.onFailure(t):s.onSuccess(a)}):this.client.request("VerifySoftwareToken",{Session:this.Session,UserCode:t,FriendlyDeviceName:a},function(t,a){if(t)return s.onFailure(t);c.Session=a.Session;var f={};f.USERNAME=c.username;var p={ChallengeName:"MFA_SETUP",ClientId:c.pool.getClientId(),ChallengeResponses:f,Session:c.Session};c.getUserContextData()&&(p.UserContextData=c.getUserContextData()),c.client.request("RespondToAuthChallenge",p,function(t,a){return t?s.onFailure(t):(c.signInUserSession=c.getCognitoUserSession(a.AuthenticationResult),c.cacheTokens(),s.onSuccess(c.signInUserSession))})})},CognitoUser}();function UserAgent(){}function _wrapNativeSuper(t){var a="function"==typeof Map?new Map:void 0;return(_wrapNativeSuper=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw TypeError("Super expression must either be null or a function");if(void 0!==a){if(a.has(t))return a.get(t);a.set(t,Wrapper)}function Wrapper(){return _construct(t,arguments,_getPrototypeOf(this).constructor)}return Wrapper.prototype=Object.create(t.prototype,{constructor:{value:Wrapper,enumerable:!1,writable:!0,configurable:!0}}),Client_setPrototypeOf(Wrapper,t)})(t)}function _construct(t,a,s){return(_construct=!function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(t){return!1}}()?function(t,a,s){var c=[null];c.push.apply(c,a);var f=new(Function.bind.apply(t,c));return s&&Client_setPrototypeOf(f,s.prototype),f}:Reflect.construct).apply(null,arguments)}function Client_setPrototypeOf(t,a){return(Client_setPrototypeOf=Object.setPrototypeOf||function(t,a){return t.__proto__=a,t})(t,a)}function _getPrototypeOf(t){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}s(63144),UserAgent.prototype.userAgent="aws-amplify/0.1.x js";var $=function(t){function CognitoError(a,s,c,f){var p;return(p=t.call(this,a)||this).code=s,p.name=c,p.statusCode=f,p}return CognitoError.prototype=Object.create(t.prototype),CognitoError.prototype.constructor=CognitoError,Client_setPrototypeOf(CognitoError,t),CognitoError}(_wrapNativeSuper(Error)),Y=function(){function Client(t,a,s){this.endpoint=a||"https://cognito-idp."+t+".amazonaws.com/";var c=(s||{}).credentials;this.fetchOptions=c?{credentials:c}:{}}var t=Client.prototype;return t.promisifyRequest=function(t,a){var s=this;return new Promise(function(c,f){s.request(t,a,function(t,a){t?f(new $(t.message,t.code,t.name,t.statusCode)):c(a)})})},t.request=function(t,a,s){var c,f={"Content-Type":"application/x-amz-json-1.1","X-Amz-Target":"AWSCognitoIdentityProvi
46derService."+t,"X-Amz-User-Agent":UserAgent.prototype.userAgent},p=Object.assign({},this.fetchOptions,{headers:f,method:"POST",mode:"cors",cache:"no-cache",body:JSON.stringify(a)});fetch(this.endpoint,p).then(function(t){return c=t,t},function(t){if(t instanceof TypeError)throw Error("Network error");throw t}).then(function(t){return t.json().catch(function(){return{}})}).then(function(t){if(c.ok)return s(null,t);var a=(t.__type||t.code).split("#").pop();return s({code:a,name:a,message:t.message||t.Message||null})}).catch(function(t){if(c&&c.headers&&c.headers.get("x-amzn-errortype"))try{var a=c.headers.get("x-amzn-errortype").split(":")[0],f={code:a,name:a,statusCode:c.status,message:c.status?c.status.toString():null};return s(f)}catch(a){return s(t)}else if(t instanceof Error&&"Network error"===t.message)return s({code:"NetworkError",name:t.name,message:t.message});else return s(t)})},Client}(),J=function(){function CognitoUserPool(t,a){var s=t||{},c=s.UserPoolId,f=s.ClientId,p=s.endpoint,g=s.fetchOptions,m=s.AdvancedSecurityDataCollectionFlag;if(!c||!f)throw Error("Both UserPoolId and ClientId are required.");if(!/^[\w-]+_.+$/.test(c))throw Error("Invalid UserPoolId format.");var v=c.split("_")[0];this.userPoolId=c,this.clientId=f,this.client=new Y(v,p,g),this.advancedSecurityDataCollectionFlag=!1!==m,this.storage=t.Storage||new H().getStorage(),a&&(this.wrapRefreshSessionCallback=a)}var t=CognitoUserPool.prototype;return t.getUserPoolId=function(){return this.userPoolId},t.getClientId=function(){return this.clientId},t.signUp=function(t,a,s,c,f,p){var g=this,m={ClientId:this.clientId,Username:t,Password:a,UserAttributes:s,ValidationData:c,ClientMetadata:p};this.getUserContextData(t)&&(m.UserContextData=this.getUserContextData(t)),this.client.request("SignUp",m,function(a,s){if(a)return f(a,null);var c={Username:t,Pool:g,Storage:g.storage};return f(null,{user:new G(c),userConfirmed:s.UserConfirmed,userSub:s.UserSub,codeDeliveryDetails:s.CodeDeliveryDetails})})},t.getCurrentUser=function(){var t="CognitoIdentityServiceProvider."+this.clientId+".LastAuthUser",a=this.storage.getItem(t);if(a){var s={Username:a,Pool:this,Storage:this.storage};return new G(s)}return null},t.getUserContextData=function(t){if("undefined"!=typeof AmazonCognitoAdvancedSecurityData){var a=AmazonCognitoAdvancedSecurityData;if(this.advancedSecurityDataCollectionFlag){var s=a.getData(t,this.userPoolId,this.clientId);if(s)return{EncodedData:s}}return{}}},CognitoUserPool}(),Z=s(36808),Q=function(){function CookieStorage(t){if(t.domain)this.domain=t.domain;else throw Error("The domain of cookieStorage can not be undefined.");if(t.path?this.path=t.path:this.path="/",Object.prototype.hasOwnProperty.call(t,"expires")?this.expires=t.expires:this.expires=365,Object.prototype.hasOwnProperty.call(t,"secure")?this.secure=t.secure:this.secure=!0,Object.prototype.hasOwnProperty.call(t,"sameSite")){if(!["strict","lax","none"].includes(t.sameSite))throw Error('The sameSite value of cookieStorage must be "lax", "strict" or "none".');if("none"===t.sameSite&&!this.secure)throw Error("sameSite = None requires the Secure attribute in latest browser versions.");this.sameSite=t.sameSite}else this.sameSite=null}var t=CookieStorage.prototype;return t.setItem=function(t,a){var s={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(s.sameSite=this.sameSite),Z.set(t,a,s),Z.get(t)},t.getItem=function(t){return Z.get(t)},t.removeItem=function(t){var a={path:this.path,expires:this.expires,domain:this.domain,secure:this.secure};return this.sameSite&&(a.sameSite=this.sameSite),Z.remove(t,a)},t.clear=function(){for(var t=Z.get(),a=Object.keys(t).length,s=0;s<a;++s)this.removeItem(Object.keys(t)[s]);return{}},CookieStorage}();/*!
47 * Copyright 2016 Amazon.com,
48 * Inc. or its affiliates. All Rights Reserved.
49 *
50 * Licensed under the Amazon Software License (the "License").
51 * You may not use this file except in compliance with the
52 * License. A copy of the License is located at
53 *
54 *     http://aws.amazon.com/asl/
55 *
56 * or in the "license" file accompanying this file. This file is
57 * distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
58 * CONDITIONS OF ANY KIND, express or implied. See the License
59 * for the specific language governing permissions and
60 * limitations under the License.
61 */},81041:function(t,a,s){"use strict";s.d(a,{default:function(){return oz}});var c,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I,T,k,O,R,M,N,U,L,D,B,j,q,V,K,H,W,G,$,Y,J,Z,Q,X,ee,et,en,er,ei,eo,ea,es,eu,ec,el,ed,ef,ep,eh,eg,em,ev,ey,e_,eb,eS,ew,eA,eC,eE,ex,eP,eI,eT,ek,eO,eR,eM,eN,eU,eL,eD,eB,ej,eF,ez,eq,eV,eK,eH,eW,eG,e$,eY,eJ,eZ,eQ,eX,e0,e1,e2,e6,e3,e4,e5,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tu,tc,tl,td,tf,tp,th,tg,tm,tv,ty,t_,tb,tS,tw,tA,tC,tE,tx,tP,tI,tT,tk,tO,tR,tM,tN,tU,tL,tD,tB,tj,tF,tz,tq,tV,tK,tH,tW,tG,t$,tY,tJ,tZ,tQ,tX,t0,t1,t2,t6,t3,t4,t5,t8,t7,t9,ne,nt,nn,nr,ni,no,na,ns,nu,nc,nl,nd,nf,np,nh,ng,nm,nv,ny,n_,nb,nS,nw,nA,nC,nE,nx,nP,nI,nT,nk,nO,nR,nM,nN,nU,nL,nD,nB,nj,nF,nz,nq,nV,nK,nH,nW,nG,n$,nY,nJ,nZ,nQ,nX,n0,n1,n2,n6,n3,n4,n5,n8,n7,n9,re,rt,rn,rr,ri,ro,ra,rs,ru,rc,rl,rd,rf,rp,rh,rg,rm,rv,ry,r_,rb,rS,rw,rA,rC,rE,rx,rP,rI,rT,rk,rO,rR,rM,rN,rU,r
61L,rD,rB,rj,rF,rz,rq,rV,rK,rH,rW,rG,r$,rY,rJ,rZ,rQ,rX,r0,r1,r2,r6,r3,r4,r5,r8,r7,r9,ie=s(25387),it=s(35069),ir=s(59222),io=function(){function ServiceWorkerClass(){this._logger=new it.k("ServiceWorker")}return Object.defineProperty(ServiceWorkerClass.prototype,"serviceWorker",{get:function(){return this._serviceWorker},enumerable:!0,configurable:!0}),ServiceWorkerClass.prototype.register=function(t,a){var s=this;return void 0===t&&(t="/service-worker.js"),void 0===a&&(a="/"),this._logger.debug("registering "+t),this._logger.debug("registering service worker with scope "+a),new Promise(function(c,f){if(!(navigator&&"serviceWorker"in navigator))return f(Error("Service Worker not available"));navigator.serviceWorker.register(t,{scope:a}).then(function(t){return t.installing?s._serviceWorker=t.installing:t.waiting?s._serviceWorker=t.waiting:t.active&&(s._serviceWorker=t.active),s._registration=t,s._setupListeners(),s._logger.debug("Service Worker Registration Success: "+t),c(t)}).catch(function(t){return s._logger.debug("Service Worker Registration Failed "+t),f(t)})})},ServiceWorkerClass.prototype.enablePush=function(t){var a=this;if(!this._registration)throw Error("Service Worker not registered");return this._publicKey=t,new Promise(function(s,c){if(!(0,ir.lC)().isBrowser)return c(Error("Service Worker not available"));a._registration.pushManager.getSubscription().then(function(c){if(!c)return a._logger.debug("User is NOT subscribed to push"),a._registration.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:a._urlB64ToUint8Array(t)}).then(function(t){a._subscription=t,a._logger.debug("User subscribed: "+JSON.stringify(t)),s(t)}).catch(function(t){a._logger.error(t)});a._subscription=c,a._logger.debug("User is subscribed to push: "+JSON.stringify(c)),s(c)})})},ServiceWorkerClass.prototype._urlB64ToUint8Array=function(t){for(var a="=".repeat((4-t.length%4)%4),s=(t+a).replace(/\-/g,"+").replace(/_/g,"/"),c=window.atob(s),f=new Uint8Array(c.length),p=0;p<c.length;++p)f[p]=c.charCodeAt(p);return f},ServiceWorkerClass.prototype.send=function(t){this._serviceWorker&&this._serviceWorker.postMessage("object"==typeof t?JSON.stringify(t):t)},ServiceWorkerClass.prototype._setupListeners=function(){var t=this;this._serviceWorker.addEventListener("statechange",function(a){var s=t._serviceWorker.state;t._logger.debug("ServiceWorker statechange: "+s),ie.dQ.Analytics&&"function"==typeof ie.dQ.Analytics.record&&ie.dQ.Analytics.record({name:"ServiceWorker",attributes:{state:s}})}),this._serviceWorker.addEventListener("message",function(a){t._logger.debug("ServiceWorker message event: "+a)})},ServiceWorkerClass}(),ia=s(9432),iu=s(7895),ic=s(85389),il=s(20490),id=s(32615),ip=s(92752),extendStatics=function(t,a){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s])})(t,a)};function __extends(t,a){if("function"!=typeof a&&null!==a)throw TypeError("Class extends value "+String(a)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}var tslib_es6_assign=function(){return(tslib_es6_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)};function tslib_es6_awaiter(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})}function tslib_es6_generator(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(m){return function(v){return function(m){if(s)throw TypeError("Generator is already executing.");for(;p&&(p=0,m[0]&&(g=0)),g;)try{if(s=1,c&&(f=2&m[0]?c.return:m[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,m[1])).done)return f;switch(c=0,f&&(m=[2&m[0],f.value]),m[0]){case 0:case 1:f=m;break;case 4:return g.label++,{value:m[1],done:!1};case 5:g.label++,c=m[1],m=[0];continue;case 7:m=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===m[0]||2===m[0])){g=0;continue}if(3===m[0]&&(!f||m[1]>f[0]&&m[1]<f[3])){g.label=m[1];break}if(6===m[0]&&g.label<f[1]){g.label=f[1],f=m;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(m);break}f[2]&&g.ops.pop(),g.trys.pop();continue}
61m=a.call(t,g)}catch(t){m=[6,t],c=0}finally{s=f=0}if(5&m[0])throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}([m,v])}}}"function"==typeof SuppressedError&&SuppressedError;var ih=s(57198);(S||(S={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(w||(w={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(C||(C={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(E||(E={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(x||(x={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(P||(P={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(I||(I={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(T||(T={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(k||(k={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(O||(O={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(R||(R={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc})},(M||(M={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(N||(N={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(U||(U={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(L||(L={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(D||(D={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc}),t.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:ih.oc})},(B||(B={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},t),t.SSECustomerKey&&{SSECustomerKey:ih.oc}),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc}),t.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:ih.oc}),t.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:ih.oc})},(j||(j={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(q||(q={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(V||(V={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(K||(K={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(H||(H={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(W||(W={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(G||(G={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc}),t.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:ih.oc})},($||($={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},t),t.SSECustomerKey&&{SSECustomerKey:ih.oc}),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc}),t.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:ih.oc})},(Y||(Y={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(J||(J={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(Z||(Z={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(Q||(Q={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(X||(X={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ee||(ee={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(et||(et={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(en||(en={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(er||(er={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ei||(ei={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eo||(eo={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ea||(ea={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(es||(es={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eu||(eu={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ec||(ec={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(el||(el={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ed||(ed={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ef||(ef={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ep||(ep={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eh||(eh={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eg||(eg={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(em||(em={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ev||(ev={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ey||(ey={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(e_||(e_={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eb||(eb={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eS||(eS={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ew||(ew={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eA||(eA={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eC||(eC={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(c=eE||(eE={})).visit=function(t,a){return void 0!==t.Prefix?a.Prefix(t.Prefix):void 0!==t.Tag?a.Tag(t.Tag):void 0!==t.And?a.And(t.And):a._(t.$unknown[0],t.$unknown[1])},c.filterSensitiveLog=function(t){var a;return void 0!==t.Prefix?{Prefix:t.Prefix}:void 0!==t.Tag?{Tag:eA.filterSensitiveLog(t.Tag)}:void 0!==t.And?{And:eC.filterSensitiveLog(t.And)}:void 0!==t.$unknown?((a={})[t.$unknown[0]]="UNKNOWN",a):void 0},(ex||(ex={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)}
61,(eP||(eP={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eI||(eI={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eT||(eT={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ek||(ek={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Filter&&{Filter:eE.filterSensitiveLog(t.Filter)})},(eO||(eO={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.AnalyticsConfiguration&&{AnalyticsConfiguration:ek.filterSensitiveLog(t.AnalyticsConfiguration)})},(eR||(eR={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eM||(eM={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eN||(eN={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eU||(eU={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eL||(eL={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.KMSMasterKeyID&&{KMSMasterKeyID:ih.oc})},(eD||(eD={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:eL.filterSensitiveLog(t.ApplyServerSideEncryptionByDefault)})},(eB||(eB={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Rules&&{Rules:t.Rules.map(function(t){return eD.filterSensitiveLog(t)})})},(ej||(ej={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:eB.filterSensitiveLog(t.ServerSideEncryptionConfiguration)})},(eF||(eF={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ez||(ez={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eq||(eq={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eV||(eV={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eK||(eK={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eH||(eH={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eW||(eW={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eG||(eG={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.KeyId&&{KeyId:ih.oc})},(e$||(e$={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eY||(eY={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMS&&{SSEKMS:eG.filterSensitiveLog(t.SSEKMS)})},(eJ||(eJ={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Encryption&&{Encryption:eY.filterSensitiveLog(t.Encryption)})},(eZ||(eZ={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.S3BucketDestination&&{S3BucketDestination:eJ.filterSensitiveLog(t.S3BucketDestination)})},(eQ||(eQ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(eX||(eX={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(e0||(e0={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Destination&&{Destination:eZ.filterSensitiveLog(t.Destination)})},(e1||(e1={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.InventoryConfiguration&&{InventoryConfiguration:e0.filterSensitiveLog(t.InventoryConfiguration)})},(e2||(e2={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(e6||(e6={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(e3||(e3={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(f=e4||(e4={})).visit=function(t,a){return void 0!==t.Prefix?a.Prefix(t.Prefix):void 0!==t.Tag?a.Tag(t.Tag):void 0!==t.And?a.And(t.And):a._(t.$unknown[0],t.$unknown[1])},f.filterSensitiveLog=function(t){var a;return void 0!==t.Prefix?{Prefix:t.Prefix}:void 0!==t.Tag?{Tag:eA.filterSensitiveLog(t.Tag)}:void 0!==t.And?{And:e3.filterSensitiveLog(t.And)}:void 0!==t.$unknown?((a={})[t.$unknown[0]]="UNKNOWN",a):void 0},(e5||(e5={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(e8||(e8={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(e7||(e7={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(e9||(e9={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Filter&&{Filter:e4.filterSensitiveLog(t.Filter)})},(te||(te={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Rules&&{Rules:t.Rules.map(function(t){return e9.filterSensitiveLog(t)})})},(tt||(tt={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tn||(tn={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tr||(tr={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ti||(ti={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(to||(to={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ta||(ta={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ts||(ts={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tu||(tu={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(p=tc||(tc={})).visit=function(t,a){return void 0!==t.Prefix?a.Prefix(t.Prefix):void 0!==t.Tag?a.Tag(t.Tag):void 0!==t.And?a.And(t.And):a._(t.$unknown[0],t.$unknown[1])},p.filterSensitiveLog=function(t){var a;return void 0!==t.Prefix?{Prefix:t.Prefix}:void 0!==t.Tag?{Tag:eA.filterSensitiveLog(t.Tag)}:void 0!==t.And?{And:tu.filterSensitiveLog(t.And)}:void 0!==t.$unknown?((a={})[t.$unknown[0]]="UNKNOWN",a):void 0},(tl||(tl={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Filter&&{Filter:tc.filterSensitiveLog(t.Filter)})},(td||(td={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.MetricsConfiguration&&{MetricsConfiguration:tl.filterSensitiveLog(t.MetricsConfiguration)})},(tf||(tf={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tp||(tp={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(th||(th={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tg||(tg={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tm||(tm={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tv||(tv={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ty||(ty={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t_||(t_={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tb||(tb={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tS||(tS={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tw||(tw={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tA||(tA={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tC||(tC={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tE||(tE={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tx||(tx={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tP||(tP={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tI||(tI={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tT||(tT={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)}
61,(tk||(tk={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tO||(tO={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tR||(tR={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tM||(tM={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tN||(tN={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tU||(tU={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tL||(tL={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tD||(tD={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(g=tB||(tB={})).visit=function(t,a){return void 0!==t.Prefix?a.Prefix(t.Prefix):void 0!==t.Tag?a.Tag(t.Tag):void 0!==t.And?a.And(t.And):a._(t.$unknown[0],t.$unknown[1])},g.filterSensitiveLog=function(t){var a;return void 0!==t.Prefix?{Prefix:t.Prefix}:void 0!==t.Tag?{Tag:eA.filterSensitiveLog(t.Tag)}:void 0!==t.And?{And:tD.filterSensitiveLog(t.And)}:void 0!==t.$unknown?((a={})[t.$unknown[0]]="UNKNOWN",a):void 0},(tj||(tj={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tF||(tF={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tz||(tz={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tq||(tq={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Filter&&{Filter:tB.filterSensitiveLog(t.Filter)})},(tV||(tV={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Rules&&{Rules:t.Rules.map(function(t){return tq.filterSensitiveLog(t)})})},(tK||(tK={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.ReplicationConfiguration&&{ReplicationConfiguration:tV.filterSensitiveLog(t.ReplicationConfiguration)})},(tH||(tH={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tW||(tW={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tG||(tG={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t$||(t$={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tY||(tY={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tJ||(tJ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tZ||(tZ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tQ||(tQ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(tX||(tX={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t0||(t0={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t1||(t1={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t2||(t2={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t6||(t6={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t3||(t3={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t4||(t4={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t5||(t5={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc})},(t8||(t8={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSECustomerKey&&{SSECustomerKey:ih.oc})},(t7||(t7={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(t9||(t9={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ne||(ne={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nt||(nt={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nn||(nn={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nr||(nr={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ni||(ni={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(no||(no={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(na||(na={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ns||(ns={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nu||(nu={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nc||(nc={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nl||(nl={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nd||(nd={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nf||(nf={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(np||(np={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nh||(nh={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ng||(ng={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nm||(nm={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nv||(nv={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ny||(ny={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(n_||(n_={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nb||(nb={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nS||(nS={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nw||(nw={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc})},(nA||(nA={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSECustomerKey&&{SSECustomerKey:ih.oc})},(nC||(nC={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.AnalyticsConfigurationList&&{AnalyticsConfigurationList:t.AnalyticsConfigurationList.map(function(t){return ek.filterSensitiveLog(t)})})},(nE||(nE={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nx||(nx={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nP||(nP={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nI||(nI={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.InventoryConfigurationList&&{InventoryConfigurationList:t.InventoryConfigurationList.map(function(t){return e0.filterSensitiveLog(t)})})},(nT||(nT={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nk||(nk={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.MetricsConfigurationList&&{MetricsConfigurationList:t.MetricsConfigurationList.map(function(t){return tl.filterSensitiveLog(t)})})},(nO||(nO={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nR||(nR={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nM||(nM={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nN||(nN={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nU||(nU={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nL||(nL={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nD||(nD={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nB||(nB={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nj||(nj={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nF||(nF={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nz||(nz={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nq||(nq={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nV||(nV={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nK||(nK={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nH||(nH={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nW||(nW={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nG||(nG={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(n$||(n$={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nY||(nY={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nJ||(nJ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nZ||(nZ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)}
61,(nQ||(nQ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(nX||(nX={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.AnalyticsConfiguration&&{AnalyticsConfiguration:ek.filterSensitiveLog(t.AnalyticsConfiguration)})},(n0||(n0={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(n1||(n1={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(n2||(n2={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:eB.filterSensitiveLog(t.ServerSideEncryptionConfiguration)})},(n6||(n6={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(n3||(n3={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.InventoryConfiguration&&{InventoryConfiguration:e0.filterSensitiveLog(t.InventoryConfiguration)})},(n4||(n4={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Rules&&{Rules:t.Rules.map(function(t){return e9.filterSensitiveLog(t)})})},(n5||(n5={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.LifecycleConfiguration&&{LifecycleConfiguration:n4.filterSensitiveLog(t.LifecycleConfiguration)})},(n8||(n8={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(n7||(n7={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(n9||(n9={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.MetricsConfiguration&&{MetricsConfiguration:tl.filterSensitiveLog(t.MetricsConfiguration)})},(re||(re={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rt||(rt={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rn||(rn={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rr||(rr={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.ReplicationConfiguration&&{ReplicationConfiguration:tV.filterSensitiveLog(t.ReplicationConfiguration)})},(ri||(ri={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ro||(ro={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ra||(ra={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rs||(rs={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ru||(ru={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rc||(rc={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rl||(rl={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rd||(rd={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rf||(rf={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc}),t.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:ih.oc})},(rp||(rp={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},t),t.SSECustomerKey&&{SSECustomerKey:ih.oc}),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc}),t.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:ih.oc})},(rh||(rh={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rg||(rg={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rm||(rm={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rv||(rv={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(ry||(ry={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(r_||(r_={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rb||(rb={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rS||(rS={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rw||(rw={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rA||(rA={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rC||(rC={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rE||(rE={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rx||(rx={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rP||(rP={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rI||(rI={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.KMSKeyId&&{KMSKeyId:ih.oc})};var ig=s(96877),im=s(70655),iv=function(){function XmlNode(t,a){void 0===a&&(a=[]),this.name=t,this.children=a,this.attributes={}}return XmlNode.prototype.withName=function(t){return this.name=t,this},XmlNode.prototype.addAttribute=function(t,a){return this.attributes[t]=a,this},XmlNode.prototype.addChildNode=function(t){return this.children.push(t),this},XmlNode.prototype.removeAttribute=function(t){return delete this.attributes[t],this},XmlNode.prototype.toString=function(){var t,a,s=!!this.children.length,c="<"+this.name,f=this.attributes;try{for(var p=(0,im.__values)(Object.keys(f)),g=p.next();!g.done;g=p.next()){var m=g.value,v=f[m];null!=v&&(c+=" "+m+'="'+(""+v).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")+'"')}}catch(a){t={error:a}}finally{try{g&&!g.done&&(a=p.return)&&a.call(p)}finally{if(t)throw t.error}}return c+(s?">"+this.children.map(function(t){return t.toString()}).join("")+"</"+this.name+">":"/>")},XmlNode}(),iy=function(){function XmlText(t){this.value=t}return XmlText.prototype.toString=function(){return(""+this.value).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")},XmlText}(),i_=s(36965),serializeAws_restXmlCompletedMultipartUpload=function(t,a){var s=new iv("CompletedMultipartUpload");
61return void 0!==t.Parts&&null!==t.Parts&&serializeAws_restXmlCompletedPartList(t.Parts,a).map(function(t){t=t.withName("Part"),s.addChildNode(t)}),s},serializeAws_restXmlCompletedPart=function(t,a){var s=new iv("CompletedPart");if(void 0!==t.ETag&&null!==t.ETag){var c=new iv("ETag").addChildNode(new iy(t.ETag)).withName("ETag");s.addChildNode(c)}if(void 0!==t.PartNumber&&null!==t.PartNumber){var c=new iv("PartNumber").addChildNode(new iy(String(t.PartNumber))).withName("PartNumber");s.addChildNode(c)}return s},serializeAws_restXmlCompletedPartList=function(t,a){return t.filter(function(t){return null!=t}).map(function(t){return null===t?null:serializeAws_restXmlCompletedPart(t,a).withName("member")})},deserializeAws_restXmlCommonPrefix=function(t,a){var s={Prefix:void 0};return void 0!==t.Prefix&&(s.Prefix=t.Prefix),s},deserializeAws_restXmlInitiator=function(t,a){var s={ID:void 0,DisplayName:void 0};return void 0!==t.ID&&(s.ID=t.ID),void 0!==t.DisplayName&&(s.DisplayName=t.DisplayName),s},deserializeAws_restXml_Object=function(t,a){var s={Key:void 0,LastModified:void 0,ETag:void 0,Size:void 0,StorageClass:void 0,Owner:void 0};return void 0!==t.Key&&(s.Key=t.Key),void 0!==t.LastModified&&(s.LastModified=new Date(t.LastModified)),void 0!==t.ETag&&(s.ETag=t.ETag),void 0!==t.Size&&(s.Size=parseInt(t.Size)),void 0!==t.StorageClass&&(s.StorageClass=t.StorageClass),void 0!==t.Owner&&(s.Owner=deserializeAws_restXmlOwner(t.Owner,a)),s},deserializeAws_restXmlOwner=function(t,a){var s={DisplayName:void 0,ID:void 0};return void 0!==t.DisplayName&&(s.DisplayName=t.DisplayName),void 0!==t.ID&&(s.ID=t.ID),s},deserializeAws_restXmlPart=function(t,a){var s={PartNumber:void 0,LastModified:void 0,ETag:void 0,Size:void 0};return void 0!==t.PartNumber&&(s.PartNumber=parseInt(t.PartNumber)),void 0!==t.LastModified&&(s.LastModified=new Date(t.LastModified)),void 0!==t.ETag&&(s.ETag=t.ETag),void 0!==t.Size&&(s.Size=parseInt(t.Size)),s},deserializeMetadata=function(t){var a;return{httpStatusCode:t.statusCode,requestId:null!==(a=t.headers["x-amzn-requestid"])&&void 0!==a?a:t.headers["x-amzn-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}},collectBody=function(t,a){return(void 0===t&&(t=new Uint8Array),t instanceof Uint8Array)?Promise.resolve(t):a.streamCollector(t)||Promise.resolve(new Uint8Array)},isSerializableHeaderValue=function(t){return null!=t&&""!==t&&(!Object.getOwnPropertyNames(t).includes("length")||0!=t.length)&&(!Object.getOwnPropertyNames(t).includes("size")||0!=t.size)},parseBody=function(t,a){return collectBody(t,a).then(function(t){return a.utf8Encoder(t)}).then(function(t){if(t.length){var a=(0,i_.parse)(t,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,tagValueProcessor:function(t,a){return t.replace(/&amp;/g,"&").replace(/&apos;/g,"'").replace(/&quot;/g,'"').replace(/&gt;/g,">").replace(/&lt;/g,"<")}}),s="#text",c=Object.keys(a)[0],f=a[c];return f[s]&&(f[c]=f[s],delete f[s]),(0,ih.sT)(f)}return{}})},loadRestXmlErrorCode=function(t,a){return void 0!==a.Code?a.Code:404==t.statusCode?"NotFound":""},validate=function(t){return"string"==typeof t&&0===t.indexOf("arn:")&&t.split(":").length>=6},parse=function(t){var a=t.split(":");if(a.length<6||"arn"!==a[0])throw Error("Malformed ARN");var s=(0,im.__read)(a);return{partition:s[1],service:s[2],region:s[3],accountId:s[4],resource:s.slice(5).join(":")}},ib=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,iS=/(\d+\.){3}\d+/,iw=/\.\./,iA=/\./,iC=/^(.+\.)?s3[.-]([a-z0-9-]+)\./,iE=/^s3(-external-1)?\.amazonaws\.com$/,ix="amazonaws.com",getPseudoRegion=function(t){return isFipsRegion(t)?t.replace(/fips-|-fips/,""):t},getRegionalSuffix=function(t){var a=t.match(iC);return[a[2],t.replace(RegExp("^"+a[0]),"")]},validateArnEndpointOptions=function(t){if(t.pathStyleEndpoint)throw Error("Path-style S3 endpoint is not supported when bucket is an ARN");if(t.accelerateEndpoint)throw Error("Accelerate endpoint is not supported when bucket is an ARN");if(!t.tlsCompatible)throw Error("HTTPS is required when bucket is an ARN")},validateService=function(t){if("s3"!==t&&"s3-outposts"!==t)throw Error("Expect 's3' or 's3-outposts' in ARN service component")},validateS3Service=function(t){if("s3"!==t)throw Error("Expect 's3' in Accesspoint ARN 
61service component")},validateOutpostService=function(t){if("s3-outposts"!==t)throw Error("Expect 's3-posts' in Outpost ARN service component")},validatePartition=function(t,a){if(t!==a.clientPartition)throw Error('Partition in ARN is incompatible, got "'+t+'" but expected "'+a.clientPartition+'"')},validateRegion=function(t,a){if(""===t)throw Error("ARN region is empty");if(!a.useArnRegion&&!isEqualRegions(t,a.clientRegion)&&!isEqualRegions(t,a.clientSigningRegion))throw Error("Region in ARN is incompatible, got "+t+" but expected "+a.clientRegion);if(a.useArnRegion&&isFipsRegion(t))throw Error("Endpoint does not support FIPS region")},isFipsRegion=function(t){return t.startsWith("fips-")||t.endsWith("-fips")},isEqualRegions=function(t,a){return t===a||getPseudoRegion(t)===a||t===getPseudoRegion(a)},validateAccountId=function(t){if(!/[0-9]{12}/.exec(t))throw Error("Access point ARN accountID does not match regex '[0-9]{12}'")},validateDNSHostLabel=function(t,a){if(void 0===a&&(a={tlsCompatible:!0}),t.length>=64||!/^[a-z0-9][a-z0-9.-]+[a-z0-9]$/.test(t)||/(\d+\.){3}\d+/.test(t)||/[.-]{2}/.test(t)||(null==a?void 0:a.tlsCompatible)&&iA.test(t))throw Error("Invalid DNS label "+t)},getArnResources=function(t){var a=t.includes(":")?":":"/",s=(0,im.__read)(t.split(a)),c=s[0],f=s.slice(1);if("accesspoint"===c){if(1!==f.length||""===f[0])throw Error("Access Point ARN should have one resource accesspoint"+a+"{accesspointname}");return{accesspointName:f[0]}}if("outpost"===c){if(!f[0]||"accesspoint"!==f[1]||!f[2]||3!==f.length)throw Error("Outpost ARN should have resource outpost"+a+"{outpostId}"+a+"accesspoint"+a+"{accesspointName}");var p=(0,im.__read)(f,3);return{outpostId:p[0],accesspointName:(p[1],p[2])}}throw Error("ARN resource should begin with 'accesspoint"+a+"' or 'outpost"+a+"'")},validateNoDualstack=function(t){if(t)throw Error("Dualstack endpoint is not supported with Outpost")},validateNoFIPS=function(t){if(isFipsRegion(null!=t?t:""))throw Error("FIPS region is not supported with Outpost, got "+t)},bucketHostname=function(t){var a=t.isCustomEndpoint,s=(t.baseHostname,t.dualstackEndpoint),c=t.accelerateEndpoint;if(a){if(s)throw Error("Dualstack endpoint is not supported with custom endpoint");if(c)throw Error("Accelerate endpoint is not supported with custom endpoint")}return"string"==typeof t.bucketName?getEndpointFromBucketName((0,im.__assign)((0,im.__assign)({},t),{isCustomEndpoint:a})):getEndpointFromArn((0,im.__assign)((0,im.__assign)({},t),{isCustomEndpoint:a}))},getEndpointFromArn=function(t){var a=t.isCustomEndpoint,s=t.baseHostname,c=(0,im.__read)(a?[t.clientRegion,s]:iE.test(s)?[s.replace("."+ix,""),ix]:getRegionalSuffix(s),2),f=c[0],p=c[1],g=t.pathStyleEndpoint,m=t.dualstackEndpoint,v=void 0!==m&&m,y=t.accelerateEndpoint,_=t.tlsCompatible,b=void 0===_||_,S=t.useArnRegion,w=t.bucketName,C=t.clientPartition,E=t.clientSigningRegion,x=void 0===E?f:E;validateArnEndpointOptions({pathStyleEndpoint:g,accelerateEndpoint:void 0!==y&&y,tlsCompatible:b});var P=w.service,I=w.partition,T=w.accountId,k=w.region,O=w.resource;validateService(P),validatePartition(I,{clientPartition:void 0===C?"aws":C}),validateAccountId(T),validateRegion(k,{useArnRegion:S,clientRegion:f,clientSigningRegion:x});var R=getArnResources(O),M=R.accesspointName,N=R.outpostId;validateDNSHostLabel(M+"-"+T,{tlsCompatible:b});var U=S?k:f,L=S?k:x;return N?(validateOutpostService(P),validateDNSHostLabel(N,{tlsCompatible:b}),validateNoDualstack(v),validateNoFIPS(U),{bucketEndpoint:!0,hostname:M+"-"+T+"."+N+(a?"":".s3-outposts."+U)+"."+p,signingRegion:L,signingService:"s3-outposts"}):(validateS3Service(P),{bucketEndpoint:!0,hostname:M+"-"+T+(a?"":".s3-accesspoint"+(v?".dualstack":"")+"."+U)+"."+p,signingRegion:L})},getEndpointFromBucketName=function(t){var a,s=t.accelerateEndpoint,c=t.clientRegion,f=t.baseHostname,p=t.bucketName,g=t.dualstackEndpoint,m=void 0!==g&&g,v=t.pathStyleEndpoint,y=t.tlsCompatible,_=t.isCustomEndpoint,b=(0,im.__read)(void 0!==_&&_?[c,f]:(a=f,iE.test(a)?["us-east-1",ix]:getRegionalSuffix(a)),2),S=b[0],w=b[1];return void 0!==v&&v||!ib.test(p)||iS.test(p)||iw.test(p)||(void 0===y||y)&&iA.test(p)?{bucketEndpoint:!1,hostname:m?"s3.dualstack."+S+"."+w:f}:(void 0!==s&&s?f="s3-accelerate"+(m?".dualstack":"")+"."+w:m&&(f="s3.dualstack."+S+"."+w),{bucketEndpoint:!0,hostname:p+"."+f})},iP={tags:["BUCKET_ENDPOINT"],name:"bucketEndpointMiddleware",relation:"before",toMiddleware:"hostHeaderMiddleware",override:!0},getBucketEndpointPlugin=function(t){return{applyToStack:function(a){a.addRelativeTo(function(a,s){return function(c){return(0,im.__awaiter)(void 0,void 0,void 0,function(){var f,p,g,m,v,y,_,b,S,w,C,E,x,P,I,T,k,O;return(0,im.__generator)(this,function(R){switch(R.label){case 0:if(f=c.input.Bucket,p=t.bucketEndpoint,g=c.request,!ig.aW.isInstance(g))return[3,8];if(!t.bucketEndpoint)return[3,1];return g.hostname=f,[3,7];case 1:if(!validate(f))return[3,5];return m=parse(f),y=getPseudoRegion,[4,t.region()];case 2:return v=y.apply(void 0,[R.sent()]),[4,t.regionInfoProvider(v)];
61case 3:return b=(_=R.sent()||{}).partition,w=void 0===(S=_.signingRegion)?v:S,[4,t.useArnRegion()];case 4:return C=R.sent(),x=(E=bucketHostname({bucketName:m,baseHostname:g.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:t.useDualstackEndpoint,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:"https:"===g.protocol,useArnRegion:C,clientPartition:b,clientSigningRegion:w,clientRegion:v,isCustomEndpoint:t.isCustomEndpoint})).hostname,P=E.bucketEndpoint,I=E.signingRegion,T=E.signingService,I&&I!==w&&(s.signing_region=I),T&&"s3"!==T&&(s.signing_service=T),g.hostname=x,p=P,[3,7];case 5:return k=getPseudoRegion,[4,t.region()];case 6:v=k.apply(void 0,[R.sent()]),x=(O=bucketHostname({bucketName:f,clientRegion:v,baseHostname:g.hostname,accelerateEndpoint:t.useAccelerateEndpoint,dualstackEndpoint:t.useDualstackEndpoint,pathStyleEndpoint:t.forcePathStyle,tlsCompatible:"https:"===g.protocol,isCustomEndpoint:t.isCustomEndpoint})).hostname,P=O.bucketEndpoint,g.hostname=x,p=P,R.label=7;case 7:p&&(g.path=g.path.replace(/^(\/)?[^\/]+/,""),""===g.path&&(g.path="/")),R.label=8;case 8:return[2,a((0,im.__assign)((0,im.__assign)({},c),{request:g}))]}})})}},iP)}}},iI=s(86400),iT={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},getSsecPlugin=function(t){return{applyToStack:function(a){a.add(function(t){var a=this;return function(s){return function(c){return(0,im.__awaiter)(a,void 0,void 0,function(){var a,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I;return(0,im.__generator)(this,function(T){switch(T.label){case 0:a=(0,im.__assign)({},c.input),f=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}],T.label=1;case 1:T.trys.push([1,6,7,8]),g=(p=(0,im.__values)(f)).next(),T.label=2;case 2:if(g.done)return[3,5];if(!(v=a[(m=g.value).target]))return[3,4];return y=ArrayBuffer.isView(v)?new Uint8Array(v.buffer,v.byteOffset,v.byteLength):"string"==typeof v?t.utf8Decoder(v):new Uint8Array(v),_=t.base64Encoder(y),(b=new t.md5).update(y),S=[(0,im.__assign)({},a)],(I={})[m.target]=_,w=m.hash,E=(C=t).base64Encoder,[4,b.digest()];case 3:a=im.__assign.apply(void 0,S.concat([(I[w]=E.apply(C,[T.sent()]),I)])),T.label=4;case 4:return g=p.next(),[3,2];case 5:return[3,8];case 6:return x={error:T.sent()},[3,8];case 7:try{g&&!g.done&&(P=p.return)&&P.call(p)}finally{if(x)throw x.error}return[7];case 8:return[2,s((0,im.__assign)((0,im.__assign)({},c),{input:a}))]}})})}}}(t),iT)}}},ik=function(t){function GetObjectCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(GetObjectCommand,t),GetObjectCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use(getSsecPlugin(a)),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"GetObjectCommand",inputFilterSensitiveLog:t8.filterSensitiveLog,outputFilterSensitiveLog:t5.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},GetObjectCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b;return tslib_es6_generator(this,function(S){switch(S.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},isSerializableHeaderValue(t.IfMatch)&&{"if-match":t.IfMatch}),isSerializableHeaderValue(t.IfModifiedSince)&&{"if-modified-since":(0,ih._w)(t.IfModifiedSince).toString()}),isSerializableHeaderValue(t.IfNoneMatch)&&{"if-none-match":t.IfNoneMatch}),isSerializableHeaderValue(t.IfUnmodifiedSince)&&{"if-unmodified-since":(0,ih._w)(t.IfUnmodifiedSince).toString()}),isSerializableHeaderValue(t.Range)&&{range:t.Range}),isSerializableHeaderValue(t.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":t.SSECustomerAlgorithm}),isSerializableHeaderValue(t.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":t.SSECustomerKey}),isSerializableHeaderValue(t.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":t.SSECustomerKeyMD5}),isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),c="/{Bucket}/{Key+}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");if(void 0!==t.Key){if((f=t.Key).length<=0)throw Error("Empty value provided for input HTTP label: Key.");c=c.replace("{Key+}",f.split("/").map(function(t){return(0,ih.jc)(t)}).join("/"))}else throw Error("No value provided for input HTTP label: Key.");return p=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({"x-id":"GetObject"}
61,void 0!==t.ResponseCacheControl&&{"response-cache-control":t.ResponseCacheControl}),void 0!==t.ResponseContentDisposition&&{"response-content-disposition":t.ResponseContentDisposition}),void 0!==t.ResponseContentEncoding&&{"response-content-encoding":t.ResponseContentEncoding}),void 0!==t.ResponseContentLanguage&&{"response-content-language":t.ResponseContentLanguage}),void 0!==t.ResponseContentType&&{"response-content-type":t.ResponseContentType}),void 0!==t.ResponseExpires&&{"response-expires":(t.ResponseExpires.toISOString().split(".")[0]+"Z").toString()}),void 0!==t.VersionId&&{versionId:t.VersionId}),void 0!==t.PartNumber&&{partNumber:t.PartNumber.toString()}),[4,a.endpoint()];case 1:return v=(m=S.sent()).hostname,_=void 0===(y=m.protocol)?"https":y,b=m.port,[2,new ig.aW({protocol:_,hostname:v,port:b,method:"GET",headers:s,path:c,query:p,body:g})]}})})},GetObjectCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){return 200!==t.statusCode&&t.statusCode>=300?[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_;return tslib_es6_generator(this,function(b){var S,w,C,E;switch(b.label){case 0:return c=[tslib_es6_assign({},t)],_={},[4,parseBody(t.body,a)];case 1:switch(s=tslib_es6_assign.apply(void 0,c.concat([(_.body=b.sent(),_)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body)){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 g=[{}],[4,(S=s,w=0,tslib_es6_awaiter(void 0,void 0,void 0,function(){var t,a;return tslib_es6_generator(this,function(s){return t={name:"InvalidObjectState",$fault:"client",$metadata:deserializeMetadata(S),AccessTier:void 0,StorageClass:void 0},void 0!==(a=S.body).AccessTier&&(t.AccessTier=a.AccessTier),void 0!==a.StorageClass&&(t.StorageClass=a.StorageClass),[2,t]})}))];case 3:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,g.concat([b.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,7];case 4:return m=[{}],[4,(C=s,E=0,tslib_es6_awaiter(void 0,void 0,void 0,function(){var t;return tslib_es6_generator(this,function(a){return t={name:"NoSuchKey",$fault:"client",$metadata:deserializeMetadata(C)},C.body,[2,t]})}))];case 5:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,m.concat([b.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,7];case 6:p=(v=s.body).code||v.Code||p,f=tslib_es6_assign(tslib_es6_assign({},v),{name:""+p,message:v.message||v.Message||p,$fault:"client",$metadata:deserializeMetadata(t)}),b.label=7;case 7:return y=f.message||f.Message||p,f.message=y,delete f.Message,[2,Promise.reject(Object.assign(Error(y),f))]}})})]:(s={$metadata:deserializeMetadata(t),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!==t.headers["x-amz-delete-marker"]&&(s.DeleteMarker="true"===t.headers["x-amz-delete-marker"]),void 0!==t.headers["accept-ranges"]&&(s.AcceptRanges=t.headers["accept-ranges"]),void 0!==t.headers["x-amz-expiration"]&&(s.Expiration=t.headers["x-amz-expiration"]),void 0!==t.headers["x-amz-restore"]&&(s.Restore=t.headers["x-amz-restore"]),void 0!==t.headers["last-modified"]&&(s.LastModified=new Date(t.headers["last-modified"])),void 0!==t.headers["content-length"]&&(s.ContentLength=parseInt(t.headers["content-length"],10)),void 0!==t.headers.etag&&(s.ETag=t.headers.etag),void 0!==t.headers["x-amz-missing-meta"]&&(s.MissingMeta=parseInt(t.headers["x-amz-missing-meta"],10)),void 0!==t.headers["x-amz-version-id"]&&(s.VersionId=t.headers["x-amz-version-id"]),void 0!==t.headers["cache-control"]&&(s.CacheControl=t.headers["cache-control"]),void 0!==t.headers["content-disposition"]&&(s.ContentDisposition=t.headers["content-disposition"]),void 0!==t.headers["content-encoding"]&&(s.ContentEncoding=t.headers["content-encoding"]),void 0!==t.headers["content-language"]&&(s.ContentLanguage=t.headers["content-language"]),void 0!==t.headers["content-range"]&&(s.ContentRange=t.headers["content-range"]),void 0!==t.headers["content-type"]&&(s.ContentType=t.headers["content-type"]),void 0!==t.headers.expires&&(s.Expires=new Date(t.headers.expires)),void 0!==t.headers["x-amz-website-redirect-location"]&&(s.WebsiteRedirectLocation=t.headers["x-amz-website-redirect-location"]),void 0!==t.headers["x-amz-server-side-encryption"]&&(s.ServerSideEncryption=t.headers["x-amz-server-side-encryption"]),void 0!==t.headers["x-amz-server-side-encryption-customer-algorithm"]&&(s.SSECustomerAlgorithm=t.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==t.headers["x-amz-server-side-encryption-customer-key-md5"]&&(s.SSECustomerKeyMD5=t.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==t.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(s.SSEKMSKeyId=t.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==t.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(s.BucketKeyEnabled="true"===t.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==t.headers["x-amz-storage-class"]&&(s.StorageClass=t.headers["x-amz-storage-class"]),void 0!==t.headers["x-amz-request-charged"]&&(s.RequestCharged=t.headers["x-amz-request-charged"]),void 0!==t.headers["x-amz-replication-status"]&&(s.ReplicationStatus=t.headers["x-amz-replication-status"]),void 0!==t.headers["x-amz-mp-parts-count"]&&(s.PartsCount=parseInt(t.headers["x-amz-mp-parts-count"],10)),void 0!==t.headers["x-amz-tagging-count"]&&(s.TagCount=parseInt(t.headers["x-amz-tagging-count"],10)),void 0!==t.headers["x-amz-object-lock-mode"]&&(s.ObjectLockMode=t.headers["x-amz-object-lock-mode"]),void 0!==t.headers["x-amz-object-lock-retain-until-date"]&&(s.ObjectLockRetainUntilDate=new Date(t.headers["x-amz-object-lock-retain-until-date"])),void 0!==t.headers["x-amz-object-lock-legal-hold"]&&(s.ObjectLockLegalHoldStatus=t.headers["x-amz-object-lock-legal-hold"]),Object.keys(t.headers).forEac
61h(function(a){void 0===s.Metadata&&(s.Metadata={}),a.startsWith("x-amz-meta-")&&(s.Metadata[a.substring(11)]=t.headers[a])}),c=t.body,s.Body=c,[2,Promise.resolve(s)])})})},GetObjectCommand}(ih.mY),iO=function(t){function DeleteObjectCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(DeleteObjectCommand,t),DeleteObjectCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"DeleteObjectCommand",inputFilterSensitiveLog:ec.filterSensitiveLog,outputFilterSensitiveLog:eu.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},DeleteObjectCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b;return tslib_es6_generator(this,function(S){switch(S.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},isSerializableHeaderValue(t.MFA)&&{"x-amz-mfa":t.MFA}),isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.BypassGovernanceRetention)&&{"x-amz-bypass-governance-retention":t.BypassGovernanceRetention.toString()}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),c="/{Bucket}/{Key+}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");if(void 0!==t.Key){if((f=t.Key).length<=0)throw Error("Empty value provided for input HTTP label: Key.");c=c.replace("{Key+}",f.split("/").map(function(t){return(0,ih.jc)(t)}).join("/"))}else throw Error("No value provided for input HTTP label: Key.");return p=tslib_es6_assign({"x-id":"DeleteObject"},void 0!==t.VersionId&&{versionId:t.VersionId}),[4,a.endpoint()];case 1:return v=(m=S.sent()).hostname,_=void 0===(y=m.protocol)?"https":y,b=m.port,[2,new ig.aW({protocol:_,hostname:v,port:b,method:"DELETE",headers:s,path:c,query:p,body:g})]}})})},DeleteObjectCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){switch(c.label){case 0:if(204!==t.statusCode&&t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v;return tslib_es6_generator(this,function(y){switch(y.label){case 0:return c=[tslib_es6_assign({},t)],v={},[4,parseBody(t.body,a)];case 1:return s=tslib_es6_assign.apply(void 0,c.concat([(v.body=y.sent(),v)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body),p=(g=s.body).code||g.Code||p,m=(f=tslib_es6_assign(tslib_es6_assign({},g),{name:""+p,message:g.message||g.Message||p,$fault:"client",$metadata:deserializeMetadata(t)})).message||f.Message||p,f.message=m,delete f.Message,[2,Promise.reject(Object.assign(Error(m),f))]}})})];return s={$metadata:deserializeMetadata(t),DeleteMarker:void 0,RequestCharged:void 0,VersionId:void 0},void 0!==t.headers["x-amz-delete-marker"]&&(s.DeleteMarker="true"===t.headers["x-amz-delete-marker"]),void 0!==t.headers["x-amz-version-id"]&&(s.VersionId=t.headers["x-amz-version-id"]),void 0!==t.headers["x-amz-request-charged"]&&(s.RequestCharged=t.headers["x-amz-request-charged"]),[4,collectBody(t.body,a)];case 1:return c.sent(),[2,Promise.resolve(s)]}})})},DeleteObjectCommand}(ih.mY),iR=function(t){function ListObjectsCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(ListObjectsCommand,t),ListObjectsCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"ListObjectsCommand",inputFilterSensitiveLog:nz.filterSensitiveLog,outputFilterSensitiveLog:nF.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},ListObjectsCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b;return tslib_es6_generator(this,function(S){switch(S.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign({},isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),c="/{Bucket}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");return p=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},void 0!==t.Delimiter&&{delimiter:t.Delimiter}),void 0!==t.EncodingType&&{"encoding-type":t.EncodingType}),void 0!==t.Marker&&{marker:t.Marker}),void 0!==t.MaxKeys&&{"max-keys":t.MaxKeys.toString()}),void 0!==t.Prefix&&{prefix:t.Prefix}),[4,a.endpoint()];case 1:return v=(m=S.sent()).hostname,_=void 0===(y=m.protocol)?"https":y,b=m.port,[2,new ig.aW({protocol:_,hostname:v,port:b,method:"GET",headers:s,path:c,query:p,body:g})]}})})},ListObjectsCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){switch(f.label){case 0:if(200!==t.statusCode&&t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y;return tslib_es6_generator(this,function(_){switch(_.label){case 0:return c=[tslib_es6_assign({},t)],y={},[4,parseBody(t.body,a)];case 1:switch(s=tslib_es6_assign.apply(void 0,c.concat([(y.body=_.sent(),y)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body)){case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":return[3,2]}return[3,4];case 2:var b,S;return g=[{}],[4,(b=s,S=0,tslib_es6_awaiter(void 0,void 0,void 0,function(){var t;return tslib_es6_generator(this,function(a){return t={name:"NoSuchBucket",$fault:"client",$metadata:deserializeMetadata(b)},b.body,[2,t]})}))];case 3:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,g.concat([_.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,5];case 4:p=(m=s.body).code||m.Code||p,f=tslib_es6_assign(tslib_es6_assign({},m),{name:""+p,message:m.message||m.Message||p,$fault:"client",$metadata:deserializeMetadata(t)}),_.label=5;case 5:return v=f.message||f.Message||p,f.message=v,delete f.Message,[2,Promise.reject(Object.assign(Error(v),f))]}})})];return s={$metadata:deserializeMetadata(t),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,parseBody(t.body,a)];case 1:return""===(c=f.sent()).CommonPrefixes&&(s.CommonPrefixes=[]),void 0!==c.CommonPrefixes&&(s.CommonPrefixes=((0,ih.L)(c.C
61ommonPrefixes)||[]).filter(function(t){return null!=t}).map(function(t){return null===t?null:deserializeAws_restXmlCommonPrefix(t,a)})),""===c.Contents&&(s.Contents=[]),void 0!==c.Contents&&(s.Contents=((0,ih.L)(c.Contents)||[]).filter(function(t){return null!=t}).map(function(t){return null===t?null:deserializeAws_restXml_Object(t,a)})),void 0!==c.Delimiter&&(s.Delimiter=c.Delimiter),void 0!==c.EncodingType&&(s.EncodingType=c.EncodingType),void 0!==c.IsTruncated&&(s.IsTruncated="true"==c.IsTruncated),void 0!==c.Marker&&(s.Marker=c.Marker),void 0!==c.MaxKeys&&(s.MaxKeys=parseInt(c.MaxKeys)),void 0!==c.Name&&(s.Name=c.Name),void 0!==c.NextMarker&&(s.NextMarker=c.NextMarker),void 0!==c.Prefix&&(s.Prefix=c.Prefix),[2,Promise.resolve(s)]}})})},ListObjectsCommand}(ih.mY),iM=s(77643),iN=s(94079),iU=s(25644),iL=function(){function Int64(t){if(this.bytes=t,8!==t.byteLength)throw Error("Int64 buffers must be exactly 8 bytes")}return Int64.fromNumber=function(t){if(t>0x7fffffffffffffff||t<-0x8000000000000000)throw Error(t+" is too large (or, if negative, too small) to represent as an Int64");for(var a=new Uint8Array(8),s=7,c=Math.abs(Math.round(t));s>-1&&c>0;s--,c/=256)a[s]=c;return t<0&&negate(a),new Int64(a)},Int64.prototype.valueOf=function(){var t=this.bytes.slice(0),a=128&t[0];return a&&negate(t),parseInt((0,iU.N)(t),16)*(a?-1:1)},Int64.prototype.toString=function(){return String(this.valueOf())},Int64}();function negate(t){for(var a=0;a<8;a++)t[a]^=255;for(var a=7;a>-1&&(t[a]++,0===t[a]);a--);}var iD=function(){function HeaderMarshaller(t,a){this.toUtf8=t,this.fromUtf8=a}return HeaderMarshaller.prototype.format=function(t){var a,s,c,f,p=[];try{for(var g=(0,im.__values)(Object.keys(t)),m=g.next();!m.done;m=g.next()){var v=m.value,y=this.fromUtf8(v);p.push(Uint8Array.from([y.byteLength]),y,this.formatHeaderValue(t[v]))}}catch(t){a={error:t}}finally{try{m&&!m.done&&(s=g.return)&&s.call(g)}finally{if(a)throw a.error}}var _=new Uint8Array(p.reduce(function(t,a){return t+a.byteLength},0)),b=0;try{for(var S=(0,im.__values)(p),w=S.next();!w.done;w=S.next()){var C=w.value;_.set(C,b),b+=C.byteLength}}catch(t){c={error:t}}finally{try{w&&!w.done&&(f=S.return)&&f.call(S)}finally{if(c)throw c.error}}return _},HeaderMarshaller.prototype.formatHeaderValue=function(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":var a=new DataView(new ArrayBuffer(3));return a.setUint8(0,3),a.setInt16(1,t.value,!1),new Uint8Array(a.buffer);case"integer":var s=new DataView(new ArrayBuffer(5));return s.setUint8(0,4),s.setInt32(1,t.value,!1),new Uint8Array(s.buffer);case"long":var c=new Uint8Array(9);return c[0]=5,c.set(t.value.bytes,1),c;case"binary":var f=new DataView(new ArrayBuffer(3+t.value.byteLength));f.setUint8(0,6),f.setUint16(1,t.value.byteLength,!1);var p=new Uint8Array(f.buffer);return p.set(t.value,3),p;case"string":var g=this.fromUtf8(t.value),m=new DataView(new ArrayBuffer(3+g.byteLength));m.setUint8(0,7),m.setUint16(1,g.byteLength,!1);var v=new Uint8Array(m.buffer);return v.set(g,3),v;case"timestamp":var y=new Uint8Array(9);return y[0]=8,y.set(iL.fromNumber(t.value.valueOf()).bytes,1),y;case"uuid":if(!iG.test(t.value))throw Error("Invalid UUID received: "+t.value);var _=new Uint8Array(17);return _[0]=9,_.set((0,iU.H)(t.value.replace(/\-/g,"")),1),_}},HeaderMarshaller.prototype.parse=function(t){for(var a={},s=0;s<t.byteLength;){var c=t.getUint8(s++),f=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+s,c));switch(s+=c,t.getUint8(s++)){case 0:a[f]={type:iB,value:!0};break;case 1:a[f]={type:iB,value:!1};break;case 2:a[f]={type:ij,value:t.getInt8(s++)};break;case 3:a[f]={type:iF,value:t.getInt16(s,!1)},s+=2;break;case 4:a[f]={type:iz,value:t.getInt32(s,!1)},s+=4;break;case 5:a[f]={type:iq,value:new iL(new Uint8Array(t.buffer,t.byteOffset+s,8))},s+=8;break;case 6:var p=t.getUint16(s,!1);s+=2,a[f]={type:iV,value:new Uint8Array(t.buffer,t.byteOffset+s,p)},s+=p;break;case 7:var g=t.getUint16(s,!1);s+=2,a[f]={type:iK,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+s,g))},s+=g;break;case 8:a[f]={type:iH,value:new Date(new iL(new Uint8Array(t.buffer,t.byteOffset+s,8)).valueOf())},s+=8;break;case 9:var m=new Uint8Array(t.buffer,t.byteOffset+s,16);s+=16,a[f]={type:iW,value:(0,iU.N)(m.subarray(0,4))+"-"+(0,iU.N)(m.subarray(4,6))+"-"+(0,iU.N)(m.subarray(6,8))+"-"+(0,iU.N)(m.subarray(8,10))+"-"+(0,iU.N)(m.subarray(10))};break;default:throw Error("Unrecognized header type tag")}}return a},HeaderMarshaller}();(m=rT||(rT={}))[m.boolTrue=0]="boolTrue",m[m.boolFalse=1]="boolFalse",m[m.byte=2]="byte",m[m.short=3]="short",m[m.integer=4]="integer",m[m.long=5]="long",m[m.byteArray=6]="byteArray",m[m.string=7]="string",m[m.timestamp=8]="timestamp",m[m.uuid=9]="uuid";
61var iB="boolean",ij="byte",iF="short",iz="integer",iq="long",iV="binary",iK="string",iH="timestamp",iW="uuid",iG=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,i$=function(){function EventStreamMarshaller(t,a){this.headerMarshaller=new iD(t,a)}return EventStreamMarshaller.prototype.marshall=function(t){var a=t.headers,s=t.body,c=this.headerMarshaller.format(a),f=c.byteLength+s.byteLength+16,p=new Uint8Array(f),g=new DataView(p.buffer,p.byteOffset,p.byteLength),m=new iN.Crc32;return g.setUint32(0,f,!1),g.setUint32(4,c.byteLength,!1),g.setUint32(8,m.update(p.subarray(0,8)).digest(),!1),p.set(c,12),p.set(s,c.byteLength+12),g.setUint32(f-4,m.update(p.subarray(8,f-4)).digest(),!1),p},EventStreamMarshaller.prototype.unmarshall=function(t){var a=function(t){var a=t.byteLength,s=t.byteOffset,c=t.buffer;if(a<16)throw Error("Provided message too short to accommodate event stream message overhead");var f=new DataView(c,s,a),p=f.getUint32(0,!1);if(a!==p)throw Error("Reported message length does not match received message length");var g=f.getUint32(4,!1),m=f.getUint32(8,!1),v=f.getUint32(a-4,!1),y=new iN.Crc32().update(new Uint8Array(c,s,8));if(m!==y.digest())throw Error("The prelude checksum specified in the message ("+m+") does not match the calculated CRC32 checksum ("+y.digest()+")");if(y.update(new Uint8Array(c,s+8,a-12)),v!==y.digest())throw Error("The message checksum ("+y.digest()+") did not match the expected value of "+v);return{headers:new DataView(c,s+8+4,g),body:new Uint8Array(c,s+8+4+g,p-g-16)}}(t),s=a.headers,c=a.body;return{headers:this.headerMarshaller.parse(s),body:c}},EventStreamMarshaller.prototype.formatHeaders=function(t){return this.headerMarshaller.format(t)},EventStreamMarshaller}(),iY=function(){function EventStreamMarshaller(t){var a=t.utf8Encoder,s=t.utf8Decoder;this.eventMarshaller=new i$(a,s),this.utfEncoder=a}return EventStreamMarshaller.prototype.deserialize=function(t,a){var s,c,f,p,g,m,v,y;return c=0,f=0,p=null,g=null,m=function(t){if("number"!=typeof t)throw Error("Attempted to allocate an event message where size was not a number: "+t);c=t,f=4,p=new Uint8Array(t),new DataView(p.buffer).setUint32(0,t,!1)},(s={})[Symbol.asyncIterator]=function(){return(0,im.__asyncGenerator)(this,arguments,function(){var a,s,v,y,_,b,S,w;return(0,im.__generator)(this,function(C){switch(C.label){case 0:a=t[Symbol.asyncIterator](),C.label=1;case 1:return[4,(0,im.__await)(a.next())];case 2:if(v=(s=C.sent()).value,!s.done)return[3,10];if(c)return[3,4];return[4,(0,im.__await)(void 0)];case 3:case 9:return[2,C.sent()];case 4:if(c!==f)return[3,7];return[4,(0,im.__await)(p)];case 5:return[4,C.sent()];case 6:return C.sent(),[3,8];case 7:throw Error("Truncated event message received.");case 8:return[4,(0,im.__await)(void 0)];case 10:y=v.length,_=0,C.label=11;case 11:if(!(_<y))return[3,15];if(!p){if(b=y-_,g||(g=new Uint8Array(4)),S=Math.min(4-f,b),g.set(v.slice(_,_+S),f),f+=S,_+=S,f<4)return[3,15];m(new DataView(g.buffer).getUint32(0,!1)),g=null}if(w=Math.min(c-f,y-_),p.set(v.slice(_,_+w),f),f+=w,_+=w,!(c&&c===f))return[3,14];return[4,(0,im.__await)(p)];case 12:return[4,C.sent()];case 13:C.sent(),p=null,c=0,f=0,C.label=14;case 14:return[3,11];case 15:return[3,1];case 16:return[2]}})})},v={eventMarshaller:this.eventMarshaller,deserializer:a,toUtf8:this.utfEncoder},(y={})[Symbol.asyncIterator]=function(){return(0,im.__asyncGenerator)(this,arguments,function(){var t,a,c,f,p,g,m,y,_,b,S,w,C,E,x,P;return(0,im.__generator)(this,function(I){switch(I.label){case 0:I.trys.push([0,12,13,18]),t=(0,im.__asyncValues)(s),I.label=1;case 1:return[4,(0,im.__await)(t.next())];case 2:if((a=I.sent()).done)return[3,11];if(c=a.value,"error"!==(p=(f=v.eventMarshaller.unmarshall(c)).headers[":message-type"].value))return[3,3];throw(g=Error(f.headers[":error-message"].value||"UnknownError")).name=f.headers[":error-code"].value,g;case 3:if("exception"!==p)return[3,5];return m=f.headers[":exception-type"].value,(C={})[m]=f,y=C,[4,(0,im.__await)(v.deserializer(y))];case 4:if((_=I.sent()).$unknown)throw(b=Error(v.toUtf8(f.body))).name=m,b;throw _[m];case 5:if("event"!==p)return[3,9];return(E={})[f.headers[":event-type"].value]=f,S=E,[4,(0,im.__await)(v.deserializer(S))];case 6:if((w=I.sent()).$unknown)return[3,10];return[4,(0,im.__await)(w)];case 7:return[4,I.sent()];case 8:return I.sent(),[3,10];case 9:throw Error("Unrecognizable event type: "+f.headers[":event-type"].value);case 10:return[3,1];case 11:return[3,18];case 12:return x={error:I.sent()},[3,18];case 13:if(I.trys.push([13,,16,17]),!(a&&!a.done&&(P=t.return)))return[3,15];return[4,(0,im.__await)(P.call(t))];case 14:I.sent(),I.label=15;case 15:return[3,17];case 16:if(x)throw x.error;return[7];
61case 17:return[7];case 18:return[2]}})})},y},EventStreamMarshaller.prototype.serialize=function(t,a){var s,c=this;return(s={})[Symbol.asyncIterator]=function(){return(0,im.__asyncGenerator)(this,arguments,function(){var s,f,p,g,m,v;return(0,im.__generator)(this,function(y){switch(y.label){case 0:y.trys.push([0,7,8,13]),s=(0,im.__asyncValues)(t),y.label=1;case 1:return[4,(0,im.__await)(s.next())];case 2:if((f=y.sent()).done)return[3,6];return p=f.value,g=c.eventMarshaller.marshall(a(p)),[4,(0,im.__await)(g)];case 3:return[4,y.sent()];case 4:y.sent(),y.label=5;case 5:return[3,1];case 6:return[3,13];case 7:return m={error:y.sent()},[3,13];case 8:if(y.trys.push([8,,11,12]),!(f&&!f.done&&(v=s.return)))return[3,10];return[4,(0,im.__await)(v.call(s))];case 9:y.sent(),y.label=10;case 10:return[3,12];case 11:if(m)throw m.error;return[7];case 12:return[7];case 13:return[4,(0,im.__await)(new Uint8Array(0))];case 14:return[4,y.sent()];case 15:return y.sent(),[2]}})})},s},EventStreamMarshaller}(),readableStreamtoIterable=function(t){var a;return(a={})[Symbol.asyncIterator]=function(){return(0,im.__asyncGenerator)(this,arguments,function(){var a,s,c,f;return(0,im.__generator)(this,function(p){switch(p.label){case 0:a=t.getReader(),p.label=1;case 1:p.trys.push([1,,9,10]),p.label=2;case 2:return[4,(0,im.__await)(a.read())];case 3:if(c=(s=p.sent()).done,f=s.value,!c)return[3,5];return[4,(0,im.__await)(void 0)];case 4:return[2,p.sent()];case 5:return[4,(0,im.__await)(f)];case 6:return[4,p.sent()];case 7:return p.sent(),[3,2];case 8:return[3,10];case 9:return a.releaseLock(),[7];case 10:return[2]}})})},a},iterableToReadableStream=function(t){var a=t[Symbol.asyncIterator]();return new ReadableStream({pull:function(t){return(0,im.__awaiter)(this,void 0,void 0,function(){var s,c,f;return(0,im.__generator)(this,function(p){switch(p.label){case 0:return[4,a.next()];case 1:if(c=(s=p.sent()).done,f=s.value,c)return[2,t.close()];return t.enqueue(f),[2]}})})}})},iJ=function(){function EventStreamMarshaller(t){var a=t.utf8Encoder,s=t.utf8Decoder;this.eventMarshaller=new i$(a,s),this.universalMarshaller=new iY({utf8Decoder:s,utf8Encoder:a})}return EventStreamMarshaller.prototype.deserialize=function(t,a){var s=isReadableStream(t)?readableStreamtoIterable(t):t;return this.universalMarshaller.deserialize(s,a)},EventStreamMarshaller.prototype.serialize=function(t,a){var s=this.universalMarshaller.serialize(t,a);return"function"==typeof ReadableStream?iterableToReadableStream(s):s},EventStreamMarshaller}(),isReadableStream=function(t){return"function"==typeof ReadableStream&&t instanceof ReadableStream},iZ=s(37691),iQ=s(35749),iX=s(20519),i0=[1732584193,4023233417,2562383102,271733878],i1=function(){function Md5(){this.state=Uint32Array.from(i0),this.buffer=new DataView(new ArrayBuffer(64)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return Md5.prototype.update=function(t){if(!("string"==typeof t?0===t.length:0===t.byteLength)){if(this.finished)throw Error("Attempted to update an already finished hash.");var a="string"==typeof t?(0,iX.fromUtf8)(t):ArrayBuffer.isView(t)?new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(t),s=0,c=a.byteLength;for(this.bytesHashed+=c;c>0;)this.buffer.setUint8(this.bufferLength++,a[s++]),c--,64===this.bufferLength&&(this.hashBuffer(),this.bufferLength=0)}},Md5.prototype.digest=function(){return(0,im.__awaiter)(this,void 0,void 0,function(){var t,a,s,c,f,p;return(0,im.__generator)(this,function(g){if(!this.finished){if(t=this,a=t.buffer,s=t.bufferLength,c=8*t.bytesHashed,a.setUint8(this.bufferLength++,128),s%64>=56){for(f=this.bufferLength;f<64;f++)a.setUint8(f,0);this.hashBuffer(),this.bufferLength=0}for(f=this.bufferLength;f<56;f++)a.setUint8(f,0);a.setUint32(56,c>>>0,!0),a.setUint32(60,Math.floor(c/4294967296),!0),this.hashBuffer(),this.finished=!0}for(f=0,p=new DataView(new ArrayBuffer(16));f<4;f++)p.setUint32(4*f,this.state[f],!0);return[2,new Uint8Array(p.buffer,p.byteOffset,p.byteLength)]})})},Md5.prototype.hashBuffer=function(){var t=this.buffer,a=this.state,s=a[0],c=a[1],f=a[2],p=a[3];s=ff(s,c,f,p,t.getUint32(0,!0),7,3614090360),p=ff(p,s,c,f,t.getUint32(4,!0),12,3905402710),f=ff(f,p,s,c,t.getUint32(8,!0),17,606105819),c=ff(c,f,p,s,t.getUint32(12,!0),22,3250441966),s=ff(s,c,f,p,t.getUint32(16,!0),7,4118548399),p=ff(p,s,c,f,t.getUint32(20,!0),12,1200080426),f=ff(f,p,s,c,t.getUint32(24,!0),17,2821735955),c=ff(c,f,p,s,t.getUint32(28,!0),22,4249261313),s=ff(s,c,f,p,t.getUint32(32,!0),7,1770035416),p=ff(p,s,c,f,t.getUint32(36,!0),12,2336552879),f=ff(f,p,s,c,t.getUint32(40,!0),17,4294925233),c=ff(c,f,p,s,t.getUint32(44,!0),22,2304563134),s=ff(s,c,f,p,t.getUint32(48,!0),7,1804603682),p=ff(p,s,c,f,t.getUint32(52,!0),12,4254626195),f=ff(f,p,s,c,t.getUint32(56,!0),17,2792965006),c=ff(c,f,p,s,t.getUint32(60,!0),22,1236535329),s=gg(s,c,f,p,t.getUint32(4,!0),5,4129170786),p=gg(p,s,c,f,t.getUint32(24,!0),9,3225465664),f=gg(f,p,s,c,t.getUint32(44,!0),14,643717713),c=gg(c,f,p,s,t.getUint32(0,!0),20,3921069994),s=gg(s,c,f,p,t.getUint32(20,!0),5,3593408605),p=gg(p,s,c,f,t.getUint32(40,!0),9,38016083),f=gg(f,p,s,c,t.getUint32(60,!0),14,3634488961),c=gg(c,f,p,s,t.getUint32(16,!0),20,3889429448),s=gg(s,c,f,p,t.getUint32(36,!0),5,568446438),p=gg(p,s,c,f,t.getUint32(56,!0),9,327
615163606),f=gg(f,p,s,c,t.getUint32(12,!0),14,4107603335),c=gg(c,f,p,s,t.getUint32(32,!0),20,1163531501),s=gg(s,c,f,p,t.getUint32(52,!0),5,2850285829),p=gg(p,s,c,f,t.getUint32(8,!0),9,4243563512),f=gg(f,p,s,c,t.getUint32(28,!0),14,1735328473),c=gg(c,f,p,s,t.getUint32(48,!0),20,2368359562),s=hh(s,c,f,p,t.getUint32(20,!0),4,4294588738),p=hh(p,s,c,f,t.getUint32(32,!0),11,2272392833),f=hh(f,p,s,c,t.getUint32(44,!0),16,1839030562),c=hh(c,f,p,s,t.getUint32(56,!0),23,4259657740),s=hh(s,c,f,p,t.getUint32(4,!0),4,2763975236),p=hh(p,s,c,f,t.getUint32(16,!0),11,1272893353),f=hh(f,p,s,c,t.getUint32(28,!0),16,4139469664),c=hh(c,f,p,s,t.getUint32(40,!0),23,3200236656),s=hh(s,c,f,p,t.getUint32(52,!0),4,681279174),p=hh(p,s,c,f,t.getUint32(0,!0),11,3936430074),f=hh(f,p,s,c,t.getUint32(12,!0),16,3572445317),c=hh(c,f,p,s,t.getUint32(24,!0),23,76029189),s=hh(s,c,f,p,t.getUint32(36,!0),4,3654602809),p=hh(p,s,c,f,t.getUint32(48,!0),11,3873151461),f=hh(f,p,s,c,t.getUint32(60,!0),16,530742520),c=hh(c,f,p,s,t.getUint32(8,!0),23,3299628645),s=ii(s,c,f,p,t.getUint32(0,!0),6,4096336452),p=ii(p,s,c,f,t.getUint32(28,!0),10,1126891415),f=ii(f,p,s,c,t.getUint32(56,!0),15,2878612391),c=ii(c,f,p,s,t.getUint32(20,!0),21,4237533241),s=ii(s,c,f,p,t.getUint32(48,!0),6,1700485571),p=ii(p,s,c,f,t.getUint32(12,!0),10,2399980690),f=ii(f,p,s,c,t.getUint32(40,!0),15,4293915773),c=ii(c,f,p,s,t.getUint32(4,!0),21,2240044497),s=ii(s,c,f,p,t.getUint32(32,!0),6,1873313359),p=ii(p,s,c,f,t.getUint32(60,!0),10,4264355552),f=ii(f,p,s,c,t.getUint32(24,!0),15,2734768916),c=ii(c,f,p,s,t.getUint32(52,!0),21,1309151649),s=ii(s,c,f,p,t.getUint32(16,!0),6,4149444226),p=ii(p,s,c,f,t.getUint32(44,!0),10,3174756917),f=ii(f,p,s,c,t.getUint32(8,!0),15,718787259),c=ii(c,f,p,s,t.getUint32(36,!0),21,3951481745),a[0]=s+a[0]&4294967295,a[1]=c+a[1]&4294967295,a[2]=f+a[2]&4294967295,a[3]=p+a[3]&4294967295},Md5}();function cmn(t,a,s,c,f,p){return((a=(a+t&4294967295)+(c+p&4294967295)&4294967295)<<f|a>>>32-f)+s&4294967295}function ff(t,a,s,c,f,p,g){return cmn(a&s|~a&c,t,a,f,p,g)}function gg(t,a,s,c,f,p,g){return cmn(a&c|s&~c,t,a,f,p,g)}function hh(t,a,s,c,f,p,g){return cmn(a^s^c,t,a,f,p,g)}function ii(t,a,s,c,f,p,g){return cmn(s^(a|~c),t,a,f,p,g)}var i2=s(97845),i6=s(67157),i3=s(22795),i4=s(85731),i5="s3.{region}.amazonaws.com",i8=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"]),i7=new Set(["cn-north-1","cn-northwest-1"]),i9=new Set(["us-iso-east-1"]),oe=new Set(["us-isob-east-1"]),ot=new Set(["us-gov-east-1","us-gov-west-1"]),on={apiVersion:"2006-03-01",disableHostPrefix:!1,logger:{},regionInfoProvider:function(t,a){var s=void 0;switch(t){case"af-south-1":s={hostname:"s3.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":s={hostname:"s3.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":s={hostname:"s3.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":s={hostname:"s3.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-south-1":s={hostname:"s3.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":s={hostname:"s3.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":s={hostname:"s3.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":s={hostname:"s3.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":s={hostname:"s3.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":s={hostname:"s3.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":s={hostname:"s3.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":s={hostname:"s3.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":s={hostname:"s3.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":s={hostname:"s3.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":s={hostname:"s3.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":s={hostname:"s3.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":s={hostname:"s3.eu-west-3.amazonaws.com",partition:"aws"};break;case"fips-us-gov-west-1":s={hostname:"s3-fips.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"me-south-1":s={hostname:"s3.me-south-1.amazonaws.com",partition:"aws"};break;case"s3-external-1":s={hostname:"s3-external-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"sa-east-1":s={hostname:"s3.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":s={hostname:"s3.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-2":s={hostname:"s3.us-east-2.amazonaws.com",partition:"aws"};break;case"us-gov-east-1":s={hostname:"s3.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1":s={hostname:"s3.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-iso-east-1":s={hostname:"s3.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":s={hostname:"s3.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":s={hostname:"s3.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-2":s={hostname:"s3.us-west-2.amazonaws.com",partition:"aws"};break;default:i8.has(t)&&(s={hostname:i5.replace("{region}",t),partition:"aws"}),i7.has(t)&&(s={hostname:"s3.{region}.amazonaws.com.cn".replace("{region}",t),partition:"aws-cn"}),i9.has(t)&&(s={hostname:"s3.{region}.c2s.ic.gov".replace("{region}",t),partition:"aws-iso"}),oe.has(t)&&(s={hostname:"s3.{region}.sc2s.sgov.gov".replace("{region}",t),partition:"aws-iso-b"}),ot.has(t)&&(s={hostname:"s3.{region}.amazonaws.com".replace("{region}",t),partition:"aws-us-gov"}),void 0===s&&(s={hostname:i5.replace("{region}",t),partition:"aws"})}return Promise.resolve(tslib_es6_assign({signingService:"s3"},s))},serviceId:"S3",signingEscapePath:!1,urlParser:s(31823).e,useArnRegion:!1},or=tslib_es6_assign(tslib_es6_assign({},on),{runtime:"browser",base64Decoder:i6.G,base64Encoder:i6.s,bodyLengthChecker:i3.W,credentialDefaultProvider:function(t){return function(){return Promise.reject(Error("Credential is missing"))}},defaultUserAgentProvider:(0,i4.f)({serviceId:on.serviceId,clientVersion:"3.6.1"}),eventStreamSerdeProvider:function(t){return new iJ(t)},maxAttempts:i2.J,md5:i1,region:(0,iQ.n)("Region is missing"),requestHandler:new iZ.B,sha256:iM.Sha256,streamCollector:iZ.C,streamHasher:function(t,a){return(0,im.__awaiter)(this,void 0,void 0,function(){var s;return(0,im.__generator)(this,function(c){switch(c.label){case 0:var f,p;return s=new t,[4,(f=function(t){s.update(t)},void 0===p&&(p=1048576),new Promise(function(t,s){var c=new FileReader;c.addEventListener("error",s),c.addEventListener("abort",s);var g=a.size,m=0;function read(){if(m>=g){t();return}c.readAsArrayBuffer(a.slice(m,Math.min(g,m+p)))}c.addEventListener("load",function(t){var a=t.target.result;f(new Uint8Array(a)),m+=a.byteLength,read()}),read()}))];case 1:return c.sent(),[2,s.digest()]}})})},utf8Decoder:iX.fromUtf8,utf8Encoder:iX.toUtf8}),oi=s(80428),oo=s(50672),oa={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},os=s(43273),ou=s(70287),oc={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},ol={step:"build",tags:["USE_REGIONAL_ENDPOINT","S3"],name:"useRegionalEndpointMiddleware",override:!0},throw_200_exceptions_collectBody=function(t,a){return(void 0===t&&(t=new Uint8Array),t instanceof Uint8Array)?Promise.resolve(t):a.streamCollector(t)||Promise.resolve(new Uint8Array)},od={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},of=s(31868),op=s(56380),oh=function(t){function S3Client(a){var s,c,f,p,g,m,v,y,_,b,S=this,w=tslib_es6_assign(tslib_es6_assign({},or),a),C=(0,oi.Xb)(w),E=(0,oi.g4)(C),x=(0,of.A$)(E),P=(0,i2.BC)(x),I=(c=(s=(0,os.S8)(P)).bucketEndpoint,f=s.forcePathStyle,p=s.useAccelerateEndpoint,g=s.useDualstackEndpoint,v=void 0!==(m=s.useArnRegion)&&m,(0,im.__assign)((0,im.__assign)({},s),{bucketEndpoint:void 0!==c&&c,forcePathStyle:void 0!==f&&f,useAccelerateEndpoint:void 0!==p&&p,useDualstackEndpoint:void 0!==g&&g,useArnRegion:"function"==typeof v?v:function(){return Promise.resolve(v)}})),T=(y=(0,op.er)(I),(0,im.__assign)((0,im.__assign)({},y),{eventStreamMarshaller:y.eventStreamSerdeProvider(y)}));return(S=t.call(this,T)||this).config=T,S.middlewareStack.use((0,of.yt)(S.config)),S.middlewareStack.use((0,i2.NQ)(S.config)),S.middlewareStack.use((0,oo.VG)(S.config)),S.middlewareStack.use((0,os.G2)(S.config)),S.middlewareStack.use((0,ou.cV)(S.config)),S.middlewareStack.use((S.config,{applyToStack:function(t){t.add(function(){var t=this;return function(a){return function(s){return(0,im.__awaiter)(t,void 0,void 0,function(){var t,c;return(0,im.__generator)(this,function(f){if("string"==typeof(t=s.input.Bucket)&&!validate(t)&&t.indexOf("/")>=0)throw(c=Error("Bucket name shouldn't contain '/', received '"+t+"'")).name="InvalidBucketName",c;return[2,a((0,im.__assign)({},s))]})})}}}(),oc)}})),S.middlewareStack.use((_=S.config,{applyToStack:function(t){t.add(function(t){return function(a){return(0,im.__awaiter)(void 0,void 0,void 0,function(){var s,c;return(0,im.__generator)(this,function(f){switch(f.label){case 0:if(s=a.request,!ig.aW.isInstance(s)||_.isCustomEndpoint)return[2,t((0,im.__assign)({},a))];if("s3.amazonaws.com"!==s.hostname)return[3,1];return s.hostname="s3.us-east-1.amazonaws.com",[3,3];case 1:return c="aws-global",[4,_.region()];case 2:c===f.sent()&&(s.hostname="s3.amazonaws.com"),f.label=3;case 3:return[2,t((0,im.__assign)({},a))]}})})}},ol)}})),S.middlewareStack.use((b=S.config,{applyToStack:function(t){t.add(function(t){var a=this;return function(s){return function(c){return(0,im.__awaiter)(a,void 0,void 0,function(){var a;return(0,im.__generator)(this,function(f){return a=c.request,ig.aW.isInstance(a)&&a.body&&"node"===t.runtime&&(a.headers=(0,im.__assign)((0,im.__assign)({},a.headers),{Expect:"100-continue"})),[2,s((0,im.__assign)((0,im.__assign)({},c),{request:a}))]})})}}}(b),oa)}})),S.middlewareStack.use((0,op.XJ)(S.config)),S}return __extends(S3Client,t),S3Client.prototype.destroy=function(){t.prototype.destroy.call(this)},S3Client}(ih.KU),og=s(39444);function es_formatUrl(t){var a=t.port,s=t.query,c=t.protocol,f=t.path,p=t.hostname;c&&":"!==c.substr(-1)&&(c+=":"),a&&(p+=":"+a),f&&"/"!==f.charAt(0)&&(f="/"+f);var g=s?(0,og.I)(s):"";return g&&"?"!==g[0]&&(g="?"+g),c+"//"+p+f+g}var om=s(22099),ov=function(){function S3RequestPresigner(t){var a=(0,im.__assign)({service:t.signingName||t.service||"s3",uriEscapePath:t.uriEscapePath||!1},t);this.signer=new om.L1(a)}return S3RequestPresigner.prototype.presign=function(t,a){void 0===a&&(a={});var s=a.unsignableHeaders,c=void 0===s?new Set:s,f=a.unhoistableHeaders,p=void 0===f?new Set:f,g=(0,im.__rest)(a,["unsignableHeaders","unhoistableHeaders"]);return(0,im.__awaiter)(this,void 0,void 0,function(){return(0,im.__generator)(this,function(a){return c.add("content-type"),Object.keys(t.headers).map(function(t){return t.toLowerCase()}).filter(function(t){return t.startsWith("x-amz-server-side-encryption")}
61).forEach(function(t){p.add(t)}),t.headers["X-Amz-Content-Sha256"]="UNSIGNED-PAYLOAD",t.headers.host||(t.headers.host=t.hostname),[2,this.signer.presign(t,(0,im.__assign)({expiresIn:900,unsignableHeaders:c,unhoistableHeaders:p},g))]})})},S3RequestPresigner}(),oy=s(11964),o_=s.n(oy),ob=new it.k("axios-http-handler"),oS="sendProgress",ow=function(){function AxiosHttpHandler(t,a,s){void 0===t&&(t={}),this.httpOptions=t,this.emitter=a,this.cancelTokenSource=s}return AxiosHttpHandler.prototype.destroy=function(){},AxiosHttpHandler.prototype.handle=function(t,a){var s,c=this.httpOptions.requestTimeout,f=this.emitter,p=t.path;if(t.query){var g=(0,og.I)(t.query);g&&(p+="?"+g)}var m=t.port,v=t.protocol+"//"+t.hostname+(m?":"+m:"")+p,y={};return y.url=v,y.method=t.method,y.headers=t.headers,delete y.headers.host,t.body?y.data=t.body:y.headers["Content-Type"]&&(y.data=null),f&&(y.onUploadProgress=function(t){f.emit(oS,t),ob.debug(t)}),this.cancelTokenSource&&(y.cancelToken=this.cancelTokenSource.token),y.responseType="blob",Promise.race([o_().request(y).then(function(t){return{response:new ig.Zn({headers:t.headers,statusCode:t.status,body:t.data})}}).catch(function(t){throw ob.error(t),t}),(void 0===(s=c)&&(s=0),new Promise(function(t,a){s&&setTimeout(function(){var t=Error("Request did not complete within "+s+" ms");t.name="TimeoutError",a(t)},s)}))])},AxiosHttpHandler}(),oA=function(t){function PutObjectCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(PutObjectCommand,t),PutObjectCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use(getSsecPlugin(a)),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"PutObjectCommand",inputFilterSensitiveLog:rp.filterSensitiveLog,outputFilterSensitiveLog:rf.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},PutObjectCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b;return tslib_es6_generator(this,function(S){switch(S.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({"content-type":"application/octet-stream"},isSerializableHeaderValue(t.ACL)&&{"x-amz-acl":t.ACL}),isSerializableHeaderValue(t.CacheControl)&&{"cache-control":t.CacheControl}),isSerializableHeaderValue(t.ContentDisposition)&&{"content-disposition":t.ContentDisposition}),isSerializableHeaderValue(t.ContentEncoding)&&{"content-encoding":t.ContentEncoding}),isSerializableHeaderValue(t.ContentLanguage)&&{"content-language":t.ContentLanguage}),isSerializableHeaderValue(t.ContentLength)&&{"content-length":t.ContentLength.toString()}),isSerializableHeaderValue(t.ContentMD5)&&{"content-md5":t.ContentMD5}),isSerializableHeaderValue(t.ContentType)&&{"content-type":t.ContentType}),isSerializableHeaderValue(t.Expires)&&{expires:(0,ih._w)(t.Expires).toString()}),isSerializableHeaderValue(t.GrantFullControl)&&{"x-amz-grant-full-control":t.GrantFullControl}),isSerializableHeaderValue(t.GrantRead)&&{"x-amz-grant-read":t.GrantRead}),isSerializableHeaderValue(t.GrantReadACP)&&{"x-amz-grant-read-acp":t.GrantReadACP}),isSerializableHeaderValue(t.GrantWriteACP)&&{"x-amz-grant-write-acp":t.GrantWriteACP}),isSerializableHeaderValue(t.ServerSideEncryption)&&{"x-amz-server-side-encryption":t.ServerSideEncryption}),isSerializableHeaderValue(t.StorageClass)&&{"x-amz-storage-class":t.StorageClass}),isSerializableHeaderValue(t.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":t.WebsiteRedirectLocation}),isSerializableHeaderValue(t.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":t.SSECustomerAlgorithm}),isSerializableHeaderValue(t.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":t.SSECustomerKey}),isSerializableHeaderValue(t.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":t.SSECustomerKeyMD5}),isSerializableHeaderValue(t.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":t.SSEKMSKeyId}),isSerializableHeaderValue(t.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":t.SSEKMSEncryptionContext}),isSerializableHeaderValue(t.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":t.BucketKeyEnabled.toString()}),isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.Tagging)&&{"x-amz-tagging":t.Tagging}),isSerializableHeaderValue(t.ObjectLockMode)&&{"x-amz-object-lock-mode":t.ObjectLockMode}),isSerializableHeaderValue(t.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(t.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),isSerializableHeaderValue(t.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":t.ObjectLockLegalHoldStatus}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),void 0!==t.Metadata&&Object.keys(t.Metadata).reduce(function(a,s){var c;return tslib_es6_assign(tslib_es6_assign({},a),((c={})["x-amz-meta-"+s.toLowerCase()]=t.Metadata[s],c))},{})),c="/{Bucket}/{Key+}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");if(void 0!==t.Key){if((f=t.Key).length<=0)throw Error("Empty value provided for input HTTP label: Key.");c=c.replace("{Key+}",f.split("/").map(function(t){return(0,ih.jc)(t)}).join("/"))}else throw Error("No value provided for input HTTP label: Key.");return p={"x-id":"PutObject"},void 0!==t.Body&&(g=t.Body),[4,a.endpoint()];case 1:return v=(m=S.sent()).hostname,_=void 0===(y=m.protocol)?"https":y,b=m.port,[2,new ig.aW({protocol:_,hostname:v,port:b,method:"PUT",headers:s,path:c,query:p,body:g})]}})})},PutObjectCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){switch(c.label){case 0:if(200!==t.statusCode&&t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v;return tslib_es6_generator(this,function(y){switch(y.label){case 0:return c=[tslib_es6_assign({},t)],v={},[4,parseBody(t.body,a)];case 1:return s=tslib_es6_assign.apply(void 0,c.concat([(v.body=y.sent(),v)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body),p=(g=s.body).code||g.Code||p,m=(f=tslib_es6_assign(tslib_es6_assign({},g),{name:""+p,message:g.message||g.Message||p,$fault:"client",$metadata:deserializeMetadata(t)})).message||f.Message||p,f.message=m,delete f.Message,[2,Promise.reject(Object.assign(Error(m),f))]}})})];return s={$metadata:deserializeMetadata(t),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!==t.headers["x-amz-expiration"]&&(s.Expiration=t.headers["x-amz-expiration"]),void 0!==t.headers.etag&&(s.ETag=t.headers.etag),void 0!==t.headers["x-amz-server-side-encryption"]&&(s.ServerSideEncryption=t.headers["x-amz-server-side-encryption"]),void 0!==t.headers["x-amz-version-id"]&&(s.VersionId=t.headers["x-amz-version-id"]),void 0!==t.headers["x-amz-server-side-encryption-customer-algorithm"]&&(s.SSECustomerAlgorithm=t.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==t.headers["x-amz-server-side-encryption-customer-key-md5"]&&(s.SSECustomerKeyMD5=t.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==t.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(s.SSEKMSKeyId=t.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==t.headers["x-amz-server-side-encryption-context"]&&(s.SSEKMSEncryptionContext=t.headers["x-amz-server-side-encryption-context"]),void 0!==t.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(s.BucketKeyEnabled="true"===t.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==t.headers["x-amz-request-charged"]&&(s.RequestCharged=t.headers["x-amz-request-charged"]),[4,collectBody(t.body,a)];case 1:return c.sent(),[2,Promise.resolve(s)]}})})},PutObjectCommand}
61(ih.mY),oC=function(t){function CreateMultipartUploadCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(CreateMultipartUploadCommand,t),CreateMultipartUploadCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use(getSsecPlugin(a)),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"CreateMultipartUploadCommand",inputFilterSensitiveLog:$.filterSensitiveLog,outputFilterSensitiveLog:G.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},CreateMultipartUploadCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b;return tslib_es6_generator(this,function(S){switch(S.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},isSerializableHeaderValue(t.ACL)&&{"x-amz-acl":t.ACL}),isSerializableHeaderValue(t.CacheControl)&&{"cache-control":t.CacheControl}),isSerializableHeaderValue(t.ContentDisposition)&&{"content-disposition":t.ContentDisposition}),isSerializableHeaderValue(t.ContentEncoding)&&{"content-encoding":t.ContentEncoding}),isSerializableHeaderValue(t.ContentLanguage)&&{"content-language":t.ContentLanguage}),isSerializableHeaderValue(t.ContentType)&&{"content-type":t.ContentType}),isSerializableHeaderValue(t.Expires)&&{expires:(0,ih._w)(t.Expires).toString()}),isSerializableHeaderValue(t.GrantFullControl)&&{"x-amz-grant-full-control":t.GrantFullControl}),isSerializableHeaderValue(t.GrantRead)&&{"x-amz-grant-read":t.GrantRead}),isSerializableHeaderValue(t.GrantReadACP)&&{"x-amz-grant-read-acp":t.GrantReadACP}),isSerializableHeaderValue(t.GrantWriteACP)&&{"x-amz-grant-write-acp":t.GrantWriteACP}),isSerializableHeaderValue(t.ServerSideEncryption)&&{"x-amz-server-side-encryption":t.ServerSideEncryption}),isSerializableHeaderValue(t.StorageClass)&&{"x-amz-storage-class":t.StorageClass}),isSerializableHeaderValue(t.WebsiteRedirectLocation)&&{"x-amz-website-redirect-location":t.WebsiteRedirectLocation}),isSerializableHeaderValue(t.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":t.SSECustomerAlgorithm}),isSerializableHeaderValue(t.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":t.SSECustomerKey}),isSerializableHeaderValue(t.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":t.SSECustomerKeyMD5}),isSerializableHeaderValue(t.SSEKMSKeyId)&&{"x-amz-server-side-encryption-aws-kms-key-id":t.SSEKMSKeyId}),isSerializableHeaderValue(t.SSEKMSEncryptionContext)&&{"x-amz-server-side-encryption-context":t.SSEKMSEncryptionContext}),isSerializableHeaderValue(t.BucketKeyEnabled)&&{"x-amz-server-side-encryption-bucket-key-enabled":t.BucketKeyEnabled.toString()}),isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.Tagging)&&{"x-amz-tagging":t.Tagging}),isSerializableHeaderValue(t.ObjectLockMode)&&{"x-amz-object-lock-mode":t.ObjectLockMode}),isSerializableHeaderValue(t.ObjectLockRetainUntilDate)&&{"x-amz-object-lock-retain-until-date":(t.ObjectLockRetainUntilDate.toISOString().split(".")[0]+"Z").toString()}),isSerializableHeaderValue(t.ObjectLockLegalHoldStatus)&&{"x-amz-object-lock-legal-hold":t.ObjectLockLegalHoldStatus}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),void 0!==t.Metadata&&Object.keys(t.Metadata).reduce(function(a,s){var c;return tslib_es6_assign(tslib_es6_assign({},a),((c={})["x-amz-meta-"+s.toLowerCase()]=t.Metadata[s],c))},{})),c="/{Bucket}/{Key+}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");if(void 0!==t.Key){if((f=t.Key).length<=0)throw Error("Empty value provided for input HTTP label: Key.");c=c.replace("{Key+}",f.split("/").map(function(t){return(0,ih.jc)(t)}).join("/"))}else throw Error("No value provided for input HTTP label: Key.");return p={uploads:""},[4,a.endpoint()];case 1:return v=(m=S.sent()).hostname,_=void 0===(y=m.protocol)?"https":y,b=m.port,[2,new ig.aW({protocol:_,hostname:v,port:b,method:"POST",headers:s,path:c,query:p,body:g})]}})})},CreateMultipartUploadCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){switch(f.label){case 0:if(200!==t.statusCode&&t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v;return tslib_es6_generator(this,function(y){switch(y.label){case 0:return c=[tslib_es6_assign({},t)],v={},[4,parseBody(t.body,a)];case 1:return s=tslib_es6_assign.apply(void 0,c.concat([(v.body=y.sent(),v)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body),p=(g=s.body).code||g.Code||p,m=(f=tslib_es6_assign(tslib_es6_assign({},g),{name:""+p,message:g.message||g.Message||p,$fault:"client",$metadata:deserializeMetadata(t)})).message||f.Message||p,f.message=m,delete f.Message,[2,Promise.reject(Object.assign(Error(m),f))]}})})];return s={$metadata:deserializeMetadata(t),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!==t.headers["x-amz-abort-date"]&&(s.AbortDate=new Date(t.headers["x-amz-abort-date"])),void 0!==t.headers["x-amz-abort-rule-id"]&&(s.AbortRuleId=t.headers["x-amz-abort-rule-id"]),void 0!==t.headers["x-amz-server-side-encryption"]&&(s.ServerSideEncryption=t.headers["x-amz-server-side-encryption"]),void 0!==t.headers["x-amz-server-side-encryption-customer-algorithm"]&&(s.SSECustomerAlgorithm=t.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==t.headers["x-amz-server-side-encryption-customer-key-md5"]&&(s.SSECustomerKeyMD5=t.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==t.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(s.SSEKMSKeyId=t.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==t.headers["x-amz-server-side-encryption-context"]&&(s.SSEKMSEncryptionContext=t.headers["x-amz-server-side-encryption-context"]),void 0!==t.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(s.BucketKeyEnabled="true"===t.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==t.headers["x-amz-request-charged"]&&(s.RequestCharged=t.headers["x-amz-request-charged"]),[4,parseBody(t.body,a)];case 1:return void 0!==(c=f.sent()).Bucket&&(s.Bucket=c.Bucket),void 0!==c.Key&&(s.Key=c.Key),void 0!==c.UploadId&&(s.UploadId=c.UploadId),[2,Promise.resolve(s)]}})})},CreateMultipartUploadCommand}
61(ih.mY);(rk||(rk={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rO||(rO={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Encryption&&{Encryption:rI.filterSensitiveLog(t.Encryption)})},(rR||(rR={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.S3&&{S3:rO.filterSensitiveLog(t.S3)})},(v=rM||(rM={})).IGNORE="IGNORE",v.NONE="NONE",v.USE="USE",(rN||(rN={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(y=rU||(rU={})).DOCUMENT="DOCUMENT",y.LINES="LINES",(rL||(rL={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rD||(rD={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rB||(rB={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(_=rj||(rj={})).ALWAYS="ALWAYS",_.ASNEEDED="ASNEEDED",(rF||(rF={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rz||(rz={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rq||(rq={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rV||(rV={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rK||(rK={})).SELECT="SELECT",(rH||(rH={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.OutputLocation&&{OutputLocation:rR.filterSensitiveLog(t.OutputLocation)})},(rW||(rW={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.RestoreRequest&&{RestoreRequest:rH.filterSensitiveLog(t.RestoreRequest)})},(rG||(rG={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(r$||(r$={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rY||(rY={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rJ||(rJ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rZ||(rZ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rQ||(rQ={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(rX||(rX={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(b=r0||(r0={})).visit=function(t,a){return void 0!==t.Records?a.Records(t.Records):void 0!==t.Stats?a.Stats(t.Stats):void 0!==t.Progress?a.Progress(t.Progress):void 0!==t.Cont?a.Cont(t.Cont):void 0!==t.End?a.End(t.End):a._(t.$unknown[0],t.$unknown[1])},b.filterSensitiveLog=function(t){var a;return void 0!==t.Records?{Records:rZ.filterSensitiveLog(t.Records)}:void 0!==t.Stats?{Stats:rX.filterSensitiveLog(t.Stats)}:void 0!==t.Progress?{Progress:rJ.filterSensitiveLog(t.Progress)}:void 0!==t.Cont?{Cont:rG.filterSensitiveLog(t.Cont)}:void 0!==t.End?{End:r$.filterSensitiveLog(t.End)}:void 0!==t.$unknown?((a={})[t.$unknown[0]]="UNKNOWN",a):void 0},(r1||(r1={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.Payload&&{Payload:"STREAMING_CONTENT"})},(r2||(r2={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(r6||(r6={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(r3||(r3={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSECustomerKey&&{SSECustomerKey:ih.oc})},(r4||(r4={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc})},(r5||(r5={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSECustomerKey&&{SSECustomerKey:ih.oc})},(r8||(r8={})).filterSensitiveLog=function(t){return tslib_es6_assign({},t)},(r7||(r7={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign({},t),t.SSEKMSKeyId&&{SSEKMSKeyId:ih.oc})},(r9||(r9={})).filterSensitiveLog=function(t){return tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({},t),t.SSECustomerKey&&{SSECustomerKey:ih.oc}),t.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:ih.oc})};var oE=function(t){function UploadPartCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(UploadPartCommand,t),UploadPartCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use(getSsecPlugin(a)),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"UploadPartCommand",inputFilterSensitiveLog:r5.filterSensitiveLog,outputFilterSensitiveLog:r4.f
61ilterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},UploadPartCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b;return tslib_es6_generator(this,function(S){switch(S.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({"content-type":"application/octet-stream"},isSerializableHeaderValue(t.ContentLength)&&{"content-length":t.ContentLength.toString()}),isSerializableHeaderValue(t.ContentMD5)&&{"content-md5":t.ContentMD5}),isSerializableHeaderValue(t.SSECustomerAlgorithm)&&{"x-amz-server-side-encryption-customer-algorithm":t.SSECustomerAlgorithm}),isSerializableHeaderValue(t.SSECustomerKey)&&{"x-amz-server-side-encryption-customer-key":t.SSECustomerKey}),isSerializableHeaderValue(t.SSECustomerKeyMD5)&&{"x-amz-server-side-encryption-customer-key-md5":t.SSECustomerKeyMD5}),isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),c="/{Bucket}/{Key+}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");if(void 0!==t.Key){if((f=t.Key).length<=0)throw Error("Empty value provided for input HTTP label: Key.");c=c.replace("{Key+}",f.split("/").map(function(t){return(0,ih.jc)(t)}).join("/"))}else throw Error("No value provided for input HTTP label: Key.");return p=tslib_es6_assign(tslib_es6_assign({"x-id":"UploadPart"},void 0!==t.PartNumber&&{partNumber:t.PartNumber.toString()}),void 0!==t.UploadId&&{uploadId:t.UploadId}),void 0!==t.Body&&(g=t.Body),[4,a.endpoint()];case 1:return v=(m=S.sent()).hostname,_=void 0===(y=m.protocol)?"https":y,b=m.port,[2,new ig.aW({protocol:_,hostname:v,port:b,method:"PUT",headers:s,path:c,query:p,body:g})]}})})},UploadPartCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){switch(c.label){case 0:if(200!==t.statusCode&&t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v;return tslib_es6_generator(this,function(y){switch(y.label){case 0:return c=[tslib_es6_assign({},t)],v={},[4,parseBody(t.body,a)];case 1:return s=tslib_es6_assign.apply(void 0,c.concat([(v.body=y.sent(),v)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body),p=(g=s.body).code||g.Code||p,m=(f=tslib_es6_assign(tslib_es6_assign({},g),{name:""+p,message:g.message||g.Message||p,$fault:"client",$metadata:deserializeMetadata(t)})).message||f.Message||p,f.message=m,delete f.Message,[2,Promise.reject(Object.assign(Error(m),f))]}})})];return s={$metadata:deserializeMetadata(t),BucketKeyEnabled:void 0,ETag:void 0,RequestCharged:void 0,SSECustomerAlgorithm:void 0,SSECustomerKeyMD5:void 0,SSEKMSKeyId:void 0,ServerSideEncryption:void 0},void 0!==t.headers["x-amz-server-side-encryption"]&&(s.ServerSideEncryption=t.headers["x-amz-server-side-encryption"]),void 0!==t.headers.etag&&(s.ETag=t.headers.etag),void 0!==t.headers["x-amz-server-side-encryption-customer-algorithm"]&&(s.SSECustomerAlgorithm=t.headers["x-amz-server-side-encryption-customer-algorithm"]),void 0!==t.headers["x-amz-server-side-encryption-customer-key-md5"]&&(s.SSECustomerKeyMD5=t.headers["x-amz-server-side-encryption-customer-key-md5"]),void 0!==t.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(s.SSEKMSKeyId=t.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==t.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(s.BucketKeyEnabled="true"===t.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==t.headers["x-amz-request-charged"]&&(s.RequestCharged=t.headers["x-amz-request-charged"]),[4,collectBody(t.body,a)];case 1:return c.sent(),[2,Promise.resolve(s)]}})})},UploadPartCommand}(ih.mY),ox=function(t){function CompleteMultipartUploadCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(CompleteMultipartUploadCommand,t),CompleteMultipartUploadCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use({applyToStack:function(t){t.addRelativeTo(function(t){return function(s){return(0,im.__awaiter)(void 0,void 0,void 0,function(){var c,f,p,g,m,v,y;return(0,im.__generator)(this,function(_){switch(_.label){case 0:return[4,t(s)];case 1:if(f=(c=_.sent()).response,!ig.Zn.isInstance(f)||(p=f.statusCode,g=f.body,p<200&&p>=300))return[2,c];return[4,throw_200_exceptions_collectBody(g,a)];
61case 2:return[4,throw_200_exceptions_collectBody(m=_.sent(),a).then(function(t){return a.utf8Encoder(t)})];case 3:if(v=_.sent(),0===m.length)throw(y=Error("S3 aborted request")).name="InternalError",y;return v&&v.match("<Error>")&&(f.statusCode=400),f.body=m,[2,c]}})})}},od)}}),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"CompleteMultipartUploadCommand",inputFilterSensitiveLog:U.filterSensitiveLog,outputFilterSensitiveLog:R.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},CompleteMultipartUploadCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b,S;return tslib_es6_generator(this,function(w){switch(w.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign({"content-type":"application/xml"},isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),c="/{Bucket}/{Key+}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");if(void 0!==t.Key){if((f=t.Key).length<=0)throw Error("Empty value provided for input HTTP label: Key.");c=c.replace("{Key+}",f.split("/").map(function(t){return(0,ih.jc)(t)}).join("/"))}else throw Error("No value provided for input HTTP label: Key.");return p=tslib_es6_assign({},void 0!==t.UploadId&&{uploadId:t.UploadId}),void 0!==t.MultipartUpload&&(m=serializeAws_restXmlCompletedMultipartUpload(t.MultipartUpload,a),g='<?xml version="1.0" encoding="UTF-8"?>',m.addAttribute("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),g+=m.toString()),[4,a.endpoint()];case 1:return y=(v=w.sent()).hostname,b=void 0===(_=v.protocol)?"https":_,S=v.port,[2,new ig.aW({protocol:b,hostname:y,port:S,method:"POST",headers:s,path:c,query:p,body:g})]}})})},CompleteMultipartUploadCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){switch(f.label){case 0:if(200!==t.statusCode&&t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v;return tslib_es6_generator(this,function(y){switch(y.label){case 0:return c=[tslib_es6_assign({},t)],v={},[4,parseBody(t.body,a)];case 1:return s=tslib_es6_assign.apply(void 0,c.concat([(v.body=y.sent(),v)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body),p=(g=s.body).code||g.Code||p,m=(f=tslib_es6_assign(tslib_es6_assign({},g),{name:""+p,message:g.message||g.Message||p,$fault:"client",$metadata:deserializeMetadata(t)})).message||f.Message||p,f.message=m,delete f.Message,[2,Promise.reject(Object.assign(Error(m),f))]}})})];return s={$metadata:deserializeMetadata(t),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!==t.headers["x-amz-expiration"]&&(s.Expiration=t.headers["x-amz-expiration"]),void 0!==t.headers["x-amz-server-side-encryption"]&&(s.ServerSideEncryption=t.headers["x-amz-server-side-encryption"]),void 0!==t.headers["x-amz-version-id"]&&(s.VersionId=t.headers["x-amz-version-id"]),void 0!==t.headers["x-amz-server-side-encryption-aws-kms-key-id"]&&(s.SSEKMSKeyId=t.headers["x-amz-server-side-encryption-aws-kms-key-id"]),void 0!==t.headers["x-amz-server-side-encryption-bucket-key-enabled"]&&(s.BucketKeyEnabled="true"===t.headers["x-amz-server-side-encryption-bucket-key-enabled"]),void 0!==t.headers["x-amz-request-charged"]&&(s.RequestCharged=t.headers["x-amz-request-charged"]),[4,parseBody(t.body,a)];case 1:return void 0!==(c=f.sent()).Bucket&&(s.Bucket=c.Bucket),void 0!==c.ETag&&(s.ETag=c.ETag),void 0!==c.Key&&(s.Key=c.Key),void 0!==c.Location&&(s.Location=c.Location),[2,Promise.resolve(s)]}})})},CompleteMultipartUploadCommand}
61(ih.mY),oP=function(t){function AbortMultipartUploadCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(AbortMultipartUploadCommand,t),AbortMultipartUploadCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"AbortMultipartUploadCommand",inputFilterSensitiveLog:C.filterSensitiveLog,outputFilterSensitiveLog:w.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},AbortMultipartUploadCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b;return tslib_es6_generator(this,function(S){switch(S.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign({},isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),c="/{Bucket}/{Key+}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");if(void 0!==t.Key){if((f=t.Key).length<=0)throw Error("Empty value provided for input HTTP label: Key.");c=c.replace("{Key+}",f.split("/").map(function(t){return(0,ih.jc)(t)}).join("/"))}else throw Error("No value provided for input HTTP label: Key.");return p=tslib_es6_assign({"x-id":"AbortMultipartUpload"},void 0!==t.UploadId&&{uploadId:t.UploadId}),[4,a.endpoint()];case 1:return v=(m=S.sent()).hostname,_=void 0===(y=m.protocol)?"https":y,b=m.port,[2,new ig.aW({protocol:_,hostname:v,port:b,method:"DELETE",headers:s,path:c,query:p,body:g})]}})})},AbortMultipartUploadCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s;return tslib_es6_generator(this,function(c){switch(c.label){case 0:if(204!==t.statusCode&&t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y;return tslib_es6_generator(this,function(_){switch(_.label){case 0:return c=[tslib_es6_assign({},t)],y={},[4,parseBody(t.body,a)];case 1:switch(s=tslib_es6_assign.apply(void 0,c.concat([(y.body=_.sent(),y)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body)){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":return[3,2]}return[3,4];case 2:var b,S;return g=[{}],[4,(b=s,S=0,tslib_es6_awaiter(void 0,void 0,void 0,function(){var t;return tslib_es6_generator(this,function(a){return t={name:"NoSuchUpload",$fault:"client",$metadata:deserializeMetadata(b)},b.body,[2,t]})}))];case 3:return f=tslib_es6_assign.apply(void 0,[tslib_es6_assign.apply(void 0,g.concat([_.sent()])),{name:p,$metadata:deserializeMetadata(t)}]),[3,5];case 4:p=(m=s.body).code||m.Code||p,f=tslib_es6_assign(tslib_es6_assign({},m),{name:""+p,message:m.message||m.Message||p,$fault:"client",$metadata:deserializeMetadata(t)}),_.label=5;case 5:return v=f.message||f.Message||p,f.message=v,delete f.Message,[2,Promise.reject(Object.assign(Error(v),f))]}})})];return s={$metadata:deserializeMetadata(t),RequestCharged:void 0},void 0!==t.headers["x-amz-request-charged"]&&(s.RequestCharged=t.headers["x-amz-request-charged"]),[4,collectBody(t.body,a)];case 1:return c.sent(),[2,Promise.resolve(s)]}})})},AbortMultipartUploadCommand}(ih.mY),oI=function(t){function ListPartsCommand(a){var s=t.call(this)||this;return s.input=a,s}return __extends(ListPartsCommand,t),ListPartsCommand.prototype.resolveMiddleware=function(t,a,s){this.middlewareStack.use((0,iI.p2)(a,this.serialize,this.deserialize)),this.middlewareStack.use(getBucketEndpointPlugin(a));var c=t.concat(this.middlewareStack),f={logger:a.logger,clientName:"S3Client",commandName:"ListPartsCommand",inputFilterSensitiveLog:nJ.filterSensitiveLog,outputFilterSensitiveLog:nY.filterSensitiveLog},p=a.requestHandler;return c.resolve(function(t){return p.handle(t.request,s||{})},f)},ListPartsCommand.prototype.serialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b;return tslib_es6_generator(this,function(S){switch(S.label){case 0:if(s=tslib_es6_assign(tslib_es6_assign({},isSerializableHeaderValue(t.RequestPayer)&&{"x-amz-request-payer":t.RequestPayer}),isSerializableHeaderValue(t.ExpectedBucketOwner)&&{"x-amz-expected-bucket-owner":t.ExpectedBucketOwner}),c="/{Bucket}/{Key+}",void 0!==t.Bucket){if((f=t.Bucket).length<=0)throw Error("Empty value provided for input HTTP label: Bucket.");c=c.replace("{Bucket}",(0,ih.jc)(f))}else throw Error("No value provided for input HTTP label: Bucket.");if(void 0!==t.Key){if((f=t.Key).length<=0)throw Error("Empty value provided for input HTTP label: Key.");c=c.replace("{Key+}",f.split("/").map(function(t){return(0,ih.jc)(t)}).join("/"))}else throw Error("No value provided for input HTTP label: Key.");return p=tslib_es6_assign(tslib_es6_assign(tslib_es6_assign({"x-id":"ListParts"},void 0!==t.MaxParts&&{"max-parts":t.MaxParts.toString()}),void 0!==t.PartNumberMarker&&{"part-number-marker":t.PartNumberMarker}),void 0!==t.UploadId&&{uploadId:t.UploadId}),[4,a.endpoint()];case 1:return v=(m=S.sent()).hostname,_=void 0===(y=m.protocol)?"https":y,b=m.port,[2,new ig.aW({protocol:_,hostname:v,port:b,method:"GET",headers:s,path:c,query:p,body:g})]}})})},ListPartsCommand.prototype.deserialize=function(t,a){return tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c;return tslib_es6_generator(this,function(f){switch(f.label){case 0:if(200!==t.statusCode&&t.statusCode>=300)return[2,tslib_es6_awaiter(void 0,void 0,void 0,function(){var s,c,f,p,g,m,v;return tslib_es6_generator(this,function(y){switch(y.label){case 0:return c=[tslib_es6_assign({},t)],v={},[4,parseBody(t.body,a)];case 1:return s=tslib_es6_assign.apply(void 0,c.concat([(v.body=y.sent(),v)])),p="UnknownError",p=loadRestXmlErrorCode(t,s.body),p=(g=s.body).code||g.Code||p,m=(f=tslib_es6_assign(tslib_es6_assign({},g),{name:""+p,message:g.message||g.Message||p,$fault:"client",$metadata:deserializeMetadata(t)})).message||f.Message||p,f.message=m,delete f.Message,[2,Promise.reject(Object.assign(Error(m),f))]}})})];return s={$metadata:deserializeMetadata(t),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!==t.headers["x-amz-abort-date"]&&(s.AbortDate=new Date(t.headers["x-amz-abort-date"])),void 0!==t.headers["x-amz-abort-rule-id"]&&(s.AbortRuleId=t.headers["x-amz-abort-rule-id"]),void 0!==t.headers["x-amz-request-charged"]&&(s.RequestCharged=t.headers["x-amz-request-charged"]),[4,parseBody(t.body,a)];case 1:return void 0!==(c=f.sent()).Bucket&&(s.Bucket=c.Bucket),void 0!==c.Initiator&&(s.Initiator=deserializeAws_restXmlInitiator(c.Initiator,a)),void 0!==c.IsTruncated&&(s.IsTruncated="true"==c.IsTruncated),void 0!==c.Key&&(s.Key=c.Key),void 0!==c.MaxParts&&(s.MaxParts=parseInt(c.MaxParts)),void 0!==c.NextPartNumberMarker&&(s.NextPartNumberMarker=c.NextPartNumberMarker),void 0!==c.Owner&&(s.Owner=deserializeAws_restXmlOwner(c.Owner,a)),void 0!==c.PartNumberMarker&&(s.PartNumberMarker=c.PartNumberMarker),""===c.Part&&(s.Parts=[]),void 0!==c.Part&&(s.Parts=((0,ih.L)(c.Part)||[]).filter(function(t){return null!=t}).map(function(t){return null===t?null:deserializeAws_restXmlPart(t,a)})),void 0!==c.StorageClass&&(s.StorageClass=c.StorageClass),void 0!==c.UploadId&&(s.UploadId=c.UploadId),[2,Promise.resolve(s)]}})})},ListPartsCommand}
61(ih.mY),oT=s(17187),AWSS3ProviderManagedUpload_assign=function(){return(AWSS3ProviderManagedUpload_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},AWSS3ProviderManagedUpload_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},AWSS3ProviderManagedUpload_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},AWSS3ProviderManagedUpload_values=function(t){var a="function"==typeof Symbol&&Symbol.iterator,s=a&&t[a],c=0;if(s)return s.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&c>=t.length&&(t=void 0),{value:t&&t[c++],done:!t}}};throw TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")},ok=new it.k("AWSS3ProviderManagedUpload"),oO=function(){function AWSS3ProviderManagedUpload(t,a,s){this.minPartSize=5242880,this.queueSize=4,this.body=null,this.params=null,this.opts=null,this.multiPartMap=[],this.cancel=!1,this.bytesUploaded=0,this.totalBytesToUpload=0,this.emitter=null,this.params=t,this.opts=a,this.emitter=s}return AWSS3ProviderManagedUpload.prototype.upload=function(){return AWSS3ProviderManagedUpload_awaiter(this,void 0,void 0,function(){var t,a,s,c,f,p;return AWSS3ProviderManagedUpload_generator(this,function(g){switch(g.label){case 0:return t=this,[4,this.validateAndSanitizeBody(this.params.Body)];case 1:if(t.body=g.sent(),this.totalBytesToUpload=this.byteLength(this.body),!(this.totalBytesToUpload<=this.minPartSize))return[3,3];return this.params.Body=this.body,a=new oA(this.params),[4,this._createNewS3Client(this.opts,this.emitter)];case 2:return[2,g.sent().send(a)];case 3:return[4,this.createMultiPartUpload()];case 4:s=g.sent(),c=Math.ceil(this.totalBytesToUpload/this.minPartSize),f=0,g.label=5;case 5:if(!(f<c))return[3,10];return[4,this.checkIfUploadCancelled(s)];case 6:return g.sent(),p=this.createParts(f),[4,this.uploadParts(s,p)];case 7:return g.sent(),[4,this.checkIfUploadCancelled(s)];case 8:g.sent(),g.label=9;case 9:return f+=this.queueSize,[3,5];case 10:return[4,this.finishMultiPartUpload(s)];case 11:return[2,g.sent()]}})})},AWSS3ProviderManagedUpload.prototype.createParts=function(t){for(var a=[],s=t,c=t*this.minPartSize;c<this.totalBytesToUpload&&a.length<this.queueSize;){var f=Math.min(c+this.minPartSize,this.totalBytesToUpload);a.push({bodyPart:this.body.slice(c,f),partNumber:++s,emitter:new oT.EventEmitter,_lastUploadedBytes:0}),c+=this.minPartSize}return a},AWSS3ProviderManagedUpload.prototype.createMultiPartUpload=function(){return AWSS3ProviderManagedUpload_awaiter(this,void 0,void 0,function(){var t,a,s,c=this;return AWSS3ProviderManagedUpload_generator(this,function(f){switch(f.label){case 0:return t=new oC(this.params),[4,this._createNewS3Client(this.opts)];case 1:return(a=f.sent()).middlewareStack.add(function(t){return function(a){return c.params.ContentType&&a&&a.request&&a.request.headers&&(a.request.headers["Content-Type"]=c.params.ContentType),t(a)}},{step:"build"}),[4,a.send(t)];case 2:return s=f.sent(),ok.debug(s.UploadId),[2,s.UploadId]}})})},AWSS3ProviderManagedUpload.prototype.uploadParts=function(t,a){return AWSS3ProviderManagedUpload_awaiter(this,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b,S,w;return AWSS3ProviderManagedUpload_generator(this,function(C){switch(C.label){case 0:s=[],C.label=1;case 1:C.trys.push([1,6,7,8]),f=(c=AWSS3ProviderManagedUpload_values(a)).next(),C.label=2;case 2:if(f.done)return[3,5];return p=f.value,this.setupEventListener(p),g={PartNumber:p.partNumber,Body:p.bodyPart,UploadId:t,Key:this.params.Key,Bucket:this.params.Bucket},m=new oE(g),[4,this._createNewS3Client(this.opts,p.emitter)];case 3:v=C.sent(),s.push(v.send(m)),C.label=4;case 4:return f=c.next(),[3,2];case 5:return[3,8];case 6:return S={error:C.sent()},[3,8];case 7:try{f&&!f.done&&(w=c.return)&&w.call(c)}finally{if(S)throw S.error}
61return[7];case 8:return C.trys.push([8,10,,11]),[4,Promise.all(s)];case 9:for(_=0,y=C.sent();_<y.length;_++)this.multiPartMap.push({PartNumber:a[_].partNumber,ETag:y[_].ETag});return[3,11];case 10:return b=C.sent(),ok.error("error happened while uploading a part. Cancelling the multipart upload",b),this.cancelUpload(),[2];case 11:return[2]}})})},AWSS3ProviderManagedUpload.prototype.finishMultiPartUpload=function(t){return AWSS3ProviderManagedUpload_awaiter(this,void 0,void 0,function(){var a,s,c,f;return AWSS3ProviderManagedUpload_generator(this,function(p){switch(p.label){case 0:return a={Bucket:this.params.Bucket,Key:this.params.Key,UploadId:t,MultipartUpload:{Parts:this.multiPartMap}},s=new ox(a),[4,this._createNewS3Client(this.opts)];case 1:c=p.sent(),p.label=2;case 2:return p.trys.push([2,4,,5]),[4,c.send(s)];case 3:return[2,p.sent().Key];case 4:return f=p.sent(),ok.error("error happened while finishing the upload. Cancelling the multipart upload",f),this.cancelUpload(),[2];case 5:return[2]}})})},AWSS3ProviderManagedUpload.prototype.checkIfUploadCancelled=function(t){return AWSS3ProviderManagedUpload_awaiter(this,void 0,void 0,function(){var a,s;return AWSS3ProviderManagedUpload_generator(this,function(c){switch(c.label){case 0:if(!this.cancel)return[3,5];a="Upload was cancelled.",c.label=1;case 1:return c.trys.push([1,3,,4]),[4,this.cleanup(t)];case 2:return c.sent(),[3,4];case 3:return s=c.sent(),a+=s.errorMessage,[3,4];case 4:throw Error(a);case 5:return[2]}})})},AWSS3ProviderManagedUpload.prototype.cancelUpload=function(){this.cancel=!0},AWSS3ProviderManagedUpload.prototype.cleanup=function(t){return AWSS3ProviderManagedUpload_awaiter(this,void 0,void 0,function(){var a,s,c;return AWSS3ProviderManagedUpload_generator(this,function(f){switch(f.label){case 0:return this.body=null,this.multiPartMap=[],this.bytesUploaded=0,this.totalBytesToUpload=0,a={Bucket:this.params.Bucket,Key:this.params.Key,UploadId:t},[4,this._createNewS3Client(this.opts)];case 1:return[4,(s=f.sent()).send(new oP(a))];case 2:return f.sent(),[4,s.send(new oI(a))];case 3:if((c=f.sent())&&c.Parts&&c.Parts.length>0)throw Error("Multi Part upload clean up failed");return[2]}})})},AWSS3ProviderManagedUpload.prototype.setupEventListener=function(t){var a=this;t.emitter.on(oS,function(s){a.progressChanged(t.partNumber,s.loaded-t._lastUploadedBytes),t._lastUploadedBytes=s.loaded})},AWSS3ProviderManagedUpload.prototype.progressChanged=function(t,a){this.bytesUploaded+=a,this.emitter.emit(oS,{loaded:this.bytesUploaded,total:this.totalBytesToUpload,part:t,key:this.params.Key})},AWSS3ProviderManagedUpload.prototype.byteLength=function(t){if(null==t)return 0;if("number"==typeof t.byteLength)return t.byteLength;if("number"==typeof t.length)return t.length;if("number"==typeof t.size)return t.size;if("string"==typeof t.path);else throw Error("Cannot determine length of "+t)},AWSS3ProviderManagedUpload.prototype.validateAndSanitizeBody=function(t){return AWSS3ProviderManagedUpload_awaiter(this,void 0,void 0,function(){return AWSS3ProviderManagedUpload_generator(this,function(a){switch(a.label){case 0:if(!this.isGenericObject(t))return[3,1];return[2,JSON.stringify(t)];case 1:if(!this.isBlob(t))return[3,4];if(!ip.t4.isReactNative)return[3,3];return[4,(0,iZ.C)(t)];case 2:return[2,a.sent()];case 3:case 4:return[2,t]}})})},AWSS3ProviderManagedUpload.prototype.isBlob=function(t){return"undefined"!=typeof Blob&&t instanceof Blob},AWSS3ProviderManagedUpload.prototype.isGenericObject=function(t){if(null!==t&&"object"==typeof t)try{return!(this.byteLength(t)>=0)}catch(t){return!0}return!1},AWSS3ProviderManagedUpload.prototype._createNewS3Client=function(t,a){return AWSS3ProviderManagedUpload_awaiter(this,void 0,void 0,function(){var s,c,f,p,g,m;return AWSS3ProviderManagedUpload_generator(this,function(v){switch(v.label){case 0:return[4,this._getCredentials()];case 1:return s=v.sent(),c=t.region,f=t.dangerouslyConnectToHttpEndpointForTesting,p=t.cancelTokenSource,g={},f&&(g={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),(m=new oh(AWSS3ProviderManagedUpload_assign(AWSS3ProviderManagedUpload_assign({region:c,credentials:s},g),{requestHandler:new ow({},a,p),customUserAgent:(0,ip.Zm)()}))).middlewareStack.remove("contentLengthMiddleware"),[2,m]}})})},AWSS3ProviderManagedUpload.prototype._getCredentials=function(){return id.cN.get().then(function(t){if(!t)return!1;var a=id.cN.shear(t);return ok.debug("set credentials for storage",a),a}).catch(function(t){return ok.warn("ensure credentials error",t),!1})},AWSS3ProviderManagedUpload}(),AWSS3Provider_assign=function(){return(AWSS3Provider_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)}
61,AWSS3Provider_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},AWSS3Provider_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},oR=new it.k("AWSS3Provider"),oM="undefined"!=typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("amplify_default"):"@@amplify_default",dispatchStorageEvent=function(t,a,s,c,f){if(t){var p={attrs:s};c&&(p.metrics=c),il.Xb.dispatch("storage",{event:a,data:p,message:f},"Storage",oM)}},oN=function(){function AWSS3Provider(t){this._config=t||{},oR.debug("Storage Options",this._config)}return AWSS3Provider.prototype.getCategory=function(){return AWSS3Provider.CATEGORY},AWSS3Provider.prototype.getProviderName=function(){return AWSS3Provider.PROVIDER_NAME},AWSS3Provider.prototype.configure=function(t){if(oR.debug("configure Storage",t),!t)return this._config;var a=ic._b.parseMobilehubConfig(t);return this._config=Object.assign({},this._config,a.Storage),this._config.bucket||oR.debug("Do not have bucket yet"),this._config},AWSS3Provider.prototype.get=function(t,a){return AWSS3Provider_awaiter(this,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I,T,k,O,R;return AWSS3Provider_generator(this,function(M){switch(M.label){case 0:return[4,this._ensureCredentials()];case 1:if(!M.sent())return[2,Promise.reject("No credentials")];if(c=(s=Object.assign({},this._config,a)).bucket,f=s.download,p=s.cacheControl,g=s.contentDisposition,m=s.contentEncoding,v=s.contentLanguage,y=s.contentType,_=s.expires,b=s.track,S=this._prefix(s)+t,w=this._createNewS3Client(s),oR.debug("get "+t+" from "+S),C={Bucket:c,Key:S},p&&(C.ResponseCacheControl=p),g&&(C.ResponseContentDisposition=g),m&&(C.ResponseContentEncoding=m),v&&(C.ResponseContentLanguage=v),y&&(C.ResponseContentType=y),!0!==f)return[3,5];E=new ik(C),M.label=2;case 2:return M.trys.push([2,4,,5]),[4,w.send(E)];case 3:return x=M.sent(),dispatchStorageEvent(b,"download",{method:"get",result:"success"},{fileSize:Number(x.Body.size||x.Body.length)},"Download success for "+t),[2,x];case 4:throw P=M.sent(),dispatchStorageEvent(b,"download",{method:"get",result:"failed"},null,"Download failed with "+P.message),P;case 5:C.Expires=_||900,M.label=6;case 6:return M.trys.push([6,9,,10]),I=new ov(AWSS3Provider_assign({},w.config)),[4,function(t,a){return(0,im.__awaiter)(this,void 0,void 0,function(){var s,c,f=this;return(0,im.__generator)(this,function(p){switch(p.label){case 0:return s=function(t){return function(t){return(0,im.__awaiter)(f,void 0,void 0,function(){return(0,im.__generator)(this,function(a){return[2,{output:{request:t.request},response:void 0}]})})}},(c=t.middlewareStack.clone()).add(s,{step:"build",priority:"low"}),[4,a.resolveMiddleware(c,t.config,void 0)(a).then(function(t){return t.output.request})];case 1:return[2,p.sent()]}})})}(w,new ik(C))];case 7:return T=M.sent(),O=es_formatUrl,[4,I.presign(T,{expiresIn:C.Expires})];case 8:return k=O.apply(void 0,[M.sent()]),dispatchStorageEvent(b,"getSignedUrl",{method:"get",result:"success"},null,"Signed URL: "+k),[2,k];case 9:throw R=M.sent(),oR.warn("get signed url error",R),dispatchStorageEvent(b,"getSignedUrl",{method:"get",result:"failed"},null,"Could not get a signed URL for "+t),R;case 10:return[2]}})})},AWSS3Provider.prototype.put=function(t,a,s){return AWSS3Provider_awaiter(this,void 0,void 0,function(){var c,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I,T,k,O,R,M,N,U;return AWSS3Provider_generator(this,function(L){switch(L.label){case 0:return[4,this._ensureCredentials()];case 1:if(!L.sent())return[2,Promise.reject("No credentials")];f=(c=Object.assign({},this._config,s)).bucket,p=c.track,g=c.progressCallback,m=c.contentType,v=c.contentDisposition,y=c.cacheControl,_=c.expires,b=c.metadata,S=c.tagging,w=c.acl,C=c.serverSideEncryption,E=c.SSECustomerAlgorithm,x=c.SSECustomerKey,P=c.SSECustomerKeyMD5,I=c.SSEKMSKeyId,T=m||"binary/octet-stream",k=this._prefix(c)+t,oR.debug("put "+t+" to "+k),O={Bucket:f,Key:k,Body:a,ContentType:T},y&&(O.CacheControl=y),v&&(O.ContentDisposition=v),_&&(O.Expires=_),b&&(O.Metadata=b),S&&(O.Tagging=S),C&&(O.ServerSideEncryption=C,E&&(O.SSECustomerAlgorithm=E),x&&(O.SSECustomerKey=x),P&&(O.SSECustomerKeyMD5=P),I&&(O.SSEKMSKeyId=I)),R=new oT.EventEmitter,M=new oO(O,c,R),w&&(O.ACL=w),L.label=2;case 2:return L.trys.push([2,4,,5]),R.on("sendProgress",function(t){g&&("function"==typeof g?g(t):oR.warn("progressCallback should be a function, not a "+typeof g))}),[4,M.upload()];case 3:return N=L.sent(),oR.debug("upload result",N),dispatchStorageEvent(p,"upload",{method:"put",result:"success"},null,"Upload success for "+t),[2,{key:t}];case 4:throw U=L.sent(),oR.warn("error uploading",U),dispatchStorageEvent(p,"upload",{method:"put",result:"failed"},null,"Error uploading "+t),U;case 5:return[2]}})})},AWSS3Provider.prototype.remove=function(t,a){return AWSS3Provider_awaiter(this,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_;return AWSS3Provider_generator(this,function(b){switch(b.label){case 0:return[4,this._ensureCredentials()];case 1:if(!b.sent())return[2,Promise.reject("No credentials")];c=(s=Object.assign({},this._config,a)).bucket,f=s.track,p=this._prefix(s)+t,g=this._createNewS3Client(s),oR.debug("remove "+t+" from "+p),m={Bucket:c,Key:p},v=new iO(m),b.label=2;case 2:return b.trys.push([2,4,,5]),[4,g.send(v)];case 3:return y=b.sent(),dispatchStorageEvent(f,"delete",{method:"remove",result:"success"},null,"Deleted "+t+" successfully"),[2,y];case 4:throw _=b.sent(),dispatchStorageEvent(f,"delete",{method:"remove",result:"failed"},null,"Deletion of "+t+" failed with "+_),_;case 5:return[2]}})})},AWSS3Provider.prototype.list=function(t,a){return AWSS3Provider_awaiter(this,void 0,void 0,function(){var s,c,f,p,g,m,v,y,_,b,S,w;return AWSS3Provider_generator(this,function(C){switch(C.label){case 0:return[4,this._ensureCredentials()];case 1:if(!C.sent())return[2,Promise.reject("No credentials")];c=(s=Object.assign({},this._config,a)).bucket,f=s.track,p=s.maxKeys,m=(g=this._prefix(s))+t,v=this._createNewS3Client(s),oR.debug("list "+t+" from "+m),y={Bucket:c,Prefix:m,MaxKeys:p},_=new iR(y),C.label=2;case 2:return C.trys.push([2,4,,5]),[4,v.send(_)];case 3:return b=C.sent(),S=[],b&&b.Contents&&(S=b.Contents.map(function(t){return{key:t.Key.substr(g.length),eTag:t.ETag,lastModified:t.LastModified,size:t.Size}})),dispatchStorageEvent(f,"list",{method:"list",result:"success"},null,S.length+" items returned from list operation"),oR.debug("list",S),[2,S];case 4:throw w=C.sent(),oR.warn("list error",w),dispatchStorageEvent(f,"list",{method:"list",result:"failed"},null,"Listing items failed: "+w.message),w;case 5:return[2]}})})},AWSS3Provider.prototype._ensureCredentials=function(){var t=this;
61return id.cN.get().then(function(a){if(!a)return!1;var s=id.cN.shear(a);return oR.debug("set credentials for storage",s),t._config.credentials=s,!0}).catch(function(t){return oR.warn("ensure credentials error",t),!1})},AWSS3Provider.prototype._prefix=function(t){var a=t.credentials,s=t.level,c=t.customPrefix||{},f=t.identityId||a.identityId,p=(void 0!==c.private?c.private:"private/")+f+"/",g=(void 0!==c.protected?c.protected:"protected/")+f+"/",m=void 0!==c.public?c.public:"public/";switch(s){case"private":return p;case"protected":return g;default:return m}},AWSS3Provider.prototype._createNewS3Client=function(t,a){var s=t.region,c=t.credentials,f=t.cancelTokenSource,p=t.dangerouslyConnectToHttpEndpointForTesting,g={};return p&&(g={endpoint:"http://localhost:20005",tls:!1,bucketEndpoint:!1,forcePathStyle:!0}),new oh(AWSS3Provider_assign(AWSS3Provider_assign({region:s,credentials:c,customUserAgent:(0,ip.Zm)()},g),{requestHandler:new ow({},a,f)}))},AWSS3Provider.CATEGORY="Storage",AWSS3Provider.PROVIDER_NAME="AWSS3",AWSS3Provider}(),Storage_assign=function(){return(Storage_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},Storage_awaiter=function(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})},Storage_generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},Storage_read=function(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g},oU=new it.k("StorageClass"),oL="AWSS3",oD=function(){function Storage(){this._config={},this._pluggables=[],this._cancelTokenSourceMap=new WeakMap,oU.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 Storage.prototype.getModuleName=function(){return"Storage"},Storage.prototype.addPluggable=function(t){if(t&&"Storage"===t.getCategory())return this._pluggables.push(t),t.configure(this._config[t.getProviderName()])},Storage.prototype.getPluggable=function(t){var a=this._pluggables.find(function(a){return a.getProviderName()===t});return void 0===a?(oU.debug("No plugin found with providerName",t),null):a},Storage.prototype.removePluggable=function(t){this._pluggables=this._pluggables.filter(function(a){return a.getProviderName()!==t})},Storage.prototype.configure=function(t){var a=this;if(oU.debug("configure Storage"),!t)return this._config;var s=ic._b.parseMobilehubConfig(t),c=Object.keys(s.Storage),f=["bucket","region","level","track","customPrefix","serverSideEncryption","SSECustomerAlgorithm","SSECustomerKey","SSECustomerKeyMD5","SSEKMSKeyId"],isInStorageArrayKeys=function(t){return f.some(function(a){return a===t})};return c&&c.find(function(t){return isInStorageArrayKeys(t)})&&!s.Storage[oL]&&(s.Storage[oL]={}),Object.entries(s.Storage).map(function(t){var a=Storage_read(t,2),c=a[0],f=a[1];c&&isInStorageArrayKeys(c)&&void 0!==f&&(s.Storage[oL][c]=f,delete s.Storage[c])}),Object.keys(s.Storage).forEach(function(t){"string"!=typeof s.Storage[t]&&(a._config[t]=Storage_assign(Storage_assign({},a._config[t]),s.Storage[t]))}
61),this._pluggables.forEach(function(t){t.configure(a._config[t.getProviderName()])}),0===this._pluggables.length&&this.addPluggable(new oN),this._config},Storage.prototype.getCancellableTokenSource=function(){return o_().CancelToken.source()},Storage.prototype.updateRequestToBeCancellable=function(t,a){this._cancelTokenSourceMap.set(t,a)},Storage.prototype.cancel=function(t,a){var s=this._cancelTokenSourceMap.get(t);s?s.cancel(a):oU.debug("The request does not map to any cancel token")},Storage.prototype.get=function(t,a){var s=(a||{}).provider,c=void 0===s?oL:s,f=this._pluggables.find(function(t){return t.getProviderName()===c});if(void 0===f)return oU.debug("No plugin found with providerName",c),Promise.reject("No plugin found in Storage for the provider");var p=this.getCancellableTokenSource(),g=f.get(t,Storage_assign(Storage_assign({},a),{cancelTokenSource:p}));return this.updateRequestToBeCancellable(g,p),g},Storage.prototype.isCancelError=function(t){return o_().isCancel(t)},Storage.prototype.put=function(t,a,s){var c=(s||{}).provider,f=void 0===c?oL:c,p=this._pluggables.find(function(t){return t.getProviderName()===f});if(void 0===p)return oU.debug("No plugin found with providerName",f),Promise.reject("No plugin found in Storage for the provider");var g=this.getCancellableTokenSource(),m=p.put(t,a,Storage_assign(Storage_assign({},s),{cancelTokenSource:g}));return this.updateRequestToBeCancellable(m,g),m},Storage.prototype.remove=function(t,a){return Storage_awaiter(this,void 0,void 0,function(){var s,c,f;return Storage_generator(this,function(p){return(c=void 0===(s=(a||{}).provider)?oL:s,void 0===(f=this._pluggables.find(function(t){return t.getProviderName()===c})))?(oU.debug("No plugin found with providerName",c),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,f.remove(t,a)]})})},Storage.prototype.list=function(t,a){return Storage_awaiter(this,void 0,void 0,function(){var s,c,f;return Storage_generator(this,function(p){return(c=void 0===(s=(a||{}).provider)?oL:s,void 0===(f=this._pluggables.find(function(t){return t.getProviderName()===c})))?(oU.debug("No plugin found with providerName",c),[2,Promise.reject("No plugin found in Storage for the provider")]):[2,f.list(t,a)]})})},Storage}(),lib_esm_assign=function(){return(lib_esm_assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},oB=new it.k("Storage"),oj=null,oF=function(){if(oj)return oj;oB.debug("Create Storage Instance, debug"),(oj=new oD).vault=new oD;var t=oj.configure;return oj.configure=function(a){oB.debug("storage configure called");var s=lib_esm_assign({},t.call(oj,a));Object.keys(s).forEach(function(t){"string"!=typeof s[t]&&(s[t]=lib_esm_assign(lib_esm_assign({},s[t]),{level:"private"}))}),oB.debug("storage vault configure called"),oj.vault.configure(s)},oj}();ie.dQ.register(oF),s(55823),ie.dQ.Auth=ia.g,ie.dQ.Cache=iu.ZP,ie.dQ.ServiceWorker=io;var oz=ie.dQ},79742:function(t,a){"use strict";a.byteLength=function(t){var a=getLens(t),s=a[0],c=a[1];return(s+c)*3/4-c},a.toByteArray=function(t){var a,s,p=getLens(t),g=p[0],m=p[1],v=new f((g+m)*3/4-m),y=0,_=m>0?g-4:g;for(s=0;s<_;s+=4)a=c[t.charCodeAt(s)]<<18|c[t.charCodeAt(s+1)]<<12|c[t.charCodeAt(s+2)]<<6|c[t.charCodeAt(s+3)],v[y++]=a>>16&255,v[y++]=a>>8&255,v[y++]=255&a;return 2===m&&(a=c[t.charCodeAt(s)]<<2|c[t.charCodeAt(s+1)]>>4,v[y++]=255&a),1===m&&(a=c[t.charCodeAt(s)]<<10|c[t.charCodeAt(s+1)]<<4|c[t.charCodeAt(s+2)]>>2,v[y++]=a>>8&255,v[y++]=255&a),v},a.fromByteArray=function(t){for(var a,c=t.length,f=c%3,p=[],g=0,m=c-f;g<m;g+=16383)p.push(function(t,a,c){for(var f,p=[],g=a;g<c;g+=3)p.push(s[(f=(t[g]<<16&16711680)+(t[g+1]<<8&65280)+(255&t[g+2]))>>18&63]+s[f>>12&63]+s[f>>6&63]+s[63&f]);return p.join("")}(t,g,g+16383>m?m:g+16383));return 1===f?p.push(s[(a=t[c-1])>>2]+s[a<<4&63]+"=="):2===f&&p.push(s[(a=(t[c-2]<<8)+t[c-1])>>10]+s[a>>4&63]+s[a<<2&63]+"="),p.join("")};for(var s=[],c=[],f="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
61+/",g=0,m=p.length;g<m;++g)s[g]=p[g],c[p.charCodeAt(g)]=g;function getLens(t){var a=t.length;if(a%4>0)throw Error("Invalid string. Length must be a multiple of 4");var s=t.indexOf("=");-1===s&&(s=a);var c=s===a?0:4-s%4;return[s,c]}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},51206:function(t){t.exports=function(t){var a={};function r(s){if(a[s])return a[s].exports;var c=a[s]={i:s,l:!1,exports:{}};return t[s].call(c.exports,c,c.exports,r),c.l=!0,c.exports}return r.m=t,r.c=a,r.d=function(t,a,s){r.o(t,a)||Object.defineProperty(t,a,{enumerable:!0,get:s})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,a){if(1&a&&(t=r(t)),8&a||4&a&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(r.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&a&&"string"!=typeof t)for(var c in t)r.d(s,c,(function(a){return t[a]}).bind(null,c));return s},r.n=function(t){var a=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(a,"a",a),a},r.o=function(t,a){return Object.prototype.hasOwnProperty.call(t,a)},r.p="",r(r.s=90)}({17:function(t,a,s){"use strict";a.__esModule=!0,a.default=void 0;var c=s(18),f=function(){function e(){}return e.getFirstMatch=function(t,a){var s=a.match(t);return s&&s.length>0&&s[1]||""},e.getSecondMatch=function(t,a){var s=a.match(t);return s&&s.length>1&&s[2]||""},e.matchAndReturnConst=function(t,a,s){if(t.test(a))return s},e.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(t){var a=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(a.push(0),10===a[0])switch(a[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(t){var a=t.split(".").splice(0,2).map(function(t){return parseInt(t,10)||0});if(a.push(0),!(1===a[0]&&a[1]<5))return 1===a[0]&&a[1]<6?"Cupcake":1===a[0]&&a[1]>=6?"Donut":2===a[0]&&a[1]<2?"Eclair":2===a[0]&&2===a[1]?"Froyo":2===a[0]&&a[1]>2?"Gingerbread":3===a[0]?"Honeycomb":4===a[0]&&a[1]<1?"Ice Cream Sandwich":4===a[0]&&a[1]<4?"Jelly Bean":4===a[0]&&a[1]>=4?"KitKat":5===a[0]?"Lollipop":6===a[0]?"Marshmallow":7===a[0]?"Nougat":8===a[0]?"Oreo":9===a[0]?"Pie":void 0},e.getVersionPrecision=function(t){return t.split(".").length},e.compareVersions=function(t,a,s){void 0===s&&(s=!1);var c=e.getVersionPrecision(t),f=e.getVersionPrecision(a),p=Math.max(c,f),g=0,m=e.map([t,a],function(t){var a=p-e.getVersionPrecision(t),s=t+Array(a+1).join(".0");return e.map(s.split("."),function(t){return Array(20-t.length).join("0")+t}).reverse()});for(s&&(g=p-Math.min(c,f)),p-=1;p>=g;){if(m[0][p]>m[1][p])return 1;if(m[0][p]===m[1][p]){if(p===g)return 0;p-=1}else if(m[0][p]<m[1][p])return -1}},e.map=function(t,a){var s,c=[];if(Array.prototype.map)return Array.prototype.map.call(t,a);for(s=0;s<t.length;s+=1)c.push(a(t[s]));return c},e.find=function(t,a){var s,c;if(Array.prototype.find)return Array.prototype.find.call(t,a);for(s=0,c=t.length;s<c;s+=1){var f=t[s];if(a(f,s))return f}},e.assign=function(t){for(var a,s,c=arguments.length,f=Array(c>1?c-1:0),p=1;p<c;p++)f[p-1]=arguments[p];if(Object.assign)return Object.assign.apply(Object,[t].concat(f));for(a=0,s=f.length;a<s;a+=1)(function(){var s=f[a];"object"==typeof s&&null!==s&&Object.keys(s).forEach(function(a){t[a]=s[a]})})();return t},e.getBrowserAlias=function(t){return c.BROWSER_ALIASES_MAP[t]},e.getBrowserTypeByAlias=function(t){return c.BROWSER_MAP[t]||""},e}();a.default=f,t.exports=a.default},18:function(t,a,s){"use strict";a.__esModule=!0,a.ENGINE_MAP=a.OS_MAP=a.PLATFORMS_MAP=a.BROWSER_MAP=a.BROWSER_ALIASES_MAP=void 0,a.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},a.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},a.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},a.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},a.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(t,a,s){"use strict";a.__esModule=!0,a.default=void 0;var c,f=(c=s(91))&&c.__esModule?c:{default:c},p=s(18),g=function(){function e(){}return e.getParser=function(t,a){if(void 0===a&&(a=!1),"string"!=typeof t)throw Error("UserAgent should be a string");return new f.default(t,a)},e.parse=function(t){return new f.default(t).getResult()},function(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}(e,[{key:"BROWSER_MAP",get:function(){return p.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return p.ENGINE_MAP}},{key:"OS_MAP",get:function(){return p.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return p.PLATFORMS_MAP}}]),e}();a.default=g,t.exports=a.default},91:function(t,a,s){"use strict";a.__esModule=!0,a.default=void 0;var c=u(s(92)),f=u(s(93)),p=u(s(94)),g=u(s(95)),m=u(s(17));function u(t){return t&&t.__esModule?t:{default:t}}var v=function(){function e(t,a){if(void 0===a&&(a=!1),null==t||""===t)throw Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},!0!==a&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(t){return t.test(this._ua)},t.parseBrowser=function(){var t=this;this.parsedResult.browser={};
vendor: 6,567 bytes, line 61
61var a=m.default.find(c.default,function(a){if("function"==typeof a.test)return a.test(t);if(a.test instanceof Array)return a.test.some(function(a){return t.test(a)});throw Error("Browser's test function is not valid")});return a&&(this.parsedResult.browser=a.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var t=this;this.parsedResult.os={};var a=m.default.find(f.default,function(a){if("function"==typeof a.test)return a.test(t);if(a.test instanceof Array)return a.test.some(function(a){return t.test(a)});throw Error("Browser's test function is not valid")});return a&&(this.parsedResult.os=a.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(t){var a=this.getOS().name;return t?String(a).toLowerCase()||"":a||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(t){void 0===t&&(t=!1);var a=this.getPlatform().type;return t?String(a).toLowerCase()||"":a||""},t.parsePlatform=function(){var t=this;this.parsedResult.platform={};var a=m.default.find(p.default,function(a){if("function"==typeof a.test)return a.test(t);if(a.test instanceof Array)return a.test.some(function(a){return t.test(a)});throw Error("Browser's test function is not valid")});return a&&(this.parsedResult.platform=a.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var t=this;this.parsedResult.engine={};var a=m.default.find(g.default,function(a){if("function"==typeof a.test)return a.test(t);if(a.test instanceof Array)return a.test.some(function(a){return t.test(a)});throw Error("Browser's test function is not valid")});return a&&(this.parsedResult.engine=a.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return m.default.assign({},this.parsedResult)},t.satisfies=function(t){var a=this,s={},c=0,f={},p=0;if(Object.keys(t).forEach(function(a){var g=t[a];"string"==typeof g?(f[a]=g,p+=1):"object"==typeof g&&(s[a]=g,c+=1)}),c>0){var g=Object.keys(s),v=m.default.find(g,function(t){return a.isOS(t)});if(v){var y=this.satisfies(s[v]);if(void 0!==y)return y}var _=m.default.find(g,function(t){return a.isPlatform(t)});if(_){var b=this.satisfies(s[_]);if(void 0!==b)return b}}if(p>0){var S=Object.keys(f),w=m.default.find(S,function(t){return a.isBrowser(t,!0)});if(void 0!==w)return this.compareVersion(f[w])}},t.isBrowser=function(t,a){void 0===a&&(a=!1);var s=this.getBrowserName().toLowerCase(),c=t.toLowerCase(),f=m.default.getBrowserTypeByAlias(c);return a&&f&&(c=f.toLowerCase()),c===s},t.compareVersion=function(t){var a=[0],s=t,c=!1,f=this.getBrowserVersion();if("string"==typeof f)return">"===t[0]||"<"===t[0]?(s=t.substr(1),"="===t[1]?(c=!0,s=t.substr(2)):a=[],">"===t[0]?a.push(1):a.push(-1)):"="===t[0]?s=t.substr(1):"~"===t[0]&&(c=!0,s=t.substr(1)),a.indexOf(m.default.compareVersions(f,s,c))>-1},t.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},t.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},t.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},t.is=function(t,a){return void 0===a&&(a=!1),this.isBrowser(t,a)||this.isOS(t)||this.isPlatform(t)},t.some=function(t){var a=this;return void 0===t&&(t=[]),t.some(function(t){return a.is(t)})},e}();a.default=v,t.exports=a.default},92:function(t,a,s){"use strict";a.__esModule=!0,a.default=void 0;var c,f=(c=s(17))&&c.__esModule?c:{default:c},p=/version\/(\d+(\.?_?\d+)+)/i,g=[{test:[/googlebot/i],describe:function(t){var a={name:"Googlebot"},s=f.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/opera/i],describe:function(t){var a={name:"Opera"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/opr\/|opios/i],describe:function(t){var a={name:"Opera"},s=f.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/SamsungBrowser/i],describe:function(t){var a={name:"Samsung Internet for Android"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/Whale/i],describe:function(t){var a={name:"NAVER Whale Browser"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/MZBrowser/i],describe:function(t){var a={name:"MZ Browser"},s=f.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/focus/i],describe:function(t){var a={name:"Focus"},s=f.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/swing/i],describe:function(t){var a={name:"Swing"},s=f.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/coast/i],describe:function(t){var a={name:"Opera Coast"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var a={name:"Opera Touch"},s=f.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/yabrowser/i],describe:function(t){var a={name:"Yandex Browser"},s=f.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/ucbrowser/i],describe:function(t){var a={name:"UC Browser"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/Maxthon|mxios/i],describe:function(t){var a={name:"Maxthon"}
vendor: 7,818 bytes, line 61
61,s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/epiphany/i],describe:function(t){var a={name:"Epiphany"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/puffin/i],describe:function(t){var a={name:"Puffin"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/sleipnir/i],describe:function(t){var a={name:"Sleipnir"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/k-meleon/i],describe:function(t){var a={name:"K-Meleon"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/micromessenger/i],describe:function(t){var a={name:"WeChat"},s=f.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/qqbrowser/i],describe:function(t){var a={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},s=f.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/msie|trident/i],describe:function(t){var a={name:"Internet Explorer"},s=f.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/\sedg\//i],describe:function(t){var a={name:"Microsoft Edge"},s=f.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/edg([ea]|ios)/i],describe:function(t){var a={name:"Microsoft Edge"},s=f.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/vivaldi/i],describe:function(t){var a={name:"Vivaldi"},s=f.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/seamonkey/i],describe:function(t){var a={name:"SeaMonkey"},s=f.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/sailfish/i],describe:function(t){var a={name:"Sailfish"},s=f.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return s&&(a.version=s),a}},{test:[/silk/i],describe:function(t){var a={name:"Amazon Silk"},s=f.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/phantom/i],describe:function(t){var a={name:"PhantomJS"},s=f.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/slimerjs/i],describe:function(t){var a={name:"SlimerJS"},s=f.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var a={name:"BlackBerry"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var a={name:"WebOS Browser"},s=f.default.getFirstMatch(p,t)||f.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/bada/i],describe:function(t){var a={name:"Bada"},s=f.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/tizen/i],describe:function(t){var a={name:"Tizen"},s=f.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/qupzilla/i],describe:function(t){var a={name:"QupZilla"},s=f.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var a={name:"Firefox"},s=f.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/electron/i],describe:function(t){var a={name:"Electron"},s=f.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/MiuiBrowser/i],describe:function(t){var a={name:"Miui"},s=f.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/chromium/i],describe:function(t){var a={name:"Chromium"},s=f.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/chrome|crios|crmo/i],describe:function(t){var a={name:"Chrome"},s=f.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/GSA/i],describe:function(t){var a={name:"Google Search"},s=f.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:function(t){var a=!t.test(/like android/i),s=t.test(/android/i);return a&&s},describe:function(t){var a={name:"Android Browser"},s=f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/playstation 4/i],describe:function(t){var a={name:"PlayStation 4"},s=f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/safari|applewebkit/i],describe:function(t){var a={name:"Safari"},s=f.default.getFirstMatch(p,t);return s&&(a.version=s),a}},{test:[/.*/i],describe:function(t){var a=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:f.default.getFirstMatch(a,t),version:f.default.getSecondMatch(a,t)}}}];a.default=g,t.exports=a.default},93:function(t,a,s){"use strict";a.__esModule=!0,a.default=void 0;var c,f=(c=s(17))&&c.__esModule?c:{default:c},p=s(18),g=[{test:[/Roku\/DVP/],describe:function(t){var a=f.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:p.OS_MAP.Roku,version:a}}},{test:[/windows phone/i],describe:function(t){var a=f.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:p.OS_MAP.WindowsPhone,version:a}}},{test:[/windows /i],describe:function(t){var a=f.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),s=f.default.getWindowsVersionName(a);return{name:p.OS_MAP.Windows,version:a,versionName:s}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var a={name:p.OS_MAP.iOS},s=f.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return s&&(a.version=s),a}},{test:[/macintosh/i],describe:function(t){var a=f.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),s=f.default.getMacOSVersionName(a),c={name:p.OS_MAP.MacOS,version:a};return s&&(c.versionName=s),c}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var a=f.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:p.OS_MAP.iOS,version:a}}},{test:function(t){var a=!t.test(/like android/i),s=t.test(/android/i);return a&&s},describe:function(t){var a=f.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),s=f.default.getAndroidVersionName(a),c={name:p.OS_MAP.Android,version:a};return s&&(c.versionName=s),c}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var a=f.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),s={name:p.OS_MAP.WebOS};return a&&a.length&&(s.version=a),s}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var a=f.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||f.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||f.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:p.OS_MAP.BlackBerry,version:a}}},{test:[/bada/i],describe:function(t){var a=f.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:p.OS_MAP.Bada,version:a}}},{test:[/tizen/i],describe:function(t){var a=f.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:p.OS_MAP.Tizen,version:a}}},{test:[/linux/i],describe:function(){return{name:p.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:p.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var a=f.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);
vendor: 1,884 bytes, line 61
61return{name:p.OS_MAP.PlayStation4,version:a}}}];a.default=g,t.exports=a.default},94:function(t,a,s){"use strict";a.__esModule=!0,a.default=void 0;var c,f=(c=s(17))&&c.__esModule?c:{default:c},p=s(18),g=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var a=f.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",s={type:p.PLATFORMS_MAP.mobile,vendor:"Huawei"};return a&&(s.model=a),s}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:p.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:p.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:p.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:p.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:p.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:p.PLATFORMS_MAP.tablet}}},{test:function(t){var a=t.test(/ipod|iphone/i),s=t.test(/like (ipod|iphone)/i);return a&&!s},describe:function(t){var a=f.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:p.PLATFORMS_MAP.mobile,vendor:"Apple",model:a}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:p.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:p.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:p.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:p.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:p.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}}
61,{test:function(t){var a=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&a>=3},describe:function(){return{type:p.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:p.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:p.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:p.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:p.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:p.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:p.PLATFORMS_MAP.tv}}}];a.default=g,t.exports=a.default},95:function(t,a,s){"use strict";a.__esModule=!0,a.default=void 0;var c,f=(c=s(17))&&c.__esModule?c:{default:c},p=s(18),g=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:p.ENGINE_MAP.Blink};var a=f.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:p.ENGINE_MAP.EdgeHTML,version:a}}},{test:[/trident/i],describe:function(t){var a={name:p.ENGINE_MAP.Trident},s=f.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:function(t){return t.test(/presto/i)},describe:function(t){var a={name:p.ENGINE_MAP.Presto},s=f.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:function(t){var a=t.test(/gecko/i),s=t.test(/like gecko/i);return a&&!s},describe:function(t){var a={name:p.ENGINE_MAP.Gecko},s=f.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:p.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var a={name:p.ENGINE_MAP.WebKit},s=f.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return s&&(a.version=s),a}}];a.default=g,t.exports=a.default}})},48764:function(t,a,s){"use strict";/*!
62 * The buffer module from node.js, for the browser.
63 *
64 * @author   Feross Aboukhadijeh <http://feross.org>
65 * @license  MIT
66 */var c=s(79742),f=s(80645),p=s(5826);function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(t,a){if(kMaxLength()<a)throw RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(a)).__proto__=Buffer.prototype:(null===t&&(t=new Buffer(a)),t.length=a),t}function Buffer(t,a,s){if(!Buffer.TYPED_ARRAY_SUPPORT&&!(this instanceof Buffer))return new Buffer(t,a,s);if("number"==typeof t){if("string"==typeof a)throw Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,t)}return from(this,t,a,s)}function from(t,a,s,c){if("number"==typeof a)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&a instanceof ArrayBuffer?function(t,a,s,c){if(a.byteLength,s<0||a.byteLength<s)throw RangeError("'offset' is out of bounds");if(a.byteLength<s+(c||0))throw RangeError("'length' is out of bounds");return a=void 0===s&&void 0===c?new Uint8Array(a):void 0===c?new Uint8Array(a,s):new Uint8Array(a,s,c),Buffer.TYPED_ARRAY_SUPPORT?(t=a).__proto__=Buffer.prototype:t=fromArrayLike(t,a),t}(t,a,s,c):"string"==typeof a?function(t,a,s){if(("string"!=typeof s||""===s)&&(s="utf8"),!Buffer.isEncoding(s))throw TypeError('"encoding" must be a valid string encoding');var c=0|byteLength(a,s),f=(t=createBuffer(t,c)).write(a,s);return f!==c&&(t=t.slice(0,f)),t}(t,a,s):function(t,a){if(Buffer.isBuffer(a)){var s,c=0|checked(a.length);return 0===(t=createBuffer(t,c)).length||a.copy(t,0,0,c),t}if(a){if("undefined"!=typeof ArrayBuffer&&a.buffer instanceof ArrayBuffer||"length"in a)return"number"!=typeof a.length||(s=a.length)!=s?createBuffer(t,0):fromArrayLike(t,a);if("Buffer"===a.type&&p(a.data))return fromArrayLike(t,a.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,a)}function assertSize(t){if("number"!=typeof t)throw TypeError('"size" argument must be a number');if(t<0)throw RangeError('"size" argument must not be negative')}
66function allocUnsafe(t,a){if(assertSize(a),t=createBuffer(t,a<0?0:0|checked(a)),!Buffer.TYPED_ARRAY_SUPPORT)for(var s=0;s<a;++s)t[s]=0;return t}function fromArrayLike(t,a){var s=a.length<0?0:0|checked(a.length);t=createBuffer(t,s);for(var c=0;c<s;c+=1)t[c]=255&a[c];return t}function checked(t){if(t>=kMaxLength())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|t}function byteLength(t,a){if(Buffer.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var s=t.length;if(0===s)return 0;for(var c=!1;;)switch(a){case"ascii":case"latin1":case"binary":return s;case"utf8":case"utf-8":case void 0:return utf8ToBytes(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*s;case"hex":return s>>>1;case"base64":return base64ToBytes(t).length;default:if(c)return utf8ToBytes(t).length;a=(""+a).toLowerCase(),c=!0}}function slowToString(t,a,s){var f,p,g=!1;if((void 0===a||a<0)&&(a=0),a>this.length||((void 0===s||s>this.length)&&(s=this.length),s<=0||(s>>>=0)<=(a>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,a,s){var c,f=t.length;(!a||a<0)&&(a=0),(!s||s<0||s>f)&&(s=f);for(var p="",g=a;g<s;++g)p+=(c=t[g])<16?"0"+c.toString(16):c.toString(16);return p}(this,a,s);case"utf8":case"utf-8":return utf8Slice(this,a,s);case"ascii":return function(t,a,s){var c="";s=Math.min(t.length,s);for(var f=a;f<s;++f)c+=String.fromCharCode(127&t[f]);return c}(this,a,s);case"latin1":case"binary":return function(t,a,s){var c="";s=Math.min(t.length,s);for(var f=a;f<s;++f)c+=String.fromCharCode(t[f]);return c}(this,a,s);case"base64":return f=a,p=s,0===f&&p===this.length?c.fromByteArray(this):c.fromByteArray(this.slice(f,p));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,a,s){for(var c=t.slice(a,s),f="",p=0;p<c.length;p+=2)f+=String.fromCharCode(c[p]+256*c[p+1]);return f}(this,a,s);default:if(g)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),g=!0}}function swap(t,a,s){var c=t[a];t[a]=t[s],t[s]=c}function bidirectionalIndexOf(t,a,s,c,f){if(0===t.length)return -1;if("string"==typeof s?(c=s,s=0):s>2147483647?s=2147483647:s<-2147483648&&(s=-2147483648),isNaN(s=+s)&&(s=f?0:t.length-1),s<0&&(s=t.length+s),s>=t.length){if(f)return -1;s=t.length-1}else if(s<0){if(!f)return -1;s=0}if("string"==typeof a&&(a=Buffer.from(a,c)),Buffer.isBuffer(a))return 0===a.length?-1:arrayIndexOf(t,a,s,c,f);if("number"==typeof a)return(a&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf)?f?Uint8Array.prototype.indexOf.call(t,a,s):Uint8Array.prototype.lastIndexOf.call(t,a,s):arrayIndexOf(t,[a],s,c,f);throw TypeError("val must be string, number or Buffer")}function arrayIndexOf(t,a,s,c,f){var p,g=1,m=t.length,v=a.length;if(void 0!==c&&("ucs2"===(c=String(c).toLowerCase())||"ucs-2"===c||"utf16le"===c||"utf-16le"===c)){if(t.length<2||a.length<2)return -1;g=2,m/=2,v/=2,s/=2}function read(t,a){return 1===g?t[a]:t.readUInt16BE(a*g)}if(f){var y=-1;for(p=s;p<m;p++)if(read(t,p)===read(a,-1===y?0:p-y)){if(-1===y&&(y=p),p-y+1===v)return y*g}else -1!==y&&(p-=p-y),y=-1}else for(s+v>m&&(s=m-v),p=s;p>=0;p--){for(var _=!0,b=0;b<v;b++)if(read(t,p+b)!==read(a,b)){_=!1;break}if(_)return p}return -1}function utf8Slice(t,a,s){s=Math.min(t.length,s);for(var c=[],f=a;f<s;){var p,g,m,v,y=t[f],_=null,b=y>239?4:y>223?3:y>191?2:1;if(f+b<=s)switch(b){case 1:y<128&&(_=y);break;case 2:(192&(p=t[f+1]))==128&&(v=(31&y)<<6|63&p)>127&&(_=v);break;case 3:p=t[f+1],g=t[f+2],(192&p)==128&&(192&g)==128&&(v=(15&y)<<12|(63&p)<<6|63&g)>2047&&(v<55296||v>57343)&&(_=v);break;case 4:p=t[f+1],g=t[f+2],m=t[f+3],(192&p)==128&&(192&g)==128&&(192&m)==128&&(v=(15&y)<<18|(63&p)<<12|(63&g)<<6|63&m)>65535&&v<1114112&&(_=v)}null===_?(_=65533,b=1):_>65535&&(_-=65536,c.push(_>>>10&1023|55296),_=56320|1023&_),c.push(_),f+=b}return function(t){var a=t.length;if(a<=4096)return String.fromCharCode.apply(String,t);for(var s="",c=0;c<a;)s+=String.fromCharCode.apply(String,t.slice(c,c+=4096));return s}(c)}function checkOffset(t,a,s){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+a>s)throw RangeError("Trying to access beyond buffer length")}function checkInt(t,a,s,c,f,p){if(!Buffer.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(a>f||a<p)throw RangeError('"value" argument is out of bounds');if(s+c>t.length)throw RangeError("Index out of range")}function objectWriteUInt16(t,a,s,c){a<0&&(a=65535+a+1);for(var f=0,p=Math.min(t.length-s,2);f<p;++f)t[s+f]=(a&255<<8*(c?f:1-f))>>>(c?f:1-f)*8}function objectWriteUInt32(t,a,s,c){a<0&&(a=4294967295+a+1);for(var f=0,p=Math.min(t.length-s,4);f<p;++f)t[s+f]=a>>>(c?f:3-f)*8&255}
66function checkIEEE754(t,a,s,c,f,p){if(s+c>t.length||s<0)throw RangeError("Index out of range")}function writeFloat(t,a,s,c,p){return p||checkIEEE754(t,a,s,4,34028234663852886e22,-34028234663852886e22),f.write(t,a,s,c,23,4),s+4}function writeDouble(t,a,s,c,p){return p||checkIEEE754(t,a,s,8,17976931348623157e292,-17976931348623157e292),f.write(t,a,s,c,52,8),s+8}a.lW=Buffer,a.h2=50,Buffer.TYPED_ARRAY_SUPPORT=void 0!==s.g.TYPED_ARRAY_SUPPORT?s.g.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),kMaxLength(),Buffer.poolSize=8192,Buffer._augment=function(t){return t.__proto__=Buffer.prototype,t},Buffer.from=function(t,a,s){return from(null,t,a,s)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&Buffer[Symbol.species]===Buffer&&Object.defineProperty(Buffer,Symbol.species,{value:null,configurable:!0})),Buffer.alloc=function(t,a,s){return(assertSize(t),t<=0)?createBuffer(null,t):void 0!==a?"string"==typeof s?createBuffer(null,t).fill(a,s):createBuffer(null,t).fill(a):createBuffer(null,t)},Buffer.allocUnsafe=function(t){return allocUnsafe(null,t)},Buffer.allocUnsafeSlow=function(t){return allocUnsafe(null,t)},Buffer.isBuffer=function(t){return!!(null!=t&&t._isBuffer)},Buffer.compare=function(t,a){if(!Buffer.isBuffer(t)||!Buffer.isBuffer(a))throw TypeError("Arguments must be Buffers");if(t===a)return 0;for(var s=t.length,c=a.length,f=0,p=Math.min(s,c);f<p;++f)if(t[f]!==a[f]){s=t[f],c=a[f];break}return s<c?-1:c<s?1:0},Buffer.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(t,a){if(!p(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return Buffer.alloc(0);if(void 0===a)for(s=0,a=0;s<t.length;++s)a+=t[s].length;var s,c=Buffer.allocUnsafe(a),f=0;for(s=0;s<t.length;++s){var g=t[s];if(!Buffer.isBuffer(g))throw TypeError('"list" argument must be an Array of Buffers');g.copy(c,f),f+=g.length}return c},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var a=0;a<t;a+=2)swap(this,a,a+1);return this},Buffer.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var a=0;a<t;a+=4)swap(this,a,a+3),swap(this,a+1,a+2);return this},Buffer.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var a=0;a<t;a+=8)swap(this,a,a+7),swap(this,a+1,a+6),swap(this,a+2,a+5),swap(this,a+3,a+4);return this},Buffer.prototype.toString=function(){var t=0|this.length;return 0===t?"":0==arguments.length?utf8Slice(this,0,t):slowToString.apply(this,arguments)},Buffer.prototype.equals=function(t){if(!Buffer.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===Buffer.compare(this,t)},Buffer.prototype.inspect=function(){var t="",s=a.h2;return this.length>0&&(t=this.toString("hex",0,s).match(/.{2}/g).join(" "),this.length>s&&(t+=" ... ")),"<Buffer "+t+">"},Buffer.prototype.compare=function(t,a,s,c,f){if(!Buffer.isBuffer(t))throw TypeError("Argument must be a Buffer");if(void 0===a&&(a=0),void 0===s&&(s=t?t.length:0),void 0===c&&(c=0),void 0===f&&(f=this.length),a<0||s>t.length||c<0||f>this.length)throw RangeError("out of range index");if(c>=f&&a>=s)return 0;if(c>=f)return -1;if(a>=s)return 1;if(a>>>=0,s>>>=0,c>>>=0,f>>>=0,this===t)return 0;for(var p=f-c,g=s-a,m=Math.min(p,g),v=this.slice(c,f),y=t.slice(a,s),_=0;_<m;++_)if(v[_]!==y[_]){p=v[_],g=y[_];break}return p<g?-1:g<p?1:0},Buffer.prototype.includes=function(t,a,s){return -1!==this.indexOf(t,a,s)},Buffer.prototype.indexOf=function(t,a,s){return bidirectionalIndexOf(this,t,a,s,!0)},Buffer.prototype.lastIndexOf=function(t,a,s){return bidirectionalIndexOf(this,t,a,s,!1)},Buffer.prototype.write=function(t,a,s,c){if(void 0===a)c="utf8",s=this.length,a=0;else if(void 0===s&&"string"==typeof a)c=a,s=this.length,a=0;else if(isFinite(a))a|=0,isFinite(s)?(s|=0,void 0===c&&(c="utf8")):(c=s,s=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var f,p,g,m,v,y,_,b,S,w,C,E,x=this.length-a;if((void 0===s||s>x)&&(s=x),t.length>0&&(s<0||a<0)||a>this.length)throw RangeError("Attempt to write outside buffer bounds");c||(c="utf8");for(var P=!1;;)switch(c){case"hex":return function(t,a,s,c){s=Number(s)||0;var f=t.length-s;c?(c=Number(c))>f&&(c=f):c=f;var p=a.length;if(p%2!=0)throw TypeError("Invalid hex string");c>p/2&&(c=p/2);for(var g=0;g<c;++g){var m=parseInt(a.substr(2*g,2),16);if(isNaN(m))break;t[s+g]=m}return g}(this,t,a,s);case"utf8":case"utf-8":return v=a,y=s,blitBuffer(utf8ToBytes(t,this.length-v),this,v,y);case"ascii":return _=a,b=s,blitBuffer(asciiToBytes(t),this,_,b);case"latin1":case"binary":return f=this,p=t,g=a,m=s,blitBuffer(asciiToBytes(p),f,g,m);case"base64":return S=a,w=s,blitBuffer(base64ToBytes(t),this,S,w);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C=a,E=s,blitBuffer(function(t,a){for(var s,c,f=[],p=0;p<t.length&&!((a-=2)<0);++p)c=(s=t.charCodeAt(p))>>8,f.push(s%256),f.push(c);return f}(t,this.length-C),this,C,E);default:if(P)throw TypeError("Unknown encoding: "+c);c=(""+c).toLowerCase(),P=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},Buffer.prototype.slice=function(t,a){var s,c=this.length;if(t=~~t,a=void 0===a?c:~~a,t<0?(t+=c)<0&&(t=0):t>c&&(t=c),a<0?(a+=c)<0&&(a=0):a>c&&(a=c),a<t&&(a=t),Buffer.TYPED_ARRAY_SUPPORT)(s=this.subarray(t,a)).__proto__=Buffer.prototype;else{var f=a-t;s=new Buffer(f,void 0);for(var p=0;p<f;++p)s[p]=this[p+t]}return s},Buffer.prototype.readUIntLE=function(t,a,s){t|=0,a|=0,s||checkOffset(t,a,this.length);for(var c=this[t],f=1,p=0;++p<a&&(f*=256);)c+=this[t+p]*f;return c},Buffer.prototype.readUIntBE=function(t,a,s){t|=0,a|=0,s||checkOffset(t,a,this.length);for(var c=this[t+--a],f=1;a>0&&(f*=256);)c+=this[t+--a]*f;return c},Buffer.prototype.readUInt8=function(t,a){return a||checkOffset(t,1,this.length),this[t]},Buffer.prototype.readUInt16LE=function(t,a){return a||checkOffset(t,2,this.length),this[t]|this[t+1]<<8},Buffer.prototype.readUInt16BE=function(t,a){return a||checkOffset(t,2,this.length),this[t]<<8|this[t+1]},Buffer.prototype.readUInt32LE=function(t,a){return a||checkOffset(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Buffer.prototype.readUInt32BE=function(t,a){return a||checkOffset(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Buffer.prototype.readIntLE=function(t,a,s){t|=0,a|=0,s||checkOffset(t,a,this.length);for(var c=this[t],f=1,p=0;++p<a&&(f*=256);)c+=this[t+p]*f;return c>=(f*=128)&&(c-=Math.pow(2,8*a)),c},Buffer.prototype.readIntBE=function(t,a,s){t|=0,a|=0,s||checkOffset(t,a,this.length);for(var c=a,f=1,p=this[t+--c];c>0&&(f*=256);)p+=this[t+--c]*f;return p>=(f*=128)&&(p-=Math.pow(2,8*a)),p},Buffer.prototype.readInt8=function(t,a){return(a||checkOffset(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},Buffer.prototype.readInt16LE=function(t,a){a||checkOffset(t,2,this.length);var s=this[t]|this[t+1]<<8;return 32768&s?4294901760|s:s},Buffer.prototype.readInt16BE=function(t,a){a||checkOffset(t,2,this.length);var s=this[t+1]|this[t]<<8;return 32768&s?4294901760|s:s},Buffer.prototype.readInt32LE=function(t,a){return a||checkOffset(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Buffer.prototype.readInt32BE=function(t,a){return a||checkOffset(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Buffer.prototype.readFloatLE=function(t,a){return a||checkOffset(t,4,this.length),f.read(this,t,!0,23,4)},Buffer.prototype.readFloatBE=function(t,a){return a||checkOffset(t,4,this.length),f.read(this,t,!1,23,4)},Buffer.prototype.readDoubleLE=function(t,a){return a||checkOffset(t,8,this.length),f.read(this,t,!0,52,8)},Buffer.prototype.readDoubleBE=function(t,a){return a||checkOffset(t,8,this.length),f.read(this,t,!1,52,8)},Buffer.prototype.writeUIntLE=function(t,a,s,c){if(t=+t,a|=0,s|=0,!c){var f=Math.pow(2,8*s)-1;checkInt(this,t,a,s,f,0)}var p=1,g=0;for(this[a]=255&t;++g<s&&(p*=256);)this[a+g]=t/p&255;return a+s},Buffer.prototype.writeUIntBE=function(t,a,s,c){if(t=+t,a|=0,s|=0,!c){var f=Math.pow(2,8*s)-1;checkInt(this,t,a,s,f,0)}var p=s-1,g=1;for(this[a+p]=255&t;--p>=0&&(g*=256);)this[a+p]=t/g&255;return a+s},Buffer.prototype.writeUInt8=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[a]=255&t,a+1},Buffer.prototype.writeUInt16LE=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8):objectWriteUInt16(this,t,a,!0),a+2},Buffer.prototype.writeUInt16BE=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=t>>>8,this[a+1]=255&t):objectWriteUInt16(this,t,a,!1),a+2},Buffer.prototype.writeUInt32LE=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[a+3]=t>>>24,this[a+2]=t>>>16,this[a+1]=t>>>8,this[a]=255&t):objectWriteUInt32(this,t,a,!0),a+4},Buffer.prototype.writeUInt32BE=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=t>>>24,this[a+1]=t>>>16,this[a+2]=t>>>8,this[a+3]=255&t):objectWriteUInt32(this,t,a,!1),a+4},Buffer.prototype.writeIntLE=function(t,a,s,c){if(t=+t,a|=0,!c){var f=Math.pow(2,8*s-1);checkInt(this,t,a,s,f-1,-f)}var p=0,g=1,m=0;for(this[a]=255&t;++p<s&&(g*=256);)t<0&&0===m&&0!==this[a+p-1]&&(m=1),this[a+p]=(t/g>>0)-m&255;return a+s},Buffer.prototype.writeIntBE=function(t,a,s,c){if(t=+t,a|=0,!c){var f=Math.pow(2,8*s-1);checkInt(this,t,a,s,f-1,-f)}var p=s-1,g=1,m=0;for(this[a+p]=255&t;--p>=0&&(g*=256);)t<0&&0===m&&0!==this[a+p+1]&&(m=1),this[a+p]=(t/g>>0)-m&255;return a+s},Buffer.prototype.writeInt8=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[a]=255&t,a+1},Buffer.prototype.writeInt16LE=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8):objectWriteUInt16(this,t,a,!0),a+2},Buffer.prototype.writeInt16BE=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=t>>>8,this[a+1]=255&t):objectWriteUInt16(this,t,a,!1),a+2},Buffer.prototype.writeInt32LE=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=255&t,this[a+1]=t>>>8,this[a+2]=t>>>16,this[a+3]=t>>>24):objectWriteUInt32(this,t,a,!0),a+4},Buffer.prototype.writeInt32BE=function(t,a,s){return t=+t,a|=0,s||checkInt(this,t,a,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Buffer.TYPED_ARRAY_SUPPORT?(this[a]=t>>>24,this[a+1]=t>>>16,this[a+2]=t>>>8,this[a+3]=255&t):objectWriteUInt32(this,t,a,!1),a+4},Buffer.prototype.writeFloatLE=function(t,a,s){return writeFloat(this,t,a,!0,s)},Buffer.prototype.writeFloatBE=function(t,a,s){return writeFloat(this,t,a,!1,s)},Buffer.prototype.writeDoubleLE=function(t,a,s){return writeDouble(this,t,a,!0,s)},Buffer.prototype.writeDoubleBE=function(t,a,s){return writeDouble(this,t,a,!1,s)},Buffer.prototype.copy=function(t,a,s,c){if(s||(s=0),c||0===c||(c=this.length),a>=t.length&&(a=t.length),a||(a=0),c>0&&c<s&&(c=s),c===s||0===t.length||0===this.length)return 0;if(a<0)throw RangeError("targetStart out of bounds");if(s<0||s>=this.length)throw RangeError("sourceStart out of bounds");if(c<0)throw RangeError("sourceEnd out of bounds");c>this.length&&(c=this.length),t.length-a<c-s&&(c=t.length-a+s);var f,p=c-s;if(this===t&&s<a&&a<c)for(f=p-1;f>=0;--f)t[f+a]=this[f+s];else if(p<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(f=0;f<p;++f)t[f+a]=this[f+s];else Uint8Array.prototype.set.call(t,this.subarray(s,s+p),a);return p},Buffer.prototype.fill=function(t,a,s,c){if("string"==typeof t){if("string"==typeof a?(c=a,a=0,s=this.length):"string"==typeof s&&(c=s,s=this.length),1===t.length){var f,p=t.charCodeAt(0);p<256&&(t=p)}if(void 0!==c&&"string"!=typeof c)throw TypeError("encoding must be a string");if("string"==typeof c&&!Buffer.isEncoding(c))throw TypeError("Unknown encoding: "+c)}else"number"==typeof t&&(t&=255);if(a<0||this.length<a||this.length<s)throw RangeError("Out of range index");if(s<=a)return this;if(a>>>=0,s=void 0===s?this.length:s>>>0,t||(t=0),"number"==typeof t)for(f=a;f<s;++f)this[f]=t;else{var g=Buffer.isBuffer(t)?t:utf8ToBytes(new Buffer(t,c).toString()),m=g.length;for(f=0;f<s-a;++f)this[f+a]=g[f%m]}return this};var g=/[^+\/0-9A-Za-z-_]/g;function utf8ToBytes(t,a){a=a||1/0;for(var s,c=t.length,f=null,p=[],g=0;g<c;++g){if((s=t.charCodeAt(g))>55295&&s<57344){if(!f){if(s>56319||g+1===c){(a-=3)>-1&&p.push(239,191,189);continue}f=s;continue}if(s<56320){(a-=3)>-1&&p.push(239,191,189),f=s;continue}s=(f-55296<<10|s-56320)+65536}else f&&(a-=3)>-1&&p.push(239,191,189);if(f=null,s<128){if((a-=1)<0)break;p.push(s)}else if(s<2048){if((a-=2)<0)break;p.push(s>>6|192,63&s|128)}
66else if(s<65536){if((a-=3)<0)break;p.push(s>>12|224,s>>6&63|128,63&s|128)}else if(s<1114112){if((a-=4)<0)break;p.push(s>>18|240,s>>12&63|128,s>>6&63|128,63&s|128)}else throw Error("Invalid code point")}return p}function asciiToBytes(t){for(var a=[],s=0;s<t.length;++s)a.push(255&t.charCodeAt(s));return a}function base64ToBytes(t){return c.toByteArray(function(t){var a;if((t=((a=t).trim?a.trim():a.replace(/^\s+|\s+$/g,"")).replace(g,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function blitBuffer(t,a,s,c){for(var f=0;f<c&&!(f+s>=a.length)&&!(f>=t.length);++f)a[f+s]=t[f];return f}},76489:function(t,a){"use strict";/*!
67 * cookie
68 * Copyright(c) 2012-2014 Roman Shtylman
69 * Copyright(c) 2015 Douglas Christopher Wilson
70 * MIT Licensed
71 */a.Q=function(t,a){if("string"!=typeof t)throw TypeError("argument str must be a string");for(var c={},f=t.split(";"),p=(a||{}).decode||s,g=0;g<f.length;g++){var m=f[g],v=m.indexOf("=");if(!(v<0)){var y=m.substring(0,v).trim();if(void 0==c[y]){var _=m.substring(v+1,m.length).trim();'"'===_[0]&&(_=_.slice(1,-1)),c[y]=function(t,a){try{return a(t)}catch(a){return t}}(_,p)}}}return c},a.q=function(t,a,s){var p=s||{},g=p.encode||c;if("function"!=typeof g)throw TypeError("option encode is invalid");if(!f.test(t))throw TypeError("argument name is invalid");var m=g(a);if(m&&!f.test(m))throw TypeError("argument val is invalid");var v=t+"="+m;if(null!=p.maxAge){var y=p.maxAge-0;if(isNaN(y)||!isFinite(y))throw TypeError("option maxAge is invalid");v+="; Max-Age="+Math.floor(y)}if(p.domain){if(!f.test(p.domain))throw TypeError("option domain is invalid");v+="; Domain="+p.domain}if(p.path){if(!f.test(p.path))throw TypeError("option path is invalid");v+="; Path="+p.path}if(p.expires){if("function"!=typeof p.expires.toUTCString)throw TypeError("option expires is invali
71d");v+="; Expires="+p.expires.toUTCString()}if(p.httpOnly&&(v+="; HttpOnly"),p.secure&&(v+="; Secure"),p.sameSite)switch("string"==typeof p.sameSite?p.sameSite.toLowerCase():p.sameSite){case!0:case"strict":v+="; SameSite=Strict";break;case"lax":v+="; SameSite=Lax";break;case"none":v+="; SameSite=None";break;default:throw TypeError("option sameSite is invalid")}return v};var s=decodeURIComponent,c=encodeURIComponent,f=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/},78249:function(t,a,s){var c;t.exports=c||function(t,a){if("undefined"!=typeof window&&window.crypto&&(c=window.crypto),"undefined"!=typeof self&&self.crypto&&(c=self.crypto),"undefined"!=typeof globalThis&&globalThis.crypto&&(c=globalThis.crypto),!c&&"undefined"!=typeof window&&window.msCrypto&&(c=window.msCrypto),!c&&void 0!==s.g&&s.g.crypto&&(c=s.g.crypto),!c)try{c=s(42480)}catch(t){}var c,cryptoSecureRandomInt=function(){if(c){if("function"==typeof c.getRandomValues)try{return c.getRandomValues(new Uint32Array(1))[0]}catch(t){}if("function"==typeof c.randomBytes)try{return c.randomBytes(4).readInt32LE()}catch(t){}}throw Error("Native crypto module could not be used to get secure random number.")},f=Object.create||function(){function F(){}return function(t){var a;return F.prototype=t,a=new F,F.prototype=null,a}}(),p={},g=p.lib={},m=g.Base={extend:function(t){var a=f(this);return t&&a.mixIn(t),a.hasOwnProperty("init")&&this.init!==a.init||(a.init=function(){a.$super.init.apply(this,arguments)}),a.init.prototype=a,a.$super=this,a},create:function(){var t=this.extend();return t.init.apply(t,arguments),t},init:function(){},mixIn:function(t){for(var a in t)t.hasOwnProperty(a)&&(this[a]=t[a]);t.hasOwnProperty("toString")&&(this.toString=t.toString)},clone:function(){return this.init.prototype.extend(this)}},v=g.WordArray=m.extend({init:function(t,a){t=this.words=t||[],void 0!=a?this.sigBytes=a:this.sigBytes=4*t.length},toString:function(t){return(t||_).stringify(this)},concat:function(t){var a=this.words,s=t.words,c=this.sigBytes,f=t.sigBytes;if(this.clamp(),c%4)for(var p=0;p<f;p++){var g=s[p>>>2]>>>24-p%4*8&255;a[c+p>>>2]|=g<<24-(c+p)%4*8}else for(var m=0;m<f;m+=4)a[c+m>>>2]=s[m>>>2];return this.sigBytes+=f,this},clamp:function(){var a=this.words,s=this.sigBytes;a[s>>>2]&=4294967295<<32-s%4*8,a.length=t.ceil(s/4)},clone:function(){var t=m.clone.call(this);return t.words=this.words.slice(0),t},random:function(t){for(var a=[],s=0;s<t;s+=4)a.push(cryptoSecureRandomInt());return new v.init(a,t)}}),y=p.enc={},_=y.Hex={stringify:function(t){for(var a=t.words,s=t.sigBytes,c=[],f=0;f<s;f++){var p=a[f>>>2]>>>24-f%4*8&255;c.push((p>>>4).toString(16)),c.push((15&p).toString(16))}return c.join("")},parse:function(t){for(var a=t.length,s=[],c=0;c<a;c+=2)s[c>>>3]|=parseInt(t.substr(c,2),16)<<24-c%8*4;return new v.init(s,a/2)}},b=y.Latin1={stringify:function(t){for(var a=t.words,s=t.sigBytes,c=[],f=0;f<s;f++){var p=a[f>>>2]>>>24-f%4*8&255;c.push(String.fromCharCode(p))}return c.join("")},parse:function(t){for(var a=t.length,s=[],c=0;c<a;c++)s[c>>>2]|=(255&t.charCodeAt(c))<<24-c%4*8;return new v.init(s,a)}},S=y.Utf8={stringify:function(t){try{return decodeURIComponent(escape(b.stringify(t)))}catch(t){throw Error("Malformed UTF-8 data")}},parse:function(t){return b.parse(unescape(encodeURIComponent(t)))}},w=g.BufferedBlockAlgorithm=m.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(t){"string"==typeof t&&(t=S.parse(t)),this._data.concat(t),this._nDataBytes+=t.sigBytes},_process:function(a){var s,c=this._data,f=c.words,p=c.sigBytes,g=this.blockSize,m=p/(4*g),y=(m=a?t.ceil(m):t.max((0|m)-this._minBufferSize,0))*g,_=t.min(4*y,p);if(y){for(var b=0;b<y;b+=g)this._doProcessBlock(f,b);s=f.splice(0,y),c.sigBytes-=_}return new v.init(s,_)},clone:function(){var t=m.clone.call(this);return t._data=this._data.clone(),t},_minBufferSize:0});g.Hasher=w.extend({cfg:m.extend(),init:function(t){this.cfg=this.cfg.extend(t),this.reset()},reset:function(){w.reset.call(this),this._doReset()},update:function(t){return this._append(t),this._process(),this},finalize:function(t){return t&&this._append(t),this._doFinalize()},blockSize:16,_createHelper:function(t){return function(a,s){return new t.init(s).finalize(a)}},_createHmacHelper:function(t){return function(a,s){return new C.HMAC.init(t,s).finalize(a)}}});var C=p.algo={};return p}(Math)},98269:function(t,a,s){var c,f;
71t.exports=(f=(c=s(78249)).lib.WordArray,c.enc.Base64={stringify:function(t){var a=t.words,s=t.sigBytes,c=this._map;t.clamp();for(var f=[],p=0;p<s;p+=3)for(var g=(a[p>>>2]>>>24-p%4*8&255)<<16|(a[p+1>>>2]>>>24-(p+1)%4*8&255)<<8|a[p+2>>>2]>>>24-(p+2)%4*8&255,m=0;m<4&&p+.75*m<s;m++)f.push(c.charAt(g>>>6*(3-m)&63));var v=c.charAt(64);if(v)for(;f.length%4;)f.push(v);return f.join("")},parse:function(t){var a=t.length,s=this._map,c=this._reverseMap;if(!c){c=this._reverseMap=[];for(var p=0;p<s.length;p++)c[s.charCodeAt(p)]=p}var g=s.charAt(64);if(g){var m=t.indexOf(g);-1!==m&&(a=m)}return function(t,a,s){for(var c=[],p=0,g=0;g<a;g++)if(g%4){var m=s[t.charCodeAt(g-1)]<<g%4*2|s[t.charCodeAt(g)]>>>6-g%4*2;c[p>>>2]|=m<<24-p%4*8,p++}return f.create(c,p)}(t,a,c)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},c.enc.Base64)},88010:function(t,a,s){var c;t.exports=(c=s(78249),s(52153),s(89824),c.HmacSHA256)},89824:function(t,a,s){var c,f,p;t.exports=void(f=(c=s(78249)).lib.Base,p=c.enc.Utf8,c.algo.HMAC=f.extend({init:function(t,a){t=this._hasher=new t.init,"string"==typeof a&&(a=p.parse(a));var s=t.blockSize,c=4*s;a.sigBytes>c&&(a=t.finalize(a)),a.clamp();for(var f=this._oKey=a.clone(),g=this._iKey=a.clone(),m=f.words,v=g.words,y=0;y<s;y++)m[y]^=1549556828,v[y]^=909522486;f.sigBytes=g.sigBytes=c,this.reset()},reset:function(){var t=this._hasher;t.reset(),t.update(this._iKey)},update:function(t){return this._hasher.update(t),this},finalize:function(t){var a=this._hasher,s=a.finalize(t);return a.reset(),a.finalize(this._oKey.clone().concat(s))}}))},4433:function(t,a,s){var c;t.exports=(c=s(78249),function(){if("function"==typeof ArrayBuffer){var t=c.lib.WordArray,a=t.init;(t.init=function(t){if(t instanceof ArrayBuffer&&(t=new Uint8Array(t)),(t instanceof Int8Array||"undefined"!=typeof Uint8ClampedArray&&t instanceof Uint8ClampedArray||t instanceof Int16Array||t instanceof Uint16Array||t instanceof Int32Array||t instanceof Uint32Array||t instanceof Float32Array||t instanceof Float64Array)&&(t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength)),t instanceof Uint8Array){for(var s=t.byteLength,c=[],f=0;f<s;f++)c[f>>>2]|=t[f]<<24-f%4*8;a.call(this,c,s)}else a.apply(this,arguments)}).prototype=t}}(),c.lib.WordArray)},52153:function(t,a,s){var c,f,p,g,m,v,y,_,b,S;t.exports=(c=s(78249),f=Math,g=(p=c.lib).WordArray,m=p.Hasher,v=c.algo,y=[],_=[],function(){function getFractionalBits(t){return(t-(0|t))*4294967296|0}for(var t=2,a=0;a<64;)(function(t){for(var a=f.sqrt(t),s=2;s<=a;s++)if(!(t%s))return!1;return!0})(t)&&(a<8&&(y[a]=getFractionalBits(f.pow(t,.5))),_[a]=getFractionalBits(f.pow(t,1/3)),a++),t++}(),b=[],S=v.SHA256=m.extend({_doReset:function(){this._hash=new g.init(y.slice(0))},_doProcessBlock:function(t,a){for(var s=this._hash.words,c=s[0],f=s[1],p=s[2],g=s[3],m=s[4],v=s[5],y=s[6],S=s[7],w=0;w<64;w++){if(w<16)b[w]=0|t[a+w];else{var C=b[w-15],E=(C<<25|C>>>7)^(C<<14|C>>>18)^C>>>3,x=b[w-2],P=(x<<15|x>>>17)^(x<<13|x>>>19)^x>>>10;b[w]=E+b[w-7]+P+b[w-16]}var I=m&v^~m&y,T=c&f^c&p^f&p,k=(c<<30|c>>>2)^(c<<19|c>>>13)^(c<<10|c>>>22),O=S+((m<<26|m>>>6)^(m<<21|m>>>11)^(m<<7|m>>>25))+I+_[w]+b[w],R=k+T;S=y,y=v,v=m,m=g+O|0,g=p,p=f,f=c,c=O+R|0}s[0]=s[0]+c|0,s[1]=s[1]+f|0,s[2]=s[2]+p|0,s[3]=s[3]+g|0,s[4]=s[4]+m|0,s[5]=s[5]+v|0,s[6]=s[6]+y|0,s[7]=s[7]+S|0},_doFinalize:function(){var t=this._data,a=t.words,s=8*this._nDataBytes,c=8*t.sigBytes;return a[c>>>5]|=128<<24-c%32,a[(c+64>>>9<<4)+14]=f.floor(s/4294967296),a[(c+64>>>9<<4)+15]=s,t.sigBytes=4*a.length,this._process(),this._hash},clone:function(){var t=m.clone.call(this);return t._hash=this._hash.clone(),t}}),c.SHA256=m._createHelper(S),c.HmacSHA256=m._createHmacHelper(S),c.SHA256)},25175:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){return t.replace(s,toUpper)};var s=/[-\s]+(.)?/g;function toUpper(t,a){return a?a.toUpperCase():""}},67453:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.supportedValue=a.supportedProperty=a.prefix=void 0;var c=_interopRequireDefault(s(68878)),f=_interopRequireDefault(s(21860)),p=_interopRequireDefault(s(19652));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}a.default={prefix:c.default,supportedProperty:f.default,supportedValue:p.default},a.prefix=c.default,a.supportedProperty=f.default,a.supportedValue=p.default},68878:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=(c=s(33827))&&c.__esModule?c:{default:c},p="",g="";if(f.default){var m={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},v=document.createElement("p").style;for(var y in m)if(y+"Transform" in v){p=y,g=m[y];break}}a.default={js:p,css:g}},21860:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){return g?(null!=m[t]||((0,p.default)(t) in g.style?m[t]=t:f.default.js+(0,p.default)("-"+t) in g.style?m[t]=f.default.css+t:m[t]=!1),m[t]):t};var c=_interopRequireDefault(s(33827)),f=_interopRequireDefault(s(68878)),p=_interopRequireDefault(s(25175));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var g=void 0,m={};if(c.default){g=document.createElement("p");var v=window.getComputedStyle(document.documentElement,"");for(var y in v)isNaN(y)||(m[v[y]]=v[y])}},19652:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a){if(!g||"string"!=typeof a||!isNaN(parseInt(a,10)))return a;var s=t+a;if(null!=p[s])return p[s];try{g.style[t]=a}catch(t){return p[s]=!1,!1}return""!==g.style[t]?p[s]=a:("-ms-flex"===(a=f.default.css+a)&&(a="-ms-flexbox"),g.style[t]=a,""!==g.style[t]&&(p[s]=a)),p[s]||(p[s]=!1),g.style[t]="",p[s]};var c=_interopRequireDefault(s(33827)),f=_interopRequireDefault(s(68878));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var p={},g=void 0;c.default&&(g=document.createElement("p"))},74892:function(t,a,s){"use strict";function src_ascending(t,a){return t<a?-1:t>a?1:t>=a?0:NaN}s.d(a,{LLu:function(){return axisBottom},y4O:function(){return axisLeft},cSP:function(){return centroid},mw4:function(){return mercator},l49:function(){return src_path},Fp7:function(){return src_max},VV$:function(){return min},tiA:function(){return function band(){var t,a,s=(function ordinal(){var t=e_(),a=[],s=[],c=tW;function scale(f){var p=f+"",g=t.get(p);if(!g){if(c!==tW)return c;t.set(p,g=a.push(f))}return s[(g-1)%s.length]}return scale.domain=function(s){if(!arguments.length)return a.slice();a=[],t=e_();for(var c,f,p=-1,g=s.length;++p<g;)t.has(f=(c=s[p])+"")||t.set(f,a.push(c));return scale},scale.range=function(t){return arguments.length?(s=tH.call(t),scale):s.slice()},scale.unknown=function(t){return arguments.length?(c=t,scale):c},scale.copy=function(){return ordinal(a,s).unknown(c)},init_initRange.apply(scale,arguments),scale})().unknown(void 0),c=s.domain,f=s.range,p=[0,1],g=!1,m=0,v=0,y=.5;function rescale(){var s=c().length,_=p[1]<p[0],b=p[_-0],S=p[1-_];t=(S-b)/Math.max(1,s-m+2*v),g&&(t=Math.floor(t)),b+=(S-b-t*(s-m))*y,a=t*(1-m),g&&(b=Math.round(b),a=Math.round(a));var w=(function(t,a,s){t=+t,a=+a,s=(f=arguments.length)<2?(a=t,t=0,1):f<3?1:+s;for(var c=-1,f=0|Math.max(0,Math.ceil((a-t)/s)),p=Array(f);++c<f;)p[c]=t+c*s;return p})(s).map(function(a){return b+t*a});return f(_?w.reverse():w)}return delete s.unknown,s.domain=function(t){return arguments.length?(c(t),rescale()):c()},s.range=function(t){return arguments.length?(p=[+t[0],+t[1]],rescale()):p.slice()},s.rangeRound=function(t){return p=[+t[0],+t[1]],g=!0,rescale()},s.bandwidth=function(){return a},s.step=function(){return t}
71,s.round=function(t){return arguments.length?(g=!!t,rescale()):g},s.padding=function(t){return arguments.length?(m=Math.min(1,v=+t),rescale()):m},s.paddingInner=function(t){return arguments.length?(m=Math.min(1,t),rescale()):m},s.paddingOuter=function(t){return arguments.length?(v=+t,rescale()):v},s.align=function(t){return arguments.length?(y=Math.max(0,Math.min(1,t)),rescale()):y},s.copy=function(){return band(c(),p).round(g).paddingInner(m).paddingOuter(v).align(y)},init_initRange.apply(rescale(),arguments)}},BYU:function(){return function linear_linear(){var t,a=(function(){var t,a,s,c,f,p,g=tG,m=tG,interpolate=function value(t,a){var s,c,f=typeof a;return null==a||"boolean"===f?d3_interpolate_src_constant(a):("number"===f?src_number:"string"===f?(c=color(a))?(a=c,ef):string:a instanceof color?ef:a instanceof Date?function(t,a){var s=new Date;return t=+t,a=+a,function(c){return s.setTime(t*(1-c)+a*c),s}}:(s=a,!ArrayBuffer.isView(s)||s instanceof DataView)?Array.isArray(a)?function(t,a){var s,c=a?a.length:0,f=t?Math.min(c,t.length):0,p=Array(f),g=Array(c);for(s=0;s<f;++s)p[s]=value(t[s],a[s]);for(;s<c;++s)g[s]=a[s];return function(t){for(s=0;s<f;++s)g[s]=p[s](t);return g}}:"function"!=typeof a.valueOf&&"function"!=typeof a.toString||isNaN(a)?function(t,a){var s,c={},f={};for(s in(null===t||"object"!=typeof t)&&(t={}),(null===a||"object"!=typeof a)&&(a={}),a)s in t?c[s]=value(t[s],a[s]):f[s]=a[s];return function(t){for(s in c)f[s]=c[s](t);return f}}:src_number:function(t,a){a||(a=[]);var s,c=t?Math.min(a.length,t.length):0,f=a.slice();return function(p){for(s=0;s<c;++s)f[s]=t[s]*(1-p)+a[s]*p;return f}})(t,a)},v=continuous_identity;function rescale(){return c=Math.min(g.length,m.length)>2?polymap:bimap,f=p=null,scale}function scale(a){return isNaN(a=+a)?s:(f||(f=c(g.map(t),m,interpolate)))(t(v(a)))}return scale.invert=function(s){return v(a((p||(p=c(m,g.map(t),src_number)))(s)))},scale.domain=function(t){return arguments.length?(g=tK.call(t,d3_scale_src_number),v===continuous_identity||(v=clamper(g)),rescale()):g.slice()},scale.range=function(t){return arguments.length?(m=tH.call(t),rescale()):m.slice()},scale.rangeRound=function(t){return m=tH.call(t),interpolate=round,rescale()},scale.clamp=function(t){return arguments.length?(v=t?clamper(g):continuous_identity,scale):v!==continuous_identity},scale.interpolate=function(t){return arguments.length?(interpolate=t,rescale()):interpolate},scale.unknown=function(t){return arguments.length?(s=t,scale):s},function(s,c){return t=s,a=c,rescale()}})()(continuous_identity,continuous_identity);return a.copy=function(){return linear_linear().domain(a.domain()).range(a.range()).interpolate(a.interpolate()).clamp(a.clamp()).unknown(a.unknown())},init_initRange.apply(a,arguments),t=a.domain,a.ticks=function(a){var s=t();return function(t,a,s){var c,f,p,g,m=-1;if(s=+s,(t=+t)==(a=+a)&&s>0)return[t];if((c=a<t)&&(f=t,t=a,a=f),0===(g=tickIncrement(t,a,s))||!isFinite(g))return[];if(g>0)for(t=Math.ceil(t/g),p=Array(f=Math.ceil((a=Math.floor(a/g))-t+1));++m<f;)p[m]=(t+m)*g;else for(p=Array(f=Math.ceil((t=Math.floor(t*g))-(a=Math.ceil(a*g))+1));++m<f;)p[m]=(t-m)/g;return c&&p.reverse(),p}(s[0],s[s.length-1],null==a?10:a)},a.tickFormat=function(a,s){var c=t();return function(t,a,s,c){var f,p,g,y,_,b=(g=Math.pow(10,Math.floor(Math.log(p=Math.abs(a-t)/Math.max(0,s))/Math.LN10)),(y=p/g)>=P?g*=10:y>=I?g*=5:y>=T&&(g*=2),a<t?-g:g);switch((c=formatSpecifier(null==c?",f":c)).type){case"s":var S=Math.max(Math.abs(t),Math.abs(a));return null!=c.precision||isNaN(_=Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(exponent(S)/3)))-exponent(Math.abs(b))))||(c.precision=_),v(c,S);case"":case"e":case"g":case"p":case"r":null!=c.precision||isNaN(_=Math.max(0,exponent(Math.abs(Math.max(Math.abs(t),Math.abs(a)))-(f=Math.abs(f=b)))-exponent(f))+1)||(c.precision=_-("e"===c.type));break;case"f":case"%":null!=c.precision||isNaN(_=Math.max(0,-exponent(Math.abs(b))))||(c.precision=_-("%"===c.type)*2)}return m(c)}(c[0],c[c.length-1],null==a?10:a,s)},a.nice=function(s){null==s&&(s=10);var c,f=t(),p=0,g=f.length-1,m=f[p],v=f[g];return v<m&&(c=m,m=v,v=c,c=p,p=g,g=c),(c=tickIncrement(m,v,s))>0?c=tickIncrement(m=Math.floor(m/c)*c,v=Math.ceil(v/c)*c,s):c<0&&(c=tickIncrement(m=Math.ceil(m*c)/c,v=Math.floor(v*c)/c,s)),c>0?(f[p]=Math.floor(m/c)*c,f[g]=Math.ceil(v/c)*c,t(f)):c<0&&(f[p]=Math.ceil(m*c)/c,f[g]=Math.floor(v*c)/c,t(f)),a},a}},Ys:function(){return src_select},pvA:function(){return eP}});var c,f,p,g,m,v,y,_,b,S,w,C=(1===(f=src_ascending).length&&(c=f,f=function(t,a){return src_ascending(c(t),a)}),{left:function(t,a,s,c){for(null==s&&(s=0),null==c&&(c=t.length);s<c;){var p=s+c>>>1;0>f(t[p],a)?s=p+1:c=p}return s},right:function(t,a,s,c){for(null==s&&(s=0),null==c&&(c=t.length);s<c;){var p=s+c>>>1;f(t[p],a)>0?c=p:s=p+1}return s}}),E=C.right;C.left;var x=Array.prototype;x.slice,x.map;var P=Math.sqrt(50),I=Math.sqrt(10),T=Math.sqrt(2);function tickIncrement(t,a,s){var c=(a-t)/Math.max(0,s),f=Math.floor(Math.log(c)/Math.LN10),p=c/Math.pow(10,f);return f>=0?(p>
71=P?10:p>=I?5:p>=T?2:1)*Math.pow(10,f):-Math.pow(10,-f)/(p>=P?10:p>=I?5:p>=T?2:1)}function src_max(t,a){var s,c,f=t.length,p=-1;if(null==a){for(;++p<f;)if(null!=(s=t[p])&&s>=s)for(c=s;++p<f;)null!=(s=t[p])&&s>c&&(c=s)}else for(;++p<f;)if(null!=(s=a(t[p],p,t))&&s>=s)for(c=s;++p<f;)null!=(s=a(t[p],p,t))&&s>c&&(c=s);return c}function merge(t){for(var a,s,c,f=t.length,p=-1,g=0;++p<f;)g+=t[p].length;for(s=Array(g);--f>=0;)for(a=(c=t[f]).length;--a>=0;)s[--g]=c[a];return s}function min(t,a){var s,c,f=t.length,p=-1;if(null==a){for(;++p<f;)if(null!=(s=t[p])&&s>=s)for(c=s;++p<f;)null!=(s=t[p])&&c>s&&(c=s)}else for(;++p<f;)if(null!=(s=a(t[p],p,t))&&s>=s)for(c=s;++p<f;)null!=(s=a(t[p],p,t))&&c>s&&(c=s);return c}var k=Array.prototype.slice;function src_identity(t){return t}function translateX(t){return"translate("+(t+.5)+",0)"}function translateY(t){return"translate(0,"+(t+.5)+")"}function entering(){return!this.__axis}function axis(t,a){var s=[],c=null,f=null,p=6,g=6,m=3,v=1===t||4===t?-1:1,y=4===t||2===t?"x":"y",_=1===t||3===t?translateX:translateY;function axis(b){var S=null==c?a.ticks?a.ticks.apply(a,s):a.domain():c,w=null==f?a.tickFormat?a.tickFormat.apply(a,s):src_identity:f,C=Math.max(p,0)+m,E=a.range(),x=+E[0]+.5,P=+E[E.length-1]+.5,I=(a.bandwidth?function(t){var a=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(a=Math.round(a)),function(s){return+t(s)+a}}:function(t){return function(a){return+t(a)}})(a.copy()),T=b.selection?b.selection():b,k=T.selectAll(".domain").data([null]),O=T.selectAll(".tick").data(S,a).order(),R=O.exit(),M=O.enter().append("g").attr("class","tick"),N=O.select("line"),U=O.select("text");k=k.merge(k.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),O=O.merge(M),N=N.merge(M.append("line").attr("stroke","currentColor").attr(y+"2",v*p)),U=U.merge(M.append("text").attr("fill","currentColor").attr(y,v*C).attr("dy",1===t?"0em":3===t?"0.71em":"0.32em")),b!==T&&(k=k.transition(b),O=O.transition(b),N=N.transition(b),U=U.transition(b),R=R.transition(b).attr("opacity",1e-6).attr("transform",function(t){return isFinite(t=I(t))?_(t):this.getAttribute("transform")}),M.attr("opacity",1e-6).attr("transform",function(t){var a=this.parentNode.__axis;return _(a&&isFinite(a=a(t))?a:I(t))})),R.remove(),k.attr("d",4===t||2==t?g?"M"+v*g+","+x+"H0.5V"+P+"H"+v*g:"M0.5,"+x+"V"+P:g?"M"+x+","+v*g+"V0.5H"+P+"V"+v*g:"M"+x+",0.5H"+P),O.attr("opacity",1).attr("transform",function(t){return _(I(t))}),N.attr(y+"2",v*p),U.attr(y,v*C).text(w),T.filter(entering).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",2===t?"start":4===t?"end":"middle"),T.each(function(){this.__axis=I})}return axis.scale=function(t){return arguments.length?(a=t,axis):a},axis.ticks=function(){return s=k.call(arguments),axis},axis.tickArguments=function(t){return arguments.length?(s=null==t?[]:k.call(t),axis):s.slice()},axis.tickValues=function(t){return arguments.length?(c=null==t?null:k.call(t),axis):c&&c.slice()},axis.tickFormat=function(t){return arguments.length?(f=t,axis):f},axis.tickSize=function(t){return arguments.length?(p=g=+t,axis):p},axis.tickSizeInner=function(t){return arguments.length?(p=+t,axis):p},axis.tickSizeOuter=function(t){return arguments.length?(g=+t,axis):g},axis.tickPadding=function(t){return arguments.length?(m=+t,axis):m},axis}function axisBottom(t){return axis(3,t)}function axisLeft(t){return axis(4,t)}function none(){}function selector(t){return null==t?none:function(){return this.querySelector(t)}}function empty(){return[]}function selectorAll(t){return null==t?empty:function(){return this.querySelectorAll(t)}}function matcher(t){return function(){return this.matches(t)}}function sparse(t){return Array(t.length)}function EnterNode(t,a){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=a}function bindIndex(t,a,s,c,f,p){for(var g,m=0,v=a.length,y=p.length;m<y;++m)(g=a[m])?(g.__data__=p[m],c[m]=g):s[m]=new EnterNode(t,p[m]);for(;m<v;++m)(g=a[m])&&(f[m]=g)}function bindKey(t,a,s,c,f,p,g){var m,v,y,_={},b=a.length,S=p.length,w=Array(b);for(m=0;m<b;++m)(v=a[m])&&(w[m]=y="$"+g.call(v,v.__data__,m,a),y in _?f[m]=v:_[y]=v);for(m=0;m<S;++m)(v=_[y="$"+g.call(t,p[m],m,p)])?(c[m]=v,v.__data__=p[m],_[y]=null):s[m]=new EnterNode(t,p[m]);for(m=0;m<b;++m)(v=a[m])&&_[w[m]]===v&&(f[m]=v)}function sort_ascending(t,a){return t<a?-1:t>a?1:t>=a?0:NaN}EnterNode.prototype={constructor:EnterNode,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,a){return this._parent.insertBefore(t,a)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};var O="http://www.w3.org/1999/xhtml",R={svg:"http://www.w3.org/2000/svg",xhtml:O,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function namespace(t){var a=t+="",s=a.indexOf(":");return s>=0&&"xmlns"!==(a=t.slice(0,s))&&(t=t.slice(s+1)),R.hasOwnProperty(a)?{space:R[a],local:t}:t}function src_window(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function styleValue(t,a){return t.style.getPropertyValue(a)||src_window(t).getComputedStyle(t,null).getPropertyValue(a)}function classArray(t){return t.trim().split(/^|\s+/)}function classList(t){return t.classList||new ClassList(t)}function ClassList(t){this._node=t,this._names=classArray(t.getAttribute("class")||"")}function classedAdd(t,a){for(var s=classList(t),c=-1,f=a.length;++c<f;)s.add(a[c])}function classedRemove(t,a){for(var s=classList(t),c=-1,f=a.length;++c<f;)s.remove(a[c])}function textRemove(){this.textContent=""}function htmlRemove(){this.innerHTML=""}function raise(){this.nextSibling&&this.parentNode.appendChild(this)}function lower(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function creator(t){var a=namespace(t);return(a.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(t){return function(){var a=this.ownerDocument,s=this.namespaceURI;return s===O&&a.documentElement.namespaceURI===O?a.createElement(t):a.createElementNS(s,t)}})(a)}
71function constantNull(){return null}function remove(){var t=this.parentNode;t&&t.removeChild(this)}function selection_cloneShallow(){var t=this.cloneNode(!1),a=this.parentNode;return a?a.insertBefore(t,this.nextSibling):t}function selection_cloneDeep(){var t=this.cloneNode(!0),a=this.parentNode;return a?a.insertBefore(t,this.nextSibling):t}ClassList.prototype={add:function(t){0>this._names.indexOf(t)&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var a=this._names.indexOf(t);a>=0&&(this._names.splice(a,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return this._names.indexOf(t)>=0}};var M={},N=null;function filterContextListener(t,a,s){return t=contextListener(t,a,s),function(a){var s=a.relatedTarget;s&&(s===this||8&s.compareDocumentPosition(this))||t.call(this,a)}}function contextListener(t,a,s){return function(c){var f=N;N=c;try{t.call(this,this.__data__,a,s)}finally{N=f}}}function onRemove(t){return function(){var a=this.__on;if(a){for(var s,c=0,f=-1,p=a.length;c<p;++c)(s=a[c],t.type&&s.type!==t.type||s.name!==t.name)?a[++f]=s:this.removeEventListener(s.type,s.listener,s.capture);++f?a.length=f:delete this.__on}}}function onAdd(t,a,s){var c=M.hasOwnProperty(t.type)?filterContextListener:contextListener;return function(f,p,g){var m,v=this.__on,y=c(a,p,g);if(v){for(var _=0,b=v.length;_<b;++_)if((m=v[_]).type===t.type&&m.name===t.name){this.removeEventListener(m.type,m.listener,m.capture),this.addEventListener(m.type,m.listener=y,m.capture=s),m.value=a;return}}this.addEventListener(t.type,y,s),m={type:t.type,name:t.name,value:a,listener:y,capture:s},v?v.push(m):this.__on=[m]}}function dispatchEvent(t,a,s){var c=src_window(t),f=c.CustomEvent;"function"==typeof f?f=new f(a,s):(f=c.document.createEvent("Event"),s?(f.initEvent(a,s.bubbles,s.cancelable),f.detail=s.detail):f.initEvent(a,!1,!1)),t.dispatchEvent(f)}"undefined"==typeof document||"onmouseenter"in document.documentElement||(M={mouseenter:"mouseover",mouseleave:"mou
71seout"});var U=[null];function Selection(t,a){this._groups=t,this._parents=a}function selection(){return new Selection([[document.documentElement]],U)}Selection.prototype=selection.prototype={constructor:Selection,select:function(t){"function"!=typeof t&&(t=selector(t));for(var a=this._groups,s=a.length,c=Array(s),f=0;f<s;++f)for(var p,g,m=a[f],v=m.length,y=c[f]=Array(v),_=0;_<v;++_)(p=m[_])&&(g=t.call(p,p.__data__,_,m))&&("__data__"in p&&(g.__data__=p.__data__),y[_]=g);return new Selection(c,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=selectorAll(t));for(var a=this._groups,s=a.length,c=[],f=[],p=0;p<s;++p)for(var g,m=a[p],v=m.length,y=0;y<v;++y)(g=m[y])&&(c.push(t.call(g,g.__data__,y,m)),f.push(g));return new Selection(c,f)},filter:function(t){"function"!=typeof t&&(t=matcher(t));for(var a=this._groups,s=a.length,c=Array(s),f=0;f<s;++f)for(var p,g=a[f],m=g.length,v=c[f]=[],y=0;y<m;++y)(p=g[y])&&t.call(p,p.__data__,y,g)&&v.push(p);return new Selection(c,this._parents)},data:function(t,a){if(!t)return w=Array(this.size()),y=-1,this.each(function(t){w[++y]=t}),w;var s=a?bindKey:bindIndex,c=this._parents,f=this._groups;"function"!=typeof t&&(P=t,t=function(){return P});for(var p=f.length,g=Array(p),m=Array(p),v=Array(p),y=0;y<p;++y){var _=c[y],b=f[y],S=b.length,w=t.call(_,_&&_.__data__,y,c),C=w.length,E=m[y]=Array(C),x=g[y]=Array(C);s(_,b,E,x,v[y]=Array(S),w,a);for(var P,I,T,k=0,O=0;k<C;++k)if(I=E[k]){for(k>=O&&(O=k+1);!(T=x[O])&&++O<C;);I._next=T||null}}return(g=new Selection(g,c))._enter=m,g._exit=v,g},enter:function(){return new Selection(this._enter||this._groups.map(sparse),this._parents)},exit:function(){return new Selection(this._exit||this._groups.map(sparse),this._parents)},join:function(t,a,s){var c=this.enter(),f=this,p=this.exit();return c="function"==typeof t?t(c):c.append(t+""),null!=a&&(f=a(f)),null==s?p.remove():s(p),c&&f?c.merge(f).order():f},merge:function(t){for(var a=this._groups,s=t._groups,c=a.length,f=s.length,p=Math.min(c,f),g=Array(c),m=0;m<p;++m)for(var v,y=a[m],_=s[m],b=y.length,S=g[m]=Array(b),w=0;w<b;++w)(v=y[w]||_[w])&&(S[w]=v);for(;m<c;++m)g[m]=a[m];return new Selection(g,this._parents)},order:function(){for(var t=this._groups,a=-1,s=t.length;++a<s;)for(var c,f=t[a],p=f.length-1,g=f[p];--p>=0;)(c=f[p])&&(g&&4^c.compareDocumentPosition(g)&&g.parentNode.insertBefore(c,g),g=c);return this},sort:function(t){function compareNode(a,s){return a&&s?t(a.__data__,s.__data__):!a-!s}t||(t=sort_ascending);for(var a=this._groups,s=a.length,c=Array(s),f=0;f<s;++f){for(var p,g=a[f],m=g.length,v=c[f]=Array(m),y=0;y<m;++y)(p=g[y])&&(v[y]=p);v.sort(compareNode)}return new Selection(c,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=Array(this.size()),a=-1;return this.each(function(){t[++a]=this}),t},node:function(){for(var t=this._groups,a=0,s=t.length;a<s;++a)for(var c=t[a],f=0,p=c.length;f<p;++f){var g=c[f];if(g)return g}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var a=this._groups,s=0,c=a.length;s<c;++s)for(var f,p=a[s],g=0,m=p.length;g<m;++g)(f=p[g])&&t.call(f,f.__data__,g,p);return this},attr:function(t,a){var s=namespace(t);if(arguments.length<2){var c=this.node();return s.local?c.getAttributeNS(s.space,s.local):c.getAttribute(s)}return this.each((null==a?s.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof a?s.local?function(t,a){return function(){var s=a.apply(this,arguments);null==s?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,s)}}:function(t,a){return function(){var s=a.apply(this,arguments);null==s?this.removeAttribute(t):this.setAttribute(t,s)}}:s.local?function(t,a){return function(){this.setAttributeNS(t.space,t.local,a)}}:function(t,a){return function(){this.setAttribute(t,a)}})(s,a))},style:function(t,a,s){return arguments.length>1?this.each((null==a?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof a?function(t,a,s){return function(){var c=a.apply(this,arguments);null==c?this.style.removeProperty(t):this.style.setProperty(t,c,s)}}:function(t,a,s){return function(){this.style.setProperty(t,a,s)}})(t,a,null==s?"":s)):styleValue(this.node(),t)},property:function(t,a){return arguments.length>1?this.each((null==a?function(t){return function(){delete this[t]}}:"function"==typeof a?function(t,a){return function(){var s=a.apply(this,arguments);null==s?delete this[t]:this[t]=s}}:function(t,a){return function(){this[t]=a}})(t,a)):this.node()[t]},classed:function(t,a){var s=classArray(t+"");
71if(arguments.length<2){for(var c=classList(this.node()),f=-1,p=s.length;++f<p;)if(!c.contains(s[f]))return!1;return!0}return this.each(("function"==typeof a?function(t,a){return function(){(a.apply(this,arguments)?classedAdd:classedRemove)(this,t)}}:a?function(t){return function(){classedAdd(this,t)}}:function(t){return function(){classedRemove(this,t)}})(s,a))},text:function(t){return arguments.length?this.each(null==t?textRemove:("function"==typeof t?function(t){return function(){var a=t.apply(this,arguments);this.textContent=null==a?"":a}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?htmlRemove:("function"==typeof t?function(t){return function(){var a=t.apply(this,arguments);this.innerHTML=null==a?"":a}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(raise)},lower:function(){return this.each(lower)},append:function(t){var a="function"==typeof t?t:creator(t);return this.select(function(){return this.appendChild(a.apply(this,arguments))})},insert:function(t,a){var s="function"==typeof t?t:creator(t),c=null==a?constantNull:"function"==typeof a?a:selector(a);return this.select(function(){return this.insertBefore(s.apply(this,arguments),c.apply(this,arguments)||null)})},remove:function(){return this.each(remove)},clone:function(t){return this.select(t?selection_cloneDeep:selection_cloneShallow)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,a,s){var c,f,p=(t+"").trim().split(/^|\s+/).map(function(t){var a="",s=t.indexOf(".");return s>=0&&(a=t.slice(s+1),t=t.slice(0,s)),{type:t,name:a}}),g=p.length;if(arguments.length<2){var m=this.node().__on;if(m){for(var v,y=0,_=m.length;y<_;++y)for(c=0,v=m[y];c<g;++c)if((f=p[c]).type===v.type&&f.name===v.name)return v.value}return}for(m=a?onAdd:onRemove,null==s&&(s=!1),c=0;c<g;++c)this.each(m(p[c],a,s));return this},dispatch:function(t,a){return this.each(("function"==typeof a?function(t,a){return function(){return dispatchEvent(this,t,a.apply(this,arguments))}}:function(t,a){return function(){return dispatchEvent(this,t,a)}})(t,a))}};var L={value:function(){}};function dispatch_dispatch(){for(var t,a=0,s=arguments.length,c={};a<s;++a){if(!(t=arguments[a]+"")||t in c||/[\s.]/.test(t))throw Error("illegal type: "+t);c[t]=[]}return new Dispatch(c)}function Dispatch(t){this._=t}function set(t,a,s){for(var c=0,f=t.length;c<f;++c)if(t[c].name===a){t[c]=L,t=t.slice(0,c).concat(t.slice(c+1));break}return null!=s&&t.push({name:a,value:s}),t}Dispatch.prototype=dispatch_dispatch.prototype={constructor:Dispatch,on:function(t,a){var s,c=this._,f=(t+"").trim().split(/^|\s+/).map(function(t){var a="",s=t.indexOf(".");if(s>=0&&(a=t.slice(s+1),t=t.slice(0,s)),t&&!c.hasOwnProperty(t))throw Error("unknown type: "+t);return{type:t,name:a}}),p=-1,g=f.length;if(arguments.length<2){for(;++p<g;)if((s=(t=f[p]).type)&&(s=function(t,a){for(var s,c=0,f=t.length;c<f;++c)if((s=t[c]).name===a)return s.value}(c[s],t.name)))return s;return}if(null!=a&&"function"!=typeof a)throw Error("invalid callback: "+a);for(;++p<g;)if(s=(t=f[p]).type)c[s]=set(c[s],t.name,a);else if(null==a)for(s in c)c[s]=set(c[s],t.name,null);return this},copy:function(){var t={},a=this._;for(var s in a)t[s]=a[s].slice();return new Dispatch(t)},call:function(t,a){if((s=arguments.length-2)>0)for(var s,c,f=Array(s),p=0;p<s;++p)f[p]=arguments[p+2];if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(c=this._[t],p=0,s=c.length;p<s;++p)c[p].value.apply(a,f)},apply:function(t,a,s){if(!this._.hasOwnProperty(t))throw Error("unknown type: "+t);for(var c=this._[t],f=0,p=c.length;f<p;++f)c[f].value.apply(a,s)}};var D,B,j=0,q=0,V=0,K=0,H=0,W=0,G="object"==typeof performance&&performance.now?performance:Date,$="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(t){setTimeout(t,17)};function now(){return H||($(clearNow),H=G.now()+W)}function clearNow(){H=0}function Timer(){this._call=this._time=this._next=null}function timer_timer(t,a,s){var c=new Timer;return c.restart(t,a,s),c}function wake(){H=(K=G.now())+W,j=q=0;try{!function(){now(),++j;for(var t,a=D;a;)(t=H-a._time)>=0&&a._call.call(null,t),a=a._next;--j}()}finally{j=0,function(){for(var t,a,s=D,c=1/0;s;)s._call?(c>s._time&&(c=s._time),t=s,s=s._next):(a=s._next,s._next=null,s=t?t._next=a:D=a);
71B=t,sleep(c)}(),H=0}}function poke(){var t=G.now(),a=t-K;a>1e3&&(W-=a,K=t)}function sleep(t){!j&&(q&&(q=clearTimeout(q)),t-H>24?(t<1/0&&(q=setTimeout(wake,t-G.now()-W)),V&&(V=clearInterval(V))):(V||(K=G.now(),V=setInterval(poke,1e3)),j=1,$(wake)))}function src_timeout(t,a,s){var c=new Timer;return a=null==a?0:+a,c.restart(function(s){c.stop(),t(s+a)},a,s),c}Timer.prototype=timer_timer.prototype={constructor:Timer,restart:function(t,a,s){if("function"!=typeof t)throw TypeError("callback is not a function");s=(null==s?now():+s)+(null==a?0:+a),this._next||B===this||(B?B._next=this:D=this,B=this),this._call=t,this._time=s,sleep()},stop:function(){this._call&&(this._call=null,this._time=1/0,sleep())}};var Y=dispatch_dispatch("start","end","cancel","interrupt"),J=[];function schedule(t,a,s,c,f,p){var g=t.__transition;if(g){if(s in g)return}else t.__transition={};!function(t,a,s){var c,f=t.__transition;function start(p){var g,m,v,y;if(1!==s.state)return stop();for(g in f)if((y=f[g]).name===s.name){if(3===y.state)return src_timeout(start);4===y.state?(y.state=6,y.timer.stop(),y.on.call("interrupt",t,t.__data__,y.index,y.group),delete f[g]):+g<a&&(y.state=6,y.timer.stop(),y.on.call("cancel",t,t.__data__,y.index,y.group),delete f[g])}if(src_timeout(function(){3===s.state&&(s.state=4,s.timer.restart(tick,s.delay,s.time),tick(p))}),s.state=2,s.on.call("start",t,t.__data__,s.index,s.group),2===s.state){for(g=0,s.state=3,c=Array(v=s.tween.length),m=-1;g<v;++g)(y=s.tween[g].value.call(t,t.__data__,s.index,s.group))&&(c[++m]=y);c.length=m+1}}function tick(a){for(var f=a<s.duration?s.ease.call(null,a/s.duration):(s.timer.restart(stop),s.state=5,1),p=-1,g=c.length;++p<g;)c[p].call(t,f);5===s.state&&(s.on.call("end",t,t.__data__,s.index,s.group),stop())}function stop(){for(var c in s.state=6,s.timer.stop(),delete f[a],f)return;delete t.__transition}f[a]=s,s.timer=timer_timer(function(t){s.state=1,s.timer.restart(start,s.delay,s.time),s.delay<=t&&start(t-s.delay)},0,s.time)}(t,s,{name:a,index:c,group:f,on:Y,tween:J,time:p.time,delay:p.delay,duration:p.duration,ease:p.ease,timer:null,state:0})}function init(t,a){var s=schedule_get(t,a);if(s.state>0)throw Error("too late; already scheduled");return s}function schedule_set(t,a){var s=schedule_get(t,a);if(s.state>3)throw Error("too late; already running");return s}function schedule_get(t,a){var s=t.__transition;if(!s||!(s=s[a]))throw Error("transition not found");return s}function src_number(t,a){return t=+t,a=+a,function(s){return t*(1-s)+a*s}}var Z=180/Math.PI,Q={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function decompose(t,a,s,c,f,p){var g,m,v;return(g=Math.sqrt(t*t+a*a))&&(t/=g,a/=g),(v=t*s+a*c)&&(s-=t*v,c-=a*v),(m=Math.sqrt(s*s+c*c))&&(s/=m,c/=m,v/=m),t*c<a*s&&(t=-t,a=-a,v=-v,g=-g),{translateX:f,translateY:p,rotate:Math.atan2(a,t)*Z,skewX:Math.atan(v)*Z,scaleX:g,scaleY:m}}function interpolateTransform(t,a,s,c){function pop(t){return t.length?t.pop()+" ":""}return function(f,p){var g,m,v,y,_=[],b=[];return f=t(f),p=t(p),!function(t,c,f,p,g,m){if(t!==f||c!==p){var v=g.push("translate(",null,a,null,s);m.push({i:v-4,x:src_number(t,f)},{i:v-2,x:src_number(c,p)})}else(f||p)&&g.push("translate("+f+a+p+s)}(f.translateX,f.translateY,p.translateX,p.translateY,_,b),(g=f.rotate)!==(m=p.rotate)?(g-m>180?m+=360:m-g>180&&(g+=360),b.push({i:_.push(pop(_)+"rotate(",null,c)-2,x:src_number(g,m)})):m&&_.push(pop(_)+"rotate("+m+c),(v=f.skewX)!==(y=p.skewX)?b.push({i:_.push(pop(_)+"skewX(",null,c)-2,x:src_number(v,y)}):y&&_.push(pop(_)+"skewX("+y+c),!function(t,a,s,c,f,p){if(t!==s||a!==c){var g=f.push(pop(f)+"scale(",null,",",null,")");p.push({i:g-4,x:src_number(t,s)},{i:g-2,x:src_number(a,c)})}else(1!==s||1!==c)&&f.push(pop(f)+"scale("+s+","+c+")")}(f.scaleX,f.scaleY,p.scaleX,p.scaleY,_,b),f=p=null,function(t){for(var a,s=-1,c=b.length;++s<c;)_[(a=b[s]).i]=a.x(t);return _.join("")}}}var X=interpolateTransform(function(t){return"none"===t?Q:(e$||(e$=document.createElement("DIV"),eY=document.documentElement,eJ=document.defaultView),e$.style.transform=t,t=eJ.getComputedStyle(eY.appendChild(e$),null).getPropertyValue("transform"),eY.removeChild(e$),decompose(+(t=t.slice(7,-1).split(","))[0],+t[1],+t[2],+t[3],+t[4],+t[5]))},"px, ","px)","deg)"),ee=interpolateTransform(function(t){return null==t?Q:(eZ||(eZ=document.createElementNS("http://www.w3.org/2000/svg","g")),eZ.setAttribute("transform",t),t=eZ.transform.baseVal.consolidate())?decompose((t=t.matrix).a,t.b,t.c,t.d,t.e,t.f):Q},", ",")",")");function tweenValue(t,a,s){var c=t._id;return t.each(function(){var t=schedule_set(this,c);(t.value||(t.value={}))[a]=s.apply(this,arguments)}),function(t){return schedule_get(t,c).value[a]}}function src_define(t,a,s){t.prototype=a.prototype=s,s.constructor=t}function extend(t,a){var s=Object.create(t.prototype);for(var c in a)s[c]=a[c];return s}function Color(){}var et="\\s*([+-]?\\d+)\\s*",en="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",er="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ei=/^#([0-9a-f]{3,8})$/,eo=RegExp("^rgb\\("+[et,et,et]+"\\)$"),ea=RegExp("^rgb\\("+[er,er,er]+"\\)$"),es=RegExp("^rgba\\("+[et,et,et,en]+"\\)$"),eu=RegExp("^rgba\\("+[er,er,er,en]+"\\)$"),ec=RegExp("^hsl\\("+[en,er,er]+"\\)$"),el=RegExp("^hsla\\("+[en,er,er,en]+"\\)$"),ed={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function color_formatHex(){return this.rgb().formatHex()}function color_formatRgb(){return this.rgb().formatRgb()}function color(t){var a,s;return t=(t+"").trim().toLowerCase(),(a=ei.exec(t))?(s=a[1].length,a=parseInt(a[1],16),6===s?rgbn(a):3===s?new Rgb(a>>8&15|a>>4&240,a>>4&15|240&a,(15&a)<<4|15&a,1):8===s?rgba(a>>24&255,a>>16&255,a>>8&255,(255&a)/255):4===s?rgba(a>>12&15|a>>8&240,a>>8&15|a>>4&240,a>>4&15|240&a,((15&a)<<4|15&a)/255):null):(a=eo.exec(t))?new Rgb(a[1],a[2],a[3],1):(a=ea.exec(t))?new Rgb(255*a[1]/100,255*a[2]/100,255*a[3]/100,1):(a=es.exec(t))?rgba(a[1],a[2],a[3],a[4]):(a=eu.exec(t))?rgba(255*a[1]/100,255*a[2]/100,255*a[3]/100,a[4]):(a=ec.exec(t))?hsla(a[1],a[2]/100,a[3]/100,1):(a=el.exec(t))?hsla(a[1],a[2]/100,a[3]/100,a[4]):ed.hasOwnProperty(t)?rgbn(ed[t]):"transparent"===t?new Rgb(NaN,NaN,NaN,0):null}function rgbn(t){return new Rgb(t>>16&255,t>>8&255,255&t,1)}function rgba(t,a,s,c){return c<=0&&(t=a=s=NaN),new Rgb(t,a,s,c)}function color_rgb(t,a,s,c){var f;return 1==arguments.length?((f=t)instanceof Color||(f=color(f)),f)?(f=f.rgb(),new Rgb(f.r,f.g,f.b,f.opacity)):new Rgb:new Rgb(t,a,s,null==c?1:c)}function Rgb(t,a,s,c){this.r=+t,this.g=+a,this.b=+s,this.opacity=+c}function rgb_formatHex(){return"#"+hex(this.r)+hex(this.g)+hex(this.b)}function rgb_formatRgb(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||
710))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===t?")":", "+t+")")}function hex(t){return((t=Math.max(0,Math.min(255,Math.round(t)||0)))<16?"0":"")+t.toString(16)}function hsla(t,a,s,c){return c<=0?t=a=s=NaN:s<=0||s>=1?t=a=NaN:a<=0&&(t=NaN),new Hsl(t,a,s,c)}function hslConvert(t){if(t instanceof Hsl)return new Hsl(t.h,t.s,t.l,t.opacity);if(t instanceof Color||(t=color(t)),!t)return new Hsl;if(t instanceof Hsl)return t;var a=(t=t.rgb()).r/255,s=t.g/255,c=t.b/255,f=Math.min(a,s,c),p=Math.max(a,s,c),g=NaN,m=p-f,v=(p+f)/2;return m?(g=a===p?(s-c)/m+(s<c)*6:s===p?(c-a)/m+2:(a-s)/m+4,m/=v<.5?p+f:2-p-f,g*=60):m=v>0&&v<1?0:g,new Hsl(g,m,v,t.opacity)}function Hsl(t,a,s,c){this.h=+t,this.s=+a,this.l=+s,this.opacity=+c}function hsl2rgb(t,a,s){return(t<60?a+(s-a)*t/60:t<180?s:t<240?a+(s-a)*(240-t)/60:a)*255}function basis(t,a,s,c,f){var p=t*t,g=p*t;return((1-3*t+3*p-g)*a+(4-6*p+3*g)*s+(1+3*t+3*p-3*g)*c+g*f)/6}function d3_interpolate_src_constant(t){return function(){return t}}function nogamma(t,a){var s=a-t;return s?function(a){return t+a*s}:d3_interpolate_src_constant(isNaN(t)?a:t)}src_define(Color,color,{copy:function(t){return Object.assign(new this.constructor,this,t)},displayable:function(){return this.rgb().displayable()},hex:color_formatHex,formatHex:color_formatHex,formatHsl:function(){return hslConvert(this).formatHsl()},formatRgb:color_formatRgb,toString:color_formatRgb}),src_define(Rgb,color_rgb,extend(Color,{brighter:function(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new Rgb(this.r*t,this.g*t,this.b*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Rgb(this.r*t,this.g*t,this.b*t,this.opacity)},rgb:function(){return this},displayable:function(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:rgb_formatHex,formatHex:rgb_formatHex,formatRgb:rgb_formatRgb,toString:rgb_formatRgb})),src_define(Hsl,function(t,a,s,c){return 1==arguments.length?hslConvert(t):new Hsl(t,a,s,null==c?1:c)},extend(Color,{brighter:function(t){return t=null==t?1.4285714285714286:Math.pow(1.4285714285714286,t),new Hsl(this.h,this.s,this.l*t,this.opacity)},darker:function(t){return t=null==t?.7:Math.pow(.7,t),new Hsl(this.h,this.s,this.l*t,this.opacity)},rgb:function(){var t=this.h%360+(this.h<0)*360,a=isNaN(t)||isNaN(this.s)?0:this.s,s=this.l,c=s+(s<.5?s:1-s)*a,f=2*s-c;return new Rgb(hsl2rgb(t>=240?t-240:t+120,f,c),hsl2rgb(t,f,c),hsl2rgb(t<120?t+240:t-120,f,c),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl:function(){var t=this.opacity;return(1===(t=isNaN(t)?1:Math.max(0,Math.min(1,t)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===t?")":", "+t+")")}}));var ef=function rgbGamma(t){var a,s=1==(a=+(a=t))?nogamma:function(t,s){var c,f,p;return s-t?(c=t,f=s,c=Math.pow(c,p=a),f=Math.pow(f,p)-c,p=1/p,function(t){return Math.pow(c+t*f,p)}):d3_interpolate_src_constant(isNaN(t)?s:t)};function rgb(t,a){var c=s((t=color_rgb(t)).r,(a=color_rgb(a)).r),f=s(t.g,a.g),p=s(t.b,a.b),g=nogamma(t.opacity,a.opacity);return function(a){return t.r=c(a),t.g=f(a),t.b=p(a),t.opacity=g(a),t+""}}return rgb.gamma=rgbGamma,rgb}(1);function rgbSpline(t){return function(a){var s,c,f=a.length,p=Array(f),g=Array(f),m=Array(f);for(s=0;s<f;++s)c=color_rgb(a[s]),p[s]=c.r||0,g[s]=c.g||0,m[s]=c.b||0;return p=t(p),g=t(g),m=t(m),c.opacity=1,function(t){return c.r=p(t),c.g=g(t),c.b=m(t),c+""}}}rgbSpline(function(t){var a=t.length-1;return function(s){var c=s<=0?s=0:s>=1?(s=1,a-1):Math.floor(s*a),f=t[c],p=t[c+1],g=c>0?t[c-1]:2*f-p,m=c<a-1?t[c+2]:2*p-f;return basis((s-c/a)*a,g,f,p,m)}}),rgbSpline(function(t){var a=t.length;return function(s){var c=Math.floor(((s%=1)<0?++s:s)*a),f=t[(c+a-1)%a],p=t[c%a],g=t[(c+1)%a],m=t[(c+2)%a];return basis((s-c/a)*a,f,p,g,m)}});var ep=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,eh=RegExp(ep.source,"g");function string(t,a){var s,c,f,p,g,m=ep.lastIndex=eh.lastIndex=0,v=-1,y=[],_=[];for(t+="",a+="";(f=ep.exec(t))&&(p=eh.exec(a));)(g=p.index)>m&&(g=a.slice(m,g),y[v]?y[v]+=g:y[++v]=g),(f=f[0])===(p=p[0])?y[v]?y[v]+=p:y[++v]=p:(y[++v]=null,_.push({i:v,x:src_number(f,p)})),m=eh.lastIndex;return m<a.length&&(g=a.slice(m),y[v]?y[v]+=g:y[++v]=g),y.length<2?_[0]?(s=_[0].x,function(t){return s(t)+""}):(c=a,function(){return c}):(a=_.length,function(t){for(var s,c=0;c<a;++c)y[(s=_[c]).i]=s.x(t);return y.join("")})}function transition_interpolate(t,a){var s;return("number"==typeof a?src_number:a instanceof color?ef:(s=color(a))?(a=s,ef):string)(t,a)}var eg=selection.prototype.constructor;function style_styleRemove(t){return function(){this.style.removeProperty(t)}}var em=0;function transition_Transition(t,a,s,c){this._groups=t,this._parents=a,this._name=s,this._id=c}var ev=selection.prototype;transition_Transition.prototype=(function(t){return selection().transition(t)}).prototype={constructor:transition_Transition,select:function(t){var a=this._name,s=this._id;"function"!=typeof t&&(t=selector(t));for(var c=this._groups,f=c.length,p=Array(f),g=0;g<f;++g)for(var m,v,y=c[g],_=y.length,b=p[g]=Array(_),S=0;S<_;++S)(m=y[S])&&(v=t.call(m,m.__data__,S,y))&&("__data__"in m&&(v.__data__=m.__data__),b[S]=v,schedule(b[S],a,s,S,b,schedule_get(m,s)));return new transition_Transition(p,this._parents,a,s)},selectAll:function(t){var a=this._name,s=this._id;"function"!=typeof t&&(t=selectorAll(t));for(var c=this._groups,f=c.length,p=[],g=[],m=0;m<f;++m)for(var v,y=c[m],_=y.length,b=0;b<_;++b)if(v=y[b]){for(var S,w=t.call(v,v.__data__,b,y),C=schedule_get(v,s),E=0,x=w.length;E<x;++E)(S=w[E])&&schedule(S,a,s,E,w,C);p.push(w),g.push(v)}return new transition_Transition(p,g,a,s)},filter:function(t){"function"!=typeof t&&(t=matcher(t));for(var a=this._groups,s=a.length,c=Array(s),f=0;f<s;++f)for(var p,g=a[f],m=g.length,v=c[f]=[],y=0;y<m;++y)(p=g[y])&&t.call(p,p.__data__,y,g)&&v.push(p);return new transition_Transition(c,this._parents,this._name,this._id)},merge:function(t){if(t._id!==this._id)throw Error();for(var a=this._groups,s=t._groups,c=a.length,f=s.length,p=Math.min(c,f),g=Array(c),m=0;m<p;++m)for(var v,y=a[m],_=s[m],b=y.length,S=g[m]=Array(b),w=0;w<b;++w)(v=y[w]||_[w])&&(S[w]=v);for(;m<c;++m)g[m]=a[m];return new transition_Transition(g,this._parents,this._name,this._id)},selection:function(){return new eg(this._groups,this._parents)},transition:function(){for(var t=this._name,a=this._id,s=++em,c=this._groups,f=c.length,p=0;p<f;++p)for(var g,m=c[p],v=m.length,y=0;y<v;++y)if(g=m[y]){var _=schedule_get(g,a);schedule(g,t,s,y,m,{time:_.time+_.delay+_.duration,delay:0,duration:_.duration,ease:_.ease})}return new transition_Transition(c,this._parents,t,s)}
71,call:ev.call,nodes:ev.nodes,node:ev.node,size:ev.size,empty:ev.empty,each:ev.each,on:function(t,a){var s,c,f,p=this._id;return arguments.length<2?schedule_get(this.node(),p).on.on(t):this.each((f=(t+"").trim().split(/^|\s+/).every(function(t){var a=t.indexOf(".");return a>=0&&(t=t.slice(0,a)),!t||"start"===t})?init:schedule_set,function(){var g=f(this,p),m=g.on;m!==s&&(c=(s=m).copy()).on(t,a),g.on=c}))},attr:function(t,a){var s=namespace(t),c="transform"===s?ee:transition_interpolate;return this.attrTween(t,"function"==typeof a?(s.local?function(t,a,s){var c,f,p;return function(){var g,m,v=s(this);return null==v?void this.removeAttributeNS(t.space,t.local):(g=this.getAttributeNS(t.space,t.local))===(m=v+"")?null:g===c&&m===f?p:(f=m,p=a(c=g,v))}}:function(t,a,s){var c,f,p;return function(){var g,m,v=s(this);return null==v?void this.removeAttribute(t):(g=this.getAttribute(t))===(m=v+"")?null:g===c&&m===f?p:(f=m,p=a(c=g,v))}})(s,c,tweenValue(this,"attr."+t,a)):null==a?(s.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}})(s):(s.local?function(t,a,s){var c,f,p=s+"";return function(){var g=this.getAttributeNS(t.space,t.local);return g===p?null:g===c?f:f=a(c=g,s)}}:function(t,a,s){var c,f,p=s+"";return function(){var g=this.getAttribute(t);return g===p?null:g===c?f:f=a(c=g,s)}})(s,c,a))},attrTween:function(t,a){var s="attr."+t;if(arguments.length<2)return(s=this.tween(s))&&s._value;if(null==a)return this.tween(s,null);if("function"!=typeof a)throw Error();var c=namespace(t);return this.tween(s,(c.local?function(t,a){var s,c;function tween(){var f=a.apply(this,arguments);return f!==c&&(s=(c=f)&&function(a){this.setAttributeNS(t.space,t.local,f.call(this,a))}),s}return tween._value=a,tween}:function(t,a){var s,c;function tween(){var f=a.apply(this,arguments);return f!==c&&(s=(c=f)&&function(a){this.setAttribute(t,f.call(this,a))}),s}return tween._value=a,tween})(c,a))},style:function(t,a,s){var c,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I,T,k,O,R,M,N="transform"==(t+="")?X:transition_interpolate;return null==a?this.styleTween(t,(c=t,function(){var t=styleValue(this,c),a=(this.style.removeProperty(c),styleValue(this,c));return t===a?null:t===f&&a===p?g:g=N(f=t,p=a)})).on("end.style."+t,style_styleRemove(t)):"function"==typeof a?this.styleTween(t,(m=t,v=tweenValue(this,"style."+t,a),function(){var t=styleValue(this,m),a=v(this),s=a+"";return null==a&&(this.style.removeProperty(m),s=a=styleValue(this,m)),t===s?null:t===y&&s===_?b:(_=s,b=N(y=t,a))})).each((S=this._id,T="end."+(I="style."+(w=t)),function(){var t=schedule_set(this,S),a=t.on,s=null==t.value[I]?P||(P=style_styleRemove(w)):void 0;(a!==C||x!==s)&&(E=(C=a).copy()).on(T,x=s),t.on=E})):this.styleTween(t,(k=t,M=a+"",function(){var t=styleValue(this,k);return t===M?null:t===O?R:R=N(O=t,a)}),s).on("end.style."+t,null)},styleTween:function(t,a,s){var c="style."+(t+="");if(arguments.length<2)return(c=this.tween(c))&&c._value;if(null==a)return this.tween(c,null);if("function"!=typeof a)throw Error();return this.tween(c,function(t,a,s){var c,f;function tween(){var p=a.apply(this,arguments);return p!==f&&(c=(f=p)&&function(a){this.style.setProperty(t,p.call(this,a),s)}),c}return tween._value=a,tween}(t,a,null==s?"":s))},text:function(t){var a,s;return this.tween("text","function"==typeof t?(a=tweenValue(this,"text",t),function(){var t=a(this);this.textContent=null==t?"":t}):(s=null==t?"":t+"",function(){this.textContent=s}))},textTween:function(t){var a="text";if(arguments.length<1)return(a=this.tween(a))&&a._value;if(null==t)return this.tween(a,null);if("function"!=typeof t)throw Error();return this.tween(a,function(t){var a,s;function tween(){var c=t.apply(this,arguments);return c!==s&&(a=(s=c)&&function(t){this.textContent=c.call(this,t)}),a}return tween._value=t,tween}(t))},remove:function(){var t;return this.on("end.remove",(t=this._id,function(){var a=this.parentNode;for(var s in this.__transition)if(+s!==t)return;a&&a.removeChild(this)}))},tween:function(t,a){var s=this._id;if(t+="",arguments.length<2){for(var c,f=schedule_get(this.node(),s).tween,p=0,g=f.length;p<g;++p)if((c=f[p]).name===t)return c.value;return null}return this.each((null==a?function(t,a){var s,c;return function(){var f=schedule_set(this,t),p=f.tween;if(p!==s){c=s=p;for(var g=0,m=c.length;g<m;++g)if(c[g].name===a){(c=c.slice()).splice(g,1);break}}f.tween=c}}:function(t,a,s){var c,f;if("function"!=typeof s)throw Error();return function(){var p=schedule_set(this,t),g=p.tween;if(g!==c){f=(c=g).slice();for(var m={name:a,value:s},v=0,y=f.length;v<y;++v)if(f[v].name===a){f[v]=m;break}v===y&&f.push(m)}p.tween=f}})(s,t,a))},delay:function(t){var a=this._id;return arguments.length?this.each(("function"==typeof t?function(t,a){return function(){init(this,t).delay=+a.apply(this,arguments)}}:function(t,a){return a=+a,function(){init(this,t).delay=a}})(a,t)):schedule_get(this.node(),a).delay},duration:function(t){var a=this._id;return arguments.length?this.each(("function"==typeof t?function(t,a){return function(){schedule_set(this,t).duration=+a.apply(this,arguments)}}:function(t,a){return a=+a,function(){schedule_set(this,t).duration=a}})(a,t)):schedule_get(this.node(),a).duration},ease:function(t){var a=this._id;return arguments.length?this.each(function(t,a){if("function"!=typeof a)throw Error();return function(){schedule_set(this,t).ease=a}}(a,t)):schedule_get(this.node(),a).ease},end:function(){var t,a,s=this,c=s._id,f=s.size();return new Promise(function(p,g){var m={value:g},v={value:function(){0==--f&&p()}};s.each(function(){var s=schedule_set(this,c),f=s.on;f!==t&&((a=(t=f).copy())._.cancel.push(m),a._.interrupt.push(m),a._.end.push(v)),s.on=a})})}};var ey={time:null,delay:0,duration:250,ease:function(t){return((t*=2)<=1?t*t*t:(t-=2)*t*t+2)/2}};function type(t){return{type:t}}function Map(){}function map_map(t,a){var s=new Map;if(t instanceof Map)t.each(function(t,a){s.set(a,t)});else if(Array.isArray(t)){var c,f=-1,p=t.length;if(null==a)for(;++f<p;)s.set(f,t[f]);else for(;++f<p;)s.set(a(c=t[f],f,t),c)}else if(t)for(var g in t)s.set(g,t[g]);return s}selection.prototype.interrupt=function(t){return this.each(function(){!function(t,a){var s,c,f,p=t.__transition,g=!0;if(p){for(f in a=null==a?null:a+"",p){if((s=p[f]).name!==a){g=!1;continue}c=s.state>2&&s.state<5,s.state=6,s.timer.stop(),s.on.call(c?"interrupt":"cancel",t,t.__data__,s.index,s.group),delete p[f]}g&&delete t.__transition}}(this,t)})},selection.prototype.transition=function(t){var a,s;t instanceof transition_Transition?(a=t._id,t=t._name):(a=++em,(s=ey).time=now(),t=null==t?null:t+"");for(var c=this._groups,f=c.length,p=0;p<f;++p)for(var g,m=c[p],v=m.length,y=0;y<v;++y)(g=m[y])&&schedule(g,t,a,y,m,s||function(t,a){for(var s;!(s=t.__transition)||!(s=s[a]);)if(!(t=t.parentNode))return ey.time=now(),ey;return s}(g,a));return new transition_Transition(c,this._parents,t,a)},["w","e"].map(type),["n","s"].map(type),["n","w","e","s","nw","ne","sw","se"].map(type),Array.prototype.slice,Map.prototype=map_map.prototype={constructor:Map,has:function(t){return"$"+t in this},get:function(t){return this["$"+t]}
71,set:function(t,a){return this["$"+t]=a,this},remove:function(t){var a="$"+t;return a in this&&delete this[a]},clear:function(){for(var t in this)"$"===t[0]&&delete this[t]},keys:function(){var t=[];for(var a in this)"$"===a[0]&&t.push(a.slice(1));return t},values:function(){var t=[];for(var a in this)"$"===a[0]&&t.push(this[a]);return t},entries:function(){var t=[];for(var a in this)"$"===a[0]&&t.push({key:a.slice(1),value:this[a]});return t},size:function(){var t=0;for(var a in this)"$"===a[0]&&++t;return t},empty:function(){for(var t in this)if("$"===t[0])return!1;return!0},each:function(t){for(var a in this)"$"===a[0]&&t(this[a],a.slice(1),this)}};var e_=map_map;function Set(){}var eb=e_.prototype;Set.prototype=(function(t,a){var s=new Set;if(t instanceof Set)t.each(function(t){s.add(t)});else if(t){var c=-1,f=t.length;if(null==a)for(;++c<f;)s.add(t[c]);else for(;++c<f;)s.add(a(t[c],c,t))}return s}).prototype={constructor:Set,has:eb.has,add:function(t){return this["$"+(t+="")]=t,this},remove:eb.remove,clear:eb.clear,values:eb.keys,size:eb.size,empty:eb.empty,each:eb.each},Array.prototype.slice;var eS={},ew={};function objectConverter(t){return Function("d","return {"+t.map(function(t,a){return JSON.stringify(t)+": d["+a+'] || ""'}).join(",")+"}")}function inferColumns(t){var a=Object.create(null),s=[];return t.forEach(function(t){for(var c in t)c in a||s.push(a[c]=c)}),s}function pad(t,a){var s=t+"",c=s.length;return c<a?Array(a-c+1).join(0)+s:s}function dsv(t){var a=RegExp('["'+t+"\n\r]"),s=t.charCodeAt(0);function parseRows(t,a){var c,f=[],p=t.length,g=0,m=0,v=p<=0,y=!1;function token(){if(v)return ew;if(y)return y=!1,eS;var a,c,f=g;if(34===t.charCodeAt(f)){for(;g++<p&&34!==t.charCodeAt(g)||34===t.charCodeAt(++g););return(a=g)>=p?v=!0:10===(c=t.charCodeAt(g++))?y=!0:13===c&&(y=!0,10===t.charCodeAt(g)&&++g),t.slice(f+1,a-1).replace(/""/g,'"')}for(;g<p;){if(10===(c=t.charCodeAt(a=g++)))y=!0;else if(13===c)y=!0,10===t.charCodeAt(g)&&++g;else if(c!==s)continue;return t.slice(f,a)}return v=!0,t.slice(f,p)}for(10===t.charCodeAt(p-1)&&--p,13===t.charCodeAt(p-1)&&--p;(c=token())!==ew;){for(var _=[];c!==eS&&c!==ew;)_.push(c),c=token();a&&null==(_=a(_,m++))||f.push(_)}return f}function preformatBody(a,s){return a.map(function(a){return s.map(function(t){return formatValue(a[t])}).join(t)})}function formatRow(a){return a.map(formatValue).join(t)}function formatValue(t){var s,c,f,p,g,m;return null==t?"":t instanceof Date?(c=(s=t).getUTCHours(),f=s.getUTCMinutes(),p=s.getUTCSeconds(),g=s.getUTCMilliseconds(),isNaN(s)?"Invalid Date":((m=s.getUTCFullYear())<0?"-"+pad(-m,6):m>9999?"+"+pad(m,6):pad(m,4))+"-"+pad(s.getUTCMonth()+1,2)+"-"+pad(s.getUTCDate(),2)+(g?"T"+pad(c,2)+":"+pad(f,2)+":"+pad(p,2)+"."+pad(g,3)+"Z":p?"T"+pad(c,2)+":"+pad(f,2)+":"+pad(p,2)+"Z":f||c?"T"+pad(c,2)+":"+pad(f,2)+"Z":"")):a.test(t+="")?'"'+t.replace(/"/g,'""')+'"':t}return{parse:function(t,a){var s,c,f=parseRows(t,function(t,f){var p;if(s)return s(t,f-1);c=t,s=a?(p=objectConverter(t),function(s,c){return a(p(s),c,t)}):objectConverter(t)});return f.columns=c||[],f},parseRows:parseRows,format:function(a,s){return null==s&&(s=inferColumns(a)),[s.map(formatValue).join(t)].concat(preformatBody(a,s)).join("\n")},formatBody:function(t,a){return null==a&&(a=inferColumns(t)),preformatBody(t,a).join("\n")},formatRows:function(t){return t.map(formatRow).join("\n")},formatRow:formatRow,formatValue:formatValue}}var eA=dsv(","),eC=eA.parse;eA.parseRows,eA.format,eA.formatBody,eA.formatRows,eA.formatRow,eA.formatValue;var eE=dsv("	"),ex=eE.parse;function responseText(t){if(!t.ok)throw Error(t.status+" "+t.statusText);return t.text()}function dsvParse(t){return function(a,s,c){var f;return 2==arguments.length&&"function"==typeof s&&(c=s,s=void 0),(f=s,fetch(a,f).then(responseText)).then(function(a){return t(a,c)})}}eE.parseRows,eE.format,eE.formatBody,eE.formatRows,eE.formatRow,eE.formatValue,dsvParse(eC);var eP=dsvParse(ex),eI=Math.PI,eT=eI/2,ek=eI/4,eO=2*eI,eR=180/eI,eM=eI/180,eN=Math.abs,eU=Math.atan,eL=Math.atan2,eD=Math.cos,eB=Math.exp,ej=Math.log,eF=Math.sin,ez=Math.sign||function(t){return t>0?1:t<0?-1:0},eq=Math.sqrt,eV=Math.tan;function asin(t){return t>1?eT:t<-1?-eT:Math.asin(t)}function noop_noop(){}function streamGeometry(t,a){t&&eH.hasOwnProperty(t.type)&&eH[t.type](t,a)}var eK={Feature:function(t,a){streamGeometry(t.geometry,a)},FeatureCollection:function(t,a){for(var s=t.features,c=-1,f=s.length;++c<f;)streamGeometry(s[c].geometry,a)}},eH={Sphere:function(t,a){a.sphere()},Point:function(t,a){t=t.coordinates,a.point(t[0],t[1],t[2])},MultiPoint:function(t,a){for(var s=t.coordinates,c=-1,f=s.length;++c<f;)t=s[c],a.point(t[0],t[1],t[2])},LineString:function(t,a){streamLine(t.coordinates,a,0)},MultiLineString:function(t,a){for(var s=t.coordinates,c=-1,f=s.length;++c<f;)streamLine(s[c],a,0)},Polygon:function(t,a){streamPolygon(t.coordinates,a)},MultiPolygon:function(t,a){for(var s=t.coordinates,c=-1,f=s.length;++c<f;)streamPolygon(s[c],a)},GeometryCollection:function(t,a){for(var s=t.geometries,c=-1,f=s.length;++c<f;)streamGeometry(s[c],a)}};function streamLine(t,a,s){var c,f=-1,p=t.length-s;for(a.lineStart();++f<p;)c=t[f],a.point(c[0],c[1],c[2]);a.lineEnd()}function streamPolygon(t,a){var s=-1,c=t.length;
vendor: 5,147 bytes, line 71
71for(a.polygonStart();++s<c;)streamLine(t[s],a,1);a.polygonEnd()}function stream(t,a){t&&eK.hasOwnProperty(t.type)?eK[t.type](t,a):streamGeometry(t,a)}var eW={sphere:noop_noop,point:centroidPoint,lineStart:centroidLineStart,lineEnd:centroidLineEnd,polygonStart:function(){eW.lineStart=centroidRingStart,eW.lineEnd=centroidRingEnd},polygonEnd:function(){eW.lineStart=centroidLineStart,eW.lineEnd=centroidLineEnd}};function centroidPoint(t,a){t*=eM;var s=eD(a*=eM);centroidPointCartesian(s*eD(t),s*eF(t),eF(a))}function centroidPointCartesian(t,a,s){++eQ,e0+=(t-e0)/eQ,e1+=(a-e1)/eQ,e2+=(s-e2)/eQ}function centroidLineStart(){eW.point=centroidLinePointFirst}function centroidLinePointFirst(t,a){t*=eM;var s=eD(a*=eM);tt=s*eD(t),tn=s*eF(t),tr=eF(a),eW.point=centroidLinePoint,centroidPointCartesian(tt,tn,tr)}function centroidLinePoint(t,a){t*=eM;var s=eD(a*=eM),c=s*eD(t),f=s*eF(t),p=eF(a),g=eL(eq((g=tn*p-tr*f)*g+(g=tr*c-tt*p)*g+(g=tt*f-tn*c)*g),tt*c+tn*f+tr*p);eX+=g,e6+=g*(tt+(tt=c)),e3+=g*(tn+(tn=f)),e4+=g*(tr+(tr=p)),centroidPointCartesian(tt,tn,tr)}function centroidLineEnd(){eW.point=centroidPoint}function centroidRingStart(){eW.point=centroidRingPointFirst}function centroidRingEnd(){centroidRingPoint(e9,te),eW.point=centroidPoint}function centroidRingPointFirst(t,a){e9=t,te=a,t*=eM,a*=eM,eW.point=centroidRingPoint;var s=eD(a);tt=s*eD(t),tn=s*eF(t),tr=eF(a),centroidPointCartesian(tt,tn,tr)}function centroidRingPoint(t,a){t*=eM;var s=eD(a*=eM),c=s*eD(t),f=s*eF(t),p=eF(a),g=tn*p-tr*f,m=tr*c-tt*p,v=tt*f-tn*c,y=eq(g*g+m*m+v*v),_=asin(y),b=y&&-_/y;e5+=b*g,e8+=b*m,e7+=b*v,eX+=_,e6+=_*(tt+(tt=c)),e3+=_*(tn+(tn=f)),e4+=_*(tr+(tr=p)),centroidPointCartesian(tt,tn,tr)}function centroid(t){eQ=eX=e0=e1=e2=e6=e3=e4=e5=e8=e7=0,stream(t,eW);var a=e5,s=e8,c=e7,f=a*a+s*s+c*c;return f<1e-12&&(a=e6,s=e3,c=e4,eX<1e-6&&(a=e0,s=e1,c=e2),(f=a*a+s*s+c*c)<1e-12)?[NaN,NaN]:[eL(s,a)*eR,asin(c/eq(f))*eR]}function d3_geo_src_identity(t){return t}function Adder(){this.reset()}Adder.prototype={constructor:Adder,reset:function(){this.s=this.t=0},add:function(t){add(eG,t,this.t),add(this,eG.s,this.s),this.s?this.t+=eG.t:this.s=eG.t},valueOf:function(){return this.s}};var eG=new Adder;function add(t,a,s){var c=t.s=a+s,f=c-a;t.t=a-(c-f)+(s-f)}var e$,eY,eJ,eZ,eQ,eX,e0,e1,e2,e6,e3,e4,e5,e8,e7,e9,te,tt,tn,tr,ti,to,ta,ts,tu=new Adder,tc=new Adder,tl={point:noop_noop,lineStart:noop_noop,lineEnd:noop_noop,polygonStart:function(){tl.lineStart=areaRingStart,tl.lineEnd=areaRingEnd},polygonEnd:function(){tl.lineStart=tl.lineEnd=tl.point=noop_noop,tu.add(eN(tc)),tc.reset()},result:function(){return tu.reset(),tu/2}};function areaRingStart(){tl.point=areaPointFirst}function areaPointFirst(t,a){tl.point=areaPoint,ti=ta=t,to=ts=a}function areaPoint(t,a){tc.add(ts*t-ta*a),ta=t,ts=a}function areaRingEnd(){areaPoint(ti,to)}var td,tf,tp,th,tg=1/0,tm=1/0,tv=-1/0,ty=tv,t_={point:function(t,a){t<tg&&(tg=t),t>tv&&(tv=t),a<tm&&(tm=a),a>ty&&(ty=a)},lineStart:noop_noop,lineEnd:noop_noop,polygonStart:noop_noop,polygonEnd:noop_noop,result:function(){var t=[[tg,tm],[tv,ty]];return tv=ty=-(tm=tg=1/0),t}},tb=0,tS=0,tw=0,tA=0,tC=0,tE=0,tx=0,tP=0,tI=0,tT={point:centroid_centroidPoint,lineStart:centroid_centroidLineStart,lineEnd:centroid_centroidLineEnd,polygonStart:function(){tT.lineStart=centroid_centroidRingStart,tT.lineEnd=centroid_centroidRingEnd},polygonEnd:function(){tT.point=centroid_centroidPoint,tT.lineStart=centroid_centroidLineStart,tT.lineEnd=centroid_centroidLineEnd},result:function(){var t=tI?[tx/tI,tP/tI]:tE?[tA/tE,tC/tE]:tw?[tb/tw,tS/tw]:[NaN,NaN];return tb=tS=tw=tA=tC=tE=tx=tP=tI=0,t}};function centroid_centroidPoint(t,a){tb+=t,tS+=a,++tw}function centroid_centroidLineStart(){tT.point=centroidPointFirstLine}function centroidPointFirstLine(t,a){tT.point=centroidPointLine,centroid_centroidPoint(tp=t,th=a)}function centroidPointLine(t,a){var s=t-tp,c=a-th,f=eq(s*s+c*c);tA+=f*(tp+t)/2,tC+=f*(th+a)/2,tE+=f,centroid_centroidPoint(tp=t,th=a)}function centroid_centroidLineEnd(){tT.point=centroid_centroidPoint}function centroid_centroidRingStart(){tT.point=centroidPointFirstRing}function centroid_centroidRingEnd(){centroidPointRing(td,tf)}function centroidPointFirstRing(t,a){tT.point=centroidPointRing,centroid_centroidPoint(td=tp=t,tf=th=a)}function centroidPointRing(t,a){var s=t-tp,c=a-th,f=eq(s*s+c*c);tA+=f*(tp+t)/2,tC+=f*(th+a)/2,tE+=f,tx+=(f=th*t-tp*a)*(tp+t),tP+=f*(th+a),tI+=3*f,centroid_centroidPoint(tp=t,th=a)}function PathContext(t){this._context=t}PathContext.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(t,a){switch(this._point){case 0:this._context.moveTo(t,a),this._point=1;break;case 1:this._context.lineTo(t,a);break;default:this._context.moveTo(t+this._radius,a),this._context.arc(t,a,this._radius,0,eO)}},result:noop_noop};var tk,tO,tR,tM,tN,tU=new Adder,tL={point:noop_noop,lineStart:function(){tL.point=lengthPointFirst},lineEnd:function(){tk&&lengthPoint(tO,tR),tL.point=noop_noop}
71,polygonStart:function(){tk=!0},polygonEnd:function(){tk=null},result:function(){return tU.reset(),+tU}};function lengthPointFirst(t,a){tL.point=lengthPoint,tO=tM=t,tR=tN=a}function lengthPoint(t,a){tM-=t,tN-=a,tU.add(eq(tM*tM+tN*tN)),tM=t,tN=a}function PathString(){this._string=[]}function circle(t){return"m0,"+t+"a"+t+","+t+" 0 1,1 0,"+-2*t+"a"+t+","+t+" 0 1,1 0,"+2*t+"z"}function src_path(t,a){var s,c,f=4.5;function path(t){return t&&("function"==typeof f&&c.pointRadius(+f.apply(this,arguments)),stream(t,s(c))),c.result()}return path.area=function(t){return stream(t,s(tl)),tl.result()},path.measure=function(t){return stream(t,s(tL)),tL.result()},path.bounds=function(t){return stream(t,s(t_)),t_.result()},path.centroid=function(t){return stream(t,s(tT)),tT.result()},path.projection=function(a){return arguments.length?(s=null==a?(t=null,d3_geo_src_identity):(t=a).stream,path):t},path.context=function(t){return arguments.length?(c=null==t?(a=null,new PathString):new PathContext(a=t),"function"!=typeof f&&c.pointRadius(f),path):a},path.pointRadius=function(t){return arguments.length?(f="function"==typeof t?t:(c.pointRadius(+t),+t),path):f},path.projection(t).context(a)}function compose(t,a){function compose(s,c){return a((s=t(s,c))[0],s[1])}return t.invert&&a.invert&&(compose.invert=function(s,c){return(s=a.invert(s,c))&&t.invert(s[0],s[1])}),compose}function rotationIdentity(t,a){return[eN(t)>eI?t+Math.round(-t/eO)*eO:t,a]}function rotation_rotateRadians(t,a,s){return(t%=eO)?a||s?compose(rotationLambda(t),rotationPhiGamma(a,s)):rotationLambda(t):a||s?rotationPhiGamma(a,s):rotationIdentity}function forwardRotationLambda(t){return function(a,s){return[(a+=t)>eI?a-eO:a<-eI?a+eO:a,s]}}function rotationLambda(t){var a=forwardRotationLambda(t);return a.invert=forwardRotationLambda(-t),a}function rotationPhiGamma(t,a){var s=eD(t),c=eF(t),f=eD(a),p=eF(a);function rotation(t,a){var g=eD(a),m=eD(t)*g,v=eF(t)*g,y=eF(a),_=y*s+m*c;return[eL(v*f-_*p,m*s-y*c),asin(_*f+v*p)]}return rotation.invert=function(t,a){var g=eD(a),m=eD(t)*g,v=eF(t)*g,y=eF(a),_=y*f-v*p;return[eL(v*f+y*p,m*s+_*c),asin(_*s-m*c)]},rotation}function buffer(){var t,a=[];return{point:function(a,s,c){t.push([a,s,c])},lineStart:function(){a.push(t=[])},lineEnd:noop_noop,rejoin:function(){a.length>1&&a.push(a.pop().concat(a.shift()))},result:function(){var s=a;return a=[],t=null,s}}}function pointEqual(t,a){return 1e-6>eN(t[0]-a[0])&&1e-6>eN(t[1]-a[1])}function Intersection(t,a,s,c){this.x=t,this.z=a,this.o=s,this.e=c,this.v=!1,this.n=this.p=null}function rejoin(t,a,s,c,f){var p,g,m=[],v=[];if(t.forEach(function(t){if(!((a=t.length-1)<=0)){var a,s,c=t[0],g=t[a];if(pointEqual(c,g)){if(!c[2]&&!g[2]){for(f.lineStart(),p=0;p<a;++p)f.point((c=t[p])[0],c[1]);f.lineEnd();return}g[0]+=2e-6}m.push(s=new Intersection(c,t,null,!0)),v.push(s.o=new Intersection(c,null,s,!1)),m.push(s=new Intersection(g,t,null,!1)),v.push(s.o=new Intersection(g,null,s,!0))}}),m.length){for(v.sort(a),rejoin_link(m),rejoin_link(v),p=0,g=v.length;p<g;++p)v[p].e=s=!s;
71for(var y,_,b=m[0];;){for(var S=b,w=!0;S.v;)if((S=S.n)===b)return;y=S.z,f.lineStart();do{if(S.v=S.o.v=!0,S.e){if(w)for(p=0,g=y.length;p<g;++p)f.point((_=y[p])[0],_[1]);else c(S.x,S.n.x,1,f);S=S.n}else{if(w)for(p=(y=S.p.z).length-1;p>=0;--p)f.point((_=y[p])[0],_[1]);else c(S.x,S.p.x,-1,f);S=S.p}y=(S=S.o).z,w=!w}while(!S.v);f.lineEnd()}}}function rejoin_link(t){if(a=t.length){for(var a,s,c=0,f=t[0];++c<a;)f.n=s=t[c],s.p=f,f=s;f.n=s=t[0],s.p=f}}function spherical(t){return[eL(t[1],t[0]),asin(t[2])]}function cartesian(t){var a=t[0],s=t[1],c=eD(s);return[c*eD(a),c*eF(a),eF(s)]}function cartesianDot(t,a){return t[0]*a[0]+t[1]*a[1]+t[2]*a[2]}function cartesianCross(t,a){return[t[1]*a[2]-t[2]*a[1],t[2]*a[0]-t[0]*a[2],t[0]*a[1]-t[1]*a[0]]}function cartesianAddInPlace(t,a){t[0]+=a[0],t[1]+=a[1],t[2]+=a[2]}function cartesianScale(t,a){return[t[0]*a,t[1]*a,t[2]*a]}function cartesianNormalizeInPlace(t){var a=eq(t[0]*t[0]+t[1]*t[1]+t[2]*t[2]);t[0]/=a,t[1]/=a,t[2]/=a}PathString.prototype={_radius:4.5,_circle:circle(4.5),pointRadius:function(t){return(t=+t)!==this._radius&&(this._radius=t,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(t,a){switch(this._point){case 0:this._string.push("M",t,",",a),this._point=1;break;case 1:this._string.push("L",t,",",a);break;default:null==this._circle&&(this._circle=circle(this._radius)),this._string.push("M",t,",",a,this._circle)}},result:function(){if(!this._string.length)return null;var t=this._string.join("");return this._string=[],t}},rotationIdentity.invert=rotationIdentity;var tD=new Adder;function longitude(t){return eN(t[0])<=eI?t[0]:ez(t[0])*((eN(t[0])+eI)%eO-eI)}function clip(t,a,s,c){return function(f){var p,g,m,v=a(f),y=buffer(),_=a(y),b=!1,S={point:point,lineStart:lineStart,lineEnd:lineEnd,polygonStart:function(){S.point=pointRing,S.lineStart=ringStart,S.lineEnd=ringEnd,g=[],p=[]},polygonEnd:function(){S.point=point,S.lineStart=lineStart,S.lineEnd=lineEnd,g=merge(g);var t=function(t,a){var s=longitude(a),c=a[1],f=eF(c),p=[eF(s),-eD(s),0],g=0,m=0;tD.reset(),1===f?c=eT+1e-6:-1===f&&(c=-eT-1e-6);for(var v=0,y=t.length;v<y;++v)if(b=(_=t[v]).length)for(var _,b,S=_[b-1],w=longitude(S),C=S[1]/2+ek,E=eF(C),x=eD(C),P=0;P<b;++P,w=T,E=O,x=R,S=I){var I=_[P],T=longitude(I),k=I[1]/2+ek,O=eF(k),R=eD(k),M=T-w,N=M>=0?1:-1,U=N*M,L=U>eI,D=E*O;if(tD.add(eL(D*N*eF(U),x*R+D*eD(U))),g+=L?M+N*eO:M,L^w>=s^T>=s){var B=cartesianCross(cartesian(S),cartesian(I));cartesianNormalizeInPlace(B);var j=cartesianCross(p,B);cartesianNormalizeInPlace(j);var q=(L^M>=0?-1:1)*asin(j[2]);(c>q||c===q&&(B[0]||B[1]))&&(m+=L^M>=0?1:-1)}}return(g<-.000001||g<1e-6&&tD<-.000001)^1&m}(p,c);g.length?(b||(f.polygonStart(),b=!0),rejoin(g,compareIntersection,t,s,f)):t&&(b||(f.polygonStart(),b=!0),f.lineStart(),s(null,null,1,f),f.lineEnd()),b&&(f.polygonEnd(),b=!1),g=p=null},sphere:function(){f.polygonStart(),f.lineStart(),s(null,null,1,f),f.lineEnd(),f.polygonEnd()}};function point(a,s){t(a,s)&&f.point(a,s)}function pointLine(t,a){v.point(t,a)}function lineStart(){S.point=pointLine,v.lineStart()}function lineEnd(){S.point=point,v.lineEnd()}function pointRing(t,a){m.push([t,a]),_.point(t,a)}function ringStart(){_.lineStart(),m=[]}function ringEnd(){pointRing(m[0][0],m[0][1]),_.lineEnd();var t,a,s,c,v=_.clean(),S=y.result(),w=S.length;if(m.pop(),p.push(m),m=null,w){if(1&v){if((a=(s=S[0]).length-1)>0){for(b||(f.polygonStart(),b=!0),f.lineStart(),t=0;t<a;++t)f.point((c=s[t])[0],c[1]);f.lineEnd()}return}w>1&&2&v&&S.push(S.pop().concat(S.shift())),g.push(S.filter(validSegment))}}return S}}function validSegment(t){return t.length>1}function compareIntersection(t,a){return((t=t.x)[0]<0?t[1]-eT-1e-6:eT-t[1])-((a=a.x)[0]<0?a[1]-eT-1e-6:eT-a[1])}var tB=clip(function(){return!0},function(t){var a,s=NaN,c=NaN,f=NaN;return{lineStart:function(){t.lineStart(),a=1},point:function(p,g){var m,v,y,_,b,S,w=p>0?eI:-eI,C=eN(p-s);1e-6>eN(C-eI)?(t.point(s,c=(c+g)/2>0?eT:-eT),t.point(f,c),t.lineEnd(),t.lineStart(),t.point(w,c),t.point(p,c),a=0):f!==w&&C>=eI&&(1e-6>eN(s-f)&&(s-=1e-6*f),1e-6>
71eN(p-w)&&(p-=1e-6*w),m=s,v=c,c=eN(S=eF(m-(y=p)))>1e-6?eU((eF(v)*(b=eD(g))*eF(y)-eF(g)*(_=eD(v))*eF(m))/(_*b*S)):(v+g)/2,t.point(f,c),t.lineEnd(),t.lineStart(),t.point(w,c),a=0),t.point(s=p,c=g),f=w},lineEnd:function(){t.lineEnd(),s=c=NaN},clean:function(){return 2-a}}},function(t,a,s,c){var f;if(null==t)f=s*eT,c.point(-eI,f),c.point(0,f),c.point(eI,f),c.point(eI,0),c.point(eI,-f),c.point(0,-f),c.point(-eI,-f),c.point(-eI,0),c.point(-eI,f);else if(eN(t[0]-a[0])>1e-6){var p=t[0]<a[0]?eI:-eI;f=s*p/2,c.point(-p,f),c.point(0,f),c.point(p,f)}else c.point(a[0],a[1])},[-eI,-eT]);function circleRadius(t,a){a=cartesian(a),a[0]-=t,cartesianNormalizeInPlace(a);var s,c=(s=-a[1])>1?0:s<-1?eI:Math.acos(s);return((0>-a[2]?-c:c)+eO-1e-6)%eO}function transform_transformer(t){return function(a){var s=new TransformStream;for(var c in t)s[c]=t[c];return s.stream=a,s}}function TransformStream(){}function fit(t,a,s){var c=t.clipExtent&&t.clipExtent();return t.scale(150).translate([0,0]),null!=c&&t.clipExtent(null),stream(s,t.stream(t_)),a(t_.result()),null!=c&&t.clipExtent(c),t}function fitExtent(t,a,s){return fit(t,function(s){var c=a[1][0]-a[0][0],f=a[1][1]-a[0][1],p=Math.min(c/(s[1][0]-s[0][0]),f/(s[1][1]-s[0][1])),g=+a[0][0]+(c-p*(s[1][0]+s[0][0]))/2,m=+a[0][1]+(f-p*(s[1][1]+s[0][1]))/2;t.scale(150*p).translate([g,m])},s)}TransformStream.prototype={constructor:TransformStream,point:function(t,a){this.stream.point(t,a)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var tj=eD(30*eM);function resample(t,a){return+a?function(t,a){function resampleLineTo(s,c,f,p,g,m,v,y,_,b,S,w,C,E){var x=v-s,P=y-c,I=x*x+P*P;if(I>4*a&&C--){var T=p+b,k=g+S,O=m+w,R=eq(T*T+k*k+O*O),M=asin(O/=R),N=1e-6>eN(eN(O)-1)||1e-6>eN(f-_)?(f+_)/2:eL(k,T),U=t(N,M),L=U[0],D=U[1],B=L-s,j=D-c,q=P*B-x*j;(q*q/I>a||eN((x*B+P*j)/I-.5)>.3||p*b+g*S+m*w<tj)&&(resampleLineTo(s,c,f,p,g,m,L,D,N,T/=R,k/=R,O,C,E),E.point(L,D),resampleLineTo(L,D,N,T,k,O,v,y,_,b,S,w,C,E))}}return function(a){var s,c,f,p,g,m,v,y,_,b,S,w,C={point:point,lineStart:lineStart,lineEnd:lineEnd,polygonStart:function(){a.polygonStart(),C.lineStart=ringStart},polygonEnd:function(){a.polygonEnd(),C.lineStart=lineStart}};function point(s,c){s=t(s,c),a.point(s[0],s[1])}function lineStart(){y=NaN,C.point=linePoint,a.lineStart()}function linePoint(s,c){var f=cartesian([s,c]),p=t(s,c);resampleLineTo(y,_,v,b,S,w,y=p[0],_=p[1],v=s,b=f[0],S=f[1],w=f[2],16,a),a.point(y,_)}function lineEnd(){C.point=point,a.lineEnd()}function ringStart(){lineStart(),C.point=ringPoint,C.lineEnd=ringEnd}function ringPoint(t,a){linePoint(s=t,a),c=y,f=_,p=b,g=S,m=w,C.point=linePoint}function ringEnd(){resampleLineTo(y,_,v,b,S,w,c,f,s,p,g,m,16,a),C.lineEnd=lineEnd,lineEnd()}return C}}(t,a):transform_transformer({point:function(a,s){a=t(a,s),this.stream.point(a[0],a[1])}})}var tF=transform_transformer({point:function(t,a){this.stream.point(t*eM,a*eM)}});function scaleTranslateRotate(t,a,s,c,f,p){var g=eD(p),m=eF(p),v=g*t,y=m*t,_=g/t,b=m/t,S=(m*s-g*a)/t,w=(m*a+g*s)/t;function transform(t,p){return[v*(t*=c)-y*(p*=f)+a,s-y*t-v*p]}return transform.invert=function(t,a){return[c*(_*t-b*a+S),f*(w-b*t-_*a)]},transform}function mercatorRaw(t,a){return[t,ej(eV((eT+a)/2))]}function mercator(){return(function(t){var a,s,c,f=(function(t){var a,s,c,f,p,g,m,v,y,_,b=150,S=480,w=250,C=0,E=0,x=0,P=0,I=0,T=0,k=1,O=1,R=null,M=tB,N=null,U=d3_geo_src_identity,L=.5;function projection(t){return v(t[0]*eM,t[1]*eM)}function invert(t){return(t=v.invert(t[0],t[1]))&&[t[0]*eR,t[1]*eR]}function recenter(){var t=scaleTranslateRotate(b,0,0,k,O,T).apply(null,a(C,E)),c=(T?scaleTranslateRotate:function(t,a,s,c,f){function transform(p,g){return[a+t*(p*=c),s-t*(g*=f)]}return transform.invert=function(p,g){return[(p-a)/t*c,(s-g)/t*f]},transform})(b,S-t[0],w-t[1],k,O,T);return s=rotation_rotateRadians(x,P,I),m=compose(a,c),v=compose(s,m),g=resample(m,L),reset()}function reset(){return y=_=null,projection}return projection.stream=function(t){var a;return y&&_===t?y:y=tF((a=s,transform_transformer({point:function(t,s){var c=a(t,s);return this.stream.point(c[0],c[1])}}))(M(g(U(_=t)))))},projection.preclip=function(t){return arguments.length?(M=t,R=void 0,reset()):M},projection.postclip=function(t){return arguments.length?(U=t,N=c=f=p=null,reset()):U},projection.clipAngle=function(t){return arguments.length?(M=+t?function(t){var a=eD(t),s=6*eM,c=a>0,f=eN(a)>1e-6;function visible(t,s){return eD(t)*eD(s)>a}function intersect(t,s,c){var f=cartesian(t),p=cartesian(s),g=[1,0,0],m=cartesianCross(f,p),v=cartesianDot(m,m),y=m[0],_=v-y*y;if(!_)return!c&&t;var b=a*v/_,S=-a*y/_,w=cartesianCross(g,m),C=cartesianScale(g,b);cartesianAddInPlace(C,cartesianScale(m,S));var E=cartesianDot(C,w),x=cartesianDot(w,w),P=E*E-x*(cartesianDot(C,C)-1);if(!(P<0)){var I=eq(P),T=cartesianScale(w,(-E-I)/x);if(cartesianAddInPlace(T,C),T=spherical(T),!c)return T;var k,O=t[0],R=s[0],M=t[1],N=s[1];R<O&&(k=O,O=R,R=k);var U=R-O,L=1e-6>eN(U-eI),D=L||U<1e-6;if(!L&&N<M&&(k=M,M=N,N=k),D?L?M+N>
710^T[1]<(1e-6>eN(T[0]-O)?M:N):M<=T[1]&&T[1]<=N:U>eI^(O<=T[0]&&T[0]<=R)){var B=cartesianScale(w,(-E+I)/x);return cartesianAddInPlace(B,C),[T,spherical(B)]}}}function code(a,s){var f=c?t:eI-t,p=0;return a<-f?p|=1:a>f&&(p|=2),s<-f?p|=4:s>f&&(p|=8),p}return clip(visible,function(t){var a,s,p,g,m;return{lineStart:function(){g=p=!1,m=1},point:function(v,y){var _,b,S=[v,y],w=visible(v,y),C=c?w?0:code(v,y):w?code(v+(v<0?eI:-eI),y):0;!a&&(g=p=w)&&t.lineStart(),w!==p&&(!(b=intersect(a,S))||pointEqual(a,b)||pointEqual(S,b))&&(S[2]=1),w!==p?(m=0,w?(t.lineStart(),b=intersect(S,a),t.point(b[0],b[1])):(b=intersect(a,S),t.point(b[0],b[1],2),t.lineEnd()),a=b):f&&a&&c^w&&!(C&s)&&(_=intersect(S,a,!0))&&(m=0,c?(t.lineStart(),t.point(_[0][0],_[0][1]),t.point(_[1][0],_[1][1]),t.lineEnd()):(t.point(_[1][0],_[1][1]),t.lineEnd(),t.lineStart(),t.point(_[0][0],_[0][1],3))),!w||a&&pointEqual(a,S)||t.point(S[0],S[1]),a=S,p=w,s=C},lineEnd:function(){p&&t.lineEnd(),a=null},clean:function(){return m|(g&&p)<<1}}},function(a,c,f,p){!function(t,a,s,c,f,p){if(s){var g=eD(a),m=eF(a),v=c*s;null==f?(f=a+c*eO,p=a-v/2):(f=circleRadius(g,f),p=circleRadius(g,p),(c>0?f<p:f>p)&&(f+=c*eO));for(var y,_=f;c>0?_>p:_<p;_-=v)y=spherical([g,-m*eD(_),-m*eF(_)]),t.point(y[0],y[1])}}(p,t,s,f,a,c)},c?[0,-t]:[-eI,t-eI])}(R=t*eM):(R=null,tB),reset()):R*eR},projection.clipExtent=function(t){return arguments.length?(U=null==t?(N=c=f=p=null,d3_geo_src_identity):function(t,a,s,c){function visible(f,p){return t<=f&&f<=s&&a<=p&&p<=c}function interpolate(f,p,g,m){var v=0,y=0;if(null==f||(v=corner(f,g))!==(y=corner(p,g))||0>comparePoint(f,p)^g>0)do m.point(0===v||3===v?t:s,v>1?c:a);while((v=(v+g+4)%4)!==y);else m.point(p[0],p[1])}function corner(c,f){return 1e-6>eN(c[0]-t)?f>0?0:3:1e-6>eN(c[0]-s)?f>0?2:1:1e-6>eN(c[1]-a)?f>0?1:0:f>0?3:2}function compareIntersection(t,a){return comparePoint(t.x,a.x)}function comparePoint(t,a){var s=corner(t,1),c=corner(a,1);return s!==c?s-c:0===s?a[1]-t[1]:1===s?t[0]-a[0]:2===s?t[1]-a[1]:a[0]-t[0]}return function(f){var p,g,m,v,y,_,b,S,w,C,E,x=f,P=buffer(),I={point:point,lineStart:function(){I.point=linePoint,g&&g.push(m=[]),C=!0,w=!1,b=S=NaN},lineEnd:function(){p&&(linePoint(v,y),_&&w&&P.rejoin(),p.push(P.result())),I.point=point,w&&x.lineEnd()},polygonStart:function(){x=P,p=[],g=[],E=!0},polygonEnd:function(){var a=function(){for(var a=0,s=0,f=g.length;s<f;++s)for(var p,m,v=g[s],y=1,_=v.length,b=v[0],S=b[0],w=b[1];y<_;++y)p=S,m=w,S=(b=v[y])[0],w=b[1],m<=c?w>c&&(S-p)*(c-m)>(w-m)*(t-p)&&++a:w<=c&&(S-p)*(c-m)<(w-m)*(t-p)&&--a;return a}(),s=E&&a,v=(p=merge(p)).length;(s||v)&&(f.polygonStart(),s&&(f.lineStart(),interpolate(null,null,1,f),f.lineEnd()),v&&rejoin(p,compareIntersection,a,interpolate,f),f.polygonEnd()),x=f,p=g=m=null}};function point(t,a){visible(t,a)&&x.point(t,a)}function linePoint(f,p){var P=visible(f,p);if(g&&m.push([f,p]),C)v=f,y=p,_=P,C=!1,P&&(x.lineStart(),x.point(f,p));else if(P&&w)x.point(f,p);else{var I=[b=Math.max(-1e9,Math.min(1e9,b)),S=Math.max(-1e9,Math.min(1e9,S))],T=[f=Math.max(-1e9,Math.min(1e9,f)),p=Math.max(-1e9,Math.min(1e9,p))];(function(t,a,s,c,f,p){var g,m=t[0],v=t[1],y=a[0],_=a[1],b=0,S=1,w=y-m,C=_-v;if(g=s-m,w||!(g>0)){if(g/=w,w<0){if(g<b)return;g<S&&(S=g)}else if(w>0){if(g>S)return;g>b&&(b=g)}if(g=f-m,w||!(g<0)){if(g/=w,w<0){if(g>S)return;g>b&&(b=g)}else if(w>0){if(g<b)return;g<S&&(S=g)}if(g=c-v,C||!(g>0)){if(g/=C,C<0){if(g<b)return;g<S&&(S=g)}else if(C>0){if(g>S)return;g>b&&(b=g)}if(g=p-v,C||!(g<0)){if(g/=C,C<0){if(g>S)return;g>b&&(b=g)}else if(C>0){if(g<b)return;g<S&&(S=g)}return b>0&&(t[0]=m+b*w,t[1]=v+b*C),S<1&&(a[0]=m+S*w,a[1]=v+S*C),!0}}}}})(I,T,t,a,s,c)?(w||(x.lineStart(),x.point(I[0],I[1])),x.point(T[0],T[1]),P||x.lineEnd(),E=!1):P&&(x.lineStart(),x.point(f,p),E=!1)}b=f,S=p,w=P}return I}}(N=+t[0][0],c=+t[0][1],f=+t[1][0],p=+t[1][1]),reset()):null==N?null:[[N,c],[f,p]]},projection.scale=function(t){return arguments.length?(b=+t,recenter()):b},projection.translate=function(t){return arguments.length?(S=+t[0],w=+t[1],recenter()):[S,w]},projection.center=function(t){return arguments.length?(C=t[0]%360*eM,E=t[1]%360*eM,recenter()):[C*eR,E
71*eR]},projection.rotate=function(t){return arguments.length?(x=t[0]%360*eM,P=t[1]%360*eM,I=t.length>2?t[2]%360*eM:0,recenter()):[x*eR,P*eR,I*eR]},projection.angle=function(t){return arguments.length?(T=t%360*eM,recenter()):T*eR},projection.reflectX=function(t){return arguments.length?(k=t?-1:1,recenter()):k<0},projection.reflectY=function(t){return arguments.length?(O=t?-1:1,recenter()):O<0},projection.precision=function(t){return arguments.length?(g=resample(m,L=t*t),reset()):eq(L)},projection.fitExtent=function(t,a){return fitExtent(projection,t,a)},projection.fitSize=function(t,a){return fitExtent(projection,[[0,0],t],a)},projection.fitWidth=function(t,a){return fit(projection,function(a){var s=+t,c=s/(a[1][0]-a[0][0]),f=(s-c*(a[1][0]+a[0][0]))/2,p=-c*a[0][1];projection.scale(150*c).translate([f,p])},a)},projection.fitHeight=function(t,a){return fit(projection,function(a){var s=+t,c=s/(a[1][1]-a[0][1]),f=-c*a[0][0],p=(s-c*(a[1][1]+a[0][1]))/2;projection.scale(150*c).translate([f,p])},a)},function(){return a=t.apply(this,arguments),projection.invert=a.invert&&invert,recenter()}})(function(){return t})(),p=f.center,g=f.scale,m=f.translate,v=f.clipExtent,y=null;function reclip(){var p=eI*g(),m=f((function(t){function forward(a){return a=t(a[0]*eM,a[1]*eM),a[0]*=eR,a[1]*=eR,a}return t=rotation_rotateRadians(t[0]*eM,t[1]*eM,t.length>2?t[2]*eM:0),forward.invert=function(a){return a=t.invert(a[0]*eM,a[1]*eM),a[0]*=eR,a[1]*=eR,a},forward})(f.rotate()).invert([0,0]));return v(null==y?[[m[0]-p,m[1]-p],[m[0]+p,m[1]+p]]:t===mercatorRaw?[[Math.max(m[0]-p,y),a],[Math.min(m[0]+p,s),c]]:[[y,Math.max(m[1]-p,a)],[s,Math.min(m[1]+p,c)]])}return f.scale=function(t){return arguments.length?(g(t),reclip()):g()},f.translate=function(t){return arguments.length?(m(t),reclip()):m()},f.center=function(t){return arguments.length?(p(t),reclip()):p()},f.clipExtent=function(t){return arguments.length?(null==t?y=a=s=c=null:(y=+t[0][0],a=+t[0][1],s=+t[1][0],c=+t[1][1]),reclip()):null==y?null:[[y,a],[s,c]]},reclip()})(mercatorRaw).scale(961/eO)}function src_defaultSource(){return Math.random()}mercatorRaw.invert=function(t,a){return[t,2*eU(eB(a))-eT]},function sourceRandomUniform(t){function randomUniform(a,s){return a=null==a?0:+a,s=null==s?1:+s,1==arguments.length?(s=a,a=0):s-=a,function(){return t()*s+a}}return randomUniform.source=sourceRandomUniform,randomUniform}(src_defaultSource);var tz=function sourceRandomNormal(t){function randomNormal(a,s){var c,f;return a=null==a?0:+a,s=null==s?1:+s,function(){var p;if(null!=c)p=c,c=null;else do c=2*t()-1,p=2*t()-1,f=c*c+p*p;while(!f||f>1);return a+s*p*Math.sqrt(-2*Math.log(f)/f)}}return randomNormal.source=sourceRandomNormal,randomNormal}(src_defaultSource);!function sourceRandomLogNormal(t){function randomLogNormal(){var a=tz.source(t).apply(this,arguments);return function(){return Math.exp(a())}}return randomLogNormal.source=sourceRandomLogNormal,randomLogNormal}(src_defaultSource);var tq=function sourceRandomIrwinHall(t){function randomIrwinHall(a){return function(){for(var s=0,c=0;c<a;++c)s+=t();return s}}return randomIrwinHall.source=sourceRandomIrwinHall,randomIrwinHall}(src_defaultSource);function init_initRange(t,a){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(a).domain(t)}return this}!function sourceRandomBates(t){function randomBates(a){var s=tq.source(t)(a);return function(){return s()/a}}return randomBates.source=sourceRandomBates,randomBates}(src_defaultSource),function sourceRandomExponential(t){function randomExponential(a){return function(){return-Math.log(1-t())/a}}return randomExponential.source=sourceRandomExponential,randomExponential}(src_defaultSource);var tV=Array.prototype,tK=tV.map,tH=tV.slice,tW={name:"implicit"};function round(t,a){return t=+t,a=+a,function(s){return Math.round(t*(1-s)+a*s)}}function d3_scale_src_number(t){return+t}var tG=[0,1];function continuous_identity(t){return t}function normalize(t,a){var s;return(a-=t=+t)?function(s){return(s-t)/a}:(s=isNaN(a)?NaN:.5,function(){return s})}function clamper(t){var a,s=t[0],c=t[t.length-1];return s>c&&(a=s,s=c,c=a),function(t){return Math.max(s,Math.min(c,t))}}function bimap(t,a,s){var c=t[0],f=t[1],p=a[0],g=a[1];return f<c?(c=normalize(f,c),p=s(g,p)):(c=normalize(c,f),p=s(p,g)),function(t){return p(c(t))}}function polymap(t,a,s){var c=Math.min(t.length,a.length)-1,f=Array(c),p=Array(c),g=-1;for(t[c]<t[0]&&(t=t.slice().reverse(),a=a.slice().reverse());++g<c;)f[g]=normalize(t[g],t[g+1]),p[g]=s(a[g],a[g+1]);return function(a){var s=E(t,a,1,c)-1;return p[s](f[s](a))}}var t$=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(t){var a;if(!(a=t$.exec(t)))throw Error("invalid format: "+t);return new FormatSpecifier({fill:a[1],align:a[2],sign:a[3],symbol:a[4],zero:a[5],width:a[6],comma:a[7],precision:a[8]&&a[8].slice(1),trim:a[9],type:a[10]})}function FormatSpecifier(t){this.fill=void 0===t.fill?" ":t.fill+"",this.align=void 0===t.align?">":t.align+"",this.sign=void 0===t.sign?"-":t.sign+"",this.symbol=void 0===t.symbol?"":t.symbol+"",this.zero=!!t.zero,this.width=void 0===t.width?void 0:+t.
71width,this.comma=!!t.comma,this.precision=void 0===t.precision?void 0:+t.precision,this.trim=!!t.trim,this.type=void 0===t.type?"":t.type+""}function formatDecimalParts(t,a){if((s=(t=a?t.toExponential(a-1):t.toExponential()).indexOf("e"))<0)return null;var s,c=t.slice(0,s);return[c.length>1?c[0]+c.slice(2):c,+t.slice(s+1)]}function exponent(t){return(t=formatDecimalParts(Math.abs(t)))?t[1]:NaN}function formatRounded(t,a){var s=formatDecimalParts(t,a);if(!s)return t+"";var c=s[0],f=s[1];return f<0?"0."+Array(-f).join("0")+c:c.length>f+1?c.slice(0,f+1)+"."+c.slice(f+1):c+Array(f-c.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var tY={"%":function(t,a){return(100*t).toFixed(a)},b:function(t){return Math.round(t).toString(2)},c:function(t){return t+""},d:function(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)},e:function(t,a){return t.toExponential(a)},f:function(t,a){return t.toFixed(a)},g:function(t,a){return t.toPrecision(a)},o:function(t){return Math.round(t).toString(8)},p:function(t,a){return formatRounded(100*t,a)},r:formatRounded,s:function(t,a){var s=formatDecimalParts(t,a);if(!s)return t+"";var c=s[0],f=s[1],g=f-(p=3*Math.max(-8,Math.min(8,Math.floor(f/3))))+1,m=c.length;return g===m?c:g>m?c+Array(g-m+1).join("0"):g>0?c.slice(0,g)+"."+c.slice(g):"0."+Array(1-g).join("0")+formatDecimalParts(t,Math.max(0,a+g-1))[0]},X:function(t){return Math.round(t).toString(16).toUpperCase()},x:function(t){return Math.round(t).toString(16)}};function d3_format_src_identity(t){return t}var tJ=Array.prototype.map,tZ=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function src_select(t){return"string"==typeof t?new Selection([[document.querySelector(t)]],[document.documentElement]):new Selection([[t]],U)}function RedBlackTree(){this._=null}function RedBlackNode(t){t.U=t.C=t.L=t.R=t.P=t.N=null}function RedBlackRotateLeft(t,a){var s=a.R,c=a.U;c?c.L===a?c.L=s:c.R=s:t._=s,s.U=c,a.U=s,a.R=s.L,a.R&&(a.R.U=a),s.L=a}function RedBlackRotateRight(t,a){var s=a.L,c=a.U;c?c.L===a?c.L=s:c.R=s:t._=s,s.U=c,a.U=s,a.L=s.R,a.L&&(a.L.U=a),s.R=a}function RedBlackFirst(t){for(;t.L;)t=t.L;return t}function createEdge(t,a,s,c){var f=[null,null],p=w.push(f)-1;return f.left=t,f.right=a,s&&setEdgeEnd(f,t,a,s),c&&setEdgeEnd(f,a,t,c),b[t.index].halfedges.push(p),b[a.index].halfedges.push(p),f}function createBorderEdge(t,a,s){var c=[a,s];return c.left=t,c}function setEdgeEnd(t,a,s,c){t[0]||t[1]?t.left===s?t[1]=c:t[0]=c:(t[0]=c,t.left=a,t.right=s)}function cellHalfedgeStart(t,a){return a[+(a.left!==t.site)]}m=(g=function(t){var a,s,c,f=void 0===t.grouping||void 0===t.thousands?d3_format_src_identity:(a=tJ.call(t.grouping,Number),s=t.thousands+"",function(t,c){for(var f=t.length,p=[],g=0,m=a[0],v=0;f>0&&m>0&&(v+m+1>c&&(m=Math.max(1,c-v)),p.push(t.substring(f-=m,f+m)),!((v+=m+1)>c));)m=a[g=(g+1)%a.length];return p.reverse().join(s)}),g=void 0===t.currency?"":t.currency[0]+"",m=void 0===t.currency?"":t.currency[1]+"",v=void 0===t.decimal?".":t.decimal+"",y=void 0===t.numerals?d3_format_src_identity:(c=tJ.call(t.numerals,String),function(t){return t.replace(/[0-9]/g,function(t){return c[+t]})}),_=void 0===t.percent?"%":t.percent+"",b=void 0===t.minus?"-":t.minus+"",S=void 0===t.nan?"NaN":t.nan+"";function newFormat(t){var a=(t=formatSpecifier(t)).fill,s=t.align,c=t.sign,w=t.symbol,C=t.zero,E=t.width,x=t.comma,P=t.precision,I=t.trim,T=t.type;"n"===T?(x=!0,T="g"):tY[T]||(void 0===P&&(P=12),I=!0,T="g"),(C||"0"===a&&"="===s)&&(C=!0,a="0",s="=");var k="$"===w?g:"#"===w&&/[boxX]/.test(T)?"0"+T.toLowerCase():"",O="$"===w?m:/[%p]/.test(T)?_:"",R=tY[T],M=/[defgprs%]/.test(T);function format(t){var g,m,_,w=k,N=O;if("c"===T)N=R(t)+N,t="";else{var U=(t=+t)<0||1/t<0;if(t=isNaN(t)?S:R(Math.abs(t),P),I&&(t=function(t){e:for(var a,s=t.length,c=1,f=-1;c<s;++c)switch(t[c]){case".":f=a=c;break;case"0":0===f&&(f=c),a=c;break;default:if(!+t[c])break e;f>0&&(f=0)}return f>0?t.slice(0,f)+t.slice(a+1):t}(t)),U&&0==+t&&"+"!==c&&(U=!1),w=(U?"("===c?c:b:"-"===c||"("===c?"":c)+w,N=("s"===T?tZ[8+p/3]:"")+N+(U&&"("===c?")":""),M){for(g=-1,m=t.length;++g<m;)if(48>(_=t.charCodeAt(g))||_>57){N=(46===_?v+t.slice(g+1):t.slice(g))+N,t=t.slice(0,g);break}}}x&&!C&&(t=f(t,1/0));var L=w.length+t.length+N.length,D=L<E?Array(E-L+1).join(a):"";switch(x&&C&&(t=f(D+t,D.length?E-N.length:1/0),D=""),s){case"<":t=w+t+N+D;break;case"=":t=w+D+t+N;break;case"^":t=D.slice(0,L=D.length>>1)+w+t+N+D.slice(L);break;default:t=D+w+t+N}return y(t)}return P=void 0===P?6:/[gprs]/.test(T)?Math.max(1,Math.min(21,P)):Math.max(0,Math.min(20,P)),format.toString=function(){return t+""},format}return{format:newFormat,formatPrefix:function(t,a){var s=newFormat(((t=formatSpecifier(t)).type="f",t)),c=3*Math.max(-8,Math.min(8,Math.floor(exponent(a)/3))),f=Math.pow(10,-c),p=tZ[8+c/3];return function(t){return s(f*t)+p}}}}({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"})).format,v=g.formatPrefix,RedBlackTree.prototype={constructor:RedBlackTree,insert:function(t,a){var s,c,f;if(t){if(a.P=t,a.N=t.N,t.N&&(t.N.P=a),t.N=a,t.R){for(t=t.R;t.L;)t=t.L;t.L=a}else t.R=a;s=t}else this._?(t=RedBlackFirst(this._),a.P=null,a.N=t,t.P=t.L=a,s=t):(a.P=a.N=null,this._=a,s=null);for(a.L=a.R=null,a.U=s,a.C=!0,t=a;s&&s.C;
71)c=s.U,s===c.L?(f=c.R)&&f.C?(s.C=f.C=!1,c.C=!0,t=c):(t===s.R&&(RedBlackRotateLeft(this,s),s=(t=s).U),s.C=!1,c.C=!0,RedBlackRotateRight(this,c)):(f=c.L)&&f.C?(s.C=f.C=!1,c.C=!0,t=c):(t===s.L&&(RedBlackRotateRight(this,s),s=(t=s).U),s.C=!1,c.C=!0,RedBlackRotateLeft(this,c)),s=t.U;this._.C=!1},remove:function(t){t.N&&(t.N.P=t.P),t.P&&(t.P.N=t.N),t.N=t.P=null;var a,s,c,f=t.U,p=t.L,g=t.R;if(s=p?g?RedBlackFirst(g):p:g,f?f.L===t?f.L=s:f.R=s:this._=s,p&&g?(c=s.C,s.C=t.C,s.L=p,p.U=s,s!==g?(f=s.U,s.U=t.U,t=s.R,f.L=t,s.R=g,g.U=s):(s.U=f,f=s,t=s.R)):(c=t.C,t=s),t&&(t.U=f),!c){if(t&&t.C){t.C=!1;return}do{if(t===this._)break;if(t===f.L){if((a=f.R).C&&(a.C=!1,f.C=!0,RedBlackRotateLeft(this,f),a=f.R),a.L&&a.L.C||a.R&&a.R.C){a.R&&a.R.C||(a.L.C=!1,a.C=!0,RedBlackRotateRight(this,a),a=f.R),a.C=f.C,f.C=a.R.C=!1,RedBlackRotateLeft(this,f),t=this._;break}}else if((a=f.L).C&&(a.C=!1,f.C=!0,RedBlackRotateRight(this,f),a=f.L),a.L&&a.L.C||a.R&&a.R.C){a.L&&a.L.C||(a.R.C=!1,a.C=!0,RedBlackRotateLeft(this,a),a=f.L),a.C=f.C,f.C=a.L.C=!1,RedBlackRotateRight(this,f),t=this._;break}a.C=!0,t=f,f=f.U}while(!t.C);t&&(t.C=!1)}}};var tQ=[];function Circle(){RedBlackNode(this),this.x=this.y=this.arc=this.site=this.cy=null}function attachCircle(t){var a=t.P,s=t.N;if(a&&s){var c=a.site,f=t.site,p=s.site;if(c!==p){var g=f[0],m=f[1],v=c[0]-g,_=c[1]-m,b=p[0]-g,w=p[1]-m,C=2*(v*w-_*b);if(!(C>=-t0)){var E=v*v+_*_,x=b*b+w*w,P=(w*E-_*x)/C,I=(v*x-b*E)/C,T=tQ.pop()||new Circle;T.arc=t,T.site=f,T.x=P+g,T.y=(T.cy=I+m)+Math.sqrt(P*P+I*I),t.circle=T;for(var k=null,O=S._;O;)if(T.y<O.y||T.y===O.y&&T.x<=O.x){if(O.L)O=O.L;else{k=O.P;break}}else if(O.R)O=O.R;else{k=O;break}S.insert(k,T),k||(y=T)}}}}function detachCircle(t){var a=t.circle;a&&(a.P||(y=a.N),S.remove(a),tQ.push(a),RedBlackNode(a),t.circle=null)}var tX=[];function Beach(){RedBlackNode(this),this.edge=this.site=this.circle=null}function createBeach(t){var a=tX.pop()||new Beach;return a.site=t,a}function detachBeach(t){detachCircle(t),_.remove(t),tX.push(t),RedBlackNode(t)}function leftBreakPoint(t,a){var s=t.site,c=s[0],f=s[1],p=f-a;if(!p)return c;var g=t.P;if(!g)return-1/0;var m=(s=g.site)[0],v=s[1],y=v-a;if(!y)return m;var _=m-c,b=1/p-1/y,S=_/y;return b?(-S+Math.sqrt(S*S-2*b*(_*_/(-2*y)-v+y/2+f-p/2)))/b+c:(c+m)/2}var t0=1e-12;function lexicographic(t,a){return a[1]-t[1]||a[0]-t[0]}function Diagram_Diagram(t,a){var s,c,f,p=t.sort(lexicographic).pop();for(w=[],b=Array(t.length),_=new RedBlackTree,S=new RedBlackTree;;)if(f=y,p&&(!f||p[1]<f.y||p[1]===f.y&&p[0]<f.x))(p[0]!==s||p[1]!==c)&&(function(t){for(var a,s,c,f,p=t[0],g=t[1],m=_._;m;)if((c=leftBreakPoint(m,g)-p)>1e-6)m=m.L;else if((f=p-function(t,a){var s=t.N;if(s)return leftBreakPoint(s,a);var c=t.site;return c[1]===a?c[0]:1/0}(m,g))>1e-6){if(!m.R){a=m;break}m=m.R}else{c>-.000001?(a=m.P,s=m):f>-.000001?(a=m,s=m.N):a=s=m;break}b[t.index]={site:t,halfedges:[]};var v=createBeach(t);if(_.insert(a,v),a||s){if(a===s){detachCircle(a),s=createBeach(a.site),_.insert(v,s),v.edge=s.edge=createEdge(a.site,v.site),attachCircle(a),attachCircle(s);return}if(!s){v.edge=createEdge(a.site,v.site);return}detachCircle(a),detachCircle(s);var y=a.site,S=y[0],w=y[1],C=t[0]-S,E=t[1]-w,x=s.site,P=x[0]-S,I=x[1]-w,T=2*(C*I-E*P),k=C*C+E*E,O=P*P+I*I,R=[(I*k-E*O)/T+S,(C*O-P*k)/T+w];setEdgeEnd(s.edge,y,x,R),v.edge=createEdge(y,t,null,R),s.edge=createEdge(t,x,null,R),attachCircle(a),attachCircle(s)}}(p),s=p[0],c=p[1]),p=t.pop();else if(f)!function(t){var a=t.circle,s=a.x,c=a.cy,f=[s,c],p=t.P,g=t.N,m=[t];detachBeach(t);for(var v=p;v.circle&&1e-6>Math.abs(s-v.circle.x)&&1e-6>Math.abs(c-v.circle.cy);)p=v.P,m.unshift(v),detachBeach(v),v=p;m.unshift(v),detachCircle(v);for(var y=g;y.circle&&1e-6>Math.abs(s-y.circle.x)&&1e-6>Math.abs(c-y.circle.cy);)g=y.N,m.push(y),detachBeach(y),y=g;m.push(y),detachCircle(y);var _,b=m.length;for(_=1;_<b;++_)y=m[_],v=m[_-1],setEdgeEnd(y.edge,v.site,y.site,f);v=m[0],(y=m[b-1]).edge=createEdge(v.site,y.site,null,f),attachCircle(v),attachCircle(y)}(f.arc);else break;if(!function(){for(var t,a,s,c,f=0,p=b.length;f<p;++f)if((t=b[f])&&(c=(a=t.halfedges).length)){var g=Array(c),m=Array(c);for(s=0;s<c;++s)g[s]=s,m[s]=function(t,a){var s=t.site,c=a.left,f=a.right;return(s===f&&(f=c,c=s),f)?Math.atan2(f[1]-c[1],f[0]-c[0]):(s===c?(c=a[1],f=a[0]):(c=a[0],f=a[1]),Math.atan2(c[0]-f[0],f[1]-c[1]))}(t,w[a[s]]);for(g.sort(function(t,a){return m[a]-m[t]}),s=0;s<c;++s)m[s]=a[g[s]];for(s=0;s<c;++s)a[s]=m[s]}}(),a){var g=+a[0][0],m=+a[0][1],v=+a[1][0],C=+a[1][1];!function(t,a,s,c){for(var f,p=w.length;p--;)(function(t,a,s,c,f){var p=t[1];if(p)return!0;var g,m,v=t[0],y=t.left,_=t.right,b=y[0],S=y[1],w=_[0],C=_[1],E=(b+w)/2;if(C===S){if(E<a||E>=c)return;if(b>w){if(v){if(v[1]>=f)return}else v=[E,s];p=[E,f]}else{if(v){if(v[1]<s)return}else v=[E,f];p=[E,s]}}else if(g=(b-w)/(C-S),m=(S+C)/2-g*E,g<-1||g>1){if(b>w){if(v){if(v[1]>=f)return}else v=[(s-m)/g,s];p=[(f-m)/g,f]}else{if(v){if(v[1]<s)return}else v=[(f-m)/g,f];p=[(s-m)/g,s]}}else if(S<C){if(v){if(v[0]>=c)return}else v=[a,g*a+m];p=[c,g*c+m]}else{if(v){if(v[0]<a)return}else v=[c,g*c+m];p=[a,g*a+m]}return t[0]=v,t[1]=p,!0})(f=w[p],t,a,s,c)&&function(t,a,s,c,f){var p,g=t[0],m=t[1],v=g[0],y=g[1],_=m[0],b=m[1],S=0,w=1,C=_-v,E=b-y;
71if(p=a-v,C||!(p>0)){if(p/=C,C<0){if(p<S)return;p<w&&(w=p)}else if(C>0){if(p>w)return;p>S&&(S=p)}if(p=c-v,C||!(p<0)){if(p/=C,C<0){if(p>w)return;p>S&&(S=p)}else if(C>0){if(p<S)return;p<w&&(w=p)}if(p=s-y,E||!(p>0)){if(p/=E,E<0){if(p<S)return;p<w&&(w=p)}else if(E>0){if(p>w)return;p>S&&(S=p)}if(p=f-y,E||!(p<0)){if(p/=E,E<0){if(p>w)return;p>S&&(S=p)}else if(E>0){if(p<S)return;p<w&&(w=p)}return!(S>0)&&!(w<1)||(S>0&&(t[0]=[v+S*C,y+S*E]),w<1&&(t[1]=[v+w*C,y+w*E]),!0)}}}}}(f,t,a,s,c)&&(Math.abs(f[0][0]-f[1][0])>1e-6||Math.abs(f[0][1]-f[1][1])>1e-6)||delete w[p]}(g,m,v,C),function(t,a,s,c){var f,p,g,m,v,y,_,S,C,E,x,P,I=b.length,T=!0;for(f=0;f<I;++f)if(p=b[f]){for(g=p.site,m=(v=p.halfedges).length;m--;)w[v[m]]||v.splice(m,1);for(m=0,y=v.length;m<y;)k=p,x=(E=(O=w[v[m]])[+(O.left===k.site)])[0],P=E[1],S=(_=cellHalfedgeStart(p,w[v[++m%y]]))[0],C=_[1],(Math.abs(x-S)>1e-6||Math.abs(P-C)>1e-6)&&(v.splice(m,0,w.push(createBorderEdge(g,E,1e-6>Math.abs(x-t)&&c-P>1e-6?[t,1e-6>Math.abs(S-t)?C:c]:1e-6>Math.abs(P-c)&&s-x>1e-6?[1e-6>Math.abs(C-c)?S:s,c]:1e-6>Math.abs(x-s)&&P-a>1e-6?[s,1e-6>Math.abs(S-s)?C:a]:1e-6>Math.abs(P-a)&&x-t>1e-6?[1e-6>Math.abs(C-a)?S:t,a]:null))-1),++y);y&&(T=!1)}if(T){var k,O,R,M,N,U=1/0;for(f=0,T=null;f<I;++f)(p=b[f])&&(N=(R=(g=p.site)[0]-t)*R+(M=g[1]-a)*M)<U&&(U=N,T=p);if(T){var L=[t,a],D=[t,c],B=[s,c],j=[s,a];T.halfedges.push(w.push(createBorderEdge(g=T.site,L,D))-1,w.push(createBorderEdge(g,D,B))-1,w.push(createBorderEdge(g,B,j))-1,w.push(createBorderEdge(g,j,L))-1)}}for(f=0;f<I;++f)(p=b[f])&&!p.halfedges.length&&delete b[f]}(g,m,v,C)}this.edges=w,this.cells=b,_=S=w=b=null}function transform_Transform(t,a,s){this.k=t,this.x=a,this.y=s}Diagram_Diagram.prototype={constructor:Diagram_Diagram,polygons:function(){var t=this.edges;return this.cells.map(function(a){var s=a.halfedges.map(function(s){return cellHalfedgeStart(a,t[s])});return s.data=a.site.data,s})},triangles:function(){var t=[],a=this.edges;return this.cells.forEach(function(s,c){if(g=(p=s.halfedges).length)for(var f,p,g,m,v=s.site,y=-1,_=a[p[g-1]],b=_.left===v?_.right:_.left;++y<g;)m=b,b=(_=a[p[y]]).left===v?_.right:_.left,m&&b&&c<m.index&&c<b.index&&0>(f=b,(v[0]-f[0])*(m[1]-v[1])-(v[0]-m[0])*(f[1]-v[1]))&&t.push([v.data,m.data,b.data])}),t},links:function(){return this.edges.filter(function(t){return t.right}).map(function(t){return{source:t.left.data,target:t.right.data}})},find:function(t,a,s){for(var c,f,p=this,g=p._found||0,m=p.cells.length;!(f=p.cells[g]);)if(++g>=m)return null;var v=t-f.site[0],y=a-f.site[1],_=v*v+y*y;
71do f=p.cells[c=g],g=null,f.halfedges.forEach(function(s){var c=p.edges[s],m=c.left;if(m!==f.site&&m||(m=c.right)){var v=t-m[0],y=a-m[1],b=v*v+y*y;b<_&&(_=b,g=m.index)}});while(null!==g);return p._found=c,null==s||_<=s*s?f.site:null}},transform_Transform.prototype={constructor:transform_Transform,scale:function(t){return 1===t?this:new transform_Transform(this.k*t,this.x,this.y)},translate:function(t,a){return 0===t&0===a?this:new transform_Transform(this.k,this.x+this.k*t,this.y+this.k*a)},apply:function(t){return[t[0]*this.k+this.x,t[1]*this.k+this.y]},applyX:function(t){return t*this.k+this.x},applyY:function(t){return t*this.k+this.y},invert:function(t){return[(t[0]-this.x)/this.k,(t[1]-this.y)/this.k]},invertX:function(t){return(t-this.x)/this.k},invertY:function(t){return(t-this.y)/this.k},rescaleX:function(t){return t.copy().domain(t.range().map(this.invertX,this).map(t.invert,t))},rescaleY:function(t){return t.copy().domain(t.range().map(this.invertY,this).map(t.invert,t))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}},new transform_Transform(1,0,0),transform_Transform.prototype},17187:function(t){"use strict";var a,s="object"==typeof Reflect?Reflect:null,c=s&&"function"==typeof s.apply?s.apply:function(t,a,s){return Function.prototype.apply.call(t,a,s)};a=s&&"function"==typeof s.ownKeys?s.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var f=Number.isNaN||function(t){return t!=t};function EventEmitter(){EventEmitter.init.call(this)}t.exports=EventEmitter,t.exports.once=function(t,a){return new Promise(function(s,c){function errorListener(s){t.removeListener(a,resolver),c(s)}function resolver(){"function"==typeof t.removeListener&&t.removeListener("error",errorListener),s([].slice.call(arguments))}eventTargetAgnosticAddListener(t,a,resolver,{once:!0}),"error"!==a&&"function"==typeof t.on&&eventTargetAgnosticAddListener(t,"error",errorListener,{once:!0})})},EventEmitter.EventEmitter=EventEmitter,EventEmitter.prototype._events=void 0,EventEmitter.prototype._eventsCount=0,EventEmitter.prototype._maxListeners=void 0;var p=10;function checkListener(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function _getMaxListeners(t){return void 0===t._maxListeners?EventEmitter.defaultMaxListeners:t._maxListeners}function _addListener(t,a,s,c){if(checkListener(s),void 0===(p=t._events)?(p=t._events=Object.create(null),t._eventsCount=0):(void 0!==p.newListener&&(t.emit("newListener",a,s.listener?s.listener:s),p=t._events),g=p[a]),void 0===g)g=p[a]=s,++t._eventsCount;else if("function"==typeof g?g=p[a]=c?[s,g]:[g,s]:c?g.unshift(s):g.push(s),(f=_getMaxListeners(t))>0&&g.length>f&&!g.warned){g.warned=!0;var f,p,g,m=Error("Possible EventEmitter memory leak detected. "+g.length+" "+String(a)+" listeners added. Use emitter.setMaxListeners() to increase limit");m.name="MaxListenersExceededWarning",m.emitter=t,m.type=a,m.count=g.length,console&&console.warn&&console.warn(m)}return t}function onceWrapper(){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 _onceWrap(t,a,s){var c={fired:!1,wrapFn:void 0,target:t,type:a,listener:s},f=onceWrapper.bind(c);return f.listener=s,c.wrapFn=f,f}function _listeners(t,a,s){var c=t._events;if(void 0===c)return[];var f=c[a];return void 0===f?[]:"function"==typeof f?s?[f.listener||f]:[f]:s?function(t){for(var a=Array(t.length),s=0;s<a.length;++s)a[s]=t[s].listener||t[s];return a}(f):arrayClone(f,f.length)}function listenerCount(t){var a=this._events;if(void 0!==a){var s=a[t];if("function"==typeof s)return 1;if(void 0!==s)return s.length}return 0}function arrayClone(t,a){for(var s=Array(a),c=0;c<a;++c)s[c]=t[c];return s}function eventTargetAgnosticAddListener(t,a,s,c){if("function"==typeof t.on)c.once?t.once(a,s):t.on(a,s);else if("function"==typeof t.addEventListener)t.addEventListener(a,function wrapListener(f){c.once&&t.removeEventListener(a,wrapListener),s(f)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}Object.defineProperty(EventEmitter,"defaultMaxListeners",{enumerable:!0,get:function(){return p},set:function(t){if("number"!=typeof t||t<0||f(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");p=t}}),EventEmitter.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},EventEmitter.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||f(t))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},EventEmitter.prototype.getMaxListeners=function(){return _getMaxListeners(this)},EventEmitter.prototype.emit=function(t){for(var a=[],s=1;s<arguments.length;s++)a.push(arguments[s]);var f="error"===t,p=this._events;if(void 0!==p)f=f&&void 0===p.error;else if(!f)return!1;if(f){if(a.length>0&&(g=a[0]),g instanceof Error)throw g;var g,m=Error("Unhandled error."+(g?" ("+g.message+")":""));throw m.context=g,m}var v=p[t];if(void 0===v)return!1;if("function"==typeof v)c(v,this,a);else for(var y=v.length,_=arrayClone(v,y),s=0;s<y;++s)c(_[s],this,a);return!0},EventEmitter.prototype.addListener=function(t,a){return _addListener(this,t,a,!1)},EventEmitter.prototype.on=EventEmitter.prototype.addListener,EventEmitter.prototype.prependListener=function(t,a){return _addListener(this,t,a,!0)},EventEmitter.prototype.once=function(t,a){return checkListener(a),this.on(t,_onceWrap(this,t,a)),this},EventEmitter.prototype.prependOnceListener=function(t,a){return checkListener(a),this.prependListener(t,_onceWrap(this,t,a)),this},EventEmitter.prototype.removeListener=function(t,a){var s,c,f,p,g;if(checkListener(a),void 0===(c=this._events)||void 0===(s=c[t]))return this;if(s===a||s.listener===a)0==--this._eventsCount?this._events=Object.create(null):(delete c[t],c.removeListener&&this.emit
71("removeListener",t,s.listener||a));else if("function"!=typeof s){for(f=-1,p=s.length-1;p>=0;p--)if(s[p]===a||s[p].listener===a){g=s[p].listener,f=p;break}if(f<0)return this;0===f?s.shift():function(t,a){for(;a+1<t.length;a++)t[a]=t[a+1];t.pop()}(s,f),1===s.length&&(c[t]=s[0]),void 0!==c.removeListener&&this.emit("removeListener",t,g||a)}return this},EventEmitter.prototype.off=EventEmitter.prototype.removeListener,EventEmitter.prototype.removeAllListeners=function(t){var a,s,c;if(void 0===(s=this._events))return this;if(void 0===s.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==s[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete s[t]),this;if(0==arguments.length){var f,p=Object.keys(s);for(c=0;c<p.length;++c)"removeListener"!==(f=p[c])&&this.removeAllListeners(f);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(a=s[t]))this.removeListener(t,a);else if(void 0!==a)for(c=a.length-1;c>=0;c--)this.removeListener(t,a[c]);return this},EventEmitter.prototype.listeners=function(t){return _listeners(this,t,!0)},EventEmitter.prototype.rawListeners=function(t){return _listeners(this,t,!1)},EventEmitter.listenerCount=function(t,a){return"function"==typeof t.listenerCount?t.listenerCount(a):listenerCount.call(t,a)},EventEmitter.prototype.listenerCount=listenerCount,EventEmitter.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]}},70259:function(t,a,s){"use strict";let c=s(17849).buildOptions,f={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:"  ",supressEmptyNode:!1,tagValueProcessor:function(t){return t},attrValueProcessor:function(t){return t}},p=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor","rootNodeName"];function Parser(t){this.options=c(t,f,p),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=isAttribute),this.options.cdataTagName?this.isCDATA=isCDATA:this.isCDATA=function(){return!1},this.replaceCDATAstr=replaceCDATAstr,this.replaceCDATAarr=replaceCDATAarr,this.processTextOrObjNode=processTextOrObjNode,this.options.format?(this.indentate=indentate,this.tagEndChar=">\n",this.newLine="\n"):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=buildEmptyTextNode,this.buildObjNode=buildEmptyObjNode):(this.buildTextNode=buildTextValNode,this.buildObjNode=buildObjectNode),this.buildTextValNode=buildTextValNode,this.buildObjectNode=buildObjectNode}function processTextOrObjNode(t,a,s){let c=this.j2x(t,s+1);return void 0!==t[this.options.textNodeName]&&1===Object.keys(t).length?this.buildTextNode(c.val,a,c.attrStr,s):this.buildObjNode(c.val,a,c.attrStr,s)}function replaceCDATAstr(t,a){return(t=this.options.tagValueProcessor(""+t),""===this.options.cdataPositionChar||""===t)?t+"<![CDATA["+a+"]]"+this.tagEndChar:t.replace(this.options.cdataPositionChar,"<![CDATA["+a+"]]"+this.tagEndChar)}function replaceCDATAarr(t,a){if(t=this.options.tagValueProcessor(""+t),""===this.options.cdataPositionChar||""===t)return t+"<![CDATA["+a.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let s in a)t=t.replace(this.options.cdataPositionChar,"<![CDATA["+a[s]+"]]>");return t+this.newLine}function buildObjectNode(t,a,s,c){return s&&-1===t.indexOf("<")?this.indentate(c)+"<"+a+s+">"+t+"</"+a+this.tagEndChar:this.indentate(c)+"<"+a+s+this.tagEndChar+t+this.indentate(c)+"</"+a+this.tagEndChar}function buildEmptyObjNode(t,a,s,c){return""!==t?this.buildObjectNode(t,a,s,c):this.indentate(c)+"<"+a+s+"/"+this.tagEndChar}function buildTextValNode(t,a,s,c){return this.indentate(c)+"<"+a+s+">"+this.options.tagValueProcessor(t)+"</"+a+this.tagEndChar}function buildEmptyTextNode(t,a,s,c){return""!==t?this.buildTextValNo
71de(t,a,s,c):this.indentate(c)+"<"+a+s+"/"+this.tagEndChar}function indentate(t){return this.options.indentBy.repeat(t)}function isAttribute(t){return!!t.startsWith(this.options.attributeNamePrefix)&&t.substr(this.attrPrefixLen)}function isCDATA(t){return t===this.options.cdataTagName}Parser.prototype.parse=function(t){return Array.isArray(t)&&this.options.rootNodeName&&this.options.rootNodeName.length>1&&(t={[this.options.rootNodeName]:t}),this.j2x(t,0).val},Parser.prototype.j2x=function(t,a){let s="",c="";for(let f in t)if(void 0===t[f]);else if(null===t[f])c+=this.indentate(a)+"<"+f+"/"+this.tagEndChar;else if(t[f]instanceof Date)c+=this.buildTextNode(t[f],f,"",a);else if("object"!=typeof t[f]){let p=this.isAttribute(f);p?s+=" "+p+'="'+this.options.attrValueProcessor(""+t[f])+'"':this.isCDATA(f)?t[this.options.textNodeName]?c+=this.replaceCDATAstr(t[this.options.textNodeName],t[f]):c+=this.replaceCDATAstr("",t[f]):f===this.options.textNodeName?t[this.options.cdataTagName]||(c+=this.options.tagValueProcessor(""+t[f])):c+=this.buildTextNode(t[f],f,"",a)}else if(Array.isArray(t[f])){if(this.isCDATA(f))c+=this.indentate(a),t[this.options.textNodeName]?c+=this.replaceCDATAarr(t[this.options.textNodeName],t[f]):c+=this.replaceCDATAarr("",t[f]);else{let s=t[f].length;for(let p=0;p<s;p++){let s=t[f][p];void 0===s||(null===s?c+=this.indentate(a)+"<"+f+"/"+this.tagEndChar:"object"==typeof s?c+=this.processTextOrObjNode(s,f,a):c+=this.buildTextNode(s,f,"",a))}}}else if(this.options.attrNodeName&&f===this.options.attrNodeName){let a=Object.keys(t[f]),c=a.length;for(let p=0;p<c;p++)s+=" "+a[p]+'="'+this.options.attrValueProcessor(""+t[f][a[p]])+'"'}else c+=this.processTextOrObjNode(t[f],f,a);return{attrStr:s,val:c}},t.exports=Parser},68398:function(t,a,s){"use strict";let char=function(t){return String.fromCharCode(t)},c={nilChar:char(176),missingChar:char(201),nilPremitive:char(175),missingPremitive:char(200),emptyChar:char(178),emptyValue:char(177),boundryChar:char(179),objStart:char(198),arrStart:char(204),arrayEnd:char(185)},f=[c.nilChar,c.nilPremitive,c.missingChar,c.missingPremitive,c.boundryChar,c.emptyChar,c.emptyValue,c.arrayEnd,c.objStart,c.arrStart],_e=function(t,a,s){if("string"==typeof a)return t&&t[0]&&void 0!==t[0].val?getValue(t[0].val,a):getValue(t,a);{var f;let p=void 0===(f=t)?c.missingChar:null===f?c.nilChar:!f.child||0!==Object.keys(f.child).length||!!f.attrsMap&&0!==Object.keys(f.attrsMap).length||c.emptyChar;if(!0!==p)return p;{let f="";if(Array.isArray(a)){f+=c.arrStart;let p=a[0],g=t.length;if("string"==typeof p)for(let a=0;a<g;a++){let s=getValue(t[a].val,p);f=processValue(f,s)}else for(let a=0;a<g;a++){let c=_e(t[a],p,s);f=processValue(f,c)}f+=c.arrayEnd}else{f+=c.objStart;let p=Object.keys(a);for(let c in Array.isArray(t)&&(t=t[0]),p){let g=p[c];f=processValue(f,!s.ignoreAttributes&&t.attrsMap&&t.attrsMap[g]?_e(t.attrsMap[g],a[g],s):g===s.textNodeName?_e(t.val,a[g],s):_e(t.child[g],a[g],s))}}return f}}},getValue=function(t){switch(t){case void 0:return c.missingPremitive;case null:return c.nilPremitive;case"":return c.emptyValue;default:return t}},processValue=function(t,a){return isAppChar(a[0])||isAppChar(t[t.length-1])||(t+=c.boundryChar),t+a},isAppChar=function(t){return -1!==f.indexOf(t)},p=s(23543),g=s(17849).buildOptions;a.convert2nimn=function(t,a,s){return _e(t,a,s=g(s,p.defaultOptions,p.props))}},60284:function(t,a,s){"use strict";let c=s(17849),convertToJson=function(t,a,s){let f={};if(!a.alwaysCreateTextNode&&(!t.child||c.isEmptyObject(t.child))&&(!t.attrsMap||c.isEmptyObject(t.attrsMap)))return c.isExist(t.val)?t.val:"";if(c.isExist(t.val)&&!("string"==typeof t.val&&(""===t.val||t.val===a.cdataPositionChar))){let p=c.isTagNameInArrayMode(t.tagname,a.arrayMode,s);f[a.textNodeName]=p?[t.val]:t.val}c.merge(f,t.attrsMap,a.arrayMode);let p=Object.keys(t.child);for(let g=0;g<p.length;g++){let m=p[g];if(t.child[m]&&t.child[m].length>1)for(let s in f[m]=[],t.child[m])t.child[m].hasOwnProperty(s)&&f[m].push(convertToJson(t.child[m][s],a,m));else{let p=convertToJson(t.child[m][0],a,m),g=!0===a.arrayMode&&"object"==typeof p||c.isTagNameInArrayMode(m,a.arrayMode,s);f[m]=g?[p]:p}}return f};a.convertToJson=convertToJson},67702:function(t,a,s){"use strict";
71let c=s(17849),f=s(17849).buildOptions,p=s(23543),_cToJsonStr=function(t,a,s){var f;let p="{",g=Object.keys(t.child);for(let s=0;s<g.length;s++){let c=g[s];if(t.child[c]&&t.child[c].length>1){for(let s in p+='"'+c+'" : [ ',t.child[c])p+=_cToJsonStr(t.child[c][s],a)+" , ";p=p.substr(0,p.length-1)+" ] "}else p+='"'+c+'" : '+_cToJsonStr(t.child[c][0],a)+" ,"}return(c.merge(p,t.attrsMap),c.isEmptyObject(p))?c.isExist(t.val)?t.val:"":(c.isExist(t.val)&&!("string"==typeof t.val&&(""===t.val||t.val===a.cdataPositionChar))&&(p+='"'+a.textNodeName+'" : '+(!0!==(f=t.val)&&!1!==f&&isNaN(f)?'"'+f+'"':f)),","===p[p.length-1]&&(p=p.substr(0,p.length-2)),p+"}")};a.convertToJsonString=function(t,a){return(a=f(a,p.defaultOptions,p.props)).indentBy=a.indentBy||"",_cToJsonStr(t,a,0)}},36965:function(t,a,s){"use strict";let c=s(60284),f=s(23543),p=s(23543),g=s(17849).buildOptions,m=s(78501);a.parse=function(t,a={},s){if(s){!0===s&&(s={});let a=m.validate(t,s);if(!0!==a)throw Error(a.err.msg)}a.parseTrueNumberOnly&&!1!==a.parseNodeValue&&!a.numParseOptions&&(a.numParseOptions={leadingZeros:!1});let v=g(a,p.defaultOptions,p.props),y=f.getTraversalObj(t,v);return c.convertToJson(y,v)},a.convertTonimn=s(68398).convert2nimn,a.getTraversalObj=f.getTraversalObj,a.convertToJson=c.convertToJson,a.convertToJsonString=s(67702).convertToJsonString,a.validate=m.validate,a.j2xParser=s(70259),a.parseToNimn=function(t,s,c){return a.convertTonimn(a.getTraversalObj(t,c),s,c)}},17849:function(t,a){"use strict";let s=":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",c="["+s+"]["+s+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*",f=RegExp("^"+c+"$");a.isExist=function(t){return void 0!==t},a.isEmptyObject=function(t){return 0===Object.keys(t).length},a.merge=function(t,a,s){if(a){let c=Object.keys(a),f=c.length;for(let p=0;p<f;p++)"strict"===s?t[c[p]]=[a[c[p]]]:t[c[p]]=a[c[p]]}},a.getValue=function(t){return a.isExist(t)?t:""},a.buildOptions=function(t,a,s){let c={};if(!t)return a;for(let f=0;f<s.length;f++)void 0!==t[s[f]]?c[s[f]]=t[s[f]]:c[s[f]]=a[s[f]];return c},a.isTagNameInArrayMode=function(t,a,s){return!1!==a&&(a instanceof RegExp?a.test(t):"function"==typeof a?!!a(t,s):"strict"===a)},a.isName=function(t){let a=f.exec(t);return null!=a},a.getAllMatches=function(t,a){let s=[],c=a.exec(t);for(;c;){let f=[];f.startIndex=a.lastIndex-c[0].length;let p=c.length;for(let t=0;t<p;t++)f.push(c[t]);s.push(f),c=a.exec(t)}return s},a.nameRegexp=c},78501:function(t,a,s){"use strict";let c=s(17849),f={allowBooleanAttributes:!1},p=["allowBooleanAttributes"];function readPI(t,a){let s=a;for(;a<t.length;a++)if("?"==t[a]||" "==t[a]){let c=t.substr(s,a-s);if(a>5&&"xml"===c)return getErrorObject("InvalidXml","XML declaration allowed only at the start of the document.",getLineNumberForPosition(t,a));if("?"!=t[a]||">"!=t[a+1])continue;a++;break}return a}function readCommentAndCDATA(t,a){if(t.length>a+5&&"-"===t[a+1]&&"-"===t[a+2]){for(a+=3;a<t.length;a++)if("-"===t[a]&&"-"===t[a+1]&&">"===t[a+2]){a+=2;break}}else if(t.length>a+8&&"D"===t[a+1]&&"O"===t[a+2]&&"C"===t[a+3]&&"T"===t[a+4]&&"Y"===t[a+5]&&"P"===t[a+6]&&"E"===t[a+7]){let s=1;for(a+=8;a<t.length;a++)if("<"===t[a])s++;else if(">"===t[a]&&0==--s)break}else if(t.length>a+9&&"["===t[a+1]&&"C"===t[a+2]&&"D"===t[a+3]&&"A"===t[a+4]&&"T"===t[a+5]&&"A"===t[a+6]&&"["===t[a+7]){for(a+=8;a<t.length;a++)if("]"===t[a]&&"]"===t[a+1]&&">"===t[a+2]){a+=2;break}}return a}a.validate=function(t,a){a=c.buildOptions(a,f,p);let s=[],g=!1,m=!1;"\uFEFF"===t[0]&&(t=t.substr(1));for(let f=0;f<t.length;f++)if("<"===t[f]&&"?"===t[f+1]){if(f+=2,(f=readPI(t,f)).err)return f}else if("<"===t[f]){let p=f;if("!"===t[++f]){f=readCommentAndCDATA(t,f);continue}{var v;let y=!1;"/"===t[f]&&(y=!0,f++);let _="";for(;f<t.length&&">"!==t[f]&&" "!==t[f]&&"	"!==t[f]&&"\n"!==t[f]&&"\r"!==t[f];f++)_+=t[f];if("/"===(_=_.trim())[_.length-1]&&(_=_.substring(0,_.length-1),f--),v=_,!c.isName(v))return getErrorObject("InvalidTag",0===_.trim().length?"Invalid space after '<'.":"Tag '"+_+"' is an invali
71d name.",getLineNumberForPosition(t,f));let b=function(t,a){let s="",c="",f=!1;for(;a<t.length;a++){if('"'===t[a]||"'"===t[a])""===c?c=t[a]:c!==t[a]||(c="");else if(">"===t[a]&&""===c){f=!0;break}s+=t[a]}return""===c&&{value:s,index:a,tagClosed:f}}(t,f);if(!1===b)return getErrorObject("InvalidAttr","Attributes for '"+_+"' have open quote.",getLineNumberForPosition(t,f));let S=b.value;if(f=b.index,"/"===S[S.length-1]){let s=f-S.length;S=S.substring(0,S.length-1);let c=validateAttributeString(S,a);if(!0!==c)return getErrorObject(c.err.code,c.err.msg,getLineNumberForPosition(t,s+c.err.line));g=!0}else if(y){if(!b.tagClosed)return getErrorObject("InvalidTag","Closing tag '"+_+"' doesn't have proper closing.",getLineNumberForPosition(t,f));if(S.trim().length>0)return getErrorObject("InvalidTag","Closing tag '"+_+"' can't have attributes or invalid starting.",getLineNumberForPosition(t,p));{let a=s.pop();if(_!==a.tagName){let s=getLineNumberForPosition(t,a.tagStartPos);return getErrorObject("InvalidTag","Expected closing tag '"+a.tagName+"' (opened in line "+s.line+", col "+s.col+") instead of closing tag '"+_+"'.",getLineNumberForPosition(t,p))}0==s.length&&(m=!0)}}else{let c=validateAttributeString(S,a);if(!0!==c)return getErrorObject(c.err.code,c.err.msg,getLineNumberForPosition(t,f-S.length+c.err.line));if(!0===m)return getErrorObject("InvalidXml","Multiple possible root nodes found.",getLineNumberForPosition(t,f));s.push({tagName:_,tagStartPos:p}),g=!0}for(f++;f<t.length;f++)if("<"===t[f]){if("!"===t[f+1]){f=readCommentAndCDATA(t,++f);continue}if("?"===t[f+1]){if((f=readPI(t,++f)).err)return f}else break}else if("&"===t[f]){let a=function(t,a){if(";"===t[++a])return -1;if("#"===t[a])return function(t,a){let s=/\d/;for("x"===t[a]&&(a++,s=/[\da-fA-F]/);a<t.length;a++){if(";"===t[a])return a;if(!t[a].match(s))break}return -1}(t,++a);let s=0;for(;a<t.length;a++,s++)if(!t[a].match(/\w/)||!(s<20)){if(";"===t[a])break;return -1}return a}(t,f);if(-1==a)return getErrorObject("InvalidChar","char '&' is not expected.",getLineNumberForPosition(t,f));f=a}"<"===t[f]&&f--}}else{if(" "===t[f]||"	"===t[f]||"\n"===t[f]||"\r"===t[f])continue;return getErrorObject("InvalidChar","char '"+t[f]+"' is not expected.",getLineNumberForPosition(t,f))}return g?1==s.length?getErrorObject("InvalidTag","Unclosed tag '"+s[0].tagName+"'.",getLineNumberForPosition(t,s[0].tagStartPos)):!(s.length>0)||getErrorObject("InvalidXml","Invalid '"+JSON.stringify(s.map(t=>t.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):getErrorObject("InvalidXml","Start tag expected.",1)};let g=RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function validateAttributeString(t,a){let s=c.getAllMatches(t,g),f={};for(let t=0;t<s.length;t++){if(0===s[t][1].length)return getErrorObject("InvalidAttr","Attribute '"+s[t][2]+"' has no space in starting.",getPositionFromMatch(s[t]));if(void 0===s[t][3]&&!a.allowBooleanAttributes)return getErrorObject("InvalidAttr","boolean attribute '"+s[t][2]+"' is not allowed.",getPositionFromMatch(s[t]));let p=s[t][2];if(!c.isName(p))return getErrorObject("InvalidAttr","Attribute '"+p+"' is an invalid name.",getPositionFromMatch(s[t]));if(f.hasOwnProperty(p))return getErrorObject("InvalidAttr","Attribute '"+p+"' is repeated.",getPositionFromMatch(s[t]));f[p]=1}return!0}function getErrorObject(t,a,s){return{err:{code:t,msg:a,line:s.line||s,col:s.col}}}function getLineNumberForPosition(t,a){let s=t.substring(0,a).split(/\r?\n/);return{line:s.length,col:s[s.length-1].length+1}}function getPositionFromMatch(t){return t.startIndex+t[1].length}},6468:function(t){"use strict";t.exports=function(t,a,s){this.tagname=t,this.parent=a,this.child={},this.attrsMap={},this.val=s,this.addChild=function(t){Array.isArray(this.child[t.tagname])?this.child[t.tagname].push(t):this.child[t.tagname]=[t]}}},23543:function(t,a,s){"use strict";let c=s(17849),f=s(17849).buildOptions,p=s(6468),g=s(14153);"<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,c.nameRegexp),!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let m={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",numParseOptions:{hex:!0,leadingZeros:!0},tagValueProcessor:function(t,a){return t},attrValueProcessor:function(t,a){return t},stopNodes:[],alwaysCreateTextNode:!1};a.defaultOptions=m;let v=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","numParseOptions","stopNodes","alwaysCreateTextNode"];function processTagValue(t,a,s){return a&&(s.trimValues&&(a=a.trim()),a=parseValue(a=s.tagValueProcessor(a,t),s.parseNodeValue,s.numParseOptions)),a}function parseValue(t,a,s){if(a&&"string"==typeof t){let a=t.trim();return"true"===a||"false"!==a&&g(t,s)}return c.isExist(t)?t:""}a.props=v;let y=RegExp("([^\\s=]+)\\s*(=\\s*(['\"])(.*?)\\3)?","g");function buildAttributesMap(t,a){if(!a.ignoreAttributes&&"string"==typeof t){t=t.replace(/\r?\n/g," ");let s=c.getAllMatches(t,y),f=s.length,p={};for(let t=0;t<f;t++){let c=function(t,a){if(a.ignoreNameSpace){let a=t.split(":"),s="/"===t.charAt(0)?"/":"";if("xmlns"===a[0])return"";2===a.length&&(t=s+a[1])}return t}(s[t][1],a);c.length&&(void 0!==s[t][4]?(a.trimValues&&(s[t][4]=s[t][4].trim()),s[t][4]=a.attrValueProcessor(s[t][4],c),p[a.attributeNamePrefix+c]=parseValue(s[t][4],a.parseAttributeValue,a.numParseOptions)):a.allowBooleanAttributes&&(p[a.attributeNamePrefix+c]=!0))}if(Object.keys(p).length){if(a.attrNodeName){let t={};return t[a.attrNodeName]=p,t}return p}}}function findClosingIndex(t,a,s,c){let f=t.indexOf(a,s);if(-1!==f)return f+a.length-1;throw Error(c)}a.getTraversalObj=function(t,a){t=t.replace(/\r\n?/g,"\n"),a=f(a,m,v);let s=new p("!xml"),g=s,y="";for(let s=0;s<t.length;s++){let f=t[s];if("<"===f){if("/"===t[s+1]){let f=findClosingIndex(t,">",s,"Closing Tag is not closed."),p=t.substring(s+2,f).trim();if(a.ignoreNameSpace){let t=p.indexOf(":");-1!==t&&(p=p.substr(t+1))}g&&(g.val?g.val=c.getValue(g.val)+""+processTagValue(p,y,a):g.val=processTagValue(p,y,a)),a.stopNodes.length&&a.stopNodes.includes(g.tagname)&&(g.child=[],void 0==g.attrsMap&&(g.attrsMap={}),g.val=t.substr(g.startIndex+1,s-g.startIndex-1)),g=g.parent,y="",s=f}else if("?"===t[s+1])s=findClosingIndex(t,"?>",s,"Pi Tag is not closed.");else if("!--"===t.substr(s+1,3))s=findClosingIndex(t,"-->",s,"Comment is not closed.");else if("!D"===t.substr(s+1,2)){let a=findClosingIndex(t,">",s,"DOCTYPE is not closed."),c=t.substring(s,a);s=c.indexOf("[")>=0?t.indexOf("]>",s)+1:a}else if("!["===t.substr(s+1,2)){let f=findClosingIndex(t,"]]>",s,"CDATA is not closed.")-2,m=t.substring(s+9,f);if(y&&(g.val=c.getValue(g.val)+""+processTagValue(g.tagname,y,a),y=""),a.cdataTagName){let t=new p(a.cdataTagName,g,m);g.addChild(t),g.val=c.getValue(g.val)+a.cdataPositionChar,m&&(t.val=m)}else g.val=(g.val||"")+(m||"");s=f+2}else{let f=function(t,a){let s;let c="";for(let f=a;f<t.length;f++){let a=t[f];if(s)a===s&&(s="");else if('"'===a||"'"===a)s=a;else{if(">"===a)return{data:c,index:f};"	"===a&&(a=" ")}c+=a}}(t,s+1),m=f.data,v=f.index,_=m.indexOf(" "),b=m,S=!0;if(-1!==_&&(b=m.substr(0,_).replace(/\s\s*$/,""),m=m.substr(_+1)),a.ignoreNameSpace){let t=b.indexOf(":");-1!==t&&(S=(b=b.substr(t+1))!==f.data.substr(t+1))}if(g&&y&&"!xml"!==g.tagname&&(g.val=c.getValue(g.val)+""+processTagValue(g.tagname,y,a)),m.length>0&&m.lastIndexOf("/")===m.length-1){m="/"===b[b.length-1]?b=b.substr(0,b.length-1):m.substr(0,m.length-1);let t=new p(b,g,"");b!==m&&(t.attrsMap=buildAttributesMap(m,a)),g.addChild(t)}else{let t=new p(b,g);a.stopNodes.length&&a.stopNodes.includes(t.tagname)&&(t.startIndex=v),b!==m&&S&&(t.attrsMap=buildAttributesMap(m,a)),g.addChild(t),g=t}y="",s=v}}else y+=t[s]}return s}},60139:function(t){"use strict";function makeEmptyFunction(t){return function(){return t}}var emptyFunction=function(){};emptyFunction.thatReturns=makeEmptyFunction,emptyFunction.thatReturnsFalse=makeEmptyFunction(!1),emptyFunction.thatReturnsTrue=makeEmptyFunction(!0),emptyFunction.thatReturnsNull=makeEmptyFunction(null),emptyFunction.thatReturnsThis=function(){return this},emptyFunction.thatReturnsArgument=function(t){return t}
71,t.exports=emptyFunction},73759:function(t){"use strict";var validateFormat=function(t){};t.exports=function(t,a,s,c,f,p,g,m){if(validateFormat(a),!t){var v;if(void 0===a)v=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var y=[s,c,f,p,g,m],_=0;(v=Error(a.replace(/%s/g,function(){return y[_++]}))).name="Invariant Violation"}throw v.framesToPop=1,v}}},8679:function(t,a,s){"use strict";var c=s(21296),f={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},p={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},g={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},m={};function getStatics(t){return c.isMemo(t)?g:m[t.$$typeof]||f}m[c.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},m[c.Memo]=g;var v=Object.defineProperty,y=Object.getOwnPropertyNames,_=Object.getOwnPropertySymbols,b=Object.getOwnPropertyDescriptor,S=Object.getPrototypeOf,w=Object.prototype;t.exports=function hoistNonReactStatics(t,a,s){if("string"!=typeof a){if(w){var c=S(a);c&&c!==w&&hoistNonReactStatics(t,c,s)}var f=y(a);_&&(f=f.concat(_(a)));for(var g=getStatics(t),m=getStatics(a),C=0;C<f.length;++C){var E=f[C];if(!p[E]&&!(s&&s[E])&&!(m&&m[E])&&!(g&&g[E])){var x=b(a,E);try{v(t,E,x)}catch(t){}}}}return t}},96103:function(t,a){"use strict";/** @license React v16.13.1
72 * react-is.production.min.js
73 *
74 * Copyright (c) Facebook, Inc. and its affiliates.
75 *
76 * This source code is licensed under the MIT license found in the
77 * LICENSE file in the root directory of this source tree.
78 */var s="function"==typeof Symbol&&Symbol.for,c=s?Symbol.for("react.element"):60103,f=s?Symbol.for("react.portal"):60106,p=s?Symbol.for("react.fragment"):60107,g=s?Symbol.for("react.strict_mode"):60108,m=s?Symbol.for("react.profiler"):60114,v=s?Symbol.for("react.provider"):60109,y=s?Symbol.for("react.context"):60110,_=s?Symbol.for("react.async_mode"):60111,b=s?Symbol.for("react.concurrent_mode"):60111,S=s?Symbol.for("react.forward_ref"):60112,w=s?Symbol.for("react.suspense"):60113,C=s?Symbol.for("react.suspense_list"):60120,E=s?Symbol.for("react.memo"):60115,x=s?Symbol.for("react.lazy"):60116,P=s?Symbol.for("react.block"):60121,I=s?Symbol.for("react.fundamental"):60117,T=s?Symbol.for("react.responder"):60118,k=s?Symbol.for("react.scope"):60119;function z(t){if("object"==typeof t&&null!==t){var a=t.$$typeof;switch(a){case c:switch(t=t.type){case _:case b:case p:case m:case g:case w:return t;default:switch(t=t&&t.$$typeof){case y:case S:case x:case E:case v:return t;default:return a}}case f:return a}}}function A(t){return z(t)===b}a.AsyncMode=_,a.ConcurrentMode=b,a.ContextConsumer=y,a.ContextProvider=v,a.Element=c,a.ForwardRef=S,a.Fragment=p,a.Lazy=x,a.Memo=E,a.Portal=f,a.Profiler=m,a.StrictMode=g,a.Suspense=w,a.isAsyncMode=function(t){return A(t)||z(t)===_},a.isConcurrentMode=A,a.isContextConsumer=function(t){return z(t)===y},a.isContextProvider=function(t){return z(t)===v},a.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===c},a.isForwardRef=function(t){return z(t)===S},a.isFragment=function(t){return z(t)===p},a.isLazy=function(t){return z(t)===x},a.isMemo=function(t){return z(t)===E},a.isPortal=function(t){return z(t)===f},a.isProfiler=function(t){return z(t)===m},a.isStrictMode=function(t){return z(t)===g},a.isSuspense=function(t){return z(t)===w},a.isValidElementType=function(t){return"string"==typeof t||"function"==typeof t||t===p||t===b||t===m||t===g||t===w||t===C||"object"==typeof t&&null!==t&&(t.$$typeof===x||t.$$typeof===E||t.$$typeof===v||t.$$typeof===y||t.$$typeof===S||t.$$typeof===I||t.$$typeof===T||t.$$typeof===k||t.$$typeof===P)},a.typeOf=z},21296:function(t,a,s){"use strict";t.exports=s(96103)},25477:function(t,a,s){"use strict";s.r(a);var c=/[A-Z]/g,f=/^ms-/,p={};function toHyphenLower(t){return"-"+t.toLowerCase()}a.default=function(t){if(p.hasOwnProperty(t))return p[t];var a=t.replace(c,toHyphenLower);return p[t]=f.test(a)?"-"+a:a}},80645:function(t,a){/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */a.read=function(t,a,s,c,f){var p,g,m=8*f-c-1,v=(1<<m)-1,y=v>>1,_=-7,b=s?f-1:0,S=s?-1:1,w=t[a+b];for(b+=S,p=w&(1<<-_)-1,w>>=-_,_+=m;_>0;p=256*p+t[a+b],b+=S,_-=8);for(g=p&(1<<-_)-1,p>>=-_,_+=c;_>0;g=256*g+t[a+b],b+=S,_-=8);if(0===p)p=1-y;else{if(p===v)return g?NaN:(w?-1:1)*(1/0);g+=Math.pow(2,c),p-=y}return(w?-1:1)*g*Math.pow(2,p-c)},a.write=function(t,a,s,c,f,p){var g,m,v,y=8*p-f-1,_=(1<<y)-1,b=_>>1,S=23===f?5960464477539062e-23:0,w=c?0:p-1,C=c?1:-1,E=a<0||0===a&&1/a<0?1:0;
78for(isNaN(a=Math.abs(a))||a===1/0?(m=isNaN(a)?1:0,g=_):(g=Math.floor(Math.log(a)/Math.LN2),a*(v=Math.pow(2,-g))<1&&(g--,v*=2),g+b>=1?a+=S/v:a+=S*Math.pow(2,1-b),a*v>=2&&(g++,v/=2),g+b>=_?(m=0,g=_):g+b>=1?(m=(a*v-1)*Math.pow(2,f),g+=b):(m=a*Math.pow(2,b-1)*Math.pow(2,f),g=0));f>=8;t[s+w]=255&m,w+=C,m/=256,f-=8);for(g=g<<f|m,y+=f;y>0;t[s+w]=255&g,w+=C,g/=256,y-=8);t[s+w-C]|=128*E}},33827:function(t,a,s){"use strict";s.r(a),s.d(a,{isBrowser:function(){return f}});var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=("undefined"==typeof window?"undefined":c(window))==="object"&&("undefined"==typeof document?"undefined":c(document))==="object"&&9===document.nodeType;a.default=f},5826:function(t){var a={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==a.call(t)}},36808:function(t,a,s){var c,f,p;void 0!==(f="function"==typeof(c=p=function(){function extend(){for(var t=0,a={};t<arguments.length;t++){var s=arguments[t];for(var c in s)a[c]=s[c]}return a}function decode(t){return t.replace(/(%[0-9A-Z]{2}
78)+/g,decodeURIComponent)}return function init(t){function api(){}function set(a,s,c){if("undefined"!=typeof document){"number"==typeof(c=extend({path:"/"},api.defaults,c)).expires&&(c.expires=new Date(new Date*1+864e5*c.expires)),c.expires=c.expires?c.expires.toUTCString():"";try{var f=JSON.stringify(s);/^[\{\[]/.test(f)&&(s=f)}catch(t){}s=t.write?t.write(s,a):encodeURIComponent(String(s)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),a=encodeURIComponent(String(a)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var p="";for(var g in c)c[g]&&(p+="; "+g,!0!==c[g]&&(p+="="+c[g].split(";")[0]));return document.cookie=a+"="+s+p}}function get(a,s){if("undefined"!=typeof document){for(var c={},f=document.cookie?document.cookie.split("; "):[],p=0;p<f.length;p++){var g=f[p].split("="),m=g.slice(1).join("=");s||'"'!==m.charAt(0)||(m=m.slice(1,-1));try{var v=decode(g[0]);if(m=(t.read||t)(m,v)||decode(m),s)try{m=JSON.parse(m)}catch(t){}if(c[v]=m,a===v)break}catch(t){}}return a?c[a]:c}}return api.set=set,api.get=function(t){return get(t,!1)},api.getJSON=function(t){return get(t,!0)},api.remove=function(t,a){set(t,"",extend(a,{expires:-1}))},api.defaults={},api.withConverter=init,api}(function(){})})?c.call(a,s,a,t):c)&&(t.exports=f),t.exports=p()},35828:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){return{onProcessStyle:function(t){if(Array.isArray(t)){for(var a=0;a<t.length;a++)t[a]=convertCase(t[a]);return t}return convertCase(t)},onChangeValue:function(t,a,s){var c=(0,f.default)(a);return a===c?t:(s.prop(c,t),null)}}};var c,f=(c=s(25477))&&c.__esModule?c:{default:c};function convertCase(t){var a={};for(var s in t)a[(0,f.default)(s)]=t[s];return t.fallbacks&&(Array.isArray(t.fallbacks)?a.fallbacks=t.fallbacks.map(convertCase):a.fallbacks=convertCase(t.fallbacks)),a}},98443:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){return{onProcessStyle:function(t,a){return t.composes&&(function registerClass(t,a){if(!a)return!0;if(Array.isArray(a)){for(var s=0;s<a.length;s++)if(!registerClass(t,a[s]))return!1;return!0}if(a.indexOf(" ")>-1)return registerClass(t,a.split(" "));var c=t.options.parent;if("$"===a[0]){var p=c.getRule(a.substr(1));return p?p===t?((0,f.default)(!1,"[JSS] Cyclic composition detected. \r\n%s",t),!1):(c.classes[t.key]+=" "+c.classes[p.key],!0):((0,f.default)(!1,"[JSS] Referenced rule is not defined. \r\n%s",t),!1)}return t.options.parent.classes[t.key]+=" "+a,!0}(a,t.composes),delete t.composes),t}}};var c,f=(c=s(30670))&&c.__esModule?c:{default:c}},80484:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default={"animation-delay":"ms","animation-duration":"ms","background-position":"px","background-position-x":"px","background-position-y":"px","background-size":"px",border:"px","border-bottom":"px","border-bottom-left-radius":"px","border-bottom-right-radius":"px","border-bottom-width":"px","border-left":"px","border-left-width":"px","border-radius":"px","border-right":"px","border-right-width":"px","border-spacing":"px","border-top":"px","border-top-left-radius":"px","border-top-right-radius":"px","border-top-width":"px","border-width":"px","border-after-width":"px","border-before-width":"px","border-end-width":"px","border-horizontal-spacing":"px","border-start-width":"px","border-vertical-spacing":"px",bottom:"px","box-shadow":"px","column-gap":"px","column-rule":"px","column-rule-width":"px","column-width":"px","flex-basis":"px","font-size":"px","font-size-delta":"px",height:"px",left:"px","letter-spacing":"px","logical-height":"px","logical-width":"px",margin:"px","margin-after":"px","margin-before":"px","margin-bottom":"px","margin-left":"px","margin-right":"px","margin-top":"px","max-height":"px","max-width":"px","margin-end":"px","margin-start":"px","mask-position-x":"px","mask-position-y":"px","mask-size":"px","max-logical-height":"px","max-logical-width":"px","min-height":"px","min-width":"px","min-logical-height":"px","min-logical-width":"px",motion:"px","motion-offset":"px",outline:"px","outline-offset":"px","outline-width":"px",padding:"px","padding-bottom":"px","padding-left":"px","padding-right":"px","padding-top":"px","padding-after":"px","padding-before":"px","padding-end":"px","padding-start":"px","perspective-origin-x":"%","perspective-origin-y":"%",perspective:"px",right:"px","shape-margin":"px",size:"px","text-indent":"px","text-stroke":"px","text-stroke-width":"px",to
78p:"px","transform-origin":"%","transform-origin-x":"%","transform-origin-y":"%","transform-origin-z":"%","transition-delay":"ms","transition-duration":"ms","vertical-align":"px",width:"px","word-spacing":"px","box-shadow-x":"px","box-shadow-y":"px","box-shadow-blur":"px","box-shadow-spread":"px","font-line-height":"px","text-shadow-x":"px","text-shadow-y":"px","text-shadow-blur":"px"}},50462:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};function addCamelCasedVersion(t){var a=/(-[a-z])/g,replace=function(t){return t[1].toUpperCase()},s={};for(var c in t)s[c]=t[c],s[c.replace(a,replace)]=t[c];return s}a.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=addCamelCasedVersion(t);return{onProcessStyle:function(t,s){if("style"!==s.type)return t;for(var c in t)t[c]=iterate(c,t[c],a);return t},onChangeValue:function(t,s){return iterate(s,t,a)}}};var p=addCamelCasedVersion(((c=s(80484))&&c.__esModule?c:{default:c}).default);function iterate(t,a,s){if(!a)return a;var c=a,g=void 0===a?"undefined":f(a);switch("object"===g&&Array.isArray(a)&&(g="array"),g){case"object":if("fallbacks"===t){for(var m in a)a[m]=iterate(m,a[m],s);break}for(var v in a)a[v]=iterate(t+"-"+v,a[v],s);break;case"array":for(var y=0;y<a.length;y++)a[y]=iterate(t,a[y],s);break;case"number":0!==a&&(c=a+(s[t]||p[t]||""))}return c}},71948:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};a.default=function(){return{onProcessStyle:function(t,a){if(!t||"style"!==a.type)return t;if(Array.isArray(t)){for(var s=0;s<t.length;s++)t[s]=styleDetector(t[s],a);return t}return styleDetector(t,a)}}};var f=s(21168);function objectToArray(t,a,s,c,p){if(!(f.propObj[a]||f.customPropObj[a]))return[];var g=[];if(f.customPropObj[a]&&(t=function(t,a,s,c){for(var f in s){var p=s[f];if(void 0!==t[f]&&(c||!a.prop(p))){var g,m,v=styleDetector((g={},m=t[f],p in g?Object.defineProperty(g,p,{value:m,enumerable:!0,configurable:!0,writable:!0}):g[p]=m,g),a)[p];c?a.style.fallbacks[p]=v:a.style[p]=v}delete t[f]}return t}(t,s,f.customPropObj[a],c)),Object.keys(t).length)for(var m in f.propObj[a]){if(t[m]){Array.isArray(t[m])?g.push(null===f.propArrayInObj[m]?t[m]:t[m].join(" ")):g.push(t[m]);continue}null!=f.propObj[a][m]&&g.push(f.propObj[a][m])}return!g.length||p?g:[g]}function styleDetector(t,a,s){for(var p in t){var g=t[p];if(Array.isArray(g)){if(!Array.isArray(g[0])){if("fallbacks"===p){for(var m=0;m<t.fallbacks.length;m++)t.fallbacks[m]=styleDetector(t.fallbacks[m],a,!0);continue}t[p]=function processArray(t,a,s,f){return null==s[a]?t:0===t.length?[]:Array.isArray(t[0])?processArray(t[0],a,s):"object"===c(t[0])?t.map(function(t){return objectToArray(t,a,f,!1,!0)}):[t]}(g,p,f.propArray),t[p].length||delete t[p]}}else if((void 0===g?"undefined":c(g))==="object"){if("fallbacks"===p){t.fallbacks=styleDetector(t.fallbacks,a,!0);continue}t[p]=objectToArray(g,p,a,s),t[p].length||delete t[p]}else""===t[p]&&delete t[p]}return t}},21168:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.propArray={"background-size":!0,"background-position":!0,border:!0,"border-bottom":!0,"border-left":!0,"border-top":!0,"border-right":!0,"border-radius":!0,"border-image":!0,"border-width":!0,"border-style":!0,"border-color":!0,"box-shadow":!0,flex:!0,margin:!0,padding:!0,outline:!0,"transform-origin":!0,transform:!0,transition:!0},a.propArrayInObj={position:!0,size:!0},a.propObj={padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},background:{attachment:null,color:null,image:null,position:null,repeat:null},border:{width:null,style:null,color:null},"border-top":{width:null,style:null,color:null},"border-right":{width:null,style:null,color:null},"border-bottom":{width:null,style:null,color:null},"border-left":{width:null,style:null,color:null},outline:{width:null,style:null,color:null},"list-style":{type:null,position:null,image:null},transition:{property:null,duration:null,"timing-function":null,timingFunction:null,delay:null},animation:{name:null,duration:null,"timing-function":null,timingFunction:null,delay:null,"iteration-count":null,iterationCount:null,direction:null,"fill-mode":null,fillMode:null,"play-state":null,playState:null},"box-shadow":{x:0,y:0,blur:0,spread:0,color:null,inset:null},"text-shadow":{x:0,y:0,blur:null,color:null}},a.customPropObj={border:{radius:"border-radius",image:"border-image",width:"border-width",style:"border-style",color:"border-color"},background:{size:"background-size",image:"background-image"},font:{style:"font-style",variant:"font-variant",weight:"font-weight",stretch:"font-stretch",size:"font-size",family:"font-family",lineHeight:"line-height","line-height":"line-height"},flex:{grow:"flex-grow",basis:"flex-basis",direction:"flex-direction",wrap:"flex-wrap",flow:"flex-flow",shrink:"flex-shrink"},align:{self:"align-self",items:"align-items",content:"align-content"},grid:{"template-columns":"grid-template-columns",templateColumns:"grid-template-columns","template-rows":"grid-template-rows",templateRows:"grid-template-rows","template-areas":"grid-template-areas",templateAreas:"grid-template-areas",template:"grid-template","auto-columns":"grid-auto-columns",autoColumns:"grid-auto-columns","auto-rows":"grid-auto-rows",autoRows:"grid-auto-rows","auto-flow":"grid-auto-flow",autoFlow:"grid-auto-flow",row:"grid-row",column:"grid-column","row-start":"grid-row-start",rowStart:"grid-row-start","row-end":"grid-row-end",rowEnd:"grid-row-end","column-start":"grid-column-start",columnStart:"grid-column-start","column-end":"grid-column-end",columnEnd:"grid-column-end",area:"grid-area",gap:"grid-gap","row-gap":"grid-row-gap",rowGap:"grid-row-gap","column-gap":"grid-column-gap",columnGap:"grid-column-gap"}}},2889:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};a.default=function(){return{onProcessStyle:function(t,a,s){return"extend"in t?function extend(t,a,s){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return!function(t,a,s,c){if("string"===f(t.extend)){if(!s)return;var g=s.getRule(t.extend);if(!g)return;if(g===a){(0,p.default)(!1,"[JSS] A rule tries to extend itself \r\n%s",a);return}var m=g.options.parent;
78m&&extend(m.rules.raw[t.extend],a,s,c);return}if(Array.isArray(t.extend)){for(var v=0;v<t.extend.length;v++)extend(t.extend[v],a,s,c);return}for(var y in t.extend){if("extend"===y){extend(t.extend.extend,a,s,c);continue}if(isObject(t.extend[y])){y in c||(c[y]={}),extend(t.extend[y],a,s,c[y]);continue}c[y]=t.extend[y]}}(t,a,s,c),!function(t,a,s,c){for(var f in t)if("extend"!==f){if(isObject(c[f])&&isObject(t[f])){extend(t[f],a,s,c[f]);continue}if(isObject(t[f])){c[f]=extend(t[f],a,s);continue}c[f]=t[f]}}(t,a,s,c),c}(t,a,s):t},onChangeValue:function(t,a,s){if("extend"!==a)return t;if(null==t||!1===t){for(var c in s[g])s.prop(c,null);return s[g]=null,null}for(var f in t)s.prop(f,t[f]);return s[g]=t,null}}};var p=(c=s(30670))&&c.__esModule?c:{default:c},isObject=function(t){return t&&(void 0===t?"undefined":f(t))==="object"&&!Array.isArray(t)},g="extendCurrValue"+Date.now()},29059:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}();a.default=function(){return{onCreateRule:function(t,a,s){if(t===g)return new v(t,a,s);if("@"===t[0]&&t.substr(0,m.length)===m)return new y(t,a,s);var c=s.parent;return c&&("global"===c.type||"global"===c.options.parent.type)&&(s.global=!0),s.global&&(s.selector=t),null},onProcessRule:function(t){"style"===t.type&&(!function(t){var a=t.options,s=t.style,f=s[g];if(f){for(var p in f)a.sheet.addRule(p,f[p],c({},a,{selector:addScope(p,t.selector)}));delete s[g]}}(t),function(t){var a=t.options,s=t.style;for(var f in s)if(f.substr(0,g.length)===g){var p=addScope(f.substr(g.length),t.selector);a.sheet.addRule(p,s[f],c({},a,{selector:p})),delete s[f]}}(t))}}};var p=s(55690);function _classCallCheck(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}var g="@global",m="@global ",v=function(){function GlobalContainerRule(t,a,s){for(var f in _classCallCheck(this,GlobalContainerRule),this.type="global",this.key=t,this.options=s,this.rules=new p.RuleList(c({},s,{parent:this})),a)this.rules.add(f,a[f],{selector:f});this.rules.process()}return f(GlobalContainerRule,[{key:"getRule",value:function(t){return this.rules.get(t)}},{key:"addRule",value:function(t,a,s){var c=this.rules.add(t,a,s);return this.options.jss.plugins.onProcessRule(c),c}},{key:"indexOf",value:function(t){return this.rules.indexOf(t)}},{key:"toString",value:function(){return this.rules.toString()}}]),GlobalContainerRule}(),y=function(){function GlobalPrefixedRule(t,a,s){_classCallCheck(this,GlobalPrefixedRule),this.name=t,this.options=s;var f=t.substr(m.length);this.rule=s.jss.createRule(f,a,c({},s,{parent:this,selector:f}))}return f(GlobalPrefixedRule,[{key:"toString",value:function(t){return this.rule.toString(t)}}]),GlobalPrefixedRule}(),_=/\s*,\s*/g;function addScope(t,a){for(var s=t.split(_),c="",f=0;f<s.length;f++)c+=a+" "+s[f].trim(),s[f+1]&&(c+=", ");return c}},28752:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t};a.default=function(){var hasAnd=function(t){return -1!==t.indexOf("&")};return{onProcessStyle:function(t,a){if("style"!==a.type)return t;var s=a.options.parent,c=void 0,y=void 0;for(var _ in t){var b=hasAnd(_),S="@"===_[0];if(b||S){if(c=function(t,a,s){if(s)return f({},s,{index:s.index+1});var c=t.options.nestingLevel;return c=void 0===c?1:c+1,f({},t.options,{nestingLevel:c,index:a.indexOf(t)+1})}(a,s,c),b){var w=function(t,a){for(var s=a.split(g),c=t.split(g),f="",p=0;p<s.length;p++)for(var v=s[p],y=0;y<c.length;y++){var _=c[y];f&&(f+=", "),f+=hasAnd(_)?_.replace(m,v):v+" "+_}return f}(_,a.selector);y||(y=function(t){return function(a,s){var c=t.getRule(s);return c?c.selector:((0,p.default)(!1,"[JSS] Could not find the referenced rule 
78%s in %s.",s,t.options.meta||t),s)}}(s)),w=w.replace(v,y),s.addRule(w,t[_],f({},c,{selector:w}))}else S&&s.addRule(_,null,c).addRule(a.key,t[_],{selector:a.selector});delete t[_]}}return t}}};var p=(c=s(30670))&&c.__esModule?c:{default:c},g=/\s*,\s*/g,m=/&/g,v=/\$([\w-]+)/g},50740:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=_interopRequireDefault(s(46629)),f=_interopRequireDefault(s(29059)),p=_interopRequireDefault(s(2889)),g=_interopRequireDefault(s(28752)),m=_interopRequireDefault(s(98443)),v=_interopRequireDefault(s(35828)),y=_interopRequireDefault(s(50462)),_=_interopRequireDefault(s(71948)),b=_interopRequireDefault(s(65926)),S=_interopRequireDefault(s(89347));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}a.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{plugins:[(0,c.default)(t.template),(0,f.default)(t.global),(0,p.default)(t.extend),(0,g.default)(t.nested),(0,m.default)(t.compose),(0,v.default)(t.camelCase),(0,y.default)(t.defaultUnit),(0,_.default)(t.expand),(0,b.default)(t.vendorPrefixer),(0,S.default)(t.propsSort)]}}},89347:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){function sort(t,a){return t.length-a.length}return{onProcessStyle:function(t,a){if("style"!==a.type)return t;var s={},c=Object.keys(t).sort(sort);for(var f in c)s[c[f]]=t[c[f]];return s}}}},46629:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=(c=s(52266))&&c.__esModule?c:{default:c},onProcessRule=function(t){"string"==typeof t.style&&(t.style=(0,f.default)(t.style))};a.default=function(){return{onProcessRule:onProcessRule}}},52266:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=(c=s(30670))&&c.__esModule?c:{default:c},p=/;\n/;a.default=function(t){for(var a={},s=t.split(p),c=0;c<s.length;c++){var g=(s[c]||"").trim();if(g){var m=g.indexOf(":");if(-1===m){(0,f.default)(!1,'Malformed CSS string "%s"',g);continue}var v=g.substr(0,m).trim(),y=g.substr(m+1).trim();a[v]=y}}return a}},65926:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){return{onProcessRule:function(t){"keyframes"===t.type&&(t.key="@"+c.prefix.css+t.key.substr(1))},onProcessStyle:function(t,a){if("style"!==a.type)return t;for(var s in t){var f=t[s],p=!1,g=c.supportedProperty(s);g&&g!==s&&(p=!0);var m=!1,v=c.supportedValue(g,f);v&&v!==f&&(m=!0),(p||m)&&(p&&delete t[s],t[g||s]=v||f)}return t},onChangeValue:function(t,a){return c.supportedValue(a,t)}}};var c=function(t){if(t&&t.__esModule)return t;var a={};if(null!=t)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=t[s]);return a.default=t,a}(s(67453))},57174:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},p=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),g=_interopRequireDefault(s(33827)),m=_interopRequireDefault(s(26899)),v=_interopRequireDefault(s(21165)),y=_interopRequireDefault(s(14103)),_=_interopRequireDefault(s(11768)),b=_interopRequireDefault(s(75484)),S=_interopRequireDefault(s(67863)),w=_interopRequireDefault(s(15803)),C=_interopRequireDefault(s(41143)),E=_interopRequireDefault(s(89380)),x=_interopRequireDefault(s(29178)),P=_interopRequireDefault(s(68102));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var I=y.default.concat([_.default,b.default]),T=0,k=function(){function Jss(t){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,Jss),this.id=T++,this.version="9.8.7",this.plugins=new v.default,this.options={createGenerateClassName:C.default,Renderer:g.default?x.default:P.default,plugins:[]},this.generateClassName=(0,C.default)(),this.use.apply(this,I),this.setup(t)}return p(Jss,[{key:"setup",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.createGenerateClassName&&(this.options.createGenerateClassName=t.createGenerateClassName,this.generateClassName=t.createGenerateClassName()),null!=t.insertionPoint&&(this.options.insertionPoint=t.insertionPoint),(t.virtual||t.Renderer)&&(this.options.Renderer=t.Renderer||(t.virtual?P.default:x.default)),t.plugins&&this.use.apply(this,t.plugins),this}},{key:"createStyleSheet",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=a.index;"number"!=typeof s&&(s=0===S.default.index?0:S.default.index+1);var c=new m.default(t,f({},a,{jss:this,generateClassName:a.generateClassName||this.generateClassName,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:s}));return this.plugins.onProcessSheet(c),c}},{key:"removeStyleSheet",value:function(t){return t.detach(),S.default.remove(t),this}},{key:"createRule",value:function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};(void 0===t?"undefined":c(t))==="object"&&(s=a,a=t,t=void 0);var f=s;f.jss=this,f.Renderer=this.options.Renderer,f.generateClassName||(f.generateClassName=this.generateClassName),f.classes||(f.classes={});var p=(0,E.default)(t,a,f);return!f.selector&&p instanceof w.default&&(p.selector="."+f.generateClassName(p)),this.plugins.onProcessRule(p),p}},{key:"use",value:function(){for(var t=this,a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];
78return s.forEach(function(a){-1===t.options.plugins.indexOf(a)&&(t.options.plugins.push(a),t.plugins.use(a))}),this}}]),Jss}();a.default=k},21165:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),p=(c=s(30670))&&c.__esModule?c:{default:c},g=function(){function PluginsRegistry(){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,PluginsRegistry),this.hooks={onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}}return f(PluginsRegistry,[{key:"onCreateRule",value:function(t,a,s){for(var c=0;c<this.hooks.onCreateRule.length;c++){var f=this.hooks.onCreateRule[c](t,a,s);if(f)return f}return null}},{key:"onProcessRule",value:function(t){if(!t.isProcessed){for(var a=t.options.sheet,s=0;s<this.hooks.onProcessRule.length;s++)this.hooks.onProcessRule[s](t,a);t.style&&this.onProcessStyle(t.style,t,a),t.isProcessed=!0}}},{key:"onProcessStyle",value:function(t,a,s){for(var c=t,f=0;f<this.hooks.onProcessStyle.length;f++)c=this.hooks.onProcessStyle[f](c,a,s),a.style=c}},{key:"onProcessSheet",value:function(t){for(var a=0;a<this.hooks.onProcessSheet.length;a++)this.hooks.onProcessSheet[a](t)}},{key:"onUpdate",value:function(t,a,s){for(var c=0;c<this.hooks.onUpdate.length;c++)this.hooks.onUpdate[c](t,a,s)}},{key:"onChangeValue",value:function(t,a,s){for(var c=t,f=0;f<this.hooks.onChangeValue.length;f++)c=this.hooks.onChangeValue[f](c,a,s);return c}},{key:"use",value:function(t){for(var a in t)this.hooks[a]?this.hooks[a].push(t[a]):(0,p.default)(!1,'[JSS] Unknown hook "%s".',a)}}]),PluginsRegistry}();a.default=g},88057:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),p=_interopRequireDefault(s(89380)),g=_interopRequireDefault(s(94229)),m=_interopRequireDefault(s(15803)),v=_interopRequireDefault(s(55878));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var y=function(){function RuleList(t){var a=this;!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,RuleList),this.map={},this.raw={},this.index=[],this.update=function(t,s){var c=a.options,f=c.jss.plugins,p=c.sheet;if("string"==typeof t)f.onUpdate(s,a.get(t),p);else for(var g=0;g<a.index.length;g++)f.onUpdate(t,a.index[g],p)},this.options=t,this.classes=t.classes}return f(RuleList,[{key:"add",value:function(t,a,s){var f=this.options,g=f.parent,y=f.sheet,_=f.jss,b=f.Renderer,S=f.generateClassName;!(s=c({classes:this.classes,parent:g,sheet:y,jss:_,Renderer:b,generateClassName:S},s)).selector&&this.classes[t]&&(s.selector="."+(0,v.default)(this.classes[t])),this.raw[t]=a;var w=(0,p.default)(t,a,s),C=void 0;!s.selector&&w instanceof m.default&&(C=S(w,y),w.selector="."+(0,v.default)(C)),this.register(w,C);var E=void 0===s.index?this.index.length:s.index;return this.index.splice(E,0,w),w}},{key:"get",value:function(t){return this.map[t]}},{key:"remove",value:function(t){this.unregister(t),this.index.splice(this.indexOf(t),1)}},{key:"indexOf",value:function(t){return this.index.indexOf(t)}},{key:"process",value:function(){var t=this.options.jss.plugins;this.index.slice(0).forEach(t.onProcessRule,t)}},{key:"register",value:function(t,a){this.map[t.key]=t,t instanceof m.default&&(this.map[t.selector]=t,a&&(this.classes[t.key]=a))}},{key:"unregister",value:function(t){delete this.map[t.key],t instanceof m.default&&(delete this.map[t.selector],delete this.classes[t.key])}},{key:"link",value:function(t){for(var a=this.options.sheet.renderer.getUnescapedKeysMap(this.index),s=0;s<t.length;s++){var c=t[s],f=this.options.sheet.renderer.getKey(c);a[f]&&(f=a[f]);var p=this.map[f];p&&(0,g.default)(p,c)}}},{key:"toString",value:function(t){for(var a="",s=this.options.sheet,c=!!s&&s.options.link,f=0;f<this.index.length;f++){var p=this.index[f].toString(t);
78(p||c)&&(a&&(a+="\n"),a+=p)}return a}}]),RuleList}();a.default=y},67006:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),p=(c=s(30670))&&c.__esModule?c:{default:c},g=function(){function SheetsManager(){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,SheetsManager),this.sheets=[],this.refs=[],this.keys=[]}return f(SheetsManager,[{key:"get",value:function(t){var a=this.keys.indexOf(t);return this.sheets[a]}},{key:"add",value:function(t,a){var s=this.sheets,c=this.refs,f=this.keys,p=s.indexOf(a);return -1!==p?p:(s.push(a),c.push(0),f.push(t),s.length-1)}},{key:"manage",value:function(t){var a=this.keys.indexOf(t),s=this.sheets[a];return 0===this.refs[a]&&s.attach(),this.refs[a]++,this.keys[a]||this.keys.splice(a,0,t),s}},{key:"unmanage",value:function(t){var a=this.keys.indexOf(t);if(-1===a){(0,p.default)(!1,"SheetsManager: can't find sheet to unmanage");return}this.refs[a]>0&&(this.refs[a]--,0===this.refs[a]&&this.sheets[a].detach())}},{key:"size",get:function(){return this.keys.length}}]),SheetsManager}();a.default=g},92122:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),c=function(){function SheetsRegistry(){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,SheetsRegistry),this.registry=[]}return s(SheetsRegistry,[{key:"add",value:function(t){var a=this.registry,s=t.options.index;if(-1===a.indexOf(t)){if(0===a.length||s>=this.index){a.push(t);return}for(var c=0;c<a.length;c++)if(a[c].options.index>s){a.splice(c,0,t);return}}}},{key:"reset",value:function(){this.registry=[]}},{key:"remove",value:function(t){var a=this.registry.indexOf(t);this.registry.splice(a,1)}},{key:"toString",value:function(t){return this.registry.filter(function(t){return t.attached}).map(function(a){return a.toString(t)}).join("\n")}},{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),SheetsRegistry}();a.default=c},26899:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),p=_interopRequireDefault(s(94229)),g=_interopRequireDefault(s(88057));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var m=function(){function StyleSheet(t,a){var s=this;for(var f in!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,StyleSheet),this.update=function(t,a){return"string"==typeof t?s.rules.update(t,a):s.rules.update(t),s},this.attached=!1,this.deployed=!1,this.linked=!1,this.classes={},this.options=c({},a,{sheet:this,parent:this,classes:this.classes}),this.renderer=new a.Renderer(this),this.rules=new g.default(this.options),t)this.rules.add(f,t[f]);this.rules.process()}return f(StyleSheet,[{key:"attach",value:function(){return this.attached||(this.deployed||this.deploy(),this.renderer.attach(),!this.linked&&this.options.link&&this.link(),this.attached=!0),this}},{key:"detach",value:function(){return this.attached&&(this.renderer.detach(),this.attached=!1),this}},{key:"addRule",value:function(t,a,s){var c=this.queue;this.attached&&!c&&(this.queue=[]);var f=this.rules.add(t,a,s);return(this.options.jss.plugins.onProcessRule(f),this.attached)?this.deployed&&(c?c.push(f):(this.insertRule(f),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))):this.deployed=!1,f}},{key:"insertRule",value:function(t){var a=this.renderer.insertRule(t);a&&this.options.link&&(0,p.default)(t,a)}},{key:"addRules",value:function(t,a){var s=[];for(var c in t)s.push(this.addRule(c,t[c],a));return s}},{key:"getRule",value:function(t){return this.rules.get(t)}},{key:"deleteRule",value:function(t){var a=this.rules.get(t);return!!a&&(this.rules.remove(a),!this.attached||!a.renderable||this.renderer.deleteRule(a.renderable))}},{key:"indexOf",value:function(t){return this.rules.indexOf(t)}},{key:"deploy",value:function(){return this.renderer.deploy(),this.deployed=!0,this}},{key:"link",value:function(){var t=this.renderer.getRules();return t&&this.rules.link(t),this.linked=!0,this}},{key:"toString",value:function(t){return this.rules.toString(t)}}]),StyleSheet}();a.default=m},55690:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.create=a.createGenerateClassName=a.sheets=a.RuleList=a.SheetsManager=a.SheetsRegistry=a.toCssValue=a.getDynamicStyles=void 0;var c=s(27343);Object.defineProperty(a,"getDynamicStyles",{enumerable:!0,get:function(){return _interopRequireDefault(c).default}});var f=s(16229);Object.defineProperty(a,"toCssValue",{enumerable:!0,get:function(){return _interopRequireDefault(f).default}});var p=s(92122);Object.defineProperty(a,"SheetsRegistry",{enumerable:!0,get:function(){return _interopRequireDefault(p).default}});var g=s(67006);Object.defineProperty(a,"SheetsManager",{enumerable:!0,get:function(){return _interopRequireDefault(g).default}});var m=s(88057);Object.defineProperty(a,"RuleList",{enumerable:!0,get:function(){return _interopRequireDefault(m).default}});var v=s(67863);Object.defineProperty(a,"sheets",{enumerable:!0,get:function(){return _interopRequireDefault(v).default}});var y=s(41143);Object.defineProperty(a,"createGenerateClassName",{enumerable:!0,get:function(){return _interopRequireDefault(y).default}});var _=_interopRequireDefault(s(57174));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var b=a.create=function(t){return new _.default(t)};a.default=b()},75484:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=_interopRequireDefault(s(88057)),f=_interopRequireDefault(s(15803)),p=_interopRequireDefault(s(89380));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var g=Date.now(),m="fnValues"+g,v="fnStyle"+ ++g;a.default={onCreateRule:function(t,a,s){if("function"!=typeof a)return null;var c=(0,p.default)(t,{},s);return c[v]=a,c},onProcessStyle:function(t,a){var s={};for(var c in t){var f=t[c];"function"==typeof f&&(delete t[c],s[c]=f)}return a[m]=s,t},onUpdate:function(t,a){if(a.rules instanceof c.default){a.rules.update(t);return}if(a instanceof f.default){if(a[m])for(var s in a[m])a.prop(s,a[m][s](t));var p=a[v];if(p){var g=p(t);for(var y in g)a.prop(y,g[y])}}}}},11768:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=_interopRequireDefault(s(15803)),f=_interopRequireDefault(s(89380)),p=_interopRequireDefault(s(97628));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}a.default={onCreateRule:function(t,a,s){if(!(0,p.default)(a))return null;var c=(0,f.default)(t,{},s);return a.subscribe(function(t){for(var a in t)c.prop(a,t[a])}),c},onProcessRule:function(t){if(t instanceof c.default){var a=t.style,_loop=function(s){var c=a[s];if(!(0,p.default)(c))return"continue";delete a[s],c.subscribe({next:function(a){t.prop(s,a)}})};for(var s in a)if("continue"===_loop(s))continue}}}},14103:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=_interopRequireDefault(s(3486)),f=_interopRequireDefault(s(16031)),p=_interopRequireDefault(s(61250)),g=_interopRequireDefault(s(12398)),m=_interopRequireDefault(s(50829));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var v={"@charset":c.default,"@import":c.default,"@namespace":c.default,"@keyframes":f.default,"@media":p.default,"@supp
78orts":p.default,"@font-face":g.default,"@viewport":m.default,"@-ms-viewport":m.default},y=Object.keys(v).map(function(t){var a=RegExp("^"+t),s=v[t];return{onCreateRule:function(t,c,f){return a.test(t)?new s(t,c,f):null}}});a.default=y},29178:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f,p,g=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),m=_interopRequireDefault(s(30670)),v=_interopRequireDefault(s(67863)),y=_interopRequireDefault(s(15803)),_=_interopRequireDefault(s(16229));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var memoize=function(t){var a=void 0;return function(){return a||(a=t()),a}};function getPropertyValue(t,a){try{return t.style.getPropertyValue(a)}catch(t){return""}}function setProperty(t,a,s){try{var c=s;if(Array.isArray(s)&&(c=(0,_.default)(s,!0),"!important"===s[s.length-1]))return t.style.setProperty(a,c,"important"),!0;t.style.setProperty(a,c)}catch(t){return!1}return!0}function removeProperty(t,a){try{t.style.removeProperty(a)}catch(t){(0,m.default)(!1,'[JSS] DOMException "%s" was thrown. Tried to remove property "%s".',t.message,a)}}var b={STYLE_RULE:1,KEYFRAMES_RULE:7},S=(c=function(t){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t.substr(a,t.indexOf("{")-1)},function(t){if(t.type===b.STYLE_RULE)return t.selectorText;if(t.type===b.KEYFRAMES_RULE){var a=t.name;if(a)return"@keyframes "+a;var s=t.cssText;return"@"+c(s,s.indexOf("keyframes"))}return c(t.cssText)});function setSelector(t,a){return t.selectorText=a,t.selectorText===a}var w=memoize(function(){return document.head||document.getElementsByTagName("head")[0]}),C=(f=void 0,p=!1,function(t){var a={};f||(f=document.createElement("style"));for(var s=0;s<t.length;s++){var c=t[s];if(c instanceof y.default){var g=c.selector;if(g&&-1!==g.indexOf("\\")){p||(w().appendChild(f),p=!0),f.textContent=g+" {}";var m=f.sheet;if(m){var v=m.cssRules;v&&(a[v[0].selectorText]=c.key)}}}}return p&&(w().removeChild(f),p=!1),a}),E=memoize(function(){var t=document.querySelector('meta[property="csp-nonce"]');return t?t.getAttribute("content"):null}),x=function(){function DomRenderer(t){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,DomRenderer),this.getPropertyValue=getPropertyValue,this.setProperty=setProperty,this.removeProperty=removeProperty,this.setSelector=setSelector,this.getKey=S,this.getUnescapedKeysMap=C,this.hasInsertedRules=!1,t&&v.default.add(t),this.sheet=t;var a=this.sheet?this.sheet.options:{},s=a.media,c=a.meta,f=a.element;this.element=f||document.createElement("style"),this.element.setAttribute("data-jss",""),s&&this.element.setAttribute("media",s),c&&this.element.setAttribute("data-meta",c);var p=E();p&&this.element.setAttribute("nonce",p)}return g(DomRenderer,[{key:"attach",value:function(){!this.element.parentNode&&this.sheet&&(this.hasInsertedRules&&(this.deploy(),this.hasInsertedRules=!1),function(t,a){var s=a.insertionPoint,c=function(t){var a=v.default.registry;if(a.length>0){var s=function(t,a){for(var s=0;s<t.length;s++){var c=t[s];if(c.attached&&c.options.index>a.index&&c.options.insertionPoint===a.insertionPoint)return c}return null}(a,t);if(s)return s.renderer.element;if(s=function(t,a){for(var s=t.length-1;s>=0;s--){var c=t[s];if(c.attached&&c.options.insertionPoint===a.insertionPoint)return c}return null}(a,t))return s.renderer.element.nextElementSibling}var c=t.insertionPoint;if(c&&"string"==typeof c){var f=function(t){for(var a=w(),s=0;s<a.childNodes.length;s++){var c=a.childNodes[s];if(8===c.nodeType&&c.nodeValue.trim()===t)return c}return null}(c);if(f)return f.nextSibling;(0,m.default)("jss"===c,'[JSS] Insertion point "%s" not found.',c)}return null}(a);if(c){var f=c.parentNode;f&&f.insertBefore(t,c);return}if(s&&"number"==typeof s.nodeType){var p=s.parentNode;p?p.insertBefore(t,s.nextSibling):(0,m.default)(!1,"[JSS] Insertion point is not in the DOM.");return}w().insertBefore(t,c)}(this.element,this.sheet.options))}},{key:"detach",value:function(){this.element.parentNode.removeChild(this.element)}},{key:"deploy",value:function(){this.sheet&&(this.element.textContent="\n"+this.sheet.toString()+"\n")}},{key:"insertRule",value:function(t,a){var s=this.element.sheet,c=s.cssRules,f=t.toString();if(a||(a=c.length),!f)return!1;try{s.insertRule(f,a)}catch(a){return(0,m.default)(!1,"[JSS] Can not insert an unsupported rule \n\r%s",t),!1}return this.hasInsertedRules=!0,c[a]}},{key:"deleteRule",value:function(t){var a=this.element.sheet,s=this.indexOf(t);return -1!==s&&(a.deleteRule(s),!0)}},{key:"indexOf",value:function(t){for(var a=this.element.sheet.cssRules,s=0;s<a.length;s++)if(t===a[s])return s;return -1}},{key:"replaceRule",value:function(t,a){var s=this.indexOf(t),c=this.insertRule(a,s);return this.element.sheet.deleteRule(s),c}},{key:"getRules",value:function(){return this.element.sheet.cssRules}}]),DomRenderer}();a.default=x},68102:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),c=function(){function VirtualRenderer(){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,VirtualRenderer)}return s(VirtualRenderer,[{key:"setProperty",value:function(){return!0}},{key:"getPropertyValue",value:function(){return""}},{key:"removeProperty",value:function(){}},{key:"setSelector",value:function(){return!0}},{key:"getKey",value:function(){return""}},{key:"attach",value:function(){}},{key:"detach",value:function(){}},{key:"deploy",value:function(){}},{key:"insertRule",value:function(){return!1}},{key:"deleteRule",value:function(){return!0}},{key:"replaceRule",value:function(){return!1}},{key:"getRules",value:function(){}},{key:"indexOf",value:function(){return -1}}]),VirtualRenderer}();a.default=c},61250:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},p=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),g=(c=s(88057))&&c.__esModule?c:{default:c},m=function(){function ConditionalRule(t,a,s){for(var c in!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}
78(this,ConditionalRule),this.type="conditional",this.isProcessed=!1,this.key=t,this.options=s,this.rules=new g.default(f({},s,{parent:this})),a)this.rules.add(c,a[c]);this.rules.process()}return p(ConditionalRule,[{key:"getRule",value:function(t){return this.rules.get(t)}},{key:"indexOf",value:function(t){return this.rules.indexOf(t)}},{key:"addRule",value:function(t,a,s){var c=this.rules.add(t,a,s);return this.options.jss.plugins.onProcessRule(c),c}},{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},a=this.rules.toString(t);return a?this.key+" {\n"+a+"\n}":""}}]),ConditionalRule}();a.default=m},12398:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),p=(c=s(70084))&&c.__esModule?c:{default:c},g=function(){function FontFaceRule(t,a,s){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,FontFaceRule),this.type="font-face",this.isProcessed=!1,this.key=t,this.style=a,this.options=s}return f(FontFaceRule,[{key:"toString",value:function(t){if(Array.isArray(this.style)){for(var a="",s=0;s<this.style.length;s++)a+=(0,p.default)(this.key,this.style[s]),this.style[s+1]&&(a+="\n");return a}return(0,p.default)(this.key,this.style,t)}}]),FontFaceRule}();a.default=g},16031:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},p=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),g=(c=s(88057))&&c.__esModule?c:{default:c},m=function(){function KeyframesRule(t,a,s){for(var c in!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,KeyframesRule),this.type="keyframes",this.isProcessed=!1,this.key=t,this.options=s,this.rules=new g.default(f({},s,{parent:this})),a)this.rules.add(c,a[c],f({},this.options,{parent:this,selector:c}));this.rules.process()}return p(KeyframesRule,[{key:"toString",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{indent:1},a=this.rules.toString(t);return a&&(a+="\n"),this.key+" {\n"+a+"}"}}]),KeyframesRule}();a.default=m},3486:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),c=function(){function SimpleRule(t,a,s){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,SimpleRule),this.type="simple",this.isProcessed=!1,this.key=t,this.value=a,this.options=s}return s(SimpleRule,[{key:"toString",value:function(t){if(Array.isArray(this.value)){for(var a="",s=0;s<this.value.length;s++)a+=this.key+" "+this.value[s]+";",this.value[s+1]&&(a+="\n");return a}return this.key+" "+this.value+";"}}]),SimpleRule}();a.default=c},15803:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),g=_interopRequireDefault(s(30670)),m=_interopRequireDefault(s(70084)),v=_interopRequireDefault(s(16229));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var y=function(){function StyleRule(t,a,s){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,StyleRule),this.type="style",this.isProcessed=!1;
78var c=s.sheet,f=s.Renderer,p=s.selector;this.key=t,this.options=s,this.style=a,p&&(this.selectorText=p),this.renderer=c?c.renderer:new f}return p(StyleRule,[{key:"prop",value:function(t,a){if(void 0===a)return this.style[t];if(this.style[t]===a)return this;var s=null==(a=this.options.jss.plugins.onChangeValue(a,t,this))||!1===a,c=t in this.style;if(s&&!c)return this;var f=s&&c;if(f?delete this.style[t]:this.style[t]=a,this.renderable)return f?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,a),this;var p=this.options.sheet;return p&&p.attached&&(0,g.default)(!1,'Rule is not linked. Missing sheet option "link: true".'),this}},{key:"applyTo",value:function(t){var a=this.toJSON();for(var s in a)this.renderer.setProperty(t,s,a[s]);return this}},{key:"toJSON",value:function(){var t={};for(var a in this.style){var s=this.style[a];(void 0===s?"undefined":f(s))!=="object"?t[a]=s:Array.isArray(s)&&(t[a]=(0,v.default)(s))}return t}},{key:"toString",value:function(t){var a=this.options.sheet,s=a&&a.options.link?c({},t,{allowEmpty:!0}):t;return(0,m.default)(this.selector,this.style,s)}},{key:"selector",set:function(t){if(t!==this.selectorText&&(this.selectorText=t,this.renderable&&!this.renderer.setSelector(this.renderable,t)&&this.renderable)){var a=this.renderer.replaceRule(this.renderable,this);a&&(this.renderable=a)}},get:function(){return this.selectorText}}]),StyleRule}();a.default=y},50829:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),p=(c=s(70084))&&c.__esModule?c:{default:c},g=function(){function ViewportRule(t,a,s){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,ViewportRule),this.type="viewport",this.isProcessed=!1,this.key=t,this.style=a,this.options=s}return f(ViewportRule,[{key:"toString",value:function(t){return(0,p.default)(this.key,this.style,t)}}]),ViewportRule}();a.default=g},67863:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=(c=s(92122))&&c.__esModule?c:{default:c};a.default=new f.default},2808:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};a.default=function cloneStyle(t){if(null==t)return t;var a=void 0===t?"undefined":f(t);if("string"===a||"number"===a||"function"===a)return t;if(g(t))return t.map(cloneStyle);if((0,p.default)(t))return t;var s={};for(var c in t){var m=t[c];if((void 0===m?"undefined":f(m))==="object"){s[c]=cloneStyle(m);continue}s[c]=m}return s};var p=(c=s(97628))&&c.__esModule?c:{default:c},g=Array.isArray},41143:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=_interopRequireDefault(s(30670));_interopRequireDefault(s(26899));var f=_interopRequireDefault(s(141));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}a.default=function(){var t=0;return function(a,s){(t+=1)>1e10&&(0,c.default)(!1,"[JSS] You might have a memory leak. Rule counter is at %s.",t);var p="c",g="";return s&&(p=s.options.classNamePrefix||"c",null!=s.options.jss.id&&(g+=s.options.jss.id)),""+p+f.default+g+t}}},89380:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unnamed",a=arguments[1],s=arguments[2],g=s.jss,m=(0,p.default)(a);return g.plugins.onCreateRule(t,m,s)||("@"===t[0]&&(0,c.default)(!1,"[JSS] Unknown at-rule %s",t),new f.default(t,m,s))};var c=_interopRequireDefault(s(30670)),f=_interopRequireDefault(s(15803)),p=_interopRequireDefault(s(2808));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}},55878:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),s.g.CSS,a.default=function(t){return t}},27343:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};a.default=function getDynamicStyles(t){var a=null;for(var c in t){var f=t[c],p=void 0===f?"undefined":s(f);if("function"===p)a||(a={}),a[c]=f;else if("object"===p&&null!==f&&!Array.isArray(f)){var g=getDynamicStyles(f);g&&(a||(a={}),a[c]=g)}}return a}},97628:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f=(c=s(98123))&&c.__esModule?c:{default:c};a.default=function(t){return t&&t[f.default]&&t===t[f.default]()}},94229:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a){t.renderable=a,t.rules&&a.cssRules&&t.rules.link(a.cssRules)}},141:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c="2f1acc6c3a606b082e5eef5e54414ffb";null==s.g[c]&&(s.g[c]=0),a.default=s.g[c]++},70084:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t,a){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},c="";if(!a)return c;var p=s.indent,g=void 0===p?0:p,m=a.fallbacks;
78if(g++,m){if(Array.isArray(m))for(var v=0;v<m.length;v++){var y=m[v];for(var _ in y){var b=y[_];null!=b&&(c+="\n"+indentStr(_+": "+(0,f.default)(b)+";",g))}}else for(var S in m){var w=m[S];null!=w&&(c+="\n"+indentStr(S+": "+(0,f.default)(w)+";",g))}}for(var C in a){var E=a[C];null!=E&&"fallbacks"!==C&&(c+="\n"+indentStr(C+": "+(0,f.default)(E)+";",g))}return c||s.allowEmpty?c=indentStr(t+" {"+c+"\n",--g)+indentStr("}",g):c};var c,f=(c=s(16229))&&c.__esModule?c:{default:c};function indentStr(t,a){for(var s="",c=0;c<a;c++)s+="  ";return s+t}},16229:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.default=function(t){var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!Array.isArray(t))return t;var s="";if(Array.isArray(t[0]))for(var c=0;c<t.length&&"!important"!==t[c];c++)s&&(s+=", "),s+=join(t[c]," ");else s=join(t,", ");return a||"!important"!==t[t.length-1]||(s+=" !important"),s};var join=function(t,a){for(var s="",c=0;c<t.length&&"!important"!==t[c];c++)s&&(s+=a),s+=t[c];return s}},7544:function(t,a,s){t.exports=s(21337)},63144:function(t){"use strict";let a=self.fetch.bind(self);t.exports=a,t.exports.default=t.exports},83454:function(t,a,s){"use strict";var c,f;t.exports=(null==(c=s.g.process)?void 0:c.env)&&"object"==typeof(null==(f=s.g.process)?void 0:f.env)?s.g.process:s(77663)},91118:function(t,a,s){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return s(22716)}])},64090:function(t,a){"use strict";a.Z={Auth:{userPoolId:"eu-central-1_CYNGxjApk",userPoolWebClientId:"7gcri61njj0s1q4ukqr0sddlq7",region:"eu-central-1"},API:{aws_appsync_graphqlEndpoint:"https://fuujwbqf4beo3fqh2isnwld6ci.appsync-api.eu-central-1.amazonaws.com/graphql",aws_appsync_region:"eu-central-1",aws_appsync_authenticationType:"AMAZON_COGNITO_USER_POOLS",aws_appsync_apiKey:"da2-znagt7m4fbgsvpabvmkyz4uq7a",endpoints:[{name:"WorldCommerce",endpoint:"https://gkuhhp3kz7.execute-api.eu-central-1.amazonaws.com/dev/"}]}}},4460:function(t,a,s){"use strict";s.d(a,{Z:function(){return Loading_Loading}});var c=s(85893);s(67294);var f=s(62240),p=s.n(f),Loading_Loading=()=>(0,c.jsx)("section",{className:p()["loading-section"],children:(0,c.jsx)("img",{src:"/static/img/loading.gif",alt:"enantio",className:p()["loading-gif"]})})},22716:function(t,a,s){"use strict";let c;s.r(a),s.d(a,{default:function(){return en}});var f,p,g,m,v,y=s(85893),_=s(67294),b=(f=function(t,a){return(f=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])})(t,a)},function(t,a){function __(){this.constructor=t}f(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}),__assign=function(){return(__assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)},__generator=function(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}},__rest=function(t,a){var s={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(s[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var f=0,c=Object.getOwnPropertySymbols(t);f<c.length;f++)0>a.indexOf(c[f])&&Object.prototype.propertyIsEnumerable.call(t,c[f])&&(s[c[f]]=t[c[f]]);return s},S=void 0,w=s(7544),C=s.n(w),E=s(14416),x=s(87462),P=s(83800),I=s(159),T=s(17076),ThemeProvider_ThemeProvider=function(t){var a=t.children,s=t.theme,c=(0,I.Z)(),f=_.useMemo(function(){var t=null===c?s:"function"==typeof s?s(c):(0,x.Z)({},c,s);return null!=t&&(t[T.Z]=null!==c),t},[s,c]);return _.createElement(P.Z.Provider,{value:f},a)},k=s(69491),O=s(58149),R=s(81041);let setFlags=t=>({type:"SET_FLAGS",flags:t});var M=s(50729),N=s(29402),U=s(74892);let FlagsService=class FlagsService{};FlagsService.getFlags=async()=>(FlagsService.flags||(FlagsService.flags=await U.pvA("/static/resources/flags.tsv")),FlagsService.flags);var L=s(82017),D=s(56801),B=s(51043),j=s(59378),q=s(4460),V=s(55690),K=s(6599),H=s(5034);let W=(0,K.Z)({container:{position:"relative"},palette:{primary:{main:"#3A4A61"}
78,secondary:{main:"#7F8289"},error:{main:"#f21c54"}},typography:{useNextVariants:!0,fontFamily:"Lato, sans-serif;"},overrides:{MuiButton:{contained:{boxShadow:"none",marginTop:16}},MuiMenuItem:{root:{height:"100%"}}},suggestionsContainerOpen:{position:"absolute",zIndex:1,marginTop:10,left:0,right:0},suggestion:{display:"block"},suggestionsList:{margin:0,padding:0,listStyleType:"none"},divider:{height:20}});function formatProdErrorMessage(t){return"Minified Redux error #"+t+"; visit https://redux.js.org/Errors?code="+t+" for the full message or use the non-minified dev environment for full errors. "}s(13074);var G="function"==typeof Symbol&&Symbol.observable||"@@observable",randomString=function(){return Math.random().toString(36).substring(7).split("").join(".")},$={INIT:"@@redux/INIT"+randomString(),REPLACE:"@@redux/REPLACE"+randomString(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+randomString()}};let Y={color:"tomato"},pad=t=>t<10?"0".concat(t):t;var J=s(95599);let Z={productName:"",productCode:"",originName:"",originCode:"",destinationName:"",destinationCode:"",dateIni:"2021-01-01",dateEnd:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Date,a=t.getFullYear(),s=t.getMonth()+1,c=t.getDate();return"".concat(a,"-").concat(pad(s),"-").concat(pad(c))}(),description:"",importer:"",exporter:"",showResults:!0,isLoading:!1,favourite:null,isOpen:!1},Q={flags:[]},X=function(t){for(var a,s=Object.keys(t),c={},f=0;f<s.length;f++){var p=s[f];"function"==typeof t[p]&&(c[p]=t[p])}var g=Object.keys(c);try{!function(t){Object.keys(t).forEach(function(a){var s=t[a];if(void 0===s(void 0,{type:$.INIT}))throw Error(formatProdErrorMessage(12));if(void 0===s(void 0,{type:$.PROBE_UNKNOWN_ACTION()}))throw Error(formatProdErrorMessage(13))})}(c)}catch(t){a=t}return function(t,s){if(void 0===t&&(t={}),a)throw a;for(var f=!1,p={},m=0;m<g.length;m++){var v=g[m],y=c[v],_=t[v],b=y(_,s);if(void 0===b)throw s&&s.type,Error(formatProdErrorMessage(14));p[v]=b,f=f||b!==_}return(f=f||g.length!==Object.keys(t).length)?p:t}}({pageReducer:function(){let t,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Y,s=arguments.length>1?arguments[1]:void 0;return"CHANGE_THEME"===s.type?(t=Object.assign({},a,{color:s.payload.color}),Object.assign({},a,t)):a},filtersReducers:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case J.UQ:return Object.assign({},t,{favourite:a.payload,showResults:!1});case J.CS:return Object.assign({},t,{productName:a.payload,showResults:!1});case J.gr:return Object.assign({},t,{productCode:a.payload,showResults:!1});case J.fw:return Object.assign({},t,{originName:a.payload,showResults:!1});case J.s$:return Object.assign({},t,{originCode:a.payload,showResults:!1});case J.SM:return Object.assign({},t,{destinationName:a.payload,showResults:!1});case J.F5:return Object.assign({},t,{destinationCode:a.payload,showResults:!1});case J.QE:return Object.assign({},t,{dateIni:a.payload,showResults:!1});case J.MS:return Object.assign({},t,{dateEnd:a.payload,showResults:!1});case J.tj:return Object.assign({},t,{description:a.payload,showResults:!1});case J._U:return Object.assign({},t,{importer:a.payload,showResults:!1});case J.cK:return Object.assign({},t,{exporter:a.payload,showResults:!1});case J.AG:return Object.assign({},t,{datasource:a.payload,showResults:!1});case J.cS:return Object.assign({},t,{isLoading:a.payload,showResults:!0});case J.XY:return Object.assign({},t,{isOpen:a.payload});case J.t0:return Z;default:return t}},flagsReducer:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q,a=arguments.length>1?arguments[1]:void 0;return"SET_FLAGS"===a.type?{...t,flags:a.flags}:t},langReducer:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B.X9,a=arguments.length>1?arguments[1]:void 0;return"SET_LANG"===a.type?a.lang:t},user:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,a=arguments.length>1?arguments[1]:void 0;return"SET_USER"===a.type?a.user?{...t,...a.user}:null:t}}),ee=window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__():t=>t;var et=s(64090);let getLanguage=()=>{let t="undefined"!=typeof navigator?navigator.language||navigator.userLanguage:B.X9,a=t.split("-").shift().toLowerCase(),s=window.localStorage?window.localStorage[B.Zd]:B.X9;return s||a};R.default.configure(et.Z);let MyApp=class MyApp extends C(){async componentDidMount(){L.Z.loadCountries();let t=document.querySelector("#jss-server-side");t&&t.parentNode&&t.parentNode.removeChild(t),FlagsService.getFlags().then(t=>{this.props.store.dispatch(setFlags(t))});let a=await (0,j.ts)();a.success&&((0,D.T)(a.data),this.props.store.dispatch((0,M.a)(a.data)));let s=getLanguage();this.props.store.dispatch((0,N.W)(s)),this.setState({showIntercom:!0,loading:!1})}static async getInitialProps(t){let{Component:a,ctx:s}=t,c=a.getInitialProps?await a.getInitialProps(s):{};return{pageProps:c}}render(){let{store:t}=this.props,{loading:a}=this.state;return(0,y.jsx)(E.zt,{store:t,children:(0,y.jsx)(k.Z,{registry:this.themeContext.sheetsRegistry,generateClassName:this.themeContext.generateClassName,children:(0,y.jsx)(ThemeProvider_ThemeProvider,{theme:this.themeContext.theme,sheetsManager:this.themeContext.sheetsManager,children:a?this.renderLoading():this.renderContent()})})})}constructor(){super(),this.renderLoading=()=>(0,y.jsx)(q.Z,{}),this.renderContent=()=>{let{Component:t,pageProps:a}=this.props,{showIntercom:s}=this.state;
78return(0,y.jsxs)("div",{children:[(0,y.jsx)(t,{themeContext:this.themeContext,...a}),s&&(0,y.jsx)(O.ZP,{appID:D.K})]})},this.themeContext=(c||(c={theme:W,sheetsManager:new Map,sheetsRegistry:new V.SheetsRegistry,generateClassName:(0,H.Z)()}),c),this.state={showIntercom:!1,loading:!0}}};var en=(p=(t,a)=>(function createStore(t,a,s){if("function"==typeof a&&"function"==typeof s||"function"==typeof s&&"function"==typeof arguments[3])throw Error(formatProdErrorMessage(0));if("function"==typeof a&&void 0===s&&(s=a,a=void 0),void 0!==s){if("function"!=typeof s)throw Error(formatProdErrorMessage(1));return s(createStore)(t,a)}if("function"!=typeof t)throw Error(formatProdErrorMessage(2));var c,f=t,p=a,g=[],m=g,v=!1;function ensureCanMutateNextListeners(){m===g&&(m=g.slice())}function getState(){if(v)throw Error(formatProdErrorMessage(3));return p}function subscribe(t){if("function"!=typeof t)throw Error(formatProdErrorMessage(4));if(v)throw Error(formatProdErrorMessage(5));var a=!0;return ensureCanMutateNextListeners(),m.push(t),function(){if(a){if(v)throw Error(formatProdErrorMessage(6));a=!1,ensureCanMutateNextListeners();var s=m.indexOf(t);m.splice(s,1),g=null}}}function dispatch(t){if(!function(t){if("object"!=typeof t||null===t)return!1;for(var a=t;null!==Object.getPrototypeOf(a);)a=Object.getPrototypeOf(a);return Object.getPrototypeOf(t)===a}(t))throw Error(formatProdErrorMessage(7));if(void 0===t.type)throw Error(formatProdErrorMessage(8));if(v)throw Error(formatProdErrorMessage(9));try{v=!0,p=f(p,t)}finally{v=!1}for(var a=g=m,s=0;s<a.length;s++)(0,a[s])();return t}return dispatch({type:$.INIT}),(c={dispatch:dispatch,subscribe:subscribe,getState:getState,replaceReducer:function(t){if("function"!=typeof t)throw Error(formatProdErrorMessage(10));f=t,dispatch({type:$.REPLACE})}})[G]=function(){var t;return(t={subscribe:function(t){if("object"!=typeof t||null===t)throw Error(formatProdErrorMessage(11));function observeState(){t.next&&t.next(getState())}return observeState(),{unsubscribe:subscribe(observeState)}}})[G]=function(){return this},t},c})(X,t,function(){for(var t=arguments.length,a=Array(t),s=0;s<t;s++)a[s]=arguments[s];return 0===a.length?function(t){return t}:1===a.length?a[0]:a.reduce(function(t,a){return function(){return t(a.apply(void 0,arguments))}})}(ee)),g=__assign({},{storeKey:"__NEXT_REDUX_STORE__",debug:!1,serializeState:function(t){return t},deserializeState:function(t){return t}},g),m="undefined"==typeof window,v=function(t){var a=t.initialState,s=t.ctx,c=g.storeKey,createStore=function(){return p(g.deserializeState(a),__assign({},s,g,{isServer:m}))};return m?createStore():(window.hasOwnProperty(c)||(window[c]=createStore()),window[c])},function(t){var a;return(a=function(a){function WrappedApp(t,s){var c=a.call(this,t,s)||this,f=t.initialState;return g.debug&&console.log("4. WrappedApp.render created new store with initialState",f),c.store=v({initialState:f}),c}return b(WrappedApp,a),WrappedApp.prototype.render=function(){var a=this.props,s=a.initialProps,c=(a.initialState,__rest(a,["initialProps","initialState"]));return _.createElement(t,__assign({},c,s,{store:this.store}))},WrappedApp}(_.Component)).displayName="withRedux("+(t.displayName||t.name||"App")+")",a.getInitialProps=function(a){var s,c,f;return s=void 0,c=void 0,f=function(){var s,c;return __generator(this,function(f){switch(f.label){case 0:if(!a)throw Error("No app context");if(!a.ctx)throw Error("No page context");if(s=v({ctx:a.ctx}),g.debug&&console.log("1. WrappedApp.getInitialProps wrapper got the store with state",s.getState()),a.ctx.store=s,a.ctx.isServer=m,c={},!("getInitialProps"in t))return[3,2];return[4,t.getInitialProps.call(t,a)];case 1:c=f.sent(),f.label=2;case 2:return g.debug&&console.log("3. WrappedApp.getInitialProps has store state",s.getState()),[2,{isServer:m,initialState:g.serializeState(s.getState()),initialProps:c}]}})},new(c||(c=Promise))(function(t,a){function fulfilled(t){try{step(f.next(t))}catch(t){a(t)}}function rejected(t){try{step(f.throw(t))}catch(t){a(t)}}function step(a){a.done?t(a.value):new c(function(t){t(a.value)}).then(fulfilled,rejected)}step((f=f.apply(S,s||[])).next())})},a})(MyApp)},95599:function(t,a,s){"use strict";s.d(a,{AG:function(){return C},CS:function(){return c},EA:function(){return setCountryDestinationCode},F5:function(){return v},J$:function(){return setCountryOriginCode},K2:function(){return setCountryDestinationName},K4:function(){return setLoading},MS:function(){return _},Q0:function(){return setExporter},QE:function(){return y},SM:function(){return m},TM:function(){return setDateEnd},UQ:function(){return x},XY:function(){return P},Xf:function(){return setProductName},_U:function(){return w},aw:function(){return resetFilters},cK:function(){return S},cS:function(){return E},dE:function(){return setProductCode},ek:function(){return setCountryOriginName},fw:function(){return p},gr:function(){return f},h0:function(){return setDatasource},i4:function(){return setDateIni},m4:function(){return setImporter},nY:function(){return setDescription},s$:function(){return g},t0:function(){return I},tj:function(){return b},wE:function(){return openFilters},wf:function(){return setFavourite}});let c="SET_PRODUCT_NAME ",f="SET_PRODUCT_CODE ",p="SET_COUNTRY_ORIGIN_NAME ",g="SET_COUNTRY_ORIGIN_CODE ",m="SET_COUNTRY_DESTINATION_NAME ",v="SET_COUNTRY_DESTINATION_CODE ",y="SET_DATE_INI",_="SET_DATE_END",b="SET_DESCRIPTION",S="SET_EXPORTER",w="SET_IMPORTER",C="SET_DATASOURCE",E="SET_LOADING",x="SET_FAVOURITE",P="OPEN_FILTERS",I="RESET_FILTERS",setFavourite=t=>({type:x,payload:t}),setProductName=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:c,payload:t}},setProductCode=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:f,payload:t}},setCountryOriginName=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:p,payload:t}},setCountryOriginCode=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:g,payload:t}},setCountryDestinationName=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:m,payload:t}},setCountryDestinationCode=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:v,payload:t}},setDateIni=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:y,payload:t}},setDateEnd=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:_,payload:t}},setDescription=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:b,payload:t}},setExporter=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:S,payload:t}},setImporter=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:w,payload:t}},setDatasource=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return{type:C,payload:t}}
78,setLoading=t=>({type:E,payload:t}),openFilters=t=>({type:P,payload:t}),resetFilters=()=>({type:I})},29402:function(t,a,s){"use strict";s.d(a,{W:function(){return setLang}});let c=["es","en","it","pt","fr","de"],setLang=t=>{let a=c.includes(t)?t:"en";return{type:"SET_LANG",lang:a}}},50729:function(t,a,s){"use strict";s.d(a,{a:function(){return setUser}});let setUser=t=>({type:"SET_USER",user:t})},59378:function(t,a,s){"use strict";s.d(a,{IU:function(){return signup},JN:function(){return saveUserProfile},Y0:function(){return askResetPassword},c0:function(){return resetPassword},gQ:function(){return updatePassword},kS:function(){return logout},q8:function(){return confirmUser},ts:function(){return getCurrentUser},x4:function(){return login}});var c=s(9432),f=s(10552),p=s(6743),g=s(32080),m=s(89323),v=s(51043),y=s(34489);function clearTempAccess(){window.localStorage&&(window.localStorage.setItem("".concat(v.qm,"_USER"),null),window.localStorage.setItem("".concat(v.qm,"_PWD"),null))}async function signup(t){let{name:a,lastname:s,email:f,password:p,profileCompanyId:g="enantio",nif:m}=t;try{return clearTempAccess(),await c.g.signUp({email:f,username:f,password:p,attributes:{name:a,email:f,"custom:lastname":s,"custom:brand":v.UQ,"custom:nif":m,profile:g}}),!function(t,a){let s=btoa(t),c=btoa(a);window.localStorage&&(window.localStorage.setItem("".concat(v.qm,"_USER"),s),window.localStorage.setItem("".concat(v.qm,"_PWD"),c))}(f,p),(0,y.p)(!0)}catch(t){return console.log("TCL: signup -> error",t),(0,y.p)(!1,t.code||"UnexpectedError")}}async function login(t,a){try{return await c.g.signIn(t,a),(0,y.p)(!0)}catch(t){return(0,y.p)(!1,t.code)}}async function confirmUser(t,a){try{await c.g.confirmSignUp(t,a);let{user:s,pwd:f}=function(){if(window.localStorage){let t=window.localStorage.getItem("".concat(v.qm,"_USER")),a=atob(t),s=window.localStorage.getItem("".concat(v.qm,"_PWD")),c=atob(s);return{user:a,pwd:c}}return{user:null,pwd:null}}();if(s&&f){let{success:t}=await login(s,f);t&&clearTempAccess()}return(0,y.p)(!0)}catch(t){return(0,y.p)(!1,t.code)}}async function logout(){try{return await c.g.signOut(),(0,y.p)(!0)}catch(t){return(0,y.p)(!1,t.code)}}async function getCurrentUser(){try{let t=await c.g.currentAuthenticatedUser();if(!t||!t.attributes||!t.attributes.sub)return(0,y.p)(!1,"UNEXPECTED");let{data:a}=await f.b.graphql((0,p.wT)(m.et));return(0,y.p)(!0,null,a.getUserProfile)}catch(t){return console.log("TCL: getCurrentUser -> error",t),(0,y.p)(!1,t.code)}}async function saveUserProfile(t){let{name:a,lastname:s}=t;try{let{data:{updateUserProfile:{success:t,message:c}}}=await f.b.graphql((0,p.wT)(g.updateUserProfile,{name:a,lastname:s}));return console.log("saveUserProfile -> success, message ",t,c),(0,y.p)(t,c)}catch(t){return console.log("saveUserProfile -> error",t),(0,y.p)(!1,t.code)}}async function updatePassword(t){let{currentPassword:a,newPassword:s}=t;try{let t=await c.g.currentAuthenticatedUser();if(!t||!t.attributes||!t.attributes.sub)return(0,y.p)(!1,"UNEXPECTED");return await c.g.changePassword(t,a,s),(0,y.p)(!0,null)}catch(t){return console.log("TCL: updatePassword -> error",t),(0,y.p)(!1,t.code)}}async function askResetPassword(t){let{email:a}=t;try{return await c.g.forgotPassword(a),(0,y.p)(!0,null)}catch(t){return console.log("TCL: resetPassword -> error",t),(0,y.p)(!1,t.code)}}async function resetPassword(t){let{email:a,newPassword:s,code:f}=t;try{return await c.g.forgotPasswordSubmit(a,f,s),(0,y.p)(!0,null)}catch(t){return console.log("TCL: resetPassword -> error",t),(0,y.p)(!1,t.code)}}},51043:function(t,a,s){"use strict";s.d(a,{$x:function(){return _},UQ:function(){return f},X9:function(){return m},Zd:function(){return g},fE:function(){return y},qm:function(){return p},sb:function(){return c},vt:function(){return v}});let c="https://gkuhhp3kz7.execute-api.eu-central-1.amazonaws.com/dev/",f="afm",p="".concat(f.toUpperCase(),"_TMP_ACCESS"),g="ENANTIO_LANGUAGE",m="es",v=!1,y=[{value:"es",label:"Espa\xf1ol"},{value:"en",label:"English"},{value:"it",label:"Italiano"},{value:"pt",label:"Portugu\xeas"},{value:"fr",label:"Fran\xe7ais"},{value:"de",label:"Deutsche"}],_=25},82017:function(t,a,s){"use strict";s.d(a,{Z:function(){return CountriesService}});var c=s(10552),f=s(89323);s(64090);var p=s(34489),g=s(49952);let m={code:10,iso:"NA99",nameLang:{en:"Not found",es:"No encontrado",it:"Non trovato"}};let CountriesService=class CountriesService{static async loadCountries(){try{var t;if(CountriesService.COUNTRIES_DATA.length>0)return;let{data:a}=await c.b.graphql({query:f.Ci,authMode:"API_KEY"});return CountriesService.COUNTRIES_DATA=(null==a?void 0:null===(t=a.listCountrys)||void 0===t?void 0:t.items)||[],(0,p.p)(!0,null)}catch(t){return console.log("loadCountries -> error",t),(0,p.p)(!1,t.id)}}static searchLocal(t,a){try{if(0===CountriesService.COUNTRIES_DATA.length)return[];let s=CountriesService.COUNTRIES_DATA.filter(s=>{let c=RegExp(g.Z.constructDiacriticRegext(t),"gi");return!s.hiddenFromSearch&&(String(s.id).indexOf(t)>=0||s.iso.toUpperCase().indexOf(t.toUpperCase())>
78=0||c.test(s.nameLang[a]))});return s.map(t=>({...t,currentLangName:t.nameLang[a]}))}catch(t){console.log("TCL: CountriesService -> searchLocal -> e",t)}return null}static getCountryFromCode(t){let a=CountriesService.COUNTRIES_DATA.filter(a=>a.id==t);return a&&a[0]?a[0]:m}static getCountryFromIso(t){let a=CountriesService.COUNTRIES_DATA.filter(a=>a.iso==t);return a&&a[0]?a[0]:m}static getCountryISOFromCode(t){let a=CountriesService.COUNTRIES_DATA.filter(a=>a.id==t);return a&&a[0]?a[0].iso:""}static getCountryCodeFromIso(t){let a=CountriesService.COUNTRIES_DATA.filter(a=>a.iso==t);return a&&a[0]?a[0].id:""}static iso2To3(t){return y[t]}static iso3To2(t){return _[t]}static getReporter(t,a,s){return"1"===t||"2"===t?s:a}};CountriesService.COUNTRIES_DATA=[],CountriesService.getCountryCoordiatesByIso2=function(t){let a=CountriesService.iso2To3(t),s=v.filter(t=>t.iso==a);return s&&s.length>0?s[0]:null};let v=[{code:10,iso:"ATA",coordinates:{lat:"-79.3344",lng:"20.313"},name:{en:"Antarctica",es:"Ant\xe1rtida",it:"Antartide"}},{code:16,iso:"ASM",coordinates:{lat:"-14.316",lng:"-170.76"},name:{en:"American Samoa",es:"Samoa Americana",it:"Samoa americane"}},{code:74,iso:"BVT",coordinates:{lat:"-54.417",lng:"3.419"},name:{en:"Bouvet Island",es:"Isla Bouvet",it:"Isola di Bouvet"}},{code:80,iso:"",coordinates:{lat:"",lng:""},name:{en:"Br. Antarctic Terr.",es:"Territorios Ant\xe1rticos Brit\xe1nicos",it:"British Antartic Terr."}},{code:86,iso:"IOT",coordinates:{lat:"",lng:""},name:{en:"Br. Indian Ocean Terr.",es:"Territorio Brit\xe1nico del Oc\xe9ano \xcdndico",it:"Territorio Britannico dell'Oceano Indiano"}},{code:92,iso:"VGB",coordinates:{lat:"",lng:""},name:{en:"Br. Virgin Isds",es:"Islas V\xedrgenes Brit\xe1nicas",it:"Isole Vergini Britanniche"}},{code:129,iso:"",coordinates:{lat:"",lng:""},name:{en:"Caribbean, nes",es:"Caribe, nes",it:"Caraibi, nes"}},{code:162,iso:"CXR",coordinates:{lat:"-10.442",lng:"105.69"},name:{en:"Christmas Isds",es:"Isla de Navidad",it:"Isd di Natale"}},{code:166,iso:"CCK",coordinates:{lat:"-12.171",lng:"96.855"},name:{en:"Cocos Isds",es:"Islas Cocos (Keeling)",it:"Cocos Isds"}},{code:238,iso:"FLK",coordinates:{lat:"-51.663",lng:"-58.685"},name:{en:"Falkland Isds (Malvinas)",es:"Islas Malvinas",it:"Isole Falkland (Malvinas)"}},{code:239,iso:"SGS",coordinates:{lat:"-54.261",lng:"-36.784"},name:{en:"South Georgia and the South Sandwich Islands",es:"Islas Georgias del Sur y Sandwich del Sur",it:"Georgia meridionale e le isole Sandwich meridionali"}},{code:260,iso:"ATF",coordinates:{lat:"",lng:""},name:{en:"Fr. South Antarctic Terr.",es:"Territorios Australes y Ant\xe1rticas Franceses",it:"Territori francesi meridionali e antartici"}},{code:290,iso:"",coordinates:{lat:"",lng:""},name:{en:"Northern Africa, nes",es:"Norte de \xc1frica, nes",it:"Africa settentrionale, nes"}},{code:292,iso:"GIB",coordinates:{lat:"36.1323",lng:"-5.3478"},name:{en:"Gibraltar",es:"Gibraltar",it:"Gibilterra"}},{code:334,iso:"HMD",coordinates:{lat:"-53.101",lng:"73.526"},name:{en:"Heard Island and McDonald Islands",es:"Islas Heard y McDonald",it:"Heard Island e McDonald Islands"}},{code:336,iso:"VAT",coordinates:{lat:"41.9034",lng:"12.4524"},name:{en:"Holy See (Vatican City State)",es:"Ciudad del Vaticano",it:"Santa Sede (Citt\xe1 del Vaticano)"}},{code:473,iso:"",coordinates:{lat:"",lng:""},name:{en:"LAIA, nes",es:"LAIA, nes",it:"LAIA, nes"}},{code:490,iso:"TWN",coordinates:{lat:"23.4747318",lng:"117.8402288"},name:{en:"Taiwan",es:"Taiwan",it:"Taiwan"}},{code:492,iso:"",coordinates:{lat:"",lng:""},name:{en:"Europe EU, nes",es:"Europa EU, nes",it:"Europa Unione europea, nes"}},{code:527,iso:"",coordinates:{lat:"",lng:""},name:{en:"Oceania, nes",es:"Ocean\xeda, nes",it:"Oceania, nes"}},{code:531,iso:"CUW",coordinates:{lat:"12.166",lng:"-69"},name:{en:"Cura\xe7ao",es:"Cura\xe7ao",it:"Curacao"}},{code:534,iso:"SXM",coordinates:{lat:"18.041",lng:"-63.066"},name:{en:"Saint Maarten",es:"Saint Maarten",it:"Saint Maarten"}},{code:535,iso:"BES",coordinates:{lat:"12.212",lng:"-68.294"},name:{en:"Bonaire",es:"Bonaire",it:"Bonaire"}},{code:536,iso:"",coordinates:{lat:"",lng:""},name:{en:"Neutral Zone",es:"Zona Neutral",it:"Zona Neutrale"}},{code:568,iso:"",coordinates:{lat:"",lng:""},name:{en:"Other Europe, nes",es:"Otros Europa, nes",it:"Altro Europa, nes"}},{code:570,iso:"NIU",coordinates:{lat:"-19.033",lng:"-169.86"},name:{en:"Niue",es:"Niue",it:"Niue"}},{code:574,iso:"NFK",coordinates:{lat:"-29.035",lng:"167.954"},name:{en:"Norfolk Isds",es:"Isla Norfolk",it:"Norfolk Isds"}},{code:577,iso:"",coordinates:{lat:"",lng:""},name:{en:"Other Africa, nes",es:"Otros \xc1frica, nes",it:"Altro Africa, nes"}},{code:580,iso:"MNP",coordinates:{lat:"15.18",lng:"145.72"},name:{en:"N. Mariana Isds",es:"Islas Marianas del Norte",it:"Isole Marianne settentrionali"}},{code:581,iso:"UMI",coordinates:{lat:"5.875",lng:"-162.05"},name:{en:"United States Minor Outlying Islands",es:"Islas Ultramarinas Menores de EstadosUnidos",it:"Isole Minori Esterne degli Stati Uniti"}}
78,{code:584,iso:"MHL",coordinates:{lat:"5.961",lng:"169.651"},name:{en:"Marshall Isds",es:"Islas Marshall",it:"Marshall Isds"}},{code:612,iso:"PCN",coordinates:{lat:"-24.332",lng:"-128.34"},name:{en:"Pitcairn",es:"Islas Pitcairn",it:"Pitcairn"}},{code:636,iso:"",coordinates:{lat:"",lng:""},name:{en:"Rest of America, nes",es:"Resto de Am\xe9rica, nes",it:"Resto d'America, nomini"}},{code:637,iso:"",coordinates:{lat:"",lng:""},name:{en:"North America and Central America, nes",es:"Norte Am\xe9rica y Centroam\xe9rica, nes",it:"Nord America e America Centrale, nes"}},{code:652,iso:"BLM",coordinates:{lat:"17.903",lng:"-62.832"},name:{en:"Saint Bartholemy",es:"San Bartolom\xe9",it:"San Bartolomeo"}},{code:654,iso:"SHN",coordinates:{lat:"-40.289",lng:"-10.033"},name:{en:"Saint Helena",es:"Santa Elena",it:"Saint Helena"}},{code:659,iso:"KNA",coordinates:{lat:"17.147",lng:"-62.58"},name:{en:"Saint Kitts and Nevis",es:"San Crist\xf3bal y Nieves",it:"Saint Kitts e Nevis"}},{code:666,iso:"SPM",coordinates:{lat:"47.036",lng:"-56.321"},name:{en:"Saint Pierre and Miquelon",es:"San Pedro y Miquel\xf3n",it:"Saint Pierre e Miquelon"}},{code:674,iso:"SMR",coordinates:{lat:"43.934",lng:"12.454"},name:{en:"San Marino",es:"San Marino",it:"San Marino"}},{code:732,iso:"ESH",coordinates:{lat:"24.4813",lng:"-13.6266"},name:{en:"Western Sahara",es:"Sahara Occidental",it:"Sahara occidentale"}},{code:772,iso:"TKL",coordinates:{lat:"-8.571",lng:"-172.48"},name:{en:"Tokelau",es:"Tokelau",it:"Tokelau"}},{code:837,iso:"",coordinates:{lat:"",lng:""},name:{en:"Bunkers",es:"Bunkers",it:"bunkers"}},{code:838,iso:"",coordinates:{lat:"",lng:""},name:{en:"Free Zones",es:"Free Zones",it:"Zone libere"}},{code:839,iso:"",coordinates:{lat:"",lng:""},name:{en:"Special Categories",es:"Categor\xedas Especiales",it:"Categorie speciali"}},{code:849,iso:"",coordinates:{lat:"",lng:""},name:{en:"US Misc. Pacific Isds",es:"Islas Pac\xedficas Misc. EE.UU.",it:"Isole del Pacifico Misc."}},{code:876,iso:"WLF",coordinates:{lat:"-13.262",lng:"-176.15"},name:{en:"Wallis and Futuna Isds",es:"Wallis y Futuna",it:"Wallis e Futuna"}},{code:879,iso:"",coordinates:{lat:"",lng:""},name:{en:"Western Asia, nes",es:"Asia Occidental, nes",it:"Asia Occidentale, nes"}},{code:899,iso:"",coordinates:{lat:"",lng:""},name:{en:"Areas, nes",es:"Areas, nes",it:"Aree, n"}},{code:4,iso:"AFG",coordinates:{lat:"34.023",lng:"65.5267"},name:{en:"Afghanistan",es:"Afganist\xe1n",it:"Afghanistan"},publicUrl:{en:"afghanistan",es:"afganistan",it:"afghanistan"}},{code:8,iso:"ALB",coordinates:{lat:"40.654",lng:"20.076"},name:{en:"Albania",es:"Albania",it:"Albania"},publicUrl:{en:"albania",es:"albania",it:"albania"}},{code:276,iso:"DEU",coordinates:{lat:"51.3819",lng:"9.9877"},name:{en:"Germany",es:"Alemania",it:"Germania"},publicUrl:{en:"germany",es:"alemania",it:"germania"}},{code:12,iso:"DZA",coordinates:{lat:"28.6045",lng:"2.64"},name:{en:"Algeria",es:"Algeria",it:"algeria"},publicUrl:{en:"algeria",es:"algeria",it:"algeria"}},{code:20,iso:"AND",coordinates:{lat:"42.541",lng:"1.546"},name:{en:"Andorra",es:"Andorra",it:"Andorra"},publicUrl:{en:"andorra",es:"andorra",it:"andorra"}},{code:24,iso:"AGO",coordinates:{lat:"-12.836",lng:"17.808"},name:{en:"Angola",es:"Angola",it:"angola"},publicUrl:{en:"angola",es:"angola",it:"angola"}},{code:660,iso:"AIA",coordinates:{lat:"18.245",lng:"-63.023"},name:{en:"Anguilla",es:"Anguila",it:"Anguilla"},publicUrl:{en:"anguilla",es:"anguila",it:"anguilla"}},{code:28,iso:"ATG",coordinates:{lat:"17.625",lng:"-61.786"},name:{en:"Antigua and Barbuda",es:"Antigua y Barbuda",it:"Antigua e Barbuda"},publicUrl:{en:"antigua-and-barbuda",es:"antigua-y-barbuda",it:"antigua-e-barbuda"}},{code:530,iso:"ANT",coordinates:{lat:"12.165",lng:"-68.937"},name:{en:"Neth. Antilles",es:"Antillas Neerlandesas",it:"Neth. Antilles"},publicUrl:{en:"neth-antilles",es:"antillas-neerlandesas",it:"neth-antilles"}},{code:682,iso:"SAU",coordinates:{lat:"24.191",lng:"44.32"},name:{en:"Saudi Arabia",es:"Arabia Saudita",it:"Arabia Saudita"},publicUrl:{en:"saudi-arabia",es:"arabia-saudita",it:"arabia-saudita"}},{code:32,iso:"ARG",coordinates:{lat:"-33.166",lng:"-64.31"},name:{en:"Argentina",es:"Argentina",it:"Argentina"},publicUrl:{en:"argentina",es:"argentina",it:"argentina"}},{code:51,iso:"ARM",coordinates:{lat:"40.56",lng:"44.449"},name:{en:"Armenia",es:"Armenia",it:"Armenia"},publicUrl:{en:"armenia",es:"armenia",it:"armenia"}},{code:533,iso:"ABW",coordinates:{lat:"12.556",lng:"-70.024"},name:{en:"Aruba",es:"Aruba",it:"aruba"},publicUrl:{en:"aruba",es:"aruba",it:"aruba"}},{code:36,iso:"AUS",coordinates:{lat:"-24.578",lng:"133.582"},name:{en:"Australia",es:"Australia",it:"Australia"},publicUrl:{en:"australia",es:"australia",it:"australia"}},{code:40,iso:"AUT",coordinates:{lat:"47.65",lng:"14.705"},name:{en:"Austria",es:"Austria",it:"Austria"},publicUrl:{en:"austria",es:"austria",it:"austria"}},{code:31,iso:"AZE",coordinates:{lat:"40.46",lng:"47.883"},name:{en:"Azerbaijan",es:"Azerbay\xe1n",it:"Azerbaijan"},publicUrl:{en:"azerbaijan",es:"azerbayan",it:"azerbaijan"}},{code:56,iso:"BEL",coordinates:{lat:"50.6745",lng:"4.4588"},name:{en:"Belgium",es:"B\xe9lgica",it:"Belgio"},publicUrl:{en:"belgium",es:"belgica",it:"belgio"}},{code:44,iso:"BHS",coordinates:{lat:"24.616",lng:"-77.989"},name:{en:"Bahamas",es:"Bahamas",it:"Bahamas"},publicUrl:{en:"bahamas",es:"bahamas",it:"bahamas"}},{code:48,iso:"BHR",coordinates:{lat:"26.028",lng:"50.55"},name:{en:"Bahrain",es:"Bahrein",it:"Bahrain"},publicUrl:{en:"bahrain",es:"bahrein",it:"bahrain"}},{code:50,iso:"BGD",coordinates:{lat:"24.598",lng:"90.1963"},name:{en:"Bangladesh",es:"Bangladesh",it:"Bangladesh"},publicUrl:{en:"bangladesh",es:"bangladesh",it:"bangladesh"}},{code:52,iso:"BRB",coordinates:{lat:"13.147",lng:"-59.557"},name:{en:"Barbados",es:"Barbados",it:"Barbados"},publicUrl:{en:"barbados",es:"barbados",it:"barbados"}},{code:84,iso:"BLZ",coordinates:{lat:"17.108",lng:"-88.744"},name:{en:"Belize",es:"Belice",it:"Belize"},publicUrl:{en:"belize",es:"belice",it:"belize"}},{code:204,iso:"BEN",coordinates:{lat:"10.478",lng:"2.274"},name:{en:"Benin",es:"Ben\xedn",it:"Benin"},publicUrl:{en:"benin",es:"benin",it:"benin"}},{code:64,iso:"BTN",coordinates:{lat:"27.4902",lng:"90.2151"},name:{en:"Bhutan",es:"Bhut\xe1n",it:"Bhutan"},publicUrl:{en:"bhutan",es:"bhutan",it:"bhutan"}},{code:112,iso:"BLR",coordinates:{lat:"53.3292",lng:"27.9492"},name:{en:"Belarus",es:"Bielorrusia",it:"Bielorussia"},publicUrl:{en:"belarus",es:"bielorrusia",it:"bielorussia"}}
78,{code:104,iso:"MMR",coordinates:{lat:"21.841",lng:"96.05"},name:{en:"Myanmar",es:"Birmania",it:"Myanmar"},publicUrl:{en:"myanmar",es:"birmania",it:"myanmar"}},{code:68,iso:"BOL",coordinates:{lat:"-16.71",lng:"-65.183"},name:{en:"Bolivia",es:"Bolivia",it:"Bolivia"},publicUrl:{en:"bolivia",es:"bolivia",it:"bolivia"}},{code:70,iso:"BIH",coordinates:{lat:"44.342",lng:"17.804"},name:{en:"Bosnia Herzegovina",es:"Bosnia y Herzegovina",it:"Bosnia Erzegovina"},publicUrl:{en:"bosnia-herzegovina",es:"bosnia-y-herzegovina",it:"bosnia-erzegovina"}},{code:72,iso:"BWA",coordinates:{lat:"-22.126",lng:"23.662"},name:{en:"Botswana",es:"Botsuana",it:"Botswana"},publicUrl:{en:"botswana",es:"botsuana",it:"botswana"}},{code:76,iso:"BRA",coordinates:{lat:"-11.694",lng:"-48.978"},name:{en:"Brazil",es:"Brasil",it:"Brasile"},publicUrl:{en:"brazil",es:"brasil",it:"brasile"}},{code:96,iso:"BRN",coordinates:{lat:"4.452",lng:"114.557"},name:{en:"Brunei Darussalam",es:"Brun\xe9i",it:"Brunei Darussalam"},publicUrl:{en:"brunei-darussalam",es:"brunei",it:"brunei-darussalam"}},{code:100,iso:"BGR",coordinates:{lat:"42.625",lng:"24.521"},name:{en:"Bulgaria",es:"Bulgaria",it:"Bulgaria"},publicUrl:{en:"bulgaria",es:"bulgaria",it:"bulgaria"}},{code:854,iso:"BFA",coordinates:{lat:"12.673",lng:"-1.226"},name:{en:"Burkina Faso",es:"Burkina Faso",it:"Burkina Faso"},publicUrl:{en:"burkina-faso",es:"burkina-faso",it:"burkina-faso"}},{code:108,iso:"BDI",coordinates:{lat:"-3.333",lng:"29.749"},name:{en:"Burundi",es:"Burundi",it:"Burundi"},publicUrl:{en:"burundi",es:"burundi",it:"burundi"}},{code:132,iso:"CPV",coordinates:{lat:"15.416",lng:"-23.36"},name:{en:"Cabo Verde",es:"Cabo Verde",it:"Cabo Verde"},publicUrl:{en:"cabo-verde",es:"cabo-verde",it:"cabo-verde"}},{code:116,iso:"KHM",coordinates:{lat:"12.69",lng:"104.444"},name:{en:"Cambodia",es:"Camboya",it:"Cambogia"},publicUrl:{en:"cambodia",es:"camboya",it:"cambogia"}},{code:120,iso:"CMR",coordinates:{lat:"4.4",lng:"12.131"},name:{en:"Cameroon",es:"Camer\xfan",it:"Camerun"},publicUrl:{en:"cameroon",es:"camerun",it:"camerun"}},{code:124,iso:"CAN",coordinates:{lat:"59.2067",lng:"-111.1937"},name:{en:"Canada",es:"Canad\xe1",it:"Canada"},publicUrl:{en:"canada",es:"canada",it:"canada"}},{code:148,iso:"TCD",coordinates:{lat:"15.981",lng:"18.781"},name:{en:"Chad",es:"Chad",it:"Chad"},publicUrl:{en:"chad",es:"chad",it:"chad"}},{code:152,iso:"CHL",coordinates:{lat:"-23.176",lng:"-69.201"},name:{en:"Chile",es:"Chile",it:"Chile"},publicUrl:{en:"chile",es:"chile",it:"chile"}},{code:156,iso:"CHN",coordinates:{lat:"35.1753",lng:"99.3877"},name:{en:"China",es:"China",it:"Cina"},publicUrl:{en:"china",es:"china",it:"cina"}},{code:196,iso:"CYP",coordinates:{lat:"34.894",lng:"32.928"},name:{en:"Cyprus",es:"Chipre",it:"Cipro"},publicUrl:{en:"cyprus",es:"chipre",it:"cipro"}},{code:170,iso:"COL",coordinates:{lat:"3.794",lng:"-73.606"},name:{en:"Colombia",es:"Colombia",it:"Colombia"},publicUrl:{en:"colombia",es:"colombia",it:"colombia"}},{code:174,iso:"COM",coordinates:{lat:"-11.755",lng:"43.342"},name:{en:"Comoros",es:"Comoras",it:"Comoros"},publicUrl:{en:"comoros",es:"comoras",it:"comoros"}},{code:178,iso:"COG",coordinates:{lat:"0.509",lng:"16.08"},name:{en:"Congo",es:"Congo",it:"Congo"},publicUrl:{en:"congo",es:"congo",it:"congo"}},{code:180,iso:"COD",coordinates:{lat:"-1.418",lng:"23.607"},name:{en:"Dem. Rep. of the Congo",es:"Rep. Dem. del Congo",it:"Congo-Kinshasa"},publicUrl:{en:"dem-rep-of-the-congo",es:"congo",it:"congo-kinshasa"}},{code:408,iso:"PRK",coordinates:{lat:"39.767",lng:"126.389"},name:{en:"North Korea",es:"Corea del Norte",it:"Corea del Nord"},publicUrl:{en:"dem-peoples-rep-of-korea",es:"corea-del-norte",it:"corea-del-nord"}},{code:410,iso:"KOR",coordinates:{lat:"36.338",lng:"128.16"},name:{en:"South Korea",es:"Corea del Sur",it:"Corea del Sud"},publicUrl:{en:"rep-of-korea",es:"corea-del-sur",it:"Corea-del-sud"}},{code:384,iso:"CIV",coordinates:{lat:"7.497",lng:"-5.336"},name:{en:'"C\xf4te d\'Ivoire"',es:"Costa de Marfil",it:'"Costa d\'Avorio"'},publicUrl:{en:"cote-divoire",es:"costa-de-marfil",it:'"costa-d\'avorio"'}},{code:188,iso:"CRI",coordinates:{lat:"10.126",lng:"-84.075"}
78,name:{en:"Costa Rica",es:"Costa Rica",it:"Costa Rica"},publicUrl:{en:"costa-rica",es:"costa-rica",it:"costa-rica"}},{code:191,iso:"HRV",coordinates:{lat:"45.754",lng:"16.385"},name:{en:"Croatia",es:"Croacia",it:"Croazia"},publicUrl:{en:"croatia",es:"croacia",it:"croazia"}},{code:192,iso:"CUB",coordinates:{lat:"20.571",lng:"-76.456"},name:{en:"Cuba",es:"Cuba",it:"Cuba"},publicUrl:{en:"cuba",es:"cuba",it:"cuba"}},{code:208,iso:"DNK",coordinates:{lat:"56.113",lng:"9.096"},name:{en:"Denmark",es:"Dinamarca",it:"Danimarca"},publicUrl:{en:"denmark",es:"dinamarca",it:"danimarca"}},{code:212,iso:"DMA",coordinates:{lat:"15.458",lng:"-61.35"},name:{en:"Dominica",es:"Dominica",it:"Dominica"},publicUrl:{en:"dominica",es:"dominica",it:"dominica"}},{code:218,iso:"ECU",coordinates:{lat:"-1.151",lng:"-78.308"},name:{en:"Ecuador",es:"Ecuador",it:"Ecuador"},publicUrl:{en:"ecuador",es:"ecuador",it:"ecuador"}},{code:818,iso:"EGY",coordinates:{lat:"26.16",lng:"28.742"},name:{en:"Egypt",es:"Egipto",it:"Egitto"},publicUrl:{en:"egypt",es:"egipto",it:"egitto"}},{code:222,iso:"SLV",coordinates:{lat:"13.848",lng:"-89.229"},name:{en:"El Salvador",es:"El Salvador",it:"El Salvador"},publicUrl:{en:"el-salvador",es:"el-salvador",it:"el-salvador"}},{code:784,iso:"ARE",coordinates:{lat:"23.9299",lng:"53.9031"},name:{en:"United Arab Emirates",es:"Emiratos \xc1rabes Unidos",it:"Emirati Arabi Uniti"},publicUrl:{en:"united-arab-emirates",es:"emiratos-arabes-unidos",it:"emirati-arabi-uniti"}},{code:232,iso:"ERI",coordinates:{lat:"15.982",lng:"38.02"},name:{en:"Eritrea",es:"Eritrea",it:'"l\'Eritrea"'},publicUrl:{en:"eritrea",es:"eritrea",it:'"l\'eritrea"'}},{code:703,iso:"SVK",coordinates:{lat:"48.8595",lng:"19.4434"},name:{en:"Slovakia",es:"Eslovaquia",it:"Slovacchia"},publicUrl:{en:"slovakia",es:"eslovaquia",it:"slovacchia"}},{code:705,iso:"SVN",coordinates:{lat:"46.037",lng:"14.534"},name:{en:"Slovenia",es:"Eslovenia",it:"Slovenia"},publicUrl:{en:"slovenia",es:"eslovenia",it:"slovenia"}},{code:724,iso:"ESP",coordinates:{lat:"40.617",lng:"-3.388"},name:{en:"Spain",es:"Espa\xf1a",it:"Spagna"},publicUrl:{en:"spain",es:"espana",it:"spagna"}},{code:842,iso:"USA",coordinates:{lat:"40.0792",lng:"-98.8164"},name:{en:"United States",es:"Estados Unidos",it:"Stati Uniti"},publicUrl:{en:"united-states",es:"estados-unidos",it:"stati-uniti"}},{code:233,iso:"EST",coordinates:{lat:"58.777",lng:"25.977"},name:{en:"Estonia",es:"Estonia",it:"Estonia"},publicUrl:{en:"estonia",es:"estonia",it:"estonia"}},{code:231,iso:"ETH",coordinates:{lat:"8.435",lng:"38.786"},name:{en:"Ethiopia",es:"Etiop\xeda",it:"Etiopia"},publicUrl:{en:"ethiopia",es:"etiopia",it:"etiopia"}},{code:608,iso:"PHL",coordinates:{lat:"17.181",lng:"121.256"},name:{en:"Philippines",es:"Filipinas",it:"Filippine"},publicUrl:{en:"philippines",es:"filipinas",it:"filippine"}},{code:246,iso:"FIN",coordinates:{lat:"62.716",lng:"26.192"},name:{en:"Finland",es:"Finlandia",it:"Finlandia"},publicUrl:{en:"finland",es:"finlandia",it:"finlandia"}},{code:242,iso:"FJI",coordinates:{lat:"-17.15",lng:"177.186"},name:{en:"Fiji",es:"Fiyi",it:"Fiji"},publicUrl:{en:"fiji",es:"fiyi",it:"fiji"}},{code:251,iso:"FRA",coordinates:{lat:"46.656",lng:"2.543"},name:{en:"France",es:"Francia",it:"Francia"},publicUrl:{en:"france",es:"francia",it:"francia"}},{code:266,iso:"GAB",coordinates:{lat:"-0.406",lng:"11.914"},name:{en:"Gabon",es:"Gab\xf3n",it:"Gabon"},publicUrl:{en:"gabon",es:"gabon",it:"gabon"}},{code:270,iso:"GMB",coordinates:{lat:"13.499",lng:"-14.641"},name:{en:"Gambia",es:"Gambia",it:"Gambia"}
78,publicUrl:{en:"gambia",es:"gambia",it:"gambia"}},{code:268,iso:"GEO",coordinates:{lat:"42.05",lng:"43.576"},name:{en:"Georgia",es:"Georgia",it:"Georgia"},publicUrl:{en:"georgia",es:"georgia",it:"georgia"}},{code:288,iso:"GHA",coordinates:{lat:"7.258",lng:"-1.062"},name:{en:"Ghana",es:"Ghana",it:"Ghana"},publicUrl:{en:"ghana",es:"ghana",it:"ghana"}},{code:308,iso:"GRD",coordinates:{lat:"12.107",lng:"-61.681"},name:{en:"Grenada",es:"Granada",it:"Grenada"},publicUrl:{en:"grenada",es:"granada",it:"grenada"}},{code:300,iso:"GRC",coordinates:{lat:"39.787",lng:"21.617"},name:{en:"Greece",es:"Grecia",it:"Grecia"},publicUrl:{en:"greece",es:"grecia",it:"grecia"}},{code:304,iso:"GRL",coordinates:{lat:"71",lng:"-39"},name:{en:"Greenland",es:"Groenlandia",it:"Groenlandia"},publicUrl:{en:"greenland",es:"groenlandia",it:"groenlandia"}},{code:316,iso:"GUM",coordinates:{lat:"13.37",lng:"144.7"},name:{en:"Guam",es:"Guam",it:"Guam"},publicUrl:{en:"guam",es:"guam",it:"guam"}},{code:320,iso:"GTM",coordinates:{lat:"15.124",lng:"-90.711"},name:{en:"Guatemala",es:"Guatemala",it:"Guatemala"},publicUrl:{en:"guatemala",es:"guatemala",it:"guatemala"}},{code:324,iso:"GIN",coordinates:{lat:"10.599",lng:"-10.907"},name:{en:"Guinea",es:"Guinea",it:"Guinea"},publicUrl:{en:"guinea",es:"guinea",it:"guinea"}},{code:226,iso:"GNQ",coordinates:{lat:"1.596",lng:"10.553"},name:{en:"Equatorial Guinea",es:"Guinea Ecuatorial",it:"Guinea Equatoriale"},publicUrl:{en:"equatorial-guinea",es:"guinea-ecuatorial",it:"guinea-equatoriale"}},{code:624,iso:"GNB",coordinates:{lat:"12.191",lng:"-14.475"},name:{en:"Guinea Bissau",es:"Guinea Bissau",it:"Guinea Bissau"},publicUrl:{en:"guinea-bissau",es:"guinea-bissau",it:"guinea-bissau"}},{code:328,iso:"GUY",coordinates:{lat:"5.17",lng:"-58.939"},name:{en:"Guyana",es:"Guyana",it:"Guyana"},publicUrl:{en:"guyana",es:"guyana",it:"guyana"}},{code:332,iso:"HTI",coordinates:{lat:"19.3175",lng:"-72.4205"},name:{en:"Haiti",es:"Hait\xed",it:"Haiti"},publicUrl:{en:"haiti",es:"haiti",it:"haiti"}}
78,{code:340,iso:"HND",coordinates:{lat:"14.881",lng:"-87.123"},name:{en:"Honduras",es:"Honduras",it:"Honduras"},publicUrl:{en:"honduras",es:"honduras",it:"honduras"}},{code:344,iso:"HKG",coordinates:{lat:"22.436",lng:"114.099"},name:{en:"Hong Kong",es:"Hong kong",it:"Hong Kong"},publicUrl:{en:"hong-kong",es:"hong-kong",it:"hong-kong"}},{code:348,iso:"HUN",coordinates:{lat:"47.174",lng:"19.618"},name:{en:"Hungary",es:"Hungr\xeda",it:"Ungheria"},publicUrl:{en:"hungary",es:"hungria",it:"ungheria"}},{code:699,iso:"IND",coordinates:{lat:"22.741",lng:"78.236"},name:{en:"India",es:"India",it:"India"},publicUrl:{en:"india",es:"india",it:"india"}},{code:360,iso:"IDN",coordinates:{lat:"-0.739",lng:"114.045"},name:{en:"Indonesia",es:"Indonesia",it:"Indonesia"},publicUrl:{en:"indonesia",es:"indonesia",it:"indonesia"}},{code:364,iso:"IRN",coordinates:{lat:"33.408",lng:"54.0418"},name:{en:"Iran",es:"Ir\xe1n",it:"Ho corso"},publicUrl:{en:"iran",es:"iran",it:"ho-corso"}},{code:368,iso:"IRQ",coordinates:{lat:"33.545",lng:"43.278"},name:{en:"Iraq",es:"Irak",it:"Iraq"},publicUrl:{en:"iraq",es:"irak",it:"iraq"}},{code:372,iso:"IRL",coordinates:{lat:"53.214",lng:"-7.588"},name:{en:"Ireland",es:"Irlanda",it:"Irlanda"},publicUrl:{en:"ireland",es:"irlanda",it:"irlanda"}},{code:352,iso:"ISL",coordinates:{lat:"64.826",lng:"-18.417"},name:{en:"Iceland",es:"Islandia",it:"Islanda"},publicUrl:{en:"iceland",es:"islandia",it:"islanda"}},{code:60,iso:"BMU",coordinates:{lat:"32.3",lng:"-64.761"},name:{en:"Bermuda",es:"Islas Bermudas",it:"Bermuda"},publicUrl:{en:"bermuda",es:"islas-bermudas",it:"bermuda"}},{code:136,iso:"CYM",coordinates:{lat:"19.331",lng:"-81.25"},name:{en:"Cayman Isds",es:"Islas Caim\xe1n",it:"Cayman Isds"},publicUrl:{en:"cayman-isds",es:"islas-caiman",it:"cayman-isds"}},{code:184,iso:"COK",coordinates:{lat:"-21.202",lng:"-159.82"},name:{en:"Cook Isds",es:"Islas Cook",it:"Cook Isds"},publicUrl:{en:"cook-isds",es:"islas-cook",it:"cook-isds"}},{code:234,iso:"FRO",coordinates:{lat:"62.053",lng:"-6.863"},name:{en:"Faeroe Isds",es:"Islas Feroe",it:"Isole Faeroe"},publicUrl:{en:"faeroe-isds",es:"islas-feroe",it:"isole-faeroe"}},{code:462,iso:"MDV",coordinates:{lat:"4.221",lng:"73.463"},name:{en:"Maldives",es:"Islas Maldivas",it:"Maldive"},publicUrl:{en:"maldives",es:"islas-maldivas",it:"maldive"}},{code:90,iso:"SLB",coordinates:{lat:"-9.611",lng:"160.19"},name:{en:"Solomon Isds",es:"Islas Salom\xf3n",it:"Isole di Salomone"},publicUrl:{en:"solomon-isds",es:"islas-salomon",it:"isole-di-salomone"}},{code:796,iso:"TCA",coordinates:{lat:"21.816",lng:"-71.799"},name:{en:"Turks and Caicos Isds",es:"Islas Turcas y Caicos",it:"Isole Turche e Caicos"},publicUrl:{en:"turks-and-caicos-isds",es:"islas-turcas-y-caicos",it:"isole-turche-e-caicos"}},{code:376,iso:"ISR",coordinates:{lat:"30.992",lng:"34.834"},name:{en:"Israel",es:"Israel",it:"Israele"},publicUrl:{en:"israel",es:"israel",it:"israele"}},{code:381,iso:"ITA",coordinates:{lat:"44.3713",lng:"11.1084"},name:{en:"Italy",es:"Italia",it:"Italia"},publicUrl:{en:"italy",es:"italia",it:"italia"}},{code:388,iso:"JAM",coordinates:{lat:"18.163",lng:"-77.477"},name:{en:"Jamaica",es:"Jamaica",it:"Giamaica"},publicUrl:{en:"jamaica",es:"jamaica",it:"giamaica"}},{code:392,iso:"JPN",coordinates:{lat:"35.962",lng:"137.855"},name:{en:"Japan",es:"Jap\xf3n",it:"Giappone"},publicUrl:{en:"japan",es:"japon",it:"giappone"}},{code:400,iso:"JOR",coordinates:{lat:"30.681",lng:"36.279"},name:{en:"Jordan",es:"Jordania",it:"Giordania"},publicUrl:{en:"jordan",es:"jordania",it:"giordania"}},{code:398,iso:"KAZ",coordinates:{lat:"48.866",lng:"69.772"},name:{en:"Kazakhstan",es:"Kazajist\xe1n",it:"Kazakistan"},publicUrl:{en:"kazakhstan",es:"kazajistan",it:"kazakistan"}},{code:404,iso:"KEN",coordinates:{lat:"0.806",lng:"38.166"},name:{en:"Kenya",es:"Kenia",it:"Kenia"},publicUrl:{en:"kenya",es:"kenia",it:"kenia"}},{code:417,iso:"KGZ",coordinates:{lat:"41.741",lng:"75.043"},name:{en:"Kyrgyzstan",es:"Kirgizst\xe1n",it:"Kyrgyzstan"},publicUrl:{en:"kyrgyzstan",es:"kirgizstan",it:"kyrgyzstan"}},{code:296,iso:"KIR",coordinates:{lat:"2.048",lng:"-158.59"},name:{en:"Kiribati",es:"Kiribati",it:"Kiribati"},publicUrl:{en:"kiribati",es:"kiribati",it:"kiribati"}}
78,{code:414,iso:"KWT",coordinates:{lat:"29.396",lng:"47.326"},name:{en:"Kuwait",es:"Kuwait",it:"Kuwait"},publicUrl:{en:"kuwait",es:"kuwait",it:"kuwait"}},{code:422,iso:"LBN",coordinates:{lat:"34.161",lng:"36.021"},name:{en:"Lebanon",es:"L\xedbano",it:"Libano"},publicUrl:{en:"lebanon",es:"libano",it:"libano"}},{code:418,iso:"LAO",coordinates:{lat:"19.595",lng:"102.538"},name:{en:'"Lao People\'s Dem. Rep."',es:"Laos",it:"Democrazia popolare di Lao"},publicUrl:{en:"lao-peoples-dem-rep",es:"laos",it:"democrazia-popolare-di-lao"}},{code:426,iso:"LSO",coordinates:{lat:"-29.446",lng:"28.371"},name:{en:"Lesotho",es:"Lesoto",it:"Lesoto"},publicUrl:{en:"lesotho",es:"lesoto",it:"lesoto"}},{code:428,iso:"LVA",coordinates:{lat:"57.017",lng:"25.0173"},name:{en:"Latvia",es:"Letonia",it:"Lettonia"},publicUrl:{en:"latvia",es:"letonia",it:"lettonia"}},{code:430,iso:"LBR",coordinates:{lat:"6.51",lng:"-9.33"},name:{en:"Liberia",es:"Liberia",it:"Liberia"},publicUrl:{en:"liberia",es:"liberia",it:"liberia"}},{code:434,iso:"LBY",coordinates:{lat:"27.24",lng:"17.571"},name:{en:"Libya",es:"Libia",it:"Libia"},publicUrl:{en:"libya",es:"libia",it:"libia"}},{code:440,iso:"LTU",coordinates:{lat:"55.342",lng:"24.23"},name:{en:"Lithuania",es:"Lituania",it:"Lituania"},publicUrl:{en:"lithuania",es:"lituania",it:"lituania"}},{code:442,iso:"LUX",coordinates:{lat:"49.671",lng:"6.113"},name:{en:"Luxembourg",es:"Luxemburgo",it:"Lussemburgo"},publicUrl:{en:"luxembourg",es:"luxemburgo",it:"lussemburgo"}},{code:484,iso:"MEX",coordinates:{lat:"22.925",lng:"-101.68"},name:{en:"Mexico",es:"M\xe9xico",it:"Messico"},publicUrl:{en:"mexico",es:"mexico",it:"messico"}},{code:446,iso:"MAC",coordinates:{lat:"22.132",lng:"113.558"},name:{en:"Macao",es:"Macao",it:"Macao"},publicUrl:{en:"macao",es:"macao",it:"macao"}},{code:807,iso:"MKD",coordinates:{lat:"41.636",lng:"21.676"},name:{en:"TFYR of Macedonia",es:"Macedonia",it:"TFYR di Macedonia"},publicUrl:{en:"tfyr-of-macedonia",es:"macedonia",it:"tfyr-di-macedonia"}},{code:450,iso:"MDG",coordinates:{lat:"-19.615",lng:"46.645"},name:{en:"Madagascar",es:"Madagascar",it:"Madagascar"},publicUrl:{en:"madagascar",es:"madagascar",it:"madagascar"}},{code:458,iso:"MYS",coordinates:{lat:"4.416",lng:"102.099"},name:{en:"Malaysia",es:"Malasia",it:"Malaysia"},publicUrl:{en:"malaysia",es:"malasia",it:"malaysia"}},{code:454,iso:"MWI",coordinates:{lat:"-13.258",lng:"33.723"},name:{en:"Malawi",es:"Malawi",it:"Malawi"},publicUrl:{en:"malawi",es:"malawi",it:"malawi"}},{code:466,iso:"MLI",coordinates:{lat:"18.211",lng:"-2.209"},name:{en:"Mali",es:"Mali",it:"Mali"},publicUrl:{en:"mali",es:"mali",it:"mali"}},{code:470,iso:"MLT",coordinates:{lat:"35.884",lng:"14.446"},name:{en:"Malta",es:"Malta",it:"Malta"},publicUrl:{en:"malta",es:"malta",it:"malta"}},{code:504,iso:"MAR",coordinates:{lat:"31.129",lng:"-7.355"},name:{en:"Morocco",es:"Marruecos",it:"Marocco"},publicUrl:{en:"morocco",es:"marruecos",it:"marocco"}},{code:480,iso:"MUS",coordinates:{lat:"-20.323",lng:"57.518"},name:{en:"Mauritius",es:"Mauricio",it:"Mauritius"},publicUrl:{en:"mauritius",es:"mauricio",it:"mauritius"}},{code:478,iso:"MRT",coordinates:{lat:"19.413",lng:"-10.6528"},name:{en:"Mauritania",es:"Mauritania",it:"Mauritania"},publicUrl:{en:"mauritania",es:"mauritania",it:"mauritania"}},{code:175,iso:"MYT",coordinates:{lat:"-12.833",lng:"45.166"},name:{en:"Mayotte",es:"Mayotte",it:"Mayotte"},publicUrl:{en:"mayotte",es:"mayotte",it:"mayotte"}},{code:583,iso:"FSM",coordinates:{lat:"7.531",lng:"150.457"},name:{en:"FS Micronesia",es:"Micronesia",it:"FS Micronesia"},publicUrl:{en:"fs-micronesia",es:"micronesia",it:"fs-micronesia"}},{code:498,iso:"MDA",coordinates:{lat:"47.524",lng:"28.444"},name:{en:"Rep. of Moldova",es:"Moldavia",it:"Repubblica moldova"},publicUrl:{en:"rep-of-moldova",es:"moldavia",it:"repubblica-moldova"}},{code:496,iso:"MNG",coordinates:{lat:"46.516",lng:"102.564"},name:{en:"Mongolia",es:"Mongolia",it:"Mongolia"},publicUrl:{en:"mongolia",es:"mongolia",it:"mongolia"}},{code:499,iso:"MNE",coordinates:{lat:"42.857",lng:"19.096"},name:{en:"Montenegro",es:"Montenegro",it:"Montenegro"},publicUrl:{en:"montenegro",es:"montenegro",it:"montenegro"}},{code:500,iso:"MSR",coordinates:{lat:"16.721",lng:"-62.185"},name:{en:"Montserrat",es:"Montserrat",it:"Montserrat"},publicUrl:{en:"montserrat",es:"montserrat",it:"montserrat"}},{code:508,iso:"MOZ",coordinates:{lat:"-13.852",lng:"38.042"},name:{en:"Mozambique",es:"Mozambique",it:"Mozambico"},publicUrl:{en:"mozambique",es:"mozambique",it:"mozambico"}}
78,{code:516,iso:"NAM",coordinates:{lat:"-21.276",lng:"17.219"},name:{en:"Namibia",es:"Namibia",it:"Namibia"},publicUrl:{en:"namibia",es:"namibia",it:"namibia"}},{code:520,iso:"NRU",coordinates:{lat:"-0.519",lng:"166.932"},name:{en:"Nauru",es:"Nauru",it:"Nauru"},publicUrl:{en:"nauru",es:"nauru",it:"nauru"}},{code:524,iso:"NPL",coordinates:{lat:"28.2114",lng:"83.5608"},name:{en:"Nepal",es:"Nepal",it:"Nepal"},publicUrl:{en:"nepal",es:"nepal",it:"nepal"}},{code:558,iso:"NIC",coordinates:{lat:"12.692",lng:"-85.03"},name:{en:"Nicaragua",es:"Nicaragua",it:"Nicaragua"},publicUrl:{en:"nicaragua",es:"nicaragua",it:"nicaragua"}},{code:562,iso:"NER",coordinates:{lat:"16.996",lng:"9.915"},name:{en:"Niger",es:"Niger",it:"Niger"},publicUrl:{en:"niger",es:"niger",it:"niger"}},{code:566,iso:"NGA",coordinates:{lat:"9.3417",lng:"7.678"},name:{en:"Nigeria",es:"Nigeria",it:"Nigeria"},publicUrl:{en:"nigeria",es:"nigeria",it:"nigeria"}},{code:579,iso:"NOR",coordinates:{lat:"61.3701",lng:"9.3031"},name:{en:"Norway",es:"Noruega",it:"Norvegia"},publicUrl:{en:"norway",es:"noruega",it:"norvegia"}},{code:540,iso:"NCL",coordinates:{lat:"-21.02",lng:"165.062"},name:{en:"New Caledonia",es:"Nueva Caledonia",it:"Nuova Caledonia"},publicUrl:{en:"new-caledonia",es:"nueva-caledonia",it:"nuova-caledonia"}},{code:554,iso:"NZL",coordinates:{lat:"-42.558",lng:"172.377"},name:{en:"New Zealand",es:"Nueva Zelanda",it:"Nuova Zelanda"},publicUrl:{en:"new-zealand",es:"nueva-zelanda",it:"nuova-zelanda"}},{code:512,iso:"OMN",coordinates:{lat:"19.85",lng:"56.25"},name:{en:"Oman",es:"Om\xe1n",it:"Oman"},publicUrl:{en:"oman",es:"oman",it:"oman"}},{code:528,iso:"NLD",coordinates:{lat:"52.1704",lng:"5.0102"},name:{en:"Netherlands",es:"Pa\xedses Bajos",it:"Olanda"},publicUrl:{en:"netherlands",es:"paises-bajos",it:"olanda"}},{code:586,iso:"PAK",coordinates:{lat:"28.1854",lng:"66.6429"},name:{en:"Pakistan",es:"Pakist\xe1n",it:"Pakistan"},publicUrl:{en:"pakistan",es:"pakistan",it:"pakistan"}},{code:585,iso:"PLW",coordinates:{lat:"7.473",lng:"134.549"},name:{en:"Palau",es:"Palau",it:"Palau"},publicUrl:{en:"palau",es:"palau",it:"palau"}},{code:275,iso:"PSE",coordinates:{lat:"32.097",lng:"35.26"},name:{en:"State of Palestine",es:"Palestina",it:"Stato di Palestina"},publicUrl:{en:"state-of-palestine",es:"palestina",it:"stato-di-palestina"}},{code:591,iso:"PAN",coordinates:{lat:"8.348",lng:"-81.005"},name:{en:"Panama",es:"Panam\xe1",it:"Panama"},publicUrl:{en:"panama",es:"panama",it:"panama"}},{code:598,iso:"PNG",coordinates:{lat:"-5.636",lng:"142.798"},name:{en:"Papua New Guinea",es:"Pap\xfaa Nueva Guinea",it:"Papua Nuova Guinea"},publicUrl:{en:"papua-new-guinea",es:"papua-nueva-guinea",it:"papua-nuova-guinea"}},{code:600,iso:"PRY",coordinates:{lat:"-23.266",lng:"-58.409"},name:{en:"Paraguay",es:"Paraguay",it:"Paraguay"},publicUrl:{en:"paraguay",es:"paraguay",it:"paraguay"}},{code:604,iso:"PER",coordinates:{lat:"-12.664",lng:"-72.98"},name:{en:"Peru",es:"Per\xfa",it:"Per\xf9"},publicUrl:{en:"peru",es:"peru",it:"peru"}},{code:258,iso:"PYF",coordinates:{lat:"-17.529",lng:"-149.53"},name:{en:"French Polynesia",es:"Polinesia Francesa",it:"Polinesia francese"},publicUrl:{en:"french-polynesia",es:"polinesia-francesa",it:"polinesia-francese"}},{code:616,iso:"POL",coordinates:{lat:"52.442",lng:"19.72"},name:{en:"Poland",es:"Polonia",it:"Polonia"},publicUrl:{en:"poland",es:"polonia",it:"polonia"}},{code:620,iso:"PRT",coordinates:{lat:"40.957",lng:"-7.9373"},name:{en:"Portugal",es:"Portugal",it:"Portogallo"},publicUrl:{en:"portugal",es:"portugal",it:"portogallo"}},{code:634,iso:"QAT",coordinates:{lat:"25.168",lng:"51.17"},name:{en:"Qatar",es:"Qatar",it:"Qatar"},publicUrl:{en:"qatar",es:"qatar",it:"qatar"}},{code:826,iso:"GBR",coordinates:{lat:"52.289",lng:"-1.259"},name:{en:"United Kingdom",es:"Reino Unido",it:"Regno Unito"},publicUrl:{en:"united-kingdom",es:"reino-unido",it:"regno-unito"}},{code:140,iso:"CAF",coordinates:{lat:"7.043",lng:"21.424"},name:{en:"Central African Rep.",es:"Rep\xfablica Centroafricana",it:"Repubblica Centrafricana"},publicUrl:{en:"central-african-rep",es:"republica-centroafricana",it:"repubblica-centrafricana"}},{code:203,iso:"CZE",coordinates:{lat:"49.848",lng:"15.2812"},name:{en:"Czech Rep.",es:"Rep\xfablica Checa",it:"Repubblica Ceca"},publicUrl:{en:"czech-rep",es:"republica-checa",it:"repubblica-ceca"}},{code:214,iso:"DOM",coordinates:{lat:"19.01",lng:"-70.1685"},name:{en:"Dominican Rep.",es:"Rep\xfablica Dominicana",it:"Dominican Rep."},publicUrl:{en:"dominican-rep",es:"republica-dominicana",it:"dominican-rep"}},{code:646,iso:"RWA",coordinates:{lat:"-1.887",lng:"29.904"},name:{en:"Rwanda",es:"Ruanda",it:"Ruanda"},publicUrl:{en:"rwanda",es:"ruanda",it:"ruanda"}},{code:642,iso:"ROU",coordinates:{lat:"45.933",lng:"25.119"},name:{en:"Romania",es:"Ruman\xeda",it:"Romania"},publicUrl:{en:"romania",es:"rumania",it:"romania"}}
78,{code:643,iso:"RUS",coordinates:{lat:"64.736",lng:"104.062"},name:{en:"Russian Federation",es:"Rusia",it:"Federazione Russa"},publicUrl:{en:"russian-federation",es:"rusia",it:"federazione-russa"}},{code:882,iso:"WSM",coordinates:{lat:"-13.625",lng:"-172.42"},name:{en:"Samoa",es:"Samoa",it:"Samoa"},publicUrl:{en:"samoa",es:"samoa",it:"samoa"}},{code:670,iso:"VCT",coordinates:{lat:"13.234",lng:"-61.202"},name:{en:"Saint Vincent and the Grenadines",es:"San Vicente y las Granadinas",it:"Saint Vincent e Grenadine"},publicUrl:{en:"saint-vincent-and-the-grenadines",es:"san-vicente-y-las-granadinas",it:"saint-vincent-e-grenadine"}},{code:662,iso:"LCA",coordinates:{lat:"13.865",lng:"-60.98"},name:{en:"Saint Lucia",es:"Santa Luc\xeda",it:"Santa Lucia"},publicUrl:{en:"saint-lucia",es:"santa-lucia",it:"santa-lucia"}},{code:678,iso:"STP",coordinates:{lat:"0.233",lng:"6.589"},name:{en:"Sao Tome and Principe",es:"Santo Tom\xe9 y Pr\xedncipe",it:"Sao Tome e Principe"},publicUrl:{en:"sao-tome-and-principe",es:"santo-tome-y-principe",it:"sao-tome-e-principe"}},{code:686,iso:"SEN",coordinates:{lat:"15.044",lng:"-15.081"},name:{en:"Senegal",es:"Senegal",it:"Senegal"},publicUrl:{en:"senegal",es:"senegal",it:"senegal"}},{code:688,iso:"SRB",coordinates:{lat:"44.021",lng:"20.699"},name:{en:"Serbia",es:"Serbia",it:"Serbia"},publicUrl:{en:"serbia",es:"serbia",it:"serbia"}},{code:891,iso:"SCG",coordinates:{lat:"44.021",lng:"20.699"},name:{en:"Serbia and Montenegro",es:"Serbia y Montenegro",it:"Serbia e Montenegro"},publicUrl:{en:"serbia-and-montenegro",es:"serbia-y-montenegro",it:"serbia-e-montenegro"}},{code:690,iso:"SYC",coordinates:{lat:"-4.627",lng:"55.461"},name:{en:"Seychelles",es:"Seychelles",it:"Seychelles"},publicUrl:{en:"seychelles",es:"seychelles",it:"seychelles"}},{code:694,iso:"SLE",coordinates:{lat:"8.677",lng:"-11.779"},name:{en:"Sierra Leone",es:"Sierra Leona",it:"Sierra Leone"},publicUrl:{en:"sierra-leone",es:"sierra-leona",it:"sierra-leone"}},{code:702,iso:"SGP",coordinates:{lat:"1.364",lng:"103.81"},name:{en:"Singapore",es:"Singapur",it:"Singapore"},publicUrl:{en:"singapore",es:"singapur",it:"singapore"}},{code:760,iso:"SYR",coordinates:{lat:"35.303",lng:"38.322"},name:{en:"Syria",es:"Siria",it:"Siria"},publicUrl:{en:"syria",es:"siria",it:"siria"}},{code:706,iso:"SOM",coordinates:{lat:"2.875",lng:"43.446"},name:{en:"Somalia",es:"Somalia",it:"Somalia"},publicUrl:{en:"somalia",es:"somalia",it:"somalia"}},{code:144,iso:"LKA",coordinates:{lat:"7.3",lng:"80.727"},name:{en:"Sri Lanka",es:"Sri lanka",it:"Sri Lanka"},publicUrl:{en:"sri-lanka",es:"sri-lanka",it:"sri-lanka"}},{code:710,iso:"ZAF",coordinates:{lat:"-31.7",lng:"23.441"},name:{en:"South Africa",es:"Sud\xe1frica",it:"Sud Africa"},publicUrl:{en:"south-africa",es:"sudafrica",it:"sud-africa"}},{code:729,iso:"SDN",coordinates:{lat:"15.739",lng:"29.533"},name:{en:"Sudan",es:"Sud\xe1n",it:"Sudan"},publicUrl:{en:"sudan",es:"sudan",it:"sudan"}},{code:736,iso:"SDN",coordinates:{lat:"7.1",lng:"30.48"},name:{en:"Fmr Sudan",es:"Sud\xe1n",it:"Fmr Sudan"},publicUrl:{en:"fmr-sudan",es:"sudan",it:"fmr-sudan"}},{code:728,iso:"SSD",coordinates:{lat:"7.1",lng:"30.48"},name:{en:"South Sudan",es:"Sud\xe1n del Sur",it:"Sudan del Sud"},publicUrl:{en:"south-sudan",es:"sudan-del-sur",it:"sudan-del-sud"}},{code:752,iso:"SWE",coordinates:{lat:"66.2188",lng:"19"},name:{en:"Sweden",es:"Suecia",it:"Svezia"},publicUrl:{en:"sweden",es:"suecia",it:"svezia"}},{code:757,iso:"CHE",coordinates:{lat:"46.7794",lng:"8.0329"},name:{en:"Switzerland",es:"Suiza",it:"Svizzera"},publicUrl:{en:"switzerland",es:"suiza",it:"svizzera"}},{code:740,iso:"SUR",coordinates:{lat:"4.248",lng:"-55.848"},name:{en:"Suriname",es:"Surin\xe1m",it:"Suriname"},publicUrl:{en:"suriname",es:"surinam",it:"suriname"}},{code:748,iso:"SWZ",coordinates:{lat:"-26.596",lng:"31.47"},name:{en:"Swaziland",es:"Swazilandia",it:"Swaziland"},publicUrl:{en:"swaziland",es:"swazilandia",it:"swaziland"}},{code:762,iso:"TJK",coordinates:{lat:"38.367",lng:"72.597"},name:{en:"Tajikistan",es:"Tadjikist\xe1n",it:"Tajikistan"},publicUrl:{en:"tajikistan",es:"tadjikistan",it:"tajikistan"}}
78,{code:764,iso:"THA",coordinates:{lat:"15.688",lng:"100.845"},name:{en:"Thailand",es:"Tailandia",it:"Tailandia"},publicUrl:{en:"thailand",es:"tailandia",it:"tailandia"}},{code:834,iso:"TZA",coordinates:{lat:"-5.651",lng:"34.146"},name:{en:"United Rep. of Tanzania",es:"Tanzania",it:"Tanzania"},publicUrl:{en:"united-rep-of-tanzania",es:"tanzania",it:"tanzania"}},{code:626,iso:"TLS",coordinates:{lat:"-8.856",lng:"125.556"},name:{en:"Timor Leste",es:"Timor Oriental",it:"Timor Est"},publicUrl:{en:"timor-leste",es:"timor-oriental",it:"timor-est"}},{code:768,iso:"TGO",coordinates:{lat:"7.7",lng:"1.106"},name:{en:"Togo",es:"Togo",it:"Andare"},publicUrl:{en:"togo",es:"togo",it:"andare"}},{code:776,iso:"TON",coordinates:{lat:"-21.167",lng:"-175.19"},name:{en:"Tonga",es:"Tonga",it:"tonga"},publicUrl:{en:"tonga",es:"tonga",it:"tonga"}},{code:780,iso:"TTO",coordinates:{lat:"10.448",lng:"-61.257"},name:{en:"Trinidad and Tobago",es:"Trinidad y Tobago",it:"Trinidad e Tobago"},publicUrl:{en:"trinidad-and-tobago",es:"trinidad-y-tobago",it:"trinidad-e-tobago"}},{code:788,iso:"TUN",coordinates:{lat:"35.594",lng:"9.421"},name:{en:"Tunisia",es:"Tunez",it:"Tunisia"},publicUrl:{en:"tunisia",es:"tunez",it:"tunisia"}},{code:795,iso:"TKM",coordinates:{lat:"39.584",lng:"59.597"},name:{en:"Turkmenistan",es:"Turkmenist\xe1n",it:"Turkmenistan"},publicUrl:{en:"turkmenistan",es:"turkmenistan",it:"turkmenistan"}},{code:792,iso:"TUR",coordinates:{lat:"39.144",lng:"34.188"},name:{en:"Turkey",es:"Turqu\xeda",it:"Turchia"},publicUrl:{en:"turkey",es:"turquia",it:"turchia"}},{code:798,iso:"TUV",coordinates:{lat:"-7.48",lng:"178.68"},name:{en:"Tuvalu",es:"Tuvalu",it:"Tuvalu"},publicUrl:{en:"tuvalu",es:"tuvalu",it:"tuvalu"}},{code:804,iso:"UKR",coordinates:{lat:"49.364",lng:"32.132"},name:{en:"Ukraine",es:"Ucrania",it:"Ucraina"},publicUrl:{en:"ukraine",es:"ucrania",it:"ucraina"}},{code:800,iso:"UGA",coordinates:{lat:"1.9392",lng:"32.7415"},name:{en:"Uganda",es:"Uganda",it:"Uganda"},publicUrl:{en:"uganda",es:"uganda",it:"uganda"}}
78,{code:858,iso:"URY",coordinates:{lat:"-32.948",lng:"-56.249"},name:{en:"Uruguay",es:"Uruguay",it:"Uruguay"},publicUrl:{en:"uruguay",es:"uruguay",it:"uruguay"}},{code:860,iso:"UZB",coordinates:{lat:"41.757",lng:"63.958"},name:{en:"Uzbekistan",es:"Uzbekist\xe1n",it:"Uzbekistan"},publicUrl:{en:"uzbekistan",es:"uzbekistan",it:"uzbekistan"}},{code:548,iso:"VUT",coordinates:{lat:"-15.339",lng:"166.89"},name:{en:"Vanuatu",es:"Vanuatu",it:"Vanuatu"},publicUrl:{en:"vanuatu",es:"vanuatu",it:"vanuatu"}},{code:862,iso:"VEN",coordinates:{lat:"6.983",lng:"-64.588"},name:{en:"Venezuela",es:"Venezuela",it:"Venezuela"},publicUrl:{en:"venezuela",es:"venezuela",it:"venezuela"}},{code:704,iso:"VNM",coordinates:{lat:"21.75",lng:"105.373"},name:{en:"Viet Nam",es:"Vietnam",it:"Viet Nam"},publicUrl:{en:"viet-nam",es:"vietnam",it:"viet-nam"}},{code:887,iso:"YEM",coordinates:{lat:"15.569",lng:"47.793"},name:{en:"Yemen",es:"Yemen",it:"yemen"},publicUrl:{en:"yemen",es:"yemen",it:"yemen"}},{code:262,iso:"DJI",coordinates:{lat:"11.41",lng:"42.165"},name:{en:"Djibouti",es:"Yibuti",it:"Gibuti"},publicUrl:{en:"djibouti",es:"yibuti",it:"gibuti"}},{code:894,iso:"ZMB",coordinates:{lat:"-15.13",lng:"25.268"},name:{en:"Zambia",es:"Zambia",it:"Zambia"},publicUrl:{en:"zambia",es:"zambia",it:"zambia"}},{code:716,iso:"ZWE",coordinates:{lat:"-19.098",lng:"30.047"},name:{en:"Zimbabwe",es:"Zimbabue",it:"Zimbabwe"},publicUrl:{en:"zimbabwe",es:"zimbabue",it:"zimbabwe"}},{code:280,iso:"DEU",coordinates:{lat:"51.3819",lng:"9.9877"},name:{en:"Germany",es:"Alemania",it:"Germania"},publicUrl:{en:"germany",es:"alemania",it:"germania"}}],y={AF:"AFG",AX:"ALA",AL:"ALB",DZ:"DZA",AS:"ASM",AD:"AND",AO:"AGO",AI:"AIA",AQ:"ATA",AG:"ATG",AR:"ARG",AM:"ARM",AW:"ABW",AU:"AUS",AT:"AUT",AZ:"AZE",BS:"BHS",BH:"BHR",BD:"BGD",BB:"BRB",BY:"BLR",BE:"BEL",BZ:"BLZ",BJ:"BEN",BM:"BMU",BT:"BTN",BO:"BOL",BA:"BIH",BW:"BWA",BV:"BVT",BR:"BRA",VG:"VGB",IO:"IOT",BN:"BRN",BG:"BGR",BF:"BFA",BI:"BDI",KH:"KHM",CM:"CMR",CA:"CAN",CV:"CPV",KY:"CYM",CF:"CAF",TD:"TCD",CL:"CHL",CN:"CHN",HK:"HKG",MO:"MAC",CX:"CXR",CC:"CCK",CO:"COL",KM:"COM",CG:"COG",CD:"COD",CK:"COK",CR:"CRI",CI:"CIV",HR:"HRV",CU:"CUB",CY:"CYP",CZ:"CZE",DK:"DNK",DJ:"DJI",DM:"DMA",DO:"DOM",EC:"ECU",EG:"EGY",SV:"SLV",GQ:"GNQ",ER:"ERI",EE:"EST",ET:"ETH",FK:"FLK",FO:"FRO",FJ:"FJI",FI:"FIN",FR:"FRA",GF:"GUF",PF:"PYF",TF:"ATF",GA:"GAB",GM:"GMB",GE:"GEO",DE:"DEU",GH:"GHA",GI:"GIB",GR:"GRC",GL:"GRL",GD:"GRD",GP:"GLP",GU:"GUM",GT:"GTM",GG:"GGY",GN:"GIN",GW:"GNB",GY:"GUY",HT:"HTI",HM:"HMD",VA:"VAT",HN:"HND",HU:"HUN",IS:"ISL",IN:"IND",ID:"IDN",IR:"IRN",IQ:"IRQ",IE:"IRL",IM:"IMN",IL:"ISR",IT:"ITA",JM:"JAM",JP:"JPN",JE:"JEY",JO:"JOR",KZ:"KAZ",KE:"KEN",KI:"KIR",KP:"PRK",KR:"KOR",KW:"KWT",KG:"KGZ",LA:"LAO",LV:"LVA",LB:"LBN",LS:"LSO",LR:"LBR",LY:"LBY",LI:"LIE",LT:"LTU",LU:"LUX",MK:"MKD",MG:"MDG",MW:"MWI",MY:"MYS",MV:"MDV",ML:"MLI",MT:"MLT",MH:"MHL",MQ:"MTQ",MR:"MRT",MU:"MUS",YT:"MYT",MX:"MEX",FM:"FSM",MD:"MDA",MC:"MCO",MN:"MNG",ME:"MNE",MS:"MSR",MA:"MAR",MZ:"MOZ",MM:"MMR",NA:"NAM",NR:"NRU",NP:"NPL",NL:"NLD",AN:"ANT",NC:"NCL",NZ:"NZL",NI:"NIC",NE:"NER",NG:"NGA",NU:"NIU",NF:"NFK",MP:"MNP",NO:"NOR",OM:"OMN",PK:"PAK",PW:"PLW",PS:"PSE",PA:"PAN",PG:"PNG",PY:"PRY",PE:"PER",PH:"PHL",PN:"PCN",PL:"POL",PT:"PRT",PR:"PRI",QA:"QAT",RE:"REU",RO:"ROU",RU:"RUS",RW:"RWA",BL:"BLM",SH:"SHN",KN:"KNA",LC:"LCA",MF:"MAF",PM:"SPM",VC:"VCT",WS:"WSM",SM:"SMR",ST:"STP",SA:"SAU",SN:"SEN",RS:"SRB",SC:"SYC",SL:"SLE",SG:"SGP",SK:"SVK",SI:"SVN",SB:"SLB",SO:"SOM",ZA:"ZAF",GS:"SGS",SS:"SSD",ES:"ESP",LK:"LKA",SD:"SDN",SR:"SUR",SJ:"SJM",SZ:"SWZ",SE:"SWE",CH:"CHE",SY:"SYR",TW:"TWN",TJ:"TJK",TZ:"TZA",TH:"THA",TL:"TLS",TG:"TGO",TK:"TKL",TO:"TON",TT:"TTO",TN:"TUN",TR:"TUR",TM:"TKM",TC:"TCA",TV:"TUV",UG:"UGA",UA:"UKR",AE:"ARE",GB:"GBR",US:"USA",UM:"UMI",UY:"URY",UZ:"UZB",VU:"VUT",VE:"VEN",VN:"VNM",VI:"VIR",WF:"WLF",EH:"ESH",YE:"YEM",ZM:"ZMB",ZW:"ZWE"},_={AFG:"AF",ALA:"AX",ALB:"AL",DZA:"DZ",ASM:"AS",AND:"AD",AGO:"AO",AIA:"AI",ATA:"AQ",ATG:"AG",ARG:"AR",ARM:"AM",ABW:"AW",AUS:"AU",AUT:"AT",AZE:"AZ",BHS:"BS",BHR:"BH",BGD:"BD",BRB:"BB",BLR:"BY",BEL:"BE",BLZ:"BZ",BEN:"BJ",BMU:"BM",BTN:"BT",BOL:"BO",BIH:"BA",BWA:"BW",BVT:"BV",BRA:"BR",VGB:"VG",IOT:"IO",BRN:"BN",BGR:"BG",BFA:"BF",BDI:"BI",KHM:"KH",CMR:"CM",CAN:"CA",CPV:"CV",CYM:"KY",CAF:"CF",TCD:"TD",CHL:"CL",CHN:"CN",HKG:"HK",MAC:"MO",CXR:"CX",CCK:"CC",COL:"CO",COM:"KM",COG:"CG",COD:"CD",COK:"CK",CRI:"CR",CIV:"CI",HRV:"HR",CUB:"CU",CYP:"CY",CZE:"CZ",DNK:"DK",DJI:"DJ",DMA:"DM",DOM:"DO",ECU:"EC",EGY:"EG",SLV:"SV",GNQ:"GQ",ERI:"ER",EST:"EE",ETH:"ET",FLK:"FK",FRO:"FO",FJI:"FJ",FIN:"FI",FRA:"FR",GUF:"GF",PYF:"PF",ATF:"TF",GAB:"GA",GMB:"GM",GEO:"GE",DEU:"DE",GHA:"GH",GIB:"GI",GRC:"GR",GRL:"GL",GRD:"GD",GLP:"GP",GUM:"GU",GTM:"GT",GGY:"GG",GIN:"GN",GNB:"GW",GUY:"GY",HTI:"HT",HMD:"HM",VAT:"VA",HND:"HN",HUN:"HU",ISL:"IS",IND:"IN",IDN:"ID",IRN:"IR",IRQ:"IQ",IRL:"IE",IMN:"IM",ISR:"IL",ITA:"IT",JAM:"JM",JPN:"JP",JEY:"JE",JOR:"JO",KAZ:"KZ",KEN:"KE",KIR:"KI",PRK:"KP",KOR:"KR",KWT:"KW",KGZ:"KG",LAO:"LA",LVA:"LV",LBN:"LB",LSO:"LS",LBR:"LR",LBY:"LY",LIE:"LI",LTU:"LT",LUX:"LU",MKD:"MK",MDG:"MG",MWI:"MW",MYS:"MY",MDV:"MV",MLI:"ML",MLT:"MT",MHL:"MH",MTQ:"MQ",MRT:"MR",MUS:"MU",MYT:"YT",MEX:"MX",FSM:"FM",MDA:"MD",MCO:"MC",MNG:"MN",MNE:"ME",MSR:"MS",MAR:"MA",MOZ:"MZ",MMR:"MM",NAM:"NA",NRU:"NR",NPL:"NP",NLD:"NL",ANT:"AN",NCL:"NC",NZL:"NZ",NIC:"NI",NER:"NE",NGA:"NG",NIU:"NU",NFK:"NF",MNP:"MP",NOR:"NO",OMN:"OM",PAK:"PK",PLW:"PW",PSE:"PS",PAN:"PA",PNG:"PG",PRY:"PY",PER:"PE",PHL:"PH",PCN:"PN",POL:"PL",PRT:"PT",PRI:"PR",QAT:"QA",REU:"RE",ROU:"RO",RUS:"RU",RWA:"RW",BLM:"BL",SHN:"SH",KNA:"KN",LCA:"LC",MAF:"MF",SPM:"PM",VCT:"VC",WSM:"WS",SMR:"SM",STP:"ST",SAU:"SA",SEN:"SN",SRB:"RS",SYC:"SC",SLE:"SL",SGP:"SG",SVK:"SK",SVN:"SI",SLB:"SB",SOM:"SO",ZAF:"ZA",SGS:"GS",SSD:"SS",ESP:"ES",LKA:"LK",SDN:"SD",SUR:"SR",SJM:"SJ",SWZ:"SZ",SWE:"SE",CHE:"CH",SYR:"SY",TWN:"TW",TJK:"TJ",TZA:"TZ",THA:"TH",TLS:"TL",TGO:"TG",TKL:"TK",TON:"TO",TTO:"TT",TUN:"TN",TUR:"TR",TKM:"TM",TCA:"TC",TUV:"TV",UGA:"UG",UKR:"UA",ARE:"AE",GBR:"GB",USA:"US",UMI:"UM",URY:"UY",UZB:"UZ",VUT:"VU",VEN:"VE",VNM:"VN",VIR:"VI",WLF:"WF",ESH:"EH",YEM:"YE",ZMB:"ZM",ZWE:"ZW"}},56801:function(t,a,s){"use strict";s.d(a,{K:function(){return c},T:function(){return reportUser}});let c="ocfuz2dn";
78function reportUser(t){let a=window.Intercom?window.Intercom:null;a&&a("boot",{app_id:c,email:t.email,created_at:t.createdAt,name:"".concat(t.name," ").concat(t.lastname),user_id:t.id})}},49952:function(t,a,s){"use strict";s.d(a,{Z:function(){return TextService}});let c={v1_com_mundial_h1:{es:"{{flow}} en {{reporter}} desde {{partner}} de {{product}}",en:"{{flow}} in {{reporter}} from {{partner}} of {{product}}",it:"{{flow}} verso {{reporter}} da {{partner}} di {{product}}",pt:"{{flow}} de {{product}} entre {{reporter}} e {{partner}}",fr:"{{flow}} de {{reporter}} de {{partner}} de {{product}}",de:"{{flow}} von {{product}} aus {{reporter}} aus {{partner}}"},v1_com_mundial_h1_noProduct:{es:"{{flow}} en {{reporter}} desde {{partner}}",en:"{{flow}} in {{reporter}} from {{partner}}",it:"{{flow}} verso {{reporter}} da {{partner}}",pt:"{{flow}} entre {{reporter}} e {{partner}}",fr:"{{flow}} de {{reporter}} de {{partner}}",de:"{{flow}} in {{reporter}} aus {{partner}}"},v2_com_mundial_h1:{es:"{{flow}} en {{reporter}} de {{product}}",en:"{{flow}} in {{reporter}} of {{product}}",it:"{{flow}} verso {{reporter}} di {{product}}",pt:"{{flow}} de {{product}} - {{reporter}}",fr:"{{flow}} de {{reporter}} de {{product}}",de:"{{flow}} von {{product}} in {{reporter}}"},v2_com_mundial_h1_noProduct:{es:"{{flow}} en {{reporter}}",en:"{{flow}} in {{reporter}}",it:"{{flow}} verso {{reporter}}",pt:"{{flow}} - {{reporter}}",fr:"{{flow}} de {{reporter}}",de:"{{flow}} in {{reporter}}"},v3_com_mundial_h1:{es:"{{flow}} de {{reporter}} de {{product}}",en:"{{flow}} of {{reporter}} of {{product}}",it:"{{flow}} verso {{reporter}} di {{product}}",pt:"{{flow}} de {{product}} - {{reporter}}",fr:"{{flow}} de {{reporter}} de {{product}}",de:"{{flow}} von {{product}} in {{reporter}}"},v3_com_mundial_h1_noProduct:{es:"{{flow}} de {{reporter}}",en:"{{flow}} of {{reporter}}",it:"{{flow}} verso {{reporter}}",pt:"{{flow}} - {{reporter}}",fr:"{{flow}} de {{reporter}}",de:"{{flow}} in {{reporter}}"},v1_com_mundial_p:{es:"De acuerdo con los datos oficiales publicados por la aduana de {{reporter}}, en {{last_year}} import\xf3 de {{partner}} {{last_year_qty}} en bienes declarados con la partida arancelaria {{product_code}}. Durante el \xfaltimo {{period_name}} las importaciones de {{reporter}} han evolucionado a una tasa del {{diff_percent}}, al pasar de {{last_last_year_qty}} en {{last_last_year}} a {{last_year_qty}} en {{last_year}}.",en:"According to the official data published by the customs office of {{reporter}}, in {{last_year}} {{partner}} imported {{last_year_qty}} goods declared with the tariff heading {{product_code}}. During the last {{period_name}}, {{reporter}} imports have evolved at a rate of {{diff_percent}}, going from {{last_last_year_qty}} in {{last_last_year}} to {{last_year_qty}} in {{last_year}}.",it:"Secondo i dati doganali ufficiali, nel {{last_year}} le importazioni in {{reporter}} da {{partner}} di merci dichiarate con la voce tariffaria {{product_code}} sono state di {{last_year_qty}}. Nell'ultimo {{period_name}}  sono variate del {{diff_percent}}, passando da {{last_last_year_qty}} nel {{last_last_year}} a {{last_year_qty}} nel {{last_year}}.",pt:"De acordo com dados oficiais publicados pela alf\xe2ndega de {{reporter}}, em {{last_year}} importou de {{partner}} {{last_year_qty}} em mercadorias declaradas com o cabe\xe7alho da tarifa {{product_code}}. Durante o \xfaltimo {{period_name}}, as importa\xe7\xf5es do {{reporter}} evolu\xedram a uma taxa de {{diff_percent}}, indo de {{last_last_year_qty}} em {{last_last_year}} para {{last_year_qty}} em {{last_year}}.",fr:"Selon les donn\xe9es officielles publi\xe9es par les douanes de {{reporter}}, en {{last_year}}, il a import\xe9 de {{partner}} {{last_year_qty}} des marchandises d\xe9clar\xe9es avec la position tarifaire {{product_code}}. Au cours du dernier {{period_name}}, les importations de {{reporter}} ont \xe9volu\xe9 \xe0 un rythme de {{diff_percent}}, passant de {{last_last_year_qty}} en {{last_last_year}} \xe0 {{last_year_qty}} en {{last_year}}.",de:"Nach offiziellen Angaben des {{reporter}} Zolls wurde es in {{last_year}} von {{partner}} {{last_year_number}} in Waren importiert, die mit der Tarifposition {{product code}} deklariert wurden. W\xe4hrend des letzten {{period_name}} {{reporter}} \xe4nderten sich die Importe um {{diff_percent}} von {{last_last_year_qty}} in {{last_last_year}} auf {{last_year_qty}} in {{last_year}}."},v1_com_mundial_p_noProduct:{es:"De acuerdo con los datos oficiales publicados por la aduana de {{reporter}}, en {{last_year}} import\xf3 de {{partner}} {{last_year_qty}}
78 en bienes declarados seg\xfan los filtros aplicados. Durante el \xfaltimo {{period_name}} las importaciones de {{reporter}} han evolucionado a una tasa del {{diff_percent}}, al pasar de {{last_last_year_qty}} en {{last_last_year}} a {{last_year_qty}} en {{last_year}}.",en:"According to the official data published by the customs office of {{reporter}}, in {{last_year}} {{partner}} imported {{last_year_qty}} goods declared based on the applied filters. During the last {{period_name}}, {{reporter}} imports have evolved at a rate of {{diff_percent}}, going from {{last_last_year_qty}} in {{last_last_year}} to {{last_year_qty}} in {{last_year}}.",it:"Secondo i dati doganali ufficiali, nel {{last_year}} le importazioni in {{reporter}} da {{partner}} sono state di {{last_year_qty}} di merci. Nell'ultimo {{period_name}}, le importazioni di {{reporter}} sono variate  del {{diff_percent}}, passando da {{last_last_year_qty}} nel {{last_last_year}} a {{last_year_qty}} nel {{last_year}}.",pt:"De acordo com dados oficiais publicados pela alf\xe2ndega do {{reporter}}, em {{last_year}} importou de {{partner}} {{last_year_qty}} em mercadorias declaradas de acordo com os filtros aplicados. Durante o \xfaltimo {{period_name}}, as importa\xe7\xf5es do {{reporter}} evolu\xedram a uma taxa de {{diff_percent}}, indo de {{last_last_year_qty}} em {{last_last_year}} para {{last_year_qty}} em {{last_year}}.",fr:"Selon les donn\xe9es officielles publi\xe9es par les douanes de {{reporter}}, en {{last_year}}, il a import\xe9 de {{partner}} {{last_year_qty}} en marchandises d\xe9clar\xe9es selon les filtres appliqu\xe9s. Au cours du dernier {{period_name}}, les importations de {{reporter}} ont \xe9volu\xe9 \xe0 un rythme de {{diff_percent}}, passant de {{last_last_year_qty}} en {{last_last_year}} \xe0 {{last_year_qty}} en {{last_year}}.",de:"Laut offiziellen Daten, die vom {{reporter}} Zoll ver\xf6ffentlicht wurden, wurde es in {{last_year}} aus {{partner}} {{last_year_qty}} in Waren importiert, die gem\xe4\xdf den angewendeten Filtern deklariert wurden. W\xe4hrend des letzten {{period_name}} haben sich {{reporter}} Importe um {{diff_percent}} , von {{last_last_year_qty}} in {{last_last_year}} bis {{last_year_qty}} in {{last_year}} ge\xe4ndert."},v2_com_mundial_p:{es:"De acuerdo con los datos oficiales publicados por la aduana de {{reporter}}, en {{last_year}} {{flow2}} {{last_year_qty}} en bienes declarados con la partida arancelaria {{product_code}}. Durante el \xfaltimo {{period_name}} las {{flow}} de {{reporter}} han evolucionado a una tasa del {{diff_percent}}, al pasar de {{last_last_year_qty}} en {{last_last_year}} a {{last_year_qty}} en {{last_year}}.",en:"According to the official data published by the customs office of {{reporter}}, in {{last_year}} {{flow2}} declared {{last_year_qty}} goods with the tariff heading {{product_code}}. During the last {{period_name}}, the  {{flow}} {{reporter}} have evolved at a rate of {{diff_percent}}, going from {{last_last_year_qty}} in {{last_last_year}} to {{last_year_qty}} in {{last_year}}.",it:"Secondo i dati doganali ufficiali, nel {{last_year}} {{reporter}} {{flow2}} {{last_year_qty}} di merci dichiarate con la voce tariffaria {{product_code}}. Durante l'ultimo {{period_name}} l'{{flow}} di {{reporter}} \xe8 variato del {{diff_percent}}, passando da {{last_last_year_qty}} nel {{last_last_year}} a {{last_year_qty}} nel {{last_year}}.",pt:"De acordo com os dados oficiais publicados pela alf\xe2ndega de {{reporter}}, em {{last_year}} {{flow2}} {{last_year_qty}} em mercadorias declaradas com o t\xedtulo da tarifa {{product_code}}. Durante o \xfaltimo {{period_name}}, o {{flow}} de {{reporter}} evoluiu a uma taxa de {{diff_percent}}, indo de {{last_last_year_qty}} em {{last_last_year}} a {{last_year_qty}} no {{last_year}}.",fr:"Selon les donn\xe9es officielles publi\xe9es par les {{reporter}} douanes, en {{last_year}} {{flow2}} {{last_year_qty}} dans les marchandises d\xe9clar\xe9es avec la position tarifaire {{product_code}}. Au cours du dernier {{period_name}}, les {{flow}} de {{reporter}} ont \xe9volu\xe9 \xe0 un rythme de {{diff_percent}}, passant de {{last_last_year_qty}} en {{last_last_year}} \xe0 {{last_year_qty}} en {{last_year}}.",de:"Gem\xe4\xdf den offiziellen Angaben des Zolls {{reporter}} in {{last_year}} {{flow2}} {{last_year_qty}} f\xfcr Waren, die mit der Tarifposition {{product_code}} deklariert wurden. W\xe4hrend des letzten {{period_name}} hat sich der {{flow}} von {{reporter}} um  {{diff_percent}} von {{last_last_year_qty}} in {{last_last_year}} bis {{last_year_qty}} im {{last_year}} ge\xe4ndert."},v2_com_mundial_p_noProduct:{es:"De acuerdo con los datos oficiales publicados por la aduana de {{reporter}}, en {{last_year}} {{flow2}} {{last_year_qty}}
78 en bienes declarados seg\xfan los filtros aplicados. Durante el \xfaltimo {{period_name}} las {{flow}} de {{reporter}} han evolucionado a una tasa del {{diff_percent}}, al pasar de {{last_last_year_qty}} en {{last_last_year}} a {{last_year_qty}} en {{last_year}}.",en:"According to the official data published by the customs office of {{reporter}}, in {{last_year}} {{flow2}} declared {{last_year_qty}} goods declared based on the applied filters. During the last {{period_name}}, the  {{flow}} {{reporter}} have evolved at a rate of {{diff_percent}}, going from {{last_last_year_qty}} in {{last_last_year}} to {{last_year_qty}} in {{last_year}}.",it:"Secondo i dati doganali ufficiali, in {{reporter}}, nel {{last_year}} {{flow2}} {{last_year_qty}} di merci. Durante l'ultimo {{period_name}} l'{{flow}} di {{reporter}} \xe8 variato del {{diff_percent}}, passando da {{last_last_year_qty}} nel {{last_last_year}} a {{last_year_qty}} nel {{last_year}}.",pt:"De acordo com dados oficiais publicados pela alf\xe2ndega de {{reporter}}, em {{last_year}} {{flow2}} {{last_year_qty}} em mercadorias declaradas de acordo com os filtros aplicados. Durante o \xfaltimo {{period_name}}, o {{flow}} de {{reporter}} evoluiu a uma taxa de {{diff_percent}}, indo de {{last_last_year_qty}} em {{last_last_year}} a {{last_year_qty}} no {{last_year}}.",fr:"Selon les donn\xe9es officielles publi\xe9es par {{reporter}} douane, en {{last_year}} {{flow2}} {{last_year_qty}} en marchandises d\xe9clar\xe9es selon les filtres appliqu\xe9s. Au cours du dernier {{period_name}}, les {{flow}} de {{reporter}} ont \xe9volu\xe9 \xe0 un rythme de {{diff_percent}}, passant de {{last_last_year_qty}} en {{last_last_year}} \xe0 {{last_year_qty}} en {{last_year}}.",de:"Nach offiziellen Daten, die vom Zoll des {{reporter}} ver\xf6ffentlicht wurden, in {{last_year}} {{flow2}} {{last_year_qty}} in Waren, die gem\xe4\xdf den angewendeten Filtern deklariert wurden. W\xe4hrend des letzten {{period_name}} hat sich der {{flow}} von {{reporter}} um {{diff_percent}} von {{last_last_year_qty}} in {{last_last_year}} zu {{last_year_qty}} im {{last_year}} ge\xe4ndert."},v3_com_mundial_p:{es:"De acuerdo con los datos oficiales publicados por la aduana de {{reporter}}, en {{last_year}} {{flow2}} {{last_year_qty}} en bienes declarados con la partida arancelaria {{product_code}}. Durante el \xfaltimo {{period_name}} las {{flow}} de {{reporter}} han evolucionado a una tasa del {{diff_percent}}, al pasar de {{last_last_year_qty}} en {{last_last_year}} a {{last_year_qty}} en {{last_year}}.",en:"According to the official data published by the customs office of {{reporter}}, in {{last_year}} {{flow2}} declared {{last_year_qty}} goods with the tariff heading {{product_code}}. During the last {{period_name}}, the  {{flow}} {{reporter}} have evolved at an annual of {{diff_percent}}, going from {{last_last_year_qty}} in {{last_last_year}} to {{last_year_qty}} in {{last_year}}.",it:"Secondo i dati doganali ufficiali, {{reporter}} nel corso di {{last_year}} {{flow2}} {{last_year_qty}} di merci dichiarate con la voce tariffaria {{product_code}}. Durante l'ultimo {{period_name}} l'{{flow}} di {{reporter}} \xe8 variato del {{diff_percent}}, passando da {{last_last_year_qty}} nel {{last_last_year}} a {{last_year_qty}} nel {{last_year}}.",pt:"De acordo com os dados oficiais publicados pela alf\xe2ndega de {{reporter}}, em {{last_year}} {{flow2}} {{last_year_qty}} em mercadorias declaradas com o t\xedtulo da tarifa {{product_code}}. Durante o \xfaltimo {{period_name}}, o {{flow}} de {{reporter}} evoluiu a uma taxa de {{diff_percent}}, indo de {{last_last_year_qty}} em {{last_last_year}} a {{last_year_qty}} no {{last_year}}.",fr:"Selon les donn\xe9es officielles publi\xe9es par les {{reporter}} douanes, en {{last_year}} {{flow2}} {{last_year_qty}} dans les marchandises d\xe9clar\xe9es avec la position tarifaire {{product_code}}. Au cours du dernier {{period_name}}, les {{flow}} de {{reporter}} ont \xe9volu\xe9 \xe0 un rythme de {{diff_percent}}, passant de {{last_last_year_qty}} en {{last_last_year}} \xe0 {{last_year_qty}} en {{last_year}}.",de:"Nach offiziellen Angaben des Zolls {{reporter}} in {{last_year}} {{flow2}} {{last_year_qty}} f\xfcr Waren, die mit der Tarifposition {{product_code}} deklariert wurden. W\xe4hrend des letzten {{period_name}} hat sich der {{flow}} von {{reporter}} um {{diff_percent}} von {{last_last_year_qty}} in {{last_last_year}} zu {{last_year_qty}} im {{last_year}} ge\xe4ndert."},v3_com_mundial_p_noProduct:{es:"De acuerdo con los datos oficiales publicados por la aduana de {{reporter}}, en {{last_year}} {{flow2}} {{last_year_qty}}
78 en bienes declarados seg\xfan los filtros aplicados. Durante el \xfaltimo {{period_name}} las {{flow}} de {{reporter}} han evolucionado a una tasa del {{diff_percent}}, al pasar de {{last_last_year_qty}} en {{last_last_year}} a {{last_year_qty}} en {{last_year}}.",en:"According to the official data published by the customs office of {{reporter}}, in {{last_year}} {{flow2}} declared {{last_year_qty}} goods declared based on the applied filters. During the last {{period_name}}, the  {{flow}} {{reporter}} have evolved at a rate of {{diff_percent}}, going from {{last_last_year_qty}} in {{last_last_year}} to {{last_year_qty}} in {{last_year}}.",it:"Secondo i dati doganali ufficiali. {{reporter}} nel {{last_year}} {{flow2}} {{last_year_qty}} nelle merci dichiarate. Durante l'ultimo {{period_name}} l'{{flow}} in {{reporter}} \xe8 variato del {{diff_percent}}, passando da {{last_last_year_qty}} nel {{last_last_year}} a {{last_year_qty}} nel {{last_year}}.",pt:"De acordo com dados oficiais publicados pela alf\xe2ndega de {{reporter}}, em {{last_year}} {{flow2}} {{last_year_qty}} em mercadorias declaradas de acordo com os filtros aplicados. Durante o \xfaltimo {{period_name}}, o {{flow}} de {{reporter}} evoluiu a uma taxa de {{diff_percent}}, indo de {{last_last_year_qty}} em {{last_last_year}} a {{last_year_qty}} no {{last_year}}.",fr:"Selon les donn\xe9es officielles publi\xe9es par {{reporter}} douane, en {{last_year}} {{flow2}} {{last_year_qty}} en marchandises d\xe9clar\xe9es selon les filtres appliqu\xe9s. Au cours du dernier {{period_name}}, les {{flow}} de {{reporter}} ont \xe9volu\xe9 \xe0 un rythme de {{diff_percent}}, de {{last_last_year_qty}} en {{last_last_year}} \xe0 {{last_year_qty}} en {{last_year}}",de:"Gem\xe4\xdf den offiziellen Daten, die vom Zoll des {{reporter}} ver\xf6ffentlicht wurden, in {{last_year}} {{flow2}} {{last_year_qty}} in Waren, die gem\xe4\xdf den angewendeten Filtern deklariert wurden. W\xe4hrend des letzten {{period_name}} hat sich der {{flow}} von {{reporter}} um {{diff_percent}} von {{last_last_year_qty}} in {{last_last_year}} zu {{last_year_qty}} im {{last_year}} ge\xe4ndert."},v2_com_mundial_extra:{es:"Los principales or\xedgenes de las importaciones de {{reporter}} desde {{date_ini}} hasta {{date_end}} han sido: {{country_list}}.",en:"The main sources of {{reporter}} imports from {{date_ini}} until {{date_end}} were: {{country_list}}.",it:"Le principali origini delle importazioni di {{reporter}} dal {{date_ini}} al {{date_end}} sono state: {{country_list}}.",pt:"As principais fontes de importa\xe7\xf5es de {{reporter}} de {{date_ini}} para {{date_end}} foram: {{country_list}}.",fr:"Les principales sources des importations {{reporter}} du {{date_ini}} au {{date_end}} sont: {{country_list}}.",de:"Die Hauptquellen f\xfcr {{reporter}} Importe von {{date_ini}} bis {{date_end}} waren: {{country_list}}."},v3_com_mundial_extra:{es:"Los principales destinos de las exportaciones de {{reporter}} desde {{date_ini}} hasta {{date_end}} han sido: {{country_list}}.",en:"The main destinations of {{reporter}} exports from {{date_ini}} until {{date_end}} were: {{country_list}}.",it:"Le principali destinazioni delle esportazioni di {{reporter}} dal {{date_ini}} al {{date_end}} sono state: {{country_list}}.",pt:"Os principais destinos das exporta\xe7\xf5es de {{reporter}} de {{date_ini}} para {{date_end}} foram: {{country_list}}.",fr:"Les principales destinations des exportations de {{reporter}} du {{date_ini}} au {{date_end}} ont \xe9t\xe9: {{country_list}}.",de:"Die Hauptziele f\xfcr {{reporter}} Exporte von {{date_ini}} bis {{date_end}} waren: {{country_list}}."},com_mundial_h2_time:{es:"Evoluci\xf3n de las {{flow}}",en:"Evolution of {{flow}}",it:"Evoluzione delle {{flow}}",pt:"Evolu\xe7\xe3o de {{flow}}",fr:"\xc9volution de {{flow}}",de:"Entwicklung von {{flow}}"},v2_com_mundial_h2_map:{es:"Pa\xedses que {{flow_invers}} a {{reporter}} desde {{date_ini}} hasta {{date_end}}",en:"Countries that {{flow_invers}} to {{reporter}} from {{date_ini}} until {{date_end}}",it:"Paesi che {{flow_invers}} in {{reporter}} dal {{date_ini}} al {{date_end}}",pt:"Pa\xedses que {{flow_invers}} para {{reporter}} de {{date_ini}} a {{date_end}}",fr:"Pays qui {{flow_invers}} vers {{reporter}} de {{date_ini}} \xe0 {{date_end}}",de:"L\xe4nder, die {{flow_invers}} bis {{reporter}} von {{date_ini}} bis {{date_end}}"},v3_com_mundial_h2_map:{es:"Pa\xedses que {{flow_invers}} de {{reporter}} desde {{date_ini}} hasta {{date_end}}",en:"Countries that {{flow_invers}} of {{reporter}} from {{date_ini}} until {{date_end}}",it:"Paesi che {{flow_invers}} da {{reporter}} dal {{date_ini}} al {{date_end}}",pt:"Pa\xedses que {{flow_invers}} de {{reporter}} de {{date_ini}} a {{date_end}}",fr:"Pays qui {{flow_invers}} de {{reporter}} de {{date_ini}} \xe0 {{date_end}}",de:"L\xe4nder, die {{flow_invers}} von {{reporter}} von {{date_ini}} bis {{date_end}}"},com_mundial_h2_companies:{es:"Empresas {{flow}} en {{reporter}}
78",en:"Companies {{flow}} in {{reporter}}",it:"Aziende {{flow}} in {{reporter}}",pt:"Empresas {{flow}} em {{reporter}}",fr:"Entreprises {{flow}} \xe0 {{reporter}}",de:"Unternehmen {{flow}} in {{reporter}}"},com_mundial_p_companies:{es:"Directorio de empresas basado en los datos de operaciones de {{flow}} publicados por las autoridades competentes de {{reporter}}. El listado incluye todas aquellas empresas con actividad {{flow2}} durante los \xfaltimos tres a\xf1os de {{product}}.",en:"Company directory based on {{flow}} operations data published by the competent authorities of {{reporter}}. The list includes all companies with {{flow2}} activity of {{product}} in the last three years.",it:"Elenco di aziende basato sui dati di {{flow}} pubblicati dalle autorit\xe0 competenti di {{reporter}}. L'elenco comprende tutte le aziende con attivit\xe0 di {{flow2}} di {{product}} negli ultimi tre anni.",pt:"Diret\xf3rio de empresas baseado em dados operacionais de {{flow}} publicados pelas autoridades competentes de {{reporter}}. A lista inclui todas as empresas com atividade de {{flow2}} durante os \xfaltimos tr\xeas anos de {{produto}}.",fr:"Annuaire d'entreprises bas\xe9 sur les donn\xe9es d'exploitation de {{flow}} publi\xe9es par les autorit\xe9s comp\xe9tentes de {{reporter}}. La liste comprend toutes les entreprises ayant {{flow2}} activit\xe9 au cours des trois derni\xe8res ann\xe9es de {{product}}.",de:"Gesch\xe4ftsverzeichnis basiert auf {{flow}} Betriebsdaten, die von {{reporter}} zust\xe4ndigen Beh\xf6rden ver\xf6ffentlicht wurden. Die Liste enth\xe4lt alle Unternehmen, die in den letzten drei Jahren mit {{product}} {{flow2}} aktiv waren."},page_title:{es:"An\xe1lisis de las {{title}}",en:"Analysis of the {{title}}",it:"Analisi delle {{title}}",pt:"An\xe1lise do {{title}}",fr:"Analyse du {{title}}",de:"Analyse von {{title}}"},warning_no_results:{es:"No hay resultados disponibles de operaciones detalladas para la b\xfasqueda con los par\xe1metros seleccionados.",en:"No detailed operation results available for searching with selected parameters.",it:"Nessun risultato disponibile che rispetti tutti i parametri indicati",pt:"Nenhum resultado de opera\xe7\xe3o detalhado dispon\xedvel para pesquisa com par\xe2metros selecionados",fr:"Aucun r\xe9sultat d'op\xe9ration d\xe9taill\xe9 disponible pour la recherche avec les param\xe8tres s\xe9lectionn\xe9s",de:"F\xfcr die Suche mit ausgew\xe4hlten Parametern sind keine detaillierten Betriebsergebnisse verf\xfcgbar"},warning_datasource:{es:"No ha sido posible realizar la b\xfasqueda con todos los par\xe1metros seleccionados porque las autoridades de {{country}} no publican informaci\xf3n detallada.",en:"It was not possible to perform the search with all the parameters selected because the authorities of {{country}} do not publish detailed information",it:"ANALISI MACROECONOMICA (le autorit\xe0 in {{country}} non pubblicano informazioni dettagliate)",pt:"N\xe3o foi poss\xedvel realizar a pesquisa com todos os par\xe2metros selecionados porque as autoridades de {{country}} n\xe3o publicam informa\xe7\xf5es detalhadas",fr:"Il n'a pas \xe9t\xe9 possible d'effectuer la recherche avec tous les param\xe8tres s\xe9lectionn\xe9s car les autorit\xe9s de {{country}} ne publient pas d'informations d\xe9taill\xe9es",de:"Es war nicht m\xf6glich, die Suche mit allen ausgew\xe4hlten Parametern durchzuf\xfchren, da die Beh\xf6rden von {{country}} keine detaillierten Informationen ver\xf6ffentlichen"},warning_no_access:{es:"Los siguientes resultados contienen una muestra de la informaci\xf3n m\xe1s detallada disponible en este mercado. Por favor contacte con nuestro equipo si desea obtener los permisos para ver los resultados completos.",en:"The following results contain a sample of the most detailed information available in this market. Please contact our team if you wish to obtain the permits to see the full results.",it:"I seguenti risultati mostrano solo un campione delle informazioni  dettagliate disponibili in questo mercato. Si prega di contattare il nostro team se si desidera ottenere i permessi per vedere i risultati completi.",pt:"Os resultados a seguir cont\xeam uma amostra das informa\xe7\xf5es mais detalhadas dispon\xedveis neste mercado. Entre em contato com nossa equipe se desejar obter as licen\xe7as para ver os resultados completos.",fr:"Les r\xe9sultats suivants contiennent un \xe9chantillon des informations les plus d\xe9taill\xe9es disponibles sur ce march\xe9. Veuillez contacter notre \xe9quipe si vous souhaitez obtenir les permis pour voir les r\xe9sultats complets.",de:"Die folgenden Ergebnisse enthalten ein Muster der detailliertesten Informationen, die auf diesem Markt verf\xfcgbar sind. Bitte kontaktieren Sie unser Team, wenn Sie die Genehmigung erhalten m\xf6chten, um die vollst\xe4ndigen Ergebnisse zu sehen."},warning_no_access__no_results:{es:"No hay resultados disponibles de operaciones detalladas para la b\xfasqueda con los par\xe1metros seleccionados. Por favor contacte con nuestro equipo si desea obtener los permisos para ver los resultados completos.",en:"No detailed operation results are available for the search with the selected parameters. Please contact our team if you want to obtain the permits to see the full results",it:"Online non sono pubblicate informazioni dettagliate per la ricerca con i parametri selezionati. Si prega di contattare il nostro team per verificarne la disponibilit\xe0 off-line",pt:"Nenhum resultado de opera\xe7\xe3o detalhado est\xe1 dispon\xedvel para a pesquisa com os par\xe2metros selecionados. Entre em contato com nossa equipe se voc\xea deseja obter as licen\xe7as para ver os resultados completos",fr:"Aucun r\xe9sultat d'op\xe9ration d\xe9taill\xe9 n'est disponible pour la recherche avec les param\xe8tres s\xe9lectionn\xe9s. Veuillez contacter notre \xe9quipe si vous souhaitez obtenir les permis pour voir les r\xe9sultats complets",de:"F\xfcr die Suche mit den ausgew\xe4hlten Parametern sind keine detaillierten Operationsergebnisse verf\xfcgbar. Bitte kontaktieren Sie unser Team, wenn Sie die Genehmigung erhalten m\xf6chten, um die vollst\xe4ndigen Ergebnisse zu sehen"}},f={name:{es:"Nombre",en:"Name",it:"Nome",pt:"Nome",fr:"Nom",de:"Name"},lastname:{es:"Apellidos",en:"Lastname",it:"Cognome",pt:"Sobrenomes",fr:"Noms de famille",de:"Nachnamen"},email:{es:"Email",en:"Email",it:"Email",pt:"Email",fr:"Email",de:"Email"},phone:{es:"Tel\xe9fono",en:"Phone",it:"Telefono",pt:"Telefone",fr:"T\xe9l\xe9phone",de:"Telefon"}
78,send:{es:"Enviar",en:"Send",it:"Inviare",pt:"Enviar",fr:"Envoyer",de:"Senden"},save:{es:"Guardar",en:"Save",it:"Salva",pt:"Salve",fr:"sauvegarder",de:"sparen"},year:{es:"A\xf1o",en:"Year",it:"Anno",pt:"Ano",fr:"An",de:"Jahr"},month:{es:"Mes",en:"Month",it:"Mese",pt:"M\xeas",fr:"Mois",de:"Monat"},day:{es:"D\xeda",en:"Day",it:"Giorno",pt:"dia",fr:"jour",de:"Tag"},volume:{es:"Volumen",en:"Volume",it:"Volume",pt:"Volume",fr:"Volume",de:"Volumen"},viewmore:{es:"Ver m\xe1s",en:"View more",it:"Vedere di pi\xf9",pt:"Veja mais",fr:"Voir plus",de:"Mehr sehen"},evolution:{es:"Evoluci\xf3n",en:"Evolution",it:"Evoluzione",pt:"Evolu\xe7\xe3o",fr:"\xc9volution",de:"Evolution"},country:{es:"Pa\xeds",en:"Country",it:"Paese",pt:"Pa\xeds",fr:"Pays",de:"Land"},quota:{es:"Cuota",en:"Quota",it:"Quota",pt:"Compartilhar",fr:"Partager",de:"Aktie"},search:{es:"Buscar",en:"Search",it:"Ricerca",pt:"Procurar",fr:"Chercher",de:"Suchen"},date:{es:"Fecha",en:"Date",it:"Data",pt:"Data",fr:"Date",de:"Datum"},dateIni:{es:"Fecha inicial",en:"Initial date",it:"Data di inizio",pt:"Data de in\xedcio",fr:"La date initiale",de:"Anfangsdatum"},dateEnd:{es:"Fecha final",en:"End date",it:"Data di fine",pt:"Data final",fr:"Date finale",de:"Endg\xfcltiges Datum"},close:{es:"Cerrar",en:"Close",it:"Chiudere",pt:"Fechar",fr:"Fermer",de:"Schlie\xdfen"},cancel:{es:"Cancelar",en:"Cancel",it:"Cancella",pt:"Cancelar",fr:"Annuler",de:"Abbrechen"},remove:{es:"Eliminar",en:"Delete",it:"Elimina",pt:"Retirar",fr:"Retirer",de:"Eliminieren"},loading:{es:"Cargando...",en:"Loading...",it:"Caricamento...",pt:"Carregando...",fr:"Chargement...",de:"Wird geladen..."},position:{es:"Cargo",en:"Position",it:"Posizione",pt:"Posi\xe7ao",fr:"Positionner",de:"Position"},products:{es:"Productos",en:"Products",it:"Prodotti",pt:"Produtos",fr:"Produits",de:"Produkte"},imp:{es:"importaciones",en:"imports",it:"importazioni",pt:"Importa\xe7\xf5es",fr:"Importations",de:"Importe"},imp2:{es:"ha importado",en:"has imported",it:"ha importato",pt:"Importou",fr:"A import\xe9",de:"Hat importiert"},imp3:{es:"importadoras",en:"importing",it:"importatrici",pt:"Importadores",fr:"Importateurs",de:"Importeure"},imp4:{es:"importaci\xf3n",en:"import",it:"importazione",pt:"Importar",fr:"Importer",de:"Importieren"},imp5:{es:"importadora",en:"importing",it:"importatrice",pt:"Importador",fr:"Importateur",de:"Importeur"},imp_invers:{es:"exportan",en:"export",it:"esportano",pt:"Exportar",fr:"Exportation",de:"Export"},exp:{es:"exportaciones",en:"exports",it:"esportazioni",pt:"Exporta\xe7\xf5es",fr:"Exportations",de:"Exporte"},exp2:{es:"ha exportado",en:"has exported",it:"ha esportato",pt:"Exportou",fr:"A export\xe9",de:"Hat exportiert"},exp3:{es:"exportadoras",en:"exporting",it:"esportatrici",pt:"Exportadores",fr:"Exportateurs",de:"Exporteure"},exp4:{es:"exportaci\xf3n",en:"export",it:"esportazione",pt:"Exporta\xe7\xe3o",fr:"Exportation",de:"Export"},exp5:{es:"exportadora",en:"exporting",it:"esportatrice",pt:"Exportador",fr:"Exportateur",de:"Exporteur"},exp_invers:{es:"importan",en:"import",it:"importano",pt:"importam",fr:"mati\xe8re",de:"importieren"},importer:{es:"Importador",en:"Importer",it:"Importatore",pt:"Importador",fr:"Importateur",de:"Importeur"},importers:{es:"Importadores",en:"Importers",it:"Importatori",pt:"Importadores",fr:"Importateurs",de:"Importeure"},exporter:{es:"Exportador",en:"Exporter",it:"Esportatore",pt:"Exporteur",fr:"exportateur",de:"Exporteur"},exporters:{es:"Exportadores",en:"Exporters",it:"Esportatori",pt:"Exportadores",fr:"Exportateurs",de:"Exporteure"},percentValue:{es:"% del valor",en:"% of value",it:"% del valore",pt:"% De valor",fr:"% De valor",de:"% des Wertes"},value:{es:"Valor",en:"Value",it:"Valore",pt:"Valor",fr:"Valeur",de:"Wert"},company:{es:"Empresa",en:"Company",it:"Azienda",pt:"Companhia",fr:"Entreprise",de:"Unternehmen"},productDesc:{es:"Descripci\xf3n de producto",en:"Product description",it:"Descrizione del prodotto",pt:"Descri\xe7\xe3o do Produto",fr:"Description du produit",de:"Produktbeschreibung"},activity:{es:"Actividad",en:"Activity",it:"Attivit\xe0",pt:"Atividade",fr:"Activit\xe9",de:"Aktivit\xe4t"},employees:{es:"Empleados",en:"Employees",it:"Dipendenti",pt:"Funcion\xe1rios",fr:"Des employ\xe9s",de:"Angestellte"},billing:{es:"Facturaci\xf3n",en:"Billing",it:"Fatturato",pt:"Cobran\xe7a",fr:"Des Facturation",de:"Abrechnung"},siccode:{es:"C\xf3digo SIC",en:"SIC Code",it:"Codice SIC",pt:"C\xf3digo",fr:"Code SIC",de:"Code SIC"},description:{es:"Descripci\xf3n",en:"Description",it:"Descrizione",pt:"Descri\xe7\xe3o",fr:"Description",de:"Beschreibung"},quantity:{es:"Cantidad",en:"Quantity",it:"Quantit\xe0",pt:"Quantidade",fr:"Quantit\xe9",de:"Menge"},units:{es:"Unidades",en:"Units",it:"Unit\xe0",pt:"Unidades",fr:"Unit\xe9s",de:"Einheiten"},weight:{es:"Peso",en:"Weight",it:"Peso",pt:"Peso",fr:"Poids",de
78:"Gewicht"},viewCompany:{es:"Ver empresa",en:"View company",it:"Visualizza azienda",pt:"Ver empresa",fr:"Voir l'entreprise",de:"Unternehmen anzeigen"},viewCompanies:{es:"Ver empresas",en:"View companies",it:"Visualizza aziende",pt:"Veja empresas",fr:"Voir les entreprises",de:"Siehe Unternehmen"},setCompanyAsFilter:{es:"Aplicar empresa como filtro",en:"Apply company as filter",it:"Applica azienda come filtro",pt:"Aplicar empresa como filtro",fr:"Appliquer l'entreprise comme filtre",de:"Firma als Filter anwenden"},restrictedInfoWarning:{es:"Para ver la informaci\xf3n sin restricciones debes registrarte como usuario de Enantio.",en:"To see the information without restrictions you must register as an Enantio user.",it:"Per visualizzare le informazioni senza restrizioni \xe8 necessario registrarsi come utente Enantio.",pt:"Para ver as informa\xe7\xf5es sem restri\xe7\xf5es, voc\xea deve se registrar como um usu\xe1rio Enantio.",fr:"Pour voir les informations sans restrictions, vous devez vous enregistrer en tant qu'utilisateur Enantio.",de:"Um die Informationen ohne Einschr\xe4nkungen anzuzeigen, m\xfcssen Sie sich als Enantio-Benutzer registrieren."},restrictedPremiumInfoWarning:{es:"PARA VER ESTA INFORMACI\xd3N DEBES SER UN USUARIO PREMIUM",en:"TO SEE THIS INFORMATION YOU MUST BE A PREMIUM USER",it:"PER VEDERE QUESTE INFORMAZIONI DEVI ESSERE UN UTENTE PREMIUM",pt:"PARA VER ESTAS INFORMA\xc7\xd5ES, VOC\xca DEVE SER UM USU\xc1RIO PREMIUM",fr:"POUR VOIR CES INFORMATIONS, VOUS DEVEZ \xcaTRE UN UTILISATEUR PREMIUM",de:"Um diese Informationen zu sehen, m\xfcssen Sie ein Premium-Benutzer sein"},proPopupWarningTitle:{es:"\xbfQuieres saber m\xe1s sobre esta empresa?",en:"Do you want to know more about this company?",it:"Vuoi saperne di pi\xf9 su questa azienda?",pt:"Quer saber mais sobre esta empresa?",fr:"Voulez-vous en savoir plus sur cette entreprise?",de:"M\xf6chten Sie mehr \xfcber dieses Unternehmen erfahren?"},proPopupWarningText:{es:"Reg\xedstrate como usuario premium y podr\xe1s acceder a m\xe1s informaci\xf3n",en:"Register as a premium user and you can access more information",it:"Registrati come utente premium e potrai accedere a maggiori informazioni",pt:"Registre-se como um usu\xe1rio premium e voc\xea pode acessar mais informa\xe7\xf5es",fr:"Inscrivez-vous en tant qu'utilisateur premium et vous pouvez acc\xe9der \xe0 plus d'informations",de:"Registrieren Sie sich als Premium-Benutzer und Sie k\xf6nnen auf weitere Informationen zugreifen"},proDialogText:{es:"Prueba gratis las anal\xedticas avanzadas y herramientas de inteligencia de mercado en la plataforma de Enantio.",en:"Try advanced analytics and market intelligence tools for free on the Enantio platform.",it:"Prova gratuitamente le analisi avanzate e gli strumenti di market intelligence sulla piattaforma di Enantio.",pt:"Teste gratuito de an\xe1lises avan\xe7adas e ferramentas de intelig\xeancia de mercado na plataforma Enantio.",fr:"Essai gratuit d'outils avanc\xe9s d'analyse et de veille commerciale sur la plateforme Enantio.",de:"Testen Sie die erweiterten Analyse- und Market Intelligence-Tools auf der Enantio-Plattform kostenlos."},proDialogText2:{es:"Ya tiene una cuenta en Enantio? <a href='https://app.enantio.com' target='_blank' rel=''>Acceda aqu\xed</a>",en:"Do you already have an Enantio account? <a href='https://app.enantio.com' target='_blank' rel=''>Access here</a>",it:"Hai gi\xe0 un account Enantio? <a href='https://app.enantio.com' target='_blank' rel=''>Accedi qui</a>",pt:"Voc\xea j\xe1 tem uma conta Enantio? <a href='https://app.enantio.com' target='_blank' rel=''>Acesse aqui</a>",fr:"Avez-vous d\xe9j\xe0 un compte Enantio? <a href='https://app.enantio.com' target='_blank' rel=''>Acc\xe9dez ici</a>",de:"Haben Sie bereits ein Enantio-Konto? <a href='https://app.enantio.com' target='_blank' rel=''>Zugang hier</a>"},genericMoreInfo:{es:"M\xe1s informaci\xf3n",en:"More information",it:"Ulteriori informazioni",pt:"Mais informa\xe7\xe3o",fr:"Plus d'informations",de:"Mehr Informationen"},emailCorpError:{es:"Debe ser una direcci\xf3n de email profesional",en:"Must be a professional email address",it:"Deve essere un indirizzo e-mail professionale",pt:"Deve ser um endere\xe7o de e-mail profissional",fr:"Il doit s'agir d'une adresse e-mail professionnelle",de:"Es muss eine professionelle E-Mail-Adresse sein"},signupSent:{es:"\xa1Gracias por registrarte! En breve se pondr\xe1 en contacto nuestro equipo con la informaci\xf3n solicitada.",en:"Thank y
78ou for signing up! Our team will get in touch soon with the requested information.",it:"Grazie per la registrazione! A breve il nostro team ti contatter\xe0 per fornirti le informazioni richieste.",pt:"Obrigado por inscrever-se! Nossa equipe entrar\xe1 em contato com voc\xea em breve com as informa\xe7\xf5es solicitadas.",fr:"Merci pour votre inscription! Notre \xe9quipe vous contactera sous peu avec les informations demand\xe9es.",de:"Danke f\xfcr's Registrieren! Unser Team wird Sie in K\xfcrze mit den angeforderten Informationen kontaktieren."},searchProduct:{es:"Buscar producto",en:"Search product",it:"Ricerca prodotto",pt:"Encontre o produto",fr:"Trouver un produit",de:"Produkt finden"},searchByIndex:{es:"Buscar por \xedndice",en:"Search by index",it:"Ricerca per indice",pt:"Pesquisa por \xedndice",fr:"Recherche par index",de:"Suche nach Index"},searchErrorMandatory:{es:"Debe seleccionar al menos un pa\xeds y un producto, importador, exportador o descripci\xf3n.",en:"Please select at least one country and a product, description, importer, or exporter.",it:"\xc8 necessario selezionare almeno un paese e un prodotto, un importatore o un esportatore",pt:"Voc\xea deve selecionar pelo menos um pa\xeds e um produto, importador, exportador ou descri\xe7\xe3o.",fr:"Vous devez s\xe9lectionner au moins un pays et un produit, importateur, exportateur ou description.",de:"Sie m\xfcssen mindestens ein Land und ein Produkt, einen Importeur, einen Exporteur oder eine Beschreibung ausw\xe4hlen."},formErrorMandatory:{es:"Todos los campos son obligatorios",en:"All fields are mandatory",it:"Tutti i campi sono obbligatori",pt:"Todos os campos s\xe3o obrigat\xf3rios",fr:"Tous les champs sont requis",de:"alle Felder sind erforderlich"},originCountry:{es:"Pa\xeds de origen",en:"Origin country",it:"Paese di origine",pt:"Pa\xeds de origem",fr:"Pays d'origine",de:"Herkunftsland"},destinationCountry:{es:"Pa\xeds de destino",en:"Destination country",it:"Paese di destinazione",pt:"Pa\xeds de destino",fr:"Pays de destination",de:"Zielland"},deleteFilters:{es:"Borrar filtros",en:"Delete filters",it:"Annulla filtri",pt:"Filtros claros",fr:"Effacer les filtres",de:"Filter l\xf6schen"},headerSignup:{es:"Accede",en:"Signup",it:"Registrazione",pt:"Assinar em",fr:"se connecter",de:"Anmelden"},loginTitle:{es:"Iniciar sesi\xf3n",en:"Login",it:"Accedi",pt:"Iniciar sess\xe3o",fr:"Commencer la session",de:"Einloggen"},signupTitle:{es:"Registrarse",en:"Signup",it:"Registrazione",pt:"Registro",fr:"Enregistrement",de:"Registrierung"},signupSubtitle1:{es:"Crea tu cuenta ahora.",en:"Create your account now",it:"Crea il tuo account",pt:"Crie sua conta agora",fr:"Cr\xe9ez votre compte maintenant",de:"Erstellen Sie jetzt Ihr Konto"},signupSubtitle2:{es:"Tendr\xe1s acceso a todos los filtros del buscador (fecha de inicio, fecha de fin, exportador, importador, etc.), y podr\xe1s guardar los informes en tu \xe1rea personal.",en:"You will have access to all the search engine filters (start date, end date, exporter, importer, etc.), and you can save the reports in your personal area",it:"Avrai accesso a tutti i filtri dei motori di ricerca (data di inizio, data di fine, esportatore, importatore, ecc.) e potrai salvare nella tua area personale le ricerche effettuate",pt:"Voc\xea ter\xe1 acesso a todos os filtros do buscador (data de in\xedcio, data de t\xe9rmino, exportador, importador, etc.), e poder\xe1 salvar os relat\xf3rios em sua \xe1rea pessoal",fr:"Vous aurez acc\xe8s \xe0 tous les filtres des moteurs de recherche (date de d\xe9but, date de fin, exportateur, importateur, etc.), et vous pourrez sauvegarder les rapports dans votre espace personnel",de:"Sie haben Zugriff auf alle Suchmaschinenfilter (Startdatum, Enddatum, Exporteur, Importeur usw.) und k\xf6nnen die Berichte in Ihrem pers\xf6nlichen Bereich speichern"},download:{es:"Descargar",en:"Download",it:"Download",pt:"Baixar",fr:"T\xe9l\xe9charger",de:"Herunterladen"},saveReport:{es:"Guardar informe",en:"Save report",it:"Salvare il report",pt:"Salvar o relatorio",fr:"Enregistrer le rapport",de:"Bericht speichern"},signup:{es:"Enviar",en:"Signup",it:"Invia",pt:"Enviar",fr:"Envoyer",de:"Senden"},login:{es:"Entrar",en:"Login",it:"Accedi",pt:"Entrar",fr:"Entrer",de:"Reinkommen"},signin:{es:"Iniciar Sesi\xf3n",en:"Signin",it:"Inizia Sessione",pt:"Iniciar sess\xe3o",fr:"Commencer la session",de
78:"Einloggen"},resend:{es:"reenviar",en:"resend",it:"invia di nuovo",pt:"Reenviar",fr:"Renvoyer",de:"Erneut senden"},code:{es:"C\xf3digo",en:"Code",it:"Codice",pt:"C\xf3digo",fr:"Code",de:"Code"},sent:{es:"enviado",en:"sent",it:"inviato",pt:"enviei",fr:"exp\xe9di\xe9",de:"geschickt"},email:{es:"Email",en:"Email",it:"Email",pt:"Email",fr:"Email",de:"Email"},password:{es:"Contrase\xf1a",en:"Password",it:"Password",pt:"Senha",fr:"Mot de passe",de:"Passwort"},socialmedia:{es:"Redes sociales",en:"Social Media",it:"Social Media",pt:"Redes Sociais",fr:"R\xe9seaux sociaux",de:"Sozialen Medien"},InvalidPasswordException:{es:"La contrase\xf1a no es suficientemente segura. Debe contener 8 caracteres entre n\xfameros, letras en may\xfasculas y letras min\xfasculas",en:"The password is not strong enough. It should contain a minimun of 8 caracters with numbers, uppercase letters and lowercase letters",it:"La password non \xe8 abbastanza sicura. Deve contenere almeno 8 caratteri fra cui numeri, lettere maiuscole e lettere minuscole",pt:"A senha n\xe3o \xe9 forte o suficiente. Deve conter 8 caracteres entre n\xfameros, letras mai\xfasculas e letras min\xfasculas",fr:"Le mot de passe n'est pas assez fort. Il doit contenir 8 caract\xe8res entre les chiffres, les lettres majuscules et les lettres minuscules",de:"Das Passwort ist nicht stark genug. Es muss 8 Zeichen zwischen Zahlen, Gro\xdf- und Kleinbuchstaben enthalten"},InvalidParameterException:{es:"La contrase\xf1a no es suficientemente segura. Debe contener 8 caracteres entre n\xfameros, letras en may\xfasculas y letras min\xfasculas",en:"The password is not strong enough. It should contain a minimun of 8 caracters with numbers, uppercase letters and lowercase letters",it:"La password non \xe8 abbastanza sicura. Deve contenere almeno 8 caratteri fra cui numeri, lettere maiuscole e lettere minuscole",pt:"A senha n\xe3o \xe9 forte o suficiente. Deve conter 8 caracteres entre n\xfameros, letras mai\xfasculas e letras min\xfasculas",fr:"Le mot de passe n'est pas assez fort. Il doit contenir 8 caract\xe8res entre les chiffres, les lettres majuscules et les lettres minuscules",de:"Das Passwort ist nicht stark genug. Es muss 8 Zeichen zwischen Zahlen, Gro\xdf- und Kleinbuchstaben enthalten"},UsernameExistsException:{es:"El usuario ya existe",en:"The user already exists",it:"Questa username esiste gi\xe0",pt:"Usu\xe1rio j\xe1 existe",fr:"L'utilisateur existe d\xe9j\xe0",de:"Benutzer existiert bereits"},UserNotConfirmedException:{es:"El usuario no ha confirmado su email",en:"This email has not been confirmed",it:"Username non confermata",pt:"O usu\xe1rio n\xe3o confirmou seu e-mail",fr:"L'utilisateur n'a pas confirm\xe9 son email",de:"Der Benutzer hat seine E-Mail nicht best\xe4tigt"},NotAuthorizedException:{es:"Email y/o contrase\xf1a incorrectos",en:"Email and/or password incorrect",it:"Email e/o password non corrette",pt:"Email e / ou senha incorretos",fr:"E-mail et / ou mot de passe incorrect",de:"Falsche E-Mail und / oder falsches Passwort"},UserNotFoundException:{es:"Email y/o contrase\xf1a incorrectos",en:"Email and/or password incorrect",it:"Email e/o password non corrette",pt:"Email e / ou senha incorretos",fr:"E-mail et / ou mot de passe incorrect",de:"Falsche E-Mail und / oder falsches Passwort"},UnexpectedError:{es:"Error inesperado",en:"Unexpected error",it:"Errore non previsto",pt:"Erro inesperado",fr:"Erreur inattendue",de:"Unerwarteter Fehler"},alreadyAccount:{es:"\xbfYa tienes cuenta?",en:"Already have an account? go to ",it:"Hai gi\xe0 un account? Vai a ",pt:"J\xe1 tem uma conta? ir ao",fr:"Vous avez d\xe9j\xe0 un compte? aller au",de:"Sie haben bereits ein Konto? Gehen Sie zum"},signIn:{es:"Iniciar sesi\xf3n",en:"Sign in",it:"Accesso",pt:"Iniciar sess\xe3o",fr:"Commencer la session",de:"Einloggen"},noAccount:{es:"\xbfNo tienes cuenta?",en:"Don't have an account? go to ",it:"Non hai un account? Vai a ",pt:"N\xe3o tem conta? ir ao",fr:"Vous n'avez pas de compte? aller au",de:"Haben Sie noch keinen Account? Gehen Sie zum"},createAccount:{es:"Crear una nueva",en:"Create new",it:"Crea nuovo",pt:"Crie um novo",fr:"Cr\xe9er un nouveau",de:"Erstelle eine neue"},passwordForgot:{es:"\xbfHas olvidado tu contrase\xf1a?",en:"Did you forget your password?",it:"Hai dimenticato la tua password?",pt:"Voc\xea esqueceu sua senha?",fr:"Avez-vous oubli\xe9 votre mot de passe?",de:"Haben Sie Ihr Passwort vergessen?"},passwordForgotPage:{es:"Recuperar contrase\xf1a",en:"Recover password",it:"Recupera la password",pt:"Recuperar senha",fr:"R\xe9cup\xe9rer le mot de passe",de:"Passwort wiederherstellen"}
78,confirmAccount:{es:"Confirmar cuenta",en:"Confirm account",it:"Conferma l'account",pt:"Confirme a conta",fr:"Confirmer le compte",de:"Konto best\xe4tigen"},confirmAccountDesc:{es:"Confirme su cuenta haciendo click en el enlace enviado al email indicado.",en:"Confirm your account by clicking on the link sent to the indicated email",it:"Conferma il tuo account cliccando sul link inviato all'email indicata",pt:"Confirme a sua conta clicando no link enviado para o email indicado",fr:"Confirmez votre compte en cliquant sur le lien envoy\xe9 \xe0 l'email indiqu\xe9",de:"Best\xe4tigen Sie Ihr Konto, indem Sie auf den Link klicken, der an die angegebene E-Mail gesendet wurde"},home_title_analysis_user:{es:"Mis An\xe1lisis",en:"My Analysis",it:"Le mie Analisi",pt:"Minha An\xe1lise",fr:"Mon analyse",de:"Meine Analyse"},home_title_analysis_nouser:{es:"Ejemplos de an\xe1lisis",en:"Analysis examples",it:"Esempi di analisi",pt:"Exemplos de an\xe1lise",fr:"Exemples d'analyse",de:"Analysebeispiele"},home_title_pedidos:{es:"Pedidos",en:"New orders",it:"Nuovi ordini",pt:"Pedidos",fr:"Ordres",de:"Auftr\xe4ge"},home_title_orders:{es:"Paneles",en:"Panels",it:"Nuovi ordini",pt:"Pedidos",fr:"Ordres",de:"Auftr\xe4ge"},home_title_prognosis:{es:"Previsiones",en:"Prognosis",it:"Previsioni",pt:"Previs\xf5es",fr:"Pr\xe9visions",de:"Prognosen"},home_title_reports:{es:"Informes",en:"Reports",it:"Report",pt:"Relat\xf3rios",fr:"Rapports",de:"Berichte"},last_update:{es:"\xdaltima Actualizaci\xf3n",en:"Last Update",it:"Ultimo Aggiornamento",pt:"Ultima atualiza\xe7\xe3o",fr:"Derni\xe8re mise \xe0 jour",de:"Letztes Update"},soluciones:{es:"Soluciones",en:"Solutions",it:"Soluzioni per",pt:"Solu\xe7\xf5es",fr:"Solutions",de:"L\xf6sungen"},compradores:{es:"Compradores",en:"Importers",it:"Responsabili Acquisti",pt:"Compradores",fr:"Acheteurs",de:"K\xe4ufer"},proveedor:{es:"Proveedor",en:"Supplier",it:"Settore vendite",pt:"Provedor",fr:"Fournisseur",de:"Anbieter"},proveedores:{es:"Proveedores",en:"Suppliers",it:"Settore vendite",pt:"Provedores",fr:"Fournisseurs",de:"Anbieter"},clientes:{es:"Clientes",en:"Customers",it:"Clienti",pt:"Clientes",fr:"Les clients",de:"Kunden"},details:{es:"Detalles",en:"Details",it:"Dettagli",pt:"Detalhes",fr:"Des d\xe9tails",de:"Einzelheiten"},in:{es:"en",en:"in",it:"in",pt:"no",fr:"au",de:"in"},logistica:{es:"Logistica",en:"Logistics",it:"Logistica",pt:"Log\xedstica",fr:"Logistique",de:"Logistik"},gobierno:{es:"Gobierno",en:"Institutional",it:"Istituzioni",pt:"Governo",fr:"Gouvernement",de:"Regierung"},analistas:{es:"Analistas",en:"Analysts",it:"Analisti",pt:"Analistas",fr:"Analystes",de:"Analysten"},productos:{es:"Productos",en:"Products",it:"Strumenti",pt:"Produtos",fr:"Produits",de:"Produkte"},buscadorAranceles:{es:"Buscador de aranceles",en:"Tariff Code Finder",it:"Trova Codici Doganali",pt:"Localizador de tarifas",fr:"Chercheur tarifaire",de:"Tariffinder"},comercioMundial:{es:"Comercio mundial",en:"World Trade",it:"Commerci mondiali",pt:"Com\xe9rcio mundial",fr:"Le commerce mondial",de:"Welthandel"},directorioEmpresas:{es:"Directorio de empresas",en:"Business Directory",it:"Elenco Aziende",pt:"Diret\xf3rio de neg\xf3cios",fr:"Annuaire des entreprises",de:"Firmenverzeichnis"},perfilesEmpresas:{es:"Perfiles de empresas",en:"Company Profiles",it:"Profili Aziende",pt:"Perfis da empresa",fr:"Profils d'entreprise",de:"Firmenprofile"},analisisMedida:{es:"An\xe1lisis a medida",en:"Special Analytics",it:"Analisi su misura",pt:"An\xe1lise customizada",fr:"Analyse personnalis\xe9e",de:"Benutzerdefinierte Analyse"},profilePositionTableTitle:{es:"Emails de contacto:",en:"Contact emails:",it:"Email di contatto:",pt:"Emails de contato:",fr:"E-mails de contact :",de:"Kontakt-E-Mails:"},profileShipmentsTableTitle:{es:"Resumen de transacciones:",en:"Transaction Summary:",it:"Riepilogo della transazione:",pt:"Resumo transa\xe7\xe3o:",fr:"R\xe9capitulatif des transactions :",de:"Transaktions zusammenfassung:"},profileCountriesTableTitle:{es:"Principales mercados:",en:"Main markets:",it:"Mercati principali:",pt:"Principais mercados:",fr:"March\xe9s principaux :",de:"Hauptm\xe4rkte:"},datos:{es:"Datos",en:"Data",it:"Dati",pt:"Dados",fr:"Les donn\xe9es",de:"Daten"},africa:{es:"Africa",en:"Africa",it:"Africa",pt:"\xc1frica",fr:"Afrique",de:"Afrika"}
78,america:{es:"Am\xe9rica",en:"America",it:"Americhe",pt:"Am\xe9rica",fr:"Am\xe9rique",de:"Amerika"},asia:{es:"Asia",en:"Asia",it:"Asia",pt:"\xc1sia",fr:"Asie",de:"Asien"},europa:{es:"Europa",en:"Europe",it:"Europa",pt:"Europa",fr:"L'Europe",de:"Europa"},oceania:{es:"Ocean\xeda",en:"Oceania",it:"Oceania",pt:"Oce\xe2nia",fr:"Oc\xe9anie",de:"Ozeanien"},empresa:{es:"Empresa",en:"Company",it:"Azienda",pt:"Companhia",fr:"Entreprise",de:"Unternehmen"},quienesSomos:{es:"Qui\xe9nes somos",en:"About Us",it:"Chi siamo",pt:"Quem somos",fr:"Qui sommes",de:"\xdcber uns"},partners:{es:"Partners",en:"Partners",it:"Partner e collaborazioni",pt:"S\xf3cios",fr:"Les partenaires",de:"Partner"},empleos:{es:"Empleos",en:"Careers",it:"Lavora con noi",pt:"Empregos",fr:"Travaux",de:"Karriere"},prensa:{es:"Prensa",en:"Press",it:"Rassegna Stampa",pt:"Pressione",fr:"Presse",de:"Dr\xfccken Sie"},contacto:{es:"Contacto",en:"Contact",it:"Contatti",pt:"Contato",fr:"Contact",de:"Kontakt"},avisoLegal:{es:"Aviso legal",en:"Legal Notice",it:"Note Legali",pt:"Aviso Legal",fr:"Avis juridique",de:"Rechtliche Warnung"},politicaPrivacidad:{es:"Pol\xedtica de privacidad",en:"Privacy Policy",it:"Privacy",pt:"Pol\xedtica de privacidade",fr:"Politique de confidentialit\xe9",de:"Datenschutz-Bestimmungen"},politicaCookies:{es:"Pol\xedtica de cookies",en:"Cookies",it:"Cookies",pt:"Cookies",fr:"Cookies",de:"Cookies"},copyright:{es:"Todos los derechos reservados",en:"All rights reserved.",it:"Tutti i diritti riservati",pt:"",fr:"",de:""},reload:{es:"Cargar de nuevo",en:"Reload",it:"Ricaricare",pt:"Carregue novamente",fr:"Charger \xe0 nouveau",de:"Laden Sie erneut"},updated:{es:"Actualizado",en:"Up to date",it:"Aggiornato",pt:"Atualizada",fr:"Mis \xe0 jour",de:"Aktualisiert"},pending:{es:"Pendiente",en:"Pending",it:"In attesa",pt:"Pendente",fr:"En attente",de:"Steht aus"},removeFavouriteTitle:{es:"Eliminar informe guardado",en:"Remove saved report",it:"Rimuovi il report salvato",pt:"Excluir relat\xf3rio salvo",fr:"Supprimer le rapport enregistr\xe9",de:"Gespeicherten Bericht l\xf6schen"},removeFavouriteDesc:{es:"\xbfDesea eliminar el informe guardado?",en:"\xbfDo you want to delete the saved report?",it:"Vuoi eliminare il report salvato?",pt:"Voc\xea quer deletar o relat\xf3rio salvo?",fr:"Voulez-vous supprimer le rapport enregistr\xe9?",de:"M\xf6chten Sie den gespeicherten Bericht l\xf6schen?"},userProfileTitle:{es:"Edici\xf3n de datos del perfil",en:"Profile data edit",it:"Dati del profilo",pt:"Editando dados de perfil",fr:"Modifier les donn\xe9es de profil",de:"Profildaten bearbeiten"},companyProfileTitle:{es:"Edici\xf3n de datos de empresa",en:"Company data edit",it:"Dati dell'azienda",pt:"Editando dados da empresa",fr:"Modifier les donn\xe9es de l'entreprise",de:"Unternehmensdaten bearbeiten"},companyProfilePlan:{es:"Tipo de cuenta",en:"Account type",it:"Tipo di account",pt:"Tipo de conta",fr:"Type de compte",de:"Konto Typ"},companyProfileAdmin:{es:"Administrador",en:"Account admin",it:"Amministratore",pt:"Administrador",fr:"Administrateur",de:"Administrator"},companyProfileUsers:{es:"Equipo",en:"Team",it:"Team",pt:"Equipe",fr:"\xc9quipe",de:"Mannschaft"},companyProfileInvites:{es:"Invitaciones pendientes",en:"Pending invitations",it:"Inviti in attesa",pt:"Convites pendentes",fr:"Invitations en attente",de:"Ausstehende Einladungen"},companyProfileInviteUser:{es:"Introduzca el email de los integrantes de su equipo e inv\xedtelos a su cuenta",en:"Enter the email of your team members and invite them to your account",it:"Digita la mail dei membri del team a invitali nell'account",pt:"Digite o endere\xe7o de e-mail dos membros de sua equipe e convide-os para sua conta",fr:"Saisissez l'adresse e-mail des membres de votre \xe9quipe et invitez-les \xe0 rejoindre votre compte",de:"Geben Sie die E-Mail-Adresse Ihrer Teammitglieder ein und laden Sie sie in Ihr Konto ein"},companyProfileSendInvite:{es:"Invitar usuario",en:"Invite user",it:"Invita un utilizzatore",pt:"Convidar Usu\xe1rio",fr:"Inviter un utilisateur",de:"Benutzer einladen"},userProfileSaved:{es:"Perfil guardado con \xe9xito",en:"Profile saved successfully",it:"Profilo salvato",pt:"Perfil salvo com sucesso",fr:"Profil enregistr\xe9 avec succ\xe8s",de:"Profil erfolgreich gespeichert"},companyProfileSaved:{es:"Empresa guardada con \xe9xito",en:"Company saved successfully",it:"Azienda salvata",pt:"Empresa salva com sucesso",fr:"Entreprise enregistr\xe9e avec succ\xe8s",de:"Firma erfolgreich gespeichert"},companyTeamProfileSaved:{es:"Equipo guardado con \xe9xito",en:"Company team saved successfully",it:"Team salvato correttamente",pt:"Equipe salva com sucesso",fr:"\xc9quipe enregistr\xe9e avec succ\xe8s",de:"Team erfolgreich gespeichert"},toSignIn:{es:"Para registrarte ",en:"To register ",it:"Per registrarti ",pt:"Para se inscrever ",fr:"Pour vous inscrire ",de:"Um sich zu registrieren "},notAvailable:{es:"No disponible",en:"Not Available",it:"Non disponibile",pt:"N\xe3o dispon\xedvel",fr:"Non disponible",de:"Nicht verf\xfcgbar"},clickhere:{es:"haz click aqu\xed",en:"click here",it:"clicca qui",pt:"clique aqui",fr:"cliquez ici",de:"klicke hier"},passwordAsked:{es:"Se ha enviado un email con las instrucciones para reiniciar la contrase\xf1a",en:"Um e-mail foi enviado com as instru\xe7\xf5es para redefinir a senha",it:"\xc8 stata inviata un'e-mail con le istruzioni per reimpostare la password",pt:"Um e-mail foi enviado com as instru\xe7\xf5es para redefinir a senha",fr:"Un e-mail a \xe9t\xe9 envoy\xe9 avec les instructions pour r\xe9initialiser le mot de passe",de:"Es wurde eine E-Mail mit den Anweisungen zum Zur\xfccksetzen des Passworts gesendet"}
78,passwordChanged:{es:"Contrase\xf1a cambiada con \xe9xito",en:"Password changed successfully",it:"Password modificata",pt:"Password alterada com sucesso",fr:"Le mot de passe a \xe9t\xe9 chang\xe9 avec succ\xe8s",de:"Das Passwort wurde erfolgreich ge\xe4ndert"},fieldRequired:{es:"Campo obligatorio",en:"Mandatory field",it:"Campo obbligatorio",pt:"O campo obrigat\xf3rio",fr:"Champ requis",de:"Obligatorisches Feld"},changePassword:{es:"Cambiar contrase\xf1a",en:"Change password",it:"Cambia password",pt:"Mudar senha",fr:"Changer le mot de passe",de:"Passwort \xe4ndern"},currentPassword:{es:"Contrase\xf1a actual",en:"Current password",it:"Attuale password",pt:"Password atual",fr:"Mot de passe actuel",de:"Jetziges passwort"},newPassword:{es:"Nueva contrase\xf1a",en:"New password",it:"Nuova password",pt:"Nova passoword",fr:"Nouveau mot de passe",de:"Neues passwort"},newPasswordConfirm:{es:"Confirmar nueva contrase\xf1a",en:"New password confirm",it:"Conferma la nuova password",pt:"Confirme a nova senha",fr:"Confirmer le nouveau mot de passe",de:"Best\xe4tige neues passwort"},confirmPasswordError:{es:"Las contrase\xf1as no coinciden",en:"Passwords doesn't match",it:"Password non corretta",pt:"As senhas n\xe3o correspondem",fr:"Les mots de passe ne correspondent pas",de:"Passw\xf6rter stimmen nicht \xfcberein"},resetPassword:{es:"Reinicio de contrase\xf1a",en:"Password reset",it:"Digita nuovamente la password",pt:"Redefini\xe7\xe3o de senha",fr:"R\xe9initialisation du mot de passe",de:"Passwort zur\xfccksetzen"},companyDoesntExists:{es:"No tiene un perfil de empresa creado, puede crear un perfil ahora e invitar a los miembros de su equipo. Tenga en cuenta que se convertir\xe1 en el administrador del perfil de empresa",en:"You don't have a company profile created, you can create a profile now and invite your team members. Note that you will become the administrator of the company profile.",it:"Profilo azienda inesistente. Puoi crearlo ora e invitare i membri del team. Considera che diventerai amministratore del profilo aziendale",pt:"Voc\xea n\xe3o tem um perfil de empresa criado, voc\xea pode criar um perfil agora e convidar os membros da sua equipe. Observe que voc\xea se tornar\xe1 o administrador do perfil da empresa",fr:"Vous n'avez pas cr\xe9\xe9 de profil d'entreprise, vous pouvez cr\xe9er un profil maintenant et inviter les membres de votre \xe9quipe. Veuillez noter que vous deviendrez l'administrateur du profil de l'entreprise",de:"Sie haben kein Firmenprofil erstellt. Sie k\xf6nnen jetzt ein Profil erstellen und Ihre Teammitglieder einladen. Bitte beachten Sie, dass Sie Administrator des Firmenprofils werden"},passwordForgotTitle:{es:"\xbfHa olvidado su contrase\xf1a?",en:"Did you forget your password?",it:"Hai dimenticato la password?",pt:"Voc\xea esqueceu sua senha?",fr:"Avez-vous oubli\xe9 votre mot de passe?",de:"Hast du dein Passwort vergessen?"},passwordForgotDesc:{es:"Introduzca el email con el que se ha registrado y le enviaremos las instrucciones para reiniciar la contrase\xf1a",en:"Enter the email with which you have registered and we will send you the instructions to reset the password",it:"Inserisci la mail con cui ti sei registrato e ti invieremo le istruzioni per reimpostare la password",pt:"Digite o e-mail com o qual voc\xea se cadastrou e n\xf3s lhe enviaremos as instru\xe7\xf5es para redefinir a senha",fr:"Entrez l'e-mail avec lequel vous vous \xeates inscrit et nous vous enverrons les instructions pour r\xe9initialiser le mot de passe",de:"Geben Sie die E-Mail-Adresse ein, mit der Sie sich registriert haben, und wir senden Ihnen die Anweisungen zum Zur\xfccksetzen des Passworts"},emailNotInvited:{es:"Introduzca el email con el que le han invitado",en:"Enter the email with which you have been invited",it:"Digita l'email con cui ti hanno invitato",pt:"Digite o e-mail com o qual voc\xea foi convidado",fr:"Entrez l'e-mail avec lequel vous avez \xe9t\xe9 invit\xe9",de:"Geben Sie die E-Mail-Adresse ein, mit der Sie eingeladen wurden"},downloadReportFormat:{es:"Seleccione el formato en el que desea descargar su informe",en:"Select a format to download your report",it:"Seleziona il formato in cui desideri scaricare il rapporto",pt:"Selecione o formato no qual deseja fazer download do seu relat\xf3rio",fr:"S\xe9lectionnez le format dans lequel vous souhaitez t\xe9l\xe9charger votre rapport",de:"W\xe4hlen Sie das Format au
78s, in dem Sie Ihren Bericht herunterladen m\xf6chten"},downloadReportButton:{es:"Descargar documento",en:"Download document",it:"Scarica il documento",pt:"Baixar documento",fr:"T\xe9l\xe9charger le document",de:"Dokument herunterladen"},overwriteReport:{es:"Sobreescribir informe ya existente",en:"Overwrite previous report",it:"Sovrascrivi report esistente",pt:"Substituir relat\xf3rio existente",fr:"\xc9craser le rapport existant",de:"Vorhandenen Bericht \xfcberschreiben"},saveNewReport:{es:"Guardar informe con un nombre nuevo",en:"Save report with a new name",it:"Salva report con un nuovo nome",pt:"Salvar relat\xf3rio com um novo nome",fr:"Enregistrer le rapport sous un nouveau nom",de:"Speichern Sie den Bericht unter einem neuen Namen"},saveReport:{es:"Guardar informe",en:"Save report",it:"Salva report",pt:"Salvar o relatorio",fr:"Enregistrer le rapport",de:"Bericht speichern"},userIsNotAdmin:{es:"Contacte con el administrador de su empresa para realizar cambios",en:"Contact your company admin to perform changes",it:"Contatta l'amministratore della tua azienda per apportare modifiche",pt:"Entre em contato com o administrador da empresa para fazer altera\xe7\xf5es",fr:"Contactez l'administrateur de votre entreprise pour apporter des modifications",de:"Wenden Sie sich an Ihren Unternehmensadministrator, um \xc4nderungen vorzunehmen"},genericAccept:{es:"Acepto",en:"I agree",it:"Sono d'accordo",pt:"Concordo",fr:"Je suis d'accord",de:"Ich bin einverstanden"},acceptTerms:{es:"T\xe9rminos y Condiciones de Uso",en:"I accept the terms and conditions of use",it:"Accetto i termini e le condizioni di utilizzo",pt:"Eu aceito os termos e condi\xe7\xf5es de uso",fr:"J'accepte les conditions g\xe9n\xe9rales d'utilisation",de:"Ich akzeptiere die Nutzungsbedingungen"},privacyTerms:{es:"Declaraci\xf3n de Privacidad",en:"I accept the Privacy Policy",it:"Accetto la Privacy Policy",pt:"Aceito a pol\xedtica de privacidade",fr:"J'accepte la politique de confidentialit\xe9",de:"Ich akzeptiere die Datenschutzerkl\xe4rung"},acceptMarketing:{es:"Autorizo el env\xedo de comunicaciones comerciales de Iberinform Internacional S.A.U.",en:"I authorize the sending of commercial communications from Iberinform Internacional S.A.U.",it:"Autorizzo l'invio di comunicazioni commerciali da Iberinform Internacional S.A.U.",pt:"Autorizo ​​o envio de comunica\xe7\xf5es comerciais da Iberinform Internacional S.A.U.",fr:"J'autorise l'envoi de communications commerciales d'Iberinform Internacional S.A.U.",de:"Ich genehmige das Versenden von kommerziellen Mitteilungen von Iberinform Internacional S.A.U."},acceptPrivacy:{es:"Acepto la pol\xedtica de privacidad",en:"I accept the Privacy Policy",it:"Accetto la Privacy Policy",pt:"Aceito a pol\xedtica de privacidade",fr:"J'accepte la politique de confidentialit\xe9",de:"Ich akzeptiere die Datenschutzerkl\xe4rung"},acceptCookies:{es:"Acepto la pol\xedtica de cookies",en:"I accept the cookie policy",it:"Accetto la cookie policy",pt:"Eu aceito a pol\xedtica de cookies",fr:"J'accepte la politique de cookies",de:"Ich akzeptiere die Cookie-Richtlinie"},profile:{es:"Perfil",en:"Profile",it:"Profili",pt:"Perfil",fr:"Profil",de:"Profil"},myAccount:{es:"Mi cuenta",en:"My account",it:"Il mio account",pt:"Minha conta",fr:"Mon compte",de:"Mein Konto"},logout:{es:"Cerrar sesi\xf3n",en:"Logout",it:"Logout",pt:"Fechar Sess\xe3o",fr:"Fermer la session",de:"Abmelden"},language:{es:"Idioma",en:"Language",it:"Lingua",pt:"L\xedngua",fr:"Langage",de:"Sprache"},hire:{es:"Contrata",en:"Hire",it:"Assunzioni",pt:"Contrata\xe7\xf5es",fr:"Embauches",de:"Personal einstellen"},seeCompleteData:{es:"Ver datos completos",en:"Access complete data",it:"Vedi dati completi",pt:"Veja os dados completos",fr:"Voir les donn\xe9es compl\xe8tes",de:"Vollst\xe4ndige Daten anzeigen"}},p="NO_RESPONSE",g={UNSUFICIENT_FILTERS_TITLE:{es:"",en:"",it:"",pt:"",fr:"",de:""},UNSUFICIENT_FILTERS_DESC:{es:"Debe seleccionar al menos un pa\xeds y un producto, importador, exportador o descripci\xf3n.",en:"Please select at least one country and a product, description, importer, or exporter.",it:"Devi selezionare un paese e almeno uno fra prodotto, importatore, esportatore e descrizione.",pt:"Voc\xea deve selecionar pelo menos um pa\xeds e um produto, importador, exportador ou descri\xe7\xe3o",fr:"Vous devez s\xe9lectionner au moins un pays et un produit, importateur, exportateur ou description",de:"Sie m\xfcssen mindestens ein Land und ein Produkt, einen Importeur, einen Exporteur oder eine Beschreibung ausw\xe4hlen"},NO_DATA_TITLE:{es:"No hay datos publicados para el mercado seleccionado",en:"There is no data published for the selected market",it:"Non ci sono dati pubblicati per i parametri selezionati",pt:"Nenhum dado publicado para o mercado selecionado",fr:"Aucune donn\xe9e publi\xe9e pour le march\xe9 s\xe9lectionn\xe9",de:"Keine ver\xf6ffentlichten Daten f\xfcr den ausgew\xe4hlten Markt"},NO_DATA_DESC:{es:"Por favor repita la b\xfasqueda con una selecci\xf3n de producto o pa\xedses de origen y destino alternativa, ya que la combinaci\xf3n actual no contiene ning\xfan resultado.",en:"Please search again with a selection of product or countries of origin and alternative destination, as the current combination does not contain any results.",it:"Riprova tra qualche istante oppure ripeti la ricerca con un parametri pi\xf9 ristretti di prodotti, paesi di origine e destinazione, o date.",pt:"Repita a pesquisa com uma sele\xe7\xe3o alternativa de produto ou pa\xedses de origem e destino, pois a combina\xe7\xe3o atual n\xe3o cont\xe9m nenhum resultado.",fr:"Veuillez r\xe9p\xe9ter la recherche avec une s\xe9lection de produits alternative ou des pays d'origine et de destination, car la combinaison actuelle ne contient aucun r\xe9sultat.",de:"Bitte wiederholen Sie die Suche mit einer alternativen Produktauswahl oder Herkunfts- und Bestimmungsl\xe4ndern, da die aktuelle Kombination keine Ergebnisse enth\xe4lt."},NO_RESPONSE_TITLE:{es:"Actualizaci\xf3n de datos en curso",en:"Data update in progress",it:"Aggiornamento dati in corso",pt:"Atualiza\xe7\xe3o de dados em andamento",fr:"Mise \xe0 jour des donn\xe9es en cours",de:"Datenaktualisierung l\xe4uft"},NO_RESPONSE_DESC:{es:"Estamos incorporando nuevos datos para el mercado seleccionado. Por favor repita la b\xfasqueda m\xe1s tarde o pruebe ahora con una selecci\xf3n diferente.",en:"We are incorporating new data for the selected market. Please search again later or try a different selection now.",it:"Stiamo aggiornando i dati del mercato selezionato. Ripeti la ricerca pi\xf9 tardi o prova ora con una selezione differente.",pt:"Estamos incorporando novos dad
78os para o mercado selecionado. Repita sua pesquisa mais tarde ou tente uma sele\xe7\xe3o diferente agora.",fr:"Nous int\xe9grons de nouvelles donn\xe9es pour le march\xe9 s\xe9lectionn\xe9. Veuillez r\xe9p\xe9ter votre recherche plus tard ou essayer une autre s\xe9lection maintenant.",de:"Wir integrieren neue Daten f\xfcr den ausgew\xe4hlten Markt. Bitte wiederholen Sie Ihre Suche sp\xe4ter oder versuchen Sie es jetzt mit einer anderen Auswahl."}},m={a:"(\xe0|\xe1|a)+",e:"(\xe8|\xe9|e)+",i:"(\xec|\xed|i)+",o:"(\xf2|\xf3|o)+",u:"(\xf9|\xfa|u)+",c:"(\xe7|c)+",n:"(\xf1|n)+"};let TextService=class TextService{static translate(t){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es";return f[t]?f[t][a]:t}static translateTemplate(t,a){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"es",f=c[t]?c[t][s]:"";return f?(Object.keys(a).forEach(t=>{let s=RegExp("{{"+t+"}}","gi");f=f.replace(s,a[t])}),f):""}static capitalizeWord(t){return t.charAt(0).toUpperCase()+t.slice(1)}static uncapitalizeWord(t){return t.charAt(0).toLowerCase()+t.slice(1)}static visualNumber(t){var a=t.toString().split(".");return a[0]=a[0].replace(/\B(?=(\d{3})+(?!\d))/g,"."),a[1]=a[1]&&""!==a[1]?a[1].slice(0,2):a[1],a[1]?a.join(","):a[0]}static constructDiacriticRegext(t){for(var a=[],s=0;s<t.length;s++){var c=t.charAt(s);m.hasOwnProperty(c)?a.push(m[c]):a.push(c)}return a.join("")}static getError(){let t,a,s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NO_RESPONSE",c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"es";return g["".concat(s,"_TITLE")]?(t=g["".concat(s,"_TITLE")][c],a=g["".concat(s,"_DESC")][c]):(t=g["".concat(p,"_TITLE")][c],a=g["".concat(p,"_DESC")][c]),{title:t,desc:a}}static getVariantUnit(t){return v[t]?v[t]:"$"}};let v={weight:"kg"}},34489:function(t,a,s){"use strict";s.d(a,{p:function(){return response}});let response=(t,a,s)=>({success:t,message:t||a?a:"UnexpectedError",data:s})},32080:function(t,a,s){"use strict";s.r(a),s.d(a,{addCompanyProfile:function(){return m},addUserFavourite:function(){return f},createAccess:function(){return P},createCountry:function(){return k},createFavourite:function(){return C},createProduct:function(){return M},createWhitelabel:function(){return L},deleteAccess:function(){return T},deleteCompany:function(){return w},deleteCountry:function(){return R},deleteFavourite:function(){return x},deleteProduct:function(){return U},deleteProfile:function(){return b},deleteWhitelabel:function(){return B},inviteUserToCompany:function(){return y},removeUserFavourite:function(){return g},setUserPassword:function(){return j},updateAccess:function(){return I},updateCompany:function(){return S},updateCompanyProfile:function(){return v},updateCountry:function(){return O},updateFavourite:function(){return E},updateProduct:function(){return N},updateProfile:function(){return _},updateUserFavourite:function(){return p},updateUserProfile:function(){return c},updateWhitelabel:function(){return D}});let c="\n  mutation UpdateUserProfile($name: String!, $lastname: String) {\n    updateUserProfile(name: $name, lastname: $lastname) {\n      success\n      message\n    }\n  }\n",f="\n  mutation AddUserFavourite(\n    $title: String\n    $status: String\n    $datasource: String\n    $flow: String\n    $originName: String\n    $originCode: String\n    $destinationCode: String\n    $destinationName: String\n    $productCode: String\n    $productName: String\n    $dateIni: String\n    $dateEnd: String\n    $description: String\n    $importer: String\n    $exporter: String\n  ) {\n    addUserFavourite(\n      title: $title\n      status: $status\n      datasource: $datasource\n      flow: $flow\n      originName: $originName\n      originCode: $originCode\n      destinationCode: $destinationCode\n      destinationName: $destinationName\n      productCode: $productCode\n      productName: $productName\n      dateIni: $dateIni\n      dateEnd: $dateEnd\n      description: $description\n      importer: $importer\n      exporter: $exporter\n    ) {\n      success\n      message\n    }\n  }\n",p="\n  mutation UpdateUserFavourite(\n    $id: ID!\n    $userId: String\n    $title: String\n    $status: String\n    $datasource: String\n    $flow: String\n    $originName: String\n    $originCode: String\n    $destinationCode: String\n    $destinationName: String\n    $productC
78ode: String\n    $productName: String\n    $dateIni: String\n    $dateEnd: String\n    $description: String\n    $importer: String\n    $exporter: String\n  ) {\n    updateUserFavourite(\n      id: $id\n      userId: $userId\n      title: $title\n      status: $status\n      datasource: $datasource\n      flow: $flow\n      originName: $originName\n      originCode: $originCode\n      destinationCode: $destinationCode\n      destinationName: $destinationName\n      productCode: $productCode\n      productName: $productName\n      dateIni: $dateIni\n      dateEnd: $dateEnd\n      description: $description\n      importer: $importer\n      exporter: $exporter\n    ) {\n      success\n      message\n    }\n  }\n",g="\n  mutation RemoveUserFavourite($id: ID!) {\n    removeUserFavourite(id: $id) {\n      success\n      message\n    }\n  }\n",m="\n  mutation AddCompanyProfile($name: String!) {\n    addCompanyProfile(name: $name) {\n      success\n      message\n    }\n  }\n",v="\n  mutation UpdateCompanyProfile($name: String!) {\n    updateCompanyProfile(name: $name) {\n      success\n      message\n    }\n  }\n",y="\n  mutation InviteUserToCompany($email: String, $brand: String) {\n    inviteUserToCompany(email: $email, brand: $brand) {\n      success\n      message\n    }\n  }\n",_="\n  mutation UpdateProfile($input: UpdateProfileInput) {\n    updateProfile(input: $input) {\n      id\n      name\n      lastname\n      email\n      brand\n      role\n      company {\n        id\n        name\n        idEmpresa\n        fiscalId\n        plan\n        users {\n          id\n          name\n          lastname\n          email\n          brand\n          role\n          company {\n            id\n            name\n            idEmpresa\n            fiscalId\n            plan\n            emailsInvited\n            iberinformOffice\n          }\n          nif\n          createdAt\n          updatedAt\n        }\n        emailsInvited\n        iberinformOffice\n      }\n      nif\n      createdAt\n      updatedAt\n    }\n  }\n",b="\n  mutation DeleteProfile($input: DeleteProfileInput) {\n    deleteProfile(input: $input) {\n      id\n      name\n      lastname\n      email\n      brand\n      role\n      company {\n        id\n        name\n        idEmpresa\n        fiscalId\n        plan\n        users {\n          id\n          name\n          lastname\n          email\n          brand\n          role\n          company {\n            id\n            name\n            idEmpresa\n            fiscalId\n            plan\n            emailsInvited\n            iberinformOffice\n          }\n          nif\n          createdAt\n          updatedAt\n        }\n        emailsInvited\n        iberinformOffice\n      }\n      nif\n      createdAt\n      updatedAt\n    }\n  }\n",S="\n  mutation UpdateCompany($input: UpdateCompanyInput) {\n    updateCompany(input: $input) {\n      id\n      name\n      idEmpresa\n      fiscalId\n      plan\n      users {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      emailsInvited\n      iberinformOffice\n    }\n  }\n",w="\n  mutation DeleteCompany($input: DeleteCompanyInput) {\n    deleteCompany(input: $input) {\n      id\n      name\n      idEmpresa\n      fiscalId\n      plan\n      users {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      emailsInvited\n      iberinformOffice\n    }\n  }\n",C="\n  mutation CreateFavourite($input: CreateFavouriteInput) {\n    createFavourite(input: $input) {\n      id\n      user {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      title\n      status\n      datasource\n      flow\n      origin {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      destination {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      product {\n        id\n        level\n        parent\n        code\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        aliasLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        createdAt\n        updatedAt\n      }\n      originName\n      originCode\n      destinationCode\n      destinationName\n      productC
78ode\n      productName\n      dateIni\n      dateEnd\n      description\n      importer\n      exporter\n      createdAt\n      updatedAt\n    }\n  }\n",E="\n  mutation UpdateFavourite($input: UpdateFavouriteInput) {\n    updateFavourite(input: $input) {\n      id\n      user {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      title\n      status\n      datasource\n      flow\n      origin {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      destination {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      product {\n        id\n        level\n        parent\n        code\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        aliasLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        createdAt\n        updatedAt\n      }\n      originName\n      originCode\n      destinationCode\n      destinationName\n      productCode\n      productName\n      dateIni\n      dateEnd\n      description\n      importer\n      exporter\n      createdAt\n      updatedAt\n    }\n  }\n",x="\n  mutation DeleteFavourite($input: DeleteFavouriteInput) {\n    deleteFavourite(input: $input) {\n      id\n      user {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      title\n      status\n      datasource\n      flow\n      origin {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      destination {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      product {\n        id\n        level\n        parent\n        code\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        aliasLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        createdAt\n        updatedAt\n      }\n      originName\n      originCode\n      destinationCode\n      destinationName\n      productC
78ode\n      productName\n      dateIni\n      dateEnd\n      description\n      importer\n      exporter\n      createdAt\n      updatedAt\n    }\n  }\n",P="\n  mutation CreateAccess($input: CreateAccessInput) {\n    createAccess(input: $input) {\n      id\n      user {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      accessPrice\n      company {\n        id\n        name\n        idEmpresa\n        fiscalId\n        plan\n        users {\n          id\n          name\n          lastname\n          email\n          brand\n          role\n          company {\n            id\n            name\n            idEmpresa\n            fiscalId\n            plan\n            emailsInvited\n            iberinformOffice\n          }\n          nif\n          createdAt\n          updatedAt\n        }\n        emailsInvited\n        iberinformOffice\n      }\n      origin {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      destination {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      product {\n        id\n        level\n        parent\n        code\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        aliasLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        createdAt\n        updatedAt\n      }\n      createdAt\n      updatedAt\n    }\n  }\n",I="\n  mutation UpdateAccess($input: UpdateAccessInput) {\n    updateAccess(input: $input) {\n      id\n      user {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      accessPrice\n      company {\n        id\n        name\n        idEmpresa\n        fiscalId\n        plan\n        users {\n          id\n          name\n          lastname\n          email\n          brand\n          role\n          company {\n            id\n            name\n            idEmpresa\n            fiscalId\n            plan\n            emailsInvited\n            iberinformOffice\n          }\n          nif\n          createdAt\n          updatedAt\n        }\n        emailsInvited\n        iberinformOffice\n      }\n      origin {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      destination {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      product {\n        id\n        level\n        parent\n        code\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        aliasLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        createdAt\n        updatedAt\n      }\n      createdAt\n      updatedAt\n    }\n  }
78\n",T="\n  mutation DeleteAccess($input: DeleteAccessInput) {\n    deleteAccess(input: $input) {\n      id\n      user {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      accessPrice\n      company {\n        id\n        name\n        idEmpresa\n        fiscalId\n        plan\n        users {\n          id\n          name\n          lastname\n          email\n          brand\n          role\n          company {\n            id\n            name\n            idEmpresa\n            fiscalId\n            plan\n            emailsInvited\n            iberinformOffice\n          }\n          nif\n          createdAt\n          updatedAt\n        }\n        emailsInvited\n        iberinformOffice\n      }\n      origin {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      destination {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      product {\n        id\n        level\n        parent\n        code\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        aliasLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        createdAt\n        updatedAt\n      }\n      createdAt\n      updatedAt\n    }\n  }\n",k="\n  mutation CreateCountry($input: CreateCountryInput) {\n    createCountry(input: $input) {\n      id\n      iso\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      coordinates {\n        lat\n        lng\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      excludeFromSitemap\n      createdAt\n      updatedAt\n    }\n  }\n",O="\n  mutation UpdateCountry($input: UpdateCountryInput) {\n    updateCountry(input: $input) {\n      id\n      iso\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      coordinates {\n        lat\n        lng\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      excludeFromSitemap\n      createdAt\n      updatedAt\n    }\n  }\n",R="\n  mutation DeleteCountry($input: DeleteCountryInput) {\n    deleteCountry(input: $input) {\n      id\n      iso\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      coordinates {\n        lat\n        lng\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      excludeFromSitemap\n      createdAt\n      updatedAt\n    }\n  }\n",M="\n  mutation CreateProduct($input: CreateProductInput) {\n    createProduct(input: $input) {\n      id\n      level\n      parent\n      code\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      aliasLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      createdAt\n      updatedAt\n    }\n  }\n",N="\n  mutation UpdateProduct($input: UpdateProductInput) {\n    updateProduct(input: $input) {\n      id\n      level\n      parent\n      code\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      aliasLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      createdAt\n      updatedAt\n    }\n  }\n",U="\n  mutation DeleteProduct($input: DeleteProductInput) {\n    deleteProduct(input: $input) {\n      id\n      level\n      parent\n      code\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      aliasLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      createdAt\n      updatedAt\n    }\n  }\n",L="\n  mutation CreateWhitelabel($input: CreateWhitelabelInput) {\n    createWhitelabel(input: $input) {\n      id\n      code\n      name\n      url\n      createdAt\n      updatedAt\n    }\n  }\n",D="\n  mutation UpdateWhitelabel($input: UpdateWhitelabelInput) {\n    updateWhitelabel(input: $input) {\n      id\n      code\n      name\n      url\n      createdAt\n      updatedAt\n    }\n  }\n",B="\n  mutation DeleteWhitelabel($input: DeleteWhitelabelInput) {\n    deleteWhitelabel(input: $input) {\n      id\n      code\n      name\n      url\n      createdAt\n      updatedAt\n    }\n  }\n",j="\n  mutation SetUserPassword($userId: String, $newPassword: String) {\n    setUserPassword(userId: $userId, newPassword: $newPassword)\n  }\n"},89323:function(t,a,s){"use strict";s.d(a,{Ci:function(){return v},He:function(){return m},c6:function(){return f},dC:function(){return g},et:function(){return c},tI:function(){return p},wv:function(){return y}});let c="\n  query GetUserProfile {\n    getUserProfile {\n      id\n      name\n      lastname\n      email\n      brand\n      role\n      company {\n        id\n        name\n        idEmpresa\n        fiscalId\n        plan\n        users {\n          id\n          name\n          lastname\n          email\n          brand\n          role\n          company {\n            id\n            name\n            idEmpresa\n            fiscalId\n            plan\n            emailsInvited\n            iberinformOffice\n          }\n          nif\n          createdAt\n          updatedAt\n        }\n        emailsInvited\n        iberinformOffice\n      }\n      nif\n      createdAt\n      updatedAt\n    }\n  }\n",f="\n  query GetUserFavourites {\n    getUserFavourites {\n      id\n      user {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      title\n      status\n      datasource\n      flow\n      origin {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      destination {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      product {\n        id\n        level\n        parent\n        code\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        aliasLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        createdAt\n        updatedAt\n      }\n      originName\n      originCode\n      destinationCode\n      destinationName\n      productC
78ode\n      productName\n      dateIni\n      dateEnd\n      description\n      importer\n      exporter\n      createdAt\n      updatedAt\n    }\n  }\n",p="\n  query GetCompanyProfile($id: String) {\n    getCompanyProfile(id: $id) {\n      id\n      name\n      idEmpresa\n      fiscalId\n      plan\n      users {\n        id\n        name\n        lastname\n        email\n        brand\n        role\n        company {\n          id\n          name\n          idEmpresa\n          fiscalId\n          plan\n          users {\n            id\n            name\n            lastname\n            email\n            brand\n            role\n            nif\n            createdAt\n            updatedAt\n          }\n          emailsInvited\n          iberinformOffice\n        }\n        nif\n        createdAt\n        updatedAt\n      }\n      emailsInvited\n      iberinformOffice\n    }\n  }\n",g="\n  query SearchProduct($searchString: String!, $lang: String!) {\n    searchProduct(searchString: $searchString, lang: $lang) {\n      id\n      level\n      parent\n      code\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      aliasLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      createdAt\n      updatedAt\n    }\n  }\n",m="\n  query BrowseProduct($code: String!) {\n    browseProduct(code: $code) {\n      id\n      level\n      parent\n      code\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      aliasLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      createdAt\n      updatedAt\n    }\n  }\n",v="\n  query ListCountrys(\n    $filter: ModelCountryFilterInput\n    $limit: Int\n    $nextToken: String\n  ) {\n    listCountrys(filter: $filter, limit: $limit, nextToken: $nextToken) {\n      items {\n        id\n        iso\n        active\n        nameLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        coordinates {\n          lat\n          lng\n        }\n        publicUrlLang {\n          es\n          en\n          it\n          pt\n          fr\n          de\n        }\n        excludeFromSitemap\n        createdAt\n        updatedAt\n      }\n      nextToken\n    }\n  }\n",y="\n  query GetProduct($id: ID!) {\n    getProduct(id: $id) {\n      id\n      level\n      parent\n      code\n      active\n      nameLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      aliasLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      publicUrlLang {\n        es\n        en\n        it\n        pt\n        fr\n        de\n      }\n      createdAt\n      updatedAt\n    }\n  }\n"},13074:function(){},62240:function(t){t.exports={"flex-horizontal-spacebetween-center":"Loading_flex-horizontal-spacebetween-center__cn3bi","flex-horizontal-spacebetween-start":"Loading_flex-horizontal-spacebetween-start__RnlMS","flex-horizontal-start-center":"Loading_flex-horizontal-start-center__FpKzP","flex-horizontal-end-center":"Loading_flex-horizontal-end-center__SF7E9","flex-vertical-center-center":"Loading_flex-vertical-center-center__iXaRu","flex-vertical-start-center":"Loading_flex-vertical-start-center__jicEo","flex-vertical-start-left":"Loading_flex-vertical-start-left___8BQx",clearfix:"Loading_clearfix__Vi_Zu",hide:"Loading_hide__gKChJ",none:"Loading_none__Vzk6K","text-center":"Loading_text-center__coZlT","loading-section":"Loading_loading-section__sUr0A","loading-gif":"Loading_loading-gif__20fI4"}},11987:function(t,a,s){!function(){var a={452:function(t){"use strict";t.exports=s(97334)}},c={};function __nccwpck_require__(t){var s=c[t];if(void 0!==s)return s.exports;var f=c[t]={exports:{}},p=!0;try{a[t](f,f.exports,__nccwpck_require__),p=!1}finally{p&&delete c[t]}return f.exports}__nccwpck_require__.ab="//";var f={};!function(){var t,a=(t=__nccwpck_require__(452))&&"object"==typeof t&&"default"in t?t.default:t,s=/https?|ftp|gopher|file/;function r(t){"string"==typeof t&&(t=d(t));var c,f,p,g,m,v,y,_,b,S=(f=(c=t).auth,p=c.hostname,g=c.protocol||"",m=c.pathname||"",v=c.hash||"",y=c.query||"",_=!1,f=f?encodeURIComponent(f).replace(/%3A/i,":")+"@":"",c.host?_=f+c.host:p&&(_=f+(~p.indexOf(":")?"["+p+"]":p),c.port&&(_+=":"+c.port)),y&&"object"==typeof y&&(y=a.encode(y)),b=c.search||y&&"?"+y||"",g&&":"!==g.substr(-1)&&(g+=":"),c.slashes||(!g||s.test(g))&&!1!==_?(_="//"+(_||""),m&&"/"!==m[0]&&(m="/"+m)):_||(_=""),v&&"#"!==v[0]&&(v="#"+v),b&&"?"!==b[0]&&(b="?"+b),{protocol:g,host:_,pathname:m=m.replace(/[?#]/g,encodeURIComponent),search:b=b.replace("#","%23"),hash:v});return""+S.protocol+S.host+S.pathname+S.search+S.hash}var c="http://",p=c+"w.w",g=/^([a-z0-9.+-]*:\/\/\/)([a-z0-9.+-]:\/*)?/i,m=/https?|ftp|gopher|file/;function h(t,a){var s="string"==typeof t?d(t):t;t="object"==typeof t?r(t):t;var f=d(a),v="";s.protocol&&!s.slashes&&(v=s.protocol,t=t.replace(s.protocol,""),v+="/"===a[0]||"/"===t[0]?"/":""),v&&f.protocol&&(v="",f.slashes||(v=f.protocol,a=a.replace(f.protocol,"")));var y=t.match(g);y&&!f.protocol&&(t=t.substr((v=y[1]+(y[2]||"")).length),/^\/\/[^/]/.test(a)&&(v=v.slice(0,-1)));var _=new URL(t,p+"/"),b=new URL(a,_).toString().replace(p,""),S=f.protocol||s.protocol;return S+=s.slashes||f.slashes?"//":"",!v&&S?b=b.replace(c,S):v&&(b=b.replace(c,"")),m.test(b)||~a.indexOf(".")||"/"===t.slice(-1)||"/"===a.slice(-1)||"/"!==b.slice(-1)||(b=b.slice(0,-1)),v&&(b=v+("/"===b[0]?b.substr(1):b)),b}function l(){}l.prototype.parse=d,l.prototype.format=r,l.prototype.resolve=h,l.prototype.resolveObject=h;var v=/^https?|ftp|gopher|file/,y=/^(.*?)([#?].*)/,_=/^([a-z0-9.+-]*:)(\/{0,3})(.*)/i,b=/^([a-z0-9.+-]*:)?\/\/\/*/i,S=/^([a-z0-9.+-]*:)(\/{0,2})\[(.*)\]$/i;function d(t,s,c){if(void 0===s&&(s=!1),void 0===c&&(c=!1),t&&"object"==typeof t&&t instanceof l)return t;var f=(t=t.trim()).match(y);t=f?f[1].replace(/\\/g,"/")+f[2]:t.replace(/\\/g,"/"),S.test(t)&&"/"!==t.slice(-1)&&(t+="/");var g=!/(^javascript)/.test(t)&&t.match(_),m=b.test(t),w="";g&&(v.test(g[1])||(w=g[1].toLowerCase(),t=""+g[2]+g[3]),g[2]||(m=!1,v.test(g[1])?(w=g[1],t=""+g[3]):t="//"+g[3]),3!==g[2].length&&1!==g[2].length||(w=g[1],t="/"+g[3]));var C,E=(f?f[1]:t).match(/^https?:\/\/[^/]+(:[0-9]+)(?=\/|$)/),x=E&&E[1],P=new l,I="",T="";try{C=new URL(t)}catch(a){I=a,w||c||!/^\/\//.test(t)||/^\/\/.+[@.]/.test(t)||(T="/",t=t.substr(1));try{C=new URL(t,p)}catch(t){return P.protocol=w,P.href=w,P}}P.slashes=m&&!T,P.host="w.w"===C.host?"":C.host,P.hostname="w.w"===C.hostname?"":C.hostname.replace(/(\[|\])/g,""),P.protocol=I?w||null:C.protocol,P.search=C.search.replace(/\\/g,"%5C"),P.hash=C.hash.replace(/\\/g,"%5C");var k=t.split("#");!P.search&&~k[0].indexOf("?")&&(P.search="?"),P.hash||""!==k[1]||(P.hash="#"),P.query=s?a.decode(C.search.substr(1)):P.search.substr(1),P.pathname=T+(g?C.pathname.replace(/['^|`]/g,function(t){return"%"+t.charCodeAt().toString(16).toUpperCase()}).replace(/((?:%[0-9A-F]{2})+)/g,function(t,a){try{return decodeURIComponent(a).split("").map(function(t){var a=t.charCodeAt();return a>256||/^[a-z0-9]$/i.test(t)?t:"%"+a.toString(16).toUpperCase()}).join("")}catch(t){return a}}):C.pathname),"about:"===P.protocol&&"blank"===P.pathname&&(P.protocol="",P.pathname=""),I&&"/"!==t[0]&&(P.pathname=P.pathname.substr(1)),w&&!v.test(w)&&"/"!==t.slice(-1)&&"/"===P.pathname&&(P.pathname=""),P.path=P.pathname+P.search,P.auth=[C.username,C.password].map(decodeURIComponent).filter(
78Boolean).join(":"),P.port=C.port,x&&!P.host.endsWith(x)&&(P.host+=x,P.port=x.slice(1)),P.href=T?""+P.pathname+P.search+P.hash:r(P);var O=/^(file)/.test(P.href)?["host","hostname"]:[];return Object.keys(P).forEach(function(t){~O.indexOf(t)||(P[t]=P[t]||null)}),P}f.parse=d,f.format=r,f.resolve=h,f.resolveObject=function(t,a){return d(h(t,a))},f.Url=l}(),t.exports=f}()},77663:function(t){!function(){var a={229:function(t){var a,s,c,f=t.exports={};function defaultSetTimout(){throw Error("setTimeout has not been defined")}function defaultClearTimeout(){throw Error("clearTimeout has not been defined")}function runTimeout(t){if(a===setTimeout)return setTimeout(t,0);if((a===defaultSetTimout||!a)&&setTimeout)return a=setTimeout,setTimeout(t,0);try{return a(t,0)}catch(s){try{return a.call(null,t,0)}catch(s){return a.call(this,t,0)}}}!function(){try{a="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(t){a=defaultSetTimout}try{s="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(t){s=defaultClearTimeout}}();var p=[],g=!1,m=-1;function cleanUpNextTick(){g&&c&&(g=!1,c.length?p=c.concat(p):m=-1,p.length&&drainQueue())}function drainQueue(){if(!g){var t=runTimeout(cleanUpNextTick);g=!0;for(var a=p.length;a;){for(c=p,p=[];++m<a;)c&&c[m].run();m=-1,a=p.length}c=null,g=!1,function(t){if(s===clearTimeout)return clearTimeout(t);if((s===defaultClearTimeout||!s)&&clearTimeout)return s=clearTimeout,clearTimeout(t);try{s(t)}catch(a){try{return s.call(null,t)}catch(a){return s.call(this,t)}}}(t)}}function Item(t,a){this.fun=t,this.array=a}function noop(){}f.nextTick=function(t){var a=Array(arguments.length-1);if(arguments.length>1)for(var s=1;s<arguments.length;s++)a[s-1]=arguments[s];p.push(new Item(t,a)),1!==p.length||g||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},f.title="browser",f.browser=!0,f.env={},f.argv=[],f.version="",f.versions={},f.on=noop,f.addListener=noop,f.once=noop,f.off=noop,f.removeListener=noop,f.removeAllListeners=noop,f.emit=noop,f.prependListener=noop,f.prependOnceListener=noop,f.listeners=function(t){return[]},f.binding=function(t){throw Error("process.binding is not supported")},f.cwd=function(){return"/"},f.chdir=function(t){throw Error("process.chdir is not supported")},f.umask=function(){return 0}}},s={};function __nccwpck_require__(t){var c=s[t];if(void 0!==c)return c.exports;var f=s[t]={exports:{}},p=!0;try{a[t](f,f.exports,__nccwpck_require__),p=!1}finally{p&&delete s[t]}return f.exports}__nccwpck_require__.ab="//";var c=__nccwpck_require__(229);t.exports=c}()},97334:function(t){!function(){"use strict";var a={815:function(t){t.exports=function(t,s,c,f){s=s||"&",c=c||"=";var p={};if("string"!=typeof t||0===t.length)return p;var g=/\+/g;t=t.split(s);var m=1e3;f&&"number"==typeof f.maxKeys&&(m=f.maxKeys);var v=t.length;m>0&&v>m&&(v=m);for(var y=0;y<v;++y){var _,b,S,w,C=t[y].replace(g,"%20"),E=C.indexOf(c);(E>=0?(_=C.substr(0,E),b=C.substr(E+1)):(_=C,b=""),S=decodeURIComponent(_),w=decodeURIComponent(b),Object.prototype.hasOwnProperty.call(p,S))?a(p[S])?p[S].push(w):p[S]=[p[S],w]:p[S]=w}return p};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},577:function(t){var stringifyPrimitive=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,c,f,p){return(c=c||"&",f=f||"=",null===t&&(t=void 0),"object"==typeof t)?map(s(t),function(s){var p=encodeURIComponent(stringifyPrimitive(s))+f;return a(t[s])?map(t[s],function(t){return p+encodeURIComponent(stringifyPrimitive(t))}).join(c):p+encodeURIComponent(stringifyPrimitive(t[s]))}).join(c):p?encodeURIComponent(stringifyPrimitive(p))+f+encodeURIComponent(stringifyPrimitive(t)):""};var a=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function map(t,a){if(t.map)return t.map(a);for(var s=[],c=0;c<t.length;c++)s.push(a(t[c],c));return s}var s=Object.keys||function(t){var a=[];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&a.push(s);return a}}},s={};function __nccwpck_require__(t){var c=s[t];if(void 0!==c)return c.exports;var f=s[t]={exports:{}},p=!0;try{a[t](f,f.exports,__nccwpck_require__),p=!1}finally{p&&delete s[t]}return f.exports}__nccwpck_require__.ab="//";var c={};c.decode=c.parse=__nccwpck_require__(815),c.encode=c.stringify=__nccwpck_require__(577),t.exports=c}()},68295:function(t,a,s){t.exports=function(t){var a,s=t.localStorage||(a={},{setItem:function(t,s){a[t]=s},getItem:function(t){return a[t]},removeItem:function(t){delete a[t]}}),c={CONNECT:1,CONNACK:2,PUBLISH:3,PUBACK:4,PUBREC:5,PUBREL:6,PUBCOMP:7,SUBSCRIBE:8,SUBACK:9,UNSUBSCRIBE:10,UNSUBACK:11,PINGREQ:12,PINGRESP:13,DISCONNECT:14},validate=function(t,a){for(var s in t)if(t.hasOwnProperty(s)){if(a.hasOwnProperty(s)){if(typeof t[s]!==a[s])throw Error(format(f.INVALID_TYPE,[typeof t[s],s]))}else{var c="Unknown property, "+s+". Valid properties are:";for(var p in a)a.hasOwnProperty(p)&&(c=c+" "+p);throw Error(c)}}},scope=function(t,a){return function(){return t.apply(a,arguments)}},f={OK:{code:0,text:"AMQJSC0000I OK."},CONNECT_TIMEOUT:{code:1,text:"AMQJSC0001E Connect timed out."},SUBSCRIBE_TIMEOUT:{code:2,text:"AMQJS0002E Subscribe timed out."},UNSUBSCRIBE_TIMEOUT:{code:3,text:"AMQJS0003E Unsubscribe timed out."},PING_TIMEOUT:{code:4,text:"AMQJS0004E Ping timed out."},INTERNAL_ERROR:{code:5,text:"AMQJS0005E Internal error. Error Message: {0}, Stack trace: {1}"},CONNACK_RETURNCODE:{code:6,text:"AMQJS0006E Bad Connack return code:{0} {1}."},SOCKET_ERROR:{code:7,text:"AMQJS0007E Socket error:{0}."},SOCKET_CLOSE:{code:8,text:"AMQJS0008I Socket closed."},MALFORMED_UTF:{code:9,text:"AMQJS0009E Malformed UTF data:{0} {1} {2}."},UNSUPPORTED:{code:10,text:"AMQJS0010E {0} is not supported by this browser."},INVALID_STATE:{code:11,text:"AMQJS0011E Invalid state {0}."},INVALID_TYPE:{code:12,text:"AMQJS0012E Invalid type {0} for {1}."},INVALID_ARGUMENT:{code:13,text:"AMQJS0013E Invalid argument {0} for {1}."},UNSUPPORTED_OPERATION:{code:14,text:"AMQJS0014E Unsupported operation."},INVALID_STORED_DATA:{code:15,text:"AMQJS0015E Invalid data in local storage key={0} value={1}."},INVALID_MQTT_MESSAGE_TYPE:{code:16,text:"AMQJS0016E Invalid MQTT message type {0}."},MALFORMED_UNICODE:{code:17,text:"AMQJS0017E Malformed Unicode string:{0} {1}."},BUFFER_FULL:{code:18,text:"AMQJS0018E Message buffer is full, maximum buffer size: {0}."}},p={0:"Connection Accepted",1:"Connection Refused: unacceptable protocol version",2:"Connection Refused: identifier rejected",3:"Connection Refused: server unavailable",4:"Connection Refused: bad user name or password",5:"Connection Refused: not authorized"},format=function(t,a){var s,c,f=t.text;if(a){for(var p=0;p<a.length;p++)if(s="{"+p+"}",(c=f.indexOf(s))>0){var g=f.substring(0,c),m=f.substring(c+s.length);f=g+a[p]+m}}return f},g=[0,6,77,81,73,115,100,112,3],m=[0,4,77,81,84,84,4],WireMessage=function(t,a){for(var s in this.type=t,a)a.hasOwnProperty(s)&&(this[s]=a[s])};function writeUint16(t,a,s){return a[s++]=t>>8,a[s++]=t%256,s}function writeString(t,a,s,c){return c=writeUint16(a,s,c),stringToUTF8(t,s,c),c+a}function readUint16(t,a){return 256*t[a]+t[a+1]}function UTF8Length(t){for(var a=0,s=0;s<t.length;s++){var c=t.charCodeAt(s);c>2047?(55296<=c&&c<=56319&&(s++,a++),a+=3):c>127?a+=2:a++}return a}function stringToUTF8(t,a,s){for(var c=s,p=0;p<t.length;p++){var g=t.charCodeAt(p);if(55296<=g&&g<=56319){var m=t.charCodeAt(++p);if(isNaN(m))throw Error(format(f.MALFORMED_UNICODE,[g,m]));g=(g-55296<<10)+(m-56320)+65536}g<=127?a[c++]=g:(g<=2047?a[c++]=g>>6&31|192:(g<=65535?a[c++]=g>>12&15|224:(a[c++]=g>>18&7|240,a[c++]=g>>12&63|128),a[c++]=g>>6&63|128),a[c++]=63&g|128)}return a}function parseUTF8(t,a,s){for(var c,p="",g=a;g<a+s;){var m=t[g++];if(m<128)c=m;else{var v=t[g++]-128;if(v<0)throw Error(format(f.MALFORMED_UTF,[m.toString(16),v.toString(16),""]));if(m<224)c=64*(m-192)+v;else{var y=t[g++]-128;if(y<0)throw Error(format(f.MALFORMED_UTF,[m.toString(16),v.toString(16),y.toString(16)]));if(m<240)c=4096*(m-224)+64*v+y;else{var _=t[g++]-128;if(_<0)throw Error(format(f.MALFORMED_UTF,[m.toString(16),v.toString(16),y.toString(16),_.toString(16)]));if(m<248)c=262144*(m-240)+4096*v+64*y+_;else throw Error(format(f.MALFORMED_UTF,[m.toString(16),v.toString(16),y.toString(16),_.toString(16)]))}}}c>65535&&(c-=65536,p+=String.fromCharCode(55296+(c>>10)),c=56320+(1023&c)),p+=String.fromCharCode(c)}return p}WireMessage.prototype.encode=function(){var t,a=(15&this.type)<<4,s=0,f=[],p=0;switch(void 0!==this.messageIdentifier&&(s+=2),this.type){case c.CONNECT:switch(this.mqttVersion){case 3:s+=g.length+3;break;case 4:s+=m.length+3}s+=UTF8Length(this.clientId)+2,void 0!==this.willMessage&&(s+=UTF8Length(this.willMessage.destinationName)+2,(t=this.willMessage.payloadBytes)instanceof Uint8Array||(t=new Uint8Array(y)),s+=t.byteLength+2),void 0!==this.userName&&(s+=UTF8Length(this.userName)+2),void 0!==this.password&&(s+=UTF8Length(this.password)+2);break;case c.SUBSCRIBE:a|=2;for(var v=0;v<this.topics.length;v++)f[v]=UTF8Length(this.topics[v]),s+=f[v]+2;s+=this.requestedQos.length;break;case c.UNSUBSCRIBE:a|=2;for(var v=0;v<this.topics.length;v++)f[v]=UTF8Length(this.topics[v]),s+=f[v]+2;break;case c.PUBREL:a|=2;break;case c.PUBLISH:this.payloadMessage.duplicate&&(a|=8),a=a|=this.payloadMessage.qos<<1,this.payloadMessage.retained&&(a|=1),s+=(p=UTF8Length(this.payloadMessage.destinationName))+2;var y=this.payloadMessage.payloadBytes;s+=y.byteLength,y instanceof ArrayBuffer?y=new Uint8Array(y):y instanceof Uint8Array||(y=new Uint8Array(y.buffer));case c.DISCONNECT:}var _=function(t){var a=[,],s=0;do{var c=t%128;(t>>=7)>0&&(c|=128),a[s++]=c}while(t>0&&s<4);return a}(s),b=_.length+1,S=new ArrayBuffer(s+b),w=new Uint8Array(S);if(w[0]=a,w.set(_,1),this.type==c.PUBLISH)b=writeString(this.payloadMessage.destinationName,p,w,b);
78else if(this.type==c.CONNECT){switch(this.mqttVersion){case 3:w.set(g,b),b+=g.length;break;case 4:w.set(m,b),b+=m.length}var C=0;this.cleanSession&&(C=2),void 0!==this.willMessage&&(C|=4,C|=this.willMessage.qos<<3,this.willMessage.retained&&(C|=32)),void 0!==this.userName&&(C|=128),void 0!==this.password&&(C|=64),w[b++]=C,b=writeUint16(this.keepAliveInterval,w,b)}switch(void 0!==this.messageIdentifier&&(b=writeUint16(this.messageIdentifier,w,b)),this.type){case c.CONNECT:b=writeString(this.clientId,UTF8Length(this.clientId),w,b),void 0!==this.willMessage&&(b=writeString(this.willMessage.destinationName,UTF8Length(this.willMessage.destinationName),w,b),b=writeUint16(t.byteLength,w,b),w.set(t,b),b+=t.byteLength),void 0!==this.userName&&(b=writeString(this.userName,UTF8Length(this.userName),w,b)),void 0!==this.password&&(b=writeString(this.password,UTF8Length(this.password),w,b));break;case c.PUBLISH:w.set(y,b);break;case c.SUBSCRIBE:for(var v=0;v<this.topics.length;v++)b=writeString(this.topics[v],f[v],w,b),w[b++]=this.requestedQos[v];break;case c.UNSUBSCRIBE:for(var v=0;v<this.topics.length;v++)b=writeString(this.topics[v],f[v],w,b)}return S};var Pinger=function(t,a){this._client=t,this._keepAliveInterval=1e3*a,this.isReset=!1;var s=new WireMessage(c.PINGREQ).encode(),doTimeout=function(t){return function(){return doPing.apply(t)}},doPing=function(){this.isReset?(this.isReset=!1,this._client._trace("Pinger.doPing","send PINGREQ"),this._client.socket.send(s),this.timeout=setTimeout(doTimeout(this),this._keepAliveInterval)):(this._client._trace("Pinger.doPing","Timed out"),this._client._disconnected(f.PING_TIMEOUT.code,format(f.PING_TIMEOUT)))};this.reset=function(){this.isReset=!0,clearTimeout(this.timeout),this._keepAliveInterval>0&&(this.timeout=setTimeout(doTimeout(this),this._keepAliveInterval))},this.cancel=function(){clearTimeout(this.timeout)}},Timeout=function(t,a,s,c){a||(a=30),this.timeout=setTimeout(function(){return s.apply(t,c)},1e3*a),this.cancel=function(){clearTimeout(this.timeout)}},ClientImpl=function(a,c,p,g,m){if(!("WebSocket"in t&&null!==t.WebSocket))throw Error(format(f.UNSUPPORTED,["WebSocket"]));if(!("ArrayBuffer"in t&&null!==t.ArrayBuffer))throw Error(format(f.UNSUPPORTED,["ArrayBuffer"]));for(var v in this._trace("Paho.Client",a,c,p,g,m),this.host=c,this.port=p,this.path=g,this.uri=a,this.clientId=m,this._wsuri=null,this._localKey=c+":"+p+("/mqtt"!=g?":"+g:"")+":"+m+":",this._msg_queue=[],this._buffered_msg_queue=[],this._sentMessages={},this._receivedMessages={},this._notify_msg_sent={},this._message_identifier=1,this._sequence=0,s)(0===v.indexOf("Sent:"+this._localKey)||0===v.indexOf("Received:"+this._localKey))&&this.restore(v)};ClientImpl.prototype.host=null,ClientImpl.prototype.port=null,ClientImpl.prototype.path=null,ClientImpl.prototype.uri=null,ClientImpl.prototype.clientId=null,ClientImpl.prototype.socket=null,ClientImpl.prototype.connected=!1,ClientImpl.prototype.maxMessageIdentifier=65536,ClientImpl.prototype.connectOptions=null,ClientImpl.prototype.hostIndex=null,ClientImpl.prototype.onConnected=null,ClientImpl.prototype.onConnectionLost=null,ClientImpl.prototype.onMessageDelivered=null,ClientImpl.prototype.onMessageArrived=null,ClientImpl.prototype.traceFunction=null,ClientImpl.prototype._msg_queue=null,ClientImpl.prototype._buffered_msg_queue=null,ClientImpl.prototype._connectTimeout=null,ClientImpl.prototype.sendPinger=null,ClientImpl.prototype.receivePinger=null,ClientImpl.prototype._reconnectInterval=1,ClientImpl.prototype._reconnecting=!1,ClientImpl.prototype._reconnectTimeout=null,ClientImpl.prototype.disconnectedPublishing=!1,ClientImpl.prototype.disconnectedBufferSize=5e3,ClientImpl.prototype.receiveBuffer=null,ClientImpl.prototype._traceBuffer=null,ClientImpl.prototype._MAX_TRACE_ENTRIES=100,ClientImpl.prototype.connect=function(t){var a=this._traceMask(t,"password");if(this._trace("Client.connect",a,this.socket,this.connected),this.connected||this.socket)throw Error(format(f.INVALID_STATE,["already connected"]));this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),this.connectOptions=t,this._reconnectInterval=1,this._reconnecting=!1,t.uris?(this.hostIndex=0,this._doConnect(t.uris[0])):this._doConnect(this.uri)},ClientImpl.prototype.subscribe=function(t,a){if(this._trace("Client.subscribe",t,a),!this.connected)throw Error(format(f.INVALID_STATE,["not connected"]));var s=new WireMessage(c.SUBSCRIBE);s.topics=t.constructor===Array?t:[t],void 0===a.qos&&(a.qos=0),s.requestedQos=[];for(var p=0;p<s.topics.length;p++)s.requestedQos[p]=a.qos;a.onSuccess&&(s.onSuccess=function(t){a.onSuccess({invocationContext:a.invocationContext,grantedQos:t})}),a.onFailure&&(s.onFailure=function(t){a.onFailure({invocationContext:a.invocationContext,errorCode:t,errorMessage:format(t)})}),a.timeout&&(s.timeOut=new Timeout(this,a.timeout,a.onFailure,[{invocationContext:a.invocationContext,errorCode:f.SUBSCRIBE_TIMEOUT.code,errorMessage:format(f.SUBSCRIBE_TIMEOUT)}])),this._requires_ack(s),this._schedule_message(s)},ClientImpl.prototype.unsubscribe=function(t,a){if(this._trace("Client.unsubscribe",t,a),!this.connected)throw Error(format(f.INVALID_STATE,["not connected"]));var s=new WireMessage(c.UNSUBSCRIBE);s.topics=t.constructor===Array?t:[t],a.onSuccess&&(s.callback=function(){a.onSuccess({invocationContext:a.invocationContext})}),a.timeout&&(s.timeOut=new Timeout(this,a.timeout,a.onFailure,[{invocationContext:a.invocationContext,errorCode:f.UNSUBSCRIBE_TIMEOUT.code,errorMessage:format(f.UNSUBSCRIBE_TIMEOUT)}])),this._requires_ack(s),this._schedule_message(s)},ClientImpl.prototype.send=function(t){this._trace("Client.send",t);var a=new WireMessage(c.PUBLISH);if(a.payloadMessage=t,this.connected)t.qos>0?this._requires_ack(a):this.onMessageDelivered&&(this._notify_msg_sent[a]=this.onMessageDelivered(a.payloadMessage)),this._schedule_message(a);else if(this._reconnecting&&this.disconnectedPublishing){if(Object.keys(this._sentMessages).length+this._buffered_msg_queue.length>this.disconnectedBufferSize)throw Error(format(f.BUFFER_FULL,[this.disconnectedBufferSize]));t.qos>0?this._requires_ack(a):(a.sequence=++this._sequence,this._buffered_msg_queue.unshift(a))}else throw Error(format(f.INVALID_STATE,["not connected"]))},ClientImpl.prototype.disconnect=function(){if(this._trace("Client.disconnect"),this._reconnecting&&(this._reconnectTimeout.cancel(),this._reconnectTimeout=null,this._reconnecting=!1),!this.socket)throw Error(format(f.INVALID_STATE,["not connecting or connected"]));var t=new WireMessage(c.DISCONNECT);this._notify_msg_sent[t]=scope(this._disconnected,this),this._schedule_message(t)},ClientImpl.prototype.getTraceLog=function(){if(null!==this._traceBuffer){for(var t in this._trace("Client.getTraceLog",new Date),this._trace("Client.getTraceLog in flight messages",this._sentMessages.length),this._sentMessages)this._trace("_sentMessages ",t,this._sentMessages[t]);for(var t in this._receivedMessages)this._trace("_receivedMessages ",t,this._receivedMessages[t]);return this._traceBuffer}}
78,ClientImpl.prototype.startTrace=function(){null===this._traceBuffer&&(this._traceBuffer=[]),this._trace("Client.startTrace",new Date,"@VERSION@-@BUILDLEVEL@")},ClientImpl.prototype.stopTrace=function(){delete this._traceBuffer},ClientImpl.prototype._doConnect=function(t){if(this.connectOptions.useSSL){var a=t.split(":");a[0]="wss",t=a.join(":")}this._wsuri=t,this.connected=!1,this.connectOptions.mqttVersion<4?this.socket=new WebSocket(t,["mqttv3.1"]):this.socket=new WebSocket(t,["mqtt"]),this.socket.binaryType="arraybuffer",this.socket.onopen=scope(this._on_socket_open,this),this.socket.onmessage=scope(this._on_socket_message,this),this.socket.onerror=scope(this._on_socket_error,this),this.socket.onclose=scope(this._on_socket_close,this),this.sendPinger=new Pinger(this,this.connectOptions.keepAliveInterval),this.receivePinger=new Pinger(this,this.connectOptions.keepAliveInterval),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._connectTimeout=new Timeout(this,this.connectOptions.timeout,this._disconnected,[f.CONNECT_TIMEOUT.code,format(f.CONNECT_TIMEOUT)])},ClientImpl.prototype._schedule_message=function(t){this._msg_queue.unshift(t),this.connected&&this._process_queue()},ClientImpl.prototype.store=function(t,a){var p={type:a.type,messageIdentifier:a.messageIdentifier,version:1};if(a.type===c.PUBLISH){a.pubRecReceived&&(p.pubRecReceived=!0),p.payloadMessage={};for(var g="",m=a.payloadMessage.payloadBytes,v=0;v<m.length;v++)m[v]<=15?g=g+"0"+m[v].toString(16):g+=m[v].toString(16);p.payloadMessage.payloadHex=g,p.payloadMessage.qos=a.payloadMessage.qos,p.payloadMessage.destinationName=a.payloadMessage.destinationName,a.payloadMessage.duplicate&&(p.payloadMessage.duplicate=!0),a.payloadMessage.retained&&(p.payloadMessage.retained=!0),0===t.indexOf("Sent:")&&(void 0===a.sequence&&(a.sequence=++this._sequence),p.sequence=a.sequence)}else throw Error(format(f.INVALID_STORED_DATA,[t+this._localKey+a.messageIdentifier,p]));s.setItem(t+this._localKey+a.messageIdentifier,JSON.stringify(p))},ClientImpl.prototype.restore=function(t){var a=s.getItem(t),p=JSON.parse(a),g=new WireMessage(p.type,p);if(p.type===c.PUBLISH){for(var m=p.payloadMessage.payloadHex,v=new ArrayBuffer(m.length/2),y=new Uint8Array(v),_=0;m.length>=2;){var b=parseInt(m.substring(0,2),16);m=m.substring(2,m.length),y[_++]=b}var S=new Message(y);S.qos=p.payloadMessage.qos,S.destinationName=p.payloadMessage.destinationName,p.payloadMessage.duplicate&&(S.duplicate=!0),p.payloadMessage.retained&&(S.retained=!0),g.payloadMessage=S}else throw Error(format(f.INVALID_STORED_DATA,[t,a]));0===t.indexOf("Sent:"+this._localKey)?(g.payloadMessage.duplicate=!0,this._sentMessages[g.messageIdentifier]=g):0===t.indexOf("Received:"+this._localKey)&&(this._receivedMessages[g.messageIdentifier]=g)},ClientImpl.prototype._process_queue=function(){for(var t=null;t=this._msg_queue.pop();)this._socket_send(t),this._notify_msg_sent[t]&&(this._notify_msg_sent[t](),delete this._notify_msg_sent[t])},ClientImpl.prototype._requires_ack=function(t){var a=Object.keys(this._sentMessages).length;if(a>this.maxMessageIdentifier)throw Error("Too many messages:"+a);for(;void 0!==this._sentMessages[this._message_identifier];)this._message_identifier++;t.messageIdentifier=this._message_identifier,this._sentMessages[t.messageIdentifier]=t,t.type===c.PUBLISH&&this.store("Sent:",t),this._message_identifier===this.maxMessageIdentifier&&(this._message_identifier=1)},ClientImpl.prototype._on_socket_open=function(){var t=new WireMessage(c.CONNECT,this.connectOptions);t.clientId=this.clientId,this._socket_send(t)},ClientImpl.prototype._on_socket_message=function(t){this._trace("Client._on_socket_message",t.data);for(var a=this._deframeMessages(t.data),s=0;s<a.length;s+=1)this._handleMessage(a[s])},ClientImpl.prototype._deframeMessages=function(t){var a=new Uint8Array(t),s=[];if(this.receiveBuffer){var p=new Uint8Array(this.receiveBuffer.length+a.length);p.set(this.receiveBuffer),p.set(a,this.receiveBuffer.length),a=p,delete this.receiveBuffer}try{for(var g=0;g<a.length;){var m=function(t,a){var s,f=a,p=t[a],g=p>>4,m=p&=15;a+=1;var v=0,y=1;do{if(a==t.length)return[null,f];
78v+=(127&(s=t[a++]))*y,y*=128}while((128&s)!=0);var _=a+v;if(_>t.length)return[null,f];var b=new WireMessage(g);switch(g){case c.CONNACK:1&t[a++]&&(b.sessionPresent=!0),b.returnCode=t[a++];break;case c.PUBLISH:var S=m>>1&3,w=readUint16(t,a),C=parseUTF8(t,a+=2,w);a+=w,S>0&&(b.messageIdentifier=readUint16(t,a),a+=2);var E=new Message(t.subarray(a,_));(1&m)==1&&(E.retained=!0),(8&m)==8&&(E.duplicate=!0),E.qos=S,E.destinationName=C,b.payloadMessage=E;break;case c.PUBACK:case c.PUBREC:case c.PUBREL:case c.PUBCOMP:case c.UNSUBACK:b.messageIdentifier=readUint16(t,a);break;case c.SUBACK:b.messageIdentifier=readUint16(t,a),a+=2,b.returnCode=t.subarray(a,_)}return[b,_]}(a,g),v=m[0];if(g=m[1],null!==v)s.push(v);else break}g<a.length&&(this.receiveBuffer=a.subarray(g))}catch(t){var y="undefined"==t.hasOwnProperty("stack")?t.stack.toString():"No Error Stack Available";this._disconnected(f.INTERNAL_ERROR.code,format(f.INTERNAL_ERROR,[t.message,y]));return}return s},ClientImpl.prototype._handleMessage=function(t){this._trace("Client._handleMessage",t);try{switch(t.type){case c.CONNACK:if(this._connectTimeout.cancel(),this._reconnectTimeout&&this._reconnectTimeout.cancel(),this.connectOptions.cleanSession){for(var a in this._sentMessages){var g=this._sentMessages[a];s.removeItem("Sent:"+this._localKey+g.messageIdentifier)}for(var a in this._sentMessages={},this._receivedMessages){var m=this._receivedMessages[a];s.removeItem("Received:"+this._localKey+m.messageIdentifier)}this._receivedMessages={}}if(0===t.returnCode)this.connected=!0,this.connectOptions.uris&&(this.hostIndex=this.connectOptions.uris.length);else{this._disconnected(f.CONNACK_RETURNCODE.code,format(f.CONNACK_RETURNCODE,[t.returnCode,p[t.returnCode]]));break}var v=[];for(var y in this._sentMessages)this._sentMessages.hasOwnProperty(y)&&v.push(this._sentMessages[y]);if(this._buffered_msg_queue.length>0)for(var _=null;_=this._buffered_msg_queue.pop();)v.push(_),this.onMessageDelivered&&(this._notify_msg_sent[_]=this.onMessageDelivered(_.payloadMessage));for(var v=v.sort(function(t,a){return t.sequence-a.sequence}),b=0,S=v.length;b<S;b++){var g=v[b];if(g.type==c.PUBLISH&&g.pubRecReceived){var w=new WireMessage(c.PUBREL,{messageIdentifier:g.messageIdentifier});this._schedule_message(w)}else this._schedule_message(g)}this.connectOptions.onSuccess&&this.connectOptions.onSuccess({invocationContext:this.connectOptions.invocationContext});var C=!1;this._reconnecting&&(C=!0,this._reconnectInterval=1,this._reconnecting=!1),this._connected(C,this._wsuri),this._process_queue();break;case c.PUBLISH:this._receivePublish(t);break;case c.PUBACK:var g=this._sentMessages[t.messageIdentifier];g&&(delete this._sentMessages[t.messageIdentifier],s.removeItem("Sent:"+this._localKey+t.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(g.payloadMessage));break;case c.PUBREC:var g=this._sentMessages[t.messageIdentifier];if(g){g.pubRecReceived=!0;var w=new WireMessage(c.PUBREL,{messageIdentifier:t.messageIdentifier});this.store("Sent:",g),this._schedule_message(w)}break;case c.PUBREL:var m=this._receivedMessages[t.messageIdentifier];s.removeItem("Received:"+this._localKey+t.messageIdentifier),m&&(this._receiveMessage(m),delete this._receivedMessages[t.messageIdentifier]);var E=new WireMessage(c.PUBCOMP,{messageIdentifier:t.messageIdentifier});this._schedule_message(E);break;case c.PUBCOMP:var g=this._sentMessages[t.messageIdentifier];delete this._sentMessages[t.messageIdentifier],s.removeItem("Sent:"+this._localKey+t.messageIdentifier),this.onMessageDelivered&&this.onMessageDelivered(g.payloadMessage);break;case c.SUBACK:var g=this._sentMessages[t.messageIdentifier];g&&(g.timeOut&&g.timeOut.cancel(),128===t.returnCode[0]?g.onFailure&&g.onFailure(t.returnCode):g.onSuccess&&g.onSuccess(t.returnCode),delete this._sentMessages[t.messageIdentifier]);break;case c.UNSUBACK:var g=this._sentMessages[t.messageIdentifier];g&&(g.timeOut&&g.timeOut.cancel(),g.callback&&g.callback(),delete this._sentMessages[t.messageIdentifier]);break;case c.PINGRESP:this.sendPinger.reset();break;case c.DISCONNECT:default:this._disconnected(f.INVALID_MQTT_MESSAGE_TYPE.code,format(f.INVALID_MQTT_MESSAGE_TYPE,[t.type]))}}catch(t){var x="undefined"==t.hasOwnProperty("stack")?t.stack.toString():"No Error Stack Available";this._disconnected(f.INTERNAL_ERROR.code,format(f.INTERNAL_ERROR,[t.message,x]));return}},ClientImpl.prototype._on_socket_error=function(t){this._reconnecting||this._disconnected(f.SOCKET_ERROR.code,format(f.SOCKET_ERROR,[t.data]))},ClientImpl.prototype._on_socket_close=function(){this._reconnecting||this._disconnected(f.SOCKET_CLOSE.code,format(f.SOCKET_CLOSE))},ClientImpl.prototype._socket_send=function(t){if(1==t.type){var a=this._traceMask(t,"password");this._trace("Client._socket_send",a)}else this._trace("Client._socket_send",t);this.socket.send(t.encode()),this.sendPinger.reset()},ClientImpl.prototype._receivePublish=function(t){switch(t.payloadMessage.qos){case"undefined":case 0:this._receiveMessage(t);break;case 1:var a=new WireMessage(c.PUBACK,{messageIdentifier:t.messageIdentifier});this._schedule_message(a),this._receiveMessage(t);break;case 2:this._receivedMessages[t.messageIdentifier]=t,this.store("Received:",t);var s=new WireMessage(c.PUBREC,{messageIdentifier:t.messageIdentifier});this._schedule_message(s);break;default:throw Error("Invaild qos="+t.payloadMessage.qos)}},ClientImpl.prototype._receiveMessage=function(t){this.onMessageArrived&&this.onMessageArrived(t.payloadMessage)},ClientImpl.prototype._connected=function(t,a){this.onConnected&&this.onConnected(t,a)},ClientImpl.prototype._reconnect=function(){this._trace("Client._reconnect"),this.connected||(this._reconnecting=!0,this.sendPinger.cancel(),this.receivePinger.cancel(),this._reconnectInterval<128&&(this._reconnectInterval=2*this._reconnectInterval),this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri))},ClientImpl.prototype._disconnected=function(t,a){if(this._trace("Client._disconnected",t,a),void 0!==t&&this._reconnecting){this._reconnectTimeout=new Timeout(this,this._reconnectInterval,this._reconnect);return}if(this.sendPinger.cancel(),this.receivePinger.cancel(),this._connectTimeout&&(this._connectTimeout.cancel(),this._connectTimeout=null),this._msg_queue=[],this._buffered_msg_queue=[],this._notify_msg_sent={},this.socket&&(this.socket.onopen=null,this.socket.onmessage=null,this.socket.onerror=null,this.socket.onclose=null,1===this.socket.readyState&&this.socket.close(),delete this.socket),this.connectOptions.uris&&this.hostIndex<this.connectOptions.uris.length-1)this.hostIndex++,this._doConnect(this.connectOptions.uris[this.hostIndex]);else if(void 0===t&&(t=f.OK.code,a=format(f.OK)),this.connected){if(this.connected=!1,this.onConnectionLost&&this.onConnectionLost({errorCode:t,errorMessage:a,reconnect:this.connectOptions.reconnect,uri:this._wsuri}),t!==f.OK.code&&this.connectOptions.reconnect){this._reconnectInterval=1,this._reconnect();return}}else 4===this.connectOptions.mqttVersion&&!1===this.connectOptions.mqttVersionExplicit?(this._trace("Failed to connect V4, dropping back to V3"),this.connectOptions.mqttVersion=3,this.connectOptions.uris?(this.hostIndex=0,this._doConnect(this.connectOptions.uris[0])):this._doConnect(this.uri)):this.connectOptions.onFailure&&this.connectOptions.onFailure({invocationContext:this.connectOptions.invocationContext,errorCode:t,errorMessage:a})},ClientImpl.prototype._trace=function(){if(this.traceFunction){var t=Array.prototype.slice.call(arguments);for(var a in t)void 0!==t[a]&&t.splice(a,1,JSON.stringify(t[a]));var s=t.join("");this.traceFunction({severity:"Debug",message:s})}if(null!==this._traceBuffer)for(var a=0,c=arguments.length;a<c;a++)this._traceBuffer.length==this._MAX_TRACE_ENTRIES&&this._traceBuffer.shift(),0===a?this._traceBuffer.push(arguments[a]):void 0===arguments[a]?this._traceBuffer.push(arguments[a]):this._traceBuffer.push("  "+JSON.stringify(arguments[a]))},ClientImpl.prototype._traceMask=function(t,a){var s={};for(var c in t)t.hasOwnProperty(c)&&(c==a?s[c]="******":s[c]=t[c]);return s};var Message=function(t){if("string"==typeof t||t instanceof ArrayBuffer||ArrayBuffer.isView(t)&&!(t instanceof DataView))a=t;else throw format(f.INVALID_ARGUMENT,[t,"newPayload"]);var a,s,c=0,p=!1,g=!1;Object.defineProperties(this,{payloadString:{enumerable:!0,get:function(){return"string"==typeof a?a:parseUTF8(a,0,a.length)}},payloadBytes:{enumerable:!0,get:function(){if("string"!=typeof a)return a;var t=new ArrayBuffer(UTF8Length(a)),s=new Uint8Array(t);return stringToUTF8(a,s,0),s}},destinationName:{enumerable:!0,get:function(){return s},set:function(t){if("string"==typeof t)s=t;else throw Error(format(f.INVALID_ARGUMENT,[t,"newDestinationName"]))}},qos:{enumerable:!0,get:function(){return c},set:function(t){if(0===t||1===t||2===t)c=t;else throw Error("Invalid argument:"+t)}},retained:{enumerable:!0,get:function(){return p},set:function(t){if("boolean"==typeof t)p=t;else throw Error(format(f.INVALID_ARGUMENT,[t,"newRetained"]))}},topic:{enumerable:!0,get:function(){return s},set:function(t){s=t}},duplicate:{enumerable:!0,get:function(){return g},set:function(t){g=t}}})};return{Client:function(t,a,s,c){if("string"!=typeof t)throw Error(format(f.INVALID_TYPE,[typeof t,"host"]));if(2==arguments.length){c=a;var p,g=(p=t).match(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/);if(g)t=g[4]||g[2],a=parseInt(g[7]),s=g[8];else throw Error(format(f.INVALID_ARGUMENT,[t,"host"]))}else{if(3==arguments.length&&(c=s,s="/mqtt"),"number"!=typeof a||a<0)throw Error(format(f.INVALID_TYPE,[typeof a,"port"]));if("string"!=typeof s)throw Error(format(f.INVALID_TYPE,[typeof s,"path"]));p="ws://"+(-1!==t.indexOf(":")&&"["!==t.slice(0,1)&&"]"!==t.slice(-1)?"["+t+"]":t)+":"+a+s}for(var m=0,v=0;v<c.length;v++){var y=c.charCodeAt(v);55296<=y&&y<=56319&&v++,m++}if("string"!=typeof c||m>65535)throw Error(format(f.INVALID_ARGUMENT,[c,"clientId"]));var _=new ClientImpl(p,t,a,s,c);Object.defineProperties(this,{host:{get:function(){return t},set:function(){throw Error(format(f.UNSUPPORTED_OPERATION))}},port:{get:function(){return a}
78,set:function(){throw Error(format(f.UNSUPPORTED_OPERATION))}},path:{get:function(){return s},set:function(){throw Error(format(f.UNSUPPORTED_OPERATION))}},uri:{get:function(){return p},set:function(){throw Error(format(f.UNSUPPORTED_OPERATION))}},clientId:{get:function(){return _.clientId},set:function(){throw Error(format(f.UNSUPPORTED_OPERATION))}},onConnected:{get:function(){return _.onConnected},set:function(t){if("function"==typeof t)_.onConnected=t;else throw Error(format(f.INVALID_TYPE,[typeof t,"onConnected"]))}},disconnectedPublishing:{get:function(){return _.disconnectedPublishing},set:function(t){_.disconnectedPublishing=t}},disconnectedBufferSize:{get:function(){return _.disconnectedBufferSize},set:function(t){_.disconnectedBufferSize=t}},onConnectionLost:{get:function(){return _.onConnectionLost},set:function(t){if("function"==typeof t)_.onConnectionLost=t;else throw Error(format(f.INVALID_TYPE,[typeof t,"onConnectionLost"]))}},onMessageDelivered:{get:function(){return _.onMessageDelivered},set:function(t){if("function"==typeof t)_.onMessageDelivered=t;else throw Error(format(f.INVALID_TYPE,[typeof t,"onMessageDelivered"]))}},onMessageArrived:{get:function(){return _.onMessageArrived},set:function(t){if("function"==typeof t)_.onMessageArrived=t;else throw Error(format(f.INVALID_TYPE,[typeof t,"onMessageArrived"]))}},trace:{get:function(){return _.traceFunction},set:function(t){if("function"==typeof t)_.traceFunction=t;else throw Error(format(f.INVALID_TYPE,[typeof t,"onTrace"]))}}}),this.connect=function(t){if(validate(t=t||{},{timeout:"number",userName:"string",password:"string",willMessage:"object",keepAliveInterval:"number",cleanSession:"boolean",useSSL:"boolean",invocationContext:"object",onSuccess:"function",onFailure:"function",hosts:"object",ports:"object",reconnect:"boolean",mqttVersion:"number",mqttVersionExplicit:"boolean",uris:"object"}),void 0===t.keepAliveInterval&&(t.keepAliveInterval=60),t.mqttVersion>4||t.mqttVersion<3)throw Error(format(f.INVALID_ARGUMENT,[t.mqttVersion,"connectOptions.mqttVersion"]));if(void 0===t.mqttVersion?(t.mqttVersionExplicit=!1,t.mqttVersion=4):t.mqttVersionExplicit=!0,void 0!==t.password&&void 0===t.userName)throw Error(format(f.INVALID_ARGUMENT,[t.password,"connectOptions.password"]));if(t.willMessage){if(!(t.willMessage instanceof Message))throw Error(format(f.INVALID_TYPE,[t.willMessage,"connectOptions.willMessage"]));if(t.willMessage.stringPayload=null,void 0===t.willMessage.destinationName)throw Error(format(f.INVALID_TYPE,[typeof t.willMessage.destinationName,"connectOptions.willMessage.destinationName"]))}if(void 0===t.cleanSession&&(t.cleanSession=!0),t.hosts){if(!(t.hosts instanceof Array)||t.hosts.length<1)throw Error(format(f.INVALID_ARGUMENT,[t.hosts,"connectOptions.hosts"]));for(var a=!1,c=0;c<t.hosts.length;c++){if("string"!=typeof t.hosts[c])throw Error(format(f.INVALID_TYPE,[typeof t.hosts[c],"connectOptions.hosts["+c+"]"]));if(/^(wss?):\/\/((\[(.+)\])|([^\/]+?))(:(\d+))?(\/.*)$/.test(t.hosts[c])){if(0===c)a=!0;else if(!a)throw Error(format(f.INVALID_ARGUMENT,[t.hosts[c],"connectOptions.hosts["+c+"]"]))}else if(a)throw Error(format(f.INVALID_ARGUMENT,[t.hosts[c],"connectOptions.hosts["+c+"]"]))}if(a)t.uris=t.hosts;else{if(!t.ports||!(t.ports instanceof Array)||t.hosts.length!==t.ports.length)throw Error(format(f.INVALID_ARGUMENT,[t.ports,"connectOptions.ports"]));t.uris=[];for(var c=0;c<t.hosts.length;c++){if("number"!=typeof t.ports[c]||t.ports[c]<0)throw Error(format(f.INVALID_TYPE,[typeof t.ports[c],"connectOptions.ports["+c+"]"]));var g=t.hosts[c],m=t.ports[c];p="ws://"+(-1!==g.indexOf(":")?"["+g+"]":g)+":"+m+s,t.uris.push(p)}}}_.connect(t)},this.subscribe=function(t,a){if("string"!=typeof t&&t.constructor!==Array)throw Error("Invalid argument:"+t);if(validate(a=a||{},{qos:"number",invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),a.timeout&&!a.onFailure)throw Error("subscribeOptions.timeout specified with no onFailure callback.");if(void 0!==a.qos&&!(0===a.qos||1===a.qos||2===a.qos))throw Error(format(f.INVALID_ARGUMENT,[a.qos,"subscribeOptions.qos"]));_.subscribe(t,a)},this.unsubscribe=function(t,a){if("string"!=typeof t&&t.constructor!==Array)throw Error("Invalid argument:"+t);if(validate(a=a||{},{invocationContext:"object",onSuccess:"function",onFailure:"function",timeout:"number"}),a.timeout&&!a.onFailure)throw Error("unsubscribeOptions.timeout specified with 
78no onFailure callback.");_.unsubscribe(t,a)},this.send=function(t,a,s,c){var p;if(0==arguments.length)throw Error("Invalid argument.length");if(1==arguments.length){if(!(t instanceof Message)&&"string"!=typeof t)throw Error("Invalid argument:"+typeof t);if(void 0===(p=t).destinationName)throw Error(format(f.INVALID_ARGUMENT,[p.destinationName,"Message.destinationName"]));_.send(p)}else(p=new Message(a)).destinationName=t,arguments.length>=3&&(p.qos=s),arguments.length>=4&&(p.retained=c),_.send(p)},this.publish=function(t,a,s,c){var p;if(0==arguments.length)throw Error("Invalid argument.length");if(1==arguments.length){if(!(t instanceof Message)&&"string"!=typeof t)throw Error("Invalid argument:"+typeof t);if(void 0===(p=t).destinationName)throw Error(format(f.INVALID_ARGUMENT,[p.destinationName,"Message.destinationName"]));_.send(p)}else(p=new Message(a)).destinationName=t,arguments.length>=3&&(p.qos=s),arguments.length>=4&&(p.retained=c),_.send(p)},this.disconnect=function(){_.disconnect()},this.getTraceLog=function(){return _.getTraceLog()},this.startTrace=function(){_.startTrace()},this.stopTrace=function(){_.stopTrace()},this.isConnected=function(){return _.connected}},Message:Message}}(void 0!==s.g?s.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},92703:function(t,a,s){"use strict";var c=s(50414);function emptyFunction(){}function emptyFunctionWithReset(){}
78emptyFunctionWithReset.resetWarningCache=emptyFunction,t.exports=function(){function shim(t,a,s,f,p,g){if(g!==c){var m=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw m.name="Invariant Violation",m}}function getShim(){return shim}shim.isRequired=shim;var t={array:shim,bigint:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,elementType:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim,exact:getShim,checkPropTypes:emptyFunctionWithReset,resetWarningCache:emptyFunction};return t.PropTypes=t,t}},45697:function(t,a,s){t.exports=s(92703)()},50414:function(t){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},58149:function(t,a,s){"use strict";var c=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),p=s(67294);_interopRequireDefault(p);var g=_interopRequireDefault(s(76448));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}function _objectWithoutProperties(t,a){var s={};for(var c in t)!(a.indexOf(c)>=0)&&Object.prototype.hasOwnProperty.call(t,c)&&(s[c]=t[c]);return s}function _possibleConstructorReturn(t,a){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&("object"==typeof a||"function"==typeof a)?a:t}var m=!!("undefined"!=typeof window&&window.document&&window.document.createElement),v=function(t){function Intercom(t){!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,Intercom);var a=_possibleConstructorReturn(this,(Intercom.__proto__||Object.getPrototypeOf(Intercom)).call(this,t)),s=t.appID,f=_objectWithoutProperties(t,["appID"]);return s&&m?(window.Intercom||function(t,a,s,c,f){function i(){i.c(arguments)}i.q=[],i.c=function(t){i.q.push(t)},t.Intercom=i,(c=a.createElement("script")).async=1,c.src="https://widget.intercom.io/widget/"+s,a.head.appendChild(c)}(window,document,s),window.intercomSettings=c({},f,{app_id:s}),window.Intercom&&window.Intercom("boot",f),a):_possibleConstructorReturn(a)}return!function(t,a){if("function"!=typeof a&&null!==a)throw TypeError("Super expression must either be null or a function, not "+typeof a);t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(t,a):t.__proto__=a)}(Intercom,t),f(Intercom,[{key:"componentWillReceiveProps",value:function(t){var a=t.a
78ppID,s=_objectWithoutProperties(t,["appID"]);m&&(window.intercomSettings=c({},s,{app_id:a}),window.Intercom&&(this.loggedIn(this.props)&&!this.loggedIn(t)?(window.Intercom("shutdown"),window.Intercom("boot",s)):window.Intercom("update",s)))}},{key:"shouldComponentUpdate",value:function(){return!1}},{key:"componentWillUnmount",value:function(){if(!m||!window.Intercom)return!1;window.Intercom("shutdown"),delete window.Intercom,delete window.intercomSettings}},{key:"loggedIn",value:function(t){return t.email||t.user_id}},{key:"render",value:function(){return!1}}]),Intercom}(p.Component);v.propTypes={appID:g.default.string.isRequired},v.displayName="Intercom",a.ZP=v},37656:function(t,a,s){"use strict";var c=s(60139),f=s(73759);t.exports=function(){function shim(){f(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function getShim(){return shim}shim.isRequired=shim;var t={array:shim,bool:shim,func:shim,number:shim,object:shim,string:shim,symbol:shim,any:shim,arrayOf:getShim,element:shim,instanceOf:getShim,node:shim,objectOf:getShim,oneOf:getShim,oneOfType:getShim,shape:getShim};return t.checkPropTypes=c,t.PropTypes=t,t}},76448:function(t,a,s){t.exports=s(37656)()},69921:function(t,a){"use strict";/** @license React v17.0.2
79 * react-is.production.min.js
80 *
81 * Copyright (c) Facebook, Inc. and its affiliates.
82 *
83 * This source code is licensed under the MIT license found in the
84 * LICENSE file in the root directory of this source tree.
85 */var s=60103,c=60106,f=60107,p=60108,g=60114,m=60109,v=60110,y=60112,_=60113,b=60120,S=60115,w=60116;if("function"==typeof Symbol&&Symbol.for){var C=Symbol.for;s=C("react.element"),c=C("react.portal"),f=C("react.fragment"),p=C("react.strict_mode"),g=C("react.profiler"),m=C("react.provider"),v=C("react.context"),y=C("react.forward_ref"),_=C("react.suspense"),b=C("react.suspense_list"),S=C("react.memo"),w=C("react.lazy"),C("react.block"),C("react.server.block"),C("react.fundamental"),C("react.debug_trace_mode"),C("react.legacy_hidden")}a.isContextConsumer=function(t){return function(t){if("object"==typeof t&&null!==t){var a=t.$$typeof;switch(a){case s:switch(t=t.type){case f:case g:case p:case _:case b:return t;default:switch(t=t&&t.$$typeof){case v:case y:case w:case S:case m:return t;default:return a}}case c:return a}}}(t)===v}},59864:function(t,a,s){"use strict";t.exports=s(69921)},69491:function(t,a,s){"use strict";var c=Object.assign||function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t},f=function(){function defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}return function(t,a,s){return a&&defineProperties(t.prototype,a),s&&defineProperties(t,s),t}}(),p=s(67294),g=s(45697),m=s(44103),v=function(t){if(t&&t.__esModule)return t;var a={};if(null!=t)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=t[s]);return a.default=t,a}(s(44647)),y=_interopRequireDefault(s(79254)),_=_interopRequireDefault(s(17393));function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}}var b=function(t){function JssProvider(){return!function(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}(this,JssProvider),function(t,a){if(!t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return a&&("object"==typeof a||"function"==typeof a)?a:t}(this,(JssProvider.__proto__||Object.getPrototypeOf(JssProvider)).apply(this,arguments))}return!function(t,a){if("function"!=typeof a&&null!==a)throw TypeError("Super expression must either be null or a function, not "+typeof a);t.prototype=Object.create(a&&a.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),a&&(Object.setPrototypeOf?Object.setPrototypeOf(t,a):t.__proto__=a)}(JssProvider,t),f(JssProvider,[{key:"getChildContext",value:function(){var t,a,s=this.props,c=s.registry,f=s.classNamePrefix,p=s.jss,g=s.generateClassName,y=s.disableStylesGeneration,_=this.context[v.sheetOptions]||{},b=(t={},(a=v.sheetOptions)in t?Object.defineProperty(t,a,{value:_,enumerable:!0,configurable:!0,writable:!0}):t[a]=_,t);if(c&&(b[v.sheetsRegistry]=c,c!==this.registry&&(this.managers={},this.registry=c)),b[v.managers]=this.managers,g)_.generateClassName=g;else if(!_.generateClassName){if(!this.generateClassName){var S=m.createGenerateClassNameDefault;p&&p.options.createGenerateClassName&&(S=p.options.createGenerateClassName),this.generateClassName=S()}_.generateClassName=this.generateClassName}return f&&(_.classNamePrefix=f),p&&(b[v.jss]=p),void 0!==y&&(_.disableStylesGeneration=y),b}},{key:"render",value:function(){return p.Children.only(this.props.children)}}]),JssProvider}(p.Component);b.propTypes=c({},_.default,{generateClassName:g.func,classNamePrefix:g.string,disableStylesGeneration:g.bool,children:g.node.isRequired}),b.childContextTypes=y.default,b.contextTypes=y.default,a.Z=b},79254:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c,f,p=s(45697),g=function(t){if(t&&t.__esModule)return t;var a={};if(null!=t)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=t[s]);return a.default=t,a}(s(44647)),m=(c=s(17393))&&c.__esModule?c:{default:c};function _defineProperty(t,a,s){return a in t?Object.defineProperty(t,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[a]=s,t}a.default=(_defineProperty(f={},g.jss,m.default.jss),_defineProperty(f,g.sheetOptions,p.object),_defineProperty(f,g.sheetsRegistry,m.default.registry),_defineProperty(f,g.managers,p.object),f)},44103:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.createGenerateClassNameDefault=a.SheetsManager=a.getDynamicStyles=a.SheetsRegistry=void 0;var c,f=s(55690);Object.defineProperty(a,"SheetsRegistry",{enumerable:!0,get:function(){return f.SheetsRegistry}}),Object.defineProperty(a,"getDynamicStyles",{enumerable:!0,get:function(){return f.getDynamicStyles}}),Object.defineProperty(a,"SheetsManager",{enumerable:!0,get:function(){return f.SheetsManager}}),Object.defineProperty(a,"createGenerateClassNameDefault",{enumerable:!0,get:function(){return f.createGenerateClassName}});var p=(c=s(50740))&&c.__esModule?c:{default:c};a.default=(0,f.create)((0,p.default)())},44647:function(t,a){"use strict";Object.defineProperty(a,"__esModule",{value:!0}),a.jss="64a55d578f856d258dc345b094a2a2b3",a.sheetsRegistry="d4bd0baacbc52bbd48bbb9eb24344ecd",a.managers="b768b78919504fba9de2c03545c5cd3a",a.sheetOptions="6fc570d6bd61383819d0f9e7407c452d"},17393:function(t,a,s){"use strict";Object.defineProperty(a,"__esModule",{value:!0});var c=s(45697);a.default={jss:(0,c.shape)({options:(0,c.shape)({createGenerateClassName:c.func.isRequired}).isRequired,createStyleSheet:c.func.isRequired,removeStyleSheet:c.func.isRequired}),registry:(0,c.shape)({add:c.func.isRequired,toString:c.func.isRequired})}},14416:function(t,a,s){"use strict";s.d(a,{zt:function(){return components_Provider},$j:function(){return Y},I0:function(){return Z},v9:function(){return Q}});var c,f,p,g,m,v,y,_,b,S,w,C,E,x,P,I,T=s(67294),k=T.createContext(null),batch=function(t){t()}
85,O={notify:function(){},get:function(){return[]}};function createSubscription(t,a){var s,c=O;function handleChangeWrapper(){f.onStateChange&&f.onStateChange()}function trySubscribe(){if(!s){var f,p,g;s=a?a.addNestedSub(handleChangeWrapper):t.subscribe(handleChangeWrapper),f=batch,p=null,g=null,c={clear:function(){p=null,g=null},notify:function(){f(function(){for(var t=p;t;)t.callback(),t=t.next})},get:function(){for(var t=[],a=p;a;)t.push(a),a=a.next;return t},subscribe:function(t){var a=!0,s=g={callback:t,next:null,prev:g};return s.prev?s.prev.next=s:p=s,function(){a&&null!==p&&(a=!1,s.next?s.next.prev=s.prev:g=s.prev,s.prev?s.prev.next=s.next:p=s.next)}}}}}var f={addNestedSub:function(t){return trySubscribe(),c.subscribe(t)},notifyNestedSubs:function(){c.notify()},handleChangeWrapper:handleChangeWrapper,isSubscribed:function(){return!!s},trySubscribe:trySubscribe,tryUnsubscribe:function(){s&&(s(),s=void 0,c.clear(),c=O)},getListeners:function(){return c}};return f}var R="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?T.useLayoutEffect:T.useEffect,components_Provider=function(t){var a=t.store,s=t.context,c=t.children,f=(0,T.useMemo)(function(){var t=createSubscription(a);return{store:a,subscription:t}},[a]),p=(0,T.useMemo)(function(){return a.getState()},[a]);R(function(){var t=f.subscription;return t.onStateChange=t.notifyNestedSubs,t.trySubscribe(),p!==a.getState()&&t.notifyNestedSubs(),function(){t.tryUnsubscribe(),t.onStateChange=null}},[f,p]);var g=s||k;return T.createElement(g.Provider,{value:f},c)},M=s(87462),N=s(63366),U=s(8679),L=s.n(U),D=s(59864),B=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],j=["reactReduxForwardedRef"],q=[],V=[null,null];function storeStateUpdatesReducer(t,a){var s=t[1];return[a.payload,s+1]}function useIsomorphicLayoutEffectWithArgs(t,a,s){R(function(){return t.apply(void 0,a)},s)}function captureWrapperProps(t,a,s,c,f,p,g){t.current=c,a.current=f,s.current=!1,p.current&&(p.current=null,g())}function subscribeUpdates(t,a,s,c,f,p,g,m,v,y){if(t){var _=!1,b=null,checkForUpdates=function(){if(!_){var t,s,S=a.getState();try{t=c(S,f.current)}catch(t){s=t,b=t}s||(b=null),t===p.current?g.current||v():(p.current=t,m.current=t,g.current=!0,y({type:"STORE_UPDATED",payload:{error:s}}))}};return s.onStateChange=checkForUpdates,s.trySubscribe(),checkForUpdates(),function(){if(_=!0,s.tryUnsubscribe(),s.onStateChange=null,b)throw b}}}var initStateUpdates=function(){return[null,0]};function is(t,a){return t===a?0!==t||0!==a||1/t==1/a:t!=t&&a!=a}function shallowEqual(t,a){if(is(t,a))return!0;if("object"!=typeof t||null===t||"object"!=typeof a||null===a)return!1;var s=Object.keys(t),c=Object.keys(a);if(s.length!==c.length)return!1;for(var f=0;f<s.length;f++)if(!Object.prototype.hasOwnProperty.call(a,s[f])||!is(t[s[f]],a[s[f]]))return!1;return!0}function wrapMapToPropsConstant(t){return function(a,s){var c=t(a,s);function constantSelector(){return c}return constantSelector.dependsOnOwnProps=!1,constantSelector}}function getDependsOnOwnProps(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?!!t.dependsOnOwnProps:1!==t.length}function wrapMapToPropsFunc(t,a){return function(a,s){s.displayName;var proxy=function(t,a){return proxy.dependsOnOwnProps?proxy.mapToProps(t,a):proxy.mapToProps(t)};return proxy.dependsOnOwnProps=!0,proxy.mapToProps=function(a,s){proxy.mapToProps=t,proxy.dependsOnOwnProps=getDependsOnOwnProps(t);var c=proxy(a,s);return"function"==typeof c&&(proxy.mapToProps=c,proxy.dependsOnOwnProps=getDependsOnOwnProps(c),c=proxy(a,s)),c},proxy}}var K=[function(t){return"function"==typeof t?wrapMapToPropsFunc(t,"mapDispatchToProps"):void 0},function(t){return t?void 0:wrapMapToPropsConstant(function(t){return{dispatch:t}})},function(t){return t&&"object"==typeof t?wrapMapToPropsConstant(function(a){return function(t,a){var s={};for(var c in t)!function(c){var f=t[c];"function"==typeof f&&(s[c]=function(){return a(f.apply(void 0,arguments))})}(c);return s}(t,a)}):void 0}],H=[function(t){return"function"==typeof t?wrapMapToPropsFunc(t,"mapStateToProps"):void 0},function(t){return t?void 0:wrapMapToPropsConstant(function(){return{}})}];function defaultMergeProps(t,a,s){return(0,M.Z)({},s,t,a)}var W=[function(t){return"function"==typeof t?function(a,s){s.displayName;var c,f=s.pure,p=s.areMergedPropsEqual,g=!1;
85return function(a,s,m){var v=t(a,s,m);return g?f&&p(v,c)||(c=v):(g=!0,c=v),c}}:void 0},function(t){return t?void 0:function(){return defaultMergeProps}}],G=["initMapStateToProps","initMapDispatchToProps","initMergeProps"],$=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function match(t,a,s){for(var c=a.length-1;c>=0;c--){var f=a[c](t);if(f)return f}return function(a,c){throw Error("Invalid value of type "+typeof t+" for "+s+" argument when connecting component "+c.wrappedComponentName+".")}}function strictEqual(t,a){return t===a}var Y=(g=void 0===(p=(f=void 0===c?{}:c).connectHOC)?function(t,a){void 0===a&&(a={});var s=a,c=s.getDisplayName,f=void 0===c?function(t){return"ConnectAdvanced("+t+")"}:c,p=s.methodName,g=void 0===p?"connectAdvanced":p,m=s.renderCountProp,v=void 0===m?void 0:m,y=s.shouldHandleStateChanges,_=void 0===y||y,b=s.storeKey,S=void 0===b?"store":b,w=(s.withRef,s.forwardRef),C=void 0!==w&&w,E=s.context,x=void 0===E?k:E,P=(0,N.Z)(s,B);return function(a){var s=a.displayName||a.name||"Component",c=f(s),p=(0,M.Z)({},P,{getDisplayName:f,methodName:g,renderCountProp:v,shouldHandleStateChanges:_,storeKey:S,displayName:c,wrappedComponentName:s,WrappedComponent:a}),m=P.pure,y=m?T.useMemo:function(t){return t()};function ConnectFunction(s){var c=(0,T.useMemo)(function(){var t=s.reactReduxForwardedRef,a=(0,N.Z)(s,j);return[s.context,t,a]},[s]),f=c[0],g=c[1],m=c[2],v=(0,T.useMemo)(function(){return f&&f.Consumer&&(0,D.isContextConsumer)(T.createElement(f.Consumer,null))?f:x},[f,x]),b=(0,T.useContext)(v),S=!!s.store&&!!s.store.getState&&!!s.store.dispatch;b&&b.store;var w=S?s.store:b.store,C=(0,T.useMemo)(function(){return t(w.dispatch,p)},[w]),E=(0,T.useMemo)(function(){if(!_)return V;var t=createSubscription(w,S?null:b.subscription),a=t.notifyNestedSubs.bind(t);return[t,a]},[w,S,b]),P=E[0],I=E[1],k=(0,T.useMemo)(function(){return S?b:(0,M.Z)({},b,{subscription:P})},[S,b,P]),O=(0,T.useReducer)(storeStateUpdatesReducer,q,initStateUpdates),R=O[0][0],U=O[1];if(R&&R.error)throw R.error;var L=(0,T.useRef)(),B=(0,T.useRef)(m),K=(0,T.useRef)(),H=(0,T.useRef)(!1),W=y(function(){return K.current&&m===B.current?K.current:C(w.getState(),m)},[w,R,m]);useIsomorphicLayoutEffectWithArgs(captureWrapperProps,[B,L,H,m,W,K,I]),useIsomorphicLayoutEffectWithArgs(subscribeUpdates,[_,w,P,C,B,L,H,K,I,U],[w,P,C]);var G=(0,T.useMemo)(function(){return T.createElement(a,(0,M.Z)({},W,{ref:g}))},[g,a,W]);return(0,T.useMemo)(function(){return _?T.createElement(v.Provider,{value:k},G):G},[v,G,k])}var b=m?T.memo(ConnectFunction):ConnectFunction;if(b.WrappedComponent=a,b.displayName=ConnectFunction.displayName=c,C){var w=T.forwardRef(function(t,a){return T.createElement(b,(0,M.Z)({},t,{reactReduxForwardedRef:a}))});return w.displayName=c,w.WrappedComponent=a,L()(w,a)}return L()(b,a)}}:p,v=void 0===(m=f.mapStateToPropsFactories)?H:m,_=void 0===(y=f.mapDispatchToPropsFactories)?K:y,S=void 0===(b=f.mergePropsFactories)?W:b,C=void 0===(w=f.selectorFactory)?function(t,a){var s=a.initMapStateToProps,c=a.initMapDispatchToProps,f=a.initMergeProps,p=(0,N.Z)(a,G),g=s(t,p),m=c(t,p),v=f(t,p);return(p.pure?function(t,a,s,c,f){var p,g,m,v,y,_=f.areStatesEqual,b=f.areOwnPropsEqual,S=f.areStatePropsEqual,w=!1;return function(f,C){var E,x,P,I;return w?(P=!b(C,g),I=!_(f,p,C,g),(p=f,g=C,P&&I)?(m=t(p,g),a.dependsOnOwnProps&&(v=a(c,g)),y=s(m,v,g)):P?(t.dependsOnOwnProps&&(m=t(p,g)),a.dependsOnOwnProps&&(v=a(c,g)),y=s(m,v,g)):(I&&(x=!S(E=t(p,g),m),m=E,x&&(y=s(m,v,g))),y)):(m=t(p=f,g=C),v=a(c,g),y=s(m,v,g),w=!0,y)}}:function(t,a,s,c){return function(f,p){return s(t(f,p),a(c,p),p)}})(g,m,v,t,p)}:w,function(t,a,s,c){void 0===c&&(c={});var f=c,p=f.pure,m=f.areStatesEqual,y=f.areOwnPropsEqual,b=f.areStatePropsEqual,w=f.areMergedPropsEqual,E=(0,N.Z)(f,$),x=match(t,v,"mapStateToProps"),P=match(a,_,"mapDispatchToProps"),I=match(s,S,"mergeProps");return g(C,(0,M.Z)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:!!t,initMapStateToProps:x,initMapDispatchToProps:P,initMergeProps:I,pure:void 0===p||p,areStatesEqual:void 0===m?strictEqual:m,areOwnPropsEqual:void 0===y?shallowEqual:y,areStatePropsEqual:void 0===b?shallowEqual:b,areMergedPropsEqual:void 0===w?shallowEqual:w},E))});function useReduxContext_useReduxContext(){return(0,T.useContext)(k)}function createStoreHook(t){void 0===t&&(t=k);var a=t===k?useReduxContext_useReduxContext:function(){return(0,T.useContext)(t)};return function(){return a().store}}var J=createStoreHook(),Z=(void 0===E&&(E=k),x=E===k?J:createStoreHook(E),function(){return x().dispatch}),refEquality=function(t,a){return t===a},Q=(void 0===P&&(P=k),I=P===k?useReduxContext_useReduxContext:function(){return(0,T.useContext)(P)},function(t,a){void 0===a&&(a=refEquality);var s=I(),c=function(t,a,s,c){var f,p=(0,T.useReducer)(function(t){return t+1},0)[1],g=(0,T.useMemo)(function(){return createSubscription(s,c)},[s,c]),m=(0,T.useRef)(),v=(0,T.useRef)(),y=(0,T.useRef)(),_=(0,T.useRef)(),b=s.getState();try{if(t!==v.current||b!==y.current||m.current){var S=t(b);f=void 0!==_.current&&a(S,_.current)?_.current:S}else f=_.current}catch(t){throw m.current&&(t.message+="\nThe error may be correlated with this previous error:\n"+m.current.stack+"\n\n"),t}return R(function(){v.current=t,y.current=b,_.current=f,m.current=void 0}),R(function(){function checkForUpdates(){try{var t=s.getState();if(t===y.current)return;var c=v.current(t);if(a(c,_.current))return;_.current=c,y.current=t}catch(t){m.current=t}p()}return g.onStateChange=checkForUpdates,g.trySubscribe(),checkForUpdates(),function(){return g.tryUnsubscribe()}},[s,g]),f}(t,a,s.store,s.subscription);return(0,T.useDebugValue)(c),c});batch=s(73935).unstable_batchedUpdates},14153:function(t){let a=/^[-+]?0x[a-fA-F0-9]+$/,s=/^([\-\+])?(0*)(\.[0-9]+([eE]\-?[0-9]+)?|[0-9]+(\.[0-9]+([eE]\-?[0-9]+)?)?)$/;!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt),!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);let c={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};t.exports=function(t,f={}){if(f=Object.assign({},c,f),!t||"string"!=typeof t)return t;let p=t.trim();if(void 0!==f.skipLike&&f.skipLike.test(p))return t;if(f.hex&&a.test(p))return Number.parseInt(p,16);{let a=s.exec(p);if(!a)return t;{var g;let s=a[1],c=a[2],m=((g=a[3])&&-1!==g.indexOf(".")&&("."===(g=g.replace(/0+$/,""))?g="0":"."===g[0]?g="0"+g:"."===g[g.length-1]&&(g=g.substr(0,g.length-1))),g),v=a[4]||a[6];if(!f.leadingZeros&&c.length>0&&s&&"."!==p[2])return t;{if(!f.leadingZeros&&c.length>0&&!s&&"."!==p[1])return t;let a=Number(p),g=""+a;return -1!==g.search(/[eE]/)||v?f.eNotation?a:t:-1!==p.indexOf(".")?"0"===g&&""===m?a:g===m?a:s&&g==="-"+m?a:t:c?m===g?a:s+m===g?a:t:p===g?a:p===s+g?a:t}}}}},98123:function(t,a,s){"use strict";s.r(a),s.d(a,{default:function(){return g}}),t=s.hmd(t);var c,f,p,g=("function"==typeof(f=("undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==s.g?s.g:t).Symbol)?f.observable?c=f.observable:(c=f("observable"),f.observable=c):c="@@observable",c)},70655:function(t,a,s){"use strict";s.r(a),s.d(a,{__assign:function(){return __assign},__asyncDelegator:function(){return __asyncDelegator},__asyncGenerator:function(){return __asyncGenerator},__asyncValues:function(){return __asyncValues},__await:function(){return __await},__awaiter:function(){return __awaiter},__classPrivateFieldGet:function(){return __classPrivateFieldGet},__classPrivateFieldSet:function(){return __classPrivateFieldSet},__createBinding:function(){return __createBinding},__decorate:function(){return __decorate},__exportStar:function(){return __exportStar},__extends:function(){return __extends},__generator:function(){return __generator},__importDefault:function(){return __importDefault},__importStar:function(){return __importStar}
vendor: 6,502 bytes, lines 85-98
85,__makeTemplateObject:function(){return __makeTemplateObject},__metadata:function(){return __metadata},__param:function(){return __param},__read:function(){return __read},__rest:function(){return __rest},__spread:function(){return __spread},__spreadArrays:function(){return __spreadArrays},__values:function(){return __values}});/*! *****************************************************************************
86Copyright (c) Microsoft Corporation.
87
88Permission to use, copy, modify, and/or distribute this software for any
89purpose with or without fee is hereby granted.
90
91THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
92REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
93AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
94INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
95LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
96OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
97PERFORMANCE OF THIS SOFTWARE.
98***************************************************************************** */var extendStatics=function(t,a){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var s in a)a.hasOwnProperty(s)&&(t[s]=a[s])})(t,a)};function __extends(t,a){function __(){this.constructor=t}extendStatics(t,a),t.prototype=null===a?Object.create(a):(__.prototype=a.prototype,new __)}var __assign=function(){return(__assign=Object.assign||function(t){for(var a,s=1,c=arguments.length;s<c;s++)for(var f in a=arguments[s])Object.prototype.hasOwnProperty.call(a,f)&&(t[f]=a[f]);return t}).apply(this,arguments)};function __rest(t,a){var s={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>a.indexOf(c)&&(s[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var f=0,c=Object.getOwnPropertySymbols(t);f<c.length;f++)0>a.indexOf(c[f])&&Object.prototype.propertyIsEnumerable.call(t,c[f])&&(s[c[f]]=t[c[f]]);return s}function __decorate(t,a,s,c){var f,p=arguments.length,g=p<3?a:null===c?c=Object.getOwnPropertyDescriptor(a,s):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)g=Reflect.decorate(t,a,s,c);else for(var m=t.length-1;m>=0;m--)(f=t[m])&&(g=(p<3?f(g):p>3?f(a,s,g):f(a,s))||g);return p>3&&g&&Object.defineProperty(a,s,g),g}function __param(t,a){return function(s,c){a(s,c,t)}}function __metadata(t,a){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,a)}function __awaiter(t,a,s,c){return new(s||(s=Promise))(function(f,p){function fulfilled(t){try{step(c.next(t))}catch(t){p(t)}}function rejected(t){try{step(c.throw(t))}catch(t){p(t)}}function step(t){var a;t.done?f(t.value):((a=t.value)instanceof s?a:new s(function(t){t(a)})).then(fulfilled,rejected)}step((c=c.apply(t,a||[])).next())})}function __generator(t,a){var s,c,f,p,g={label:0,sent:function(){if(1&f[0])throw f[1];return f[1]},trys:[],ops:[]};return p={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(p[Symbol.iterator]=function(){return this}),p;function verb(p){return function(m){return function(p){if(s)throw TypeError("Generator is already executing.");for(;g;)try{if(s=1,c&&(f=2&p[0]?c.return:p[0]?c.throw||((f=c.return)&&f.call(c),0):c.next)&&!(f=f.call(c,p[1])).done)return f;switch(c=0,f&&(p=[2&p[0],f.value]),p[0]){case 0:case 1:f=p;break;case 4:return g.label++,{value:p[1],done:!1};case 5:g.label++,c=p[1],p=[0];continue;case 7:p=g.ops.pop(),g.trys.pop();continue;default:if(!(f=(f=g.trys).length>0&&f[f.length-1])&&(6===p[0]||2===p[0])){g=0;continue}if(3===p[0]&&(!f||p[1]>f[0]&&p[1]<f[3])){g.label=p[1];break}if(6===p[0]&&g.label<f[1]){g.label=f[1],f=p;break}if(f&&g.label<f[2]){g.label=f[2],g.ops.push(p);break}f[2]&&g.ops.pop(),g.trys.pop();continue}p=a.call(t,g)}catch(t){p=[6,t],c=0}finally{s=f=0}if(5&p[0])throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}([p,m])}}}function __createBinding(t,a,s,c){void 0===c&&(c=s),t[c]=a[s]}function __exportStar(t,a){for(var s in t)"default"===s||a.hasOwnProperty(s)||(a[s]=t[s])}function __values(t){var a="function"==typeof Symbol&&Symbol.iterator,s=a&&t[a],c=0;if(s)return s.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&c>=t.length&&(t=void 0),{value:t&&t[c++],done:!t}}};throw TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(t,a){var s="function"==typeof Symbol&&t[Symbol.iterator];if(!s)return t;var c,f,p=s.call(t),g=[];try{for(;(void 0===a||a-- >0)&&!(c=p.next()).done;)g.push(c.value)}catch(t){f={error:t}}finally{try{c&&!c.done&&(s=p.return)&&s.call(p)}finally{if(f)throw f.error}}return g}function __spread(){for(var t=[],a=0;a<arguments.length;a++)t=t.concat(__read(arguments[a]));return t}function __spreadArrays(){for(var t=0,a=0,s=arguments.length;a<s;a++)t+=arguments[a].length;for(var c=Array(t),f=0,a=0;a<s;a++)for(var p=arguments[a],g=0,m=p.length;g<m;g++,f++)c[f]=p[g];return c}function __await(t){return this instanceof __await?(this.v=t,this):new __await(t)}function __asyncGenerator(t,a,s){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var c,f=s.apply(t,a||[]),p=[];return c={},verb("next"),verb("throw"),verb("return"),c[Symbol.asyncIterator]=function(){return this},c;function verb(t){f[t]&&(c[t]=function(a){return new Promise(function(s,c){p.push([t,a,s,c])>1||resume(t,a)})})}function resume(t,a){try{var s;(s=f[t](a)).value instanceof __await?Promise.resolve(s.value.v).then(fulfill,reject):settle(p[0][2],s)}catch(t){settle(p[0][3],t)}}function fulfill(t){resume("next",t)}function reject(t){resume("throw",t)}function settle(t,a){t(a),p.shift(),p.length&&resume(p[0][0],p[0][1])}}function __asyncDelegator(t){var a,s;return a={},verb("next"),verb("throw",function(t){throw t}),verb("return"),a[Symbol.iterator]=function(){return this},a;function verb(c,f){a[c]=t[c]?function(a){return(s=!s)?{value:__await(t[c](a)),done:"return"===c}:f?f(a):a}:f}}function __asyncValues(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var a,s=t[Symbol.asyncIterator];return s?s.call(t):(t=__values(t),a={},verb("next"),verb("throw"),verb("return"),a[Symbol.asyncIterator]=function(){return this},a);function verb(s){a[s]=t[s]&&function(a){return new Promise(function(c,f){!function(t,a,s,c){Promise.resolve(c).then(function(a){t({value:a,done:s})},a)}(c,f,(a=t[s](a)).done,a.value)})}}}
98function __makeTemplateObject(t,a){return Object.defineProperty?Object.defineProperty(t,"raw",{value:a}):t.raw=a,t}function __importStar(t){if(t&&t.__esModule)return t;var a={};if(null!=t)for(var s in t)Object.hasOwnProperty.call(t,s)&&(a[s]=t[s]);return a.default=t,a}function __importDefault(t){return t&&t.__esModule?t:{default:t}}function __classPrivateFieldGet(t,a){if(!a.has(t))throw TypeError("attempted to get private field on non-instance");return a.get(t)}function __classPrivateFieldSet(t,a,s){if(!a.has(t))throw TypeError("attempted to set private field on non-instance");return a.set(t,s),s}},55877:function(t,a,s){var c=s(23570),f=s(71171);f.v1=c,f.v4=f,t.exports=f},45327:function(t){for(var a=[],s=0;s<256;++s)a[s]=(s+256).toString(16).substr(1);t.exports=function(t,s){var c=s||0;return[a[t[c++]],a[t[c++]],a[t[c++]],a[t[c++]],"-",a[t[c++]],a[t[c++]],"-",a[t[c++]],a[t[c++]],"-",a[t[c++]],a[t[c++]],"-",a[t[c++]],a[t[c++]],a[t[c++]],a[t[c++]],a[t[c++]],a[t[c++]]].join("")}},85217:function(t){var a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(a){var s=new Uint8Array(16);t.exports=function(){return a(s),s}}else{var c=Array(16);t.exports=function(){for(var t,a=0;a<16;a++)(3&a)==0&&(t=4294967296*Math.random()),c[a]=t>>>((3&a)<<3)&255;return c}}},23570:function(t,a,s){var c,f,p=s(85217),g=s(45327),m=0,v=0;t.exports=function(t,a,s){var y=a&&s||0,_=a||[],b=(t=t||{}).node||c,S=void 0!==t.clockseq?t.clockseq:f;if(null==b||null==S){var w=p();null==b&&(b=c=[1|w[0],w[1],w[2],w[3],w[4],w[5]]),null==S&&(S=f=(w[6]<<8|w[7])&16383)}var C=void 0!==t.msecs?t.msecs:new Date().getTime(),E=void 0!==t.nsecs?t.nsecs:v+1,x=C-m+(E-v)/1e4;if(x<0&&void 0===t.clockseq&&(S=S+1&16383),(x<0||C>m)&&void 0===t.nsecs&&(E=0),E>=1e4)throw Error("uuid.v1(): Can't create more than 10M uuids/sec");m=C,v=E,f=S;var P=((268435455&(C+=122192928e5))*1e4+E)%4294967296;_[y++]=P>>>24&255,_[y++]=P>>>16&255,_[y++]=P>>>8&255,_[y++]=255&P;var I=C/4294967296*1e4&268435455;_[y++]=I>>>8&255,_[y++]=255&I,_[y++]=I>>>24&15|16,_[y++]=I>>>16&255,_[y++]=S>>>8|128,_[y++]=255&S;for(var T=0;T<6;++T)_[y+T]=b[T];return a||g(_)}},71171:function(t,a,s){var c=s(85217),f=s(45327);t.exports=function(t,a,s){var p=a&&s||0;"string"==typeof t&&(a="binary"===t?Array(16):null,t=null);var g=(t=t||{}).random||(t.rng||c)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,a)for(var m=0;m<16;++m)a[p+m]=g[m];return a||f(g)}},30670:function(t){"use strict";t.exports=function(){}},79013:function(t,a,s){t.exports=s(5135).Observable},5135:function(t,a){"use strict";function _classCallCheck(t,a){if(!(t instanceof a))throw TypeError("Cannot call a class as a function")}function _defineProperties(t,a){for(var s=0;s<a.length;s++){var c=a[s];c.enumerable=c.enumerable||!1,c.configurable=!0,"value"in c&&(c.writable=!0),Object.defineProperty(t,c.key,c)}}function _createClass(t,a,s){return a&&_defineProperties(t.prototype,a),s&&_defineProperties(t,s),t}a.Observable=void 0;var hasSymbols=function(){return"function"==typeof Symbol},hasSymbol=function(t){return hasSymbols()&&!!Symbol[t]},getSymbol=function(t){return hasSymbol(t)?Symbol[t]:"@@"+t};hasSymbols()&&!hasSymbol("observable")&&(Symbol.observable=Symbol("observable"));var s=getSymbol("iterator"),c=getSymbol("observable"),f=getSymbol("species");function getMethod(t,a){var s=t[a];if(null!=s){if("function"!=typeof s)throw TypeError(s+" is not a function");return s}}function getSpecies(t){var a=t.constructor;return void 0!==a&&null===(a=a[f])&&(a=void 0),void 0!==a?a:m}function hostReportError(t){hostReportError.log?hostReportError.log(t):setTimeout(function(){throw t})}function enqueue(t){Promise.resolve().then(function(){try{t()}catch(t){hostReportError(t)}})}function cleanupSubscription(t){var a=t._cleanup;if(void 0!==a){if(t._cleanup=void 0,!a)return;try{if("function"==typeof a)a();else{var s=getMethod(a,"unsubscribe");s&&s.call(a)}}catch(t){hostReportError(t)}}}function closeSubscription(t){t._observer=void 0,t._queue=void 0,t._state="closed"}function notifySubscription(t,a,s){t._state="running";var c=t._observer;try{var f=getMethod(c,a);switch(a){case"next":f&&f.call(c,s);break;case"error":if(closeSubscription(t),f)f.call(c,s);else throw s;break;case"complete":closeSubscription(t),f&&f.call(c)}}catch(t){hostReportError(t)}"closed"===t._state?cleanupSubscription(t):"running"===t._state&&(t._state="ready")}function onNotify(t,a,s){if("closed"!==t._state){if("buffering"===t._state){t._queue.push({type:a,value:s});return}if("ready"!==t._state){t._state="buffering",t._queue=[{type:a,value:s}],enqueue(function(){return function(t){var a=t._queue;if(a){t._queue=void 0,t._state="ready";for(var s=0;s<a.length&&(notifySubscription(t,a[s].type,a[s].value),"closed"!==t._state);++s);}}(t)});return}notifySubscription(t,a,s)}}var p=function(){function Subscription(t,a){_classCallCheck(this,Subscription),this._cleanup=void 0,this._observer=t,this._queue=void 0,this._state="initializing";var s=new g(this);try{this._cleanup=a.call(void 0,s)}catch(t){s.error(t)}"initializing"===this._state&&(this._state="ready")}return _createClass(Subscription,[{key:"unsubscribe",value:function(){"closed"!==this._state&&(closeSubscription(this),cleanupSubscription(this))}},{key:"closed",get:function(){return"closed"===this._state}}]),Subscription}(),g=function(){function SubscriptionObserver(t){_classCallCheck(this,SubscriptionObserver),this._subscription=t}return _createClass(SubscriptionObserver,[{key:"next",value:function(t){onNotify(this._subscription,"next",t)}},{key:"error",value:function(t){onNotify(this._subscription,"error",t)}},{key:"complete",value:function(){onNotify(this._subscription,"complete")}},{key:"closed",get:function(){return"closed"===this._subscription._state}}]),SubscriptionObserver}(),m=function(){function Observable(t){if(_classCallCheck(this,Observable),!(this instanceof Observable))throw TypeError("Observable cannot be called as a function");if("function"!=typeof t)throw TypeError("Observable initializer must be a function");this._subscriber=t}return _createClass(Observable,[{key:"subscribe",value:function(t){return("object"!=typeof t||null===t)&&(t={next:t,error:arguments[1],complete:arguments[2]}),new p(t,this._subscriber)}}
98,{key:"forEach",value:function(t){var a=this;return new Promise(function(s,c){if("function"!=typeof t){c(TypeError(t+" is not a function"));return}function done(){f.unsubscribe(),s()}var f=a.subscribe({next:function(a){try{t(a,done)}catch(t){c(t),f.unsubscribe()}},error:c,complete:s})})}},{key:"map",value:function(t){var a=this;if("function"!=typeof t)throw TypeError(t+" is not a function");return new(getSpecies(this))(function(s){return a.subscribe({next:function(a){try{a=t(a)}catch(t){return s.error(t)}s.next(a)},error:function(t){s.error(t)},complete:function(){s.complete()}})})}},{key:"filter",value:function(t){var a=this;if("function"!=typeof t)throw TypeError(t+" is not a function");return new(getSpecies(this))(function(s){return a.subscribe({next:function(a){try{if(!t(a))return}catch(t){return s.error(t)}s.next(a)},error:function(t){s.error(t)},complete:function(){s.complete()}})})}},{key:"reduce",value:function(t){var a=this;if("function"!=typeof t)throw TypeError(t+" is not a function");var s=getSpecies(this),c=arguments.length>1,f=!1,p=arguments[1],g=p;return new s(function(s){return a.subscribe({next:function(a){var p=!f;if(f=!0,!p||c)try{g=t(g,a)}catch(t){return s.error(t)}else g=a},error:function(t){s.error(t)},complete:function(){if(!f&&!c)return s.error(TypeError("Cannot reduce an empty sequence"));s.next(g),s.complete()}})})}},{key:"concat",value:function(){for(var t=this,a=arguments.length,s=Array(a),c=0;c<a;c++)s[c]=arguments[c];var f=getSpecies(this);return new f(function(a){var c,p=0;return function startNext(t){c=t.subscribe({next:function(t){a.next(t)},error:function(t){a.error(t)},complete:function(){p===s.length?(c=void 0,a.complete()):startNext(f.from(s[p++]))}})}(t),function(){c&&(c.unsubscribe(),c=void 0)}})}},{key:"flatMap",value:function(t){var a=this;if("function"!=typeof t)throw TypeError(t+" is not a function");var s=getSpecies(this);return new s(function(c){var f=[],p=a.subscribe({next:function(a){if(t)try{a=t(a)}catch(t){return c.error(t)}var p=s.from(a).subscribe({next:function(t){c.next(t)},error:function(t){c.error(t)},complete:function(){var t=f.indexOf(p);t>=0&&f.splice(t,1),completeIfDone()}});f.push(p)},error:function(t){c.error(t)},complete:function(){completeIfDone()}});function completeIfDone(){p.closed&&0===f.length&&c.complete()}return function(){f.forEach(function(t){return t.unsubscribe()}),p.unsubscribe()}})}},{key:c,value:function(){return this}}],[{key:"from",value:function(t){var a="function"==typeof this?this:Observable;if(null==t)throw TypeError(t+" is not an object");var f=getMethod(t,c);if(f){var p=f.call(t);if(Object(p)!==p)throw TypeError(p+" is not an object");return p instanceof m&&p.constructor===a?p:new a(function(t){return p.subscribe(t)})}if(hasSymbol("iterator")&&(f=getMethod(t,s)))return new a(function(a){enqueue(function(){if(!a.closed){var s=!0,c=!1,p=void 0;try{for(var g,m=f.call(t)[Symbol.iterator]();!(s=(g=m.next()).done);s=!0){var v=g.value;if(a.next(v),a.closed)return}}catch(t){c=!0,p=t}finally{try{s||null==m.return||m.return()}finally{if(c)throw p}}a.complete()}})});if(Array.isArray(t))return new a(function(a){enqueue(function(){if(!a.closed){for(var s=0;s<t.length;++s)if(a.next(t[s]),a.closed)return;a.complete()}})});throw TypeError(t+" is not observable")}},{key:"of",value:function(){for(var t=arguments.length,a=Array(t),s=0;s<t;s++)a[s]=arguments[s];return new("function"==typeof this?this:Observable)(function(t){enqueue(function(){if(!t.closed){for(var s=0;s<a.length;++s)if(t.next(a[s]),t.closed)return;t.complete()}})})}},{key:f,get:function(){return this}}]),Observable}();a.Observable=m,hasSymbols()&&Object.defineProperty(m,Symbol("extensions"),{value:{symbol:c,hostReportError:hostReportError},configurable:!0})},56249:function(){},42480:function(){},30907:function(t,a,s){"use strict";function _arrayLikeToArray(t,a){(null==a||a>t.length)&&(a=t.length);for(var s=0,c=Array(a);s<a;s++)c[s]=t[s];return c}s.d(a,{Z:function(){return _arrayLikeToArray}})},4942:function(t,a,s){"use strict";s.d(a,{Z:function(){return _defineProperty}});var c=s(83997);function _defineProperty(t,a,s){return(a=(0,c.Z)(a))in t?Object.defineProperty(t,a,{value:s,enumerable:!0,configurable:!0,writable:!0}):t[a]=s,t}},87462:function(t,a,s){"use strict";function _extends(){return(_extends=Object.assign?Object.assign.bind():function(t){for(var a=1;a<arguments.length;a++){var s=arguments[a];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(t[c]=s[c])}return t}).apply(this,arguments)}s.d(a,{Z:function(){return _extends}})},45987:function(t,a,s){"use strict";s.d(a,{Z:function(){return _objectWithoutProperties}});var c=s(63366);function _objectWithoutProperties(t,a){if(null==t)return{};var s,f,p=(0,c.Z)(t,a);if(Object.getOwnPropertySymbols){var g=Object.getOwnPropertySymbols(t);for(f=0;f<g.length;f++)s=g[f],!(a.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(t,s)&&(p[s]=t[s])}return p}},63366:function(t,a,s){"use strict";function _objectWithoutPropertiesLoose(t,a){if(null==t)return{};var s,c,f={},p=Object.keys(t);for(c=0;c<p.length;c++)s=p[c],a.indexOf(s)>=0||(f[s]=t[s]);return f}s.d(a,{Z:function(){return _objectWithoutPropertiesLoose}})},86854:function(t,a,s){"use strict";s.d(a,{Z:function(){return _slicedToArray}});var c=s(40181);function _slicedToArray(t,a){return function(t){if(Array.isArray(t))return t}(t)||function(t,a){var s=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=s){var c,f,p,g,m=[],v=!0,y=!1;try{if(p=(s=s.call(t)).next,0===a){if(Object(s)!==s)return;v=!1}else for(;!(v=(c=p.call(s)).done)&&(m.push(c.value),m.length!==a);v=!0);}catch(t){y=!0,f=t}
98finally{try{if(!v&&null!=s.return&&(g=s.return(),Object(g)!==g))return}finally{if(y)throw f}}return m}}(t,a)||(0,c.Z)(t,a)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},83997:function(t,a,s){"use strict";s.d(a,{Z:function(){return _toPropertyKey}});var c=s(71002);function _toPropertyKey(t){var a=function(t,a){if("object"!==(0,c.Z)(t)||null===t)return t;var s=t[Symbol.toPrimitive];if(void 0!==s){var f=s.call(t,a||"default");if("object"!==(0,c.Z)(f))return f;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===a?String:Number)(t)}(t,"string");return"symbol"===(0,c.Z)(a)?a:String(a)}},71002:function(t,a,s){"use strict";function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}s.d(a,{Z:function(){return _typeof}})},40181:function(t,a,s){"use strict";s.d(a,{Z:function(){return _unsupportedIterableToArray}});var c=s(30907);function _unsupportedIterableToArray(t,a){if(t){if("string"==typeof t)return(0,c.Z)(t,a);var s=Object.prototype.toString.call(t).slice(8,-1);if("Object"===s&&t.constructor&&(s=t.constructor.name),"Map"===s||"Set"===s)return Array.from(t);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return(0,c.Z)(t,a)}}}},function(t){var __webpack_exec__=function(a){return t(t.s=a)};t.O(0,[774,179],function(){return __webpack_exec__(91118),__webpack_exec__(59974)}),_N_E=t.O()}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.