@pwrdrvr/microapps-cdk 0.0.24 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +60 -26
- package/API.md +66 -13
- package/lib/MicroApps.d.ts +58 -6
- package/lib/MicroApps.js +6 -5
- package/lib/MicroAppsSvcs.d.ts +3 -2
- package/lib/MicroAppsSvcs.js +40 -18
- package/lib/microapps-deployer/index.js +67 -63
- package/lib/microapps-deployer/index.js.map +3 -3
- package/lib/microapps-router/index.js +31 -31
- package/lib/microapps-router/index.js.map +2 -2
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var WL=Object.create;var es=Object.defineProperty,HL=Object.defineProperties,a_=Object.getOwnPropertyDescriptor,YL=Object.getOwnPropertyDescriptors,JL=Object.getOwnPropertyNames,Ea=Object.getOwnPropertySymbols,QL=Object.getPrototypeOf,tf=Object.prototype.hasOwnProperty,o_=Object.prototype.propertyIsEnumerable;var c_=(e,t,n)=>t in e?es(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t)=>{for(var n in t||(t={}))tf.call(t,n)&&c_(e,n,t[n]);if(Ea)for(var n of Ea(t))o_.call(t,n)&&c_(e,n,t[n]);return e},u=(e,t)=>HL(e,YL(t)),l_=e=>es(e,"__esModule",{value:!0});var Jn=(e,t)=>{var n={};for(var r in e)tf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ea)for(var r of Ea(e))t.indexOf(r)<0&&o_.call(e,r)&&(n[r]=e[r]);return n};var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),XL=(e,t)=>{l_(e);for(var n in t)es(e,n,{get:t[n],enumerable:!0})},ZL=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of JL(t))!tf.call(e,r)&&r!=="default"&&es(e,r,{get:()=>t[r],enumerable:!(n=a_(t,r))||n.enumerable});return e},Tn=e=>ZL(l_(es(e!=null?WL(QL(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),ii=(e,t,n,r)=>{for(var s=r>1?void 0:r?a_(t,n):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(s=(r?a(t,n,s):a(s))||s);return r&&s&&es(t,n,s),s};var u_=p(nf=>{var d_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");nf.encode=function(e){if(0<=e&&e<d_.length)return d_[e];throw new TypeError("Must be between 0 and 63: "+e)};nf.decode=function(e){var t=65,n=90,r=97,s=122,i=48,a=57,c=43,l=47,m=26,f=52;return t<=e&&e<=n?e-t:r<=e&&e<=s?e-r+m:i<=e&&e<=a?e-i+f:e==c?62:e==l?63:-1}});var af=p(sf=>{var m_=u_(),rf=5,f_=1<<rf,p_=f_-1,h_=f_;function eP(e){return e<0?(-e<<1)+1:(e<<1)+0}function tP(e){var t=(e&1)==1,n=e>>1;return t?-n:n}sf.encode=function(t){var n="",r,s=eP(t);do r=s&p_,s>>>=rf,s>0&&(r|=h_),n+=m_.encode(r);while(s>0);return n};sf.decode=function(t,n,r){var s=t.length,i=0,a=0,c,l;do{if(n>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=m_.decode(t.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));c=!!(l&h_),l&=p_,i=i+(l<<a),a+=rf}while(c);r.value=tP(i),r.rest=n}});var rs=p(nt=>{function nP(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}nt.getArg=nP;var y_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,rP=/^data:.+\,.+$/;function ai(e){var t=e.match(y_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}nt.urlParse=ai;function ts(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}nt.urlGenerate=ts;function of(e){var t=e,n=ai(e);if(n){if(!n.path)return e;t=n.path}for(var r=nt.isAbsolute(t),s=t.split(/\/+/),i,a=0,c=s.length-1;c>=0;c--)i=s[c],i==="."?s.splice(c,1):i===".."?a++:a>0&&(i===""?(s.splice(c+1,a),a=0):(s.splice(c,2),a--));return t=s.join("/"),t===""&&(t=r?"/":"."),n?(n.path=t,ts(n)):t}nt.normalize=of;function g_(e,t){e===""&&(e="."),t===""&&(t=".");var n=ai(t),r=ai(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),ts(n);if(n||t.match(rP))return t;if(r&&!r.host&&!r.path)return r.host=t,ts(r);var s=t.charAt(0)==="/"?t:of(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=s,ts(r)):s}nt.join=g_;nt.isAbsolute=function(e){return e.charAt(0)==="/"||y_.test(e)};function sP(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var n=0;t.indexOf(e+"/")!==0;){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}nt.relative=sP;var __=function(){var e=Object.create(null);return!("__proto__"in e)}();function w_(e){return e}function iP(e){return b_(e)?"$"+e:e}nt.toSetString=__?w_:iP;function aP(e){return b_(e)?e.slice(1):e}nt.fromSetString=__?w_:aP;function b_(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function oP(e,t,n){var r=ns(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:ns(e.name,t.name)}nt.compareByOriginalPositions=oP;function cP(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=ns(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:ns(e.name,t.name)}nt.compareByGeneratedPositionsDeflated=cP;function ns(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function lP(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=ns(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:ns(e.name,t.name)}nt.compareByGeneratedPositionsInflated=lP;function dP(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}nt.parseSourceMapInput=dP;function uP(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=ai(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var s=r.path.lastIndexOf("/");s>=0&&(r.path=r.path.substring(0,s+1))}t=g_(ts(r),t)}return of(t)}nt.computeSourceURL=uP});var df=p(S_=>{var cf=rs(),lf=Object.prototype.hasOwnProperty,Cr=typeof Map!="undefined";function xn(){this._array=[],this._set=Cr?new Map:Object.create(null)}xn.fromArray=function(t,n){for(var r=new xn,s=0,i=t.length;s<i;s++)r.add(t[s],n);return r};xn.prototype.size=function(){return Cr?this._set.size:Object.getOwnPropertyNames(this._set).length};xn.prototype.add=function(t,n){var r=Cr?t:cf.toSetString(t),s=Cr?this.has(t):lf.call(this._set,r),i=this._array.length;(!s||n)&&this._array.push(t),s||(Cr?this._set.set(t,i):this._set[r]=i)};xn.prototype.has=function(t){if(Cr)return this._set.has(t);var n=cf.toSetString(t);return lf.call(this._set,n)};xn.prototype.indexOf=function(t){if(Cr){var n=this._set.get(t);if(n>=0)return n}else{var r=cf.toSetString(t);if(lf.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};xn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};xn.prototype.toArray=function(){return this._array.slice()};S_.ArraySet=xn});var A_=p(E_=>{var v_=rs();function mP(e,t){var n=e.generatedLine,r=t.generatedLine,s=e.generatedColumn,i=t.generatedColumn;return r>n||r==n&&i>=s||v_.compareByGeneratedPositionsInflated(e,t)<=0}function Aa(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Aa.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Aa.prototype.add=function(t){mP(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Aa.prototype.toArray=function(){return this._sorted||(this._array.sort(v_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};E_.MappingList=Aa});var uf=p(C_=>{var oi=af(),Pe=rs(),Ca=df().ArraySet,fP=A_().MappingList;function Mt(e){e||(e={}),this._file=Pe.getArg(e,"file",null),this._sourceRoot=Pe.getArg(e,"sourceRoot",null),this._skipValidation=Pe.getArg(e,"skipValidation",!1),this._sources=new Ca,this._names=new Ca,this._mappings=new fP,this._sourcesContents=null}Mt.prototype._version=3;Mt.fromSourceMap=function(t){var n=t.sourceRoot,r=new Mt({file:t.file,sourceRoot:n});return t.eachMapping(function(s){var i={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(i.source=s.source,n!=null&&(i.source=Pe.relative(n,i.source)),i.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(i.name=s.name)),r.addMapping(i)}),t.sources.forEach(function(s){var i=s;n!==null&&(i=Pe.relative(n,s)),r._sources.has(i)||r._sources.add(i);var a=t.sourceContentFor(s);a!=null&&r.setSourceContent(s,a)}),r};Mt.prototype.addMapping=function(t){var n=Pe.getArg(t,"generated"),r=Pe.getArg(t,"original",null),s=Pe.getArg(t,"source",null),i=Pe.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,r,s,i),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:s,name:i})};Mt.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=Pe.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Pe.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[Pe.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Mt.prototype.applySourceMap=function(t,n,r){var s=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=t.file}var i=this._sourceRoot;i!=null&&(s=Pe.relative(i,s));var a=new Ca,c=new Ca;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var m=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});m.source!=null&&(l.source=m.source,r!=null&&(l.source=Pe.join(r,l.source)),i!=null&&(l.source=Pe.relative(i,l.source)),l.originalLine=m.line,l.originalColumn=m.column,m.name!=null&&(l.name=m.name))}var f=l.source;f!=null&&!a.has(f)&&a.add(f);var g=l.name;g!=null&&!c.has(g)&&c.add(g)},this),this._sources=a,this._names=c,t.sources.forEach(function(l){var m=t.sourceContentFor(l);m!=null&&(r!=null&&(l=Pe.join(r,l)),i!=null&&(l=Pe.relative(i,l)),this.setSourceContent(l,m))},this)};Mt.prototype._validateMapping=function(t,n,r,s){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!r&&!s)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:n,name:s}))}};Mt.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,s=0,i=0,a=0,c="",l,m,f,g,h=this._mappings.toArray(),_=0,b=h.length;_<b;_++){if(m=h[_],l="",m.generatedLine!==n)for(t=0;m.generatedLine!==n;)l+=";",n++;else if(_>0){if(!Pe.compareByGeneratedPositionsInflated(m,h[_-1]))continue;l+=","}l+=oi.encode(m.generatedColumn-t),t=m.generatedColumn,m.source!=null&&(g=this._sources.indexOf(m.source),l+=oi.encode(g-a),a=g,l+=oi.encode(m.originalLine-1-s),s=m.originalLine-1,l+=oi.encode(m.originalColumn-r),r=m.originalColumn,m.name!=null&&(f=this._names.indexOf(m.name),l+=oi.encode(f-i),i=f)),c+=l}return c};Mt.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=Pe.relative(n,r));var s=Pe.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};Mt.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Mt.prototype.toString=function(){return JSON.stringify(this.toJSON())};C_.SourceMapGenerator=Mt});var T_=p(Tr=>{Tr.GREATEST_LOWER_BOUND=1;Tr.LEAST_UPPER_BOUND=2;function mf(e,t,n,r,s,i){var a=Math.floor((t-e)/2)+e,c=s(n,r[a],!0);return c===0?a:c>0?t-a>1?mf(a,t,n,r,s,i):i==Tr.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?mf(e,a,n,r,s,i):i==Tr.LEAST_UPPER_BOUND?a:e<0?-1:e}Tr.search=function(t,n,r,s){if(n.length===0)return-1;var i=mf(-1,n.length,t,n,r,s||Tr.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&r(n[i],n[i-1],!0)===0;)--i;return i}});var I_=p(x_=>{function ff(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function pP(e,t){return Math.round(e+Math.random()*(t-e))}function pf(e,t,n,r){if(n<r){var s=pP(n,r),i=n-1;ff(e,s,r);for(var a=e[r],c=n;c<r;c++)t(e[c],a)<=0&&(i+=1,ff(e,i,c));ff(e,i+1,c);var l=i+1;pf(e,t,n,l-1),pf(e,t,l+1,r)}}x_.quickSort=function(e,t){pf(e,t,0,e.length-1)}});var k_=p(Ta=>{var z=rs(),hf=T_(),ss=df().ArraySet,hP=af(),ci=I_().quickSort;function Ce(e,t){var n=e;return typeof e=="string"&&(n=z.parseSourceMapInput(e)),n.sections!=null?new Kt(n,t):new He(n,t)}Ce.fromSourceMap=function(e,t){return He.fromSourceMap(e,t)};Ce.prototype._version=3;Ce.prototype.__generatedMappings=null;Object.defineProperty(Ce.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ce.prototype.__originalMappings=null;Object.defineProperty(Ce.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ce.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Ce.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Ce.GENERATED_ORDER=1;Ce.ORIGINAL_ORDER=2;Ce.GREATEST_LOWER_BOUND=1;Ce.LEAST_UPPER_BOUND=2;Ce.prototype.eachMapping=function(t,n,r){var s=n||null,i=r||Ce.GENERATED_ORDER,a;switch(i){case Ce.GENERATED_ORDER:a=this._generatedMappings;break;case Ce.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var m=l.source===null?null:this._sources.at(l.source);return m=z.computeSourceURL(c,m,this._sourceMapURL),{source:m,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,s)};Ce.prototype.allGeneratedPositionsFor=function(t){var n=z.getArg(t,"line"),r={source:z.getArg(t,"source"),originalLine:n,originalColumn:z.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var s=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",z.compareByOriginalPositions,hf.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:z.getArg(a,"generatedLine",null),column:z.getArg(a,"generatedColumn",null),lastColumn:z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var l=a.originalColumn;a&&a.originalLine===n&&a.originalColumn==l;)s.push({line:z.getArg(a,"generatedLine",null),column:z.getArg(a,"generatedColumn",null),lastColumn:z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return s};Ta.SourceMapConsumer=Ce;function He(e,t){var n=e;typeof e=="string"&&(n=z.parseSourceMapInput(e));var r=z.getArg(n,"version"),s=z.getArg(n,"sources"),i=z.getArg(n,"names",[]),a=z.getArg(n,"sourceRoot",null),c=z.getArg(n,"sourcesContent",null),l=z.getArg(n,"mappings"),m=z.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=z.normalize(a)),s=s.map(String).map(z.normalize).map(function(f){return a&&z.isAbsolute(a)&&z.isAbsolute(f)?z.relative(a,f):f}),this._names=ss.fromArray(i.map(String),!0),this._sources=ss.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(f){return z.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=m}He.prototype=Object.create(Ce.prototype);He.prototype.consumer=Ce;He.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=z.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1};He.fromSourceMap=function(t,n){var r=Object.create(He.prototype),s=r._names=ss.fromArray(t._names.toArray(),!0),i=r._sources=ss.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=n,r._absoluteSources=r._sources.toArray().map(function(_){return z.computeSourceURL(r.sourceRoot,_,n)});for(var a=t._mappings.toArray().slice(),c=r.__generatedMappings=[],l=r.__originalMappings=[],m=0,f=a.length;m<f;m++){var g=a[m],h=new R_;h.generatedLine=g.generatedLine,h.generatedColumn=g.generatedColumn,g.source&&(h.source=i.indexOf(g.source),h.originalLine=g.originalLine,h.originalColumn=g.originalColumn,g.name&&(h.name=s.indexOf(g.name)),l.push(h)),c.push(h)}return ci(r.__originalMappings,z.compareByOriginalPositions),r};He.prototype._version=3;Object.defineProperty(He.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function R_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}He.prototype._parseMappings=function(t,n){for(var r=1,s=0,i=0,a=0,c=0,l=0,m=t.length,f=0,g={},h={},_=[],b=[],E,D,k,R,K;f<m;)if(t.charAt(f)===";")r++,f++,s=0;else if(t.charAt(f)===",")f++;else{for(E=new R_,E.generatedLine=r,R=f;R<m&&!this._charIsMappingSeparator(t,R);R++);if(D=t.slice(f,R),k=g[D],k)f+=D.length;else{for(k=[];f<R;)hP.decode(t,f,h),K=h.value,f=h.rest,k.push(K);if(k.length===2)throw new Error("Found a source, but no line and column");if(k.length===3)throw new Error("Found a source and line, but no column");g[D]=k}E.generatedColumn=s+k[0],s=E.generatedColumn,k.length>1&&(E.source=c+k[1],c+=k[1],E.originalLine=i+k[2],i=E.originalLine,E.originalLine+=1,E.originalColumn=a+k[3],a=E.originalColumn,k.length>4&&(E.name=l+k[4],l+=k[4])),b.push(E),typeof E.originalLine=="number"&&_.push(E)}ci(b,z.compareByGeneratedPositionsDeflated),this.__generatedMappings=b,ci(_,z.compareByOriginalPositions),this.__originalMappings=_};He.prototype._findMapping=function(t,n,r,s,i,a){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[s]);return hf.search(t,n,i,a)};He.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};He.prototype.originalPositionFor=function(t){var n={generatedLine:z.getArg(t,"line"),generatedColumn:z.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",z.compareByGeneratedPositionsDeflated,z.getArg(t,"bias",Ce.GREATEST_LOWER_BOUND));if(r>=0){var s=this._generatedMappings[r];if(s.generatedLine===n.generatedLine){var i=z.getArg(s,"source",null);i!==null&&(i=this._sources.at(i),i=z.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=z.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:i,line:z.getArg(s,"originalLine",null),column:z.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};He.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};He.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var s=t;this.sourceRoot!=null&&(s=z.relative(this.sourceRoot,s));var i;if(this.sourceRoot!=null&&(i=z.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!i.path||i.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(n)return null;throw new Error('"'+s+'" is not in the SourceMap.')};He.prototype.generatedPositionFor=function(t){var n=z.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:z.getArg(t,"line"),originalColumn:z.getArg(t,"column")},s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",z.compareByOriginalPositions,z.getArg(t,"bias",Ce.GREATEST_LOWER_BOUND));if(s>=0){var i=this._originalMappings[s];if(i.source===r.source)return{line:z.getArg(i,"generatedLine",null),column:z.getArg(i,"generatedColumn",null),lastColumn:z.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ta.BasicSourceMapConsumer=He;function Kt(e,t){var n=e;typeof e=="string"&&(n=z.parseSourceMapInput(e));var r=z.getArg(n,"version"),s=z.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new ss,this._names=new ss;var i={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=z.getArg(a,"offset"),l=z.getArg(c,"line"),m=z.getArg(c,"column");if(l<i.line||l===i.line&&m<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=c,{generatedOffset:{generatedLine:l+1,generatedColumn:m+1},consumer:new Ce(z.getArg(a,"map"),t)}})}Kt.prototype=Object.create(Ce.prototype);Kt.prototype.constructor=Ce;Kt.prototype._version=3;Object.defineProperty(Kt.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}});Kt.prototype.originalPositionFor=function(t){var n={generatedLine:z.getArg(t,"line"),generatedColumn:z.getArg(t,"column")},r=hf.search(n,this._sections,function(i,a){var c=i.generatedLine-a.generatedOffset.generatedLine;return c||i.generatedColumn-a.generatedOffset.generatedColumn}),s=this._sections[r];return s?s.consumer.originalPositionFor({line:n.generatedLine-(s.generatedOffset.generatedLine-1),column:n.generatedColumn-(s.generatedOffset.generatedLine===n.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Kt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Kt.prototype.sourceContentFor=function(t,n){for(var r=0;r<this._sections.length;r++){var s=this._sections[r],i=s.consumer.sourceContentFor(t,!0);if(i)return i}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Kt.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(z.getArg(t,"source"))!==-1){var s=r.consumer.generatedPositionFor(t);if(s){var i={line:s.line+(r.generatedOffset.generatedLine-1),column:s.column+(r.generatedOffset.generatedLine===s.line?r.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};Kt.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var s=this._sections[r],i=s.consumer._generatedMappings,a=0;a<i.length;a++){var c=i[a],l=s.consumer._sources.at(c.source);l=z.computeSourceURL(s.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var m=null;c.name&&(m=s.consumer._names.at(c.name),this._names.add(m),m=this._names.indexOf(m));var f={source:l,generatedLine:c.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(s.generatedOffset.generatedLine===c.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:m};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}ci(this.__generatedMappings,z.compareByGeneratedPositionsDeflated),ci(this.__originalMappings,z.compareByOriginalPositions)};Ta.IndexedSourceMapConsumer=Kt});var N_=p(D_=>{var yP=uf().SourceMapGenerator,xa=rs(),gP=/(\r?\n)/,_P=10,is="$$$isSourceNode$$$";function kt(e,t,n,r,s){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=n==null?null:n,this.name=s==null?null:s,this[is]=!0,r!=null&&this.add(r)}kt.fromStringWithSourceMap=function(t,n,r){var s=new kt,i=t.split(gP),a=0,c=function(){var h=b(),_=b()||"";return h+_;function b(){return a<i.length?i[a++]:void 0}},l=1,m=0,f=null;return n.eachMapping(function(h){if(f!==null)if(l<h.generatedLine)g(f,c()),l++,m=0;else{var _=i[a]||"",b=_.substr(0,h.generatedColumn-m);i[a]=_.substr(h.generatedColumn-m),m=h.generatedColumn,g(f,b),f=h;return}for(;l<h.generatedLine;)s.add(c()),l++;if(m<h.generatedColumn){var _=i[a]||"";s.add(_.substr(0,h.generatedColumn)),i[a]=_.substr(h.generatedColumn),m=h.generatedColumn}f=h},this),a<i.length&&(f&&g(f,c()),s.add(i.splice(a).join(""))),n.sources.forEach(function(h){var _=n.sourceContentFor(h);_!=null&&(r!=null&&(h=xa.join(r,h)),s.setSourceContent(h,_))}),s;function g(h,_){if(h===null||h.source===void 0)s.add(_);else{var b=r?xa.join(r,h.source):h.source;s.add(new kt(h.originalLine,h.originalColumn,b,_,h.name))}}};kt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[is]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};kt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[is]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};kt.prototype.walk=function(t){for(var n,r=0,s=this.children.length;r<s;r++)n=this.children[r],n[is]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};kt.prototype.join=function(t){var n,r,s=this.children.length;if(s>0){for(n=[],r=0;r<s-1;r++)n.push(this.children[r]),n.push(t);n.push(this.children[r]),this.children=n}return this};kt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[is]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};kt.prototype.setSourceContent=function(t,n){this.sourceContents[xa.toSetString(t)]=n};kt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][is]&&this.children[n].walkSourceContents(t);for(var s=Object.keys(this.sourceContents),n=0,r=s.length;n<r;n++)t(xa.fromSetString(s[n]),this.sourceContents[s[n]])};kt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};kt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new yP(t),s=!1,i=null,a=null,c=null,l=null;return this.walk(function(m,f){n.code+=m,f.source!==null&&f.line!==null&&f.column!==null?((i!==f.source||a!==f.line||c!==f.column||l!==f.name)&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name}),i=f.source,a=f.line,c=f.column,l=f.name,s=!0):s&&(r.addMapping({generated:{line:n.line,column:n.column}}),i=null,s=!1);for(var g=0,h=m.length;g<h;g++)m.charCodeAt(g)===_P?(n.line++,n.column=0,g+1===h?(i=null,s=!1):s&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name})):n.column++}),this.walkSourceContents(function(m,f){r.setSourceContent(m,f)}),{code:n.code,map:r}};D_.SourceNode=kt});var L_=p(Ia=>{Ia.SourceMapGenerator=uf().SourceMapGenerator;Ia.SourceMapConsumer=k_().SourceMapConsumer;Ia.SourceNode=N_().SourceNode});var q_=p((ble,P_)=>{var wP=Object.prototype.toString,yf=typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function bP(e){return wP.call(e).slice(8,-1)==="ArrayBuffer"}function SP(e,t,n){t>>>=0;var r=e.byteLength-t;if(r<0)throw new RangeError("'offset' is out of bounds");if(n===void 0)n=r;else if(n>>>=0,n>r)throw new RangeError("'length' is out of bounds");return yf?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function vP(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return yf?Buffer.from(e,t):new Buffer(e,t)}function EP(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return bP(e)?SP(e,t,n):typeof e=="string"?vP(e,t):yf?Buffer.from(e):new Buffer(e)}P_.exports=EP});var G_=p((Ir,Af)=>{var AP=L_().SourceMapConsumer,gf=require("path"),en;try{en=require("fs"),(!en.existsSync||!en.readFileSync)&&(en=null)}catch(e){}var CP=q_();function M_(e,t){return e.require(t)}var O_=!1,z_=!1,_f=!1,li="auto",xr={},di={},TP=/^data:application\/json[^,]+base64,/,Qn=[],Xn=[];function wf(){return li==="browser"?!0:li==="node"?!1:typeof window!="undefined"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function xP(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Ra(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var bf=Ra(Qn);Qn.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,s){return s?"":"/"})),e in xr)return xr[e];var t="";try{if(en)en.existsSync(e)&&(t=en.readFileSync(e,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),n.readyState===4&&n.status===200&&(t=n.responseText)}}catch(r){}return xr[e]=t});function Sf(e,t){if(!e)return t;var n=gf.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),s=r?r[0]:"",i=n.slice(s.length);return s&&/^\/\w\:/.test(i)?(s+="/",s+gf.resolve(n.slice(s.length),t).replace(/\\/g,"/")):s+gf.resolve(n.slice(s.length),t)}function IP(e){var t;if(wf())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=n.readyState===4?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(c){}t=bf(e);for(var s=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,i,a;a=s.exec(t);)i=a;return i?i[1]:null}var vf=Ra(Xn);Xn.push(function(e){var t=IP(e);if(!t)return null;var n;if(TP.test(t)){var r=t.slice(t.indexOf(",")+1);n=CP(r,"base64").toString(),t=e}else t=Sf(e,t),n=bf(t);return n?{url:t,map:n}:null});function Ef(e){var t=di[e.source];if(!t){var n=vf(e.source);n?(t=di[e.source]={url:n.url,map:new AP(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(s,i){var a=t.map.sourcesContent[i];if(a){var c=Sf(t.url,s);xr[c]=a}})):t=di[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var r=t.map.originalPositionFor(e);if(r.source!==null)return r.source=Sf(t.url,r.source),r}return e}function j_(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=Ef({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+j_(t[2])+")":e}function RP(){var e,t="";if(this.isNative())t="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),e?t+=e:t+="<anonymous>";var n=this.getLineNumber();if(n!=null){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var s="",i=this.getFunctionName(),a=!0,c=this.isConstructor(),l=!(this.isToplevel()||c);if(l){var m=this.getTypeName();m==="[object Object]"&&(m="null");var f=this.getMethodName();i?(m&&i.indexOf(m)!=0&&(s+=m+"."),s+=i,f&&i.indexOf("."+f)!=i.length-f.length-1&&(s+=" [as "+f+"]")):s+=m+"."+(f||"<anonymous>")}else c?s+="new "+(i||"<anonymous>"):i?s+=i:(s+=t,a=!1);return a&&(s+=" ("+t+")"),s}function U_(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}),t.toString=RP,t}function B_(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var r=e.getLineNumber(),s=e.getColumnNumber()-1,i=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,a=i.test(process.version)?0:62;r===1&&s>a&&!wf()&&!e.isEval()&&(s-=a);var c=Ef({source:n,line:r,column:s});t.curPosition=c,e=U_(e);var l=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?l():t.nextPosition.name||l()},e.getFileName=function(){return c.source},e.getLineNumber=function(){return c.line},e.getColumnNumber=function(){return c.column+1},e.getScriptNameOrSourceURL=function(){return c.source},e}var m=e.isEval()&&e.getEvalOrigin();return m&&(m=j_(m),e=U_(e),e.getEvalOrigin=function(){return m}),e}function kP(e,t){_f&&(xr={},di={});for(var n=e.name||"Error",r=e.message||"",s=n+": "+r,i={nextPosition:null,curPosition:null},a=[],c=t.length-1;c>=0;c--)a.push(`
|
|
1
|
+
var KP=Object.create;var ts=Object.defineProperty,VP=Object.defineProperties,a_=Object.getOwnPropertyDescriptor,WP=Object.getOwnPropertyDescriptors,HP=Object.getOwnPropertyNames,va=Object.getOwnPropertySymbols,YP=Object.getPrototypeOf,tf=Object.prototype.hasOwnProperty,o_=Object.prototype.propertyIsEnumerable;var c_=(e,t,n)=>t in e?ts(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t)=>{for(var n in t||(t={}))tf.call(t,n)&&c_(e,n,t[n]);if(va)for(var n of va(t))o_.call(t,n)&&c_(e,n,t[n]);return e},u=(e,t)=>VP(e,WP(t)),l_=e=>ts(e,"__esModule",{value:!0});var Jn=(e,t)=>{var n={};for(var r in e)tf.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&va)for(var r of va(e))t.indexOf(r)<0&&o_.call(e,r)&&(n[r]=e[r]);return n};var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),JP=(e,t)=>{l_(e);for(var n in t)ts(e,n,{get:t[n],enumerable:!0})},QP=(e,t,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of HP(t))!tf.call(e,r)&&r!=="default"&&ts(e,r,{get:()=>t[r],enumerable:!(n=a_(t,r))||n.enumerable});return e},Tn=e=>QP(l_(ts(e!=null?KP(YP(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),oi=(e,t,n,r)=>{for(var s=r>1?void 0:r?a_(t,n):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(s=(r?a(t,n,s):a(s))||s);return r&&s&&ts(t,n,s),s};var u_=p(nf=>{var d_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");nf.encode=function(e){if(0<=e&&e<d_.length)return d_[e];throw new TypeError("Must be between 0 and 63: "+e)};nf.decode=function(e){var t=65,n=90,r=97,s=122,i=48,a=57,c=43,l=47,m=26,f=52;return t<=e&&e<=n?e-t:r<=e&&e<=s?e-r+m:i<=e&&e<=a?e-i+f:e==c?62:e==l?63:-1}});var af=p(sf=>{var m_=u_(),rf=5,f_=1<<rf,p_=f_-1,h_=f_;function XP(e){return e<0?(-e<<1)+1:(e<<1)+0}function ZP(e){var t=(e&1)==1,n=e>>1;return t?-n:n}sf.encode=function(t){var n="",r,s=XP(t);do r=s&p_,s>>>=rf,s>0&&(r|=h_),n+=m_.encode(r);while(s>0);return n};sf.decode=function(t,n,r){var s=t.length,i=0,a=0,c,l;do{if(n>=s)throw new Error("Expected more digits in base 64 VLQ value.");if(l=m_.decode(t.charCodeAt(n++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));c=!!(l&h_),l&=p_,i=i+(l<<a),a+=rf}while(c);r.value=ZP(i),r.rest=n}});var ss=p(nt=>{function eN(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}nt.getArg=eN;var y_=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,tN=/^data:.+\,.+$/;function ci(e){var t=e.match(y_);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}nt.urlParse=ci;function ns(e){var t="";return e.scheme&&(t+=e.scheme+":"),t+="//",e.auth&&(t+=e.auth+"@"),e.host&&(t+=e.host),e.port&&(t+=":"+e.port),e.path&&(t+=e.path),t}nt.urlGenerate=ns;function of(e){var t=e,n=ci(e);if(n){if(!n.path)return e;t=n.path}for(var r=nt.isAbsolute(t),s=t.split(/\/+/),i,a=0,c=s.length-1;c>=0;c--)i=s[c],i==="."?s.splice(c,1):i===".."?a++:a>0&&(i===""?(s.splice(c+1,a),a=0):(s.splice(c,2),a--));return t=s.join("/"),t===""&&(t=r?"/":"."),n?(n.path=t,ns(n)):t}nt.normalize=of;function g_(e,t){e===""&&(e="."),t===""&&(t=".");var n=ci(t),r=ci(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),ns(n);if(n||t.match(tN))return t;if(r&&!r.host&&!r.path)return r.host=t,ns(r);var s=t.charAt(0)==="/"?t:of(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=s,ns(r)):s}nt.join=g_;nt.isAbsolute=function(e){return e.charAt(0)==="/"||y_.test(e)};function nN(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var n=0;t.indexOf(e+"/")!==0;){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}nt.relative=nN;var __=function(){var e=Object.create(null);return!("__proto__"in e)}();function w_(e){return e}function rN(e){return b_(e)?"$"+e:e}nt.toSetString=__?w_:rN;function sN(e){return b_(e)?e.slice(1):e}nt.fromSetString=__?w_:sN;function b_(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function iN(e,t,n){var r=rs(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:rs(e.name,t.name)}nt.compareByOriginalPositions=iN;function aN(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=rs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:rs(e.name,t.name)}nt.compareByGeneratedPositionsDeflated=aN;function rs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function oN(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=rs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:rs(e.name,t.name)}nt.compareByGeneratedPositionsInflated=oN;function cN(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}nt.parseSourceMapInput=cN;function lN(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=ci(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var s=r.path.lastIndexOf("/");s>=0&&(r.path=r.path.substring(0,s+1))}t=g_(ns(r),t)}return of(t)}nt.computeSourceURL=lN});var df=p(S_=>{var cf=ss(),lf=Object.prototype.hasOwnProperty,Cr=typeof Map!="undefined";function xn(){this._array=[],this._set=Cr?new Map:Object.create(null)}xn.fromArray=function(t,n){for(var r=new xn,s=0,i=t.length;s<i;s++)r.add(t[s],n);return r};xn.prototype.size=function(){return Cr?this._set.size:Object.getOwnPropertyNames(this._set).length};xn.prototype.add=function(t,n){var r=Cr?t:cf.toSetString(t),s=Cr?this.has(t):lf.call(this._set,r),i=this._array.length;(!s||n)&&this._array.push(t),s||(Cr?this._set.set(t,i):this._set[r]=i)};xn.prototype.has=function(t){if(Cr)return this._set.has(t);var n=cf.toSetString(t);return lf.call(this._set,n)};xn.prototype.indexOf=function(t){if(Cr){var n=this._set.get(t);if(n>=0)return n}else{var r=cf.toSetString(t);if(lf.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};xn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};xn.prototype.toArray=function(){return this._array.slice()};S_.ArraySet=xn});var A_=p(E_=>{var v_=ss();function dN(e,t){var n=e.generatedLine,r=t.generatedLine,s=e.generatedColumn,i=t.generatedColumn;return r>n||r==n&&i>=s||v_.compareByGeneratedPositionsInflated(e,t)<=0}function Ea(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ea.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Ea.prototype.add=function(t){dN(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Ea.prototype.toArray=function(){return this._sorted||(this._array.sort(v_.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};E_.MappingList=Ea});var uf=p(C_=>{var li=af(),Ne=ss(),Aa=df().ArraySet,uN=A_().MappingList;function Mt(e){e||(e={}),this._file=Ne.getArg(e,"file",null),this._sourceRoot=Ne.getArg(e,"sourceRoot",null),this._skipValidation=Ne.getArg(e,"skipValidation",!1),this._sources=new Aa,this._names=new Aa,this._mappings=new uN,this._sourcesContents=null}Mt.prototype._version=3;Mt.fromSourceMap=function(t){var n=t.sourceRoot,r=new Mt({file:t.file,sourceRoot:n});return t.eachMapping(function(s){var i={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(i.source=s.source,n!=null&&(i.source=Ne.relative(n,i.source)),i.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(i.name=s.name)),r.addMapping(i)}),t.sources.forEach(function(s){var i=s;n!==null&&(i=Ne.relative(n,s)),r._sources.has(i)||r._sources.add(i);var a=t.sourceContentFor(s);a!=null&&r.setSourceContent(s,a)}),r};Mt.prototype.addMapping=function(t){var n=Ne.getArg(t,"generated"),r=Ne.getArg(t,"original",null),s=Ne.getArg(t,"source",null),i=Ne.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,r,s,i),s!=null&&(s=String(s),this._sources.has(s)||this._sources.add(s)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:s,name:i})};Mt.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=Ne.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ne.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[Ne.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Mt.prototype.applySourceMap=function(t,n,r){var s=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);s=t.file}var i=this._sourceRoot;i!=null&&(s=Ne.relative(i,s));var a=new Aa,c=new Aa;this._mappings.unsortedForEach(function(l){if(l.source===s&&l.originalLine!=null){var m=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});m.source!=null&&(l.source=m.source,r!=null&&(l.source=Ne.join(r,l.source)),i!=null&&(l.source=Ne.relative(i,l.source)),l.originalLine=m.line,l.originalColumn=m.column,m.name!=null&&(l.name=m.name))}var f=l.source;f!=null&&!a.has(f)&&a.add(f);var g=l.name;g!=null&&!c.has(g)&&c.add(g)},this),this._sources=a,this._names=c,t.sources.forEach(function(l){var m=t.sourceContentFor(l);m!=null&&(r!=null&&(l=Ne.join(r,l)),i!=null&&(l=Ne.relative(i,l)),this.setSourceContent(l,m))},this)};Mt.prototype._validateMapping=function(t,n,r,s){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!r&&!s)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:n,name:s}))}};Mt.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,s=0,i=0,a=0,c="",l,m,f,g,h=this._mappings.toArray(),_=0,b=h.length;_<b;_++){if(m=h[_],l="",m.generatedLine!==n)for(t=0;m.generatedLine!==n;)l+=";",n++;else if(_>0){if(!Ne.compareByGeneratedPositionsInflated(m,h[_-1]))continue;l+=","}l+=li.encode(m.generatedColumn-t),t=m.generatedColumn,m.source!=null&&(g=this._sources.indexOf(m.source),l+=li.encode(g-a),a=g,l+=li.encode(m.originalLine-1-s),s=m.originalLine-1,l+=li.encode(m.originalColumn-r),r=m.originalColumn,m.name!=null&&(f=this._names.indexOf(m.name),l+=li.encode(f-i),i=f)),c+=l}return c};Mt.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=Ne.relative(n,r));var s=Ne.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,s)?this._sourcesContents[s]:null},this)};Mt.prototype.toJSON=function(){var t={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(t.file=this._file),this._sourceRoot!=null&&(t.sourceRoot=this._sourceRoot),this._sourcesContents&&(t.sourcesContent=this._generateSourcesContent(t.sources,t.sourceRoot)),t};Mt.prototype.toString=function(){return JSON.stringify(this.toJSON())};C_.SourceMapGenerator=Mt});var T_=p(Tr=>{Tr.GREATEST_LOWER_BOUND=1;Tr.LEAST_UPPER_BOUND=2;function mf(e,t,n,r,s,i){var a=Math.floor((t-e)/2)+e,c=s(n,r[a],!0);return c===0?a:c>0?t-a>1?mf(a,t,n,r,s,i):i==Tr.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?mf(e,a,n,r,s,i):i==Tr.LEAST_UPPER_BOUND?a:e<0?-1:e}Tr.search=function(t,n,r,s){if(n.length===0)return-1;var i=mf(-1,n.length,t,n,r,s||Tr.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&r(n[i],n[i-1],!0)===0;)--i;return i}});var I_=p(x_=>{function ff(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function mN(e,t){return Math.round(e+Math.random()*(t-e))}function pf(e,t,n,r){if(n<r){var s=mN(n,r),i=n-1;ff(e,s,r);for(var a=e[r],c=n;c<r;c++)t(e[c],a)<=0&&(i+=1,ff(e,i,c));ff(e,i+1,c);var l=i+1;pf(e,t,n,l-1),pf(e,t,l+1,r)}}x_.quickSort=function(e,t){pf(e,t,0,e.length-1)}});var k_=p(Ca=>{var z=ss(),hf=T_(),is=df().ArraySet,fN=af(),di=I_().quickSort;function Ce(e,t){var n=e;return typeof e=="string"&&(n=z.parseSourceMapInput(e)),n.sections!=null?new Kt(n,t):new He(n,t)}Ce.fromSourceMap=function(e,t){return He.fromSourceMap(e,t)};Ce.prototype._version=3;Ce.prototype.__generatedMappings=null;Object.defineProperty(Ce.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ce.prototype.__originalMappings=null;Object.defineProperty(Ce.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ce.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Ce.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Ce.GENERATED_ORDER=1;Ce.ORIGINAL_ORDER=2;Ce.GREATEST_LOWER_BOUND=1;Ce.LEAST_UPPER_BOUND=2;Ce.prototype.eachMapping=function(t,n,r){var s=n||null,i=r||Ce.GENERATED_ORDER,a;switch(i){case Ce.GENERATED_ORDER:a=this._generatedMappings;break;case Ce.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var c=this.sourceRoot;a.map(function(l){var m=l.source===null?null:this._sources.at(l.source);return m=z.computeSourceURL(c,m,this._sourceMapURL),{source:m,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,s)};Ce.prototype.allGeneratedPositionsFor=function(t){var n=z.getArg(t,"line"),r={source:z.getArg(t,"source"),originalLine:n,originalColumn:z.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var s=[],i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",z.compareByOriginalPositions,hf.LEAST_UPPER_BOUND);if(i>=0){var a=this._originalMappings[i];if(t.column===void 0)for(var c=a.originalLine;a&&a.originalLine===c;)s.push({line:z.getArg(a,"generatedLine",null),column:z.getArg(a,"generatedColumn",null),lastColumn:z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i];else for(var l=a.originalColumn;a&&a.originalLine===n&&a.originalColumn==l;)s.push({line:z.getArg(a,"generatedLine",null),column:z.getArg(a,"generatedColumn",null),lastColumn:z.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++i]}return s};Ca.SourceMapConsumer=Ce;function He(e,t){var n=e;typeof e=="string"&&(n=z.parseSourceMapInput(e));var r=z.getArg(n,"version"),s=z.getArg(n,"sources"),i=z.getArg(n,"names",[]),a=z.getArg(n,"sourceRoot",null),c=z.getArg(n,"sourcesContent",null),l=z.getArg(n,"mappings"),m=z.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=z.normalize(a)),s=s.map(String).map(z.normalize).map(function(f){return a&&z.isAbsolute(a)&&z.isAbsolute(f)?z.relative(a,f):f}),this._names=is.fromArray(i.map(String),!0),this._sources=is.fromArray(s,!0),this._absoluteSources=this._sources.toArray().map(function(f){return z.computeSourceURL(a,f,t)}),this.sourceRoot=a,this.sourcesContent=c,this._mappings=l,this._sourceMapURL=t,this.file=m}He.prototype=Object.create(Ce.prototype);He.prototype.consumer=Ce;He.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=z.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1};He.fromSourceMap=function(t,n){var r=Object.create(He.prototype),s=r._names=is.fromArray(t._names.toArray(),!0),i=r._sources=is.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=n,r._absoluteSources=r._sources.toArray().map(function(_){return z.computeSourceURL(r.sourceRoot,_,n)});for(var a=t._mappings.toArray().slice(),c=r.__generatedMappings=[],l=r.__originalMappings=[],m=0,f=a.length;m<f;m++){var g=a[m],h=new R_;h.generatedLine=g.generatedLine,h.generatedColumn=g.generatedColumn,g.source&&(h.source=i.indexOf(g.source),h.originalLine=g.originalLine,h.originalColumn=g.originalColumn,g.name&&(h.name=s.indexOf(g.name)),l.push(h)),c.push(h)}return di(r.__originalMappings,z.compareByOriginalPositions),r};He.prototype._version=3;Object.defineProperty(He.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function R_(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}He.prototype._parseMappings=function(t,n){for(var r=1,s=0,i=0,a=0,c=0,l=0,m=t.length,f=0,g={},h={},_=[],b=[],E,D,k,R,K;f<m;)if(t.charAt(f)===";")r++,f++,s=0;else if(t.charAt(f)===",")f++;else{for(E=new R_,E.generatedLine=r,R=f;R<m&&!this._charIsMappingSeparator(t,R);R++);if(D=t.slice(f,R),k=g[D],k)f+=D.length;else{for(k=[];f<R;)fN.decode(t,f,h),K=h.value,f=h.rest,k.push(K);if(k.length===2)throw new Error("Found a source, but no line and column");if(k.length===3)throw new Error("Found a source and line, but no column");g[D]=k}E.generatedColumn=s+k[0],s=E.generatedColumn,k.length>1&&(E.source=c+k[1],c+=k[1],E.originalLine=i+k[2],i=E.originalLine,E.originalLine+=1,E.originalColumn=a+k[3],a=E.originalColumn,k.length>4&&(E.name=l+k[4],l+=k[4])),b.push(E),typeof E.originalLine=="number"&&_.push(E)}di(b,z.compareByGeneratedPositionsDeflated),this.__generatedMappings=b,di(_,z.compareByOriginalPositions),this.__originalMappings=_};He.prototype._findMapping=function(t,n,r,s,i,a){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[s]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[s]);return hf.search(t,n,i,a)};He.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};He.prototype.originalPositionFor=function(t){var n={generatedLine:z.getArg(t,"line"),generatedColumn:z.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",z.compareByGeneratedPositionsDeflated,z.getArg(t,"bias",Ce.GREATEST_LOWER_BOUND));if(r>=0){var s=this._generatedMappings[r];if(s.generatedLine===n.generatedLine){var i=z.getArg(s,"source",null);i!==null&&(i=this._sources.at(i),i=z.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=z.getArg(s,"name",null);return a!==null&&(a=this._names.at(a)),{source:i,line:z.getArg(s,"originalLine",null),column:z.getArg(s,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};He.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};He.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var s=t;this.sourceRoot!=null&&(s=z.relative(this.sourceRoot,s));var i;if(this.sourceRoot!=null&&(i=z.urlParse(this.sourceRoot))){var a=s.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!i.path||i.path=="/")&&this._sources.has("/"+s))return this.sourcesContent[this._sources.indexOf("/"+s)]}if(n)return null;throw new Error('"'+s+'" is not in the SourceMap.')};He.prototype.generatedPositionFor=function(t){var n=z.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:z.getArg(t,"line"),originalColumn:z.getArg(t,"column")},s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",z.compareByOriginalPositions,z.getArg(t,"bias",Ce.GREATEST_LOWER_BOUND));if(s>=0){var i=this._originalMappings[s];if(i.source===r.source)return{line:z.getArg(i,"generatedLine",null),column:z.getArg(i,"generatedColumn",null),lastColumn:z.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ca.BasicSourceMapConsumer=He;function Kt(e,t){var n=e;typeof e=="string"&&(n=z.parseSourceMapInput(e));var r=z.getArg(n,"version"),s=z.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new is,this._names=new is;var i={line:-1,column:0};this._sections=s.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var c=z.getArg(a,"offset"),l=z.getArg(c,"line"),m=z.getArg(c,"column");if(l<i.line||l===i.line&&m<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=c,{generatedOffset:{generatedLine:l+1,generatedColumn:m+1},consumer:new Ce(z.getArg(a,"map"),t)}})}Kt.prototype=Object.create(Ce.prototype);Kt.prototype.constructor=Ce;Kt.prototype._version=3;Object.defineProperty(Kt.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}});Kt.prototype.originalPositionFor=function(t){var n={generatedLine:z.getArg(t,"line"),generatedColumn:z.getArg(t,"column")},r=hf.search(n,this._sections,function(i,a){var c=i.generatedLine-a.generatedOffset.generatedLine;return c||i.generatedColumn-a.generatedOffset.generatedColumn}),s=this._sections[r];return s?s.consumer.originalPositionFor({line:n.generatedLine-(s.generatedOffset.generatedLine-1),column:n.generatedColumn-(s.generatedOffset.generatedLine===n.generatedLine?s.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};Kt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Kt.prototype.sourceContentFor=function(t,n){for(var r=0;r<this._sections.length;r++){var s=this._sections[r],i=s.consumer.sourceContentFor(t,!0);if(i)return i}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Kt.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(z.getArg(t,"source"))!==-1){var s=r.consumer.generatedPositionFor(t);if(s){var i={line:s.line+(r.generatedOffset.generatedLine-1),column:s.column+(r.generatedOffset.generatedLine===s.line?r.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};Kt.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var s=this._sections[r],i=s.consumer._generatedMappings,a=0;a<i.length;a++){var c=i[a],l=s.consumer._sources.at(c.source);l=z.computeSourceURL(s.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var m=null;c.name&&(m=s.consumer._names.at(c.name),this._names.add(m),m=this._names.indexOf(m));var f={source:l,generatedLine:c.generatedLine+(s.generatedOffset.generatedLine-1),generatedColumn:c.generatedColumn+(s.generatedOffset.generatedLine===c.generatedLine?s.generatedOffset.generatedColumn-1:0),originalLine:c.originalLine,originalColumn:c.originalColumn,name:m};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}di(this.__generatedMappings,z.compareByGeneratedPositionsDeflated),di(this.__originalMappings,z.compareByOriginalPositions)};Ca.IndexedSourceMapConsumer=Kt});var L_=p(D_=>{var pN=uf().SourceMapGenerator,Ta=ss(),hN=/(\r?\n)/,yN=10,as="$$$isSourceNode$$$";function kt(e,t,n,r,s){this.children=[],this.sourceContents={},this.line=e==null?null:e,this.column=t==null?null:t,this.source=n==null?null:n,this.name=s==null?null:s,this[as]=!0,r!=null&&this.add(r)}kt.fromStringWithSourceMap=function(t,n,r){var s=new kt,i=t.split(hN),a=0,c=function(){var h=b(),_=b()||"";return h+_;function b(){return a<i.length?i[a++]:void 0}},l=1,m=0,f=null;return n.eachMapping(function(h){if(f!==null)if(l<h.generatedLine)g(f,c()),l++,m=0;else{var _=i[a]||"",b=_.substr(0,h.generatedColumn-m);i[a]=_.substr(h.generatedColumn-m),m=h.generatedColumn,g(f,b),f=h;return}for(;l<h.generatedLine;)s.add(c()),l++;if(m<h.generatedColumn){var _=i[a]||"";s.add(_.substr(0,h.generatedColumn)),i[a]=_.substr(h.generatedColumn),m=h.generatedColumn}f=h},this),a<i.length&&(f&&g(f,c()),s.add(i.splice(a).join(""))),n.sources.forEach(function(h){var _=n.sourceContentFor(h);_!=null&&(r!=null&&(h=Ta.join(r,h)),s.setSourceContent(h,_))}),s;function g(h,_){if(h===null||h.source===void 0)s.add(_);else{var b=r?Ta.join(r,h.source):h.source;s.add(new kt(h.originalLine,h.originalColumn,b,_,h.name))}}};kt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[as]||typeof t=="string")t&&this.children.push(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};kt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[as]||typeof t=="string")this.children.unshift(t);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+t);return this};kt.prototype.walk=function(t){for(var n,r=0,s=this.children.length;r<s;r++)n=this.children[r],n[as]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};kt.prototype.join=function(t){var n,r,s=this.children.length;if(s>0){for(n=[],r=0;r<s-1;r++)n.push(this.children[r]),n.push(t);n.push(this.children[r]),this.children=n}return this};kt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[as]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};kt.prototype.setSourceContent=function(t,n){this.sourceContents[Ta.toSetString(t)]=n};kt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][as]&&this.children[n].walkSourceContents(t);for(var s=Object.keys(this.sourceContents),n=0,r=s.length;n<r;n++)t(Ta.fromSetString(s[n]),this.sourceContents[s[n]])};kt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};kt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new pN(t),s=!1,i=null,a=null,c=null,l=null;return this.walk(function(m,f){n.code+=m,f.source!==null&&f.line!==null&&f.column!==null?((i!==f.source||a!==f.line||c!==f.column||l!==f.name)&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name}),i=f.source,a=f.line,c=f.column,l=f.name,s=!0):s&&(r.addMapping({generated:{line:n.line,column:n.column}}),i=null,s=!1);for(var g=0,h=m.length;g<h;g++)m.charCodeAt(g)===yN?(n.line++,n.column=0,g+1===h?(i=null,s=!1):s&&r.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:n.line,column:n.column},name:f.name})):n.column++}),this.walkSourceContents(function(m,f){r.setSourceContent(m,f)}),{code:n.code,map:r}};D_.SourceNode=kt});var P_=p(xa=>{xa.SourceMapGenerator=uf().SourceMapGenerator;xa.SourceMapConsumer=k_().SourceMapConsumer;xa.SourceNode=L_().SourceNode});var q_=p((Sle,N_)=>{var gN=Object.prototype.toString,yf=typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function _N(e){return gN.call(e).slice(8,-1)==="ArrayBuffer"}function wN(e,t,n){t>>>=0;var r=e.byteLength-t;if(r<0)throw new RangeError("'offset' is out of bounds");if(n===void 0)n=r;else if(n>>>=0,n>r)throw new RangeError("'length' is out of bounds");return yf?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function bN(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return yf?Buffer.from(e,t):new Buffer(e,t)}function SN(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return _N(e)?wN(e,t,n):typeof e=="string"?bN(e,t):yf?Buffer.from(e):new Buffer(e)}N_.exports=SN});var G_=p((Ir,Af)=>{var vN=P_().SourceMapConsumer,gf=require("path"),en;try{en=require("fs"),(!en.existsSync||!en.readFileSync)&&(en=null)}catch(e){}var EN=q_();function M_(e,t){return e.require(t)}var O_=!1,z_=!1,_f=!1,ui="auto",xr={},mi={},AN=/^data:application\/json[^,]+base64,/,Qn=[],Xn=[];function wf(){return ui==="browser"?!0:ui==="node"?!1:typeof window!="undefined"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function CN(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Ia(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var bf=Ia(Qn);Qn.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,s){return s?"":"/"})),e in xr)return xr[e];var t="";try{if(en)en.existsSync(e)&&(t=en.readFileSync(e,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),n.readyState===4&&n.status===200&&(t=n.responseText)}}catch(r){}return xr[e]=t});function Sf(e,t){if(!e)return t;var n=gf.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),s=r?r[0]:"",i=n.slice(s.length);return s&&/^\/\w\:/.test(i)?(s+="/",s+gf.resolve(n.slice(s.length),t).replace(/\\/g,"/")):s+gf.resolve(n.slice(s.length),t)}function TN(e){var t;if(wf())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=n.readyState===4?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch(c){}t=bf(e);for(var s=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,i,a;a=s.exec(t);)i=a;return i?i[1]:null}var vf=Ia(Xn);Xn.push(function(e){var t=TN(e);if(!t)return null;var n;if(AN.test(t)){var r=t.slice(t.indexOf(",")+1);n=EN(r,"base64").toString(),t=e}else t=Sf(e,t),n=bf(t);return n?{url:t,map:n}:null});function Ef(e){var t=mi[e.source];if(!t){var n=vf(e.source);n?(t=mi[e.source]={url:n.url,map:new vN(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(s,i){var a=t.map.sourcesContent[i];if(a){var c=Sf(t.url,s);xr[c]=a}})):t=mi[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var r=t.map.originalPositionFor(e);if(r.source!==null)return r.source=Sf(t.url,r.source),r}return e}function j_(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=Ef({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+j_(t[2])+")":e}function xN(){var e,t="";if(this.isNative())t="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),e?t+=e:t+="<anonymous>";var n=this.getLineNumber();if(n!=null){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var s="",i=this.getFunctionName(),a=!0,c=this.isConstructor(),l=!(this.isToplevel()||c);if(l){var m=this.getTypeName();m==="[object Object]"&&(m="null");var f=this.getMethodName();i?(m&&i.indexOf(m)!=0&&(s+=m+"."),s+=i,f&&i.indexOf("."+f)!=i.length-f.length-1&&(s+=" [as "+f+"]")):s+=m+"."+(f||"<anonymous>")}else c?s+="new "+(i||"<anonymous>"):i?s+=i:(s+=t,a=!1);return a&&(s+=" ("+t+")"),s}function U_(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}),t.toString=xN,t}function B_(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var r=e.getLineNumber(),s=e.getColumnNumber()-1,i=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,a=i.test(process.version)?0:62;r===1&&s>a&&!wf()&&!e.isEval()&&(s-=a);var c=Ef({source:n,line:r,column:s});t.curPosition=c,e=U_(e);var l=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?l():t.nextPosition.name||l()},e.getFileName=function(){return c.source},e.getLineNumber=function(){return c.line},e.getColumnNumber=function(){return c.column+1},e.getScriptNameOrSourceURL=function(){return c.source},e}var m=e.isEval()&&e.getEvalOrigin();return m&&(m=j_(m),e=U_(e),e.getEvalOrigin=function(){return m}),e}function IN(e,t){_f&&(xr={},mi={});for(var n=e.name||"Error",r=e.message||"",s=n+": "+r,i={nextPosition:null,curPosition:null},a=[],c=t.length-1;c>=0;c--)a.push(`
|
|
2
2
|
at `+B_(t[c],i)),i.nextPosition=i.curPosition;return i.curPosition=i.nextPosition=null,s+a.reverse().join("")}function F_(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],s=+t[3],i=xr[n];if(!i&&en&&en.existsSync(n))try{i=en.readFileSync(n,"utf8")}catch(c){i=""}if(i){var a=i.split(/(?:\r\n|\r|\n)/)[r-1];if(a)return n+":"+r+`
|
|
3
3
|
`+a+`
|
|
4
|
-
`+new Array(s).join(" ")+"^"}}return null}function DP(e){var t=F_(e);process.stderr._handle&&process.stderr._handle.setBlocking&&process.stderr._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1)}function NP(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return DP(arguments[1])}return e.apply(this,arguments)}}var LP=Qn.slice(0),PP=Xn.slice(0);Ir.wrapCallSite=B_;Ir.getErrorSource=F_;Ir.mapSourcePosition=Ef;Ir.retrieveSourceMap=vf;Ir.install=function(e){if(e=e||{},e.environment&&(li=e.environment,["node","browser","auto"].indexOf(li)===-1))throw new Error("environment "+li+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Qn.length=0),Qn.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Xn.length=0),Xn.unshift(e.retrieveSourceMap)),e.hookRequire&&!wf()){var t=M_(Af,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(i,a){return xr[a]=i,di[a]=void 0,n.call(this,i,a)},t.prototype._compile.__sourceMapSupport=!0)}if(_f||(_f="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),O_||(O_=!0,Error.prepareStackTrace=kP),!z_){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var s=M_(Af,"worker_threads");s.isMainThread===!1&&(r=!1)}catch(i){}r&&xP()&&(z_=!0,NP())}};Ir.resetRetrieveHandlers=function(){Qn.length=0,Xn.length=0,Qn=LP.slice(0),Xn=PP.slice(0),vf=Ra(Xn),bf=Ra(Qn)}});var he=p((Ele,Na)=>{var K_,V_,W_,H_,Y_,J_,Q_,X_,Z_,ka,Cf,ew,tw,nw,as,rw,sw,iw,aw,ow,cw,lw,dw,Da;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){e(n(t,n(r)))}):typeof Na=="object"&&typeof Na.exports=="object"?e(n(t,n(Na.exports))):e(n(t));function n(r,s){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=s?s(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])};K_=function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");t(r,s);function i(){this.constructor=r}r.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)},V_=Object.assign||function(r){for(var s,i=1,a=arguments.length;i<a;i++){s=arguments[i];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])}return r},W_=function(r,s){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&s.indexOf(a)<0&&(i[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(r);c<a.length;c++)s.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(r,a[c])&&(i[a[c]]=r[a[c]]);return i},H_=function(r,s,i,a){var c=arguments.length,l=c<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,i):a,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,s,i,a);else for(var f=r.length-1;f>=0;f--)(m=r[f])&&(l=(c<3?m(l):c>3?m(s,i,l):m(s,i))||l);return c>3&&l&&Object.defineProperty(s,i,l),l},Y_=function(r,s){return function(i,a){s(i,a,r)}},J_=function(r,s){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,s)},Q_=function(r,s,i,a){function c(l){return l instanceof i?l:new i(function(m){m(l)})}return new(i||(i=Promise))(function(l,m){function f(_){try{h(a.next(_))}catch(b){m(b)}}function g(_){try{h(a.throw(_))}catch(b){m(b)}}function h(_){_.done?l(_.value):c(_.value).then(f,g)}h((a=a.apply(r,s||[])).next())})},X_=function(r,s){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,c,l,m;return m={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function f(h){return function(_){return g([h,_])}}function g(h){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,c&&(l=h[0]&2?c.return:h[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,h[1])).done)return l;switch(c=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,c=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){i.label=h[1];break}if(h[0]===6&&i.label<l[1]){i.label=l[1],l=h;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(h);break}l[2]&&i.ops.pop(),i.trys.pop();continue}h=s.call(r,i)}catch(_){h=[6,_],c=0}finally{a=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Z_=function(r,s){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i)&&Da(s,r,i)},Da=Object.create?function(r,s,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return s[i]}})}:function(r,s,i,a){a===void 0&&(a=i),r[a]=s[i]},ka=function(r){var s=typeof Symbol=="function"&&Symbol.iterator,i=s&&r[s],a=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},Cf=function(r,s){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var a=i.call(r),c,l=[],m;try{for(;(s===void 0||s-- >0)&&!(c=a.next()).done;)l.push(c.value)}catch(f){m={error:f}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return l},ew=function(){for(var r=[],s=0;s<arguments.length;s++)r=r.concat(Cf(arguments[s]));return r},tw=function(){for(var r=0,s=0,i=arguments.length;s<i;s++)r+=arguments[s].length;for(var a=Array(r),c=0,s=0;s<i;s++)for(var l=arguments[s],m=0,f=l.length;m<f;m++,c++)a[c]=l[m];return a},nw=function(r,s){for(var i=0,a=s.length,c=r.length;i<a;i++,c++)r[c]=s[i];return r},as=function(r){return this instanceof as?(this.v=r,this):new as(r)},rw=function(r,s,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(r,s||[]),c,l=[];return c={},m("next"),m("throw"),m("return"),c[Symbol.asyncIterator]=function(){return this},c;function m(E){a[E]&&(c[E]=function(D){return new Promise(function(k,R){l.push([E,D,k,R])>1||f(E,D)})})}function f(E,D){try{g(a[E](D))}catch(k){b(l[0][3],k)}}function g(E){E.value instanceof as?Promise.resolve(E.value.v).then(h,_):b(l[0][2],E)}function h(E){f("next",E)}function _(E){f("throw",E)}function b(E,D){E(D),l.shift(),l.length&&f(l[0][0],l[0][1])}},sw=function(r){var s,i;return s={},a("next"),a("throw",function(c){throw c}),a("return"),s[Symbol.iterator]=function(){return this},s;function a(c,l){s[c]=r[c]?function(m){return(i=!i)?{value:as(r[c](m)),done:c==="return"}:l?l(m):m}:l}},iw=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r[Symbol.asyncIterator],i;return s?s.call(r):(r=typeof ka=="function"?ka(r):r[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(l){i[l]=r[l]&&function(m){return new Promise(function(f,g){m=r[l](m),c(f,g,m.done,m.value)})}}function c(l,m,f,g){Promise.resolve(g).then(function(h){l({value:h,done:f})},m)}},aw=function(r,s){return Object.defineProperty?Object.defineProperty(r,"raw",{value:s}):r.raw=s,r};var n=Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:!0,value:s})}:function(r,s){r.default=s};ow=function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&Da(s,r,i);return n(s,r),s},cw=function(r){return r&&r.__esModule?r:{default:r}},lw=function(r,s){if(!s.has(r))throw new TypeError("attempted to get private field on non-instance");return s.get(r)},dw=function(r,s,i){if(!s.has(r))throw new TypeError("attempted to set private field on non-instance");return s.set(r,i),i},e("__extends",K_),e("__assign",V_),e("__rest",W_),e("__decorate",H_),e("__param",Y_),e("__metadata",J_),e("__awaiter",Q_),e("__generator",X_),e("__exportStar",Z_),e("__createBinding",Da),e("__values",ka),e("__read",Cf),e("__spread",ew),e("__spreadArrays",tw),e("__spreadArray",nw),e("__await",as),e("__asyncGenerator",rw),e("__asyncDelegator",sw),e("__asyncValues",iw),e("__makeTemplateObject",aw),e("__importStar",ow),e("__importDefault",cw),e("__classPrivateFieldGet",lw),e("__classPrivateFieldSet",dw)})});var W=p(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.ProvisionedThroughputOverride=d.CreateGlobalTableInput=d.Replica=d.CreateGlobalSecondaryIndexAction=d.TableNotFoundException=d.TableInUseException=d.LimitExceededException=d.CreateBackupOutput=d.CreateBackupInput=d.ContributorInsightsSummary=d.ContinuousBackupsUnavailableException=d.ContinuousBackupsDescription=d.PointInTimeRecoveryDescription=d.ConditionalCheckFailedException=d.BillingModeSummary=d.ItemCollectionSizeLimitExceededException=d.ResourceNotFoundException=d.ProvisionedThroughputExceededException=d.InvalidEndpointException=d.ConsumedCapacity=d.Capacity=d.RequestLimitExceeded=d.InternalServerError=d.BatchStatementError=d.BatchStatementErrorCodeEnum=d.BackupTypeFilter=d.BackupSummary=d.BackupNotFoundException=d.BackupInUseException=d.BackupDescription=d.SourceTableFeatureDetails=d.TimeToLiveDescription=d.StreamSpecification=d.SSEDescription=d.LocalSecondaryIndexInfo=d.GlobalSecondaryIndexInfo=d.Projection=d.SourceTableDetails=d.ProvisionedThroughput=d.KeySchemaElement=d.BackupDetails=d.BackupType=d.AutoScalingSettingsUpdate=d.AutoScalingSettingsDescription=d.AutoScalingPolicyUpdate=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=d.AutoScalingPolicyDescription=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=d.AttributeDefinition=d.ArchivalSummary=void 0;d.ReplicaSettingsDescription=d.ReplicaGlobalSecondaryIndexSettingsDescription=d.DescribeGlobalTableSettingsInput=d.GlobalTableNotFoundException=d.DescribeGlobalTableOutput=d.DescribeGlobalTableInput=d.ExportNotFoundException=d.DescribeExportOutput=d.ExportDescription=d.ExportStatus=d.ExportFormat=d.DescribeExportInput=d.DescribeEndpointsResponse=d.Endpoint=d.DescribeEndpointsRequest=d.DescribeContributorInsightsOutput=d.FailureException=d.DescribeContributorInsightsInput=d.DescribeContinuousBackupsOutput=d.DescribeContinuousBackupsInput=d.DescribeBackupOutput=d.DescribeBackupInput=d.DeleteTableOutput=d.DeleteTableInput=d.DeleteReplicationGroupMemberAction=d.DeleteReplicaAction=d.TransactionConflictException=d.DeleteGlobalSecondaryIndexAction=d.DeleteBackupOutput=d.DeleteBackupInput=d.ResourceInUseException=d.CreateTableOutput=d.TableDescription=d.RestoreSummary=d.LocalSecondaryIndexDescription=d.GlobalSecondaryIndexDescription=d.ProvisionedThroughputDescription=d.CreateTableInput=d.Tag=d.SSESpecification=d.LocalSecondaryIndex=d.GlobalSecondaryIndex=d.CreateReplicationGroupMemberAction=d.ReplicaGlobalSecondaryIndex=d.CreateReplicaAction=d.GlobalTableAlreadyExistsException=d.CreateGlobalTableOutput=d.GlobalTableDescription=d.ReplicaDescription=d.ReplicaGlobalSecondaryIndexDescription=void 0;d.UpdateContinuousBackupsOutput=d.UpdateContinuousBackupsInput=d.PointInTimeRecoverySpecification=d.UntagResourceInput=d.TagResourceInput=d.RestoreTableToPointInTimeOutput=d.RestoreTableToPointInTimeInput=d.InvalidRestoreTimeException=d.TableAlreadyExistsException=d.RestoreTableFromBackupOutput=d.RestoreTableFromBackupInput=d.ListTagsOfResourceOutput=d.ListTagsOfResourceInput=d.ListTablesOutput=d.ListTablesInput=d.ListGlobalTablesOutput=d.GlobalTable=d.ListGlobalTablesInput=d.ListExportsOutput=d.ExportSummary=d.ListExportsInput=d.ListContributorInsightsOutput=d.ListContributorInsightsInput=d.ListBackupsOutput=d.ListBackupsInput=d.PointInTimeRecoveryUnavailableException=d.InvalidExportTimeException=d.ExportTableToPointInTimeOutput=d.ExportTableToPointInTimeInput=d.ExportConflictException=d.TransactionInProgressException=d.IdempotentParameterMismatchException=d.DuplicateItemException=d.KinesisStreamingDestinationOutput=d.KinesisStreamingDestinationInput=d.DescribeTimeToLiveOutput=d.DescribeTimeToLiveInput=d.DescribeTableReplicaAutoScalingOutput=d.TableAutoScalingDescription=d.ReplicaAutoScalingDescription=d.ReplicaGlobalSecondaryIndexAutoScalingDescription=d.DescribeTableReplicaAutoScalingInput=d.DescribeTableOutput=d.DescribeTableInput=d.DescribeLimitsOutput=d.DescribeLimitsInput=d.DescribeKinesisStreamingDestinationOutput=d.KinesisDataStreamDestination=d.DescribeKinesisStreamingDestinationInput=d.DescribeGlobalTableSettingsOutput=void 0;d.TransactGetItemsOutput=d.ExecuteTransactionOutput=d.ExecuteTransactionInput=d.BatchExecuteStatementOutput=d.BatchExecuteStatementInput=d.TransactGetItem=d.KeysAndAttributes=d.ExecuteStatementOutput=d.PutRequest=d.ParameterizedStatement=d.ItemResponse=d.ItemCollectionMetrics=d.GetItemOutput=d.GetItemInput=d.Get=d.ExecuteStatementInput=d.DeleteRequest=d.Condition=d.CancellationReason=d.BatchStatementResponse=d.BatchStatementRequest=d.AttributeValueUpdate=d.AttributeValue=d.UpdateTimeToLiveOutput=d.UpdateTimeToLiveInput=d.TimeToLiveSpecification=d.UpdateTableReplicaAutoScalingOutput=d.UpdateTableReplicaAutoScalingInput=d.ReplicaAutoScalingUpdate=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate=d.GlobalSecondaryIndexAutoScalingUpdate=d.UpdateTableOutput=d.UpdateTableInput=d.ReplicationGroupUpdate=d.UpdateReplicationGroupMemberAction=d.GlobalSecondaryIndexUpdate=d.UpdateGlobalSecondaryIndexAction=d.UpdateGlobalTableSettingsOutput=d.UpdateGlobalTableSettingsInput=d.ReplicaSettingsUpdate=d.ReplicaGlobalSecondaryIndexSettingsUpdate=d.GlobalTableGlobalSecondaryIndexSettingsUpdate=d.IndexNotFoundException=d.UpdateGlobalTableOutput=d.UpdateGlobalTableInput=d.ReplicaUpdate=d.ReplicaNotFoundException=d.ReplicaAlreadyExistsException=d.UpdateContributorInsightsOutput=d.UpdateContributorInsightsInput=void 0;d.TransactWriteItemsInput=d.TransactWriteItem=d.UpdateItemInput=d.BatchWriteItemOutput=d.QueryInput=d.PutItemInput=d.DeleteItemInput=d.BatchWriteItemInput=d.ScanInput=d.BatchGetItemOutput=d.WriteRequest=d.UpdateItemOutput=d.ScanOutput=d.QueryOutput=d.PutItemOutput=d.DeleteItemOutput=d.Update=d.Put=d.Delete=d.ConditionCheck=d.TransactWriteItemsOutput=d.TransactGetItemsInput=d.ExpectedAttributeValue=d.BatchGetItemInput=d.TransactionCanceledException=void 0;var qP;(function(e){e.filterSensitiveLog=t=>o({},t)})(qP=d.ArchivalSummary||(d.ArchivalSummary={}));var MP;(function(e){e.filterSensitiveLog=t=>o({},t)})(MP=d.AttributeDefinition||(d.AttributeDefinition={}));var OP;(function(e){e.filterSensitiveLog=t=>o({},t)})(OP=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var zP;(function(e){e.filterSensitiveLog=t=>o({},t)})(zP=d.AutoScalingPolicyDescription||(d.AutoScalingPolicyDescription={}));var jP;(function(e){e.filterSensitiveLog=t=>o({},t)})(jP=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var UP;(function(e){e.filterSensitiveLog=t=>o({},t)})(UP=d.AutoScalingPolicyUpdate||(d.AutoScalingPolicyUpdate={}));var BP;(function(e){e.filterSensitiveLog=t=>o({},t)})(BP=d.AutoScalingSettingsDescription||(d.AutoScalingSettingsDescription={}));var FP;(function(e){e.filterSensitiveLog=t=>o({},t)})(FP=d.AutoScalingSettingsUpdate||(d.AutoScalingSettingsUpdate={}));var GP;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(GP=d.BackupType||(d.BackupType={}));var $P;(function(e){e.filterSensitiveLog=t=>o({},t)})($P=d.BackupDetails||(d.BackupDetails={}));var KP;(function(e){e.filterSensitiveLog=t=>o({},t)})(KP=d.KeySchemaElement||(d.KeySchemaElement={}));var VP;(function(e){e.filterSensitiveLog=t=>o({},t)})(VP=d.ProvisionedThroughput||(d.ProvisionedThroughput={}));var WP;(function(e){e.filterSensitiveLog=t=>o({},t)})(WP=d.SourceTableDetails||(d.SourceTableDetails={}));var HP;(function(e){e.filterSensitiveLog=t=>o({},t)})(HP=d.Projection||(d.Projection={}));var YP;(function(e){e.filterSensitiveLog=t=>o({},t)})(YP=d.GlobalSecondaryIndexInfo||(d.GlobalSecondaryIndexInfo={}));var JP;(function(e){e.filterSensitiveLog=t=>o({},t)})(JP=d.LocalSecondaryIndexInfo||(d.LocalSecondaryIndexInfo={}));var QP;(function(e){e.filterSensitiveLog=t=>o({},t)})(QP=d.SSEDescription||(d.SSEDescription={}));var XP;(function(e){e.filterSensitiveLog=t=>o({},t)})(XP=d.StreamSpecification||(d.StreamSpecification={}));var ZP;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZP=d.TimeToLiveDescription||(d.TimeToLiveDescription={}));var eq;(function(e){e.filterSensitiveLog=t=>o({},t)})(eq=d.SourceTableFeatureDetails||(d.SourceTableFeatureDetails={}));var tq;(function(e){e.filterSensitiveLog=t=>o({},t)})(tq=d.BackupDescription||(d.BackupDescription={}));var nq;(function(e){e.filterSensitiveLog=t=>o({},t)})(nq=d.BackupInUseException||(d.BackupInUseException={}));var rq;(function(e){e.filterSensitiveLog=t=>o({},t)})(rq=d.BackupNotFoundException||(d.BackupNotFoundException={}));var sq;(function(e){e.filterSensitiveLog=t=>o({},t)})(sq=d.BackupSummary||(d.BackupSummary={}));var iq;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(iq=d.BackupTypeFilter||(d.BackupTypeFilter={}));var aq;(function(e){e.AccessDenied="AccessDenied",e.ConditionalCheckFailed="ConditionalCheckFailed",e.DuplicateItem="DuplicateItem",e.InternalServerError="InternalServerError",e.ItemCollectionSizeLimitExceeded="ItemCollectionSizeLimitExceeded",e.ProvisionedThroughputExceeded="ProvisionedThroughputExceeded",e.RequestLimitExceeded="RequestLimitExceeded",e.ResourceNotFound="ResourceNotFound",e.ThrottlingError="ThrottlingError",e.TransactionConflict="TransactionConflict",e.ValidationError="ValidationError"})(aq=d.BatchStatementErrorCodeEnum||(d.BatchStatementErrorCodeEnum={}));var oq;(function(e){e.filterSensitiveLog=t=>o({},t)})(oq=d.BatchStatementError||(d.BatchStatementError={}));var cq;(function(e){e.filterSensitiveLog=t=>o({},t)})(cq=d.InternalServerError||(d.InternalServerError={}));var lq;(function(e){e.filterSensitiveLog=t=>o({},t)})(lq=d.RequestLimitExceeded||(d.RequestLimitExceeded={}));var dq;(function(e){e.filterSensitiveLog=t=>o({},t)})(dq=d.Capacity||(d.Capacity={}));var uq;(function(e){e.filterSensitiveLog=t=>o({},t)})(uq=d.ConsumedCapacity||(d.ConsumedCapacity={}));var mq;(function(e){e.filterSensitiveLog=t=>o({},t)})(mq=d.InvalidEndpointException||(d.InvalidEndpointException={}));var fq;(function(e){e.filterSensitiveLog=t=>o({},t)})(fq=d.ProvisionedThroughputExceededException||(d.ProvisionedThroughputExceededException={}));var pq;(function(e){e.filterSensitiveLog=t=>o({},t)})(pq=d.ResourceNotFoundException||(d.ResourceNotFoundException={}));var hq;(function(e){e.filterSensitiveLog=t=>o({},t)})(hq=d.ItemCollectionSizeLimitExceededException||(d.ItemCollectionSizeLimitExceededException={}));var yq;(function(e){e.filterSensitiveLog=t=>o({},t)})(yq=d.BillingModeSummary||(d.BillingModeSummary={}));var gq;(function(e){e.filterSensitiveLog=t=>o({},t)})(gq=d.ConditionalCheckFailedException||(d.ConditionalCheckFailedException={}));var _q;(function(e){e.filterSensitiveLog=t=>o({},t)})(_q=d.PointInTimeRecoveryDescription||(d.PointInTimeRecoveryDescription={}));var wq;(function(e){e.filterSensitiveLog=t=>o({},t)})(wq=d.ContinuousBackupsDescription||(d.ContinuousBackupsDescription={}));var bq;(function(e){e.filterSensitiveLog=t=>o({},t)})(bq=d.ContinuousBackupsUnavailableException||(d.ContinuousBackupsUnavailableException={}));var Sq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Sq=d.ContributorInsightsSummary||(d.ContributorInsightsSummary={}));var vq;(function(e){e.filterSensitiveLog=t=>o({},t)})(vq=d.CreateBackupInput||(d.CreateBackupInput={}));var Eq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Eq=d.CreateBackupOutput||(d.CreateBackupOutput={}));var Aq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Aq=d.LimitExceededException||(d.LimitExceededException={}));var Cq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Cq=d.TableInUseException||(d.TableInUseException={}));var Tq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Tq=d.TableNotFoundException||(d.TableNotFoundException={}));var xq;(function(e){e.filterSensitiveLog=t=>o({},t)})(xq=d.CreateGlobalSecondaryIndexAction||(d.CreateGlobalSecondaryIndexAction={}));var Iq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Iq=d.Replica||(d.Replica={}));var Rq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Rq=d.CreateGlobalTableInput||(d.CreateGlobalTableInput={}));var kq;(function(e){e.filterSensitiveLog=t=>o({},t)})(kq=d.ProvisionedThroughputOverride||(d.ProvisionedThroughputOverride={}));var Dq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Dq=d.ReplicaGlobalSecondaryIndexDescription||(d.ReplicaGlobalSecondaryIndexDescription={}));var Nq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Nq=d.ReplicaDescription||(d.ReplicaDescription={}));var Lq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Lq=d.GlobalTableDescription||(d.GlobalTableDescription={}));var Pq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Pq=d.CreateGlobalTableOutput||(d.CreateGlobalTableOutput={}));var qq;(function(e){e.filterSensitiveLog=t=>o({},t)})(qq=d.GlobalTableAlreadyExistsException||(d.GlobalTableAlreadyExistsException={}));var Mq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Mq=d.CreateReplicaAction||(d.CreateReplicaAction={}));var Oq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Oq=d.ReplicaGlobalSecondaryIndex||(d.ReplicaGlobalSecondaryIndex={}));var zq;(function(e){e.filterSensitiveLog=t=>o({},t)})(zq=d.CreateReplicationGroupMemberAction||(d.CreateReplicationGroupMemberAction={}));var jq;(function(e){e.filterSensitiveLog=t=>o({},t)})(jq=d.GlobalSecondaryIndex||(d.GlobalSecondaryIndex={}));var Uq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Uq=d.LocalSecondaryIndex||(d.LocalSecondaryIndex={}));var Bq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Bq=d.SSESpecification||(d.SSESpecification={}));var Fq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Fq=d.Tag||(d.Tag={}));var Gq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Gq=d.CreateTableInput||(d.CreateTableInput={}));var $q;(function(e){e.filterSensitiveLog=t=>o({},t)})($q=d.ProvisionedThroughputDescription||(d.ProvisionedThroughputDescription={}));var Kq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Kq=d.GlobalSecondaryIndexDescription||(d.GlobalSecondaryIndexDescription={}));var Vq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Vq=d.LocalSecondaryIndexDescription||(d.LocalSecondaryIndexDescription={}));var Wq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Wq=d.RestoreSummary||(d.RestoreSummary={}));var Hq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Hq=d.TableDescription||(d.TableDescription={}));var Yq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Yq=d.CreateTableOutput||(d.CreateTableOutput={}));var Jq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Jq=d.ResourceInUseException||(d.ResourceInUseException={}));var Qq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Qq=d.DeleteBackupInput||(d.DeleteBackupInput={}));var Xq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Xq=d.DeleteBackupOutput||(d.DeleteBackupOutput={}));var Zq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Zq=d.DeleteGlobalSecondaryIndexAction||(d.DeleteGlobalSecondaryIndexAction={}));var eM;(function(e){e.filterSensitiveLog=t=>o({},t)})(eM=d.TransactionConflictException||(d.TransactionConflictException={}));var tM;(function(e){e.filterSensitiveLog=t=>o({},t)})(tM=d.DeleteReplicaAction||(d.DeleteReplicaAction={}));var nM;(function(e){e.filterSensitiveLog=t=>o({},t)})(nM=d.DeleteReplicationGroupMemberAction||(d.DeleteReplicationGroupMemberAction={}));var rM;(function(e){e.filterSensitiveLog=t=>o({},t)})(rM=d.DeleteTableInput||(d.DeleteTableInput={}));var sM;(function(e){e.filterSensitiveLog=t=>o({},t)})(sM=d.DeleteTableOutput||(d.DeleteTableOutput={}));var iM;(function(e){e.filterSensitiveLog=t=>o({},t)})(iM=d.DescribeBackupInput||(d.DescribeBackupInput={}));var aM;(function(e){e.filterSensitiveLog=t=>o({},t)})(aM=d.DescribeBackupOutput||(d.DescribeBackupOutput={}));var oM;(function(e){e.filterSensitiveLog=t=>o({},t)})(oM=d.DescribeContinuousBackupsInput||(d.DescribeContinuousBackupsInput={}));var cM;(function(e){e.filterSensitiveLog=t=>o({},t)})(cM=d.DescribeContinuousBackupsOutput||(d.DescribeContinuousBackupsOutput={}));var lM;(function(e){e.filterSensitiveLog=t=>o({},t)})(lM=d.DescribeContributorInsightsInput||(d.DescribeContributorInsightsInput={}));var dM;(function(e){e.filterSensitiveLog=t=>o({},t)})(dM=d.FailureException||(d.FailureException={}));var uM;(function(e){e.filterSensitiveLog=t=>o({},t)})(uM=d.DescribeContributorInsightsOutput||(d.DescribeContributorInsightsOutput={}));var mM;(function(e){e.filterSensitiveLog=t=>o({},t)})(mM=d.DescribeEndpointsRequest||(d.DescribeEndpointsRequest={}));var fM;(function(e){e.filterSensitiveLog=t=>o({},t)})(fM=d.Endpoint||(d.Endpoint={}));var pM;(function(e){e.filterSensitiveLog=t=>o({},t)})(pM=d.DescribeEndpointsResponse||(d.DescribeEndpointsResponse={}));var hM;(function(e){e.filterSensitiveLog=t=>o({},t)})(hM=d.DescribeExportInput||(d.DescribeExportInput={}));var yM;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(yM=d.ExportFormat||(d.ExportFormat={}));var gM;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(gM=d.ExportStatus||(d.ExportStatus={}));var _M;(function(e){e.filterSensitiveLog=t=>o({},t)})(_M=d.ExportDescription||(d.ExportDescription={}));var wM;(function(e){e.filterSensitiveLog=t=>o({},t)})(wM=d.DescribeExportOutput||(d.DescribeExportOutput={}));var bM;(function(e){e.filterSensitiveLog=t=>o({},t)})(bM=d.ExportNotFoundException||(d.ExportNotFoundException={}));var SM;(function(e){e.filterSensitiveLog=t=>o({},t)})(SM=d.DescribeGlobalTableInput||(d.DescribeGlobalTableInput={}));var vM;(function(e){e.filterSensitiveLog=t=>o({},t)})(vM=d.DescribeGlobalTableOutput||(d.DescribeGlobalTableOutput={}));var EM;(function(e){e.filterSensitiveLog=t=>o({},t)})(EM=d.GlobalTableNotFoundException||(d.GlobalTableNotFoundException={}));var AM;(function(e){e.filterSensitiveLog=t=>o({},t)})(AM=d.DescribeGlobalTableSettingsInput||(d.DescribeGlobalTableSettingsInput={}));var CM;(function(e){e.filterSensitiveLog=t=>o({},t)})(CM=d.ReplicaGlobalSecondaryIndexSettingsDescription||(d.ReplicaGlobalSecondaryIndexSettingsDescription={}));var TM;(function(e){e.filterSensitiveLog=t=>o({},t)})(TM=d.ReplicaSettingsDescription||(d.ReplicaSettingsDescription={}));var xM;(function(e){e.filterSensitiveLog=t=>o({},t)})(xM=d.DescribeGlobalTableSettingsOutput||(d.DescribeGlobalTableSettingsOutput={}));var IM;(function(e){e.filterSensitiveLog=t=>o({},t)})(IM=d.DescribeKinesisStreamingDestinationInput||(d.DescribeKinesisStreamingDestinationInput={}));var RM;(function(e){e.filterSensitiveLog=t=>o({},t)})(RM=d.KinesisDataStreamDestination||(d.KinesisDataStreamDestination={}));var kM;(function(e){e.filterSensitiveLog=t=>o({},t)})(kM=d.DescribeKinesisStreamingDestinationOutput||(d.DescribeKinesisStreamingDestinationOutput={}));var DM;(function(e){e.filterSensitiveLog=t=>o({},t)})(DM=d.DescribeLimitsInput||(d.DescribeLimitsInput={}));var NM;(function(e){e.filterSensitiveLog=t=>o({},t)})(NM=d.DescribeLimitsOutput||(d.DescribeLimitsOutput={}));var LM;(function(e){e.filterSensitiveLog=t=>o({},t)})(LM=d.DescribeTableInput||(d.DescribeTableInput={}));var PM;(function(e){e.filterSensitiveLog=t=>o({},t)})(PM=d.DescribeTableOutput||(d.DescribeTableOutput={}));var qM;(function(e){e.filterSensitiveLog=t=>o({},t)})(qM=d.DescribeTableReplicaAutoScalingInput||(d.DescribeTableReplicaAutoScalingInput={}));var MM;(function(e){e.filterSensitiveLog=t=>o({},t)})(MM=d.ReplicaGlobalSecondaryIndexAutoScalingDescription||(d.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var OM;(function(e){e.filterSensitiveLog=t=>o({},t)})(OM=d.ReplicaAutoScalingDescription||(d.ReplicaAutoScalingDescription={}));var zM;(function(e){e.filterSensitiveLog=t=>o({},t)})(zM=d.TableAutoScalingDescription||(d.TableAutoScalingDescription={}));var jM;(function(e){e.filterSensitiveLog=t=>o({},t)})(jM=d.DescribeTableReplicaAutoScalingOutput||(d.DescribeTableReplicaAutoScalingOutput={}));var UM;(function(e){e.filterSensitiveLog=t=>o({},t)})(UM=d.DescribeTimeToLiveInput||(d.DescribeTimeToLiveInput={}));var BM;(function(e){e.filterSensitiveLog=t=>o({},t)})(BM=d.DescribeTimeToLiveOutput||(d.DescribeTimeToLiveOutput={}));var FM;(function(e){e.filterSensitiveLog=t=>o({},t)})(FM=d.KinesisStreamingDestinationInput||(d.KinesisStreamingDestinationInput={}));var GM;(function(e){e.filterSensitiveLog=t=>o({},t)})(GM=d.KinesisStreamingDestinationOutput||(d.KinesisStreamingDestinationOutput={}));var $M;(function(e){e.filterSensitiveLog=t=>o({},t)})($M=d.DuplicateItemException||(d.DuplicateItemException={}));var KM;(function(e){e.filterSensitiveLog=t=>o({},t)})(KM=d.IdempotentParameterMismatchException||(d.IdempotentParameterMismatchException={}));var VM;(function(e){e.filterSensitiveLog=t=>o({},t)})(VM=d.TransactionInProgressException||(d.TransactionInProgressException={}));var WM;(function(e){e.filterSensitiveLog=t=>o({},t)})(WM=d.ExportConflictException||(d.ExportConflictException={}));var HM;(function(e){e.filterSensitiveLog=t=>o({},t)})(HM=d.ExportTableToPointInTimeInput||(d.ExportTableToPointInTimeInput={}));var YM;(function(e){e.filterSensitiveLog=t=>o({},t)})(YM=d.ExportTableToPointInTimeOutput||(d.ExportTableToPointInTimeOutput={}));var JM;(function(e){e.filterSensitiveLog=t=>o({},t)})(JM=d.InvalidExportTimeException||(d.InvalidExportTimeException={}));var QM;(function(e){e.filterSensitiveLog=t=>o({},t)})(QM=d.PointInTimeRecoveryUnavailableException||(d.PointInTimeRecoveryUnavailableException={}));var XM;(function(e){e.filterSensitiveLog=t=>o({},t)})(XM=d.ListBackupsInput||(d.ListBackupsInput={}));var ZM;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZM=d.ListBackupsOutput||(d.ListBackupsOutput={}));var eO;(function(e){e.filterSensitiveLog=t=>o({},t)})(eO=d.ListContributorInsightsInput||(d.ListContributorInsightsInput={}));var tO;(function(e){e.filterSensitiveLog=t=>o({},t)})(tO=d.ListContributorInsightsOutput||(d.ListContributorInsightsOutput={}));var nO;(function(e){e.filterSensitiveLog=t=>o({},t)})(nO=d.ListExportsInput||(d.ListExportsInput={}));var rO;(function(e){e.filterSensitiveLog=t=>o({},t)})(rO=d.ExportSummary||(d.ExportSummary={}));var sO;(function(e){e.filterSensitiveLog=t=>o({},t)})(sO=d.ListExportsOutput||(d.ListExportsOutput={}));var iO;(function(e){e.filterSensitiveLog=t=>o({},t)})(iO=d.ListGlobalTablesInput||(d.ListGlobalTablesInput={}));var aO;(function(e){e.filterSensitiveLog=t=>o({},t)})(aO=d.GlobalTable||(d.GlobalTable={}));var oO;(function(e){e.filterSensitiveLog=t=>o({},t)})(oO=d.ListGlobalTablesOutput||(d.ListGlobalTablesOutput={}));var cO;(function(e){e.filterSensitiveLog=t=>o({},t)})(cO=d.ListTablesInput||(d.ListTablesInput={}));var lO;(function(e){e.filterSensitiveLog=t=>o({},t)})(lO=d.ListTablesOutput||(d.ListTablesOutput={}));var dO;(function(e){e.filterSensitiveLog=t=>o({},t)})(dO=d.ListTagsOfResourceInput||(d.ListTagsOfResourceInput={}));var uO;(function(e){e.filterSensitiveLog=t=>o({},t)})(uO=d.ListTagsOfResourceOutput||(d.ListTagsOfResourceOutput={}));var mO;(function(e){e.filterSensitiveLog=t=>o({},t)})(mO=d.RestoreTableFromBackupInput||(d.RestoreTableFromBackupInput={}));var fO;(function(e){e.filterSensitiveLog=t=>o({},t)})(fO=d.RestoreTableFromBackupOutput||(d.RestoreTableFromBackupOutput={}));var pO;(function(e){e.filterSensitiveLog=t=>o({},t)})(pO=d.TableAlreadyExistsException||(d.TableAlreadyExistsException={}));var hO;(function(e){e.filterSensitiveLog=t=>o({},t)})(hO=d.InvalidRestoreTimeException||(d.InvalidRestoreTimeException={}));var yO;(function(e){e.filterSensitiveLog=t=>o({},t)})(yO=d.RestoreTableToPointInTimeInput||(d.RestoreTableToPointInTimeInput={}));var gO;(function(e){e.filterSensitiveLog=t=>o({},t)})(gO=d.RestoreTableToPointInTimeOutput||(d.RestoreTableToPointInTimeOutput={}));var _O;(function(e){e.filterSensitiveLog=t=>o({},t)})(_O=d.TagResourceInput||(d.TagResourceInput={}));var wO;(function(e){e.filterSensitiveLog=t=>o({},t)})(wO=d.UntagResourceInput||(d.UntagResourceInput={}));var bO;(function(e){e.filterSensitiveLog=t=>o({},t)})(bO=d.PointInTimeRecoverySpecification||(d.PointInTimeRecoverySpecification={}));var SO;(function(e){e.filterSensitiveLog=t=>o({},t)})(SO=d.UpdateContinuousBackupsInput||(d.UpdateContinuousBackupsInput={}));var vO;(function(e){e.filterSensitiveLog=t=>o({},t)})(vO=d.UpdateContinuousBackupsOutput||(d.UpdateContinuousBackupsOutput={}));var EO;(function(e){e.filterSensitiveLog=t=>o({},t)})(EO=d.UpdateContributorInsightsInput||(d.UpdateContributorInsightsInput={}));var AO;(function(e){e.filterSensitiveLog=t=>o({},t)})(AO=d.UpdateContributorInsightsOutput||(d.UpdateContributorInsightsOutput={}));var CO;(function(e){e.filterSensitiveLog=t=>o({},t)})(CO=d.ReplicaAlreadyExistsException||(d.ReplicaAlreadyExistsException={}));var TO;(function(e){e.filterSensitiveLog=t=>o({},t)})(TO=d.ReplicaNotFoundException||(d.ReplicaNotFoundException={}));var xO;(function(e){e.filterSensitiveLog=t=>o({},t)})(xO=d.ReplicaUpdate||(d.ReplicaUpdate={}));var IO;(function(e){e.filterSensitiveLog=t=>o({},t)})(IO=d.UpdateGlobalTableInput||(d.UpdateGlobalTableInput={}));var RO;(function(e){e.filterSensitiveLog=t=>o({},t)})(RO=d.UpdateGlobalTableOutput||(d.UpdateGlobalTableOutput={}));var kO;(function(e){e.filterSensitiveLog=t=>o({},t)})(kO=d.IndexNotFoundException||(d.IndexNotFoundException={}));var DO;(function(e){e.filterSensitiveLog=t=>o({},t)})(DO=d.GlobalTableGlobalSecondaryIndexSettingsUpdate||(d.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var NO;(function(e){e.filterSensitiveLog=t=>o({},t)})(NO=d.ReplicaGlobalSecondaryIndexSettingsUpdate||(d.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var LO;(function(e){e.filterSensitiveLog=t=>o({},t)})(LO=d.ReplicaSettingsUpdate||(d.ReplicaSettingsUpdate={}));var PO;(function(e){e.filterSensitiveLog=t=>o({},t)})(PO=d.UpdateGlobalTableSettingsInput||(d.UpdateGlobalTableSettingsInput={}));var qO;(function(e){e.filterSensitiveLog=t=>o({},t)})(qO=d.UpdateGlobalTableSettingsOutput||(d.UpdateGlobalTableSettingsOutput={}));var MO;(function(e){e.filterSensitiveLog=t=>o({},t)})(MO=d.UpdateGlobalSecondaryIndexAction||(d.UpdateGlobalSecondaryIndexAction={}));var OO;(function(e){e.filterSensitiveLog=t=>o({},t)})(OO=d.GlobalSecondaryIndexUpdate||(d.GlobalSecondaryIndexUpdate={}));var zO;(function(e){e.filterSensitiveLog=t=>o({},t)})(zO=d.UpdateReplicationGroupMemberAction||(d.UpdateReplicationGroupMemberAction={}));var jO;(function(e){e.filterSensitiveLog=t=>o({},t)})(jO=d.ReplicationGroupUpdate||(d.ReplicationGroupUpdate={}));var UO;(function(e){e.filterSensitiveLog=t=>o({},t)})(UO=d.UpdateTableInput||(d.UpdateTableInput={}));var BO;(function(e){e.filterSensitiveLog=t=>o({},t)})(BO=d.UpdateTableOutput||(d.UpdateTableOutput={}));var FO;(function(e){e.filterSensitiveLog=t=>o({},t)})(FO=d.GlobalSecondaryIndexAutoScalingUpdate||(d.GlobalSecondaryIndexAutoScalingUpdate={}));var GO;(function(e){e.filterSensitiveLog=t=>o({},t)})(GO=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(d.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var $O;(function(e){e.filterSensitiveLog=t=>o({},t)})($O=d.ReplicaAutoScalingUpdate||(d.ReplicaAutoScalingUpdate={}));var KO;(function(e){e.filterSensitiveLog=t=>o({},t)})(KO=d.UpdateTableReplicaAutoScalingInput||(d.UpdateTableReplicaAutoScalingInput={}));var VO;(function(e){e.filterSensitiveLog=t=>o({},t)})(VO=d.UpdateTableReplicaAutoScalingOutput||(d.UpdateTableReplicaAutoScalingOutput={}));var WO;(function(e){e.filterSensitiveLog=t=>o({},t)})(WO=d.TimeToLiveSpecification||(d.TimeToLiveSpecification={}));var HO;(function(e){e.filterSensitiveLog=t=>o({},t)})(HO=d.UpdateTimeToLiveInput||(d.UpdateTimeToLiveInput={}));var YO;(function(e){e.filterSensitiveLog=t=>o({},t)})(YO=d.UpdateTimeToLiveOutput||(d.UpdateTimeToLiveOutput={}));var re;(function(e){e.visit=(t,n)=>t.S!==void 0?n.S(t.S):t.N!==void 0?n.N(t.N):t.B!==void 0?n.B(t.B):t.SS!==void 0?n.SS(t.SS):t.NS!==void 0?n.NS(t.NS):t.BS!==void 0?n.BS(t.BS):t.M!==void 0?n.M(t.M):t.L!==void 0?n.L(t.L):t.NULL!==void 0?n.NULL(t.NULL):t.BOOL!==void 0?n.BOOL(t.BOOL):n._(t.$unknown[0],t.$unknown[1]),e.filterSensitiveLog=t=>{if(t.S!==void 0)return{S:t.S};if(t.N!==void 0)return{N:t.N};if(t.B!==void 0)return{B:t.B};if(t.SS!==void 0)return{SS:t.SS};if(t.NS!==void 0)return{NS:t.NS};if(t.BS!==void 0)return{BS:t.BS};if(t.M!==void 0)return{M:Object.entries(t.M).reduce((n,[r,s])=>u(o({},n),{[r]:e.filterSensitiveLog(s)}),{})};if(t.L!==void 0)return{L:t.L.map(n=>e.filterSensitiveLog(n))};if(t.NULL!==void 0)return{NULL:t.NULL};if(t.BOOL!==void 0)return{BOOL:t.BOOL};if(t.$unknown!==void 0)return{[t.$unknown[0]]:"UNKNOWN"}}})(re=d.AttributeValue||(d.AttributeValue={}));var uw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Value&&{Value:re.filterSensitiveLog(t.Value)})})(uw=d.AttributeValueUpdate||(d.AttributeValueUpdate={}));var mw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(mw=d.BatchStatementRequest||(d.BatchStatementRequest={}));var fw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(fw=d.BatchStatementResponse||(d.BatchStatementResponse={}));var pw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(pw=d.CancellationReason||(d.CancellationReason={}));var La;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>re.filterSensitiveLog(n))})})(La=d.Condition||(d.Condition={}));var hw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(hw=d.DeleteRequest||(d.DeleteRequest={}));var JO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(JO=d.ExecuteStatementInput||(d.ExecuteStatementInput={}));var yw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(yw=d.Get||(d.Get={}));var QO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(QO=d.GetItemInput||(d.GetItemInput={}));var XO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(XO=d.GetItemOutput||(d.GetItemOutput={}));var os;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(os=d.ItemCollectionMetrics||(d.ItemCollectionMetrics={}));var Tf;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Tf=d.ItemResponse||(d.ItemResponse={}));var gw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(gw=d.ParameterizedStatement||(d.ParameterizedStatement={}));var _w;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(_w=d.PutRequest||(d.PutRequest={}));var ZO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))})})(ZO=d.ExecuteStatementOutput||(d.ExecuteStatementOutput={}));var xf;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))})})(xf=d.KeysAndAttributes||(d.KeysAndAttributes={}));var ww;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Get&&{Get:yw.filterSensitiveLog(t.Get)})})(ww=d.TransactGetItem||(d.TransactGetItem={}));var ez;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Statements&&{Statements:t.Statements.map(n=>mw.filterSensitiveLog(n))})})(ez=d.BatchExecuteStatementInput||(d.BatchExecuteStatementInput={}));var tz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>fw.filterSensitiveLog(n))})})(tz=d.BatchExecuteStatementOutput||(d.BatchExecuteStatementOutput={}));var nz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>gw.filterSensitiveLog(n))})})(nz=d.ExecuteTransactionInput||(d.ExecuteTransactionInput={}));var rz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>Tf.filterSensitiveLog(n))})})(rz=d.ExecuteTransactionOutput||(d.ExecuteTransactionOutput={}));var sz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>Tf.filterSensitiveLog(n))})})(sz=d.TransactGetItemsOutput||(d.TransactGetItemsOutput={}));var iz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.CancellationReasons&&{CancellationReasons:t.CancellationReasons.map(n=>pw.filterSensitiveLog(n))})})(iz=d.TransactionCanceledException||(d.TransactionCanceledException={}));var az;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,s])=>u(o({},n),{[r]:xf.filterSensitiveLog(s)}),{})})})(az=d.BatchGetItemInput||(d.BatchGetItemInput={}));var Pa;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Value&&{Value:re.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>re.filterSensitiveLog(n))})})(Pa=d.ExpectedAttributeValue||(d.ExpectedAttributeValue={}));var oz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>ww.filterSensitiveLog(n))})})(oz=d.TransactGetItemsInput||(d.TransactGetItemsInput={}));var cz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>os.filterSensitiveLog(i))}),{})})})(cz=d.TransactWriteItemsOutput||(d.TransactWriteItemsOutput={}));var bw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(bw=d.ConditionCheck||(d.ConditionCheck={}));var Sw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Sw=d.Delete||(d.Delete={}));var vw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(vw=d.Put||(d.Put={}));var Ew;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Ew=d.Update||(d.Update={}));var lz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:os.filterSensitiveLog(t.ItemCollectionMetrics)})})(lz=d.DeleteItemOutput||(d.DeleteItemOutput={}));var dz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:os.filterSensitiveLog(t.ItemCollectionMetrics)})})(dz=d.PutItemOutput||(d.PutItemOutput={}));var uz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(uz=d.QueryOutput||(d.QueryOutput={}));var mz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(mz=d.ScanOutput||(d.ScanOutput={}));var fz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:os.filterSensitiveLog(t.ItemCollectionMetrics)})})(fz=d.UpdateItemOutput||(d.UpdateItemOutput={}));var If;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.PutRequest&&{PutRequest:_w.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:hw.filterSensitiveLog(t.DeleteRequest)})})(If=d.WriteRequest||(d.WriteRequest={}));var pz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>Object.entries(i).reduce((a,[c,l])=>u(o({},a),{[c]:re.filterSensitiveLog(l)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,s])=>u(o({},n),{[r]:xf.filterSensitiveLog(s)}),{})})})(pz=d.BatchGetItemOutput||(d.BatchGetItemOutput={}));var hz;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(hz=d.ScanInput||(d.ScanInput={}));var yz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>If.filterSensitiveLog(i))}),{})})})(yz=d.BatchWriteItemInput||(d.BatchWriteItemInput={}));var gz;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(gz=d.DeleteItemInput||(d.DeleteItemInput={}));var _z;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(_z=d.PutItemInput||(d.PutItemInput={}));var wz;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(wz=d.QueryInput||(d.QueryInput={}));var bz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>If.filterSensitiveLog(i))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>os.filterSensitiveLog(i))}),{})})})(bz=d.BatchWriteItemOutput||(d.BatchWriteItemOutput={}));var Sz;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,s])=>u(o({},n),{[r]:uw.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Sz=d.UpdateItemInput||(d.UpdateItemInput={}));var Aw;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.ConditionCheck&&{ConditionCheck:bw.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:vw.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:Sw.filterSensitiveLog(t.Delete)}),t.Update&&{Update:Ew.filterSensitiveLog(t.Update)})})(Aw=d.TransactWriteItem||(d.TransactWriteItem={}));var vz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>Aw.filterSensitiveLog(n))})})(vz=d.TransactWriteItemsInput||(d.TransactWriteItemsInput={}))});var Tw=p(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});qa.HttpResponse=void 0;var Cw=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};qa.HttpResponse=Cw});var xw=p(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.HttpRequest=void 0;var Ma=class{constructor(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:"/"}static isInstance(t){if(!t)return!1;let n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){let t=new Ma(u(o({},this),{headers:o({},this.headers)}));return t.query&&(t.query=Ez(t.query)),t}};Oa.HttpRequest=Ma;function Ez(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return u(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var Rw=p(Iw=>{"use strict";Object.defineProperty(Iw,"__esModule",{value:!0})});var kw=p(za=>{"use strict";Object.defineProperty(za,"__esModule",{value:!0});za.isValidHostname=void 0;function Az(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}za.isValidHostname=Az});var Dt=p(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});var ja=he();ja.__exportStar(Tw(),cs);ja.__exportStar(xw(),cs);ja.__exportStar(Rw(),cs);ja.__exportStar(kw(),cs)});var Lw=p(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.constructStack=void 0;var Cz=()=>{let e=[],t=[],n=new Set,r=f=>f.sort((g,h)=>Dw[h.step]-Dw[g.step]||Nw[h.priority||"normal"]-Nw[g.priority||"normal"]),s=f=>{let g=!1,h=_=>_.name&&_.name===f?(g=!0,n.delete(f),!1):!0;return e=e.filter(h),t=t.filter(h),g},i=f=>{let g=!1,h=_=>_.middleware===f?(g=!0,_.name&&n.delete(_.name),!1):!0;return e=e.filter(h),t=t.filter(h),g},a=f=>(e.forEach(g=>{f.add(g.middleware,o({},g))}),t.forEach(g=>{f.addRelativeTo(g.middleware,o({},g))}),f),c=f=>{let g=[];return f.before.forEach(h=>{h.before.length===0&&h.after.length===0?g.push(h):g.push(...c(h))}),g.push(f),f.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?g.push(h):g.push(...c(h))}),g},l=()=>{let f=[],g=[],h={};return e.forEach(b=>{let E=u(o({},b),{before:[],after:[]});E.name&&(h[E.name]=E),f.push(E)}),t.forEach(b=>{let E=u(o({},b),{before:[],after:[]});E.name&&(h[E.name]=E),g.push(E)}),g.forEach(b=>{if(b.toMiddleware){let E=h[b.toMiddleware];if(E===void 0)throw new Error(`${b.toMiddleware} is not found when adding ${b.name||"anonymous"} middleware ${b.relation} ${b.toMiddleware}`);b.relation==="after"&&E.after.push(b),b.relation==="before"&&E.before.push(b)}}),r(f).map(c).reduce((b,E)=>(b.push(...E),b),[]).map(b=>b.middleware)},m={add:(f,g={})=>{let{name:h,override:_}=g,b=o({step:"initialize",priority:"normal",middleware:f},g);if(h){if(n.has(h)){if(!_)throw new Error(`Duplicate middleware name '${h}'`);let E=e.findIndex(k=>k.name===h),D=e[E];if(D.step!==b.step||D.priority!==b.priority)throw new Error(`"${h}" middleware with ${D.priority} priority in ${D.step} step cannot be overridden by same-name middleware with ${b.priority} priority in ${b.step} step.`);e.splice(E,1)}n.add(h)}e.push(b)},addRelativeTo:(f,g)=>{let{name:h,override:_}=g,b=o({middleware:f},g);if(h){if(n.has(h)){if(!_)throw new Error(`Duplicate middleware name '${h}'`);let E=t.findIndex(k=>k.name===h),D=t[E];if(D.toMiddleware!==b.toMiddleware||D.relation!==b.relation)throw new Error(`"${h}" middleware ${D.relation} "${D.toMiddleware}" middleware cannot be overridden by same-name middleware ${b.relation} "${b.toMiddleware}" middleware.`);t.splice(E,1)}n.add(h)}t.push(b)},clone:()=>a(ls.constructStack()),use:f=>{f.applyToStack(m)},remove:f=>typeof f=="string"?s(f):i(f),removeByTag:f=>{let g=!1,h=_=>{let{tags:b,name:E}=_;return b&&b.includes(f)?(E&&n.delete(E),g=!0,!1):!0};return e=e.filter(h),t=t.filter(h),g},concat:f=>{let g=a(ls.constructStack());return g.use(f),g},applyToStack:a,resolve:(f,g)=>{for(let h of l().reverse())f=h(f,g);return f}};return m};ls.constructStack=Cz;var Dw={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Nw={high:3,normal:2,low:1}});var kf=p(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var Tz=he();Tz.__exportStar(Lw(),Rf)});var qw=p(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.Client=void 0;var xz=kf(),Pw=class{constructor(t){this.middlewareStack=xz.constructStack(),this.config=t}send(t,n,r){let s=typeof n!="function"?n:void 0,i=typeof n=="function"?n:r,a=t.resolveMiddleware(this.middlewareStack,this.config,s);if(i)a(t).then(c=>i(null,c.output),c=>i(c)).catch(()=>{});else return a(t).then(c=>c.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};Ua.Client=Pw});var Ow=p(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.Command=void 0;var Iz=kf(),Mw=class{constructor(){this.middlewareStack=Iz.constructStack()}};Ba.Command=Mw});var jw=p(zw=>{"use strict";Object.defineProperty(zw,"__esModule",{value:!0})});var Bw=p(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0})});var Fw=p(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.extendedEncodeURIComponent=void 0;function Rz(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}Fa.extendedEncodeURIComponent=Rz});var Gw=p(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.getArrayIfSingleItem=void 0;var kz=e=>Array.isArray(e)?e:[e];Ga.getArrayIfSingleItem=kz});var $w=p(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.getValueFromTextNode=void 0;var Dz=e=>{let t="#text";for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=ui.getValueFromTextNode(e[n]));return e};ui.getValueFromTextNode=Dz});var Kw=p(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.LazyJsonString=tn.StringWrapper=void 0;var Nz=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};tn.StringWrapper=Nz;tn.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:tn.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(tn.StringWrapper,String);var ds=class extends tn.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof ds?t:t instanceof String||typeof t=="string"?new ds(t):new ds(JSON.stringify(t))}};tn.LazyJsonString=ds});var Vw=p(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.handleFloat=Nt.expectString=Nt.expectNumber=Nt.expectBoolean=Nt.parseBoolean=void 0;var Lz=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};Nt.parseBoolean=Lz;var Pz=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};Nt.expectBoolean=Pz;var qz=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};Nt.expectNumber=qz;var Mz=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};Nt.expectString=Mz;var Oz=e=>{if(typeof e=="string")switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}return Nt.expectNumber(e)};Nt.handleFloat=Oz});var Ww=p($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.serializeFloat=void 0;var zz=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};$a.serializeFloat=zz});var Hw=p(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.dateToUtcString=void 0;var jz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Uz=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Bz(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),s=e.getUTCDate(),i=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,m=i<10?`0${i}`:`${i}`,f=a<10?`0${a}`:`${a}`,g=c<10?`0${c}`:`${c}`;return`${jz[r]}, ${l} ${Uz[n]} ${t} ${m}:${f}:${g} GMT`}Ka.dateToUtcString=Bz});var Yw=p(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.splitEvery=void 0;function Fz(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");let r=e.split(t);if(n===1)return r;let s=[],i="";for(let a=0;a<r.length;a++)i===""?i=r[a]:i+=t+r[a],(a+1)%n==0&&(s.push(i),i="");return i!==""&&s.push(i),s}Va.splitEvery=Fz});var Jw=p(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.SENSITIVE_STRING=void 0;Wa.SENSITIVE_STRING="***SensitiveInformation***"});var Xw=p(Qw=>{"use strict";Object.defineProperty(Qw,"__esModule",{value:!0})});var eb=p(Zw=>{"use strict";Object.defineProperty(Zw,"__esModule",{value:!0})});var M=p(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var dt=he();dt.__exportStar(qw(),Ye);dt.__exportStar(Ow(),Ye);dt.__exportStar(jw(),Ye);dt.__exportStar(Bw(),Ye);dt.__exportStar(Fw(),Ye);dt.__exportStar(Gw(),Ye);dt.__exportStar($w(),Ye);dt.__exportStar(Kw(),Ye);dt.__exportStar(Vw(),Ye);dt.__exportStar(Ww(),Ye);dt.__exportStar(Hw(),Ye);dt.__exportStar(Yw(),Ye);dt.__exportStar(Jw(),Ye);dt.__exportStar(Xw(),Ye);dt.__exportStar(eb(),Ye)});var Nf=p(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.default=Kz;var Gz=$z(require("crypto"));function $z(e){return e&&e.__esModule?e:{default:e}}var Ha=new Uint8Array(256),Ya=Ha.length;function Kz(){return Ya>Ha.length-16&&(Gz.default.randomFillSync(Ha),Ya=0),Ha.slice(Ya,Ya+=16)}});var tb=p(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var Vz=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Ja.default=Vz});var mi=p(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=void 0;var Wz=Hz(tb());function Hz(e){return e&&e.__esModule?e:{default:e}}function Yz(e){return typeof e=="string"&&Wz.default.test(e)}var Jz=Yz;Qa.default=Jz});var fi=p(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var Qz=Xz(mi());function Xz(e){return e&&e.__esModule?e:{default:e}}var Je=[];for(let e=0;e<256;++e)Je.push((e+256).toString(16).substr(1));function Zz(e,t=0){let n=(Je[e[t+0]]+Je[e[t+1]]+Je[e[t+2]]+Je[e[t+3]]+"-"+Je[e[t+4]]+Je[e[t+5]]+"-"+Je[e[t+6]]+Je[e[t+7]]+"-"+Je[e[t+8]]+Je[e[t+9]]+"-"+Je[e[t+10]]+Je[e[t+11]]+Je[e[t+12]]+Je[e[t+13]]+Je[e[t+14]]+Je[e[t+15]]).toLowerCase();if(!(0,Qz.default)(n))throw TypeError("Stringified UUID is invalid");return n}var ej=Zz;Xa.default=ej});var sb=p(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var tj=nb(Nf()),nj=nb(fi());function nb(e){return e&&e.__esModule?e:{default:e}}var rb,Lf,Pf=0,qf=0;function rj(e,t,n){let r=t&&n||0,s=t||new Array(16);e=e||{};let i=e.node||rb,a=e.clockseq!==void 0?e.clockseq:Lf;if(i==null||a==null){let h=e.random||(e.rng||tj.default)();i==null&&(i=rb=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),a==null&&(a=Lf=(h[6]<<8|h[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:qf+1,m=c-Pf+(l-qf)/1e4;if(m<0&&e.clockseq===void 0&&(a=a+1&16383),(m<0||c>Pf)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Pf=c,qf=l,Lf=a,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;s[r++]=f>>>24&255,s[r++]=f>>>16&255,s[r++]=f>>>8&255,s[r++]=f&255;let g=c/4294967296*1e4&268435455;s[r++]=g>>>8&255,s[r++]=g&255,s[r++]=g>>>24&15|16,s[r++]=g>>>16&255,s[r++]=a>>>8|128,s[r++]=a&255;for(let h=0;h<6;++h)s[r+h]=i[h];return t||(0,nj.default)(s)}var sj=rj;Za.default=sj});var Mf=p(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var ij=aj(mi());function aj(e){return e&&e.__esModule?e:{default:e}}function oj(e){if(!(0,ij.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var cj=oj;eo.default=cj});var Of=p(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=mj;Rr.URL=Rr.DNS=void 0;var lj=ib(fi()),dj=ib(Mf());function ib(e){return e&&e.__esModule?e:{default:e}}function uj(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var ab="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Rr.DNS=ab;var ob="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Rr.URL=ob;function mj(e,t,n){function r(s,i,a,c){if(typeof s=="string"&&(s=uj(s)),typeof i=="string"&&(i=(0,dj.default)(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+s.length);if(l.set(i),l.set(s,i.length),l=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,a){c=c||0;for(let m=0;m<16;++m)a[c+m]=l[m];return a}return(0,lj.default)(l)}try{r.name=e}catch(s){}return r.DNS=ab,r.URL=ob,r}});var cb=p(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=void 0;var fj=pj(require("crypto"));function pj(e){return e&&e.__esModule?e:{default:e}}function hj(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),fj.default.createHash("md5").update(e).digest()}var yj=hj;to.default=yj});var db=p(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var gj=lb(Of()),_j=lb(cb());function lb(e){return e&&e.__esModule?e:{default:e}}var wj=(0,gj.default)("v3",48,_j.default),bj=wj;no.default=bj});var mb=p(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=void 0;var Sj=ub(Nf()),vj=ub(fi());function ub(e){return e&&e.__esModule?e:{default:e}}function Ej(e,t,n){e=e||{};let r=e.random||(e.rng||Sj.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let s=0;s<16;++s)t[n+s]=r[s];return t}return(0,vj.default)(r)}var Aj=Ej;ro.default=Aj});var fb=p(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=void 0;var Cj=Tj(require("crypto"));function Tj(e){return e&&e.__esModule?e:{default:e}}function xj(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Cj.default.createHash("sha1").update(e).digest()}var Ij=xj;so.default=Ij});var hb=p(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var Rj=pb(Of()),kj=pb(fb());function pb(e){return e&&e.__esModule?e:{default:e}}var Dj=(0,Rj.default)("v5",80,kj.default),Nj=Dj;io.default=Nj});var yb=p(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var Lj="00000000-0000-0000-0000-000000000000";ao.default=Lj});var gb=p(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.default=void 0;var Pj=qj(mi());function qj(e){return e&&e.__esModule?e:{default:e}}function Mj(e){if(!(0,Pj.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var Oj=Mj;oo.default=Oj});var zf=p(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Object.defineProperty(Vt,"v1",{enumerable:!0,get:function(){return zj.default}});Object.defineProperty(Vt,"v3",{enumerable:!0,get:function(){return jj.default}});Object.defineProperty(Vt,"v4",{enumerable:!0,get:function(){return Uj.default}});Object.defineProperty(Vt,"v5",{enumerable:!0,get:function(){return Bj.default}});Object.defineProperty(Vt,"NIL",{enumerable:!0,get:function(){return Fj.default}});Object.defineProperty(Vt,"version",{enumerable:!0,get:function(){return Gj.default}});Object.defineProperty(Vt,"validate",{enumerable:!0,get:function(){return $j.default}});Object.defineProperty(Vt,"stringify",{enumerable:!0,get:function(){return Kj.default}});Object.defineProperty(Vt,"parse",{enumerable:!0,get:function(){return Vj.default}});var zj=In(sb()),jj=In(db()),Uj=In(mb()),Bj=In(hb()),Fj=In(yb()),Gj=In(gb()),$j=In(mi()),Kj=In(fi()),Vj=In(Mf());function In(e){return e&&e.__esModule?e:{default:e}}});var H=p(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.serializeAws_json1_0UpdateTimeToLiveCommand=v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v.serializeAws_json1_0UpdateTableCommand=v.serializeAws_json1_0UpdateItemCommand=v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=v.serializeAws_json1_0UpdateGlobalTableCommand=v.serializeAws_json1_0UpdateContributorInsightsCommand=v.serializeAws_json1_0UpdateContinuousBackupsCommand=v.serializeAws_json1_0UntagResourceCommand=v.serializeAws_json1_0TransactWriteItemsCommand=v.serializeAws_json1_0TransactGetItemsCommand=v.serializeAws_json1_0TagResourceCommand=v.serializeAws_json1_0ScanCommand=v.serializeAws_json1_0RestoreTableToPointInTimeCommand=v.serializeAws_json1_0RestoreTableFromBackupCommand=v.serializeAws_json1_0QueryCommand=v.serializeAws_json1_0PutItemCommand=v.serializeAws_json1_0ListTagsOfResourceCommand=v.serializeAws_json1_0ListTablesCommand=v.serializeAws_json1_0ListGlobalTablesCommand=v.serializeAws_json1_0ListExportsCommand=v.serializeAws_json1_0ListContributorInsightsCommand=v.serializeAws_json1_0ListBackupsCommand=v.serializeAws_json1_0GetItemCommand=v.serializeAws_json1_0ExportTableToPointInTimeCommand=v.serializeAws_json1_0ExecuteTransactionCommand=v.serializeAws_json1_0ExecuteStatementCommand=v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=v.serializeAws_json1_0DescribeTimeToLiveCommand=v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=v.serializeAws_json1_0DescribeTableCommand=v.serializeAws_json1_0DescribeLimitsCommand=v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=v.serializeAws_json1_0DescribeGlobalTableCommand=v.serializeAws_json1_0DescribeExportCommand=v.serializeAws_json1_0DescribeEndpointsCommand=v.serializeAws_json1_0DescribeContributorInsightsCommand=v.serializeAws_json1_0DescribeContinuousBackupsCommand=v.serializeAws_json1_0DescribeBackupCommand=v.serializeAws_json1_0DeleteTableCommand=v.serializeAws_json1_0DeleteItemCommand=v.serializeAws_json1_0DeleteBackupCommand=v.serializeAws_json1_0CreateTableCommand=v.serializeAws_json1_0CreateGlobalTableCommand=v.serializeAws_json1_0CreateBackupCommand=v.serializeAws_json1_0BatchWriteItemCommand=v.serializeAws_json1_0BatchGetItemCommand=v.serializeAws_json1_0BatchExecuteStatementCommand=void 0;v.deserializeAws_json1_0UpdateTimeToLiveCommand=v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v.deserializeAws_json1_0UpdateTableCommand=v.deserializeAws_json1_0UpdateItemCommand=v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=v.deserializeAws_json1_0UpdateGlobalTableCommand=v.deserializeAws_json1_0UpdateContributorInsightsCommand=v.deserializeAws_json1_0UpdateContinuousBackupsCommand=v.deserializeAws_json1_0UntagResourceCommand=v.deserializeAws_json1_0TransactWriteItemsCommand=v.deserializeAws_json1_0TransactGetItemsCommand=v.deserializeAws_json1_0TagResourceCommand=v.deserializeAws_json1_0ScanCommand=v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=v.deserializeAws_json1_0RestoreTableFromBackupCommand=v.deserializeAws_json1_0QueryCommand=v.deserializeAws_json1_0PutItemCommand=v.deserializeAws_json1_0ListTagsOfResourceCommand=v.deserializeAws_json1_0ListTablesCommand=v.deserializeAws_json1_0ListGlobalTablesCommand=v.deserializeAws_json1_0ListExportsCommand=v.deserializeAws_json1_0ListContributorInsightsCommand=v.deserializeAws_json1_0ListBackupsCommand=v.deserializeAws_json1_0GetItemCommand=v.deserializeAws_json1_0ExportTableToPointInTimeCommand=v.deserializeAws_json1_0ExecuteTransactionCommand=v.deserializeAws_json1_0ExecuteStatementCommand=v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DescribeTimeToLiveCommand=v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=v.deserializeAws_json1_0DescribeTableCommand=v.deserializeAws_json1_0DescribeLimitsCommand=v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=v.deserializeAws_json1_0DescribeGlobalTableCommand=v.deserializeAws_json1_0DescribeExportCommand=v.deserializeAws_json1_0DescribeEndpointsCommand=v.deserializeAws_json1_0DescribeContributorInsightsCommand=v.deserializeAws_json1_0DescribeContinuousBackupsCommand=v.deserializeAws_json1_0DescribeBackupCommand=v.deserializeAws_json1_0DeleteTableCommand=v.deserializeAws_json1_0DeleteItemCommand=v.deserializeAws_json1_0DeleteBackupCommand=v.deserializeAws_json1_0CreateTableCommand=v.deserializeAws_json1_0CreateGlobalTableCommand=v.deserializeAws_json1_0CreateBackupCommand=v.deserializeAws_json1_0BatchWriteItemCommand=v.deserializeAws_json1_0BatchGetItemCommand=v.deserializeAws_json1_0BatchExecuteStatementCommand=void 0;var Wj=W(),Hj=Dt(),w=M(),jf=zf(),Yj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(JF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchExecuteStatementCommand=Yj;var Jj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(QF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchGetItemCommand=Jj;var Qj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(eG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchWriteItemCommand=Qj;var Xj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(sG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateBackupCommand=Xj;var Zj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify(aG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateGlobalTableCommand=Zj;var eU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(lG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateTableCommand=eU;var tU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(uG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteBackupCommand=tU;var nU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(fG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteItemCommand=nU;var rU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(gG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteTableCommand=rU;var sU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(_G(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeBackupCommand=sU;var iU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(wG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=iU;var aU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(bG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContributorInsightsCommand=aU;var oU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(SG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeEndpointsCommand=oU;var cU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(vG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeExportCommand=cU;var lU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(EG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableCommand=lU;var dU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(AG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=dU;var uU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(CG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=uU;var mU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(TG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeLimitsCommand=mU;var fU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(xG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableCommand=fU;var pU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(IG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=pU;var hU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(RG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTimeToLiveCommand=hU;var yU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(Ib(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=yU;var gU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(Ib(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=gU;var _U=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(kG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteStatementCommand=_U;var wU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(DG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteTransactionCommand=wU;var bU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify(LG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=bU;var SU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(qG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0GetItemCommand=SU;var vU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(HG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListBackupsCommand=vU;var EU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(YG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListContributorInsightsCommand=EU;var AU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(JG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListExportsCommand=AU;var CU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(QG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListGlobalTablesCommand=CU;var TU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(XG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTablesCommand=TU;var xU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(ZG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTagsOfResourceCommand=xU;var IU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(l$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0PutItemCommand=IU;var RU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(u$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0QueryCommand=RU;var kU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(x$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableFromBackupCommand=kU;var DU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(I$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=DU;var NU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(R$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ScanCommand=NU;var LU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify(L$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TagResourceCommand=LU;var PU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(O$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactGetItemsCommand=PU;var qU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(U$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactWriteItemsCommand=qU;var MU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(B$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UntagResourceCommand=MU;var OU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(G$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=OU;var zU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify($$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContributorInsightsCommand=zU;var jU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify(V$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableCommand=jU;var UU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(W$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=UU;var BU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(H$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateItemCommand=BU;var FU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(J$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableCommand=FU;var GU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(Q$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=GU;var $U=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(X$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTimeToLiveCommand=$U;var KU=async(e,t)=>{if(e.statusCode>=300)return VU(e,t);let n=await L(e.body,t),r={};r=m2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchExecuteStatementCommand=KU;var VU=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},WU=async(e,t)=>{if(e.statusCode>=300)return HU(e,t);let n=await L(e.body,t),r={};r=f2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchGetItemCommand=WU;var HU=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},YU=async(e,t)=>{if(e.statusCode>=300)return JU(e,t);let n=await L(e.body,t),r={};r=_2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchWriteItemCommand=YU;var JU=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await pi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},QU=async(e,t)=>{if(e.statusCode>=300)return XU(e,t);let n=await L(e.body,t),r={};r=I2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateBackupCommand=QU;var XU=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=u(o({},await _b(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Ff(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},ZU=async(e,t)=>{if(e.statusCode>=300)return eB(e,t);let n=await L(e.body,t),r={};r=R2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateGlobalTableCommand=ZU;var eB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":r=u(o({},await UF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},tB=async(e,t)=>{if(e.statusCode>=300)return nB(e,t);let n=await L(e.body,t),r={};r=k2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateTableCommand=tB;var nB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},rB=async(e,t)=>{if(e.statusCode>=300)return sB(e,t);let n=await L(e.body,t),r={};r=D2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteBackupCommand=rB;var sB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},iB=async(e,t)=>{if(e.statusCode>=300)return aB(e,t);let n=await L(e.body,t),r={};r=N2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteItemCommand=iB;var aB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await pi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await uo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},oB=async(e,t)=>{if(e.statusCode>=300)return cB(e,t);let n=await L(e.body,t),r={};r=P2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteTableCommand=oB;var cB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},lB=async(e,t)=>{if(e.statusCode>=300)return dB(e,t);let n=await L(e.body,t),r={};r=q2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeBackupCommand=lB;var dB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},uB=async(e,t)=>{if(e.statusCode>=300)return mB(e,t);let n=await L(e.body,t),r={};r=M2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=uB;var mB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fB=async(e,t)=>{if(e.statusCode>=300)return pB(e,t);let n=await L(e.body,t),r={};r=O2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=fB;var pB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},hB=async(e,t)=>{if(e.statusCode>=300)return yB(e,t);let n=await L(e.body,t),r={};r=z2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeEndpointsCommand=hB;var yB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},gB=async(e,t)=>{if(e.statusCode>=300)return _B(e,t);let n=await L(e.body,t),r={};r=j2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeExportCommand=gB;var _B=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":r=u(o({},await jF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},wB=async(e,t)=>{if(e.statusCode>=300)return bB(e,t);let n=await L(e.body,t),r={};r=U2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeGlobalTableCommand=wB;var bB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},SB=async(e,t)=>{if(e.statusCode>=300)return vB(e,t);let n=await L(e.body,t),r={};r=B2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=SB;var vB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},EB=async(e,t)=>{if(e.statusCode>=300)return AB(e,t);let n=await L(e.body,t),r={};r=F2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=EB;var AB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},CB=async(e,t)=>{if(e.statusCode>=300)return TB(e,t);let n=await L(e.body,t),r={};r=G2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeLimitsCommand=CB;var TB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},xB=async(e,t)=>{if(e.statusCode>=300)return IB(e,t);let n=await L(e.body,t),r={};r=$2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTableCommand=xB;var IB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},RB=async(e,t)=>{if(e.statusCode>=300)return kB(e,t);let n=await L(e.body,t),r={};r=K2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=RB;var kB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},DB=async(e,t)=>{if(e.statusCode>=300)return NB(e,t);let n=await L(e.body,t),r={};r=V2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=DB;var NB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},LB=async(e,t)=>{if(e.statusCode>=300)return PB(e,t);let n=await L(e.body,t),r={};r=Ub(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=LB;var PB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},qB=async(e,t)=>{if(e.statusCode>=300)return MB(e,t);let n=await L(e.body,t),r={};r=Ub(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=qB;var MB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},OB=async(e,t)=>{if(e.statusCode>=300)return zB(e,t);let n=await L(e.body,t),r={};r=J2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExecuteStatementCommand=OB;var zB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":r=u(o({},await OF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await pi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await uo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},jB=async(e,t)=>{if(e.statusCode>=300)return UB(e,t);let n=await L(e.body,t),r={};r=Q2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExecuteTransactionCommand=jB;var UB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=u(o({},await wb(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Gf(n,t)),{name:s,$metadata:y(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=u(o({},await Eb(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},BB=async(e,t)=>{if(e.statusCode>=300)return FB(e,t);let n=await L(e.body,t),r={};r=nK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=BB;var FB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":r=u(o({},await zF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":r=u(o({},await FF(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=u(o({},await bb(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},GB=async(e,t)=>{if(e.statusCode>=300)return $B(e,t);let n=await L(e.body,t),r={};r=iK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0GetItemCommand=GB;var $B=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},KB=async(e,t)=>{if(e.statusCode>=300)return VB(e,t);let n=await L(e.body,t),r={};r=NK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListBackupsCommand=KB;var VB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},WB=async(e,t)=>{if(e.statusCode>=300)return HB(e,t);let n=await L(e.body,t),r={};r=LK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListContributorInsightsCommand=WB;var HB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},YB=async(e,t)=>{if(e.statusCode>=300)return JB(e,t);let n=await L(e.body,t),r={};r=PK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListExportsCommand=YB;var JB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},QB=async(e,t)=>{if(e.statusCode>=300)return XB(e,t);let n=await L(e.body,t),r={};r=qK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListGlobalTablesCommand=QB;var XB=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},ZB=async(e,t)=>{if(e.statusCode>=300)return eF(e,t);let n=await L(e.body,t),r={};r=MK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListTablesCommand=ZB;var eF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},tF=async(e,t)=>{if(e.statusCode>=300)return nF(e,t);let n=await L(e.body,t),r={};r=OK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListTagsOfResourceCommand=tF;var nF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},rF=async(e,t)=>{if(e.statusCode>=300)return sF(e,t);let n=await L(e.body,t),r={};r=JK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0PutItemCommand=rF;var sF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await pi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await uo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},iF=async(e,t)=>{if(e.statusCode>=300)return aF(e,t);let n=await L(e.body,t),r={};r=XK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0QueryCommand=iF;var aF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},oF=async(e,t)=>{if(e.statusCode>=300)return cF(e,t);let n=await L(e.body,t),r={};r=gV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=oF;var cF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=u(o({},await vb(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Ff(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},lF=async(e,t)=>{if(e.statusCode>=300)return dF(e,t);let n=await L(e.body,t),r={};r=_V(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=lF;var dF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":r=u(o({},await GF(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=u(o({},await bb(n,t)),{name:s,$metadata:y(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=u(o({},await vb(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Ff(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},uF=async(e,t)=>{if(e.statusCode>=300)return mF(e,t);let n=await L(e.body,t),r={};r=wV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ScanCommand=uF;var mF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fF=async(e,t)=>{if(e.statusCode>=300)return pF(e,t);await Xf(e.body,t);let n={$metadata:y(e)};return Promise.resolve(n)};v.deserializeAws_json1_0TagResourceCommand=fF;var pF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},hF=async(e,t)=>{if(e.statusCode>=300)return yF(e,t);let n=await L(e.body,t),r={};r=kV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0TransactGetItemsCommand=hF;var yF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Gf(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},gF=async(e,t)=>{if(e.statusCode>=300)return _F(e,t);let n=await L(e.body,t),r={};r=PV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0TransactWriteItemsCommand=gF;var _F=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=u(o({},await wb(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Gf(n,t)),{name:s,$metadata:y(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=u(o({},await Eb(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},wF=async(e,t)=>{if(e.statusCode>=300)return bF(e,t);await Xf(e.body,t);let n={$metadata:y(e)};return Promise.resolve(n)};v.deserializeAws_json1_0UntagResourceCommand=wF;var bF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},SF=async(e,t)=>{if(e.statusCode>=300)return vF(e,t);let n=await L(e.body,t),r={};r=qV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=SF;var vF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=u(o({},await _b(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},EF=async(e,t)=>{if(e.statusCode>=300)return AF(e,t);let n=await L(e.body,t),r={};r=MV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=EF;var AF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},CF=async(e,t)=>{if(e.statusCode>=300)return TF(e,t);let n=await L(e.body,t),r={};r=OV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateGlobalTableCommand=CF;var TF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":r=u(o({},await $F(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=u(o({},await Sb(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},xF=async(e,t)=>{if(e.statusCode>=300)return IF(e,t);let n=await L(e.body,t),r={};r=zV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=xF;var IF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":r=u(o({},await BF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=u(o({},await Sb(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},RF=async(e,t)=>{if(e.statusCode>=300)return kF(e,t);let n=await L(e.body,t),r={};r=jV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateItemCommand=RF;var kF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await pi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Lt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await uo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},DF=async(e,t)=>{if(e.statusCode>=300)return NF(e,t);let n=await L(e.body,t),r={};r=UV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTableCommand=DF;var NF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},LF=async(e,t)=>{if(e.statusCode>=300)return PF(e,t);let n=await L(e.body,t),r={};r=BV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=LF;var PF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},qF=async(e,t)=>{if(e.statusCode>=300)return MF(e,t);let n=await L(e.body,t),r={};r=FV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=qF;var MF=async(e,t)=>{let n=u(o({},e),{body:await L(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},Uf=async(e,t)=>{let n=e.body,r=c2(n,t);return o({name:"BackupInUseException",$fault:"client",$metadata:y(e)},r)},Bf=async(e,t)=>{let n=e.body,r=l2(n,t);return o({name:"BackupNotFoundException",$fault:"client",$metadata:y(e)},r)},co=async(e,t)=>{let n=e.body,r=E2(n,t);return o({name:"ConditionalCheckFailedException",$fault:"client",$metadata:y(e)},r)},_b=async(e,t)=>{let n=e.body,r=A2(n,t);return o({name:"ContinuousBackupsUnavailableException",$fault:"client",$metadata:y(e)},r)},OF=async(e,t)=>{let n=e.body,r=W2(n,t);return o({name:"DuplicateItemException",$fault:"client",$metadata:y(e)},r)},zF=async(e,t)=>{let n=e.body,r=X2(n,t);return o({name:"ExportConflictException",$fault:"client",$metadata:y(e)},r)},jF=async(e,t)=>{let n=e.body,r=Z2(n,t);return o({name:"ExportNotFoundException",$fault:"client",$metadata:y(e)},r)},UF=async(e,t)=>{let n=e.body,r=uK(n,t);return o({name:"GlobalTableAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},lo=async(e,t)=>{let n=e.body,r=fK(n,t);return o({name:"GlobalTableNotFoundException",$fault:"client",$metadata:y(e)},r)},wb=async(e,t)=>{let n=e.body,r=pK(n,t);return o({name:"IdempotentParameterMismatchException",$fault:"client",$metadata:y(e)},r)},BF=async(e,t)=>{let n=e.body,r=hK(n,t);return o({name:"IndexNotFoundException",$fault:"client",$metadata:y(e)},r)},ee=async(e,t)=>{let n=e.body,r=yK(n,t);return o({name:"InternalServerError",$fault:"server",$metadata:y(e)},r)},oe=async(e,t)=>{let n=e.body,r=gK(n,t);return o({name:"InvalidEndpointException",$fault:"client",$metadata:y(e)},r)},FF=async(e,t)=>{let n=e.body,r=_K(n,t);return o({name:"InvalidExportTimeException",$fault:"client",$metadata:y(e)},r)},GF=async(e,t)=>{let n=e.body,r=wK(n,t);return o({name:"InvalidRestoreTimeException",$fault:"client",$metadata:y(e)},r)},pi=async(e,t)=>{let n=e.body,r=EK(n,t);return o({name:"ItemCollectionSizeLimitExceededException",$fault:"client",$metadata:y(e)},r)},$e=async(e,t)=>{let n=e.body,r=kK(n,t);return o({name:"LimitExceededException",$fault:"client",$metadata:y(e)},r)},bb=async(e,t)=>{let n=e.body,r=WK(n,t);return o({name:"PointInTimeRecoveryUnavailableException",$fault:"client",$metadata:y(e)},r)},Ot=async(e,t)=>{let n=e.body,r=HK(n,t);return o({name:"ProvisionedThroughputExceededException",$fault:"client",$metadata:y(e)},r)},$F=async(e,t)=>{let n=e.body,r=eV(n,t);return o({name:"ReplicaAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},Sb=async(e,t)=>{let n=e.body,r=uV(n,t);return o({name:"ReplicaNotFoundException",$fault:"client",$metadata:y(e)},r)},Lt=async(e,t)=>{let n=e.body,r=fV(n,t);return o({name:"RequestLimitExceeded",$fault:"client",$metadata:y(e)},r)},nn=async(e,t)=>{let n=e.body,r=pV(n,t);return o({name:"ResourceInUseException",$fault:"client",$metadata:y(e)},r)},be=async(e,t)=>{let n=e.body,r=hV(n,t);return o({name:"ResourceNotFoundException",$fault:"client",$metadata:y(e)},r)},vb=async(e,t)=>{let n=e.body,r=EV(n,t);return o({name:"TableAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},Ff=async(e,t)=>{let n=e.body,r=AV(n,t);return o({name:"TableInUseException",$fault:"client",$metadata:y(e)},r)},kr=async(e,t)=>{let n=e.body,r=TV(n,t);return o({name:"TableNotFoundException",$fault:"client",$metadata:y(e)},r)},Gf=async(e,t)=>{let n=e.body,r=DV(n,t);return o({name:"TransactionCanceledException",$fault:"client",$metadata:y(e)},r)},uo=async(e,t)=>{let n=e.body,r=NV(n,t);return o({name:"TransactionConflictException",$fault:"client",$metadata:y(e)},r)},Eb=async(e,t)=>{let n=e.body,r=LV(n,t);return o({name:"TransactionInProgressException",$fault:"client",$metadata:y(e)},r)},KF=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),Ab=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:KF(n,t)),mo=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),VF=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:WF(s,t)}),{}),Rn=(e,t)=>Wj.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:nG(n,t)}),L:n=>({L:WG(n,t)}),M:n=>({M:t$(n,t)}),N:n=>({N:n}),NS:n=>({NS:r$(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:k$(n,t)}),_:(n,r)=>({name:r})}),Cb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),WF=(e,t)=>o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:Rn(e.Value,t)}),HF=(e,t)=>o(o({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:YF(e.TargetTrackingScalingPolicyConfiguration,t)}),Zn=(e,t)=>o(o(o(o(o({},e.AutoScalingDisabled!==void 0&&e.AutoScalingDisabled!==null&&{AutoScalingDisabled:e.AutoScalingDisabled}),e.AutoScalingRoleArn!==void 0&&e.AutoScalingRoleArn!==null&&{AutoScalingRoleArn:e.AutoScalingRoleArn}),e.MaximumUnits!==void 0&&e.MaximumUnits!==null&&{MaximumUnits:e.MaximumUnits}),e.MinimumUnits!==void 0&&e.MinimumUnits!==null&&{MinimumUnits:e.MinimumUnits}),e.ScalingPolicyUpdate!==void 0&&e.ScalingPolicyUpdate!==null&&{ScalingPolicyUpdate:HF(e.ScalingPolicyUpdate,t)}),YF=(e,t)=>o(o(o(o({},e.DisableScaleIn!==void 0&&e.DisableScaleIn!==null&&{DisableScaleIn:e.DisableScaleIn}),e.ScaleInCooldown!==void 0&&e.ScaleInCooldown!==null&&{ScaleInCooldown:e.ScaleInCooldown}),e.ScaleOutCooldown!==void 0&&e.ScaleOutCooldown!==null&&{ScaleOutCooldown:e.ScaleOutCooldown}),e.TargetValue!==void 0&&e.TargetValue!==null&&{TargetValue:w.serializeFloat(e.TargetValue)}),JF=(e,t)=>o({},e.Statements!==void 0&&e.Statements!==null&&{Statements:a$(e.Statements,t)}),QF=(e,t)=>o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:XF(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),XF=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:KG(s,t)}),{}),ZF=(e,t)=>o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Wf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),eG=(e,t)=>o(o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:tG(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),tG=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:e2(s,t)}),{}),nG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),Tb=(e,t)=>o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:Cb(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),rG=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),sG=(e,t)=>o(o({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),iG=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:fo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Hf(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),aG=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:b$(e.ReplicationGroup,t)}),oG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),cG=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Rb(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Yf(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),lG=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:Ab(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Kf(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:fo(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:Vf(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:po(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:kb(e.StreamSpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.Tags!==void 0&&e.Tags!==null&&{Tags:Db(e.Tags,t)}),dG=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),uG=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),mG=(e,t)=>o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),fG=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:$f(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),pG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),hG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),yG=(e,t)=>o({},e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),gG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),_G=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),wG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),bG=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),SG=(e,t)=>({}),vG=(e,t)=>o({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),EG=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),AG=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),CG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),TG=(e,t)=>({}),xG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),IG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),RG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),kG=(e,t)=>o(o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Wf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),DG=(e,t)=>{var n;return o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:jf.v4()},e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:i$(e.TransactStatements,t)})},$f=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:NG(s,t)}),{}),NG=(e,t)=>o(o(o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:Cb(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),e.Exists!==void 0&&e.Exists!==null&&{Exists:e.Exists}),e.Value!==void 0&&e.Value!==null&&{Value:Rn(e.Value,t)}),LG=(e,t)=>{var n;return o(o(o(o(o(o(o(o({ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:jf.v4()},e.ExportFormat!==void 0&&e.ExportFormat!==null&&{ExportFormat:e.ExportFormat}),e.ExportTime!==void 0&&e.ExportTime!==null&&{ExportTime:Math.round(e.ExportTime.getTime()/1e3)}),e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3BucketOwner!==void 0&&e.S3BucketOwner!==null&&{S3BucketOwner:e.S3BucketOwner}),e.S3Prefix!==void 0&&e.S3Prefix!==null&&{S3Prefix:e.S3Prefix}),e.S3SseAlgorithm!==void 0&&e.S3SseAlgorithm!==null&&{S3SseAlgorithm:e.S3SseAlgorithm}),e.S3SseKmsKeyId!==void 0&&e.S3SseKmsKeyId!==null&&{S3SseKmsKeyId:e.S3SseKmsKeyId}),e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn})},zt=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:s}),{}),kn=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),xb=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Tb(s,t)}),{}),PG=(e,t)=>o(o(o(o({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),qG=(e,t)=>o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:mo(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),MG=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:fo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Hf(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),OG=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Zn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),zG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:OG(n,t)),Kf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:MG(n,t)),jG=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:iG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:mG(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:K$(e.Update,t)}),UG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:jG(n,t)),BG=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Zn(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}),FG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:BG(n,t)),Wt=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),GG=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Tb(s,t)}),{}),$G=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Wt(n,t)),KG=(e,t)=>o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:mo(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:$G(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),fo=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:VG(n,t)),VG=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),Ib=(e,t)=>o(o({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),WG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),HG=(e,t)=>o(o(o(o(o(o({},e.BackupType!==void 0&&e.BackupType!==null&&{BackupType:e.BackupType}),e.ExclusiveStartBackupArn!==void 0&&e.ExclusiveStartBackupArn!==null&&{ExclusiveStartBackupArn:e.ExclusiveStartBackupArn}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeRangeLowerBound!==void 0&&e.TimeRangeLowerBound!==null&&{TimeRangeLowerBound:Math.round(e.TimeRangeLowerBound.getTime()/1e3)}),e.TimeRangeUpperBound!==void 0&&e.TimeRangeUpperBound!==null&&{TimeRangeUpperBound:Math.round(e.TimeRangeUpperBound.getTime()/1e3)}),YG=(e,t)=>o(o(o({},e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),JG=(e,t)=>o(o(o({},e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn}),QG=(e,t)=>o(o(o({},e.ExclusiveStartGlobalTableName!==void 0&&e.ExclusiveStartGlobalTableName!==null&&{ExclusiveStartGlobalTableName:e.ExclusiveStartGlobalTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),XG=(e,t)=>o(o({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),ZG=(e,t)=>o(o({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e$=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:fo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Hf(e.Projection,t)}),Vf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:e$(n,t)),t$=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),n$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),r$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),s$=(e,t)=>o(o({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Wf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),i$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:s$(n,t)),a$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:ZF(n,t)),o$=(e,t)=>o({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),Wf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),Hf=(e,t)=>o(o({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:n$(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),Dr=(e,t)=>o(o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),Yf=(e,t)=>o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),c$=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Jf(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),l$=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:$f(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Jf(e.Item,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),Jf=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),d$=(e,t)=>o({},e.Item!==void 0&&e.Item!==null&&{Item:Jf(e.Item,t)}),u$=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:mo(e.AttributesToGet,t)}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:Wt(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeyConditionExpression!==void 0&&e.KeyConditionExpression!==null&&{KeyConditionExpression:e.KeyConditionExpression}),e.KeyConditions!==void 0&&e.KeyConditions!==null&&{KeyConditions:GG(e.KeyConditions,t)}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.QueryFilter!==void 0&&e.QueryFilter!==null&&{QueryFilter:xb(e.QueryFilter,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ScanIndexForward!==void 0&&e.ScanIndexForward!==null&&{ScanIndexForward:e.ScanIndexForward}),e.Select!==void 0&&e.Select!==null&&{Select:e.Select}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),m$=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),f$=(e,t)=>o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:g$(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Zn(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),p$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:f$(n,t)),h$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Yf(e.ProvisionedThroughputOverride,t)}),y$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Zn(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),g$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:y$(n,t)),Rb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:h$(n,t)),_$=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Zn(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}),w$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:_$(n,t)),b$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:m$(n,t)),S$=(e,t)=>o(o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:w$(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Zn(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits}),v$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:S$(n,t)),E$=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:cG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:hG(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:Y$(e.Update,t)}),A$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:E$(n,t)),C$=(e,t)=>o(o({},e.Create!==void 0&&e.Create!==null&&{Create:oG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:pG(e.Delete,t)}),T$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:C$(n,t)),x$=(e,t)=>o(o(o(o(o(o(o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:Kf(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Vf(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Dr(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:po(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),I$=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:Kf(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Vf(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Dr(e.ProvisionedThroughputOverride,t)}),e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null&&{RestoreDateTime:Math.round(e.RestoreDateTime.getTime()/1e3)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:po(e.SSESpecificationOverride,t)}),e.SourceTableArn!==void 0&&e.SourceTableArn!==null&&{SourceTableArn:e.SourceTableArn}),e.SourceTableName!==void 0&&e.SourceTableName!==null&&{SourceTableName:e.SourceTableName}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),e.UseLatestRestorableTime!==void 0&&e.UseLatestRestorableTime!==null&&{UseLatestRestorableTime:e.UseLatestRestorableTime}),R$=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:mo(e.AttributesToGet,t)}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:Wt(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ScanFilter!==void 0&&e.ScanFilter!==null&&{ScanFilter:xb(e.ScanFilter,t)}),e.Segment!==void 0&&e.Segment!==null&&{Segment:e.Segment}),e.Select!==void 0&&e.Select!==null&&{Select:e.Select}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TotalSegments!==void 0&&e.TotalSegments!==null&&{TotalSegments:e.TotalSegments}),po=(e,t)=>o(o(o({},e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.SSEType!==void 0&&e.SSEType!==null&&{SSEType:e.SSEType}),kb=(e,t)=>o(o({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),k$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),D$=(e,t)=>o(o({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),N$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),Db=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:D$(n,t)),L$=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:Db(e.Tags,t)}),P$=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),q$=(e,t)=>o({},e.Get!==void 0&&e.Get!==null&&{Get:PG(e.Get,t)}),M$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:q$(n,t)),O$=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:M$(e.TransactItems,t)}),z$=(e,t)=>o(o(o(o({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:rG(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:dG(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:c$(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:F$(e.Update,t)}),j$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:z$(n,t)),U$=(e,t)=>{var n;return o(o(o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:jf.v4()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:j$(e.TransactItems,t)})},B$=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:N$(e.TagKeys,t)}),F$=(e,t)=>o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}),G$=(e,t)=>o(o({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:o$(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),$$=(e,t)=>o(o(o({},e.ContributorInsightsAction!==void 0&&e.ContributorInsightsAction!==null&&{ContributorInsightsAction:e.ContributorInsightsAction}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),K$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),V$=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:T$(e.ReplicaUpdates,t)}),W$=(e,t)=>o(o(o(o(o(o({},e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode}),e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:FG(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)}),e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Zn(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits}),e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:v$(e.ReplicaSettingsUpdate,t)}),H$=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:VF(e.AttributeUpdates,t)}),e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:$f(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}),Y$=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Rb(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Yf(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),J$=(e,t)=>o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:Ab(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:UG(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:A$(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:po(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:kb(e.StreamSpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),Q$=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:zG(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Zn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:p$(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),X$=(e,t)=>o(o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:P$(e.TimeToLiveSpecification,t)}),Z$=(e,t)=>o(o({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:yG(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:d$(e.PutRequest,t)}),e2=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Z$(n,t)),t2=(e,t)=>({ArchivalBackupArn:w.expectString(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?new Date(Math.round(e.ArchivalDateTime*1e3)):void 0,ArchivalReason:w.expectString(e.ArchivalReason)}),n2=(e,t)=>({AttributeName:w.expectString(e.AttributeName),AttributeType:w.expectString(e.AttributeType)}),r2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:n2(n,t)),er=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:us(s,t)}),{}),s2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),us=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:w.expectBoolean(e.BOOL)!==void 0?{BOOL:w.expectBoolean(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:b2(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:DK(e.L,t)}:e.M!==void 0&&e.M!==null?{M:FK(e.M,t)}:w.expectString(e.N)!==void 0?{N:w.expectString(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:$K(e.NS,t)}:w.expectBoolean(e.NULL)!==void 0?{NULL:w.expectBoolean(e.NULL)}:w.expectString(e.S)!==void 0?{S:w.expectString(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:vV(e.SS,t)}:{$unknown:Object.entries(e)[0]},i2=(e,t)=>({PolicyName:w.expectString(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?o2(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),a2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:i2(n,t)),tr=(e,t)=>({AutoScalingDisabled:w.expectBoolean(e.AutoScalingDisabled),AutoScalingRoleArn:w.expectString(e.AutoScalingRoleArn),MaximumUnits:w.expectNumber(e.MaximumUnits),MinimumUnits:w.expectNumber(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?a2(e.ScalingPolicies,t):void 0}),o2=(e,t)=>({DisableScaleIn:w.expectBoolean(e.DisableScaleIn),ScaleInCooldown:w.expectNumber(e.ScaleInCooldown),ScaleOutCooldown:w.expectNumber(e.ScaleOutCooldown),TargetValue:w.handleFloat(e.TargetValue)}),Nb=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?Lb(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?bV(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?SV(e.SourceTableFeatureDetails,t):void 0}),Lb=(e,t)=>({BackupArn:w.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?new Date(Math.round(e.BackupCreationDateTime*1e3)):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?new Date(Math.round(e.BackupExpiryDateTime*1e3)):void 0,BackupName:w.expectString(e.BackupName),BackupSizeBytes:w.expectNumber(e.BackupSizeBytes),BackupStatus:w.expectString(e.BackupStatus),BackupType:w.expectString(e.BackupType)}),c2=(e,t)=>({message:w.expectString(e.message)}),l2=(e,t)=>({message:w.expectString(e.message)}),d2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:u2(n,t)),u2=(e,t)=>({BackupArn:w.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?new Date(Math.round(e.BackupCreationDateTime*1e3)):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?new Date(Math.round(e.BackupExpiryDateTime*1e3)):void 0,BackupName:w.expectString(e.BackupName),BackupSizeBytes:w.expectNumber(e.BackupSizeBytes),BackupStatus:w.expectString(e.BackupStatus),BackupType:w.expectString(e.BackupType),TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName)}),m2=(e,t)=>({Responses:e.Responses!==void 0&&e.Responses!==null?KK(e.Responses,t):void 0}),f2=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?ho(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?h2(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?p2(e.UnprocessedKeys,t):void 0}),p2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:TK(s,t)}),{}),h2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:go(s,t)}),{}),y2=(e,t)=>({Code:w.expectString(e.Code),Message:w.expectString(e.Message)}),g2=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?y2(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?er(e.Item,t):void 0,TableName:w.expectString(e.TableName)}),_2=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?ho(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?zb(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?w2(e.UnprocessedItems,t):void 0}),w2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:$V(s,t)}),{}),Pb=(e,t)=>({BillingMode:w.expectString(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?new Date(Math.round(e.LastUpdateToPayPerRequestDateTime*1e3)):void 0}),b2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),S2=(e,t)=>({Code:w.expectString(e.Code),Item:e.Item!==void 0&&e.Item!==null?er(e.Item,t):void 0,Message:w.expectString(e.Message)}),v2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:S2(n,t)),qb=(e,t)=>({CapacityUnits:w.handleFloat(e.CapacityUnits),ReadCapacityUnits:w.handleFloat(e.ReadCapacityUnits),WriteCapacityUnits:w.handleFloat(e.WriteCapacityUnits)}),E2=(e,t)=>({message:w.expectString(e.message)}),Nr=(e,t)=>({CapacityUnits:w.handleFloat(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?Vb(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?Vb(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:w.handleFloat(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?qb(e.Table,t):void 0,TableName:w.expectString(e.TableName),WriteCapacityUnits:w.handleFloat(e.WriteCapacityUnits)}),ho=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Nr(n,t)),Mb=(e,t)=>({ContinuousBackupsStatus:w.expectString(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?VK(e.PointInTimeRecoveryDescription,t):void 0}),A2=(e,t)=>({message:w.expectString(e.message)}),C2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),T2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:x2(n,t)),x2=(e,t)=>({ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),IndexName:w.expectString(e.IndexName),TableName:w.expectString(e.TableName)}),I2=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?Lb(e.BackupDetails,t):void 0}),R2=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Qf(e.GlobalTableDescription,t):void 0}),k2=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fs(e.TableDescription,t):void 0}),D2=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?Nb(e.BackupDescription,t):void 0}),N2=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?er(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yo(e.ItemCollectionMetrics,t):void 0}),L2=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?_o(e.Key,t):void 0}),P2=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fs(e.TableDescription,t):void 0}),q2=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?Nb(e.BackupDescription,t):void 0}),M2=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?Mb(e.ContinuousBackupsDescription,t):void 0}),O2=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?C2(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?sK(e.FailureException,t):void 0,IndexName:w.expectString(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?new Date(Math.round(e.LastUpdateDateTime*1e3)):void 0,TableName:w.expectString(e.TableName)}),z2=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?Y2(e.Endpoints,t):void 0}),j2=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?Ob(e.ExportDescription,t):void 0}),U2=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Qf(e.GlobalTableDescription,t):void 0}),B2=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?Kb(e.ReplicaSettings,t):void 0}),F2=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?RK(e.KinesisDataStreamDestinations,t):void 0,TableName:w.expectString(e.TableName)}),G2=(e,t)=>({AccountMaxReadCapacityUnits:w.expectNumber(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:w.expectNumber(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:w.expectNumber(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:w.expectNumber(e.TableMaxWriteCapacityUnits)}),$2=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?fs(e.Table,t):void 0}),K2=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?Yb(e.TableAutoScalingDescription,t):void 0}),V2=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?Jb(e.TimeToLiveDescription,t):void 0}),W2=(e,t)=>({message:w.expectString(e.message)}),H2=(e,t)=>({Address:w.expectString(e.Address),CachePeriodInMinutes:w.expectNumber(e.CachePeriodInMinutes)}),Y2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:H2(n,t)),J2=(e,t)=>({Items:e.Items!==void 0&&e.Items!==null?go(e.Items,t):void 0,NextToken:w.expectString(e.NextToken)}),Q2=(e,t)=>({Responses:e.Responses!==void 0&&e.Responses!==null?jb(e.Responses,t):void 0}),X2=(e,t)=>({message:w.expectString(e.message)}),Ob=(e,t)=>({BilledSizeBytes:w.expectNumber(e.BilledSizeBytes),ClientToken:w.expectString(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?new Date(Math.round(e.EndTime*1e3)):void 0,ExportArn:w.expectString(e.ExportArn),ExportFormat:w.expectString(e.ExportFormat),ExportManifest:w.expectString(e.ExportManifest),ExportStatus:w.expectString(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?new Date(Math.round(e.ExportTime*1e3)):void 0,FailureCode:w.expectString(e.FailureCode),FailureMessage:w.expectString(e.FailureMessage),ItemCount:w.expectNumber(e.ItemCount),S3Bucket:w.expectString(e.S3Bucket),S3BucketOwner:w.expectString(e.S3BucketOwner),S3Prefix:w.expectString(e.S3Prefix),S3SseAlgorithm:w.expectString(e.S3SseAlgorithm),S3SseKmsKeyId:w.expectString(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?new Date(Math.round(e.StartTime*1e3)):void 0,TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId)}),Z2=(e,t)=>({message:w.expectString(e.message)}),eK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:tK(n,t)),tK=(e,t)=>({ExportArn:w.expectString(e.ExportArn),ExportStatus:w.expectString(e.ExportStatus)}),nK=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?Ob(e.ExportDescription,t):void 0}),rK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:w.expectString(s)}),{}),sK=(e,t)=>({ExceptionDescription:w.expectString(e.ExceptionDescription),ExceptionName:w.expectString(e.ExceptionName)}),iK=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nr(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?er(e.Item,t):void 0}),aK=(e,t)=>({Backfilling:w.expectBoolean(e.Backfilling),IndexArn:w.expectString(e.IndexArn),IndexName:w.expectString(e.IndexName),IndexSizeBytes:w.expectNumber(e.IndexSizeBytes),IndexStatus:w.expectString(e.IndexStatus),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ms(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?wo(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Fb(e.ProvisionedThroughput,t):void 0}),oK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:aK(n,t)),cK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:lK(n,t)),lK=(e,t)=>({IndexName:w.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ms(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?wo(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Bb(e.ProvisionedThroughput,t):void 0}),dK=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?dV(e.ReplicationGroup,t):void 0}),uK=(e,t)=>({message:w.expectString(e.message)}),Qf=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?new Date(Math.round(e.CreationDateTime*1e3)):void 0,GlobalTableArn:w.expectString(e.GlobalTableArn),GlobalTableName:w.expectString(e.GlobalTableName),GlobalTableStatus:w.expectString(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?$b(e.ReplicationGroup,t):void 0}),mK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:dK(n,t)),fK=(e,t)=>({message:w.expectString(e.message)}),pK=(e,t)=>({Message:w.expectString(e.Message)}),hK=(e,t)=>({message:w.expectString(e.message)}),yK=(e,t)=>({message:w.expectString(e.message)}),gK=(e,t)=>({Message:w.expectString(e.Message)}),_K=(e,t)=>({message:w.expectString(e.message)}),wK=(e,t)=>({message:w.expectString(e.message)}),bK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:us(s,t)}),{}),yo=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?bK(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?vK(e.SizeEstimateRangeGB,t):void 0}),SK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:yo(n,t)),zb=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:SK(s,t)}),{}),vK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.handleFloat(n)),EK=(e,t)=>({message:w.expectString(e.message)}),go=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:er(n,t)),AK=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?er(e.Item,t):void 0}),jb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:AK(n,t)),_o=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:us(s,t)}),{}),CK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:_o(n,t)),TK=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?s2(e.AttributesToGet,t):void 0,ConsistentRead:w.expectBoolean(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?rK(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?CK(e.Keys,t):void 0,ProjectionExpression:w.expectString(e.ProjectionExpression)}),ms=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:xK(n,t)),xK=(e,t)=>({AttributeName:w.expectString(e.AttributeName),KeyType:w.expectString(e.KeyType)}),IK=(e,t)=>({DestinationStatus:w.expectString(e.DestinationStatus),DestinationStatusDescription:w.expectString(e.DestinationStatusDescription),StreamArn:w.expectString(e.StreamArn)}),RK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:IK(n,t)),Ub=(e,t)=>({DestinationStatus:w.expectString(e.DestinationStatus),StreamArn:w.expectString(e.StreamArn),TableName:w.expectString(e.TableName)}),kK=(e,t)=>({message:w.expectString(e.message)}),DK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:us(n,t)),NK=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?d2(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:w.expectString(e.LastEvaluatedBackupArn)}),LK=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?T2(e.ContributorInsightsSummaries,t):void 0,NextToken:w.expectString(e.NextToken)}),PK=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?eK(e.ExportSummaries,t):void 0,NextToken:w.expectString(e.NextToken)}),qK=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?mK(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:w.expectString(e.LastEvaluatedGlobalTableName)}),MK=(e,t)=>({LastEvaluatedTableName:w.expectString(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?CV(e.TableNames,t):void 0}),OK=(e,t)=>({NextToken:w.expectString(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?IV(e.Tags,t):void 0}),zK=(e,t)=>({IndexArn:w.expectString(e.IndexArn),IndexName:w.expectString(e.IndexName),IndexSizeBytes:w.expectNumber(e.IndexSizeBytes),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ms(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?wo(e.Projection,t):void 0}),jK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:zK(n,t)),UK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:BK(n,t)),BK=(e,t)=>({IndexName:w.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ms(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?wo(e.Projection,t):void 0}),FK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:us(s,t)}),{}),GK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),$K=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),KK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:g2(n,t)),VK=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?new Date(Math.round(e.EarliestRestorableDateTime*1e3)):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?new Date(Math.round(e.LatestRestorableDateTime*1e3)):void 0,PointInTimeRecoveryStatus:w.expectString(e.PointInTimeRecoveryStatus)}),WK=(e,t)=>({message:w.expectString(e.message)}),wo=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?GK(e.NonKeyAttributes,t):void 0,ProjectionType:w.expectString(e.ProjectionType)}),Bb=(e,t)=>({ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits),WriteCapacityUnits:w.expectNumber(e.WriteCapacityUnits)}),Fb=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?new Date(Math.round(e.LastDecreaseDateTime*1e3)):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?new Date(Math.round(e.LastIncreaseDateTime*1e3)):void 0,NumberOfDecreasesToday:w.expectNumber(e.NumberOfDecreasesToday),ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits),WriteCapacityUnits:w.expectNumber(e.WriteCapacityUnits)}),HK=(e,t)=>({message:w.expectString(e.message)}),Gb=(e,t)=>({ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits)}),YK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:us(s,t)}),{}),JK=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?er(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yo(e.ItemCollectionMetrics,t):void 0}),QK=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?YK(e.Item,t):void 0}),XK=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nr(e.ConsumedCapacity,t):void 0,Count:w.expectNumber(e.Count),Items:e.Items!==void 0&&e.Items!==null?go(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?_o(e.LastEvaluatedKey,t):void 0,ScannedCount:w.expectNumber(e.ScannedCount)}),ZK=(e,t)=>({RegionName:w.expectString(e.RegionName)}),eV=(e,t)=>({message:w.expectString(e.message)}),tV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?iV(e.GlobalSecondaryIndexes,t):void 0,RegionName:w.expectString(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?tr(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?tr(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:w.expectString(e.ReplicaStatus)}),nV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:tV(n,t)),rV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?oV(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:w.expectString(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?Gb(e.ProvisionedThroughputOverride,t):void 0,RegionName:w.expectString(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?new Date(Math.round(e.ReplicaInaccessibleDateTime*1e3)):void 0,ReplicaStatus:w.expectString(e.ReplicaStatus),ReplicaStatusDescription:w.expectString(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:w.expectString(e.ReplicaStatusPercentProgress)}),$b=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:rV(n,t)),sV=(e,t)=>({IndexName:w.expectString(e.IndexName),IndexStatus:w.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?tr(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?tr(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),iV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:sV(n,t)),aV=(e,t)=>({IndexName:w.expectString(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?Gb(e.ProvisionedThroughputOverride,t):void 0}),oV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:aV(n,t)),cV=(e,t)=>({IndexName:w.expectString(e.IndexName),IndexStatus:w.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?tr(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:w.expectNumber(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?tr(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:w.expectNumber(e.ProvisionedWriteCapacityUnits)}),lV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:cV(n,t)),dV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ZK(n,t)),uV=(e,t)=>({message:w.expectString(e.message)}),mV=(e,t)=>({RegionName:w.expectString(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?Pb(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?lV(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?tr(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:w.expectNumber(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?tr(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:w.expectNumber(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:w.expectString(e.ReplicaStatus)}),Kb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:mV(n,t)),fV=(e,t)=>({message:w.expectString(e.message)}),pV=(e,t)=>({message:w.expectString(e.message)}),hV=(e,t)=>({message:w.expectString(e.message)}),yV=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?new Date(Math.round(e.RestoreDateTime*1e3)):void 0,RestoreInProgress:w.expectBoolean(e.RestoreInProgress),SourceBackupArn:w.expectString(e.SourceBackupArn),SourceTableArn:w.expectString(e.SourceTableArn)}),gV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fs(e.TableDescription,t):void 0}),_V=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fs(e.TableDescription,t):void 0}),wV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nr(e.ConsumedCapacity,t):void 0,Count:w.expectNumber(e.Count),Items:e.Items!==void 0&&e.Items!==null?go(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?_o(e.LastEvaluatedKey,t):void 0,ScannedCount:w.expectNumber(e.ScannedCount)}),Vb=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:qb(s,t)}),{}),bV=(e,t)=>({BillingMode:w.expectString(e.BillingMode),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ms(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Bb(e.ProvisionedThroughput,t):void 0,TableArn:w.expectString(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?new Date(Math.round(e.TableCreationDateTime*1e3)):void 0,TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName),TableSizeBytes:w.expectNumber(e.TableSizeBytes)}),SV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?cK(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?UK(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?Wb(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?Hb(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?Jb(e.TimeToLiveDescription,t):void 0}),Wb=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?new Date(Math.round(e.InaccessibleEncryptionDateTime*1e3)):void 0,KMSMasterKeyArn:w.expectString(e.KMSMasterKeyArn),SSEType:w.expectString(e.SSEType),Status:w.expectString(e.Status)}),Hb=(e,t)=>({StreamEnabled:w.expectBoolean(e.StreamEnabled),StreamViewType:w.expectString(e.StreamViewType)}),vV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),EV=(e,t)=>({message:w.expectString(e.message)}),Yb=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?nV(e.Replicas,t):void 0,TableName:w.expectString(e.TableName),TableStatus:w.expectString(e.TableStatus)}),fs=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?t2(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?r2(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?Pb(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?new Date(Math.round(e.CreationDateTime*1e3)):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?oK(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:w.expectString(e.GlobalTableVersion),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ms(e.KeySchema,t):void 0,LatestStreamArn:w.expectString(e.LatestStreamArn),LatestStreamLabel:w.expectString(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?jK(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Fb(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?$b(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?yV(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?Wb(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?Hb(e.StreamSpecification,t):void 0,TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName),TableSizeBytes:w.expectNumber(e.TableSizeBytes),TableStatus:w.expectString(e.TableStatus)}),AV=(e,t)=>({message:w.expectString(e.message)}),CV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),TV=(e,t)=>({message:w.expectString(e.message)}),xV=(e,t)=>({Key:w.expectString(e.Key),Value:w.expectString(e.Value)}),IV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:xV(n,t)),Jb=(e,t)=>({AttributeName:w.expectString(e.AttributeName),TimeToLiveStatus:w.expectString(e.TimeToLiveStatus)}),RV=(e,t)=>({AttributeName:w.expectString(e.AttributeName),Enabled:w.expectBoolean(e.Enabled)}),kV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?ho(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?jb(e.Responses,t):void 0}),DV=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?v2(e.CancellationReasons,t):void 0,Message:w.expectString(e.Message)}),NV=(e,t)=>({message:w.expectString(e.message)}),LV=(e,t)=>({Message:w.expectString(e.Message)}),PV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?ho(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?zb(e.ItemCollectionMetrics,t):void 0}),qV=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?Mb(e.ContinuousBackupsDescription,t):void 0}),MV=(e,t)=>({ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),IndexName:w.expectString(e.IndexName),TableName:w.expectString(e.TableName)}),OV=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Qf(e.GlobalTableDescription,t):void 0}),zV=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?Kb(e.ReplicaSettings,t):void 0}),jV=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?er(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Nr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?yo(e.ItemCollectionMetrics,t):void 0}),UV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?fs(e.TableDescription,t):void 0}),BV=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?Yb(e.TableAutoScalingDescription,t):void 0}),FV=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?RV(e.TimeToLiveSpecification,t):void 0}),GV=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?L2(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?QK(e.PutRequest,t):void 0}),$V=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:GV(n,t)),y=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},Xf=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),KV=(e,t)=>Xf(e,t).then(n=>t.utf8Encoder(n)),X=async(e,t,n,r,s)=>{let{hostname:i,protocol:a="https",port:c}=await e.endpoint(),l={protocol:a,hostname:i,port:c,method:"POST",path:n,headers:t};return r!==void 0&&(l.hostname=r),s!==void 0&&(l.body=s),new Hj.HttpRequest(l)},L=(e,t)=>KV(e,t).then(n=>n.length?JSON.parse(n):{}),Z=(e,t)=>{let n=(i,a)=>Object.keys(i).find(c=>c.toLowerCase()===a.toLowerCase()),r=i=>{let a=i;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},s=n(e.headers,"x-amzn-errortype");return s!==void 0?r(e.headers[s]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var Zf=p(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.deserializerMiddleware=void 0;var VV=(e,t)=>(n,r)=>async s=>{let{response:i}=await n(s),a=await t(i,e);return{response:i,output:a}};bo.deserializerMiddleware=VV});var ep=p(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.serializerMiddleware=void 0;var WV=(e,t)=>(n,r)=>async s=>{let i=await t(s.input,e);return n(u(o({},s),{request:i}))};So.serializerMiddleware=WV});var Qb=p(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getSerdePlugin=rn.serializerMiddlewareOption=rn.deserializerMiddlewareOption=void 0;var HV=Zf(),YV=ep();rn.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};rn.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function JV(e,t,n){return{applyToStack:r=>{r.add(HV.deserializerMiddleware(e,n),rn.deserializerMiddlewareOption),r.add(YV.serializerMiddleware(e,t),rn.serializerMiddlewareOption)}}}rn.getSerdePlugin=JV});var j=p(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});var tp=he();tp.__exportStar(Zf(),hi);tp.__exportStar(ep(),hi);tp.__exportStar(Qb(),hi)});var Eo=p(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.DescribeEndpointsCommand=void 0;var Xb=W(),Zb=H(),QV=j(),XV=M(),eS=class extends XV.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QV.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:Xb.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:Xb.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Zb.serializeAws_json1_0DescribeEndpointsCommand(t,n)}deserialize(t,n){return Zb.deserializeAws_json1_0DescribeEndpointsCommand(t,n)}};vo.DescribeEndpointsCommand=eS});var tS=p((hde,ZV)=>{ZV.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/client-sts":"3.21.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/credential-provider-node":"3.21.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-endpoint-discovery":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-signing":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0","@aws-sdk/util-waiter":"3.20.0",tslib:"^2.0.0",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","@types/uuid":"^8.3.0","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-dynamodb"}}});var nS=p((yde,eW)=>{eW.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/credential-provider-node":"3.21.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-sdk-sts":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-signing":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.0.0"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var sn=p(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.GetSessionTokenResponse=q.GetSessionTokenRequest=q.GetFederationTokenResponse=q.FederatedUser=q.GetFederationTokenRequest=q.GetCallerIdentityResponse=q.GetCallerIdentityRequest=q.GetAccessKeyInfoResponse=q.GetAccessKeyInfoRequest=q.InvalidAuthorizationMessageException=q.DecodeAuthorizationMessageResponse=q.DecodeAuthorizationMessageRequest=q.IDPCommunicationErrorException=q.AssumeRoleWithWebIdentityResponse=q.AssumeRoleWithWebIdentityRequest=q.InvalidIdentityTokenException=q.IDPRejectedClaimException=q.AssumeRoleWithSAMLResponse=q.AssumeRoleWithSAMLRequest=q.RegionDisabledException=q.PackedPolicyTooLargeException=q.MalformedPolicyDocumentException=q.ExpiredTokenException=q.AssumeRoleResponse=q.Credentials=q.AssumeRoleRequest=q.Tag=q.PolicyDescriptorType=q.AssumedRoleUser=void 0;var tW;(function(e){e.filterSensitiveLog=t=>o({},t)})(tW=q.AssumedRoleUser||(q.AssumedRoleUser={}));var nW;(function(e){e.filterSensitiveLog=t=>o({},t)})(nW=q.PolicyDescriptorType||(q.PolicyDescriptorType={}));var rW;(function(e){e.filterSensitiveLog=t=>o({},t)})(rW=q.Tag||(q.Tag={}));var sW;(function(e){e.filterSensitiveLog=t=>o({},t)})(sW=q.AssumeRoleRequest||(q.AssumeRoleRequest={}));var iW;(function(e){e.filterSensitiveLog=t=>o({},t)})(iW=q.Credentials||(q.Credentials={}));var aW;(function(e){e.filterSensitiveLog=t=>o({},t)})(aW=q.AssumeRoleResponse||(q.AssumeRoleResponse={}));var oW;(function(e){e.filterSensitiveLog=t=>o({},t)})(oW=q.ExpiredTokenException||(q.ExpiredTokenException={}));var cW;(function(e){e.filterSensitiveLog=t=>o({},t)})(cW=q.MalformedPolicyDocumentException||(q.MalformedPolicyDocumentException={}));var lW;(function(e){e.filterSensitiveLog=t=>o({},t)})(lW=q.PackedPolicyTooLargeException||(q.PackedPolicyTooLargeException={}));var dW;(function(e){e.filterSensitiveLog=t=>o({},t)})(dW=q.RegionDisabledException||(q.RegionDisabledException={}));var uW;(function(e){e.filterSensitiveLog=t=>o({},t)})(uW=q.AssumeRoleWithSAMLRequest||(q.AssumeRoleWithSAMLRequest={}));var mW;(function(e){e.filterSensitiveLog=t=>o({},t)})(mW=q.AssumeRoleWithSAMLResponse||(q.AssumeRoleWithSAMLResponse={}));var fW;(function(e){e.filterSensitiveLog=t=>o({},t)})(fW=q.IDPRejectedClaimException||(q.IDPRejectedClaimException={}));var pW;(function(e){e.filterSensitiveLog=t=>o({},t)})(pW=q.InvalidIdentityTokenException||(q.InvalidIdentityTokenException={}));var hW;(function(e){e.filterSensitiveLog=t=>o({},t)})(hW=q.AssumeRoleWithWebIdentityRequest||(q.AssumeRoleWithWebIdentityRequest={}));var yW;(function(e){e.filterSensitiveLog=t=>o({},t)})(yW=q.AssumeRoleWithWebIdentityResponse||(q.AssumeRoleWithWebIdentityResponse={}));var gW;(function(e){e.filterSensitiveLog=t=>o({},t)})(gW=q.IDPCommunicationErrorException||(q.IDPCommunicationErrorException={}));var _W;(function(e){e.filterSensitiveLog=t=>o({},t)})(_W=q.DecodeAuthorizationMessageRequest||(q.DecodeAuthorizationMessageRequest={}));var wW;(function(e){e.filterSensitiveLog=t=>o({},t)})(wW=q.DecodeAuthorizationMessageResponse||(q.DecodeAuthorizationMessageResponse={}));var bW;(function(e){e.filterSensitiveLog=t=>o({},t)})(bW=q.InvalidAuthorizationMessageException||(q.InvalidAuthorizationMessageException={}));var SW;(function(e){e.filterSensitiveLog=t=>o({},t)})(SW=q.GetAccessKeyInfoRequest||(q.GetAccessKeyInfoRequest={}));var vW;(function(e){e.filterSensitiveLog=t=>o({},t)})(vW=q.GetAccessKeyInfoResponse||(q.GetAccessKeyInfoResponse={}));var EW;(function(e){e.filterSensitiveLog=t=>o({},t)})(EW=q.GetCallerIdentityRequest||(q.GetCallerIdentityRequest={}));var AW;(function(e){e.filterSensitiveLog=t=>o({},t)})(AW=q.GetCallerIdentityResponse||(q.GetCallerIdentityResponse={}));var CW;(function(e){e.filterSensitiveLog=t=>o({},t)})(CW=q.GetFederationTokenRequest||(q.GetFederationTokenRequest={}));var TW;(function(e){e.filterSensitiveLog=t=>o({},t)})(TW=q.FederatedUser||(q.FederatedUser={}));var xW;(function(e){e.filterSensitiveLog=t=>o({},t)})(xW=q.GetFederationTokenResponse||(q.GetFederationTokenResponse={}));var IW;(function(e){e.filterSensitiveLog=t=>o({},t)})(IW=q.GetSessionTokenRequest||(q.GetSessionTokenRequest={}));var RW;(function(e){e.filterSensitiveLog=t=>o({},t)})(RW=q.GetSessionTokenResponse||(q.GetSessionTokenResponse={}))});var np=p((_de,kW)=>{kW.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
5
|
-
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var rS=p((wde,DW)=>{DW.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var rp=p((bde,NW)=>{NW.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var sS=p((Sde,LW)=>{LW.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var aS=p(yi=>{"use strict";var PW=yi&&yi.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(yi,"__esModule",{value:!0});var iS=PW(sS()),qW=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function MW(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in iS.default&&(e=iS.default[e]),qW(e))}yi.default=MW});var ip=p(an=>{"use strict";var Ao=an&&an.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(an,"__esModule",{value:!0});an.decodeHTML=an.decodeHTMLStrict=an.decodeXML=void 0;var sp=Ao(np()),OW=Ao(rS()),zW=Ao(rp()),oS=Ao(aS()),jW=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;an.decodeXML=cS(zW.default);an.decodeHTMLStrict=cS(sp.default);function cS(e){var t=dS(e);return function(n){return String(n).replace(jW,t)}}var lS=function(e,t){return e<t?1:-1};an.decodeHTML=function(){for(var e=Object.keys(OW.default).sort(lS),t=Object.keys(sp.default).sort(lS),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),i=dS(sp.default);function a(c){return c.substr(-1)!==";"&&(c+=";"),i(c)}return function(c){return String(c).replace(s,a)}}();function dS(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?oS.default(parseInt(n.substr(3),16)):oS.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var op=p(_t=>{"use strict";var uS=_t&&_t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_t,"__esModule",{value:!0});_t.escapeUTF8=_t.escape=_t.encodeNonAsciiHTML=_t.encodeHTML=_t.encodeXML=void 0;var UW=uS(rp()),mS=pS(UW.default),fS=hS(mS);_t.encodeXML=_S(mS);var BW=uS(np()),ap=pS(BW.default),FW=hS(ap);_t.encodeHTML=$W(ap,FW);_t.encodeNonAsciiHTML=_S(ap);function pS(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function hS(e){for(var t=[],n=[],r=0,s=Object.keys(e);r<s.length;r++){var i=s[r];i.length===1?t.push("\\"+i):n.push(i)}t.sort();for(var a=0;a<t.length-1;a++){for(var c=a;c<t.length-1&&t[c].charCodeAt(1)+1===t[c+1].charCodeAt(1);)c+=1;var l=1+c-a;l<3||t.splice(a,l,t[a]+"-"+t[c])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var yS=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,GW=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Co(e){return"&#x"+(e.length>1?GW(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function $W(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(yS,Co)}}var gS=new RegExp(fS.source+"|"+yS.source,"g");function KW(e){return e.replace(gS,Co)}_t.escape=KW;function VW(e){return e.replace(fS,Co)}_t.escapeUTF8=VW;function _S(e){return function(t){return t.replace(gS,function(n){return e[n]||Co(n)})}}});var bS=p(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.decodeXMLStrict=ce.decodeHTML5Strict=ce.decodeHTML4Strict=ce.decodeHTML5=ce.decodeHTML4=ce.decodeHTMLStrict=ce.decodeHTML=ce.decodeXML=ce.encodeHTML5=ce.encodeHTML4=ce.escapeUTF8=ce.escape=ce.encodeNonAsciiHTML=ce.encodeHTML=ce.encodeXML=ce.encode=ce.decodeStrict=ce.decode=void 0;var To=ip(),wS=op();function WW(e,t){return(!t||t<=0?To.decodeXML:To.decodeHTML)(e)}ce.decode=WW;function HW(e,t){return(!t||t<=0?To.decodeXML:To.decodeHTMLStrict)(e)}ce.decodeStrict=HW;function YW(e,t){return(!t||t<=0?wS.encodeXML:wS.encodeHTML)(e)}ce.encode=YW;var Lr=op();Object.defineProperty(ce,"encodeXML",{enumerable:!0,get:function(){return Lr.encodeXML}});Object.defineProperty(ce,"encodeHTML",{enumerable:!0,get:function(){return Lr.encodeHTML}});Object.defineProperty(ce,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return Lr.encodeNonAsciiHTML}});Object.defineProperty(ce,"escape",{enumerable:!0,get:function(){return Lr.escape}});Object.defineProperty(ce,"escapeUTF8",{enumerable:!0,get:function(){return Lr.escapeUTF8}});Object.defineProperty(ce,"encodeHTML4",{enumerable:!0,get:function(){return Lr.encodeHTML}});Object.defineProperty(ce,"encodeHTML5",{enumerable:!0,get:function(){return Lr.encodeHTML}});var nr=ip();Object.defineProperty(ce,"decodeXML",{enumerable:!0,get:function(){return nr.decodeXML}});Object.defineProperty(ce,"decodeHTML",{enumerable:!0,get:function(){return nr.decodeHTML}});Object.defineProperty(ce,"decodeHTMLStrict",{enumerable:!0,get:function(){return nr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeHTML4",{enumerable:!0,get:function(){return nr.decodeHTML}});Object.defineProperty(ce,"decodeHTML5",{enumerable:!0,get:function(){return nr.decodeHTML}});Object.defineProperty(ce,"decodeHTML4Strict",{enumerable:!0,get:function(){return nr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeHTML5Strict",{enumerable:!0,get:function(){return nr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeXMLStrict",{enumerable:!0,get:function(){return nr.decodeXML}})});var on=p(Ht=>{"use strict";var SS=":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",JW=SS+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",vS="["+SS+"]["+JW+"]*",QW=new RegExp("^"+vS+"$"),XW=function(e,t){let n=[],r=t.exec(e);for(;r;){let s=[],i=r.length;for(let a=0;a<i;a++)s.push(r[a]);n.push(s),r=t.exec(e)}return n},ZW=function(e){let t=QW.exec(e);return!(t===null||typeof t=="undefined")};Ht.isExist=function(e){return typeof e!="undefined"};Ht.isEmptyObject=function(e){return Object.keys(e).length===0};Ht.merge=function(e,t,n){if(t){let r=Object.keys(t),s=r.length;for(let i=0;i<s;i++)n==="strict"?e[r[i]]=[t[r[i]]]:e[r[i]]=t[r[i]]}};Ht.getValue=function(e){return Ht.isExist(e)?e:""};Ht.buildOptions=function(e,t,n){var r={};if(!e)return t;for(let s=0;s<n.length;s++)e[n[s]]!==void 0?r[n[s]]=e[n[s]]:r[n[s]]=t[n[s]];return r};Ht.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};Ht.isName=ZW;Ht.getAllMatches=XW;Ht.nameRegexp=vS});var AS=p(ES=>{"use strict";var Pr=on(),cp=function(e,t,n){let r={};if((!e.child||Pr.isEmptyObject(e.child))&&(!e.attrsMap||Pr.isEmptyObject(e.attrsMap)))return Pr.isExist(e.val)?e.val:"";if(Pr.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let i=Pr.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=i?[e.val]:e.val}Pr.merge(r,e.attrsMap,t.arrayMode);let s=Object.keys(e.child);for(let i=0;i<s.length;i++){let a=s[i];if(e.child[a]&&e.child[a].length>1){r[a]=[];for(let c in e.child[a])e.child[a].hasOwnProperty(c)&&r[a].push(cp(e.child[a][c],t,a))}else{let c=cp(e.child[a][0],t,a),l=t.arrayMode===!0&&typeof c=="object"||Pr.isTagNameInArrayMode(a,t.arrayMode,n);r[a]=l?[c]:c}}return r};ES.convertToJson=cp});var TS=p((Ide,CS)=>{"use strict";CS.exports=function(e,t,n){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=n,this.addChild=function(r){Array.isArray(this.child[r.tagname])?this.child[r.tagname].push(r):this.child[r.tagname]=[r]}}});var _i=p(Ro=>{"use strict";var qr=on(),eH=on().buildOptions,xo=TS(),Rde="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,qr.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var xS={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};Ro.defaultOptions=xS;var IS=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];Ro.props=IS;function Io(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=RS(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function tH(e,t){if(t.ignoreNameSpace){let n=e.split(":"),r=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=r+n[1])}return e}function RS(e,t,n){if(t&&typeof e=="string"){let r;return e.trim()===""||isNaN(e)?r=e==="true"?!0:e==="false"?!1:e:(e.indexOf("0x")!==-1?r=Number.parseInt(e,16):e.indexOf(".")!==-1?(r=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):r=Number.parseInt(e,10),n&&(r=String(r)===e?r:e)),r}else return qr.isExist(e)?e:""}var nH=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function kS(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=qr.getAllMatches(e,nH),r=n.length,s={};for(let i=0;i<r;i++){let a=tH(n[i][1],t);a.length&&(n[i][4]!==void 0?(t.trimValues&&(n[i][4]=n[i][4].trim()),n[i][4]=t.attrValueProcessor(n[i][4],a),s[t.attributeNamePrefix+a]=RS(n[i][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(s[t.attributeNamePrefix+a]=!0))}if(!Object.keys(s).length)return;if(t.attrNodeName){let i={};return i[t.attrNodeName]=s,i}return s}}var rH=function(e,t){e=e.replace(/\r\n?/g,`
|
|
6
|
-
`),t=
|
|
7
|
-
`&&e[i]!=="\r";i++)c+=e[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!
|
|
8
|
-
`||e[i]==="\r")continue;return Qe("InvalidChar","char '"+e[i]+"' is not expected.",Yt(e,i))}if(r){if(n.length>0)return Qe("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return Qe("InvalidXml","Start tag expected.",1);return!0};function DS(e,t){for(var n=t;t<e.length;t++)if(e[t]=="?"||e[t]==" "){var r=e.substr(n,t-n);if(t>5&&r==="xml")return Qe("InvalidXml","XML declaration allowed only at the start of the document.",Yt(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function
|
|
4
|
+
`+new Array(s).join(" ")+"^"}}return null}function RN(e){var t=F_(e);process.stderr._handle&&process.stderr._handle.setBlocking&&process.stderr._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),process.exit(1)}function kN(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return RN(arguments[1])}return e.apply(this,arguments)}}var DN=Qn.slice(0),LN=Xn.slice(0);Ir.wrapCallSite=B_;Ir.getErrorSource=F_;Ir.mapSourcePosition=Ef;Ir.retrieveSourceMap=vf;Ir.install=function(e){if(e=e||{},e.environment&&(ui=e.environment,["node","browser","auto"].indexOf(ui)===-1))throw new Error("environment "+ui+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Qn.length=0),Qn.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Xn.length=0),Xn.unshift(e.retrieveSourceMap)),e.hookRequire&&!wf()){var t=M_(Af,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(i,a){return xr[a]=i,mi[a]=void 0,n.call(this,i,a)},t.prototype._compile.__sourceMapSupport=!0)}if(_f||(_f="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),O_||(O_=!0,Error.prepareStackTrace=IN),!z_){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var s=M_(Af,"worker_threads");s.isMainThread===!1&&(r=!1)}catch(i){}r&&CN()&&(z_=!0,kN())}};Ir.resetRetrieveHandlers=function(){Qn.length=0,Xn.length=0,Qn=DN.slice(0),Xn=LN.slice(0),vf=Ia(Xn),bf=Ia(Qn)}});var he=p((Ale,Da)=>{var K_,V_,W_,H_,Y_,J_,Q_,X_,Z_,Ra,Cf,ew,tw,nw,os,rw,sw,iw,aw,ow,cw,lw,dw,ka;(function(e){var t=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:{};typeof define=="function"&&define.amd?define("tslib",["exports"],function(r){e(n(t,n(r)))}):typeof Da=="object"&&typeof Da.exports=="object"?e(n(t,n(Da.exports))):e(n(t));function n(r,s){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(i,a){return r[i]=s?s(i,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,s){r.__proto__=s}||function(r,s){for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]=s[i])};K_=function(r,s){if(typeof s!="function"&&s!==null)throw new TypeError("Class extends value "+String(s)+" is not a constructor or null");t(r,s);function i(){this.constructor=r}r.prototype=s===null?Object.create(s):(i.prototype=s.prototype,new i)},V_=Object.assign||function(r){for(var s,i=1,a=arguments.length;i<a;i++){s=arguments[i];for(var c in s)Object.prototype.hasOwnProperty.call(s,c)&&(r[c]=s[c])}return r},W_=function(r,s){var i={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&s.indexOf(a)<0&&(i[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,a=Object.getOwnPropertySymbols(r);c<a.length;c++)s.indexOf(a[c])<0&&Object.prototype.propertyIsEnumerable.call(r,a[c])&&(i[a[c]]=r[a[c]]);return i},H_=function(r,s,i,a){var c=arguments.length,l=c<3?s:a===null?a=Object.getOwnPropertyDescriptor(s,i):a,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(r,s,i,a);else for(var f=r.length-1;f>=0;f--)(m=r[f])&&(l=(c<3?m(l):c>3?m(s,i,l):m(s,i))||l);return c>3&&l&&Object.defineProperty(s,i,l),l},Y_=function(r,s){return function(i,a){s(i,a,r)}},J_=function(r,s){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,s)},Q_=function(r,s,i,a){function c(l){return l instanceof i?l:new i(function(m){m(l)})}return new(i||(i=Promise))(function(l,m){function f(_){try{h(a.next(_))}catch(b){m(b)}}function g(_){try{h(a.throw(_))}catch(b){m(b)}}function h(_){_.done?l(_.value):c(_.value).then(f,g)}h((a=a.apply(r,s||[])).next())})},X_=function(r,s){var i={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,c,l,m;return m={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(m[Symbol.iterator]=function(){return this}),m;function f(h){return function(_){return g([h,_])}}function g(h){if(a)throw new TypeError("Generator is already executing.");for(;i;)try{if(a=1,c&&(l=h[0]&2?c.return:h[0]?c.throw||((l=c.return)&&l.call(c),0):c.next)&&!(l=l.call(c,h[1])).done)return l;switch(c=0,l&&(h=[h[0]&2,l.value]),h[0]){case 0:case 1:l=h;break;case 4:return i.label++,{value:h[1],done:!1};case 5:i.label++,c=h[1],h=[0];continue;case 7:h=i.ops.pop(),i.trys.pop();continue;default:if(l=i.trys,!(l=l.length>0&&l[l.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!l||h[1]>l[0]&&h[1]<l[3])){i.label=h[1];break}if(h[0]===6&&i.label<l[1]){i.label=l[1],l=h;break}if(l&&i.label<l[2]){i.label=l[2],i.ops.push(h);break}l[2]&&i.ops.pop(),i.trys.pop();continue}h=s.call(r,i)}catch(_){h=[6,_],c=0}finally{a=l=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:!0}}},Z_=function(r,s){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(s,i)&&ka(s,r,i)},ka=Object.create?function(r,s,i,a){a===void 0&&(a=i),Object.defineProperty(r,a,{enumerable:!0,get:function(){return s[i]}})}:function(r,s,i,a){a===void 0&&(a=i),r[a]=s[i]},Ra=function(r){var s=typeof Symbol=="function"&&Symbol.iterator,i=s&&r[s],a=0;if(i)return i.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&a>=r.length&&(r=void 0),{value:r&&r[a++],done:!r}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")},Cf=function(r,s){var i=typeof Symbol=="function"&&r[Symbol.iterator];if(!i)return r;var a=i.call(r),c,l=[],m;try{for(;(s===void 0||s-- >0)&&!(c=a.next()).done;)l.push(c.value)}catch(f){m={error:f}}finally{try{c&&!c.done&&(i=a.return)&&i.call(a)}finally{if(m)throw m.error}}return l},ew=function(){for(var r=[],s=0;s<arguments.length;s++)r=r.concat(Cf(arguments[s]));return r},tw=function(){for(var r=0,s=0,i=arguments.length;s<i;s++)r+=arguments[s].length;for(var a=Array(r),c=0,s=0;s<i;s++)for(var l=arguments[s],m=0,f=l.length;m<f;m++,c++)a[c]=l[m];return a},nw=function(r,s){for(var i=0,a=s.length,c=r.length;i<a;i++,c++)r[c]=s[i];return r},os=function(r){return this instanceof os?(this.v=r,this):new os(r)},rw=function(r,s,i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=i.apply(r,s||[]),c,l=[];return c={},m("next"),m("throw"),m("return"),c[Symbol.asyncIterator]=function(){return this},c;function m(E){a[E]&&(c[E]=function(D){return new Promise(function(k,R){l.push([E,D,k,R])>1||f(E,D)})})}function f(E,D){try{g(a[E](D))}catch(k){b(l[0][3],k)}}function g(E){E.value instanceof os?Promise.resolve(E.value.v).then(h,_):b(l[0][2],E)}function h(E){f("next",E)}function _(E){f("throw",E)}function b(E,D){E(D),l.shift(),l.length&&f(l[0][0],l[0][1])}},sw=function(r){var s,i;return s={},a("next"),a("throw",function(c){throw c}),a("return"),s[Symbol.iterator]=function(){return this},s;function a(c,l){s[c]=r[c]?function(m){return(i=!i)?{value:os(r[c](m)),done:c==="return"}:l?l(m):m}:l}},iw=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=r[Symbol.asyncIterator],i;return s?s.call(r):(r=typeof Ra=="function"?Ra(r):r[Symbol.iterator](),i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function(){return this},i);function a(l){i[l]=r[l]&&function(m){return new Promise(function(f,g){m=r[l](m),c(f,g,m.done,m.value)})}}function c(l,m,f,g){Promise.resolve(g).then(function(h){l({value:h,done:f})},m)}},aw=function(r,s){return Object.defineProperty?Object.defineProperty(r,"raw",{value:s}):r.raw=s,r};var n=Object.create?function(r,s){Object.defineProperty(r,"default",{enumerable:!0,value:s})}:function(r,s){r.default=s};ow=function(r){if(r&&r.__esModule)return r;var s={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&ka(s,r,i);return n(s,r),s},cw=function(r){return r&&r.__esModule?r:{default:r}},lw=function(r,s){if(!s.has(r))throw new TypeError("attempted to get private field on non-instance");return s.get(r)},dw=function(r,s,i){if(!s.has(r))throw new TypeError("attempted to set private field on non-instance");return s.set(r,i),i},e("__extends",K_),e("__assign",V_),e("__rest",W_),e("__decorate",H_),e("__param",Y_),e("__metadata",J_),e("__awaiter",Q_),e("__generator",X_),e("__exportStar",Z_),e("__createBinding",ka),e("__values",Ra),e("__read",Cf),e("__spread",ew),e("__spreadArrays",tw),e("__spreadArray",nw),e("__await",os),e("__asyncGenerator",rw),e("__asyncDelegator",sw),e("__asyncValues",iw),e("__makeTemplateObject",aw),e("__importStar",ow),e("__importDefault",cw),e("__classPrivateFieldGet",lw),e("__classPrivateFieldSet",dw)})});var W=p(d=>{"use strict";Object.defineProperty(d,"__esModule",{value:!0});d.ProvisionedThroughputOverride=d.CreateGlobalTableInput=d.Replica=d.CreateGlobalSecondaryIndexAction=d.TableNotFoundException=d.TableInUseException=d.LimitExceededException=d.CreateBackupOutput=d.CreateBackupInput=d.ContributorInsightsSummary=d.ContinuousBackupsUnavailableException=d.ContinuousBackupsDescription=d.PointInTimeRecoveryDescription=d.ConditionalCheckFailedException=d.BillingModeSummary=d.ItemCollectionSizeLimitExceededException=d.ResourceNotFoundException=d.ProvisionedThroughputExceededException=d.InvalidEndpointException=d.ConsumedCapacity=d.Capacity=d.RequestLimitExceeded=d.InternalServerError=d.BatchStatementError=d.BatchStatementErrorCodeEnum=d.BackupTypeFilter=d.BackupSummary=d.BackupNotFoundException=d.BackupInUseException=d.BackupDescription=d.SourceTableFeatureDetails=d.TimeToLiveDescription=d.StreamSpecification=d.SSEDescription=d.LocalSecondaryIndexInfo=d.GlobalSecondaryIndexInfo=d.Projection=d.SourceTableDetails=d.ProvisionedThroughput=d.KeySchemaElement=d.BackupDetails=d.BackupType=d.AutoScalingSettingsUpdate=d.AutoScalingSettingsDescription=d.AutoScalingPolicyUpdate=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=d.AutoScalingPolicyDescription=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=d.AttributeDefinition=d.ArchivalSummary=void 0;d.ReplicaSettingsDescription=d.ReplicaGlobalSecondaryIndexSettingsDescription=d.DescribeGlobalTableSettingsInput=d.GlobalTableNotFoundException=d.DescribeGlobalTableOutput=d.DescribeGlobalTableInput=d.ExportNotFoundException=d.DescribeExportOutput=d.ExportDescription=d.ExportStatus=d.ExportFormat=d.DescribeExportInput=d.DescribeEndpointsResponse=d.Endpoint=d.DescribeEndpointsRequest=d.DescribeContributorInsightsOutput=d.FailureException=d.DescribeContributorInsightsInput=d.DescribeContinuousBackupsOutput=d.DescribeContinuousBackupsInput=d.DescribeBackupOutput=d.DescribeBackupInput=d.DeleteTableOutput=d.DeleteTableInput=d.DeleteReplicationGroupMemberAction=d.DeleteReplicaAction=d.TransactionConflictException=d.DeleteGlobalSecondaryIndexAction=d.DeleteBackupOutput=d.DeleteBackupInput=d.ResourceInUseException=d.CreateTableOutput=d.TableDescription=d.RestoreSummary=d.LocalSecondaryIndexDescription=d.GlobalSecondaryIndexDescription=d.ProvisionedThroughputDescription=d.CreateTableInput=d.Tag=d.SSESpecification=d.LocalSecondaryIndex=d.GlobalSecondaryIndex=d.CreateReplicationGroupMemberAction=d.ReplicaGlobalSecondaryIndex=d.CreateReplicaAction=d.GlobalTableAlreadyExistsException=d.CreateGlobalTableOutput=d.GlobalTableDescription=d.ReplicaDescription=d.ReplicaGlobalSecondaryIndexDescription=void 0;d.UpdateContinuousBackupsOutput=d.UpdateContinuousBackupsInput=d.PointInTimeRecoverySpecification=d.UntagResourceInput=d.TagResourceInput=d.RestoreTableToPointInTimeOutput=d.RestoreTableToPointInTimeInput=d.InvalidRestoreTimeException=d.TableAlreadyExistsException=d.RestoreTableFromBackupOutput=d.RestoreTableFromBackupInput=d.ListTagsOfResourceOutput=d.ListTagsOfResourceInput=d.ListTablesOutput=d.ListTablesInput=d.ListGlobalTablesOutput=d.GlobalTable=d.ListGlobalTablesInput=d.ListExportsOutput=d.ExportSummary=d.ListExportsInput=d.ListContributorInsightsOutput=d.ListContributorInsightsInput=d.ListBackupsOutput=d.ListBackupsInput=d.PointInTimeRecoveryUnavailableException=d.InvalidExportTimeException=d.ExportTableToPointInTimeOutput=d.ExportTableToPointInTimeInput=d.ExportConflictException=d.TransactionInProgressException=d.IdempotentParameterMismatchException=d.DuplicateItemException=d.KinesisStreamingDestinationOutput=d.KinesisStreamingDestinationInput=d.DescribeTimeToLiveOutput=d.DescribeTimeToLiveInput=d.DescribeTableReplicaAutoScalingOutput=d.TableAutoScalingDescription=d.ReplicaAutoScalingDescription=d.ReplicaGlobalSecondaryIndexAutoScalingDescription=d.DescribeTableReplicaAutoScalingInput=d.DescribeTableOutput=d.DescribeTableInput=d.DescribeLimitsOutput=d.DescribeLimitsInput=d.DescribeKinesisStreamingDestinationOutput=d.KinesisDataStreamDestination=d.DescribeKinesisStreamingDestinationInput=d.DescribeGlobalTableSettingsOutput=void 0;d.TransactGetItemsOutput=d.ExecuteTransactionOutput=d.ExecuteTransactionInput=d.BatchExecuteStatementOutput=d.BatchExecuteStatementInput=d.TransactGetItem=d.KeysAndAttributes=d.ExecuteStatementOutput=d.PutRequest=d.ParameterizedStatement=d.ItemResponse=d.ItemCollectionMetrics=d.GetItemOutput=d.GetItemInput=d.Get=d.ExecuteStatementInput=d.DeleteRequest=d.Condition=d.CancellationReason=d.BatchStatementResponse=d.BatchStatementRequest=d.AttributeValueUpdate=d.AttributeValue=d.UpdateTimeToLiveOutput=d.UpdateTimeToLiveInput=d.TimeToLiveSpecification=d.UpdateTableReplicaAutoScalingOutput=d.UpdateTableReplicaAutoScalingInput=d.ReplicaAutoScalingUpdate=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate=d.GlobalSecondaryIndexAutoScalingUpdate=d.UpdateTableOutput=d.UpdateTableInput=d.ReplicationGroupUpdate=d.UpdateReplicationGroupMemberAction=d.GlobalSecondaryIndexUpdate=d.UpdateGlobalSecondaryIndexAction=d.UpdateGlobalTableSettingsOutput=d.UpdateGlobalTableSettingsInput=d.ReplicaSettingsUpdate=d.ReplicaGlobalSecondaryIndexSettingsUpdate=d.GlobalTableGlobalSecondaryIndexSettingsUpdate=d.IndexNotFoundException=d.UpdateGlobalTableOutput=d.UpdateGlobalTableInput=d.ReplicaUpdate=d.ReplicaNotFoundException=d.ReplicaAlreadyExistsException=d.UpdateContributorInsightsOutput=d.UpdateContributorInsightsInput=void 0;d.TransactWriteItemsInput=d.TransactWriteItem=d.UpdateItemInput=d.BatchWriteItemOutput=d.QueryInput=d.PutItemInput=d.DeleteItemInput=d.BatchWriteItemInput=d.ScanInput=d.BatchGetItemOutput=d.WriteRequest=d.UpdateItemOutput=d.ScanOutput=d.QueryOutput=d.PutItemOutput=d.DeleteItemOutput=d.Update=d.Put=d.Delete=d.ConditionCheck=d.TransactWriteItemsOutput=d.TransactGetItemsInput=d.ExpectedAttributeValue=d.BatchGetItemInput=d.TransactionCanceledException=void 0;var PN;(function(e){e.filterSensitiveLog=t=>o({},t)})(PN=d.ArchivalSummary||(d.ArchivalSummary={}));var NN;(function(e){e.filterSensitiveLog=t=>o({},t)})(NN=d.AttributeDefinition||(d.AttributeDefinition={}));var qN;(function(e){e.filterSensitiveLog=t=>o({},t)})(qN=d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(d.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var MN;(function(e){e.filterSensitiveLog=t=>o({},t)})(MN=d.AutoScalingPolicyDescription||(d.AutoScalingPolicyDescription={}));var ON;(function(e){e.filterSensitiveLog=t=>o({},t)})(ON=d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(d.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var zN;(function(e){e.filterSensitiveLog=t=>o({},t)})(zN=d.AutoScalingPolicyUpdate||(d.AutoScalingPolicyUpdate={}));var jN;(function(e){e.filterSensitiveLog=t=>o({},t)})(jN=d.AutoScalingSettingsDescription||(d.AutoScalingSettingsDescription={}));var UN;(function(e){e.filterSensitiveLog=t=>o({},t)})(UN=d.AutoScalingSettingsUpdate||(d.AutoScalingSettingsUpdate={}));var BN;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(BN=d.BackupType||(d.BackupType={}));var FN;(function(e){e.filterSensitiveLog=t=>o({},t)})(FN=d.BackupDetails||(d.BackupDetails={}));var GN;(function(e){e.filterSensitiveLog=t=>o({},t)})(GN=d.KeySchemaElement||(d.KeySchemaElement={}));var $N;(function(e){e.filterSensitiveLog=t=>o({},t)})($N=d.ProvisionedThroughput||(d.ProvisionedThroughput={}));var KN;(function(e){e.filterSensitiveLog=t=>o({},t)})(KN=d.SourceTableDetails||(d.SourceTableDetails={}));var VN;(function(e){e.filterSensitiveLog=t=>o({},t)})(VN=d.Projection||(d.Projection={}));var WN;(function(e){e.filterSensitiveLog=t=>o({},t)})(WN=d.GlobalSecondaryIndexInfo||(d.GlobalSecondaryIndexInfo={}));var HN;(function(e){e.filterSensitiveLog=t=>o({},t)})(HN=d.LocalSecondaryIndexInfo||(d.LocalSecondaryIndexInfo={}));var YN;(function(e){e.filterSensitiveLog=t=>o({},t)})(YN=d.SSEDescription||(d.SSEDescription={}));var JN;(function(e){e.filterSensitiveLog=t=>o({},t)})(JN=d.StreamSpecification||(d.StreamSpecification={}));var QN;(function(e){e.filterSensitiveLog=t=>o({},t)})(QN=d.TimeToLiveDescription||(d.TimeToLiveDescription={}));var XN;(function(e){e.filterSensitiveLog=t=>o({},t)})(XN=d.SourceTableFeatureDetails||(d.SourceTableFeatureDetails={}));var ZN;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZN=d.BackupDescription||(d.BackupDescription={}));var eq;(function(e){e.filterSensitiveLog=t=>o({},t)})(eq=d.BackupInUseException||(d.BackupInUseException={}));var tq;(function(e){e.filterSensitiveLog=t=>o({},t)})(tq=d.BackupNotFoundException||(d.BackupNotFoundException={}));var nq;(function(e){e.filterSensitiveLog=t=>o({},t)})(nq=d.BackupSummary||(d.BackupSummary={}));var rq;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(rq=d.BackupTypeFilter||(d.BackupTypeFilter={}));var sq;(function(e){e.AccessDenied="AccessDenied",e.ConditionalCheckFailed="ConditionalCheckFailed",e.DuplicateItem="DuplicateItem",e.InternalServerError="InternalServerError",e.ItemCollectionSizeLimitExceeded="ItemCollectionSizeLimitExceeded",e.ProvisionedThroughputExceeded="ProvisionedThroughputExceeded",e.RequestLimitExceeded="RequestLimitExceeded",e.ResourceNotFound="ResourceNotFound",e.ThrottlingError="ThrottlingError",e.TransactionConflict="TransactionConflict",e.ValidationError="ValidationError"})(sq=d.BatchStatementErrorCodeEnum||(d.BatchStatementErrorCodeEnum={}));var iq;(function(e){e.filterSensitiveLog=t=>o({},t)})(iq=d.BatchStatementError||(d.BatchStatementError={}));var aq;(function(e){e.filterSensitiveLog=t=>o({},t)})(aq=d.InternalServerError||(d.InternalServerError={}));var oq;(function(e){e.filterSensitiveLog=t=>o({},t)})(oq=d.RequestLimitExceeded||(d.RequestLimitExceeded={}));var cq;(function(e){e.filterSensitiveLog=t=>o({},t)})(cq=d.Capacity||(d.Capacity={}));var lq;(function(e){e.filterSensitiveLog=t=>o({},t)})(lq=d.ConsumedCapacity||(d.ConsumedCapacity={}));var dq;(function(e){e.filterSensitiveLog=t=>o({},t)})(dq=d.InvalidEndpointException||(d.InvalidEndpointException={}));var uq;(function(e){e.filterSensitiveLog=t=>o({},t)})(uq=d.ProvisionedThroughputExceededException||(d.ProvisionedThroughputExceededException={}));var mq;(function(e){e.filterSensitiveLog=t=>o({},t)})(mq=d.ResourceNotFoundException||(d.ResourceNotFoundException={}));var fq;(function(e){e.filterSensitiveLog=t=>o({},t)})(fq=d.ItemCollectionSizeLimitExceededException||(d.ItemCollectionSizeLimitExceededException={}));var pq;(function(e){e.filterSensitiveLog=t=>o({},t)})(pq=d.BillingModeSummary||(d.BillingModeSummary={}));var hq;(function(e){e.filterSensitiveLog=t=>o({},t)})(hq=d.ConditionalCheckFailedException||(d.ConditionalCheckFailedException={}));var yq;(function(e){e.filterSensitiveLog=t=>o({},t)})(yq=d.PointInTimeRecoveryDescription||(d.PointInTimeRecoveryDescription={}));var gq;(function(e){e.filterSensitiveLog=t=>o({},t)})(gq=d.ContinuousBackupsDescription||(d.ContinuousBackupsDescription={}));var _q;(function(e){e.filterSensitiveLog=t=>o({},t)})(_q=d.ContinuousBackupsUnavailableException||(d.ContinuousBackupsUnavailableException={}));var wq;(function(e){e.filterSensitiveLog=t=>o({},t)})(wq=d.ContributorInsightsSummary||(d.ContributorInsightsSummary={}));var bq;(function(e){e.filterSensitiveLog=t=>o({},t)})(bq=d.CreateBackupInput||(d.CreateBackupInput={}));var Sq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Sq=d.CreateBackupOutput||(d.CreateBackupOutput={}));var vq;(function(e){e.filterSensitiveLog=t=>o({},t)})(vq=d.LimitExceededException||(d.LimitExceededException={}));var Eq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Eq=d.TableInUseException||(d.TableInUseException={}));var Aq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Aq=d.TableNotFoundException||(d.TableNotFoundException={}));var Cq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Cq=d.CreateGlobalSecondaryIndexAction||(d.CreateGlobalSecondaryIndexAction={}));var Tq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Tq=d.Replica||(d.Replica={}));var xq;(function(e){e.filterSensitiveLog=t=>o({},t)})(xq=d.CreateGlobalTableInput||(d.CreateGlobalTableInput={}));var Iq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Iq=d.ProvisionedThroughputOverride||(d.ProvisionedThroughputOverride={}));var Rq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Rq=d.ReplicaGlobalSecondaryIndexDescription||(d.ReplicaGlobalSecondaryIndexDescription={}));var kq;(function(e){e.filterSensitiveLog=t=>o({},t)})(kq=d.ReplicaDescription||(d.ReplicaDescription={}));var Dq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Dq=d.GlobalTableDescription||(d.GlobalTableDescription={}));var Lq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Lq=d.CreateGlobalTableOutput||(d.CreateGlobalTableOutput={}));var Pq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Pq=d.GlobalTableAlreadyExistsException||(d.GlobalTableAlreadyExistsException={}));var Nq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Nq=d.CreateReplicaAction||(d.CreateReplicaAction={}));var qq;(function(e){e.filterSensitiveLog=t=>o({},t)})(qq=d.ReplicaGlobalSecondaryIndex||(d.ReplicaGlobalSecondaryIndex={}));var Mq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Mq=d.CreateReplicationGroupMemberAction||(d.CreateReplicationGroupMemberAction={}));var Oq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Oq=d.GlobalSecondaryIndex||(d.GlobalSecondaryIndex={}));var zq;(function(e){e.filterSensitiveLog=t=>o({},t)})(zq=d.LocalSecondaryIndex||(d.LocalSecondaryIndex={}));var jq;(function(e){e.filterSensitiveLog=t=>o({},t)})(jq=d.SSESpecification||(d.SSESpecification={}));var Uq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Uq=d.Tag||(d.Tag={}));var Bq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Bq=d.CreateTableInput||(d.CreateTableInput={}));var Fq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Fq=d.ProvisionedThroughputDescription||(d.ProvisionedThroughputDescription={}));var Gq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Gq=d.GlobalSecondaryIndexDescription||(d.GlobalSecondaryIndexDescription={}));var $q;(function(e){e.filterSensitiveLog=t=>o({},t)})($q=d.LocalSecondaryIndexDescription||(d.LocalSecondaryIndexDescription={}));var Kq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Kq=d.RestoreSummary||(d.RestoreSummary={}));var Vq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Vq=d.TableDescription||(d.TableDescription={}));var Wq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Wq=d.CreateTableOutput||(d.CreateTableOutput={}));var Hq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Hq=d.ResourceInUseException||(d.ResourceInUseException={}));var Yq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Yq=d.DeleteBackupInput||(d.DeleteBackupInput={}));var Jq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Jq=d.DeleteBackupOutput||(d.DeleteBackupOutput={}));var Qq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Qq=d.DeleteGlobalSecondaryIndexAction||(d.DeleteGlobalSecondaryIndexAction={}));var Xq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Xq=d.TransactionConflictException||(d.TransactionConflictException={}));var Zq;(function(e){e.filterSensitiveLog=t=>o({},t)})(Zq=d.DeleteReplicaAction||(d.DeleteReplicaAction={}));var eM;(function(e){e.filterSensitiveLog=t=>o({},t)})(eM=d.DeleteReplicationGroupMemberAction||(d.DeleteReplicationGroupMemberAction={}));var tM;(function(e){e.filterSensitiveLog=t=>o({},t)})(tM=d.DeleteTableInput||(d.DeleteTableInput={}));var nM;(function(e){e.filterSensitiveLog=t=>o({},t)})(nM=d.DeleteTableOutput||(d.DeleteTableOutput={}));var rM;(function(e){e.filterSensitiveLog=t=>o({},t)})(rM=d.DescribeBackupInput||(d.DescribeBackupInput={}));var sM;(function(e){e.filterSensitiveLog=t=>o({},t)})(sM=d.DescribeBackupOutput||(d.DescribeBackupOutput={}));var iM;(function(e){e.filterSensitiveLog=t=>o({},t)})(iM=d.DescribeContinuousBackupsInput||(d.DescribeContinuousBackupsInput={}));var aM;(function(e){e.filterSensitiveLog=t=>o({},t)})(aM=d.DescribeContinuousBackupsOutput||(d.DescribeContinuousBackupsOutput={}));var oM;(function(e){e.filterSensitiveLog=t=>o({},t)})(oM=d.DescribeContributorInsightsInput||(d.DescribeContributorInsightsInput={}));var cM;(function(e){e.filterSensitiveLog=t=>o({},t)})(cM=d.FailureException||(d.FailureException={}));var lM;(function(e){e.filterSensitiveLog=t=>o({},t)})(lM=d.DescribeContributorInsightsOutput||(d.DescribeContributorInsightsOutput={}));var dM;(function(e){e.filterSensitiveLog=t=>o({},t)})(dM=d.DescribeEndpointsRequest||(d.DescribeEndpointsRequest={}));var uM;(function(e){e.filterSensitiveLog=t=>o({},t)})(uM=d.Endpoint||(d.Endpoint={}));var mM;(function(e){e.filterSensitiveLog=t=>o({},t)})(mM=d.DescribeEndpointsResponse||(d.DescribeEndpointsResponse={}));var fM;(function(e){e.filterSensitiveLog=t=>o({},t)})(fM=d.DescribeExportInput||(d.DescribeExportInput={}));var pM;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(pM=d.ExportFormat||(d.ExportFormat={}));var hM;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(hM=d.ExportStatus||(d.ExportStatus={}));var yM;(function(e){e.filterSensitiveLog=t=>o({},t)})(yM=d.ExportDescription||(d.ExportDescription={}));var gM;(function(e){e.filterSensitiveLog=t=>o({},t)})(gM=d.DescribeExportOutput||(d.DescribeExportOutput={}));var _M;(function(e){e.filterSensitiveLog=t=>o({},t)})(_M=d.ExportNotFoundException||(d.ExportNotFoundException={}));var wM;(function(e){e.filterSensitiveLog=t=>o({},t)})(wM=d.DescribeGlobalTableInput||(d.DescribeGlobalTableInput={}));var bM;(function(e){e.filterSensitiveLog=t=>o({},t)})(bM=d.DescribeGlobalTableOutput||(d.DescribeGlobalTableOutput={}));var SM;(function(e){e.filterSensitiveLog=t=>o({},t)})(SM=d.GlobalTableNotFoundException||(d.GlobalTableNotFoundException={}));var vM;(function(e){e.filterSensitiveLog=t=>o({},t)})(vM=d.DescribeGlobalTableSettingsInput||(d.DescribeGlobalTableSettingsInput={}));var EM;(function(e){e.filterSensitiveLog=t=>o({},t)})(EM=d.ReplicaGlobalSecondaryIndexSettingsDescription||(d.ReplicaGlobalSecondaryIndexSettingsDescription={}));var AM;(function(e){e.filterSensitiveLog=t=>o({},t)})(AM=d.ReplicaSettingsDescription||(d.ReplicaSettingsDescription={}));var CM;(function(e){e.filterSensitiveLog=t=>o({},t)})(CM=d.DescribeGlobalTableSettingsOutput||(d.DescribeGlobalTableSettingsOutput={}));var TM;(function(e){e.filterSensitiveLog=t=>o({},t)})(TM=d.DescribeKinesisStreamingDestinationInput||(d.DescribeKinesisStreamingDestinationInput={}));var xM;(function(e){e.filterSensitiveLog=t=>o({},t)})(xM=d.KinesisDataStreamDestination||(d.KinesisDataStreamDestination={}));var IM;(function(e){e.filterSensitiveLog=t=>o({},t)})(IM=d.DescribeKinesisStreamingDestinationOutput||(d.DescribeKinesisStreamingDestinationOutput={}));var RM;(function(e){e.filterSensitiveLog=t=>o({},t)})(RM=d.DescribeLimitsInput||(d.DescribeLimitsInput={}));var kM;(function(e){e.filterSensitiveLog=t=>o({},t)})(kM=d.DescribeLimitsOutput||(d.DescribeLimitsOutput={}));var DM;(function(e){e.filterSensitiveLog=t=>o({},t)})(DM=d.DescribeTableInput||(d.DescribeTableInput={}));var LM;(function(e){e.filterSensitiveLog=t=>o({},t)})(LM=d.DescribeTableOutput||(d.DescribeTableOutput={}));var PM;(function(e){e.filterSensitiveLog=t=>o({},t)})(PM=d.DescribeTableReplicaAutoScalingInput||(d.DescribeTableReplicaAutoScalingInput={}));var NM;(function(e){e.filterSensitiveLog=t=>o({},t)})(NM=d.ReplicaGlobalSecondaryIndexAutoScalingDescription||(d.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var qM;(function(e){e.filterSensitiveLog=t=>o({},t)})(qM=d.ReplicaAutoScalingDescription||(d.ReplicaAutoScalingDescription={}));var MM;(function(e){e.filterSensitiveLog=t=>o({},t)})(MM=d.TableAutoScalingDescription||(d.TableAutoScalingDescription={}));var OM;(function(e){e.filterSensitiveLog=t=>o({},t)})(OM=d.DescribeTableReplicaAutoScalingOutput||(d.DescribeTableReplicaAutoScalingOutput={}));var zM;(function(e){e.filterSensitiveLog=t=>o({},t)})(zM=d.DescribeTimeToLiveInput||(d.DescribeTimeToLiveInput={}));var jM;(function(e){e.filterSensitiveLog=t=>o({},t)})(jM=d.DescribeTimeToLiveOutput||(d.DescribeTimeToLiveOutput={}));var UM;(function(e){e.filterSensitiveLog=t=>o({},t)})(UM=d.KinesisStreamingDestinationInput||(d.KinesisStreamingDestinationInput={}));var BM;(function(e){e.filterSensitiveLog=t=>o({},t)})(BM=d.KinesisStreamingDestinationOutput||(d.KinesisStreamingDestinationOutput={}));var FM;(function(e){e.filterSensitiveLog=t=>o({},t)})(FM=d.DuplicateItemException||(d.DuplicateItemException={}));var GM;(function(e){e.filterSensitiveLog=t=>o({},t)})(GM=d.IdempotentParameterMismatchException||(d.IdempotentParameterMismatchException={}));var $M;(function(e){e.filterSensitiveLog=t=>o({},t)})($M=d.TransactionInProgressException||(d.TransactionInProgressException={}));var KM;(function(e){e.filterSensitiveLog=t=>o({},t)})(KM=d.ExportConflictException||(d.ExportConflictException={}));var VM;(function(e){e.filterSensitiveLog=t=>o({},t)})(VM=d.ExportTableToPointInTimeInput||(d.ExportTableToPointInTimeInput={}));var WM;(function(e){e.filterSensitiveLog=t=>o({},t)})(WM=d.ExportTableToPointInTimeOutput||(d.ExportTableToPointInTimeOutput={}));var HM;(function(e){e.filterSensitiveLog=t=>o({},t)})(HM=d.InvalidExportTimeException||(d.InvalidExportTimeException={}));var YM;(function(e){e.filterSensitiveLog=t=>o({},t)})(YM=d.PointInTimeRecoveryUnavailableException||(d.PointInTimeRecoveryUnavailableException={}));var JM;(function(e){e.filterSensitiveLog=t=>o({},t)})(JM=d.ListBackupsInput||(d.ListBackupsInput={}));var QM;(function(e){e.filterSensitiveLog=t=>o({},t)})(QM=d.ListBackupsOutput||(d.ListBackupsOutput={}));var XM;(function(e){e.filterSensitiveLog=t=>o({},t)})(XM=d.ListContributorInsightsInput||(d.ListContributorInsightsInput={}));var ZM;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZM=d.ListContributorInsightsOutput||(d.ListContributorInsightsOutput={}));var eO;(function(e){e.filterSensitiveLog=t=>o({},t)})(eO=d.ListExportsInput||(d.ListExportsInput={}));var tO;(function(e){e.filterSensitiveLog=t=>o({},t)})(tO=d.ExportSummary||(d.ExportSummary={}));var nO;(function(e){e.filterSensitiveLog=t=>o({},t)})(nO=d.ListExportsOutput||(d.ListExportsOutput={}));var rO;(function(e){e.filterSensitiveLog=t=>o({},t)})(rO=d.ListGlobalTablesInput||(d.ListGlobalTablesInput={}));var sO;(function(e){e.filterSensitiveLog=t=>o({},t)})(sO=d.GlobalTable||(d.GlobalTable={}));var iO;(function(e){e.filterSensitiveLog=t=>o({},t)})(iO=d.ListGlobalTablesOutput||(d.ListGlobalTablesOutput={}));var aO;(function(e){e.filterSensitiveLog=t=>o({},t)})(aO=d.ListTablesInput||(d.ListTablesInput={}));var oO;(function(e){e.filterSensitiveLog=t=>o({},t)})(oO=d.ListTablesOutput||(d.ListTablesOutput={}));var cO;(function(e){e.filterSensitiveLog=t=>o({},t)})(cO=d.ListTagsOfResourceInput||(d.ListTagsOfResourceInput={}));var lO;(function(e){e.filterSensitiveLog=t=>o({},t)})(lO=d.ListTagsOfResourceOutput||(d.ListTagsOfResourceOutput={}));var dO;(function(e){e.filterSensitiveLog=t=>o({},t)})(dO=d.RestoreTableFromBackupInput||(d.RestoreTableFromBackupInput={}));var uO;(function(e){e.filterSensitiveLog=t=>o({},t)})(uO=d.RestoreTableFromBackupOutput||(d.RestoreTableFromBackupOutput={}));var mO;(function(e){e.filterSensitiveLog=t=>o({},t)})(mO=d.TableAlreadyExistsException||(d.TableAlreadyExistsException={}));var fO;(function(e){e.filterSensitiveLog=t=>o({},t)})(fO=d.InvalidRestoreTimeException||(d.InvalidRestoreTimeException={}));var pO;(function(e){e.filterSensitiveLog=t=>o({},t)})(pO=d.RestoreTableToPointInTimeInput||(d.RestoreTableToPointInTimeInput={}));var hO;(function(e){e.filterSensitiveLog=t=>o({},t)})(hO=d.RestoreTableToPointInTimeOutput||(d.RestoreTableToPointInTimeOutput={}));var yO;(function(e){e.filterSensitiveLog=t=>o({},t)})(yO=d.TagResourceInput||(d.TagResourceInput={}));var gO;(function(e){e.filterSensitiveLog=t=>o({},t)})(gO=d.UntagResourceInput||(d.UntagResourceInput={}));var _O;(function(e){e.filterSensitiveLog=t=>o({},t)})(_O=d.PointInTimeRecoverySpecification||(d.PointInTimeRecoverySpecification={}));var wO;(function(e){e.filterSensitiveLog=t=>o({},t)})(wO=d.UpdateContinuousBackupsInput||(d.UpdateContinuousBackupsInput={}));var bO;(function(e){e.filterSensitiveLog=t=>o({},t)})(bO=d.UpdateContinuousBackupsOutput||(d.UpdateContinuousBackupsOutput={}));var SO;(function(e){e.filterSensitiveLog=t=>o({},t)})(SO=d.UpdateContributorInsightsInput||(d.UpdateContributorInsightsInput={}));var vO;(function(e){e.filterSensitiveLog=t=>o({},t)})(vO=d.UpdateContributorInsightsOutput||(d.UpdateContributorInsightsOutput={}));var EO;(function(e){e.filterSensitiveLog=t=>o({},t)})(EO=d.ReplicaAlreadyExistsException||(d.ReplicaAlreadyExistsException={}));var AO;(function(e){e.filterSensitiveLog=t=>o({},t)})(AO=d.ReplicaNotFoundException||(d.ReplicaNotFoundException={}));var CO;(function(e){e.filterSensitiveLog=t=>o({},t)})(CO=d.ReplicaUpdate||(d.ReplicaUpdate={}));var TO;(function(e){e.filterSensitiveLog=t=>o({},t)})(TO=d.UpdateGlobalTableInput||(d.UpdateGlobalTableInput={}));var xO;(function(e){e.filterSensitiveLog=t=>o({},t)})(xO=d.UpdateGlobalTableOutput||(d.UpdateGlobalTableOutput={}));var IO;(function(e){e.filterSensitiveLog=t=>o({},t)})(IO=d.IndexNotFoundException||(d.IndexNotFoundException={}));var RO;(function(e){e.filterSensitiveLog=t=>o({},t)})(RO=d.GlobalTableGlobalSecondaryIndexSettingsUpdate||(d.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var kO;(function(e){e.filterSensitiveLog=t=>o({},t)})(kO=d.ReplicaGlobalSecondaryIndexSettingsUpdate||(d.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var DO;(function(e){e.filterSensitiveLog=t=>o({},t)})(DO=d.ReplicaSettingsUpdate||(d.ReplicaSettingsUpdate={}));var LO;(function(e){e.filterSensitiveLog=t=>o({},t)})(LO=d.UpdateGlobalTableSettingsInput||(d.UpdateGlobalTableSettingsInput={}));var PO;(function(e){e.filterSensitiveLog=t=>o({},t)})(PO=d.UpdateGlobalTableSettingsOutput||(d.UpdateGlobalTableSettingsOutput={}));var NO;(function(e){e.filterSensitiveLog=t=>o({},t)})(NO=d.UpdateGlobalSecondaryIndexAction||(d.UpdateGlobalSecondaryIndexAction={}));var qO;(function(e){e.filterSensitiveLog=t=>o({},t)})(qO=d.GlobalSecondaryIndexUpdate||(d.GlobalSecondaryIndexUpdate={}));var MO;(function(e){e.filterSensitiveLog=t=>o({},t)})(MO=d.UpdateReplicationGroupMemberAction||(d.UpdateReplicationGroupMemberAction={}));var OO;(function(e){e.filterSensitiveLog=t=>o({},t)})(OO=d.ReplicationGroupUpdate||(d.ReplicationGroupUpdate={}));var zO;(function(e){e.filterSensitiveLog=t=>o({},t)})(zO=d.UpdateTableInput||(d.UpdateTableInput={}));var jO;(function(e){e.filterSensitiveLog=t=>o({},t)})(jO=d.UpdateTableOutput||(d.UpdateTableOutput={}));var UO;(function(e){e.filterSensitiveLog=t=>o({},t)})(UO=d.GlobalSecondaryIndexAutoScalingUpdate||(d.GlobalSecondaryIndexAutoScalingUpdate={}));var BO;(function(e){e.filterSensitiveLog=t=>o({},t)})(BO=d.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(d.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var FO;(function(e){e.filterSensitiveLog=t=>o({},t)})(FO=d.ReplicaAutoScalingUpdate||(d.ReplicaAutoScalingUpdate={}));var GO;(function(e){e.filterSensitiveLog=t=>o({},t)})(GO=d.UpdateTableReplicaAutoScalingInput||(d.UpdateTableReplicaAutoScalingInput={}));var $O;(function(e){e.filterSensitiveLog=t=>o({},t)})($O=d.UpdateTableReplicaAutoScalingOutput||(d.UpdateTableReplicaAutoScalingOutput={}));var KO;(function(e){e.filterSensitiveLog=t=>o({},t)})(KO=d.TimeToLiveSpecification||(d.TimeToLiveSpecification={}));var VO;(function(e){e.filterSensitiveLog=t=>o({},t)})(VO=d.UpdateTimeToLiveInput||(d.UpdateTimeToLiveInput={}));var WO;(function(e){e.filterSensitiveLog=t=>o({},t)})(WO=d.UpdateTimeToLiveOutput||(d.UpdateTimeToLiveOutput={}));var re;(function(e){e.visit=(t,n)=>t.S!==void 0?n.S(t.S):t.N!==void 0?n.N(t.N):t.B!==void 0?n.B(t.B):t.SS!==void 0?n.SS(t.SS):t.NS!==void 0?n.NS(t.NS):t.BS!==void 0?n.BS(t.BS):t.M!==void 0?n.M(t.M):t.L!==void 0?n.L(t.L):t.NULL!==void 0?n.NULL(t.NULL):t.BOOL!==void 0?n.BOOL(t.BOOL):n._(t.$unknown[0],t.$unknown[1]),e.filterSensitiveLog=t=>{if(t.S!==void 0)return{S:t.S};if(t.N!==void 0)return{N:t.N};if(t.B!==void 0)return{B:t.B};if(t.SS!==void 0)return{SS:t.SS};if(t.NS!==void 0)return{NS:t.NS};if(t.BS!==void 0)return{BS:t.BS};if(t.M!==void 0)return{M:Object.entries(t.M).reduce((n,[r,s])=>u(o({},n),{[r]:e.filterSensitiveLog(s)}),{})};if(t.L!==void 0)return{L:t.L.map(n=>e.filterSensitiveLog(n))};if(t.NULL!==void 0)return{NULL:t.NULL};if(t.BOOL!==void 0)return{BOOL:t.BOOL};if(t.$unknown!==void 0)return{[t.$unknown[0]]:"UNKNOWN"}}})(re=d.AttributeValue||(d.AttributeValue={}));var uw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Value&&{Value:re.filterSensitiveLog(t.Value)})})(uw=d.AttributeValueUpdate||(d.AttributeValueUpdate={}));var mw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(mw=d.BatchStatementRequest||(d.BatchStatementRequest={}));var fw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(fw=d.BatchStatementResponse||(d.BatchStatementResponse={}));var pw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(pw=d.CancellationReason||(d.CancellationReason={}));var La;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>re.filterSensitiveLog(n))})})(La=d.Condition||(d.Condition={}));var hw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(hw=d.DeleteRequest||(d.DeleteRequest={}));var HO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(HO=d.ExecuteStatementInput||(d.ExecuteStatementInput={}));var yw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(yw=d.Get||(d.Get={}));var YO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(YO=d.GetItemInput||(d.GetItemInput={}));var JO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(JO=d.GetItemOutput||(d.GetItemOutput={}));var cs;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(cs=d.ItemCollectionMetrics||(d.ItemCollectionMetrics={}));var Tf;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Tf=d.ItemResponse||(d.ItemResponse={}));var gw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>re.filterSensitiveLog(n))})})(gw=d.ParameterizedStatement||(d.ParameterizedStatement={}));var _w;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(_w=d.PutRequest||(d.PutRequest={}));var QO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))})})(QO=d.ExecuteStatementOutput||(d.ExecuteStatementOutput={}));var xf;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))})})(xf=d.KeysAndAttributes||(d.KeysAndAttributes={}));var ww;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Get&&{Get:yw.filterSensitiveLog(t.Get)})})(ww=d.TransactGetItem||(d.TransactGetItem={}));var XO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Statements&&{Statements:t.Statements.map(n=>mw.filterSensitiveLog(n))})})(XO=d.BatchExecuteStatementInput||(d.BatchExecuteStatementInput={}));var ZO;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>fw.filterSensitiveLog(n))})})(ZO=d.BatchExecuteStatementOutput||(d.BatchExecuteStatementOutput={}));var ez;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>gw.filterSensitiveLog(n))})})(ez=d.ExecuteTransactionInput||(d.ExecuteTransactionInput={}));var tz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>Tf.filterSensitiveLog(n))})})(tz=d.ExecuteTransactionOutput||(d.ExecuteTransactionOutput={}));var nz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>Tf.filterSensitiveLog(n))})})(nz=d.TransactGetItemsOutput||(d.TransactGetItemsOutput={}));var rz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.CancellationReasons&&{CancellationReasons:t.CancellationReasons.map(n=>pw.filterSensitiveLog(n))})})(rz=d.TransactionCanceledException||(d.TransactionCanceledException={}));var sz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,s])=>u(o({},n),{[r]:xf.filterSensitiveLog(s)}),{})})})(sz=d.BatchGetItemInput||(d.BatchGetItemInput={}));var Pa;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Value&&{Value:re.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>re.filterSensitiveLog(n))})})(Pa=d.ExpectedAttributeValue||(d.ExpectedAttributeValue={}));var iz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>ww.filterSensitiveLog(n))})})(iz=d.TransactGetItemsInput||(d.TransactGetItemsInput={}));var az;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>cs.filterSensitiveLog(i))}),{})})})(az=d.TransactWriteItemsOutput||(d.TransactWriteItemsOutput={}));var bw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(bw=d.ConditionCheck||(d.ConditionCheck={}));var Sw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Sw=d.Delete||(d.Delete={}));var vw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(vw=d.Put||(d.Put={}));var Ew;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(Ew=d.Update||(d.Update={}));var oz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:cs.filterSensitiveLog(t.ItemCollectionMetrics)})})(oz=d.DeleteItemOutput||(d.DeleteItemOutput={}));var cz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:cs.filterSensitiveLog(t.ItemCollectionMetrics)})})(cz=d.PutItemOutput||(d.PutItemOutput={}));var lz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(lz=d.QueryOutput||(d.QueryOutput={}));var dz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[s,i])=>u(o({},r),{[s]:re.filterSensitiveLog(i)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(dz=d.ScanOutput||(d.ScanOutput={}));var uz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:cs.filterSensitiveLog(t.ItemCollectionMetrics)})})(uz=d.UpdateItemOutput||(d.UpdateItemOutput={}));var If;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.PutRequest&&{PutRequest:_w.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:hw.filterSensitiveLog(t.DeleteRequest)})})(If=d.WriteRequest||(d.WriteRequest={}));var mz;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>Object.entries(i).reduce((a,[c,l])=>u(o({},a),{[c]:re.filterSensitiveLog(l)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,s])=>u(o({},n),{[r]:xf.filterSensitiveLog(s)}),{})})})(mz=d.BatchGetItemOutput||(d.BatchGetItemOutput={}));var fz;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(fz=d.ScanInput||(d.ScanInput={}));var pz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>If.filterSensitiveLog(i))}),{})})})(pz=d.BatchWriteItemInput||(d.BatchWriteItemInput={}));var hz;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(hz=d.DeleteItemInput||(d.DeleteItemInput={}));var yz;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(yz=d.PutItemInput||(d.PutItemInput={}));var gz;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,s])=>u(o({},n),{[r]:La.filterSensitiveLog(s)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(gz=d.QueryInput||(d.QueryInput={}));var _z;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>If.filterSensitiveLog(i))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,s])=>u(o({},n),{[r]:s.map(i=>cs.filterSensitiveLog(i))}),{})})})(_z=d.BatchWriteItemOutput||(d.BatchWriteItemOutput={}));var wz;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,s])=>u(o({},n),{[r]:uw.filterSensitiveLog(s)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,s])=>u(o({},n),{[r]:Pa.filterSensitiveLog(s)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,s])=>u(o({},n),{[r]:re.filterSensitiveLog(s)}),{})})})(wz=d.UpdateItemInput||(d.UpdateItemInput={}));var Aw;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.ConditionCheck&&{ConditionCheck:bw.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:vw.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:Sw.filterSensitiveLog(t.Delete)}),t.Update&&{Update:Ew.filterSensitiveLog(t.Update)})})(Aw=d.TransactWriteItem||(d.TransactWriteItem={}));var bz;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>Aw.filterSensitiveLog(n))})})(bz=d.TransactWriteItemsInput||(d.TransactWriteItemsInput={}))});var Tw=p(Na=>{"use strict";Object.defineProperty(Na,"__esModule",{value:!0});Na.HttpResponse=void 0;var Cw=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};Na.HttpResponse=Cw});var xw=p(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.HttpRequest=void 0;var qa=class{constructor(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:"/"}static isInstance(t){if(!t)return!1;let n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){let t=new qa(u(o({},this),{headers:o({},this.headers)}));return t.query&&(t.query=Sz(t.query)),t}};Ma.HttpRequest=qa;function Sz(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return u(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var Rw=p(Iw=>{"use strict";Object.defineProperty(Iw,"__esModule",{value:!0})});var kw=p(Oa=>{"use strict";Object.defineProperty(Oa,"__esModule",{value:!0});Oa.isValidHostname=void 0;function vz(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}Oa.isValidHostname=vz});var Dt=p(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var za=he();za.__exportStar(Tw(),ls);za.__exportStar(xw(),ls);za.__exportStar(Rw(),ls);za.__exportStar(kw(),ls)});var Pw=p(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});ds.constructStack=void 0;var Ez=()=>{let e=[],t=[],n=new Set,r=f=>f.sort((g,h)=>Dw[h.step]-Dw[g.step]||Lw[h.priority||"normal"]-Lw[g.priority||"normal"]),s=f=>{let g=!1,h=_=>_.name&&_.name===f?(g=!0,n.delete(f),!1):!0;return e=e.filter(h),t=t.filter(h),g},i=f=>{let g=!1,h=_=>_.middleware===f?(g=!0,_.name&&n.delete(_.name),!1):!0;return e=e.filter(h),t=t.filter(h),g},a=f=>(e.forEach(g=>{f.add(g.middleware,o({},g))}),t.forEach(g=>{f.addRelativeTo(g.middleware,o({},g))}),f),c=f=>{let g=[];return f.before.forEach(h=>{h.before.length===0&&h.after.length===0?g.push(h):g.push(...c(h))}),g.push(f),f.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?g.push(h):g.push(...c(h))}),g},l=()=>{let f=[],g=[],h={};return e.forEach(b=>{let E=u(o({},b),{before:[],after:[]});E.name&&(h[E.name]=E),f.push(E)}),t.forEach(b=>{let E=u(o({},b),{before:[],after:[]});E.name&&(h[E.name]=E),g.push(E)}),g.forEach(b=>{if(b.toMiddleware){let E=h[b.toMiddleware];if(E===void 0)throw new Error(`${b.toMiddleware} is not found when adding ${b.name||"anonymous"} middleware ${b.relation} ${b.toMiddleware}`);b.relation==="after"&&E.after.push(b),b.relation==="before"&&E.before.push(b)}}),r(f).map(c).reduce((b,E)=>(b.push(...E),b),[]).map(b=>b.middleware)},m={add:(f,g={})=>{let{name:h,override:_}=g,b=o({step:"initialize",priority:"normal",middleware:f},g);if(h){if(n.has(h)){if(!_)throw new Error(`Duplicate middleware name '${h}'`);let E=e.findIndex(k=>k.name===h),D=e[E];if(D.step!==b.step||D.priority!==b.priority)throw new Error(`"${h}" middleware with ${D.priority} priority in ${D.step} step cannot be overridden by same-name middleware with ${b.priority} priority in ${b.step} step.`);e.splice(E,1)}n.add(h)}e.push(b)},addRelativeTo:(f,g)=>{let{name:h,override:_}=g,b=o({middleware:f},g);if(h){if(n.has(h)){if(!_)throw new Error(`Duplicate middleware name '${h}'`);let E=t.findIndex(k=>k.name===h),D=t[E];if(D.toMiddleware!==b.toMiddleware||D.relation!==b.relation)throw new Error(`"${h}" middleware ${D.relation} "${D.toMiddleware}" middleware cannot be overridden by same-name middleware ${b.relation} "${b.toMiddleware}" middleware.`);t.splice(E,1)}n.add(h)}t.push(b)},clone:()=>a(ds.constructStack()),use:f=>{f.applyToStack(m)},remove:f=>typeof f=="string"?s(f):i(f),removeByTag:f=>{let g=!1,h=_=>{let{tags:b,name:E}=_;return b&&b.includes(f)?(E&&n.delete(E),g=!0,!1):!0};return e=e.filter(h),t=t.filter(h),g},concat:f=>{let g=a(ds.constructStack());return g.use(f),g},applyToStack:a,resolve:(f,g)=>{for(let h of l().reverse())f=h(f,g);return f}};return m};ds.constructStack=Ez;var Dw={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Lw={high:3,normal:2,low:1}});var kf=p(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var Az=he();Az.__exportStar(Pw(),Rf)});var qw=p(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.Client=void 0;var Cz=kf(),Nw=class{constructor(t){this.middlewareStack=Cz.constructStack(),this.config=t}send(t,n,r){let s=typeof n!="function"?n:void 0,i=typeof n=="function"?n:r,a=t.resolveMiddleware(this.middlewareStack,this.config,s);if(i)a(t).then(c=>i(null,c.output),c=>i(c)).catch(()=>{});else return a(t).then(c=>c.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};ja.Client=Nw});var Ow=p(Ua=>{"use strict";Object.defineProperty(Ua,"__esModule",{value:!0});Ua.Command=void 0;var Tz=kf(),Mw=class{constructor(){this.middlewareStack=Tz.constructStack()}};Ua.Command=Mw});var jw=p(zw=>{"use strict";Object.defineProperty(zw,"__esModule",{value:!0})});var Bw=p(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0})});var Fw=p(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.extendedEncodeURIComponent=void 0;function xz(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}Ba.extendedEncodeURIComponent=xz});var Gw=p(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.getArrayIfSingleItem=void 0;var Iz=e=>Array.isArray(e)?e:[e];Fa.getArrayIfSingleItem=Iz});var $w=p(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.getValueFromTextNode=void 0;var Rz=e=>{let t="#text";for(let n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=fi.getValueFromTextNode(e[n]));return e};fi.getValueFromTextNode=Rz});var Kw=p(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.LazyJsonString=tn.StringWrapper=void 0;var kz=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};tn.StringWrapper=kz;tn.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:tn.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(tn.StringWrapper,String);var us=class extends tn.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof us?t:t instanceof String||typeof t=="string"?new us(t):new us(JSON.stringify(t))}};tn.LazyJsonString=us});var Vw=p(Lt=>{"use strict";Object.defineProperty(Lt,"__esModule",{value:!0});Lt.handleFloat=Lt.expectString=Lt.expectNumber=Lt.expectBoolean=Lt.parseBoolean=void 0;var Dz=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};Lt.parseBoolean=Dz;var Lz=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};Lt.expectBoolean=Lz;var Pz=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};Lt.expectNumber=Pz;var Nz=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};Lt.expectString=Nz;var qz=e=>{if(typeof e=="string")switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}return Lt.expectNumber(e)};Lt.handleFloat=qz});var Ww=p(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.serializeFloat=void 0;var Mz=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};Ga.serializeFloat=Mz});var Hw=p($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});$a.dateToUtcString=void 0;var Oz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],zz=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function jz(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),s=e.getUTCDate(),i=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),l=s<10?`0${s}`:`${s}`,m=i<10?`0${i}`:`${i}`,f=a<10?`0${a}`:`${a}`,g=c<10?`0${c}`:`${c}`;return`${Oz[r]}, ${l} ${zz[n]} ${t} ${m}:${f}:${g} GMT`}$a.dateToUtcString=jz});var Yw=p(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.splitEvery=void 0;function Uz(e,t,n){if(n<=0||!Number.isInteger(n))throw new Error("Invalid number of delimiters ("+n+") for splitEvery.");let r=e.split(t);if(n===1)return r;let s=[],i="";for(let a=0;a<r.length;a++)i===""?i=r[a]:i+=t+r[a],(a+1)%n==0&&(s.push(i),i="");return i!==""&&s.push(i),s}Ka.splitEvery=Uz});var Jw=p(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});Va.SENSITIVE_STRING=void 0;Va.SENSITIVE_STRING="***SensitiveInformation***"});var Xw=p(Qw=>{"use strict";Object.defineProperty(Qw,"__esModule",{value:!0})});var eb=p(Zw=>{"use strict";Object.defineProperty(Zw,"__esModule",{value:!0})});var M=p(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var dt=he();dt.__exportStar(qw(),Ye);dt.__exportStar(Ow(),Ye);dt.__exportStar(jw(),Ye);dt.__exportStar(Bw(),Ye);dt.__exportStar(Fw(),Ye);dt.__exportStar(Gw(),Ye);dt.__exportStar($w(),Ye);dt.__exportStar(Kw(),Ye);dt.__exportStar(Vw(),Ye);dt.__exportStar(Ww(),Ye);dt.__exportStar(Hw(),Ye);dt.__exportStar(Yw(),Ye);dt.__exportStar(Jw(),Ye);dt.__exportStar(Xw(),Ye);dt.__exportStar(eb(),Ye)});var Lf=p(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.default=Gz;var Bz=Fz(require("crypto"));function Fz(e){return e&&e.__esModule?e:{default:e}}var Wa=new Uint8Array(256),Ha=Wa.length;function Gz(){return Ha>Wa.length-16&&(Bz.default.randomFillSync(Wa),Ha=0),Wa.slice(Ha,Ha+=16)}});var tb=p(Ya=>{"use strict";Object.defineProperty(Ya,"__esModule",{value:!0});Ya.default=void 0;var $z=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;Ya.default=$z});var pi=p(Ja=>{"use strict";Object.defineProperty(Ja,"__esModule",{value:!0});Ja.default=void 0;var Kz=Vz(tb());function Vz(e){return e&&e.__esModule?e:{default:e}}function Wz(e){return typeof e=="string"&&Kz.default.test(e)}var Hz=Wz;Ja.default=Hz});var hi=p(Qa=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=void 0;var Yz=Jz(pi());function Jz(e){return e&&e.__esModule?e:{default:e}}var Je=[];for(let e=0;e<256;++e)Je.push((e+256).toString(16).substr(1));function Qz(e,t=0){let n=(Je[e[t+0]]+Je[e[t+1]]+Je[e[t+2]]+Je[e[t+3]]+"-"+Je[e[t+4]]+Je[e[t+5]]+"-"+Je[e[t+6]]+Je[e[t+7]]+"-"+Je[e[t+8]]+Je[e[t+9]]+"-"+Je[e[t+10]]+Je[e[t+11]]+Je[e[t+12]]+Je[e[t+13]]+Je[e[t+14]]+Je[e[t+15]]).toLowerCase();if(!(0,Yz.default)(n))throw TypeError("Stringified UUID is invalid");return n}var Xz=Qz;Qa.default=Xz});var sb=p(Xa=>{"use strict";Object.defineProperty(Xa,"__esModule",{value:!0});Xa.default=void 0;var Zz=nb(Lf()),ej=nb(hi());function nb(e){return e&&e.__esModule?e:{default:e}}var rb,Pf,Nf=0,qf=0;function tj(e,t,n){let r=t&&n||0,s=t||new Array(16);e=e||{};let i=e.node||rb,a=e.clockseq!==void 0?e.clockseq:Pf;if(i==null||a==null){let h=e.random||(e.rng||Zz.default)();i==null&&(i=rb=[h[0]|1,h[1],h[2],h[3],h[4],h[5]]),a==null&&(a=Pf=(h[6]<<8|h[7])&16383)}let c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:qf+1,m=c-Nf+(l-qf)/1e4;if(m<0&&e.clockseq===void 0&&(a=a+1&16383),(m<0||c>Nf)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");Nf=c,qf=l,Pf=a,c+=122192928e5;let f=((c&268435455)*1e4+l)%4294967296;s[r++]=f>>>24&255,s[r++]=f>>>16&255,s[r++]=f>>>8&255,s[r++]=f&255;let g=c/4294967296*1e4&268435455;s[r++]=g>>>8&255,s[r++]=g&255,s[r++]=g>>>24&15|16,s[r++]=g>>>16&255,s[r++]=a>>>8|128,s[r++]=a&255;for(let h=0;h<6;++h)s[r+h]=i[h];return t||(0,ej.default)(s)}var nj=tj;Xa.default=nj});var Mf=p(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});Za.default=void 0;var rj=sj(pi());function sj(e){return e&&e.__esModule?e:{default:e}}function ij(e){if(!(0,rj.default)(e))throw TypeError("Invalid UUID");let t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}var aj=ij;Za.default=aj});var Of=p(Rr=>{"use strict";Object.defineProperty(Rr,"__esModule",{value:!0});Rr.default=dj;Rr.URL=Rr.DNS=void 0;var oj=ib(hi()),cj=ib(Mf());function ib(e){return e&&e.__esModule?e:{default:e}}function lj(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var ab="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Rr.DNS=ab;var ob="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Rr.URL=ob;function dj(e,t,n){function r(s,i,a,c){if(typeof s=="string"&&(s=lj(s)),typeof i=="string"&&(i=(0,cj.default)(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+s.length);if(l.set(i),l.set(s,i.length),l=n(l),l[6]=l[6]&15|t,l[8]=l[8]&63|128,a){c=c||0;for(let m=0;m<16;++m)a[c+m]=l[m];return a}return(0,oj.default)(l)}try{r.name=e}catch(s){}return r.DNS=ab,r.URL=ob,r}});var cb=p(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.default=void 0;var uj=mj(require("crypto"));function mj(e){return e&&e.__esModule?e:{default:e}}function fj(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),uj.default.createHash("md5").update(e).digest()}var pj=fj;eo.default=pj});var db=p(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});to.default=void 0;var hj=lb(Of()),yj=lb(cb());function lb(e){return e&&e.__esModule?e:{default:e}}var gj=(0,hj.default)("v3",48,yj.default),_j=gj;to.default=_j});var mb=p(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.default=void 0;var wj=ub(Lf()),bj=ub(hi());function ub(e){return e&&e.__esModule?e:{default:e}}function Sj(e,t,n){e=e||{};let r=e.random||(e.rng||wj.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let s=0;s<16;++s)t[n+s]=r[s];return t}return(0,bj.default)(r)}var vj=Sj;no.default=vj});var fb=p(ro=>{"use strict";Object.defineProperty(ro,"__esModule",{value:!0});ro.default=void 0;var Ej=Aj(require("crypto"));function Aj(e){return e&&e.__esModule?e:{default:e}}function Cj(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),Ej.default.createHash("sha1").update(e).digest()}var Tj=Cj;ro.default=Tj});var hb=p(so=>{"use strict";Object.defineProperty(so,"__esModule",{value:!0});so.default=void 0;var xj=pb(Of()),Ij=pb(fb());function pb(e){return e&&e.__esModule?e:{default:e}}var Rj=(0,xj.default)("v5",80,Ij.default),kj=Rj;so.default=kj});var yb=p(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.default=void 0;var Dj="00000000-0000-0000-0000-000000000000";io.default=Dj});var gb=p(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.default=void 0;var Lj=Pj(pi());function Pj(e){return e&&e.__esModule?e:{default:e}}function Nj(e){if(!(0,Lj.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var qj=Nj;ao.default=qj});var zf=p(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Object.defineProperty(Vt,"v1",{enumerable:!0,get:function(){return Mj.default}});Object.defineProperty(Vt,"v3",{enumerable:!0,get:function(){return Oj.default}});Object.defineProperty(Vt,"v4",{enumerable:!0,get:function(){return zj.default}});Object.defineProperty(Vt,"v5",{enumerable:!0,get:function(){return jj.default}});Object.defineProperty(Vt,"NIL",{enumerable:!0,get:function(){return Uj.default}});Object.defineProperty(Vt,"version",{enumerable:!0,get:function(){return Bj.default}});Object.defineProperty(Vt,"validate",{enumerable:!0,get:function(){return Fj.default}});Object.defineProperty(Vt,"stringify",{enumerable:!0,get:function(){return Gj.default}});Object.defineProperty(Vt,"parse",{enumerable:!0,get:function(){return $j.default}});var Mj=In(sb()),Oj=In(db()),zj=In(mb()),jj=In(hb()),Uj=In(yb()),Bj=In(gb()),Fj=In(pi()),Gj=In(hi()),$j=In(Mf());function In(e){return e&&e.__esModule?e:{default:e}}});var H=p(v=>{"use strict";Object.defineProperty(v,"__esModule",{value:!0});v.serializeAws_json1_0UpdateTimeToLiveCommand=v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v.serializeAws_json1_0UpdateTableCommand=v.serializeAws_json1_0UpdateItemCommand=v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=v.serializeAws_json1_0UpdateGlobalTableCommand=v.serializeAws_json1_0UpdateContributorInsightsCommand=v.serializeAws_json1_0UpdateContinuousBackupsCommand=v.serializeAws_json1_0UntagResourceCommand=v.serializeAws_json1_0TransactWriteItemsCommand=v.serializeAws_json1_0TransactGetItemsCommand=v.serializeAws_json1_0TagResourceCommand=v.serializeAws_json1_0ScanCommand=v.serializeAws_json1_0RestoreTableToPointInTimeCommand=v.serializeAws_json1_0RestoreTableFromBackupCommand=v.serializeAws_json1_0QueryCommand=v.serializeAws_json1_0PutItemCommand=v.serializeAws_json1_0ListTagsOfResourceCommand=v.serializeAws_json1_0ListTablesCommand=v.serializeAws_json1_0ListGlobalTablesCommand=v.serializeAws_json1_0ListExportsCommand=v.serializeAws_json1_0ListContributorInsightsCommand=v.serializeAws_json1_0ListBackupsCommand=v.serializeAws_json1_0GetItemCommand=v.serializeAws_json1_0ExportTableToPointInTimeCommand=v.serializeAws_json1_0ExecuteTransactionCommand=v.serializeAws_json1_0ExecuteStatementCommand=v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=v.serializeAws_json1_0DescribeTimeToLiveCommand=v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=v.serializeAws_json1_0DescribeTableCommand=v.serializeAws_json1_0DescribeLimitsCommand=v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=v.serializeAws_json1_0DescribeGlobalTableCommand=v.serializeAws_json1_0DescribeExportCommand=v.serializeAws_json1_0DescribeEndpointsCommand=v.serializeAws_json1_0DescribeContributorInsightsCommand=v.serializeAws_json1_0DescribeContinuousBackupsCommand=v.serializeAws_json1_0DescribeBackupCommand=v.serializeAws_json1_0DeleteTableCommand=v.serializeAws_json1_0DeleteItemCommand=v.serializeAws_json1_0DeleteBackupCommand=v.serializeAws_json1_0CreateTableCommand=v.serializeAws_json1_0CreateGlobalTableCommand=v.serializeAws_json1_0CreateBackupCommand=v.serializeAws_json1_0BatchWriteItemCommand=v.serializeAws_json1_0BatchGetItemCommand=v.serializeAws_json1_0BatchExecuteStatementCommand=void 0;v.deserializeAws_json1_0UpdateTimeToLiveCommand=v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v.deserializeAws_json1_0UpdateTableCommand=v.deserializeAws_json1_0UpdateItemCommand=v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=v.deserializeAws_json1_0UpdateGlobalTableCommand=v.deserializeAws_json1_0UpdateContributorInsightsCommand=v.deserializeAws_json1_0UpdateContinuousBackupsCommand=v.deserializeAws_json1_0UntagResourceCommand=v.deserializeAws_json1_0TransactWriteItemsCommand=v.deserializeAws_json1_0TransactGetItemsCommand=v.deserializeAws_json1_0TagResourceCommand=v.deserializeAws_json1_0ScanCommand=v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=v.deserializeAws_json1_0RestoreTableFromBackupCommand=v.deserializeAws_json1_0QueryCommand=v.deserializeAws_json1_0PutItemCommand=v.deserializeAws_json1_0ListTagsOfResourceCommand=v.deserializeAws_json1_0ListTablesCommand=v.deserializeAws_json1_0ListGlobalTablesCommand=v.deserializeAws_json1_0ListExportsCommand=v.deserializeAws_json1_0ListContributorInsightsCommand=v.deserializeAws_json1_0ListBackupsCommand=v.deserializeAws_json1_0GetItemCommand=v.deserializeAws_json1_0ExportTableToPointInTimeCommand=v.deserializeAws_json1_0ExecuteTransactionCommand=v.deserializeAws_json1_0ExecuteStatementCommand=v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DescribeTimeToLiveCommand=v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=v.deserializeAws_json1_0DescribeTableCommand=v.deserializeAws_json1_0DescribeLimitsCommand=v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=v.deserializeAws_json1_0DescribeGlobalTableCommand=v.deserializeAws_json1_0DescribeExportCommand=v.deserializeAws_json1_0DescribeEndpointsCommand=v.deserializeAws_json1_0DescribeContributorInsightsCommand=v.deserializeAws_json1_0DescribeContinuousBackupsCommand=v.deserializeAws_json1_0DescribeBackupCommand=v.deserializeAws_json1_0DeleteTableCommand=v.deserializeAws_json1_0DeleteItemCommand=v.deserializeAws_json1_0DeleteBackupCommand=v.deserializeAws_json1_0CreateTableCommand=v.deserializeAws_json1_0CreateGlobalTableCommand=v.deserializeAws_json1_0CreateBackupCommand=v.deserializeAws_json1_0BatchWriteItemCommand=v.deserializeAws_json1_0BatchGetItemCommand=v.deserializeAws_json1_0BatchExecuteStatementCommand=void 0;var Kj=W(),Vj=Dt(),w=M(),jf=zf(),Wj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(HF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchExecuteStatementCommand=Wj;var Hj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(YF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchGetItemCommand=Hj;var Yj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(XF(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchWriteItemCommand=Yj;var Jj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(nG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateBackupCommand=Jj;var Qj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify(sG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateGlobalTableCommand=Qj;var Xj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(oG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateTableCommand=Xj;var Zj=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(lG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteBackupCommand=Zj;var eU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(uG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteItemCommand=eU;var tU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(hG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteTableCommand=tU;var nU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(yG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeBackupCommand=nU;var rU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(gG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=rU;var sU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(_G(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContributorInsightsCommand=sU;var iU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(wG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeEndpointsCommand=iU;var aU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(bG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeExportCommand=aU;var oU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(SG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableCommand=oU;var cU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(vG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=cU;var lU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(EG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=lU;var dU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(AG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeLimitsCommand=dU;var uU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(CG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableCommand=uU;var mU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(TG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=mU;var fU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(xG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTimeToLiveCommand=fU;var pU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(Ib(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=pU;var hU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(Ib(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=hU;var yU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(IG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteStatementCommand=yU;var gU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(RG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteTransactionCommand=gU;var _U=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify(DG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=_U;var wU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(PG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0GetItemCommand=wU;var bU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(VG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListBackupsCommand=bU;var SU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(WG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListContributorInsightsCommand=SU;var vU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(HG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListExportsCommand=vU;var EU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(YG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListGlobalTablesCommand=EU;var AU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(JG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTablesCommand=AU;var CU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(QG(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTagsOfResourceCommand=CU;var TU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(o$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0PutItemCommand=TU;var xU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(l$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0QueryCommand=xU;var IU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(C$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableFromBackupCommand=IU;var RU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(T$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=RU;var kU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(x$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0ScanCommand=kU;var DU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify(D$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TagResourceCommand=DU;var LU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(q$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactGetItemsCommand=LU;var PU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(z$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactWriteItemsCommand=PU;var NU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(j$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UntagResourceCommand=NU;var qU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(B$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=qU;var MU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify(F$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContributorInsightsCommand=MU;var OU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify($$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableCommand=OU;var zU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(K$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=zU;var jU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(V$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateItemCommand=jU;var UU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(H$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableCommand=UU;var BU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(Y$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=BU;var FU=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(J$(e,t)),X(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTimeToLiveCommand=FU;var GU=async(e,t)=>{if(e.statusCode>=300)return $U(e,t);let n=await P(e.body,t),r={};r=d2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchExecuteStatementCommand=GU;var $U=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},KU=async(e,t)=>{if(e.statusCode>=300)return VU(e,t);let n=await P(e.body,t),r={};r=u2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchGetItemCommand=KU;var VU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},WU=async(e,t)=>{if(e.statusCode>=300)return HU(e,t);let n=await P(e.body,t),r={};r=y2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0BatchWriteItemCommand=WU;var HU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await yi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},YU=async(e,t)=>{if(e.statusCode>=300)return JU(e,t);let n=await P(e.body,t),r={};r=T2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateBackupCommand=YU;var JU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=u(o({},await _b(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Ff(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},QU=async(e,t)=>{if(e.statusCode>=300)return XU(e,t);let n=await P(e.body,t),r={};r=x2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateGlobalTableCommand=QU;var XU=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":r=u(o({},await zF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},ZU=async(e,t)=>{if(e.statusCode>=300)return eB(e,t);let n=await P(e.body,t),r={};r=I2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0CreateTableCommand=ZU;var eB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},tB=async(e,t)=>{if(e.statusCode>=300)return nB(e,t);let n=await P(e.body,t),r={};r=R2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteBackupCommand=tB;var nB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},rB=async(e,t)=>{if(e.statusCode>=300)return sB(e,t);let n=await P(e.body,t),r={};r=k2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteItemCommand=rB;var sB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await oo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await yi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},iB=async(e,t)=>{if(e.statusCode>=300)return aB(e,t);let n=await P(e.body,t),r={};r=L2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DeleteTableCommand=iB;var aB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},oB=async(e,t)=>{if(e.statusCode>=300)return cB(e,t);let n=await P(e.body,t),r={};r=P2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeBackupCommand=oB;var cB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},lB=async(e,t)=>{if(e.statusCode>=300)return dB(e,t);let n=await P(e.body,t),r={};r=N2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=lB;var dB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},uB=async(e,t)=>{if(e.statusCode>=300)return mB(e,t);let n=await P(e.body,t),r={};r=q2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=uB;var mB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fB=async(e,t)=>{if(e.statusCode>=300)return pB(e,t);let n=await P(e.body,t),r={};r=M2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeEndpointsCommand=fB;var pB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},hB=async(e,t)=>{if(e.statusCode>=300)return yB(e,t);let n=await P(e.body,t),r={};r=O2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeExportCommand=hB;var yB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":r=u(o({},await OF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},gB=async(e,t)=>{if(e.statusCode>=300)return _B(e,t);let n=await P(e.body,t),r={};r=z2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeGlobalTableCommand=gB;var _B=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},wB=async(e,t)=>{if(e.statusCode>=300)return bB(e,t);let n=await P(e.body,t),r={};r=j2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=wB;var bB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},SB=async(e,t)=>{if(e.statusCode>=300)return vB(e,t);let n=await P(e.body,t),r={};r=U2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=SB;var vB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},EB=async(e,t)=>{if(e.statusCode>=300)return AB(e,t);let n=await P(e.body,t),r={};r=B2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeLimitsCommand=EB;var AB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},CB=async(e,t)=>{if(e.statusCode>=300)return TB(e,t);let n=await P(e.body,t),r={};r=F2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTableCommand=CB;var TB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},xB=async(e,t)=>{if(e.statusCode>=300)return IB(e,t);let n=await P(e.body,t),r={};r=G2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=xB;var IB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},RB=async(e,t)=>{if(e.statusCode>=300)return kB(e,t);let n=await P(e.body,t),r={};r=$2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=RB;var kB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},DB=async(e,t)=>{if(e.statusCode>=300)return LB(e,t);let n=await P(e.body,t),r={};r=Ub(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=DB;var LB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},PB=async(e,t)=>{if(e.statusCode>=300)return NB(e,t);let n=await P(e.body,t),r={};r=Ub(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=PB;var NB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},qB=async(e,t)=>{if(e.statusCode>=300)return MB(e,t);let n=await P(e.body,t),r={};r=H2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExecuteStatementCommand=qB;var MB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await oo(n,t)),{name:s,$metadata:y(e)});break;case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":r=u(o({},await qF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await yi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},OB=async(e,t)=>{if(e.statusCode>=300)return zB(e,t);let n=await P(e.body,t),r={};r=Y2(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExecuteTransactionCommand=OB;var zB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=u(o({},await wb(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Gf(n,t)),{name:s,$metadata:y(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=u(o({},await Eb(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},jB=async(e,t)=>{if(e.statusCode>=300)return UB(e,t);let n=await P(e.body,t),r={};r=eK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=jB;var UB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":r=u(o({},await MF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":r=u(o({},await UF(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=u(o({},await bb(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},BB=async(e,t)=>{if(e.statusCode>=300)return FB(e,t);let n=await P(e.body,t),r={};r=rK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0GetItemCommand=BB;var FB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},GB=async(e,t)=>{if(e.statusCode>=300)return $B(e,t);let n=await P(e.body,t),r={};r=kK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListBackupsCommand=GB;var $B=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},KB=async(e,t)=>{if(e.statusCode>=300)return VB(e,t);let n=await P(e.body,t),r={};r=DK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListContributorInsightsCommand=KB;var VB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},WB=async(e,t)=>{if(e.statusCode>=300)return HB(e,t);let n=await P(e.body,t),r={};r=LK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListExportsCommand=WB;var HB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},YB=async(e,t)=>{if(e.statusCode>=300)return JB(e,t);let n=await P(e.body,t),r={};r=PK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListGlobalTablesCommand=YB;var JB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},QB=async(e,t)=>{if(e.statusCode>=300)return XB(e,t);let n=await P(e.body,t),r={};r=NK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListTablesCommand=QB;var XB=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},ZB=async(e,t)=>{if(e.statusCode>=300)return eF(e,t);let n=await P(e.body,t),r={};r=qK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ListTagsOfResourceCommand=ZB;var eF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},tF=async(e,t)=>{if(e.statusCode>=300)return nF(e,t);let n=await P(e.body,t),r={};r=HK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0PutItemCommand=tF;var nF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await oo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await yi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},rF=async(e,t)=>{if(e.statusCode>=300)return sF(e,t);let n=await P(e.body,t),r={};r=JK(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0QueryCommand=rF;var sF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},iF=async(e,t)=>{if(e.statusCode>=300)return aF(e,t);let n=await P(e.body,t),r={};r=hV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=iF;var aF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=u(o({},await Uf(n,t)),{name:s,$metadata:y(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=u(o({},await Bf(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=u(o({},await vb(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Ff(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},oF=async(e,t)=>{if(e.statusCode>=300)return cF(e,t);let n=await P(e.body,t),r={};r=yV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=oF;var cF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":r=u(o({},await BF(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=u(o({},await bb(n,t)),{name:s,$metadata:y(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=u(o({},await vb(n,t)),{name:s,$metadata:y(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=u(o({},await Ff(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},lF=async(e,t)=>{if(e.statusCode>=300)return dF(e,t);let n=await P(e.body,t),r={};r=gV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0ScanCommand=lF;var dF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},uF=async(e,t)=>{if(e.statusCode>=300)return mF(e,t);await Xf(e.body,t);let n={$metadata:y(e)};return Promise.resolve(n)};v.deserializeAws_json1_0TagResourceCommand=uF;var mF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fF=async(e,t)=>{if(e.statusCode>=300)return pF(e,t);let n=await P(e.body,t),r={};r=IV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0TransactGetItemsCommand=fF;var pF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Gf(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},hF=async(e,t)=>{if(e.statusCode>=300)return yF(e,t);let n=await P(e.body,t),r={};r=LV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0TransactWriteItemsCommand=hF;var yF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=u(o({},await wb(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=u(o({},await Gf(n,t)),{name:s,$metadata:y(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=u(o({},await Eb(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},gF=async(e,t)=>{if(e.statusCode>=300)return _F(e,t);await Xf(e.body,t);let n={$metadata:y(e)};return Promise.resolve(n)};v.deserializeAws_json1_0UntagResourceCommand=gF;var _F=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},wF=async(e,t)=>{if(e.statusCode>=300)return bF(e,t);let n=await P(e.body,t),r={};r=PV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=wF;var bF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=u(o({},await _b(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},SF=async(e,t)=>{if(e.statusCode>=300)return vF(e,t);let n=await P(e.body,t),r={};r=NV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=SF;var vF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},EF=async(e,t)=>{if(e.statusCode>=300)return AF(e,t);let n=await P(e.body,t),r={};r=qV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateGlobalTableCommand=EF;var AF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":r=u(o({},await FF(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=u(o({},await Sb(n,t)),{name:s,$metadata:y(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=u(o({},await kr(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},CF=async(e,t)=>{if(e.statusCode>=300)return TF(e,t);let n=await P(e.body,t),r={};r=MV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=CF;var TF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=u(o({},await co(n,t)),{name:s,$metadata:y(e)});break;case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":r=u(o({},await jF(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=u(o({},await Sb(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},xF=async(e,t)=>{if(e.statusCode>=300)return IF(e,t);let n=await P(e.body,t),r={};r=OV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateItemCommand=xF;var IF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=u(o({},await oo(n,t)),{name:s,$metadata:y(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=u(o({},await yi(n,t)),{name:s,$metadata:y(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=u(o({},await Ot(n,t)),{name:s,$metadata:y(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=u(o({},await Pt(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=u(o({},await lo(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},RF=async(e,t)=>{if(e.statusCode>=300)return kF(e,t);let n=await P(e.body,t),r={};r=zV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTableCommand=RF;var kF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},DF=async(e,t)=>{if(e.statusCode>=300)return LF(e,t);let n=await P(e.body,t),r={};r=jV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=DF;var LF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},PF=async(e,t)=>{if(e.statusCode>=300)return NF(e,t);let n=await P(e.body,t),r={};r=UV(n,t);let s=o({$metadata:y(e)},r);return Promise.resolve(s)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=PF;var NF=async(e,t)=>{let n=u(o({},e),{body:await P(e.body,t)}),r,s="UnknownError";switch(s=Z(e,n.body),s){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=u(o({},await ee(n,t)),{name:s,$metadata:y(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=u(o({},await oe(n,t)),{name:s,$metadata:y(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=u(o({},await $e(n,t)),{name:s,$metadata:y(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=u(o({},await nn(n,t)),{name:s,$metadata:y(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=u(o({},await be(n,t)),{name:s,$metadata:y(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:y(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},Uf=async(e,t)=>{let n=e.body,r=a2(n,t);return o({name:"BackupInUseException",$fault:"client",$metadata:y(e)},r)},Bf=async(e,t)=>{let n=e.body,r=o2(n,t);return o({name:"BackupNotFoundException",$fault:"client",$metadata:y(e)},r)},oo=async(e,t)=>{let n=e.body,r=S2(n,t);return o({name:"ConditionalCheckFailedException",$fault:"client",$metadata:y(e)},r)},_b=async(e,t)=>{let n=e.body,r=v2(n,t);return o({name:"ContinuousBackupsUnavailableException",$fault:"client",$metadata:y(e)},r)},qF=async(e,t)=>{let n=e.body,r=K2(n,t);return o({name:"DuplicateItemException",$fault:"client",$metadata:y(e)},r)},MF=async(e,t)=>{let n=e.body,r=J2(n,t);return o({name:"ExportConflictException",$fault:"client",$metadata:y(e)},r)},OF=async(e,t)=>{let n=e.body,r=Q2(n,t);return o({name:"ExportNotFoundException",$fault:"client",$metadata:y(e)},r)},zF=async(e,t)=>{let n=e.body,r=lK(n,t);return o({name:"GlobalTableAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},co=async(e,t)=>{let n=e.body,r=uK(n,t);return o({name:"GlobalTableNotFoundException",$fault:"client",$metadata:y(e)},r)},wb=async(e,t)=>{let n=e.body,r=mK(n,t);return o({name:"IdempotentParameterMismatchException",$fault:"client",$metadata:y(e)},r)},jF=async(e,t)=>{let n=e.body,r=fK(n,t);return o({name:"IndexNotFoundException",$fault:"client",$metadata:y(e)},r)},ee=async(e,t)=>{let n=e.body,r=pK(n,t);return o({name:"InternalServerError",$fault:"server",$metadata:y(e)},r)},oe=async(e,t)=>{let n=e.body,r=hK(n,t);return o({name:"InvalidEndpointException",$fault:"client",$metadata:y(e)},r)},UF=async(e,t)=>{let n=e.body,r=yK(n,t);return o({name:"InvalidExportTimeException",$fault:"client",$metadata:y(e)},r)},BF=async(e,t)=>{let n=e.body,r=gK(n,t);return o({name:"InvalidRestoreTimeException",$fault:"client",$metadata:y(e)},r)},yi=async(e,t)=>{let n=e.body,r=SK(n,t);return o({name:"ItemCollectionSizeLimitExceededException",$fault:"client",$metadata:y(e)},r)},$e=async(e,t)=>{let n=e.body,r=IK(n,t);return o({name:"LimitExceededException",$fault:"client",$metadata:y(e)},r)},bb=async(e,t)=>{let n=e.body,r=KK(n,t);return o({name:"PointInTimeRecoveryUnavailableException",$fault:"client",$metadata:y(e)},r)},Ot=async(e,t)=>{let n=e.body,r=VK(n,t);return o({name:"ProvisionedThroughputExceededException",$fault:"client",$metadata:y(e)},r)},FF=async(e,t)=>{let n=e.body,r=XK(n,t);return o({name:"ReplicaAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},Sb=async(e,t)=>{let n=e.body,r=lV(n,t);return o({name:"ReplicaNotFoundException",$fault:"client",$metadata:y(e)},r)},Pt=async(e,t)=>{let n=e.body,r=uV(n,t);return o({name:"RequestLimitExceeded",$fault:"client",$metadata:y(e)},r)},nn=async(e,t)=>{let n=e.body,r=mV(n,t);return o({name:"ResourceInUseException",$fault:"client",$metadata:y(e)},r)},be=async(e,t)=>{let n=e.body,r=fV(n,t);return o({name:"ResourceNotFoundException",$fault:"client",$metadata:y(e)},r)},vb=async(e,t)=>{let n=e.body,r=SV(n,t);return o({name:"TableAlreadyExistsException",$fault:"client",$metadata:y(e)},r)},Ff=async(e,t)=>{let n=e.body,r=vV(n,t);return o({name:"TableInUseException",$fault:"client",$metadata:y(e)},r)},kr=async(e,t)=>{let n=e.body,r=AV(n,t);return o({name:"TableNotFoundException",$fault:"client",$metadata:y(e)},r)},Gf=async(e,t)=>{let n=e.body,r=RV(n,t);return o({name:"TransactionCanceledException",$fault:"client",$metadata:y(e)},r)},lo=async(e,t)=>{let n=e.body,r=kV(n,t);return o({name:"TransactionConflictException",$fault:"client",$metadata:y(e)},r)},Eb=async(e,t)=>{let n=e.body,r=DV(n,t);return o({name:"TransactionInProgressException",$fault:"client",$metadata:y(e)},r)},GF=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),Ab=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:GF(n,t)),uo=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),$F=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:KF(s,t)}),{}),Rn=(e,t)=>Kj.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:eG(n,t)}),L:n=>({L:KG(n,t)}),M:n=>({M:ZG(n,t)}),N:n=>({N:n}),NS:n=>({NS:t$(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:I$(n,t)}),_:(n,r)=>({name:r})}),Cb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),KF=(e,t)=>o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:Rn(e.Value,t)}),VF=(e,t)=>o(o({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:WF(e.TargetTrackingScalingPolicyConfiguration,t)}),Zn=(e,t)=>o(o(o(o(o({},e.AutoScalingDisabled!==void 0&&e.AutoScalingDisabled!==null&&{AutoScalingDisabled:e.AutoScalingDisabled}),e.AutoScalingRoleArn!==void 0&&e.AutoScalingRoleArn!==null&&{AutoScalingRoleArn:e.AutoScalingRoleArn}),e.MaximumUnits!==void 0&&e.MaximumUnits!==null&&{MaximumUnits:e.MaximumUnits}),e.MinimumUnits!==void 0&&e.MinimumUnits!==null&&{MinimumUnits:e.MinimumUnits}),e.ScalingPolicyUpdate!==void 0&&e.ScalingPolicyUpdate!==null&&{ScalingPolicyUpdate:VF(e.ScalingPolicyUpdate,t)}),WF=(e,t)=>o(o(o(o({},e.DisableScaleIn!==void 0&&e.DisableScaleIn!==null&&{DisableScaleIn:e.DisableScaleIn}),e.ScaleInCooldown!==void 0&&e.ScaleInCooldown!==null&&{ScaleInCooldown:e.ScaleInCooldown}),e.ScaleOutCooldown!==void 0&&e.ScaleOutCooldown!==null&&{ScaleOutCooldown:e.ScaleOutCooldown}),e.TargetValue!==void 0&&e.TargetValue!==null&&{TargetValue:w.serializeFloat(e.TargetValue)}),HF=(e,t)=>o({},e.Statements!==void 0&&e.Statements!==null&&{Statements:s$(e.Statements,t)}),YF=(e,t)=>o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:JF(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),JF=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:GG(s,t)}),{}),QF=(e,t)=>o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Wf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),XF=(e,t)=>o(o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:ZF(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),ZF=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:X$(s,t)}),{}),eG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),Tb=(e,t)=>o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:Cb(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),tG=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),nG=(e,t)=>o(o({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),rG=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:mo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Hf(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),sG=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:_$(e.ReplicationGroup,t)}),iG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),aG=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Rb(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Yf(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),oG=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:Ab(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Kf(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:mo(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:Vf(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:fo(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:kb(e.StreamSpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.Tags!==void 0&&e.Tags!==null&&{Tags:Db(e.Tags,t)}),cG=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),lG=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),dG=(e,t)=>o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),uG=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:$f(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),mG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),fG=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),pG=(e,t)=>o({},e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),hG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),yG=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),gG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),_G=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),wG=(e,t)=>({}),bG=(e,t)=>o({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),SG=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),vG=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),EG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),AG=(e,t)=>({}),CG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),TG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),xG=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),IG=(e,t)=>o(o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Wf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),RG=(e,t)=>{var n;return o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:jf.v4()},e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:r$(e.TransactStatements,t)})},$f=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:kG(s,t)}),{}),kG=(e,t)=>o(o(o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:Cb(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),e.Exists!==void 0&&e.Exists!==null&&{Exists:e.Exists}),e.Value!==void 0&&e.Value!==null&&{Value:Rn(e.Value,t)}),DG=(e,t)=>{var n;return o(o(o(o(o(o(o(o({ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:jf.v4()},e.ExportFormat!==void 0&&e.ExportFormat!==null&&{ExportFormat:e.ExportFormat}),e.ExportTime!==void 0&&e.ExportTime!==null&&{ExportTime:Math.round(e.ExportTime.getTime()/1e3)}),e.S3Bucket!==void 0&&e.S3Bucket!==null&&{S3Bucket:e.S3Bucket}),e.S3BucketOwner!==void 0&&e.S3BucketOwner!==null&&{S3BucketOwner:e.S3BucketOwner}),e.S3Prefix!==void 0&&e.S3Prefix!==null&&{S3Prefix:e.S3Prefix}),e.S3SseAlgorithm!==void 0&&e.S3SseAlgorithm!==null&&{S3SseAlgorithm:e.S3SseAlgorithm}),e.S3SseKmsKeyId!==void 0&&e.S3SseKmsKeyId!==null&&{S3SseKmsKeyId:e.S3SseKmsKeyId}),e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn})},zt=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:s}),{}),kn=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),xb=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Tb(s,t)}),{}),LG=(e,t)=>o(o(o(o({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),PG=(e,t)=>o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:uo(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),NG=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:mo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Hf(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),qG=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Zn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),MG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:qG(n,t)),Kf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:NG(n,t)),OG=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:rG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:dG(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:G$(e.Update,t)}),zG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:OG(n,t)),jG=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Zn(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}),UG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:jG(n,t)),Wt=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),BG=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Tb(s,t)}),{}),FG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Wt(n,t)),GG=(e,t)=>o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:uo(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:FG(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),mo=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:$G(n,t)),$G=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),Ib=(e,t)=>o(o({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),KG=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),VG=(e,t)=>o(o(o(o(o(o({},e.BackupType!==void 0&&e.BackupType!==null&&{BackupType:e.BackupType}),e.ExclusiveStartBackupArn!==void 0&&e.ExclusiveStartBackupArn!==null&&{ExclusiveStartBackupArn:e.ExclusiveStartBackupArn}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeRangeLowerBound!==void 0&&e.TimeRangeLowerBound!==null&&{TimeRangeLowerBound:Math.round(e.TimeRangeLowerBound.getTime()/1e3)}),e.TimeRangeUpperBound!==void 0&&e.TimeRangeUpperBound!==null&&{TimeRangeUpperBound:Math.round(e.TimeRangeUpperBound.getTime()/1e3)}),WG=(e,t)=>o(o(o({},e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),HG=(e,t)=>o(o(o({},e.MaxResults!==void 0&&e.MaxResults!==null&&{MaxResults:e.MaxResults}),e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.TableArn!==void 0&&e.TableArn!==null&&{TableArn:e.TableArn}),YG=(e,t)=>o(o(o({},e.ExclusiveStartGlobalTableName!==void 0&&e.ExclusiveStartGlobalTableName!==null&&{ExclusiveStartGlobalTableName:e.ExclusiveStartGlobalTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),JG=(e,t)=>o(o({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),QG=(e,t)=>o(o({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),XG=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:mo(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:Hf(e.Projection,t)}),Vf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:XG(n,t)),ZG=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),e$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),t$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),n$=(e,t)=>o(o({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:Wf(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),r$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n$(n,t)),s$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:QF(n,t)),i$=(e,t)=>o({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),Wf=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Rn(n,t)),Hf=(e,t)=>o(o({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:e$(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),Dr=(e,t)=>o(o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),Yf=(e,t)=>o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),a$=(e,t)=>o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Jf(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),o$=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:$f(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:Jf(e.Item,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),Jf=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:Rn(s,t)}),{}),c$=(e,t)=>o({},e.Item!==void 0&&e.Item!==null&&{Item:Jf(e.Item,t)}),l$=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:uo(e.AttributesToGet,t)}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:Wt(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeyConditionExpression!==void 0&&e.KeyConditionExpression!==null&&{KeyConditionExpression:e.KeyConditionExpression}),e.KeyConditions!==void 0&&e.KeyConditions!==null&&{KeyConditions:BG(e.KeyConditions,t)}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.QueryFilter!==void 0&&e.QueryFilter!==null&&{QueryFilter:xb(e.QueryFilter,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ScanIndexForward!==void 0&&e.ScanIndexForward!==null&&{ScanIndexForward:e.ScanIndexForward}),e.Select!==void 0&&e.Select!==null&&{Select:e.Select}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),d$=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),u$=(e,t)=>o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:h$(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Zn(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),m$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:u$(n,t)),f$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Yf(e.ProvisionedThroughputOverride,t)}),p$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Zn(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),h$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:p$(n,t)),Rb=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:f$(n,t)),y$=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Zn(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}),g$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:y$(n,t)),_$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:d$(n,t)),w$=(e,t)=>o(o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:g$(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Zn(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits}),b$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:w$(n,t)),S$=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:aG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:fG(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:W$(e.Update,t)}),v$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:S$(n,t)),E$=(e,t)=>o(o({},e.Create!==void 0&&e.Create!==null&&{Create:iG(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:mG(e.Delete,t)}),A$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:E$(n,t)),C$=(e,t)=>o(o(o(o(o(o(o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:Kf(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Vf(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Dr(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:fo(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),T$=(e,t)=>o(o(o(o(o(o(o(o(o(o({},e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride}),e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:Kf(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:Vf(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Dr(e.ProvisionedThroughputOverride,t)}),e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null&&{RestoreDateTime:Math.round(e.RestoreDateTime.getTime()/1e3)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:fo(e.SSESpecificationOverride,t)}),e.SourceTableArn!==void 0&&e.SourceTableArn!==null&&{SourceTableArn:e.SourceTableArn}),e.SourceTableName!==void 0&&e.SourceTableName!==null&&{SourceTableName:e.SourceTableName}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),e.UseLatestRestorableTime!==void 0&&e.UseLatestRestorableTime!==null&&{UseLatestRestorableTime:e.UseLatestRestorableTime}),x$=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:uo(e.AttributesToGet,t)}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExclusiveStartKey!==void 0&&e.ExclusiveStartKey!==null&&{ExclusiveStartKey:Wt(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.FilterExpression!==void 0&&e.FilterExpression!==null&&{FilterExpression:e.FilterExpression}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ScanFilter!==void 0&&e.ScanFilter!==null&&{ScanFilter:xb(e.ScanFilter,t)}),e.Segment!==void 0&&e.Segment!==null&&{Segment:e.Segment}),e.Select!==void 0&&e.Select!==null&&{Select:e.Select}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TotalSegments!==void 0&&e.TotalSegments!==null&&{TotalSegments:e.TotalSegments}),fo=(e,t)=>o(o(o({},e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.SSEType!==void 0&&e.SSEType!==null&&{SSEType:e.SSEType}),kb=(e,t)=>o(o({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),I$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),R$=(e,t)=>o(o({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),k$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),Db=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:R$(n,t)),D$=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:Db(e.Tags,t)}),L$=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),P$=(e,t)=>o({},e.Get!==void 0&&e.Get!==null&&{Get:LG(e.Get,t)}),N$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:P$(n,t)),q$=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:N$(e.TransactItems,t)}),M$=(e,t)=>o(o(o(o({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:tG(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:cG(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:a$(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:U$(e.Update,t)}),O$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:M$(n,t)),z$=(e,t)=>{var n;return o(o(o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:jf.v4()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:O$(e.TransactItems,t)})},j$=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:k$(e.TagKeys,t)}),U$=(e,t)=>o(o(o(o(o(o(o({},e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}),B$=(e,t)=>o(o({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:i$(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),F$=(e,t)=>o(o(o({},e.ContributorInsightsAction!==void 0&&e.ContributorInsightsAction!==null&&{ContributorInsightsAction:e.ContributorInsightsAction}),e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),G$=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),$$=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:A$(e.ReplicaUpdates,t)}),K$=(e,t)=>o(o(o(o(o(o({},e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode}),e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:UG(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)}),e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Zn(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits}),e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:b$(e.ReplicaSettingsUpdate,t)}),V$=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:$F(e.AttributeUpdates,t)}),e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression}),e.ConditionalOperator!==void 0&&e.ConditionalOperator!==null&&{ConditionalOperator:e.ConditionalOperator}),e.Expected!==void 0&&e.Expected!==null&&{Expected:$f(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:zt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:kn(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:Wt(e.Key,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),e.ReturnValues!==void 0&&e.ReturnValues!==null&&{ReturnValues:e.ReturnValues}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.UpdateExpression!==void 0&&e.UpdateExpression!==null&&{UpdateExpression:e.UpdateExpression}),W$=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:Rb(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Yf(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),H$=(e,t)=>o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:Ab(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:zG(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Dr(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:v$(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:fo(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:kb(e.StreamSpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),Y$=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:MG(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Zn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:m$(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),J$=(e,t)=>o(o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:L$(e.TimeToLiveSpecification,t)}),Q$=(e,t)=>o(o({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:pG(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:c$(e.PutRequest,t)}),X$=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Q$(n,t)),Z$=(e,t)=>({ArchivalBackupArn:w.expectString(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?new Date(Math.round(e.ArchivalDateTime*1e3)):void 0,ArchivalReason:w.expectString(e.ArchivalReason)}),e2=(e,t)=>({AttributeName:w.expectString(e.AttributeName),AttributeType:w.expectString(e.AttributeType)}),t2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:e2(n,t)),er=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),n2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),ms=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:w.expectBoolean(e.BOOL)!==void 0?{BOOL:w.expectBoolean(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:_2(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:RK(e.L,t)}:e.M!==void 0&&e.M!==null?{M:UK(e.M,t)}:w.expectString(e.N)!==void 0?{N:w.expectString(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:FK(e.NS,t)}:w.expectBoolean(e.NULL)!==void 0?{NULL:w.expectBoolean(e.NULL)}:w.expectString(e.S)!==void 0?{S:w.expectString(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:bV(e.SS,t)}:{$unknown:Object.entries(e)[0]},r2=(e,t)=>({PolicyName:w.expectString(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?i2(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),s2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:r2(n,t)),tr=(e,t)=>({AutoScalingDisabled:w.expectBoolean(e.AutoScalingDisabled),AutoScalingRoleArn:w.expectString(e.AutoScalingRoleArn),MaximumUnits:w.expectNumber(e.MaximumUnits),MinimumUnits:w.expectNumber(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?s2(e.ScalingPolicies,t):void 0}),i2=(e,t)=>({DisableScaleIn:w.expectBoolean(e.DisableScaleIn),ScaleInCooldown:w.expectNumber(e.ScaleInCooldown),ScaleOutCooldown:w.expectNumber(e.ScaleOutCooldown),TargetValue:w.handleFloat(e.TargetValue)}),Lb=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?Pb(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?_V(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?wV(e.SourceTableFeatureDetails,t):void 0}),Pb=(e,t)=>({BackupArn:w.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?new Date(Math.round(e.BackupCreationDateTime*1e3)):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?new Date(Math.round(e.BackupExpiryDateTime*1e3)):void 0,BackupName:w.expectString(e.BackupName),BackupSizeBytes:w.expectNumber(e.BackupSizeBytes),BackupStatus:w.expectString(e.BackupStatus),BackupType:w.expectString(e.BackupType)}),a2=(e,t)=>({message:w.expectString(e.message)}),o2=(e,t)=>({message:w.expectString(e.message)}),c2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:l2(n,t)),l2=(e,t)=>({BackupArn:w.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?new Date(Math.round(e.BackupCreationDateTime*1e3)):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?new Date(Math.round(e.BackupExpiryDateTime*1e3)):void 0,BackupName:w.expectString(e.BackupName),BackupSizeBytes:w.expectNumber(e.BackupSizeBytes),BackupStatus:w.expectString(e.BackupStatus),BackupType:w.expectString(e.BackupType),TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName)}),d2=(e,t)=>({Responses:e.Responses!==void 0&&e.Responses!==null?GK(e.Responses,t):void 0}),u2=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?po(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?f2(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?m2(e.UnprocessedKeys,t):void 0}),m2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:AK(s,t)}),{}),f2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:yo(s,t)}),{}),p2=(e,t)=>({Code:w.expectString(e.Code),Message:w.expectString(e.Message)}),h2=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?p2(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?er(e.Item,t):void 0,TableName:w.expectString(e.TableName)}),y2=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?po(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?zb(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?g2(e.UnprocessedItems,t):void 0}),g2=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:FV(s,t)}),{}),Nb=(e,t)=>({BillingMode:w.expectString(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?new Date(Math.round(e.LastUpdateToPayPerRequestDateTime*1e3)):void 0}),_2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),w2=(e,t)=>({Code:w.expectString(e.Code),Item:e.Item!==void 0&&e.Item!==null?er(e.Item,t):void 0,Message:w.expectString(e.Message)}),b2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w2(n,t)),qb=(e,t)=>({CapacityUnits:w.handleFloat(e.CapacityUnits),ReadCapacityUnits:w.handleFloat(e.ReadCapacityUnits),WriteCapacityUnits:w.handleFloat(e.WriteCapacityUnits)}),S2=(e,t)=>({message:w.expectString(e.message)}),Lr=(e,t)=>({CapacityUnits:w.handleFloat(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?Vb(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?Vb(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:w.handleFloat(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?qb(e.Table,t):void 0,TableName:w.expectString(e.TableName),WriteCapacityUnits:w.handleFloat(e.WriteCapacityUnits)}),po=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Lr(n,t)),Mb=(e,t)=>({ContinuousBackupsStatus:w.expectString(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?$K(e.PointInTimeRecoveryDescription,t):void 0}),v2=(e,t)=>({message:w.expectString(e.message)}),E2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),A2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:C2(n,t)),C2=(e,t)=>({ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),IndexName:w.expectString(e.IndexName),TableName:w.expectString(e.TableName)}),T2=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?Pb(e.BackupDetails,t):void 0}),x2=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Qf(e.GlobalTableDescription,t):void 0}),I2=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),R2=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?Lb(e.BackupDescription,t):void 0}),k2=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?er(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?ho(e.ItemCollectionMetrics,t):void 0}),D2=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?go(e.Key,t):void 0}),L2=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),P2=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?Lb(e.BackupDescription,t):void 0}),N2=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?Mb(e.ContinuousBackupsDescription,t):void 0}),q2=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?E2(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?nK(e.FailureException,t):void 0,IndexName:w.expectString(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?new Date(Math.round(e.LastUpdateDateTime*1e3)):void 0,TableName:w.expectString(e.TableName)}),M2=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?W2(e.Endpoints,t):void 0}),O2=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?Ob(e.ExportDescription,t):void 0}),z2=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Qf(e.GlobalTableDescription,t):void 0}),j2=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?Kb(e.ReplicaSettings,t):void 0}),U2=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?xK(e.KinesisDataStreamDestinations,t):void 0,TableName:w.expectString(e.TableName)}),B2=(e,t)=>({AccountMaxReadCapacityUnits:w.expectNumber(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:w.expectNumber(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:w.expectNumber(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:w.expectNumber(e.TableMaxWriteCapacityUnits)}),F2=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?ps(e.Table,t):void 0}),G2=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?Yb(e.TableAutoScalingDescription,t):void 0}),$2=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?Jb(e.TimeToLiveDescription,t):void 0}),K2=(e,t)=>({message:w.expectString(e.message)}),V2=(e,t)=>({Address:w.expectString(e.Address),CachePeriodInMinutes:w.expectNumber(e.CachePeriodInMinutes)}),W2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:V2(n,t)),H2=(e,t)=>({Items:e.Items!==void 0&&e.Items!==null?yo(e.Items,t):void 0,NextToken:w.expectString(e.NextToken)}),Y2=(e,t)=>({Responses:e.Responses!==void 0&&e.Responses!==null?jb(e.Responses,t):void 0}),J2=(e,t)=>({message:w.expectString(e.message)}),Ob=(e,t)=>({BilledSizeBytes:w.expectNumber(e.BilledSizeBytes),ClientToken:w.expectString(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?new Date(Math.round(e.EndTime*1e3)):void 0,ExportArn:w.expectString(e.ExportArn),ExportFormat:w.expectString(e.ExportFormat),ExportManifest:w.expectString(e.ExportManifest),ExportStatus:w.expectString(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?new Date(Math.round(e.ExportTime*1e3)):void 0,FailureCode:w.expectString(e.FailureCode),FailureMessage:w.expectString(e.FailureMessage),ItemCount:w.expectNumber(e.ItemCount),S3Bucket:w.expectString(e.S3Bucket),S3BucketOwner:w.expectString(e.S3BucketOwner),S3Prefix:w.expectString(e.S3Prefix),S3SseAlgorithm:w.expectString(e.S3SseAlgorithm),S3SseKmsKeyId:w.expectString(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?new Date(Math.round(e.StartTime*1e3)):void 0,TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId)}),Q2=(e,t)=>({message:w.expectString(e.message)}),X2=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Z2(n,t)),Z2=(e,t)=>({ExportArn:w.expectString(e.ExportArn),ExportStatus:w.expectString(e.ExportStatus)}),eK=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?Ob(e.ExportDescription,t):void 0}),tK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:w.expectString(s)}),{}),nK=(e,t)=>({ExceptionDescription:w.expectString(e.ExceptionDescription),ExceptionName:w.expectString(e.ExceptionName)}),rK=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?er(e.Item,t):void 0}),sK=(e,t)=>({Backfilling:w.expectBoolean(e.Backfilling),IndexArn:w.expectString(e.IndexArn),IndexName:w.expectString(e.IndexName),IndexSizeBytes:w.expectNumber(e.IndexSizeBytes),IndexStatus:w.expectString(e.IndexStatus),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?_o(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Fb(e.ProvisionedThroughput,t):void 0}),iK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:sK(n,t)),aK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:oK(n,t)),oK=(e,t)=>({IndexName:w.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?_o(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Bb(e.ProvisionedThroughput,t):void 0}),cK=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?cV(e.ReplicationGroup,t):void 0}),lK=(e,t)=>({message:w.expectString(e.message)}),Qf=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?new Date(Math.round(e.CreationDateTime*1e3)):void 0,GlobalTableArn:w.expectString(e.GlobalTableArn),GlobalTableName:w.expectString(e.GlobalTableName),GlobalTableStatus:w.expectString(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?$b(e.ReplicationGroup,t):void 0}),dK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:cK(n,t)),uK=(e,t)=>({message:w.expectString(e.message)}),mK=(e,t)=>({Message:w.expectString(e.Message)}),fK=(e,t)=>({message:w.expectString(e.message)}),pK=(e,t)=>({message:w.expectString(e.message)}),hK=(e,t)=>({Message:w.expectString(e.Message)}),yK=(e,t)=>({message:w.expectString(e.message)}),gK=(e,t)=>({message:w.expectString(e.message)}),_K=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),ho=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?_K(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?bK(e.SizeEstimateRangeGB,t):void 0}),wK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ho(n,t)),zb=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:wK(s,t)}),{}),bK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.handleFloat(n)),SK=(e,t)=>({message:w.expectString(e.message)}),yo=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:er(n,t)),vK=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?er(e.Item,t):void 0}),jb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:vK(n,t)),go=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),EK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:go(n,t)),AK=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?n2(e.AttributesToGet,t):void 0,ConsistentRead:w.expectBoolean(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?tK(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?EK(e.Keys,t):void 0,ProjectionExpression:w.expectString(e.ProjectionExpression)}),fs=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:CK(n,t)),CK=(e,t)=>({AttributeName:w.expectString(e.AttributeName),KeyType:w.expectString(e.KeyType)}),TK=(e,t)=>({DestinationStatus:w.expectString(e.DestinationStatus),DestinationStatusDescription:w.expectString(e.DestinationStatusDescription),StreamArn:w.expectString(e.StreamArn)}),xK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:TK(n,t)),Ub=(e,t)=>({DestinationStatus:w.expectString(e.DestinationStatus),StreamArn:w.expectString(e.StreamArn),TableName:w.expectString(e.TableName)}),IK=(e,t)=>({message:w.expectString(e.message)}),RK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ms(n,t)),kK=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?c2(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:w.expectString(e.LastEvaluatedBackupArn)}),DK=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?A2(e.ContributorInsightsSummaries,t):void 0,NextToken:w.expectString(e.NextToken)}),LK=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?X2(e.ExportSummaries,t):void 0,NextToken:w.expectString(e.NextToken)}),PK=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?dK(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:w.expectString(e.LastEvaluatedGlobalTableName)}),NK=(e,t)=>({LastEvaluatedTableName:w.expectString(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?EV(e.TableNames,t):void 0}),qK=(e,t)=>({NextToken:w.expectString(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?TV(e.Tags,t):void 0}),MK=(e,t)=>({IndexArn:w.expectString(e.IndexArn),IndexName:w.expectString(e.IndexName),IndexSizeBytes:w.expectNumber(e.IndexSizeBytes),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?_o(e.Projection,t):void 0}),OK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:MK(n,t)),zK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:jK(n,t)),jK=(e,t)=>({IndexName:w.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?_o(e.Projection,t):void 0}),UK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),BK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),FK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),GK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:h2(n,t)),$K=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?new Date(Math.round(e.EarliestRestorableDateTime*1e3)):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?new Date(Math.round(e.LatestRestorableDateTime*1e3)):void 0,PointInTimeRecoveryStatus:w.expectString(e.PointInTimeRecoveryStatus)}),KK=(e,t)=>({message:w.expectString(e.message)}),_o=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?BK(e.NonKeyAttributes,t):void 0,ProjectionType:w.expectString(e.ProjectionType)}),Bb=(e,t)=>({ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits),WriteCapacityUnits:w.expectNumber(e.WriteCapacityUnits)}),Fb=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?new Date(Math.round(e.LastDecreaseDateTime*1e3)):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?new Date(Math.round(e.LastIncreaseDateTime*1e3)):void 0,NumberOfDecreasesToday:w.expectNumber(e.NumberOfDecreasesToday),ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits),WriteCapacityUnits:w.expectNumber(e.WriteCapacityUnits)}),VK=(e,t)=>({message:w.expectString(e.message)}),Gb=(e,t)=>({ReadCapacityUnits:w.expectNumber(e.ReadCapacityUnits)}),WK=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:ms(s,t)}),{}),HK=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?er(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?ho(e.ItemCollectionMetrics,t):void 0}),YK=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?WK(e.Item,t):void 0}),JK=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Count:w.expectNumber(e.Count),Items:e.Items!==void 0&&e.Items!==null?yo(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?go(e.LastEvaluatedKey,t):void 0,ScannedCount:w.expectNumber(e.ScannedCount)}),QK=(e,t)=>({RegionName:w.expectString(e.RegionName)}),XK=(e,t)=>({message:w.expectString(e.message)}),ZK=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?rV(e.GlobalSecondaryIndexes,t):void 0,RegionName:w.expectString(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?tr(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?tr(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:w.expectString(e.ReplicaStatus)}),eV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ZK(n,t)),tV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?iV(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:w.expectString(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?Gb(e.ProvisionedThroughputOverride,t):void 0,RegionName:w.expectString(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?new Date(Math.round(e.ReplicaInaccessibleDateTime*1e3)):void 0,ReplicaStatus:w.expectString(e.ReplicaStatus),ReplicaStatusDescription:w.expectString(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:w.expectString(e.ReplicaStatusPercentProgress)}),$b=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:tV(n,t)),nV=(e,t)=>({IndexName:w.expectString(e.IndexName),IndexStatus:w.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?tr(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?tr(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),rV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:nV(n,t)),sV=(e,t)=>({IndexName:w.expectString(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?Gb(e.ProvisionedThroughputOverride,t):void 0}),iV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:sV(n,t)),aV=(e,t)=>({IndexName:w.expectString(e.IndexName),IndexStatus:w.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?tr(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:w.expectNumber(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?tr(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:w.expectNumber(e.ProvisionedWriteCapacityUnits)}),oV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:aV(n,t)),cV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:QK(n,t)),lV=(e,t)=>({message:w.expectString(e.message)}),dV=(e,t)=>({RegionName:w.expectString(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?Nb(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?oV(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?tr(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:w.expectNumber(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?tr(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:w.expectNumber(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:w.expectString(e.ReplicaStatus)}),Kb=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:dV(n,t)),uV=(e,t)=>({message:w.expectString(e.message)}),mV=(e,t)=>({message:w.expectString(e.message)}),fV=(e,t)=>({message:w.expectString(e.message)}),pV=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?new Date(Math.round(e.RestoreDateTime*1e3)):void 0,RestoreInProgress:w.expectBoolean(e.RestoreInProgress),SourceBackupArn:w.expectString(e.SourceBackupArn),SourceTableArn:w.expectString(e.SourceTableArn)}),hV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),yV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),gV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Count:w.expectNumber(e.Count),Items:e.Items!==void 0&&e.Items!==null?yo(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?go(e.LastEvaluatedKey,t):void 0,ScannedCount:w.expectNumber(e.ScannedCount)}),Vb=(e,t)=>Object.entries(e).reduce((n,[r,s])=>s===null?n:u(o({},n),{[r]:qb(s,t)}),{}),_V=(e,t)=>({BillingMode:w.expectString(e.BillingMode),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Bb(e.ProvisionedThroughput,t):void 0,TableArn:w.expectString(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?new Date(Math.round(e.TableCreationDateTime*1e3)):void 0,TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName),TableSizeBytes:w.expectNumber(e.TableSizeBytes)}),wV=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?aK(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?zK(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?Wb(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?Hb(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?Jb(e.TimeToLiveDescription,t):void 0}),Wb=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?new Date(Math.round(e.InaccessibleEncryptionDateTime*1e3)):void 0,KMSMasterKeyArn:w.expectString(e.KMSMasterKeyArn),SSEType:w.expectString(e.SSEType),Status:w.expectString(e.Status)}),Hb=(e,t)=>({StreamEnabled:w.expectBoolean(e.StreamEnabled),StreamViewType:w.expectString(e.StreamViewType)}),bV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),SV=(e,t)=>({message:w.expectString(e.message)}),Yb=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?eV(e.Replicas,t):void 0,TableName:w.expectString(e.TableName),TableStatus:w.expectString(e.TableStatus)}),ps=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?Z$(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?t2(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?Nb(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?new Date(Math.round(e.CreationDateTime*1e3)):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?iK(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:w.expectString(e.GlobalTableVersion),ItemCount:w.expectNumber(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?fs(e.KeySchema,t):void 0,LatestStreamArn:w.expectString(e.LatestStreamArn),LatestStreamLabel:w.expectString(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?OK(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?Fb(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?$b(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?pV(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?Wb(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?Hb(e.StreamSpecification,t):void 0,TableArn:w.expectString(e.TableArn),TableId:w.expectString(e.TableId),TableName:w.expectString(e.TableName),TableSizeBytes:w.expectNumber(e.TableSizeBytes),TableStatus:w.expectString(e.TableStatus)}),vV=(e,t)=>({message:w.expectString(e.message)}),EV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:w.expectString(n)),AV=(e,t)=>({message:w.expectString(e.message)}),CV=(e,t)=>({Key:w.expectString(e.Key),Value:w.expectString(e.Value)}),TV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:CV(n,t)),Jb=(e,t)=>({AttributeName:w.expectString(e.AttributeName),TimeToLiveStatus:w.expectString(e.TimeToLiveStatus)}),xV=(e,t)=>({AttributeName:w.expectString(e.AttributeName),Enabled:w.expectBoolean(e.Enabled)}),IV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?po(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?jb(e.Responses,t):void 0}),RV=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?b2(e.CancellationReasons,t):void 0,Message:w.expectString(e.Message)}),kV=(e,t)=>({message:w.expectString(e.message)}),DV=(e,t)=>({Message:w.expectString(e.Message)}),LV=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?po(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?zb(e.ItemCollectionMetrics,t):void 0}),PV=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?Mb(e.ContinuousBackupsDescription,t):void 0}),NV=(e,t)=>({ContributorInsightsStatus:w.expectString(e.ContributorInsightsStatus),IndexName:w.expectString(e.IndexName),TableName:w.expectString(e.TableName)}),qV=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?Qf(e.GlobalTableDescription,t):void 0}),MV=(e,t)=>({GlobalTableName:w.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?Kb(e.ReplicaSettings,t):void 0}),OV=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?er(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?ho(e.ItemCollectionMetrics,t):void 0}),zV=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?ps(e.TableDescription,t):void 0}),jV=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?Yb(e.TableAutoScalingDescription,t):void 0}),UV=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?xV(e.TimeToLiveSpecification,t):void 0}),BV=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?D2(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?YK(e.PutRequest,t):void 0}),FV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:BV(n,t)),y=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},Xf=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),GV=(e,t)=>Xf(e,t).then(n=>t.utf8Encoder(n)),X=async(e,t,n,r,s)=>{let{hostname:i,protocol:a="https",port:c}=await e.endpoint(),l={protocol:a,hostname:i,port:c,method:"POST",path:n,headers:t};return r!==void 0&&(l.hostname=r),s!==void 0&&(l.body=s),new Vj.HttpRequest(l)},P=(e,t)=>GV(e,t).then(n=>n.length?JSON.parse(n):{}),Z=(e,t)=>{let n=(i,a)=>Object.keys(i).find(c=>c.toLowerCase()===a.toLowerCase()),r=i=>{let a=i;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},s=n(e.headers,"x-amzn-errortype");return s!==void 0?r(e.headers[s]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var Zf=p(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.deserializerMiddleware=void 0;var $V=(e,t)=>(n,r)=>async s=>{let{response:i}=await n(s),a=await t(i,e);return{response:i,output:a}};wo.deserializerMiddleware=$V});var ep=p(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.serializerMiddleware=void 0;var KV=(e,t)=>(n,r)=>async s=>{let i=await t(s.input,e);return n(u(o({},s),{request:i}))};bo.serializerMiddleware=KV});var Qb=p(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});rn.getSerdePlugin=rn.serializerMiddlewareOption=rn.deserializerMiddlewareOption=void 0;var VV=Zf(),WV=ep();rn.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};rn.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function HV(e,t,n){return{applyToStack:r=>{r.add(VV.deserializerMiddleware(e,n),rn.deserializerMiddlewareOption),r.add(WV.serializerMiddleware(e,t),rn.serializerMiddlewareOption)}}}rn.getSerdePlugin=HV});var j=p(gi=>{"use strict";Object.defineProperty(gi,"__esModule",{value:!0});var tp=he();tp.__exportStar(Zf(),gi);tp.__exportStar(ep(),gi);tp.__exportStar(Qb(),gi)});var vo=p(So=>{"use strict";Object.defineProperty(So,"__esModule",{value:!0});So.DescribeEndpointsCommand=void 0;var Xb=W(),Zb=H(),YV=j(),JV=M(),eS=class extends JV.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YV.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:Xb.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:Xb.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Zb.serializeAws_json1_0DescribeEndpointsCommand(t,n)}deserialize(t,n){return Zb.deserializeAws_json1_0DescribeEndpointsCommand(t,n)}};So.DescribeEndpointsCommand=eS});var tS=p((yde,QV)=>{QV.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/client-sts":"3.21.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/credential-provider-node":"3.21.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-endpoint-discovery":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-signing":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0","@aws-sdk/util-waiter":"3.20.0",tslib:"^2.0.0",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","@types/uuid":"^8.3.0","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-dynamodb",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-dynamodb"}}});var nS=p((gde,XV)=>{XV.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/credential-provider-node":"3.21.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-sdk-sts":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-signing":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.0.0"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var sn=p(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.GetSessionTokenResponse=q.GetSessionTokenRequest=q.GetFederationTokenResponse=q.FederatedUser=q.GetFederationTokenRequest=q.GetCallerIdentityResponse=q.GetCallerIdentityRequest=q.GetAccessKeyInfoResponse=q.GetAccessKeyInfoRequest=q.InvalidAuthorizationMessageException=q.DecodeAuthorizationMessageResponse=q.DecodeAuthorizationMessageRequest=q.IDPCommunicationErrorException=q.AssumeRoleWithWebIdentityResponse=q.AssumeRoleWithWebIdentityRequest=q.InvalidIdentityTokenException=q.IDPRejectedClaimException=q.AssumeRoleWithSAMLResponse=q.AssumeRoleWithSAMLRequest=q.RegionDisabledException=q.PackedPolicyTooLargeException=q.MalformedPolicyDocumentException=q.ExpiredTokenException=q.AssumeRoleResponse=q.Credentials=q.AssumeRoleRequest=q.Tag=q.PolicyDescriptorType=q.AssumedRoleUser=void 0;var ZV;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZV=q.AssumedRoleUser||(q.AssumedRoleUser={}));var eW;(function(e){e.filterSensitiveLog=t=>o({},t)})(eW=q.PolicyDescriptorType||(q.PolicyDescriptorType={}));var tW;(function(e){e.filterSensitiveLog=t=>o({},t)})(tW=q.Tag||(q.Tag={}));var nW;(function(e){e.filterSensitiveLog=t=>o({},t)})(nW=q.AssumeRoleRequest||(q.AssumeRoleRequest={}));var rW;(function(e){e.filterSensitiveLog=t=>o({},t)})(rW=q.Credentials||(q.Credentials={}));var sW;(function(e){e.filterSensitiveLog=t=>o({},t)})(sW=q.AssumeRoleResponse||(q.AssumeRoleResponse={}));var iW;(function(e){e.filterSensitiveLog=t=>o({},t)})(iW=q.ExpiredTokenException||(q.ExpiredTokenException={}));var aW;(function(e){e.filterSensitiveLog=t=>o({},t)})(aW=q.MalformedPolicyDocumentException||(q.MalformedPolicyDocumentException={}));var oW;(function(e){e.filterSensitiveLog=t=>o({},t)})(oW=q.PackedPolicyTooLargeException||(q.PackedPolicyTooLargeException={}));var cW;(function(e){e.filterSensitiveLog=t=>o({},t)})(cW=q.RegionDisabledException||(q.RegionDisabledException={}));var lW;(function(e){e.filterSensitiveLog=t=>o({},t)})(lW=q.AssumeRoleWithSAMLRequest||(q.AssumeRoleWithSAMLRequest={}));var dW;(function(e){e.filterSensitiveLog=t=>o({},t)})(dW=q.AssumeRoleWithSAMLResponse||(q.AssumeRoleWithSAMLResponse={}));var uW;(function(e){e.filterSensitiveLog=t=>o({},t)})(uW=q.IDPRejectedClaimException||(q.IDPRejectedClaimException={}));var mW;(function(e){e.filterSensitiveLog=t=>o({},t)})(mW=q.InvalidIdentityTokenException||(q.InvalidIdentityTokenException={}));var fW;(function(e){e.filterSensitiveLog=t=>o({},t)})(fW=q.AssumeRoleWithWebIdentityRequest||(q.AssumeRoleWithWebIdentityRequest={}));var pW;(function(e){e.filterSensitiveLog=t=>o({},t)})(pW=q.AssumeRoleWithWebIdentityResponse||(q.AssumeRoleWithWebIdentityResponse={}));var hW;(function(e){e.filterSensitiveLog=t=>o({},t)})(hW=q.IDPCommunicationErrorException||(q.IDPCommunicationErrorException={}));var yW;(function(e){e.filterSensitiveLog=t=>o({},t)})(yW=q.DecodeAuthorizationMessageRequest||(q.DecodeAuthorizationMessageRequest={}));var gW;(function(e){e.filterSensitiveLog=t=>o({},t)})(gW=q.DecodeAuthorizationMessageResponse||(q.DecodeAuthorizationMessageResponse={}));var _W;(function(e){e.filterSensitiveLog=t=>o({},t)})(_W=q.InvalidAuthorizationMessageException||(q.InvalidAuthorizationMessageException={}));var wW;(function(e){e.filterSensitiveLog=t=>o({},t)})(wW=q.GetAccessKeyInfoRequest||(q.GetAccessKeyInfoRequest={}));var bW;(function(e){e.filterSensitiveLog=t=>o({},t)})(bW=q.GetAccessKeyInfoResponse||(q.GetAccessKeyInfoResponse={}));var SW;(function(e){e.filterSensitiveLog=t=>o({},t)})(SW=q.GetCallerIdentityRequest||(q.GetCallerIdentityRequest={}));var vW;(function(e){e.filterSensitiveLog=t=>o({},t)})(vW=q.GetCallerIdentityResponse||(q.GetCallerIdentityResponse={}));var EW;(function(e){e.filterSensitiveLog=t=>o({},t)})(EW=q.GetFederationTokenRequest||(q.GetFederationTokenRequest={}));var AW;(function(e){e.filterSensitiveLog=t=>o({},t)})(AW=q.FederatedUser||(q.FederatedUser={}));var CW;(function(e){e.filterSensitiveLog=t=>o({},t)})(CW=q.GetFederationTokenResponse||(q.GetFederationTokenResponse={}));var TW;(function(e){e.filterSensitiveLog=t=>o({},t)})(TW=q.GetSessionTokenRequest||(q.GetSessionTokenRequest={}));var xW;(function(e){e.filterSensitiveLog=t=>o({},t)})(xW=q.GetSessionTokenResponse||(q.GetSessionTokenResponse={}))});var np=p((wde,IW)=>{IW.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
5
|
+
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}});var rS=p((bde,RW)=>{RW.exports={Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",AElig:"\xC6",aelig:"\xE6",Agrave:"\xC0",agrave:"\xE0",amp:"&",AMP:"&",Aring:"\xC5",aring:"\xE5",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",brvbar:"\xA6",Ccedil:"\xC7",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",COPY:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Egrave:"\xC8",egrave:"\xE8",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",GT:">",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",iexcl:"\xA1",Igrave:"\xCC",igrave:"\xEC",iquest:"\xBF",Iuml:"\xCF",iuml:"\xEF",laquo:"\xAB",lt:"<",LT:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",Ntilde:"\xD1",ntilde:"\xF1",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Ograve:"\xD2",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",Oslash:"\xD8",oslash:"\xF8",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',QUOT:'"',raquo:"\xBB",reg:"\xAE",REG:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",THORN:"\xDE",thorn:"\xFE",times:"\xD7",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Ugrave:"\xD9",ugrave:"\xF9",uml:"\xA8",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var rp=p((Sde,kW)=>{kW.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var sS=p((vde,DW)=>{DW.exports={"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}});var aS=p(_i=>{"use strict";var LW=_i&&_i.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_i,"__esModule",{value:!0});var iS=LW(sS()),PW=String.fromCodePoint||function(e){var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function NW(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in iS.default&&(e=iS.default[e]),PW(e))}_i.default=NW});var ip=p(an=>{"use strict";var Eo=an&&an.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(an,"__esModule",{value:!0});an.decodeHTML=an.decodeHTMLStrict=an.decodeXML=void 0;var sp=Eo(np()),qW=Eo(rS()),MW=Eo(rp()),oS=Eo(aS()),OW=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;an.decodeXML=cS(MW.default);an.decodeHTMLStrict=cS(sp.default);function cS(e){var t=dS(e);return function(n){return String(n).replace(OW,t)}}var lS=function(e,t){return e<t?1:-1};an.decodeHTML=function(){for(var e=Object.keys(qW.default).sort(lS),t=Object.keys(sp.default).sort(lS),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var s=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),i=dS(sp.default);function a(c){return c.substr(-1)!==";"&&(c+=";"),i(c)}return function(c){return String(c).replace(s,a)}}();function dS(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?oS.default(parseInt(n.substr(3),16)):oS.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var op=p(_t=>{"use strict";var uS=_t&&_t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_t,"__esModule",{value:!0});_t.escapeUTF8=_t.escape=_t.encodeNonAsciiHTML=_t.encodeHTML=_t.encodeXML=void 0;var zW=uS(rp()),mS=pS(zW.default),fS=hS(mS);_t.encodeXML=_S(mS);var jW=uS(np()),ap=pS(jW.default),UW=hS(ap);_t.encodeHTML=FW(ap,UW);_t.encodeNonAsciiHTML=_S(ap);function pS(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function hS(e){for(var t=[],n=[],r=0,s=Object.keys(e);r<s.length;r++){var i=s[r];i.length===1?t.push("\\"+i):n.push(i)}t.sort();for(var a=0;a<t.length-1;a++){for(var c=a;c<t.length-1&&t[c].charCodeAt(1)+1===t[c+1].charCodeAt(1);)c+=1;var l=1+c-a;l<3||t.splice(a,l,t[a]+"-"+t[c])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var yS=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,BW=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function Ao(e){return"&#x"+(e.length>1?BW(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function FW(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(yS,Ao)}}var gS=new RegExp(fS.source+"|"+yS.source,"g");function GW(e){return e.replace(gS,Ao)}_t.escape=GW;function $W(e){return e.replace(fS,Ao)}_t.escapeUTF8=$W;function _S(e){return function(t){return t.replace(gS,function(n){return e[n]||Ao(n)})}}});var bS=p(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.decodeXMLStrict=ce.decodeHTML5Strict=ce.decodeHTML4Strict=ce.decodeHTML5=ce.decodeHTML4=ce.decodeHTMLStrict=ce.decodeHTML=ce.decodeXML=ce.encodeHTML5=ce.encodeHTML4=ce.escapeUTF8=ce.escape=ce.encodeNonAsciiHTML=ce.encodeHTML=ce.encodeXML=ce.encode=ce.decodeStrict=ce.decode=void 0;var Co=ip(),wS=op();function KW(e,t){return(!t||t<=0?Co.decodeXML:Co.decodeHTML)(e)}ce.decode=KW;function VW(e,t){return(!t||t<=0?Co.decodeXML:Co.decodeHTMLStrict)(e)}ce.decodeStrict=VW;function WW(e,t){return(!t||t<=0?wS.encodeXML:wS.encodeHTML)(e)}ce.encode=WW;var Pr=op();Object.defineProperty(ce,"encodeXML",{enumerable:!0,get:function(){return Pr.encodeXML}});Object.defineProperty(ce,"encodeHTML",{enumerable:!0,get:function(){return Pr.encodeHTML}});Object.defineProperty(ce,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return Pr.encodeNonAsciiHTML}});Object.defineProperty(ce,"escape",{enumerable:!0,get:function(){return Pr.escape}});Object.defineProperty(ce,"escapeUTF8",{enumerable:!0,get:function(){return Pr.escapeUTF8}});Object.defineProperty(ce,"encodeHTML4",{enumerable:!0,get:function(){return Pr.encodeHTML}});Object.defineProperty(ce,"encodeHTML5",{enumerable:!0,get:function(){return Pr.encodeHTML}});var nr=ip();Object.defineProperty(ce,"decodeXML",{enumerable:!0,get:function(){return nr.decodeXML}});Object.defineProperty(ce,"decodeHTML",{enumerable:!0,get:function(){return nr.decodeHTML}});Object.defineProperty(ce,"decodeHTMLStrict",{enumerable:!0,get:function(){return nr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeHTML4",{enumerable:!0,get:function(){return nr.decodeHTML}});Object.defineProperty(ce,"decodeHTML5",{enumerable:!0,get:function(){return nr.decodeHTML}});Object.defineProperty(ce,"decodeHTML4Strict",{enumerable:!0,get:function(){return nr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeHTML5Strict",{enumerable:!0,get:function(){return nr.decodeHTMLStrict}});Object.defineProperty(ce,"decodeXMLStrict",{enumerable:!0,get:function(){return nr.decodeXML}})});var on=p(Ht=>{"use strict";var SS=":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",HW=SS+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",vS="["+SS+"]["+HW+"]*",YW=new RegExp("^"+vS+"$"),JW=function(e,t){let n=[],r=t.exec(e);for(;r;){let s=[],i=r.length;for(let a=0;a<i;a++)s.push(r[a]);n.push(s),r=t.exec(e)}return n},QW=function(e){let t=YW.exec(e);return!(t===null||typeof t=="undefined")};Ht.isExist=function(e){return typeof e!="undefined"};Ht.isEmptyObject=function(e){return Object.keys(e).length===0};Ht.merge=function(e,t,n){if(t){let r=Object.keys(t),s=r.length;for(let i=0;i<s;i++)n==="strict"?e[r[i]]=[t[r[i]]]:e[r[i]]=t[r[i]]}};Ht.getValue=function(e){return Ht.isExist(e)?e:""};Ht.buildOptions=function(e,t,n){var r={};if(!e)return t;for(let s=0;s<n.length;s++)e[n[s]]!==void 0?r[n[s]]=e[n[s]]:r[n[s]]=t[n[s]];return r};Ht.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};Ht.isName=QW;Ht.getAllMatches=JW;Ht.nameRegexp=vS});var AS=p(ES=>{"use strict";var Nr=on(),cp=function(e,t,n){let r={};if((!e.child||Nr.isEmptyObject(e.child))&&(!e.attrsMap||Nr.isEmptyObject(e.attrsMap)))return Nr.isExist(e.val)?e.val:"";if(Nr.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let i=Nr.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=i?[e.val]:e.val}Nr.merge(r,e.attrsMap,t.arrayMode);let s=Object.keys(e.child);for(let i=0;i<s.length;i++){let a=s[i];if(e.child[a]&&e.child[a].length>1){r[a]=[];for(let c in e.child[a])e.child[a].hasOwnProperty(c)&&r[a].push(cp(e.child[a][c],t,a))}else{let c=cp(e.child[a][0],t,a),l=t.arrayMode===!0&&typeof c=="object"||Nr.isTagNameInArrayMode(a,t.arrayMode,n);r[a]=l?[c]:c}}return r};ES.convertToJson=cp});var TS=p((Rde,CS)=>{"use strict";CS.exports=function(e,t,n){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=n,this.addChild=function(r){Array.isArray(this.child[r.tagname])?this.child[r.tagname].push(r):this.child[r.tagname]=[r]}}});var bi=p(Io=>{"use strict";var qr=on(),XW=on().buildOptions,To=TS(),kde="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,qr.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var xS={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,ignoreNameSpace:!1,allowBooleanAttributes:!1,parseNodeValue:!0,parseAttributeValue:!1,arrayMode:!1,trimValues:!0,cdataTagName:!1,cdataPositionChar:"\\c",tagValueProcessor:function(e,t){return e},attrValueProcessor:function(e,t){return e},stopNodes:[]};Io.defaultOptions=xS;var IS=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];Io.props=IS;function xo(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=RS(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function ZW(e,t){if(t.ignoreNameSpace){let n=e.split(":"),r=e.charAt(0)==="/"?"/":"";if(n[0]==="xmlns")return"";n.length===2&&(e=r+n[1])}return e}function RS(e,t,n){if(t&&typeof e=="string"){let r;return e.trim()===""||isNaN(e)?r=e==="true"?!0:e==="false"?!1:e:(e.indexOf("0x")!==-1?r=Number.parseInt(e,16):e.indexOf(".")!==-1?(r=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):r=Number.parseInt(e,10),n&&(r=String(r)===e?r:e)),r}else return qr.isExist(e)?e:""}var eH=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function kS(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=qr.getAllMatches(e,eH),r=n.length,s={};for(let i=0;i<r;i++){let a=ZW(n[i][1],t);a.length&&(n[i][4]!==void 0?(t.trimValues&&(n[i][4]=n[i][4].trim()),n[i][4]=t.attrValueProcessor(n[i][4],a),s[t.attributeNamePrefix+a]=RS(n[i][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(s[t.attributeNamePrefix+a]=!0))}if(!Object.keys(s).length)return;if(t.attrNodeName){let i={};return i[t.attrNodeName]=s,i}return s}}var tH=function(e,t){e=e.replace(/\r\n?/g,`
|
|
6
|
+
`),t=XW(t,xS,IS);let n=new To("!xml"),r=n,s="";for(let i=0;i<e.length;i++)if(e[i]==="<")if(e[i+1]==="/"){let c=wi(e,">",i,"Closing Tag is not closed."),l=e.substring(i+2,c).trim();if(t.ignoreNameSpace){let m=l.indexOf(":");m!==-1&&(l=l.substr(m+1))}r&&(r.val?r.val=qr.getValue(r.val)+""+xo(l,s,t):r.val=xo(l,s,t)),t.stopNodes.length&&t.stopNodes.includes(r.tagname)&&(r.child=[],r.attrsMap==null&&(r.attrsMap={}),r.val=e.substr(r.startIndex+1,i-r.startIndex-1)),r=r.parent,s="",i=c}else if(e[i+1]==="?")i=wi(e,"?>",i,"Pi Tag is not closed.");else if(e.substr(i+1,3)==="!--")i=wi(e,"-->",i,"Comment is not closed.");else if(e.substr(i+1,2)==="!D"){let c=wi(e,">",i,"DOCTYPE is not closed.");e.substring(i,c).indexOf("[")>=0?i=e.indexOf("]>",i)+1:i=c}else if(e.substr(i+1,2)==="!["){let c=wi(e,"]]>",i,"CDATA is not closed.")-2,l=e.substring(i+9,c);if(s&&(r.val=qr.getValue(r.val)+""+xo(r.tagname,s,t),s=""),t.cdataTagName){let m=new To(t.cdataTagName,r,l);r.addChild(m),r.val=qr.getValue(r.val)+t.cdataPositionChar,l&&(m.val=l)}else r.val=(r.val||"")+(l||"");i=c+2}else{let c=nH(e,i+1),l=c.data,m=c.index,f=l.indexOf(" "),g=l,h=!0;if(f!==-1&&(g=l.substr(0,f).replace(/\s\s*$/,""),l=l.substr(f+1)),t.ignoreNameSpace){let _=g.indexOf(":");_!==-1&&(g=g.substr(_+1),h=g!==c.data.substr(_+1))}if(r&&s&&r.tagname!=="!xml"&&(r.val=qr.getValue(r.val)+""+xo(r.tagname,s,t)),l.length>0&&l.lastIndexOf("/")===l.length-1){g[g.length-1]==="/"?(g=g.substr(0,g.length-1),l=g):l=l.substr(0,l.length-1);let _=new To(g,r,"");g!==l&&(_.attrsMap=kS(l,t)),r.addChild(_)}else{let _=new To(g,r);t.stopNodes.length&&t.stopNodes.includes(_.tagname)&&(_.startIndex=m),g!==l&&h&&(_.attrsMap=kS(l,t)),r.addChild(_),r=_}s="",i=m}else s+=e[i];return n};function nH(e,t){let n,r="";for(let s=t;s<e.length;s++){let i=e[s];if(n)i===n&&(n="");else if(i==='"'||i==="'")n=i;else{if(i===">")return{data:r,index:s};i===" "&&(i=" ")}r+=i}}function wi(e,t,n,r){let s=e.indexOf(t,n);if(s===-1)throw new Error(r);return s+t.length-1}Io.getTraversalObj=tH});var qS=p(NS=>{"use strict";var Ro=on(),rH={allowBooleanAttributes:!1},sH=["allowBooleanAttributes"];NS.validate=function(e,t){t=Ro.buildOptions(t,rH,sH);let n=[],r=!1,s=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let i=0;i<e.length;i++)if(e[i]==="<"&&e[i+1]==="?"){if(i+=2,i=DS(e,i),i.err)return i}else if(e[i]==="<")if(i++,e[i]==="!"){i=LS(e,i);continue}else{let a=!1;e[i]==="/"&&(a=!0,i++);let c="";for(;i<e.length&&e[i]!==">"&&e[i]!==" "&&e[i]!==" "&&e[i]!==`
|
|
7
|
+
`&&e[i]!=="\r";i++)c+=e[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!mH(c)){let f;return c.trim().length===0?f="There is an unnecessary space between tag name and backward slash '</ ..'.":f="Tag '"+c+"' is an invalid name.",Qe("InvalidTag",f,Yt(e,i))}let l=oH(e,i);if(l===!1)return Qe("InvalidAttr","Attributes for '"+c+"' have open quote.",Yt(e,i));let m=l.value;if(i=l.index,m[m.length-1]==="/"){m=m.substring(0,m.length-1);let f=PS(m,t);if(f===!0)r=!0;else return Qe(f.err.code,f.err.msg,Yt(e,i-m.length+f.err.line))}else if(a)if(l.tagClosed){if(m.trim().length>0)return Qe("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Yt(e,i));{let f=n.pop();if(c!==f)return Qe("InvalidTag","Closing tag '"+f+"' is expected inplace of '"+c+"'.",Yt(e,i));n.length==0&&(s=!0)}}else return Qe("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Yt(e,i));else{let f=PS(m,t);if(f!==!0)return Qe(f.err.code,f.err.msg,Yt(e,i-m.length+f.err.line));if(s===!0)return Qe("InvalidXml","Multiple possible root nodes found.",Yt(e,i));n.push(c),r=!0}for(i++;i<e.length;i++)if(e[i]==="<")if(e[i+1]==="!"){i++,i=LS(e,i);continue}else if(e[i+1]==="?"){if(i=DS(e,++i),i.err)return i}else break;else if(e[i]==="&"){let f=dH(e,i);if(f==-1)return Qe("InvalidChar","char '&' is not expected.",Yt(e,i));i=f}e[i]==="<"&&i--}else{if(e[i]===" "||e[i]===" "||e[i]===`
|
|
8
|
+
`||e[i]==="\r")continue;return Qe("InvalidChar","char '"+e[i]+"' is not expected.",Yt(e,i))}if(r){if(n.length>0)return Qe("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return Qe("InvalidXml","Start tag expected.",1);return!0};function DS(e,t){for(var n=t;t<e.length;t++)if(e[t]=="?"||e[t]==" "){var r=e.substr(n,t-n);if(t>5&&r==="xml")return Qe("InvalidXml","XML declaration allowed only at the start of the document.",Yt(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function LS(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t<e.length;t++)if(e[t]==="<")n++;else if(e[t]===">"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}var iH='"',aH="'";function oH(e,t){let n="",r="",s=!1;for(;t<e.length;t++){if(e[t]===iH||e[t]===aH)if(r==="")r=e[t];else{if(r!==e[t])continue;r=""}else if(e[t]===">"&&r===""){s=!0;break}n+=e[t]}return r!==""?!1:{value:n,index:t,tagClosed:s}}var cH=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function PS(e,t){let n=Ro.getAllMatches(e,cH),r={};for(let s=0;s<n.length;s++){if(n[s][1].length===0)return Qe("InvalidAttr","Attribute '"+n[s][2]+"' has no space in starting.",ko(e,n[s][0]));if(n[s][3]===void 0&&!t.allowBooleanAttributes)return Qe("InvalidAttr","boolean attribute '"+n[s][2]+"' is not allowed.",ko(e,n[s][0]));let i=n[s][2];if(!uH(i))return Qe("InvalidAttr","Attribute '"+i+"' is an invalid name.",ko(e,n[s][0]));if(!r.hasOwnProperty(i))r[i]=1;else return Qe("InvalidAttr","Attribute '"+i+"' is repeated.",ko(e,n[s][0]))}return!0}function lH(e,t){let n=/\d/;for(e[t]==="x"&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(n))break}return-1}function dH(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,lH(e,t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(e[t]===";")break;return-1}return t}function Qe(e,t,n){return{err:{code:e,msg:t,line:n}}}function uH(e){return Ro.isName(e)}function mH(e){return Ro.isName(e)}function Yt(e,t){var n=e.substring(0,t).split(/\r?\n/);return n.length}function ko(e,t){return e.indexOf(t)+t.length}});var jS=p(zS=>{"use strict";var cn=function(e){return String.fromCharCode(e)},qe={nilChar:cn(176),missingChar:cn(201),nilPremitive:cn(175),missingPremitive:cn(200),emptyChar:cn(178),emptyValue:cn(177),boundryChar:cn(179),objStart:cn(198),arrStart:cn(204),arrayEnd:cn(185)},fH=[qe.nilChar,qe.nilPremitive,qe.missingChar,qe.missingPremitive,qe.boundryChar,qe.emptyChar,qe.emptyValue,qe.arrayEnd,qe.objStart,qe.arrStart],Si=function(e,t,n){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?lp(e[0].val,t):lp(e,t);{let r=pH(e);if(r===!0){let s="";if(Array.isArray(t)){s+=qe.arrStart;let i=t[0],a=e.length;if(typeof i=="string")for(let c=0;c<a;c++){let l=lp(e[c].val,i);s=dp(s,l)}else for(let c=0;c<a;c++){let l=Si(e[c],i,n);s=dp(s,l)}s+=qe.arrayEnd}else{s+=qe.objStart;let i=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let a in i){let c=i[a],l;!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[c]?l=Si(e.attrsMap[c],t[c],n):c===n.textNodeName?l=Si(e.val,t[c],n):l=Si(e.child[c],t[c],n),s=dp(s,l)}}return s}else return r}},lp=function(e){switch(e){case void 0:return qe.missingPremitive;case null:return qe.nilPremitive;case"":return qe.emptyValue;default:return e}},dp=function(e,t){return!MS(t[0])&&!MS(e[e.length-1])&&(e+=qe.boundryChar),e+t},MS=function(e){return fH.indexOf(e)!==-1};function pH(e){return e===void 0?qe.missingChar:e===null?qe.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?qe.emptyChar:!0}var OS=bi(),hH=on().buildOptions,yH=function(e,t,n){return n=hH(n,OS.defaultOptions,OS.props),Si(e,t,n)};zS.convert2nimn=yH});var FS=p(BS=>{"use strict";var Do=on(),gH=on().buildOptions,US=bi(),_H=function(e,t){return t=gH(t,US.defaultOptions,US.props),t.indentBy=t.indentBy||"",up(e,t,0)},up=function(e,t,n){let r="{",s=Object.keys(e.child);for(let c=0;c<s.length;c++){var i=s[c];if(e.child[i]&&e.child[i].length>1){r+='"'+i+'" : [ ';for(var a in e.child[i])r+=up(e.child[i][a],t)+" , ";r=r.substr(0,r.length-1)+" ] "}else r+='"'+i+'" : '+up(e.child[i][0],t)+" ,"}return Do.merge(r,e.attrsMap),Do.isEmptyObject(r)?Do.isExist(e.val)?e.val:"":(Do.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(r+='"'+t.textNodeName+'" : '+wH(e.val))),r[r.length-1]===","&&(r=r.substr(0,r.length-2)),r+"}")};function wH(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}BS.convertToJsonString=_H});var VS=p((qde,KS)=>{"use strict";var bH=on().buildOptions,SH={attributeNamePrefix:"@_",attrNodeName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataTagName:!1,cdataPositionChar:"\\c",format:!1,indentBy:" ",supressEmptyNode:!1,tagValueProcessor:function(e){return e},attrValueProcessor:function(e){return e}},vH=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function mp(e){this.options=bH(e,SH,vH),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=IH),this.options.cdataTagName?this.isCDATA=RH:this.isCDATA=function(){return!1},this.replaceCDATAstr=EH,this.replaceCDATAarr=AH,this.options.format?(this.indentate=xH,this.tagEndChar=`>
|
|
9
9
|
`,this.newLine=`
|
|
10
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=IH,this.buildObjNode=xH):(this.buildTextNode=$S,this.buildObjNode=GS),this.buildTextValNode=$S,this.buildObjectNode=GS}mp.prototype.parse=function(e){return this.j2x(e,0).val};mp.prototype.j2x=function(e,t){let n="",r="",s=Object.keys(e),i=s.length;for(let a=0;a<i;a++){let c=s[a];if(typeof e[c]!="undefined")if(e[c]===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(e[c]instanceof Date)r+=this.buildTextNode(e[c],c,"",t);else if(typeof e[c]!="object"){let l=this.isAttribute(c);l?n+=" "+l+'="'+this.options.attrValueProcessor(""+e[c])+'"':this.isCDATA(c)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAstr("",e[c]):c===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[c])):r+=this.buildTextNode(e[c],c,"",t)}else if(Array.isArray(e[c]))if(this.isCDATA(c))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAarr("",e[c]);else{let l=e[c].length;for(let m=0;m<l;m++){let f=e[c][m];if(typeof f!="undefined")if(f===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(typeof f=="object"){let g=this.j2x(f,t+1);r+=this.buildObjNode(g.val,c,g.attrStr,t)}else r+=this.buildTextNode(f,c,"",t)}}else if(this.options.attrNodeName&&c===this.options.attrNodeName){let l=Object.keys(e[c]),m=l.length;for(let f=0;f<m;f++)n+=" "+l[f]+'="'+this.options.attrValueProcessor(""+e[c][l[f]])+'"'}else{let l=this.j2x(e[c],t+1);r+=this.buildObjNode(l.val,c,l.attrStr,t)}}return{attrStr:n,val:r}};function CH(e,t){return e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e===""?e+"<![CDATA["+t+"]]"+this.tagEndChar:e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}function TH(e,t){if(e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e==="")return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let n in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[n]+"]]>");return e+this.newLine}function GS(e,t,n,r){return n&&!e.includes("<")?this.indentate(r)+"<"+t+n+">"+e+"</"+t+this.tagEndChar:this.indentate(r)+"<"+t+n+this.tagEndChar+e+this.indentate(r)+"</"+t+this.tagEndChar}function xH(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function $S(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function IH(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function RH(e){return this.options.indentBy.repeat(e)}function kH(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function DH(e){return e===this.options.cdataTagName}KS.exports=mp});var QS=p(Jt=>{"use strict";var WS=AS(),HS=_i(),YS=_i(),NH=on().buildOptions,JS=qS();Jt.parse=function(e,t,n){if(n){n===!0&&(n={});let s=JS.validate(e,n);if(s!==!0)throw Error(s.err.msg)}t=NH(t,YS.defaultOptions,YS.props);let r=HS.getTraversalObj(e,t);return WS.convertToJson(r,t)};Jt.convertTonimn=jS().convert2nimn;Jt.getTraversalObj=HS.getTraversalObj;Jt.convertToJson=WS.convertToJson;Jt.convertToJsonString=FS().convertToJsonString;Jt.validate=JS.validate;Jt.j2xParser=VS();Jt.parseToNimn=function(e,t,n){return Jt.convertTonimn(Jt.getTraversalObj(e,n),t,n)}});var Dn=p(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.deserializeAws_queryGetSessionTokenCommand=me.deserializeAws_queryGetFederationTokenCommand=me.deserializeAws_queryGetCallerIdentityCommand=me.deserializeAws_queryGetAccessKeyInfoCommand=me.deserializeAws_queryDecodeAuthorizationMessageCommand=me.deserializeAws_queryAssumeRoleWithWebIdentityCommand=me.deserializeAws_queryAssumeRoleWithSAMLCommand=me.deserializeAws_queryAssumeRoleCommand=me.serializeAws_queryGetSessionTokenCommand=me.serializeAws_queryGetFederationTokenCommand=me.serializeAws_queryGetCallerIdentityCommand=me.serializeAws_queryGetAccessKeyInfoCommand=me.serializeAws_queryDecodeAuthorizationMessageCommand=me.serializeAws_queryAssumeRoleWithWebIdentityCommand=me.serializeAws_queryAssumeRoleWithSAMLCommand=me.serializeAws_queryAssumeRoleCommand=void 0;var LH=Dt(),ue=M(),PH=bS(),qH=QS(),MH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},c3(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleCommand=MH;var OH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},l3(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithSAMLCommand=OH;var zH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},d3(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithWebIdentityCommand=zH;var jH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},u3(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryDecodeAuthorizationMessageCommand=jH;var UH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},m3(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryGetAccessKeyInfoCommand=UH;var BH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},f3(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryGetCallerIdentityCommand=BH;var FH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},p3(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryGetFederationTokenCommand=FH;var GH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},h3(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryGetSessionTokenCommand=GH;var $H=async(e,t)=>{if(e.statusCode>=300)return KH(e,t);let n=await rt(e.body,t),r={};r=w3(n.AssumeRoleResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryAssumeRoleCommand=$H;var KH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await fp(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},VH=async(e,t)=>{if(e.statusCode>=300)return WH(e,t);let n=await rt(e.body,t),r={};r=b3(n.AssumeRoleWithSAMLResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryAssumeRoleWithSAMLCommand=VH;var WH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await fp(n,t)),{name:s,$metadata:ne(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=u(o({},await XS(n,t)),{name:s,$metadata:ne(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=u(o({},await ZS(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},HH=async(e,t)=>{if(e.statusCode>=300)return YH(e,t);let n=await rt(e.body,t),r={};r=S3(n.AssumeRoleWithWebIdentityResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryAssumeRoleWithWebIdentityCommand=HH;var YH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await fp(n,t)),{name:s,$metadata:ne(e)});break;case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":r=u(o({},await a3(n,t)),{name:s,$metadata:ne(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=u(o({},await XS(n,t)),{name:s,$metadata:ne(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=u(o({},await ZS(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},JH=async(e,t)=>{if(e.statusCode>=300)return QH(e,t);let n=await rt(e.body,t),r={};r=v3(n.DecodeAuthorizationMessageResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryDecodeAuthorizationMessageCommand=JH;var QH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":r=u(o({},await o3(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},XH=async(e,t)=>{if(e.statusCode>=300)return ZH(e,t);let n=await rt(e.body,t),r={};r=C3(n.GetAccessKeyInfoResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryGetAccessKeyInfoCommand=XH;var ZH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},e3=async(e,t)=>{if(e.statusCode>=300)return t3(e,t);let n=await rt(e.body,t),r={};r=T3(n.GetCallerIdentityResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryGetCallerIdentityCommand=e3;var t3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},n3=async(e,t)=>{if(e.statusCode>=300)return r3(e,t);let n=await rt(e.body,t),r={};r=x3(n.GetFederationTokenResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryGetFederationTokenCommand=n3;var r3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},s3=async(e,t)=>{if(e.statusCode>=300)return i3(e,t);let n=await rt(e.body,t),r={};r=I3(n.GetSessionTokenResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryGetSessionTokenCommand=s3;var i3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await bi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fp=async(e,t)=>{let n=e.body,r=E3(n.Error,t);return o({name:"ExpiredTokenException",$fault:"client",$metadata:ne(e)},r)},a3=async(e,t)=>{let n=e.body,r=R3(n.Error,t);return o({name:"IDPCommunicationErrorException",$fault:"client",$metadata:ne(e)},r)},XS=async(e,t)=>{let n=e.body,r=k3(n.Error,t);return o({name:"IDPRejectedClaimException",$fault:"client",$metadata:ne(e)},r)},o3=async(e,t)=>{let n=e.body,r=D3(n.Error,t);return o({name:"InvalidAuthorizationMessageException",$fault:"client",$metadata:ne(e)},r)},ZS=async(e,t)=>{let n=e.body,r=N3(n.Error,t);return o({name:"InvalidIdentityTokenException",$fault:"client",$metadata:ne(e)},r)},Lo=async(e,t)=>{let n=e.body,r=L3(n.Error,t);return o({name:"MalformedPolicyDocumentException",$fault:"client",$metadata:ne(e)},r)},Po=async(e,t)=>{let n=e.body,r=P3(n.Error,t);return o({name:"PackedPolicyTooLargeException",$fault:"client",$metadata:ne(e)},r)},bi=async(e,t)=>{let n=e.body,r=q3(n.Error,t);return o({name:"RegionDisabledException",$fault:"client",$metadata:ne(e)},r)},c3=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(n.RoleSessionName=e.RoleSessionName),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=qo(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}if(e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=ev(e.Tags,t);Object.entries(r).forEach(([s,i])=>{let a=`Tags.${s}`;n[a]=i})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=_3(e.TransitiveTagKeys,t);Object.entries(r).forEach(([s,i])=>{let a=`TransitiveTagKeys.${s}`;n[a]=i})}return e.ExternalId!==void 0&&e.ExternalId!==null&&(n.ExternalId=e.ExternalId),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(n.TokenCode=e.TokenCode),e.SourceIdentity!==void 0&&e.SourceIdentity!==null&&(n.SourceIdentity=e.SourceIdentity),n},l3=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.PrincipalArn!==void 0&&e.PrincipalArn!==null&&(n.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!==void 0&&e.SAMLAssertion!==null&&(n.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=qo(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},d3=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(n.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!==void 0&&e.WebIdentityToken!==null&&(n.WebIdentityToken=e.WebIdentityToken),e.ProviderId!==void 0&&e.ProviderId!==null&&(n.ProviderId=e.ProviderId),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=qo(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},u3=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},m3=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},f3=(e,t)=>({}),p3=(e,t)=>{let n={};if(e.Name!==void 0&&e.Name!==null&&(n.Name=e.Name),e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=qo(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=ev(e.Tags,t);Object.entries(r).forEach(([s,i])=>{let a=`Tags.${s}`;n[a]=i})}return n},h3=(e,t)=>{let n={};return e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(n.TokenCode=e.TokenCode),n},qo=(e,t)=>{let n={},r=1;for(let s of e){if(s===null)continue;let i=y3(s,t);Object.entries(i).forEach(([a,c])=>{n[`member.${r}.${a}`]=c}),r++}return n},y3=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},g3=(e,t)=>{let n={};return e.Key!==void 0&&e.Key!==null&&(n.Key=e.Key),e.Value!==void 0&&e.Value!==null&&(n.Value=e.Value),n},_3=(e,t)=>{let n={},r=1;for(let s of e)s!==null&&(n[`member.${r}`]=s,r++);return n},ev=(e,t)=>{let n={},r=1;for(let s of e){if(s===null)continue;let i=g3(s,t);Object.entries(i).forEach(([a,c])=>{n[`member.${r}.${a}`]=c}),r++}return n},pp=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=ue.expectString(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},w3=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Si(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=pp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},b3=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Subject:void 0,SubjectType:void 0,Issuer:void 0,Audience:void 0,NameQualifier:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Si(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=pp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=ue.expectString(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=ue.expectString(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=ue.expectString(e.Issuer)),e.Audience!==void 0&&(n.Audience=ue.expectString(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=ue.expectString(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},S3=(e,t)=>{let n={Credentials:void 0,SubjectFromWebIdentityToken:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Provider:void 0,Audience:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Si(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=ue.expectString(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=pp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=ue.expectString(e.Provider)),e.Audience!==void 0&&(n.Audience=ue.expectString(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},Si=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=ue.expectString(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=ue.expectString(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=ue.expectString(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=new Date(e.Expiration)),n},v3=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=ue.expectString(e.DecodedMessage)),n},E3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},A3=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=ue.expectString(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},C3=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=ue.expectString(e.Account)),n},T3=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=ue.expectString(e.UserId)),e.Account!==void 0&&(n.Account=ue.expectString(e.Account)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},x3=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=Si(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=A3(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),n},I3=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=Si(e.Credentials,t)),n},R3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},k3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},D3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},N3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},L3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},P3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},q3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},ne=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},M3=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),O3=(e,t)=>M3(e,t).then(n=>t.utf8Encoder(n)),rr=async(e,t,n,r,s)=>{let{hostname:i,protocol:a="https",port:c}=await e.endpoint(),l={protocol:a,hostname:i,port:c,method:"POST",path:n,headers:t};return r!==void 0&&(l.hostname=r),s!==void 0&&(l.body=s),new LH.HttpRequest(l)},rt=(e,t)=>O3(e,t).then(n=>{if(n.length){let r=qH.parse(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:(c,l)=>c.trim()===""?"":PH.decodeHTML(c)}),s="#text",i=Object.keys(r)[0],a=r[i];return a[s]&&(a[i]=a[s],delete a[s]),ue.getValueFromTextNode(a)}return{}}),sr=e=>Object.entries(e).map(([t,n])=>ue.extendedEncodeURIComponent(t)+"="+ue.extendedEncodeURIComponent(n)).join("&"),ir=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var hp=p(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.CredentialsProviderError=ps.ProviderError=void 0;var tv=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};ps.ProviderError=tv;var nv=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n,this.name="CredentialsProviderError"}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};ps.CredentialsProviderError=nv});var rv=p(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.chain=void 0;var z3=hp();function j3(...e){return()=>{let t=Promise.reject(new z3.ProviderError("No providers in chain"));for(let n of e)t=t.catch(r=>{if(r==null?void 0:r.tryNextLink)return n();throw r});return t}}Mo.chain=j3});var sv=p(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.fromStatic=void 0;var U3=e=>()=>Promise.resolve(e);Oo.fromStatic=U3});var iv=p(zo=>{"use strict";Object.defineProperty(zo,"__esModule",{value:!0});zo.memoize=void 0;var B3=(e,t,n)=>{let r,s;if(t===void 0)return()=>(s||(r=e(),s=!0),r);let i=!1;return async()=>{if(s||(r=e(),s=!0),i)return r;let a=await r;return n&&!n(a)?(i=!0,a):t(a)?r=e():a}};zo.memoize=B3});var st=p(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var jo=he();jo.__exportStar(rv(),hs);jo.__exportStar(sv(),hs);jo.__exportStar(iv(),hs);jo.__exportStar(hp(),hs)});var Uo=p(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.toHex=ys.fromHex=void 0;var av={},yp={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),av[e]=t,yp[t]=e}function F3(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){let r=e.substr(n,2).toLowerCase();if(r in yp)t[n/2]=yp[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}ys.fromHex=F3;function G3(e){let t="";for(let n=0;n<e.byteLength;n++)t+=av[e[n]];return t}ys.toHex=G3});var Mr=p(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.MAX_PRESIGNED_TTL=G.KEY_TYPE_IDENTIFIER=G.MAX_CACHE_SIZE=G.UNSIGNED_PAYLOAD=G.EVENT_ALGORITHM_IDENTIFIER=G.ALGORITHM_IDENTIFIER=G.UNSIGNABLE_PATTERNS=G.SEC_HEADER_PATTERN=G.PROXY_HEADER_PATTERN=G.ALWAYS_UNSIGNABLE_HEADERS=G.HOST_HEADER=G.TOKEN_HEADER=G.SHA256_HEADER=G.SIGNATURE_HEADER=G.GENERATED_HEADERS=G.DATE_HEADER=G.AMZ_DATE_HEADER=G.AUTH_HEADER=G.TOKEN_QUERY_PARAM=G.SIGNATURE_QUERY_PARAM=G.EXPIRES_QUERY_PARAM=G.SIGNED_HEADERS_QUERY_PARAM=G.AMZ_DATE_QUERY_PARAM=G.CREDENTIAL_QUERY_PARAM=G.ALGORITHM_QUERY_PARAM=void 0;G.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";G.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";G.AMZ_DATE_QUERY_PARAM="X-Amz-Date";G.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";G.EXPIRES_QUERY_PARAM="X-Amz-Expires";G.SIGNATURE_QUERY_PARAM="X-Amz-Signature";G.TOKEN_QUERY_PARAM="X-Amz-Security-Token";G.AUTH_HEADER="authorization";G.AMZ_DATE_HEADER=G.AMZ_DATE_QUERY_PARAM.toLowerCase();G.DATE_HEADER="date";G.GENERATED_HEADERS=[G.AUTH_HEADER,G.AMZ_DATE_HEADER,G.DATE_HEADER];G.SIGNATURE_HEADER=G.SIGNATURE_QUERY_PARAM.toLowerCase();G.SHA256_HEADER="x-amz-content-sha256";G.TOKEN_HEADER=G.TOKEN_QUERY_PARAM.toLowerCase();G.HOST_HEADER="host";G.ALWAYS_UNSIGNABLE_HEADERS={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};G.PROXY_HEADER_PATTERN=/^proxy-/;G.SEC_HEADER_PATTERN=/^sec-/;G.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];G.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";G.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";G.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";G.MAX_CACHE_SIZE=50;G.KEY_TYPE_IDENTIFIER="aws4_request";G.MAX_PRESIGNED_TTL=60*60*24*7});var _p=p(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.clearCredentialCache=ar.getSigningKey=ar.createScope=void 0;var $3=Uo(),gp=Mr(),gs={},Bo=[];function K3(e,t,n){return`${e}/${t}/${n}/${gp.KEY_TYPE_IDENTIFIER}`}ar.createScope=K3;var V3=async(e,t,n,r,s)=>{let i=await ov(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${s}:${$3.toHex(i)}:${t.sessionToken}`;if(a in gs)return gs[a];for(Bo.push(a);Bo.length>gp.MAX_CACHE_SIZE;)delete gs[Bo.shift()];let c=`AWS4${t.secretAccessKey}`;for(let l of[n,r,s,gp.KEY_TYPE_IDENTIFIER])c=await ov(e,c,l);return gs[a]=c};ar.getSigningKey=V3;function W3(){Bo.length=0,Object.keys(gs).forEach(e=>{delete gs[e]})}ar.clearCredentialCache=W3;function ov(e,t,n){let r=new e(t);return r.update(n),r.digest()}});var cv=p(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.getCanonicalHeaders=void 0;var wp=Mr();function H3({headers:e},t,n){let r={};for(let s of Object.keys(e).sort()){let i=s.toLowerCase();(i in wp.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(i))||wp.PROXY_HEADER_PATTERN.test(i)||wp.SEC_HEADER_PATTERN.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[s].trim().replace(/\s+/g," "))}return r}Fo.getCanonicalHeaders=H3});var bp=p(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.escapeUri=void 0;var Y3=e=>encodeURIComponent(e).replace(/[!'()*]/g,J3);Go.escapeUri=Y3;var J3=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var lv=p($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.escapeUriPath=void 0;var Q3=bp(),X3=e=>e.split("/").map(Q3.escapeUri).join("/");$o.escapeUriPath=X3});var Sp=p(Ko=>{"use strict";Object.defineProperty(Ko,"__esModule",{value:!0});var dv=he();dv.__exportStar(bp(),Ko);dv.__exportStar(lv(),Ko)});var uv=p(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.getCanonicalQuery=void 0;var Vo=Sp(),Z3=Mr();function e8({query:e={}}){let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===Z3.SIGNATURE_HEADER)continue;t.push(r);let s=e[r];typeof s=="string"?n[r]=`${Vo.escapeUri(r)}=${Vo.escapeUri(s)}`:Array.isArray(s)&&(n[r]=s.slice(0).sort().reduce((i,a)=>i.concat([`${Vo.escapeUri(r)}=${Vo.escapeUri(a)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")}Wo.getCanonicalQuery=e8});var vp=p(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.isArrayBuffer=void 0;var t8=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Ho.isArrayBuffer=t8});var fv=p(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.getPayloadHash=void 0;var n8=vp(),r8=Uo(),mv=Mr();async function s8({headers:e,body:t},n){for(let r of Object.keys(e))if(r.toLowerCase()===mv.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||n8.isArrayBuffer(t)){let r=new n;return r.update(t),r8.toHex(await r.digest())}return mv.UNSIGNED_PAYLOAD}Yo.getPayloadHash=s8});var pv=p(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.hasHeader=void 0;function i8(e,t){e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1}Jo.hasHeader=i8});var Ep=p(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.cloneRequest=void 0;function a8(r){var s=r,{headers:e,query:t}=s,n=Jn(s,["headers","query"]);return u(o({},n),{headers:o({},e),query:t?o8(t):void 0})}Qo.cloneRequest=a8;function o8(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return u(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var hv=p(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.moveHeadersToQuery=void 0;var c8=Ep();function l8(e,t={}){var n;let{headers:r,query:s={}}=typeof e.clone=="function"?e.clone():c8.cloneRequest(e);for(let i of Object.keys(r)){let a=i.toLowerCase();a.substr(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)===null||n===void 0?void 0:n.has(a))&&(s[i]=r[i],delete r[i])}return u(o({},e),{headers:r,query:s})}Xo.moveHeadersToQuery=l8});var yv=p(Zo=>{"use strict";Object.defineProperty(Zo,"__esModule",{value:!0});Zo.prepareRequest=void 0;var d8=Ep(),u8=Mr();function m8(e){e=typeof e.clone=="function"?e.clone():d8.cloneRequest(e);for(let t of Object.keys(e.headers))u8.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e}Zo.prepareRequest=m8});var _v=p(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.toDate=_s.iso8601=void 0;function f8(e){return gv(e).toISOString().replace(/\.\d{3}Z$/,"Z")}_s.iso8601=f8;function gv(e){return typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e}_s.toDate=gv});var Ev=p(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.SignatureV4=void 0;var ec=Uo(),Xe=Mr(),tc=_p(),wv=cv(),p8=uv(),Ap=fv(),h8=pv(),y8=hv(),bv=yv(),g8=_v(),Sv=class{constructor({applyChecksum:t,credentials:n,region:r,service:s,sha256:i,uriEscapePath:a=!0}){this.service=s,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=_8(r),this.credentialProvider=w8(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:s=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:c,signingRegion:l,signingService:m}=n,f=await this.credentialProvider(),g=l!=null?l:await this.regionProvider(),{longDate:h,shortDate:_}=nc(r);if(s>Xe.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let b=tc.createScope(_,g,m!=null?m:this.service),E=y8.moveHeadersToQuery(bv.prepareRequest(t),{unhoistableHeaders:a});f.sessionToken&&(E.query[Xe.TOKEN_QUERY_PARAM]=f.sessionToken),E.query[Xe.ALGORITHM_QUERY_PARAM]=Xe.ALGORITHM_IDENTIFIER,E.query[Xe.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${b}`,E.query[Xe.AMZ_DATE_QUERY_PARAM]=h,E.query[Xe.EXPIRES_QUERY_PARAM]=s.toString(10);let D=wv.getCanonicalHeaders(E,i,c);return E.query[Xe.SIGNED_HEADERS_QUERY_PARAM]=vv(D),E.query[Xe.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,b,this.getSigningKey(f,g,_,m),this.createCanonicalRequest(E,D,await Ap.getPayloadHash(t,this.sha256))),E}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:s,signingRegion:i,signingService:a}){let c=i!=null?i:await this.regionProvider(),{shortDate:l,longDate:m}=nc(r),f=tc.createScope(l,c,a!=null?a:this.service),g=await Ap.getPayloadHash({headers:{},body:n},this.sha256),h=new this.sha256;h.update(t);let _=ec.toHex(await h.digest()),b=[Xe.EVENT_ALGORITHM_IDENTIFIER,m,f,s,_,g].join(`
|
|
11
|
-
`);return this.signString(b,{signingDate:r,signingRegion:c,signingService:a})}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:s}={}){let i=await this.credentialProvider(),a=r!=null?r:await this.regionProvider(),{shortDate:c}=
|
|
10
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=TH,this.buildObjNode=CH):(this.buildTextNode=$S,this.buildObjNode=GS),this.buildTextValNode=$S,this.buildObjectNode=GS}mp.prototype.parse=function(e){return this.j2x(e,0).val};mp.prototype.j2x=function(e,t){let n="",r="",s=Object.keys(e),i=s.length;for(let a=0;a<i;a++){let c=s[a];if(typeof e[c]!="undefined")if(e[c]===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(e[c]instanceof Date)r+=this.buildTextNode(e[c],c,"",t);else if(typeof e[c]!="object"){let l=this.isAttribute(c);l?n+=" "+l+'="'+this.options.attrValueProcessor(""+e[c])+'"':this.isCDATA(c)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAstr("",e[c]):c===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[c])):r+=this.buildTextNode(e[c],c,"",t)}else if(Array.isArray(e[c]))if(this.isCDATA(c))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[c]):r+=this.replaceCDATAarr("",e[c]);else{let l=e[c].length;for(let m=0;m<l;m++){let f=e[c][m];if(typeof f!="undefined")if(f===null)r+=this.indentate(t)+"<"+c+"/"+this.tagEndChar;else if(typeof f=="object"){let g=this.j2x(f,t+1);r+=this.buildObjNode(g.val,c,g.attrStr,t)}else r+=this.buildTextNode(f,c,"",t)}}else if(this.options.attrNodeName&&c===this.options.attrNodeName){let l=Object.keys(e[c]),m=l.length;for(let f=0;f<m;f++)n+=" "+l[f]+'="'+this.options.attrValueProcessor(""+e[c][l[f]])+'"'}else{let l=this.j2x(e[c],t+1);r+=this.buildObjNode(l.val,c,l.attrStr,t)}}return{attrStr:n,val:r}};function EH(e,t){return e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e===""?e+"<![CDATA["+t+"]]"+this.tagEndChar:e.replace(this.options.cdataPositionChar,"<![CDATA["+t+"]]"+this.tagEndChar)}function AH(e,t){if(e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e==="")return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let n in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[n]+"]]>");return e+this.newLine}function GS(e,t,n,r){return n&&!e.includes("<")?this.indentate(r)+"<"+t+n+">"+e+"</"+t+this.tagEndChar:this.indentate(r)+"<"+t+n+this.tagEndChar+e+this.indentate(r)+"</"+t+this.tagEndChar}function CH(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function $S(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function TH(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function xH(e){return this.options.indentBy.repeat(e)}function IH(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function RH(e){return e===this.options.cdataTagName}KS.exports=mp});var QS=p(Jt=>{"use strict";var WS=AS(),HS=bi(),YS=bi(),kH=on().buildOptions,JS=qS();Jt.parse=function(e,t,n){if(n){n===!0&&(n={});let s=JS.validate(e,n);if(s!==!0)throw Error(s.err.msg)}t=kH(t,YS.defaultOptions,YS.props);let r=HS.getTraversalObj(e,t);return WS.convertToJson(r,t)};Jt.convertTonimn=jS().convert2nimn;Jt.getTraversalObj=HS.getTraversalObj;Jt.convertToJson=WS.convertToJson;Jt.convertToJsonString=FS().convertToJsonString;Jt.validate=JS.validate;Jt.j2xParser=VS();Jt.parseToNimn=function(e,t,n){return Jt.convertTonimn(Jt.getTraversalObj(e,n),t,n)}});var Dn=p(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.deserializeAws_queryGetSessionTokenCommand=me.deserializeAws_queryGetFederationTokenCommand=me.deserializeAws_queryGetCallerIdentityCommand=me.deserializeAws_queryGetAccessKeyInfoCommand=me.deserializeAws_queryDecodeAuthorizationMessageCommand=me.deserializeAws_queryAssumeRoleWithWebIdentityCommand=me.deserializeAws_queryAssumeRoleWithSAMLCommand=me.deserializeAws_queryAssumeRoleCommand=me.serializeAws_queryGetSessionTokenCommand=me.serializeAws_queryGetFederationTokenCommand=me.serializeAws_queryGetCallerIdentityCommand=me.serializeAws_queryGetAccessKeyInfoCommand=me.serializeAws_queryDecodeAuthorizationMessageCommand=me.serializeAws_queryAssumeRoleWithWebIdentityCommand=me.serializeAws_queryAssumeRoleWithSAMLCommand=me.serializeAws_queryAssumeRoleCommand=void 0;var DH=Dt(),ue=M(),LH=bS(),PH=QS(),NH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},a3(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleCommand=NH;var qH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},o3(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithSAMLCommand=qH;var MH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},c3(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithWebIdentityCommand=MH;var OH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},l3(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryDecodeAuthorizationMessageCommand=OH;var zH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},d3(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryGetAccessKeyInfoCommand=zH;var jH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},u3(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryGetCallerIdentityCommand=jH;var UH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},m3(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryGetFederationTokenCommand=UH;var BH=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=sr(u(o({},f3(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),rr(t,n,"/",void 0,r)};me.serializeAws_queryGetSessionTokenCommand=BH;var FH=async(e,t)=>{if(e.statusCode>=300)return GH(e,t);let n=await rt(e.body,t),r={};r=g3(n.AssumeRoleResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryAssumeRoleCommand=FH;var GH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await fp(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await vi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},$H=async(e,t)=>{if(e.statusCode>=300)return KH(e,t);let n=await rt(e.body,t),r={};r=_3(n.AssumeRoleWithSAMLResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryAssumeRoleWithSAMLCommand=$H;var KH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await fp(n,t)),{name:s,$metadata:ne(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=u(o({},await XS(n,t)),{name:s,$metadata:ne(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=u(o({},await ZS(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await vi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},VH=async(e,t)=>{if(e.statusCode>=300)return WH(e,t);let n=await rt(e.body,t),r={};r=w3(n.AssumeRoleWithWebIdentityResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryAssumeRoleWithWebIdentityCommand=VH;var WH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=u(o({},await fp(n,t)),{name:s,$metadata:ne(e)});break;case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":r=u(o({},await s3(n,t)),{name:s,$metadata:ne(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=u(o({},await XS(n,t)),{name:s,$metadata:ne(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=u(o({},await ZS(n,t)),{name:s,$metadata:ne(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await vi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},HH=async(e,t)=>{if(e.statusCode>=300)return YH(e,t);let n=await rt(e.body,t),r={};r=b3(n.DecodeAuthorizationMessageResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryDecodeAuthorizationMessageCommand=HH;var YH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":r=u(o({},await i3(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},JH=async(e,t)=>{if(e.statusCode>=300)return QH(e,t);let n=await rt(e.body,t),r={};r=E3(n.GetAccessKeyInfoResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryGetAccessKeyInfoCommand=JH;var QH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},XH=async(e,t)=>{if(e.statusCode>=300)return ZH(e,t);let n=await rt(e.body,t),r={};r=A3(n.GetCallerIdentityResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryGetCallerIdentityCommand=XH;var ZH=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},e3=async(e,t)=>{if(e.statusCode>=300)return t3(e,t);let n=await rt(e.body,t),r={};r=C3(n.GetFederationTokenResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryGetFederationTokenCommand=e3;var t3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=u(o({},await Lo(n,t)),{name:s,$metadata:ne(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=u(o({},await Po(n,t)),{name:s,$metadata:ne(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await vi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},n3=async(e,t)=>{if(e.statusCode>=300)return r3(e,t);let n=await rt(e.body,t),r={};r=T3(n.GetSessionTokenResult,t);let s=o({$metadata:ne(e)},r);return Promise.resolve(s)};me.deserializeAws_queryGetSessionTokenCommand=n3;var r3=async(e,t)=>{let n=u(o({},e),{body:await rt(e.body,t)}),r,s="UnknownError";switch(s=ir(e,n.body),s){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=u(o({},await vi(n,t)),{name:s,$metadata:ne(e)});break;default:let a=n.body;s=a.Error.code||a.Error.Code||s,r=u(o({},a.Error),{name:`${s}`,message:a.Error.message||a.Error.Message||s,$fault:"client",$metadata:ne(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fp=async(e,t)=>{let n=e.body,r=S3(n.Error,t);return o({name:"ExpiredTokenException",$fault:"client",$metadata:ne(e)},r)},s3=async(e,t)=>{let n=e.body,r=x3(n.Error,t);return o({name:"IDPCommunicationErrorException",$fault:"client",$metadata:ne(e)},r)},XS=async(e,t)=>{let n=e.body,r=I3(n.Error,t);return o({name:"IDPRejectedClaimException",$fault:"client",$metadata:ne(e)},r)},i3=async(e,t)=>{let n=e.body,r=R3(n.Error,t);return o({name:"InvalidAuthorizationMessageException",$fault:"client",$metadata:ne(e)},r)},ZS=async(e,t)=>{let n=e.body,r=k3(n.Error,t);return o({name:"InvalidIdentityTokenException",$fault:"client",$metadata:ne(e)},r)},Lo=async(e,t)=>{let n=e.body,r=D3(n.Error,t);return o({name:"MalformedPolicyDocumentException",$fault:"client",$metadata:ne(e)},r)},Po=async(e,t)=>{let n=e.body,r=L3(n.Error,t);return o({name:"PackedPolicyTooLargeException",$fault:"client",$metadata:ne(e)},r)},vi=async(e,t)=>{let n=e.body,r=P3(n.Error,t);return o({name:"RegionDisabledException",$fault:"client",$metadata:ne(e)},r)},a3=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(n.RoleSessionName=e.RoleSessionName),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=No(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}if(e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=ev(e.Tags,t);Object.entries(r).forEach(([s,i])=>{let a=`Tags.${s}`;n[a]=i})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=y3(e.TransitiveTagKeys,t);Object.entries(r).forEach(([s,i])=>{let a=`TransitiveTagKeys.${s}`;n[a]=i})}return e.ExternalId!==void 0&&e.ExternalId!==null&&(n.ExternalId=e.ExternalId),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(n.TokenCode=e.TokenCode),e.SourceIdentity!==void 0&&e.SourceIdentity!==null&&(n.SourceIdentity=e.SourceIdentity),n},o3=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.PrincipalArn!==void 0&&e.PrincipalArn!==null&&(n.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!==void 0&&e.SAMLAssertion!==null&&(n.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=No(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},c3=(e,t)=>{let n={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(n.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(n.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!==void 0&&e.WebIdentityToken!==null&&(n.WebIdentityToken=e.WebIdentityToken),e.ProviderId!==void 0&&e.ProviderId!==null&&(n.ProviderId=e.ProviderId),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=No(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},l3=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},d3=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},u3=(e,t)=>({}),m3=(e,t)=>{let n={};if(e.Name!==void 0&&e.Name!==null&&(n.Name=e.Name),e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.PolicyArns!==void 0&&e.PolicyArns!==null){let r=No(e.PolicyArns,t);Object.entries(r).forEach(([s,i])=>{let a=`PolicyArns.${s}`;n[a]=i})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=ev(e.Tags,t);Object.entries(r).forEach(([s,i])=>{let a=`Tags.${s}`;n[a]=i})}return n},f3=(e,t)=>{let n={};return e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(n.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(n.TokenCode=e.TokenCode),n},No=(e,t)=>{let n={},r=1;for(let s of e){if(s===null)continue;let i=p3(s,t);Object.entries(i).forEach(([a,c])=>{n[`member.${r}.${a}`]=c}),r++}return n},p3=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},h3=(e,t)=>{let n={};return e.Key!==void 0&&e.Key!==null&&(n.Key=e.Key),e.Value!==void 0&&e.Value!==null&&(n.Value=e.Value),n},y3=(e,t)=>{let n={},r=1;for(let s of e)s!==null&&(n[`member.${r}`]=s,r++);return n},ev=(e,t)=>{let n={},r=1;for(let s of e){if(s===null)continue;let i=h3(s,t);Object.entries(i).forEach(([a,c])=>{n[`member.${r}.${a}`]=c}),r++}return n},pp=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=ue.expectString(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},g3=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Ei(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=pp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},_3=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Subject:void 0,SubjectType:void 0,Issuer:void 0,Audience:void 0,NameQualifier:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Ei(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=pp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=ue.expectString(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=ue.expectString(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=ue.expectString(e.Issuer)),e.Audience!==void 0&&(n.Audience=ue.expectString(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=ue.expectString(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},w3=(e,t)=>{let n={Credentials:void 0,SubjectFromWebIdentityToken:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,Provider:void 0,Audience:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=Ei(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=ue.expectString(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=pp(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=ue.expectString(e.Provider)),e.Audience!==void 0&&(n.Audience=ue.expectString(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ue.expectString(e.SourceIdentity)),n},Ei=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=ue.expectString(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=ue.expectString(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=ue.expectString(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=new Date(e.Expiration)),n},b3=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=ue.expectString(e.DecodedMessage)),n},S3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},v3=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=ue.expectString(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},E3=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=ue.expectString(e.Account)),n},A3=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=ue.expectString(e.UserId)),e.Account!==void 0&&(n.Account=ue.expectString(e.Account)),e.Arn!==void 0&&(n.Arn=ue.expectString(e.Arn)),n},C3=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=Ei(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=v3(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=parseInt(e.PackedPolicySize)),n},T3=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=Ei(e.Credentials,t)),n},x3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},I3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},R3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},k3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},D3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},L3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},P3=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ue.expectString(e.message)),n},ne=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},N3=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),q3=(e,t)=>N3(e,t).then(n=>t.utf8Encoder(n)),rr=async(e,t,n,r,s)=>{let{hostname:i,protocol:a="https",port:c}=await e.endpoint(),l={protocol:a,hostname:i,port:c,method:"POST",path:n,headers:t};return r!==void 0&&(l.hostname=r),s!==void 0&&(l.body=s),new DH.HttpRequest(l)},rt=(e,t)=>q3(e,t).then(n=>{if(n.length){let r=PH.parse(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:(c,l)=>c.trim()===""?"":LH.decodeHTML(c)}),s="#text",i=Object.keys(r)[0],a=r[i];return a[s]&&(a[i]=a[s],delete a[s]),ue.getValueFromTextNode(a)}return{}}),sr=e=>Object.entries(e).map(([t,n])=>ue.extendedEncodeURIComponent(t)+"="+ue.extendedEncodeURIComponent(n)).join("&"),ir=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var hp=p(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.CredentialsProviderError=hs.ProviderError=void 0;var tv=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};hs.ProviderError=tv;var nv=class extends Error{constructor(t,n=!0){super(t);this.tryNextLink=n,this.name="CredentialsProviderError"}static from(t,n=!0){return Object.defineProperty(t,"tryNextLink",{value:n,configurable:!1,enumerable:!1,writable:!1}),t}};hs.CredentialsProviderError=nv});var rv=p(qo=>{"use strict";Object.defineProperty(qo,"__esModule",{value:!0});qo.chain=void 0;var M3=hp();function O3(...e){return()=>{let t=Promise.reject(new M3.ProviderError("No providers in chain"));for(let n of e)t=t.catch(r=>{if(r==null?void 0:r.tryNextLink)return n();throw r});return t}}qo.chain=O3});var sv=p(Mo=>{"use strict";Object.defineProperty(Mo,"__esModule",{value:!0});Mo.fromStatic=void 0;var z3=e=>()=>Promise.resolve(e);Mo.fromStatic=z3});var iv=p(Oo=>{"use strict";Object.defineProperty(Oo,"__esModule",{value:!0});Oo.memoize=void 0;var j3=(e,t,n)=>{let r,s;if(t===void 0)return()=>(s||(r=e(),s=!0),r);let i=!1;return async()=>{if(s||(r=e(),s=!0),i)return r;let a=await r;return n&&!n(a)?(i=!0,a):t(a)?r=e():a}};Oo.memoize=j3});var st=p(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});var zo=he();zo.__exportStar(rv(),ys);zo.__exportStar(sv(),ys);zo.__exportStar(iv(),ys);zo.__exportStar(hp(),ys)});var jo=p(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.toHex=gs.fromHex=void 0;var av={},yp={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),av[e]=t,yp[t]=e}function U3(e){if(e.length%2!=0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){let r=e.substr(n,2).toLowerCase();if(r in yp)t[n/2]=yp[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}gs.fromHex=U3;function B3(e){let t="";for(let n=0;n<e.byteLength;n++)t+=av[e[n]];return t}gs.toHex=B3});var Mr=p(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.MAX_PRESIGNED_TTL=G.KEY_TYPE_IDENTIFIER=G.MAX_CACHE_SIZE=G.UNSIGNED_PAYLOAD=G.EVENT_ALGORITHM_IDENTIFIER=G.ALGORITHM_IDENTIFIER=G.UNSIGNABLE_PATTERNS=G.SEC_HEADER_PATTERN=G.PROXY_HEADER_PATTERN=G.ALWAYS_UNSIGNABLE_HEADERS=G.HOST_HEADER=G.TOKEN_HEADER=G.SHA256_HEADER=G.SIGNATURE_HEADER=G.GENERATED_HEADERS=G.DATE_HEADER=G.AMZ_DATE_HEADER=G.AUTH_HEADER=G.TOKEN_QUERY_PARAM=G.SIGNATURE_QUERY_PARAM=G.EXPIRES_QUERY_PARAM=G.SIGNED_HEADERS_QUERY_PARAM=G.AMZ_DATE_QUERY_PARAM=G.CREDENTIAL_QUERY_PARAM=G.ALGORITHM_QUERY_PARAM=void 0;G.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";G.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";G.AMZ_DATE_QUERY_PARAM="X-Amz-Date";G.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";G.EXPIRES_QUERY_PARAM="X-Amz-Expires";G.SIGNATURE_QUERY_PARAM="X-Amz-Signature";G.TOKEN_QUERY_PARAM="X-Amz-Security-Token";G.AUTH_HEADER="authorization";G.AMZ_DATE_HEADER=G.AMZ_DATE_QUERY_PARAM.toLowerCase();G.DATE_HEADER="date";G.GENERATED_HEADERS=[G.AUTH_HEADER,G.AMZ_DATE_HEADER,G.DATE_HEADER];G.SIGNATURE_HEADER=G.SIGNATURE_QUERY_PARAM.toLowerCase();G.SHA256_HEADER="x-amz-content-sha256";G.TOKEN_HEADER=G.TOKEN_QUERY_PARAM.toLowerCase();G.HOST_HEADER="host";G.ALWAYS_UNSIGNABLE_HEADERS={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};G.PROXY_HEADER_PATTERN=/^proxy-/;G.SEC_HEADER_PATTERN=/^sec-/;G.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];G.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";G.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";G.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";G.MAX_CACHE_SIZE=50;G.KEY_TYPE_IDENTIFIER="aws4_request";G.MAX_PRESIGNED_TTL=60*60*24*7});var _p=p(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.clearCredentialCache=ar.getSigningKey=ar.createScope=void 0;var F3=jo(),gp=Mr(),_s={},Uo=[];function G3(e,t,n){return`${e}/${t}/${n}/${gp.KEY_TYPE_IDENTIFIER}`}ar.createScope=G3;var $3=async(e,t,n,r,s)=>{let i=await ov(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${s}:${F3.toHex(i)}:${t.sessionToken}`;if(a in _s)return _s[a];for(Uo.push(a);Uo.length>gp.MAX_CACHE_SIZE;)delete _s[Uo.shift()];let c=`AWS4${t.secretAccessKey}`;for(let l of[n,r,s,gp.KEY_TYPE_IDENTIFIER])c=await ov(e,c,l);return _s[a]=c};ar.getSigningKey=$3;function K3(){Uo.length=0,Object.keys(_s).forEach(e=>{delete _s[e]})}ar.clearCredentialCache=K3;function ov(e,t,n){let r=new e(t);return r.update(n),r.digest()}});var cv=p(Bo=>{"use strict";Object.defineProperty(Bo,"__esModule",{value:!0});Bo.getCanonicalHeaders=void 0;var wp=Mr();function V3({headers:e},t,n){let r={};for(let s of Object.keys(e).sort()){let i=s.toLowerCase();(i in wp.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(i))||wp.PROXY_HEADER_PATTERN.test(i)||wp.SEC_HEADER_PATTERN.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[s].trim().replace(/\s+/g," "))}return r}Bo.getCanonicalHeaders=V3});var bp=p(Fo=>{"use strict";Object.defineProperty(Fo,"__esModule",{value:!0});Fo.escapeUri=void 0;var W3=e=>encodeURIComponent(e).replace(/[!'()*]/g,H3);Fo.escapeUri=W3;var H3=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var lv=p(Go=>{"use strict";Object.defineProperty(Go,"__esModule",{value:!0});Go.escapeUriPath=void 0;var Y3=bp(),J3=e=>e.split("/").map(Y3.escapeUri).join("/");Go.escapeUriPath=J3});var Sp=p($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});var dv=he();dv.__exportStar(bp(),$o);dv.__exportStar(lv(),$o)});var uv=p(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.getCanonicalQuery=void 0;var Ko=Sp(),Q3=Mr();function X3({query:e={}}){let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===Q3.SIGNATURE_HEADER)continue;t.push(r);let s=e[r];typeof s=="string"?n[r]=`${Ko.escapeUri(r)}=${Ko.escapeUri(s)}`:Array.isArray(s)&&(n[r]=s.slice(0).sort().reduce((i,a)=>i.concat([`${Ko.escapeUri(r)}=${Ko.escapeUri(a)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")}Vo.getCanonicalQuery=X3});var vp=p(Wo=>{"use strict";Object.defineProperty(Wo,"__esModule",{value:!0});Wo.isArrayBuffer=void 0;var Z3=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Wo.isArrayBuffer=Z3});var fv=p(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});Ho.getPayloadHash=void 0;var e8=vp(),t8=jo(),mv=Mr();async function n8({headers:e,body:t},n){for(let r of Object.keys(e))if(r.toLowerCase()===mv.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||e8.isArrayBuffer(t)){let r=new n;return r.update(t),t8.toHex(await r.digest())}return mv.UNSIGNED_PAYLOAD}Ho.getPayloadHash=n8});var pv=p(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.hasHeader=void 0;function r8(e,t){e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1}Yo.hasHeader=r8});var Ep=p(Jo=>{"use strict";Object.defineProperty(Jo,"__esModule",{value:!0});Jo.cloneRequest=void 0;function s8(r){var s=r,{headers:e,query:t}=s,n=Jn(s,["headers","query"]);return u(o({},n),{headers:o({},e),query:t?i8(t):void 0})}Jo.cloneRequest=s8;function i8(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return u(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var hv=p(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});Qo.moveHeadersToQuery=void 0;var a8=Ep();function o8(e,t={}){var n;let{headers:r,query:s={}}=typeof e.clone=="function"?e.clone():a8.cloneRequest(e);for(let i of Object.keys(r)){let a=i.toLowerCase();a.substr(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)===null||n===void 0?void 0:n.has(a))&&(s[i]=r[i],delete r[i])}return u(o({},e),{headers:r,query:s})}Qo.moveHeadersToQuery=o8});var yv=p(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});Xo.prepareRequest=void 0;var c8=Ep(),l8=Mr();function d8(e){e=typeof e.clone=="function"?e.clone():c8.cloneRequest(e);for(let t of Object.keys(e.headers))l8.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e}Xo.prepareRequest=d8});var _v=p(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.toDate=ws.iso8601=void 0;function u8(e){return gv(e).toISOString().replace(/\.\d{3}Z$/,"Z")}ws.iso8601=u8;function gv(e){return typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e}ws.toDate=gv});var Ev=p(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.SignatureV4=void 0;var Zo=jo(),Xe=Mr(),ec=_p(),wv=cv(),m8=uv(),Ap=fv(),f8=pv(),p8=hv(),bv=yv(),h8=_v(),Sv=class{constructor({applyChecksum:t,credentials:n,region:r,service:s,sha256:i,uriEscapePath:a=!0}){this.service=s,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=y8(r),this.credentialProvider=g8(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:s=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:c,signingRegion:l,signingService:m}=n,f=await this.credentialProvider(),g=l!=null?l:await this.regionProvider(),{longDate:h,shortDate:_}=tc(r);if(s>Xe.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let b=ec.createScope(_,g,m!=null?m:this.service),E=p8.moveHeadersToQuery(bv.prepareRequest(t),{unhoistableHeaders:a});f.sessionToken&&(E.query[Xe.TOKEN_QUERY_PARAM]=f.sessionToken),E.query[Xe.ALGORITHM_QUERY_PARAM]=Xe.ALGORITHM_IDENTIFIER,E.query[Xe.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${b}`,E.query[Xe.AMZ_DATE_QUERY_PARAM]=h,E.query[Xe.EXPIRES_QUERY_PARAM]=s.toString(10);let D=wv.getCanonicalHeaders(E,i,c);return E.query[Xe.SIGNED_HEADERS_QUERY_PARAM]=vv(D),E.query[Xe.SIGNATURE_QUERY_PARAM]=await this.getSignature(h,b,this.getSigningKey(f,g,_,m),this.createCanonicalRequest(E,D,await Ap.getPayloadHash(t,this.sha256))),E}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:s,signingRegion:i,signingService:a}){let c=i!=null?i:await this.regionProvider(),{shortDate:l,longDate:m}=tc(r),f=ec.createScope(l,c,a!=null?a:this.service),g=await Ap.getPayloadHash({headers:{},body:n},this.sha256),h=new this.sha256;h.update(t);let _=Zo.toHex(await h.digest()),b=[Xe.EVENT_ALGORITHM_IDENTIFIER,m,f,s,_,g].join(`
|
|
11
|
+
`);return this.signString(b,{signingDate:r,signingRegion:c,signingService:a})}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:s}={}){let i=await this.credentialProvider(),a=r!=null?r:await this.regionProvider(),{shortDate:c}=tc(n),l=new this.sha256(await this.getSigningKey(i,a,c,s));return l.update(t),Zo.toHex(await l.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:s,signingRegion:i,signingService:a}={}){let c=await this.credentialProvider(),l=i!=null?i:await this.regionProvider(),m=bv.prepareRequest(t),{longDate:f,shortDate:g}=tc(n),h=ec.createScope(g,l,a!=null?a:this.service);m.headers[Xe.AMZ_DATE_HEADER]=f,c.sessionToken&&(m.headers[Xe.TOKEN_HEADER]=c.sessionToken);let _=await Ap.getPayloadHash(m,this.sha256);!f8.hasHeader(Xe.SHA256_HEADER,m.headers)&&this.applyChecksum&&(m.headers[Xe.SHA256_HEADER]=_);let b=wv.getCanonicalHeaders(m,s,r),E=await this.getSignature(f,h,this.getSigningKey(c,l,g,a),this.createCanonicalRequest(m,b,_));return m.headers[Xe.AUTH_HEADER]=`${Xe.ALGORITHM_IDENTIFIER} Credential=${c.accessKeyId}/${h}, SignedHeaders=${vv(b)}, Signature=${E}`,m}createCanonicalRequest(t,n,r){let s=Object.keys(n).sort();return`${t.method}
|
|
12
12
|
${this.getCanonicalPath(t)}
|
|
13
|
-
${
|
|
13
|
+
${m8.getCanonicalQuery(t)}
|
|
14
14
|
${s.map(i=>`${i}:${n[i]}`).join(`
|
|
15
15
|
`)}
|
|
16
16
|
|
|
@@ -18,47 +18,47 @@ ${s.join(";")}
|
|
|
18
18
|
${r}`}async createStringToSign(t,n,r){let s=new this.sha256;s.update(r);let i=await s.digest();return`${Xe.ALGORITHM_IDENTIFIER}
|
|
19
19
|
${t}
|
|
20
20
|
${n}
|
|
21
|
-
${ec.toHex(i)}`}getCanonicalPath({path:t}){return this.uriEscapePath?`/${encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/")}`:t}async getSignature(t,n,r,s){let i=await this.createStringToSign(t,n,s),a=new this.sha256(await r);return a.update(i),ec.toHex(await a.digest())}getSigningKey(t,n,r,s){return tc.getSigningKey(this.sha256,t,r,n,s||this.service)}};rc.SignatureV4=Sv;var nc=e=>{let t=g8.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},vv=e=>Object.keys(e).sort().join(";"),_8=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}else return e},w8=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}else return e}});var Cv=p(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var Av=he();Av.__exportStar(_p(),sc);Av.__exportStar(Ev(),sc)});var Iv=p(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.resolveSigV4AuthConfig=ws.resolveAwsAuthConfig=void 0;var b8=st(),Tv=Cv(),S8=3e5,v8=e=>{let t=e.credentials?xv(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=e,i;return e.signer?i=vi(e.signer):i=()=>vi(e.region)().then(async a=>[await e.regionInfoProvider(a)||{},a]).then(([a,c])=>{let{signingRegion:l,signingService:m}=a;return e.signingRegion=e.signingRegion||l||c,e.signingName=e.signingName||m||e.serviceId,new Tv.SignatureV4({credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:n})}),u(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:i})};ws.resolveAwsAuthConfig=v8;var E8=e=>{let t=e.credentials?xv(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=e,i;return e.signer?i=vi(e.signer):i=vi(new Tv.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:s,uriEscapePath:n})),u(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:i})};ws.resolveSigV4AuthConfig=E8;var vi=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},xv=e=>typeof e=="function"?b8.memoize(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<S8,t=>t.expiration!==void 0):vi(e)});var kv=p(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getSigV4AuthPlugin=jt.getAwsAuthPlugin=jt.awsAuthMiddlewareOptions=jt.awsAuthMiddleware=void 0;var A8=Dt(),C8=(e,t)=>Math.abs(T8(t).getTime()-e)>=3e5,T8=e=>new Date(Date.now()+e);function Rv(e){return(t,n)=>async function(r){if(!A8.HttpRequest.isInstance(r.request))return t(r);let s=typeof e.signer=="function"?await e.signer():e.signer,i=await t(u(o({},r),{request:await s.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})})),{headers:a}=i.response,c=a&&(a.date||a.Date);if(c){let l=Date.parse(c);C8(l,e.systemClockOffset)&&(e.systemClockOffset=l-Date.now())}return i}}jt.awsAuthMiddleware=Rv;jt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var x8=e=>({applyToStack:t=>{t.addRelativeTo(Rv(e),jt.awsAuthMiddlewareOptions)}});jt.getAwsAuthPlugin=x8;jt.getSigV4AuthPlugin=jt.getAwsAuthPlugin});var Nn=p(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});var Dv=he();Dv.__exportStar(Iv(),ic);Dv.__exportStar(kv(),ic)});var oc=p(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.AssumeRoleCommand=void 0;var Nv=sn(),Lv=Dn(),I8=j(),R8=Nn(),k8=M(),Pv=class extends k8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(I8.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(R8.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:Nv.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:Nv.AssumeRoleResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Lv.serializeAws_queryAssumeRoleCommand(t,n)}deserialize(t,n){return Lv.deserializeAws_queryAssumeRoleCommand(t,n)}};ac.AssumeRoleCommand=Pv});var lc=p(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.AssumeRoleWithWebIdentityCommand=void 0;var qv=sn(),Mv=Dn(),D8=j(),N8=M(),Ov=class extends N8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(D8.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:qv.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:qv.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Mv.serializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}deserialize(t,n){return Mv.deserializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}};cc.AssumeRoleWithWebIdentityCommand=Ov});var Cp=p(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.decorateDefaultCredentialProvider=ln.getDefaultRoleAssumerWithWebIdentity=ln.getDefaultRoleAssumer=void 0;var L8=oc(),P8=lc(),zv="us-east-1",jv=e=>typeof e!="function"?e===void 0?zv:e:async()=>{try{return await e()}catch(t){return zv}},q8=(e,t)=>{let n,r;return async(s,i)=>{if(r=s,!n){let{logger:c,region:l,requestHandler:m}=e;n=new t(o({logger:c,credentialDefaultProvider:()=>async()=>r,region:jv(l||e.region)},m?{requestHandler:m}:{}))}let{Credentials:a}=await n.send(new L8.AssumeRoleCommand(i));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};ln.getDefaultRoleAssumer=q8;var M8=(e,t)=>{let n;return async r=>{if(!n){let{logger:i,region:a,requestHandler:c}=e;n=new t(o({logger:i,region:jv(a||e.region)},c?{requestHandler:c}:{}))}let{Credentials:s}=await n.send(new P8.AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};ln.getDefaultRoleAssumerWithWebIdentity=M8;var O8=e=>t=>e(o({roleAssumer:ln.getDefaultRoleAssumer(t,t.stsClientCtor),roleAssumerWithWebIdentity:ln.getDefaultRoleAssumerWithWebIdentity(t,t.stsClientCtor)},t));ln.decorateDefaultCredentialProvider=O8});var Uv=p(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.resolveCustomEndpointsConfig=void 0;var z8=e=>{var t;return u(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:j8(e),isCustomEndpoint:!0})};dc.resolveCustomEndpointsConfig=z8;var j8=e=>{let{endpoint:t,urlParser:n}=e;if(typeof t=="string"){let r=Promise.resolve(n(t));return()=>r}else if(typeof t=="object"){let r=Promise.resolve(t);return()=>r}return t}});var Bv=p(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.resolveEndpointsConfig=void 0;var U8=e=>{var t;return u(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:e.endpoint?B8(e):()=>F8(e),isCustomEndpoint:!!e.endpoint})};uc.resolveEndpointsConfig=U8;var B8=e=>{let{endpoint:t,urlParser:n}=e;if(typeof t=="string"){let r=Promise.resolve(n(t));return()=>r}else if(typeof t=="object"){let r=Promise.resolve(t);return()=>r}return t},F8=async e=>{var t;let{tls:n=!0}=e,r=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let{hostname:i}=(t=await e.regionInfoProvider(r))!==null&&t!==void 0?t:{};if(!i)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${i}`)}});var Fv=p(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.resolveRegionConfig=wt.NODE_REGION_CONFIG_FILE_OPTIONS=wt.NODE_REGION_CONFIG_OPTIONS=wt.REGION_INI_NAME=wt.REGION_ENV_NAME=void 0;wt.REGION_ENV_NAME="AWS_REGION";wt.REGION_INI_NAME="region";wt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[wt.REGION_ENV_NAME],configFileSelector:e=>e[wt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};wt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"};var G8=e=>{if(!e.region)throw new Error("Region is missing");return u(o({},e),{region:$8(e.region)})};wt.resolveRegionConfig=G8;var $8=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}return e}});var Or=p(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});var Tp=he();Tp.__exportStar(Uv(),Ei);Tp.__exportStar(Bv(),Ei);Tp.__exportStar(Fv(),Ei)});var xp=p(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.fromEnv=it.ENV_EXPIRATION=it.ENV_SESSION=it.ENV_SECRET=it.ENV_KEY=void 0;var K8=st();it.ENV_KEY="AWS_ACCESS_KEY_ID";it.ENV_SECRET="AWS_SECRET_ACCESS_KEY";it.ENV_SESSION="AWS_SESSION_TOKEN";it.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";function V8(){return()=>{let e=process.env[it.ENV_KEY],t=process.env[it.ENV_SECRET],n=process.env[it.ENV_EXPIRATION];return e&&t?Promise.resolve({accessKeyId:e,secretAccessKey:t,sessionToken:process.env[it.ENV_SESSION],expiration:n?new Date(n):void 0}):Promise.reject(new K8.CredentialsProviderError("Unable to find environment variable credentials."))}}it.fromEnv=V8});var Rp=p(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.httpRequest=void 0;var Ip=st(),W8=require("buffer"),H8=require("http");function Y8(e){return new Promise((t,n)=>{let r=H8.request(o({method:"GET"},e));r.on("error",s=>{n(Object.assign(new Ip.ProviderError("Unable to connect to instance metadata service"),s)),r.destroy()}),r.on("timeout",()=>{n(new Ip.ProviderError("TimeoutError from instance metadata service")),r.destroy()}),r.on("response",s=>{let{statusCode:i=400}=s;(i<200||300<=i)&&(n(Object.assign(new Ip.ProviderError("Error response received from instance metadata service"),{statusCode:i})),r.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(W8.Buffer.concat(a)),r.destroy()})}),r.end()})}mc.httpRequest=Y8});var kp=p(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.fromImdsCredentials=bs.isImdsCredentials=void 0;var J8=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";bs.isImdsCredentials=J8;var Q8=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});bs.fromImdsCredentials=Q8});var fc=p(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.providerConfigFromInit=dn.DEFAULT_MAX_RETRIES=dn.DEFAULT_TIMEOUT=void 0;dn.DEFAULT_TIMEOUT=1e3;dn.DEFAULT_MAX_RETRIES=0;var X8=({maxRetries:e=dn.DEFAULT_MAX_RETRIES,timeout:t=dn.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});dn.providerConfigFromInit=X8});var Dp=p(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.retry=void 0;var Z8=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};pc.retry=Z8});var $v=p(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.fromContainerMetadata=Ke.ENV_CMDS_AUTH_TOKEN=Ke.ENV_CMDS_RELATIVE_URI=Ke.ENV_CMDS_FULL_URI=void 0;var hc=st(),e6=require("url"),t6=Rp(),Gv=kp(),n6=fc(),r6=Dp();Ke.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Ke.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Ke.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var s6=(e={})=>{let{timeout:t,maxRetries:n}=n6.providerConfigFromInit(e);return()=>r6.retry(async()=>{let r=await l6(),s=JSON.parse(await i6(t,r));if(!Gv.isImdsCredentials(s))throw new hc.CredentialsProviderError("Invalid response received from instance metadata service.");return Gv.fromImdsCredentials(s)},n)};Ke.fromContainerMetadata=s6;var i6=async(e,t)=>(process.env[Ke.ENV_CMDS_AUTH_TOKEN]&&(t.headers=u(o({},t.headers),{Authorization:process.env[Ke.ENV_CMDS_AUTH_TOKEN]})),(await t6.httpRequest(u(o({},t),{timeout:e}))).toString()),a6="169.254.170.2",o6={localhost:!0,"127.0.0.1":!0},c6={"http:":!0,"https:":!0},l6=async()=>{if(process.env[Ke.ENV_CMDS_RELATIVE_URI])return{hostname:a6,path:process.env[Ke.ENV_CMDS_RELATIVE_URI]};if(process.env[Ke.ENV_CMDS_FULL_URI]){let e=e6.parse(process.env[Ke.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in o6))throw new hc.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in c6))throw new hc.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return u(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new hc.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Ke.ENV_CMDS_RELATIVE_URI} or ${Ke.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var Hv=p(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.fromInstanceMetadata=void 0;var d6=st(),Np=Rp(),Kv=kp(),u6=fc(),Vv=Dp(),Lp="169.254.169.254",Wv="/latest/meta-data/iam/security-credentials/",m6="/latest/api/token",f6=(e={})=>{let t=!1,{timeout:n,maxRetries:r}=u6.providerConfigFromInit(e),s=async(i,a)=>{let c=(await Vv.retry(async()=>{let l;try{l=await h6(a)}catch(m){throw m.statusCode===401&&(t=!1),m}return l},i)).trim();return Vv.retry(async()=>{let l;try{l=await y6(c,a)}catch(m){throw m.statusCode===401&&(t=!1),m}return l},i)};return async()=>{if(t)return s(r,{timeout:n});{let i;try{i=(await p6({timeout:n})).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),s(r,{timeout:n})}return s(r,{timeout:n,headers:{"x-aws-ec2-metadata-token":i}})}}};yc.fromInstanceMetadata=f6;var p6=async e=>Np.httpRequest(u(o({},e),{host:Lp,path:m6,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),h6=async e=>(await Np.httpRequest(u(o({},e),{host:Lp,path:Wv}))).toString(),y6=async(e,t)=>{let n=JSON.parse((await Np.httpRequest(u(o({},t),{host:Lp,path:Wv+e}))).toString());if(!Kv.isImdsCredentials(n))throw new d6.CredentialsProviderError("Invalid response received from instance metadata service.");return Kv.fromImdsCredentials(n)}});var qp=p(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});var Pp=he();Pp.__exportStar($v(),Ai);Pp.__exportStar(Hv(),Ai);Pp.__exportStar(fc(),Ai)});var Mp=p(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.fromWebToken=void 0;var g6=st(),_6=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:s,policyArns:i,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l)throw new g6.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:n!=null?n:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})};gc.fromWebToken=_6});var Yv=p(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.fromTokenFile=void 0;var w6=st(),b6=require("fs"),S6=Mp(),v6="AWS_WEB_IDENTITY_TOKEN_FILE",E6="AWS_ROLE_ARN",A6="AWS_ROLE_SESSION_NAME",C6=(e={})=>async()=>T6(e);_c.fromTokenFile=C6;var T6=e=>{var t,n,r;let s=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[v6],i=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[E6],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[A6];if(!s||!i)throw new w6.CredentialsProviderError("Web identity configuration not specified");return S6.fromWebToken(u(o({},e),{webIdentityToken:b6.readFileSync(s,{encoding:"ascii"}),roleArn:i,roleSessionName:a}))()}});var Op=p(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});var Jv=he();Jv.__exportStar(Yv(),wc);Jv.__exportStar(Mp(),wc)});var Ci=p(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getHomeDir=bt.loadSharedConfigFiles=bt.ENV_CONFIG_PATH=bt.ENV_CREDENTIALS_PATH=void 0;var x6=require("fs"),I6=require("os"),zp=require("path");bt.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";bt.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var Qv=()=>({}),R6=(e={})=>{let{filepath:t=process.env[bt.ENV_CREDENTIALS_PATH]||zp.join(bt.getHomeDir(),".aws","credentials"),configFilepath:n=process.env[bt.ENV_CONFIG_PATH]||zp.join(bt.getHomeDir(),".aws","config")}=e;return Promise.all([Zv(n).then(Xv).then(D6).catch(Qv),Zv(t).then(Xv).catch(Qv)]).then(r=>{let[s,i]=r;return{configFile:s,credentialsFile:i}})};bt.loadSharedConfigFiles=R6;var k6=/^profile\s(["'])?([^\1]+)\1$/,D6=e=>{let t={};for(let n of Object.keys(e)){let r;if(n==="default")t.default=e.default;else if(r=k6.exec(n)){let[s,i,a]=r;a&&(t[a]=e[n])}}return t},N6=["__proto__","profile __proto__"],Xv=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let s=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(s){if(n=s[1],N6.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let i=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);i&&(t[n]=t[n]||{},t[n][i[1]]=i[2])}}return t},Zv=e=>new Promise((t,n)=>{x6.readFile(e,"utf8",(r,s)=>{r?n(r):t(s)})}),L6=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${zp.sep}`}=process.env;return e||t||(n?`${r}${n}`:I6.homedir())};bt.getHomeDir=L6});var bc=p(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.getMasterProfileName=St.parseKnownFiles=St.fromIni=St.ENV_PROFILE=void 0;var P6=xp(),eE=qp(),q6=Op(),Ti=st(),M6=Ci(),O6="default";St.ENV_PROFILE="AWS_PROFILE";var tE=e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1,z6=e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,nE=e=>Boolean(e)&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1,j6=e=>nE(e)&&typeof e.source_profile=="string"&&typeof e.credential_source=="undefined",U6=e=>nE(e)&&typeof e.credential_source=="string"&&typeof e.source_profile=="undefined",B6=(e={})=>async()=>{let t=await St.parseKnownFiles(e);return rE(St.getMasterProfileName(e),t,e)};St.fromIni=B6;var F6=async e=>{let{loadedConfig:t=M6.loadSharedConfigFiles(e)}=e,n=await t;return o(o({},n.configFile),n.credentialsFile)};St.parseKnownFiles=F6;var G6=e=>e.profile||process.env[St.ENV_PROFILE]||O6;St.getMasterProfileName=G6;var rE=async(e,t,n,r={})=>{let s=t[e];if(Object.keys(r).length>0&&tE(s))return sE(s);if(j6(s)||U6(s)){let{external_id:i,mfa_serial:a,role_arn:c,role_session_name:l="aws-sdk-js-"+Date.now(),source_profile:m,credential_source:f}=s;if(!n.roleAssumer)throw new Ti.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);if(m&&m in r)throw new Ti.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${St.getMasterProfileName(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let g=m?rE(m,t,n,u(o({},r),{[m]:!0})):$6(f,e)(),h={RoleArn:c,RoleSessionName:l,ExternalId:i};if(a){if(!n.mfaCodeProvider)throw new Ti.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);h.SerialNumber=a,h.TokenCode=await n.mfaCodeProvider(a)}return n.roleAssumer(await g,h)}if(tE(s))return sE(s);if(z6(s))return K6(s,n);throw new Ti.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},$6=(e,t)=>{let n={EcsContainer:eE.fromContainerMetadata,Ec2InstanceMetadata:eE.fromInstanceMetadata,Environment:P6.fromEnv};if(e in n)return n[e]();throw new Ti.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)},sE=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),K6=async(e,t)=>q6.fromTokenFile({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})()});var aE=p(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.fromProcess=Ss.ENV_PROFILE=void 0;var iE=bc(),jp=st(),V6=require("child_process");Ss.ENV_PROFILE="AWS_PROFILE";var W6=(e={})=>async()=>{let t=await iE.parseKnownFiles(e);return H6(iE.getMasterProfileName(e),t)};Ss.fromProcess=W6;var H6=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0)return await Y6(r).then(s=>{let i;try{i=JSON.parse(s)}catch(h){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}let{Version:a,AccessKeyId:c,SecretAccessKey:l,SessionToken:m,Expiration:f}=i;if(a!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(c===void 0||l===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);let g;if(f){let h=new Date;if(new Date(f)<h)throw Error(`Profile ${e} credential_process returned expired credentials.`);g=Math.floor(new Date(f).valueOf()/1e3)}return{accessKeyId:c,secretAccessKey:l,sessionToken:m,expirationUnix:g}}).catch(s=>{throw new jp.CredentialsProviderError(s.message)});throw new jp.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new jp.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},Y6=e=>new Promise(function(t,n){V6.exec(e,(r,s)=>{if(r){n(r);return}t(s.trim())})})});var oE=p((Rue,J6)=>{J6.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0",tslib:"^2.0.0"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var Sc=p(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.fromString=vs.fromArrayBuffer=void 0;var Q6=vp(),Up=require("buffer"),X6=(e,t=0,n=e.byteLength-t)=>{if(!Q6.isArrayBuffer(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Up.Buffer.from(e,t,n)};vs.fromArrayBuffer=X6;var Z6=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Up.Buffer.from(e,t):Up.Buffer.from(e)};vs.fromString=Z6});var Ec=p(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.Hash=void 0;var Bp=Sc(),e4=require("buffer"),cE=require("crypto"),lE=class{constructor(t,n){this.hash=n?cE.createHmac(t,dE(n)):cE.createHash(t)}update(t,n){this.hash.update(dE(t,n))}digest(){return Promise.resolve(this.hash.digest())}};vc.Hash=lE;function dE(e,t){return e4.Buffer.isBuffer(e)?e:typeof e=="string"?Bp.fromString(e,t):ArrayBuffer.isView(e)?Bp.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength):Bp.fromArrayBuffer(e)}});var uE=p(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getRetryPlugin=un.retryMiddlewareOptions=un.retryMiddleware=void 0;var t4=e=>(t,n)=>async r=>{let s=await e.retryStrategy();return(s==null?void 0:s.mode)&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,r)};un.retryMiddleware=t4;un.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var n4=e=>({applyToStack:t=>{t.add(un.retryMiddleware(e),un.retryMiddlewareOptions)}});un.getRetryPlugin=n4});var xi=p(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.REQUEST_HEADER=Me.INVOCATION_ID_HEADER=Me.NO_RETRY_INCREMENT=Me.TIMEOUT_RETRY_COST=Me.RETRY_COST=Me.INITIAL_RETRY_TOKENS=Me.THROTTLING_RETRY_DELAY_BASE=Me.MAXIMUM_RETRY_DELAY=Me.DEFAULT_RETRY_DELAY_BASE=void 0;Me.DEFAULT_RETRY_DELAY_BASE=100;Me.MAXIMUM_RETRY_DELAY=20*1e3;Me.THROTTLING_RETRY_DELAY_BASE=500;Me.INITIAL_RETRY_TOKENS=500;Me.RETRY_COST=5;Me.TIMEOUT_RETRY_COST=10;Me.NO_RETRY_INCREMENT=1;Me.INVOCATION_ID_HEADER="amz-sdk-invocation-id";Me.REQUEST_HEADER="amz-sdk-request"});var fE=p(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getOmitRetryHeadersPlugin=mn.omitRetryHeadersMiddlewareOptions=mn.omitRetryHeadersMiddleware=void 0;var r4=Dt(),mE=xi(),s4=()=>e=>async t=>{let{request:n}=t;return r4.HttpRequest.isInstance(n)&&(delete n.headers[mE.INVOCATION_ID_HEADER],delete n.headers[mE.REQUEST_HEADER]),e(t)};mn.omitRetryHeadersMiddleware=s4;mn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var i4=e=>({applyToStack:t=>{t.addRelativeTo(mn.omitRetryHeadersMiddleware(),mn.omitRetryHeadersMiddlewareOptions)}});mn.getOmitRetryHeadersPlugin=i4});var pE=p(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.TRANSIENT_ERROR_STATUS_CODES=fn.TRANSIENT_ERROR_CODES=fn.THROTTLING_ERROR_CODES=fn.CLOCK_SKEW_ERROR_CODES=void 0;fn.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];fn.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];fn.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];fn.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var Cc=p(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.isTransientError=pn.isThrottlingError=pn.isClockSkewError=pn.isRetryableByTrait=void 0;var Ac=pE(),a4=e=>e.$retryable!==void 0;pn.isRetryableByTrait=a4;var o4=e=>Ac.CLOCK_SKEW_ERROR_CODES.includes(e.name);pn.isClockSkewError=o4;var c4=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||Ac.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};pn.isThrottlingError=c4;var l4=e=>{var t;return Ac.TRANSIENT_ERROR_CODES.includes(e.name)||Ac.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};pn.isTransientError=l4});var Ii=p(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.DEFAULT_RETRY_MODE=Ln.DEFAULT_MAX_ATTEMPTS=Ln.RETRY_MODES=void 0;var hE;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(hE=Ln.RETRY_MODES||(Ln.RETRY_MODES={}));Ln.DEFAULT_MAX_ATTEMPTS=3;Ln.DEFAULT_RETRY_MODE=hE.STANDARD});var yE=p(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.getDefaultRetryQuota=void 0;var Fp=xi(),d4=(e,t)=>{var n,r,s;let i=e,a=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:Fp.NO_RETRY_INCREMENT,c=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:Fp.RETRY_COST,l=(s=t==null?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:Fp.TIMEOUT_RETRY_COST,m=e,f=b=>b.name==="TimeoutError"?l:c,g=b=>f(b)<=m;return Object.freeze({hasRetryTokens:g,retrieveRetryTokens:b=>{if(!g(b))throw new Error("No retry token available");let E=f(b);return m-=E,E},releaseRetryTokens:b=>{m+=b!=null?b:a,m=Math.min(m,i)}})};Tc.getDefaultRetryQuota=d4});var Gp=p(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.defaultDelayDecider=void 0;var u4=xi(),m4=(e,t)=>Math.floor(Math.min(u4.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));xc.defaultDelayDecider=m4});var $p=p(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.defaultRetryDecider=void 0;var Ic=Cc(),f4=e=>e?Ic.isRetryableByTrait(e)||Ic.isClockSkewError(e)||Ic.isThrottlingError(e)||Ic.isTransientError(e):!1;Rc.defaultRetryDecider=f4});var Dc=p(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.StandardRetryStrategy=void 0;var gE=Dt(),p4=Cc(),h4=zf(),_E=Ii(),Ri=xi(),y4=yE(),g4=Gp(),_4=$p(),wE=class{constructor(t,n){var r,s,i;this.maxAttemptsProvider=t,this.mode=_E.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:_4.defaultRetryDecider,this.delayDecider=(s=n==null?void 0:n.delayDecider)!==null&&s!==void 0?s:g4.defaultDelayDecider,this.retryQuota=(i=n==null?void 0:n.retryQuota)!==null&&i!==void 0?i:y4.getDefaultRetryQuota(Ri.INITIAL_RETRY_TOKENS)}shouldRetry(t,n,r){return n<r&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch(n){t=_E.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let s,i=0,a=0,c=await this.getMaxAttempts(),{request:l}=n;for(gE.HttpRequest.isInstance(l)&&(l.headers[Ri.INVOCATION_ID_HEADER]=h4.v4());;)try{gE.HttpRequest.isInstance(l)&&(l.headers[Ri.REQUEST_HEADER]=`attempt=${i+1}; max=${c}`),(r==null?void 0:r.beforeRequest)&&await r.beforeRequest();let{response:m,output:f}=await t(n);return(r==null?void 0:r.afterRequest)&&r.afterRequest(m),this.retryQuota.releaseRetryTokens(s),f.$metadata.attempts=i+1,f.$metadata.totalRetryDelay=a,{response:m,output:f}}catch(m){let f=w4(m);if(i++,this.shouldRetry(f,i,c)){s=this.retryQuota.retrieveRetryTokens(f);let g=this.delayDecider(p4.isThrottlingError(f)?Ri.THROTTLING_RETRY_DELAY_BASE:Ri.DEFAULT_RETRY_DELAY_BASE,i);a+=g,await new Promise(h=>setTimeout(h,g));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=i,f.$metadata.totalRetryDelay=a,f}}};kc.StandardRetryStrategy=wE;var w4=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`)});var Kp=p(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.DefaultRateLimiter=void 0;var b4=Cc(),bE=class{constructor(t){var n,r,s,i,a;this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(n=t==null?void 0:t.beta)!==null&&n!==void 0?n:.7,this.minCapacity=(r=t==null?void 0:t.minCapacity)!==null&&r!==void 0?r:1,this.minFillRate=(s=t==null?void 0:t.minFillRate)!==null&&s!==void 0?s:.5,this.scaleConstant=(i=t==null?void 0:t.scaleConstant)!==null&&i!==void 0?i:.4,this.smooth=(a=t==null?void 0:t.smooth)!==null&&a!==void 0?a:.8;let c=this.getCurrentTimeInSeconds();this.lastThrottleTime=c,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(!!this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){let n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),b4.isThrottlingError(t)){let s=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){let r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};Nc.DefaultRateLimiter=bE});var Vp=p(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.AdaptiveRetryStrategy=void 0;var S4=Ii(),v4=Kp(),E4=Dc(),SE=class extends E4.StandardRetryStrategy{constructor(t,n){let i=n!=null?n:{},{rateLimiter:r}=i,s=Jn(i,["rateLimiter"]);super(t,s);this.rateLimiter=r!=null?r:new v4.DefaultRateLimiter,this.mode=S4.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Lc.AdaptiveRetryStrategy=SE});var vE=p(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.NODE_RETRY_MODE_CONFIG_OPTIONS=Ie.CONFIG_RETRY_MODE=Ie.ENV_RETRY_MODE=Ie.resolveRetryConfig=Ie.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Ie.CONFIG_MAX_ATTEMPTS=Ie.ENV_MAX_ATTEMPTS=void 0;var A4=Vp(),Pc=Ii(),C4=Dc();Ie.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";Ie.CONFIG_MAX_ATTEMPTS="max_attempts";Ie.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[Ie.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${Ie.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[Ie.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${Ie.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:Pc.DEFAULT_MAX_ATTEMPTS};var T4=e=>{let t=x4(e.maxAttempts);return u(o({},e),{maxAttempts:t,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:(e.retryMode||await e.retryModeProvider())===Pc.RETRY_MODES.ADAPTIVE?new A4.AdaptiveRetryStrategy(t):new C4.StandardRetryStrategy(t)})};Ie.resolveRetryConfig=T4;var x4=(e=Pc.DEFAULT_MAX_ATTEMPTS)=>{if(typeof e=="number"){let t=Promise.resolve(e);return()=>t}return e};Ie.ENV_RETRY_MODE="AWS_RETRY_MODE";Ie.CONFIG_RETRY_MODE="retry_mode";Ie.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Ie.ENV_RETRY_MODE],configFileSelector:e=>e[Ie.CONFIG_RETRY_MODE],default:Pc.DEFAULT_RETRY_MODE}});var AE=p(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0})});var zr=p(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});var hn=he();hn.__exportStar(uE(),Ut);hn.__exportStar(fE(),Ut);hn.__exportStar(Dc(),Ut);hn.__exportStar(Vp(),Ut);hn.__exportStar(Ii(),Ut);hn.__exportStar(vE(),Ut);hn.__exportStar(Gp(),Ut);hn.__exportStar(Kp(),Ut);hn.__exportStar($p(),Ut);hn.__exportStar(AE(),Ut)});var CE=p(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.fromEnv=void 0;var I4=st(),R4=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new I4.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};qc.fromEnv=R4});var TE=p(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.fromSharedConfigFiles=jr.ENV_PROFILE=void 0;var k4=st(),D4=Ci(),N4="default";jr.ENV_PROFILE="AWS_PROFILE";var L4=(e,r={})=>{var s=r,{preferredFile:t="config"}=s,n=Jn(s,["preferredFile"]);return async()=>{let{loadedConfig:i=D4.loadSharedConfigFiles(n),profile:a=process.env[jr.ENV_PROFILE]||N4}=n,{configFile:c,credentialsFile:l}=await i,m=l[a]||{},f=c[a]||{},g=t==="config"?o(o({},m),f):o(o({},f),m);try{let h=e(g);if(h===void 0)throw new Error;return h}catch(h){throw new k4.CredentialsProviderError(h.message||`Cannot load config for profile ${a} in SDK configuration files with getter: ${e}`)}}};jr.fromSharedConfigFiles=L4});var xE=p(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.fromStatic=void 0;var P4=st(),q4=e=>typeof e=="function",M4=e=>q4(e)?async()=>e():P4.fromStatic(e);Mc.fromStatic=M4});var RE=p(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.loadConfig=void 0;var IE=st(),O4=CE(),z4=TE(),j4=xE(),U4=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>IE.memoize(IE.chain(O4.fromEnv(e),z4.fromSharedConfigFiles(t,r),j4.fromStatic(n)));Oc.loadConfig=U4});var ki=p(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var B4=he();B4.__exportStar(RE(),Wp)});var Yp=p(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.buildQueryString=void 0;var Hp=Sp();function F4(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Hp.escapeUri(n),Array.isArray(r))for(let s=0,i=r.length;s<i;s++)t.push(`${n}=${Hp.escapeUri(r[s])}`);else{let s=n;(r||typeof r=="string")&&(s+=`=${Hp.escapeUri(r)}`),t.push(s)}}return t.join("&")}zc.buildQueryString=F4});var kE=p(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.NODEJS_TIMEOUT_ERROR_CODES=void 0;jc.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Jp=p(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.getTransformedHeaders=void 0;var G4=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};Uc.getTransformedHeaders=G4});var DE=p(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.setConnectionTimeout=void 0;var $4=(e,t,n=0)=>{!n||e.on("socket",r=>{if(r.connecting){let s=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))},n);r.on("connect",()=>{clearTimeout(s)})}})};Bc.setConnectionTimeout=$4});var NE=p(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.setSocketTimeout=void 0;var K4=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};Fc.setSocketTimeout=K4});var Qp=p(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.writeRequestBody=void 0;var V4=require("stream");function W4(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{LE(e,t.body)}):LE(e,t.body)}Gc.writeRequestBody=W4;function LE(e,t){t instanceof V4.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var OE=p($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.NodeHttpHandler=void 0;var H4=Dt(),Y4=Yp(),PE=require("http"),qE=require("https"),J4=kE(),Q4=Jp(),X4=DE(),Z4=NE(),eY=Qp(),ME=class{constructor({connectionTimeout:t,socketTimeout:n,httpAgent:r,httpsAgent:s}={}){this.metadata={handlerProtocol:"http/1.1"},this.connectionTimeout=t,this.socketTimeout=n;let i=!0,a=50;this.httpAgent=r||new PE.Agent({keepAlive:i,maxSockets:a}),this.httpsAgent=s||new qE.Agent({keepAlive:i,maxSockets:a})}destroy(){this.httpAgent.destroy(),this.httpsAgent.destroy()}handle(t,{abortSignal:n}={}){return new Promise((r,s)=>{if(n==null?void 0:n.aborted){let f=new Error("Request aborted");f.name="AbortError",s(f);return}let i=t.protocol==="https:",a=Y4.buildQueryString(t.query||{}),c={headers:t.headers,host:t.hostname,method:t.method,path:a?`${t.path}?${a}`:t.path,port:t.port,agent:i?this.httpsAgent:this.httpAgent},m=(i?qE.request:PE.request)(c,f=>{let g=new H4.HttpResponse({statusCode:f.statusCode||-1,headers:Q4.getTransformedHeaders(f.headers),body:f});r({response:g})});m.on("error",f=>{J4.NODEJS_TIMEOUT_ERROR_CODES.includes(f.code)?s(Object.assign(f,{name:"TimeoutError"})):s(f)}),X4.setConnectionTimeout(m,s,this.connectionTimeout),Z4.setSocketTimeout(m,s,this.socketTimeout),n&&(n.onabort=()=>{m.abort();let f=new Error("Request aborted");f.name="AbortError",s(f)}),eY.writeRequestBody(m,t)})}};$c.NodeHttpHandler=ME});var jE=p(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.NodeHttp2Handler=void 0;var tY=Dt(),nY=Yp(),Xp=require("http2"),rY=Jp(),sY=Qp(),zE=class{constructor({requestTimeout:t,sessionTimeout:n,disableConcurrentStreams:r}={}){this.metadata={handlerProtocol:"h2"},this.requestTimeout=t,this.sessionTimeout=n,this.disableConcurrentStreams=r,this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(n=>this.destroySession(n));this.sessionCache.clear()}handle(t,{abortSignal:n}={}){return new Promise((r,s)=>{let i=!1;if(n==null?void 0:n.aborted){i=!0;let R=new Error("Request aborted");R.name="AbortError",s(R);return}let{hostname:a,method:c,port:l,protocol:m,path:f,query:g}=t,h=`${m}//${a}${l?`:${l}`:""}`,_=this.getSession(h,this.disableConcurrentStreams||!1),b=R=>{this.disableConcurrentStreams&&this.destroySession(_),i=!0,s(R)},E=nY.buildQueryString(g||{}),D=_.request(u(o({},t.headers),{[Xp.constants.HTTP2_HEADER_PATH]:E?`${f}?${E}`:f,[Xp.constants.HTTP2_HEADER_METHOD]:c}));D.on("response",R=>{let K=new tY.HttpResponse({statusCode:R[":status"]||-1,headers:rY.getTransformedHeaders(R),body:D});i=!0,r({response:K}),this.disableConcurrentStreams&&(_.close(),this.deleteSessionFromCache(h,_))});let k=this.requestTimeout;k&&D.setTimeout(k,()=>{D.close();let R=new Error(`Stream timed out because of no activity for ${k} ms`);R.name="TimeoutError",b(R)}),n&&(n.onabort=()=>{D.close();let R=new Error("Request aborted");R.name="AbortError",b(R)}),D.on("frameError",b),D.on("error",b),D.on("goaway",b),D.on("aborted",b),D.on("close",()=>{this.disableConcurrentStreams&&_.destroy(),i||b(new Error("Unexpected error: http2 request did not get a response"))}),sY.writeRequestBody(D,t)})}getSession(t,n){let r=this.sessionCache,s=r.get(t)||[];if(s.length>0&&!n)return s[0];let i=Xp.connect(t),a=()=>{this.destroySession(i),this.deleteSessionFromCache(t,i)};i.on("goaway",a),i.on("error",a),i.on("frameError",a);let c=this.sessionTimeout;return c&&i.setTimeout(c,a),s.push(i),r.set(t,s),i}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,n){let r=this.sessionCache.get(t)||[];!r.includes(n)||this.sessionCache.set(t,r.filter(s=>s!==n))}};Kc.NodeHttp2Handler=zE});var BE=p(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.Collector=void 0;var iY=require("stream"),UE=class extends iY.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};Vc.Collector=UE});var FE=p(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.streamCollector=void 0;var aY=BE(),oY=e=>new Promise((t,n)=>{let r=new aY.Collector;e.pipe(r),e.on("error",s=>{r.end(),n(s)}),r.on("error",n),r.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})});Wc.streamCollector=oY});var Hc=p(Di=>{"use strict";Object.defineProperty(Di,"__esModule",{value:!0});var Zp=he();Zp.__exportStar(OE(),Di);Zp.__exportStar(jE(),Di);Zp.__exportStar(FE(),Di)});var Yc=p(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.toBase64=Es.fromBase64=void 0;var GE=Sc();function cY(e){let t=GE.fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}Es.fromBase64=cY;function lY(e){return GE.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")}Es.toBase64=lY});var Qc=p(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.calculateBodyLength=void 0;var dY=require("fs");function uY(e){if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.path=="string")return dY.lstatSync(e.path).size}Jc.calculateBodyLength=uY});var Xc=p(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.defaultUserAgent=yn.UA_APP_ID_INI_NAME=yn.UA_APP_ID_ENV_NAME=void 0;var mY=ki(),$E=require("os"),eh=require("process");yn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";yn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var fY=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${$E.platform()}`,$E.release()],["lang/js"],["md/nodejs",`${eh.versions.node}`]];e&&n.push([`api/${e}`,t]),eh.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${eh.env.AWS_EXECUTION_ENV}`]);let r=mY.loadConfig({environmentVariableSelector:i=>i[yn.UA_APP_ID_ENV_NAME],configFileSelector:i=>i[yn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let i=await r;s=i?[...n,[`app/${i}`]]:[...n]}return s}};yn.defaultUserAgent=fY});var Zc=p(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.toUtf8=As.fromUtf8=void 0;var KE=Sc(),pY=e=>{let t=KE.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};As.fromUtf8=pY;var hY=e=>KE.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8");As.toUtf8=hY});var WE=p(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.defaultRegionInfoProvider=void 0;var VE="portal.sso.{region}.amazonaws.com",yY="portal.sso.{region}.amazonaws.com.cn",gY="portal.sso.{region}.c2s.ic.gov",_Y="portal.sso.{region}.sc2s.sgov.gov",wY="portal.sso.{region}.amazonaws.com",bY=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","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"]),SY=new Set(["cn-north-1","cn-northwest-1"]),vY=new Set(["us-iso-east-1"]),EY=new Set(["us-isob-east-1"]),AY=new Set(["us-gov-east-1","us-gov-west-1"]),CY=(e,t)=>{let n;switch(e){case"ap-southeast-1":n={hostname:"portal.sso.ap-southeast-1.amazonaws.com",partition:"aws",signingRegion:"ap-southeast-1"};break;case"ap-southeast-2":n={hostname:"portal.sso.ap-southeast-2.amazonaws.com",partition:"aws",signingRegion:"ap-southeast-2"};break;case"ca-central-1":n={hostname:"portal.sso.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"eu-central-1":n={hostname:"portal.sso.eu-central-1.amazonaws.com",partition:"aws",signingRegion:"eu-central-1"};break;case"eu-west-1":n={hostname:"portal.sso.eu-west-1.amazonaws.com",partition:"aws",signingRegion:"eu-west-1"};break;case"eu-west-2":n={hostname:"portal.sso.eu-west-2.amazonaws.com",partition:"aws",signingRegion:"eu-west-2"};break;case"us-east-1":n={hostname:"portal.sso.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"portal.sso.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-west-2":n={hostname:"portal.sso.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:bY.has(e)&&(n={hostname:VE.replace("{region}",e),partition:"aws"}),SY.has(e)&&(n={hostname:yY.replace("{region}",e),partition:"aws-cn"}),vY.has(e)&&(n={hostname:gY.replace("{region}",e),partition:"aws-iso"}),EY.has(e)&&(n={hostname:_Y.replace("{region}",e),partition:"aws-iso-b"}),AY.has(e)&&(n={hostname:wY.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:VE.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"awsssoportal"},n))};el.defaultRegionInfoProvider=CY});var HE=p(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.parseQueryString=void 0;function TY(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,s=null]=n.split("=");r=decodeURIComponent(r),s&&(s=decodeURIComponent(s)),r in t?Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]:t[r]=s}return t}tl.parseQueryString=TY});var rl=p(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.parseUrl=void 0;var xY=HE(),IY=e=>{let{hostname:t,pathname:n,port:r,protocol:s,search:i}=new URL(e),a;return i&&(a=xY.parseQueryString(i)),{hostname:t,port:r?parseInt(r):void 0,protocol:s,path:n,query:a}};nl.parseUrl=IY});var YE=p(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.ClientSharedValues=void 0;var RY=WE(),kY=rl();sl.ClientSharedValues={apiVersion:"2019-06-10",disableHostPrefix:!1,logger:{},regionInfoProvider:RY.defaultRegionInfoProvider,serviceId:"SSO",urlParser:kY.parseUrl}});var nA=p(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.ClientDefaultValues=void 0;var DY=he(),NY=DY.__importDefault(oE()),JE=Or(),LY=Ec(),QE=zr(),th=ki(),XE=Hc(),ZE=Yc(),PY=Qc(),qY=Xc(),eA=Zc(),tA=YE();il.ClientDefaultValues=u(o({},tA.ClientSharedValues),{runtime:"node",base64Decoder:ZE.fromBase64,base64Encoder:ZE.toBase64,bodyLengthChecker:PY.calculateBodyLength,defaultUserAgentProvider:qY.defaultUserAgent({serviceId:tA.ClientSharedValues.serviceId,clientVersion:NY.default.version}),maxAttempts:th.loadConfig(QE.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:th.loadConfig(JE.NODE_REGION_CONFIG_OPTIONS,JE.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new XE.NodeHttpHandler,retryModeProvider:th.loadConfig(QE.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:LY.Hash.bind(null,"sha256"),streamCollector:XE.streamCollector,utf8Decoder:eA.fromUtf8,utf8Encoder:eA.toUtf8})});var al=p(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getContentLengthPlugin=Pn.contentLengthMiddlewareOptions=Pn.contentLengthMiddleware=void 0;var MY=Dt(),rA="content-length";function sA(e){return t=>async n=>{let r=n.request;if(MY.HttpRequest.isInstance(r)){let{body:s,headers:i}=r;if(s&&Object.keys(i).map(a=>a.toLowerCase()).indexOf(rA)===-1){let a=e(s);a!==void 0&&(r.headers=u(o({},r.headers),{[rA]:String(a)}))}}return t(u(o({},n),{request:r}))}}Pn.contentLengthMiddleware=sA;Pn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var OY=e=>({applyToStack:t=>{t.add(sA(e.bodyLengthChecker),Pn.contentLengthMiddlewareOptions)}});Pn.getContentLengthPlugin=OY});var ol=p(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHostHeaderPlugin=Bt.hostHeaderMiddlewareOptions=Bt.hostHeaderMiddleware=Bt.resolveHostHeaderConfig=void 0;var zY=Dt();function jY(e){return e}Bt.resolveHostHeaderConfig=jY;var UY=e=>t=>async n=>{if(!zY.HttpRequest.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:s=""}=e.requestHandler.metadata||{};return s.indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),t(n)};Bt.hostHeaderMiddleware=UY;Bt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var BY=e=>({applyToStack:t=>{t.add(Bt.hostHeaderMiddleware(e),Bt.hostHeaderMiddlewareOptions)}});Bt.getHostHeaderPlugin=BY});var iA=p(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.getLoggerPlugin=gn.loggerMiddlewareOptions=gn.loggerMiddleware=void 0;var FY=()=>(e,t)=>async n=>{let{clientName:r,commandName:s,inputFilterSensitiveLog:i,logger:a,outputFilterSensitiveLog:c}=t,l=await e(n);if(!a)return l;if(typeof a.info=="function"){let m=l.output,{$metadata:f}=m,g=Jn(m,["$metadata"]);a.info({clientName:r,commandName:s,input:i(n.input),output:c(g),metadata:f})}return l};gn.loggerMiddleware=FY;gn.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var GY=e=>({applyToStack:t=>{t.add(gn.loggerMiddleware(),gn.loggerMiddlewareOptions)}});gn.getLoggerPlugin=GY});var cl=p(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var $Y=he();$Y.__exportStar(iA(),nh)});var aA=p(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.resolveUserAgentConfig=void 0;function KY(e){return u(o({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}ll.resolveUserAgentConfig=KY});var oA=p(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.UA_ESCAPE_REGEX=_n.SPACE=_n.X_AMZ_USER_AGENT=_n.USER_AGENT=void 0;_n.USER_AGENT="user-agent";_n.X_AMZ_USER_AGENT="x-amz-user-agent";_n.SPACE=" ";_n.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var cA=p(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getUserAgentPlugin=wn.getUserAgentMiddlewareOptions=wn.userAgentMiddleware=void 0;var VY=Dt(),or=oA(),WY=e=>(t,n)=>async r=>{var s,i;let{request:a}=r;if(!VY.HttpRequest.isInstance(a))return t(r);let{headers:c}=a,l=((s=n==null?void 0:n.userAgent)===null||s===void 0?void 0:s.map(rh))||[],m=(await e.defaultUserAgentProvider()).map(rh),f=((i=e==null?void 0:e.customUserAgent)===null||i===void 0?void 0:i.map(rh))||[],g=[...m,...l,...f].join(or.SPACE),h=[...m.filter(_=>_.startsWith("aws-sdk-")),...f].join(or.SPACE);return e.runtime!=="browser"?(h&&(c[or.X_AMZ_USER_AGENT]=c[or.X_AMZ_USER_AGENT]?`${c[or.USER_AGENT]} ${h}`:h),c[or.USER_AGENT]=g):c[or.X_AMZ_USER_AGENT]=g,t(u(o({},r),{request:a}))};wn.userAgentMiddleware=WY;var rh=([e,t])=>{let n=e.indexOf("/"),r=e.substring(0,n),s=e.substring(n+1);return r==="api"&&(s=s.toLowerCase()),[r,s,t].filter(i=>i&&i.length>0).map(i=>i==null?void 0:i.replace(or.UA_ESCAPE_REGEX,"_")).join("/")};wn.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var HY=e=>({applyToStack:t=>{t.add(wn.userAgentMiddleware(e),wn.getUserAgentMiddlewareOptions)}});wn.getUserAgentPlugin=HY});var ul=p(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});var lA=he();lA.__exportStar(aA(),dl);lA.__exportStar(cA(),dl)});var Ni=p(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.SSOClient=void 0;var YY=nA(),dA=Or(),JY=al(),uA=ol(),QY=cl(),mA=zr(),fA=ul(),XY=M(),pA=class extends XY.Client{constructor(t){let n=o(o({},YY.ClientDefaultValues),t),r=dA.resolveRegionConfig(n),s=dA.resolveEndpointsConfig(r),i=mA.resolveRetryConfig(s),a=uA.resolveHostHeaderConfig(i),c=fA.resolveUserAgentConfig(a);super(c);this.config=c,this.middlewareStack.use(mA.getRetryPlugin(this.config)),this.middlewareStack.use(JY.getContentLengthPlugin(this.config)),this.middlewareStack.use(uA.getHostHeaderPlugin(this.config)),this.middlewareStack.use(QY.getLoggerPlugin(this.config)),this.middlewareStack.use(fA.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};ml.SSOClient=pA});var Ts=p(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.LogoutRequest=se.ListAccountsResponse=se.ListAccountsRequest=se.ListAccountRolesResponse=se.RoleInfo=se.ListAccountRolesRequest=se.UnauthorizedException=se.TooManyRequestsException=se.ResourceNotFoundException=se.InvalidRequestException=se.GetRoleCredentialsResponse=se.RoleCredentials=se.GetRoleCredentialsRequest=se.AccountInfo=void 0;var Cs=M(),ZY;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZY=se.AccountInfo||(se.AccountInfo={}));var eJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Cs.SENSITIVE_STRING})})(eJ=se.GetRoleCredentialsRequest||(se.GetRoleCredentialsRequest={}));var hA;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:Cs.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:Cs.SENSITIVE_STRING})})(hA=se.RoleCredentials||(se.RoleCredentials={}));var tJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:hA.filterSensitiveLog(t.roleCredentials)})})(tJ=se.GetRoleCredentialsResponse||(se.GetRoleCredentialsResponse={}));var nJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(nJ=se.InvalidRequestException||(se.InvalidRequestException={}));var rJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(rJ=se.ResourceNotFoundException||(se.ResourceNotFoundException={}));var sJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(sJ=se.TooManyRequestsException||(se.TooManyRequestsException={}));var iJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(iJ=se.UnauthorizedException||(se.UnauthorizedException={}));var aJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Cs.SENSITIVE_STRING})})(aJ=se.ListAccountRolesRequest||(se.ListAccountRolesRequest={}));var oJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(oJ=se.RoleInfo||(se.RoleInfo={}));var cJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(cJ=se.ListAccountRolesResponse||(se.ListAccountRolesResponse={}));var lJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Cs.SENSITIVE_STRING})})(lJ=se.ListAccountsRequest||(se.ListAccountsRequest={}));var dJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(dJ=se.ListAccountsResponse||(se.ListAccountsResponse={}));var uJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Cs.SENSITIVE_STRING})})(uJ=se.LogoutRequest||(se.LogoutRequest={}))});var Li=p(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.deserializeAws_restJson1LogoutCommand=Ve.deserializeAws_restJson1ListAccountsCommand=Ve.deserializeAws_restJson1ListAccountRolesCommand=Ve.deserializeAws_restJson1GetRoleCredentialsCommand=Ve.serializeAws_restJson1LogoutCommand=Ve.serializeAws_restJson1ListAccountsCommand=Ve.serializeAws_restJson1ListAccountRolesCommand=Ve.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var fl=Dt(),ut=M(),mJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},gl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/federation/credentials`,l=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),m;return new fl.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1GetRoleCredentialsCommand=mJ;var fJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},gl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/assignment/roles`,l=o(o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),e.accountId!==void 0&&{account_id:e.accountId}),m;return new fl.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1ListAccountRolesCommand=fJ;var pJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},gl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/assignment/accounts`,l=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),m;return new fl.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1ListAccountsCommand=pJ;var hJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},gl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/logout`,l;return new fl.HttpRequest({protocol:r,hostname:n,port:s,method:"POST",headers:a,path:c,body:l})};Ve.serializeAws_restJson1LogoutCommand=hJ;var yJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return gJ(e,t);let n={$metadata:Se(e),roleCredentials:void 0},r=await Ur(e.body,t);return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=TJ(r.roleCredentials,t)),Promise.resolve(n)};Ve.deserializeAws_restJson1GetRoleCredentialsCommand=yJ;var gJ=async(e,t)=>{let n=u(o({},e),{body:await Ur(e.body,t)}),r,s="UnknownError";switch(s=_l(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await sh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await yl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},_J=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return wJ(e,t);let n={$metadata:Se(e),nextToken:void 0,roleList:void 0},r=await Ur(e.body,t);return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ut.expectString(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=IJ(r.roleList,t)),Promise.resolve(n)};Ve.deserializeAws_restJson1ListAccountRolesCommand=_J;var wJ=async(e,t)=>{let n=u(o({},e),{body:await Ur(e.body,t)}),r,s="UnknownError";switch(s=_l(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await sh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await yl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},bJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return SJ(e,t);let n={$metadata:Se(e),accountList:void 0,nextToken:void 0},r=await Ur(e.body,t);return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=CJ(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ut.expectString(r.nextToken)),Promise.resolve(n)};Ve.deserializeAws_restJson1ListAccountsCommand=bJ;var SJ=async(e,t)=>{let n=u(o({},e),{body:await Ur(e.body,t)}),r,s="UnknownError";switch(s=_l(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await sh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await yl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},vJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return EJ(e,t);let n={$metadata:Se(e)};return await yA(e.body,t),Promise.resolve(n)};Ve.deserializeAws_restJson1LogoutCommand=vJ;var EJ=async(e,t)=>{let n=u(o({},e),{body:await Ur(e.body,t)}),r,s="UnknownError";switch(s=_l(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await yl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},pl=async(e,t)=>{let n={name:"InvalidRequestException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},sh=async(e,t)=>{let n={name:"ResourceNotFoundException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},hl=async(e,t)=>{let n={name:"TooManyRequestsException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},yl=async(e,t)=>{let n={name:"UnauthorizedException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},AJ=(e,t)=>({accountId:ut.expectString(e.accountId),accountName:ut.expectString(e.accountName),emailAddress:ut.expectString(e.emailAddress)}),CJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:AJ(n,t)),TJ=(e,t)=>({accessKeyId:ut.expectString(e.accessKeyId),expiration:ut.expectNumber(e.expiration),secretAccessKey:ut.expectString(e.secretAccessKey),sessionToken:ut.expectString(e.sessionToken)}),xJ=(e,t)=>({accountId:ut.expectString(e.accountId),roleName:ut.expectString(e.roleName)}),IJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:xJ(n,t)),Se=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},yA=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),RJ=(e,t)=>yA(e,t).then(n=>t.utf8Encoder(n)),gl=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Ur=(e,t)=>RJ(e,t).then(n=>n.length?JSON.parse(n):{}),_l=(e,t)=>{let n=(i,a)=>Object.keys(i).find(c=>c.toLowerCase()===a.toLowerCase()),r=i=>{let a=i;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},s=n(e.headers,"x-amzn-errortype");return s!==void 0?r(e.headers[s]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var ih=p(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.GetRoleCredentialsCommand=void 0;var gA=Ts(),_A=Li(),kJ=j(),DJ=M(),wA=class extends DJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(kJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:gA.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:gA.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return _A.serializeAws_restJson1GetRoleCredentialsCommand(t,n)}deserialize(t,n){return _A.deserializeAws_restJson1GetRoleCredentialsCommand(t,n)}};wl.GetRoleCredentialsCommand=wA});var Sl=p(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.ListAccountRolesCommand=void 0;var bA=Ts(),SA=Li(),NJ=j(),LJ=M(),vA=class extends LJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(NJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:bA.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:bA.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return SA.serializeAws_restJson1ListAccountRolesCommand(t,n)}deserialize(t,n){return SA.deserializeAws_restJson1ListAccountRolesCommand(t,n)}};bl.ListAccountRolesCommand=vA});var El=p(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.ListAccountsCommand=void 0;var EA=Ts(),AA=Li(),PJ=j(),qJ=M(),CA=class extends qJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(PJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:EA.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:EA.ListAccountsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return AA.serializeAws_restJson1ListAccountsCommand(t,n)}deserialize(t,n){return AA.deserializeAws_restJson1ListAccountsCommand(t,n)}};vl.ListAccountsCommand=CA});var ah=p(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.LogoutCommand=void 0;var MJ=Ts(),TA=Li(),OJ=j(),zJ=M(),xA=class extends zJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(OJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:MJ.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return TA.serializeAws_restJson1LogoutCommand(t,n)}deserialize(t,n){return TA.deserializeAws_restJson1LogoutCommand(t,n)}};Al.LogoutCommand=xA});var Tl=p(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.SSO=void 0;var jJ=Ni(),UJ=ih(),BJ=Sl(),FJ=El(),GJ=ah(),IA=class extends jJ.SSOClient{getRoleCredentials(t,n,r){let s=new UJ.GetRoleCredentialsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listAccountRoles(t,n,r){let s=new BJ.ListAccountRolesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listAccounts(t,n,r){let s=new FJ.ListAccountsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}logout(t,n,r){let s=new GJ.LogoutCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};Cl.SSO=IA});var RA=p(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.paginateListAccountRoles=void 0;var $J=Tl(),KJ=Ni(),VJ=Sl(),WJ=async(e,t,...n)=>await e.send(new VJ.ListAccountRolesCommand(t),...n),HJ=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*YJ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof $J.SSO)i=await HJ(e.client,t,...n);else if(e.client instanceof KJ.SSOClient)i=await WJ(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield i,r=i.nextToken,s=!!r}return void 0}xl.paginateListAccountRoles=YJ});var kA=p(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.paginateListAccounts=void 0;var JJ=Tl(),QJ=Ni(),XJ=El(),ZJ=async(e,t,...n)=>await e.send(new XJ.ListAccountsCommand(t),...n),e5=async(e,t,...n)=>await e.listAccounts(t,...n);async function*t5(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof JJ.SSO)i=await e5(e.client,t,...n);else if(e.client instanceof QJ.SSOClient)i=await ZJ(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield i,r=i.nextToken,s=!!r}return void 0}Il.paginateListAccounts=t5});var NA=p(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0})});var LA=p(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var n5=he();n5.__exportStar(Ts(),oh)});var PA=p(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});var bn=he();bn.__exportStar(Ni(),Ft);bn.__exportStar(Tl(),Ft);bn.__exportStar(ih(),Ft);bn.__exportStar(Sl(),Ft);bn.__exportStar(RA(),Ft);bn.__exportStar(El(),Ft);bn.__exportStar(kA(),Ft);bn.__exportStar(ah(),Ft);bn.__exportStar(NA(),Ft);bn.__exportStar(LA(),Ft)});var OA=p(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.fromSSO=Br.EXPIRE_WINDOW_MS=void 0;var qA=PA(),MA=bc(),xs=st(),r5=Ci(),s5=require("crypto"),i5=require("fs"),a5=require("path");Br.EXPIRE_WINDOW_MS=15*60*1e3;var Rl=!1,o5=(e={})=>async()=>{let t=await MA.parseKnownFiles(e);return c5(MA.getMasterProfileName(e),t,e)};Br.fromSSO=o5;var c5=async(e,t,n)=>{let r=t[e];if(!r)throw new xs.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`);let{sso_start_url:s,sso_account_id:i,sso_region:a,sso_role_name:c}=r;if(!s&&!i&&!a&&!c)throw new xs.CredentialsProviderError(`Profile ${e} is not configured with SSO credentials.`);if(!s||!i||!a||!c)throw new xs.CredentialsProviderError(`Profile ${e} does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,Rl);let m=s5.createHash("sha1").update(s).digest("hex"),f=a5.join(r5.getHomeDir(),".aws","sso","cache",`${m}.json`),g;try{if(g=JSON.parse(i5.readFileSync(f,{encoding:"utf-8"})),new Date(g.expiresAt).getTime()-Date.now()<=Br.EXPIRE_WINDOW_MS)throw new Error("SSO token is expired.")}catch(K){throw new xs.CredentialsProviderError("The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile.",Rl)}let{accessToken:h}=g,_=n.ssoClient||new qA.SSOClient({region:a}),b;try{b=await _.send(new qA.GetRoleCredentialsCommand({accountId:i,roleName:c,accessToken:h}))}catch(K){throw xs.CredentialsProviderError.from(K,Rl)}let{roleCredentials:{accessKeyId:E,secretAccessKey:D,sessionToken:k,expiration:R}={}}=b;if(!E||!D||!k||!R)throw new xs.CredentialsProviderError("SSO returns an invalid temporary credential.",Rl);return{accessKeyId:E,secretAccessKey:D,sessionToken:k,expiration:new Date(R)}}});var ch=p(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.defaultProvider=Fr.ENV_IMDS_DISABLED=void 0;var l5=xp(),kl=qp(),zA=bc(),d5=aE(),u5=OA(),m5=Op(),Dl=st(),f5=Ci();Fr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var p5=(e={})=>{let t=o({profile:process.env[zA.ENV_PROFILE]},e);t.loadedConfig||(t.loadedConfig=f5.loadSharedConfigFiles(e));let n=[u5.fromSSO(t),zA.fromIni(t),d5.fromProcess(t),m5.fromTokenFile(t),h5(t),async()=>{throw new Dl.CredentialsProviderError("Could not load credentials from any providers",!1)}];t.profile||n.unshift(l5.fromEnv());let r=Dl.chain(...n);return Dl.memoize(r,s=>s.expiration!==void 0&&s.expiration.getTime()-Date.now()<3e5,s=>s.expiration!==void 0)};Fr.defaultProvider=p5;var h5=e=>process.env[kl.ENV_CMDS_RELATIVE_URI]||process.env[kl.ENV_CMDS_FULL_URI]?kl.fromContainerMetadata(e):process.env[Fr.ENV_IMDS_DISABLED]?()=>Promise.reject(new Dl.CredentialsProviderError("EC2 Instance Metadata Service access disabled")):kl.fromInstanceMetadata(e)});var UA=p(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.defaultRegionInfoProvider=void 0;var jA="sts.{region}.amazonaws.com",y5="sts.{region}.amazonaws.com.cn",g5="sts.{region}.c2s.ic.gov",_5="sts.{region}.sc2s.sgov.gov",w5="sts.{region}.amazonaws.com",b5=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","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"]),S5=new Set(["cn-north-1","cn-northwest-1"]),v5=new Set(["us-iso-east-1"]),E5=new Set(["us-isob-east-1"]),A5=new Set(["us-gov-east-1","us-gov-west-1"]),C5=(e,t)=>{let n;switch(e){case"af-south-1":n={hostname:"sts.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"sts.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"sts.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"sts.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-northeast-3":n={hostname:"sts.ap-northeast-3.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"sts.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"sts.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"sts.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":n={hostname:"sts.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":n={hostname:"sts.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"sts.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"sts.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"sts.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"sts.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"sts.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"sts.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"sts.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"sts.eu-west-3.amazonaws.com",partition:"aws"};break;case"me-south-1":n={hostname:"sts.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"sts.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"sts.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"sts-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"sts.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"sts-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-east-1":n={hostname:"sts.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-east-1-fips":n={hostname:"sts.us-gov-east-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"sts.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"sts.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"sts.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"sts.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"sts.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-1-fips":n={hostname:"sts-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"us-west-2":n={hostname:"sts.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"sts-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:b5.has(e)&&(n={hostname:jA.replace("{region}",e),partition:"aws"}),S5.has(e)&&(n={hostname:y5.replace("{region}",e),partition:"aws-cn"}),v5.has(e)&&(n={hostname:g5.replace("{region}",e),partition:"aws-iso"}),E5.has(e)&&(n={hostname:_5.replace("{region}",e),partition:"aws-iso-b"}),A5.has(e)&&(n={hostname:w5.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:jA.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"sts"},n))};Nl.defaultRegionInfoProvider=C5});var BA=p(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.ClientSharedValues=void 0;var T5=UA(),x5=rl();Ll.ClientSharedValues={apiVersion:"2011-06-15",disableHostPrefix:!1,logger:{},regionInfoProvider:T5.defaultRegionInfoProvider,serviceId:"STS",urlParser:x5.parseUrl}});var HA=p(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.ClientDefaultValues=void 0;var I5=he(),R5=I5.__importDefault(nS()),k5=Cp(),FA=Or(),D5=ch(),N5=Ec(),GA=zr(),lh=ki(),$A=Hc(),KA=Yc(),L5=Qc(),P5=Xc(),VA=Zc(),WA=BA();Pl.ClientDefaultValues=u(o({},WA.ClientSharedValues),{runtime:"node",base64Decoder:KA.fromBase64,base64Encoder:KA.toBase64,bodyLengthChecker:L5.calculateBodyLength,credentialDefaultProvider:k5.decorateDefaultCredentialProvider(D5.defaultProvider),defaultUserAgentProvider:P5.defaultUserAgent({serviceId:WA.ClientSharedValues.serviceId,clientVersion:R5.default.version}),maxAttempts:lh.loadConfig(GA.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:lh.loadConfig(FA.NODE_REGION_CONFIG_OPTIONS,FA.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new $A.NodeHttpHandler,retryModeProvider:lh.loadConfig(GA.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:N5.Hash.bind(null,"sha256"),streamCollector:$A.streamCollector,utf8Decoder:VA.fromUtf8,utf8Encoder:VA.toUtf8})});var YA=p(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.resolveStsAuthConfig=void 0;var q5=Nn(),M5=(e,{stsClientCtor:t})=>q5.resolveAwsAuthConfig(u(o({},e),{stsClientCtor:t}));ql.resolveStsAuthConfig=M5});var zl=p(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.STSClient=void 0;var O5=HA(),JA=Or(),z5=al(),QA=ol(),j5=cl(),XA=zr(),U5=YA(),ZA=ul(),B5=M(),Ml=class extends B5.Client{constructor(t){let n=o(o({},O5.ClientDefaultValues),t),r=JA.resolveRegionConfig(n),s=JA.resolveEndpointsConfig(r),i=XA.resolveRetryConfig(s),a=QA.resolveHostHeaderConfig(i),c=U5.resolveStsAuthConfig(a,{stsClientCtor:Ml}),l=ZA.resolveUserAgentConfig(c);super(l);this.config=l,this.middlewareStack.use(XA.getRetryPlugin(this.config)),this.middlewareStack.use(z5.getContentLengthPlugin(this.config)),this.middlewareStack.use(QA.getHostHeaderPlugin(this.config)),this.middlewareStack.use(j5.getLoggerPlugin(this.config)),this.middlewareStack.use(ZA.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Ol.STSClient=Ml});var dh=p(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.AssumeRoleWithSAMLCommand=void 0;var eC=sn(),tC=Dn(),F5=j(),G5=M(),nC=class extends G5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(F5.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:eC.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:eC.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return tC.serializeAws_queryAssumeRoleWithSAMLCommand(t,n)}deserialize(t,n){return tC.deserializeAws_queryAssumeRoleWithSAMLCommand(t,n)}};jl.AssumeRoleWithSAMLCommand=nC});var uh=p(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.DecodeAuthorizationMessageCommand=void 0;var rC=sn(),sC=Dn(),$5=j(),K5=Nn(),V5=M(),iC=class extends V5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use($5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(K5.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:rC.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:rC.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return sC.serializeAws_queryDecodeAuthorizationMessageCommand(t,n)}deserialize(t,n){return sC.deserializeAws_queryDecodeAuthorizationMessageCommand(t,n)}};Ul.DecodeAuthorizationMessageCommand=iC});var mh=p(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.GetAccessKeyInfoCommand=void 0;var aC=sn(),oC=Dn(),W5=j(),H5=Nn(),Y5=M(),cC=class extends Y5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(W5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(H5.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:aC.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:aC.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return oC.serializeAws_queryGetAccessKeyInfoCommand(t,n)}deserialize(t,n){return oC.deserializeAws_queryGetAccessKeyInfoCommand(t,n)}};Bl.GetAccessKeyInfoCommand=cC});var fh=p(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.GetCallerIdentityCommand=void 0;var lC=sn(),dC=Dn(),J5=j(),Q5=Nn(),X5=M(),uC=class extends X5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(J5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(Q5.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:lC.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:lC.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return dC.serializeAws_queryGetCallerIdentityCommand(t,n)}deserialize(t,n){return dC.deserializeAws_queryGetCallerIdentityCommand(t,n)}};Fl.GetCallerIdentityCommand=uC});var ph=p(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.GetFederationTokenCommand=void 0;var mC=sn(),fC=Dn(),Z5=j(),e9=Nn(),t9=M(),pC=class extends t9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Z5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(e9.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:mC.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:mC.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return fC.serializeAws_queryGetFederationTokenCommand(t,n)}deserialize(t,n){return fC.deserializeAws_queryGetFederationTokenCommand(t,n)}};Gl.GetFederationTokenCommand=pC});var hh=p($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.GetSessionTokenCommand=void 0;var hC=sn(),yC=Dn(),n9=j(),r9=Nn(),s9=M(),gC=class extends s9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(n9.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(r9.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:hC.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:hC.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return yC.serializeAws_queryGetSessionTokenCommand(t,n)}deserialize(t,n){return yC.deserializeAws_queryGetSessionTokenCommand(t,n)}};$l.GetSessionTokenCommand=gC});var wC=p(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.STS=void 0;var i9=zl(),a9=oc(),o9=dh(),c9=lc(),l9=uh(),d9=mh(),u9=fh(),m9=ph(),f9=hh(),_C=class extends i9.STSClient{assumeRole(t,n,r){let s=new a9.AssumeRoleCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}assumeRoleWithSAML(t,n,r){let s=new o9.AssumeRoleWithSAMLCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}assumeRoleWithWebIdentity(t,n,r){let s=new c9.AssumeRoleWithWebIdentityCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}decodeAuthorizationMessage(t,n,r){let s=new l9.DecodeAuthorizationMessageCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getAccessKeyInfo(t,n,r){let s=new d9.GetAccessKeyInfoCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getCallerIdentity(t,n,r){let s=new u9.GetCallerIdentityCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getFederationToken(t,n,r){let s=new m9.GetFederationTokenCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getSessionToken(t,n,r){let s=new f9.GetSessionTokenCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};Kl.STS=_C});var vC=p(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.decorateDefaultCredentialProvider=Sn.getDefaultRoleAssumerWithWebIdentity=Sn.getDefaultRoleAssumer=void 0;var bC=Cp(),SC=zl(),p9=(e={})=>bC.getDefaultRoleAssumer(e,SC.STSClient);Sn.getDefaultRoleAssumer=p9;var h9=(e={})=>bC.getDefaultRoleAssumerWithWebIdentity(e,SC.STSClient);Sn.getDefaultRoleAssumerWithWebIdentity=h9;var y9=e=>t=>e(o({roleAssumer:Sn.getDefaultRoleAssumer(t),roleAssumerWithWebIdentity:Sn.getDefaultRoleAssumerWithWebIdentity(t)},t));Sn.decorateDefaultCredentialProvider=y9});var EC=p(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var g9=he();g9.__exportStar(sn(),yh)});var AC=p(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});var Gt=he();Gt.__exportStar(zl(),vt);Gt.__exportStar(wC(),vt);Gt.__exportStar(oc(),vt);Gt.__exportStar(dh(),vt);Gt.__exportStar(lc(),vt);Gt.__exportStar(uh(),vt);Gt.__exportStar(mh(),vt);Gt.__exportStar(fh(),vt);Gt.__exportStar(ph(),vt);Gt.__exportStar(hh(),vt);Gt.__exportStar(vC(),vt);Gt.__exportStar(EC(),vt)});var TC=p(CC=>{"use strict";Object.defineProperty(CC,"__esModule",{value:!0})});var IC=p((rfe,xC)=>{function qn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}qn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol!="undefined"&&(qn.prototype[Symbol.iterator]=function(){return this});qn.of=function(){var e=arguments,t=e.length,n=0;return new qn(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};qn.empty=function(){var e=new qn(null);return e.done=!0,e};qn.is=function(e){return e instanceof qn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};xC.exports=qn});var gh=p((sfe,NC)=>{var RC=typeof ArrayBuffer!="undefined",kC=typeof Symbol!="undefined";function DC(e,t){var n,r,s,i,a;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||RC&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],s);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(kC&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,s),s++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}DC.forEachWithNullKeys=function(e,t){var n,r,s,i,a;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||RC&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],null);return}if(e instanceof Set){e.forEach(function(c){t(c,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(kC&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,null),s++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};NC.exports=DC});var _h=p(vn=>{var _9=Math.pow(2,8)-1,w9=Math.pow(2,16)-1,b9=Math.pow(2,32)-1,S9=Math.pow(2,7)-1,v9=Math.pow(2,15)-1,E9=Math.pow(2,31)-1;vn.getPointerArray=function(e){var t=e-1;return t<=_9?Uint8Array:t<=w9?Uint16Array:t<=b9?Uint32Array:Float64Array};vn.getSignedPointerArray=function(e){var t=e-1;return t<=S9?Int8Array:t<=v9?Int16Array:t<=E9?Int32Array:Float64Array};vn.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var A9={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};vn.getMinimalRepresentation=function(e,t){var n=null,r=0,s,i,a,c,l;for(c=0,l=e.length;c<l;c++)a=t?t(e[c]):e[c],i=vn.getNumberType(a),s=A9[i.name],s>r&&(r=s,n=i);return n};vn.isTypedArray=function(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(e)};vn.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var s=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)s.set(arguments[t],n),n+=arguments[t].length;return s};vn.indices=function(e){for(var t=vn.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var qC=p(Pi=>{var LC=gh(),PC=_h();function C9(e){return Array.isArray(e)||PC.isTypedArray(e)}function wh(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function T9(e){var t=wh(e),n=typeof t=="number"?new Array(t):[],r=0;return LC(e,function(s){n[r++]=s}),n}function x9(e){var t=wh(e),n=typeof t=="number"?PC.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],s=typeof t=="number"?new n(t):[],i=0;return LC(e,function(a){r[i]=a,s[i]=i++}),[r,s]}Pi.isArrayLike=C9;Pi.guessLength=wh;Pi.toArray=T9;Pi.toArrayWithIndices=x9});var OC=p((ofe,MC)=>{var bh=IC(),I9=gh(),R9=_h(),k9=qC();function Oe(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var r=R9.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e=="function"?new e(n):new Array(n),this.V=typeof t=="function"?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}Oe.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};Oe.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this};Oe.prototype.set=function(e,t){var n=this.items[e];if(typeof n!="undefined"){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n};Oe.prototype.setpop=function(e,t){var n=null,r=null,s=this.items[e];return typeof s!="undefined"?(this.splayOnTop(s),n=this.V[s],this.V[s]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?s=this.size++:(s=this.tail,this.tail=this.backward[s],n=this.V[s],r=this.K[s],delete this.items[this.K[s]]),this.items[e]=s,this.K[s]=e,this.V[s]=t,this.forward[s]=this.head,this.backward[this.head]=s,this.head=s,r?{evicted:!0,key:r,value:n}:null)};Oe.prototype.has=function(e){return e in this.items};Oe.prototype.get=function(e){var t=this.items[e];if(typeof t!="undefined")return this.splayOnTop(t),this.V[t]};Oe.prototype.peek=function(e){var t=this.items[e];if(typeof t!="undefined")return this.V[t]};Oe.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,s=this.head,i=this.K,a=this.V,c=this.forward;n<r;)e.call(t,a[s],i[s],this),s=c[s],n++};Oe.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,s=this.forward;return new bh(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};Oe.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,s=this.forward;return new bh(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};Oe.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,s=this.V,i=this.forward;return new bh(function(){if(e>=t)return{done:!0};var a=r[n],c=s[n];return e++,e<t&&(n=i[n]),{done:!1,value:[a,c]}})};typeof Symbol!="undefined"&&(Oe.prototype[Symbol.iterator]=Oe.prototype.entries);Oe.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:Oe,enumerable:!1}),e};typeof Symbol!="undefined"&&(Oe.prototype[Symbol.for("nodejs.util.inspect.custom")]=Oe.prototype.inspect);Oe.from=function(e,t,n,r){if(arguments.length<2){if(r=k9.guessLength(e),typeof r!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(r=t,t=null,n=null);var s=new Oe(t,n,r);return I9(e,function(i,a){s.set(a,i)}),s};MC.exports=Oe});var jC=p(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.EndpointCache=void 0;var D9=he(),N9=D9.__importDefault(OC()),zC=class{constructor(t){this.cache=new N9.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let r=n.map(s=>s.Address);return r[Math.floor(Math.random()*r.length)]}get(t){if(!this.has(t))return;let n=this.cache.get(t);if(!n)return;let r=Date.now(),s=n.filter(i=>r<i.Expires);if(s.length===0){this.delete(t);return}return s}set(t,n){let r=Date.now();this.cache.set(t,n.map(({Address:s,CachePeriodInMinutes:i})=>({Address:s,Expires:r+i*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let n=this.cache.peek(t);return n?n.length>0:!1}clear(){this.cache.clear()}};Vl.EndpointCache=zC});var BC=p(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});var UC=he();UC.__exportStar(TC(),Wl);UC.__exportStar(jC(),Wl)});var FC=p(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.resolveEndpointDiscoveryConfig=void 0;var L9=BC(),P9=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return u(o({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new L9.EndpointCache((n=e.endpointCacheSize)!==null&&n!==void 0?n:1e3),endpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0})};Hl.resolveEndpointDiscoveryConfig=P9});var GC=p(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.getCacheKey=void 0;var q9=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:s}=n;return JSON.stringify(o(o({},r&&{accessKeyId:r}),s&&{commandName:e,identifiers:Object.entries(s).sort().reduce((i,[a,c])=>u(o({},i),{[a]:c}),{})}))};Yl.getCacheKey=q9});var $C=p(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.updateDiscoveredEndpointInCache=void 0;var Mn={},M9=async(e,t)=>new Promise((n,r)=>{let{endpointCache:s}=e,{cacheKey:i,commandName:a,identifiers:c}=t,l=s.get(i);if(l&&l.length===1&&l[0].Address==="")t.isDiscoveredEndpointRequired?(Mn[i]||(Mn[i]=[]),Mn[i].push({resolve:n,reject:r})):n();else if(l&&l.length>0)n();else{let m=[{Address:"",CachePeriodInMinutes:1}];s.set(i,m);let f=new t.endpointDiscoveryCommandCtor({Operation:a.substr(0,a.length-7),Identifiers:c});f.resolveMiddleware(t.clientStack,e,t.options)(f).then(h=>{s.set(i,h.output.Endpoints),Mn[i]&&(Mn[i].forEach(({resolve:_})=>{_()}),delete Mn[i]),n()}).catch(h=>{var _;(h.name==="InvalidEndpointException"||((_=h.$metadata)===null||_===void 0?void 0:_.httpStatusCode)===421)&&s.delete(i);let b=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:h});Mn[i]&&(Mn[i].forEach(({reject:E})=>{E(b)}),delete Mn[i]),t.isDiscoveredEndpointRequired?r(b):(s.set(i,m),n())})}});Jl.updateDiscoveredEndpointInCache=M9});var VC=p(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.endpointDiscoveryMiddleware=void 0;var O9=Dt(),z9=GC(),KC=$C(),j9=(e,t)=>(n,r)=>async s=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return n(s)}let{endpointDiscoveryCommandCtor:i}=e,{isDiscoveredEndpointRequired:a,identifiers:c}=t,{clientName:l,commandName:m}=r,f=await e.endpointDiscoveryEnabled(),g=await z9.getCacheKey(m,e,{identifiers:c});if(a){if(f===!1)throw new Error(`Endpoint Discovery is disabled but ${m} on ${l} requires it. Please check your configurations.`);await KC.updateDiscoveredEndpointInCache(e,u(o({},t),{commandName:m,cacheKey:g,endpointDiscoveryCommandCtor:i}))}else f&&KC.updateDiscoveredEndpointInCache(e,u(o({},t),{commandName:m,cacheKey:g,endpointDiscoveryCommandCtor:i}));let{request:h}=s;if(g&&O9.HttpRequest.isInstance(h)){let _=e.endpointCache.getEndpoint(g);_&&(h.hostname=_)}return n(s)};Ql.endpointDiscoveryMiddleware=j9});var WC=p(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.getEndpointDiscoveryOptionalPlugin=Pt.getEndpointDiscoveryRequiredPlugin=Pt.getEndpointDiscoveryPlugin=Pt.endpointDiscoveryMiddlewareOptions=void 0;var Sh=VC();Pt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var U9=(e,t)=>({applyToStack:n=>{n.add(Sh.endpointDiscoveryMiddleware(e,t),Pt.endpointDiscoveryMiddlewareOptions)}});Pt.getEndpointDiscoveryPlugin=U9;var B9=(e,t)=>({applyToStack:n=>{n.add(Sh.endpointDiscoveryMiddleware(e,u(o({},t),{isDiscoveredEndpointRequired:!0})),Pt.endpointDiscoveryMiddlewareOptions)}});Pt.getEndpointDiscoveryRequiredPlugin=B9;var F9=(e,t)=>({applyToStack:n=>{n.add(Sh.endpointDiscoveryMiddleware(e,u(o({},t),{isDiscoveredEndpointRequired:!1})),Pt.endpointDiscoveryMiddlewareOptions)}});Pt.getEndpointDiscoveryOptionalPlugin=F9});var JC=p(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var HC=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],vh="endpoint_discovery_enabled",YC=e=>["false","0"].indexOf(e)>=0;Xl.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<HC.length;t++){let n=HC[t];if(n in e){let r=e[n];if(r==="")throw Error(`Environment variable ${n} can't be empty of undefined, got "${r}"`);return!YC(r)}}},configFileSelector:e=>{if(vh in e){let t=e[vh];if(t===void 0)throw Error(`Shared config entry ${vh} can't be undefined, got "${t}"`);return!YC(t)}},default:void 0}});var Ah=p(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var Eh=he();Eh.__exportStar(FC(),qi);Eh.__exportStar(WC(),qi);Eh.__exportStar(JC(),qi)});var XC=p(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.defaultRegionInfoProvider=void 0;var QC="dynamodb.{region}.amazonaws.com",G9="dynamodb.{region}.amazonaws.com.cn",$9="dynamodb.{region}.c2s.ic.gov",K9="dynamodb.{region}.sc2s.sgov.gov",V9="dynamodb.{region}.amazonaws.com",W9=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","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"]),H9=new Set(["cn-north-1","cn-northwest-1"]),Y9=new Set(["us-iso-east-1"]),J9=new Set(["us-isob-east-1"]),Q9=new Set(["us-gov-east-1","us-gov-west-1"]),X9=(e,t)=>{let n;switch(e){case"af-south-1":n={hostname:"dynamodb.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"dynamodb.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"dynamodb.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"dynamodb.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-northeast-3":n={hostname:"dynamodb.ap-northeast-3.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"dynamodb.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"dynamodb.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"dynamodb.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"dynamodb.ca-central-1.amazonaws.com",partition:"aws"};break;case"ca-central-1-fips":n={hostname:"dynamodb-fips.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"cn-north-1":n={hostname:"dynamodb.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"dynamodb.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"dynamodb.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"dynamodb.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"dynamodb.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"dynamodb.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"dynamodb.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"dynamodb.eu-west-3.amazonaws.com",partition:"aws"};break;case"local":n={hostname:"localhost:8000",partition:"aws",signingRegion:"us-east-1"};break;case"me-south-1":n={hostname:"dynamodb.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"dynamodb.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"dynamodb.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"dynamodb-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"dynamodb.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"dynamodb-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-east-1":n={hostname:"dynamodb.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-east-1-fips":n={hostname:"dynamodb.us-gov-east-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"dynamodb.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"dynamodb.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"dynamodb.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"dynamodb.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"dynamodb.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-1-fips":n={hostname:"dynamodb-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"us-west-2":n={hostname:"dynamodb.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"dynamodb-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:W9.has(e)&&(n={hostname:QC.replace("{region}",e),partition:"aws"}),H9.has(e)&&(n={hostname:G9.replace("{region}",e),partition:"aws-cn"}),Y9.has(e)&&(n={hostname:$9.replace("{region}",e),partition:"aws-iso"}),J9.has(e)&&(n={hostname:K9.replace("{region}",e),partition:"aws-iso-b"}),Q9.has(e)&&(n={hostname:V9.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:QC.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"dynamodb"},n))};Zl.defaultRegionInfoProvider=X9});var ZC=p(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.ClientSharedValues=void 0;var Z9=XC(),eQ=rl();ed.ClientSharedValues={apiVersion:"2012-08-10",disableHostPrefix:!1,logger:{},regionInfoProvider:Z9.defaultRegionInfoProvider,serviceId:"DynamoDB",urlParser:eQ.parseUrl}});var a0=p(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.ClientDefaultValues=void 0;var tQ=he(),nQ=tQ.__importDefault(tS()),rQ=AC(),e0=Or(),sQ=ch(),iQ=Ec(),aQ=Ah(),t0=zr(),td=ki(),n0=Hc(),r0=Yc(),oQ=Qc(),cQ=Xc(),s0=Zc(),i0=ZC();nd.ClientDefaultValues=u(o({},i0.ClientSharedValues),{runtime:"node",base64Decoder:r0.fromBase64,base64Encoder:r0.toBase64,bodyLengthChecker:oQ.calculateBodyLength,credentialDefaultProvider:rQ.decorateDefaultCredentialProvider(sQ.defaultProvider),defaultUserAgentProvider:cQ.defaultUserAgent({serviceId:i0.ClientSharedValues.serviceId,clientVersion:nQ.default.version}),endpointDiscoveryEnabledProvider:td.loadConfig(aQ.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:td.loadConfig(t0.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:td.loadConfig(e0.NODE_REGION_CONFIG_OPTIONS,e0.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new n0.NodeHttpHandler,retryModeProvider:td.loadConfig(t0.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:iQ.Hash.bind(null,"sha256"),streamCollector:n0.streamCollector,utf8Decoder:s0.fromUtf8,utf8Encoder:s0.toUtf8})});var cr=p(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.DynamoDBClient=void 0;var lQ=Eo(),dQ=a0(),o0=Or(),uQ=al(),mQ=Ah(),c0=ol(),fQ=cl(),l0=zr(),d0=Nn(),u0=ul(),pQ=M(),m0=class extends pQ.Client{constructor(t){let n=o(o({},dQ.ClientDefaultValues),t),r=o0.resolveRegionConfig(n),s=o0.resolveEndpointsConfig(r),i=l0.resolveRetryConfig(s),a=c0.resolveHostHeaderConfig(i),c=d0.resolveAwsAuthConfig(a),l=u0.resolveUserAgentConfig(c),m=mQ.resolveEndpointDiscoveryConfig(l,{endpointDiscoveryCommandCtor:lQ.DescribeEndpointsCommand});super(m);this.config=m,this.middlewareStack.use(l0.getRetryPlugin(this.config)),this.middlewareStack.use(uQ.getContentLengthPlugin(this.config)),this.middlewareStack.use(c0.getHostHeaderPlugin(this.config)),this.middlewareStack.use(fQ.getLoggerPlugin(this.config)),this.middlewareStack.use(d0.getAwsAuthPlugin(this.config)),this.middlewareStack.use(u0.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};rd.DynamoDBClient=m0});var Ch=p(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.BatchExecuteStatementCommand=void 0;var f0=W(),p0=H(),hQ=j(),yQ=M(),h0=class extends yQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(hQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:f0.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:f0.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return p0.serializeAws_json1_0BatchExecuteStatementCommand(t,n)}deserialize(t,n){return p0.deserializeAws_json1_0BatchExecuteStatementCommand(t,n)}};sd.BatchExecuteStatementCommand=h0});var Th=p(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.BatchGetItemCommand=void 0;var y0=W(),g0=H(),gQ=j(),_Q=M(),_0=class extends _Q.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(gQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:y0.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:y0.BatchGetItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return g0.serializeAws_json1_0BatchGetItemCommand(t,n)}deserialize(t,n){return g0.deserializeAws_json1_0BatchGetItemCommand(t,n)}};id.BatchGetItemCommand=_0});var xh=p(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.BatchWriteItemCommand=void 0;var w0=W(),b0=H(),wQ=j(),bQ=M(),S0=class extends bQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(wQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:w0.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:w0.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return b0.serializeAws_json1_0BatchWriteItemCommand(t,n)}deserialize(t,n){return b0.deserializeAws_json1_0BatchWriteItemCommand(t,n)}};ad.BatchWriteItemCommand=S0});var Ih=p(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.CreateBackupCommand=void 0;var v0=W(),E0=H(),SQ=j(),vQ=M(),A0=class extends vQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(SQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:v0.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:v0.CreateBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return E0.serializeAws_json1_0CreateBackupCommand(t,n)}deserialize(t,n){return E0.deserializeAws_json1_0CreateBackupCommand(t,n)}};od.CreateBackupCommand=A0});var Rh=p(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.CreateGlobalTableCommand=void 0;var C0=W(),T0=H(),EQ=j(),AQ=M(),x0=class extends AQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(EQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:C0.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:C0.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return T0.serializeAws_json1_0CreateGlobalTableCommand(t,n)}deserialize(t,n){return T0.deserializeAws_json1_0CreateGlobalTableCommand(t,n)}};cd.CreateGlobalTableCommand=x0});var kh=p(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.CreateTableCommand=void 0;var I0=W(),R0=H(),CQ=j(),TQ=M(),k0=class extends TQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(CQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:I0.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:I0.CreateTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return R0.serializeAws_json1_0CreateTableCommand(t,n)}deserialize(t,n){return R0.deserializeAws_json1_0CreateTableCommand(t,n)}};ld.CreateTableCommand=k0});var Dh=p(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.DeleteBackupCommand=void 0;var D0=W(),N0=H(),xQ=j(),IQ=M(),L0=class extends IQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(xQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:D0.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:D0.DeleteBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return N0.serializeAws_json1_0DeleteBackupCommand(t,n)}deserialize(t,n){return N0.deserializeAws_json1_0DeleteBackupCommand(t,n)}};dd.DeleteBackupCommand=L0});var Nh=p(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.DeleteItemCommand=void 0;var P0=W(),q0=H(),RQ=j(),kQ=M(),M0=class extends kQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(RQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:P0.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:P0.DeleteItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return q0.serializeAws_json1_0DeleteItemCommand(t,n)}deserialize(t,n){return q0.deserializeAws_json1_0DeleteItemCommand(t,n)}};ud.DeleteItemCommand=M0});var Lh=p(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.DeleteTableCommand=void 0;var O0=W(),z0=H(),DQ=j(),NQ=M(),j0=class extends NQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(DQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:O0.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:O0.DeleteTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return z0.serializeAws_json1_0DeleteTableCommand(t,n)}deserialize(t,n){return z0.deserializeAws_json1_0DeleteTableCommand(t,n)}};md.DeleteTableCommand=j0});var Ph=p(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.DescribeBackupCommand=void 0;var U0=W(),B0=H(),LQ=j(),PQ=M(),F0=class extends PQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(LQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:U0.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:U0.DescribeBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return B0.serializeAws_json1_0DescribeBackupCommand(t,n)}deserialize(t,n){return B0.deserializeAws_json1_0DescribeBackupCommand(t,n)}};fd.DescribeBackupCommand=F0});var qh=p(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.DescribeContinuousBackupsCommand=void 0;var G0=W(),$0=H(),qQ=j(),MQ=M(),K0=class extends MQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(qQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:G0.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:G0.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return $0.serializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}deserialize(t,n){return $0.deserializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}};pd.DescribeContinuousBackupsCommand=K0});var Mh=p(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.DescribeContributorInsightsCommand=void 0;var V0=W(),W0=H(),OQ=j(),zQ=M(),H0=class extends zQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(OQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:V0.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:V0.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return W0.serializeAws_json1_0DescribeContributorInsightsCommand(t,n)}deserialize(t,n){return W0.deserializeAws_json1_0DescribeContributorInsightsCommand(t,n)}};hd.DescribeContributorInsightsCommand=H0});var Oh=p(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.DescribeExportCommand=void 0;var Y0=W(),J0=H(),jQ=j(),UQ=M(),Q0=class extends UQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(jQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:Y0.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:Y0.DescribeExportOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return J0.serializeAws_json1_0DescribeExportCommand(t,n)}deserialize(t,n){return J0.deserializeAws_json1_0DescribeExportCommand(t,n)}};yd.DescribeExportCommand=Q0});var zh=p(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.DescribeGlobalTableCommand=void 0;var X0=W(),Z0=H(),BQ=j(),FQ=M(),eT=class extends FQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(BQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:X0.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:X0.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Z0.serializeAws_json1_0DescribeGlobalTableCommand(t,n)}deserialize(t,n){return Z0.deserializeAws_json1_0DescribeGlobalTableCommand(t,n)}};gd.DescribeGlobalTableCommand=eT});var jh=p(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.DescribeGlobalTableSettingsCommand=void 0;var tT=W(),nT=H(),GQ=j(),$Q=M(),rT=class extends $Q.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:tT.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:tT.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return nT.serializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}deserialize(t,n){return nT.deserializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}};_d.DescribeGlobalTableSettingsCommand=rT});var Uh=p(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.DescribeKinesisStreamingDestinationCommand=void 0;var sT=W(),iT=H(),KQ=j(),VQ=M(),aT=class extends VQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:sT.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:sT.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return iT.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return iT.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}};wd.DescribeKinesisStreamingDestinationCommand=aT});var Bh=p(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.DescribeLimitsCommand=void 0;var oT=W(),cT=H(),WQ=j(),HQ=M(),lT=class extends HQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(WQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:oT.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:oT.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return cT.serializeAws_json1_0DescribeLimitsCommand(t,n)}deserialize(t,n){return cT.deserializeAws_json1_0DescribeLimitsCommand(t,n)}};bd.DescribeLimitsCommand=lT});var Mi=p(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.DescribeTableCommand=void 0;var dT=W(),uT=H(),YQ=j(),JQ=M(),mT=class extends JQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:dT.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:dT.DescribeTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return uT.serializeAws_json1_0DescribeTableCommand(t,n)}deserialize(t,n){return uT.deserializeAws_json1_0DescribeTableCommand(t,n)}};Sd.DescribeTableCommand=mT});var Fh=p(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.DescribeTableReplicaAutoScalingCommand=void 0;var fT=W(),pT=H(),QQ=j(),XQ=M(),hT=class extends XQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:fT.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:fT.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return pT.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return pT.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}};vd.DescribeTableReplicaAutoScalingCommand=hT});var Gh=p(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.DescribeTimeToLiveCommand=void 0;var yT=W(),gT=H(),ZQ=j(),eX=M(),_T=class extends eX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(ZQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:yT.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:yT.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return gT.serializeAws_json1_0DescribeTimeToLiveCommand(t,n)}deserialize(t,n){return gT.deserializeAws_json1_0DescribeTimeToLiveCommand(t,n)}};Ed.DescribeTimeToLiveCommand=_T});var $h=p(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.DisableKinesisStreamingDestinationCommand=void 0;var wT=W(),bT=H(),tX=j(),nX=M(),ST=class extends nX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(tX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:wT.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:wT.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return bT.serializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return bT.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}};Ad.DisableKinesisStreamingDestinationCommand=ST});var Kh=p(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.EnableKinesisStreamingDestinationCommand=void 0;var vT=W(),ET=H(),rX=j(),sX=M(),AT=class extends sX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(rX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:vT.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:vT.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ET.serializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return ET.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}};Cd.EnableKinesisStreamingDestinationCommand=AT});var Vh=p(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.ExecuteStatementCommand=void 0;var CT=W(),TT=H(),iX=j(),aX=M(),xT=class extends aX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(iX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:CT.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:CT.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return TT.serializeAws_json1_0ExecuteStatementCommand(t,n)}deserialize(t,n){return TT.deserializeAws_json1_0ExecuteStatementCommand(t,n)}};Td.ExecuteStatementCommand=xT});var Wh=p(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.ExecuteTransactionCommand=void 0;var IT=W(),RT=H(),oX=j(),cX=M(),kT=class extends cX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(oX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:IT.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:IT.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return RT.serializeAws_json1_0ExecuteTransactionCommand(t,n)}deserialize(t,n){return RT.deserializeAws_json1_0ExecuteTransactionCommand(t,n)}};xd.ExecuteTransactionCommand=kT});var Hh=p(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.ExportTableToPointInTimeCommand=void 0;var DT=W(),NT=H(),lX=j(),dX=M(),LT=class extends dX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(lX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:DT.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:DT.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return NT.serializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}deserialize(t,n){return NT.deserializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}};Id.ExportTableToPointInTimeCommand=LT});var Yh=p(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.GetItemCommand=void 0;var PT=W(),qT=H(),uX=j(),mX=M(),MT=class extends mX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(uX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:PT.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:PT.GetItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return qT.serializeAws_json1_0GetItemCommand(t,n)}deserialize(t,n){return qT.deserializeAws_json1_0GetItemCommand(t,n)}};Rd.GetItemCommand=MT});var Jh=p(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.ListBackupsCommand=void 0;var OT=W(),zT=H(),fX=j(),pX=M(),jT=class extends pX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(fX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:OT.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:OT.ListBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return zT.serializeAws_json1_0ListBackupsCommand(t,n)}deserialize(t,n){return zT.deserializeAws_json1_0ListBackupsCommand(t,n)}};kd.ListBackupsCommand=jT});var Nd=p(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.ListContributorInsightsCommand=void 0;var UT=W(),BT=H(),hX=j(),yX=M(),FT=class extends yX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(hX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:UT.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:UT.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return BT.serializeAws_json1_0ListContributorInsightsCommand(t,n)}deserialize(t,n){return BT.deserializeAws_json1_0ListContributorInsightsCommand(t,n)}};Dd.ListContributorInsightsCommand=FT});var Pd=p(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.ListExportsCommand=void 0;var GT=W(),$T=H(),gX=j(),_X=M(),KT=class extends _X.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(gX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:GT.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:GT.ListExportsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return $T.serializeAws_json1_0ListExportsCommand(t,n)}deserialize(t,n){return $T.deserializeAws_json1_0ListExportsCommand(t,n)}};Ld.ListExportsCommand=KT});var Qh=p(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.ListGlobalTablesCommand=void 0;var VT=W(),WT=H(),wX=j(),bX=M(),HT=class extends bX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(wX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:VT.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:VT.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return WT.serializeAws_json1_0ListGlobalTablesCommand(t,n)}deserialize(t,n){return WT.deserializeAws_json1_0ListGlobalTablesCommand(t,n)}};qd.ListGlobalTablesCommand=HT});var Od=p(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.ListTablesCommand=void 0;var YT=W(),JT=H(),SX=j(),vX=M(),QT=class extends vX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(SX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:YT.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:YT.ListTablesOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return JT.serializeAws_json1_0ListTablesCommand(t,n)}deserialize(t,n){return JT.deserializeAws_json1_0ListTablesCommand(t,n)}};Md.ListTablesCommand=QT});var Xh=p(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.ListTagsOfResourceCommand=void 0;var XT=W(),ZT=H(),EX=j(),AX=M(),ex=class extends AX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(EX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:XT.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:XT.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ZT.serializeAws_json1_0ListTagsOfResourceCommand(t,n)}deserialize(t,n){return ZT.deserializeAws_json1_0ListTagsOfResourceCommand(t,n)}};zd.ListTagsOfResourceCommand=ex});var Zh=p(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.PutItemCommand=void 0;var tx=W(),nx=H(),CX=j(),TX=M(),rx=class extends TX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(CX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:tx.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:tx.PutItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return nx.serializeAws_json1_0PutItemCommand(t,n)}deserialize(t,n){return nx.deserializeAws_json1_0PutItemCommand(t,n)}};jd.PutItemCommand=rx});var Bd=p(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.QueryCommand=void 0;var sx=W(),ix=H(),xX=j(),IX=M(),ax=class extends IX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(xX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:sx.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:sx.QueryOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ix.serializeAws_json1_0QueryCommand(t,n)}deserialize(t,n){return ix.deserializeAws_json1_0QueryCommand(t,n)}};Ud.QueryCommand=ax});var ey=p(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.RestoreTableFromBackupCommand=void 0;var ox=W(),cx=H(),RX=j(),kX=M(),lx=class extends kX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(RX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:ox.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:ox.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return cx.serializeAws_json1_0RestoreTableFromBackupCommand(t,n)}deserialize(t,n){return cx.deserializeAws_json1_0RestoreTableFromBackupCommand(t,n)}};Fd.RestoreTableFromBackupCommand=lx});var ty=p(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.RestoreTableToPointInTimeCommand=void 0;var dx=W(),ux=H(),DX=j(),NX=M(),mx=class extends NX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(DX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:dx.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:dx.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ux.serializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}deserialize(t,n){return ux.deserializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}};Gd.RestoreTableToPointInTimeCommand=mx});var Kd=p($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.ScanCommand=void 0;var fx=W(),px=H(),LX=j(),PX=M(),hx=class extends PX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(LX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:fx.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:fx.ScanOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return px.serializeAws_json1_0ScanCommand(t,n)}deserialize(t,n){return px.deserializeAws_json1_0ScanCommand(t,n)}};$d.ScanCommand=hx});var ny=p(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.TagResourceCommand=void 0;var qX=W(),yx=H(),MX=j(),OX=M(),gx=class extends OX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(MX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:qX.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return yx.serializeAws_json1_0TagResourceCommand(t,n)}deserialize(t,n){return yx.deserializeAws_json1_0TagResourceCommand(t,n)}};Vd.TagResourceCommand=gx});var ry=p(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.TransactGetItemsCommand=void 0;var _x=W(),wx=H(),zX=j(),jX=M(),bx=class extends jX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(zX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:_x.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:_x.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return wx.serializeAws_json1_0TransactGetItemsCommand(t,n)}deserialize(t,n){return wx.deserializeAws_json1_0TransactGetItemsCommand(t,n)}};Wd.TransactGetItemsCommand=bx});var sy=p(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.TransactWriteItemsCommand=void 0;var Sx=W(),vx=H(),UX=j(),BX=M(),Ex=class extends BX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(UX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:Sx.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:Sx.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return vx.serializeAws_json1_0TransactWriteItemsCommand(t,n)}deserialize(t,n){return vx.deserializeAws_json1_0TransactWriteItemsCommand(t,n)}};Hd.TransactWriteItemsCommand=Ex});var iy=p(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.UntagResourceCommand=void 0;var FX=W(),Ax=H(),GX=j(),$X=M(),Cx=class extends $X.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:FX.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ax.serializeAws_json1_0UntagResourceCommand(t,n)}deserialize(t,n){return Ax.deserializeAws_json1_0UntagResourceCommand(t,n)}};Yd.UntagResourceCommand=Cx});var ay=p(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.UpdateContinuousBackupsCommand=void 0;var Tx=W(),xx=H(),KX=j(),VX=M(),Ix=class extends VX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:Tx.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:Tx.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return xx.serializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}deserialize(t,n){return xx.deserializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}};Jd.UpdateContinuousBackupsCommand=Ix});var oy=p(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.UpdateContributorInsightsCommand=void 0;var Rx=W(),kx=H(),WX=j(),HX=M(),Dx=class extends HX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(WX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:Rx.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:Rx.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return kx.serializeAws_json1_0UpdateContributorInsightsCommand(t,n)}deserialize(t,n){return kx.deserializeAws_json1_0UpdateContributorInsightsCommand(t,n)}};Qd.UpdateContributorInsightsCommand=Dx});var cy=p(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.UpdateGlobalTableCommand=void 0;var Nx=W(),Lx=H(),YX=j(),JX=M(),Px=class extends JX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:Nx.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:Nx.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Lx.serializeAws_json1_0UpdateGlobalTableCommand(t,n)}deserialize(t,n){return Lx.deserializeAws_json1_0UpdateGlobalTableCommand(t,n)}};Xd.UpdateGlobalTableCommand=Px});var ly=p(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.UpdateGlobalTableSettingsCommand=void 0;var qx=W(),Mx=H(),QX=j(),XX=M(),Ox=class extends XX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:qx.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:qx.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Mx.serializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}deserialize(t,n){return Mx.deserializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}};Zd.UpdateGlobalTableSettingsCommand=Ox});var dy=p(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.UpdateItemCommand=void 0;var zx=W(),jx=H(),ZX=j(),e7=M(),Ux=class extends e7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(ZX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:zx.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:zx.UpdateItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return jx.serializeAws_json1_0UpdateItemCommand(t,n)}deserialize(t,n){return jx.deserializeAws_json1_0UpdateItemCommand(t,n)}};eu.UpdateItemCommand=Ux});var uy=p(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.UpdateTableCommand=void 0;var Bx=W(),Fx=H(),t7=j(),n7=M(),Gx=class extends n7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(t7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:Bx.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:Bx.UpdateTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Fx.serializeAws_json1_0UpdateTableCommand(t,n)}deserialize(t,n){return Fx.deserializeAws_json1_0UpdateTableCommand(t,n)}};tu.UpdateTableCommand=Gx});var my=p(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.UpdateTableReplicaAutoScalingCommand=void 0;var $x=W(),Kx=H(),r7=j(),s7=M(),Vx=class extends s7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(r7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:$x.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:$x.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Kx.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return Kx.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}};nu.UpdateTableReplicaAutoScalingCommand=Vx});var fy=p(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.UpdateTimeToLiveCommand=void 0;var Wx=W(),Hx=H(),i7=j(),a7=M(),Yx=class extends a7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(i7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:Wx.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:Wx.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Hx.serializeAws_json1_0UpdateTimeToLiveCommand(t,n)}deserialize(t,n){return Hx.deserializeAws_json1_0UpdateTimeToLiveCommand(t,n)}};ru.UpdateTimeToLiveCommand=Yx});var Gr=p(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.DynamoDB=void 0;var o7=cr(),c7=Ch(),l7=Th(),d7=xh(),u7=Ih(),m7=Rh(),f7=kh(),p7=Dh(),h7=Nh(),y7=Lh(),g7=Ph(),_7=qh(),w7=Mh(),b7=Eo(),S7=Oh(),v7=zh(),E7=jh(),A7=Uh(),C7=Bh(),T7=Mi(),x7=Fh(),I7=Gh(),R7=$h(),k7=Kh(),D7=Vh(),N7=Wh(),L7=Hh(),P7=Yh(),q7=Jh(),M7=Nd(),O7=Pd(),z7=Qh(),j7=Od(),U7=Xh(),B7=Zh(),F7=Bd(),G7=ey(),$7=ty(),K7=Kd(),V7=ny(),W7=ry(),H7=sy(),Y7=iy(),J7=ay(),Q7=oy(),X7=cy(),Z7=ly(),eZ=dy(),tZ=uy(),nZ=my(),rZ=fy(),Jx=class extends o7.DynamoDBClient{batchExecuteStatement(t,n,r){let s=new c7.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchGetItem(t,n,r){let s=new l7.BatchGetItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchWriteItem(t,n,r){let s=new d7.BatchWriteItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createBackup(t,n,r){let s=new u7.CreateBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createGlobalTable(t,n,r){let s=new m7.CreateGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createTable(t,n,r){let s=new f7.CreateTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteBackup(t,n,r){let s=new p7.DeleteBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteItem(t,n,r){let s=new h7.DeleteItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteTable(t,n,r){let s=new y7.DeleteTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeBackup(t,n,r){let s=new g7.DescribeBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeContinuousBackups(t,n,r){let s=new _7.DescribeContinuousBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeContributorInsights(t,n,r){let s=new w7.DescribeContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeEndpoints(t,n,r){let s=new b7.DescribeEndpointsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeExport(t,n,r){let s=new S7.DescribeExportCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeGlobalTable(t,n,r){let s=new v7.DescribeGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeGlobalTableSettings(t,n,r){let s=new E7.DescribeGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeKinesisStreamingDestination(t,n,r){let s=new A7.DescribeKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeLimits(t,n,r){let s=new C7.DescribeLimitsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTable(t,n,r){let s=new T7.DescribeTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTableReplicaAutoScaling(t,n,r){let s=new x7.DescribeTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTimeToLive(t,n,r){let s=new I7.DescribeTimeToLiveCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}disableKinesisStreamingDestination(t,n,r){let s=new R7.DisableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}enableKinesisStreamingDestination(t,n,r){let s=new k7.EnableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeStatement(t,n,r){let s=new D7.ExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeTransaction(t,n,r){let s=new N7.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}exportTableToPointInTime(t,n,r){let s=new L7.ExportTableToPointInTimeCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getItem(t,n,r){let s=new P7.GetItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listBackups(t,n,r){let s=new q7.ListBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listContributorInsights(t,n,r){let s=new M7.ListContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listExports(t,n,r){let s=new O7.ListExportsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listGlobalTables(t,n,r){let s=new z7.ListGlobalTablesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listTables(t,n,r){let s=new j7.ListTablesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listTagsOfResource(t,n,r){let s=new U7.ListTagsOfResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}putItem(t,n,r){let s=new B7.PutItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}query(t,n,r){let s=new F7.QueryCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}restoreTableFromBackup(t,n,r){let s=new G7.RestoreTableFromBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}restoreTableToPointInTime(t,n,r){let s=new $7.RestoreTableToPointInTimeCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}scan(t,n,r){let s=new K7.ScanCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}tagResource(t,n,r){let s=new V7.TagResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactGetItems(t,n,r){let s=new W7.TransactGetItemsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactWriteItems(t,n,r){let s=new H7.TransactWriteItemsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}untagResource(t,n,r){let s=new Y7.UntagResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateContinuousBackups(t,n,r){let s=new J7.UpdateContinuousBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateContributorInsights(t,n,r){let s=new Q7.UpdateContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateGlobalTable(t,n,r){let s=new X7.UpdateGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateGlobalTableSettings(t,n,r){let s=new Z7.UpdateGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateItem(t,n,r){let s=new eZ.UpdateItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTable(t,n,r){let s=new tZ.UpdateTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTableReplicaAutoScaling(t,n,r){let s=new nZ.UpdateTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTimeToLive(t,n,r){let s=new rZ.UpdateTimeToLiveCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};su.DynamoDB=Jx});var py=p(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.sleep=void 0;var sZ=e=>new Promise(t=>setTimeout(t,e*1e3));iu.sleep=sZ});var ou=p(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.checkExceptions=On.WaiterState=On.waiterServiceDefaults=void 0;On.waiterServiceDefaults={minDelay:2,maxDelay:120};var au;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(au=On.WaiterState||(On.WaiterState={}));var iZ=e=>{if(e.state===au.ABORTED){let t=new Error(`${JSON.stringify(u(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===au.TIMEOUT){let t=new Error(`${JSON.stringify(u(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==au.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};On.checkExceptions=iZ});var Qx=p(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.runPolling=void 0;var aZ=py(),cu=ou(),oZ=(e,t,n,r)=>{if(r>n)return t;let s=e*2**(r-1);return cZ(e,s)},cZ=(e,t)=>e+Math.random()*(t-e),lZ=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:s,abortSignal:i},a,c)=>{var l;let{state:m}=await c(s,a);if(m!==cu.WaiterState.RETRY)return{state:m};let f=1,g=Date.now()+n*1e3,h=Math.log(t/e)/Math.log(2)+1;for(;;){if(((l=r==null?void 0:r.signal)===null||l===void 0?void 0:l.aborted)||(i==null?void 0:i.aborted))return{state:cu.WaiterState.ABORTED};let _=oZ(e,t,h,f);if(Date.now()+_*1e3>g)return{state:cu.WaiterState.TIMEOUT};await aZ.sleep(_);let{state:b}=await c(s,a);if(b!==cu.WaiterState.RETRY)return{state:b};f+=1}};lu.runPolling=lZ});var Xx=p(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.validateWaiterOptions=void 0;var dZ=e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)};du.validateWaiterOptions=dZ});var eI=p(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});var Zx=he();Zx.__exportStar(py(),uu);Zx.__exportStar(Xx(),uu)});var rI=p(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.createWaiter=void 0;var uZ=Qx(),mZ=eI(),tI=ou(),nI=async e=>new Promise(t=>{e.onabort=()=>t({state:tI.WaiterState.ABORTED})}),fZ=async(e,t,n)=>{let r=o(o({},tI.waiterServiceDefaults),e);mZ.validateWaiterOptions(r);let s=[uZ.runPolling(r,t,n)];return e.abortController&&s.push(nI(e.abortController.signal)),e.abortSignal&&s.push(nI(e.abortSignal)),Promise.race(s)};mu.createWaiter=fZ});var hy=p(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});var sI=he();sI.__exportStar(rI(),fu);sI.__exportStar(ou(),fu)});var aI=p(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});Rs.waitUntilTableExists=Rs.waitForTableExists=void 0;var pZ=Mi(),Is=hy(),iI=async(e,t)=>{let n;try{let r=await e.send(new pZ.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:Is.WaiterState.SUCCESS,reason:n}}catch(s){}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Is.WaiterState.RETRY,reason:n}}return{state:Is.WaiterState.RETRY,reason:n}},hZ=async(e,t)=>{let n={minDelay:20,maxDelay:120};return Is.createWaiter(o(o({},n),e),t,iI)};Rs.waitForTableExists=hZ;var yZ=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await Is.createWaiter(o(o({},n),e),t,iI);return Is.checkExceptions(r)};Rs.waitUntilTableExists=yZ});var cI=p(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.waitUntilTableNotExists=ks.waitForTableNotExists=void 0;var gZ=Mi(),Oi=hy(),oI=async(e,t)=>{let n;try{n=await e.send(new gZ.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Oi.WaiterState.SUCCESS,reason:n}}return{state:Oi.WaiterState.RETRY,reason:n}},_Z=async(e,t)=>{let n={minDelay:20,maxDelay:120};return Oi.createWaiter(o(o({},n),e),t,oI)};ks.waitForTableNotExists=_Z;var wZ=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await Oi.createWaiter(o(o({},n),e),t,oI);return Oi.checkExceptions(r)};ks.waitUntilTableNotExists=wZ});var lI=p(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.paginateListContributorInsights=void 0;var bZ=Gr(),SZ=cr(),vZ=Nd(),EZ=async(e,t,...n)=>await e.send(new vZ.ListContributorInsightsCommand(t),...n),AZ=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*CZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof bZ.DynamoDB)i=await AZ(e.client,t,...n);else if(e.client instanceof SZ.DynamoDBClient)i=await EZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.NextToken,s=!!r}return void 0}pu.paginateListContributorInsights=CZ});var dI=p(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.paginateListExports=void 0;var TZ=Gr(),xZ=cr(),IZ=Pd(),RZ=async(e,t,...n)=>await e.send(new IZ.ListExportsCommand(t),...n),kZ=async(e,t,...n)=>await e.listExports(t,...n);async function*DZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof TZ.DynamoDB)i=await kZ(e.client,t,...n);else if(e.client instanceof xZ.DynamoDBClient)i=await RZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.NextToken,s=!!r}return void 0}hu.paginateListExports=DZ});var uI=p(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.paginateListTables=void 0;var NZ=Gr(),LZ=cr(),PZ=Od(),qZ=async(e,t,...n)=>await e.send(new PZ.ListTablesCommand(t),...n),MZ=async(e,t,...n)=>await e.listTables(t,...n);async function*OZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartTableName=r,t.Limit=e.pageSize,e.client instanceof NZ.DynamoDB)i=await MZ(e.client,t,...n);else if(e.client instanceof LZ.DynamoDBClient)i=await qZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedTableName,s=!!r}return void 0}yu.paginateListTables=OZ});var mI=p(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.paginateQuery=void 0;var zZ=Gr(),jZ=cr(),UZ=Bd(),BZ=async(e,t,...n)=>await e.send(new UZ.QueryCommand(t),...n),FZ=async(e,t,...n)=>await e.query(t,...n);async function*GZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof zZ.DynamoDB)i=await FZ(e.client,t,...n);else if(e.client instanceof jZ.DynamoDBClient)i=await BZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedKey,s=!!r}return void 0}gu.paginateQuery=GZ});var fI=p(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.paginateScan=void 0;var $Z=Gr(),KZ=cr(),VZ=Kd(),WZ=async(e,t,...n)=>await e.send(new VZ.ScanCommand(t),...n),HZ=async(e,t,...n)=>await e.scan(t,...n);async function*YZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof $Z.DynamoDB)i=await HZ(e.client,t,...n);else if(e.client instanceof KZ.DynamoDBClient)i=await WZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedKey,s=!!r}return void 0}_u.paginateScan=YZ});var hI=p(pI=>{"use strict";Object.defineProperty(pI,"__esModule",{value:!0})});var yI=p(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var JZ=he();JZ.__exportStar(W(),yy)});var mt=p(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});var F=he();F.__exportStar(cr(),U);F.__exportStar(Gr(),U);F.__exportStar(Ch(),U);F.__exportStar(Th(),U);F.__exportStar(xh(),U);F.__exportStar(Ih(),U);F.__exportStar(Rh(),U);F.__exportStar(kh(),U);F.__exportStar(Dh(),U);F.__exportStar(Nh(),U);F.__exportStar(Lh(),U);F.__exportStar(Ph(),U);F.__exportStar(qh(),U);F.__exportStar(Mh(),U);F.__exportStar(Eo(),U);F.__exportStar(Oh(),U);F.__exportStar(zh(),U);F.__exportStar(jh(),U);F.__exportStar(Uh(),U);F.__exportStar(Bh(),U);F.__exportStar(Mi(),U);F.__exportStar(aI(),U);F.__exportStar(cI(),U);F.__exportStar(Fh(),U);F.__exportStar(Gh(),U);F.__exportStar($h(),U);F.__exportStar(Kh(),U);F.__exportStar(Vh(),U);F.__exportStar(Wh(),U);F.__exportStar(Hh(),U);F.__exportStar(Yh(),U);F.__exportStar(Jh(),U);F.__exportStar(Nd(),U);F.__exportStar(lI(),U);F.__exportStar(Pd(),U);F.__exportStar(dI(),U);F.__exportStar(Qh(),U);F.__exportStar(Od(),U);F.__exportStar(uI(),U);F.__exportStar(Xh(),U);F.__exportStar(Zh(),U);F.__exportStar(Bd(),U);F.__exportStar(mI(),U);F.__exportStar(ey(),U);F.__exportStar(ty(),U);F.__exportStar(Kd(),U);F.__exportStar(fI(),U);F.__exportStar(ny(),U);F.__exportStar(ry(),U);F.__exportStar(sy(),U);F.__exportStar(iy(),U);F.__exportStar(ay(),U);F.__exportStar(oy(),U);F.__exportStar(cy(),U);F.__exportStar(ly(),U);F.__exportStar(dy(),U);F.__exportStar(uy(),U);F.__exportStar(my(),U);F.__exportStar(fy(),U);F.__exportStar(hI(),U);F.__exportStar(yI(),U)});var gy=p($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.convertToAttr=void 0;var QZ=(e,t)=>{var n,r,s,i,a,c;if(e===void 0)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(e===null&&typeof e=="object")return wu();if(Array.isArray(e))return XZ(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return ZZ(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return eee(e,t);if(((s=e==null?void 0:e.constructor)===null||s===void 0?void 0:s.name)==="Object"||!e.constructor&&typeof e=="object")return gI(e,t);if(EI(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?wu():_I(e);if(typeof e=="boolean"||((i=e==null?void 0:e.constructor)===null||i===void 0?void 0:i.name)==="Boolean")return{BOOL:e.valueOf()};if(typeof e=="number"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="Number")return vI(e);if(typeof e=="bigint")return bI(e);if(typeof e=="string"||((c=e==null?void 0:e.constructor)===null||c===void 0?void 0:c.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?wu():wI(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return gI(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};$r.convertToAttr=QZ;var XZ=(e,t)=>({L:e.filter(n=>!(t==null?void 0:t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>$r.convertToAttr(n,t))}),ZZ=(e,t)=>{let n=(t==null?void 0:t.removeUndefinedValues)?new Set([...e].filter(s=>s!==void 0)):e;if(!(t==null?void 0:t.removeUndefinedValues)&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(n.size===0){if(t==null?void 0:t.convertEmptyValues)return wu();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let r=n.values().next().value;if(typeof r=="number")return{NS:Array.from(n).map(vI).map(s=>s.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(bI).map(s=>s.N)};if(typeof r=="string")return{SS:Array.from(n).map(wI).map(s=>s.S)};if(EI(r))return{BS:Array.from(n).map(_I).map(s=>s.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},eee=(e,t)=>({M:(n=>{let r={};for(let[s,i]of n)typeof i!="function"&&(i!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[s]=$r.convertToAttr(i,t));return r})(e)}),gI=(e,t)=>({M:(n=>{let r={};for(let s in n){let i=n[s];typeof i!="function"&&(i!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[s]=$r.convertToAttr(i,t))}return r})(e)}),wu=()=>({NULL:!0}),_I=e=>({B:e}),wI=e=>({S:e.toString()}),bI=e=>({N:e.toString()}),SI=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},vI=e=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map(t=>t.toString()).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return e>Number.MAX_SAFE_INTEGER?SI(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&SI(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},EI=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return(e==null?void 0:e.constructor)?t.includes(e.constructor.name):!1}});var _y=p(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.convertToNative=void 0;var tee=(e,t)=>{for(let[n,r]of Object.entries(e))if(r!==void 0)switch(n){case"NULL":return null;case"BOOL":return Boolean(r);case"N":return AI(r,t);case"B":return TI(r);case"S":return CI(r);case"L":return nee(r,t);case"M":return ree(r,t);case"NS":return new Set(r.map(s=>AI(s,t)));case"BS":return new Set(r.map(TI));case"SS":return new Set(r.map(CI));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};Ds.convertToNative=tee;var AI=(e,t)=>{if(t==null?void 0:t.wrapNumbers)return{value:e};let n=Number(e),r=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!r.includes(n))if(typeof BigInt=="function")try{return BigInt(e)}catch(s){throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return n},CI=e=>e,TI=e=>e,nee=(e,t)=>e.map(n=>Ds.convertToNative(n,t)),ree=(e,t)=>Object.entries(e).reduce((n,[r,s])=>u(o({},n),{[r]:Ds.convertToNative(s,t)}),{})});var xI=p(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.marshall=void 0;var see=gy(),iee=(e,t)=>see.convertToAttr(e,t).M;bu.marshall=iee});var RI=p(II=>{"use strict";Object.defineProperty(II,"__esModule",{value:!0})});var kI=p(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.unmarshall=void 0;var aee=_y(),oee=(e,t)=>aee.convertToNative({M:e},t);Su.unmarshall=oee});var DI=p(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});var zi=he();zi.__exportStar(gy(),Kr);zi.__exportStar(_y(),Kr);zi.__exportStar(xI(),Kr);zi.__exportStar(RI(),Kr);zi.__exportStar(kI(),Kr)});var Et=p(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});Ns.unmarshallOutput=Ns.marshallInput=void 0;var NI=DI(),LI=(e,t,n)=>{if(e)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?wy(e,t,n):cee(e,t,n.children)},PI=(e,t,n)=>Array.isArray(e)?e.map(r=>LI(r,t,n)):LI(e,t,n),wy=(e,t,n)=>n.reduce((r,{key:s,children:i})=>u(o({},r),{[s]:PI(r[s],t,i)}),e),cee=(e,t,n)=>Object.entries(e).reduce((r,[s,i])=>u(o({},r),{[s]:PI(i,t,n)}),{}),lee=(e,t,n)=>wy(e,s=>NI.marshall(s,n),t);Ns.marshallInput=lee;var dee=(e,t,n)=>wy(e,s=>NI.unmarshall(s,n),t);Ns.unmarshallOutput=dee});var by=p(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.BatchExecuteStatementCommand=void 0;var qI=Et(),uee=mt(),mee=M(),MI=class extends mee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new uee.BatchExecuteStatementCommand(qI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:qI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};vu.BatchExecuteStatementCommand=MI});var Sy=p(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.BatchGetCommand=void 0;var OI=Et(),fee=mt(),pee=M(),zI=class extends pee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"Keys"}]}}],this.outputKeyNodes=[{key:"Responses",children:{}},{key:"UnprocessedKeys",children:{children:[{key:"Keys"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new fee.BatchGetItemCommand(OI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:OI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Eu.BatchGetCommand=zI});var vy=p(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.BatchWriteCommand=void 0;var jI=Et(),hee=mt(),yee=M(),UI=class extends yee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}}],this.outputKeyNodes=[{key:"UnprocessedItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}},{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new hee.BatchWriteItemCommand(jI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:jI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Au.BatchWriteCommand=UI});var Ey=p(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.DeleteCommand=void 0;var BI=Et(),gee=mt(),_ee=M(),FI=class extends _ee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new gee.DeleteItemCommand(BI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:BI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Cu.DeleteCommand=FI});var Ay=p(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.ExecuteStatementCommand=void 0;var GI=Et(),wee=mt(),bee=M(),$I=class extends bee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new wee.ExecuteStatementCommand(GI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:GI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Tu.ExecuteStatementCommand=$I});var Cy=p(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.ExecuteTransactionCommand=void 0;var KI=Et(),See=mt(),vee=M(),VI=class extends vee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new See.ExecuteTransactionCommand(KI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:KI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};xu.ExecuteTransactionCommand=VI});var Ty=p(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.GetCommand=void 0;var WI=Et(),Eee=mt(),Aee=M(),HI=class extends Aee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Eee.GetItemCommand(WI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:WI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Iu.GetCommand=HI});var xy=p(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.PutCommand=void 0;var YI=Et(),Cee=mt(),Tee=M(),JI=class extends Tee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Item"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Cee.PutItemCommand(YI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:YI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Ru.PutCommand=JI});var Iy=p(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.QueryCommand=void 0;var QI=Et(),xee=mt(),Iee=M(),XI=class extends Iee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"KeyConditions",children:{children:[{key:"AttributeValueList"}]}},{key:"QueryFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new xee.QueryCommand(QI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:QI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};ku.QueryCommand=XI});var Ry=p(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.ScanCommand=void 0;var ZI=Et(),Ree=mt(),kee=M(),e1=class extends kee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"ScanFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Ree.ScanCommand(ZI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:ZI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Du.ScanCommand=e1});var ky=p(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.TransactGetCommand=void 0;var t1=Et(),Dee=mt(),Nee=M(),n1=class extends Nee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"Get",children:[{key:"Key"}]}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Dee.TransactGetItemsCommand(t1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:t1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Nu.TransactGetCommand=n1});var Dy=p(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.TransactWriteCommand=void 0;var r1=Et(),Lee=mt(),Pee=M(),s1=class extends Pee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"ConditionCheck",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Put",children:[{key:"Item"},{key:"ExpressionAttributeValues"}]},{key:"Delete",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Update",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]}]}],this.outputKeyNodes=[{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Lee.TransactWriteItemsCommand(r1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:r1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Lu.TransactWriteCommand=s1});var Ny=p(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.UpdateCommand=void 0;var i1=Et(),qee=mt(),Mee=M(),a1=class extends Mee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"AttributeUpdates",children:{children:[{key:"Value"}]}},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new qee.UpdateItemCommand(i1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:i1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Pu.UpdateCommand=a1});var Ly=p(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.DynamoDBDocumentClient=void 0;var Oee=M(),qu=class extends Oee.Client{constructor(t,n){super(t.config);this.config=t.config,this.config.translateConfig=n,this.middlewareStack=t.middlewareStack}static from(t,n){return new qu(t,n)}destroy(){}};Mu.DynamoDBDocumentClient=qu});var o1=p(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.DynamoDBDocument=void 0;var zee=Ly(),jee=by(),Uee=Sy(),Bee=vy(),Fee=Ey(),Gee=Ay(),$ee=Cy(),Kee=Ty(),Vee=xy(),Wee=Iy(),Hee=Ry(),Yee=ky(),Jee=Dy(),Qee=Ny(),Ou=class extends zee.DynamoDBDocumentClient{static from(t,n){return new Ou(t,n)}batchExecuteStatement(t,n,r){let s=new jee.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchGet(t,n,r){let s=new Uee.BatchGetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchWrite(t,n,r){let s=new Bee.BatchWriteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}delete(t,n,r){let s=new Fee.DeleteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeStatement(t,n,r){let s=new Gee.ExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeTransaction(t,n,r){let s=new $ee.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}get(t,n,r){let s=new Kee.GetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}put(t,n,r){let s=new Vee.PutCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}query(t,n,r){let s=new Wee.QueryCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}scan(t,n,r){let s=new Hee.ScanCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactGet(t,n,r){let s=new Yee.TransactGetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactWrite(t,n,r){let s=new Jee.TransactWriteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}update(t,n,r){let s=new Qee.UpdateCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};zu.DynamoDBDocument=Ou});var c1=p(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});var ft=he();ft.__exportStar(by(),Ze);ft.__exportStar(Sy(),Ze);ft.__exportStar(vy(),Ze);ft.__exportStar(Ey(),Ze);ft.__exportStar(Ay(),Ze);ft.__exportStar(Cy(),Ze);ft.__exportStar(Ty(),Ze);ft.__exportStar(xy(),Ze);ft.__exportStar(Iy(),Ze);ft.__exportStar(Ry(),Ze);ft.__exportStar(ky(),Ze);ft.__exportStar(Dy(),Ze);ft.__exportStar(Ny(),Ze);ft.__exportStar(Ly(),Ze);ft.__exportStar(o1(),Ze)});var d1=p(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.DBManager=void 0;var Xee=c1(),l1=class{constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=Xee.DynamoDBDocument.from(this._client)}get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};ju.DBManager=l1});var u1=p(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.TransformationType=void 0;var Zee;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Zee=ji.TransformationType||(ji.TransformationType={}))});var Ui=p(Vr=>{"use strict";var ete=Vr&&Vr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),tte=Vr&&Vr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ete(t,e,n)};Object.defineProperty(Vr,"__esModule",{value:!0});tte(u1(),Vr)});var f1=p(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.MetadataStorage=void 0;var zn=Ui(),m1=class{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)}addTransformMetadata(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)}addExposeMetadata(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)}addExcludeMetadata(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)}findTransformMetadatas(t,n,r){return this.findMetadatas(this._transformMetadatas,t,n).filter(s=>!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?r===zn.TransformationType.CLASS_TO_CLASS||r===zn.TransformationType.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?r===zn.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,n){return this.findMetadata(this._excludeMetadatas,t,n)}findExposeMetadata(t,n){return this.findMetadata(this._exposeMetadatas,t,n)}findExposeMetadataByCustomName(t,n){return this.getExposedMetadatas(t).find(r=>r.options&&r.options.name===n)}findTypeMetadata(t,n){return this.findMetadata(this._typeMetadatas,t,n)}getStrategy(t){let n=this._excludeMetadatas.get(t),r=n&&n.get(void 0),s=this._exposeMetadatas.get(t),i=s&&s.get(void 0);return r&&i||!r&&!i?"none":r?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,n){return this.getExposedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===zn.TransformationType.CLASS_TO_CLASS||n===zn.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===zn.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}getExcludedProperties(t,n){return this.getExcludedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===zn.TransformationType.CLASS_TO_CLASS||n===zn.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===zn.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,n){let r=t.get(n),s;r&&(s=Array.from(r.values()).filter(a=>a.propertyName!==void 0));let i=[];for(let a of this.getAncestors(n)){let c=t.get(a);if(c){let l=Array.from(c.values()).filter(m=>m.propertyName!==void 0);i.push(...l)}}return i.concat(s||[])}findMetadata(t,n,r){let s=t.get(n);if(s){let i=s.get(r);if(i)return i}for(let i of this.getAncestors(n)){let a=t.get(i);if(a){let c=a.get(r);if(c)return c}}}findMetadatas(t,n,r){let s=t.get(n),i;s&&(i=s.get(r));let a=[];for(let c of this.getAncestors(n)){let l=t.get(c);l&&l.has(r)&&a.push(...l.get(r))}return a.slice().reverse().concat((i||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let n=[];for(let r=Object.getPrototypeOf(t.prototype.constructor);typeof r.prototype!="undefined";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};Uu.MetadataStorage=m1});var Ls=p(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.defaultMetadataStorage=void 0;var nte=f1();Bu.defaultMetadataStorage=new nte.MetadataStorage});var p1=p(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.getGlobal=void 0;function rte(){if(typeof globalThis!="undefined")return globalThis;if(typeof global!="undefined")return global;if(typeof window!="undefined")return window;if(typeof self!="undefined")return self}Fu.getGlobal=rte});var h1=p(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.isPromise=void 0;function ste(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Gu.isPromise=ste});var g1=p(lr=>{"use strict";var ite=lr&&lr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),y1=lr&&lr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ite(t,e,n)};Object.defineProperty(lr,"__esModule",{value:!0});y1(p1(),lr);y1(h1(),lr)});var b1=p($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.TransformOperationExecutor=void 0;var $t=Ls(),ze=Ui(),_1=g1();function ate(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var w1=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,s,i,a=0){if(Array.isArray(n)||n instanceof Set){let c=s&&this.transformationType===ze.TransformationType.PLAIN_TO_CLASS?ate(s):[];return n.forEach((l,m)=>{let f=t?t[m]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(l)){let g;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){g=r.options.discriminator.subTypes.find(E=>E.name===l[r.options.discriminator.property]);let _={newObject:c,object:l,property:void 0},b=r.typeFunction(_);g===void 0?g=b:g=g.value,r.options.keepDiscriminatorProperty||delete l[r.options.discriminator.property]}this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(g=l.constructor),this.transformationType===ze.TransformationType.CLASS_TO_PLAIN&&(l[r.options.discriminator.property]=r.options.discriminator.subTypes.find(_=>_.value===l.constructor).name)}else g=r;let h=this.transform(f,l,g,void 0,l instanceof Map,a+1);c instanceof Set?c.add(h):c.push(h)}else this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(c instanceof Set?c.add(l):c.push(l))}),c}else{if(r===String&&!i)return n==null?n:String(n);if(r===Number&&!i)return n==null?n:Number(n);if(r===Boolean&&!i)return n==null?n:Boolean(n);if((r===Date||n instanceof Date)&&!i)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!_1.getGlobal().Buffer&&(r===Buffer||n instanceof Buffer)&&!i)return n==null?n:Buffer.from(n);if(_1.isPromise(n)&&!i)return new Promise((c,l)=>{n.then(m=>c(this.transform(void 0,m,r,void 0,void 0,a+1)),l)});if(!i&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!r&&n.constructor!==Object&&(r=n.constructor),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let c=this.getKeys(r,n,i),l=t||{};!t&&(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS||this.transformationType===ze.TransformationType.CLASS_TO_CLASS)&&(i?l=new Map:r?l=new r:l={});for(let m of c){if(m==="__proto__"||m==="constructor")continue;let f=m,g=m,h=m;if(!this.options.ignoreDecorators&&r){if(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){let R=$t.defaultMetadataStorage.findExposeMetadataByCustomName(r,m);R&&(h=R.propertyName,g=R.propertyName)}else if(this.transformationType===ze.TransformationType.CLASS_TO_PLAIN||this.transformationType===ze.TransformationType.CLASS_TO_CLASS){let R=$t.defaultMetadataStorage.findExposeMetadata(r,m);R&&R.options&&R.options.name&&(g=R.options.name)}}let _;n instanceof Map?_=n.get(f):n[f]instanceof Function?_=n[f]():_=n[f];let b,E=_ instanceof Map;if(r&&i)b=r;else if(r){let R=$t.defaultMetadataStorage.findTypeMetadata(r,h);if(R){let K={newObject:l,object:n,property:h},gt=R.typeFunction?R.typeFunction(K):R.reflectedType;R.options&&R.options.discriminator&&R.options.discriminator.property&&R.options.discriminator.subTypes?n[f]instanceof Array?b=R:(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS&&(b=R.options.discriminator.subTypes.find(fe=>{if(_&&_ instanceof Object&&R.options.discriminator.property in _)return fe.name===_[R.options.discriminator.property]}),b===void 0?b=gt:b=b.value,R.options.keepDiscriminatorProperty||_&&_ instanceof Object&&R.options.discriminator.property in _&&delete _[R.options.discriminator.property]),this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(b=_.constructor),this.transformationType===ze.TransformationType.CLASS_TO_PLAIN&&(_[R.options.discriminator.property]=R.options.discriminator.subTypes.find(fe=>fe.value===_.constructor).name)):b=gt,E=E||R.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(K=>K.target===r&&!!K.properties[h]).forEach(K=>b=K.properties[h]);else if(this.options.enableImplicitConversion&&this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){let K=Reflect.getMetadata("design:type",r.prototype,h);K&&(b=K)}}let D=Array.isArray(n[f])?this.getReflectedType(r,h):void 0,k=t?t[f]:void 0;if(l.constructor.prototype){let R=Object.getOwnPropertyDescriptor(l.constructor.prototype,g);if((this.transformationType===ze.TransformationType.PLAIN_TO_CLASS||this.transformationType===ze.TransformationType.CLASS_TO_CLASS)&&(R&&!R.set||l[g]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(_)){let R=this.transformationType===ze.TransformationType.PLAIN_TO_CLASS?g:m,K;this.transformationType===ze.TransformationType.CLASS_TO_PLAIN?(K=n[R],K=this.applyCustomTransformations(K,r,R,n,this.transformationType),K=n[R]===K?_:K,K=this.transform(k,K,b,D,E,a+1)):_===void 0&&this.options.exposeDefaultValues?K=l[g]:(K=this.transform(k,_,b,D,E,a+1),K=this.applyCustomTransformations(K,r,R,n,this.transformationType)),(K!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(g,K):l[g]=K)}else if(this.transformationType===ze.TransformationType.CLASS_TO_CLASS){let R=_;R=this.applyCustomTransformations(R,r,m,n,this.transformationType),(R!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(g,R):l[g]=R)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),l}else return n}}applyCustomTransformations(t,n,r,s,i){let a=$t.defaultMetadataStorage.findTransformMetadatas(n,r,this.transformationType);return this.options.version!==void 0&&(a=a.filter(c=>c.options?this.checkVersion(c.options.since,c.options.until):!0)),this.options.groups&&this.options.groups.length?a=a.filter(c=>c.options?this.checkGroups(c.options.groups):!0):a=a.filter(c=>!c.options||!c.options.groups||!c.options.groups.length),a.forEach(c=>{t=c.transformFn({value:t,key:r,obj:s,type:i,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,n){if(!t)return;let r=$t.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let s=$t.defaultMetadataStorage.getStrategy(t);s==="none"&&(s=this.options.strategy||"exposeAll");let i=[];if((s==="exposeAll"||r)&&(n instanceof Map?i=Array.from(n.keys()):i=Object.keys(n)),r)return i;if(!this.options.ignoreDecorators&&t){let a=$t.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===ze.TransformationType.PLAIN_TO_CLASS&&(a=a.map(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return m&&m.options&&m.options.name?m.options.name:l})),this.options.excludeExtraneousValues?i=a:i=i.concat(a);let c=$t.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);c.length>0&&(i=i.filter(l=>!c.includes(l))),this.options.version!==void 0&&(i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options?!0:this.checkVersion(m.options.since,m.options.until)})),this.options.groups&&this.options.groups.length?i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options?!0:this.checkGroups(m.options.groups)}):i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options||!m.options.groups||!m.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(i=i.filter(a=>this.options.excludePrefixes.every(c=>a.substr(0,c.length)!==c))),i=i.filter((a,c,l)=>l.indexOf(a)===c),i}checkVersion(t,n){let r=!0;return r&&t&&(r=this.options.version>=t),r&&n&&(r=this.options.version<n),r}checkGroups(t){return t?this.options.groups.some(n=>t.includes(n)):!0}};$u.TransformOperationExecutor=w1});var S1=p(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.defaultOptions=void 0;Ku.defaultOptions={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0}});var Os=p(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.ClassTransformer=void 0;var Ps=b1(),qs=Ui(),Ms=S1(),v1=class{classToPlain(t,n){return new Ps.TransformOperationExecutor(qs.TransformationType.CLASS_TO_PLAIN,o(o({},Ms.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new Ps.TransformOperationExecutor(qs.TransformationType.CLASS_TO_PLAIN,o(o({},Ms.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToClass(t,n,r){return new Ps.TransformOperationExecutor(qs.TransformationType.PLAIN_TO_CLASS,o(o({},Ms.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new Ps.TransformOperationExecutor(qs.TransformationType.PLAIN_TO_CLASS,o(o({},Ms.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}classToClass(t,n){return new Ps.TransformOperationExecutor(qs.TransformationType.CLASS_TO_CLASS,o(o({},Ms.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new Ps.TransformOperationExecutor(qs.TransformationType.CLASS_TO_CLASS,o(o({},Ms.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.classToPlain(t,n))}deserialize(t,n,r){let s=JSON.parse(n);return this.plainToClass(t,s,r)}deserializeArray(t,n,r){let s=JSON.parse(n);return this.plainToClass(t,s,r)}};Vu.ClassTransformer=v1});var E1=p(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Exclude=void 0;var ote=Ls();function cte(e={}){return function(t,n){ote.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}Wu.Exclude=cte});var A1=p(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.Expose=void 0;var lte=Ls();function dte(e={}){return function(t,n){lte.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}Hu.Expose=dte});var C1=p(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.TransformClassToClass=void 0;var ute=Os();function mte(e){return function(t,n,r){let s=new ute.ClassTransformer,i=r.value;r.value=function(...a){let c=i.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(m=>s.classToClass(m,e)):s.classToClass(c,e)}}}Yu.TransformClassToClass=mte});var T1=p(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.TransformClassToPlain=void 0;var fte=Os();function pte(e){return function(t,n,r){let s=new fte.ClassTransformer,i=r.value;r.value=function(...a){let c=i.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(m=>s.classToPlain(m,e)):s.classToPlain(c,e)}}}Ju.TransformClassToPlain=pte});var x1=p(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.TransformPlainToClass=void 0;var hte=Os();function yte(e,t){return function(n,r,s){let i=new hte.ClassTransformer,a=s.value;s.value=function(...c){let l=a.apply(this,c);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(f=>i.plainToClass(e,f,t)):i.plainToClass(e,l,t)}}}Qu.TransformPlainToClass=yte});var I1=p(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.Transform=void 0;var gte=Ls();function _te(e,t={}){return function(n,r){gte.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}Xu.Transform=_te});var R1=p(Zu=>{"use strict";Object.defineProperty(Zu,"__esModule",{value:!0});Zu.Type=void 0;var wte=Ls();function bte(e,t={}){return function(n,r){let s=Reflect.getMetadata("design:type",n,r);wte.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:s,typeFunction:e,options:t})}}Zu.Type=bte});var k1=p(qt=>{"use strict";var Ste=qt&&qt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Wr=qt&&qt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ste(t,e,n)};Object.defineProperty(qt,"__esModule",{value:!0});Wr(E1(),qt);Wr(A1(),qt);Wr(C1(),qt);Wr(T1(),qt);Wr(x1(),qt);Wr(I1(),qt);Wr(R1(),qt)});var N1=p(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0})});var P1=p(L1=>{"use strict";Object.defineProperty(L1,"__esModule",{value:!0})});var M1=p(q1=>{"use strict";Object.defineProperty(q1,"__esModule",{value:!0})});var z1=p(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0})});var U1=p(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0})});var F1=p(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0})});var $1=p(G1=>{"use strict";Object.defineProperty(G1,"__esModule",{value:!0})});var V1=p(K1=>{"use strict";Object.defineProperty(K1,"__esModule",{value:!0})});var H1=p(W1=>{"use strict";Object.defineProperty(W1,"__esModule",{value:!0})});var J1=p(Y1=>{"use strict";Object.defineProperty(Y1,"__esModule",{value:!0})});var X1=p(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0})});var eR=p(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0})});var nR=p(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0})});var sR=p(rR=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0})});var iR=p(je=>{"use strict";var vte=je&&je.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),At=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&vte(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});At(N1(),je);At(P1(),je);At(M1(),je);At(z1(),je);At(U1(),je);At(F1(),je);At($1(),je);At(V1(),je);At(H1(),je);At(J1(),je);At(X1(),je);At(eR(),je);At(nR(),je);At(sR(),je)});var em=p(we=>{"use strict";var Ete=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Py=we&&we.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ete(t,e,n)};Object.defineProperty(we,"__esModule",{value:!0});we.deserializeArray=we.deserialize=we.serialize=we.classToClassFromExist=we.classToClass=we.plainToClassFromExist=we.plainToClass=we.classToPlainFromExist=we.classToPlain=we.ClassTransformer=void 0;var Ate=Os(),Cte=Os();Object.defineProperty(we,"ClassTransformer",{enumerable:!0,get:function(){return Cte.ClassTransformer}});Py(k1(),we);Py(iR(),we);Py(Ui(),we);var jn=new Ate.ClassTransformer;function Tte(e,t){return jn.classToPlain(e,t)}we.classToPlain=Tte;function xte(e,t,n){return jn.classToPlainFromExist(e,t,n)}we.classToPlainFromExist=xte;function Ite(e,t,n){return jn.plainToClass(e,t,n)}we.plainToClass=Ite;function Rte(e,t,n){return jn.plainToClassFromExist(e,t,n)}we.plainToClassFromExist=Rte;function kte(e,t){return jn.classToClass(e,t)}we.classToClass=kte;function Dte(e,t,n){return jn.classToClassFromExist(e,t,n)}we.classToClassFromExist=Dte;function Nte(e,t){return jn.serialize(e,t)}we.serialize=Nte;function Lte(e,t,n){return jn.deserialize(e,t,n)}we.deserialize=Lte;function Pte(e,t,n){return jn.deserializeArray(e,t,n)}we.deserializeArray=Pte});var qy=p(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.Rules=void 0;var qte=em(),tm=class{constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}static async Load(t){let{dbManager:n,key:r}=t,{Item:s}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"rules"}});return qte.plainToClass(tm,s)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async Save(t){let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){return`appName#${this.AppName}`.toLowerCase()}get SK(){return"rules"}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get RuleSet(){return this._ruleSet}set RuleSet(t){this._ruleSet=t}get Version(){return this._version}set Version(t){this._version=t}};nm.Rules=tm});var My=p(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.Version=void 0;var aR=em(),zs;(function(e){e[e.AppName=0]="AppName"})(zs||(zs={}));var Bi=class{constructor(t){this._keyBy=zs.AppName,this._status="pending",this._defaultFile="",this._integrationID="",Object.assign(this,t)}static async LoadVersions(t){let{dbManager:n,key:r}=t,{Items:s}=await n.ddbDocClient.query({TableName:n.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${r.AppName}`.toLowerCase(),":skval":"version"}}),i=[];if(s!==void 0)for(let a of s){let c=aR.plainToClass(Bi,a);i.push(c)}return i}static async LoadVersion(t){let{dbManager:n,key:r}=t,{Item:s}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}});return aR.plainToClass(Bi,s)}get PK(){switch(this._keyBy){case zs.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID}}async Save(t){this._keyBy=zs.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case zs.AppName:return`version#${this.SemVer}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get SemVer(){return this._semVer}set SemVer(t){this._semVer=t}get Type(){return this._type}set Type(t){this._type=t}get Status(){return this._status}set Status(t){this._status=t}get DefaultFile(){return this._defaultFile}set DefaultFile(t){this._defaultFile=t}get IntegrationID(){return this._integrationID}set IntegrationID(t){this._integrationID=t}};rm.Version=Bi});var lR=p(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.Application=void 0;var oR=em(),cR=qy(),Mte=My(),Un;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(Un||(Un={}));var Fi=class{constructor(t){Object.assign(this,t),this._keyBy=Un.AppName}static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,s=await cR.Rules.Load({dbManager:n,key:r}),i=s.RuleSet.default;i.SemVer=r.SemVer,await s.Save(n)}static async GetVersionsAndRules(t){let{key:n,dbManager:r}=t,s=Mte.Version.LoadVersions({dbManager:r,key:n}),i=cR.Rules.Load({dbManager:r,key:n});return await Promise.all([s,i]),{Versions:await s,Rules:await i}}static async Load(t){let{key:n,dbManager:r}=t,{Item:s}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"application"}});return oR.plainToClass(Fi,s)}static async LoadAllApps(t){let{Items:n}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),r=[];if(n!==void 0)for(let s of n){let i=oR.plainToClass(Fi,s);r.push(i)}return r}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=Un.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=Un.Applications;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){switch(this._keyBy){case Un.Applications:return"applications";case Un.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case Un.Applications:return`appName#${this.AppName}`.toLowerCase();case Un.AppName:return"application";default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get DisplayName(){return this._displayName}set DisplayName(t){this._displayName=t}};sm.Application=Fi});var dR=p(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Rules=En.Version=En.DBManager=En.Application=void 0;var Ote=d1();Object.defineProperty(En,"DBManager",{enumerable:!0,get:function(){return Ote.DBManager}});var zte=lR();Object.defineProperty(En,"Application",{enumerable:!0,get:function(){return zte.Application}});var jte=qy();Object.defineProperty(En,"Rules",{enumerable:!0,get:function(){return jte.Rules}});var Ute=My();Object.defineProperty(En,"Version",{enumerable:!0,get:function(){return Ute.Version}})});var Ct=p(Oy=>{"use strict";Oy.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((n,r)=>{e.call(this,...t,(s,i)=>s!=null?r(s):n(i))})},"name",{value:e.name})};Oy.fromPromise=function(e){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>n(null,r),n)},"name",{value:e.name})}});var mR=p((Ghe,uR)=>{var dr=require("constants"),Bte=process.cwd,im=null,Fte=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return im||(im=Bte.call(process)),im};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(zy=process.chdir,process.chdir=function(e){im=null,zy.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,zy));var zy;uR.exports=Gte;function Gte(e){dr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(f,g,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(f,g,h,_){_&&process.nextTick(_)},e.lchownSync=function(){}),Fte==="win32"&&(e.rename=function(f){return function(g,h,_){var b=Date.now(),E=0;f(g,h,function D(k){if(k&&(k.code==="EACCES"||k.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){e.stat(h,function(R,K){R&&R.code==="ENOENT"?f(g,h,D):_(k)})},E),E<100&&(E+=10);return}_&&_(k)})}}(e.rename)),e.read=function(f){function g(h,_,b,E,D,k){var R;if(k&&typeof k=="function"){var K=0;R=function(gt,fe,Er){if(gt&>.code==="EAGAIN"&&K<10)return K++,f.call(e,h,_,b,E,D,R);k.apply(this,arguments)}}return f.call(e,h,_,b,E,D,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(g,f),g}(e.read),e.readSync=function(f){return function(g,h,_,b,E){for(var D=0;;)try{return f.call(e,g,h,_,b,E)}catch(k){if(k.code==="EAGAIN"&&D<10){D++;continue}throw k}}}(e.readSync);function t(f){f.lchmod=function(g,h,_){f.open(g,dr.O_WRONLY|dr.O_SYMLINK,h,function(b,E){if(b){_&&_(b);return}f.fchmod(E,h,function(D){f.close(E,function(k){_&&_(D||k)})})})},f.lchmodSync=function(g,h){var _=f.openSync(g,dr.O_WRONLY|dr.O_SYMLINK,h),b=!0,E;try{E=f.fchmodSync(_,h),b=!1}finally{if(b)try{f.closeSync(_)}catch(D){}else f.closeSync(_)}return E}}function n(f){dr.hasOwnProperty("O_SYMLINK")?(f.lutimes=function(g,h,_,b){f.open(g,dr.O_SYMLINK,function(E,D){if(E){b&&b(E);return}f.futimes(D,h,_,function(k){f.close(D,function(R){b&&b(k||R)})})})},f.lutimesSync=function(g,h,_){var b=f.openSync(g,dr.O_SYMLINK),E,D=!0;try{E=f.futimesSync(b,h,_),D=!1}finally{if(D)try{f.closeSync(b)}catch(k){}else f.closeSync(b)}return E}):(f.lutimes=function(g,h,_,b){b&&process.nextTick(b)},f.lutimesSync=function(){})}function r(f){return f&&function(g,h,_){return f.call(e,g,h,function(b){m(b)&&(b=null),_&&_.apply(this,arguments)})}}function s(f){return f&&function(g,h){try{return f.call(e,g,h)}catch(_){if(!m(_))throw _}}}function i(f){return f&&function(g,h,_,b){return f.call(e,g,h,_,function(E){m(E)&&(E=null),b&&b.apply(this,arguments)})}}function a(f){return f&&function(g,h,_){try{return f.call(e,g,h,_)}catch(b){if(!m(b))throw b}}}function c(f){return f&&function(g,h,_){typeof h=="function"&&(_=h,h=null);function b(E,D){D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),_&&_.apply(this,arguments)}return h?f.call(e,g,h,b):f.call(e,g,b)}}function l(f){return f&&function(g,h){var _=h?f.call(e,g,h):f.call(e,g);return _.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296),_}}function m(f){if(!f||f.code==="ENOSYS")return!0;var g=!process.getuid||process.getuid()!==0;return!!(g&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var hR=p(($he,pR)=>{var fR=require("stream").Stream;pR.exports=$te;function $te(e){return{ReadStream:t,WriteStream:n};function t(r,s){if(!(this instanceof t))return new t(r,s);fR.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var a=Object.keys(s),c=0,l=a.length;c<l;c++){var m=a[c];this[m]=s[m]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}e.open(this.path,this.flags,this.mode,function(f,g){if(f){i.emit("error",f),i.readable=!1;return}i.fd=g,i.emit("open",g),i._read()})}function n(r,s){if(!(this instanceof n))return new n(r,s);fR.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),a=0,c=i.length;a<c;a++){var l=i[a];this[l]=s[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var gR=p((Khe,yR)=>{"use strict";yR.exports=Vte;var Kte=Object.getPrototypeOf||function(e){return e.__proto__};function Vte(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Kte(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var at=p((Vhe,Uy)=>{var et=require("fs"),Wte=mR(),Hte=hR(),Yte=gR(),am=require("util"),Qt,om;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Qt=Symbol.for("graceful-fs.queue"),om=Symbol.for("graceful-fs.previous")):(Qt="___graceful-fs.queue",om="___graceful-fs.previous");function Jte(){}function _R(e,t){Object.defineProperty(e,Qt,{get:function(){return t}})}var Gi=Jte;am.debuglog?Gi=am.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Gi=function(){var e=am.format.apply(am,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
22
|
-
GFS4: `),console.error(e)});et[Qt]||(wR=global[Qt]||[],_R(et,wR),et.close=function(e){function t(n,r){return e.call(et,n,function(s){s||ur(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,
|
|
21
|
+
${Zo.toHex(i)}`}getCanonicalPath({path:t}){return this.uriEscapePath?`/${encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/")}`:t}async getSignature(t,n,r,s){let i=await this.createStringToSign(t,n,s),a=new this.sha256(await r);return a.update(i),Zo.toHex(await a.digest())}getSigningKey(t,n,r,s){return ec.getSigningKey(this.sha256,t,r,n,s||this.service)}};nc.SignatureV4=Sv;var tc=e=>{let t=h8.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},vv=e=>Object.keys(e).sort().join(";"),y8=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}else return e},g8=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}else return e}});var Cv=p(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});var Av=he();Av.__exportStar(_p(),rc);Av.__exportStar(Ev(),rc)});var Iv=p(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.resolveSigV4AuthConfig=bs.resolveAwsAuthConfig=void 0;var _8=st(),Tv=Cv(),w8=3e5,b8=e=>{let t=e.credentials?xv(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=e,i;return e.signer?i=Ai(e.signer):i=()=>Ai(e.region)().then(async a=>[await e.regionInfoProvider(a)||{},a]).then(([a,c])=>{let{signingRegion:l,signingService:m}=a;return e.signingRegion=e.signingRegion||l||c,e.signingName=e.signingName||m||e.serviceId,new Tv.SignatureV4({credentials:t,region:e.signingRegion,service:e.signingName,sha256:s,uriEscapePath:n})}),u(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:i})};bs.resolveAwsAuthConfig=b8;var S8=e=>{let t=e.credentials?xv(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:s}=e,i;return e.signer?i=Ai(e.signer):i=Ai(new Tv.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:s,uriEscapePath:n})),u(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:i})};bs.resolveSigV4AuthConfig=S8;var Ai=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},xv=e=>typeof e=="function"?_8.memoize(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<w8,t=>t.expiration!==void 0):Ai(e)});var kv=p(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getSigV4AuthPlugin=jt.getAwsAuthPlugin=jt.awsAuthMiddlewareOptions=jt.awsAuthMiddleware=void 0;var v8=Dt(),E8=(e,t)=>Math.abs(A8(t).getTime()-e)>=3e5,A8=e=>new Date(Date.now()+e);function Rv(e){return(t,n)=>async function(r){if(!v8.HttpRequest.isInstance(r.request))return t(r);let s=typeof e.signer=="function"?await e.signer():e.signer,i=await t(u(o({},r),{request:await s.sign(r.request,{signingDate:new Date(Date.now()+e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})})),{headers:a}=i.response,c=a&&(a.date||a.Date);if(c){let l=Date.parse(c);E8(l,e.systemClockOffset)&&(e.systemClockOffset=l-Date.now())}return i}}jt.awsAuthMiddleware=Rv;jt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var C8=e=>({applyToStack:t=>{t.addRelativeTo(Rv(e),jt.awsAuthMiddlewareOptions)}});jt.getAwsAuthPlugin=C8;jt.getSigV4AuthPlugin=jt.getAwsAuthPlugin});var Ln=p(sc=>{"use strict";Object.defineProperty(sc,"__esModule",{value:!0});var Dv=he();Dv.__exportStar(Iv(),sc);Dv.__exportStar(kv(),sc)});var ac=p(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.AssumeRoleCommand=void 0;var Lv=sn(),Pv=Dn(),T8=j(),x8=Ln(),I8=M(),Nv=class extends I8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(T8.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(x8.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:Lv.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:Lv.AssumeRoleResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Pv.serializeAws_queryAssumeRoleCommand(t,n)}deserialize(t,n){return Pv.deserializeAws_queryAssumeRoleCommand(t,n)}};ic.AssumeRoleCommand=Nv});var cc=p(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.AssumeRoleWithWebIdentityCommand=void 0;var qv=sn(),Mv=Dn(),R8=j(),k8=M(),Ov=class extends k8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(R8.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:qv.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:qv.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Mv.serializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}deserialize(t,n){return Mv.deserializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}};oc.AssumeRoleWithWebIdentityCommand=Ov});var Cp=p(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.decorateDefaultCredentialProvider=ln.getDefaultRoleAssumerWithWebIdentity=ln.getDefaultRoleAssumer=void 0;var D8=ac(),L8=cc(),zv="us-east-1",jv=e=>typeof e!="function"?e===void 0?zv:e:async()=>{try{return await e()}catch(t){return zv}},P8=(e,t)=>{let n,r;return async(s,i)=>{if(r=s,!n){let{logger:c,region:l,requestHandler:m}=e;n=new t(o({logger:c,credentialDefaultProvider:()=>async()=>r,region:jv(l||e.region)},m?{requestHandler:m}:{}))}let{Credentials:a}=await n.send(new D8.AssumeRoleCommand(i));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${i.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};ln.getDefaultRoleAssumer=P8;var N8=(e,t)=>{let n;return async r=>{if(!n){let{logger:i,region:a,requestHandler:c}=e;n=new t(o({logger:i,region:jv(a||e.region)},c?{requestHandler:c}:{}))}let{Credentials:s}=await n.send(new L8.AssumeRoleWithWebIdentityCommand(r));if(!s||!s.AccessKeyId||!s.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:s.AccessKeyId,secretAccessKey:s.SecretAccessKey,sessionToken:s.SessionToken,expiration:s.Expiration}}};ln.getDefaultRoleAssumerWithWebIdentity=N8;var q8=e=>t=>e(o({roleAssumer:ln.getDefaultRoleAssumer(t,t.stsClientCtor),roleAssumerWithWebIdentity:ln.getDefaultRoleAssumerWithWebIdentity(t,t.stsClientCtor)},t));ln.decorateDefaultCredentialProvider=q8});var Uv=p(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.resolveCustomEndpointsConfig=void 0;var M8=e=>{var t;return u(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:O8(e),isCustomEndpoint:!0})};lc.resolveCustomEndpointsConfig=M8;var O8=e=>{let{endpoint:t,urlParser:n}=e;if(typeof t=="string"){let r=Promise.resolve(n(t));return()=>r}else if(typeof t=="object"){let r=Promise.resolve(t);return()=>r}return t}});var Bv=p(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.resolveEndpointsConfig=void 0;var z8=e=>{var t;return u(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:e.endpoint?j8(e):()=>U8(e),isCustomEndpoint:!!e.endpoint})};dc.resolveEndpointsConfig=z8;var j8=e=>{let{endpoint:t,urlParser:n}=e;if(typeof t=="string"){let r=Promise.resolve(n(t));return()=>r}else if(typeof t=="object"){let r=Promise.resolve(t);return()=>r}return t},U8=async e=>{var t;let{tls:n=!0}=e,r=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let{hostname:i}=(t=await e.regionInfoProvider(r))!==null&&t!==void 0?t:{};if(!i)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${i}`)}});var Fv=p(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.resolveRegionConfig=wt.NODE_REGION_CONFIG_FILE_OPTIONS=wt.NODE_REGION_CONFIG_OPTIONS=wt.REGION_INI_NAME=wt.REGION_ENV_NAME=void 0;wt.REGION_ENV_NAME="AWS_REGION";wt.REGION_INI_NAME="region";wt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[wt.REGION_ENV_NAME],configFileSelector:e=>e[wt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};wt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"};var B8=e=>{if(!e.region)throw new Error("Region is missing");return u(o({},e),{region:F8(e.region)})};wt.resolveRegionConfig=B8;var F8=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}return e}});var Or=p(Ci=>{"use strict";Object.defineProperty(Ci,"__esModule",{value:!0});var Tp=he();Tp.__exportStar(Uv(),Ci);Tp.__exportStar(Bv(),Ci);Tp.__exportStar(Fv(),Ci)});var xp=p(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.fromEnv=it.ENV_EXPIRATION=it.ENV_SESSION=it.ENV_SECRET=it.ENV_KEY=void 0;var G8=st();it.ENV_KEY="AWS_ACCESS_KEY_ID";it.ENV_SECRET="AWS_SECRET_ACCESS_KEY";it.ENV_SESSION="AWS_SESSION_TOKEN";it.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";function $8(){return()=>{let e=process.env[it.ENV_KEY],t=process.env[it.ENV_SECRET],n=process.env[it.ENV_EXPIRATION];return e&&t?Promise.resolve({accessKeyId:e,secretAccessKey:t,sessionToken:process.env[it.ENV_SESSION],expiration:n?new Date(n):void 0}):Promise.reject(new G8.CredentialsProviderError("Unable to find environment variable credentials."))}}it.fromEnv=$8});var Rp=p(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.httpRequest=void 0;var Ip=st(),K8=require("buffer"),V8=require("http");function W8(e){return new Promise((t,n)=>{let r=V8.request(o({method:"GET"},e));r.on("error",s=>{n(Object.assign(new Ip.ProviderError("Unable to connect to instance metadata service"),s)),r.destroy()}),r.on("timeout",()=>{n(new Ip.ProviderError("TimeoutError from instance metadata service")),r.destroy()}),r.on("response",s=>{let{statusCode:i=400}=s;(i<200||300<=i)&&(n(Object.assign(new Ip.ProviderError("Error response received from instance metadata service"),{statusCode:i})),r.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(K8.Buffer.concat(a)),r.destroy()})}),r.end()})}uc.httpRequest=W8});var kp=p(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.fromImdsCredentials=Ss.isImdsCredentials=void 0;var H8=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Ss.isImdsCredentials=H8;var Y8=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Ss.fromImdsCredentials=Y8});var mc=p(dn=>{"use strict";Object.defineProperty(dn,"__esModule",{value:!0});dn.providerConfigFromInit=dn.DEFAULT_MAX_RETRIES=dn.DEFAULT_TIMEOUT=void 0;dn.DEFAULT_TIMEOUT=1e3;dn.DEFAULT_MAX_RETRIES=0;var J8=({maxRetries:e=dn.DEFAULT_MAX_RETRIES,timeout:t=dn.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});dn.providerConfigFromInit=J8});var Dp=p(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.retry=void 0;var Q8=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};fc.retry=Q8});var $v=p(Ke=>{"use strict";Object.defineProperty(Ke,"__esModule",{value:!0});Ke.fromContainerMetadata=Ke.ENV_CMDS_AUTH_TOKEN=Ke.ENV_CMDS_RELATIVE_URI=Ke.ENV_CMDS_FULL_URI=void 0;var pc=st(),X8=require("url"),Z8=Rp(),Gv=kp(),e6=mc(),t6=Dp();Ke.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Ke.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Ke.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var n6=(e={})=>{let{timeout:t,maxRetries:n}=e6.providerConfigFromInit(e);return()=>t6.retry(async()=>{let r=await o6(),s=JSON.parse(await r6(t,r));if(!Gv.isImdsCredentials(s))throw new pc.CredentialsProviderError("Invalid response received from instance metadata service.");return Gv.fromImdsCredentials(s)},n)};Ke.fromContainerMetadata=n6;var r6=async(e,t)=>(process.env[Ke.ENV_CMDS_AUTH_TOKEN]&&(t.headers=u(o({},t.headers),{Authorization:process.env[Ke.ENV_CMDS_AUTH_TOKEN]})),(await Z8.httpRequest(u(o({},t),{timeout:e}))).toString()),s6="169.254.170.2",i6={localhost:!0,"127.0.0.1":!0},a6={"http:":!0,"https:":!0},o6=async()=>{if(process.env[Ke.ENV_CMDS_RELATIVE_URI])return{hostname:s6,path:process.env[Ke.ENV_CMDS_RELATIVE_URI]};if(process.env[Ke.ENV_CMDS_FULL_URI]){let e=X8.parse(process.env[Ke.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in i6))throw new pc.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in a6))throw new pc.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return u(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new pc.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Ke.ENV_CMDS_RELATIVE_URI} or ${Ke.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var Hv=p(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.fromInstanceMetadata=void 0;var c6=st(),Lp=Rp(),Kv=kp(),l6=mc(),Vv=Dp(),Pp="169.254.169.254",Wv="/latest/meta-data/iam/security-credentials/",d6="/latest/api/token",u6=(e={})=>{let t=!1,{timeout:n,maxRetries:r}=l6.providerConfigFromInit(e),s=async(i,a)=>{let c=(await Vv.retry(async()=>{let l;try{l=await f6(a)}catch(m){throw m.statusCode===401&&(t=!1),m}return l},i)).trim();return Vv.retry(async()=>{let l;try{l=await p6(c,a)}catch(m){throw m.statusCode===401&&(t=!1),m}return l},i)};return async()=>{if(t)return s(r,{timeout:n});{let i;try{i=(await m6({timeout:n})).toString()}catch(a){if((a==null?void 0:a.statusCode)===400)throw Object.assign(a,{message:"EC2 Metadata token request returned error"});return(a.message==="TimeoutError"||[403,404,405].includes(a.statusCode))&&(t=!0),s(r,{timeout:n})}return s(r,{timeout:n,headers:{"x-aws-ec2-metadata-token":i}})}}};hc.fromInstanceMetadata=u6;var m6=async e=>Lp.httpRequest(u(o({},e),{host:Pp,path:d6,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),f6=async e=>(await Lp.httpRequest(u(o({},e),{host:Pp,path:Wv}))).toString(),p6=async(e,t)=>{let n=JSON.parse((await Lp.httpRequest(u(o({},t),{host:Pp,path:Wv+e}))).toString());if(!Kv.isImdsCredentials(n))throw new c6.CredentialsProviderError("Invalid response received from instance metadata service.");return Kv.fromImdsCredentials(n)}});var qp=p(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var Np=he();Np.__exportStar($v(),Ti);Np.__exportStar(Hv(),Ti);Np.__exportStar(mc(),Ti)});var Mp=p(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.fromWebToken=void 0;var h6=st(),y6=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:s,policyArns:i,policy:a,durationSeconds:c,roleAssumerWithWebIdentity:l}=e;if(!l)throw new h6.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return l({RoleArn:t,RoleSessionName:n!=null?n:`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:s,PolicyArns:i,Policy:a,DurationSeconds:c})};yc.fromWebToken=y6});var Yv=p(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.fromTokenFile=void 0;var g6=st(),_6=require("fs"),w6=Mp(),b6="AWS_WEB_IDENTITY_TOKEN_FILE",S6="AWS_ROLE_ARN",v6="AWS_ROLE_SESSION_NAME",E6=(e={})=>async()=>A6(e);gc.fromTokenFile=E6;var A6=e=>{var t,n,r;let s=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[b6],i=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[S6],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[v6];if(!s||!i)throw new g6.CredentialsProviderError("Web identity configuration not specified");return w6.fromWebToken(u(o({},e),{webIdentityToken:_6.readFileSync(s,{encoding:"ascii"}),roleArn:i,roleSessionName:a}))()}});var Op=p(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});var Jv=he();Jv.__exportStar(Yv(),_c);Jv.__exportStar(Mp(),_c)});var xi=p(bt=>{"use strict";Object.defineProperty(bt,"__esModule",{value:!0});bt.getHomeDir=bt.loadSharedConfigFiles=bt.ENV_CONFIG_PATH=bt.ENV_CREDENTIALS_PATH=void 0;var C6=require("fs"),T6=require("os"),zp=require("path");bt.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";bt.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var Qv=()=>({}),x6=(e={})=>{let{filepath:t=process.env[bt.ENV_CREDENTIALS_PATH]||zp.join(bt.getHomeDir(),".aws","credentials"),configFilepath:n=process.env[bt.ENV_CONFIG_PATH]||zp.join(bt.getHomeDir(),".aws","config")}=e;return Promise.all([Zv(n).then(Xv).then(R6).catch(Qv),Zv(t).then(Xv).catch(Qv)]).then(r=>{let[s,i]=r;return{configFile:s,credentialsFile:i}})};bt.loadSharedConfigFiles=x6;var I6=/^profile\s(["'])?([^\1]+)\1$/,R6=e=>{let t={};for(let n of Object.keys(e)){let r;if(n==="default")t.default=e.default;else if(r=I6.exec(n)){let[s,i,a]=r;a&&(t[a]=e[n])}}return t},k6=["__proto__","profile __proto__"],Xv=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let s=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(s){if(n=s[1],k6.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let i=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);i&&(t[n]=t[n]||{},t[n][i[1]]=i[2])}}return t},Zv=e=>new Promise((t,n)=>{C6.readFile(e,"utf8",(r,s)=>{r?n(r):t(s)})}),D6=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${zp.sep}`}=process.env;return e||t||(n?`${r}${n}`:T6.homedir())};bt.getHomeDir=D6});var wc=p(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.getMasterProfileName=St.parseKnownFiles=St.fromIni=St.ENV_PROFILE=void 0;var L6=xp(),eE=qp(),P6=Op(),Ii=st(),N6=xi(),q6="default";St.ENV_PROFILE="AWS_PROFILE";var tE=e=>Boolean(e)&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1,M6=e=>Boolean(e)&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,nE=e=>Boolean(e)&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1,O6=e=>nE(e)&&typeof e.source_profile=="string"&&typeof e.credential_source=="undefined",z6=e=>nE(e)&&typeof e.credential_source=="string"&&typeof e.source_profile=="undefined",j6=(e={})=>async()=>{let t=await St.parseKnownFiles(e);return rE(St.getMasterProfileName(e),t,e)};St.fromIni=j6;var U6=async e=>{let{loadedConfig:t=N6.loadSharedConfigFiles(e)}=e,n=await t;return o(o({},n.configFile),n.credentialsFile)};St.parseKnownFiles=U6;var B6=e=>e.profile||process.env[St.ENV_PROFILE]||q6;St.getMasterProfileName=B6;var rE=async(e,t,n,r={})=>{let s=t[e];if(Object.keys(r).length>0&&tE(s))return sE(s);if(O6(s)||z6(s)){let{external_id:i,mfa_serial:a,role_arn:c,role_session_name:l="aws-sdk-js-"+Date.now(),source_profile:m,credential_source:f}=s;if(!n.roleAssumer)throw new Ii.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);if(m&&m in r)throw new Ii.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${St.getMasterProfileName(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let g=m?rE(m,t,n,u(o({},r),{[m]:!0})):F6(f,e)(),h={RoleArn:c,RoleSessionName:l,ExternalId:i};if(a){if(!n.mfaCodeProvider)throw new Ii.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);h.SerialNumber=a,h.TokenCode=await n.mfaCodeProvider(a)}return n.roleAssumer(await g,h)}if(tE(s))return sE(s);if(M6(s))return G6(s,n);throw new Ii.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},F6=(e,t)=>{let n={EcsContainer:eE.fromContainerMetadata,Ec2InstanceMetadata:eE.fromInstanceMetadata,Environment:L6.fromEnv};if(e in n)return n[e]();throw new Ii.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)},sE=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),G6=async(e,t)=>P6.fromTokenFile({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})()});var aE=p(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.fromProcess=vs.ENV_PROFILE=void 0;var iE=wc(),jp=st(),$6=require("child_process");vs.ENV_PROFILE="AWS_PROFILE";var K6=(e={})=>async()=>{let t=await iE.parseKnownFiles(e);return V6(iE.getMasterProfileName(e),t)};vs.fromProcess=K6;var V6=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0)return await W6(r).then(s=>{let i;try{i=JSON.parse(s)}catch(h){throw Error(`Profile ${e} credential_process returned invalid JSON.`)}let{Version:a,AccessKeyId:c,SecretAccessKey:l,SessionToken:m,Expiration:f}=i;if(a!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(c===void 0||l===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);let g;if(f){let h=new Date;if(new Date(f)<h)throw Error(`Profile ${e} credential_process returned expired credentials.`);g=Math.floor(new Date(f).valueOf()/1e3)}return{accessKeyId:c,secretAccessKey:l,sessionToken:m,expirationUnix:g}}).catch(s=>{throw new jp.CredentialsProviderError(s.message)});throw new jp.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new jp.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},W6=e=>new Promise(function(t,n){$6.exec(e,(r,s)=>{if(r){n(r);return}t(s.trim())})})});var oE=p((kue,H6)=>{H6.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.21.0",scripts:{clean:"yarn remove-definitions && yarn remove-dist && yarn remove-documentation","build-documentation":"yarn remove-documentation && typedoc ./","remove-definitions":"rimraf ./types","remove-dist":"rimraf ./dist","remove-documentation":"rimraf ./docs",test:"exit 0","build:cjs":"tsc -p tsconfig.json","build:es":"tsc -p tsconfig.es.json",build:"yarn build:cjs && yarn build:es","downlevel-dts":"downlevel-dts dist/types dist/types/ts3.4"},main:"./dist/cjs/index.js",types:"./dist/types/index.d.ts",module:"./dist/es/index.js",browser:{"./runtimeConfig":"./runtimeConfig.browser"},"react-native":{"./runtimeConfig":"./runtimeConfig.native"},sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"^1.0.0","@aws-crypto/sha256-js":"^1.0.0","@aws-sdk/config-resolver":"3.20.0","@aws-sdk/fetch-http-handler":"3.20.0","@aws-sdk/hash-node":"3.20.0","@aws-sdk/invalid-dependency":"3.20.0","@aws-sdk/middleware-content-length":"3.20.0","@aws-sdk/middleware-host-header":"3.20.0","@aws-sdk/middleware-logger":"3.20.0","@aws-sdk/middleware-retry":"3.20.0","@aws-sdk/middleware-serde":"3.20.0","@aws-sdk/middleware-stack":"3.20.0","@aws-sdk/middleware-user-agent":"3.20.0","@aws-sdk/node-config-provider":"3.20.0","@aws-sdk/node-http-handler":"3.21.0","@aws-sdk/protocol-http":"3.20.0","@aws-sdk/smithy-client":"3.20.0","@aws-sdk/types":"3.20.0","@aws-sdk/url-parser":"3.20.0","@aws-sdk/util-base64-browser":"3.20.0","@aws-sdk/util-base64-node":"3.20.0","@aws-sdk/util-body-length-browser":"3.20.0","@aws-sdk/util-body-length-node":"3.20.0","@aws-sdk/util-user-agent-browser":"3.20.0","@aws-sdk/util-user-agent-node":"3.20.0","@aws-sdk/util-utf8-browser":"3.20.0","@aws-sdk/util-utf8-node":"3.20.0",tslib:"^2.0.0"},devDependencies:{"@aws-sdk/client-documentation-generator":"3.20.0","@types/node":"^12.7.5","downlevel-dts":"0.7.0",jest:"^26.1.0",rimraf:"^3.0.0","ts-jest":"^26.4.1",typedoc:"^0.19.2",typescript:"~4.3.2"},engines:{node:">=10.0.0"},typesVersions:{"<4.0":{"types/*":["types/ts3.4/*"]}},author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sso"}}});var bc=p(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.fromString=Es.fromArrayBuffer=void 0;var Y6=vp(),Up=require("buffer"),J6=(e,t=0,n=e.byteLength-t)=>{if(!Y6.isArrayBuffer(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Up.Buffer.from(e,t,n)};Es.fromArrayBuffer=J6;var Q6=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Up.Buffer.from(e,t):Up.Buffer.from(e)};Es.fromString=Q6});var vc=p(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.Hash=void 0;var Bp=bc(),X6=require("buffer"),cE=require("crypto"),lE=class{constructor(t,n){this.hash=n?cE.createHmac(t,dE(n)):cE.createHash(t)}update(t,n){this.hash.update(dE(t,n))}digest(){return Promise.resolve(this.hash.digest())}};Sc.Hash=lE;function dE(e,t){return X6.Buffer.isBuffer(e)?e:typeof e=="string"?Bp.fromString(e,t):ArrayBuffer.isView(e)?Bp.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength):Bp.fromArrayBuffer(e)}});var uE=p(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.getRetryPlugin=un.retryMiddlewareOptions=un.retryMiddleware=void 0;var Z6=e=>(t,n)=>async r=>{let s=await e.retryStrategy();return(s==null?void 0:s.mode)&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,r)};un.retryMiddleware=Z6;un.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var e4=e=>({applyToStack:t=>{t.add(un.retryMiddleware(e),un.retryMiddlewareOptions)}});un.getRetryPlugin=e4});var Ri=p(Me=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.REQUEST_HEADER=Me.INVOCATION_ID_HEADER=Me.NO_RETRY_INCREMENT=Me.TIMEOUT_RETRY_COST=Me.RETRY_COST=Me.INITIAL_RETRY_TOKENS=Me.THROTTLING_RETRY_DELAY_BASE=Me.MAXIMUM_RETRY_DELAY=Me.DEFAULT_RETRY_DELAY_BASE=void 0;Me.DEFAULT_RETRY_DELAY_BASE=100;Me.MAXIMUM_RETRY_DELAY=20*1e3;Me.THROTTLING_RETRY_DELAY_BASE=500;Me.INITIAL_RETRY_TOKENS=500;Me.RETRY_COST=5;Me.TIMEOUT_RETRY_COST=10;Me.NO_RETRY_INCREMENT=1;Me.INVOCATION_ID_HEADER="amz-sdk-invocation-id";Me.REQUEST_HEADER="amz-sdk-request"});var fE=p(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.getOmitRetryHeadersPlugin=mn.omitRetryHeadersMiddlewareOptions=mn.omitRetryHeadersMiddleware=void 0;var t4=Dt(),mE=Ri(),n4=()=>e=>async t=>{let{request:n}=t;return t4.HttpRequest.isInstance(n)&&(delete n.headers[mE.INVOCATION_ID_HEADER],delete n.headers[mE.REQUEST_HEADER]),e(t)};mn.omitRetryHeadersMiddleware=n4;mn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var r4=e=>({applyToStack:t=>{t.addRelativeTo(mn.omitRetryHeadersMiddleware(),mn.omitRetryHeadersMiddlewareOptions)}});mn.getOmitRetryHeadersPlugin=r4});var pE=p(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.TRANSIENT_ERROR_STATUS_CODES=fn.TRANSIENT_ERROR_CODES=fn.THROTTLING_ERROR_CODES=fn.CLOCK_SKEW_ERROR_CODES=void 0;fn.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];fn.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];fn.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];fn.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var Ac=p(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.isTransientError=pn.isThrottlingError=pn.isClockSkewError=pn.isRetryableByTrait=void 0;var Ec=pE(),s4=e=>e.$retryable!==void 0;pn.isRetryableByTrait=s4;var i4=e=>Ec.CLOCK_SKEW_ERROR_CODES.includes(e.name);pn.isClockSkewError=i4;var a4=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||Ec.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};pn.isThrottlingError=a4;var o4=e=>{var t;return Ec.TRANSIENT_ERROR_CODES.includes(e.name)||Ec.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};pn.isTransientError=o4});var ki=p(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.DEFAULT_RETRY_MODE=Pn.DEFAULT_MAX_ATTEMPTS=Pn.RETRY_MODES=void 0;var hE;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(hE=Pn.RETRY_MODES||(Pn.RETRY_MODES={}));Pn.DEFAULT_MAX_ATTEMPTS=3;Pn.DEFAULT_RETRY_MODE=hE.STANDARD});var yE=p(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.getDefaultRetryQuota=void 0;var Fp=Ri(),c4=(e,t)=>{var n,r,s;let i=e,a=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:Fp.NO_RETRY_INCREMENT,c=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:Fp.RETRY_COST,l=(s=t==null?void 0:t.timeoutRetryCost)!==null&&s!==void 0?s:Fp.TIMEOUT_RETRY_COST,m=e,f=b=>b.name==="TimeoutError"?l:c,g=b=>f(b)<=m;return Object.freeze({hasRetryTokens:g,retrieveRetryTokens:b=>{if(!g(b))throw new Error("No retry token available");let E=f(b);return m-=E,E},releaseRetryTokens:b=>{m+=b!=null?b:a,m=Math.min(m,i)}})};Cc.getDefaultRetryQuota=c4});var Gp=p(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.defaultDelayDecider=void 0;var l4=Ri(),d4=(e,t)=>Math.floor(Math.min(l4.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));Tc.defaultDelayDecider=d4});var $p=p(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.defaultRetryDecider=void 0;var xc=Ac(),u4=e=>e?xc.isRetryableByTrait(e)||xc.isClockSkewError(e)||xc.isThrottlingError(e)||xc.isTransientError(e):!1;Ic.defaultRetryDecider=u4});var kc=p(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.StandardRetryStrategy=void 0;var gE=Dt(),m4=Ac(),f4=zf(),_E=ki(),Di=Ri(),p4=yE(),h4=Gp(),y4=$p(),wE=class{constructor(t,n){var r,s,i;this.maxAttemptsProvider=t,this.mode=_E.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:y4.defaultRetryDecider,this.delayDecider=(s=n==null?void 0:n.delayDecider)!==null&&s!==void 0?s:h4.defaultDelayDecider,this.retryQuota=(i=n==null?void 0:n.retryQuota)!==null&&i!==void 0?i:p4.getDefaultRetryQuota(Di.INITIAL_RETRY_TOKENS)}shouldRetry(t,n,r){return n<r&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch(n){t=_E.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let s,i=0,a=0,c=await this.getMaxAttempts(),{request:l}=n;for(gE.HttpRequest.isInstance(l)&&(l.headers[Di.INVOCATION_ID_HEADER]=f4.v4());;)try{gE.HttpRequest.isInstance(l)&&(l.headers[Di.REQUEST_HEADER]=`attempt=${i+1}; max=${c}`),(r==null?void 0:r.beforeRequest)&&await r.beforeRequest();let{response:m,output:f}=await t(n);return(r==null?void 0:r.afterRequest)&&r.afterRequest(m),this.retryQuota.releaseRetryTokens(s),f.$metadata.attempts=i+1,f.$metadata.totalRetryDelay=a,{response:m,output:f}}catch(m){let f=g4(m);if(i++,this.shouldRetry(f,i,c)){s=this.retryQuota.retrieveRetryTokens(f);let g=this.delayDecider(m4.isThrottlingError(f)?Di.THROTTLING_RETRY_DELAY_BASE:Di.DEFAULT_RETRY_DELAY_BASE,i);a+=g,await new Promise(h=>setTimeout(h,g));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=i,f.$metadata.totalRetryDelay=a,f}}};Rc.StandardRetryStrategy=wE;var g4=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`)});var Kp=p(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.DefaultRateLimiter=void 0;var _4=Ac(),bE=class{constructor(t){var n,r,s,i,a;this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(n=t==null?void 0:t.beta)!==null&&n!==void 0?n:.7,this.minCapacity=(r=t==null?void 0:t.minCapacity)!==null&&r!==void 0?r:1,this.minFillRate=(s=t==null?void 0:t.minFillRate)!==null&&s!==void 0?s:.5,this.scaleConstant=(i=t==null?void 0:t.scaleConstant)!==null&&i!==void 0?i:.4,this.smooth=(a=t==null?void 0:t.smooth)!==null&&a!==void 0?a:.8;let c=this.getCurrentTimeInSeconds();this.lastThrottleTime=c,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(!!this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){let n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>setTimeout(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),_4.isThrottlingError(t)){let s=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());let r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){let r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}};Dc.DefaultRateLimiter=bE});var Vp=p(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.AdaptiveRetryStrategy=void 0;var w4=ki(),b4=Kp(),S4=kc(),SE=class extends S4.StandardRetryStrategy{constructor(t,n){let i=n!=null?n:{},{rateLimiter:r}=i,s=Jn(i,["rateLimiter"]);super(t,s);this.rateLimiter=r!=null?r:new b4.DefaultRateLimiter,this.mode=w4.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Lc.AdaptiveRetryStrategy=SE});var vE=p(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.NODE_RETRY_MODE_CONFIG_OPTIONS=Ie.CONFIG_RETRY_MODE=Ie.ENV_RETRY_MODE=Ie.resolveRetryConfig=Ie.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Ie.CONFIG_MAX_ATTEMPTS=Ie.ENV_MAX_ATTEMPTS=void 0;var v4=Vp(),Pc=ki(),E4=kc();Ie.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";Ie.CONFIG_MAX_ATTEMPTS="max_attempts";Ie.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[Ie.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${Ie.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[Ie.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${Ie.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:Pc.DEFAULT_MAX_ATTEMPTS};var A4=e=>{let t=C4(e.maxAttempts);return u(o({},e),{maxAttempts:t,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:(e.retryMode||await e.retryModeProvider())===Pc.RETRY_MODES.ADAPTIVE?new v4.AdaptiveRetryStrategy(t):new E4.StandardRetryStrategy(t)})};Ie.resolveRetryConfig=A4;var C4=(e=Pc.DEFAULT_MAX_ATTEMPTS)=>{if(typeof e=="number"){let t=Promise.resolve(e);return()=>t}return e};Ie.ENV_RETRY_MODE="AWS_RETRY_MODE";Ie.CONFIG_RETRY_MODE="retry_mode";Ie.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Ie.ENV_RETRY_MODE],configFileSelector:e=>e[Ie.CONFIG_RETRY_MODE],default:Pc.DEFAULT_RETRY_MODE}});var AE=p(EE=>{"use strict";Object.defineProperty(EE,"__esModule",{value:!0})});var zr=p(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});var hn=he();hn.__exportStar(uE(),Ut);hn.__exportStar(fE(),Ut);hn.__exportStar(kc(),Ut);hn.__exportStar(Vp(),Ut);hn.__exportStar(ki(),Ut);hn.__exportStar(vE(),Ut);hn.__exportStar(Gp(),Ut);hn.__exportStar(Kp(),Ut);hn.__exportStar($p(),Ut);hn.__exportStar(AE(),Ut)});var CE=p(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.fromEnv=void 0;var T4=st(),x4=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new T4.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};Nc.fromEnv=x4});var TE=p(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.fromSharedConfigFiles=jr.ENV_PROFILE=void 0;var I4=st(),R4=xi(),k4="default";jr.ENV_PROFILE="AWS_PROFILE";var D4=(e,r={})=>{var s=r,{preferredFile:t="config"}=s,n=Jn(s,["preferredFile"]);return async()=>{let{loadedConfig:i=R4.loadSharedConfigFiles(n),profile:a=process.env[jr.ENV_PROFILE]||k4}=n,{configFile:c,credentialsFile:l}=await i,m=l[a]||{},f=c[a]||{},g=t==="config"?o(o({},m),f):o(o({},f),m);try{let h=e(g);if(h===void 0)throw new Error;return h}catch(h){throw new I4.CredentialsProviderError(h.message||`Cannot load config for profile ${a} in SDK configuration files with getter: ${e}`)}}};jr.fromSharedConfigFiles=D4});var xE=p(qc=>{"use strict";Object.defineProperty(qc,"__esModule",{value:!0});qc.fromStatic=void 0;var L4=st(),P4=e=>typeof e=="function",N4=e=>P4(e)?async()=>e():L4.fromStatic(e);qc.fromStatic=N4});var RE=p(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.loadConfig=void 0;var IE=st(),q4=CE(),M4=TE(),O4=xE(),z4=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>IE.memoize(IE.chain(q4.fromEnv(e),M4.fromSharedConfigFiles(t,r),O4.fromStatic(n)));Mc.loadConfig=z4});var Li=p(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});var j4=he();j4.__exportStar(RE(),Wp)});var Yp=p(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.buildQueryString=void 0;var Hp=Sp();function U4(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Hp.escapeUri(n),Array.isArray(r))for(let s=0,i=r.length;s<i;s++)t.push(`${n}=${Hp.escapeUri(r[s])}`);else{let s=n;(r||typeof r=="string")&&(s+=`=${Hp.escapeUri(r)}`),t.push(s)}}return t.join("&")}Oc.buildQueryString=U4});var kE=p(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.NODEJS_TIMEOUT_ERROR_CODES=void 0;zc.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Jp=p(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.getTransformedHeaders=void 0;var B4=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};jc.getTransformedHeaders=B4});var DE=p(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.setConnectionTimeout=void 0;var F4=(e,t,n=0)=>{!n||e.on("socket",r=>{if(r.connecting){let s=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${n} ms`),{name:"TimeoutError"}))},n);r.on("connect",()=>{clearTimeout(s)})}})};Uc.setConnectionTimeout=F4});var LE=p(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.setSocketTimeout=void 0;var G4=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};Bc.setSocketTimeout=G4});var Qp=p(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.writeRequestBody=void 0;var $4=require("stream");function K4(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{PE(e,t.body)}):PE(e,t.body)}Fc.writeRequestBody=K4;function PE(e,t){t instanceof $4.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var OE=p(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.NodeHttpHandler=void 0;var V4=Dt(),W4=Yp(),NE=require("http"),qE=require("https"),H4=kE(),Y4=Jp(),J4=DE(),Q4=LE(),X4=Qp(),ME=class{constructor({connectionTimeout:t,socketTimeout:n,httpAgent:r,httpsAgent:s}={}){this.metadata={handlerProtocol:"http/1.1"},this.connectionTimeout=t,this.socketTimeout=n;let i=!0,a=50;this.httpAgent=r||new NE.Agent({keepAlive:i,maxSockets:a}),this.httpsAgent=s||new qE.Agent({keepAlive:i,maxSockets:a})}destroy(){this.httpAgent.destroy(),this.httpsAgent.destroy()}handle(t,{abortSignal:n}={}){return new Promise((r,s)=>{if(n==null?void 0:n.aborted){let f=new Error("Request aborted");f.name="AbortError",s(f);return}let i=t.protocol==="https:",a=W4.buildQueryString(t.query||{}),c={headers:t.headers,host:t.hostname,method:t.method,path:a?`${t.path}?${a}`:t.path,port:t.port,agent:i?this.httpsAgent:this.httpAgent},m=(i?qE.request:NE.request)(c,f=>{let g=new V4.HttpResponse({statusCode:f.statusCode||-1,headers:Y4.getTransformedHeaders(f.headers),body:f});r({response:g})});m.on("error",f=>{H4.NODEJS_TIMEOUT_ERROR_CODES.includes(f.code)?s(Object.assign(f,{name:"TimeoutError"})):s(f)}),J4.setConnectionTimeout(m,s,this.connectionTimeout),Q4.setSocketTimeout(m,s,this.socketTimeout),n&&(n.onabort=()=>{m.abort();let f=new Error("Request aborted");f.name="AbortError",s(f)}),X4.writeRequestBody(m,t)})}};Gc.NodeHttpHandler=ME});var jE=p($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.NodeHttp2Handler=void 0;var Z4=Dt(),eY=Yp(),Xp=require("http2"),tY=Jp(),nY=Qp(),zE=class{constructor({requestTimeout:t,sessionTimeout:n,disableConcurrentStreams:r}={}){this.metadata={handlerProtocol:"h2"},this.requestTimeout=t,this.sessionTimeout=n,this.disableConcurrentStreams=r,this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(n=>this.destroySession(n));this.sessionCache.clear()}handle(t,{abortSignal:n}={}){return new Promise((r,s)=>{let i=!1;if(n==null?void 0:n.aborted){i=!0;let R=new Error("Request aborted");R.name="AbortError",s(R);return}let{hostname:a,method:c,port:l,protocol:m,path:f,query:g}=t,h=`${m}//${a}${l?`:${l}`:""}`,_=this.getSession(h,this.disableConcurrentStreams||!1),b=R=>{this.disableConcurrentStreams&&this.destroySession(_),i=!0,s(R)},E=eY.buildQueryString(g||{}),D=_.request(u(o({},t.headers),{[Xp.constants.HTTP2_HEADER_PATH]:E?`${f}?${E}`:f,[Xp.constants.HTTP2_HEADER_METHOD]:c}));D.on("response",R=>{let K=new Z4.HttpResponse({statusCode:R[":status"]||-1,headers:tY.getTransformedHeaders(R),body:D});i=!0,r({response:K}),this.disableConcurrentStreams&&(_.close(),this.deleteSessionFromCache(h,_))});let k=this.requestTimeout;k&&D.setTimeout(k,()=>{D.close();let R=new Error(`Stream timed out because of no activity for ${k} ms`);R.name="TimeoutError",b(R)}),n&&(n.onabort=()=>{D.close();let R=new Error("Request aborted");R.name="AbortError",b(R)}),D.on("frameError",b),D.on("error",b),D.on("goaway",b),D.on("aborted",b),D.on("close",()=>{this.disableConcurrentStreams&&_.destroy(),i||b(new Error("Unexpected error: http2 request did not get a response"))}),nY.writeRequestBody(D,t)})}getSession(t,n){let r=this.sessionCache,s=r.get(t)||[];if(s.length>0&&!n)return s[0];let i=Xp.connect(t),a=()=>{this.destroySession(i),this.deleteSessionFromCache(t,i)};i.on("goaway",a),i.on("error",a),i.on("frameError",a);let c=this.sessionTimeout;return c&&i.setTimeout(c,a),s.push(i),r.set(t,s),i}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,n){let r=this.sessionCache.get(t)||[];!r.includes(n)||this.sessionCache.set(t,r.filter(s=>s!==n))}};$c.NodeHttp2Handler=zE});var BE=p(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.Collector=void 0;var rY=require("stream"),UE=class extends rY.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};Kc.Collector=UE});var FE=p(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.streamCollector=void 0;var sY=BE(),iY=e=>new Promise((t,n)=>{let r=new sY.Collector;e.pipe(r),e.on("error",s=>{r.end(),n(s)}),r.on("error",n),r.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.bufferedBytes));t(s)})});Vc.streamCollector=iY});var Wc=p(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var Zp=he();Zp.__exportStar(OE(),Pi);Zp.__exportStar(jE(),Pi);Zp.__exportStar(FE(),Pi)});var Hc=p(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});As.toBase64=As.fromBase64=void 0;var GE=bc();function aY(e){let t=GE.fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}As.fromBase64=aY;function oY(e){return GE.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")}As.toBase64=oY});var Jc=p(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.calculateBodyLength=void 0;var cY=require("fs");function lY(e){if(!e)return 0;if(typeof e=="string")return Buffer.from(e).length;if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.path=="string")return cY.lstatSync(e.path).size}Yc.calculateBodyLength=lY});var Qc=p(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.defaultUserAgent=yn.UA_APP_ID_INI_NAME=yn.UA_APP_ID_ENV_NAME=void 0;var dY=Li(),$E=require("os"),eh=require("process");yn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";yn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var uY=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${$E.platform()}`,$E.release()],["lang/js"],["md/nodejs",`${eh.versions.node}`]];e&&n.push([`api/${e}`,t]),eh.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${eh.env.AWS_EXECUTION_ENV}`]);let r=dY.loadConfig({environmentVariableSelector:i=>i[yn.UA_APP_ID_ENV_NAME],configFileSelector:i=>i[yn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let i=await r;s=i?[...n,[`app/${i}`]]:[...n]}return s}};yn.defaultUserAgent=uY});var Xc=p(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.toUtf8=Cs.fromUtf8=void 0;var KE=bc(),mY=e=>{let t=KE.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};Cs.fromUtf8=mY;var fY=e=>KE.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8");Cs.toUtf8=fY});var WE=p(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.defaultRegionInfoProvider=void 0;var VE="portal.sso.{region}.amazonaws.com",pY="portal.sso.{region}.amazonaws.com.cn",hY="portal.sso.{region}.c2s.ic.gov",yY="portal.sso.{region}.sc2s.sgov.gov",gY="portal.sso.{region}.amazonaws.com",_Y=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","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"]),wY=new Set(["cn-north-1","cn-northwest-1"]),bY=new Set(["us-iso-east-1"]),SY=new Set(["us-isob-east-1"]),vY=new Set(["us-gov-east-1","us-gov-west-1"]),EY=(e,t)=>{let n;switch(e){case"ap-southeast-1":n={hostname:"portal.sso.ap-southeast-1.amazonaws.com",partition:"aws",signingRegion:"ap-southeast-1"};break;case"ap-southeast-2":n={hostname:"portal.sso.ap-southeast-2.amazonaws.com",partition:"aws",signingRegion:"ap-southeast-2"};break;case"ca-central-1":n={hostname:"portal.sso.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"eu-central-1":n={hostname:"portal.sso.eu-central-1.amazonaws.com",partition:"aws",signingRegion:"eu-central-1"};break;case"eu-west-1":n={hostname:"portal.sso.eu-west-1.amazonaws.com",partition:"aws",signingRegion:"eu-west-1"};break;case"eu-west-2":n={hostname:"portal.sso.eu-west-2.amazonaws.com",partition:"aws",signingRegion:"eu-west-2"};break;case"us-east-1":n={hostname:"portal.sso.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"portal.sso.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-west-2":n={hostname:"portal.sso.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:_Y.has(e)&&(n={hostname:VE.replace("{region}",e),partition:"aws"}),wY.has(e)&&(n={hostname:pY.replace("{region}",e),partition:"aws-cn"}),bY.has(e)&&(n={hostname:hY.replace("{region}",e),partition:"aws-iso"}),SY.has(e)&&(n={hostname:yY.replace("{region}",e),partition:"aws-iso-b"}),vY.has(e)&&(n={hostname:gY.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:VE.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"awsssoportal"},n))};Zc.defaultRegionInfoProvider=EY});var HE=p(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.parseQueryString=void 0;function AY(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,s=null]=n.split("=");r=decodeURIComponent(r),s&&(s=decodeURIComponent(s)),r in t?Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]:t[r]=s}return t}el.parseQueryString=AY});var nl=p(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.parseUrl=void 0;var CY=HE(),TY=e=>{let{hostname:t,pathname:n,port:r,protocol:s,search:i}=new URL(e),a;return i&&(a=CY.parseQueryString(i)),{hostname:t,port:r?parseInt(r):void 0,protocol:s,path:n,query:a}};tl.parseUrl=TY});var YE=p(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.ClientSharedValues=void 0;var xY=WE(),IY=nl();rl.ClientSharedValues={apiVersion:"2019-06-10",disableHostPrefix:!1,logger:{},regionInfoProvider:xY.defaultRegionInfoProvider,serviceId:"SSO",urlParser:IY.parseUrl}});var nA=p(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.ClientDefaultValues=void 0;var RY=he(),kY=RY.__importDefault(oE()),JE=Or(),DY=vc(),QE=zr(),th=Li(),XE=Wc(),ZE=Hc(),LY=Jc(),PY=Qc(),eA=Xc(),tA=YE();sl.ClientDefaultValues=u(o({},tA.ClientSharedValues),{runtime:"node",base64Decoder:ZE.fromBase64,base64Encoder:ZE.toBase64,bodyLengthChecker:LY.calculateBodyLength,defaultUserAgentProvider:PY.defaultUserAgent({serviceId:tA.ClientSharedValues.serviceId,clientVersion:kY.default.version}),maxAttempts:th.loadConfig(QE.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:th.loadConfig(JE.NODE_REGION_CONFIG_OPTIONS,JE.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new XE.NodeHttpHandler,retryModeProvider:th.loadConfig(QE.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:DY.Hash.bind(null,"sha256"),streamCollector:XE.streamCollector,utf8Decoder:eA.fromUtf8,utf8Encoder:eA.toUtf8})});var il=p(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getContentLengthPlugin=Nn.contentLengthMiddlewareOptions=Nn.contentLengthMiddleware=void 0;var NY=Dt(),rA="content-length";function sA(e){return t=>async n=>{let r=n.request;if(NY.HttpRequest.isInstance(r)){let{body:s,headers:i}=r;if(s&&Object.keys(i).map(a=>a.toLowerCase()).indexOf(rA)===-1){let a=e(s);a!==void 0&&(r.headers=u(o({},r.headers),{[rA]:String(a)}))}}return t(u(o({},n),{request:r}))}}Nn.contentLengthMiddleware=sA;Nn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var qY=e=>({applyToStack:t=>{t.add(sA(e.bodyLengthChecker),Nn.contentLengthMiddlewareOptions)}});Nn.getContentLengthPlugin=qY});var al=p(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getHostHeaderPlugin=Bt.hostHeaderMiddlewareOptions=Bt.hostHeaderMiddleware=Bt.resolveHostHeaderConfig=void 0;var MY=Dt();function OY(e){return e}Bt.resolveHostHeaderConfig=OY;var zY=e=>t=>async n=>{if(!MY.HttpRequest.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:s=""}=e.requestHandler.metadata||{};return s.indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),t(n)};Bt.hostHeaderMiddleware=zY;Bt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var jY=e=>({applyToStack:t=>{t.add(Bt.hostHeaderMiddleware(e),Bt.hostHeaderMiddlewareOptions)}});Bt.getHostHeaderPlugin=jY});var iA=p(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.getLoggerPlugin=gn.loggerMiddlewareOptions=gn.loggerMiddleware=void 0;var UY=()=>(e,t)=>async n=>{let{clientName:r,commandName:s,inputFilterSensitiveLog:i,logger:a,outputFilterSensitiveLog:c}=t,l=await e(n);if(!a)return l;if(typeof a.info=="function"){let m=l.output,{$metadata:f}=m,g=Jn(m,["$metadata"]);a.info({clientName:r,commandName:s,input:i(n.input),output:c(g),metadata:f})}return l};gn.loggerMiddleware=UY;gn.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var BY=e=>({applyToStack:t=>{t.add(gn.loggerMiddleware(),gn.loggerMiddlewareOptions)}});gn.getLoggerPlugin=BY});var ol=p(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var FY=he();FY.__exportStar(iA(),nh)});var aA=p(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.resolveUserAgentConfig=void 0;function GY(e){return u(o({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}cl.resolveUserAgentConfig=GY});var oA=p(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.UA_ESCAPE_REGEX=_n.SPACE=_n.X_AMZ_USER_AGENT=_n.USER_AGENT=void 0;_n.USER_AGENT="user-agent";_n.X_AMZ_USER_AGENT="x-amz-user-agent";_n.SPACE=" ";_n.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var cA=p(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getUserAgentPlugin=wn.getUserAgentMiddlewareOptions=wn.userAgentMiddleware=void 0;var $Y=Dt(),or=oA(),KY=e=>(t,n)=>async r=>{var s,i;let{request:a}=r;if(!$Y.HttpRequest.isInstance(a))return t(r);let{headers:c}=a,l=((s=n==null?void 0:n.userAgent)===null||s===void 0?void 0:s.map(rh))||[],m=(await e.defaultUserAgentProvider()).map(rh),f=((i=e==null?void 0:e.customUserAgent)===null||i===void 0?void 0:i.map(rh))||[],g=[...m,...l,...f].join(or.SPACE),h=[...m.filter(_=>_.startsWith("aws-sdk-")),...f].join(or.SPACE);return e.runtime!=="browser"?(h&&(c[or.X_AMZ_USER_AGENT]=c[or.X_AMZ_USER_AGENT]?`${c[or.USER_AGENT]} ${h}`:h),c[or.USER_AGENT]=g):c[or.X_AMZ_USER_AGENT]=g,t(u(o({},r),{request:a}))};wn.userAgentMiddleware=KY;var rh=([e,t])=>{let n=e.indexOf("/"),r=e.substring(0,n),s=e.substring(n+1);return r==="api"&&(s=s.toLowerCase()),[r,s,t].filter(i=>i&&i.length>0).map(i=>i==null?void 0:i.replace(or.UA_ESCAPE_REGEX,"_")).join("/")};wn.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var VY=e=>({applyToStack:t=>{t.add(wn.userAgentMiddleware(e),wn.getUserAgentMiddlewareOptions)}});wn.getUserAgentPlugin=VY});var dl=p(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});var lA=he();lA.__exportStar(aA(),ll);lA.__exportStar(cA(),ll)});var Ni=p(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.SSOClient=void 0;var WY=nA(),dA=Or(),HY=il(),uA=al(),YY=ol(),mA=zr(),fA=dl(),JY=M(),pA=class extends JY.Client{constructor(t){let n=o(o({},WY.ClientDefaultValues),t),r=dA.resolveRegionConfig(n),s=dA.resolveEndpointsConfig(r),i=mA.resolveRetryConfig(s),a=uA.resolveHostHeaderConfig(i),c=fA.resolveUserAgentConfig(a);super(c);this.config=c,this.middlewareStack.use(mA.getRetryPlugin(this.config)),this.middlewareStack.use(HY.getContentLengthPlugin(this.config)),this.middlewareStack.use(uA.getHostHeaderPlugin(this.config)),this.middlewareStack.use(YY.getLoggerPlugin(this.config)),this.middlewareStack.use(fA.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};ul.SSOClient=pA});var xs=p(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.LogoutRequest=se.ListAccountsResponse=se.ListAccountsRequest=se.ListAccountRolesResponse=se.RoleInfo=se.ListAccountRolesRequest=se.UnauthorizedException=se.TooManyRequestsException=se.ResourceNotFoundException=se.InvalidRequestException=se.GetRoleCredentialsResponse=se.RoleCredentials=se.GetRoleCredentialsRequest=se.AccountInfo=void 0;var Ts=M(),QY;(function(e){e.filterSensitiveLog=t=>o({},t)})(QY=se.AccountInfo||(se.AccountInfo={}));var XY;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ts.SENSITIVE_STRING})})(XY=se.GetRoleCredentialsRequest||(se.GetRoleCredentialsRequest={}));var hA;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:Ts.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:Ts.SENSITIVE_STRING})})(hA=se.RoleCredentials||(se.RoleCredentials={}));var ZY;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:hA.filterSensitiveLog(t.roleCredentials)})})(ZY=se.GetRoleCredentialsResponse||(se.GetRoleCredentialsResponse={}));var eJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(eJ=se.InvalidRequestException||(se.InvalidRequestException={}));var tJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(tJ=se.ResourceNotFoundException||(se.ResourceNotFoundException={}));var nJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(nJ=se.TooManyRequestsException||(se.TooManyRequestsException={}));var rJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(rJ=se.UnauthorizedException||(se.UnauthorizedException={}));var sJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ts.SENSITIVE_STRING})})(sJ=se.ListAccountRolesRequest||(se.ListAccountRolesRequest={}));var iJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(iJ=se.RoleInfo||(se.RoleInfo={}));var aJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(aJ=se.ListAccountRolesResponse||(se.ListAccountRolesResponse={}));var oJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ts.SENSITIVE_STRING})})(oJ=se.ListAccountsRequest||(se.ListAccountsRequest={}));var cJ;(function(e){e.filterSensitiveLog=t=>o({},t)})(cJ=se.ListAccountsResponse||(se.ListAccountsResponse={}));var lJ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:Ts.SENSITIVE_STRING})})(lJ=se.LogoutRequest||(se.LogoutRequest={}))});var qi=p(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.deserializeAws_restJson1LogoutCommand=Ve.deserializeAws_restJson1ListAccountsCommand=Ve.deserializeAws_restJson1ListAccountRolesCommand=Ve.deserializeAws_restJson1GetRoleCredentialsCommand=Ve.serializeAws_restJson1LogoutCommand=Ve.serializeAws_restJson1ListAccountsCommand=Ve.serializeAws_restJson1ListAccountRolesCommand=Ve.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var ml=Dt(),ut=M(),dJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},yl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/federation/credentials`,l=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),m;return new ml.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1GetRoleCredentialsCommand=dJ;var uJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},yl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/assignment/roles`,l=o(o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),e.accountId!==void 0&&{account_id:e.accountId}),m;return new ml.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1ListAccountRolesCommand=uJ;var mJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},yl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/assignment/accounts`,l=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),m;return new ml.HttpRequest({protocol:r,hostname:n,port:s,method:"GET",headers:a,path:c,query:l,body:m})};Ve.serializeAws_restJson1ListAccountsCommand=mJ;var fJ=async(e,t)=>{let{hostname:n,protocol:r="https",port:s,path:i}=await t.endpoint(),a=o({},yl(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),c=`${(i==null?void 0:i.endsWith("/"))?i.slice(0,-1):i||""}/logout`,l;return new ml.HttpRequest({protocol:r,hostname:n,port:s,method:"POST",headers:a,path:c,body:l})};Ve.serializeAws_restJson1LogoutCommand=fJ;var pJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return hJ(e,t);let n={$metadata:Se(e),roleCredentials:void 0},r=await Ur(e.body,t);return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=AJ(r.roleCredentials,t)),Promise.resolve(n)};Ve.deserializeAws_restJson1GetRoleCredentialsCommand=pJ;var hJ=async(e,t)=>{let n=u(o({},e),{body:await Ur(e.body,t)}),r,s="UnknownError";switch(s=gl(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await fl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await sh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},yJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return gJ(e,t);let n={$metadata:Se(e),nextToken:void 0,roleList:void 0},r=await Ur(e.body,t);return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ut.expectString(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=TJ(r.roleList,t)),Promise.resolve(n)};Ve.deserializeAws_restJson1ListAccountRolesCommand=yJ;var gJ=async(e,t)=>{let n=u(o({},e),{body:await Ur(e.body,t)}),r,s="UnknownError";switch(s=gl(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await fl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await sh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},_J=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return wJ(e,t);let n={$metadata:Se(e),accountList:void 0,nextToken:void 0},r=await Ur(e.body,t);return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=EJ(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ut.expectString(r.nextToken)),Promise.resolve(n)};Ve.deserializeAws_restJson1ListAccountsCommand=_J;var wJ=async(e,t)=>{let n=u(o({},e),{body:await Ur(e.body,t)}),r,s="UnknownError";switch(s=gl(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await fl(n,t)),{name:s,$metadata:Se(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=u(o({},await sh(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},bJ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return SJ(e,t);let n={$metadata:Se(e)};return await yA(e.body,t),Promise.resolve(n)};Ve.deserializeAws_restJson1LogoutCommand=bJ;var SJ=async(e,t)=>{let n=u(o({},e),{body:await Ur(e.body,t)}),r,s="UnknownError";switch(s=gl(e,n.body),s){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=u(o({},await fl(n,t)),{name:s,$metadata:Se(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=u(o({},await pl(n,t)),{name:s,$metadata:Se(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=u(o({},await hl(n,t)),{name:s,$metadata:Se(e)});break;default:let a=n.body;s=a.code||a.Code||s,r=u(o({},a),{name:`${s}`,message:a.message||a.Message||s,$fault:"client",$metadata:Se(e)})}let i=r.message||r.Message||s;return r.message=i,delete r.Message,Promise.reject(Object.assign(new Error(i),r))},fl=async(e,t)=>{let n={name:"InvalidRequestException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},sh=async(e,t)=>{let n={name:"ResourceNotFoundException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},pl=async(e,t)=>{let n={name:"TooManyRequestsException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},hl=async(e,t)=>{let n={name:"UnauthorizedException",$fault:"client",$metadata:Se(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ut.expectString(r.message)),n},vJ=(e,t)=>({accountId:ut.expectString(e.accountId),accountName:ut.expectString(e.accountName),emailAddress:ut.expectString(e.emailAddress)}),EJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:vJ(n,t)),AJ=(e,t)=>({accessKeyId:ut.expectString(e.accessKeyId),expiration:ut.expectNumber(e.expiration),secretAccessKey:ut.expectString(e.secretAccessKey),sessionToken:ut.expectString(e.sessionToken)}),CJ=(e,t)=>({accountId:ut.expectString(e.accountId),roleName:ut.expectString(e.roleName)}),TJ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:CJ(n,t)),Se=e=>{var t;return{httpStatusCode:e.statusCode,requestId:(t=e.headers["x-amzn-requestid"])!==null&&t!==void 0?t:e.headers["x-amzn-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}},yA=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),xJ=(e,t)=>yA(e,t).then(n=>t.utf8Encoder(n)),yl=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Ur=(e,t)=>xJ(e,t).then(n=>n.length?JSON.parse(n):{}),gl=(e,t)=>{let n=(i,a)=>Object.keys(i).find(c=>c.toLowerCase()===a.toLowerCase()),r=i=>{let a=i;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},s=n(e.headers,"x-amzn-errortype");return s!==void 0?r(e.headers[s]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var ih=p(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.GetRoleCredentialsCommand=void 0;var gA=xs(),_A=qi(),IJ=j(),RJ=M(),wA=class extends RJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(IJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:gA.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:gA.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return _A.serializeAws_restJson1GetRoleCredentialsCommand(t,n)}deserialize(t,n){return _A.deserializeAws_restJson1GetRoleCredentialsCommand(t,n)}};_l.GetRoleCredentialsCommand=wA});var bl=p(wl=>{"use strict";Object.defineProperty(wl,"__esModule",{value:!0});wl.ListAccountRolesCommand=void 0;var bA=xs(),SA=qi(),kJ=j(),DJ=M(),vA=class extends DJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(kJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:bA.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:bA.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return SA.serializeAws_restJson1ListAccountRolesCommand(t,n)}deserialize(t,n){return SA.deserializeAws_restJson1ListAccountRolesCommand(t,n)}};wl.ListAccountRolesCommand=vA});var vl=p(Sl=>{"use strict";Object.defineProperty(Sl,"__esModule",{value:!0});Sl.ListAccountsCommand=void 0;var EA=xs(),AA=qi(),LJ=j(),PJ=M(),CA=class extends PJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(LJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:EA.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:EA.ListAccountsResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return AA.serializeAws_restJson1ListAccountsCommand(t,n)}deserialize(t,n){return AA.deserializeAws_restJson1ListAccountsCommand(t,n)}};Sl.ListAccountsCommand=CA});var ah=p(El=>{"use strict";Object.defineProperty(El,"__esModule",{value:!0});El.LogoutCommand=void 0;var NJ=xs(),TA=qi(),qJ=j(),MJ=M(),xA=class extends MJ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(qJ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:NJ.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return TA.serializeAws_restJson1LogoutCommand(t,n)}deserialize(t,n){return TA.deserializeAws_restJson1LogoutCommand(t,n)}};El.LogoutCommand=xA});var Cl=p(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.SSO=void 0;var OJ=Ni(),zJ=ih(),jJ=bl(),UJ=vl(),BJ=ah(),IA=class extends OJ.SSOClient{getRoleCredentials(t,n,r){let s=new zJ.GetRoleCredentialsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listAccountRoles(t,n,r){let s=new jJ.ListAccountRolesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listAccounts(t,n,r){let s=new UJ.ListAccountsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}logout(t,n,r){let s=new BJ.LogoutCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};Al.SSO=IA});var RA=p(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.paginateListAccountRoles=void 0;var FJ=Cl(),GJ=Ni(),$J=bl(),KJ=async(e,t,...n)=>await e.send(new $J.ListAccountRolesCommand(t),...n),VJ=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*WJ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof FJ.SSO)i=await VJ(e.client,t,...n);else if(e.client instanceof GJ.SSOClient)i=await KJ(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield i,r=i.nextToken,s=!!r}return void 0}Tl.paginateListAccountRoles=WJ});var kA=p(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.paginateListAccounts=void 0;var HJ=Cl(),YJ=Ni(),JJ=vl(),QJ=async(e,t,...n)=>await e.send(new JJ.ListAccountsCommand(t),...n),XJ=async(e,t,...n)=>await e.listAccounts(t,...n);async function*ZJ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof HJ.SSO)i=await XJ(e.client,t,...n);else if(e.client instanceof YJ.SSOClient)i=await QJ(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield i,r=i.nextToken,s=!!r}return void 0}xl.paginateListAccounts=ZJ});var LA=p(DA=>{"use strict";Object.defineProperty(DA,"__esModule",{value:!0})});var PA=p(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var e5=he();e5.__exportStar(xs(),oh)});var NA=p(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});var bn=he();bn.__exportStar(Ni(),Ft);bn.__exportStar(Cl(),Ft);bn.__exportStar(ih(),Ft);bn.__exportStar(bl(),Ft);bn.__exportStar(RA(),Ft);bn.__exportStar(vl(),Ft);bn.__exportStar(kA(),Ft);bn.__exportStar(ah(),Ft);bn.__exportStar(LA(),Ft);bn.__exportStar(PA(),Ft)});var OA=p(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.fromSSO=Br.EXPIRE_WINDOW_MS=void 0;var qA=NA(),MA=wc(),Is=st(),t5=xi(),n5=require("crypto"),r5=require("fs"),s5=require("path");Br.EXPIRE_WINDOW_MS=15*60*1e3;var Il=!1,i5=(e={})=>async()=>{let t=await MA.parseKnownFiles(e);return a5(MA.getMasterProfileName(e),t,e)};Br.fromSSO=i5;var a5=async(e,t,n)=>{let r=t[e];if(!r)throw new Is.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`);let{sso_start_url:s,sso_account_id:i,sso_region:a,sso_role_name:c}=r;if(!s&&!i&&!a&&!c)throw new Is.CredentialsProviderError(`Profile ${e} is not configured with SSO credentials.`);if(!s||!i||!a||!c)throw new Is.CredentialsProviderError(`Profile ${e} does not have valid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,Il);let m=n5.createHash("sha1").update(s).digest("hex"),f=s5.join(t5.getHomeDir(),".aws","sso","cache",`${m}.json`),g;try{if(g=JSON.parse(r5.readFileSync(f,{encoding:"utf-8"})),new Date(g.expiresAt).getTime()-Date.now()<=Br.EXPIRE_WINDOW_MS)throw new Error("SSO token is expired.")}catch(K){throw new Is.CredentialsProviderError("The SSO session associated with this profile has expired or is otherwise invalid. To refresh this SSO session run aws sso login with the corresponding profile.",Il)}let{accessToken:h}=g,_=n.ssoClient||new qA.SSOClient({region:a}),b;try{b=await _.send(new qA.GetRoleCredentialsCommand({accountId:i,roleName:c,accessToken:h}))}catch(K){throw Is.CredentialsProviderError.from(K,Il)}let{roleCredentials:{accessKeyId:E,secretAccessKey:D,sessionToken:k,expiration:R}={}}=b;if(!E||!D||!k||!R)throw new Is.CredentialsProviderError("SSO returns an invalid temporary credential.",Il);return{accessKeyId:E,secretAccessKey:D,sessionToken:k,expiration:new Date(R)}}});var ch=p(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.defaultProvider=Fr.ENV_IMDS_DISABLED=void 0;var o5=xp(),Rl=qp(),zA=wc(),c5=aE(),l5=OA(),d5=Op(),kl=st(),u5=xi();Fr.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var m5=(e={})=>{let t=o({profile:process.env[zA.ENV_PROFILE]},e);t.loadedConfig||(t.loadedConfig=u5.loadSharedConfigFiles(e));let n=[l5.fromSSO(t),zA.fromIni(t),c5.fromProcess(t),d5.fromTokenFile(t),f5(t),async()=>{throw new kl.CredentialsProviderError("Could not load credentials from any providers",!1)}];t.profile||n.unshift(o5.fromEnv());let r=kl.chain(...n);return kl.memoize(r,s=>s.expiration!==void 0&&s.expiration.getTime()-Date.now()<3e5,s=>s.expiration!==void 0)};Fr.defaultProvider=m5;var f5=e=>process.env[Rl.ENV_CMDS_RELATIVE_URI]||process.env[Rl.ENV_CMDS_FULL_URI]?Rl.fromContainerMetadata(e):process.env[Fr.ENV_IMDS_DISABLED]?()=>Promise.reject(new kl.CredentialsProviderError("EC2 Instance Metadata Service access disabled")):Rl.fromInstanceMetadata(e)});var UA=p(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.defaultRegionInfoProvider=void 0;var jA="sts.{region}.amazonaws.com",p5="sts.{region}.amazonaws.com.cn",h5="sts.{region}.c2s.ic.gov",y5="sts.{region}.sc2s.sgov.gov",g5="sts.{region}.amazonaws.com",_5=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","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"]),w5=new Set(["cn-north-1","cn-northwest-1"]),b5=new Set(["us-iso-east-1"]),S5=new Set(["us-isob-east-1"]),v5=new Set(["us-gov-east-1","us-gov-west-1"]),E5=(e,t)=>{let n;switch(e){case"af-south-1":n={hostname:"sts.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"sts.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"sts.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"sts.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-northeast-3":n={hostname:"sts.ap-northeast-3.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"sts.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"sts.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"sts.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"aws-global":n={hostname:"sts.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"ca-central-1":n={hostname:"sts.ca-central-1.amazonaws.com",partition:"aws"};break;case"cn-north-1":n={hostname:"sts.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"sts.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"sts.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"sts.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"sts.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"sts.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"sts.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"sts.eu-west-3.amazonaws.com",partition:"aws"};break;case"me-south-1":n={hostname:"sts.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"sts.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"sts.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"sts-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"sts.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"sts-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-east-1":n={hostname:"sts.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-east-1-fips":n={hostname:"sts.us-gov-east-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"sts.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"sts.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"sts.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"sts.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"sts.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-1-fips":n={hostname:"sts-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"us-west-2":n={hostname:"sts.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"sts-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:_5.has(e)&&(n={hostname:jA.replace("{region}",e),partition:"aws"}),w5.has(e)&&(n={hostname:p5.replace("{region}",e),partition:"aws-cn"}),b5.has(e)&&(n={hostname:h5.replace("{region}",e),partition:"aws-iso"}),S5.has(e)&&(n={hostname:y5.replace("{region}",e),partition:"aws-iso-b"}),v5.has(e)&&(n={hostname:g5.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:jA.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"sts"},n))};Dl.defaultRegionInfoProvider=E5});var BA=p(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.ClientSharedValues=void 0;var A5=UA(),C5=nl();Ll.ClientSharedValues={apiVersion:"2011-06-15",disableHostPrefix:!1,logger:{},regionInfoProvider:A5.defaultRegionInfoProvider,serviceId:"STS",urlParser:C5.parseUrl}});var HA=p(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.ClientDefaultValues=void 0;var T5=he(),x5=T5.__importDefault(nS()),I5=Cp(),FA=Or(),R5=ch(),k5=vc(),GA=zr(),lh=Li(),$A=Wc(),KA=Hc(),D5=Jc(),L5=Qc(),VA=Xc(),WA=BA();Pl.ClientDefaultValues=u(o({},WA.ClientSharedValues),{runtime:"node",base64Decoder:KA.fromBase64,base64Encoder:KA.toBase64,bodyLengthChecker:D5.calculateBodyLength,credentialDefaultProvider:I5.decorateDefaultCredentialProvider(R5.defaultProvider),defaultUserAgentProvider:L5.defaultUserAgent({serviceId:WA.ClientSharedValues.serviceId,clientVersion:x5.default.version}),maxAttempts:lh.loadConfig(GA.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:lh.loadConfig(FA.NODE_REGION_CONFIG_OPTIONS,FA.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new $A.NodeHttpHandler,retryModeProvider:lh.loadConfig(GA.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:k5.Hash.bind(null,"sha256"),streamCollector:$A.streamCollector,utf8Decoder:VA.fromUtf8,utf8Encoder:VA.toUtf8})});var YA=p(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.resolveStsAuthConfig=void 0;var P5=Ln(),N5=(e,{stsClientCtor:t})=>P5.resolveAwsAuthConfig(u(o({},e),{stsClientCtor:t}));Nl.resolveStsAuthConfig=N5});var Ol=p(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.STSClient=void 0;var q5=HA(),JA=Or(),M5=il(),QA=al(),O5=ol(),XA=zr(),z5=YA(),ZA=dl(),j5=M(),ql=class extends j5.Client{constructor(t){let n=o(o({},q5.ClientDefaultValues),t),r=JA.resolveRegionConfig(n),s=JA.resolveEndpointsConfig(r),i=XA.resolveRetryConfig(s),a=QA.resolveHostHeaderConfig(i),c=z5.resolveStsAuthConfig(a,{stsClientCtor:ql}),l=ZA.resolveUserAgentConfig(c);super(l);this.config=l,this.middlewareStack.use(XA.getRetryPlugin(this.config)),this.middlewareStack.use(M5.getContentLengthPlugin(this.config)),this.middlewareStack.use(QA.getHostHeaderPlugin(this.config)),this.middlewareStack.use(O5.getLoggerPlugin(this.config)),this.middlewareStack.use(ZA.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Ml.STSClient=ql});var dh=p(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.AssumeRoleWithSAMLCommand=void 0;var eC=sn(),tC=Dn(),U5=j(),B5=M(),nC=class extends B5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(U5.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:eC.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:eC.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return tC.serializeAws_queryAssumeRoleWithSAMLCommand(t,n)}deserialize(t,n){return tC.deserializeAws_queryAssumeRoleWithSAMLCommand(t,n)}};zl.AssumeRoleWithSAMLCommand=nC});var uh=p(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.DecodeAuthorizationMessageCommand=void 0;var rC=sn(),sC=Dn(),F5=j(),G5=Ln(),$5=M(),iC=class extends $5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(F5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(G5.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:rC.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:rC.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return sC.serializeAws_queryDecodeAuthorizationMessageCommand(t,n)}deserialize(t,n){return sC.deserializeAws_queryDecodeAuthorizationMessageCommand(t,n)}};jl.DecodeAuthorizationMessageCommand=iC});var mh=p(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.GetAccessKeyInfoCommand=void 0;var aC=sn(),oC=Dn(),K5=j(),V5=Ln(),W5=M(),cC=class extends W5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(K5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(V5.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:aC.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:aC.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return oC.serializeAws_queryGetAccessKeyInfoCommand(t,n)}deserialize(t,n){return oC.deserializeAws_queryGetAccessKeyInfoCommand(t,n)}};Ul.GetAccessKeyInfoCommand=cC});var fh=p(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.GetCallerIdentityCommand=void 0;var lC=sn(),dC=Dn(),H5=j(),Y5=Ln(),J5=M(),uC=class extends J5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(H5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(Y5.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:lC.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:lC.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return dC.serializeAws_queryGetCallerIdentityCommand(t,n)}deserialize(t,n){return dC.deserializeAws_queryGetCallerIdentityCommand(t,n)}};Bl.GetCallerIdentityCommand=uC});var ph=p(Fl=>{"use strict";Object.defineProperty(Fl,"__esModule",{value:!0});Fl.GetFederationTokenCommand=void 0;var mC=sn(),fC=Dn(),Q5=j(),X5=Ln(),Z5=M(),pC=class extends Z5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Q5.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(X5.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:mC.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:mC.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return fC.serializeAws_queryGetFederationTokenCommand(t,n)}deserialize(t,n){return fC.deserializeAws_queryGetFederationTokenCommand(t,n)}};Fl.GetFederationTokenCommand=pC});var hh=p(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.GetSessionTokenCommand=void 0;var hC=sn(),yC=Dn(),e9=j(),t9=Ln(),n9=M(),gC=class extends n9.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(e9.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(t9.getAwsAuthPlugin(n));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:hC.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:hC.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return yC.serializeAws_queryGetSessionTokenCommand(t,n)}deserialize(t,n){return yC.deserializeAws_queryGetSessionTokenCommand(t,n)}};Gl.GetSessionTokenCommand=gC});var wC=p($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.STS=void 0;var r9=Ol(),s9=ac(),i9=dh(),a9=cc(),o9=uh(),c9=mh(),l9=fh(),d9=ph(),u9=hh(),_C=class extends r9.STSClient{assumeRole(t,n,r){let s=new s9.AssumeRoleCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}assumeRoleWithSAML(t,n,r){let s=new i9.AssumeRoleWithSAMLCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}assumeRoleWithWebIdentity(t,n,r){let s=new a9.AssumeRoleWithWebIdentityCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}decodeAuthorizationMessage(t,n,r){let s=new o9.DecodeAuthorizationMessageCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getAccessKeyInfo(t,n,r){let s=new c9.GetAccessKeyInfoCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getCallerIdentity(t,n,r){let s=new l9.GetCallerIdentityCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getFederationToken(t,n,r){let s=new d9.GetFederationTokenCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getSessionToken(t,n,r){let s=new u9.GetSessionTokenCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};$l.STS=_C});var vC=p(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.decorateDefaultCredentialProvider=Sn.getDefaultRoleAssumerWithWebIdentity=Sn.getDefaultRoleAssumer=void 0;var bC=Cp(),SC=Ol(),m9=(e={})=>bC.getDefaultRoleAssumer(e,SC.STSClient);Sn.getDefaultRoleAssumer=m9;var f9=(e={})=>bC.getDefaultRoleAssumerWithWebIdentity(e,SC.STSClient);Sn.getDefaultRoleAssumerWithWebIdentity=f9;var p9=e=>t=>e(o({roleAssumer:Sn.getDefaultRoleAssumer(t),roleAssumerWithWebIdentity:Sn.getDefaultRoleAssumerWithWebIdentity(t)},t));Sn.decorateDefaultCredentialProvider=p9});var EC=p(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});var h9=he();h9.__exportStar(sn(),yh)});var AC=p(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});var Gt=he();Gt.__exportStar(Ol(),vt);Gt.__exportStar(wC(),vt);Gt.__exportStar(ac(),vt);Gt.__exportStar(dh(),vt);Gt.__exportStar(cc(),vt);Gt.__exportStar(uh(),vt);Gt.__exportStar(mh(),vt);Gt.__exportStar(fh(),vt);Gt.__exportStar(ph(),vt);Gt.__exportStar(hh(),vt);Gt.__exportStar(vC(),vt);Gt.__exportStar(EC(),vt)});var TC=p(CC=>{"use strict";Object.defineProperty(CC,"__esModule",{value:!0})});var IC=p((sfe,xC)=>{function qn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}qn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol!="undefined"&&(qn.prototype[Symbol.iterator]=function(){return this});qn.of=function(){var e=arguments,t=e.length,n=0;return new qn(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};qn.empty=function(){var e=new qn(null);return e.done=!0,e};qn.is=function(e){return e instanceof qn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};xC.exports=qn});var gh=p((ife,LC)=>{var RC=typeof ArrayBuffer!="undefined",kC=typeof Symbol!="undefined";function DC(e,t){var n,r,s,i,a;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||RC&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],s);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(kC&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,s),s++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}DC.forEachWithNullKeys=function(e,t){var n,r,s,i,a;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||RC&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(s=0,i=e.length;s<i;s++)t(e[s],null);return}if(e instanceof Set){e.forEach(function(c){t(c,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(kC&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,s=0;a=n.next(),a.done!==!0;)t(a.value,null),s++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};LC.exports=DC});var _h=p(vn=>{var y9=Math.pow(2,8)-1,g9=Math.pow(2,16)-1,_9=Math.pow(2,32)-1,w9=Math.pow(2,7)-1,b9=Math.pow(2,15)-1,S9=Math.pow(2,31)-1;vn.getPointerArray=function(e){var t=e-1;return t<=y9?Uint8Array:t<=g9?Uint16Array:t<=_9?Uint32Array:Float64Array};vn.getSignedPointerArray=function(e){var t=e-1;return t<=w9?Int8Array:t<=b9?Int16Array:t<=S9?Int32Array:Float64Array};vn.getNumberType=function(e){return e===(e|0)?Math.sign(e)===-1?e<=127&&e>=-128?Int8Array:e<=32767&&e>=-32768?Int16Array:Int32Array:e<=255?Uint8Array:e<=65535?Uint16Array:Uint32Array:Float64Array};var v9={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};vn.getMinimalRepresentation=function(e,t){var n=null,r=0,s,i,a,c,l;for(c=0,l=e.length;c<l;c++)a=t?t(e[c]):e[c],i=vn.getNumberType(a),s=v9[i.name],s>r&&(r=s,n=i);return n};vn.isTypedArray=function(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(e)};vn.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var s=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)s.set(arguments[t],n),n+=arguments[t].length;return s};vn.indices=function(e){for(var t=vn.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var qC=p(Mi=>{var PC=gh(),NC=_h();function E9(e){return Array.isArray(e)||NC.isTypedArray(e)}function wh(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function A9(e){var t=wh(e),n=typeof t=="number"?new Array(t):[],r=0;return PC(e,function(s){n[r++]=s}),n}function C9(e){var t=wh(e),n=typeof t=="number"?NC.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],s=typeof t=="number"?new n(t):[],i=0;return PC(e,function(a){r[i]=a,s[i]=i++}),[r,s]}Mi.isArrayLike=E9;Mi.guessLength=wh;Mi.toArray=A9;Mi.toArrayWithIndices=C9});var OC=p((cfe,MC)=>{var bh=IC(),T9=gh(),x9=_h(),I9=qC();function Oe(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var r=x9.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e=="function"?new e(n):new Array(n),this.V=typeof t=="function"?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}Oe.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};Oe.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this};Oe.prototype.set=function(e,t){var n=this.items[e];if(typeof n!="undefined"){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n};Oe.prototype.setpop=function(e,t){var n=null,r=null,s=this.items[e];return typeof s!="undefined"?(this.splayOnTop(s),n=this.V[s],this.V[s]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?s=this.size++:(s=this.tail,this.tail=this.backward[s],n=this.V[s],r=this.K[s],delete this.items[this.K[s]]),this.items[e]=s,this.K[s]=e,this.V[s]=t,this.forward[s]=this.head,this.backward[this.head]=s,this.head=s,r?{evicted:!0,key:r,value:n}:null)};Oe.prototype.has=function(e){return e in this.items};Oe.prototype.get=function(e){var t=this.items[e];if(typeof t!="undefined")return this.splayOnTop(t),this.V[t]};Oe.prototype.peek=function(e){var t=this.items[e];if(typeof t!="undefined")return this.V[t]};Oe.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,s=this.head,i=this.K,a=this.V,c=this.forward;n<r;)e.call(t,a[s],i[s],this),s=c[s],n++};Oe.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,s=this.forward;return new bh(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};Oe.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,s=this.forward;return new bh(function(){if(e>=t)return{done:!0};var i=r[n];return e++,e<t&&(n=s[n]),{done:!1,value:i}})};Oe.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,s=this.V,i=this.forward;return new bh(function(){if(e>=t)return{done:!0};var a=r[n],c=s[n];return e++,e<t&&(n=i[n]),{done:!1,value:[a,c]}})};typeof Symbol!="undefined"&&(Oe.prototype[Symbol.iterator]=Oe.prototype.entries);Oe.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:Oe,enumerable:!1}),e};typeof Symbol!="undefined"&&(Oe.prototype[Symbol.for("nodejs.util.inspect.custom")]=Oe.prototype.inspect);Oe.from=function(e,t,n,r){if(arguments.length<2){if(r=I9.guessLength(e),typeof r!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(r=t,t=null,n=null);var s=new Oe(t,n,r);return T9(e,function(i,a){s.set(a,i)}),s};MC.exports=Oe});var jC=p(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.EndpointCache=void 0;var R9=he(),k9=R9.__importDefault(OC()),zC=class{constructor(t){this.cache=new k9.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let r=n.map(s=>s.Address);return r[Math.floor(Math.random()*r.length)]}get(t){if(!this.has(t))return;let n=this.cache.get(t);if(!n)return;let r=Date.now(),s=n.filter(i=>r<i.Expires);if(s.length===0){this.delete(t);return}return s}set(t,n){let r=Date.now();this.cache.set(t,n.map(({Address:s,CachePeriodInMinutes:i})=>({Address:s,Expires:r+i*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let n=this.cache.peek(t);return n?n.length>0:!1}clear(){this.cache.clear()}};Kl.EndpointCache=zC});var BC=p(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var UC=he();UC.__exportStar(TC(),Vl);UC.__exportStar(jC(),Vl)});var FC=p(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.resolveEndpointDiscoveryConfig=void 0;var D9=BC(),L9=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return u(o({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new D9.EndpointCache((n=e.endpointCacheSize)!==null&&n!==void 0?n:1e3),endpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0})};Wl.resolveEndpointDiscoveryConfig=L9});var GC=p(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.getCacheKey=void 0;var P9=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:s}=n;return JSON.stringify(o(o({},r&&{accessKeyId:r}),s&&{commandName:e,identifiers:Object.entries(s).sort().reduce((i,[a,c])=>u(o({},i),{[a]:c}),{})}))};Hl.getCacheKey=P9});var $C=p(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.updateDiscoveredEndpointInCache=void 0;var Mn={},N9=async(e,t)=>new Promise((n,r)=>{let{endpointCache:s}=e,{cacheKey:i,commandName:a,identifiers:c}=t,l=s.get(i);if(l&&l.length===1&&l[0].Address==="")t.isDiscoveredEndpointRequired?(Mn[i]||(Mn[i]=[]),Mn[i].push({resolve:n,reject:r})):n();else if(l&&l.length>0)n();else{let m=[{Address:"",CachePeriodInMinutes:1}];s.set(i,m);let f=new t.endpointDiscoveryCommandCtor({Operation:a.substr(0,a.length-7),Identifiers:c});f.resolveMiddleware(t.clientStack,e,t.options)(f).then(h=>{s.set(i,h.output.Endpoints),Mn[i]&&(Mn[i].forEach(({resolve:_})=>{_()}),delete Mn[i]),n()}).catch(h=>{var _;(h.name==="InvalidEndpointException"||((_=h.$metadata)===null||_===void 0?void 0:_.httpStatusCode)===421)&&s.delete(i);let b=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:h});Mn[i]&&(Mn[i].forEach(({reject:E})=>{E(b)}),delete Mn[i]),t.isDiscoveredEndpointRequired?r(b):(s.set(i,m),n())})}});Yl.updateDiscoveredEndpointInCache=N9});var VC=p(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.endpointDiscoveryMiddleware=void 0;var q9=Dt(),M9=GC(),KC=$C(),O9=(e,t)=>(n,r)=>async s=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return n(s)}let{endpointDiscoveryCommandCtor:i}=e,{isDiscoveredEndpointRequired:a,identifiers:c}=t,{clientName:l,commandName:m}=r,f=await e.endpointDiscoveryEnabled(),g=await M9.getCacheKey(m,e,{identifiers:c});if(a){if(f===!1)throw new Error(`Endpoint Discovery is disabled but ${m} on ${l} requires it. Please check your configurations.`);await KC.updateDiscoveredEndpointInCache(e,u(o({},t),{commandName:m,cacheKey:g,endpointDiscoveryCommandCtor:i}))}else f&&KC.updateDiscoveredEndpointInCache(e,u(o({},t),{commandName:m,cacheKey:g,endpointDiscoveryCommandCtor:i}));let{request:h}=s;if(g&&q9.HttpRequest.isInstance(h)){let _=e.endpointCache.getEndpoint(g);_&&(h.hostname=_)}return n(s)};Jl.endpointDiscoveryMiddleware=O9});var WC=p(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.getEndpointDiscoveryOptionalPlugin=Nt.getEndpointDiscoveryRequiredPlugin=Nt.getEndpointDiscoveryPlugin=Nt.endpointDiscoveryMiddlewareOptions=void 0;var Sh=VC();Nt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var z9=(e,t)=>({applyToStack:n=>{n.add(Sh.endpointDiscoveryMiddleware(e,t),Nt.endpointDiscoveryMiddlewareOptions)}});Nt.getEndpointDiscoveryPlugin=z9;var j9=(e,t)=>({applyToStack:n=>{n.add(Sh.endpointDiscoveryMiddleware(e,u(o({},t),{isDiscoveredEndpointRequired:!0})),Nt.endpointDiscoveryMiddlewareOptions)}});Nt.getEndpointDiscoveryRequiredPlugin=j9;var U9=(e,t)=>({applyToStack:n=>{n.add(Sh.endpointDiscoveryMiddleware(e,u(o({},t),{isDiscoveredEndpointRequired:!1})),Nt.endpointDiscoveryMiddlewareOptions)}});Nt.getEndpointDiscoveryOptionalPlugin=U9});var JC=p(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var HC=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],vh="endpoint_discovery_enabled",YC=e=>["false","0"].indexOf(e)>=0;Ql.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<HC.length;t++){let n=HC[t];if(n in e){let r=e[n];if(r==="")throw Error(`Environment variable ${n} can't be empty of undefined, got "${r}"`);return!YC(r)}}},configFileSelector:e=>{if(vh in e){let t=e[vh];if(t===void 0)throw Error(`Shared config entry ${vh} can't be undefined, got "${t}"`);return!YC(t)}},default:void 0}});var Ah=p(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});var Eh=he();Eh.__exportStar(FC(),Oi);Eh.__exportStar(WC(),Oi);Eh.__exportStar(JC(),Oi)});var XC=p(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.defaultRegionInfoProvider=void 0;var QC="dynamodb.{region}.amazonaws.com",B9="dynamodb.{region}.amazonaws.com.cn",F9="dynamodb.{region}.c2s.ic.gov",G9="dynamodb.{region}.sc2s.sgov.gov",$9="dynamodb.{region}.amazonaws.com",K9=new Set(["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","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"]),V9=new Set(["cn-north-1","cn-northwest-1"]),W9=new Set(["us-iso-east-1"]),H9=new Set(["us-isob-east-1"]),Y9=new Set(["us-gov-east-1","us-gov-west-1"]),J9=(e,t)=>{let n;switch(e){case"af-south-1":n={hostname:"dynamodb.af-south-1.amazonaws.com",partition:"aws"};break;case"ap-east-1":n={hostname:"dynamodb.ap-east-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-1":n={hostname:"dynamodb.ap-northeast-1.amazonaws.com",partition:"aws"};break;case"ap-northeast-2":n={hostname:"dynamodb.ap-northeast-2.amazonaws.com",partition:"aws"};break;case"ap-northeast-3":n={hostname:"dynamodb.ap-northeast-3.amazonaws.com",partition:"aws"};break;case"ap-south-1":n={hostname:"dynamodb.ap-south-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-1":n={hostname:"dynamodb.ap-southeast-1.amazonaws.com",partition:"aws"};break;case"ap-southeast-2":n={hostname:"dynamodb.ap-southeast-2.amazonaws.com",partition:"aws"};break;case"ca-central-1":n={hostname:"dynamodb.ca-central-1.amazonaws.com",partition:"aws"};break;case"ca-central-1-fips":n={hostname:"dynamodb-fips.ca-central-1.amazonaws.com",partition:"aws",signingRegion:"ca-central-1"};break;case"cn-north-1":n={hostname:"dynamodb.cn-north-1.amazonaws.com.cn",partition:"aws-cn"};break;case"cn-northwest-1":n={hostname:"dynamodb.cn-northwest-1.amazonaws.com.cn",partition:"aws-cn"};break;case"eu-central-1":n={hostname:"dynamodb.eu-central-1.amazonaws.com",partition:"aws"};break;case"eu-north-1":n={hostname:"dynamodb.eu-north-1.amazonaws.com",partition:"aws"};break;case"eu-south-1":n={hostname:"dynamodb.eu-south-1.amazonaws.com",partition:"aws"};break;case"eu-west-1":n={hostname:"dynamodb.eu-west-1.amazonaws.com",partition:"aws"};break;case"eu-west-2":n={hostname:"dynamodb.eu-west-2.amazonaws.com",partition:"aws"};break;case"eu-west-3":n={hostname:"dynamodb.eu-west-3.amazonaws.com",partition:"aws"};break;case"local":n={hostname:"localhost:8000",partition:"aws",signingRegion:"us-east-1"};break;case"me-south-1":n={hostname:"dynamodb.me-south-1.amazonaws.com",partition:"aws"};break;case"sa-east-1":n={hostname:"dynamodb.sa-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1":n={hostname:"dynamodb.us-east-1.amazonaws.com",partition:"aws"};break;case"us-east-1-fips":n={hostname:"dynamodb-fips.us-east-1.amazonaws.com",partition:"aws",signingRegion:"us-east-1"};break;case"us-east-2":n={hostname:"dynamodb.us-east-2.amazonaws.com",partition:"aws"};break;case"us-east-2-fips":n={hostname:"dynamodb-fips.us-east-2.amazonaws.com",partition:"aws",signingRegion:"us-east-2"};break;case"us-gov-east-1":n={hostname:"dynamodb.us-gov-east-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-east-1-fips":n={hostname:"dynamodb.us-gov-east-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-east-1"};break;case"us-gov-west-1":n={hostname:"dynamodb.us-gov-west-1.amazonaws.com",partition:"aws-us-gov"};break;case"us-gov-west-1-fips":n={hostname:"dynamodb.us-gov-west-1.amazonaws.com",partition:"aws-us-gov",signingRegion:"us-gov-west-1"};break;case"us-iso-east-1":n={hostname:"dynamodb.us-iso-east-1.c2s.ic.gov",partition:"aws-iso"};break;case"us-isob-east-1":n={hostname:"dynamodb.us-isob-east-1.sc2s.sgov.gov",partition:"aws-iso-b"};break;case"us-west-1":n={hostname:"dynamodb.us-west-1.amazonaws.com",partition:"aws"};break;case"us-west-1-fips":n={hostname:"dynamodb-fips.us-west-1.amazonaws.com",partition:"aws",signingRegion:"us-west-1"};break;case"us-west-2":n={hostname:"dynamodb.us-west-2.amazonaws.com",partition:"aws"};break;case"us-west-2-fips":n={hostname:"dynamodb-fips.us-west-2.amazonaws.com",partition:"aws",signingRegion:"us-west-2"};break;default:K9.has(e)&&(n={hostname:QC.replace("{region}",e),partition:"aws"}),V9.has(e)&&(n={hostname:B9.replace("{region}",e),partition:"aws-cn"}),W9.has(e)&&(n={hostname:F9.replace("{region}",e),partition:"aws-iso"}),H9.has(e)&&(n={hostname:G9.replace("{region}",e),partition:"aws-iso-b"}),Y9.has(e)&&(n={hostname:$9.replace("{region}",e),partition:"aws-us-gov"}),n===void 0&&(n={hostname:QC.replace("{region}",e),partition:"aws"})}return Promise.resolve(o({signingService:"dynamodb"},n))};Xl.defaultRegionInfoProvider=J9});var ZC=p(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.ClientSharedValues=void 0;var Q9=XC(),X9=nl();Zl.ClientSharedValues={apiVersion:"2012-08-10",disableHostPrefix:!1,logger:{},regionInfoProvider:Q9.defaultRegionInfoProvider,serviceId:"DynamoDB",urlParser:X9.parseUrl}});var a0=p(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.ClientDefaultValues=void 0;var Z9=he(),eQ=Z9.__importDefault(tS()),tQ=AC(),e0=Or(),nQ=ch(),rQ=vc(),sQ=Ah(),t0=zr(),ed=Li(),n0=Wc(),r0=Hc(),iQ=Jc(),aQ=Qc(),s0=Xc(),i0=ZC();td.ClientDefaultValues=u(o({},i0.ClientSharedValues),{runtime:"node",base64Decoder:r0.fromBase64,base64Encoder:r0.toBase64,bodyLengthChecker:iQ.calculateBodyLength,credentialDefaultProvider:tQ.decorateDefaultCredentialProvider(nQ.defaultProvider),defaultUserAgentProvider:aQ.defaultUserAgent({serviceId:i0.ClientSharedValues.serviceId,clientVersion:eQ.default.version}),endpointDiscoveryEnabledProvider:ed.loadConfig(sQ.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:ed.loadConfig(t0.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:ed.loadConfig(e0.NODE_REGION_CONFIG_OPTIONS,e0.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:new n0.NodeHttpHandler,retryModeProvider:ed.loadConfig(t0.NODE_RETRY_MODE_CONFIG_OPTIONS),sha256:rQ.Hash.bind(null,"sha256"),streamCollector:n0.streamCollector,utf8Decoder:s0.fromUtf8,utf8Encoder:s0.toUtf8})});var cr=p(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.DynamoDBClient=void 0;var oQ=vo(),cQ=a0(),o0=Or(),lQ=il(),dQ=Ah(),c0=al(),uQ=ol(),l0=zr(),d0=Ln(),u0=dl(),mQ=M(),m0=class extends mQ.Client{constructor(t){let n=o(o({},cQ.ClientDefaultValues),t),r=o0.resolveRegionConfig(n),s=o0.resolveEndpointsConfig(r),i=l0.resolveRetryConfig(s),a=c0.resolveHostHeaderConfig(i),c=d0.resolveAwsAuthConfig(a),l=u0.resolveUserAgentConfig(c),m=dQ.resolveEndpointDiscoveryConfig(l,{endpointDiscoveryCommandCtor:oQ.DescribeEndpointsCommand});super(m);this.config=m,this.middlewareStack.use(l0.getRetryPlugin(this.config)),this.middlewareStack.use(lQ.getContentLengthPlugin(this.config)),this.middlewareStack.use(c0.getHostHeaderPlugin(this.config)),this.middlewareStack.use(uQ.getLoggerPlugin(this.config)),this.middlewareStack.use(d0.getAwsAuthPlugin(this.config)),this.middlewareStack.use(u0.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};nd.DynamoDBClient=m0});var Ch=p(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.BatchExecuteStatementCommand=void 0;var f0=W(),p0=H(),fQ=j(),pQ=M(),h0=class extends pQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(fQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:f0.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:f0.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return p0.serializeAws_json1_0BatchExecuteStatementCommand(t,n)}deserialize(t,n){return p0.deserializeAws_json1_0BatchExecuteStatementCommand(t,n)}};rd.BatchExecuteStatementCommand=h0});var Th=p(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.BatchGetItemCommand=void 0;var y0=W(),g0=H(),hQ=j(),yQ=M(),_0=class extends yQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(hQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:y0.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:y0.BatchGetItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return g0.serializeAws_json1_0BatchGetItemCommand(t,n)}deserialize(t,n){return g0.deserializeAws_json1_0BatchGetItemCommand(t,n)}};sd.BatchGetItemCommand=_0});var xh=p(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.BatchWriteItemCommand=void 0;var w0=W(),b0=H(),gQ=j(),_Q=M(),S0=class extends _Q.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(gQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:w0.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:w0.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return b0.serializeAws_json1_0BatchWriteItemCommand(t,n)}deserialize(t,n){return b0.deserializeAws_json1_0BatchWriteItemCommand(t,n)}};id.BatchWriteItemCommand=S0});var Ih=p(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.CreateBackupCommand=void 0;var v0=W(),E0=H(),wQ=j(),bQ=M(),A0=class extends bQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(wQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:v0.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:v0.CreateBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return E0.serializeAws_json1_0CreateBackupCommand(t,n)}deserialize(t,n){return E0.deserializeAws_json1_0CreateBackupCommand(t,n)}};ad.CreateBackupCommand=A0});var Rh=p(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.CreateGlobalTableCommand=void 0;var C0=W(),T0=H(),SQ=j(),vQ=M(),x0=class extends vQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(SQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:C0.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:C0.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return T0.serializeAws_json1_0CreateGlobalTableCommand(t,n)}deserialize(t,n){return T0.deserializeAws_json1_0CreateGlobalTableCommand(t,n)}};od.CreateGlobalTableCommand=x0});var kh=p(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.CreateTableCommand=void 0;var I0=W(),R0=H(),EQ=j(),AQ=M(),k0=class extends AQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(EQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:I0.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:I0.CreateTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return R0.serializeAws_json1_0CreateTableCommand(t,n)}deserialize(t,n){return R0.deserializeAws_json1_0CreateTableCommand(t,n)}};cd.CreateTableCommand=k0});var Dh=p(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.DeleteBackupCommand=void 0;var D0=W(),L0=H(),CQ=j(),TQ=M(),P0=class extends TQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(CQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:D0.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:D0.DeleteBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return L0.serializeAws_json1_0DeleteBackupCommand(t,n)}deserialize(t,n){return L0.deserializeAws_json1_0DeleteBackupCommand(t,n)}};ld.DeleteBackupCommand=P0});var Lh=p(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.DeleteItemCommand=void 0;var N0=W(),q0=H(),xQ=j(),IQ=M(),M0=class extends IQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(xQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:N0.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:N0.DeleteItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return q0.serializeAws_json1_0DeleteItemCommand(t,n)}deserialize(t,n){return q0.deserializeAws_json1_0DeleteItemCommand(t,n)}};dd.DeleteItemCommand=M0});var Ph=p(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.DeleteTableCommand=void 0;var O0=W(),z0=H(),RQ=j(),kQ=M(),j0=class extends kQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(RQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:O0.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:O0.DeleteTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return z0.serializeAws_json1_0DeleteTableCommand(t,n)}deserialize(t,n){return z0.deserializeAws_json1_0DeleteTableCommand(t,n)}};ud.DeleteTableCommand=j0});var Nh=p(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.DescribeBackupCommand=void 0;var U0=W(),B0=H(),DQ=j(),LQ=M(),F0=class extends LQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(DQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:U0.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:U0.DescribeBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return B0.serializeAws_json1_0DescribeBackupCommand(t,n)}deserialize(t,n){return B0.deserializeAws_json1_0DescribeBackupCommand(t,n)}};md.DescribeBackupCommand=F0});var qh=p(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.DescribeContinuousBackupsCommand=void 0;var G0=W(),$0=H(),PQ=j(),NQ=M(),K0=class extends NQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(PQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:G0.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:G0.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return $0.serializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}deserialize(t,n){return $0.deserializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}};fd.DescribeContinuousBackupsCommand=K0});var Mh=p(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.DescribeContributorInsightsCommand=void 0;var V0=W(),W0=H(),qQ=j(),MQ=M(),H0=class extends MQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(qQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:V0.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:V0.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return W0.serializeAws_json1_0DescribeContributorInsightsCommand(t,n)}deserialize(t,n){return W0.deserializeAws_json1_0DescribeContributorInsightsCommand(t,n)}};pd.DescribeContributorInsightsCommand=H0});var Oh=p(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.DescribeExportCommand=void 0;var Y0=W(),J0=H(),OQ=j(),zQ=M(),Q0=class extends zQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(OQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:Y0.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:Y0.DescribeExportOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return J0.serializeAws_json1_0DescribeExportCommand(t,n)}deserialize(t,n){return J0.deserializeAws_json1_0DescribeExportCommand(t,n)}};hd.DescribeExportCommand=Q0});var zh=p(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.DescribeGlobalTableCommand=void 0;var X0=W(),Z0=H(),jQ=j(),UQ=M(),eT=class extends UQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(jQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:X0.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:X0.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Z0.serializeAws_json1_0DescribeGlobalTableCommand(t,n)}deserialize(t,n){return Z0.deserializeAws_json1_0DescribeGlobalTableCommand(t,n)}};yd.DescribeGlobalTableCommand=eT});var jh=p(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.DescribeGlobalTableSettingsCommand=void 0;var tT=W(),nT=H(),BQ=j(),FQ=M(),rT=class extends FQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(BQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:tT.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:tT.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return nT.serializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}deserialize(t,n){return nT.deserializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}};gd.DescribeGlobalTableSettingsCommand=rT});var Uh=p(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.DescribeKinesisStreamingDestinationCommand=void 0;var sT=W(),iT=H(),GQ=j(),$Q=M(),aT=class extends $Q.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:sT.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:sT.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return iT.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return iT.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}};_d.DescribeKinesisStreamingDestinationCommand=aT});var Bh=p(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.DescribeLimitsCommand=void 0;var oT=W(),cT=H(),KQ=j(),VQ=M(),lT=class extends VQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:oT.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:oT.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return cT.serializeAws_json1_0DescribeLimitsCommand(t,n)}deserialize(t,n){return cT.deserializeAws_json1_0DescribeLimitsCommand(t,n)}};wd.DescribeLimitsCommand=lT});var zi=p(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.DescribeTableCommand=void 0;var dT=W(),uT=H(),WQ=j(),HQ=M(),mT=class extends HQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(WQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:dT.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:dT.DescribeTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return uT.serializeAws_json1_0DescribeTableCommand(t,n)}deserialize(t,n){return uT.deserializeAws_json1_0DescribeTableCommand(t,n)}};bd.DescribeTableCommand=mT});var Fh=p(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.DescribeTableReplicaAutoScalingCommand=void 0;var fT=W(),pT=H(),YQ=j(),JQ=M(),hT=class extends JQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:fT.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:fT.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return pT.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return pT.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}};Sd.DescribeTableReplicaAutoScalingCommand=hT});var Gh=p(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.DescribeTimeToLiveCommand=void 0;var yT=W(),gT=H(),QQ=j(),XQ=M(),_T=class extends XQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:yT.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:yT.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return gT.serializeAws_json1_0DescribeTimeToLiveCommand(t,n)}deserialize(t,n){return gT.deserializeAws_json1_0DescribeTimeToLiveCommand(t,n)}};vd.DescribeTimeToLiveCommand=_T});var $h=p(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.DisableKinesisStreamingDestinationCommand=void 0;var wT=W(),bT=H(),ZQ=j(),eX=M(),ST=class extends eX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(ZQ.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:wT.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:wT.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return bT.serializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return bT.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}};Ed.DisableKinesisStreamingDestinationCommand=ST});var Kh=p(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.EnableKinesisStreamingDestinationCommand=void 0;var vT=W(),ET=H(),tX=j(),nX=M(),AT=class extends nX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(tX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:vT.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:vT.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ET.serializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return ET.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}};Ad.EnableKinesisStreamingDestinationCommand=AT});var Vh=p(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.ExecuteStatementCommand=void 0;var CT=W(),TT=H(),rX=j(),sX=M(),xT=class extends sX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(rX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:CT.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:CT.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return TT.serializeAws_json1_0ExecuteStatementCommand(t,n)}deserialize(t,n){return TT.deserializeAws_json1_0ExecuteStatementCommand(t,n)}};Cd.ExecuteStatementCommand=xT});var Wh=p(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.ExecuteTransactionCommand=void 0;var IT=W(),RT=H(),iX=j(),aX=M(),kT=class extends aX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(iX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:IT.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:IT.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return RT.serializeAws_json1_0ExecuteTransactionCommand(t,n)}deserialize(t,n){return RT.deserializeAws_json1_0ExecuteTransactionCommand(t,n)}};Td.ExecuteTransactionCommand=kT});var Hh=p(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.ExportTableToPointInTimeCommand=void 0;var DT=W(),LT=H(),oX=j(),cX=M(),PT=class extends cX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(oX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:DT.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:DT.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return LT.serializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}deserialize(t,n){return LT.deserializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}};xd.ExportTableToPointInTimeCommand=PT});var Yh=p(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.GetItemCommand=void 0;var NT=W(),qT=H(),lX=j(),dX=M(),MT=class extends dX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(lX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:NT.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:NT.GetItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return qT.serializeAws_json1_0GetItemCommand(t,n)}deserialize(t,n){return qT.deserializeAws_json1_0GetItemCommand(t,n)}};Id.GetItemCommand=MT});var Jh=p(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.ListBackupsCommand=void 0;var OT=W(),zT=H(),uX=j(),mX=M(),jT=class extends mX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(uX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:OT.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:OT.ListBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return zT.serializeAws_json1_0ListBackupsCommand(t,n)}deserialize(t,n){return zT.deserializeAws_json1_0ListBackupsCommand(t,n)}};Rd.ListBackupsCommand=jT});var Dd=p(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.ListContributorInsightsCommand=void 0;var UT=W(),BT=H(),fX=j(),pX=M(),FT=class extends pX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(fX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:UT.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:UT.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return BT.serializeAws_json1_0ListContributorInsightsCommand(t,n)}deserialize(t,n){return BT.deserializeAws_json1_0ListContributorInsightsCommand(t,n)}};kd.ListContributorInsightsCommand=FT});var Pd=p(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.ListExportsCommand=void 0;var GT=W(),$T=H(),hX=j(),yX=M(),KT=class extends yX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(hX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:GT.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:GT.ListExportsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return $T.serializeAws_json1_0ListExportsCommand(t,n)}deserialize(t,n){return $T.deserializeAws_json1_0ListExportsCommand(t,n)}};Ld.ListExportsCommand=KT});var Qh=p(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.ListGlobalTablesCommand=void 0;var VT=W(),WT=H(),gX=j(),_X=M(),HT=class extends _X.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(gX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:VT.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:VT.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return WT.serializeAws_json1_0ListGlobalTablesCommand(t,n)}deserialize(t,n){return WT.deserializeAws_json1_0ListGlobalTablesCommand(t,n)}};Nd.ListGlobalTablesCommand=HT});var Md=p(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.ListTablesCommand=void 0;var YT=W(),JT=H(),wX=j(),bX=M(),QT=class extends bX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(wX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:YT.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:YT.ListTablesOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return JT.serializeAws_json1_0ListTablesCommand(t,n)}deserialize(t,n){return JT.deserializeAws_json1_0ListTablesCommand(t,n)}};qd.ListTablesCommand=QT});var Xh=p(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.ListTagsOfResourceCommand=void 0;var XT=W(),ZT=H(),SX=j(),vX=M(),ex=class extends vX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(SX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:XT.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:XT.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ZT.serializeAws_json1_0ListTagsOfResourceCommand(t,n)}deserialize(t,n){return ZT.deserializeAws_json1_0ListTagsOfResourceCommand(t,n)}};Od.ListTagsOfResourceCommand=ex});var Zh=p(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.PutItemCommand=void 0;var tx=W(),nx=H(),EX=j(),AX=M(),rx=class extends AX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(EX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:tx.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:tx.PutItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return nx.serializeAws_json1_0PutItemCommand(t,n)}deserialize(t,n){return nx.deserializeAws_json1_0PutItemCommand(t,n)}};zd.PutItemCommand=rx});var Ud=p(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.QueryCommand=void 0;var sx=W(),ix=H(),CX=j(),TX=M(),ax=class extends TX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(CX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:sx.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:sx.QueryOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ix.serializeAws_json1_0QueryCommand(t,n)}deserialize(t,n){return ix.deserializeAws_json1_0QueryCommand(t,n)}};jd.QueryCommand=ax});var ey=p(Bd=>{"use strict";Object.defineProperty(Bd,"__esModule",{value:!0});Bd.RestoreTableFromBackupCommand=void 0;var ox=W(),cx=H(),xX=j(),IX=M(),lx=class extends IX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(xX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:ox.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:ox.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return cx.serializeAws_json1_0RestoreTableFromBackupCommand(t,n)}deserialize(t,n){return cx.deserializeAws_json1_0RestoreTableFromBackupCommand(t,n)}};Bd.RestoreTableFromBackupCommand=lx});var ty=p(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.RestoreTableToPointInTimeCommand=void 0;var dx=W(),ux=H(),RX=j(),kX=M(),mx=class extends kX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(RX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:dx.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:dx.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return ux.serializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}deserialize(t,n){return ux.deserializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}};Fd.RestoreTableToPointInTimeCommand=mx});var $d=p(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.ScanCommand=void 0;var fx=W(),px=H(),DX=j(),LX=M(),hx=class extends LX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(DX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:fx.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:fx.ScanOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return px.serializeAws_json1_0ScanCommand(t,n)}deserialize(t,n){return px.deserializeAws_json1_0ScanCommand(t,n)}};Gd.ScanCommand=hx});var ny=p(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.TagResourceCommand=void 0;var PX=W(),yx=H(),NX=j(),qX=M(),gx=class extends qX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(NX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:PX.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return yx.serializeAws_json1_0TagResourceCommand(t,n)}deserialize(t,n){return yx.deserializeAws_json1_0TagResourceCommand(t,n)}};Kd.TagResourceCommand=gx});var ry=p(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.TransactGetItemsCommand=void 0;var _x=W(),wx=H(),MX=j(),OX=M(),bx=class extends OX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(MX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:_x.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:_x.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return wx.serializeAws_json1_0TransactGetItemsCommand(t,n)}deserialize(t,n){return wx.deserializeAws_json1_0TransactGetItemsCommand(t,n)}};Vd.TransactGetItemsCommand=bx});var sy=p(Wd=>{"use strict";Object.defineProperty(Wd,"__esModule",{value:!0});Wd.TransactWriteItemsCommand=void 0;var Sx=W(),vx=H(),zX=j(),jX=M(),Ex=class extends jX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(zX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:Sx.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:Sx.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return vx.serializeAws_json1_0TransactWriteItemsCommand(t,n)}deserialize(t,n){return vx.deserializeAws_json1_0TransactWriteItemsCommand(t,n)}};Wd.TransactWriteItemsCommand=Ex});var iy=p(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.UntagResourceCommand=void 0;var UX=W(),Ax=H(),BX=j(),FX=M(),Cx=class extends FX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(BX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:UX.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Ax.serializeAws_json1_0UntagResourceCommand(t,n)}deserialize(t,n){return Ax.deserializeAws_json1_0UntagResourceCommand(t,n)}};Hd.UntagResourceCommand=Cx});var ay=p(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.UpdateContinuousBackupsCommand=void 0;var Tx=W(),xx=H(),GX=j(),$X=M(),Ix=class extends $X.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:Tx.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:Tx.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return xx.serializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}deserialize(t,n){return xx.deserializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}};Yd.UpdateContinuousBackupsCommand=Ix});var oy=p(Jd=>{"use strict";Object.defineProperty(Jd,"__esModule",{value:!0});Jd.UpdateContributorInsightsCommand=void 0;var Rx=W(),kx=H(),KX=j(),VX=M(),Dx=class extends VX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:Rx.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:Rx.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return kx.serializeAws_json1_0UpdateContributorInsightsCommand(t,n)}deserialize(t,n){return kx.deserializeAws_json1_0UpdateContributorInsightsCommand(t,n)}};Jd.UpdateContributorInsightsCommand=Dx});var cy=p(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.UpdateGlobalTableCommand=void 0;var Lx=W(),Px=H(),WX=j(),HX=M(),Nx=class extends HX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(WX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:Lx.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:Lx.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Px.serializeAws_json1_0UpdateGlobalTableCommand(t,n)}deserialize(t,n){return Px.deserializeAws_json1_0UpdateGlobalTableCommand(t,n)}};Qd.UpdateGlobalTableCommand=Nx});var ly=p(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.UpdateGlobalTableSettingsCommand=void 0;var qx=W(),Mx=H(),YX=j(),JX=M(),Ox=class extends JX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:qx.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:qx.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Mx.serializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}deserialize(t,n){return Mx.deserializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}};Xd.UpdateGlobalTableSettingsCommand=Ox});var dy=p(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.UpdateItemCommand=void 0;var zx=W(),jx=H(),QX=j(),XX=M(),Ux=class extends XX.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:zx.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:zx.UpdateItemOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return jx.serializeAws_json1_0UpdateItemCommand(t,n)}deserialize(t,n){return jx.deserializeAws_json1_0UpdateItemCommand(t,n)}};Zd.UpdateItemCommand=Ux});var uy=p(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.UpdateTableCommand=void 0;var Bx=W(),Fx=H(),ZX=j(),e7=M(),Gx=class extends e7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(ZX.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:Bx.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:Bx.UpdateTableOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Fx.serializeAws_json1_0UpdateTableCommand(t,n)}deserialize(t,n){return Fx.deserializeAws_json1_0UpdateTableCommand(t,n)}};eu.UpdateTableCommand=Gx});var my=p(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.UpdateTableReplicaAutoScalingCommand=void 0;var $x=W(),Kx=H(),t7=j(),n7=M(),Vx=class extends n7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(t7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:$x.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:$x.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Kx.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return Kx.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}};tu.UpdateTableReplicaAutoScalingCommand=Vx});var fy=p(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.UpdateTimeToLiveCommand=void 0;var Wx=W(),Hx=H(),r7=j(),s7=M(),Yx=class extends s7.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(r7.getSerdePlugin(n,this.serialize,this.deserialize));let s=t.concat(this.middlewareStack),{logger:i}=n,l={logger:i,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:Wx.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:Wx.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:m}=n;return s.resolve(f=>m.handle(f.request,r||{}),l)}serialize(t,n){return Hx.serializeAws_json1_0UpdateTimeToLiveCommand(t,n)}deserialize(t,n){return Hx.deserializeAws_json1_0UpdateTimeToLiveCommand(t,n)}};nu.UpdateTimeToLiveCommand=Yx});var Gr=p(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.DynamoDB=void 0;var i7=cr(),a7=Ch(),o7=Th(),c7=xh(),l7=Ih(),d7=Rh(),u7=kh(),m7=Dh(),f7=Lh(),p7=Ph(),h7=Nh(),y7=qh(),g7=Mh(),_7=vo(),w7=Oh(),b7=zh(),S7=jh(),v7=Uh(),E7=Bh(),A7=zi(),C7=Fh(),T7=Gh(),x7=$h(),I7=Kh(),R7=Vh(),k7=Wh(),D7=Hh(),L7=Yh(),P7=Jh(),N7=Dd(),q7=Pd(),M7=Qh(),O7=Md(),z7=Xh(),j7=Zh(),U7=Ud(),B7=ey(),F7=ty(),G7=$d(),$7=ny(),K7=ry(),V7=sy(),W7=iy(),H7=ay(),Y7=oy(),J7=cy(),Q7=ly(),X7=dy(),Z7=uy(),eZ=my(),tZ=fy(),Jx=class extends i7.DynamoDBClient{batchExecuteStatement(t,n,r){let s=new a7.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchGetItem(t,n,r){let s=new o7.BatchGetItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchWriteItem(t,n,r){let s=new c7.BatchWriteItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createBackup(t,n,r){let s=new l7.CreateBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createGlobalTable(t,n,r){let s=new d7.CreateGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}createTable(t,n,r){let s=new u7.CreateTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteBackup(t,n,r){let s=new m7.DeleteBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteItem(t,n,r){let s=new f7.DeleteItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}deleteTable(t,n,r){let s=new p7.DeleteTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeBackup(t,n,r){let s=new h7.DescribeBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeContinuousBackups(t,n,r){let s=new y7.DescribeContinuousBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeContributorInsights(t,n,r){let s=new g7.DescribeContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeEndpoints(t,n,r){let s=new _7.DescribeEndpointsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeExport(t,n,r){let s=new w7.DescribeExportCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeGlobalTable(t,n,r){let s=new b7.DescribeGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeGlobalTableSettings(t,n,r){let s=new S7.DescribeGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeKinesisStreamingDestination(t,n,r){let s=new v7.DescribeKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeLimits(t,n,r){let s=new E7.DescribeLimitsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTable(t,n,r){let s=new A7.DescribeTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTableReplicaAutoScaling(t,n,r){let s=new C7.DescribeTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}describeTimeToLive(t,n,r){let s=new T7.DescribeTimeToLiveCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}disableKinesisStreamingDestination(t,n,r){let s=new x7.DisableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}enableKinesisStreamingDestination(t,n,r){let s=new I7.EnableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeStatement(t,n,r){let s=new R7.ExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeTransaction(t,n,r){let s=new k7.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}exportTableToPointInTime(t,n,r){let s=new D7.ExportTableToPointInTimeCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}getItem(t,n,r){let s=new L7.GetItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listBackups(t,n,r){let s=new P7.ListBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listContributorInsights(t,n,r){let s=new N7.ListContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listExports(t,n,r){let s=new q7.ListExportsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listGlobalTables(t,n,r){let s=new M7.ListGlobalTablesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listTables(t,n,r){let s=new O7.ListTablesCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}listTagsOfResource(t,n,r){let s=new z7.ListTagsOfResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}putItem(t,n,r){let s=new j7.PutItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}query(t,n,r){let s=new U7.QueryCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}restoreTableFromBackup(t,n,r){let s=new B7.RestoreTableFromBackupCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}restoreTableToPointInTime(t,n,r){let s=new F7.RestoreTableToPointInTimeCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}scan(t,n,r){let s=new G7.ScanCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}tagResource(t,n,r){let s=new $7.TagResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactGetItems(t,n,r){let s=new K7.TransactGetItemsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactWriteItems(t,n,r){let s=new V7.TransactWriteItemsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}untagResource(t,n,r){let s=new W7.UntagResourceCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateContinuousBackups(t,n,r){let s=new H7.UpdateContinuousBackupsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateContributorInsights(t,n,r){let s=new Y7.UpdateContributorInsightsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateGlobalTable(t,n,r){let s=new J7.UpdateGlobalTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateGlobalTableSettings(t,n,r){let s=new Q7.UpdateGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateItem(t,n,r){let s=new X7.UpdateItemCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTable(t,n,r){let s=new Z7.UpdateTableCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTableReplicaAutoScaling(t,n,r){let s=new eZ.UpdateTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}updateTimeToLive(t,n,r){let s=new tZ.UpdateTimeToLiveCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};ru.DynamoDB=Jx});var py=p(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.sleep=void 0;var nZ=e=>new Promise(t=>setTimeout(t,e*1e3));su.sleep=nZ});var au=p(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.checkExceptions=On.WaiterState=On.waiterServiceDefaults=void 0;On.waiterServiceDefaults={minDelay:2,maxDelay:120};var iu;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(iu=On.WaiterState||(On.WaiterState={}));var rZ=e=>{if(e.state===iu.ABORTED){let t=new Error(`${JSON.stringify(u(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===iu.TIMEOUT){let t=new Error(`${JSON.stringify(u(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==iu.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};On.checkExceptions=rZ});var Qx=p(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.runPolling=void 0;var sZ=py(),ou=au(),iZ=(e,t,n,r)=>{if(r>n)return t;let s=e*2**(r-1);return aZ(e,s)},aZ=(e,t)=>e+Math.random()*(t-e),oZ=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:s,abortSignal:i},a,c)=>{var l;let{state:m}=await c(s,a);if(m!==ou.WaiterState.RETRY)return{state:m};let f=1,g=Date.now()+n*1e3,h=Math.log(t/e)/Math.log(2)+1;for(;;){if(((l=r==null?void 0:r.signal)===null||l===void 0?void 0:l.aborted)||(i==null?void 0:i.aborted))return{state:ou.WaiterState.ABORTED};let _=iZ(e,t,h,f);if(Date.now()+_*1e3>g)return{state:ou.WaiterState.TIMEOUT};await sZ.sleep(_);let{state:b}=await c(s,a);if(b!==ou.WaiterState.RETRY)return{state:b};f+=1}};cu.runPolling=oZ});var Xx=p(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.validateWaiterOptions=void 0;var cZ=e=>{if(e.maxWaitTime<1)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<1)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<1)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)};lu.validateWaiterOptions=cZ});var eI=p(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});var Zx=he();Zx.__exportStar(py(),du);Zx.__exportStar(Xx(),du)});var rI=p(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.createWaiter=void 0;var lZ=Qx(),dZ=eI(),tI=au(),nI=async e=>new Promise(t=>{e.onabort=()=>t({state:tI.WaiterState.ABORTED})}),uZ=async(e,t,n)=>{let r=o(o({},tI.waiterServiceDefaults),e);dZ.validateWaiterOptions(r);let s=[lZ.runPolling(r,t,n)];return e.abortController&&s.push(nI(e.abortController.signal)),e.abortSignal&&s.push(nI(e.abortSignal)),Promise.race(s)};uu.createWaiter=uZ});var hy=p(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});var sI=he();sI.__exportStar(rI(),mu);sI.__exportStar(au(),mu)});var aI=p(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.waitUntilTableExists=ks.waitForTableExists=void 0;var mZ=zi(),Rs=hy(),iI=async(e,t)=>{let n;try{let r=await e.send(new mZ.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:Rs.WaiterState.SUCCESS,reason:n}}catch(s){}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Rs.WaiterState.RETRY,reason:n}}return{state:Rs.WaiterState.RETRY,reason:n}},fZ=async(e,t)=>{let n={minDelay:20,maxDelay:120};return Rs.createWaiter(o(o({},n),e),t,iI)};ks.waitForTableExists=fZ;var pZ=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await Rs.createWaiter(o(o({},n),e),t,iI);return Rs.checkExceptions(r)};ks.waitUntilTableExists=pZ});var cI=p(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});Ds.waitUntilTableNotExists=Ds.waitForTableNotExists=void 0;var hZ=zi(),ji=hy(),oI=async(e,t)=>{let n;try{n=await e.send(new hZ.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:ji.WaiterState.SUCCESS,reason:n}}return{state:ji.WaiterState.RETRY,reason:n}},yZ=async(e,t)=>{let n={minDelay:20,maxDelay:120};return ji.createWaiter(o(o({},n),e),t,oI)};Ds.waitForTableNotExists=yZ;var gZ=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await ji.createWaiter(o(o({},n),e),t,oI);return ji.checkExceptions(r)};Ds.waitUntilTableNotExists=gZ});var lI=p(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.paginateListContributorInsights=void 0;var _Z=Gr(),wZ=cr(),bZ=Dd(),SZ=async(e,t,...n)=>await e.send(new bZ.ListContributorInsightsCommand(t),...n),vZ=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*EZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof _Z.DynamoDB)i=await vZ(e.client,t,...n);else if(e.client instanceof wZ.DynamoDBClient)i=await SZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.NextToken,s=!!r}return void 0}fu.paginateListContributorInsights=EZ});var dI=p(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.paginateListExports=void 0;var AZ=Gr(),CZ=cr(),TZ=Pd(),xZ=async(e,t,...n)=>await e.send(new TZ.ListExportsCommand(t),...n),IZ=async(e,t,...n)=>await e.listExports(t,...n);async function*RZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof AZ.DynamoDB)i=await IZ(e.client,t,...n);else if(e.client instanceof CZ.DynamoDBClient)i=await xZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.NextToken,s=!!r}return void 0}pu.paginateListExports=RZ});var uI=p(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.paginateListTables=void 0;var kZ=Gr(),DZ=cr(),LZ=Md(),PZ=async(e,t,...n)=>await e.send(new LZ.ListTablesCommand(t),...n),NZ=async(e,t,...n)=>await e.listTables(t,...n);async function*qZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartTableName=r,t.Limit=e.pageSize,e.client instanceof kZ.DynamoDB)i=await NZ(e.client,t,...n);else if(e.client instanceof DZ.DynamoDBClient)i=await PZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedTableName,s=!!r}return void 0}hu.paginateListTables=qZ});var mI=p(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.paginateQuery=void 0;var MZ=Gr(),OZ=cr(),zZ=Ud(),jZ=async(e,t,...n)=>await e.send(new zZ.QueryCommand(t),...n),UZ=async(e,t,...n)=>await e.query(t,...n);async function*BZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof MZ.DynamoDB)i=await UZ(e.client,t,...n);else if(e.client instanceof OZ.DynamoDBClient)i=await jZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedKey,s=!!r}return void 0}yu.paginateQuery=BZ});var fI=p(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.paginateScan=void 0;var FZ=Gr(),GZ=cr(),$Z=$d(),KZ=async(e,t,...n)=>await e.send(new $Z.ScanCommand(t),...n),VZ=async(e,t,...n)=>await e.scan(t,...n);async function*WZ(e,t,...n){let r=e.startingToken||void 0,s=!0,i;for(;s;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof FZ.DynamoDB)i=await VZ(e.client,t,...n);else if(e.client instanceof GZ.DynamoDBClient)i=await KZ(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield i,r=i.LastEvaluatedKey,s=!!r}return void 0}gu.paginateScan=WZ});var hI=p(pI=>{"use strict";Object.defineProperty(pI,"__esModule",{value:!0})});var yI=p(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var HZ=he();HZ.__exportStar(W(),yy)});var mt=p(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});var F=he();F.__exportStar(cr(),U);F.__exportStar(Gr(),U);F.__exportStar(Ch(),U);F.__exportStar(Th(),U);F.__exportStar(xh(),U);F.__exportStar(Ih(),U);F.__exportStar(Rh(),U);F.__exportStar(kh(),U);F.__exportStar(Dh(),U);F.__exportStar(Lh(),U);F.__exportStar(Ph(),U);F.__exportStar(Nh(),U);F.__exportStar(qh(),U);F.__exportStar(Mh(),U);F.__exportStar(vo(),U);F.__exportStar(Oh(),U);F.__exportStar(zh(),U);F.__exportStar(jh(),U);F.__exportStar(Uh(),U);F.__exportStar(Bh(),U);F.__exportStar(zi(),U);F.__exportStar(aI(),U);F.__exportStar(cI(),U);F.__exportStar(Fh(),U);F.__exportStar(Gh(),U);F.__exportStar($h(),U);F.__exportStar(Kh(),U);F.__exportStar(Vh(),U);F.__exportStar(Wh(),U);F.__exportStar(Hh(),U);F.__exportStar(Yh(),U);F.__exportStar(Jh(),U);F.__exportStar(Dd(),U);F.__exportStar(lI(),U);F.__exportStar(Pd(),U);F.__exportStar(dI(),U);F.__exportStar(Qh(),U);F.__exportStar(Md(),U);F.__exportStar(uI(),U);F.__exportStar(Xh(),U);F.__exportStar(Zh(),U);F.__exportStar(Ud(),U);F.__exportStar(mI(),U);F.__exportStar(ey(),U);F.__exportStar(ty(),U);F.__exportStar($d(),U);F.__exportStar(fI(),U);F.__exportStar(ny(),U);F.__exportStar(ry(),U);F.__exportStar(sy(),U);F.__exportStar(iy(),U);F.__exportStar(ay(),U);F.__exportStar(oy(),U);F.__exportStar(cy(),U);F.__exportStar(ly(),U);F.__exportStar(dy(),U);F.__exportStar(uy(),U);F.__exportStar(my(),U);F.__exportStar(fy(),U);F.__exportStar(hI(),U);F.__exportStar(yI(),U)});var gy=p($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.convertToAttr=void 0;var YZ=(e,t)=>{var n,r,s,i,a,c;if(e===void 0)throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(e===null&&typeof e=="object")return _u();if(Array.isArray(e))return JZ(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return QZ(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return XZ(e,t);if(((s=e==null?void 0:e.constructor)===null||s===void 0?void 0:s.name)==="Object"||!e.constructor&&typeof e=="object")return gI(e,t);if(EI(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?_u():_I(e);if(typeof e=="boolean"||((i=e==null?void 0:e.constructor)===null||i===void 0?void 0:i.name)==="Boolean")return{BOOL:e.valueOf()};if(typeof e=="number"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="Number")return vI(e);if(typeof e=="bigint")return bI(e);if(typeof e=="string"||((c=e==null?void 0:e.constructor)===null||c===void 0?void 0:c.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?_u():wI(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return gI(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};$r.convertToAttr=YZ;var JZ=(e,t)=>({L:e.filter(n=>!(t==null?void 0:t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>$r.convertToAttr(n,t))}),QZ=(e,t)=>{let n=(t==null?void 0:t.removeUndefinedValues)?new Set([...e].filter(s=>s!==void 0)):e;if(!(t==null?void 0:t.removeUndefinedValues)&&n.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(n.size===0){if(t==null?void 0:t.convertEmptyValues)return _u();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let r=n.values().next().value;if(typeof r=="number")return{NS:Array.from(n).map(vI).map(s=>s.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(bI).map(s=>s.N)};if(typeof r=="string")return{SS:Array.from(n).map(wI).map(s=>s.S)};if(EI(r))return{BS:Array.from(n).map(_I).map(s=>s.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},XZ=(e,t)=>({M:(n=>{let r={};for(let[s,i]of n)typeof i!="function"&&(i!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[s]=$r.convertToAttr(i,t));return r})(e)}),gI=(e,t)=>({M:(n=>{let r={};for(let s in n){let i=n[s];typeof i!="function"&&(i!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[s]=$r.convertToAttr(i,t))}return r})(e)}),_u=()=>({NULL:!0}),_I=e=>({B:e}),wI=e=>({S:e.toString()}),bI=e=>({N:e.toString()}),SI=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},vI=e=>{if([Number.NaN,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY].map(t=>t.toString()).includes(e.toString()))throw new Error(`Special numeric value ${e.toString()} is not allowed`);return e>Number.MAX_SAFE_INTEGER?SI(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&SI(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},EI=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return(e==null?void 0:e.constructor)?t.includes(e.constructor.name):!1}});var _y=p(Ls=>{"use strict";Object.defineProperty(Ls,"__esModule",{value:!0});Ls.convertToNative=void 0;var ZZ=(e,t)=>{for(let[n,r]of Object.entries(e))if(r!==void 0)switch(n){case"NULL":return null;case"BOOL":return Boolean(r);case"N":return AI(r,t);case"B":return TI(r);case"S":return CI(r);case"L":return eee(r,t);case"M":return tee(r,t);case"NS":return new Set(r.map(s=>AI(s,t)));case"BS":return new Set(r.map(TI));case"SS":return new Set(r.map(CI));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};Ls.convertToNative=ZZ;var AI=(e,t)=>{if(t==null?void 0:t.wrapNumbers)return{value:e};let n=Number(e),r=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER)&&!r.includes(n))if(typeof BigInt=="function")try{return BigInt(e)}catch(s){throw new Error(`${e} can't be converted to BigInt. Set options.wrapNumbers to get string value.`)}else throw new Error(`${e} is outside SAFE_INTEGER bounds. Set options.wrapNumbers to get string value.`);return n},CI=e=>e,TI=e=>e,eee=(e,t)=>e.map(n=>Ls.convertToNative(n,t)),tee=(e,t)=>Object.entries(e).reduce((n,[r,s])=>u(o({},n),{[r]:Ls.convertToNative(s,t)}),{})});var xI=p(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.marshall=void 0;var nee=gy(),ree=(e,t)=>nee.convertToAttr(e,t).M;wu.marshall=ree});var RI=p(II=>{"use strict";Object.defineProperty(II,"__esModule",{value:!0})});var kI=p(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.unmarshall=void 0;var see=_y(),iee=(e,t)=>see.convertToNative({M:e},t);bu.unmarshall=iee});var DI=p(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});var Ui=he();Ui.__exportStar(gy(),Kr);Ui.__exportStar(_y(),Kr);Ui.__exportStar(xI(),Kr);Ui.__exportStar(RI(),Kr);Ui.__exportStar(kI(),Kr)});var Et=p(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.unmarshallOutput=Ps.marshallInput=void 0;var LI=DI(),PI=(e,t,n)=>{if(e)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?wy(e,t,n):aee(e,t,n.children)},NI=(e,t,n)=>Array.isArray(e)?e.map(r=>PI(r,t,n)):PI(e,t,n),wy=(e,t,n)=>n.reduce((r,{key:s,children:i})=>u(o({},r),{[s]:NI(r[s],t,i)}),e),aee=(e,t,n)=>Object.entries(e).reduce((r,[s,i])=>u(o({},r),{[s]:NI(i,t,n)}),{}),oee=(e,t,n)=>wy(e,s=>LI.marshall(s,n),t);Ps.marshallInput=oee;var cee=(e,t,n)=>wy(e,s=>LI.unmarshall(s,n),t);Ps.unmarshallOutput=cee});var by=p(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.BatchExecuteStatementCommand=void 0;var qI=Et(),lee=mt(),dee=M(),MI=class extends dee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new lee.BatchExecuteStatementCommand(qI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:qI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Su.BatchExecuteStatementCommand=MI});var Sy=p(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.BatchGetCommand=void 0;var OI=Et(),uee=mt(),mee=M(),zI=class extends mee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"Keys"}]}}],this.outputKeyNodes=[{key:"Responses",children:{}},{key:"UnprocessedKeys",children:{children:[{key:"Keys"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new uee.BatchGetItemCommand(OI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:OI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};vu.BatchGetCommand=zI});var vy=p(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.BatchWriteCommand=void 0;var jI=Et(),fee=mt(),pee=M(),UI=class extends pee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"RequestItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}}],this.outputKeyNodes=[{key:"UnprocessedItems",children:{children:[{key:"PutRequest",children:[{key:"Item"}]},{key:"DeleteRequest",children:[{key:"Key"}]}]}},{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new fee.BatchWriteItemCommand(jI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:jI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Eu.BatchWriteCommand=UI});var Ey=p(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.DeleteCommand=void 0;var BI=Et(),hee=mt(),yee=M(),FI=class extends yee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new hee.DeleteItemCommand(BI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:BI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Au.DeleteCommand=FI});var Ay=p(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.ExecuteStatementCommand=void 0;var GI=Et(),gee=mt(),_ee=M(),$I=class extends _ee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new gee.ExecuteStatementCommand(GI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:GI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Cu.ExecuteStatementCommand=$I});var Cy=p(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.ExecuteTransactionCommand=void 0;var KI=Et(),wee=mt(),bee=M(),VI=class extends bee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new wee.ExecuteTransactionCommand(KI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:KI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Tu.ExecuteTransactionCommand=VI});var Ty=p(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.GetCommand=void 0;var WI=Et(),See=mt(),vee=M(),HI=class extends vee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new See.GetItemCommand(WI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:WI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};xu.GetCommand=HI});var xy=p(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.PutCommand=void 0;var YI=Et(),Eee=mt(),Aee=M(),JI=class extends Aee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Item"},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Eee.PutItemCommand(YI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:YI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Iu.PutCommand=JI});var Iy=p(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.QueryCommand=void 0;var QI=Et(),Cee=mt(),Tee=M(),XI=class extends Tee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"KeyConditions",children:{children:[{key:"AttributeValueList"}]}},{key:"QueryFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Cee.QueryCommand(QI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:QI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Ru.QueryCommand=XI});var Ry=p(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.ScanCommand=void 0;var ZI=Et(),xee=mt(),Iee=M(),e1=class extends Iee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"ScanFilter",children:{children:[{key:"AttributeValueList"}]}},{key:"ExclusiveStartKey"},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new xee.ScanCommand(ZI.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:ZI.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};ku.ScanCommand=e1});var ky=p(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.TransactGetCommand=void 0;var t1=Et(),Ree=mt(),kee=M(),n1=class extends kee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"Get",children:[{key:"Key"}]}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Ree.TransactGetItemsCommand(t1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:t1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Du.TransactGetCommand=n1});var Dy=p(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.TransactWriteCommand=void 0;var r1=Et(),Dee=mt(),Lee=M(),s1=class extends Lee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"TransactItems",children:[{key:"ConditionCheck",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Put",children:[{key:"Item"},{key:"ExpressionAttributeValues"}]},{key:"Delete",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]},{key:"Update",children:[{key:"Key"},{key:"ExpressionAttributeValues"}]}]}],this.outputKeyNodes=[{key:"ItemCollectionMetrics",children:{children:[{key:"ItemCollectionKey"}]}}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Dee.TransactWriteItemsCommand(r1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:r1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Lu.TransactWriteCommand=s1});var Ly=p(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.UpdateCommand=void 0;var i1=Et(),Pee=mt(),Nee=M(),a1=class extends Nee.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Key"},{key:"AttributeUpdates",children:{children:[{key:"Value"}]}},{key:"Expected",children:{children:[{key:"Value"},{key:"AttributeValueList"}]}},{key:"ExpressionAttributeValues"}],this.outputKeyNodes=[{key:"Attributes"},{key:"ItemCollectionMetrics",children:[{key:"ItemCollectionKey"}]}]}resolveMiddleware(t,n,r){let{marshallOptions:s,unmarshallOptions:i}=n.translateConfig||{},a=new Pee.UpdateItemCommand(i1.marshallInput(this.input,this.inputKeyNodes,s)),c=a.resolveMiddleware(t,n,r);return async()=>{let l=await c(a);return u(o({},l),{output:i1.unmarshallOutput(l.output,this.outputKeyNodes,i)})}}};Pu.UpdateCommand=a1});var Py=p(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.DynamoDBDocumentClient=void 0;var qee=M(),Nu=class extends qee.Client{constructor(t,n){super(t.config);this.config=t.config,this.config.translateConfig=n,this.middlewareStack=t.middlewareStack}static from(t,n){return new Nu(t,n)}destroy(){}};qu.DynamoDBDocumentClient=Nu});var o1=p(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.DynamoDBDocument=void 0;var Mee=Py(),Oee=by(),zee=Sy(),jee=vy(),Uee=Ey(),Bee=Ay(),Fee=Cy(),Gee=Ty(),$ee=xy(),Kee=Iy(),Vee=Ry(),Wee=ky(),Hee=Dy(),Yee=Ly(),Mu=class extends Mee.DynamoDBDocumentClient{static from(t,n){return new Mu(t,n)}batchExecuteStatement(t,n,r){let s=new Oee.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchGet(t,n,r){let s=new zee.BatchGetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}batchWrite(t,n,r){let s=new jee.BatchWriteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}delete(t,n,r){let s=new Uee.DeleteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeStatement(t,n,r){let s=new Bee.ExecuteStatementCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}executeTransaction(t,n,r){let s=new Fee.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}get(t,n,r){let s=new Gee.GetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}put(t,n,r){let s=new $ee.PutCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}query(t,n,r){let s=new Kee.QueryCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}scan(t,n,r){let s=new Vee.ScanCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactGet(t,n,r){let s=new Wee.TransactGetCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}transactWrite(t,n,r){let s=new Hee.TransactWriteCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}update(t,n,r){let s=new Yee.UpdateCommand(t);if(typeof n=="function")this.send(s,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(s,n||{},r)}else return this.send(s,n)}};Ou.DynamoDBDocument=Mu});var c1=p(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});var ft=he();ft.__exportStar(by(),Ze);ft.__exportStar(Sy(),Ze);ft.__exportStar(vy(),Ze);ft.__exportStar(Ey(),Ze);ft.__exportStar(Ay(),Ze);ft.__exportStar(Cy(),Ze);ft.__exportStar(Ty(),Ze);ft.__exportStar(xy(),Ze);ft.__exportStar(Iy(),Ze);ft.__exportStar(Ry(),Ze);ft.__exportStar(ky(),Ze);ft.__exportStar(Dy(),Ze);ft.__exportStar(Ly(),Ze);ft.__exportStar(Py(),Ze);ft.__exportStar(o1(),Ze)});var d1=p(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.DBManager=void 0;var Jee=c1(),l1=class{constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=Jee.DynamoDBDocument.from(this._client)}get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};zu.DBManager=l1});var u1=p(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.TransformationType=void 0;var Qee;(function(e){e[e.PLAIN_TO_CLASS=0]="PLAIN_TO_CLASS",e[e.CLASS_TO_PLAIN=1]="CLASS_TO_PLAIN",e[e.CLASS_TO_CLASS=2]="CLASS_TO_CLASS"})(Qee=Bi.TransformationType||(Bi.TransformationType={}))});var Fi=p(Vr=>{"use strict";var Xee=Vr&&Vr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Zee=Vr&&Vr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Xee(t,e,n)};Object.defineProperty(Vr,"__esModule",{value:!0});Zee(u1(),Vr)});var f1=p(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.MetadataStorage=void 0;var zn=Fi(),m1=class{constructor(){this._typeMetadatas=new Map,this._transformMetadatas=new Map,this._exposeMetadatas=new Map,this._excludeMetadatas=new Map,this._ancestorsMap=new Map}addTypeMetadata(t){this._typeMetadatas.has(t.target)||this._typeMetadatas.set(t.target,new Map),this._typeMetadatas.get(t.target).set(t.propertyName,t)}addTransformMetadata(t){this._transformMetadatas.has(t.target)||this._transformMetadatas.set(t.target,new Map),this._transformMetadatas.get(t.target).has(t.propertyName)||this._transformMetadatas.get(t.target).set(t.propertyName,[]),this._transformMetadatas.get(t.target).get(t.propertyName).push(t)}addExposeMetadata(t){this._exposeMetadatas.has(t.target)||this._exposeMetadatas.set(t.target,new Map),this._exposeMetadatas.get(t.target).set(t.propertyName,t)}addExcludeMetadata(t){this._excludeMetadatas.has(t.target)||this._excludeMetadatas.set(t.target,new Map),this._excludeMetadatas.get(t.target).set(t.propertyName,t)}findTransformMetadatas(t,n,r){return this.findMetadatas(this._transformMetadatas,t,n).filter(s=>!s.options||s.options.toClassOnly===!0&&s.options.toPlainOnly===!0?!0:s.options.toClassOnly===!0?r===zn.TransformationType.CLASS_TO_CLASS||r===zn.TransformationType.PLAIN_TO_CLASS:s.options.toPlainOnly===!0?r===zn.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,n){return this.findMetadata(this._excludeMetadatas,t,n)}findExposeMetadata(t,n){return this.findMetadata(this._exposeMetadatas,t,n)}findExposeMetadataByCustomName(t,n){return this.getExposedMetadatas(t).find(r=>r.options&&r.options.name===n)}findTypeMetadata(t,n){return this.findMetadata(this._typeMetadatas,t,n)}getStrategy(t){let n=this._excludeMetadatas.get(t),r=n&&n.get(void 0),s=this._exposeMetadatas.get(t),i=s&&s.get(void 0);return r&&i||!r&&!i?"none":r?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,n){return this.getExposedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===zn.TransformationType.CLASS_TO_CLASS||n===zn.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===zn.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}getExcludedProperties(t,n){return this.getExcludedMetadatas(t).filter(r=>!r.options||r.options.toClassOnly===!0&&r.options.toPlainOnly===!0?!0:r.options.toClassOnly===!0?n===zn.TransformationType.CLASS_TO_CLASS||n===zn.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===zn.TransformationType.CLASS_TO_PLAIN:!0).map(r=>r.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,n){let r=t.get(n),s;r&&(s=Array.from(r.values()).filter(a=>a.propertyName!==void 0));let i=[];for(let a of this.getAncestors(n)){let c=t.get(a);if(c){let l=Array.from(c.values()).filter(m=>m.propertyName!==void 0);i.push(...l)}}return i.concat(s||[])}findMetadata(t,n,r){let s=t.get(n);if(s){let i=s.get(r);if(i)return i}for(let i of this.getAncestors(n)){let a=t.get(i);if(a){let c=a.get(r);if(c)return c}}}findMetadatas(t,n,r){let s=t.get(n),i;s&&(i=s.get(r));let a=[];for(let c of this.getAncestors(n)){let l=t.get(c);l&&l.has(r)&&a.push(...l.get(r))}return a.slice().reverse().concat((i||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let n=[];for(let r=Object.getPrototypeOf(t.prototype.constructor);typeof r.prototype!="undefined";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};ju.MetadataStorage=m1});var Ns=p(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.defaultMetadataStorage=void 0;var ete=f1();Uu.defaultMetadataStorage=new ete.MetadataStorage});var p1=p(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.getGlobal=void 0;function tte(){if(typeof globalThis!="undefined")return globalThis;if(typeof global!="undefined")return global;if(typeof window!="undefined")return window;if(typeof self!="undefined")return self}Bu.getGlobal=tte});var h1=p(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.isPromise=void 0;function nte(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Fu.isPromise=nte});var g1=p(lr=>{"use strict";var rte=lr&&lr.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),y1=lr&&lr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rte(t,e,n)};Object.defineProperty(lr,"__esModule",{value:!0});y1(p1(),lr);y1(h1(),lr)});var b1=p(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.TransformOperationExecutor=void 0;var $t=Ns(),ze=Fi(),_1=g1();function ste(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var w1=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,s,i,a=0){if(Array.isArray(n)||n instanceof Set){let c=s&&this.transformationType===ze.TransformationType.PLAIN_TO_CLASS?ste(s):[];return n.forEach((l,m)=>{let f=t?t[m]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(l)){let g;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){g=r.options.discriminator.subTypes.find(E=>E.name===l[r.options.discriminator.property]);let _={newObject:c,object:l,property:void 0},b=r.typeFunction(_);g===void 0?g=b:g=g.value,r.options.keepDiscriminatorProperty||delete l[r.options.discriminator.property]}this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(g=l.constructor),this.transformationType===ze.TransformationType.CLASS_TO_PLAIN&&(l[r.options.discriminator.property]=r.options.discriminator.subTypes.find(_=>_.value===l.constructor).name)}else g=r;let h=this.transform(f,l,g,void 0,l instanceof Map,a+1);c instanceof Set?c.add(h):c.push(h)}else this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(c instanceof Set?c.add(l):c.push(l))}),c}else{if(r===String&&!i)return n==null?n:String(n);if(r===Number&&!i)return n==null?n:Number(n);if(r===Boolean&&!i)return n==null?n:Boolean(n);if((r===Date||n instanceof Date)&&!i)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!_1.getGlobal().Buffer&&(r===Buffer||n instanceof Buffer)&&!i)return n==null?n:Buffer.from(n);if(_1.isPromise(n)&&!i)return new Promise((c,l)=>{n.then(m=>c(this.transform(void 0,m,r,void 0,void 0,a+1)),l)});if(!i&&n!==null&&typeof n=="object"&&typeof n.then=="function")return n;if(typeof n=="object"&&n!==null){!r&&n.constructor!==Object&&(r=n.constructor),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let c=this.getKeys(r,n,i),l=t||{};!t&&(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS||this.transformationType===ze.TransformationType.CLASS_TO_CLASS)&&(i?l=new Map:r?l=new r:l={});for(let m of c){if(m==="__proto__"||m==="constructor")continue;let f=m,g=m,h=m;if(!this.options.ignoreDecorators&&r){if(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){let R=$t.defaultMetadataStorage.findExposeMetadataByCustomName(r,m);R&&(h=R.propertyName,g=R.propertyName)}else if(this.transformationType===ze.TransformationType.CLASS_TO_PLAIN||this.transformationType===ze.TransformationType.CLASS_TO_CLASS){let R=$t.defaultMetadataStorage.findExposeMetadata(r,m);R&&R.options&&R.options.name&&(g=R.options.name)}}let _;n instanceof Map?_=n.get(f):n[f]instanceof Function?_=n[f]():_=n[f];let b,E=_ instanceof Map;if(r&&i)b=r;else if(r){let R=$t.defaultMetadataStorage.findTypeMetadata(r,h);if(R){let K={newObject:l,object:n,property:h},gt=R.typeFunction?R.typeFunction(K):R.reflectedType;R.options&&R.options.discriminator&&R.options.discriminator.property&&R.options.discriminator.subTypes?n[f]instanceof Array?b=R:(this.transformationType===ze.TransformationType.PLAIN_TO_CLASS&&(b=R.options.discriminator.subTypes.find(fe=>{if(_&&_ instanceof Object&&R.options.discriminator.property in _)return fe.name===_[R.options.discriminator.property]}),b===void 0?b=gt:b=b.value,R.options.keepDiscriminatorProperty||_&&_ instanceof Object&&R.options.discriminator.property in _&&delete _[R.options.discriminator.property]),this.transformationType===ze.TransformationType.CLASS_TO_CLASS&&(b=_.constructor),this.transformationType===ze.TransformationType.CLASS_TO_PLAIN&&(_[R.options.discriminator.property]=R.options.discriminator.subTypes.find(fe=>fe.value===_.constructor).name)):b=gt,E=E||R.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(K=>K.target===r&&!!K.properties[h]).forEach(K=>b=K.properties[h]);else if(this.options.enableImplicitConversion&&this.transformationType===ze.TransformationType.PLAIN_TO_CLASS){let K=Reflect.getMetadata("design:type",r.prototype,h);K&&(b=K)}}let D=Array.isArray(n[f])?this.getReflectedType(r,h):void 0,k=t?t[f]:void 0;if(l.constructor.prototype){let R=Object.getOwnPropertyDescriptor(l.constructor.prototype,g);if((this.transformationType===ze.TransformationType.PLAIN_TO_CLASS||this.transformationType===ze.TransformationType.CLASS_TO_CLASS)&&(R&&!R.set||l[g]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(_)){let R=this.transformationType===ze.TransformationType.PLAIN_TO_CLASS?g:m,K;this.transformationType===ze.TransformationType.CLASS_TO_PLAIN?(K=n[R],K=this.applyCustomTransformations(K,r,R,n,this.transformationType),K=n[R]===K?_:K,K=this.transform(k,K,b,D,E,a+1)):_===void 0&&this.options.exposeDefaultValues?K=l[g]:(K=this.transform(k,_,b,D,E,a+1),K=this.applyCustomTransformations(K,r,R,n,this.transformationType)),(K!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(g,K):l[g]=K)}else if(this.transformationType===ze.TransformationType.CLASS_TO_CLASS){let R=_;R=this.applyCustomTransformations(R,r,m,n,this.transformationType),(R!==void 0||this.options.exposeUnsetFields)&&(l instanceof Map?l.set(g,R):l[g]=R)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),l}else return n}}applyCustomTransformations(t,n,r,s,i){let a=$t.defaultMetadataStorage.findTransformMetadatas(n,r,this.transformationType);return this.options.version!==void 0&&(a=a.filter(c=>c.options?this.checkVersion(c.options.since,c.options.until):!0)),this.options.groups&&this.options.groups.length?a=a.filter(c=>c.options?this.checkGroups(c.options.groups):!0):a=a.filter(c=>!c.options||!c.options.groups||!c.options.groups.length),a.forEach(c=>{t=c.transformFn({value:t,key:r,obj:s,type:i,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,n){if(!t)return;let r=$t.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let s=$t.defaultMetadataStorage.getStrategy(t);s==="none"&&(s=this.options.strategy||"exposeAll");let i=[];if((s==="exposeAll"||r)&&(n instanceof Map?i=Array.from(n.keys()):i=Object.keys(n)),r)return i;if(!this.options.ignoreDecorators&&t){let a=$t.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===ze.TransformationType.PLAIN_TO_CLASS&&(a=a.map(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return m&&m.options&&m.options.name?m.options.name:l})),this.options.excludeExtraneousValues?i=a:i=i.concat(a);let c=$t.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);c.length>0&&(i=i.filter(l=>!c.includes(l))),this.options.version!==void 0&&(i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options?!0:this.checkVersion(m.options.since,m.options.until)})),this.options.groups&&this.options.groups.length?i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options?!0:this.checkGroups(m.options.groups)}):i=i.filter(l=>{let m=$t.defaultMetadataStorage.findExposeMetadata(t,l);return!m||!m.options||!m.options.groups||!m.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(i=i.filter(a=>this.options.excludePrefixes.every(c=>a.substr(0,c.length)!==c))),i=i.filter((a,c,l)=>l.indexOf(a)===c),i}checkVersion(t,n){let r=!0;return r&&t&&(r=this.options.version>=t),r&&n&&(r=this.options.version<n),r}checkGroups(t){return t?this.options.groups.some(n=>t.includes(n)):!0}};Gu.TransformOperationExecutor=w1});var S1=p($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.defaultOptions=void 0;$u.defaultOptions={enableCircularCheck:!1,enableImplicitConversion:!1,excludeExtraneousValues:!1,excludePrefixes:void 0,exposeDefaultValues:!1,exposeUnsetFields:!0,groups:void 0,ignoreDecorators:!1,strategy:void 0,targetMaps:void 0,version:void 0}});var zs=p(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.ClassTransformer=void 0;var qs=b1(),Ms=Fi(),Os=S1(),v1=class{classToPlain(t,n){return new qs.TransformOperationExecutor(Ms.TransformationType.CLASS_TO_PLAIN,o(o({},Os.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new qs.TransformOperationExecutor(Ms.TransformationType.CLASS_TO_PLAIN,o(o({},Os.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToClass(t,n,r){return new qs.TransformOperationExecutor(Ms.TransformationType.PLAIN_TO_CLASS,o(o({},Os.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new qs.TransformOperationExecutor(Ms.TransformationType.PLAIN_TO_CLASS,o(o({},Os.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}classToClass(t,n){return new qs.TransformOperationExecutor(Ms.TransformationType.CLASS_TO_CLASS,o(o({},Os.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new qs.TransformOperationExecutor(Ms.TransformationType.CLASS_TO_CLASS,o(o({},Os.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.classToPlain(t,n))}deserialize(t,n,r){let s=JSON.parse(n);return this.plainToClass(t,s,r)}deserializeArray(t,n,r){let s=JSON.parse(n);return this.plainToClass(t,s,r)}};Ku.ClassTransformer=v1});var E1=p(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.Exclude=void 0;var ite=Ns();function ate(e={}){return function(t,n){ite.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}Vu.Exclude=ate});var A1=p(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.Expose=void 0;var ote=Ns();function cte(e={}){return function(t,n){ote.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}Wu.Expose=cte});var C1=p(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.TransformClassToClass=void 0;var lte=zs();function dte(e){return function(t,n,r){let s=new lte.ClassTransformer,i=r.value;r.value=function(...a){let c=i.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(m=>s.classToClass(m,e)):s.classToClass(c,e)}}}Hu.TransformClassToClass=dte});var T1=p(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.TransformClassToPlain=void 0;var ute=zs();function mte(e){return function(t,n,r){let s=new ute.ClassTransformer,i=r.value;r.value=function(...a){let c=i.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(m=>s.classToPlain(m,e)):s.classToPlain(c,e)}}}Yu.TransformClassToPlain=mte});var x1=p(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.TransformPlainToClass=void 0;var fte=zs();function pte(e,t){return function(n,r,s){let i=new fte.ClassTransformer,a=s.value;s.value=function(...c){let l=a.apply(this,c);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(f=>i.plainToClass(e,f,t)):i.plainToClass(e,l,t)}}}Ju.TransformPlainToClass=pte});var I1=p(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.Transform=void 0;var hte=Ns();function yte(e,t={}){return function(n,r){hte.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}Qu.Transform=yte});var R1=p(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.Type=void 0;var gte=Ns();function _te(e,t={}){return function(n,r){let s=Reflect.getMetadata("design:type",n,r);gte.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:s,typeFunction:e,options:t})}}Xu.Type=_te});var k1=p(qt=>{"use strict";var wte=qt&&qt.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Wr=qt&&qt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&wte(t,e,n)};Object.defineProperty(qt,"__esModule",{value:!0});Wr(E1(),qt);Wr(A1(),qt);Wr(C1(),qt);Wr(T1(),qt);Wr(x1(),qt);Wr(I1(),qt);Wr(R1(),qt)});var L1=p(D1=>{"use strict";Object.defineProperty(D1,"__esModule",{value:!0})});var N1=p(P1=>{"use strict";Object.defineProperty(P1,"__esModule",{value:!0})});var M1=p(q1=>{"use strict";Object.defineProperty(q1,"__esModule",{value:!0})});var z1=p(O1=>{"use strict";Object.defineProperty(O1,"__esModule",{value:!0})});var U1=p(j1=>{"use strict";Object.defineProperty(j1,"__esModule",{value:!0})});var F1=p(B1=>{"use strict";Object.defineProperty(B1,"__esModule",{value:!0})});var $1=p(G1=>{"use strict";Object.defineProperty(G1,"__esModule",{value:!0})});var V1=p(K1=>{"use strict";Object.defineProperty(K1,"__esModule",{value:!0})});var H1=p(W1=>{"use strict";Object.defineProperty(W1,"__esModule",{value:!0})});var J1=p(Y1=>{"use strict";Object.defineProperty(Y1,"__esModule",{value:!0})});var X1=p(Q1=>{"use strict";Object.defineProperty(Q1,"__esModule",{value:!0})});var eR=p(Z1=>{"use strict";Object.defineProperty(Z1,"__esModule",{value:!0})});var nR=p(tR=>{"use strict";Object.defineProperty(tR,"__esModule",{value:!0})});var sR=p(rR=>{"use strict";Object.defineProperty(rR,"__esModule",{value:!0})});var iR=p(je=>{"use strict";var bte=je&&je.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),At=je&&je.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&bte(t,e,n)};Object.defineProperty(je,"__esModule",{value:!0});At(L1(),je);At(N1(),je);At(M1(),je);At(z1(),je);At(U1(),je);At(F1(),je);At($1(),je);At(V1(),je);At(H1(),je);At(J1(),je);At(X1(),je);At(eR(),je);At(nR(),je);At(sR(),je)});var Zu=p(we=>{"use strict";var Ste=we&&we.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),Ny=we&&we.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Ste(t,e,n)};Object.defineProperty(we,"__esModule",{value:!0});we.deserializeArray=we.deserialize=we.serialize=we.classToClassFromExist=we.classToClass=we.plainToClassFromExist=we.plainToClass=we.classToPlainFromExist=we.classToPlain=we.ClassTransformer=void 0;var vte=zs(),Ete=zs();Object.defineProperty(we,"ClassTransformer",{enumerable:!0,get:function(){return Ete.ClassTransformer}});Ny(k1(),we);Ny(iR(),we);Ny(Fi(),we);var jn=new vte.ClassTransformer;function Ate(e,t){return jn.classToPlain(e,t)}we.classToPlain=Ate;function Cte(e,t,n){return jn.classToPlainFromExist(e,t,n)}we.classToPlainFromExist=Cte;function Tte(e,t,n){return jn.plainToClass(e,t,n)}we.plainToClass=Tte;function xte(e,t,n){return jn.plainToClassFromExist(e,t,n)}we.plainToClassFromExist=xte;function Ite(e,t){return jn.classToClass(e,t)}we.classToClass=Ite;function Rte(e,t,n){return jn.classToClassFromExist(e,t,n)}we.classToClassFromExist=Rte;function kte(e,t){return jn.serialize(e,t)}we.serialize=kte;function Dte(e,t,n){return jn.deserialize(e,t,n)}we.deserialize=Dte;function Lte(e,t,n){return jn.deserializeArray(e,t,n)}we.deserializeArray=Lte});var qy=p(tm=>{"use strict";Object.defineProperty(tm,"__esModule",{value:!0});tm.Rules=void 0;var Pte=Zu(),em=class{constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}static async Load(t){let{dbManager:n,key:r}=t,{Item:s}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"rules"}});return Pte.plainToClass(em,s)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async Save(t){let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){return`appName#${this.AppName}`.toLowerCase()}get SK(){return"rules"}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get RuleSet(){return this._ruleSet}set RuleSet(t){this._ruleSet=t}get Version(){return this._version}set Version(t){this._version=t}};tm.Rules=em});var My=p(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.Version=void 0;var aR=Zu(),js;(function(e){e[e.AppName=0]="AppName"})(js||(js={}));var Gi=class{constructor(t){this._keyBy=js.AppName,this._status="pending",this._defaultFile="",this._integrationID="",Object.assign(this,t)}static async LoadVersions(t){let{dbManager:n,key:r}=t,{Items:s}=await n.ddbDocClient.query({TableName:n.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${r.AppName}`.toLowerCase(),":skval":"version"}}),i=[];if(s!==void 0)for(let a of s){let c=aR.plainToClass(Gi,a);i.push(c)}return i}static async LoadVersion(t){let{dbManager:n,key:r}=t,{Item:s}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}});return aR.plainToClass(Gi,s)}get PK(){switch(this._keyBy){case js.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID}}async Save(t){this._keyBy=js.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case js.AppName:return`version#${this.SemVer}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get SemVer(){return this._semVer}set SemVer(t){this._semVer=t}get Type(){return this._type}set Type(t){this._type=t}get Status(){return this._status}set Status(t){this._status=t}get DefaultFile(){return this._defaultFile}set DefaultFile(t){this._defaultFile=t}get IntegrationID(){return this._integrationID}set IntegrationID(t){this._integrationID=t}};nm.Version=Gi});var lR=p(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.Application=void 0;var oR=Zu(),cR=qy(),Nte=My(),Un;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(Un||(Un={}));var $i=class{constructor(t){Object.assign(this,t),this._keyBy=Un.AppName}static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,s=await cR.Rules.Load({dbManager:n,key:r}),i=s.RuleSet.default;i.SemVer=r.SemVer,await s.Save(n)}static async GetVersionsAndRules(t){let{key:n,dbManager:r}=t,s=Nte.Version.LoadVersions({dbManager:r,key:n}),i=cR.Rules.Load({dbManager:r,key:n});return await Promise.all([s,i]),{Versions:await s,Rules:await i}}static async Load(t){let{key:n,dbManager:r}=t,{Item:s}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"application"}});return oR.plainToClass($i,s)}static async LoadAllApps(t){let{Items:n}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),r=[];if(n!==void 0)for(let s of n){let i=oR.plainToClass($i,s);r.push(i)}return r}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=Un.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=Un.Applications;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([n,r]),await n,await r}get PK(){switch(this._keyBy){case Un.Applications:return"applications";case Un.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case Un.Applications:return`appName#${this.AppName}`.toLowerCase();case Un.AppName:return"application";default:throw new Error("Missing SaveBy handler")}}get AppName(){return this._appName}set AppName(t){this._appName=t.toLowerCase()}get DisplayName(){return this._displayName}set DisplayName(t){this._displayName=t}};rm.Application=$i});var dR=p(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.Rules=En.Version=En.DBManager=En.Application=void 0;var qte=d1();Object.defineProperty(En,"DBManager",{enumerable:!0,get:function(){return qte.DBManager}});var Mte=lR();Object.defineProperty(En,"Application",{enumerable:!0,get:function(){return Mte.Application}});var Ote=qy();Object.defineProperty(En,"Rules",{enumerable:!0,get:function(){return Ote.Rules}});var zte=My();Object.defineProperty(En,"Version",{enumerable:!0,get:function(){return zte.Version}})});var Ct=p(Oy=>{"use strict";Oy.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((n,r)=>{e.call(this,...t,(s,i)=>s!=null?r(s):n(i))})},"name",{value:e.name})};Oy.fromPromise=function(e){return Object.defineProperty(function(...t){let n=t[t.length-1];if(typeof n!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(r=>n(null,r),n)},"name",{value:e.name})}});var mR=p(($he,uR)=>{var dr=require("constants"),jte=process.cwd,sm=null,Ute=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return sm||(sm=jte.call(process)),sm};try{process.cwd()}catch(e){}typeof process.chdir=="function"&&(zy=process.chdir,process.chdir=function(e){sm=null,zy.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,zy));var zy;uR.exports=Bte;function Bte(e){dr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=i(e.chown),e.fchown=i(e.fchown),e.lchown=i(e.lchown),e.chmod=r(e.chmod),e.fchmod=r(e.fchmod),e.lchmod=r(e.lchmod),e.chownSync=a(e.chownSync),e.fchownSync=a(e.fchownSync),e.lchownSync=a(e.lchownSync),e.chmodSync=s(e.chmodSync),e.fchmodSync=s(e.fchmodSync),e.lchmodSync=s(e.lchmodSync),e.stat=c(e.stat),e.fstat=c(e.fstat),e.lstat=c(e.lstat),e.statSync=l(e.statSync),e.fstatSync=l(e.fstatSync),e.lstatSync=l(e.lstatSync),e.lchmod||(e.lchmod=function(f,g,h){h&&process.nextTick(h)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(f,g,h,_){_&&process.nextTick(_)},e.lchownSync=function(){}),Ute==="win32"&&(e.rename=function(f){return function(g,h,_){var b=Date.now(),E=0;f(g,h,function D(k){if(k&&(k.code==="EACCES"||k.code==="EPERM")&&Date.now()-b<6e4){setTimeout(function(){e.stat(h,function(R,K){R&&R.code==="ENOENT"?f(g,h,D):_(k)})},E),E<100&&(E+=10);return}_&&_(k)})}}(e.rename)),e.read=function(f){function g(h,_,b,E,D,k){var R;if(k&&typeof k=="function"){var K=0;R=function(gt,fe,Er){if(gt&>.code==="EAGAIN"&&K<10)return K++,f.call(e,h,_,b,E,D,R);k.apply(this,arguments)}}return f.call(e,h,_,b,E,D,R)}return Object.setPrototypeOf&&Object.setPrototypeOf(g,f),g}(e.read),e.readSync=function(f){return function(g,h,_,b,E){for(var D=0;;)try{return f.call(e,g,h,_,b,E)}catch(k){if(k.code==="EAGAIN"&&D<10){D++;continue}throw k}}}(e.readSync);function t(f){f.lchmod=function(g,h,_){f.open(g,dr.O_WRONLY|dr.O_SYMLINK,h,function(b,E){if(b){_&&_(b);return}f.fchmod(E,h,function(D){f.close(E,function(k){_&&_(D||k)})})})},f.lchmodSync=function(g,h){var _=f.openSync(g,dr.O_WRONLY|dr.O_SYMLINK,h),b=!0,E;try{E=f.fchmodSync(_,h),b=!1}finally{if(b)try{f.closeSync(_)}catch(D){}else f.closeSync(_)}return E}}function n(f){dr.hasOwnProperty("O_SYMLINK")?(f.lutimes=function(g,h,_,b){f.open(g,dr.O_SYMLINK,function(E,D){if(E){b&&b(E);return}f.futimes(D,h,_,function(k){f.close(D,function(R){b&&b(k||R)})})})},f.lutimesSync=function(g,h,_){var b=f.openSync(g,dr.O_SYMLINK),E,D=!0;try{E=f.futimesSync(b,h,_),D=!1}finally{if(D)try{f.closeSync(b)}catch(k){}else f.closeSync(b)}return E}):(f.lutimes=function(g,h,_,b){b&&process.nextTick(b)},f.lutimesSync=function(){})}function r(f){return f&&function(g,h,_){return f.call(e,g,h,function(b){m(b)&&(b=null),_&&_.apply(this,arguments)})}}function s(f){return f&&function(g,h){try{return f.call(e,g,h)}catch(_){if(!m(_))throw _}}}function i(f){return f&&function(g,h,_,b){return f.call(e,g,h,_,function(E){m(E)&&(E=null),b&&b.apply(this,arguments)})}}function a(f){return f&&function(g,h,_){try{return f.call(e,g,h,_)}catch(b){if(!m(b))throw b}}}function c(f){return f&&function(g,h,_){typeof h=="function"&&(_=h,h=null);function b(E,D){D&&(D.uid<0&&(D.uid+=4294967296),D.gid<0&&(D.gid+=4294967296)),_&&_.apply(this,arguments)}return h?f.call(e,g,h,b):f.call(e,g,b)}}function l(f){return f&&function(g,h){var _=h?f.call(e,g,h):f.call(e,g);return _.uid<0&&(_.uid+=4294967296),_.gid<0&&(_.gid+=4294967296),_}}function m(f){if(!f||f.code==="ENOSYS")return!0;var g=!process.getuid||process.getuid()!==0;return!!(g&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var hR=p((Khe,pR)=>{var fR=require("stream").Stream;pR.exports=Fte;function Fte(e){return{ReadStream:t,WriteStream:n};function t(r,s){if(!(this instanceof t))return new t(r,s);fR.call(this);var i=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,s=s||{};for(var a=Object.keys(s),c=0,l=a.length;c<l;c++){var m=a[c];this[m]=s[m]}if(this.encoding&&this.setEncoding(this.encoding),this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.end===void 0)this.end=1/0;else if(typeof this.end!="number")throw TypeError("end must be a Number");if(this.start>this.end)throw new Error("start must be <= end");this.pos=this.start}if(this.fd!==null){process.nextTick(function(){i._read()});return}e.open(this.path,this.flags,this.mode,function(f,g){if(f){i.emit("error",f),i.readable=!1;return}i.fd=g,i.emit("open",g),i._read()})}function n(r,s){if(!(this instanceof n))return new n(r,s);fR.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,s=s||{};for(var i=Object.keys(s),a=0,c=i.length;a<c;a++){var l=i[a];this[l]=s[l]}if(this.start!==void 0){if(typeof this.start!="number")throw TypeError("start must be a Number");if(this.start<0)throw new Error("start must be >= zero");this.pos=this.start}this.busy=!1,this._queue=[],this.fd===null&&(this._open=e.open,this._queue.push([this._open,this.path,this.flags,this.mode,void 0]),this.flush())}}});var gR=p((Vhe,yR)=>{"use strict";yR.exports=$te;var Gte=Object.getPrototypeOf||function(e){return e.__proto__};function $te(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Gte(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var at=p((Whe,Uy)=>{var et=require("fs"),Kte=mR(),Vte=hR(),Wte=gR(),im=require("util"),Qt,am;typeof Symbol=="function"&&typeof Symbol.for=="function"?(Qt=Symbol.for("graceful-fs.queue"),am=Symbol.for("graceful-fs.previous")):(Qt="___graceful-fs.queue",am="___graceful-fs.previous");function Hte(){}function _R(e,t){Object.defineProperty(e,Qt,{get:function(){return t}})}var Ki=Hte;im.debuglog?Ki=im.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ki=function(){var e=im.format.apply(im,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
22
|
+
GFS4: `),console.error(e)});et[Qt]||(wR=global[Qt]||[],_R(et,wR),et.close=function(e){function t(n,r){return e.call(et,n,function(s){s||ur(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,am,{value:e}),t}(et.close),et.closeSync=function(e){function t(n){e.apply(et,arguments),ur()}return Object.defineProperty(t,am,{value:e}),t}(et.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ki(et[Qt]),require("assert").equal(et[Qt].length,0)}));var wR;global[Qt]||_R(global,et[Qt]);Uy.exports=jy(Wte(et));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!et.__patched&&(Uy.exports=jy(et),et.__patched=!0);function jy(e){Kte(e),e.gracefulify=jy,e.createReadStream=fe,e.createWriteStream=Er;var t=e.readFile;e.readFile=n;function n(Y,de,le){return typeof de=="function"&&(le=de,de=null),_e(Y,de,le);function _e(Te,Re,xe){return t(Te,Re,function(ke){ke&&(ke.code==="EMFILE"||ke.code==="ENFILE")?Us([_e,[Te,Re,xe]]):(typeof xe=="function"&&xe.apply(this,arguments),ur())})}}var r=e.writeFile;e.writeFile=s;function s(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,ke,Le){return r(Re,xe,ke,function(tt){tt&&(tt.code==="EMFILE"||tt.code==="ENFILE")?Us([Te,[Re,xe,ke,Le]]):(typeof Le=="function"&&Le.apply(this,arguments),ur())})}}var i=e.appendFile;i&&(e.appendFile=a);function a(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,ke,Le){return i(Re,xe,ke,function(tt){tt&&(tt.code==="EMFILE"||tt.code==="ENFILE")?Us([Te,[Re,xe,ke,Le]]):(typeof Le=="function"&&Le.apply(this,arguments),ur())})}}var c=e.copyFile;c&&(e.copyFile=l);function l(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=0),c(Y,de,le,function(Te){Te&&(Te.code==="EMFILE"||Te.code==="ENFILE")?Us([c,[Y,de,le,_e]]):(typeof _e=="function"&&_e.apply(this,arguments),ur())})}var m=e.readdir;e.readdir=f;function f(Y,de,le){var _e=[Y];return typeof de!="function"?_e.push(de):le=de,_e.push(Te),g(_e);function Te(Re,xe){xe&&xe.sort&&xe.sort(),Re&&(Re.code==="EMFILE"||Re.code==="ENFILE")?Us([g,[_e]]):(typeof le=="function"&&le.apply(this,arguments),ur())}}function g(Y){return m.apply(e,Y)}if(process.version.substr(0,4)==="v0.8"){var h=Vte(e);k=h.ReadStream,K=h.WriteStream}var _=e.ReadStream;_&&(k.prototype=Object.create(_.prototype),k.prototype.open=R);var b=e.WriteStream;b&&(K.prototype=Object.create(b.prototype),K.prototype.open=gt),Object.defineProperty(e,"ReadStream",{get:function(){return k},set:function(Y){k=Y},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return K},set:function(Y){K=Y},enumerable:!0,configurable:!0});var E=k;Object.defineProperty(e,"FileReadStream",{get:function(){return E},set:function(Y){E=Y},enumerable:!0,configurable:!0});var D=K;Object.defineProperty(e,"FileWriteStream",{get:function(){return D},set:function(Y){D=Y},enumerable:!0,configurable:!0});function k(Y,de){return this instanceof k?(_.apply(this,arguments),this):k.apply(Object.create(k.prototype),arguments)}function R(){var Y=this;Zt(Y.path,Y.flags,Y.mode,function(de,le){de?(Y.autoClose&&Y.destroy(),Y.emit("error",de)):(Y.fd=le,Y.emit("open",le),Y.read())})}function K(Y,de){return this instanceof K?(b.apply(this,arguments),this):K.apply(Object.create(K.prototype),arguments)}function gt(){var Y=this;Zt(Y.path,Y.flags,Y.mode,function(de,le){de?(Y.destroy(),Y.emit("error",de)):(Y.fd=le,Y.emit("open",le))})}function fe(Y,de){return new e.ReadStream(Y,de)}function Er(Y,de){return new e.WriteStream(Y,de)}var Ar=e.open;e.open=Zt;function Zt(Y,de,le,_e){return typeof le=="function"&&(_e=le,le=null),Te(Y,de,le,_e);function Te(Re,xe,ke,Le){return Ar(Re,xe,ke,function(tt,te){tt&&(tt.code==="EMFILE"||tt.code==="ENFILE")?Us([Te,[Re,xe,ke,Le]]):(typeof Le=="function"&&Le.apply(this,arguments),ur())})}}return e}function Us(e){Ki("ENQUEUE",e[0].name,e[1]),et[Qt].push(e)}function ur(){var e=et[Qt].shift();e&&(Ki("RETRY",e[0].name,e[1]),e[0].apply(null,e[1]))}});var Vi=p(mr=>{"use strict";var bR=Ct().fromCallback,pt=at(),Yte=["access","appendFile","chmod","chown","close","copyFile","fchmod","fchown","fdatasync","fstat","fsync","ftruncate","futimes","lchmod","lchown","link","lstat","mkdir","mkdtemp","open","opendir","readdir","readFile","readlink","realpath","rename","rm","rmdir","stat","symlink","truncate","unlink","utimes","writeFile"].filter(e=>typeof pt[e]=="function");Object.keys(pt).forEach(e=>{e!=="promises"&&(mr[e]=pt[e])});Yte.forEach(e=>{mr[e]=bR(pt[e])});mr.exists=function(e,t){return typeof t=="function"?pt.exists(e,t):new Promise(n=>pt.exists(e,n))};mr.read=function(e,t,n,r,s,i){return typeof i=="function"?pt.read(e,t,n,r,s,i):new Promise((a,c)=>{pt.read(e,t,n,r,s,(l,m,f)=>{if(l)return c(l);a({bytesRead:m,buffer:f})})})};mr.write=function(e,t,...n){return typeof n[n.length-1]=="function"?pt.write(e,t,...n):new Promise((r,s)=>{pt.write(e,t,...n,(i,a,c)=>{if(i)return s(i);r({bytesWritten:a,buffer:c})})})};typeof pt.writev=="function"&&(mr.writev=function(e,t,...n){return typeof n[n.length-1]=="function"?pt.writev(e,t,...n):new Promise((r,s)=>{pt.writev(e,t,...n,(i,a,c)=>{if(i)return s(i);r({bytesWritten:a,buffers:c})})})});typeof pt.realpath.native=="function"&&(mr.realpath.native=bR(pt.realpath.native))});var By=p((Yhe,SR)=>{SR.exports=e=>{let t=process.versions.node.split(".").map(n=>parseInt(n,10));return e=e.split(".").map(n=>parseInt(n,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var TR=p((Jhe,Fy)=>{"use strict";var Bs=Vi(),Bn=require("path"),Jte=By(),vR=Jte("10.12.0"),ER=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Bn.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},AR=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),o(o({},t),e)},CR=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};Fy.exports.makeDir=async(e,t)=>{if(ER(e),t=AR(t),vR){let r=Bn.resolve(e);return Bs.mkdir(r,{mode:t.mode,recursive:!0})}let n=async r=>{try{await Bs.mkdir(r,t.mode)}catch(s){if(s.code==="EPERM")throw s;if(s.code==="ENOENT"){if(Bn.dirname(r)===r)throw CR(r);if(s.message.includes("null bytes"))throw s;return await n(Bn.dirname(r)),n(r)}try{if(!(await Bs.stat(r)).isDirectory())throw new Error("The path is not a directory")}catch{throw s}}};return n(Bn.resolve(e))};Fy.exports.makeDirSync=(e,t)=>{if(ER(e),t=AR(t),vR){let r=Bn.resolve(e);return Bs.mkdirSync(r,{mode:t.mode,recursive:!0})}let n=r=>{try{Bs.mkdirSync(r,t.mode)}catch(s){if(s.code==="EPERM")throw s;if(s.code==="ENOENT"){if(Bn.dirname(r)===r)throw CR(r);if(s.message.includes("null bytes"))throw s;return n(Bn.dirname(r)),n(r)}try{if(!Bs.statSync(r).isDirectory())throw new Error("The path is not a directory")}catch{throw s}}};return n(Bn.resolve(e))}});var Xt=p((Qhe,xR)=>{"use strict";var Qte=Ct().fromPromise,{makeDir:Xte,makeDirSync:Gy}=TR(),$y=Qte(Xte);xR.exports={mkdirs:$y,mkdirsSync:Gy,mkdirp:$y,mkdirpSync:Gy,ensureDir:$y,ensureDirSync:Gy}});var Ky=p((Xhe,IR)=>{"use strict";var Fs=at();function Zte(e,t,n,r){Fs.open(e,"r+",(s,i)=>{if(s)return r(s);Fs.futimes(i,t,n,a=>{Fs.close(i,c=>{r&&r(a||c)})})})}function ene(e,t,n){let r=Fs.openSync(e,"r+");return Fs.futimesSync(r,t,n),Fs.closeSync(r)}IR.exports={utimesMillis:Zte,utimesMillisSync:ene}});var Wi=p((Zhe,LR)=>{"use strict";var Gs=Vi(),Tt=require("path"),tne=require("util"),nne=By(),om=nne("10.5.0"),RR=e=>om?Gs.stat(e,{bigint:!0}):Gs.stat(e),Vy=e=>om?Gs.statSync(e,{bigint:!0}):Gs.statSync(e);function rne(e,t){return Promise.all([RR(e),RR(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,r])=>({srcStat:n,destStat:r}))}function sne(e,t){let n,r=Vy(e);try{n=Vy(t)}catch(s){if(s.code==="ENOENT")return{srcStat:r,destStat:null};throw s}return{srcStat:r,destStat:n}}function ine(e,t,n,r){tne.callbackify(rne)(e,t,(s,i)=>{if(s)return r(s);let{srcStat:a,destStat:c}=i;return c&&cm(a,c)?r(new Error("Source and destination must not be the same.")):a.isDirectory()&&Wy(e,t)?r(new Error(lm(e,t,n))):r(null,{srcStat:a,destStat:c})})}function ane(e,t,n){let{srcStat:r,destStat:s}=sne(e,t);if(s&&cm(r,s))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&Wy(e,t))throw new Error(lm(e,t,n));return{srcStat:r,destStat:s}}function kR(e,t,n,r,s){let i=Tt.resolve(Tt.dirname(e)),a=Tt.resolve(Tt.dirname(n));if(a===i||a===Tt.parse(a).root)return s();let c=(l,m)=>l?l.code==="ENOENT"?s():s(l):cm(t,m)?s(new Error(lm(e,n,r))):kR(e,t,a,r,s);om?Gs.stat(a,{bigint:!0},c):Gs.stat(a,c)}function DR(e,t,n,r){let s=Tt.resolve(Tt.dirname(e)),i=Tt.resolve(Tt.dirname(n));if(i===s||i===Tt.parse(i).root)return;let a;try{a=Vy(i)}catch(c){if(c.code==="ENOENT")return;throw c}if(cm(t,a))throw new Error(lm(e,n,r));return DR(e,t,i,r)}function cm(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(om||t.ino<Number.MAX_SAFE_INTEGER||t.size===e.size&&t.mode===e.mode&&t.nlink===e.nlink&&t.atimeMs===e.atimeMs&&t.mtimeMs===e.mtimeMs&&t.ctimeMs===e.ctimeMs&&t.birthtimeMs===e.birthtimeMs))}function Wy(e,t){let n=Tt.resolve(e).split(Tt.sep).filter(s=>s),r=Tt.resolve(t).split(Tt.sep).filter(s=>s);return n.reduce((s,i,a)=>s&&r[a]===i,!0)}function lm(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}LR.exports={checkPaths:ine,checkPathsSync:ane,checkParentPaths:kR,checkParentPathsSync:DR,isSrcSubdir:Wy}});var OR=p((eye,MR)=>{"use strict";var ot=at(),Hi=require("path"),one=Xt().mkdirsSync,cne=Ky().utimesMillisSync,Yi=Wi();function lne(e,t,n){typeof n=="function"&&(n={filter:n}),n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
23
23
|
|
|
24
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:r,destStat:s}=
|
|
24
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:r,destStat:s}=Yi.checkPathsSync(e,t,"copy");return Yi.checkParentPathsSync(e,r,t,"copy"),dne(s,e,t,n)}function dne(e,t,n,r){if(r.filter&&!r.filter(t,n))return;let s=Hi.dirname(n);return ot.existsSync(s)||one(s),PR(e,t,n,r)}function PR(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return une(e,t,n,r)}function une(e,t,n,r){let i=(r.dereference?ot.statSync:ot.lstatSync)(t);if(i.isDirectory())return _ne(i,e,t,n,r);if(i.isFile()||i.isCharacterDevice()||i.isBlockDevice())return mne(i,e,t,n,r);if(i.isSymbolicLink())return Sne(e,t,n,r)}function mne(e,t,n,r,s){return t?fne(e,n,r,s):NR(e,n,r,s)}function fne(e,t,n,r){if(r.overwrite)return ot.unlinkSync(n),NR(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}function NR(e,t,n,r){return ot.copyFileSync(t,n),r.preserveTimestamps&&pne(e.mode,t,n),Hy(n,e.mode)}function pne(e,t,n){return hne(e)&&yne(n,e),gne(t,n)}function hne(e){return(e&128)==0}function yne(e,t){return Hy(e,t|128)}function Hy(e,t){return ot.chmodSync(e,t)}function gne(e,t){let n=ot.statSync(e);return cne(t,n.atime,n.mtime)}function _ne(e,t,n,r,s){if(!t)return wne(e.mode,n,r,s);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);return qR(n,r,s)}function wne(e,t,n,r){return ot.mkdirSync(n),qR(t,n,r),Hy(n,e)}function qR(e,t,n){ot.readdirSync(e).forEach(r=>bne(r,e,t,n))}function bne(e,t,n,r){let s=Hi.join(t,e),i=Hi.join(n,e),{destStat:a}=Yi.checkPathsSync(s,i,"copy");return PR(a,s,i,r)}function Sne(e,t,n,r){let s=ot.readlinkSync(t);if(r.dereference&&(s=Hi.resolve(process.cwd(),s)),e){let i;try{i=ot.readlinkSync(n)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return ot.symlinkSync(s,n);throw a}if(r.dereference&&(i=Hi.resolve(process.cwd(),i)),Yi.isSrcSubdir(s,i))throw new Error(`Cannot copy '${s}' to a subdirectory of itself, '${i}'.`);if(ot.statSync(n).isDirectory()&&Yi.isSrcSubdir(i,s))throw new Error(`Cannot overwrite '${i}' with '${s}'.`);return vne(s,n)}else return ot.symlinkSync(s,n)}function vne(e,t){return ot.unlinkSync(t),ot.symlinkSync(e,t)}MR.exports=lne});var Yy=p((tye,zR)=>{"use strict";zR.exports={copySync:OR()}});var fr=p((nye,UR)=>{"use strict";var Ene=Ct().fromPromise,jR=Vi();function Ane(e){return jR.access(e).then(()=>!0).catch(()=>!1)}UR.exports={pathExists:Ene(Ane),pathExistsSync:jR.existsSync}});var YR=p((rye,HR)=>{"use strict";var xt=at(),Ji=require("path"),Cne=Xt().mkdirs,Tne=fr().pathExists,xne=Ky().utimesMillis,Qi=Wi();function Ine(e,t,n,r){typeof n=="function"&&!r?(r=n,n={}):typeof n=="function"&&(n={filter:n}),r=r||function(){},n=n||{},n.clobber="clobber"in n?!!n.clobber:!0,n.overwrite="overwrite"in n?!!n.overwrite:n.clobber,n.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
25
25
|
|
|
26
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),Yi.checkPaths(e,t,"copy",(s,i)=>{if(s)return r(s);let{srcStat:a,destStat:c}=i;Yi.checkParentPaths(e,a,t,"copy",l=>l?r(l):n.filter?FR(BR,c,e,t,n,r):BR(c,e,t,n,r))})}function BR(e,t,n,r,s){let i=Hi.dirname(n);Ine(i,(a,c)=>{if(a)return s(a);if(c)return Jy(e,t,n,r,s);xne(i,l=>l?s(l):Jy(e,t,n,r,s))})}function FR(e,t,n,r,s,i){Promise.resolve(s.filter(n,r)).then(a=>a?e(t,n,r,s,i):i(),a=>i(a))}function Jy(e,t,n,r,s){return r.filter?FR(GR,e,t,n,r,s):GR(e,t,n,r,s)}function GR(e,t,n,r,s){(r.dereference?xt.stat:xt.lstat)(t,(a,c)=>{if(a)return s(a);if(c.isDirectory())return One(c,e,t,n,r,s);if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return Dne(c,e,t,n,r,s);if(c.isSymbolicLink())return Une(e,t,n,r,s)})}function Dne(e,t,n,r,s,i){return t?Nne(e,n,r,s,i):$R(e,n,r,s,i)}function Nne(e,t,n,r,s){if(r.overwrite)xt.unlink(n,i=>i?s(i):$R(e,t,n,r,s));else return r.errorOnExist?s(new Error(`'${n}' already exists`)):s()}function $R(e,t,n,r,s){xt.copyFile(t,n,i=>i?s(i):r.preserveTimestamps?Lne(e.mode,t,n,s):um(n,e.mode,s))}function Lne(e,t,n,r){return Pne(e)?qne(n,e,s=>s?r(s):KR(e,t,n,r)):KR(e,t,n,r)}function Pne(e){return(e&128)==0}function qne(e,t,n){return um(e,t|128,n)}function KR(e,t,n,r){Mne(t,n,s=>s?r(s):um(n,e,r))}function um(e,t,n){return xt.chmod(e,t,n)}function Mne(e,t,n){xt.stat(e,(r,s)=>r?n(r):Rne(t,s.atime,s.mtime,n))}function One(e,t,n,r,s,i){return t?t&&!t.isDirectory()?i(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):VR(n,r,s,i):zne(e.mode,n,r,s,i)}function zne(e,t,n,r,s){xt.mkdir(n,i=>{if(i)return s(i);VR(t,n,r,a=>a?s(a):um(n,e,s))})}function VR(e,t,n,r){xt.readdir(e,(s,i)=>s?r(s):WR(i,e,t,n,r))}function WR(e,t,n,r,s){let i=e.pop();return i?jne(e,i,t,n,r,s):s()}function jne(e,t,n,r,s,i){let a=Hi.join(n,t),c=Hi.join(r,t);Yi.checkPaths(a,c,"copy",(l,m)=>{if(l)return i(l);let{destStat:f}=m;Jy(f,a,c,s,g=>g?i(g):WR(e,n,r,s,i))})}function Une(e,t,n,r,s){xt.readlink(t,(i,a)=>{if(i)return s(i);if(r.dereference&&(a=Hi.resolve(process.cwd(),a)),e)xt.readlink(n,(c,l)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?xt.symlink(a,n,s):s(c):(r.dereference&&(l=Hi.resolve(process.cwd(),l)),Yi.isSrcSubdir(a,l)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&Yi.isSrcSubdir(l,a)?s(new Error(`Cannot overwrite '${l}' with '${a}'.`)):Bne(a,n,s)));else return xt.symlink(a,n,s)})}function Bne(e,t,n){xt.unlink(t,r=>r?n(r):xt.symlink(e,t,n))}HR.exports=kne});var Qy=p((rye,JR)=>{"use strict";var Fne=Ct().fromCallback;JR.exports={copy:Fne(YR())}});var ik=p((sye,sk)=>{"use strict";var QR=at(),XR=require("path"),ve=require("assert"),Ji=process.platform==="win32";function ZR(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||QR[n],n=n+"Sync",e[n]=e[n]||QR[n]}),e.maxBusyTries=e.maxBusyTries||3}function Xy(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),ve(e,"rimraf: missing path"),ve.strictEqual(typeof e,"string","rimraf: path should be a string"),ve.strictEqual(typeof n,"function","rimraf: callback function required"),ve(t,"rimraf: invalid options argument provided"),ve.strictEqual(typeof t,"object","rimraf: options should be object"),ZR(t),ek(e,t,function s(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&r<t.maxBusyTries){r++;let a=r*100;return setTimeout(()=>ek(e,t,s),a)}i.code==="ENOENT"&&(i=null)}n(i)})}function ek(e,t,n){ve(e),ve(t),ve(typeof n=="function"),t.lstat(e,(r,s)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&Ji)return tk(e,t,r,n);if(s&&s.isDirectory())return mm(e,t,r,n);t.unlink(e,i=>{if(i){if(i.code==="ENOENT")return n(null);if(i.code==="EPERM")return Ji?tk(e,t,i,n):mm(e,t,i,n);if(i.code==="EISDIR")return mm(e,t,i,n)}return n(i)})})}function tk(e,t,n,r){ve(e),ve(t),ve(typeof r=="function"),t.chmod(e,438,s=>{s?r(s.code==="ENOENT"?null:n):t.stat(e,(i,a)=>{i?r(i.code==="ENOENT"?null:n):a.isDirectory()?mm(e,t,n,r):t.unlink(e,r)})})}function nk(e,t,n){let r;ve(e),ve(t);try{t.chmodSync(e,438)}catch(s){if(s.code==="ENOENT")return;throw n}try{r=t.statSync(e)}catch(s){if(s.code==="ENOENT")return;throw n}r.isDirectory()?fm(e,t,n):t.unlinkSync(e)}function mm(e,t,n,r){ve(e),ve(t),ve(typeof r=="function"),t.rmdir(e,s=>{s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")?Gne(e,t,r):s&&s.code==="ENOTDIR"?r(n):r(s)})}function Gne(e,t,n){ve(e),ve(t),ve(typeof n=="function"),t.readdir(e,(r,s)=>{if(r)return n(r);let i=s.length,a;if(i===0)return t.rmdir(e,n);s.forEach(c=>{Xy(XR.join(e,c),t,l=>{if(!a){if(l)return n(a=l);--i==0&&t.rmdir(e,n)}})})})}function rk(e,t){let n;t=t||{},ZR(t),ve(e,"rimraf: missing path"),ve.strictEqual(typeof e,"string","rimraf: path should be a string"),ve(t,"rimraf: missing options"),ve.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&Ji&&nk(e,t,r)}try{n&&n.isDirectory()?fm(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return Ji?nk(e,t,r):fm(e,t,r);if(r.code!=="EISDIR")throw r;fm(e,t,r)}}function fm(e,t,n){ve(e),ve(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")$ne(e,t);else if(r.code!=="ENOENT")throw r}}function $ne(e,t){if(ve(e),ve(t),t.readdirSync(e).forEach(n=>rk(XR.join(e,n),t)),Ji){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}sk.exports=Xy;Xy.sync=rk});var Qi=p((iye,ok)=>{"use strict";var Kne=Ct().fromCallback,ak=ik();ok.exports={remove:Kne(ak),removeSync:ak.sync}});var hk=p((aye,pk)=>{"use strict";var Vne=Ct().fromCallback,ck=at(),lk=require("path"),dk=Xt(),uk=Qi(),mk=Vne(function(t,n){n=n||function(){},ck.readdir(t,(r,s)=>{if(r)return dk.mkdirs(t,n);s=s.map(a=>lk.join(t,a)),i();function i(){let a=s.pop();if(!a)return n();uk.remove(a,c=>{if(c)return n(c);i()})}})});function fk(e){let t;try{t=ck.readdirSync(e)}catch{return dk.mkdirsSync(e)}t.forEach(n=>{n=lk.join(e,n),uk.removeSync(n)})}pk.exports={emptyDirSync:fk,emptydirSync:fk,emptyDir:mk,emptydir:mk}});var wk=p((oye,_k)=>{"use strict";var Wne=Ct().fromCallback,yk=require("path"),pr=at(),gk=Xt();function Hne(e,t){function n(){pr.writeFile(e,"",r=>{if(r)return t(r);t()})}pr.stat(e,(r,s)=>{if(!r&&s.isFile())return t();let i=yk.dirname(e);pr.stat(i,(a,c)=>{if(a)return a.code==="ENOENT"?gk.mkdirs(i,l=>{if(l)return t(l);n()}):t(a);c.isDirectory()?n():pr.readdir(i,l=>{if(l)return t(l)})})})}function Yne(e){let t;try{t=pr.statSync(e)}catch{}if(t&&t.isFile())return;let n=yk.dirname(e);try{pr.statSync(n).isDirectory()||pr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")gk.mkdirsSync(n);else throw r}pr.writeFileSync(e,"")}_k.exports={createFile:Wne(Hne),createFileSync:Yne}});var Ak=p((cye,Ek)=>{"use strict";var Jne=Ct().fromCallback,bk=require("path"),Hr=at(),Sk=Xt(),vk=fr().pathExists;function Qne(e,t,n){function r(s,i){Hr.link(s,i,a=>{if(a)return n(a);n(null)})}vk(t,(s,i)=>{if(s)return n(s);if(i)return n(null);Hr.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),n(a);let c=bk.dirname(t);vk(c,(l,m)=>{if(l)return n(l);if(m)return r(e,t);Sk.mkdirs(c,f=>{if(f)return n(f);r(e,t)})})})})}function Xne(e,t){if(Hr.existsSync(t))return;try{Hr.lstatSync(e)}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}let r=bk.dirname(t);return Hr.existsSync(r)||Sk.mkdirsSync(r),Hr.linkSync(e,t)}Ek.exports={createLink:Jne(Qne),createLinkSync:Xne}});var Tk=p((lye,Ck)=>{"use strict";var hr=require("path"),Xi=at(),Zne=fr().pathExists;function ere(e,t,n){if(hr.isAbsolute(e))return Xi.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=hr.dirname(t),s=hr.join(r,e);return Zne(s,(i,a)=>i?n(i):a?n(null,{toCwd:s,toDst:e}):Xi.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),n(c)):n(null,{toCwd:e,toDst:hr.relative(r,e)})))}}function tre(e,t){let n;if(hr.isAbsolute(e)){if(n=Xi.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=hr.dirname(t),s=hr.join(r,e);if(n=Xi.existsSync(s),n)return{toCwd:s,toDst:e};if(n=Xi.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:hr.relative(r,e)}}}Ck.exports={symlinkPaths:ere,symlinkPathsSync:tre}});var Rk=p((dye,Ik)=>{"use strict";var xk=at();function nre(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);xk.lstat(e,(r,s)=>{if(r)return n(null,"file");t=s&&s.isDirectory()?"dir":"file",n(null,t)})}function rre(e,t){let n;if(t)return t;try{n=xk.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}Ik.exports={symlinkType:nre,symlinkTypeSync:rre}});var Mk=p((uye,qk)=>{"use strict";var sre=Ct().fromCallback,kk=require("path"),Gs=at(),Dk=Xt(),ire=Dk.mkdirs,are=Dk.mkdirsSync,Nk=Tk(),ore=Nk.symlinkPaths,cre=Nk.symlinkPathsSync,Lk=Rk(),lre=Lk.symlinkType,dre=Lk.symlinkTypeSync,Pk=fr().pathExists;function ure(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,Pk(t,(s,i)=>{if(s)return r(s);if(i)return r(null);ore(e,t,(a,c)=>{if(a)return r(a);e=c.toDst,lre(c.toCwd,n,(l,m)=>{if(l)return r(l);let f=kk.dirname(t);Pk(f,(g,h)=>{if(g)return r(g);if(h)return Gs.symlink(e,t,m,r);ire(f,_=>{if(_)return r(_);Gs.symlink(e,t,m,r)})})})})})}function mre(e,t,n){if(Gs.existsSync(t))return;let s=cre(e,t);e=s.toDst,n=dre(s.toCwd,n);let i=kk.dirname(t);return Gs.existsSync(i)||are(i),Gs.symlinkSync(e,t,n)}qk.exports={createSymlink:sre(ure),createSymlinkSync:mre}});var zk=p((mye,Ok)=>{"use strict";var pm=wk(),hm=Ak(),ym=Mk();Ok.exports={createFile:pm.createFile,createFileSync:pm.createFileSync,ensureFile:pm.createFile,ensureFileSync:pm.createFileSync,createLink:hm.createLink,createLinkSync:hm.createLinkSync,ensureLink:hm.createLink,ensureLinkSync:hm.createLinkSync,createSymlink:ym.createSymlink,createSymlinkSync:ym.createSymlinkSync,ensureSymlink:ym.createSymlink,ensureSymlinkSync:ym.createSymlinkSync}});var gm=p((fye,jk)=>{function fre(e,{EOL:t=`
|
|
27
|
-
`,finalEOL:n=!0,replacer:r=null,spaces:s}={}){let i=n?t:"";return JSON.stringify(e,r,s).replace(/\n/g,t)+i}function pre(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}jk.exports={stringify:fre,stripBom:pre}});var Gk=p((pye,Fk)=>{var $s;try{$s=at()}catch(e){$s=require("fs")}var _m=Ct(),{stringify:Uk,stripBom:Bk}=gm();async function hre(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||$s,r="throws"in t?t.throws:!0,s=await _m.fromCallback(n.readFile)(e,t);s=Bk(s);let i;try{i=JSON.parse(s,t?t.reviver:null)}catch(a){if(r)throw a.message=`${e}: ${a.message}`,a;return null}return i}var yre=_m.fromPromise(hre);function gre(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||$s,r="throws"in t?t.throws:!0;try{let s=n.readFileSync(e,t);return s=Bk(s),JSON.parse(s,t.reviver)}catch(s){if(r)throw s.message=`${e}: ${s.message}`,s;return null}}async function _re(e,t,n={}){let r=n.fs||$s,s=Uk(t,n);await _m.fromCallback(r.writeFile)(e,s,n)}var wre=_m.fromPromise(_re);function bre(e,t,n={}){let r=n.fs||$s,s=Uk(t,n);return r.writeFileSync(e,s,n)}var Sre={readFile:yre,readFileSync:gre,writeFile:wre,writeFileSync:bre};Fk.exports=Sre});var Kk=p((hye,$k)=>{"use strict";var wm=Gk();$k.exports={readJson:wm.readFile,readJsonSync:wm.readFileSync,writeJson:wm.writeFile,writeJsonSync:wm.writeFileSync}});var bm=p((yye,Hk)=>{"use strict";var vre=Ct().fromCallback,Zi=at(),Vk=require("path"),Wk=Xt(),Ere=fr().pathExists;function Are(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let s=Vk.dirname(e);Ere(s,(i,a)=>{if(i)return r(i);if(a)return Zi.writeFile(e,t,n,r);Wk.mkdirs(s,c=>{if(c)return r(c);Zi.writeFile(e,t,n,r)})})}function Cre(e,...t){let n=Vk.dirname(e);if(Zi.existsSync(n))return Zi.writeFileSync(e,...t);Wk.mkdirsSync(n),Zi.writeFileSync(e,...t)}Hk.exports={outputFile:vre(Are),outputFileSync:Cre}});var Jk=p((gye,Yk)=>{"use strict";var{stringify:Tre}=gm(),{outputFile:xre}=bm();async function Ire(e,t,n={}){let r=Tre(t,n);await xre(e,r,n)}Yk.exports=Ire});var Xk=p((_ye,Qk)=>{"use strict";var{stringify:Rre}=gm(),{outputFileSync:kre}=bm();function Dre(e,t,n){let r=Rre(t,n);kre(e,r,n)}Qk.exports=Dre});var eD=p((wye,Zk)=>{"use strict";var Nre=Ct().fromPromise,ht=Kk();ht.outputJson=Nre(Jk());ht.outputJsonSync=Xk();ht.outputJSON=ht.outputJson;ht.outputJSONSync=ht.outputJsonSync;ht.writeJSON=ht.writeJson;ht.writeJSONSync=ht.writeJsonSync;ht.readJSON=ht.readJson;ht.readJSONSync=ht.readJsonSync;Zk.exports=ht});var aD=p((bye,iD)=>{"use strict";var tD=at(),Lre=require("path"),Pre=Yy().copySync,nD=Qi().removeSync,qre=Xt().mkdirpSync,rD=Ki();function Mre(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:s}=rD.checkPathsSync(e,t,"move");return rD.checkParentPathsSync(e,s,t,"move"),qre(Lre.dirname(t)),Ore(e,t,r)}function Ore(e,t,n){if(n)return nD(t),sD(e,t,n);if(tD.existsSync(t))throw new Error("dest already exists.");return sD(e,t,n)}function sD(e,t,n){try{tD.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return zre(e,t,n)}}function zre(e,t,n){return Pre(e,t,{overwrite:n,errorOnExist:!0}),nD(e)}iD.exports=Mre});var cD=p((Sye,oD)=>{"use strict";oD.exports={moveSync:aD()}});var fD=p((vye,mD)=>{"use strict";var jre=at(),Ure=require("path"),Bre=Qy().copy,lD=Qi().remove,Fre=Xt().mkdirp,Gre=fr().pathExists,dD=Ki();function $re(e,t,n,r){typeof n=="function"&&(r=n,n={});let s=n.overwrite||n.clobber||!1;dD.checkPaths(e,t,"move",(i,a)=>{if(i)return r(i);let{srcStat:c}=a;dD.checkParentPaths(e,c,t,"move",l=>{if(l)return r(l);Fre(Ure.dirname(t),m=>m?r(m):Kre(e,t,s,r))})})}function Kre(e,t,n,r){if(n)return lD(t,s=>s?r(s):uD(e,t,n,r));Gre(t,(s,i)=>s?r(s):i?r(new Error("dest already exists.")):uD(e,t,n,r))}function uD(e,t,n,r){jre.rename(e,t,s=>s?s.code!=="EXDEV"?r(s):Vre(e,t,n,r):r())}function Vre(e,t,n,r){Bre(e,t,{overwrite:n,errorOnExist:!0},i=>i?r(i):lD(e,r))}mD.exports=$re});var hD=p((Eye,pD)=>{"use strict";var Wre=Ct().fromCallback;pD.exports={move:Wre(fD())}});var eg=p((Aye,Zy)=>{"use strict";Zy.exports=o(o(o(o(o(o(o(o(o(o(o(o({},$i()),Yy()),Qy()),hk()),zk()),eD()),Xt()),cD()),hD()),bm()),fr()),Qi());var yD=require("fs");Object.getOwnPropertyDescriptor(yD,"promises")&&Object.defineProperty(Zy.exports,"promises",{get(){return yD.promises}})});var bD=p((Cye,wD)=>{wD.exports=ea;ea.default=ea;ea.stable=gD;ea.stableStringify=gD;var Fn=[],yr=[];function ea(e,t,n){tg(e,"",[],void 0);var r;try{yr.length===0?r=JSON.stringify(e,t,n):r=JSON.stringify(e,_D(t),n)}catch(i){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Fn.length!==0;){var s=Fn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return r}function tg(e,t,n,r){var s;if(typeof e=="object"&&e!==null){for(s=0;s<n.length;s++)if(n[s]===e){var i=Object.getOwnPropertyDescriptor(r,t);i.get!==void 0?i.configurable?(Object.defineProperty(r,t,{value:"[Circular]"}),Fn.push([r,t,e,i])):yr.push([e,t]):(r[t]="[Circular]",Fn.push([r,t,e]));return}if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)tg(e[s],s,n,e);else{var a=Object.keys(e);for(s=0;s<a.length;s++){var c=a[s];tg(e[c],c,n,e)}}n.pop()}}function Hre(e,t){return e<t?-1:e>t?1:0}function gD(e,t,n){var r=ng(e,"",[],void 0)||e,s;try{yr.length===0?s=JSON.stringify(r,t,n):s=JSON.stringify(r,_D(t),n)}catch(a){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Fn.length!==0;){var i=Fn.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return s}function ng(e,t,n,r){var s;if(typeof e=="object"&&e!==null){for(s=0;s<n.length;s++)if(n[s]===e){var i=Object.getOwnPropertyDescriptor(r,t);i.get!==void 0?i.configurable?(Object.defineProperty(r,t,{value:"[Circular]"}),Fn.push([r,t,e,i])):yr.push([e,t]):(r[t]="[Circular]",Fn.push([r,t,e]));return}try{if(typeof e.toJSON=="function")return}catch(m){return}if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ng(e[s],s,n,e);else{var a={},c=Object.keys(e).sort(Hre);for(s=0;s<c.length;s++){var l=c[s];ng(e[l],l,n,e),a[l]=e[l]}if(r!==void 0)Fn.push([r,t,e]),r[t]=a;else return a}n.pop()}}function _D(e){return e=e!==void 0?e:function(t,n){return n},function(t,n){if(yr.length>0)for(var r=0;r<yr.length;r++){var s=yr[r];if(s[1]===t&&s[0]===n){n="[Circular]",yr.splice(r,1);break}}return e.call(this,t,n)}}});var vD=p((Tye,SD)=>{"use strict";var Yre=bD(),Sm=class{constructor({level:t,msg:n,meta:r,tags:s},i){this.level=t,this.meta=r,this.tags=["log",t].concat(i.tags,s);let a={};if(Sm.isError(n)&&(this._error=n,a.stack=n.stack,n=n.message),this.msg=n,r&&(typeof r!="object"||Array.isArray(r))&&(r={meta:r}),this.meta=Object.assign({},r||{},i.meta,a),i.dynamicMeta&&typeof i.dynamicMeta=="function"){let c=i.dynamicMeta(this,i);typeof c=="object"&&(this.meta=Object.assign(this.meta,c))}this._replacer=typeof i.replacer=="function"?i.replacer:null}get value(){return Object.assign({_logLevel:this.level,msg:this.msg},this.meta,{_tags:this.tags})}get log(){return this.value}get throw(){let t=this._error||new Error(this.msg);throw t.log=this,t}toJSON(t){return Yre(this.value,this._replacer,t?4:0)}static isError(t){return!!t&&typeof t=="object"&&(t instanceof Error||t.hasOwnProperty("message")&&t.hasOwnProperty("stack"))}};SD.exports=Sm});var AD=p((xye,ED)=>{"use strict";var Jre=require("events"),Qre=vD(),vm=class extends Jre{constructor(t={},n={}){super();this.LambdaLog=vm,this.LogMessage=Qre,this.options=Object.assign({meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:![void 0,null,"0","no","false"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console},t),this._logLevels=Object.assign({info:"info",warn:"warn",error:"error",debug:function(){return this.options.debug?"debug":!1}},n||{}),this._levels=Object.keys(this._logLevels),this.console=this.options.logHandler,this._levels.forEach(r=>{this[r]=(s,i={},a=[])=>this.log(r,s,i,a)})}log(t,n,r={},s=[]){if(this._levels.indexOf(t)===-1)throw new Error(`"${t}" is not a valid log level`);let i=new this.LogMessage({level:t,msg:n,meta:r,tags:s},this.options),a=this._logLevels[t];return typeof a=="function"&&(a=a.call(this,i)),a?(this.options.silent||this.console[a](i.toJSON(this.options.dev)),this.emit("log",i),i):!1}assert(t,n,r={},s=[]){return t?!1:this.log("error",n,r,s)}result(t,n={},r=[]){if(!t||typeof t.then!="function")throw new Error("A promise must be provided as the first argument");return new Promise(i=>{t.then(a=>i(this.log("info",a,n,r))).catch(a=>i(this.log("error",a,n,r)))})}};ED.exports=vm});var TD=p((Iye,CD)=>{"use strict";var Xre=AD(),Zre=new Xre;CD.exports=Zre});var Ks=p((ta,rg)=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.default=ese;function Em(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Em=function(n){return typeof n}:Em=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Em(e)}function ese(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=Em(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}rg.exports=ta.default;rg.exports.default=ta.default});var Am=p((na,sg)=>{"use strict";Object.defineProperty(na,"__esModule",{value:!0});na.default=tse;function tse(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)typeof e[n]=="undefined"&&(e[n]=t[n]);return e}sg.exports=na.default;sg.exports.default=na.default});var xD=p((ra,ig)=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.default=sse;var nse=rse(Ks());function rse(e){return e&&e.__esModule?e:{default:e}}function Cm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Cm=function(n){return typeof n}:Cm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Cm(e)}function sse(e,t){(0,nse.default)(e);var n,r;Cm(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var s=encodeURI(e).split(/%..|./).length-1;return s>=n&&(typeof r=="undefined"||s<=r)}ig.exports=ra.default;ig.exports.default=ra.default});var og=p((sa,ag)=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.default=cse;var ise=ID(Ks()),ase=ID(Am());function ID(e){return e&&e.__esModule?e:{default:e}}var ose={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function cse(e,t){(0,ise.default)(e),t=(0,ase.default)(t,ose),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var n=e.split("."),r=n[n.length-1];return t.require_tld&&(n.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(r)||/\s/.test(r))||!t.allow_numeric_tld&&/^\d+$/.test(r)?!1:n.every(function(s){return!(s.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(s)||/[\uff01-\uff5e]/.test(s)||/^-|-$/.test(s)||!t.allow_underscores&&/_/.test(s))})}ag.exports=sa.default;ag.exports.default=sa.default});var Tm=p((ia,lg)=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.default=cg;var lse=dse(Ks());function dse(e){return e&&e.__esModule?e:{default:e}}var RD="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",gr="(".concat(RD,"[.]){3}").concat(RD),use=new RegExp("^".concat(gr,"$")),Ue="(?:[0-9a-fA-F]{1,4})",mse=new RegExp("^("+"(?:".concat(Ue,":){7}(?:").concat(Ue,"|:)|")+"(?:".concat(Ue,":){6}(?:").concat(gr,"|:").concat(Ue,"|:)|")+"(?:".concat(Ue,":){5}(?::").concat(gr,"|(:").concat(Ue,"){1,2}|:)|")+"(?:".concat(Ue,":){4}(?:(:").concat(Ue,"){0,1}:").concat(gr,"|(:").concat(Ue,"){1,3}|:)|")+"(?:".concat(Ue,":){3}(?:(:").concat(Ue,"){0,2}:").concat(gr,"|(:").concat(Ue,"){1,4}|:)|")+"(?:".concat(Ue,":){2}(?:(:").concat(Ue,"){0,3}:").concat(gr,"|(:").concat(Ue,"){1,5}|:)|")+"(?:".concat(Ue,":){1}(?:(:").concat(Ue,"){0,4}:").concat(gr,"|(:").concat(Ue,"){1,6}|:)|")+"(?::((?::".concat(Ue,"){0,5}:").concat(gr,"|(?::").concat(Ue,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,lse.default)(e),t=String(t),!t)return cg(e,4)||cg(e,6);if(t==="4"){if(!use.test(e))return!1;var n=e.split(".").sort(function(r,s){return r-s});return n[3]<=255}return t==="6"?!!mse.test(e):!1}lg.exports=ia.default;lg.exports.default=ia.default});var DD=p((oa,ug)=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.default=Cse;var fse=aa(Ks()),pse=aa(Am()),dg=aa(xD()),hse=aa(og()),kD=aa(Tm());function aa(e){return e&&e.__esModule?e:{default:e}}var yse={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},gse=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,_se=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,wse=/^[a-z\d]+$/,bse=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,Sse=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,vse=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,Ese=254;function Ase(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var n=/[\.";<>]/.test(t);if(n){if(t===e)return!1;var r=t.split('"').length===t.split('\\"').length;if(!r)return!1}return!0}function Cse(e,t){if((0,fse.default)(e),t=(0,pse.default)(t,yse),t.require_display_name||t.allow_display_name){var n=e.match(gse);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!Ase(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>Ese)return!1;var s=e.split("@"),i=s.pop(),a=i.toLowerCase();if(t.host_blacklist.includes(a))return!1;var c=s.join("@");if(t.domain_specific_validation&&(a==="gmail.com"||a==="googlemail.com")){c=c.toLowerCase();var l=c.split("+")[0];if(!(0,dg.default)(l.replace(/\./g,""),{min:6,max:30}))return!1;for(var m=l.split("."),f=0;f<m.length;f++)if(!wse.test(m[f]))return!1}if(t.ignore_max_length===!1&&(!(0,dg.default)(c,{max:64})||!(0,dg.default)(i,{max:254})))return!1;if(!(0,hse.default)(i,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,kD.default)(i)){if(!i.startsWith("[")||!i.endsWith("]"))return!1;var g=i.substr(1,i.length-2);if(g.length===0||!(0,kD.default)(g))return!1}}if(c[0]==='"')return c=c.slice(1,c.length-1),t.allow_utf8_local_part?vse.test(c):bse.test(c);for(var h=t.allow_utf8_local_part?Sse:_se,_=c.split("."),b=0;b<_.length;b++)if(!h.test(_[b]))return!1;return!(t.blacklisted_chars&&c.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}ug.exports=oa.default;ug.exports.default=oa.default});var qD=p((ca,mg)=>{"use strict";Object.defineProperty(ca,"__esModule",{value:!0});ca.default=Ose;var Tse=xm(Ks()),xse=xm(og()),ND=xm(Tm()),Ise=xm(Am());function xm(e){return e&&e.__esModule?e:{default:e}}function Rse(e,t){return Lse(e)||Nse(e,t)||Dse(e,t)||kse()}function kse(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
28
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dse(e,t){if(!!e){if(typeof e=="string")return LD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return LD(e,t)}}function LD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nse(e,t){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,s=!1,i=void 0;try{for(var a=e[Symbol.iterator](),c;!(r=(c=a.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(l){s=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(s)throw i}}return n}}function Lse(e){if(Array.isArray(e))return e}var Pse={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},qse=/^\[([^\]]+)\](?::([0-9]+))?$/;function Mse(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function PD(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||Mse(r)&&r.test(e))return!0}return!1}function Ose(e,t){if((0,Tse.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,Ise.default)(t,Pse),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,r,s,i,a,c,l,m;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),l=e.split("://"),l.length>1){if(n=l.shift().toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(n)===-1)return!1}else{if(t.require_protocol)return!1;if(e.substr(0,2)==="//"){if(!t.allow_protocol_relative_urls)return!1;l[0]=e.substr(2)}}if(e=l.join("://"),e==="")return!1;if(l=e.split("/"),e=l.shift(),e===""&&!t.require_host)return!0;if(l=e.split("@"),l.length>1){if(t.disallow_auth||l[0]===""||(r=l.shift(),r.indexOf(":")>=0&&r.split(":").length>2))return!1;var f=r.split(":"),g=Rse(f,2),h=g[0],_=g[1];if(h===""&&_==="")return!1}i=l.join("@"),c=null,m=null;var b=i.match(qse);if(b?(s="",m=b[1],c=b[2]||null):(l=i.split(":"),s=l.shift(),l.length&&(c=l.join(":"))),c!==null&&c.length>0){if(a=parseInt(c,10),!/^[0-9]+$/.test(c)||a<=0||a>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?PD(s,t.host_whitelist):!(!(0,ND.default)(s)&&!(0,xse.default)(s,t)&&(!m||!(0,ND.default)(m,6))||(s=s||m,t.host_blacklist&&PD(s,t.host_blacklist)))}mg.exports=ca.default;mg.exports.default=ca.default});var OD=p((Rye,MD)=>{"use strict";var zse=DD(),jse=qD(),Use=Tm();function fg(e,t){if(!e)throw new Error(t)}var Bse={name:"email",coerce:e=>e.toString(),validate:function(e){fg(zse(e),"must be an email address")}},Fse={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){fg(Use(e),"must be an IP address")}},Gse={name:"url",coerce:e=>e.toString(),validate:function(e){fg(jse(e,{require_tld:!1}),"must be a URL")}};MD.exports={email:Bse,ipaddress:Fse,url:Gse}});var TN=p(CN=>{"use strict";Object.defineProperty(CN,"__esModule",{value:!0})});var Ig=p(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});var xN=class{constructor(){if(!!!(Reflect&&Reflect.getMetadata))throw new Error("reflect-metadata should be installed properly");this._reflect=Reflect}isConstructor(t){return!!t.prototype&&!!t.prototype.constructor.name&&t instanceof Function}isConfigClass(t){let n=this._reflect.hasMetadata("tsconvict:properties",t),r=this._reflect.hasMetadata("tsconvict:schema",t);return n||r}getTsType(t,n){return this._reflect.getMetadata("design:type",t,n)}getConvictMetaForProperty(t,n){return this._reflect.getMetadata("tsconvict:property",t,n)}setConvictMetaForProperty(t,n,r){return this._reflect.defineMetadata("tsconvict:property",t,n,r)}setConvictMetaForClass(t,n){return this._reflect.defineMetadata("tsconvict:schema",t,n)}getConvictMetaForClass(t){return this._reflect.getMetadata("tsconvict:schema",t)||null}setPropertyForClass(t,n){let r=this.getClassProperties(t);return r.length===0&&(this._reflect.defineMetadata("tsconvict:properties",[],t.constructor),r=this.getClassProperties(t)),r.push(n)}getClassProperties(t){return this._reflect.getMetadata("tsconvict:properties",t.constructor)||[]}};xg.default=new xN});var IN=p(br=>{"use strict";var moe=br&&br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(br,"__esModule",{value:!0});br.Property=br.Config=void 0;var Pm=moe(Ig());function foe(e={}){return t=>{Pm.default.setConvictMetaForClass(e,t)}}br.Config=foe;function poe(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format=="undefined"){let r=Pm.default.getTsType(t,n);r&&(e.format=r)}Pm.default.setConvictMetaForProperty(e,t,n),Pm.default.setPropertyForClass(t,n)}}br.Property=poe});var kN=p((jye,Rg)=>{"use strict";var hoe=e=>{let t=!1,n=!1,r=!1;for(let s=0;s<e.length;s++){let i=e[s];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.slice(0,s)+"-"+e.slice(s),t=!1,r=n,n=!0,s++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.slice(0,s-1)+"-"+e.slice(s-1),r=n,n=!1,t=!0):(t=i.toLowerCase()===i&&i.toUpperCase()!==i,r=n,n=i.toUpperCase()===i&&i.toLowerCase()!==i)}return e},RN=(e,t)=>{if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);let n=s=>t.pascalCase?s.charAt(0).toUpperCase()+s.slice(1):s;return Array.isArray(e)?e=e.map(s=>s.trim()).filter(s=>s.length).join("-"):e=e.trim(),e.length===0?"":e.length===1?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=hoe(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(s,i)=>i.toUpperCase()).replace(/\d+(\w|$)/g,s=>s.toUpperCase()),n(e))};Rg.exports=RN;Rg.exports.default=RN});var NN=p((Uye,DN)=>{"use strict";DN.exports=function(e,t){if(typeof e!="string")throw new TypeError("Expected a string");return t=typeof t=="undefined"?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}});var PN=p((Bye,LN)=>{LN.exports=function(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,r=null,s=null,i=[];for(let a=0;a<e.length;a++){if(n=r,r=e.charAt(a),r===" "&&!s){n!==" "&&t++;continue}r===s?s=null:(r==="'"||r==='"')&&!s&&(s=r),i[t]||(i[t]=""),i[t]+=r}return i}});var jN=p((Fye,zN)=>{var qm=kN(),yoe=NN(),Mm=require("path"),goe=PN(),_oe=require("util");function qN(e,t){t=Object.assign(Object.create(null),t),e=goe(e);let n=woe(Object.assign(Object.create(null),t.alias)),r=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},t.configuration),s=Object.assign(Object.create(null),t.default),i=t.configObjects||[],a=t.envPrefix,c=r["populate--"],l=c?"--":"_",m=Object.create(null),f=Object.create(null),g=t.__||_oe.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},_=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,b=new RegExp("^--"+r["negation-prefix"]+"(.+)");[].concat(t.array).filter(Boolean).forEach(function(S){let T=S.key||S,N=Object.keys(S).map(function(C){return{boolean:"bools",string:"strings",number:"numbers"}[C]}).filter(Boolean).pop();N&&(h[N][T]=!0),h.arrays[T]=!0,h.keys.push(T)}),[].concat(t.boolean).filter(Boolean).forEach(function(S){h.bools[S]=!0,h.keys.push(S)}),[].concat(t.string).filter(Boolean).forEach(function(S){h.strings[S]=!0,h.keys.push(S)}),[].concat(t.number).filter(Boolean).forEach(function(S){h.numbers[S]=!0,h.keys.push(S)}),[].concat(t.count).filter(Boolean).forEach(function(S){h.counts[S]=!0,h.keys.push(S)}),[].concat(t.normalize).filter(Boolean).forEach(function(S){h.normalize[S]=!0,h.keys.push(S)}),Object.keys(t.narg||{}).forEach(function(S){h.nargs[S]=t.narg[S],h.keys.push(S)}),Object.keys(t.coerce||{}).forEach(function(S){h.coercions[S]=t.coerce[S],h.keys.push(S)}),Array.isArray(t.config)||typeof t.config=="string"?[].concat(t.config).filter(Boolean).forEach(function(S){h.configs[S]=!0}):Object.keys(t.config||{}).forEach(function(S){h.configs[S]=t.config[S]}),tt(t.key,n,t.default,h.arrays),Object.keys(s).forEach(function(S){(h.aliases[S]||[]).forEach(function(T){s[T]=s[S]})});let E=null;va();let D=[],k=Object.assign(Object.create(null),{_:[]}),R={};for(let S=0;S<e.length;S++){let T=e[S],N,C,x,B,J,Ee;if(T!=="--"&&Zr(T))k._.push(T);else if(T.match(/^--.+=/)||!r["short-option-groups"]&&T.match(/^-.+=/))B=T.match(/^--?([^=]+)=([\s\S]*)$/),te(B[1],h.arrays)?S=gt(S,B[1],e,B[2]):te(B[1],h.nargs)!==!1?S=K(S,B[1],e,B[2]):fe(B[1],B[2]);else if(T.match(b)&&r["boolean-negation"])C=T.match(b)[1],fe(C,te(C,h.arrays)?[!1]:!1);else if(T.match(/^--.+/)||!r["short-option-groups"]&&T.match(/^-[^-]+/))C=T.match(/^--?(.+)/)[1],te(C,h.arrays)?S=gt(S,C,e):te(C,h.nargs)!==!1?S=K(S,C,e):(J=e[S+1],J!==void 0&&(!J.match(/^-/)||J.match(_))&&!te(C,h.bools)&&!te(C,h.counts)||/^(true|false)$/.test(J)?(fe(C,J),S++):fe(C,Hn(C)));else if(T.match(/^-.\..+=/))B=T.match(/^-([^=]+)=([\s\S]*)$/),fe(B[1],B[2]);else if(T.match(/^-.\..+/)&&!T.match(_))J=e[S+1],C=T.match(/^-(.\..+)/)[1],J!==void 0&&!J.match(/^-/)&&!te(C,h.bools)&&!te(C,h.counts)?(fe(C,J),S++):fe(C,Hn(C));else if(T.match(/^-[^-]+/)&&!T.match(_)){x=T.slice(1,-1).split(""),N=!1;for(let pe=0;pe<x.length;pe++){if(J=T.slice(pe+2),x[pe+1]&&x[pe+1]==="="){Ee=T.slice(pe+3),C=x[pe],te(C,h.arrays)?S=gt(S,C,e,Ee):te(C,h.nargs)!==!1?S=K(S,C,e,Ee):fe(C,Ee),N=!0;break}if(J==="-"){fe(x[pe],J);continue}if(/[A-Za-z]/.test(x[pe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(J)){fe(x[pe],J),N=!0;break}if(x[pe+1]&&x[pe+1].match(/\W/)){fe(x[pe],J),N=!0;break}else fe(x[pe],Hn(x[pe]))}C=T.slice(-1)[0],!N&&C!=="-"&&(te(C,h.arrays)?S=gt(S,C,e):te(C,h.nargs)!==!1?S=K(S,C,e):(J=e[S+1],J!==void 0&&(!/^(-|--)[^-]/.test(J)||J.match(_))&&!te(C,h.bools)&&!te(C,h.counts)||/^(true|false)$/.test(J)?(fe(C,J),S++):fe(C,Hn(C))))}else if(T.match(/^-[0-9]$/)&&T.match(_)&&te(T.slice(1),h.bools))C=T.slice(1),fe(C,Hn(C));else if(T==="--"){D=e.slice(S+1);break}else if(r["halt-at-non-option"]){D=e.slice(S);break}else k._.push(Zt("_",T))}_e(k,!0),_e(k,!1),Y(k),le(),xe(k,h.aliases,s,!0),Te(k),r["set-placeholder-key"]&&Re(k),Object.keys(h.counts).forEach(function(S){ke(k,S.split("."))||fe(S,0)}),c&&D.length&&(k[l]=[]),D.forEach(function(S){k[l].push(S)}),r["camel-case-expansion"]&&r["strip-dashed"]&&Object.keys(k).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete k[S]}),r["strip-aliased"]&&[].concat(...Object.keys(n).map(S=>n[S])).forEach(S=>{r["camel-case-expansion"]&&delete k[S.split(".").map(T=>qm(T)).join(".")],delete k[S]});function K(S,T,N,C){let x,B=te(T,h.nargs);if(B=isNaN(B)?1:B,B===0)return Fe(C)||(E=Error(g("Argument unexpected for: %s",T))),fe(T,Hn(T)),S;let J=Fe(C)?0:1;if(r["nargs-eats-options"])N.length-(S+1)+J<B&&(E=Error(g("Not enough arguments following: %s",T))),J=B;else{for(x=S+1;x<N.length&&(!N[x].match(/^-[^0-9]/)||N[x].match(_)||Zr(N[x]));x++)J++;J<B&&(E=Error(g("Not enough arguments following: %s",T)))}let Ee=Math.min(J,B);for(!Fe(C)&&Ee>0&&(fe(T,C),Ee--),x=S+1;x<Ee+S+1;x++)fe(T,N[x]);return S+Ee}function gt(S,T,N,C){let x=[],B=C||N[S+1],J=te(T,h.nargs);if(te(T,h.bools)&&!/^(true|false)$/.test(B))x.push(!0);else if(Fe(B)||Fe(C)&&/^-/.test(B)&&!_.test(B)&&!Zr(B)){if(s[T]!==void 0){let Ee=s[T];x=Array.isArray(Ee)?Ee:[Ee]}}else{Fe(C)||x.push(Ar(T,C));for(let Ee=S+1;Ee<N.length&&!(!r["greedy-arrays"]&&x.length>0||J&&x.length>=J||(B=N[Ee],/^-/.test(B)&&!_.test(B)&&!Zr(B)));Ee++)S=Ee,x.push(Ar(T,B))}return(J&&x.length<J||isNaN(J)&&x.length===0)&&(E=Error(g("Not enough arguments following: %s",T))),fe(T,x),S}function fe(S,T){if(/-/.test(S)&&r["camel-case-expansion"]){let x=S.split(".").map(function(B){return qm(B)}).join(".");Er(S,x)}let N=Ar(S,T),C=S.split(".");Ne(k,C,N),h.aliases[S]&&h.aliases[S].forEach(function(x){x=x.split("."),Ne(k,x,N)}),C.length>1&&r["dot-notation"]&&(h.aliases[C[0]]||[]).forEach(function(x){x=x.split(".");let B=[].concat(C);B.shift(),x=x.concat(B),(h.aliases[S]||[]).includes(x.join("."))||Ne(k,x,N)}),te(S,h.normalize)&&!te(S,h.arrays)&&[S].concat(h.aliases[S]||[]).forEach(function(B){Object.defineProperty(R,B,{enumerable:!0,get(){return T},set(J){T=typeof J=="string"?Mm.normalize(J):J}})})}function Er(S,T){h.aliases[S]&&h.aliases[S].length||(h.aliases[S]=[T],m[T]=!0),h.aliases[T]&&h.aliases[T].length||Er(T,S)}function Ar(S,T){typeof T=="string"&&(T[0]==="'"||T[0]==='"')&&T[T.length-1]===T[0]&&(T=T.substring(1,T.length-1)),(te(S,h.bools)||te(S,h.counts))&&typeof T=="string"&&(T=T==="true");let N=Array.isArray(T)?T.map(function(C){return Zt(S,C)}):Zt(S,T);return te(S,h.counts)&&(Fe(N)||typeof N=="boolean")&&(N=kg),te(S,h.normalize)&&te(S,h.arrays)&&(Array.isArray(T)?N=T.map(Mm.normalize):N=Mm.normalize(T)),N}function Zt(S,T){return!te(S,h.strings)&&!te(S,h.bools)&&!Array.isArray(T)&&(Zm(T)&&r["parse-numbers"]&&Number.isSafeInteger(Math.floor(T))||!Fe(T)&&te(S,h.numbers))&&(T=Number(T)),T}function Y(S){let T=Object.create(null);xe(T,h.aliases,s),Object.keys(h.configs).forEach(function(N){let C=S[N]||T[N];if(C)try{let x=null,B=Mm.resolve(process.cwd(),C);if(typeof h.configs[N]=="function"){try{x=h.configs[N](B)}catch(J){x=J}if(x instanceof Error){E=x;return}}else x=require(B);de(x)}catch(x){S[N]&&(E=Error(g("Invalid JSON config file: %s",C)))}})}function de(S,T){Object.keys(S).forEach(function(N){let C=S[N],x=T?T+"."+N:N;typeof C=="object"&&C!==null&&!Array.isArray(C)&&r["dot-notation"]?de(C,x):(!ke(k,x.split("."))||te(x,h.arrays)&&r["combine-arrays"])&&fe(x,C)})}function le(){typeof i!="undefined"&&i.forEach(function(S){de(S)})}function _e(S,T){if(typeof a=="undefined")return;let N=typeof a=="string"?a:"";Object.keys(process.env).forEach(function(C){if(N===""||C.lastIndexOf(N,0)===0){let x=C.split("__").map(function(B,J){return J===0&&(B=B.substring(N.length)),qm(B)});(T&&h.configs[x.join(".")]||!T)&&!ke(S,x)&&fe(x.join("."),process.env[C])}})}function Te(S){let T,N=new Set;Object.keys(S).forEach(function(C){if(!N.has(C)&&(T=te(C,h.coercions),typeof T=="function"))try{let x=Zt(C,T(S[C]));[].concat(h.aliases[C]||[],C).forEach(B=>{N.add(B),S[B]=x})}catch(x){E=x}})}function Re(S){return h.keys.forEach(T=>{~T.indexOf(".")||typeof S[T]=="undefined"&&(S[T]=void 0)}),S}function xe(S,T,N,C=!1){Object.keys(N).forEach(function(x){ke(S,x.split("."))||(Ne(S,x.split("."),N[x]),C&&(f[x]=!0),(T[x]||[]).forEach(function(B){ke(S,B.split("."))||Ne(S,B.split("."),N[x])}))})}function ke(S,T){let N=S;r["dot-notation"]||(T=[T.join(".")]),T.slice(0,-1).forEach(function(x){N=N[x]||{}});let C=T[T.length-1];return typeof N!="object"?!1:C in N}function Ne(S,T,N){let C=S;r["dot-notation"]||(T=[T.join(".")]),T.slice(0,-1).forEach(function(pe,s_){pe=ON(pe),typeof C=="object"&&C[pe]===void 0&&(C[pe]={}),typeof C[pe]!="object"||Array.isArray(C[pe])?(Array.isArray(C[pe])?C[pe].push({}):C[pe]=[C[pe],{}],C=C[pe][C[pe].length-1]):C=C[pe]});let x=ON(T[T.length-1]),B=te(T.join("."),h.arrays),J=Array.isArray(N),Ee=r["duplicate-arguments-array"];!Ee&&te(x,h.nargs)&&(Ee=!0,(!Fe(C[x])&&h.nargs[x]===1||Array.isArray(C[x])&&C[x].length===h.nargs[x])&&(C[x]=void 0)),N===kg?C[x]=kg(C[x]):Array.isArray(C[x])?Ee&&B&&J?C[x]=r["flatten-duplicate-arrays"]?C[x].concat(N):(Array.isArray(C[x][0])?C[x]:[C[x]]).concat([N]):!Ee&&Boolean(B)===Boolean(J)?C[x]=N:C[x]=C[x].concat([N]):C[x]===void 0&&B?C[x]=J?N:[N]:Ee&&!(C[x]===void 0||te(x,h.counts)||te(x,h.bools))?C[x]=[C[x],N]:C[x]=N}function tt(...S){S.forEach(function(T){Object.keys(T||{}).forEach(function(N){h.aliases[N]||(h.aliases[N]=[].concat(n[N]||[]),h.aliases[N].concat(N).forEach(function(C){if(/-/.test(C)&&r["camel-case-expansion"]){let x=qm(C);x!==N&&h.aliases[N].indexOf(x)===-1&&(h.aliases[N].push(x),m[x]=!0)}}),h.aliases[N].concat(N).forEach(function(C){if(C.length>1&&/[A-Z]/.test(C)&&r["camel-case-expansion"]){let x=yoe(C,"-");x!==N&&h.aliases[N].indexOf(x)===-1&&(h.aliases[N].push(x),m[x]=!0)}}),h.aliases[N].forEach(function(C){h.aliases[C]=[N].concat(h.aliases[N].filter(function(x){return C!==x}))}))})})}function te(S,T){let N=[].concat(h.aliases[S]||[],S),C=Object.keys(T),x=N.find(B=>C.includes(B));return x?T[x]:!1}function si(S){return[].concat(Object.keys(h).map(N=>h[N])).some(function(N){return Array.isArray(N)?N.includes(S):N[S]})}function De(S,...T){return[].concat(...T).some(function(C){let x=S.match(C);return x&&si(x[1])})}function Wn(S){if(S.match(_)||!S.match(/^-[^-]+/))return!1;let T=!0,N,C=S.slice(1).split("");for(let x=0;x<C.length;x++){if(N=S.slice(x+2),!si(C[x])){T=!1;break}if(C[x+1]&&C[x+1]==="="||N==="-"||/[A-Za-z]/.test(C[x])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(N)||C[x+1]&&C[x+1].match(/\W/))break}return T}function Zr(S){return r["unknown-options-as-args"]&&Le(S)}function Le(S){return S.match(_)||Wn(S)?!1:!De(S,/^-+([^=]+?)=[\s\S]*$/,b,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Hn(S){return!te(S,h.bools)&&!te(S,h.counts)&&`${S}`in s?s[S]:Qm(Xm(S))}function Qm(S){return{boolean:!0,string:"",number:void 0,array:[]}[S]}function Xm(S){let T="boolean";return te(S,h.strings)?T="string":te(S,h.numbers)?T="number":te(S,h.bools)?T="boolean":te(S,h.arrays)&&(T="array"),T}function Zm(S){return S==null?!1:typeof S=="number"||/^0x[0-9a-f]+$/i.test(S)?!0:S.length>1&&S[0]==="0"?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(S)}function Fe(S){return S===void 0}function va(){Object.keys(h.counts).find(S=>{if(te(S,h.arrays))return E=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0;if(te(S,h.nargs))return E=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0})}return{argv:Object.assign(R,k),error:E,aliases:Object.assign({},h.aliases),newAliases:Object.assign({},m),defaulted:Object.assign({},f),configuration:r}}function woe(e){let t=[],n=Object.create(null),r=!0;for(Object.keys(e).forEach(function(s){t.push([].concat(e[s],s))});r;){r=!1;for(let s=0;s<t.length;s++)for(let i=s+1;i<t.length;i++)if(t[s].filter(function(c){return t[i].indexOf(c)!==-1}).length){t[s]=t[s].concat(t[i]),t.splice(i,1),r=!0;break}}return t.forEach(function(s){s=s.filter(function(i,a,c){return c.indexOf(i)===a}),n[s.pop()]=s}),n}function kg(e){return e!==void 0?e+1:1}function MN(e,t){return qN(e.slice(),t).argv}MN.detailed=function(e,t){return qN(e.slice(),t)};function ON(e){return e==="__proto__"?"___proto___":e}zN.exports=MN});var xL=p((ya,ei)=>{var boe=200,UN="__lodash_hash_undefined__",BN=9007199254740991,Dg="[object Arguments]",Soe="[object Array]",FN="[object Boolean]",GN="[object Date]",voe="[object Error]",Ng="[object Function]",$N="[object GeneratorFunction]",Om="[object Map]",KN="[object Number]",Lg="[object Object]",VN="[object Promise]",WN="[object RegExp]",zm="[object Set]",HN="[object String]",YN="[object Symbol]",Pg="[object WeakMap]",JN="[object ArrayBuffer]",jm="[object DataView]",QN="[object Float32Array]",XN="[object Float64Array]",ZN="[object Int8Array]",eL="[object Int16Array]",tL="[object Int32Array]",nL="[object Uint8Array]",rL="[object Uint8ClampedArray]",sL="[object Uint16Array]",iL="[object Uint32Array]",Eoe=/[\\^$.*+?()[\]{}|]/g,Aoe=/\w*$/,Coe=/^\[object .+?Constructor\]$/,Toe=/^(?:0|[1-9]\d*)$/,Ae={};Ae[Dg]=Ae[Soe]=Ae[JN]=Ae[jm]=Ae[FN]=Ae[GN]=Ae[QN]=Ae[XN]=Ae[ZN]=Ae[eL]=Ae[tL]=Ae[Om]=Ae[KN]=Ae[Lg]=Ae[WN]=Ae[zm]=Ae[HN]=Ae[YN]=Ae[nL]=Ae[rL]=Ae[sL]=Ae[iL]=!0;Ae[voe]=Ae[Ng]=Ae[Pg]=!1;var xoe=typeof global=="object"&&global&&global.Object===Object&&global,Ioe=typeof self=="object"&&self&&self.Object===Object&&self,$n=xoe||Ioe||Function("return this")(),aL=typeof ya=="object"&&ya&&!ya.nodeType&&ya,oL=aL&&typeof ei=="object"&&ei&&!ei.nodeType&&ei,Roe=oL&&oL.exports===aL;function koe(e,t){return e.set(t[0],t[1]),e}function Doe(e,t){return e.add(t),e}function Noe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function Loe(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}function cL(e,t,n,r){var s=-1,i=e?e.length:0;for(r&&i&&(n=e[++s]);++s<i;)n=t(n,e[s],s,e);return n}function Poe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function qoe(e,t){return e==null?void 0:e[t]}function lL(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function dL(e){var t=-1,n=Array(e.size);return e.forEach(function(r,s){n[++t]=[s,r]}),n}function qg(e,t){return function(n){return e(t(n))}}function uL(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Moe=Array.prototype,Ooe=Function.prototype,Um=Object.prototype,Mg=$n["__core-js_shared__"],mL=function(){var e=/[^.]+$/.exec(Mg&&Mg.keys&&Mg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),fL=Ooe.toString,Sr=Um.hasOwnProperty,Bm=Um.toString,zoe=RegExp("^"+fL.call(Sr).replace(Eoe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pL=Roe?$n.Buffer:void 0,hL=$n.Symbol,yL=$n.Uint8Array,joe=qg(Object.getPrototypeOf,Object),Uoe=Object.create,Boe=Um.propertyIsEnumerable,Foe=Moe.splice,gL=Object.getOwnPropertySymbols,Goe=pL?pL.isBuffer:void 0,$oe=qg(Object.keys,Object),Og=Zs($n,"DataView"),pa=Zs($n,"Map"),zg=Zs($n,"Promise"),jg=Zs($n,"Set"),Ug=Zs($n,"WeakMap"),ha=Zs(Object,"create"),Koe=Xr(Og),Voe=Xr(pa),Woe=Xr(zg),Hoe=Xr(jg),Yoe=Xr(Ug),_L=hL?hL.prototype:void 0,wL=_L?_L.valueOf:void 0;function Jr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Joe(){this.__data__=ha?ha(null):{}}function Qoe(e){return this.has(e)&&delete this.__data__[e]}function Xoe(e){var t=this.__data__;if(ha){var n=t[e];return n===UN?void 0:n}return Sr.call(t,e)?t[e]:void 0}function Zoe(e){var t=this.__data__;return ha?t[e]!==void 0:Sr.call(t,e)}function ece(e,t){var n=this.__data__;return n[e]=ha&&t===void 0?UN:t,this}Jr.prototype.clear=Joe;Jr.prototype.delete=Qoe;Jr.prototype.get=Xoe;Jr.prototype.has=Zoe;Jr.prototype.set=ece;function Kn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function tce(){this.__data__=[]}function nce(e){var t=this.__data__,n=Fm(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Foe.call(t,n,1),!0}function rce(e){var t=this.__data__,n=Fm(t,e);return n<0?void 0:t[n][1]}function sce(e){return Fm(this.__data__,e)>-1}function ice(e,t){var n=this.__data__,r=Fm(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Kn.prototype.clear=tce;Kn.prototype.delete=nce;Kn.prototype.get=rce;Kn.prototype.has=sce;Kn.prototype.set=ice;function Qs(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ace(){this.__data__={hash:new Jr,map:new(pa||Kn),string:new Jr}}function oce(e){return Gm(this,e).delete(e)}function cce(e){return Gm(this,e).get(e)}function lce(e){return Gm(this,e).has(e)}function dce(e,t){return Gm(this,e).set(e,t),this}Qs.prototype.clear=ace;Qs.prototype.delete=oce;Qs.prototype.get=cce;Qs.prototype.has=lce;Qs.prototype.set=dce;function Xs(e){this.__data__=new Kn(e)}function uce(){this.__data__=new Kn}function mce(e){return this.__data__.delete(e)}function fce(e){return this.__data__.get(e)}function pce(e){return this.__data__.has(e)}function hce(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!pa||r.length<boe-1)return r.push([e,t]),this;n=this.__data__=new Qs(r)}return n.set(e,t),this}Xs.prototype.clear=uce;Xs.prototype.delete=mce;Xs.prototype.get=fce;Xs.prototype.has=pce;Xs.prototype.set=hce;function yce(e,t){var n=Gg(e)||Uce(e)?Poe(e.length,String):[],r=n.length,s=!!r;for(var i in e)(t||Sr.call(e,i))&&!(s&&(i=="length"||Mce(i,r)))&&n.push(i);return n}function bL(e,t,n){var r=e[t];(!(Sr.call(e,t)&&AL(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Fm(e,t){for(var n=e.length;n--;)if(AL(e[n][0],t))return n;return-1}function gce(e,t){return e&&SL(t,$g(t),e)}function Bg(e,t,n,r,s,i,a){var c;if(r&&(c=i?r(e,s,i,a):r(e)),c!==void 0)return c;if(!$m(e))return e;var l=Gg(e);if(l){if(c=Lce(e),!t)return kce(e,c)}else{var m=Qr(e),f=m==Ng||m==$N;if(Fce(e))return Ece(e,t);if(m==Lg||m==Dg||f&&!i){if(lL(e))return i?e:{};if(c=Pce(f?{}:e),!t)return Dce(e,gce(c,e))}else{if(!Ae[m])return i?e:{};c=qce(e,m,Bg,t)}}a||(a=new Xs);var g=a.get(e);if(g)return g;if(a.set(e,c),!l)var h=n?Nce(e):$g(e);return Noe(h||e,function(_,b){h&&(b=_,_=e[b]),bL(c,b,Bg(_,t,n,r,b,e,a))}),c}function _ce(e){return $m(e)?Uoe(e):{}}function wce(e,t,n){var r=t(e);return Gg(e)?r:Loe(r,n(e))}function bce(e){return Bm.call(e)}function Sce(e){if(!$m(e)||zce(e))return!1;var t=TL(e)||lL(e)?zoe:Coe;return t.test(Xr(e))}function vce(e){if(!EL(e))return $oe(e);var t=[];for(var n in Object(e))Sr.call(e,n)&&n!="constructor"&&t.push(n);return t}function Ece(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Fg(e){var t=new e.constructor(e.byteLength);return new yL(t).set(new yL(e)),t}function Ace(e,t){var n=t?Fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Cce(e,t,n){var r=t?n(dL(e),!0):dL(e);return cL(r,koe,new e.constructor)}function Tce(e){var t=new e.constructor(e.source,Aoe.exec(e));return t.lastIndex=e.lastIndex,t}function xce(e,t,n){var r=t?n(uL(e),!0):uL(e);return cL(r,Doe,new e.constructor)}function Ice(e){return wL?Object(wL.call(e)):{}}function Rce(e,t){var n=t?Fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function kce(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function SL(e,t,n,r){n||(n={});for(var s=-1,i=t.length;++s<i;){var a=t[s],c=r?r(n[a],e[a],a,n,e):void 0;bL(n,a,c===void 0?e[a]:c)}return n}function Dce(e,t){return SL(e,vL(e),t)}function Nce(e){return wce(e,$g,vL)}function Gm(e,t){var n=e.__data__;return Oce(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Zs(e,t){var n=qoe(e,t);return Sce(n)?n:void 0}var vL=gL?qg(gL,Object):Kce,Qr=bce;(Og&&Qr(new Og(new ArrayBuffer(1)))!=jm||pa&&Qr(new pa)!=Om||zg&&Qr(zg.resolve())!=VN||jg&&Qr(new jg)!=zm||Ug&&Qr(new Ug)!=Pg)&&(Qr=function(e){var t=Bm.call(e),n=t==Lg?e.constructor:void 0,r=n?Xr(n):void 0;if(r)switch(r){case Koe:return jm;case Voe:return Om;case Woe:return VN;case Hoe:return zm;case Yoe:return Pg}return t});function Lce(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&Sr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Pce(e){return typeof e.constructor=="function"&&!EL(e)?_ce(joe(e)):{}}function qce(e,t,n,r){var s=e.constructor;switch(t){case JN:return Fg(e);case FN:case GN:return new s(+e);case jm:return Ace(e,r);case QN:case XN:case ZN:case eL:case tL:case nL:case rL:case sL:case iL:return Rce(e,r);case Om:return Cce(e,r,n);case KN:case HN:return new s(e);case WN:return Tce(e);case zm:return xce(e,r,n);case YN:return Ice(e)}}function Mce(e,t){return t=t==null?BN:t,!!t&&(typeof e=="number"||Toe.test(e))&&e>-1&&e%1==0&&e<t}function Oce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function zce(e){return!!mL&&mL in e}function EL(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Um;return e===n}function Xr(e){if(e!=null){try{return fL.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function jce(e){return Bg(e,!0,!0)}function AL(e,t){return e===t||e!==e&&t!==t}function Uce(e){return Bce(e)&&Sr.call(e,"callee")&&(!Boe.call(e,"callee")||Bm.call(e)==Dg)}var Gg=Array.isArray;function CL(e){return e!=null&&Gce(e.length)&&!TL(e)}function Bce(e){return $ce(e)&&CL(e)}var Fce=Goe||Vce;function TL(e){var t=$m(e)?Bm.call(e):"";return t==Ng||t==$N}function Gce(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=BN}function $m(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function $ce(e){return!!e&&typeof e=="object"}function $g(e){return CL(e)?yce(e):vce(e)}function Kce(){return[]}function Vce(){return!1}ei.exports=jce});var OL=p((Gye,ML)=>{"use strict";var Wce=require("fs"),Hce=jN(),ti=xL();function vr(e,t){if(!e)throw new Error(t)}function IL(e){return Number.isInteger(e)&&e>=0&&e<=65535}function Kg(e){return String(e).includes("\\\\.\\pipe\\")}var ga={"*":function(){},int:function(e){vr(Number.isInteger(e),"must be an integer")},nat:function(e){vr(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){vr(IL(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){vr(Kg(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){Kg(e)||vr(IL(e),"must be a windows named pipe or a number within range 0 - 65535")}};ga.integer=ga.int;var Vg=new Map,Wg={"*":JSON.parse},Yce="strict",RL="warn";function kL(e,t){let n=Object.keys(e),r,s=[];for(;n.length;){r=n.shift();let a=ni(e,r);if(typeof a=="object"&&!Array.isArray(a)&&a!=null){if(t)if("_cvtProperties"in a)a=a._cvtProperties,r=r+"._cvtProperties";else{s.push([r,a]);continue}let c=Object.keys(a);if(c.length>0){c.forEach(function(l){n.push(r+"."+l)});continue}}s.push([r,a])}let i={};return s.forEach(function(a){let c=a[0];t&&(c=c.replace(/\._cvtProperties/g,""));let l=a[1];i[c]=l}),i}function Jce(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},s=kL(e),i=kL(t._cvtProperties,!0);return Object.keys(i).forEach(function(a){let c=i[a],l=s[a];if(!(a in s))try{if(typeof c.default=="object"&&!Array.isArray(c.default))l=ni(e,a);else throw new Error("missing")}catch(m){let f=new Error("configuration param '"+a+"' missing from config, did you override its parent?");r.missing.push(f);return}if(delete s[a],(c.format==="object"||typeof c.default=="object")&&Object.keys(s).filter(function(m){return m.lastIndexOf(a+".",0)===0}).forEach(function(m){delete s[m]}),!(typeof c.default=="undefined"&&l===c.default))try{c._format(l)}catch(m){r.invalid_type.push(m)}}),n&&Object.keys(s).forEach(function(a){let c=new Error("configuration param '"+a+"' not declared in the schema");r.undeclared.push(c)}),r}function Qce(e,t){vr(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var Hg={Object,Array,String,Number,Boolean,RegExp},DL=Object.keys(Hg),Xce=DL.map(function(e){return Hg[e]});function NL(e,t,n,r,s,i,a){if(e==="_cvtProperties")throw new Error("'"+r+"': '_cvtProperties' is reserved word of convict.");if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0&&!("default"in t)){n[e]={_cvtProperties:{}},Object.keys(t).forEach(function(f){NL(f,t[f],n[e]._cvtProperties,r+"."+f,s,i,a)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let c=ti(t);if(n[e]=c,c.env&&(s[c.env]||(s[c.env]=[]),s[c.env].push(r)),c.arg){if(i[c.arg])throw new Error("'"+r+"' reuses a command-line argument: "+c.arg);i[c.arg]=r}c.sensitive===!0&&a.add(r);let l=c.format,m;if(Xce.indexOf(l)>=0||DL.indexOf(l)>=0){let f=typeof l=="string"?Hg[l]:l;m=function(g){vr(Object.prototype.toString.call(g)==Object.prototype.toString.call(new f),"must be of type "+f.name)},c.format=f.name.toLowerCase()}else if(typeof l=="string"){if(!ga[l])throw new Error("'"+r+"' uses an unknown format type: "+l);m=ga[l]}else if(Array.isArray(l))m=Qce.bind(null,l);else if(typeof l=="function")m=l;else if(l&&typeof l!="function")throw new Error("'"+r+"': `format` must be a function or a known format type.");if(!m&&!l){let f=Object.prototype.toString.call(c.default);m=function(g){vr(Object.prototype.toString.call(g)==f," should be of type "+f.replace(/\[.* |]/g,""))}}c._format=function(f){if(!(this.nullable&&f===null))try{m(f,this)}catch(g){throw g.fullName=r,g.value=f,g}}}function Yg(e){let t=e.getEnv();Object.keys(e._env).forEach(function(n){t[n]!==void 0&&e._env[n].forEach(function(s){e.set(s,t[n])})})}function Jg(e){let t=Hce(e.getArgs(),{configuration:{"dot-notation":!1}});Object.keys(e._argv).forEach(function(n){let r=e._argv[n];t[n]!==void 0&&e.set(r,String(t[n]))})}function LL(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let s=e._cvtProperties[r];if(s._cvtProperties){let i=t[r]||{};LL(s,i,n),t[r]=i}else t[r]=Xg(r,ti(s.default),e,n)})}function PL(e){return typeof e=="object"&&e!==null}function Qg(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!PL(e[r])||!n||n.format==="object"?t[r]=Xg(r,e[r],n):(PL(t[r])||(t[r]={}),Qg(e[r],t[r],n._cvtProperties[r]))})}function Zce(e,t){let n=t.split("."),r=e;for(;n.length>0;){let s=n.shift();if(r&&r._cvtProperties&&r._cvtProperties[s])r=r._cvtProperties[s];else{r=null;break}}return r}function ele(e,t){let n=Zce(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function Xg(e,t,n,r){let s=ele(n,e);if(typeof t=="string"){if(Vg.has(s))return Vg.get(s)(t,r,e);switch(s){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=Kg(t)?t:parseInt(t,10);break;case"number":t=parseFloat(t);break;case"boolean":t=String(t).toLowerCase()!=="false";break;case"array":t=t.split(",");break;case"object":t=JSON.parse(t);break;case"regexp":t=new RegExp(t);break;default:}}return t}function qL(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Wg[n]||Wg["*"])(Wce.readFileSync(e,"utf-8"))}function ni(e,t,n){if(t){let r=t.split(".");for(;r.length;){let s=r.shift();if(n&&e[s]==null)e[s]={},e=e[s];else if(s in e)e=e[s];else throw new Error("cannot find configuration param '"+t+"'")}}return e}var _a=function(t,n){let r={getArgs:function(){return n&&n.args||process.argv.slice(2)},getEnv:function(){return n&&n.env||process.env},getProperties:function(){return ti(this._instance)},toString:function(){let s=ti(this._instance);return this._sensitive.forEach(function(i){let a=i.split("."),c=a.pop(),l=a.join("."),m=ni(s,l);m[c]="[Sensitive]"}),JSON.stringify(s,null,2)},getSchema:function(){return JSON.parse(JSON.stringify(this._schema))},getSchemaString:function(){return JSON.stringify(this._schema,null,2)},get:function(s){let i=ni(this._instance,s);return ti(i)},default:function(s){s=s.split(".").join("._cvtProperties.")+".default";let i=ni(this._schema._cvtProperties,s);return ti(i)},reset:function(s){this.set(s,this.default(s))},has:function(s){try{return typeof this.get(s)!="undefined"}catch(i){return!1}},set:function(s,i){i=Xg(s,i,this._schema,this);let a=s.split("."),c=a.pop(),l=a.join(".");if(!(l=="__proto__"||l=="constructor"||l=="prototype")){let m=ni(this._instance,l,!0);m[c]=i}return this},load:function(s){return Qg(s,this._instance,this._schema),Yg(r),Jg(r),this},loadFile:function(s){let i=this;return Array.isArray(s)||(s=[s]),s.forEach(function(a){let c=qL(a);c&&Qg(c,i._instance,i._schema)}),Yg(r),Jg(r),this},validate:function(s){if(s=s||{},s.allowed=s.allowed||RL,s.output&&typeof s.output!="function")throw new Error("options.output is optionnal and must be a function.");let i=s.output||global.console.log,a=Jce(this._instance,this._schema,s.allowed);if(a.invalid_type.length+a.undeclared.length+a.missing.length){let c=this._sensitive,l=function(b){let E="";for(let D=0;D<b.length;D++){E.length&&(E+=`
|
|
29
|
-
`);let k=b[D];k.fullName&&(E+=k.fullName+": "),k.message&&(E+=k.message),k.value&&!c.has(k.fullName)&&(E+=": value was "+JSON.stringify(k.value))}return E},m=l(a.invalid_type),f=l(a.undeclared),g=l(a.missing),h=[m,g];if(s.allowed===
|
|
30
|
-
`);if(_.length)throw new Error(_)}return this}};return typeof t=="string"?r._def=qL(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(s){NL(s,r._def[s],r._schema._cvtProperties,s,r._env,r._argv,r._sensitive)}),r._instance={},LL(r._schema,r._instance,r),Yg(r),Jg(r),r};_a.addFormat=function(e,t,n){if(typeof e=="object"&&(t=e.validate,n=e.coerce,e=e.name),typeof t!="function")throw new Error("Validation function for "+e+" must be a function.");if(n&&typeof n!="function")throw new Error("Coerce function for "+e+" must be a function.");ga[e]=t,n&&Vg.set(e,n)};_a.addFormats=function(e){Object.keys(e).forEach(function(t){_a.addFormat(t,e[t].validate,e[t].coerce)})};_a.addParser=function(e){Array.isArray(e)||(e=[e]),e.forEach(function(t){if(!t)throw new Error("Invalid parser");if(!t.extension)throw new Error("Missing parser.extension");if(!t.parse)throw new Error("Missing parser.parse function");if(typeof t.parse!="function")throw new Error("Invalid parser.parse function");(Array.isArray(t.extension)?t.extension:[t.extension]).forEach(function(r){if(typeof r!="string")throw new Error("Invalid parser.extension");Wg[r]=t.parse})})};ML.exports=_a});var jL=p(ri=>{"use strict";var Km=ri&&ri.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ri,"__esModule",{value:!0});ri.TSConvict=void 0;var Cn=Km(Ig()),Zg=Km(OL()),tle=Km(require("fs")),nle=Km(require("path")),zL=class{constructor(t){if(this.opts={},!Cn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Cn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser!="undefined"&&Zg.default.addParser(n.parser),typeof n.formats!="undefined"&&Zg.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=Zg.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file!="undefined"&&tle.default.existsSync(nle.default.resolve(this.opts.file))&&(n=this.opts.file),typeof t=="string"||Array.isArray(t)){let i;Array.isArray(t)?i=t:i=[t],n!==null&&i.unshift(n),this.client.loadFile(i)}else if(t===null)n!==null?this.client.loadFile(n):this.client.load({});else if(typeof t=="object")n!==null&&this.client.loadFile(n),this.client.load(t);else throw new Error(`Could not load the config given: ${t}`);let r=this.opts.validationMethod===void 0?"strict":this.opts.validationMethod;this.client.validate({allowed:r});let s=this.client.getProperties();return this.applyDataToModel(this.baseModel,s)}getSchemaFor(t){let n={};for(let r of Cn.default.getClassProperties(t)){let s=Cn.default.getConvictMetaForProperty(t,r);if(Cn.default.isConstructor(s)&&Cn.default.isConfigClass(s))try{t[r]=new s,n[r]=this.getSchemaFor(t[r])}catch(i){throw console.error(i),new Error("Could not make a new class of "+s)}else n[r]=s}return n}applyDataToModel(t,n){for(let r of Cn.default.getClassProperties(t)){let s=Cn.default.getConvictMetaForProperty(t,r);Cn.default.isConstructor(s)&&Cn.default.isConfigClass(s)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};ri.TSConvict=zL});var Vm=p(Vn=>{"use strict";var rle=Vn&&Vn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),e_=Vn&&Vn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&rle(t,e,n)};Object.defineProperty(Vn,"__esModule",{value:!0});e_(TN(),Vn);e_(IN(),Vn);e_(jL(),Vn)});XL(exports,{handler:()=>$L,overrideDBManager:()=>sle});G_().install();var $_;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=s(e);typeof n.Reflect=="undefined"?n.Reflect=e:r=s(n.Reflect,r),t(r);function s(i,a){return function(c,l){typeof i[c]!="function"&&Object.defineProperty(i,c,{configurable:!0,writable:!0,value:l}),a&&a(c,l)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",i=r&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!a&&!c,m={create:a?function(){return ef(Object.create(null))}:c?function(){return ef({__proto__:null})}:function(){return ef({})},has:l?function(A,I){return n.call(A,I)}:function(A,I){return I in A},get:l?function(A,I){return n.call(A,I)?A[I]:void 0}:function(A,I){return A[I]}},f=Object.getPrototypeOf(Function),g=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",h=!g&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:s_(),_=!g&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:KL(),b=!g&&typeof WeakMap=="function"?WeakMap:VL(),E=new b;function D(A,I,P,O){if(De(P)){if(!va(A))throw new TypeError;if(!T(I))throw new TypeError;return de(A,I)}else{if(!va(A))throw new TypeError;if(!Le(I))throw new TypeError;if(!Le(O)&&!De(O)&&!Wn(O))throw new TypeError;return Wn(O)&&(O=void 0),P=Fe(P),le(A,I,P,O)}}t("decorate",D);function k(A,I){function P(O,V){if(!Le(O))throw new TypeError;if(!De(V)&&!N(V))throw new TypeError;Ne(A,I,O,V)}return P}t("metadata",k);function R(A,I,P,O){if(!Le(P))throw new TypeError;return De(O)||(O=Fe(O)),Ne(A,I,P,O)}t("defineMetadata",R);function K(A,I,P){if(!Le(I))throw new TypeError;return De(P)||(P=Fe(P)),Te(A,I,P)}t("hasMetadata",K);function gt(A,I,P){if(!Le(I))throw new TypeError;return De(P)||(P=Fe(P)),Re(A,I,P)}t("hasOwnMetadata",gt);function fe(A,I,P){if(!Le(I))throw new TypeError;return De(P)||(P=Fe(P)),xe(A,I,P)}t("getMetadata",fe);function Er(A,I,P){if(!Le(I))throw new TypeError;return De(P)||(P=Fe(P)),ke(A,I,P)}t("getOwnMetadata",Er);function Ar(A,I){if(!Le(A))throw new TypeError;return De(I)||(I=Fe(I)),tt(A,I)}t("getMetadataKeys",Ar);function Zt(A,I){if(!Le(A))throw new TypeError;return De(I)||(I=Fe(I)),te(A,I)}t("getOwnMetadataKeys",Zt);function Y(A,I,P){if(!Le(I))throw new TypeError;De(P)||(P=Fe(P));var O=_e(I,P,!1);if(De(O)||!O.delete(A))return!1;if(O.size>0)return!0;var V=E.get(I);return V.delete(P),V.size>0||E.delete(I),!0}t("deleteMetadata",Y);function de(A,I){for(var P=A.length-1;P>=0;--P){var O=A[P],V=O(I);if(!De(V)&&!Wn(V)){if(!T(V))throw new TypeError;I=V}}return I}function le(A,I,P,O){for(var V=A.length-1;V>=0;--V){var We=A[V],ie=We(I,P,O);if(!De(ie)&&!Wn(ie)){if(!Le(ie))throw new TypeError;O=ie}}return O}function _e(A,I,P){var O=E.get(A);if(De(O)){if(!P)return;O=new h,E.set(A,O)}var V=O.get(I);if(De(V)){if(!P)return;V=new h,O.set(I,V)}return V}function Te(A,I,P){var O=Re(A,I,P);if(O)return!0;var V=pe(I);return Wn(V)?!1:Te(A,V,P)}function Re(A,I,P){var O=_e(I,P,!1);return De(O)?!1:Xm(O.has(A))}function xe(A,I,P){var O=Re(A,I,P);if(O)return ke(A,I,P);var V=pe(I);if(!Wn(V))return xe(A,V,P)}function ke(A,I,P){var O=_e(I,P,!1);if(!De(O))return O.get(A)}function Ne(A,I,P,O){var V=_e(P,O,!0);V.set(A,I)}function tt(A,I){var P=te(A,I),O=pe(A);if(O===null)return P;var V=tt(O,I);if(V.length<=0)return P;if(P.length<=0)return V;for(var We=new _,ie=[],ae=0,Q=P;ae<Q.length;ae++){var ye=Q[ae],ge=We.has(ye);ge||(We.add(ye),ie.push(ye))}for(var Yn=0,i_=V;Yn<i_.length;Yn++){var ye=i_[Yn],ge=We.has(ye);ge||(We.add(ye),ie.push(ye))}return ie}function te(A,I){var P=[],O=_e(A,I,!1);if(De(O))return P;for(var V=O.keys(),We=x(V),ie=0;;){var ae=J(We);if(!ae)return P.length=ie,P;var Q=B(ae);try{P[ie]=Q}catch(ye){try{Ee(We)}finally{throw ye}}ie++}}function si(A){if(A===null)return 1;switch(typeof A){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return A===null?1:6;default:return 6}}function De(A){return A===void 0}function Wn(A){return A===null}function Zr(A){return typeof A=="symbol"}function Le(A){return typeof A=="object"?A!==null:typeof A=="function"}function Hn(A,I){switch(si(A)){case 0:return A;case 1:return A;case 2:return A;case 3:return A;case 4:return A;case 5:return A}var P=I===3?"string":I===5?"number":"default",O=C(A,s);if(O!==void 0){var V=O.call(A,P);if(Le(V))throw new TypeError;return V}return Qm(A,P==="default"?"number":P)}function Qm(A,I){if(I==="string"){var P=A.toString;if(S(P)){var O=P.call(A);if(!Le(O))return O}var V=A.valueOf;if(S(V)){var O=V.call(A);if(!Le(O))return O}}else{var V=A.valueOf;if(S(V)){var O=V.call(A);if(!Le(O))return O}var We=A.toString;if(S(We)){var O=We.call(A);if(!Le(O))return O}}throw new TypeError}function Xm(A){return!!A}function Zm(A){return""+A}function Fe(A){var I=Hn(A,3);return Zr(I)?I:Zm(I)}function va(A){return Array.isArray?Array.isArray(A):A instanceof Object?A instanceof Array:Object.prototype.toString.call(A)==="[object Array]"}function S(A){return typeof A=="function"}function T(A){return typeof A=="function"}function N(A){switch(si(A)){case 3:return!0;case 4:return!0;default:return!1}}function C(A,I){var P=A[I];if(P!=null){if(!S(P))throw new TypeError;return P}}function x(A){var I=C(A,i);if(!S(I))throw new TypeError;var P=I.call(A);if(!Le(P))throw new TypeError;return P}function B(A){return A.value}function J(A){var I=A.next();return I.done?!1:I}function Ee(A){var I=A.return;I&&I.call(A)}function pe(A){var I=Object.getPrototypeOf(A);if(typeof A!="function"||A===f||I!==f)return I;var P=A.prototype,O=P&&Object.getPrototypeOf(P);if(O==null||O===Object.prototype)return I;var V=O.constructor;return typeof V!="function"||V===A?I:V}function s_(){var A={},I=[],P=function(){function ie(ae,Q,ye){this._index=0,this._keys=ae,this._values=Q,this._selector=ye}return ie.prototype["@@iterator"]=function(){return this},ie.prototype[i]=function(){return this},ie.prototype.next=function(){var ae=this._index;if(ae>=0&&ae<this._keys.length){var Q=this._selector(this._keys[ae],this._values[ae]);return ae+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:Q,done:!1}}return{value:void 0,done:!0}},ie.prototype.throw=function(ae){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),ae},ie.prototype.return=function(ae){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:ae,done:!0}},ie}();return function(){function ie(){this._keys=[],this._values=[],this._cacheKey=A,this._cacheIndex=-2}return Object.defineProperty(ie.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ie.prototype.has=function(ae){return this._find(ae,!1)>=0},ie.prototype.get=function(ae){var Q=this._find(ae,!1);return Q>=0?this._values[Q]:void 0},ie.prototype.set=function(ae,Q){var ye=this._find(ae,!0);return this._values[ye]=Q,this},ie.prototype.delete=function(ae){var Q=this._find(ae,!1);if(Q>=0){for(var ye=this._keys.length,ge=Q+1;ge<ye;ge++)this._keys[ge-1]=this._keys[ge],this._values[ge-1]=this._values[ge];return this._keys.length--,this._values.length--,ae===this._cacheKey&&(this._cacheKey=A,this._cacheIndex=-2),!0}return!1},ie.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=A,this._cacheIndex=-2},ie.prototype.keys=function(){return new P(this._keys,this._values,O)},ie.prototype.values=function(){return new P(this._keys,this._values,V)},ie.prototype.entries=function(){return new P(this._keys,this._values,We)},ie.prototype["@@iterator"]=function(){return this.entries()},ie.prototype[i]=function(){return this.entries()},ie.prototype._find=function(ae,Q){return this._cacheKey!==ae&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ae)),this._cacheIndex<0&&Q&&(this._cacheIndex=this._keys.length,this._keys.push(ae),this._values.push(void 0)),this._cacheIndex},ie}();function O(ie,ae){return ie}function V(ie,ae){return ae}function We(ie,ae){return[ie,ae]}}function KL(){return function(){function A(){this._map=new h}return Object.defineProperty(A.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),A.prototype.has=function(I){return this._map.has(I)},A.prototype.add=function(I){return this._map.set(I,I),this},A.prototype.delete=function(I){return this._map.delete(I)},A.prototype.clear=function(){this._map.clear()},A.prototype.keys=function(){return this._map.keys()},A.prototype.values=function(){return this._map.values()},A.prototype.entries=function(){return this._map.entries()},A.prototype["@@iterator"]=function(){return this.keys()},A.prototype[i]=function(){return this.keys()},A}()}function VL(){var A=16,I=m.create(),P=O();return function(){function Q(){this._key=O()}return Q.prototype.has=function(ye){var ge=V(ye,!1);return ge!==void 0?m.has(ge,this._key):!1},Q.prototype.get=function(ye){var ge=V(ye,!1);return ge!==void 0?m.get(ge,this._key):void 0},Q.prototype.set=function(ye,ge){var Yn=V(ye,!0);return Yn[this._key]=ge,this},Q.prototype.delete=function(ye){var ge=V(ye,!1);return ge!==void 0?delete ge[this._key]:!1},Q.prototype.clear=function(){this._key=O()},Q}();function O(){var Q;do Q="@@WeakMap@@"+ae();while(m.has(I,Q));return I[Q]=!0,Q}function V(Q,ye){if(!n.call(Q,P)){if(!ye)return;Object.defineProperty(Q,P,{value:m.create()})}return Q[P]}function We(Q,ye){for(var ge=0;ge<ye;++ge)Q[ge]=Math.random()*255|0;return Q}function ie(Q){return typeof Uint8Array=="function"?typeof crypto!="undefined"?crypto.getRandomValues(new Uint8Array(Q)):typeof msCrypto!="undefined"?msCrypto.getRandomValues(new Uint8Array(Q)):We(new Uint8Array(Q),Q):We(new Array(Q),Q)}function ae(){var Q=ie(A);Q[6]=Q[6]&79|64,Q[8]=Q[8]&191|128;for(var ye="",ge=0;ge<A;++ge){var Yn=Q[ge];(ge===4||ge===6||ge===8)&&(ye+="-"),Yn<16&&(ye+="0"),ye+=Yn.toString(16).toLowerCase()}return ye}}function ef(A){return A.__=void 0,delete A.__,A}})})($_||($_={}));var FL=Tn(mt()),wa=Tn(dR()),ba=Tn(eg()),n_=Tn(TD());var Ym=Tn(OD());function zD(e){return typeof e=="undefined"||e===null}function $se(e){return typeof e=="object"&&e!==null}function Kse(e){return Array.isArray(e)?e:zD(e)?[]:[e]}function Vse(e,t){var n,r,s,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n<r;n+=1)s=i[n],e[s]=t[s];return e}function Wse(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Hse(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Yse=zD,Jse=$se,Qse=Kse,Xse=Wse,Zse=Hse,eie=Vse,Ge={isNothing:Yse,isObject:Jse,toArray:Qse,repeat:Xse,isNegativeZero:Zse,extend:eie};function jD(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
26
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),Qi.checkPaths(e,t,"copy",(s,i)=>{if(s)return r(s);let{srcStat:a,destStat:c}=i;Qi.checkParentPaths(e,a,t,"copy",l=>l?r(l):n.filter?FR(BR,c,e,t,n,r):BR(c,e,t,n,r))})}function BR(e,t,n,r,s){let i=Ji.dirname(n);Tne(i,(a,c)=>{if(a)return s(a);if(c)return Jy(e,t,n,r,s);Cne(i,l=>l?s(l):Jy(e,t,n,r,s))})}function FR(e,t,n,r,s,i){Promise.resolve(s.filter(n,r)).then(a=>a?e(t,n,r,s,i):i(),a=>i(a))}function Jy(e,t,n,r,s){return r.filter?FR(GR,e,t,n,r,s):GR(e,t,n,r,s)}function GR(e,t,n,r,s){(r.dereference?xt.stat:xt.lstat)(t,(a,c)=>{if(a)return s(a);if(c.isDirectory())return qne(c,e,t,n,r,s);if(c.isFile()||c.isCharacterDevice()||c.isBlockDevice())return Rne(c,e,t,n,r,s);if(c.isSymbolicLink())return zne(e,t,n,r,s)})}function Rne(e,t,n,r,s,i){return t?kne(e,n,r,s,i):$R(e,n,r,s,i)}function kne(e,t,n,r,s){if(r.overwrite)xt.unlink(n,i=>i?s(i):$R(e,t,n,r,s));else return r.errorOnExist?s(new Error(`'${n}' already exists`)):s()}function $R(e,t,n,r,s){xt.copyFile(t,n,i=>i?s(i):r.preserveTimestamps?Dne(e.mode,t,n,s):dm(n,e.mode,s))}function Dne(e,t,n,r){return Lne(e)?Pne(n,e,s=>s?r(s):KR(e,t,n,r)):KR(e,t,n,r)}function Lne(e){return(e&128)==0}function Pne(e,t,n){return dm(e,t|128,n)}function KR(e,t,n,r){Nne(t,n,s=>s?r(s):dm(n,e,r))}function dm(e,t,n){return xt.chmod(e,t,n)}function Nne(e,t,n){xt.stat(e,(r,s)=>r?n(r):xne(t,s.atime,s.mtime,n))}function qne(e,t,n,r,s,i){return t?t&&!t.isDirectory()?i(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):VR(n,r,s,i):Mne(e.mode,n,r,s,i)}function Mne(e,t,n,r,s){xt.mkdir(n,i=>{if(i)return s(i);VR(t,n,r,a=>a?s(a):dm(n,e,s))})}function VR(e,t,n,r){xt.readdir(e,(s,i)=>s?r(s):WR(i,e,t,n,r))}function WR(e,t,n,r,s){let i=e.pop();return i?One(e,i,t,n,r,s):s()}function One(e,t,n,r,s,i){let a=Ji.join(n,t),c=Ji.join(r,t);Qi.checkPaths(a,c,"copy",(l,m)=>{if(l)return i(l);let{destStat:f}=m;Jy(f,a,c,s,g=>g?i(g):WR(e,n,r,s,i))})}function zne(e,t,n,r,s){xt.readlink(t,(i,a)=>{if(i)return s(i);if(r.dereference&&(a=Ji.resolve(process.cwd(),a)),e)xt.readlink(n,(c,l)=>c?c.code==="EINVAL"||c.code==="UNKNOWN"?xt.symlink(a,n,s):s(c):(r.dereference&&(l=Ji.resolve(process.cwd(),l)),Qi.isSrcSubdir(a,l)?s(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${l}'.`)):e.isDirectory()&&Qi.isSrcSubdir(l,a)?s(new Error(`Cannot overwrite '${l}' with '${a}'.`)):jne(a,n,s)));else return xt.symlink(a,n,s)})}function jne(e,t,n){xt.unlink(t,r=>r?n(r):xt.symlink(e,t,n))}HR.exports=Ine});var Qy=p((sye,JR)=>{"use strict";var Une=Ct().fromCallback;JR.exports={copy:Une(YR())}});var ik=p((iye,sk)=>{"use strict";var QR=at(),XR=require("path"),ve=require("assert"),Xi=process.platform==="win32";function ZR(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||QR[n],n=n+"Sync",e[n]=e[n]||QR[n]}),e.maxBusyTries=e.maxBusyTries||3}function Xy(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),ve(e,"rimraf: missing path"),ve.strictEqual(typeof e,"string","rimraf: path should be a string"),ve.strictEqual(typeof n,"function","rimraf: callback function required"),ve(t,"rimraf: invalid options argument provided"),ve.strictEqual(typeof t,"object","rimraf: options should be object"),ZR(t),ek(e,t,function s(i){if(i){if((i.code==="EBUSY"||i.code==="ENOTEMPTY"||i.code==="EPERM")&&r<t.maxBusyTries){r++;let a=r*100;return setTimeout(()=>ek(e,t,s),a)}i.code==="ENOENT"&&(i=null)}n(i)})}function ek(e,t,n){ve(e),ve(t),ve(typeof n=="function"),t.lstat(e,(r,s)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&Xi)return tk(e,t,r,n);if(s&&s.isDirectory())return um(e,t,r,n);t.unlink(e,i=>{if(i){if(i.code==="ENOENT")return n(null);if(i.code==="EPERM")return Xi?tk(e,t,i,n):um(e,t,i,n);if(i.code==="EISDIR")return um(e,t,i,n)}return n(i)})})}function tk(e,t,n,r){ve(e),ve(t),ve(typeof r=="function"),t.chmod(e,438,s=>{s?r(s.code==="ENOENT"?null:n):t.stat(e,(i,a)=>{i?r(i.code==="ENOENT"?null:n):a.isDirectory()?um(e,t,n,r):t.unlink(e,r)})})}function nk(e,t,n){let r;ve(e),ve(t);try{t.chmodSync(e,438)}catch(s){if(s.code==="ENOENT")return;throw n}try{r=t.statSync(e)}catch(s){if(s.code==="ENOENT")return;throw n}r.isDirectory()?mm(e,t,n):t.unlinkSync(e)}function um(e,t,n,r){ve(e),ve(t),ve(typeof r=="function"),t.rmdir(e,s=>{s&&(s.code==="ENOTEMPTY"||s.code==="EEXIST"||s.code==="EPERM")?Bne(e,t,r):s&&s.code==="ENOTDIR"?r(n):r(s)})}function Bne(e,t,n){ve(e),ve(t),ve(typeof n=="function"),t.readdir(e,(r,s)=>{if(r)return n(r);let i=s.length,a;if(i===0)return t.rmdir(e,n);s.forEach(c=>{Xy(XR.join(e,c),t,l=>{if(!a){if(l)return n(a=l);--i==0&&t.rmdir(e,n)}})})})}function rk(e,t){let n;t=t||{},ZR(t),ve(e,"rimraf: missing path"),ve.strictEqual(typeof e,"string","rimraf: path should be a string"),ve(t,"rimraf: missing options"),ve.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&Xi&&nk(e,t,r)}try{n&&n.isDirectory()?mm(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return Xi?nk(e,t,r):mm(e,t,r);if(r.code!=="EISDIR")throw r;mm(e,t,r)}}function mm(e,t,n){ve(e),ve(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")Fne(e,t);else if(r.code!=="ENOENT")throw r}}function Fne(e,t){if(ve(e),ve(t),t.readdirSync(e).forEach(n=>rk(XR.join(e,n),t)),Xi){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}sk.exports=Xy;Xy.sync=rk});var Zi=p((aye,ok)=>{"use strict";var Gne=Ct().fromCallback,ak=ik();ok.exports={remove:Gne(ak),removeSync:ak.sync}});var hk=p((oye,pk)=>{"use strict";var $ne=Ct().fromCallback,ck=at(),lk=require("path"),dk=Xt(),uk=Zi(),mk=$ne(function(t,n){n=n||function(){},ck.readdir(t,(r,s)=>{if(r)return dk.mkdirs(t,n);s=s.map(a=>lk.join(t,a)),i();function i(){let a=s.pop();if(!a)return n();uk.remove(a,c=>{if(c)return n(c);i()})}})});function fk(e){let t;try{t=ck.readdirSync(e)}catch{return dk.mkdirsSync(e)}t.forEach(n=>{n=lk.join(e,n),uk.removeSync(n)})}pk.exports={emptyDirSync:fk,emptydirSync:fk,emptyDir:mk,emptydir:mk}});var wk=p((cye,_k)=>{"use strict";var Kne=Ct().fromCallback,yk=require("path"),pr=at(),gk=Xt();function Vne(e,t){function n(){pr.writeFile(e,"",r=>{if(r)return t(r);t()})}pr.stat(e,(r,s)=>{if(!r&&s.isFile())return t();let i=yk.dirname(e);pr.stat(i,(a,c)=>{if(a)return a.code==="ENOENT"?gk.mkdirs(i,l=>{if(l)return t(l);n()}):t(a);c.isDirectory()?n():pr.readdir(i,l=>{if(l)return t(l)})})})}function Wne(e){let t;try{t=pr.statSync(e)}catch{}if(t&&t.isFile())return;let n=yk.dirname(e);try{pr.statSync(n).isDirectory()||pr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")gk.mkdirsSync(n);else throw r}pr.writeFileSync(e,"")}_k.exports={createFile:Kne(Vne),createFileSync:Wne}});var Ak=p((lye,Ek)=>{"use strict";var Hne=Ct().fromCallback,bk=require("path"),Hr=at(),Sk=Xt(),vk=fr().pathExists;function Yne(e,t,n){function r(s,i){Hr.link(s,i,a=>{if(a)return n(a);n(null)})}vk(t,(s,i)=>{if(s)return n(s);if(i)return n(null);Hr.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),n(a);let c=bk.dirname(t);vk(c,(l,m)=>{if(l)return n(l);if(m)return r(e,t);Sk.mkdirs(c,f=>{if(f)return n(f);r(e,t)})})})})}function Jne(e,t){if(Hr.existsSync(t))return;try{Hr.lstatSync(e)}catch(i){throw i.message=i.message.replace("lstat","ensureLink"),i}let r=bk.dirname(t);return Hr.existsSync(r)||Sk.mkdirsSync(r),Hr.linkSync(e,t)}Ek.exports={createLink:Hne(Yne),createLinkSync:Jne}});var Tk=p((dye,Ck)=>{"use strict";var hr=require("path"),ea=at(),Qne=fr().pathExists;function Xne(e,t,n){if(hr.isAbsolute(e))return ea.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=hr.dirname(t),s=hr.join(r,e);return Qne(s,(i,a)=>i?n(i):a?n(null,{toCwd:s,toDst:e}):ea.lstat(e,c=>c?(c.message=c.message.replace("lstat","ensureSymlink"),n(c)):n(null,{toCwd:e,toDst:hr.relative(r,e)})))}}function Zne(e,t){let n;if(hr.isAbsolute(e)){if(n=ea.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=hr.dirname(t),s=hr.join(r,e);if(n=ea.existsSync(s),n)return{toCwd:s,toDst:e};if(n=ea.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:hr.relative(r,e)}}}Ck.exports={symlinkPaths:Xne,symlinkPathsSync:Zne}});var Rk=p((uye,Ik)=>{"use strict";var xk=at();function ere(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);xk.lstat(e,(r,s)=>{if(r)return n(null,"file");t=s&&s.isDirectory()?"dir":"file",n(null,t)})}function tre(e,t){let n;if(t)return t;try{n=xk.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}Ik.exports={symlinkType:ere,symlinkTypeSync:tre}});var Mk=p((mye,qk)=>{"use strict";var nre=Ct().fromCallback,kk=require("path"),$s=at(),Dk=Xt(),rre=Dk.mkdirs,sre=Dk.mkdirsSync,Lk=Tk(),ire=Lk.symlinkPaths,are=Lk.symlinkPathsSync,Pk=Rk(),ore=Pk.symlinkType,cre=Pk.symlinkTypeSync,Nk=fr().pathExists;function lre(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,Nk(t,(s,i)=>{if(s)return r(s);if(i)return r(null);ire(e,t,(a,c)=>{if(a)return r(a);e=c.toDst,ore(c.toCwd,n,(l,m)=>{if(l)return r(l);let f=kk.dirname(t);Nk(f,(g,h)=>{if(g)return r(g);if(h)return $s.symlink(e,t,m,r);rre(f,_=>{if(_)return r(_);$s.symlink(e,t,m,r)})})})})})}function dre(e,t,n){if($s.existsSync(t))return;let s=are(e,t);e=s.toDst,n=cre(s.toCwd,n);let i=kk.dirname(t);return $s.existsSync(i)||sre(i),$s.symlinkSync(e,t,n)}qk.exports={createSymlink:nre(lre),createSymlinkSync:dre}});var zk=p((fye,Ok)=>{"use strict";var fm=wk(),pm=Ak(),hm=Mk();Ok.exports={createFile:fm.createFile,createFileSync:fm.createFileSync,ensureFile:fm.createFile,ensureFileSync:fm.createFileSync,createLink:pm.createLink,createLinkSync:pm.createLinkSync,ensureLink:pm.createLink,ensureLinkSync:pm.createLinkSync,createSymlink:hm.createSymlink,createSymlinkSync:hm.createSymlinkSync,ensureSymlink:hm.createSymlink,ensureSymlinkSync:hm.createSymlinkSync}});var ym=p((pye,jk)=>{function ure(e,{EOL:t=`
|
|
27
|
+
`,finalEOL:n=!0,replacer:r=null,spaces:s}={}){let i=n?t:"";return JSON.stringify(e,r,s).replace(/\n/g,t)+i}function mre(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}jk.exports={stringify:ure,stripBom:mre}});var Gk=p((hye,Fk)=>{var Ks;try{Ks=at()}catch(e){Ks=require("fs")}var gm=Ct(),{stringify:Uk,stripBom:Bk}=ym();async function fre(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||Ks,r="throws"in t?t.throws:!0,s=await gm.fromCallback(n.readFile)(e,t);s=Bk(s);let i;try{i=JSON.parse(s,t?t.reviver:null)}catch(a){if(r)throw a.message=`${e}: ${a.message}`,a;return null}return i}var pre=gm.fromPromise(fre);function hre(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||Ks,r="throws"in t?t.throws:!0;try{let s=n.readFileSync(e,t);return s=Bk(s),JSON.parse(s,t.reviver)}catch(s){if(r)throw s.message=`${e}: ${s.message}`,s;return null}}async function yre(e,t,n={}){let r=n.fs||Ks,s=Uk(t,n);await gm.fromCallback(r.writeFile)(e,s,n)}var gre=gm.fromPromise(yre);function _re(e,t,n={}){let r=n.fs||Ks,s=Uk(t,n);return r.writeFileSync(e,s,n)}var wre={readFile:pre,readFileSync:hre,writeFile:gre,writeFileSync:_re};Fk.exports=wre});var Kk=p((yye,$k)=>{"use strict";var _m=Gk();$k.exports={readJson:_m.readFile,readJsonSync:_m.readFileSync,writeJson:_m.writeFile,writeJsonSync:_m.writeFileSync}});var wm=p((gye,Hk)=>{"use strict";var bre=Ct().fromCallback,ta=at(),Vk=require("path"),Wk=Xt(),Sre=fr().pathExists;function vre(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let s=Vk.dirname(e);Sre(s,(i,a)=>{if(i)return r(i);if(a)return ta.writeFile(e,t,n,r);Wk.mkdirs(s,c=>{if(c)return r(c);ta.writeFile(e,t,n,r)})})}function Ere(e,...t){let n=Vk.dirname(e);if(ta.existsSync(n))return ta.writeFileSync(e,...t);Wk.mkdirsSync(n),ta.writeFileSync(e,...t)}Hk.exports={outputFile:bre(vre),outputFileSync:Ere}});var Jk=p((_ye,Yk)=>{"use strict";var{stringify:Are}=ym(),{outputFile:Cre}=wm();async function Tre(e,t,n={}){let r=Are(t,n);await Cre(e,r,n)}Yk.exports=Tre});var Xk=p((wye,Qk)=>{"use strict";var{stringify:xre}=ym(),{outputFileSync:Ire}=wm();function Rre(e,t,n){let r=xre(t,n);Ire(e,r,n)}Qk.exports=Rre});var eD=p((bye,Zk)=>{"use strict";var kre=Ct().fromPromise,ht=Kk();ht.outputJson=kre(Jk());ht.outputJsonSync=Xk();ht.outputJSON=ht.outputJson;ht.outputJSONSync=ht.outputJsonSync;ht.writeJSON=ht.writeJson;ht.writeJSONSync=ht.writeJsonSync;ht.readJSON=ht.readJson;ht.readJSONSync=ht.readJsonSync;Zk.exports=ht});var aD=p((Sye,iD)=>{"use strict";var tD=at(),Dre=require("path"),Lre=Yy().copySync,nD=Zi().removeSync,Pre=Xt().mkdirpSync,rD=Wi();function Nre(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:s}=rD.checkPathsSync(e,t,"move");return rD.checkParentPathsSync(e,s,t,"move"),Pre(Dre.dirname(t)),qre(e,t,r)}function qre(e,t,n){if(n)return nD(t),sD(e,t,n);if(tD.existsSync(t))throw new Error("dest already exists.");return sD(e,t,n)}function sD(e,t,n){try{tD.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return Mre(e,t,n)}}function Mre(e,t,n){return Lre(e,t,{overwrite:n,errorOnExist:!0}),nD(e)}iD.exports=Nre});var cD=p((vye,oD)=>{"use strict";oD.exports={moveSync:aD()}});var fD=p((Eye,mD)=>{"use strict";var Ore=at(),zre=require("path"),jre=Qy().copy,lD=Zi().remove,Ure=Xt().mkdirp,Bre=fr().pathExists,dD=Wi();function Fre(e,t,n,r){typeof n=="function"&&(r=n,n={});let s=n.overwrite||n.clobber||!1;dD.checkPaths(e,t,"move",(i,a)=>{if(i)return r(i);let{srcStat:c}=a;dD.checkParentPaths(e,c,t,"move",l=>{if(l)return r(l);Ure(zre.dirname(t),m=>m?r(m):Gre(e,t,s,r))})})}function Gre(e,t,n,r){if(n)return lD(t,s=>s?r(s):uD(e,t,n,r));Bre(t,(s,i)=>s?r(s):i?r(new Error("dest already exists.")):uD(e,t,n,r))}function uD(e,t,n,r){Ore.rename(e,t,s=>s?s.code!=="EXDEV"?r(s):$re(e,t,n,r):r())}function $re(e,t,n,r){jre(e,t,{overwrite:n,errorOnExist:!0},i=>i?r(i):lD(e,r))}mD.exports=Fre});var hD=p((Aye,pD)=>{"use strict";var Kre=Ct().fromCallback;pD.exports={move:Kre(fD())}});var eg=p((Cye,Zy)=>{"use strict";Zy.exports=o(o(o(o(o(o(o(o(o(o(o(o({},Vi()),Yy()),Qy()),hk()),zk()),eD()),Xt()),cD()),hD()),wm()),fr()),Zi());var yD=require("fs");Object.getOwnPropertyDescriptor(yD,"promises")&&Object.defineProperty(Zy.exports,"promises",{get(){return yD.promises}})});var bD=p((Tye,wD)=>{wD.exports=na;na.default=na;na.stable=gD;na.stableStringify=gD;var Fn=[],yr=[];function na(e,t,n){tg(e,"",[],void 0);var r;try{yr.length===0?r=JSON.stringify(e,t,n):r=JSON.stringify(e,_D(t),n)}catch(i){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Fn.length!==0;){var s=Fn.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return r}function tg(e,t,n,r){var s;if(typeof e=="object"&&e!==null){for(s=0;s<n.length;s++)if(n[s]===e){var i=Object.getOwnPropertyDescriptor(r,t);i.get!==void 0?i.configurable?(Object.defineProperty(r,t,{value:"[Circular]"}),Fn.push([r,t,e,i])):yr.push([e,t]):(r[t]="[Circular]",Fn.push([r,t,e]));return}if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)tg(e[s],s,n,e);else{var a=Object.keys(e);for(s=0;s<a.length;s++){var c=a[s];tg(e[c],c,n,e)}}n.pop()}}function Vre(e,t){return e<t?-1:e>t?1:0}function gD(e,t,n){var r=ng(e,"",[],void 0)||e,s;try{yr.length===0?s=JSON.stringify(r,t,n):s=JSON.stringify(r,_D(t),n)}catch(a){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Fn.length!==0;){var i=Fn.pop();i.length===4?Object.defineProperty(i[0],i[1],i[3]):i[0][i[1]]=i[2]}}return s}function ng(e,t,n,r){var s;if(typeof e=="object"&&e!==null){for(s=0;s<n.length;s++)if(n[s]===e){var i=Object.getOwnPropertyDescriptor(r,t);i.get!==void 0?i.configurable?(Object.defineProperty(r,t,{value:"[Circular]"}),Fn.push([r,t,e,i])):yr.push([e,t]):(r[t]="[Circular]",Fn.push([r,t,e]));return}try{if(typeof e.toJSON=="function")return}catch(m){return}if(n.push(e),Array.isArray(e))for(s=0;s<e.length;s++)ng(e[s],s,n,e);else{var a={},c=Object.keys(e).sort(Vre);for(s=0;s<c.length;s++){var l=c[s];ng(e[l],l,n,e),a[l]=e[l]}if(r!==void 0)Fn.push([r,t,e]),r[t]=a;else return a}n.pop()}}function _D(e){return e=e!==void 0?e:function(t,n){return n},function(t,n){if(yr.length>0)for(var r=0;r<yr.length;r++){var s=yr[r];if(s[1]===t&&s[0]===n){n="[Circular]",yr.splice(r,1);break}}return e.call(this,t,n)}}});var vD=p((xye,SD)=>{"use strict";var Wre=bD(),bm=class{constructor({level:t,msg:n,meta:r,tags:s},i){this.level=t,this.meta=r,this.tags=["log",t].concat(i.tags,s);let a={};if(bm.isError(n)&&(this._error=n,a.stack=n.stack,n=n.message),this.msg=n,r&&(typeof r!="object"||Array.isArray(r))&&(r={meta:r}),this.meta=Object.assign({},r||{},i.meta,a),i.dynamicMeta&&typeof i.dynamicMeta=="function"){let c=i.dynamicMeta(this,i);typeof c=="object"&&(this.meta=Object.assign(this.meta,c))}this._replacer=typeof i.replacer=="function"?i.replacer:null}get value(){return Object.assign({_logLevel:this.level,msg:this.msg},this.meta,{_tags:this.tags})}get log(){return this.value}get throw(){let t=this._error||new Error(this.msg);throw t.log=this,t}toJSON(t){return Wre(this.value,this._replacer,t?4:0)}static isError(t){return!!t&&typeof t=="object"&&(t instanceof Error||t.hasOwnProperty("message")&&t.hasOwnProperty("stack"))}};SD.exports=bm});var AD=p((Iye,ED)=>{"use strict";var Hre=require("events"),Yre=vD(),Sm=class extends Hre{constructor(t={},n={}){super();this.LambdaLog=Sm,this.LogMessage=Yre,this.options=Object.assign({meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:![void 0,null,"0","no","false"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console},t),this._logLevels=Object.assign({info:"info",warn:"warn",error:"error",debug:function(){return this.options.debug?"debug":!1}},n||{}),this._levels=Object.keys(this._logLevels),this.console=this.options.logHandler,this._levels.forEach(r=>{this[r]=(s,i={},a=[])=>this.log(r,s,i,a)})}log(t,n,r={},s=[]){if(this._levels.indexOf(t)===-1)throw new Error(`"${t}" is not a valid log level`);let i=new this.LogMessage({level:t,msg:n,meta:r,tags:s},this.options),a=this._logLevels[t];return typeof a=="function"&&(a=a.call(this,i)),a?(this.options.silent||this.console[a](i.toJSON(this.options.dev)),this.emit("log",i),i):!1}assert(t,n,r={},s=[]){return t?!1:this.log("error",n,r,s)}result(t,n={},r=[]){if(!t||typeof t.then!="function")throw new Error("A promise must be provided as the first argument");return new Promise(i=>{t.then(a=>i(this.log("info",a,n,r))).catch(a=>i(this.log("error",a,n,r)))})}};ED.exports=Sm});var TD=p((Rye,CD)=>{"use strict";var Jre=AD(),Qre=new Jre;CD.exports=Qre});var Vs=p((ra,rg)=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.default=Xre;function vm(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?vm=function(n){return typeof n}:vm=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},vm(e)}function Xre(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=vm(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}rg.exports=ra.default;rg.exports.default=ra.default});var Em=p((sa,sg)=>{"use strict";Object.defineProperty(sa,"__esModule",{value:!0});sa.default=Zre;function Zre(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)typeof e[n]=="undefined"&&(e[n]=t[n]);return e}sg.exports=sa.default;sg.exports.default=sa.default});var xD=p((ia,ig)=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.default=nse;var ese=tse(Vs());function tse(e){return e&&e.__esModule?e:{default:e}}function Am(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Am=function(n){return typeof n}:Am=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Am(e)}function nse(e,t){(0,ese.default)(e);var n,r;Am(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var s=encodeURI(e).split(/%..|./).length-1;return s>=n&&(typeof r=="undefined"||s<=r)}ig.exports=ia.default;ig.exports.default=ia.default});var og=p((aa,ag)=>{"use strict";Object.defineProperty(aa,"__esModule",{value:!0});aa.default=ase;var rse=ID(Vs()),sse=ID(Em());function ID(e){return e&&e.__esModule?e:{default:e}}var ise={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function ase(e,t){(0,rse.default)(e),t=(0,sse.default)(t,ise),t.allow_trailing_dot&&e[e.length-1]==="."&&(e=e.substring(0,e.length-1)),t.allow_wildcard===!0&&e.indexOf("*.")===0&&(e=e.substring(2));var n=e.split("."),r=n[n.length-1];return t.require_tld&&(n.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(r)||/\s/.test(r))||!t.allow_numeric_tld&&/^\d+$/.test(r)?!1:n.every(function(s){return!(s.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(s)||/[\uff01-\uff5e]/.test(s)||/^-|-$/.test(s)||!t.allow_underscores&&/_/.test(s))})}ag.exports=aa.default;ag.exports.default=aa.default});var Cm=p((oa,lg)=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.default=cg;var ose=cse(Vs());function cse(e){return e&&e.__esModule?e:{default:e}}var RD="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",gr="(".concat(RD,"[.]){3}").concat(RD),lse=new RegExp("^".concat(gr,"$")),Ue="(?:[0-9a-fA-F]{1,4})",dse=new RegExp("^("+"(?:".concat(Ue,":){7}(?:").concat(Ue,"|:)|")+"(?:".concat(Ue,":){6}(?:").concat(gr,"|:").concat(Ue,"|:)|")+"(?:".concat(Ue,":){5}(?::").concat(gr,"|(:").concat(Ue,"){1,2}|:)|")+"(?:".concat(Ue,":){4}(?:(:").concat(Ue,"){0,1}:").concat(gr,"|(:").concat(Ue,"){1,3}|:)|")+"(?:".concat(Ue,":){3}(?:(:").concat(Ue,"){0,2}:").concat(gr,"|(:").concat(Ue,"){1,4}|:)|")+"(?:".concat(Ue,":){2}(?:(:").concat(Ue,"){0,3}:").concat(gr,"|(:").concat(Ue,"){1,5}|:)|")+"(?:".concat(Ue,":){1}(?:(:").concat(Ue,"){0,4}:").concat(gr,"|(:").concat(Ue,"){1,6}|:)|")+"(?::((?::".concat(Ue,"){0,5}:").concat(gr,"|(?::").concat(Ue,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function cg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,ose.default)(e),t=String(t),!t)return cg(e,4)||cg(e,6);if(t==="4"){if(!lse.test(e))return!1;var n=e.split(".").sort(function(r,s){return r-s});return n[3]<=255}return t==="6"?!!dse.test(e):!1}lg.exports=oa.default;lg.exports.default=oa.default});var DD=p((la,ug)=>{"use strict";Object.defineProperty(la,"__esModule",{value:!0});la.default=Ese;var use=ca(Vs()),mse=ca(Em()),dg=ca(xD()),fse=ca(og()),kD=ca(Cm());function ca(e){return e&&e.__esModule?e:{default:e}}var pse={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},hse=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,yse=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,gse=/^[a-z\d]+$/,_se=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,wse=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,bse=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i,Sse=254;function vse(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var n=/[\.";<>]/.test(t);if(n){if(t===e)return!1;var r=t.split('"').length===t.split('\\"').length;if(!r)return!1}return!0}function Ese(e,t){if((0,use.default)(e),t=(0,mse.default)(t,pse),t.require_display_name||t.allow_display_name){var n=e.match(hse);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!vse(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>Sse)return!1;var s=e.split("@"),i=s.pop(),a=i.toLowerCase();if(t.host_blacklist.includes(a))return!1;var c=s.join("@");if(t.domain_specific_validation&&(a==="gmail.com"||a==="googlemail.com")){c=c.toLowerCase();var l=c.split("+")[0];if(!(0,dg.default)(l.replace(/\./g,""),{min:6,max:30}))return!1;for(var m=l.split("."),f=0;f<m.length;f++)if(!gse.test(m[f]))return!1}if(t.ignore_max_length===!1&&(!(0,dg.default)(c,{max:64})||!(0,dg.default)(i,{max:254})))return!1;if(!(0,fse.default)(i,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,kD.default)(i)){if(!i.startsWith("[")||!i.endsWith("]"))return!1;var g=i.substr(1,i.length-2);if(g.length===0||!(0,kD.default)(g))return!1}}if(c[0]==='"')return c=c.slice(1,c.length-1),t.allow_utf8_local_part?bse.test(c):_se.test(c);for(var h=t.allow_utf8_local_part?wse:yse,_=c.split("."),b=0;b<_.length;b++)if(!h.test(_[b]))return!1;return!(t.blacklisted_chars&&c.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}ug.exports=la.default;ug.exports.default=la.default});var qD=p((da,mg)=>{"use strict";Object.defineProperty(da,"__esModule",{value:!0});da.default=qse;var Ase=Tm(Vs()),Cse=Tm(og()),LD=Tm(Cm()),Tse=Tm(Em());function Tm(e){return e&&e.__esModule?e:{default:e}}function xse(e,t){return Dse(e)||kse(e,t)||Rse(e,t)||Ise()}function Ise(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
28
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Rse(e,t){if(!!e){if(typeof e=="string")return PD(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return PD(e,t)}}function PD(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kse(e,t){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,s=!1,i=void 0;try{for(var a=e[Symbol.iterator](),c;!(r=(c=a.next()).done)&&(n.push(c.value),!(t&&n.length===t));r=!0);}catch(l){s=!0,i=l}finally{try{!r&&a.return!=null&&a.return()}finally{if(s)throw i}}return n}}function Dse(e){if(Array.isArray(e))return e}var Lse={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},Pse=/^\[([^\]]+)\](?::([0-9]+))?$/;function Nse(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function ND(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||Nse(r)&&r.test(e))return!0}return!1}function qse(e,t){if((0,Ase.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,Tse.default)(t,Lse),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,r,s,i,a,c,l,m;if(l=e.split("#"),e=l.shift(),l=e.split("?"),e=l.shift(),l=e.split("://"),l.length>1){if(n=l.shift().toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(n)===-1)return!1}else{if(t.require_protocol)return!1;if(e.substr(0,2)==="//"){if(!t.allow_protocol_relative_urls)return!1;l[0]=e.substr(2)}}if(e=l.join("://"),e==="")return!1;if(l=e.split("/"),e=l.shift(),e===""&&!t.require_host)return!0;if(l=e.split("@"),l.length>1){if(t.disallow_auth||l[0]===""||(r=l.shift(),r.indexOf(":")>=0&&r.split(":").length>2))return!1;var f=r.split(":"),g=xse(f,2),h=g[0],_=g[1];if(h===""&&_==="")return!1}i=l.join("@"),c=null,m=null;var b=i.match(Pse);if(b?(s="",m=b[1],c=b[2]||null):(l=i.split(":"),s=l.shift(),l.length&&(c=l.join(":"))),c!==null&&c.length>0){if(a=parseInt(c,10),!/^[0-9]+$/.test(c)||a<=0||a>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?ND(s,t.host_whitelist):!(!(0,LD.default)(s)&&!(0,Cse.default)(s,t)&&(!m||!(0,LD.default)(m,6))||(s=s||m,t.host_blacklist&&ND(s,t.host_blacklist)))}mg.exports=da.default;mg.exports.default=da.default});var OD=p((kye,MD)=>{"use strict";var Mse=DD(),Ose=qD(),zse=Cm();function fg(e,t){if(!e)throw new Error(t)}var jse={name:"email",coerce:e=>e.toString(),validate:function(e){fg(Mse(e),"must be an email address")}},Use={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){fg(zse(e),"must be an IP address")}},Bse={name:"url",coerce:e=>e.toString(),validate:function(e){fg(Ose(e,{require_tld:!1}),"must be a URL")}};MD.exports={email:jse,ipaddress:Use,url:Bse}});var TL=p(CL=>{"use strict";Object.defineProperty(CL,"__esModule",{value:!0})});var Ig=p(xg=>{"use strict";Object.defineProperty(xg,"__esModule",{value:!0});var xL=class{constructor(){if(!!!(Reflect&&Reflect.getMetadata))throw new Error("reflect-metadata should be installed properly");this._reflect=Reflect}isConstructor(t){return!!t.prototype&&!!t.prototype.constructor.name&&t instanceof Function}isConfigClass(t){let n=this._reflect.hasMetadata("tsconvict:properties",t),r=this._reflect.hasMetadata("tsconvict:schema",t);return n||r}getTsType(t,n){return this._reflect.getMetadata("design:type",t,n)}getConvictMetaForProperty(t,n){return this._reflect.getMetadata("tsconvict:property",t,n)}setConvictMetaForProperty(t,n,r){return this._reflect.defineMetadata("tsconvict:property",t,n,r)}setConvictMetaForClass(t,n){return this._reflect.defineMetadata("tsconvict:schema",t,n)}getConvictMetaForClass(t){return this._reflect.getMetadata("tsconvict:schema",t)||null}setPropertyForClass(t,n){let r=this.getClassProperties(t);return r.length===0&&(this._reflect.defineMetadata("tsconvict:properties",[],t.constructor),r=this.getClassProperties(t)),r.push(n)}getClassProperties(t){return this._reflect.getMetadata("tsconvict:properties",t.constructor)||[]}};xg.default=new xL});var IL=p(br=>{"use strict";var doe=br&&br.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(br,"__esModule",{value:!0});br.Property=br.Config=void 0;var Pm=doe(Ig());function uoe(e={}){return t=>{Pm.default.setConvictMetaForClass(e,t)}}br.Config=uoe;function moe(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format=="undefined"){let r=Pm.default.getTsType(t,n);r&&(e.format=r)}Pm.default.setConvictMetaForProperty(e,t,n),Pm.default.setPropertyForClass(t,n)}}br.Property=moe});var kL=p((Uye,Rg)=>{"use strict";var foe=e=>{let t=!1,n=!1,r=!1;for(let s=0;s<e.length;s++){let i=e[s];t&&/[a-zA-Z]/.test(i)&&i.toUpperCase()===i?(e=e.slice(0,s)+"-"+e.slice(s),t=!1,r=n,n=!0,s++):n&&r&&/[a-zA-Z]/.test(i)&&i.toLowerCase()===i?(e=e.slice(0,s-1)+"-"+e.slice(s-1),r=n,n=!1,t=!0):(t=i.toLowerCase()===i&&i.toUpperCase()!==i,r=n,n=i.toUpperCase()===i&&i.toLowerCase()!==i)}return e},RL=(e,t)=>{if(!(typeof e=="string"||Array.isArray(e)))throw new TypeError("Expected the input to be `string | string[]`");t=Object.assign({pascalCase:!1},t);let n=s=>t.pascalCase?s.charAt(0).toUpperCase()+s.slice(1):s;return Array.isArray(e)?e=e.map(s=>s.trim()).filter(s=>s.length).join("-"):e=e.trim(),e.length===0?"":e.length===1?t.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=foe(e)),e=e.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(s,i)=>i.toUpperCase()).replace(/\d+(\w|$)/g,s=>s.toUpperCase()),n(e))};Rg.exports=RL;Rg.exports.default=RL});var LL=p((Bye,DL)=>{"use strict";DL.exports=function(e,t){if(typeof e!="string")throw new TypeError("Expected a string");return t=typeof t=="undefined"?"_":t,e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}});var NL=p((Fye,PL)=>{PL.exports=function(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,r=null,s=null,i=[];for(let a=0;a<e.length;a++){if(n=r,r=e.charAt(a),r===" "&&!s){n!==" "&&t++;continue}r===s?s=null:(r==="'"||r==='"')&&!s&&(s=r),i[t]||(i[t]=""),i[t]+=r}return i}});var jL=p((Gye,zL)=>{var Nm=kL(),poe=LL(),qm=require("path"),hoe=NL(),yoe=require("util");function qL(e,t){t=Object.assign(Object.create(null),t),e=hoe(e);let n=goe(Object.assign(Object.create(null),t.alias)),r=Object.assign({"boolean-negation":!0,"camel-case-expansion":!0,"combine-arrays":!1,"dot-notation":!0,"duplicate-arguments-array":!0,"flatten-duplicate-arrays":!0,"greedy-arrays":!0,"halt-at-non-option":!1,"nargs-eats-options":!1,"negation-prefix":"no-","parse-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},t.configuration),s=Object.assign(Object.create(null),t.default),i=t.configObjects||[],a=t.envPrefix,c=r["populate--"],l=c?"--":"_",m=Object.create(null),f=Object.create(null),g=t.__||yoe.format,h={aliases:Object.create(null),arrays:Object.create(null),bools:Object.create(null),strings:Object.create(null),numbers:Object.create(null),counts:Object.create(null),normalize:Object.create(null),configs:Object.create(null),nargs:Object.create(null),coercions:Object.create(null),keys:[]},_=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,b=new RegExp("^--"+r["negation-prefix"]+"(.+)");[].concat(t.array).filter(Boolean).forEach(function(S){let T=S.key||S,L=Object.keys(S).map(function(C){return{boolean:"bools",string:"strings",number:"numbers"}[C]}).filter(Boolean).pop();L&&(h[L][T]=!0),h.arrays[T]=!0,h.keys.push(T)}),[].concat(t.boolean).filter(Boolean).forEach(function(S){h.bools[S]=!0,h.keys.push(S)}),[].concat(t.string).filter(Boolean).forEach(function(S){h.strings[S]=!0,h.keys.push(S)}),[].concat(t.number).filter(Boolean).forEach(function(S){h.numbers[S]=!0,h.keys.push(S)}),[].concat(t.count).filter(Boolean).forEach(function(S){h.counts[S]=!0,h.keys.push(S)}),[].concat(t.normalize).filter(Boolean).forEach(function(S){h.normalize[S]=!0,h.keys.push(S)}),Object.keys(t.narg||{}).forEach(function(S){h.nargs[S]=t.narg[S],h.keys.push(S)}),Object.keys(t.coerce||{}).forEach(function(S){h.coercions[S]=t.coerce[S],h.keys.push(S)}),Array.isArray(t.config)||typeof t.config=="string"?[].concat(t.config).filter(Boolean).forEach(function(S){h.configs[S]=!0}):Object.keys(t.config||{}).forEach(function(S){h.configs[S]=t.config[S]}),tt(t.key,n,t.default,h.arrays),Object.keys(s).forEach(function(S){(h.aliases[S]||[]).forEach(function(T){s[T]=s[S]})});let E=null;Sa();let D=[],k=Object.assign(Object.create(null),{_:[]}),R={};for(let S=0;S<e.length;S++){let T=e[S],L,C,x,B,J,Ee;if(T!=="--"&&es(T))k._.push(T);else if(T.match(/^--.+=/)||!r["short-option-groups"]&&T.match(/^-.+=/))B=T.match(/^--?([^=]+)=([\s\S]*)$/),te(B[1],h.arrays)?S=gt(S,B[1],e,B[2]):te(B[1],h.nargs)!==!1?S=K(S,B[1],e,B[2]):fe(B[1],B[2]);else if(T.match(b)&&r["boolean-negation"])C=T.match(b)[1],fe(C,te(C,h.arrays)?[!1]:!1);else if(T.match(/^--.+/)||!r["short-option-groups"]&&T.match(/^-[^-]+/))C=T.match(/^--?(.+)/)[1],te(C,h.arrays)?S=gt(S,C,e):te(C,h.nargs)!==!1?S=K(S,C,e):(J=e[S+1],J!==void 0&&(!J.match(/^-/)||J.match(_))&&!te(C,h.bools)&&!te(C,h.counts)||/^(true|false)$/.test(J)?(fe(C,J),S++):fe(C,Hn(C)));else if(T.match(/^-.\..+=/))B=T.match(/^-([^=]+)=([\s\S]*)$/),fe(B[1],B[2]);else if(T.match(/^-.\..+/)&&!T.match(_))J=e[S+1],C=T.match(/^-(.\..+)/)[1],J!==void 0&&!J.match(/^-/)&&!te(C,h.bools)&&!te(C,h.counts)?(fe(C,J),S++):fe(C,Hn(C));else if(T.match(/^-[^-]+/)&&!T.match(_)){x=T.slice(1,-1).split(""),L=!1;for(let pe=0;pe<x.length;pe++){if(J=T.slice(pe+2),x[pe+1]&&x[pe+1]==="="){Ee=T.slice(pe+3),C=x[pe],te(C,h.arrays)?S=gt(S,C,e,Ee):te(C,h.nargs)!==!1?S=K(S,C,e,Ee):fe(C,Ee),L=!0;break}if(J==="-"){fe(x[pe],J);continue}if(/[A-Za-z]/.test(x[pe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(J)){fe(x[pe],J),L=!0;break}if(x[pe+1]&&x[pe+1].match(/\W/)){fe(x[pe],J),L=!0;break}else fe(x[pe],Hn(x[pe]))}C=T.slice(-1)[0],!L&&C!=="-"&&(te(C,h.arrays)?S=gt(S,C,e):te(C,h.nargs)!==!1?S=K(S,C,e):(J=e[S+1],J!==void 0&&(!/^(-|--)[^-]/.test(J)||J.match(_))&&!te(C,h.bools)&&!te(C,h.counts)||/^(true|false)$/.test(J)?(fe(C,J),S++):fe(C,Hn(C))))}else if(T.match(/^-[0-9]$/)&&T.match(_)&&te(T.slice(1),h.bools))C=T.slice(1),fe(C,Hn(C));else if(T==="--"){D=e.slice(S+1);break}else if(r["halt-at-non-option"]){D=e.slice(S);break}else k._.push(Zt("_",T))}_e(k,!0),_e(k,!1),Y(k),le(),xe(k,h.aliases,s,!0),Te(k),r["set-placeholder-key"]&&Re(k),Object.keys(h.counts).forEach(function(S){ke(k,S.split("."))||fe(S,0)}),c&&D.length&&(k[l]=[]),D.forEach(function(S){k[l].push(S)}),r["camel-case-expansion"]&&r["strip-dashed"]&&Object.keys(k).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete k[S]}),r["strip-aliased"]&&[].concat(...Object.keys(n).map(S=>n[S])).forEach(S=>{r["camel-case-expansion"]&&delete k[S.split(".").map(T=>Nm(T)).join(".")],delete k[S]});function K(S,T,L,C){let x,B=te(T,h.nargs);if(B=isNaN(B)?1:B,B===0)return Fe(C)||(E=Error(g("Argument unexpected for: %s",T))),fe(T,Hn(T)),S;let J=Fe(C)?0:1;if(r["nargs-eats-options"])L.length-(S+1)+J<B&&(E=Error(g("Not enough arguments following: %s",T))),J=B;else{for(x=S+1;x<L.length&&(!L[x].match(/^-[^0-9]/)||L[x].match(_)||es(L[x]));x++)J++;J<B&&(E=Error(g("Not enough arguments following: %s",T)))}let Ee=Math.min(J,B);for(!Fe(C)&&Ee>0&&(fe(T,C),Ee--),x=S+1;x<Ee+S+1;x++)fe(T,L[x]);return S+Ee}function gt(S,T,L,C){let x=[],B=C||L[S+1],J=te(T,h.nargs);if(te(T,h.bools)&&!/^(true|false)$/.test(B))x.push(!0);else if(Fe(B)||Fe(C)&&/^-/.test(B)&&!_.test(B)&&!es(B)){if(s[T]!==void 0){let Ee=s[T];x=Array.isArray(Ee)?Ee:[Ee]}}else{Fe(C)||x.push(Ar(T,C));for(let Ee=S+1;Ee<L.length&&!(!r["greedy-arrays"]&&x.length>0||J&&x.length>=J||(B=L[Ee],/^-/.test(B)&&!_.test(B)&&!es(B)));Ee++)S=Ee,x.push(Ar(T,B))}return(J&&x.length<J||isNaN(J)&&x.length===0)&&(E=Error(g("Not enough arguments following: %s",T))),fe(T,x),S}function fe(S,T){if(/-/.test(S)&&r["camel-case-expansion"]){let x=S.split(".").map(function(B){return Nm(B)}).join(".");Er(S,x)}let L=Ar(S,T),C=S.split(".");Le(k,C,L),h.aliases[S]&&h.aliases[S].forEach(function(x){x=x.split("."),Le(k,x,L)}),C.length>1&&r["dot-notation"]&&(h.aliases[C[0]]||[]).forEach(function(x){x=x.split(".");let B=[].concat(C);B.shift(),x=x.concat(B),(h.aliases[S]||[]).includes(x.join("."))||Le(k,x,L)}),te(S,h.normalize)&&!te(S,h.arrays)&&[S].concat(h.aliases[S]||[]).forEach(function(B){Object.defineProperty(R,B,{enumerable:!0,get(){return T},set(J){T=typeof J=="string"?qm.normalize(J):J}})})}function Er(S,T){h.aliases[S]&&h.aliases[S].length||(h.aliases[S]=[T],m[T]=!0),h.aliases[T]&&h.aliases[T].length||Er(T,S)}function Ar(S,T){typeof T=="string"&&(T[0]==="'"||T[0]==='"')&&T[T.length-1]===T[0]&&(T=T.substring(1,T.length-1)),(te(S,h.bools)||te(S,h.counts))&&typeof T=="string"&&(T=T==="true");let L=Array.isArray(T)?T.map(function(C){return Zt(S,C)}):Zt(S,T);return te(S,h.counts)&&(Fe(L)||typeof L=="boolean")&&(L=kg),te(S,h.normalize)&&te(S,h.arrays)&&(Array.isArray(T)?L=T.map(qm.normalize):L=qm.normalize(T)),L}function Zt(S,T){return!te(S,h.strings)&&!te(S,h.bools)&&!Array.isArray(T)&&(Zm(T)&&r["parse-numbers"]&&Number.isSafeInteger(Math.floor(T))||!Fe(T)&&te(S,h.numbers))&&(T=Number(T)),T}function Y(S){let T=Object.create(null);xe(T,h.aliases,s),Object.keys(h.configs).forEach(function(L){let C=S[L]||T[L];if(C)try{let x=null,B=qm.resolve(process.cwd(),C);if(typeof h.configs[L]=="function"){try{x=h.configs[L](B)}catch(J){x=J}if(x instanceof Error){E=x;return}}else x=require(B);de(x)}catch(x){S[L]&&(E=Error(g("Invalid JSON config file: %s",C)))}})}function de(S,T){Object.keys(S).forEach(function(L){let C=S[L],x=T?T+"."+L:L;typeof C=="object"&&C!==null&&!Array.isArray(C)&&r["dot-notation"]?de(C,x):(!ke(k,x.split("."))||te(x,h.arrays)&&r["combine-arrays"])&&fe(x,C)})}function le(){typeof i!="undefined"&&i.forEach(function(S){de(S)})}function _e(S,T){if(typeof a=="undefined")return;let L=typeof a=="string"?a:"";Object.keys(process.env).forEach(function(C){if(L===""||C.lastIndexOf(L,0)===0){let x=C.split("__").map(function(B,J){return J===0&&(B=B.substring(L.length)),Nm(B)});(T&&h.configs[x.join(".")]||!T)&&!ke(S,x)&&fe(x.join("."),process.env[C])}})}function Te(S){let T,L=new Set;Object.keys(S).forEach(function(C){if(!L.has(C)&&(T=te(C,h.coercions),typeof T=="function"))try{let x=Zt(C,T(S[C]));[].concat(h.aliases[C]||[],C).forEach(B=>{L.add(B),S[B]=x})}catch(x){E=x}})}function Re(S){return h.keys.forEach(T=>{~T.indexOf(".")||typeof S[T]=="undefined"&&(S[T]=void 0)}),S}function xe(S,T,L,C=!1){Object.keys(L).forEach(function(x){ke(S,x.split("."))||(Le(S,x.split("."),L[x]),C&&(f[x]=!0),(T[x]||[]).forEach(function(B){ke(S,B.split("."))||Le(S,B.split("."),L[x])}))})}function ke(S,T){let L=S;r["dot-notation"]||(T=[T.join(".")]),T.slice(0,-1).forEach(function(x){L=L[x]||{}});let C=T[T.length-1];return typeof L!="object"?!1:C in L}function Le(S,T,L){let C=S;r["dot-notation"]||(T=[T.join(".")]),T.slice(0,-1).forEach(function(pe,s_){pe=OL(pe),typeof C=="object"&&C[pe]===void 0&&(C[pe]={}),typeof C[pe]!="object"||Array.isArray(C[pe])?(Array.isArray(C[pe])?C[pe].push({}):C[pe]=[C[pe],{}],C=C[pe][C[pe].length-1]):C=C[pe]});let x=OL(T[T.length-1]),B=te(T.join("."),h.arrays),J=Array.isArray(L),Ee=r["duplicate-arguments-array"];!Ee&&te(x,h.nargs)&&(Ee=!0,(!Fe(C[x])&&h.nargs[x]===1||Array.isArray(C[x])&&C[x].length===h.nargs[x])&&(C[x]=void 0)),L===kg?C[x]=kg(C[x]):Array.isArray(C[x])?Ee&&B&&J?C[x]=r["flatten-duplicate-arrays"]?C[x].concat(L):(Array.isArray(C[x][0])?C[x]:[C[x]]).concat([L]):!Ee&&Boolean(B)===Boolean(J)?C[x]=L:C[x]=C[x].concat([L]):C[x]===void 0&&B?C[x]=J?L:[L]:Ee&&!(C[x]===void 0||te(x,h.counts)||te(x,h.bools))?C[x]=[C[x],L]:C[x]=L}function tt(...S){S.forEach(function(T){Object.keys(T||{}).forEach(function(L){h.aliases[L]||(h.aliases[L]=[].concat(n[L]||[]),h.aliases[L].concat(L).forEach(function(C){if(/-/.test(C)&&r["camel-case-expansion"]){let x=Nm(C);x!==L&&h.aliases[L].indexOf(x)===-1&&(h.aliases[L].push(x),m[x]=!0)}}),h.aliases[L].concat(L).forEach(function(C){if(C.length>1&&/[A-Z]/.test(C)&&r["camel-case-expansion"]){let x=poe(C,"-");x!==L&&h.aliases[L].indexOf(x)===-1&&(h.aliases[L].push(x),m[x]=!0)}}),h.aliases[L].forEach(function(C){h.aliases[C]=[L].concat(h.aliases[L].filter(function(x){return C!==x}))}))})})}function te(S,T){let L=[].concat(h.aliases[S]||[],S),C=Object.keys(T),x=L.find(B=>C.includes(B));return x?T[x]:!1}function ai(S){return[].concat(Object.keys(h).map(L=>h[L])).some(function(L){return Array.isArray(L)?L.includes(S):L[S]})}function De(S,...T){return[].concat(...T).some(function(C){let x=S.match(C);return x&&ai(x[1])})}function Wn(S){if(S.match(_)||!S.match(/^-[^-]+/))return!1;let T=!0,L,C=S.slice(1).split("");for(let x=0;x<C.length;x++){if(L=S.slice(x+2),!ai(C[x])){T=!1;break}if(C[x+1]&&C[x+1]==="="||L==="-"||/[A-Za-z]/.test(C[x])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(L)||C[x+1]&&C[x+1].match(/\W/))break}return T}function es(S){return r["unknown-options-as-args"]&&Pe(S)}function Pe(S){return S.match(_)||Wn(S)?!1:!De(S,/^-+([^=]+?)=[\s\S]*$/,b,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function Hn(S){return!te(S,h.bools)&&!te(S,h.counts)&&`${S}`in s?s[S]:Qm(Xm(S))}function Qm(S){return{boolean:!0,string:"",number:void 0,array:[]}[S]}function Xm(S){let T="boolean";return te(S,h.strings)?T="string":te(S,h.numbers)?T="number":te(S,h.bools)?T="boolean":te(S,h.arrays)&&(T="array"),T}function Zm(S){return S==null?!1:typeof S=="number"||/^0x[0-9a-f]+$/i.test(S)?!0:S.length>1&&S[0]==="0"?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(S)}function Fe(S){return S===void 0}function Sa(){Object.keys(h.counts).find(S=>{if(te(S,h.arrays))return E=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0;if(te(S,h.nargs))return E=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0})}return{argv:Object.assign(R,k),error:E,aliases:Object.assign({},h.aliases),newAliases:Object.assign({},m),defaulted:Object.assign({},f),configuration:r}}function goe(e){let t=[],n=Object.create(null),r=!0;for(Object.keys(e).forEach(function(s){t.push([].concat(e[s],s))});r;){r=!1;for(let s=0;s<t.length;s++)for(let i=s+1;i<t.length;i++)if(t[s].filter(function(c){return t[i].indexOf(c)!==-1}).length){t[s]=t[s].concat(t[i]),t.splice(i,1),r=!0;break}}return t.forEach(function(s){s=s.filter(function(i,a,c){return c.indexOf(i)===a}),n[s.pop()]=s}),n}function kg(e){return e!==void 0?e+1:1}function ML(e,t){return qL(e.slice(),t).argv}ML.detailed=function(e,t){return qL(e.slice(),t)};function OL(e){return e==="__proto__"?"___proto___":e}zL.exports=ML});var xP=p((_a,ti)=>{var _oe=200,UL="__lodash_hash_undefined__",BL=9007199254740991,Dg="[object Arguments]",woe="[object Array]",FL="[object Boolean]",GL="[object Date]",boe="[object Error]",Lg="[object Function]",$L="[object GeneratorFunction]",Mm="[object Map]",KL="[object Number]",Pg="[object Object]",VL="[object Promise]",WL="[object RegExp]",Om="[object Set]",HL="[object String]",YL="[object Symbol]",Ng="[object WeakMap]",JL="[object ArrayBuffer]",zm="[object DataView]",QL="[object Float32Array]",XL="[object Float64Array]",ZL="[object Int8Array]",eP="[object Int16Array]",tP="[object Int32Array]",nP="[object Uint8Array]",rP="[object Uint8ClampedArray]",sP="[object Uint16Array]",iP="[object Uint32Array]",Soe=/[\\^$.*+?()[\]{}|]/g,voe=/\w*$/,Eoe=/^\[object .+?Constructor\]$/,Aoe=/^(?:0|[1-9]\d*)$/,Ae={};Ae[Dg]=Ae[woe]=Ae[JL]=Ae[zm]=Ae[FL]=Ae[GL]=Ae[QL]=Ae[XL]=Ae[ZL]=Ae[eP]=Ae[tP]=Ae[Mm]=Ae[KL]=Ae[Pg]=Ae[WL]=Ae[Om]=Ae[HL]=Ae[YL]=Ae[nP]=Ae[rP]=Ae[sP]=Ae[iP]=!0;Ae[boe]=Ae[Lg]=Ae[Ng]=!1;var Coe=typeof global=="object"&&global&&global.Object===Object&&global,Toe=typeof self=="object"&&self&&self.Object===Object&&self,$n=Coe||Toe||Function("return this")(),aP=typeof _a=="object"&&_a&&!_a.nodeType&&_a,oP=aP&&typeof ti=="object"&&ti&&!ti.nodeType&&ti,xoe=oP&&oP.exports===aP;function Ioe(e,t){return e.set(t[0],t[1]),e}function Roe(e,t){return e.add(t),e}function koe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function Doe(e,t){for(var n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}function cP(e,t,n,r){var s=-1,i=e?e.length:0;for(r&&i&&(n=e[++s]);++s<i;)n=t(n,e[s],s,e);return n}function Loe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Poe(e,t){return e==null?void 0:e[t]}function lP(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch(n){}return t}function dP(e){var t=-1,n=Array(e.size);return e.forEach(function(r,s){n[++t]=[s,r]}),n}function qg(e,t){return function(n){return e(t(n))}}function uP(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Noe=Array.prototype,qoe=Function.prototype,jm=Object.prototype,Mg=$n["__core-js_shared__"],mP=function(){var e=/[^.]+$/.exec(Mg&&Mg.keys&&Mg.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),fP=qoe.toString,Sr=jm.hasOwnProperty,Um=jm.toString,Moe=RegExp("^"+fP.call(Sr).replace(Soe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pP=xoe?$n.Buffer:void 0,hP=$n.Symbol,yP=$n.Uint8Array,Ooe=qg(Object.getPrototypeOf,Object),zoe=Object.create,joe=jm.propertyIsEnumerable,Uoe=Noe.splice,gP=Object.getOwnPropertySymbols,Boe=pP?pP.isBuffer:void 0,Foe=qg(Object.keys,Object),Og=ei($n,"DataView"),ya=ei($n,"Map"),zg=ei($n,"Promise"),jg=ei($n,"Set"),Ug=ei($n,"WeakMap"),ga=ei(Object,"create"),Goe=Xr(Og),$oe=Xr(ya),Koe=Xr(zg),Voe=Xr(jg),Woe=Xr(Ug),_P=hP?hP.prototype:void 0,wP=_P?_P.valueOf:void 0;function Jr(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Hoe(){this.__data__=ga?ga(null):{}}function Yoe(e){return this.has(e)&&delete this.__data__[e]}function Joe(e){var t=this.__data__;if(ga){var n=t[e];return n===UL?void 0:n}return Sr.call(t,e)?t[e]:void 0}function Qoe(e){var t=this.__data__;return ga?t[e]!==void 0:Sr.call(t,e)}function Xoe(e,t){var n=this.__data__;return n[e]=ga&&t===void 0?UL:t,this}Jr.prototype.clear=Hoe;Jr.prototype.delete=Yoe;Jr.prototype.get=Joe;Jr.prototype.has=Qoe;Jr.prototype.set=Xoe;function Kn(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zoe(){this.__data__=[]}function ece(e){var t=this.__data__,n=Bm(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Uoe.call(t,n,1),!0}function tce(e){var t=this.__data__,n=Bm(t,e);return n<0?void 0:t[n][1]}function nce(e){return Bm(this.__data__,e)>-1}function rce(e,t){var n=this.__data__,r=Bm(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}Kn.prototype.clear=Zoe;Kn.prototype.delete=ece;Kn.prototype.get=tce;Kn.prototype.has=nce;Kn.prototype.set=rce;function Xs(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function sce(){this.__data__={hash:new Jr,map:new(ya||Kn),string:new Jr}}function ice(e){return Fm(this,e).delete(e)}function ace(e){return Fm(this,e).get(e)}function oce(e){return Fm(this,e).has(e)}function cce(e,t){return Fm(this,e).set(e,t),this}Xs.prototype.clear=sce;Xs.prototype.delete=ice;Xs.prototype.get=ace;Xs.prototype.has=oce;Xs.prototype.set=cce;function Zs(e){this.__data__=new Kn(e)}function lce(){this.__data__=new Kn}function dce(e){return this.__data__.delete(e)}function uce(e){return this.__data__.get(e)}function mce(e){return this.__data__.has(e)}function fce(e,t){var n=this.__data__;if(n instanceof Kn){var r=n.__data__;if(!ya||r.length<_oe-1)return r.push([e,t]),this;n=this.__data__=new Xs(r)}return n.set(e,t),this}Zs.prototype.clear=lce;Zs.prototype.delete=dce;Zs.prototype.get=uce;Zs.prototype.has=mce;Zs.prototype.set=fce;function pce(e,t){var n=Gg(e)||zce(e)?Loe(e.length,String):[],r=n.length,s=!!r;for(var i in e)(t||Sr.call(e,i))&&!(s&&(i=="length"||Nce(i,r)))&&n.push(i);return n}function bP(e,t,n){var r=e[t];(!(Sr.call(e,t)&&AP(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Bm(e,t){for(var n=e.length;n--;)if(AP(e[n][0],t))return n;return-1}function hce(e,t){return e&&SP(t,$g(t),e)}function Bg(e,t,n,r,s,i,a){var c;if(r&&(c=i?r(e,s,i,a):r(e)),c!==void 0)return c;if(!Gm(e))return e;var l=Gg(e);if(l){if(c=Dce(e),!t)return Ice(e,c)}else{var m=Qr(e),f=m==Lg||m==$L;if(Uce(e))return Sce(e,t);if(m==Pg||m==Dg||f&&!i){if(lP(e))return i?e:{};if(c=Lce(f?{}:e),!t)return Rce(e,hce(c,e))}else{if(!Ae[m])return i?e:{};c=Pce(e,m,Bg,t)}}a||(a=new Zs);var g=a.get(e);if(g)return g;if(a.set(e,c),!l)var h=n?kce(e):$g(e);return koe(h||e,function(_,b){h&&(b=_,_=e[b]),bP(c,b,Bg(_,t,n,r,b,e,a))}),c}function yce(e){return Gm(e)?zoe(e):{}}function gce(e,t,n){var r=t(e);return Gg(e)?r:Doe(r,n(e))}function _ce(e){return Um.call(e)}function wce(e){if(!Gm(e)||Mce(e))return!1;var t=TP(e)||lP(e)?Moe:Eoe;return t.test(Xr(e))}function bce(e){if(!EP(e))return Foe(e);var t=[];for(var n in Object(e))Sr.call(e,n)&&n!="constructor"&&t.push(n);return t}function Sce(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function Fg(e){var t=new e.constructor(e.byteLength);return new yP(t).set(new yP(e)),t}function vce(e,t){var n=t?Fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Ece(e,t,n){var r=t?n(dP(e),!0):dP(e);return cP(r,Ioe,new e.constructor)}function Ace(e){var t=new e.constructor(e.source,voe.exec(e));return t.lastIndex=e.lastIndex,t}function Cce(e,t,n){var r=t?n(uP(e),!0):uP(e);return cP(r,Roe,new e.constructor)}function Tce(e){return wP?Object(wP.call(e)):{}}function xce(e,t){var n=t?Fg(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ice(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function SP(e,t,n,r){n||(n={});for(var s=-1,i=t.length;++s<i;){var a=t[s],c=r?r(n[a],e[a],a,n,e):void 0;bP(n,a,c===void 0?e[a]:c)}return n}function Rce(e,t){return SP(e,vP(e),t)}function kce(e){return gce(e,$g,vP)}function Fm(e,t){var n=e.__data__;return qce(t)?n[typeof t=="string"?"string":"hash"]:n.map}function ei(e,t){var n=Poe(e,t);return wce(n)?n:void 0}var vP=gP?qg(gP,Object):Gce,Qr=_ce;(Og&&Qr(new Og(new ArrayBuffer(1)))!=zm||ya&&Qr(new ya)!=Mm||zg&&Qr(zg.resolve())!=VL||jg&&Qr(new jg)!=Om||Ug&&Qr(new Ug)!=Ng)&&(Qr=function(e){var t=Um.call(e),n=t==Pg?e.constructor:void 0,r=n?Xr(n):void 0;if(r)switch(r){case Goe:return zm;case $oe:return Mm;case Koe:return VL;case Voe:return Om;case Woe:return Ng}return t});function Dce(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&Sr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Lce(e){return typeof e.constructor=="function"&&!EP(e)?yce(Ooe(e)):{}}function Pce(e,t,n,r){var s=e.constructor;switch(t){case JL:return Fg(e);case FL:case GL:return new s(+e);case zm:return vce(e,r);case QL:case XL:case ZL:case eP:case tP:case nP:case rP:case sP:case iP:return xce(e,r);case Mm:return Ece(e,r,n);case KL:case HL:return new s(e);case WL:return Ace(e);case Om:return Cce(e,r,n);case YL:return Tce(e)}}function Nce(e,t){return t=t==null?BL:t,!!t&&(typeof e=="number"||Aoe.test(e))&&e>-1&&e%1==0&&e<t}function qce(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Mce(e){return!!mP&&mP in e}function EP(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||jm;return e===n}function Xr(e){if(e!=null){try{return fP.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Oce(e){return Bg(e,!0,!0)}function AP(e,t){return e===t||e!==e&&t!==t}function zce(e){return jce(e)&&Sr.call(e,"callee")&&(!joe.call(e,"callee")||Um.call(e)==Dg)}var Gg=Array.isArray;function CP(e){return e!=null&&Bce(e.length)&&!TP(e)}function jce(e){return Fce(e)&&CP(e)}var Uce=Boe||$ce;function TP(e){var t=Gm(e)?Um.call(e):"";return t==Lg||t==$L}function Bce(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=BL}function Gm(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Fce(e){return!!e&&typeof e=="object"}function $g(e){return CP(e)?pce(e):bce(e)}function Gce(){return[]}function $ce(){return!1}ti.exports=Oce});var OP=p(($ye,MP)=>{"use strict";var Kce=require("fs"),Vce=jL(),ni=xP();function vr(e,t){if(!e)throw new Error(t)}function IP(e){return Number.isInteger(e)&&e>=0&&e<=65535}function Kg(e){return String(e).includes("\\\\.\\pipe\\")}var wa={"*":function(){},int:function(e){vr(Number.isInteger(e),"must be an integer")},nat:function(e){vr(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){vr(IP(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){vr(Kg(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){Kg(e)||vr(IP(e),"must be a windows named pipe or a number within range 0 - 65535")}};wa.integer=wa.int;var Vg=new Map,Wg={"*":JSON.parse},Wce="strict",RP="warn";function kP(e,t){let n=Object.keys(e),r,s=[];for(;n.length;){r=n.shift();let a=ri(e,r);if(typeof a=="object"&&!Array.isArray(a)&&a!=null){if(t)if("_cvtProperties"in a)a=a._cvtProperties,r=r+"._cvtProperties";else{s.push([r,a]);continue}let c=Object.keys(a);if(c.length>0){c.forEach(function(l){n.push(r+"."+l)});continue}}s.push([r,a])}let i={};return s.forEach(function(a){let c=a[0];t&&(c=c.replace(/\._cvtProperties/g,""));let l=a[1];i[c]=l}),i}function Hce(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},s=kP(e),i=kP(t._cvtProperties,!0);return Object.keys(i).forEach(function(a){let c=i[a],l=s[a];if(!(a in s))try{if(typeof c.default=="object"&&!Array.isArray(c.default))l=ri(e,a);else throw new Error("missing")}catch(m){let f=new Error("configuration param '"+a+"' missing from config, did you override its parent?");r.missing.push(f);return}if(delete s[a],(c.format==="object"||typeof c.default=="object")&&Object.keys(s).filter(function(m){return m.lastIndexOf(a+".",0)===0}).forEach(function(m){delete s[m]}),!(typeof c.default=="undefined"&&l===c.default))try{c._format(l)}catch(m){r.invalid_type.push(m)}}),n&&Object.keys(s).forEach(function(a){let c=new Error("configuration param '"+a+"' not declared in the schema");r.undeclared.push(c)}),r}function Yce(e,t){vr(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var Hg={Object,Array,String,Number,Boolean,RegExp},DP=Object.keys(Hg),Jce=DP.map(function(e){return Hg[e]});function LP(e,t,n,r,s,i,a){if(e==="_cvtProperties")throw new Error("'"+r+"': '_cvtProperties' is reserved word of convict.");if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0&&!("default"in t)){n[e]={_cvtProperties:{}},Object.keys(t).forEach(function(f){LP(f,t[f],n[e]._cvtProperties,r+"."+f,s,i,a)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let c=ni(t);if(n[e]=c,c.env&&(s[c.env]||(s[c.env]=[]),s[c.env].push(r)),c.arg){if(i[c.arg])throw new Error("'"+r+"' reuses a command-line argument: "+c.arg);i[c.arg]=r}c.sensitive===!0&&a.add(r);let l=c.format,m;if(Jce.indexOf(l)>=0||DP.indexOf(l)>=0){let f=typeof l=="string"?Hg[l]:l;m=function(g){vr(Object.prototype.toString.call(g)==Object.prototype.toString.call(new f),"must be of type "+f.name)},c.format=f.name.toLowerCase()}else if(typeof l=="string"){if(!wa[l])throw new Error("'"+r+"' uses an unknown format type: "+l);m=wa[l]}else if(Array.isArray(l))m=Yce.bind(null,l);else if(typeof l=="function")m=l;else if(l&&typeof l!="function")throw new Error("'"+r+"': `format` must be a function or a known format type.");if(!m&&!l){let f=Object.prototype.toString.call(c.default);m=function(g){vr(Object.prototype.toString.call(g)==f," should be of type "+f.replace(/\[.* |]/g,""))}}c._format=function(f){if(!(this.nullable&&f===null))try{m(f,this)}catch(g){throw g.fullName=r,g.value=f,g}}}function Yg(e){let t=e.getEnv();Object.keys(e._env).forEach(function(n){t[n]!==void 0&&e._env[n].forEach(function(s){e.set(s,t[n])})})}function Jg(e){let t=Vce(e.getArgs(),{configuration:{"dot-notation":!1}});Object.keys(e._argv).forEach(function(n){let r=e._argv[n];t[n]!==void 0&&e.set(r,String(t[n]))})}function PP(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let s=e._cvtProperties[r];if(s._cvtProperties){let i=t[r]||{};PP(s,i,n),t[r]=i}else t[r]=Xg(r,ni(s.default),e,n)})}function NP(e){return typeof e=="object"&&e!==null}function Qg(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!NP(e[r])||!n||n.format==="object"?t[r]=Xg(r,e[r],n):(NP(t[r])||(t[r]={}),Qg(e[r],t[r],n._cvtProperties[r]))})}function Qce(e,t){let n=t.split("."),r=e;for(;n.length>0;){let s=n.shift();if(r&&r._cvtProperties&&r._cvtProperties[s])r=r._cvtProperties[s];else{r=null;break}}return r}function Xce(e,t){let n=Qce(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function Xg(e,t,n,r){let s=Xce(n,e);if(typeof t=="string"){if(Vg.has(s))return Vg.get(s)(t,r,e);switch(s){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=Kg(t)?t:parseInt(t,10);break;case"number":t=parseFloat(t);break;case"boolean":t=String(t).toLowerCase()!=="false";break;case"array":t=t.split(",");break;case"object":t=JSON.parse(t);break;case"regexp":t=new RegExp(t);break;default:}}return t}function qP(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Wg[n]||Wg["*"])(Kce.readFileSync(e,"utf-8"))}function ri(e,t,n){if(t){let r=t.split(".");for(;r.length;){let s=r.shift();if(n&&e[s]==null)e[s]={},e=e[s];else if(s in e)e=e[s];else throw new Error("cannot find configuration param '"+t+"'")}}return e}var ba=function(t,n){let r={getArgs:function(){return n&&n.args||process.argv.slice(2)},getEnv:function(){return n&&n.env||process.env},getProperties:function(){return ni(this._instance)},toString:function(){let s=ni(this._instance);return this._sensitive.forEach(function(i){let a=i.split("."),c=a.pop(),l=a.join("."),m=ri(s,l);m[c]="[Sensitive]"}),JSON.stringify(s,null,2)},getSchema:function(){return JSON.parse(JSON.stringify(this._schema))},getSchemaString:function(){return JSON.stringify(this._schema,null,2)},get:function(s){let i=ri(this._instance,s);return ni(i)},default:function(s){s=s.split(".").join("._cvtProperties.")+".default";let i=ri(this._schema._cvtProperties,s);return ni(i)},reset:function(s){this.set(s,this.default(s))},has:function(s){try{return typeof this.get(s)!="undefined"}catch(i){return!1}},set:function(s,i){i=Xg(s,i,this._schema,this);let a=s.split("."),c=a.pop(),l=a.join(".");if(!(l=="__proto__"||l=="constructor"||l=="prototype")){let m=ri(this._instance,l,!0);m[c]=i}return this},load:function(s){return Qg(s,this._instance,this._schema),Yg(r),Jg(r),this},loadFile:function(s){let i=this;return Array.isArray(s)||(s=[s]),s.forEach(function(a){let c=qP(a);c&&Qg(c,i._instance,i._schema)}),Yg(r),Jg(r),this},validate:function(s){if(s=s||{},s.allowed=s.allowed||RP,s.output&&typeof s.output!="function")throw new Error("options.output is optionnal and must be a function.");let i=s.output||global.console.log,a=Hce(this._instance,this._schema,s.allowed);if(a.invalid_type.length+a.undeclared.length+a.missing.length){let c=this._sensitive,l=function(b){let E="";for(let D=0;D<b.length;D++){E.length&&(E+=`
|
|
29
|
+
`);let k=b[D];k.fullName&&(E+=k.fullName+": "),k.message&&(E+=k.message),k.value&&!c.has(k.fullName)&&(E+=": value was "+JSON.stringify(k.value))}return E},m=l(a.invalid_type),f=l(a.undeclared),g=l(a.missing),h=[m,g];if(s.allowed===RP&&f.length){let b="Warning:";if(process.stdout.isTTY){let E="[33;1m",D="[0m";b=E+b+D}i(b+" "+f)}else s.allowed===Wce&&h.push(f);let _=h.filter(function(b){return b.length}).join(`
|
|
30
|
+
`);if(_.length)throw new Error(_)}return this}};return typeof t=="string"?r._def=qP(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(s){LP(s,r._def[s],r._schema._cvtProperties,s,r._env,r._argv,r._sensitive)}),r._instance={},PP(r._schema,r._instance,r),Yg(r),Jg(r),r};ba.addFormat=function(e,t,n){if(typeof e=="object"&&(t=e.validate,n=e.coerce,e=e.name),typeof t!="function")throw new Error("Validation function for "+e+" must be a function.");if(n&&typeof n!="function")throw new Error("Coerce function for "+e+" must be a function.");wa[e]=t,n&&Vg.set(e,n)};ba.addFormats=function(e){Object.keys(e).forEach(function(t){ba.addFormat(t,e[t].validate,e[t].coerce)})};ba.addParser=function(e){Array.isArray(e)||(e=[e]),e.forEach(function(t){if(!t)throw new Error("Invalid parser");if(!t.extension)throw new Error("Missing parser.extension");if(!t.parse)throw new Error("Missing parser.parse function");if(typeof t.parse!="function")throw new Error("Invalid parser.parse function");(Array.isArray(t.extension)?t.extension:[t.extension]).forEach(function(r){if(typeof r!="string")throw new Error("Invalid parser.extension");Wg[r]=t.parse})})};MP.exports=ba});var jP=p(si=>{"use strict";var $m=si&&si.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(si,"__esModule",{value:!0});si.TSConvict=void 0;var Cn=$m(Ig()),Zg=$m(OP()),Zce=$m(require("fs")),ele=$m(require("path")),zP=class{constructor(t){if(this.opts={},!Cn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Cn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser!="undefined"&&Zg.default.addParser(n.parser),typeof n.formats!="undefined"&&Zg.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=Zg.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file!="undefined"&&Zce.default.existsSync(ele.default.resolve(this.opts.file))&&(n=this.opts.file),typeof t=="string"||Array.isArray(t)){let i;Array.isArray(t)?i=t:i=[t],n!==null&&i.unshift(n),this.client.loadFile(i)}else if(t===null)n!==null?this.client.loadFile(n):this.client.load({});else if(typeof t=="object")n!==null&&this.client.loadFile(n),this.client.load(t);else throw new Error(`Could not load the config given: ${t}`);let r=this.opts.validationMethod===void 0?"strict":this.opts.validationMethod;this.client.validate({allowed:r});let s=this.client.getProperties();return this.applyDataToModel(this.baseModel,s)}getSchemaFor(t){let n={};for(let r of Cn.default.getClassProperties(t)){let s=Cn.default.getConvictMetaForProperty(t,r);if(Cn.default.isConstructor(s)&&Cn.default.isConfigClass(s))try{t[r]=new s,n[r]=this.getSchemaFor(t[r])}catch(i){throw console.error(i),new Error("Could not make a new class of "+s)}else n[r]=s}return n}applyDataToModel(t,n){for(let r of Cn.default.getClassProperties(t)){let s=Cn.default.getConvictMetaForProperty(t,r);Cn.default.isConstructor(s)&&Cn.default.isConfigClass(s)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};si.TSConvict=zP});var Km=p(Vn=>{"use strict";var tle=Vn&&Vn.__createBinding||(Object.create?function(e,t,n,r){r===void 0&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){r===void 0&&(r=n),e[r]=t[n]}),e_=Vn&&Vn.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&tle(t,e,n)};Object.defineProperty(Vn,"__esModule",{value:!0});e_(TL(),Vn);e_(IL(),Vn);e_(jP(),Vn)});JP(exports,{handler:()=>ale,overrideDBManager:()=>rle});G_().install();var $_;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=s(e);typeof n.Reflect=="undefined"?n.Reflect=e:r=s(n.Reflect,r),t(r);function s(i,a){return function(c,l){typeof i[c]!="function"&&Object.defineProperty(i,c,{configurable:!0,writable:!0,value:l}),a&&a(c,l)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",s=r&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",i=r&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",c={__proto__:[]}instanceof Array,l=!a&&!c,m={create:a?function(){return ef(Object.create(null))}:c?function(){return ef({__proto__:null})}:function(){return ef({})},has:l?function(A,I){return n.call(A,I)}:function(A,I){return I in A},get:l?function(A,I){return n.call(A,I)?A[I]:void 0}:function(A,I){return A[I]}},f=Object.getPrototypeOf(Function),g=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",h=!g&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:s_(),_=!g&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:GP(),b=!g&&typeof WeakMap=="function"?WeakMap:$P(),E=new b;function D(A,I,N,O){if(De(N)){if(!Sa(A))throw new TypeError;if(!T(I))throw new TypeError;return de(A,I)}else{if(!Sa(A))throw new TypeError;if(!Pe(I))throw new TypeError;if(!Pe(O)&&!De(O)&&!Wn(O))throw new TypeError;return Wn(O)&&(O=void 0),N=Fe(N),le(A,I,N,O)}}t("decorate",D);function k(A,I){function N(O,V){if(!Pe(O))throw new TypeError;if(!De(V)&&!L(V))throw new TypeError;Le(A,I,O,V)}return N}t("metadata",k);function R(A,I,N,O){if(!Pe(N))throw new TypeError;return De(O)||(O=Fe(O)),Le(A,I,N,O)}t("defineMetadata",R);function K(A,I,N){if(!Pe(I))throw new TypeError;return De(N)||(N=Fe(N)),Te(A,I,N)}t("hasMetadata",K);function gt(A,I,N){if(!Pe(I))throw new TypeError;return De(N)||(N=Fe(N)),Re(A,I,N)}t("hasOwnMetadata",gt);function fe(A,I,N){if(!Pe(I))throw new TypeError;return De(N)||(N=Fe(N)),xe(A,I,N)}t("getMetadata",fe);function Er(A,I,N){if(!Pe(I))throw new TypeError;return De(N)||(N=Fe(N)),ke(A,I,N)}t("getOwnMetadata",Er);function Ar(A,I){if(!Pe(A))throw new TypeError;return De(I)||(I=Fe(I)),tt(A,I)}t("getMetadataKeys",Ar);function Zt(A,I){if(!Pe(A))throw new TypeError;return De(I)||(I=Fe(I)),te(A,I)}t("getOwnMetadataKeys",Zt);function Y(A,I,N){if(!Pe(I))throw new TypeError;De(N)||(N=Fe(N));var O=_e(I,N,!1);if(De(O)||!O.delete(A))return!1;if(O.size>0)return!0;var V=E.get(I);return V.delete(N),V.size>0||E.delete(I),!0}t("deleteMetadata",Y);function de(A,I){for(var N=A.length-1;N>=0;--N){var O=A[N],V=O(I);if(!De(V)&&!Wn(V)){if(!T(V))throw new TypeError;I=V}}return I}function le(A,I,N,O){for(var V=A.length-1;V>=0;--V){var We=A[V],ie=We(I,N,O);if(!De(ie)&&!Wn(ie)){if(!Pe(ie))throw new TypeError;O=ie}}return O}function _e(A,I,N){var O=E.get(A);if(De(O)){if(!N)return;O=new h,E.set(A,O)}var V=O.get(I);if(De(V)){if(!N)return;V=new h,O.set(I,V)}return V}function Te(A,I,N){var O=Re(A,I,N);if(O)return!0;var V=pe(I);return Wn(V)?!1:Te(A,V,N)}function Re(A,I,N){var O=_e(I,N,!1);return De(O)?!1:Xm(O.has(A))}function xe(A,I,N){var O=Re(A,I,N);if(O)return ke(A,I,N);var V=pe(I);if(!Wn(V))return xe(A,V,N)}function ke(A,I,N){var O=_e(I,N,!1);if(!De(O))return O.get(A)}function Le(A,I,N,O){var V=_e(N,O,!0);V.set(A,I)}function tt(A,I){var N=te(A,I),O=pe(A);if(O===null)return N;var V=tt(O,I);if(V.length<=0)return N;if(N.length<=0)return V;for(var We=new _,ie=[],ae=0,Q=N;ae<Q.length;ae++){var ye=Q[ae],ge=We.has(ye);ge||(We.add(ye),ie.push(ye))}for(var Yn=0,i_=V;Yn<i_.length;Yn++){var ye=i_[Yn],ge=We.has(ye);ge||(We.add(ye),ie.push(ye))}return ie}function te(A,I){var N=[],O=_e(A,I,!1);if(De(O))return N;for(var V=O.keys(),We=x(V),ie=0;;){var ae=J(We);if(!ae)return N.length=ie,N;var Q=B(ae);try{N[ie]=Q}catch(ye){try{Ee(We)}finally{throw ye}}ie++}}function ai(A){if(A===null)return 1;switch(typeof A){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return A===null?1:6;default:return 6}}function De(A){return A===void 0}function Wn(A){return A===null}function es(A){return typeof A=="symbol"}function Pe(A){return typeof A=="object"?A!==null:typeof A=="function"}function Hn(A,I){switch(ai(A)){case 0:return A;case 1:return A;case 2:return A;case 3:return A;case 4:return A;case 5:return A}var N=I===3?"string":I===5?"number":"default",O=C(A,s);if(O!==void 0){var V=O.call(A,N);if(Pe(V))throw new TypeError;return V}return Qm(A,N==="default"?"number":N)}function Qm(A,I){if(I==="string"){var N=A.toString;if(S(N)){var O=N.call(A);if(!Pe(O))return O}var V=A.valueOf;if(S(V)){var O=V.call(A);if(!Pe(O))return O}}else{var V=A.valueOf;if(S(V)){var O=V.call(A);if(!Pe(O))return O}var We=A.toString;if(S(We)){var O=We.call(A);if(!Pe(O))return O}}throw new TypeError}function Xm(A){return!!A}function Zm(A){return""+A}function Fe(A){var I=Hn(A,3);return es(I)?I:Zm(I)}function Sa(A){return Array.isArray?Array.isArray(A):A instanceof Object?A instanceof Array:Object.prototype.toString.call(A)==="[object Array]"}function S(A){return typeof A=="function"}function T(A){return typeof A=="function"}function L(A){switch(ai(A)){case 3:return!0;case 4:return!0;default:return!1}}function C(A,I){var N=A[I];if(N!=null){if(!S(N))throw new TypeError;return N}}function x(A){var I=C(A,i);if(!S(I))throw new TypeError;var N=I.call(A);if(!Pe(N))throw new TypeError;return N}function B(A){return A.value}function J(A){var I=A.next();return I.done?!1:I}function Ee(A){var I=A.return;I&&I.call(A)}function pe(A){var I=Object.getPrototypeOf(A);if(typeof A!="function"||A===f||I!==f)return I;var N=A.prototype,O=N&&Object.getPrototypeOf(N);if(O==null||O===Object.prototype)return I;var V=O.constructor;return typeof V!="function"||V===A?I:V}function s_(){var A={},I=[],N=function(){function ie(ae,Q,ye){this._index=0,this._keys=ae,this._values=Q,this._selector=ye}return ie.prototype["@@iterator"]=function(){return this},ie.prototype[i]=function(){return this},ie.prototype.next=function(){var ae=this._index;if(ae>=0&&ae<this._keys.length){var Q=this._selector(this._keys[ae],this._values[ae]);return ae+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:Q,done:!1}}return{value:void 0,done:!0}},ie.prototype.throw=function(ae){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),ae},ie.prototype.return=function(ae){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:ae,done:!0}},ie}();return function(){function ie(){this._keys=[],this._values=[],this._cacheKey=A,this._cacheIndex=-2}return Object.defineProperty(ie.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),ie.prototype.has=function(ae){return this._find(ae,!1)>=0},ie.prototype.get=function(ae){var Q=this._find(ae,!1);return Q>=0?this._values[Q]:void 0},ie.prototype.set=function(ae,Q){var ye=this._find(ae,!0);return this._values[ye]=Q,this},ie.prototype.delete=function(ae){var Q=this._find(ae,!1);if(Q>=0){for(var ye=this._keys.length,ge=Q+1;ge<ye;ge++)this._keys[ge-1]=this._keys[ge],this._values[ge-1]=this._values[ge];return this._keys.length--,this._values.length--,ae===this._cacheKey&&(this._cacheKey=A,this._cacheIndex=-2),!0}return!1},ie.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=A,this._cacheIndex=-2},ie.prototype.keys=function(){return new N(this._keys,this._values,O)},ie.prototype.values=function(){return new N(this._keys,this._values,V)},ie.prototype.entries=function(){return new N(this._keys,this._values,We)},ie.prototype["@@iterator"]=function(){return this.entries()},ie.prototype[i]=function(){return this.entries()},ie.prototype._find=function(ae,Q){return this._cacheKey!==ae&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ae)),this._cacheIndex<0&&Q&&(this._cacheIndex=this._keys.length,this._keys.push(ae),this._values.push(void 0)),this._cacheIndex},ie}();function O(ie,ae){return ie}function V(ie,ae){return ae}function We(ie,ae){return[ie,ae]}}function GP(){return function(){function A(){this._map=new h}return Object.defineProperty(A.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),A.prototype.has=function(I){return this._map.has(I)},A.prototype.add=function(I){return this._map.set(I,I),this},A.prototype.delete=function(I){return this._map.delete(I)},A.prototype.clear=function(){this._map.clear()},A.prototype.keys=function(){return this._map.keys()},A.prototype.values=function(){return this._map.values()},A.prototype.entries=function(){return this._map.entries()},A.prototype["@@iterator"]=function(){return this.keys()},A.prototype[i]=function(){return this.keys()},A}()}function $P(){var A=16,I=m.create(),N=O();return function(){function Q(){this._key=O()}return Q.prototype.has=function(ye){var ge=V(ye,!1);return ge!==void 0?m.has(ge,this._key):!1},Q.prototype.get=function(ye){var ge=V(ye,!1);return ge!==void 0?m.get(ge,this._key):void 0},Q.prototype.set=function(ye,ge){var Yn=V(ye,!0);return Yn[this._key]=ge,this},Q.prototype.delete=function(ye){var ge=V(ye,!1);return ge!==void 0?delete ge[this._key]:!1},Q.prototype.clear=function(){this._key=O()},Q}();function O(){var Q;do Q="@@WeakMap@@"+ae();while(m.has(I,Q));return I[Q]=!0,Q}function V(Q,ye){if(!n.call(Q,N)){if(!ye)return;Object.defineProperty(Q,N,{value:m.create()})}return Q[N]}function We(Q,ye){for(var ge=0;ge<ye;++ge)Q[ge]=Math.random()*255|0;return Q}function ie(Q){return typeof Uint8Array=="function"?typeof crypto!="undefined"?crypto.getRandomValues(new Uint8Array(Q)):typeof msCrypto!="undefined"?msCrypto.getRandomValues(new Uint8Array(Q)):We(new Uint8Array(Q),Q):We(new Array(Q),Q)}function ae(){var Q=ie(A);Q[6]=Q[6]&79|64,Q[8]=Q[8]&191|128;for(var ye="",ge=0;ge<A;++ge){var Yn=Q[ge];(ge===4||ge===6||ge===8)&&(ye+="-"),Yn<16&&(ye+="0"),ye+=Yn.toString(16).toLowerCase()}return ye}}function ef(A){return A.__=void 0,delete A.__,A}})})($_||($_={}));var FP=Tn(mt()),Zr=Tn(dR()),Jm=Tn(eg()),n_=Tn(TD());var Hm=Tn(OD());function zD(e){return typeof e=="undefined"||e===null}function Fse(e){return typeof e=="object"&&e!==null}function Gse(e){return Array.isArray(e)?e:zD(e)?[]:[e]}function $se(e,t){var n,r,s,i;if(t)for(i=Object.keys(t),n=0,r=i.length;n<r;n+=1)s=i[n],e[s]=t[s];return e}function Kse(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Vse(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Wse=zD,Hse=Fse,Yse=Gse,Jse=Kse,Qse=Vse,Xse=$se,Ge={isNothing:Wse,isObject:Hse,toArray:Yse,repeat:Jse,isNegativeZero:Qse,extend:Xse};function jD(e,t){var n="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(n+=`
|
|
31
31
|
|
|
32
|
-
`+e.mark.snippet),r+" "+n):r}function
|
|
32
|
+
`+e.mark.snippet),r+" "+n):r}function ua(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=jD(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}ua.prototype=Object.create(Error.prototype);ua.prototype.constructor=ua;ua.prototype.toString=function(t){return this.name+": "+jD(this,t)};var It=ua;function pg(e,t,n,r,s){var i="",a="",c=Math.floor(s/2)-1;return r-t>c&&(i=" ... ",t=r-c+i.length),n-r>c&&(a=" ...",n=r+c-a.length),{str:i+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:r-t+i.length}}function hg(e,t){return Ge.repeat(" ",t-e.length)+e}function Zse(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var n=/\r?\n|\r|\0/g,r=[0],s=[],i,a=-1;i=n.exec(e.buffer);)s.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var c="",l,m,f=Math.min(e.line+t.linesAfter,s.length).toString().length,g=t.maxLength-(t.indent+f+3);for(l=1;l<=t.linesBefore&&!(a-l<0);l++)m=pg(e.buffer,r[a-l],s[a-l],e.position-(r[a]-r[a-l]),g),c=Ge.repeat(" ",t.indent)+hg((e.line-l+1).toString(),f)+" | "+m.str+`
|
|
33
33
|
`+c;for(m=pg(e.buffer,r[a],s[a],e.position,g),c+=Ge.repeat(" ",t.indent)+hg((e.line+1).toString(),f)+" | "+m.str+`
|
|
34
34
|
`,c+=Ge.repeat("-",t.indent+f+3+m.pos)+`^
|
|
35
35
|
`,l=1;l<=t.linesAfter&&!(a+l>=s.length);l++)m=pg(e.buffer,r[a+l],s[a+l],e.position-(r[a]-r[a+l]),g),c+=Ge.repeat(" ",t.indent)+hg((e.line+l+1).toString(),f)+" | "+m.str+`
|
|
36
|
-
`;return c.replace(/\n$/,"")}var
|
|
37
|
-
\r`;function
|
|
38
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function
|
|
39
|
-
`,t-1))}function
|
|
36
|
+
`;return c.replace(/\n$/,"")}var eie=Zse,tie=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],nie=["scalar","sequence","mapping"];function rie(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function sie(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(tie.indexOf(n)===-1)throw new It('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(n){return n},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=rie(t.styleAliases||null),nie.indexOf(this.kind)===-1)throw new It('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var ct=sie;function UD(e,t){var n=[];return e[t].forEach(function(r){var s=n.length;n.forEach(function(i,a){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(s=a)}),n[s]=r}),n}function iie(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function yg(e){return this.extend(e)}yg.prototype.extend=function(t){var n=[],r=[];if(t instanceof ct)r.push(t);else if(Array.isArray(t))r=r.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(n=n.concat(t.implicit)),t.explicit&&(r=r.concat(t.explicit));else throw new It("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(i){if(!(i instanceof ct))throw new It("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new It("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new It("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof ct))throw new It("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(yg.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=UD(s,"implicit"),s.compiledExplicit=UD(s,"explicit"),s.compiledTypeMap=iie(s.compiledImplicit,s.compiledExplicit),s};var aie=yg,oie=new ct("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),cie=new ct("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),lie=new ct("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),die=new aie({explicit:[oie,cie,lie]});function uie(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function mie(){return null}function fie(e){return e===null}var pie=new ct("tag:yaml.org,2002:null",{kind:"scalar",resolve:uie,construct:mie,predicate:fie,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function hie(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function yie(e){return e==="true"||e==="True"||e==="TRUE"}function gie(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var _ie=new ct("tag:yaml.org,2002:bool",{kind:"scalar",resolve:hie,construct:yie,predicate:gie,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function wie(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function bie(e){return 48<=e&&e<=55}function Sie(e){return 48<=e&&e<=57}function vie(e){if(e===null)return!1;var t=e.length,n=0,r=!1,s;if(!t)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===t)return!0;if(s=e[++n],s==="b"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;r=!0}return r&&s!=="_"}if(s==="x"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(!wie(e.charCodeAt(n)))return!1;r=!0}return r&&s!=="_"}if(s==="o"){for(n++;n<t;n++)if(s=e[n],s!=="_"){if(!bie(e.charCodeAt(n)))return!1;r=!0}return r&&s!=="_"}}if(s==="_")return!1;for(;n<t;n++)if(s=e[n],s!=="_"){if(!Sie(e.charCodeAt(n)))return!1;r=!0}return!(!r||s==="_")}function Eie(e){var t=e,n=1,r;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),r=t[0],(r==="-"||r==="+")&&(r==="-"&&(n=-1),t=t.slice(1),r=t[0]),t==="0")return 0;if(r==="0"){if(t[1]==="b")return n*parseInt(t.slice(2),2);if(t[1]==="x")return n*parseInt(t.slice(2),16);if(t[1]==="o")return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function Aie(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1==0&&!Ge.isNegativeZero(e)}var Cie=new ct("tag:yaml.org,2002:int",{kind:"scalar",resolve:vie,construct:Eie,predicate:Aie,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Tie=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function xie(e){return!(e===null||!Tie.test(e)||e[e.length-1]==="_")}function Iie(e){var t,n;return t=e.replace(/_/g,"").toLowerCase(),n=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:n*parseFloat(t,10)}var Rie=/^[-+]?[0-9]+e/;function kie(e,t){var n;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Ge.isNegativeZero(e))return"-0.0";return n=e.toString(10),Rie.test(n)?n.replace("e",".e"):n}function Die(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!=0||Ge.isNegativeZero(e))}var Lie=new ct("tag:yaml.org,2002:float",{kind:"scalar",resolve:xie,construct:Iie,predicate:Die,represent:kie,defaultStyle:"lowercase"}),Pie=die.extend({implicit:[pie,_ie,Cie,Lie]}),Nie=Pie,BD=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),FD=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function qie(e){return e===null?!1:BD.exec(e)!==null||FD.exec(e)!==null}function Mie(e){var t,n,r,s,i,a,c,l=0,m=null,f,g,h;if(t=BD.exec(e),t===null&&(t=FD.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(n,r,s));if(i=+t[4],a=+t[5],c=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(f=+t[10],g=+(t[11]||0),m=(f*60+g)*6e4,t[9]==="-"&&(m=-m)),h=new Date(Date.UTC(n,r,s,i,a,c,l)),m&&h.setTime(h.getTime()-m),h}function Oie(e){return e.toISOString()}var zie=new ct("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:qie,construct:Mie,instanceOf:Date,represent:Oie});function jie(e){return e==="<<"||e===null}var Uie=new ct("tag:yaml.org,2002:merge",{kind:"scalar",resolve:jie}),gg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
37
|
+
\r`;function Bie(e){if(e===null)return!1;var t,n,r=0,s=e.length,i=gg;for(n=0;n<s;n++)if(t=i.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8==0}function Fie(e){var t,n,r=e.replace(/[\r\n=]/g,""),s=r.length,i=gg,a=0,c=[];for(t=0;t<s;t++)t%4==0&&t&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|i.indexOf(r.charAt(t));return n=s%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),new Uint8Array(c)}function Gie(e){var t="",n=0,r,s,i=e.length,a=gg;for(r=0;r<i;r++)r%3==0&&r&&(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]),n=(n<<8)+e[r];return s=i%3,s===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):s===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):s===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function $ie(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Kie=new ct("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Bie,construct:Fie,predicate:$ie,represent:Gie}),Vie=Object.prototype.hasOwnProperty,Wie=Object.prototype.toString;function Hie(e){if(e===null)return!0;var t=[],n,r,s,i,a,c=e;for(n=0,r=c.length;n<r;n+=1){if(s=c[n],a=!1,Wie.call(s)!=="[object Object]")return!1;for(i in s)if(Vie.call(s,i))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function Yie(e){return e!==null?e:[]}var Jie=new ct("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Hie,construct:Yie}),Qie=Object.prototype.toString;function Xie(e){if(e===null)return!0;var t,n,r,s,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],Qie.call(r)!=="[object Object]"||(s=Object.keys(r),s.length!==1))return!1;i[t]=[s[0],r[s[0]]]}return!0}function Zie(e){if(e===null)return[];var t,n,r,s,i,a=e;for(i=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],s=Object.keys(r),i[t]=[s[0],r[s[0]]];return i}var eae=new ct("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Xie,construct:Zie}),tae=Object.prototype.hasOwnProperty;function nae(e){if(e===null)return!0;var t,n=e;for(t in n)if(tae.call(n,t)&&n[t]!==null)return!1;return!0}function rae(e){return e!==null?e:{}}var sae=new ct("tag:yaml.org,2002:set",{kind:"mapping",resolve:nae,construct:rae}),GD=Nie.extend({implicit:[zie,Uie],explicit:[Kie,Jie,eae,sae]}),_r=Object.prototype.hasOwnProperty,xm=1,$D=2,KD=3,Im=4,_g=1,iae=2,VD=3,aae=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,oae=/[\x85\u2028\u2029]/,cae=/[,\[\]\{\}]/,WD=/^(?:!|!!|![a-z\-]+!)$/i,HD=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function YD(e){return Object.prototype.toString.call(e)}function An(e){return e===10||e===13}function Yr(e){return e===9||e===32}function Rt(e){return e===9||e===32||e===10||e===13}function Ws(e){return e===44||e===91||e===93||e===123||e===125}function lae(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function dae(e){return e===120?2:e===117?4:e===85?8:0}function uae(e){return 48<=e&&e<=57?e-48:-1}function JD(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
38
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function mae(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var QD=new Array(256),XD=new Array(256);for(var Hs=0;Hs<256;Hs++)QD[Hs]=JD(Hs)?1:0,XD[Hs]=JD(Hs);function fae(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||GD,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ZD(e,t){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=eie(n),new It(t,n)}function $(e,t){throw ZD(e,t)}function Rm(e,t){e.onWarning&&e.onWarning.call(null,ZD(e,t))}var eL={YAML:function(t,n,r){var s,i,a;t.version!==null&&$(t,"duplication of %YAML directive"),r.length!==1&&$(t,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),s===null&&$(t,"ill-formed argument of the YAML directive"),i=parseInt(s[1],10),a=parseInt(s[2],10),i!==1&&$(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Rm(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var s,i;r.length!==2&&$(t,"TAG directive accepts exactly two arguments"),s=r[0],i=r[1],WD.test(s)||$(t,"ill-formed tag handle (first argument) of the TAG directive"),_r.call(t.tagMap,s)&&$(t,'there is a previously declared suffix for "'+s+'" tag handle'),HD.test(i)||$(t,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch(a){$(t,"tag prefix is malformed: "+i)}t.tagMap[s]=i}};function wr(e,t,n,r){var s,i,a,c;if(t<n){if(c=e.input.slice(t,n),r)for(s=0,i=c.length;s<i;s+=1)a=c.charCodeAt(s),a===9||32<=a&&a<=1114111||$(e,"expected valid JSON character");else aae.test(c)&&$(e,"the stream contains non-printable characters");e.result+=c}}function tL(e,t,n,r){var s,i,a,c;for(Ge.isObject(n)||$(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(n),a=0,c=s.length;a<c;a+=1)i=s[a],_r.call(t,i)||(t[i]=n[i],r[i]=!0)}function Ys(e,t,n,r,s,i,a,c,l){var m,f;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),m=0,f=s.length;m<f;m+=1)Array.isArray(s[m])&&$(e,"nested arrays are not supported inside keys"),typeof s=="object"&&YD(s[m])==="[object Object]"&&(s[m]="[object Object]");if(typeof s=="object"&&YD(s)==="[object Object]"&&(s="[object Object]"),s=String(s),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(m=0,f=i.length;m<f;m+=1)tL(e,t,i[m],n);else tL(e,t,i,n);else!e.json&&!_r.call(n,s)&&_r.call(t,s)&&(e.line=a||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,$(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[s]=i,delete n[s];return t}function wg(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):$(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Be(e,t,n){for(var r=0,s=e.input.charCodeAt(e.position);s!==0;){for(;Yr(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(An(s))for(wg(e),s=e.input.charCodeAt(e.position),r++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Rm(e,"deficient indentation"),r}function km(e){var t=e.position,n;return n=e.input.charCodeAt(t),!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||Rt(n)))}function bg(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ge.repeat(`
|
|
39
|
+
`,t-1))}function pae(e,t,n){var r,s,i,a,c,l,m,f,g=e.kind,h=e.result,_;if(_=e.input.charCodeAt(e.position),Rt(_)||Ws(_)||_===35||_===38||_===42||_===33||_===124||_===62||_===39||_===34||_===37||_===64||_===96||(_===63||_===45)&&(s=e.input.charCodeAt(e.position+1),Rt(s)||n&&Ws(s)))return!1;for(e.kind="scalar",e.result="",i=a=e.position,c=!1;_!==0;){if(_===58){if(s=e.input.charCodeAt(e.position+1),Rt(s)||n&&Ws(s))break}else if(_===35){if(r=e.input.charCodeAt(e.position-1),Rt(r))break}else{if(e.position===e.lineStart&&km(e)||n&&Ws(_))break;if(An(_))if(l=e.line,m=e.lineStart,f=e.lineIndent,Be(e,!1,-1),e.lineIndent>=t){c=!0,_=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=l,e.lineStart=m,e.lineIndent=f;break}}c&&(wr(e,i,a,!1),bg(e,e.line-l),i=a=e.position,c=!1),Yr(_)||(a=e.position+1),_=e.input.charCodeAt(++e.position)}return wr(e,i,a,!1),e.result?!0:(e.kind=g,e.result=h,!1)}function hae(e,t){var n,r,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(wr(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,s=e.position;else return!0;else An(n)?(wr(e,r,s,!0),bg(e,Be(e,!1,t)),r=s=e.position):e.position===e.lineStart&&km(e)?$(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);$(e,"unexpected end of the stream within a single quoted scalar")}function yae(e,t){var n,r,s,i,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return wr(e,n,e.position,!0),e.position++,!0;if(c===92){if(wr(e,n,e.position,!0),c=e.input.charCodeAt(++e.position),An(c))Be(e,!1,t);else if(c<256&&QD[c])e.result+=XD[c],e.position++;else if((a=dae(c))>0){for(s=a,i=0;s>0;s--)c=e.input.charCodeAt(++e.position),(a=lae(c))>=0?i=(i<<4)+a:$(e,"expected hexadecimal character");e.result+=mae(i),e.position++}else $(e,"unknown escape sequence");n=r=e.position}else An(c)?(wr(e,n,r,!0),bg(e,Be(e,!1,t)),n=r=e.position):e.position===e.lineStart&&km(e)?$(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}$(e,"unexpected end of the stream within a double quoted scalar")}function gae(e,t){var n=!0,r,s,i,a=e.tag,c,l=e.anchor,m,f,g,h,_,b=Object.create(null),E,D,k,R;if(R=e.input.charCodeAt(e.position),R===91)f=93,_=!1,c=[];else if(R===123)f=125,_=!0,c={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),R=e.input.charCodeAt(++e.position);R!==0;){if(Be(e,!0,t),R=e.input.charCodeAt(e.position),R===f)return e.position++,e.tag=a,e.anchor=l,e.kind=_?"mapping":"sequence",e.result=c,!0;n?R===44&&$(e,"expected the node content, but found ','"):$(e,"missed comma between flow collection entries"),D=E=k=null,g=h=!1,R===63&&(m=e.input.charCodeAt(e.position+1),Rt(m)&&(g=h=!0,e.position++,Be(e,!0,t))),r=e.line,s=e.lineStart,i=e.position,Js(e,t,xm,!1,!0),D=e.tag,E=e.result,Be(e,!0,t),R=e.input.charCodeAt(e.position),(h||e.line===r)&&R===58&&(g=!0,R=e.input.charCodeAt(++e.position),Be(e,!0,t),Js(e,t,xm,!1,!0),k=e.result),_?Ys(e,c,b,D,E,k,r,s,i):g?c.push(Ys(e,null,b,D,E,k,r,s,i)):c.push(E),Be(e,!0,t),R=e.input.charCodeAt(e.position),R===44?(n=!0,R=e.input.charCodeAt(++e.position)):n=!1}$(e,"unexpected end of the stream within a flow collection")}function _ae(e,t){var n,r,s=_g,i=!1,a=!1,c=t,l=0,m=!1,f,g;if(g=e.input.charCodeAt(e.position),g===124)r=!1;else if(g===62)r=!0;else return!1;for(e.kind="scalar",e.result="";g!==0;)if(g=e.input.charCodeAt(++e.position),g===43||g===45)_g===s?s=g===43?VD:iae:$(e,"repeat of a chomping mode identifier");else if((f=uae(g))>=0)f===0?$(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?$(e,"repeat of an indentation width identifier"):(c=t+f-1,a=!0);else break;if(Yr(g)){do g=e.input.charCodeAt(++e.position);while(Yr(g));if(g===35)do g=e.input.charCodeAt(++e.position);while(!An(g)&&g!==0)}for(;g!==0;){for(wg(e),e.lineIndent=0,g=e.input.charCodeAt(e.position);(!a||e.lineIndent<c)&&g===32;)e.lineIndent++,g=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>c&&(c=e.lineIndent),An(g)){l++;continue}if(e.lineIndent<c){s===VD?e.result+=Ge.repeat(`
|
|
40
40
|
`,i?1+l:l):s===_g&&i&&(e.result+=`
|
|
41
41
|
`);break}for(r?Yr(g)?(m=!0,e.result+=Ge.repeat(`
|
|
42
42
|
`,i?1+l:l)):m?(m=!1,e.result+=Ge.repeat(`
|
|
43
43
|
`,l+1)):l===0?i&&(e.result+=" "):e.result+=Ge.repeat(`
|
|
44
44
|
`,l):e.result+=Ge.repeat(`
|
|
45
|
-
`,i?1+l:l),i=!0,a=!0,l=0,n=e.position;!An(g)&&g!==0;)g=e.input.charCodeAt(++e.position);wr(e,n,e.position,!1)}return!0}function
|
|
46
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new
|
|
45
|
+
`,i?1+l:l),i=!0,a=!0,l=0,n=e.position;!An(g)&&g!==0;)g=e.input.charCodeAt(++e.position);wr(e,n,e.position,!1)}return!0}function nL(e,t){var n,r=e.tag,s=e.anchor,i=[],a,c=!1,l;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),l=e.input.charCodeAt(e.position);l!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,$(e,"tab characters must not be used in indentation")),!(l!==45||(a=e.input.charCodeAt(e.position+1),!Rt(a))));){if(c=!0,e.position++,Be(e,!0,-1)&&e.lineIndent<=t){i.push(null),l=e.input.charCodeAt(e.position);continue}if(n=e.line,Js(e,t,KD,!1,!0),i.push(e.result),Be(e,!0,-1),l=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&l!==0)$(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return c?(e.tag=r,e.anchor=s,e.kind="sequence",e.result=i,!0):!1}function wae(e,t,n){var r,s,i,a,c,l,m=e.tag,f=e.anchor,g={},h=Object.create(null),_=null,b=null,E=null,D=!1,k=!1,R;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=g),R=e.input.charCodeAt(e.position);R!==0;){if(!D&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,$(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,(R===63||R===58)&&Rt(r))R===63?(D&&(Ys(e,g,h,_,b,null,a,c,l),_=b=E=null),k=!0,D=!0,s=!0):D?(D=!1,s=!0):$(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,R=r;else{if(a=e.line,c=e.lineStart,l=e.position,!Js(e,n,$D,!1,!0))break;if(e.line===i){for(R=e.input.charCodeAt(e.position);Yr(R);)R=e.input.charCodeAt(++e.position);if(R===58)R=e.input.charCodeAt(++e.position),Rt(R)||$(e,"a whitespace character is expected after the key-value separator within a block mapping"),D&&(Ys(e,g,h,_,b,null,a,c,l),_=b=E=null),k=!0,D=!1,s=!1,_=e.tag,b=e.result;else if(k)$(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=m,e.anchor=f,!0}else if(k)$(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=m,e.anchor=f,!0}if((e.line===i||e.lineIndent>t)&&(D&&(a=e.line,c=e.lineStart,l=e.position),Js(e,t,Im,!0,s)&&(D?b=e.result:E=e.result),D||(Ys(e,g,h,_,b,E,a,c,l),_=b=E=null),Be(e,!0,-1),R=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&R!==0)$(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return D&&Ys(e,g,h,_,b,null,a,c,l),k&&(e.tag=m,e.anchor=f,e.kind="mapping",e.result=g),k}function bae(e){var t,n=!1,r=!1,s,i,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&$(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(n=!0,a=e.input.charCodeAt(++e.position)):a===33?(r=!0,s="!!",a=e.input.charCodeAt(++e.position)):s="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(i=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):$(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!Rt(a);)a===33&&(r?$(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(t-1,e.position+1),WD.test(s)||$(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),cae.test(i)&&$(e,"tag suffix cannot contain flow indicator characters")}i&&!HD.test(i)&&$(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch(c){$(e,"tag name is malformed: "+i)}return n?e.tag=i:_r.call(e.tagMap,s)?e.tag=e.tagMap[s]+i:s==="!"?e.tag="!"+i:s==="!!"?e.tag="tag:yaml.org,2002:"+i:$(e,'undeclared tag handle "'+s+'"'),!0}function Sae(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&$(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!Rt(n)&&!Ws(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&$(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function vae(e){var t,n,r;if(r=e.input.charCodeAt(e.position),r!==42)return!1;for(r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Rt(r)&&!Ws(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&$(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),_r.call(e.anchorMap,n)||$(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Be(e,!0,-1),!0}function Js(e,t,n,r,s){var i,a,c,l=1,m=!1,f=!1,g,h,_,b,E,D;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=c=Im===n||KD===n,r&&Be(e,!0,-1)&&(m=!0,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)),l===1)for(;bae(e)||Sae(e);)Be(e,!0,-1)?(m=!0,c=i,e.lineIndent>t?l=1:e.lineIndent===t?l=0:e.lineIndent<t&&(l=-1)):c=!1;if(c&&(c=m||s),(l===1||Im===n)&&(xm===n||$D===n?E=t:E=t+1,D=e.position-e.lineStart,l===1?c&&(nL(e,D)||wae(e,D,E))||gae(e,E)?f=!0:(a&&_ae(e,E)||hae(e,E)||yae(e,E)?f=!0:vae(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&$(e,"alias node should not have any properties")):pae(e,E,xm===n)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):l===0&&(f=c&&nL(e,D))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&$(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),g=0,h=e.implicitTypes.length;g<h;g+=1)if(b=e.implicitTypes[g],b.resolve(e.result)){e.result=b.construct(e.result),e.tag=b.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(_r.call(e.typeMap[e.kind||"fallback"],e.tag))b=e.typeMap[e.kind||"fallback"][e.tag];else for(b=null,_=e.typeMap.multi[e.kind||"fallback"],g=0,h=_.length;g<h;g+=1)if(e.tag.slice(0,_[g].tag.length)===_[g].tag){b=_[g];break}b||$(e,"unknown tag !<"+e.tag+">"),e.result!==null&&b.kind!==e.kind&&$(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+b.kind+'", not "'+e.kind+'"'),b.resolve(e.result,e.tag)?(e.result=b.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):$(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||f}function Eae(e){var t=e.position,n,r,s,i=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Be(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(i=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!Rt(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),s=[],r.length<1&&$(e,"directive name must not be less than one character in length");a!==0;){for(;Yr(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!An(a));break}if(An(a))break;for(n=e.position;a!==0&&!Rt(a);)a=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}a!==0&&wg(e),_r.call(eL,r)?eL[r](e,r,s):Rm(e,'unknown document directive "'+r+'"')}if(Be(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Be(e,!0,-1)):i&&$(e,"directives end mark is expected"),Js(e,e.lineIndent-1,Im,!1,!0),Be(e,!0,-1),e.checkLineBreaks&&oae.test(e.input.slice(t,e.position))&&Rm(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&km(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Be(e,!0,-1));return}if(e.position<e.length-1)$(e,"end of the stream or a document separator is expected");else return}function rL(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
46
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new fae(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,$(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)Eae(n);return n.documents}function Aae(e,t,n){t!==null&&typeof t=="object"&&typeof n=="undefined"&&(n=t,t=null);var r=rL(e,n);if(typeof t!="function")return r;for(var s=0,i=r.length;s<i;s+=1)t(r[s])}function Cae(e,t){var n=rL(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new It("expected a single document in the stream, but found more")}}var Tae=Aae,xae=Cae,sL={loadAll:Tae,load:xae},iL=Object.prototype.toString,aL=Object.prototype.hasOwnProperty,Sg=65279,Iae=9,ma=10,Rae=13,kae=32,Dae=33,Lae=34,vg=35,Pae=37,Nae=38,qae=39,Mae=42,oL=44,Oae=45,Dm=58,zae=61,jae=62,Uae=63,Bae=64,cL=91,lL=93,Fae=96,dL=123,Gae=124,uL=125,lt={};lt[0]="\\0";lt[7]="\\a";lt[8]="\\b";lt[9]="\\t";lt[10]="\\n";lt[11]="\\v";lt[12]="\\f";lt[13]="\\r";lt[27]="\\e";lt[34]='\\"';lt[92]="\\\\";lt[133]="\\N";lt[160]="\\_";lt[8232]="\\L";lt[8233]="\\P";var $ae=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Kae=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Vae(e,t){var n,r,s,i,a,c,l;if(t===null)return{};for(n={},r=Object.keys(t),s=0,i=r.length;s<i;s+=1)a=r[s],c=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),l=e.compiledTypeMap.fallback[a],l&&aL.call(l.styleAliases,c)&&(c=l.styleAliases[c]),n[a]=c;return n}function Wae(e){var t,n,r;if(t=e.toString(16).toUpperCase(),e<=255)n="x",r=2;else if(e<=65535)n="u",r=4;else if(e<=4294967295)n="U",r=8;else throw new It("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ge.repeat("0",r-t.length)+t}var Hae=1,fa=2;function Yae(e){this.schema=e.schema||GD,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ge.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Vae(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?fa:Hae,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function mL(e,t){for(var n=Ge.repeat(" ",t),r=0,s=-1,i="",a,c=e.length;r<c;)s=e.indexOf(`
|
|
47
47
|
`,r),s===-1?(a=e.slice(r),r=c):(a=e.slice(r,s+1),r=s+1),a.length&&a!==`
|
|
48
48
|
`&&(i+=n),i+=a;return i}function Eg(e,t){return`
|
|
49
|
-
`+Ge.repeat(" ",e.indent*t)}function
|
|
49
|
+
`+Ge.repeat(" ",e.indent*t)}function Jae(e,t){var n,r,s;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(s=e.implicitTypes[n],s.resolve(t))return!0;return!1}function Lm(e){return e===kae||e===Iae}function pa(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Sg||65536<=e&&e<=1114111}function fL(e){return pa(e)&&e!==Sg&&e!==Rae&&e!==ma}function pL(e,t,n){var r=fL(e),s=r&&!Lm(e);return(n?r:r&&e!==oL&&e!==cL&&e!==lL&&e!==dL&&e!==uL)&&e!==vg&&!(t===Dm&&!s)||fL(t)&&!Lm(t)&&e===vg||t===Dm&&s}function Qae(e){return pa(e)&&e!==Sg&&!Lm(e)&&e!==Oae&&e!==Uae&&e!==Dm&&e!==oL&&e!==cL&&e!==lL&&e!==dL&&e!==uL&&e!==vg&&e!==Nae&&e!==Mae&&e!==Dae&&e!==Gae&&e!==zae&&e!==jae&&e!==qae&&e!==Lae&&e!==Pae&&e!==Bae&&e!==Fae}function Xae(e){return!Lm(e)&&e!==Dm}function ha(e,t){var n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function hL(e){var t=/^\n* /;return t.test(e)}var yL=1,Ag=2,gL=3,_L=4,Qs=5;function Zae(e,t,n,r,s,i,a,c){var l,m=0,f=null,g=!1,h=!1,_=r!==-1,b=-1,E=Qae(ha(e,0))&&Xae(ha(e,e.length-1));if(t||a)for(l=0;l<e.length;m>=65536?l+=2:l++){if(m=ha(e,l),!pa(m))return Qs;E=E&&pL(m,f,c),f=m}else{for(l=0;l<e.length;m>=65536?l+=2:l++){if(m=ha(e,l),m===ma)g=!0,_&&(h=h||l-b-1>r&&e[b+1]!==" ",b=l);else if(!pa(m))return Qs;E=E&&pL(m,f,c),f=m}h=h||_&&l-b-1>r&&e[b+1]!==" "}return!g&&!h?E&&!a&&!s(e)?yL:i===fa?Qs:Ag:n>9&&hL(e)?Qs:a?i===fa?Qs:Ag:h?_L:gL}function eoe(e,t,n,r,s){e.dump=function(){if(t.length===0)return e.quotingType===fa?'""':"''";if(!e.noCompatMode&&($ae.indexOf(t)!==-1||Kae.test(t)))return e.quotingType===fa?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,n),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),c=r||e.flowLevel>-1&&n>=e.flowLevel;function l(m){return Jae(e,m)}switch(Zae(t,c,e.indent,a,l,e.quotingType,e.forceQuotes&&!r,s)){case yL:return t;case Ag:return"'"+t.replace(/'/g,"''")+"'";case gL:return"|"+wL(t,e.indent)+bL(mL(t,i));case _L:return">"+wL(t,e.indent)+bL(mL(toe(t,a),i));case Qs:return'"'+noe(t)+'"';default:throw new It("impossible error: invalid scalar style")}}()}function wL(e,t){var n=hL(e)?String(t):"",r=e[e.length-1]===`
|
|
50
50
|
`,s=r&&(e[e.length-2]===`
|
|
51
51
|
`||e===`
|
|
52
52
|
`),i=s?"+":r?"":"-";return n+i+`
|
|
53
|
-
`}function
|
|
54
|
-
`?e.slice(0,-1):e}function
|
|
55
|
-
`);return m=m!==-1?m:e.length,n.lastIndex=m,
|
|
53
|
+
`}function bL(e){return e[e.length-1]===`
|
|
54
|
+
`?e.slice(0,-1):e}function toe(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var m=e.indexOf(`
|
|
55
|
+
`);return m=m!==-1?m:e.length,n.lastIndex=m,SL(e.slice(0,m),t)}(),s=e[0]===`
|
|
56
56
|
`||e[0]===" ",i,a;a=n.exec(e);){var c=a[1],l=a[2];i=l[0]===" ",r+=c+(!s&&!i&&l!==""?`
|
|
57
|
-
`:"")+
|
|
57
|
+
`:"")+SL(l,t),s=i}return r}function SL(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,s=0,i,a=0,c=0,l="";r=n.exec(e);)c=r.index,c-s>t&&(i=a>s?a:c,l+=`
|
|
58
58
|
`+e.slice(s,i),s=i+1),a=c;return l+=`
|
|
59
59
|
`,e.length-s>t&&a>s?l+=e.slice(s,a)+`
|
|
60
|
-
`+e.slice(a+1):l+=e.slice(s),l.slice(1)}function
|
|
61
|
-
`:""}var
|
|
60
|
+
`+e.slice(a+1):l+=e.slice(s),l.slice(1)}function noe(e){for(var t="",n=0,r,s=0;s<e.length;n>=65536?s+=2:s++)n=ha(e,s),r=lt[n],!r&&pa(n)?(t+=e[s],n>=65536&&(t+=e[s+1])):t+=r||Wae(n);return t}function roe(e,t,n){var r="",s=e.tag,i,a,c;for(i=0,a=n.length;i<a;i+=1)c=n[i],e.replacer&&(c=e.replacer.call(n,String(i),c)),(Gn(e,t,c,!1,!1)||typeof c=="undefined"&&Gn(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=s,e.dump="["+r+"]"}function vL(e,t,n,r){var s="",i=e.tag,a,c,l;for(a=0,c=n.length;a<c;a+=1)l=n[a],e.replacer&&(l=e.replacer.call(n,String(a),l)),(Gn(e,t+1,l,!0,!0,!1,!0)||typeof l=="undefined"&&Gn(e,t+1,null,!0,!0,!1,!0))&&((!r||s!=="")&&(s+=Eg(e,t)),e.dump&&ma===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=i,e.dump=s||"[]"}function soe(e,t,n){var r="",s=e.tag,i=Object.keys(n),a,c,l,m,f;for(a=0,c=i.length;a<c;a+=1)f="",r!==""&&(f+=", "),e.condenseFlow&&(f+='"'),l=i[a],m=n[l],e.replacer&&(m=e.replacer.call(n,l,m)),!!Gn(e,t,l,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!Gn(e,t,m,!1,!1)&&(f+=e.dump,r+=f));e.tag=s,e.dump="{"+r+"}"}function ioe(e,t,n,r){var s="",i=e.tag,a=Object.keys(n),c,l,m,f,g,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new It("sortKeys must be a boolean or a function");for(c=0,l=a.length;c<l;c+=1)h="",(!r||s!=="")&&(h+=Eg(e,t)),m=a[c],f=n[m],e.replacer&&(f=e.replacer.call(n,m,f)),!!Gn(e,t+1,m,!0,!0,!0)&&(g=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,g&&(e.dump&&ma===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,g&&(h+=Eg(e,t)),!!Gn(e,t+1,f,!0,g)&&(e.dump&&ma===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,s+=h));e.tag=i,e.dump=s||"{}"}function EL(e,t,n){var r,s,i,a,c,l;for(s=n?e.explicitTypes:e.implicitTypes,i=0,a=s.length;i<a;i+=1)if(c=s[i],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof t=="object"&&t instanceof c.instanceOf)&&(!c.predicate||c.predicate(t))){if(n?c.multi&&c.representName?e.tag=c.representName(t):e.tag=c.tag:e.tag="?",c.represent){if(l=e.styleMap[c.tag]||c.defaultStyle,iL.call(c.represent)==="[object Function]")r=c.represent(t,l);else if(aL.call(c.represent,l))r=c.represent[l](t,l);else throw new It("!<"+c.tag+'> tag resolver accepts not "'+l+'" style');e.dump=r}return!0}return!1}function Gn(e,t,n,r,s,i,a){e.tag=null,e.dump=n,EL(e,n,!1)||EL(e,n,!0);var c=iL.call(e.dump),l=r,m;r&&(r=e.flowLevel<0||e.flowLevel>t);var f=c==="[object Object]"||c==="[object Array]",g,h;if(f&&(g=e.duplicates.indexOf(n),h=g!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(s=!1),h&&e.usedDuplicates[g])e.dump="*ref_"+g;else{if(f&&h&&!e.usedDuplicates[g]&&(e.usedDuplicates[g]=!0),c==="[object Object]")r&&Object.keys(e.dump).length!==0?(ioe(e,t,e.dump,s),h&&(e.dump="&ref_"+g+e.dump)):(soe(e,t,e.dump),h&&(e.dump="&ref_"+g+" "+e.dump));else if(c==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?vL(e,t-1,e.dump,s):vL(e,t,e.dump,s),h&&(e.dump="&ref_"+g+e.dump)):(roe(e,t,e.dump),h&&(e.dump="&ref_"+g+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&eoe(e,e.dump,t,i,l);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new It("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(m=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?m="!"+m:m.slice(0,18)==="tag:yaml.org,2002:"?m="!!"+m.slice(18):m="!<"+m+">",e.dump=m+" "+e.dump)}return!0}function aoe(e,t){var n=[],r=[],s,i;for(Cg(e,n,r),s=0,i=r.length;s<i;s+=1)t.duplicates.push(n[r[s]]);t.usedDuplicates=new Array(i)}function Cg(e,t,n){var r,s,i;if(e!==null&&typeof e=="object")if(s=t.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(t.push(e),Array.isArray(e))for(s=0,i=e.length;s<i;s+=1)Cg(e[s],t,n);else for(r=Object.keys(e),s=0,i=r.length;s<i;s+=1)Cg(e[r[s]],t,n)}function ooe(e,t){t=t||{};var n=new Yae(t);n.noRefs||aoe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),Gn(n,0,r,!0,!0)?n.dump+`
|
|
61
|
+
`:""}var coe=ooe,loe={dump:coe};function Tg(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var AL=sL.load,Dye=sL.loadAll,Lye=loe.dump;var Pye=Tg("safeLoad","load"),Nye=Tg("safeLoadAll","loadAll"),qye=Tg("safeDump","dump");var Ym=Tn(Km()),BP=Tn(Km());var Vm=Tn(eg()),t_=class{static async getExistingFiles(t){let n=[];for(let r of t)await(0,Vm.pathExists)(r)&&n.push(r);return n}static getExistingFilesSync(t){let n=[];for(let r of t)(0,Vm.pathExistsSync)(r)&&n.push(r);return n}};var UP=Tn(Km()),Wm=class{};oi([(0,UP.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],Wm.prototype,"tableName",2);var yt=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${yt.envLevel}.yaml`,`./configs/config-${yt.envLevel}.yml`];return t_.getExistingFilesSync(t)}static get instance(){if(yt._instance===void 0){let t=new BP.TSConvict(yt);yt._instance=t.load(yt.configFiles())}return yt._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};oi([Ym.Property(Wm)],yt.prototype,"db",2),yt=oi([Ym.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:AL},formats:{url:Hm.url,ipaddress:Hm.ipaddress}})],yt);var nle=!!process.env.DEBUG,ii,r_=new FP.DynamoDBClient({maxAttempts:8});function rle(e){ii=e.dbManager,r_=e.dynamoClient}ii=new Zr.DBManager({dynamoClient:r_,tableName:yt.instance.db.tableName});function sle(){let e=[__dirname,`${__dirname}/..`,`${__dirname}/templates`,"/opt","/opt/templates"],t=new n_.LambdaLog({meta:{source:"microapps-router"},dynamicMeta:n=>({timestamp:new Date().toISOString()})});for(let n of e){let r=`${n}/appFrame.html`;try{if((0,Jm.pathExistsSync)(r))return t.info("found html file",{fullPath:r}),(0,Jm.readFileSync)(r,"utf-8")}catch{}}throw t.error("appFrame.html not found"),new Error("appFrame.html not found")}var ile=sle();async function ale(e,t){ii===void 0&&(ii=new Zr.DBManager({dynamoClient:r_,tableName:yt.instance.db.tableName}));let n={statusCode:200,headers:{},isBase64Encoded:!1},r=new n_.LambdaLog({dev:nle,meta:{source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath},dynamicMeta:s=>({timestamp:new Date().toISOString()})});try{let s=e.rawPath.split("/"),i="";if(s.length>=3&&s[2]!==""&&(i=s.slice(2).join("/")),(s.length===3||s.length===4)&&await cle(e,n,s[1],s[2],r))return n;if(s.length>=2)await ole(e,n,s[1],i,r);else throw new Error("Unmatched route")}catch(s){r.error("unexpected exception - returning 599",{statusCode:599,error:s}),n.statusCode=599,n.headers={},n.headers["Content-Type"]="text/plain",n.body=`Router - Could not route: ${e.rawPath}, ${s.message}`}return n}async function ole(e,t,n,r,s){var f,g;let i;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{i=await Zr.Application.GetVersionsAndRules({dbManager:ii,key:{AppName:n}})}catch(h){s.info(`GetVersionsAndRules threw for '${n}', assuming not found - returning 404`,{appName:n,statusCode:404,error:h}),t.statusCode=404,t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/plain; charset=UTF-8",t.body=`Router - Could not find app: ${e.rawPath}, ${n}`;return}let a=(g=(f=i.Rules)==null?void 0:f.RuleSet.default)==null?void 0:g.SemVer;if(a==null){s.error(`could not find app ${n}, for path ${e.rawPath} - returning 404`,{statusCode:404}),t.statusCode=404,t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/plain; charset=UTF-8",t.body=`Router - Could not find app: ${e.rawPath}, ${n}`;return}let c=i.Versions.find(h=>h.SemVer===a),l;(c==null?void 0:c.Type)!=="static"&&((c==null?void 0:c.DefaultFile)===void 0||(c==null?void 0:c.DefaultFile)===""||r!=="")?(l=`/${n}/${a}`,r!==""&&(l+=`/${r}`)):l=`/${n}/${a}/${c.DefaultFile}`;let m=ile.replace("{{iframeSrc}}",l);t.headers["Cache-Control"]="no-store; private",t.headers["Content-Type"]="text/html; charset=UTF-8",t.statusCode=200,t.body=m,s.info(`found app ${n}, for path ${e.rawPath} - returning 200`,{statusCode:200,routedPath:l})}async function cle(e,t,n,r,s){let i;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{i=await Zr.Version.LoadVersion({dbManager:ii,key:{AppName:n,SemVer:r}})}catch(a){return s.info(`LoadVersion threw for '/${n}/${r}' - falling through to app routing'`,{appName:n,semVer:r,error:a}),!1}return i===void 0?(s.info(`LoadVersion returned undefined for '/${n}/${r}', assuming not found - falling through to app routing'`,{appName:n,semVer:r}),!1):(t.statusCode=302,t.headers["Cache-Control"]="no-store; private",t.headers.Location=`/${n}/${r}/${i.DefaultFile}`,s.info(`found '/${n}/${r}' - returning 302 to /${n}/${r}/${i.DefaultFile}`,{statusCode:302,routedPath:`/${n}/${r}/${i.DefaultFile}`}),!0)}0&&(module.exports={handler,overrideDBManager});
|
|
62
62
|
/*! *****************************************************************************
|
|
63
63
|
Copyright (C) Microsoft. All rights reserved.
|
|
64
64
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|