@pwrdrvr/microapps-cdk 0.0.28 → 0.0.29

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.
@@ -1,64 +1,73 @@
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
- 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+`
1
+ var cj=Object.create;var Yi=Object.defineProperty,dj=Object.defineProperties,tS=Object.getOwnPropertyDescriptor,uj=Object.getOwnPropertyDescriptors,mj=Object.getOwnPropertyNames,Ho=Object.getOwnPropertySymbols,fj=Object.getPrototypeOf,u_=Object.prototype.hasOwnProperty,nS=Object.prototype.propertyIsEnumerable;var rS=(e,t,n)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,o=(e,t)=>{for(var n in t||(t={}))u_.call(t,n)&&rS(e,n,t[n]);if(Ho)for(var n of Ho(t))nS.call(t,n)&&rS(e,n,t[n]);return e},f=(e,t)=>dj(e,uj(t)),iS=e=>Yi(e,"__esModule",{value:!0});var xr=(e,t)=>{var n={};for(var r in e)u_.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Ho)for(var r of Ho(e))t.indexOf(r)<0&&nS.call(e,r)&&(n[r]=e[r]);return n};var p=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),pj=(e,t)=>{for(var n in t)Yi(e,n,{get:t[n],enumerable:!0})},sS=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mj(t))!u_.call(e,i)&&(n||i!=="default")&&Yi(e,i,{get:()=>t[i],enumerable:!(r=tS(t,i))||r.enumerable});return e},bn=(e,t)=>sS(iS(Yi(e!=null?cj(fj(e)):{},"default",!t&&e&&e.__esModule?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),_j=(e=>(t,n)=>e&&e.get(t)||(n=sS(iS({}),t,1),e&&e.set(t,n),n))(typeof WeakMap!="undefined"?new WeakMap:0),Ji=(e,t,n,r)=>{for(var i=r>1?void 0:r?tS(t,n):t,s=e.length-1,a;s>=0;s--)(a=e[s])&&(i=(r?a(t,n,i):a(i))||i);return r&&i&&Yi(t,n,i),i};var oS=p(m_=>{var aS="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");m_.encode=function(e){if(0<=e&&e<aS.length)return aS[e];throw new TypeError("Must be between 0 and 63: "+e)};m_.decode=function(e){var t=65,n=90,r=97,i=122,s=48,a=57,l=43,c=47,d=26,u=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+d:s<=e&&e<=a?e-s+u:e==l?62:e==c?63:-1}});var __=p(p_=>{var lS=oS(),f_=5,cS=1<<f_,dS=cS-1,uS=cS;function hj(e){return e<0?(-e<<1)+1:(e<<1)+0}function gj(e){var t=(e&1)===1,n=e>>1;return t?-n:n}p_.encode=function(t){var n="",r,i=hj(t);do r=i&dS,i>>>=f_,i>0&&(r|=uS),n+=lS.encode(r);while(i>0);return n};p_.decode=function(t,n,r){var i=t.length,s=0,a=0,l,c;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=lS.decode(t.charCodeAt(n++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));l=!!(c&uS),c&=dS,s=s+(c<<a),a+=f_}while(l);r.value=gj(s),r.rest=n}});var Zi=p(pt=>{function yj(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}pt.getArg=yj;var mS=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,vj=/^data:.+\,.+$/;function fa(e){var t=e.match(mS);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}pt.urlParse=fa;function Qi(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}pt.urlGenerate=Qi;function h_(e){var t=e,n=fa(e);if(n){if(!n.path)return e;t=n.path}for(var r=pt.isAbsolute(t),i=t.split(/\/+/),s,a=0,l=i.length-1;l>=0;l--)s=i[l],s==="."?i.splice(l,1):s===".."?a++:a>0&&(s===""?(i.splice(l+1,a),a=0):(i.splice(l,2),a--));return t=i.join("/"),t===""&&(t=r?"/":"."),n?(n.path=t,Qi(n)):t}pt.normalize=h_;function fS(e,t){e===""&&(e="."),t===""&&(t=".");var n=fa(t),r=fa(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),Qi(n);if(n||t.match(vj))return t;if(r&&!r.host&&!r.path)return r.host=t,Qi(r);var i=t.charAt(0)==="/"?t:h_(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,Qi(r)):i}pt.join=fS;pt.isAbsolute=function(e){return e.charAt(0)==="/"||mS.test(e)};function bj(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)}pt.relative=bj;var pS=function(){var e=Object.create(null);return!("__proto__"in e)}();function _S(e){return e}function Sj(e){return hS(e)?"$"+e:e}pt.toSetString=pS?_S:Sj;function wj(e){return hS(e)?e.slice(1):e}pt.fromSetString=pS?_S:wj;function hS(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 Ej(e,t,n){var r=Xi(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:Xi(e.name,t.name)}pt.compareByOriginalPositions=Ej;function Aj(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=Xi(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Xi(e.name,t.name)}pt.compareByGeneratedPositionsDeflated=Aj;function Xi(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function Cj(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=Xi(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Xi(e.name,t.name)}pt.compareByGeneratedPositionsInflated=Cj;function Tj(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}pt.parseSourceMapInput=Tj;function xj(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=fa(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}t=fS(Qi(r),t)}return h_(t)}pt.computeSourceURL=xj});var v_=p(gS=>{var g_=Zi(),y_=Object.prototype.hasOwnProperty,oi=typeof Map!="undefined";function Zn(){this._array=[],this._set=oi?new Map:Object.create(null)}Zn.fromArray=function(t,n){for(var r=new Zn,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};Zn.prototype.size=function(){return oi?this._set.size:Object.getOwnPropertyNames(this._set).length};Zn.prototype.add=function(t,n){var r=oi?t:g_.toSetString(t),i=oi?this.has(t):y_.call(this._set,r),s=this._array.length;(!i||n)&&this._array.push(t),i||(oi?this._set.set(t,s):this._set[r]=s)};Zn.prototype.has=function(t){if(oi)return this._set.has(t);var n=g_.toSetString(t);return y_.call(this._set,n)};Zn.prototype.indexOf=function(t){if(oi){var n=this._set.get(t);if(n>=0)return n}else{var r=g_.toSetString(t);if(y_.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};Zn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Zn.prototype.toArray=function(){return this._array.slice()};gS.ArraySet=Zn});var bS=p(vS=>{var yS=Zi();function Ij(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||yS.compareByGeneratedPositionsInflated(e,t)<=0}function Wo(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Wo.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Wo.prototype.add=function(t){Ij(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Wo.prototype.toArray=function(){return this._sorted||(this._array.sort(yS.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};vS.MappingList=Wo});var b_=p(SS=>{var pa=__(),Be=Zi(),Yo=v_().ArraySet,Rj=bS().MappingList;function Ht(e){e||(e={}),this._file=Be.getArg(e,"file",null),this._sourceRoot=Be.getArg(e,"sourceRoot",null),this._skipValidation=Be.getArg(e,"skipValidation",!1),this._sources=new Yo,this._names=new Yo,this._mappings=new Rj,this._sourcesContents=null}Ht.prototype._version=3;Ht.fromSourceMap=function(t){var n=t.sourceRoot,r=new Ht({file:t.file,sourceRoot:n});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,n!=null&&(s.source=Be.relative(n,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),r.addMapping(s)}),t.sources.forEach(function(i){var s=i;n!==null&&(s=Be.relative(n,i)),r._sources.has(s)||r._sources.add(s);var a=t.sourceContentFor(i);a!=null&&r.setSourceContent(i,a)}),r};Ht.prototype.addMapping=function(t){var n=Be.getArg(t,"generated"),r=Be.getArg(t,"original",null),i=Be.getArg(t,"source",null),s=Be.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,r,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s})};Ht.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=Be.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Be.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[Be.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ht.prototype.applySourceMap=function(t,n,r){var i=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.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=Be.relative(s,i));var a=new Yo,l=new Yo;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var d=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});d.source!=null&&(c.source=d.source,r!=null&&(c.source=Be.join(r,c.source)),s!=null&&(c.source=Be.relative(s,c.source)),c.originalLine=d.line,c.originalColumn=d.column,d.name!=null&&(c.name=d.name))}var u=c.source;u!=null&&!a.has(u)&&a.add(u);var _=c.name;_!=null&&!l.has(_)&&l.add(_)},this),this._sources=a,this._names=l,t.sources.forEach(function(c){var d=t.sourceContentFor(c);d!=null&&(r!=null&&(c=Be.join(r,c)),s!=null&&(c=Be.relative(s,c)),this.setSourceContent(c,d))},this)};Ht.prototype._validateMapping=function(t,n,r,i){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&&!i)){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:i}))}};Ht.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,a=0,l="",c,d,u,_,g=this._mappings.toArray(),b=0,S=g.length;b<S;b++){if(d=g[b],c="",d.generatedLine!==n)for(t=0;d.generatedLine!==n;)c+=";",n++;else if(b>0){if(!Be.compareByGeneratedPositionsInflated(d,g[b-1]))continue;c+=","}c+=pa.encode(d.generatedColumn-t),t=d.generatedColumn,d.source!=null&&(_=this._sources.indexOf(d.source),c+=pa.encode(_-a),a=_,c+=pa.encode(d.originalLine-1-i),i=d.originalLine-1,c+=pa.encode(d.originalColumn-r),r=d.originalColumn,d.name!=null&&(u=this._names.indexOf(d.name),c+=pa.encode(u-s),s=u)),l+=c}return l};Ht.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=Be.relative(n,r));var i=Be.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Ht.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};Ht.prototype.toString=function(){return JSON.stringify(this.toJSON())};SS.SourceMapGenerator=Ht});var wS=p(li=>{li.GREATEST_LOWER_BOUND=1;li.LEAST_UPPER_BOUND=2;function S_(e,t,n,r,i,s){var a=Math.floor((t-e)/2)+e,l=i(n,r[a],!0);return l===0?a:l>0?t-a>1?S_(a,t,n,r,i,s):s==li.LEAST_UPPER_BOUND?t<r.length?t:-1:a:a-e>1?S_(e,a,n,r,i,s):s==li.LEAST_UPPER_BOUND?a:e<0?-1:e}li.search=function(t,n,r,i){if(n.length===0)return-1;var s=S_(-1,n.length,t,n,r,i||li.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(n[s],n[s-1],!0)===0;)--s;return s}});var AS=p(ES=>{function w_(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function Nj(e,t){return Math.round(e+Math.random()*(t-e))}function E_(e,t,n,r){if(n<r){var i=Nj(n,r),s=n-1;w_(e,i,r);for(var a=e[r],l=n;l<r;l++)t(e[l],a)<=0&&(s+=1,w_(e,s,l));w_(e,s+1,l);var c=s+1;E_(e,t,n,c-1),E_(e,t,c+1,r)}}ES.quickSort=function(e,t){E_(e,t,0,e.length-1)}});var TS=p(Jo=>{var F=Zi(),A_=wS(),es=v_().ArraySet,Pj=__(),_a=AS().quickSort;function Ne(e,t){var n=e;return typeof e=="string"&&(n=F.parseSourceMapInput(e)),n.sections!=null?new ln(n,t):new at(n,t)}Ne.fromSourceMap=function(e,t){return at.fromSourceMap(e,t)};Ne.prototype._version=3;Ne.prototype.__generatedMappings=null;Object.defineProperty(Ne.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Ne.prototype.__originalMappings=null;Object.defineProperty(Ne.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Ne.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Ne.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Ne.GENERATED_ORDER=1;Ne.ORIGINAL_ORDER=2;Ne.GREATEST_LOWER_BOUND=1;Ne.LEAST_UPPER_BOUND=2;Ne.prototype.eachMapping=function(t,n,r){var i=n||null,s=r||Ne.GENERATED_ORDER,a;switch(s){case Ne.GENERATED_ORDER:a=this._generatedMappings;break;case Ne.ORIGINAL_ORDER:a=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var l=this.sourceRoot;a.map(function(c){var d=c.source===null?null:this._sources.at(c.source);return d=F.computeSourceURL(l,d,this._sourceMapURL),{source:d,generatedLine:c.generatedLine,generatedColumn:c.generatedColumn,originalLine:c.originalLine,originalColumn:c.originalColumn,name:c.name===null?null:this._names.at(c.name)}},this).forEach(t,i)};Ne.prototype.allGeneratedPositionsFor=function(t){var n=F.getArg(t,"line"),r={source:F.getArg(t,"source"),originalLine:n,originalColumn:F.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,A_.LEAST_UPPER_BOUND);if(s>=0){var a=this._originalMappings[s];if(t.column===void 0)for(var l=a.originalLine;a&&a.originalLine===l;)i.push({line:F.getArg(a,"generatedLine",null),column:F.getArg(a,"generatedColumn",null),lastColumn:F.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s];else for(var c=a.originalColumn;a&&a.originalLine===n&&a.originalColumn==c;)i.push({line:F.getArg(a,"generatedLine",null),column:F.getArg(a,"generatedColumn",null),lastColumn:F.getArg(a,"lastGeneratedColumn",null)}),a=this._originalMappings[++s]}return i};Jo.SourceMapConsumer=Ne;function at(e,t){var n=e;typeof e=="string"&&(n=F.parseSourceMapInput(e));var r=F.getArg(n,"version"),i=F.getArg(n,"sources"),s=F.getArg(n,"names",[]),a=F.getArg(n,"sourceRoot",null),l=F.getArg(n,"sourcesContent",null),c=F.getArg(n,"mappings"),d=F.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);a&&(a=F.normalize(a)),i=i.map(String).map(F.normalize).map(function(u){return a&&F.isAbsolute(a)&&F.isAbsolute(u)?F.relative(a,u):u}),this._names=es.fromArray(s.map(String),!0),this._sources=es.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return F.computeSourceURL(a,u,t)}),this.sourceRoot=a,this.sourcesContent=l,this._mappings=c,this._sourceMapURL=t,this.file=d}at.prototype=Object.create(Ne.prototype);at.prototype.consumer=Ne;at.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=F.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};at.fromSourceMap=function(t,n){var r=Object.create(at.prototype),i=r._names=es.fromArray(t._names.toArray(),!0),s=r._sources=es.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(b){return F.computeSourceURL(r.sourceRoot,b,n)});for(var a=t._mappings.toArray().slice(),l=r.__generatedMappings=[],c=r.__originalMappings=[],d=0,u=a.length;d<u;d++){var _=a[d],g=new CS;g.generatedLine=_.generatedLine,g.generatedColumn=_.generatedColumn,_.source&&(g.source=s.indexOf(_.source),g.originalLine=_.originalLine,g.originalColumn=_.originalColumn,_.name&&(g.name=i.indexOf(_.name)),c.push(g)),l.push(g)}return _a(r.__originalMappings,F.compareByOriginalPositions),r};at.prototype._version=3;Object.defineProperty(at.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function CS(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}at.prototype._parseMappings=function(t,n){for(var r=1,i=0,s=0,a=0,l=0,c=0,d=t.length,u=0,_={},g={},b=[],S=[],v,I,L,x,re;u<d;)if(t.charAt(u)===";")r++,u++,i=0;else if(t.charAt(u)===",")u++;else{for(v=new CS,v.generatedLine=r,x=u;x<d&&!this._charIsMappingSeparator(t,x);x++);if(I=t.slice(u,x),L=_[I],L)u+=I.length;else{for(L=[];u<x;)Pj.decode(t,u,g),re=g.value,u=g.rest,L.push(re);if(L.length===2)throw new Error("Found a source, but no line and column");if(L.length===3)throw new Error("Found a source and line, but no column");_[I]=L}v.generatedColumn=i+L[0],i=v.generatedColumn,L.length>1&&(v.source=l+L[1],l+=L[1],v.originalLine=s+L[2],s=v.originalLine,v.originalLine+=1,v.originalColumn=a+L[3],a=v.originalColumn,L.length>4&&(v.name=c+L[4],c+=L[4])),S.push(v),typeof v.originalLine=="number"&&b.push(v)}_a(S,F.compareByGeneratedPositionsDeflated),this.__generatedMappings=S,_a(b,F.compareByOriginalPositions),this.__originalMappings=b};at.prototype._findMapping=function(t,n,r,i,s,a){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return A_.search(t,n,s,a)};at.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}};at.prototype.originalPositionFor=function(t){var n={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",F.compareByGeneratedPositionsDeflated,F.getArg(t,"bias",Ne.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var s=F.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=F.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var a=F.getArg(i,"name",null);return a!==null&&(a=this._names.at(a)),{source:s,line:F.getArg(i,"originalLine",null),column:F.getArg(i,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}};at.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};at.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i=t;this.sourceRoot!=null&&(i=F.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=F.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')};at.prototype.generatedPositionFor=function(t){var n=F.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:F.getArg(t,"line"),originalColumn:F.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",F.compareByOriginalPositions,F.getArg(t,"bias",Ne.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:F.getArg(s,"generatedLine",null),column:F.getArg(s,"generatedColumn",null),lastColumn:F.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Jo.BasicSourceMapConsumer=at;function ln(e,t){var n=e;typeof e=="string"&&(n=F.parseSourceMapInput(e));var r=F.getArg(n,"version"),i=F.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new es,this._names=new es;var s={line:-1,column:0};this._sections=i.map(function(a){if(a.url)throw new Error("Support for url field in sections not implemented.");var l=F.getArg(a,"offset"),c=F.getArg(l,"line"),d=F.getArg(l,"column");if(c<s.line||c===s.line&&d<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=l,{generatedOffset:{generatedLine:c+1,generatedColumn:d+1},consumer:new Ne(F.getArg(a,"map"),t)}})}ln.prototype=Object.create(Ne.prototype);ln.prototype.constructor=Ne;ln.prototype._version=3;Object.defineProperty(ln.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}});ln.prototype.originalPositionFor=function(t){var n={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},r=A_.search(n,this._sections,function(s,a){var l=s.generatedLine-a.generatedOffset.generatedLine;return l||s.generatedColumn-a.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:n.generatedLine-(i.generatedOffset.generatedLine-1),column:n.generatedColumn-(i.generatedOffset.generatedLine===n.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};ln.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};ln.prototype.sourceContentFor=function(t,n){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};ln.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex(F.getArg(t,"source"))!==-1){var i=r.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};ln.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,a=0;a<s.length;a++){var l=s[a],c=i.consumer._sources.at(l.source);c=F.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var d=null;l.name&&(d=i.consumer._names.at(l.name),this._names.add(d),d=this._names.indexOf(d));var u={source:c,generatedLine:l.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:l.generatedColumn+(i.generatedOffset.generatedLine===l.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:l.originalLine,originalColumn:l.originalColumn,name:d};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}_a(this.__generatedMappings,F.compareByGeneratedPositionsDeflated),_a(this.__originalMappings,F.compareByOriginalPositions)};Jo.IndexedSourceMapConsumer=ln});var IS=p(xS=>{var Dj=b_().SourceMapGenerator,Qo=Zi(),Oj=/(\r?\n)/,Lj=10,ts="$$$isSourceNode$$$";function Mt(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[ts]=!0,r!=null&&this.add(r)}Mt.fromStringWithSourceMap=function(t,n,r){var i=new Mt,s=t.split(Oj),a=0,l=function(){var g=S(),b=S()||"";return g+b;function S(){return a<s.length?s[a++]:void 0}},c=1,d=0,u=null;return n.eachMapping(function(g){if(u!==null)if(c<g.generatedLine)_(u,l()),c++,d=0;else{var b=s[a]||"",S=b.substr(0,g.generatedColumn-d);s[a]=b.substr(g.generatedColumn-d),d=g.generatedColumn,_(u,S),u=g;return}for(;c<g.generatedLine;)i.add(l()),c++;if(d<g.generatedColumn){var b=s[a]||"";i.add(b.substr(0,g.generatedColumn)),s[a]=b.substr(g.generatedColumn),d=g.generatedColumn}u=g},this),a<s.length&&(u&&_(u,l()),i.add(s.splice(a).join(""))),n.sources.forEach(function(g){var b=n.sourceContentFor(g);b!=null&&(r!=null&&(g=Qo.join(r,g)),i.setSourceContent(g,b))}),i;function _(g,b){if(g===null||g.source===void 0)i.add(b);else{var S=r?Qo.join(r,g.source):g.source;i.add(new Mt(g.originalLine,g.originalColumn,S,b,g.name))}}};Mt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[ts]||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};Mt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[ts]||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};Mt.prototype.walk=function(t){for(var n,r=0,i=this.children.length;r<i;r++)n=this.children[r],n[ts]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};Mt.prototype.join=function(t){var n,r,i=this.children.length;if(i>0){for(n=[],r=0;r<i-1;r++)n.push(this.children[r]),n.push(t);n.push(this.children[r]),this.children=n}return this};Mt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[ts]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};Mt.prototype.setSourceContent=function(t,n){this.sourceContents[Qo.toSetString(t)]=n};Mt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][ts]&&this.children[n].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),n=0,r=i.length;n<r;n++)t(Qo.fromSetString(i[n]),this.sourceContents[i[n]])};Mt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};Mt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new Dj(t),i=!1,s=null,a=null,l=null,c=null;return this.walk(function(d,u){n.code+=d,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||a!==u.line||l!==u.column||c!==u.name)&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:n.line,column:n.column},name:u.name}),s=u.source,a=u.line,l=u.column,c=u.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),s=null,i=!1);for(var _=0,g=d.length;_<g;_++)d.charCodeAt(_)===Lj?(n.line++,n.column=0,_+1===g?(s=null,i=!1):i&&r.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:n.line,column:n.column},name:u.name})):n.column++}),this.walkSourceContents(function(d,u){r.setSourceContent(d,u)}),{code:n.code,map:r}};xS.SourceNode=Mt});var RS=p(Xo=>{Xo.SourceMapGenerator=b_().SourceMapGenerator;Xo.SourceMapConsumer=TS().SourceMapConsumer;Xo.SourceNode=IS().SourceNode});var PS=p((mhe,NS)=>{var qj=Object.prototype.toString,C_=typeof Buffer!="undefined"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function Mj(e){return qj.call(e).slice(8,-1)==="ArrayBuffer"}function kj(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 C_?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function jj(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return C_?Buffer.from(e,t):new Buffer(e,t)}function zj(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return Mj(e)?kj(e,t,n):typeof e=="string"?jj(e,t):C_?Buffer.from(e):new Buffer(e)}NS.exports=zj});var zS=p((di,O_)=>{var Uj=RS().SourceMapConsumer,T_=require("path"),Sn;try{Sn=require("fs"),(!Sn.existsSync||!Sn.readFileSync)&&(Sn=null)}catch{}var Fj=PS();function DS(e,t){return e.require(t)}var OS=!1,LS=!1,x_=!1,ha="auto",ci={},ga={},Bj=/^data:application\/json[^,]+base64,/,Ir=[],Rr=[];function I_(){return ha==="browser"?!0:ha==="node"?!1:typeof window!="undefined"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function Gj(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function $j(){return typeof process=="object"&&process!==null?process.version:""}function Kj(){if(typeof process=="object"&&process!==null)return process.stderr}function Vj(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Zo(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var R_=Zo(Ir);Ir.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,i){return i?"":"/"})),e in ci)return ci[e];var t="";try{if(Sn)Sn.existsSync(e)&&(t=Sn.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{}return ci[e]=t});function N_(e,t){if(!e)return t;var n=T_.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"",s=n.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+T_.resolve(n.slice(i.length),t).replace(/\\/g,"/")):i+T_.resolve(n.slice(i.length),t)}function Hj(e){var t;if(I_())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{}t=R_(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,a;a=i.exec(t);)s=a;return s?s[1]:null}var P_=Zo(Rr);Rr.push(function(e){var t=Hj(e);if(!t)return null;var n;if(Bj.test(t)){var r=t.slice(t.indexOf(",")+1);n=Fj(r,"base64").toString(),t=e}else t=N_(e,t),n=R_(t);return n?{url:t,map:n}:null});function D_(e){var t=ga[e.source];if(!t){var n=P_(e.source);n?(t=ga[e.source]={url:n.url,map:new Uj(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var a=t.map.sourcesContent[s];if(a){var l=N_(t.url,i);ci[l]=a}})):t=ga[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=N_(t.url,r.source),r}return e}function qS(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=D_({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]+" ("+qS(t[2])+")":e}function Wj(){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 i="",s=this.getFunctionName(),a=!0,l=this.isConstructor(),c=!(this.isToplevel()||l);if(c){var d=this.getTypeName();d==="[object Object]"&&(d="null");var u=this.getMethodName();s?(d&&s.indexOf(d)!=0&&(i+=d+"."),i+=s,u&&s.indexOf("."+u)!=s.length-u.length-1&&(i+=" [as "+u+"]")):i+=d+"."+(u||"<anonymous>")}else l?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,a=!1);return a&&(i+=" ("+t+")"),i}function MS(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=Wj,t}function kS(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(),i=e.getColumnNumber()-1,s=/^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=s.test($j())?0:62;r===1&&i>a&&!I_()&&!e.isEval()&&(i-=a);var l=D_({source:n,line:r,column:i});t.curPosition=l,e=MS(e);var c=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?c():t.nextPosition.name||c()},e.getFileName=function(){return l.source},e.getLineNumber=function(){return l.line},e.getColumnNumber=function(){return l.column+1},e.getScriptNameOrSourceURL=function(){return l.source},e}var d=e.isEval()&&e.getEvalOrigin();return d&&(d=qS(d),e=MS(e),e.getEvalOrigin=function(){return d}),e}function Yj(e,t){x_&&(ci={},ga={});for(var n=e.name||"Error",r=e.message||"",i=n+": "+r,s={nextPosition:null,curPosition:null},a=[],l=t.length-1;l>=0;l--)a.push(`
2
+ at `+kS(t[l],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+a.reverse().join("")}function jS(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],s=ci[n];if(!s&&Sn&&Sn.existsSync(n))try{s=Sn.readFileSync(n,"utf8")}catch{s=""}if(s){var a=s.split(/(?:\r\n|\r|\n)/)[r-1];if(a)return n+":"+r+`
3
3
  `+a+`
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
- `,this.newLine=`
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}
4
+ `+new Array(i).join(" ")+"^"}}return null}function Jj(e){var t=jS(e),n=Kj();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),Vj(1)}function Qj(){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 Jj(arguments[1])}return e.apply(this,arguments)}}var Xj=Ir.slice(0),Zj=Rr.slice(0);di.wrapCallSite=kS;di.getErrorSource=jS;di.mapSourcePosition=D_;di.retrieveSourceMap=P_;di.install=function(e){if(e=e||{},e.environment&&(ha=e.environment,["node","browser","auto"].indexOf(ha)===-1))throw new Error("environment "+ha+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Ir.length=0),Ir.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Rr.length=0),Rr.unshift(e.retrieveSourceMap)),e.hookRequire&&!I_()){var t=DS(O_,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(s,a){return ci[a]=s,ga[a]=void 0,n.call(this,s,a)},t.prototype._compile.__sourceMapSupport=!0)}if(x_||(x_="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),OS||(OS=!0,Error.prepareStackTrace=Yj),!LS){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=DS(O_,"worker_threads");i.isMainThread===!1&&(r=!1)}catch{}r&&Gj()&&(LS=!0,Qj())}};di.resetRetrieveHandlers=function(){Ir.length=0,Rr.length=0,Ir=Xj.slice(0),Rr=Zj.slice(0),P_=Zo(Rr),R_=Zo(Ir)}});var se=p((fhe,nl)=>{var FS,BS,GS,$S,KS,VS,HS,WS,YS,el,L_,JS,QS,XS,ns,ZS,ew,tw,nw,rw,iw,sw,aw,tl;(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 nl=="object"&&typeof nl.exports=="object"?e(n(t,n(nl.exports))):e(n(t));function n(r,i){return r!==t&&(typeof Object.create=="function"?Object.defineProperty(r,"__esModule",{value:!0}):r.__esModule=!0),function(s,a){return r[s]=i?i(s,a):a}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])};FS=function(r,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(r,i);function s(){this.constructor=r}r.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},BS=Object.assign||function(r){for(var i,s=1,a=arguments.length;s<a;s++){i=arguments[s];for(var l in i)Object.prototype.hasOwnProperty.call(i,l)&&(r[l]=i[l])}return r},GS=function(r,i){var s={};for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&i.indexOf(a)<0&&(s[a]=r[a]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(r);l<a.length;l++)i.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(r,a[l])&&(s[a[l]]=r[a[l]]);return s},$S=function(r,i,s,a){var l=arguments.length,c=l<3?i:a===null?a=Object.getOwnPropertyDescriptor(i,s):a,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,i,s,a);else for(var u=r.length-1;u>=0;u--)(d=r[u])&&(c=(l<3?d(c):l>3?d(i,s,c):d(i,s))||c);return l>3&&c&&Object.defineProperty(i,s,c),c},KS=function(r,i){return function(s,a){i(s,a,r)}},VS=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},HS=function(r,i,s,a){function l(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function u(b){try{g(a.next(b))}catch(S){d(S)}}function _(b){try{g(a.throw(b))}catch(S){d(S)}}function g(b){b.done?c(b.value):l(b.value).then(u,_)}g((a=a.apply(r,i||[])).next())})},WS=function(r,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},a,l,c,d;return d={next:u(0),throw:u(1),return:u(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function u(g){return function(b){return _([g,b])}}function _(g){if(a)throw new TypeError("Generator is already executing.");for(;s;)try{if(a=1,l&&(c=g[0]&2?l.return:g[0]?l.throw||((c=l.return)&&c.call(l),0):l.next)&&!(c=c.call(l,g[1])).done)return c;switch(l=0,c&&(g=[g[0]&2,c.value]),g[0]){case 0:case 1:c=g;break;case 4:return s.label++,{value:g[1],done:!1};case 5:s.label++,l=g[1],g=[0];continue;case 7:g=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(g[0]===6||g[0]===2)){s=0;continue}if(g[0]===3&&(!c||g[1]>c[0]&&g[1]<c[3])){s.label=g[1];break}if(g[0]===6&&s.label<c[1]){s.label=c[1],c=g;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(g);break}c[2]&&s.ops.pop(),s.trys.pop();continue}g=i.call(r,s)}catch(b){g=[6,b],l=0}finally{a=c=0}if(g[0]&5)throw g[1];return{value:g[0]?g[1]:void 0,done:!0}}},YS=function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&tl(i,r,s)},tl=Object.create?function(r,i,s,a){a===void 0&&(a=s),Object.defineProperty(r,a,{enumerable:!0,get:function(){return i[s]}})}:function(r,i,s,a){a===void 0&&(a=s),r[a]=i[s]},el=function(r){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&r[i],a=0;if(s)return s.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(i?"Object is not iterable.":"Symbol.iterator is not defined.")},L_=function(r,i){var s=typeof Symbol=="function"&&r[Symbol.iterator];if(!s)return r;var a=s.call(r),l,c=[],d;try{for(;(i===void 0||i-- >0)&&!(l=a.next()).done;)c.push(l.value)}catch(u){d={error:u}}finally{try{l&&!l.done&&(s=a.return)&&s.call(a)}finally{if(d)throw d.error}}return c},JS=function(){for(var r=[],i=0;i<arguments.length;i++)r=r.concat(L_(arguments[i]));return r},QS=function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;for(var a=Array(r),l=0,i=0;i<s;i++)for(var c=arguments[i],d=0,u=c.length;d<u;d++,l++)a[l]=c[d];return a},XS=function(r,i,s){if(s||arguments.length===2)for(var a=0,l=i.length,c;a<l;a++)(c||!(a in i))&&(c||(c=Array.prototype.slice.call(i,0,a)),c[a]=i[a]);return r.concat(c||Array.prototype.slice.call(i))},ns=function(r){return this instanceof ns?(this.v=r,this):new ns(r)},ZS=function(r,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var a=s.apply(r,i||[]),l,c=[];return l={},d("next"),d("throw"),d("return"),l[Symbol.asyncIterator]=function(){return this},l;function d(v){a[v]&&(l[v]=function(I){return new Promise(function(L,x){c.push([v,I,L,x])>1||u(v,I)})})}function u(v,I){try{_(a[v](I))}catch(L){S(c[0][3],L)}}function _(v){v.value instanceof ns?Promise.resolve(v.value.v).then(g,b):S(c[0][2],v)}function g(v){u("next",v)}function b(v){u("throw",v)}function S(v,I){v(I),c.shift(),c.length&&u(c[0][0],c[0][1])}},ew=function(r){var i,s;return i={},a("next"),a("throw",function(l){throw l}),a("return"),i[Symbol.iterator]=function(){return this},i;function a(l,c){i[l]=r[l]?function(d){return(s=!s)?{value:ns(r[l](d)),done:l==="return"}:c?c(d):d}:c}},tw=function(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=r[Symbol.asyncIterator],s;return i?i.call(r):(r=typeof el=="function"?el(r):r[Symbol.iterator](),s={},a("next"),a("throw"),a("return"),s[Symbol.asyncIterator]=function(){return this},s);function a(c){s[c]=r[c]&&function(d){return new Promise(function(u,_){d=r[c](d),l(u,_,d.done,d.value)})}}function l(c,d,u,_){Promise.resolve(_).then(function(g){c({value:g,done:u})},d)}},nw=function(r,i){return Object.defineProperty?Object.defineProperty(r,"raw",{value:i}):r.raw=i,r};var n=Object.create?function(r,i){Object.defineProperty(r,"default",{enumerable:!0,value:i})}:function(r,i){r.default=i};rw=function(r){if(r&&r.__esModule)return r;var i={};if(r!=null)for(var s in r)s!=="default"&&Object.prototype.hasOwnProperty.call(r,s)&&tl(i,r,s);return n(i,r),i},iw=function(r){return r&&r.__esModule?r:{default:r}},sw=function(r,i,s,a){if(s==="a"&&!a)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!a:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?a:s==="a"?a.call(r):a?a.value:i.get(r)},aw=function(r,i,s,a,l){if(a==="m")throw new TypeError("Private method is not writable");if(a==="a"&&!l)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?r!==i||!l:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return a==="a"?l.call(r,s):l?l.value=s:i.set(r,s),s},e("__extends",FS),e("__assign",BS),e("__rest",GS),e("__decorate",$S),e("__param",KS),e("__metadata",VS),e("__awaiter",HS),e("__generator",WS),e("__exportStar",YS),e("__createBinding",tl),e("__values",el),e("__read",L_),e("__spread",JS),e("__spreadArrays",QS),e("__spreadArray",XS),e("__await",ns),e("__asyncGenerator",ZS),e("__asyncDelegator",ew),e("__asyncValues",tw),e("__makeTemplateObject",nw),e("__importStar",rw),e("__importDefault",iw),e("__classPrivateFieldGet",sw),e("__classPrivateFieldSet",aw)})});var q_=p(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.deserializerMiddleware=void 0;var ez=(e,t)=>(n,r)=>async i=>{let{response:s}=await n(i);try{let a=await t(s,e);return{response:s,output:a}}catch(a){throw Object.assign(a,{$response:s})}};rl.deserializerMiddleware=ez});var M_=p(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.serializerMiddleware=void 0;var tz=(e,t)=>(n,r)=>async i=>{let s=await t(i.input,e);return n(f(o({},i),{request:s}))};il.serializerMiddleware=tz});var ow=p(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getSerdePlugin=wn.serializerMiddlewareOption=wn.deserializerMiddlewareOption=void 0;var nz=q_(),rz=M_();wn.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};wn.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function iz(e,t,n){return{applyToStack:r=>{r.add(nz.deserializerMiddleware(e,n),wn.deserializerMiddlewareOption),r.add(rz.serializerMiddleware(e,t),wn.serializerMiddlewareOption)}}}wn.getSerdePlugin=iz});var B=p(ya=>{"use strict";Object.defineProperty(ya,"__esModule",{value:!0});var k_=se();k_.__exportStar(q_(),ya);k_.__exportStar(ow(),ya);k_.__exportStar(M_(),ya)});var dw=p(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});rs.constructStack=void 0;var sz=()=>{let e=[],t=[],n=new Set,r=u=>u.sort((_,g)=>lw[g.step]-lw[_.step]||cw[g.priority||"normal"]-cw[_.priority||"normal"]),i=u=>{let _=!1,g=b=>b.name&&b.name===u?(_=!0,n.delete(u),!1):!0;return e=e.filter(g),t=t.filter(g),_},s=u=>{let _=!1,g=b=>b.middleware===u?(_=!0,b.name&&n.delete(b.name),!1):!0;return e=e.filter(g),t=t.filter(g),_},a=u=>(e.forEach(_=>{u.add(_.middleware,o({},_))}),t.forEach(_=>{u.addRelativeTo(_.middleware,o({},_))}),u),l=u=>{let _=[];return u.before.forEach(g=>{g.before.length===0&&g.after.length===0?_.push(g):_.push(...l(g))}),_.push(u),u.after.reverse().forEach(g=>{g.before.length===0&&g.after.length===0?_.push(g):_.push(...l(g))}),_},c=()=>{let u=[],_=[],g={};return e.forEach(S=>{let v=f(o({},S),{before:[],after:[]});v.name&&(g[v.name]=v),u.push(v)}),t.forEach(S=>{let v=f(o({},S),{before:[],after:[]});v.name&&(g[v.name]=v),_.push(v)}),_.forEach(S=>{if(S.toMiddleware){let v=g[S.toMiddleware];if(v===void 0)throw new Error(`${S.toMiddleware} is not found when adding ${S.name||"anonymous"} middleware ${S.relation} ${S.toMiddleware}`);S.relation==="after"&&v.after.push(S),S.relation==="before"&&v.before.push(S)}}),r(u).map(l).reduce((S,v)=>(S.push(...v),S),[]).map(S=>S.middleware)},d={add:(u,_={})=>{let{name:g,override:b}=_,S=o({step:"initialize",priority:"normal",middleware:u},_);if(g){if(n.has(g)){if(!b)throw new Error(`Duplicate middleware name '${g}'`);let v=e.findIndex(L=>L.name===g),I=e[v];if(I.step!==S.step||I.priority!==S.priority)throw new Error(`"${g}" middleware with ${I.priority} priority in ${I.step} step cannot be overridden by same-name middleware with ${S.priority} priority in ${S.step} step.`);e.splice(v,1)}n.add(g)}e.push(S)},addRelativeTo:(u,_)=>{let{name:g,override:b}=_,S=o({middleware:u},_);if(g){if(n.has(g)){if(!b)throw new Error(`Duplicate middleware name '${g}'`);let v=t.findIndex(L=>L.name===g),I=t[v];if(I.toMiddleware!==S.toMiddleware||I.relation!==S.relation)throw new Error(`"${g}" middleware ${I.relation} "${I.toMiddleware}" middleware cannot be overridden by same-name middleware ${S.relation} "${S.toMiddleware}" middleware.`);t.splice(v,1)}n.add(g)}t.push(S)},clone:()=>a(rs.constructStack()),use:u=>{u.applyToStack(d)},remove:u=>typeof u=="string"?i(u):s(u),removeByTag:u=>{let _=!1,g=b=>{let{tags:S,name:v}=b;return S&&S.includes(u)?(v&&n.delete(v),_=!0,!1):!0};return e=e.filter(g),t=t.filter(g),_},concat:u=>{let _=a(rs.constructStack());return _.use(u),_},applyToStack:a,resolve:(u,_)=>{for(let g of c().reverse())u=g(u,_);return u}};return d};rs.constructStack=sz;var lw={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},cw={high:3,normal:2,low:1}});var z_=p(j_=>{"use strict";Object.defineProperty(j_,"__esModule",{value:!0});var az=se();az.__exportStar(dw(),j_)});var mw=p(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.Client=void 0;var oz=z_(),uw=class{constructor(t){this.middlewareStack=oz.constructStack(),this.config=t}send(t,n,r){let i=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,a=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)a(t).then(l=>s(null,l.output),l=>s(l)).catch(()=>{});else return a(t).then(l=>l.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};sl.Client=uw});var pw=p(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.Command=void 0;var lz=z_(),fw=class{constructor(){this.middlewareStack=lz.constructStack()}};al.Command=fw});var _w=p(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.SENSITIVE_STRING=void 0;ol.SENSITIVE_STRING="***SensitiveInformation***"});var F_=p(M=>{"use strict";Object.defineProperty(M,"__esModule",{value:!0});M.strictParseByte=M.strictParseShort=M.strictParseInt32=M.strictParseInt=M.strictParseLong=M.limitedParseFloat32=M.limitedParseFloat=M.handleFloat=M.limitedParseDouble=M.strictParseFloat32=M.strictParseFloat=M.strictParseDouble=M.expectUnion=M.expectString=M.expectObject=M.expectNonNull=M.expectByte=M.expectShort=M.expectInt32=M.expectInt=M.expectLong=M.expectFloat32=M.expectNumber=M.expectBoolean=M.parseBoolean=void 0;var cz=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};M.parseBoolean=cz;var dz=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};M.expectBoolean=dz;var uz=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};M.expectNumber=uz;var mz=Math.ceil(2**127*(2-2**-23)),fz=e=>{let t=M.expectNumber(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>mz)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};M.expectFloat32=fz;var pz=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};M.expectLong=pz;M.expectInt=M.expectLong;var _z=e=>U_(e,32);M.expectInt32=_z;var hz=e=>U_(e,16);M.expectShort=hz;var gz=e=>U_(e,8);M.expectByte=gz;var U_=(e,t)=>{let n=M.expectLong(e);if(n!==void 0&&yz(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},yz=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},vz=(e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e};M.expectNonNull=vz;var bz=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};M.expectObject=bz;var Sz=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};M.expectString=Sz;var wz=e=>{if(e==null)return;let t=M.expectObject(e),n=Object.entries(t).filter(([r,i])=>i!=null).map(([r,i])=>r);if(n.length===0)throw new TypeError("Unions must have exactly one non-null member");if(n.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t};M.expectUnion=wz;var Ez=e=>typeof e=="string"?M.expectNumber(is(e)):M.expectNumber(e);M.strictParseDouble=Ez;M.strictParseFloat=M.strictParseDouble;var Az=e=>typeof e=="string"?M.expectFloat32(is(e)):M.expectFloat32(e);M.strictParseFloat32=Az;var Cz=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,is=e=>{let t=e.match(Cz);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},Tz=e=>typeof e=="string"?hw(e):M.expectNumber(e);M.limitedParseDouble=Tz;M.handleFloat=M.limitedParseDouble;M.limitedParseFloat=M.limitedParseDouble;var xz=e=>typeof e=="string"?hw(e):M.expectFloat32(e);M.limitedParseFloat32=xz;var hw=e=>{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}`)}},Iz=e=>typeof e=="string"?M.expectLong(is(e)):M.expectLong(e);M.strictParseLong=Iz;M.strictParseInt=M.strictParseLong;var Rz=e=>typeof e=="string"?M.expectInt32(is(e)):M.expectInt32(e);M.strictParseInt32=Rz;var Nz=e=>typeof e=="string"?M.expectShort(is(e)):M.expectShort(e);M.strictParseShort=Nz;var Pz=e=>typeof e=="string"?M.expectByte(is(e)):M.expectByte(e);M.strictParseByte=Pz});var gw=p(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.parseEpochTimestamp=En.parseRfc7231DateTime=En.parseRfc3339DateTime=En.dateToUtcString=void 0;var ui=F_(),Dz=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],B_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Oz(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),l=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,d=s<10?`0${s}`:`${s}`,u=a<10?`0${a}`:`${a}`,_=l<10?`0${l}`:`${l}`;return`${Dz[r]}, ${c} ${B_[n]} ${t} ${d}:${u}:${_} GMT`}En.dateToUtcString=Oz;var Lz=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),qz=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=Lz.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,i,s,a,l,c,d]=t,u=ui.strictParseShort(va(r)),_=Nr(i,"month",1,12),g=Nr(s,"day",1,31);return ll(u,_,g,{hours:a,minutes:l,seconds:c,fractionalMilliseconds:d})};En.parseRfc3339DateTime=qz;var Mz=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),kz=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),jz=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),zz=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Mz.exec(e);if(t){let[n,r,i,s,a,l,c,d]=t;return ll(ui.strictParseShort(va(s)),G_(i),Nr(r,"day",1,31),{hours:a,minutes:l,seconds:c,fractionalMilliseconds:d})}if(t=kz.exec(e),t){let[n,r,i,s,a,l,c,d]=t;return Gz(ll(Fz(s),G_(i),Nr(r,"day",1,31),{hours:a,minutes:l,seconds:c,fractionalMilliseconds:d}))}if(t=jz.exec(e),t){let[n,r,i,s,a,l,c,d]=t;return ll(ui.strictParseShort(va(d)),G_(r),Nr(i.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:l,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};En.parseRfc7231DateTime=zz;var Uz=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=ui.strictParseDouble(e);else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))};En.parseEpochTimestamp=Uz;var ll=(e,t,n,r)=>{let i=t-1;return Kz(e,i,n),new Date(Date.UTC(e,i,n,Nr(r.hours,"hour",0,23),Nr(r.minutes,"minute",0,59),Nr(r.seconds,"seconds",0,60),Hz(r.fractionalMilliseconds)))},Fz=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+ui.strictParseShort(va(e));return n<t?n+100:n},Bz=50*365*24*60*60*1e3,Gz=e=>e.getTime()-new Date().getTime()>Bz?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,G_=e=>{let t=B_.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},$z=[31,28,31,30,31,30,31,31,30,31,30,31],Kz=(e,t,n)=>{let r=$z[t];if(t===1&&Vz(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${B_[t]} in ${e}: ${n}`)},Vz=e=>e%4===0&&(e%100!==0||e%400===0),Nr=(e,t,n,r)=>{let i=ui.strictParseByte(va(e));if(i<n||i>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},Hz=e=>e==null?0:ui.strictParseFloat32("0."+e)*1e3,va=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var yw=p(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.loadConfigsForDefaultMode=void 0;var Wz=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}};cl.loadConfigsForDefaultMode=Wz});var bw=p(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.emitWarningIfUnsupportedVersion=void 0;var vw=!1,Yz=e=>{e&&!vw&&parseInt(e.substring(1,e.indexOf(".")))<12&&(vw=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
5
+ no longer support Node.js ${e} as of January 1, 2022.
6
+ To continue receiving updates to AWS services, bug fixes, and security
7
+ updates please upgrade to Node.js 12.x or later.
8
+
9
+ More information can be found at: https://a.co/1l6FLnu`,"NodeDeprecationWarning"))};dl.emitWarningIfUnsupportedVersion=Yz});var Sw=p(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.extendedEncodeURIComponent=void 0;function Jz(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}ul.extendedEncodeURIComponent=Jz});var ww=p(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.getArrayIfSingleItem=void 0;var Qz=e=>Array.isArray(e)?e:[e];ml.getArrayIfSingleItem=Qz});var Ew=p(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.getValueFromTextNode=void 0;var Xz=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]=ba.getValueFromTextNode(e[n]));return e};ba.getValueFromTextNode=Xz});var Aw=p(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.LazyJsonString=An.StringWrapper=void 0;var Zz=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};An.StringWrapper=Zz;An.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:An.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(An.StringWrapper,String);var ss=class extends An.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof ss?t:t instanceof String||typeof t=="string"?new ss(t):new ss(JSON.stringify(t))}};An.LazyJsonString=ss});var Cw=p(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.serializeFloat=void 0;var eU=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};fl.serializeFloat=eU});var Tw=p(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.splitEvery=void 0;function tU(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 i=[],s="";for(let a=0;a<r.length;a++)s===""?s=r[a]:s+=t+r[a],(a+1)%n===0&&(i.push(s),s="");return s!==""&&i.push(s),i}pl.splitEvery=tU});var q=p(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});var kt=se();kt.__exportStar(mw(),St);kt.__exportStar(pw(),St);kt.__exportStar(_w(),St);kt.__exportStar(gw(),St);kt.__exportStar(yw(),St);kt.__exportStar(bw(),St);kt.__exportStar(Sw(),St);kt.__exportStar(ww(),St);kt.__exportStar(Ew(),St);kt.__exportStar(Aw(),St);kt.__exportStar(F_(),St);kt.__exportStar(Cw(),St);kt.__exportStar(Tw(),St)});var H=p(m=>{"use strict";Object.defineProperty(m,"__esModule",{value:!0});m.Tag=m.SSESpecification=m.LocalSecondaryIndex=m.GlobalSecondaryIndex=m.CreateReplicationGroupMemberAction=m.ReplicaGlobalSecondaryIndex=m.CreateReplicaAction=m.CreateGlobalTableOutput=m.GlobalTableDescription=m.ReplicaDescription=m.TableClassSummary=m.TableClass=m.ReplicaGlobalSecondaryIndexDescription=m.ProvisionedThroughputOverride=m.CreateGlobalTableInput=m.Replica=m.CreateGlobalSecondaryIndexAction=m.CreateBackupOutput=m.CreateBackupInput=m.ContributorInsightsSummary=m.ContinuousBackupsDescription=m.PointInTimeRecoveryDescription=m.BillingModeSummary=m.BatchStatementError=m.BatchStatementErrorCodeEnum=m.ConsumedCapacity=m.Capacity=m.BackupTypeFilter=m.BackupSummary=m.BackupDescription=m.SourceTableFeatureDetails=m.TimeToLiveDescription=m.StreamSpecification=m.SSEDescription=m.LocalSecondaryIndexInfo=m.GlobalSecondaryIndexInfo=m.Projection=m.SourceTableDetails=m.ProvisionedThroughput=m.KeySchemaElement=m.BackupDetails=m.BackupType=m.AutoScalingSettingsUpdate=m.AutoScalingSettingsDescription=m.AutoScalingPolicyUpdate=m.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=m.AutoScalingPolicyDescription=m.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=m.AttributeDefinition=m.ArchivalSummary=void 0;m.KinesisStreamingDestinationInput=m.DescribeTimeToLiveOutput=m.DescribeTimeToLiveInput=m.DescribeTableReplicaAutoScalingOutput=m.TableAutoScalingDescription=m.ReplicaAutoScalingDescription=m.ReplicaGlobalSecondaryIndexAutoScalingDescription=m.DescribeTableReplicaAutoScalingInput=m.DescribeTableOutput=m.DescribeTableInput=m.DescribeLimitsOutput=m.DescribeLimitsInput=m.DescribeKinesisStreamingDestinationOutput=m.KinesisDataStreamDestination=m.DescribeKinesisStreamingDestinationInput=m.DescribeGlobalTableSettingsOutput=m.ReplicaSettingsDescription=m.ReplicaGlobalSecondaryIndexSettingsDescription=m.DescribeGlobalTableSettingsInput=m.DescribeGlobalTableOutput=m.DescribeGlobalTableInput=m.DescribeExportOutput=m.ExportDescription=m.ExportStatus=m.ExportFormat=m.DescribeExportInput=m.DescribeEndpointsResponse=m.Endpoint=m.DescribeEndpointsRequest=m.DescribeContributorInsightsOutput=m.FailureException=m.DescribeContributorInsightsInput=m.DescribeContinuousBackupsOutput=m.DescribeContinuousBackupsInput=m.DescribeBackupOutput=m.DescribeBackupInput=m.DeleteTableOutput=m.DeleteTableInput=m.DeleteReplicationGroupMemberAction=m.DeleteReplicaAction=m.DeleteGlobalSecondaryIndexAction=m.DeleteBackupOutput=m.DeleteBackupInput=m.CreateTableOutput=m.TableDescription=m.RestoreSummary=m.LocalSecondaryIndexDescription=m.GlobalSecondaryIndexDescription=m.ProvisionedThroughputDescription=m.CreateTableInput=void 0;m.UpdateTimeToLiveOutput=m.UpdateTimeToLiveInput=m.TimeToLiveSpecification=m.UpdateTableReplicaAutoScalingOutput=m.UpdateTableReplicaAutoScalingInput=m.ReplicaAutoScalingUpdate=m.ReplicaGlobalSecondaryIndexAutoScalingUpdate=m.GlobalSecondaryIndexAutoScalingUpdate=m.UpdateTableOutput=m.UpdateTableInput=m.ReplicationGroupUpdate=m.UpdateReplicationGroupMemberAction=m.GlobalSecondaryIndexUpdate=m.UpdateGlobalSecondaryIndexAction=m.UpdateGlobalTableSettingsOutput=m.UpdateGlobalTableSettingsInput=m.ReplicaSettingsUpdate=m.ReplicaGlobalSecondaryIndexSettingsUpdate=m.GlobalTableGlobalSecondaryIndexSettingsUpdate=m.UpdateGlobalTableOutput=m.UpdateGlobalTableInput=m.ReplicaUpdate=m.UpdateContributorInsightsOutput=m.UpdateContributorInsightsInput=m.UpdateContinuousBackupsOutput=m.UpdateContinuousBackupsInput=m.PointInTimeRecoverySpecification=m.UntagResourceInput=m.TagResourceInput=m.RestoreTableToPointInTimeOutput=m.RestoreTableToPointInTimeInput=m.RestoreTableFromBackupOutput=m.RestoreTableFromBackupInput=m.ListTagsOfResourceOutput=m.ListTagsOfResourceInput=m.ListTablesOutput=m.ListTablesInput=m.ListGlobalTablesOutput=m.GlobalTable=m.ListGlobalTablesInput=m.ListExportsOutput=m.ExportSummary=m.ListExportsInput=m.ListContributorInsightsOutput=m.ListContributorInsightsInput=m.ListBackupsOutput=m.ListBackupsInput=m.ExportTableToPointInTimeOutput=m.ExportTableToPointInTimeInput=m.KinesisStreamingDestinationOutput=void 0;m.TransactWriteItemsInput=m.TransactWriteItem=m.UpdateItemInput=m.BatchWriteItemOutput=m.QueryInput=m.PutItemInput=m.DeleteItemInput=m.BatchWriteItemInput=m.ScanInput=m.BatchGetItemOutput=m.WriteRequest=m.UpdateItemOutput=m.ScanOutput=m.QueryOutput=m.PutItemOutput=m.DeleteItemOutput=m.Update=m.Put=m.Delete=m.ConditionCheck=m.TransactWriteItemsOutput=m.TransactGetItemsInput=m.ExpectedAttributeValue=m.BatchGetItemInput=m.TransactGetItemsOutput=m.ExecuteTransactionOutput=m.ExecuteTransactionInput=m.BatchExecuteStatementOutput=m.BatchExecuteStatementInput=m.TransactGetItem=m.KeysAndAttributes=m.ExecuteStatementOutput=m.PutRequest=m.ParameterizedStatement=m.ItemResponse=m.ItemCollectionMetrics=m.GetItemOutput=m.GetItemInput=m.Get=m.ExecuteStatementInput=m.DeleteRequest=m.Condition=m.CancellationReason=m.BatchStatementResponse=m.BatchStatementRequest=m.AttributeValueUpdate=m.AttributeValue=void 0;var nU;(function(e){e.filterSensitiveLog=t=>o({},t)})(nU=m.ArchivalSummary||(m.ArchivalSummary={}));var rU;(function(e){e.filterSensitiveLog=t=>o({},t)})(rU=m.AttributeDefinition||(m.AttributeDefinition={}));var iU;(function(e){e.filterSensitiveLog=t=>o({},t)})(iU=m.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(m.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var sU;(function(e){e.filterSensitiveLog=t=>o({},t)})(sU=m.AutoScalingPolicyDescription||(m.AutoScalingPolicyDescription={}));var aU;(function(e){e.filterSensitiveLog=t=>o({},t)})(aU=m.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(m.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var oU;(function(e){e.filterSensitiveLog=t=>o({},t)})(oU=m.AutoScalingPolicyUpdate||(m.AutoScalingPolicyUpdate={}));var lU;(function(e){e.filterSensitiveLog=t=>o({},t)})(lU=m.AutoScalingSettingsDescription||(m.AutoScalingSettingsDescription={}));var cU;(function(e){e.filterSensitiveLog=t=>o({},t)})(cU=m.AutoScalingSettingsUpdate||(m.AutoScalingSettingsUpdate={}));var dU;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(dU=m.BackupType||(m.BackupType={}));var uU;(function(e){e.filterSensitiveLog=t=>o({},t)})(uU=m.BackupDetails||(m.BackupDetails={}));var mU;(function(e){e.filterSensitiveLog=t=>o({},t)})(mU=m.KeySchemaElement||(m.KeySchemaElement={}));var fU;(function(e){e.filterSensitiveLog=t=>o({},t)})(fU=m.ProvisionedThroughput||(m.ProvisionedThroughput={}));var pU;(function(e){e.filterSensitiveLog=t=>o({},t)})(pU=m.SourceTableDetails||(m.SourceTableDetails={}));var _U;(function(e){e.filterSensitiveLog=t=>o({},t)})(_U=m.Projection||(m.Projection={}));var hU;(function(e){e.filterSensitiveLog=t=>o({},t)})(hU=m.GlobalSecondaryIndexInfo||(m.GlobalSecondaryIndexInfo={}));var gU;(function(e){e.filterSensitiveLog=t=>o({},t)})(gU=m.LocalSecondaryIndexInfo||(m.LocalSecondaryIndexInfo={}));var yU;(function(e){e.filterSensitiveLog=t=>o({},t)})(yU=m.SSEDescription||(m.SSEDescription={}));var vU;(function(e){e.filterSensitiveLog=t=>o({},t)})(vU=m.StreamSpecification||(m.StreamSpecification={}));var bU;(function(e){e.filterSensitiveLog=t=>o({},t)})(bU=m.TimeToLiveDescription||(m.TimeToLiveDescription={}));var SU;(function(e){e.filterSensitiveLog=t=>o({},t)})(SU=m.SourceTableFeatureDetails||(m.SourceTableFeatureDetails={}));var wU;(function(e){e.filterSensitiveLog=t=>o({},t)})(wU=m.BackupDescription||(m.BackupDescription={}));var EU;(function(e){e.filterSensitiveLog=t=>o({},t)})(EU=m.BackupSummary||(m.BackupSummary={}));var AU;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(AU=m.BackupTypeFilter||(m.BackupTypeFilter={}));var CU;(function(e){e.filterSensitiveLog=t=>o({},t)})(CU=m.Capacity||(m.Capacity={}));var TU;(function(e){e.filterSensitiveLog=t=>o({},t)})(TU=m.ConsumedCapacity||(m.ConsumedCapacity={}));var xU;(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"})(xU=m.BatchStatementErrorCodeEnum||(m.BatchStatementErrorCodeEnum={}));var IU;(function(e){e.filterSensitiveLog=t=>o({},t)})(IU=m.BatchStatementError||(m.BatchStatementError={}));var RU;(function(e){e.filterSensitiveLog=t=>o({},t)})(RU=m.BillingModeSummary||(m.BillingModeSummary={}));var NU;(function(e){e.filterSensitiveLog=t=>o({},t)})(NU=m.PointInTimeRecoveryDescription||(m.PointInTimeRecoveryDescription={}));var PU;(function(e){e.filterSensitiveLog=t=>o({},t)})(PU=m.ContinuousBackupsDescription||(m.ContinuousBackupsDescription={}));var DU;(function(e){e.filterSensitiveLog=t=>o({},t)})(DU=m.ContributorInsightsSummary||(m.ContributorInsightsSummary={}));var OU;(function(e){e.filterSensitiveLog=t=>o({},t)})(OU=m.CreateBackupInput||(m.CreateBackupInput={}));var LU;(function(e){e.filterSensitiveLog=t=>o({},t)})(LU=m.CreateBackupOutput||(m.CreateBackupOutput={}));var qU;(function(e){e.filterSensitiveLog=t=>o({},t)})(qU=m.CreateGlobalSecondaryIndexAction||(m.CreateGlobalSecondaryIndexAction={}));var MU;(function(e){e.filterSensitiveLog=t=>o({},t)})(MU=m.Replica||(m.Replica={}));var kU;(function(e){e.filterSensitiveLog=t=>o({},t)})(kU=m.CreateGlobalTableInput||(m.CreateGlobalTableInput={}));var jU;(function(e){e.filterSensitiveLog=t=>o({},t)})(jU=m.ProvisionedThroughputOverride||(m.ProvisionedThroughputOverride={}));var zU;(function(e){e.filterSensitiveLog=t=>o({},t)})(zU=m.ReplicaGlobalSecondaryIndexDescription||(m.ReplicaGlobalSecondaryIndexDescription={}));var UU;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(UU=m.TableClass||(m.TableClass={}));var FU;(function(e){e.filterSensitiveLog=t=>o({},t)})(FU=m.TableClassSummary||(m.TableClassSummary={}));var BU;(function(e){e.filterSensitiveLog=t=>o({},t)})(BU=m.ReplicaDescription||(m.ReplicaDescription={}));var GU;(function(e){e.filterSensitiveLog=t=>o({},t)})(GU=m.GlobalTableDescription||(m.GlobalTableDescription={}));var $U;(function(e){e.filterSensitiveLog=t=>o({},t)})($U=m.CreateGlobalTableOutput||(m.CreateGlobalTableOutput={}));var KU;(function(e){e.filterSensitiveLog=t=>o({},t)})(KU=m.CreateReplicaAction||(m.CreateReplicaAction={}));var VU;(function(e){e.filterSensitiveLog=t=>o({},t)})(VU=m.ReplicaGlobalSecondaryIndex||(m.ReplicaGlobalSecondaryIndex={}));var HU;(function(e){e.filterSensitiveLog=t=>o({},t)})(HU=m.CreateReplicationGroupMemberAction||(m.CreateReplicationGroupMemberAction={}));var WU;(function(e){e.filterSensitiveLog=t=>o({},t)})(WU=m.GlobalSecondaryIndex||(m.GlobalSecondaryIndex={}));var YU;(function(e){e.filterSensitiveLog=t=>o({},t)})(YU=m.LocalSecondaryIndex||(m.LocalSecondaryIndex={}));var JU;(function(e){e.filterSensitiveLog=t=>o({},t)})(JU=m.SSESpecification||(m.SSESpecification={}));var QU;(function(e){e.filterSensitiveLog=t=>o({},t)})(QU=m.Tag||(m.Tag={}));var XU;(function(e){e.filterSensitiveLog=t=>o({},t)})(XU=m.CreateTableInput||(m.CreateTableInput={}));var ZU;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZU=m.ProvisionedThroughputDescription||(m.ProvisionedThroughputDescription={}));var eF;(function(e){e.filterSensitiveLog=t=>o({},t)})(eF=m.GlobalSecondaryIndexDescription||(m.GlobalSecondaryIndexDescription={}));var tF;(function(e){e.filterSensitiveLog=t=>o({},t)})(tF=m.LocalSecondaryIndexDescription||(m.LocalSecondaryIndexDescription={}));var nF;(function(e){e.filterSensitiveLog=t=>o({},t)})(nF=m.RestoreSummary||(m.RestoreSummary={}));var rF;(function(e){e.filterSensitiveLog=t=>o({},t)})(rF=m.TableDescription||(m.TableDescription={}));var iF;(function(e){e.filterSensitiveLog=t=>o({},t)})(iF=m.CreateTableOutput||(m.CreateTableOutput={}));var sF;(function(e){e.filterSensitiveLog=t=>o({},t)})(sF=m.DeleteBackupInput||(m.DeleteBackupInput={}));var aF;(function(e){e.filterSensitiveLog=t=>o({},t)})(aF=m.DeleteBackupOutput||(m.DeleteBackupOutput={}));var oF;(function(e){e.filterSensitiveLog=t=>o({},t)})(oF=m.DeleteGlobalSecondaryIndexAction||(m.DeleteGlobalSecondaryIndexAction={}));var lF;(function(e){e.filterSensitiveLog=t=>o({},t)})(lF=m.DeleteReplicaAction||(m.DeleteReplicaAction={}));var cF;(function(e){e.filterSensitiveLog=t=>o({},t)})(cF=m.DeleteReplicationGroupMemberAction||(m.DeleteReplicationGroupMemberAction={}));var dF;(function(e){e.filterSensitiveLog=t=>o({},t)})(dF=m.DeleteTableInput||(m.DeleteTableInput={}));var uF;(function(e){e.filterSensitiveLog=t=>o({},t)})(uF=m.DeleteTableOutput||(m.DeleteTableOutput={}));var mF;(function(e){e.filterSensitiveLog=t=>o({},t)})(mF=m.DescribeBackupInput||(m.DescribeBackupInput={}));var fF;(function(e){e.filterSensitiveLog=t=>o({},t)})(fF=m.DescribeBackupOutput||(m.DescribeBackupOutput={}));var pF;(function(e){e.filterSensitiveLog=t=>o({},t)})(pF=m.DescribeContinuousBackupsInput||(m.DescribeContinuousBackupsInput={}));var _F;(function(e){e.filterSensitiveLog=t=>o({},t)})(_F=m.DescribeContinuousBackupsOutput||(m.DescribeContinuousBackupsOutput={}));var hF;(function(e){e.filterSensitiveLog=t=>o({},t)})(hF=m.DescribeContributorInsightsInput||(m.DescribeContributorInsightsInput={}));var gF;(function(e){e.filterSensitiveLog=t=>o({},t)})(gF=m.FailureException||(m.FailureException={}));var yF;(function(e){e.filterSensitiveLog=t=>o({},t)})(yF=m.DescribeContributorInsightsOutput||(m.DescribeContributorInsightsOutput={}));var vF;(function(e){e.filterSensitiveLog=t=>o({},t)})(vF=m.DescribeEndpointsRequest||(m.DescribeEndpointsRequest={}));var bF;(function(e){e.filterSensitiveLog=t=>o({},t)})(bF=m.Endpoint||(m.Endpoint={}));var SF;(function(e){e.filterSensitiveLog=t=>o({},t)})(SF=m.DescribeEndpointsResponse||(m.DescribeEndpointsResponse={}));var wF;(function(e){e.filterSensitiveLog=t=>o({},t)})(wF=m.DescribeExportInput||(m.DescribeExportInput={}));var EF;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(EF=m.ExportFormat||(m.ExportFormat={}));var AF;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(AF=m.ExportStatus||(m.ExportStatus={}));var CF;(function(e){e.filterSensitiveLog=t=>o({},t)})(CF=m.ExportDescription||(m.ExportDescription={}));var TF;(function(e){e.filterSensitiveLog=t=>o({},t)})(TF=m.DescribeExportOutput||(m.DescribeExportOutput={}));var xF;(function(e){e.filterSensitiveLog=t=>o({},t)})(xF=m.DescribeGlobalTableInput||(m.DescribeGlobalTableInput={}));var IF;(function(e){e.filterSensitiveLog=t=>o({},t)})(IF=m.DescribeGlobalTableOutput||(m.DescribeGlobalTableOutput={}));var RF;(function(e){e.filterSensitiveLog=t=>o({},t)})(RF=m.DescribeGlobalTableSettingsInput||(m.DescribeGlobalTableSettingsInput={}));var NF;(function(e){e.filterSensitiveLog=t=>o({},t)})(NF=m.ReplicaGlobalSecondaryIndexSettingsDescription||(m.ReplicaGlobalSecondaryIndexSettingsDescription={}));var PF;(function(e){e.filterSensitiveLog=t=>o({},t)})(PF=m.ReplicaSettingsDescription||(m.ReplicaSettingsDescription={}));var DF;(function(e){e.filterSensitiveLog=t=>o({},t)})(DF=m.DescribeGlobalTableSettingsOutput||(m.DescribeGlobalTableSettingsOutput={}));var OF;(function(e){e.filterSensitiveLog=t=>o({},t)})(OF=m.DescribeKinesisStreamingDestinationInput||(m.DescribeKinesisStreamingDestinationInput={}));var LF;(function(e){e.filterSensitiveLog=t=>o({},t)})(LF=m.KinesisDataStreamDestination||(m.KinesisDataStreamDestination={}));var qF;(function(e){e.filterSensitiveLog=t=>o({},t)})(qF=m.DescribeKinesisStreamingDestinationOutput||(m.DescribeKinesisStreamingDestinationOutput={}));var MF;(function(e){e.filterSensitiveLog=t=>o({},t)})(MF=m.DescribeLimitsInput||(m.DescribeLimitsInput={}));var kF;(function(e){e.filterSensitiveLog=t=>o({},t)})(kF=m.DescribeLimitsOutput||(m.DescribeLimitsOutput={}));var jF;(function(e){e.filterSensitiveLog=t=>o({},t)})(jF=m.DescribeTableInput||(m.DescribeTableInput={}));var zF;(function(e){e.filterSensitiveLog=t=>o({},t)})(zF=m.DescribeTableOutput||(m.DescribeTableOutput={}));var UF;(function(e){e.filterSensitiveLog=t=>o({},t)})(UF=m.DescribeTableReplicaAutoScalingInput||(m.DescribeTableReplicaAutoScalingInput={}));var FF;(function(e){e.filterSensitiveLog=t=>o({},t)})(FF=m.ReplicaGlobalSecondaryIndexAutoScalingDescription||(m.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var BF;(function(e){e.filterSensitiveLog=t=>o({},t)})(BF=m.ReplicaAutoScalingDescription||(m.ReplicaAutoScalingDescription={}));var GF;(function(e){e.filterSensitiveLog=t=>o({},t)})(GF=m.TableAutoScalingDescription||(m.TableAutoScalingDescription={}));var $F;(function(e){e.filterSensitiveLog=t=>o({},t)})($F=m.DescribeTableReplicaAutoScalingOutput||(m.DescribeTableReplicaAutoScalingOutput={}));var KF;(function(e){e.filterSensitiveLog=t=>o({},t)})(KF=m.DescribeTimeToLiveInput||(m.DescribeTimeToLiveInput={}));var VF;(function(e){e.filterSensitiveLog=t=>o({},t)})(VF=m.DescribeTimeToLiveOutput||(m.DescribeTimeToLiveOutput={}));var HF;(function(e){e.filterSensitiveLog=t=>o({},t)})(HF=m.KinesisStreamingDestinationInput||(m.KinesisStreamingDestinationInput={}));var WF;(function(e){e.filterSensitiveLog=t=>o({},t)})(WF=m.KinesisStreamingDestinationOutput||(m.KinesisStreamingDestinationOutput={}));var YF;(function(e){e.filterSensitiveLog=t=>o({},t)})(YF=m.ExportTableToPointInTimeInput||(m.ExportTableToPointInTimeInput={}));var JF;(function(e){e.filterSensitiveLog=t=>o({},t)})(JF=m.ExportTableToPointInTimeOutput||(m.ExportTableToPointInTimeOutput={}));var QF;(function(e){e.filterSensitiveLog=t=>o({},t)})(QF=m.ListBackupsInput||(m.ListBackupsInput={}));var XF;(function(e){e.filterSensitiveLog=t=>o({},t)})(XF=m.ListBackupsOutput||(m.ListBackupsOutput={}));var ZF;(function(e){e.filterSensitiveLog=t=>o({},t)})(ZF=m.ListContributorInsightsInput||(m.ListContributorInsightsInput={}));var eB;(function(e){e.filterSensitiveLog=t=>o({},t)})(eB=m.ListContributorInsightsOutput||(m.ListContributorInsightsOutput={}));var tB;(function(e){e.filterSensitiveLog=t=>o({},t)})(tB=m.ListExportsInput||(m.ListExportsInput={}));var nB;(function(e){e.filterSensitiveLog=t=>o({},t)})(nB=m.ExportSummary||(m.ExportSummary={}));var rB;(function(e){e.filterSensitiveLog=t=>o({},t)})(rB=m.ListExportsOutput||(m.ListExportsOutput={}));var iB;(function(e){e.filterSensitiveLog=t=>o({},t)})(iB=m.ListGlobalTablesInput||(m.ListGlobalTablesInput={}));var sB;(function(e){e.filterSensitiveLog=t=>o({},t)})(sB=m.GlobalTable||(m.GlobalTable={}));var aB;(function(e){e.filterSensitiveLog=t=>o({},t)})(aB=m.ListGlobalTablesOutput||(m.ListGlobalTablesOutput={}));var oB;(function(e){e.filterSensitiveLog=t=>o({},t)})(oB=m.ListTablesInput||(m.ListTablesInput={}));var lB;(function(e){e.filterSensitiveLog=t=>o({},t)})(lB=m.ListTablesOutput||(m.ListTablesOutput={}));var cB;(function(e){e.filterSensitiveLog=t=>o({},t)})(cB=m.ListTagsOfResourceInput||(m.ListTagsOfResourceInput={}));var dB;(function(e){e.filterSensitiveLog=t=>o({},t)})(dB=m.ListTagsOfResourceOutput||(m.ListTagsOfResourceOutput={}));var uB;(function(e){e.filterSensitiveLog=t=>o({},t)})(uB=m.RestoreTableFromBackupInput||(m.RestoreTableFromBackupInput={}));var mB;(function(e){e.filterSensitiveLog=t=>o({},t)})(mB=m.RestoreTableFromBackupOutput||(m.RestoreTableFromBackupOutput={}));var fB;(function(e){e.filterSensitiveLog=t=>o({},t)})(fB=m.RestoreTableToPointInTimeInput||(m.RestoreTableToPointInTimeInput={}));var pB;(function(e){e.filterSensitiveLog=t=>o({},t)})(pB=m.RestoreTableToPointInTimeOutput||(m.RestoreTableToPointInTimeOutput={}));var _B;(function(e){e.filterSensitiveLog=t=>o({},t)})(_B=m.TagResourceInput||(m.TagResourceInput={}));var hB;(function(e){e.filterSensitiveLog=t=>o({},t)})(hB=m.UntagResourceInput||(m.UntagResourceInput={}));var gB;(function(e){e.filterSensitiveLog=t=>o({},t)})(gB=m.PointInTimeRecoverySpecification||(m.PointInTimeRecoverySpecification={}));var yB;(function(e){e.filterSensitiveLog=t=>o({},t)})(yB=m.UpdateContinuousBackupsInput||(m.UpdateContinuousBackupsInput={}));var vB;(function(e){e.filterSensitiveLog=t=>o({},t)})(vB=m.UpdateContinuousBackupsOutput||(m.UpdateContinuousBackupsOutput={}));var bB;(function(e){e.filterSensitiveLog=t=>o({},t)})(bB=m.UpdateContributorInsightsInput||(m.UpdateContributorInsightsInput={}));var SB;(function(e){e.filterSensitiveLog=t=>o({},t)})(SB=m.UpdateContributorInsightsOutput||(m.UpdateContributorInsightsOutput={}));var wB;(function(e){e.filterSensitiveLog=t=>o({},t)})(wB=m.ReplicaUpdate||(m.ReplicaUpdate={}));var EB;(function(e){e.filterSensitiveLog=t=>o({},t)})(EB=m.UpdateGlobalTableInput||(m.UpdateGlobalTableInput={}));var AB;(function(e){e.filterSensitiveLog=t=>o({},t)})(AB=m.UpdateGlobalTableOutput||(m.UpdateGlobalTableOutput={}));var CB;(function(e){e.filterSensitiveLog=t=>o({},t)})(CB=m.GlobalTableGlobalSecondaryIndexSettingsUpdate||(m.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var TB;(function(e){e.filterSensitiveLog=t=>o({},t)})(TB=m.ReplicaGlobalSecondaryIndexSettingsUpdate||(m.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var xB;(function(e){e.filterSensitiveLog=t=>o({},t)})(xB=m.ReplicaSettingsUpdate||(m.ReplicaSettingsUpdate={}));var IB;(function(e){e.filterSensitiveLog=t=>o({},t)})(IB=m.UpdateGlobalTableSettingsInput||(m.UpdateGlobalTableSettingsInput={}));var RB;(function(e){e.filterSensitiveLog=t=>o({},t)})(RB=m.UpdateGlobalTableSettingsOutput||(m.UpdateGlobalTableSettingsOutput={}));var NB;(function(e){e.filterSensitiveLog=t=>o({},t)})(NB=m.UpdateGlobalSecondaryIndexAction||(m.UpdateGlobalSecondaryIndexAction={}));var PB;(function(e){e.filterSensitiveLog=t=>o({},t)})(PB=m.GlobalSecondaryIndexUpdate||(m.GlobalSecondaryIndexUpdate={}));var DB;(function(e){e.filterSensitiveLog=t=>o({},t)})(DB=m.UpdateReplicationGroupMemberAction||(m.UpdateReplicationGroupMemberAction={}));var OB;(function(e){e.filterSensitiveLog=t=>o({},t)})(OB=m.ReplicationGroupUpdate||(m.ReplicationGroupUpdate={}));var LB;(function(e){e.filterSensitiveLog=t=>o({},t)})(LB=m.UpdateTableInput||(m.UpdateTableInput={}));var qB;(function(e){e.filterSensitiveLog=t=>o({},t)})(qB=m.UpdateTableOutput||(m.UpdateTableOutput={}));var MB;(function(e){e.filterSensitiveLog=t=>o({},t)})(MB=m.GlobalSecondaryIndexAutoScalingUpdate||(m.GlobalSecondaryIndexAutoScalingUpdate={}));var kB;(function(e){e.filterSensitiveLog=t=>o({},t)})(kB=m.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(m.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var jB;(function(e){e.filterSensitiveLog=t=>o({},t)})(jB=m.ReplicaAutoScalingUpdate||(m.ReplicaAutoScalingUpdate={}));var zB;(function(e){e.filterSensitiveLog=t=>o({},t)})(zB=m.UpdateTableReplicaAutoScalingInput||(m.UpdateTableReplicaAutoScalingInput={}));var UB;(function(e){e.filterSensitiveLog=t=>o({},t)})(UB=m.UpdateTableReplicaAutoScalingOutput||(m.UpdateTableReplicaAutoScalingOutput={}));var FB;(function(e){e.filterSensitiveLog=t=>o({},t)})(FB=m.TimeToLiveSpecification||(m.TimeToLiveSpecification={}));var BB;(function(e){e.filterSensitiveLog=t=>o({},t)})(BB=m.UpdateTimeToLiveInput||(m.UpdateTimeToLiveInput={}));var GB;(function(e){e.filterSensitiveLog=t=>o({},t)})(GB=m.UpdateTimeToLiveOutput||(m.UpdateTimeToLiveOutput={}));var oe;(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,i])=>f(o({},n),{[r]:e.filterSensitiveLog(i)}),{})};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"}}})(oe=m.AttributeValue||(m.AttributeValue={}));var xw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Value&&{Value:oe.filterSensitiveLog(t.Value)})})(xw=m.AttributeValueUpdate||(m.AttributeValueUpdate={}));var Iw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>oe.filterSensitiveLog(n))})})(Iw=m.BatchStatementRequest||(m.BatchStatementRequest={}));var Rw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Rw=m.BatchStatementResponse||(m.BatchStatementResponse={}));var $B;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})($B=m.CancellationReason||(m.CancellationReason={}));var _l;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>oe.filterSensitiveLog(n))})})(_l=m.Condition||(m.Condition={}));var Nw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Nw=m.DeleteRequest||(m.DeleteRequest={}));var KB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>oe.filterSensitiveLog(n))})})(KB=m.ExecuteStatementInput||(m.ExecuteStatementInput={}));var Pw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Pw=m.Get||(m.Get={}));var VB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(VB=m.GetItemInput||(m.GetItemInput={}));var HB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(HB=m.GetItemOutput||(m.GetItemOutput={}));var as;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(as=m.ItemCollectionMetrics||(m.ItemCollectionMetrics={}));var $_;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})($_=m.ItemResponse||(m.ItemResponse={}));var Dw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Parameters&&{Parameters:t.Parameters.map(n=>oe.filterSensitiveLog(n))})})(Dw=m.ParameterizedStatement||(m.ParameterizedStatement={}));var Ow;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Ow=m.PutRequest||(m.PutRequest={}));var WB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>f(o({},r),{[i]:oe.filterSensitiveLog(s)}),{}))})})(WB=m.ExecuteStatementOutput||(m.ExecuteStatementOutput={}));var K_;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[i,s])=>f(o({},r),{[i]:oe.filterSensitiveLog(s)}),{}))})})(K_=m.KeysAndAttributes||(m.KeysAndAttributes={}));var Lw;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Get&&{Get:Pw.filterSensitiveLog(t.Get)})})(Lw=m.TransactGetItem||(m.TransactGetItem={}));var YB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Statements&&{Statements:t.Statements.map(n=>Iw.filterSensitiveLog(n))})})(YB=m.BatchExecuteStatementInput||(m.BatchExecuteStatementInput={}));var JB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>Rw.filterSensitiveLog(n))})})(JB=m.BatchExecuteStatementOutput||(m.BatchExecuteStatementOutput={}));var QB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>Dw.filterSensitiveLog(n))})})(QB=m.ExecuteTransactionInput||(m.ExecuteTransactionInput={}));var XB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>$_.filterSensitiveLog(n))})})(XB=m.ExecuteTransactionOutput||(m.ExecuteTransactionOutput={}));var ZB;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.Responses&&{Responses:t.Responses.map(n=>$_.filterSensitiveLog(n))})})(ZB=m.TransactGetItemsOutput||(m.TransactGetItemsOutput={}));var eG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>f(o({},n),{[r]:K_.filterSensitiveLog(i)}),{})})})(eG=m.BatchGetItemInput||(m.BatchGetItemInput={}));var hl;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Value&&{Value:oe.filterSensitiveLog(t.Value)}),t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>oe.filterSensitiveLog(n))})})(hl=m.ExpectedAttributeValue||(m.ExpectedAttributeValue={}));var tG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>Lw.filterSensitiveLog(n))})})(tG=m.TransactGetItemsInput||(m.TransactGetItemsInput={}));var nG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>as.filterSensitiveLog(s))}),{})})})(nG=m.TransactWriteItemsOutput||(m.TransactWriteItemsOutput={}));var qw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(qw=m.ConditionCheck||(m.ConditionCheck={}));var Mw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(Mw=m.Delete||(m.Delete={}));var kw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(kw=m.Put||(m.Put={}));var jw;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(jw=m.Update||(m.Update={}));var rG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:as.filterSensitiveLog(t.ItemCollectionMetrics)})})(rG=m.DeleteItemOutput||(m.DeleteItemOutput={}));var iG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:as.filterSensitiveLog(t.ItemCollectionMetrics)})})(iG=m.PutItemOutput||(m.PutItemOutput={}));var sG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>f(o({},r),{[i]:oe.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(sG=m.QueryOutput||(m.QueryOutput={}));var aG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>f(o({},r),{[i]:oe.filterSensitiveLog(s)}),{}))}),t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(aG=m.ScanOutput||(m.ScanOutput={}));var oG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:as.filterSensitiveLog(t.ItemCollectionMetrics)})})(oG=m.UpdateItemOutput||(m.UpdateItemOutput={}));var V_;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.PutRequest&&{PutRequest:Ow.filterSensitiveLog(t.PutRequest)}),t.DeleteRequest&&{DeleteRequest:Nw.filterSensitiveLog(t.DeleteRequest)})})(V_=m.WriteRequest||(m.WriteRequest={}));var lG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>Object.entries(s).reduce((a,[l,c])=>f(o({},a),{[l]:oe.filterSensitiveLog(c)}),{}))}),{})}),t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,i])=>f(o({},n),{[r]:K_.filterSensitiveLog(i)}),{})})})(lG=m.BatchGetItemOutput||(m.BatchGetItemOutput={}));var cG;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,i])=>f(o({},n),{[r]:_l.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(cG=m.ScanInput||(m.ScanInput={}));var dG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>V_.filterSensitiveLog(s))}),{})})})(dG=m.BatchWriteItemInput||(m.BatchWriteItemInput={}));var uG;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>f(o({},n),{[r]:hl.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(uG=m.DeleteItemInput||(m.DeleteItemInput={}));var mG;(function(e){e.filterSensitiveLog=t=>o(o(o(o({},t),t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>f(o({},n),{[r]:hl.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(mG=m.PutItemInput||(m.PutItemInput={}));var fG;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,i])=>f(o({},n),{[r]:_l.filterSensitiveLog(i)}),{})}),t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,i])=>f(o({},n),{[r]:_l.filterSensitiveLog(i)}),{})}),t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(fG=m.QueryInput||(m.QueryInput={}));var pG;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>V_.filterSensitiveLog(s))}),{})}),t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>f(o({},n),{[r]:i.map(s=>as.filterSensitiveLog(s))}),{})})})(pG=m.BatchWriteItemOutput||(m.BatchWriteItemOutput={}));var _G;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})}),t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,i])=>f(o({},n),{[r]:xw.filterSensitiveLog(i)}),{})}),t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>f(o({},n),{[r]:hl.filterSensitiveLog(i)}),{})}),t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>f(o({},n),{[r]:oe.filterSensitiveLog(i)}),{})})})(_G=m.UpdateItemInput||(m.UpdateItemInput={}));var zw;(function(e){e.filterSensitiveLog=t=>o(o(o(o(o({},t),t.ConditionCheck&&{ConditionCheck:qw.filterSensitiveLog(t.ConditionCheck)}),t.Put&&{Put:kw.filterSensitiveLog(t.Put)}),t.Delete&&{Delete:Mw.filterSensitiveLog(t.Delete)}),t.Update&&{Update:jw.filterSensitiveLog(t.Update)})})(zw=m.TransactWriteItem||(m.TransactWriteItem={}));var hG;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.TransactItems&&{TransactItems:t.TransactItems.map(n=>zw.filterSensitiveLog(n))})})(hG=m.TransactWriteItemsInput||(m.TransactWriteItemsInput={}))});var Fw=p(Uw=>{"use strict";Object.defineProperty(Uw,"__esModule",{value:!0})});var Bw=p(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.HttpRequest=void 0;var gl=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 gl(f(o({},this),{headers:o({},this.headers)}));return t.query&&(t.query=gG(t.query)),t}};yl.HttpRequest=gl;function gG(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return f(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{})}});var $w=p(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.HttpResponse=void 0;var Gw=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"}};vl.HttpResponse=Gw});var Kw=p(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.isValidHostname=void 0;function yG(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}bl.isValidHostname=yG});var jt=p(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var Sl=se();Sl.__exportStar(Fw(),os);Sl.__exportStar(Bw(),os);Sl.__exportStar($w(),os);Sl.__exportStar(Kw(),os)});var W_=p(H_=>{"use strict";Object.defineProperty(H_,"__esModule",{value:!0});H_.default=SG;var vG=bG(require("crypto"));function bG(e){return e&&e.__esModule?e:{default:e}}var wl=new Uint8Array(256),El=wl.length;function SG(){return El>wl.length-16&&(vG.default.randomFillSync(wl),El=0),wl.slice(El,El+=16)}});var Vw=p(Al=>{"use strict";Object.defineProperty(Al,"__esModule",{value:!0});Al.default=void 0;var wG=/^(?:[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;Al.default=wG});var Sa=p(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.default=void 0;var EG=AG(Vw());function AG(e){return e&&e.__esModule?e:{default:e}}function CG(e){return typeof e=="string"&&EG.default.test(e)}var TG=CG;Cl.default=TG});var wa=p(Tl=>{"use strict";Object.defineProperty(Tl,"__esModule",{value:!0});Tl.default=void 0;var xG=IG(Sa());function IG(e){return e&&e.__esModule?e:{default:e}}var ot=[];for(let e=0;e<256;++e)ot.push((e+256).toString(16).substr(1));function RG(e,t=0){let n=(ot[e[t+0]]+ot[e[t+1]]+ot[e[t+2]]+ot[e[t+3]]+"-"+ot[e[t+4]]+ot[e[t+5]]+"-"+ot[e[t+6]]+ot[e[t+7]]+"-"+ot[e[t+8]]+ot[e[t+9]]+"-"+ot[e[t+10]]+ot[e[t+11]]+ot[e[t+12]]+ot[e[t+13]]+ot[e[t+14]]+ot[e[t+15]]).toLowerCase();if(!(0,xG.default)(n))throw TypeError("Stringified UUID is invalid");return n}var NG=RG;Tl.default=NG});var Yw=p(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.default=void 0;var PG=Hw(W_()),DG=Hw(wa());function Hw(e){return e&&e.__esModule?e:{default:e}}var Ww,Y_,J_=0,Q_=0;function OG(e,t,n){let r=t&&n||0,i=t||new Array(16);e=e||{};let s=e.node||Ww,a=e.clockseq!==void 0?e.clockseq:Y_;if(s==null||a==null){let g=e.random||(e.rng||PG.default)();s==null&&(s=Ww=[g[0]|1,g[1],g[2],g[3],g[4],g[5]]),a==null&&(a=Y_=(g[6]<<8|g[7])&16383)}let l=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:Q_+1,d=l-J_+(c-Q_)/1e4;if(d<0&&e.clockseq===void 0&&(a=a+1&16383),(d<0||l>J_)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");J_=l,Q_=c,Y_=a,l+=122192928e5;let u=((l&268435455)*1e4+c)%4294967296;i[r++]=u>>>24&255,i[r++]=u>>>16&255,i[r++]=u>>>8&255,i[r++]=u&255;let _=l/4294967296*1e4&268435455;i[r++]=_>>>8&255,i[r++]=_&255,i[r++]=_>>>24&15|16,i[r++]=_>>>16&255,i[r++]=a>>>8|128,i[r++]=a&255;for(let g=0;g<6;++g)i[r+g]=s[g];return t||(0,DG.default)(i)}var LG=OG;xl.default=LG});var X_=p(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.default=void 0;var qG=MG(Sa());function MG(e){return e&&e.__esModule?e:{default:e}}function kG(e){if(!(0,qG.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 jG=kG;Il.default=jG});var Z_=p(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.default=BG;mi.URL=mi.DNS=void 0;var zG=Jw(wa()),UG=Jw(X_());function Jw(e){return e&&e.__esModule?e:{default:e}}function FG(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var Qw="6ba7b810-9dad-11d1-80b4-00c04fd430c8";mi.DNS=Qw;var Xw="6ba7b811-9dad-11d1-80b4-00c04fd430c8";mi.URL=Xw;function BG(e,t,n){function r(i,s,a,l){if(typeof i=="string"&&(i=FG(i)),typeof s=="string"&&(s=(0,UG.default)(s)),s.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let c=new Uint8Array(16+i.length);if(c.set(s),c.set(i,s.length),c=n(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,a){l=l||0;for(let d=0;d<16;++d)a[l+d]=c[d];return a}return(0,zG.default)(c)}try{r.name=e}catch{}return r.DNS=Qw,r.URL=Xw,r}});var Zw=p(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=void 0;var GG=$G(require("crypto"));function $G(e){return e&&e.__esModule?e:{default:e}}function KG(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),GG.default.createHash("md5").update(e).digest()}var VG=KG;Rl.default=VG});var tE=p(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.default=void 0;var HG=eE(Z_()),WG=eE(Zw());function eE(e){return e&&e.__esModule?e:{default:e}}var YG=(0,HG.default)("v3",48,WG.default),JG=YG;Nl.default=JG});var rE=p(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=void 0;var QG=nE(W_()),XG=nE(wa());function nE(e){return e&&e.__esModule?e:{default:e}}function ZG(e,t,n){e=e||{};let r=e.random||(e.rng||QG.default)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(let i=0;i<16;++i)t[n+i]=r[i];return t}return(0,XG.default)(r)}var e$=ZG;Pl.default=e$});var iE=p(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=void 0;var t$=n$(require("crypto"));function n$(e){return e&&e.__esModule?e:{default:e}}function r$(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),t$.default.createHash("sha1").update(e).digest()}var i$=r$;Dl.default=i$});var aE=p(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=void 0;var s$=sE(Z_()),a$=sE(iE());function sE(e){return e&&e.__esModule?e:{default:e}}var o$=(0,s$.default)("v5",80,a$.default),l$=o$;Ol.default=l$});var oE=p(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.default=void 0;var c$="00000000-0000-0000-0000-000000000000";Ll.default=c$});var lE=p(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.default=void 0;var d$=u$(Sa());function u$(e){return e&&e.__esModule?e:{default:e}}function m$(e){if(!(0,d$.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var f$=m$;ql.default=f$});var eh=p(cn=>{"use strict";Object.defineProperty(cn,"__esModule",{value:!0});Object.defineProperty(cn,"v1",{enumerable:!0,get:function(){return p$.default}});Object.defineProperty(cn,"v3",{enumerable:!0,get:function(){return _$.default}});Object.defineProperty(cn,"v4",{enumerable:!0,get:function(){return h$.default}});Object.defineProperty(cn,"v5",{enumerable:!0,get:function(){return g$.default}});Object.defineProperty(cn,"NIL",{enumerable:!0,get:function(){return y$.default}});Object.defineProperty(cn,"version",{enumerable:!0,get:function(){return v$.default}});Object.defineProperty(cn,"validate",{enumerable:!0,get:function(){return b$.default}});Object.defineProperty(cn,"stringify",{enumerable:!0,get:function(){return S$.default}});Object.defineProperty(cn,"parse",{enumerable:!0,get:function(){return w$.default}});var p$=er(Yw()),_$=er(tE()),h$=er(rE()),g$=er(aE()),y$=er(oE()),v$=er(lE()),b$=er(Sa()),S$=er(wa()),w$=er(X_());function er(e){return e&&e.__esModule?e:{default:e}}});var J=p(w=>{"use strict";Object.defineProperty(w,"__esModule",{value:!0});w.serializeAws_json1_0UpdateTimeToLiveCommand=w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w.serializeAws_json1_0UpdateTableCommand=w.serializeAws_json1_0UpdateItemCommand=w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=w.serializeAws_json1_0UpdateGlobalTableCommand=w.serializeAws_json1_0UpdateContributorInsightsCommand=w.serializeAws_json1_0UpdateContinuousBackupsCommand=w.serializeAws_json1_0UntagResourceCommand=w.serializeAws_json1_0TransactWriteItemsCommand=w.serializeAws_json1_0TransactGetItemsCommand=w.serializeAws_json1_0TagResourceCommand=w.serializeAws_json1_0ScanCommand=w.serializeAws_json1_0RestoreTableToPointInTimeCommand=w.serializeAws_json1_0RestoreTableFromBackupCommand=w.serializeAws_json1_0QueryCommand=w.serializeAws_json1_0PutItemCommand=w.serializeAws_json1_0ListTagsOfResourceCommand=w.serializeAws_json1_0ListTablesCommand=w.serializeAws_json1_0ListGlobalTablesCommand=w.serializeAws_json1_0ListExportsCommand=w.serializeAws_json1_0ListContributorInsightsCommand=w.serializeAws_json1_0ListBackupsCommand=w.serializeAws_json1_0GetItemCommand=w.serializeAws_json1_0ExportTableToPointInTimeCommand=w.serializeAws_json1_0ExecuteTransactionCommand=w.serializeAws_json1_0ExecuteStatementCommand=w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=w.serializeAws_json1_0DescribeTimeToLiveCommand=w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=w.serializeAws_json1_0DescribeTableCommand=w.serializeAws_json1_0DescribeLimitsCommand=w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=w.serializeAws_json1_0DescribeGlobalTableCommand=w.serializeAws_json1_0DescribeExportCommand=w.serializeAws_json1_0DescribeEndpointsCommand=w.serializeAws_json1_0DescribeContributorInsightsCommand=w.serializeAws_json1_0DescribeContinuousBackupsCommand=w.serializeAws_json1_0DescribeBackupCommand=w.serializeAws_json1_0DeleteTableCommand=w.serializeAws_json1_0DeleteItemCommand=w.serializeAws_json1_0DeleteBackupCommand=w.serializeAws_json1_0CreateTableCommand=w.serializeAws_json1_0CreateGlobalTableCommand=w.serializeAws_json1_0CreateBackupCommand=w.serializeAws_json1_0BatchWriteItemCommand=w.serializeAws_json1_0BatchGetItemCommand=w.serializeAws_json1_0BatchExecuteStatementCommand=void 0;w.deserializeAws_json1_0UpdateTimeToLiveCommand=w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w.deserializeAws_json1_0UpdateTableCommand=w.deserializeAws_json1_0UpdateItemCommand=w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=w.deserializeAws_json1_0UpdateGlobalTableCommand=w.deserializeAws_json1_0UpdateContributorInsightsCommand=w.deserializeAws_json1_0UpdateContinuousBackupsCommand=w.deserializeAws_json1_0UntagResourceCommand=w.deserializeAws_json1_0TransactWriteItemsCommand=w.deserializeAws_json1_0TransactGetItemsCommand=w.deserializeAws_json1_0TagResourceCommand=w.deserializeAws_json1_0ScanCommand=w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=w.deserializeAws_json1_0RestoreTableFromBackupCommand=w.deserializeAws_json1_0QueryCommand=w.deserializeAws_json1_0PutItemCommand=w.deserializeAws_json1_0ListTagsOfResourceCommand=w.deserializeAws_json1_0ListTablesCommand=w.deserializeAws_json1_0ListGlobalTablesCommand=w.deserializeAws_json1_0ListExportsCommand=w.deserializeAws_json1_0ListContributorInsightsCommand=w.deserializeAws_json1_0ListBackupsCommand=w.deserializeAws_json1_0GetItemCommand=w.deserializeAws_json1_0ExportTableToPointInTimeCommand=w.deserializeAws_json1_0ExecuteTransactionCommand=w.deserializeAws_json1_0ExecuteStatementCommand=w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DescribeTimeToLiveCommand=w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=w.deserializeAws_json1_0DescribeTableCommand=w.deserializeAws_json1_0DescribeLimitsCommand=w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=w.deserializeAws_json1_0DescribeGlobalTableCommand=w.deserializeAws_json1_0DescribeExportCommand=w.deserializeAws_json1_0DescribeEndpointsCommand=w.deserializeAws_json1_0DescribeContributorInsightsCommand=w.deserializeAws_json1_0DescribeContinuousBackupsCommand=w.deserializeAws_json1_0DescribeBackupCommand=w.deserializeAws_json1_0DeleteTableCommand=w.deserializeAws_json1_0DeleteItemCommand=w.deserializeAws_json1_0DeleteBackupCommand=w.deserializeAws_json1_0CreateTableCommand=w.deserializeAws_json1_0CreateGlobalTableCommand=w.deserializeAws_json1_0CreateBackupCommand=w.deserializeAws_json1_0BatchWriteItemCommand=w.deserializeAws_json1_0BatchGetItemCommand=w.deserializeAws_json1_0BatchExecuteStatementCommand=void 0;var E$=jt(),y=q(),th=eh(),A$=H(),C$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(TV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchExecuteStatementCommand=C$;var T$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(xV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchGetItemCommand=T$;var x$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(NV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0BatchWriteItemCommand=x$;var I$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(LV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateBackupCommand=I$;var R$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify(MV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateGlobalTableCommand=R$;var N$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(zV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0CreateTableCommand=N$;var P$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(FV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteBackupCommand=P$;var D$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(GV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteItemCommand=D$;var O$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(HV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DeleteTableCommand=O$;var L$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(WV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeBackupCommand=L$;var q$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(YV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeContinuousBackupsCommand=q$;var M$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(JV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeContributorInsightsCommand=M$;var k$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(QV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeEndpointsCommand=k$;var j$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(XV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeExportCommand=j$;var z$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(ZV(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeGlobalTableCommand=z$;var U$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(eH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeGlobalTableSettingsCommand=U$;var F$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(tH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=F$;var B$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(nH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeLimitsCommand=B$;var G$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(rH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTableCommand=G$;var $$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(iH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=$$;var K$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(sH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DescribeTimeToLiveCommand=K$;var V$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(vE(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=V$;var H$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(vE(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=H$;var W$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(aH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ExecuteStatementCommand=W$;var Y$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(oH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ExecuteTransactionCommand=Y$;var J$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify(cH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ExportTableToPointInTimeCommand=J$;var Q$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(uH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0GetItemCommand=Q$;var X$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(AH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListBackupsCommand=X$;var Z$=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(CH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListContributorInsightsCommand=Z$;var e2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(TH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListExportsCommand=e2;var t2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(xH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListGlobalTablesCommand=t2;var n2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(IH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListTablesCommand=n2;var r2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(RH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ListTagsOfResourceCommand=r2;var i2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(zH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0PutItemCommand=i2;var s2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(FH(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0QueryCommand=s2;var a2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(r3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0RestoreTableFromBackupCommand=a2;var o2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(i3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0RestoreTableToPointInTimeCommand=o2;var l2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(s3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0ScanCommand=l2;var c2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify(c3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0TagResourceCommand=c2;var d2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(f3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0TransactGetItemsCommand=d2;var u2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(h3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0TransactWriteItemsCommand=u2;var m2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(g3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UntagResourceCommand=m2;var f2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(v3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateContinuousBackupsCommand=f2;var p2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify(b3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateContributorInsightsCommand=p2;var _2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify(w3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateGlobalTableCommand=_2;var h2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(E3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateGlobalTableSettingsCommand=h2;var g2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(A3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateItemCommand=g2;var y2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(T3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTableCommand=y2;var v2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(x3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=v2;var b2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(I3(e,t)),Z(t,n,"/",void 0,r)};w.serializeAws_json1_0UpdateTimeToLiveCommand=b2;var S2=async(e,t)=>{if(e.statusCode>=300)return w2(e,t);let n=await P(e.body,t),r={};r=B3(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchExecuteStatementCommand=S2;var w2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},E2=async(e,t)=>{if(e.statusCode>=300)return A2(e,t);let n=await P(e.body,t),r={};r=G3(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchGetItemCommand=E2;var A2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},C2=async(e,t)=>{if(e.statusCode>=300)return T2(e,t);let n=await P(e.body,t),r={};r=W3(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0BatchWriteItemCommand=C2;var T2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},x2=async(e,t)=>{if(e.statusCode>=300)return I2(e,t);let n=await P(e.body,t),r={};r=iW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateBackupCommand=x2;var I2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=f(o({},await nh(n,t)),{name:i,$metadata:h(e)});break;case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=f(o({},await cE(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=f(o({},await ih(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},R2=async(e,t)=>{if(e.statusCode>=300)return N2(e,t);let n=await P(e.body,t),r={};r=sW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateGlobalTableCommand=R2;var N2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":r=f(o({},await hV(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},P2=async(e,t)=>{if(e.statusCode>=300)return D2(e,t);let n=await P(e.body,t),r={};r=aW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0CreateTableCommand=P2;var D2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},O2=async(e,t)=>{if(e.statusCode>=300)return L2(e,t);let n=await P(e.body,t),r={};r=oW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteBackupCommand=O2;var L2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=f(o({},await nh(n,t)),{name:i,$metadata:h(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=f(o({},await rh(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},q2=async(e,t)=>{if(e.statusCode>=300)return M2(e,t);let n=await P(e.body,t),r={};r=lW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteItemCommand=q2;var M2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=f(o({},await Ml(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=f(o({},await jl(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},k2=async(e,t)=>{if(e.statusCode>=300)return j2(e,t);let n=await P(e.body,t),r={};r=dW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DeleteTableCommand=k2;var j2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},z2=async(e,t)=>{if(e.statusCode>=300)return U2(e,t);let n=await P(e.body,t),r={};r=uW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeBackupCommand=z2;var U2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=f(o({},await rh(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},F2=async(e,t)=>{if(e.statusCode>=300)return B2(e,t);let n=await P(e.body,t),r={};r=mW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContinuousBackupsCommand=F2;var B2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},G2=async(e,t)=>{if(e.statusCode>=300)return $2(e,t);let n=await P(e.body,t),r={};r=fW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeContributorInsightsCommand=G2;var $2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},K2=async(e,t)=>{if(e.statusCode>=300)return V2(e,t);let n=await P(e.body,t),r={};r=pW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeEndpointsCommand=K2;var V2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},H2=async(e,t)=>{if(e.statusCode>=300)return W2(e,t);let n=await P(e.body,t),r={};r=_W(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeExportCommand=H2;var W2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":r=f(o({},await _V(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},Y2=async(e,t)=>{if(e.statusCode>=300)return J2(e,t);let n=await P(e.body,t),r={};r=hW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableCommand=Y2;var J2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=f(o({},await kl(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},Q2=async(e,t)=>{if(e.statusCode>=300)return X2(e,t);let n=await P(e.body,t),r={};r=gW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=Q2;var X2=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=f(o({},await kl(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},Z2=async(e,t)=>{if(e.statusCode>=300)return eK(e,t);let n=await P(e.body,t),r={};r=yW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=Z2;var eK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},tK=async(e,t)=>{if(e.statusCode>=300)return nK(e,t);let n=await P(e.body,t),r={};r=vW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeLimitsCommand=tK;var nK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},rK=async(e,t)=>{if(e.statusCode>=300)return iK(e,t);let n=await P(e.body,t),r={};r=bW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableCommand=rK;var iK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},sK=async(e,t)=>{if(e.statusCode>=300)return aK(e,t);let n=await P(e.body,t),r={};r=SW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=sK;var aK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},oK=async(e,t)=>{if(e.statusCode>=300)return lK(e,t);let n=await P(e.body,t),r={};r=wW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DescribeTimeToLiveCommand=oK;var lK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},cK=async(e,t)=>{if(e.statusCode>=300)return dK(e,t);let n=await P(e.body,t),r={};r=PE(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=cK;var dK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},uK=async(e,t)=>{if(e.statusCode>=300)return mK(e,t);let n=await P(e.body,t),r={};r=PE(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=uK;var mK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},fK=async(e,t)=>{if(e.statusCode>=300)return pK(e,t);let n=await P(e.body,t),r={};r=TW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteStatementCommand=fK;var pK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=f(o({},await Ml(n,t)),{name:i,$metadata:h(e)});break;case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":r=f(o({},await fV(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=f(o({},await jl(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},_K=async(e,t)=>{if(e.statusCode>=300)return hK(e,t);let n=await P(e.body,t),r={};r=xW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExecuteTransactionCommand=_K;var hK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=f(o({},await dE(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=f(o({},await sh(n,t)),{name:i,$metadata:h(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=f(o({},await pE(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},gK=async(e,t)=>{if(e.statusCode>=300)return yK(e,t);let n=await P(e.body,t),r={};r=DW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ExportTableToPointInTimeCommand=gK;var yK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":r=f(o({},await pV(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":r=f(o({},await yV(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=f(o({},await uE(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},vK=async(e,t)=>{if(e.statusCode>=300)return bK(e,t);let n=await P(e.body,t),r={};r=qW(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0GetItemCommand=vK;var bK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},SK=async(e,t)=>{if(e.statusCode>=300)return wK(e,t);let n=await P(e.body,t),r={};r=l4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListBackupsCommand=SK;var wK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},EK=async(e,t)=>{if(e.statusCode>=300)return AK(e,t);let n=await P(e.body,t),r={};r=c4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListContributorInsightsCommand=EK;var AK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},CK=async(e,t)=>{if(e.statusCode>=300)return TK(e,t);let n=await P(e.body,t),r={};r=d4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListExportsCommand=CK;var TK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},xK=async(e,t)=>{if(e.statusCode>=300)return IK(e,t);let n=await P(e.body,t),r={};r=u4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListGlobalTablesCommand=xK;var IK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},RK=async(e,t)=>{if(e.statusCode>=300)return NK(e,t);let n=await P(e.body,t),r={};r=m4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListTablesCommand=RK;var NK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},PK=async(e,t)=>{if(e.statusCode>=300)return DK(e,t);let n=await P(e.body,t),r={};r=f4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ListTagsOfResourceCommand=PK;var DK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},OK=async(e,t)=>{if(e.statusCode>=300)return LK(e,t);let n=await P(e.body,t),r={};r=T4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0PutItemCommand=OK;var LK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=f(o({},await Ml(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=f(o({},await jl(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},qK=async(e,t)=>{if(e.statusCode>=300)return MK(e,t);let n=await P(e.body,t),r={};r=I4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0QueryCommand=qK;var MK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},kK=async(e,t)=>{if(e.statusCode>=300)return jK(e,t);let n=await P(e.body,t),r={};r=H4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableFromBackupCommand=kK;var jK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":r=f(o({},await nh(n,t)),{name:i,$metadata:h(e)});break;case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":r=f(o({},await rh(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=f(o({},await fE(n,t)),{name:i,$metadata:h(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=f(o({},await ih(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},zK=async(e,t)=>{if(e.statusCode>=300)return UK(e,t);let n=await P(e.body,t),r={};r=W4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0RestoreTableToPointInTimeCommand=zK;var UK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":r=f(o({},await vV(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":r=f(o({},await uE(n,t)),{name:i,$metadata:h(e)});break;case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":r=f(o({},await fE(n,t)),{name:i,$metadata:h(e)});break;case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":r=f(o({},await ih(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},FK=async(e,t)=>{if(e.statusCode>=300)return BK(e,t);let n=await P(e.body,t),r={};r=Y4(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0ScanCommand=FK;var BK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},GK=async(e,t)=>{if(e.statusCode>=300)return $K(e,t);await _h(e.body,t);let n={$metadata:h(e)};return Promise.resolve(n)};w.deserializeAws_json1_0TagResourceCommand=GK;var $K=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},KK=async(e,t)=>{if(e.statusCode>=300)return VK(e,t);let n=await P(e.body,t),r={};r=a6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0TransactGetItemsCommand=KK;var VK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=f(o({},await sh(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},HK=async(e,t)=>{if(e.statusCode>=300)return WK(e,t);let n=await P(e.body,t),r={};r=d6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0TransactWriteItemsCommand=HK;var WK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":r=f(o({},await dE(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":r=f(o({},await sh(n,t)),{name:i,$metadata:h(e)});break;case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":r=f(o({},await pE(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},YK=async(e,t)=>{if(e.statusCode>=300)return JK(e,t);await _h(e.body,t);let n={$metadata:h(e)};return Promise.resolve(n)};w.deserializeAws_json1_0UntagResourceCommand=YK;var JK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},QK=async(e,t)=>{if(e.statusCode>=300)return XK(e,t);let n=await P(e.body,t),r={};r=u6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContinuousBackupsCommand=QK;var XK=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":r=f(o({},await cE(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},ZK=async(e,t)=>{if(e.statusCode>=300)return eV(e,t);let n=await P(e.body,t),r={};r=m6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateContributorInsightsCommand=ZK;var eV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},tV=async(e,t)=>{if(e.statusCode>=300)return nV(e,t);let n=await P(e.body,t),r={};r=f6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableCommand=tV;var nV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=f(o({},await kl(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":r=f(o({},await bV(n,t)),{name:i,$metadata:h(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=f(o({},await mE(n,t)),{name:i,$metadata:h(e)});break;case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":r=f(o({},await fi(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},rV=async(e,t)=>{if(e.statusCode>=300)return iV(e,t);let n=await P(e.body,t),r={};r=p6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=rV;var iV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":r=f(o({},await kl(n,t)),{name:i,$metadata:h(e)});break;case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":r=f(o({},await gV(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":r=f(o({},await mE(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},sV=async(e,t)=>{if(e.statusCode>=300)return aV(e,t);let n=await P(e.body,t),r={};r=_6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateItemCommand=sV;var aV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":r=f(o({},await Ml(n,t)),{name:i,$metadata:h(e)});break;case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":r=f(o({},await Ea(n,t)),{name:i,$metadata:h(e)});break;case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":r=f(o({},await Wt(n,t)),{name:i,$metadata:h(e)});break;case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":r=f(o({},await zt(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":r=f(o({},await jl(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},oV=async(e,t)=>{if(e.statusCode>=300)return lV(e,t);let n=await P(e.body,t),r={};r=h6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableCommand=oV;var lV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},cV=async(e,t)=>{if(e.statusCode>=300)return dV(e,t);let n=await P(e.body,t),r={};r=g6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=cV;var dV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},uV=async(e,t)=>{if(e.statusCode>=300)return mV(e,t);let n=await P(e.body,t),r={};r=y6(n,t);let i=o({$metadata:h(e)},r);return Promise.resolve(i)};w.deserializeAws_json1_0UpdateTimeToLiveCommand=uV;var mV=async(e,t)=>{let n=f(o({},e),{body:await P(e.body,t)}),r,i="UnknownError";switch(i=ee(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":r=f(o({},await ne(n,t)),{name:i,$metadata:h(e)});break;case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":r=f(o({},await ue(n,t)),{name:i,$metadata:h(e)});break;case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":r=f(o({},await et(n,t)),{name:i,$metadata:h(e)});break;case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":r=f(o({},await Cn(n,t)),{name:i,$metadata:h(e)});break;case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":r=f(o({},await Ee(n,t)),{name:i,$metadata:h(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:h(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},nh=async(e,t)=>{let n=e.body,r=j3(n,t);return o({name:"BackupInUseException",$fault:"client",$metadata:h(e)},r)},rh=async(e,t)=>{let n=e.body,r=z3(n,t);return o({name:"BackupNotFoundException",$fault:"client",$metadata:h(e)},r)},Ml=async(e,t)=>{let n=e.body,r=Z3(n,t);return o({name:"ConditionalCheckFailedException",$fault:"client",$metadata:h(e)},r)},cE=async(e,t)=>{let n=e.body,r=eW(n,t);return o({name:"ContinuousBackupsUnavailableException",$fault:"client",$metadata:h(e)},r)},fV=async(e,t)=>{let n=e.body,r=EW(n,t);return o({name:"DuplicateItemException",$fault:"client",$metadata:h(e)},r)},pV=async(e,t)=>{let n=e.body,r=IW(n,t);return o({name:"ExportConflictException",$fault:"client",$metadata:h(e)},r)},_V=async(e,t)=>{let n=e.body,r=RW(n,t);return o({name:"ExportNotFoundException",$fault:"client",$metadata:h(e)},r)},hV=async(e,t)=>{let n=e.body,r=FW(n,t);return o({name:"GlobalTableAlreadyExistsException",$fault:"client",$metadata:h(e)},r)},kl=async(e,t)=>{let n=e.body,r=GW(n,t);return o({name:"GlobalTableNotFoundException",$fault:"client",$metadata:h(e)},r)},dE=async(e,t)=>{let n=e.body,r=$W(n,t);return o({name:"IdempotentParameterMismatchException",$fault:"client",$metadata:h(e)},r)},gV=async(e,t)=>{let n=e.body,r=KW(n,t);return o({name:"IndexNotFoundException",$fault:"client",$metadata:h(e)},r)},ne=async(e,t)=>{let n=e.body,r=VW(n,t);return o({name:"InternalServerError",$fault:"server",$metadata:h(e)},r)},ue=async(e,t)=>{let n=e.body,r=HW(n,t);return o({name:"InvalidEndpointException",$fault:"client",$metadata:h(e)},r)},yV=async(e,t)=>{let n=e.body,r=WW(n,t);return o({name:"InvalidExportTimeException",$fault:"client",$metadata:h(e)},r)},vV=async(e,t)=>{let n=e.body,r=YW(n,t);return o({name:"InvalidRestoreTimeException",$fault:"client",$metadata:h(e)},r)},Ea=async(e,t)=>{let n=e.body,r=ZW(n,t);return o({name:"ItemCollectionSizeLimitExceededException",$fault:"client",$metadata:h(e)},r)},et=async(e,t)=>{let n=e.body,r=a4(n,t);return o({name:"LimitExceededException",$fault:"client",$metadata:h(e)},r)},uE=async(e,t)=>{let n=e.body,r=E4(n,t);return o({name:"PointInTimeRecoveryUnavailableException",$fault:"client",$metadata:h(e)},r)},Wt=async(e,t)=>{let n=e.body,r=A4(n,t);return o({name:"ProvisionedThroughputExceededException",$fault:"client",$metadata:h(e)},r)},bV=async(e,t)=>{let n=e.body,r=N4(n,t);return o({name:"ReplicaAlreadyExistsException",$fault:"client",$metadata:h(e)},r)},mE=async(e,t)=>{let n=e.body,r=F4(n,t);return o({name:"ReplicaNotFoundException",$fault:"client",$metadata:h(e)},r)},zt=async(e,t)=>{let n=e.body,r=G4(n,t);return o({name:"RequestLimitExceeded",$fault:"client",$metadata:h(e)},r)},Cn=async(e,t)=>{let n=e.body,r=$4(n,t);return o({name:"ResourceInUseException",$fault:"client",$metadata:h(e)},r)},Ee=async(e,t)=>{let n=e.body,r=K4(n,t);return o({name:"ResourceNotFoundException",$fault:"client",$metadata:h(e)},r)},fE=async(e,t)=>{let n=e.body,r=Z4(n,t);return o({name:"TableAlreadyExistsException",$fault:"client",$metadata:h(e)},r)},ih=async(e,t)=>{let n=e.body,r=e6(n,t);return o({name:"TableInUseException",$fault:"client",$metadata:h(e)},r)},fi=async(e,t)=>{let n=e.body,r=n6(n,t);return o({name:"TableNotFoundException",$fault:"client",$metadata:h(e)},r)},sh=async(e,t)=>{let n=e.body,r=o6(n,t);return o({name:"TransactionCanceledException",$fault:"client",$metadata:h(e)},r)},jl=async(e,t)=>{let n=e.body,r=l6(n,t);return o({name:"TransactionConflictException",$fault:"client",$metadata:h(e)},r)},pE=async(e,t)=>{let n=e.body,r=c6(n,t);return o({name:"TransactionInProgressException",$fault:"client",$metadata:h(e)},r)},SV=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}),_E=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:SV(n,t)),zl=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),wV=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:EV(i,t)}),{}),tr=(e,t)=>A$.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:DV(n,t)}),L:n=>({L:EH(n,t)}),M:n=>({M:PH(n,t)}),N:n=>({N:n}),NS:n=>({NS:OH(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:a3(n,t)}),_:(n,r)=>({name:r})}),hE=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:tr(n,t)),EV=(e,t)=>o(o({},e.Action!==void 0&&e.Action!==null&&{Action:e.Action}),e.Value!==void 0&&e.Value!==null&&{Value:tr(e.Value,t)}),AV=(e,t)=>o(o({},e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName}),e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:CV(e.TargetTrackingScalingPolicyConfiguration,t)}),Pr=(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:AV(e.ScalingPolicyUpdate,t)}),CV=(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:y.serializeFloat(e.TargetValue)}),TV=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statements!==void 0&&e.Statements!==null&&{Statements:MH(e.Statements,t)}),xV=(e,t)=>o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:IV(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),IV=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:SH(i,t)}),{}),RV=(e,t)=>o(o(o({},e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:ch(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),NV=(e,t)=>o(o(o({},e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:PV(e.RequestItems,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}),PV=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:N3(i,t)}),{}),DV=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),gE=(e,t)=>o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:hE(e.AttributeValueList,t)}),e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}),OV=(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:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),LV=(e,t)=>o(o({},e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),qV=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ul(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:dh(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),MV=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:JH(e.ReplicationGroup,t)}),kV=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),jV=(e,t)=>o(o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:bE(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:uh(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),zV=(e,t)=>o(o(o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:_E(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:oh(e.GlobalSecondaryIndexes,t)}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ul(e.KeySchema,t)}),e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:lh(e.LocalSecondaryIndexes,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Fl(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:SE(e.StreamSpecification,t)}),e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.Tags!==void 0&&e.Tags!==null&&{Tags:wE(e.Tags,t)}),UV=(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:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),FV=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),BV=(e,t)=>o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),GV=(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:ah(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(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}),$V=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),KV=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),VV=(e,t)=>o({},e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),HV=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),WV=(e,t)=>o({},e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}),YV=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),JV=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),QV=(e,t)=>({}),XV=(e,t)=>o({},e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}),ZV=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),eH=(e,t)=>o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),tH=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),nH=(e,t)=>({}),rH=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),iH=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),sH=(e,t)=>o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),aH=(e,t)=>o(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:ch(e.Parameters,t)}),e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),oH=(e,t)=>{var n;return o(o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:th.v4()},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:qH(e.TransactStatements,t)})},ah=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:lH(i,t)}),{}),lH=(e,t)=>o(o(o(o({},e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:hE(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:tr(e.Value,t)}),cH=(e,t)=>{var n;return o(o(o(o(o(o(o(o({ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:th.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})},Yt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:i}),{}),nr=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:tr(i,t)}),{}),yE=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:gE(i,t)}),{}),dH=(e,t)=>o(o(o(o({},e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(e.Key,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),uH=(e,t)=>o(o(o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:zl(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(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}),mH=(e,t)=>o(o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ul(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:dh(e.Projection,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),fH=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Pr(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),pH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:fH(n,t)),oh=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:mH(n,t)),_H=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:qV(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:BV(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:S3(e.Update,t)}),hH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:_H(n,t)),gH=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Pr(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}),yH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:gH(n,t)),dn=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:tr(i,t)}),{}),vH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:gE(i,t)}),{}),bH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:dn(n,t)),SH=(e,t)=>o(o(o(o(o({},e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:zl(e.AttributesToGet,t)}),e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.Keys!==void 0&&e.Keys!==null&&{Keys:bH(e.Keys,t)}),e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}),Ul=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:wH(n,t)),wH=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}),vE=(e,t)=>o(o({},e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),EH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:tr(n,t)),AH=(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)}),CH=(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}),TH=(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}),xH=(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}),IH=(e,t)=>o(o({},e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName}),e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}),RH=(e,t)=>o(o({},e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken}),e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),NH=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Ul(e.KeySchema,t)}),e.Projection!==void 0&&e.Projection!==null&&{Projection:dh(e.Projection,t)}),lh=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:NH(n,t)),PH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:tr(i,t)}),{}),DH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),OH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),LH=(e,t)=>o(o({},e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:ch(e.Parameters,t)}),e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}),qH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:LH(n,t)),MH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:RV(n,t)),kH=(e,t)=>o({},e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}),ch=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:tr(n,t)),dh=(e,t)=>o(o({},e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:DH(e.NonKeyAttributes,t)}),e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}),pi=(e,t)=>o(o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}),uh=(e,t)=>o({},e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}),jH=(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:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:mh(e.Item,t)}),e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),zH=(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:ah(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Item!==void 0&&e.Item!==null&&{Item:mh(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}),mh=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:tr(i,t)}),{}),UH=(e,t)=>o({},e.Item!==void 0&&e.Item!==null&&{Item:mh(e.Item,t)}),FH=(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:zl(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:dn(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(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:vH(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:yE(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}),BH=(e,t)=>o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),GH=(e,t)=>o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:HH(e.ReplicaGlobalSecondaryIndexUpdates,t)}),e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Pr(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}),$H=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:GH(n,t)),KH=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:uh(e.ProvisionedThroughputOverride,t)}),VH=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Pr(e.ProvisionedReadCapacityAutoScalingUpdate,t)}),HH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:VH(n,t)),bE=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:KH(n,t)),WH=(e,t)=>o(o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Pr(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}),YH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:WH(n,t)),JH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:BH(n,t)),QH=(e,t)=>o(o(o(o(o({},e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:YH(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Pr(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)}),e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits}),e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}),XH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:QH(n,t)),ZH=(e,t)=>o(o(o({},e.Create!==void 0&&e.Create!==null&&{Create:jV(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:KV(e.Delete,t)}),e.Update!==void 0&&e.Update!==null&&{Update:C3(e.Update,t)}),e3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:ZH(n,t)),t3=(e,t)=>o(o({},e.Create!==void 0&&e.Create!==null&&{Create:kV(e.Create,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:$V(e.Delete,t)}),n3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t3(n,t)),r3=(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:oh(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:lh(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:pi(e.ProvisionedThroughputOverride,t)}),e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:Fl(e.SSESpecificationOverride,t)}),e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}),i3=(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:oh(e.GlobalSecondaryIndexOverride,t)}),e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:lh(e.LocalSecondaryIndexOverride,t)}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:pi(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:Fl(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}),s3=(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:zl(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:dn(e.ExclusiveStartKey,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(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:yE(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}),Fl=(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}),SE=(e,t)=>o(o({},e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled}),e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}),a3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),o3=(e,t)=>o(o({},e.Key!==void 0&&e.Key!==null&&{Key:e.Key}),e.Value!==void 0&&e.Value!==null&&{Value:e.Value}),l3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),wE=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:o3(n,t)),c3=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.Tags!==void 0&&e.Tags!==null&&{Tags:wE(e.Tags,t)}),d3=(e,t)=>o(o({},e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName}),e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}),u3=(e,t)=>o({},e.Get!==void 0&&e.Get!==null&&{Get:dH(e.Get,t)}),m3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:u3(n,t)),f3=(e,t)=>o(o({},e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}),e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:m3(e.TransactItems,t)}),p3=(e,t)=>o(o(o(o({},e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:OV(e.ConditionCheck,t)}),e.Delete!==void 0&&e.Delete!==null&&{Delete:UV(e.Delete,t)}),e.Put!==void 0&&e.Put!==null&&{Put:jH(e.Put,t)}),e.Update!==void 0&&e.Update!==null&&{Update:y3(e.Update,t)}),_3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:p3(n,t)),h3=(e,t)=>{var n;return o(o(o({ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:th.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:_3(e.TransactItems,t)})},g3=(e,t)=>o(o({},e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}),e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:l3(e.TagKeys,t)}),y3=(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:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(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}),v3=(e,t)=>o(o({},e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:kH(e.PointInTimeRecoverySpecification,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),b3=(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}),S3=(e,t)=>o(o({},e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),w3=(e,t)=>o(o({},e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:n3(e.ReplicaUpdates,t)}),E3=(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:yH(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)}),e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}),e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Pr(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)}),e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits}),e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:XH(e.ReplicaSettingsUpdate,t)}),A3=(e,t)=>o(o(o(o(o(o(o(o(o(o(o(o({},e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:wV(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:ah(e.Expected,t)}),e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Yt(e.ExpressionAttributeNames,t)}),e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:nr(e.ExpressionAttributeValues,t)}),e.Key!==void 0&&e.Key!==null&&{Key:dn(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}),C3=(e,t)=>o(o(o(o(o({},e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:bE(e.GlobalSecondaryIndexes,t)}),e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId}),e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:uh(e.ProvisionedThroughputOverride,t)}),e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}),e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}),T3=(e,t)=>o(o(o(o(o(o(o(o(o({},e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:_E(e.AttributeDefinitions,t)}),e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode}),e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:hH(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:pi(e.ProvisionedThroughput,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:e3(e.ReplicaUpdates,t)}),e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Fl(e.SSESpecification,t)}),e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:SE(e.StreamSpecification,t)}),e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),x3=(e,t)=>o(o(o(o({},e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:pH(e.GlobalSecondaryIndexUpdates,t)}),e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Pr(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}),e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:$H(e.ReplicaUpdates,t)}),e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),I3=(e,t)=>o(o({},e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}),e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:d3(e.TimeToLiveSpecification,t)}),R3=(e,t)=>o(o({},e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:VV(e.DeleteRequest,t)}),e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:UH(e.PutRequest,t)}),N3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:R3(n,t)),P3=(e,t)=>({ArchivalBackupArn:y.expectString(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.ArchivalDateTime))):void 0,ArchivalReason:y.expectString(e.ArchivalReason)}),D3=(e,t)=>({AttributeName:y.expectString(e.AttributeName),AttributeType:y.expectString(e.AttributeType)}),O3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:D3(n,t)),Dr=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),L3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),ls=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:y.expectBoolean(e.BOOL)!==void 0?{BOOL:y.expectBoolean(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:J3(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:o4(e.L,t)}:e.M!==void 0&&e.M!==null?{M:y4(e.M,t)}:y.expectString(e.N)!==void 0?{N:y.expectString(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:b4(e.NS,t)}:y.expectBoolean(e.NULL)!==void 0?{NULL:y.expectBoolean(e.NULL)}:y.expectString(e.S)!==void 0?{S:y.expectString(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:X4(e.SS,t)}:{$unknown:Object.entries(e)[0]},q3=(e,t)=>({PolicyName:y.expectString(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?k3(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),M3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:q3(n,t)),Or=(e,t)=>({AutoScalingDisabled:y.expectBoolean(e.AutoScalingDisabled),AutoScalingRoleArn:y.expectString(e.AutoScalingRoleArn),MaximumUnits:y.expectLong(e.MaximumUnits),MinimumUnits:y.expectLong(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?M3(e.ScalingPolicies,t):void 0}),k3=(e,t)=>({DisableScaleIn:y.expectBoolean(e.DisableScaleIn),ScaleInCooldown:y.expectInt32(e.ScaleInCooldown),ScaleOutCooldown:y.expectInt32(e.ScaleOutCooldown),TargetValue:y.limitedParseDouble(e.TargetValue)}),EE=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?AE(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?J4(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?Q4(e.SourceTableFeatureDetails,t):void 0}),AE=(e,t)=>({BackupArn:y.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.BackupExpiryDateTime))):void 0,BackupName:y.expectString(e.BackupName),BackupSizeBytes:y.expectLong(e.BackupSizeBytes),BackupStatus:y.expectString(e.BackupStatus),BackupType:y.expectString(e.BackupType)}),j3=(e,t)=>({message:y.expectString(e.message)}),z3=(e,t)=>({message:y.expectString(e.message)}),U3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:F3(n,t)),F3=(e,t)=>({BackupArn:y.expectString(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.BackupExpiryDateTime))):void 0,BackupName:y.expectString(e.BackupName),BackupSizeBytes:y.expectLong(e.BackupSizeBytes),BackupStatus:y.expectString(e.BackupStatus),BackupType:y.expectString(e.BackupType),TableArn:y.expectString(e.TableArn),TableId:y.expectString(e.TableId),TableName:y.expectString(e.TableName)}),B3=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?S4(e.Responses,t):void 0}),G3=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?K3(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?$3(e.UnprocessedKeys,t):void 0}),$3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:n4(i,t)}),{}),K3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:Gl(i,t)}),{}),V3=(e,t)=>({Code:y.expectString(e.Code),Message:y.expectString(e.Message)}),H3=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?V3(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Dr(e.Item,t):void 0,TableName:y.expectString(e.TableName)}),W3=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?RE(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?Y3(e.UnprocessedItems,t):void 0}),Y3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:b6(i,t)}),{}),CE=(e,t)=>({BillingMode:y.expectString(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastUpdateToPayPerRequestDateTime))):void 0}),J3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),Q3=(e,t)=>({Code:y.expectString(e.Code),Item:e.Item!==void 0&&e.Item!==null?Dr(e.Item,t):void 0,Message:y.expectString(e.Message)}),X3=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Q3(n,t)),TE=(e,t)=>({CapacityUnits:y.limitedParseDouble(e.CapacityUnits),ReadCapacityUnits:y.limitedParseDouble(e.ReadCapacityUnits),WriteCapacityUnits:y.limitedParseDouble(e.WriteCapacityUnits)}),Z3=(e,t)=>({message:y.expectString(e.message)}),Lr=(e,t)=>({CapacityUnits:y.limitedParseDouble(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?kE(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?kE(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:y.limitedParseDouble(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?TE(e.Table,t):void 0,TableName:y.expectString(e.TableName),WriteCapacityUnits:y.limitedParseDouble(e.WriteCapacityUnits)}),cs=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Lr(n,t)),xE=(e,t)=>({ContinuousBackupsStatus:y.expectString(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?w4(e.PointInTimeRecoveryDescription,t):void 0}),eW=(e,t)=>({message:y.expectString(e.message)}),tW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),nW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:rW(n,t)),rW=(e,t)=>({ContributorInsightsStatus:y.expectString(e.ContributorInsightsStatus),IndexName:y.expectString(e.IndexName),TableName:y.expectString(e.TableName)}),iW=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?AE(e.BackupDetails,t):void 0}),sW=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?fh(e.GlobalTableDescription,t):void 0}),aW=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),oW=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?EE(e.BackupDescription,t):void 0}),lW=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Dr(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?Bl(e.ItemCollectionMetrics,t):void 0}),cW=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?$l(e.Key,t):void 0}),dW=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),uW=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?EE(e.BackupDescription,t):void 0}),mW=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?xE(e.ContinuousBackupsDescription,t):void 0}),fW=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?tW(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:y.expectString(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?LW(e.FailureException,t):void 0,IndexName:y.expectString(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastUpdateDateTime))):void 0,TableName:y.expectString(e.TableName)}),pW=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?CW(e.Endpoints,t):void 0}),_W=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?IE(e.ExportDescription,t):void 0}),hW=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?fh(e.GlobalTableDescription,t):void 0}),gW=(e,t)=>({GlobalTableName:y.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?ME(e.ReplicaSettings,t):void 0}),yW=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?s4(e.KinesisDataStreamDestinations,t):void 0,TableName:y.expectString(e.TableName)}),vW=(e,t)=>({AccountMaxReadCapacityUnits:y.expectLong(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:y.expectLong(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:y.expectLong(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:y.expectLong(e.TableMaxWriteCapacityUnits)}),bW=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?us(e.Table,t):void 0}),SW=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?UE(e.TableAutoScalingDescription,t):void 0}),wW=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?FE(e.TimeToLiveDescription,t):void 0}),EW=(e,t)=>({message:y.expectString(e.message)}),AW=(e,t)=>({Address:y.expectString(e.Address),CachePeriodInMinutes:y.expectLong(e.CachePeriodInMinutes)}),CW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:AW(n,t)),TW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Gl(e.Items,t):void 0,NextToken:y.expectString(e.NextToken)}),xW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?NE(e.Responses,t):void 0}),IW=(e,t)=>({message:y.expectString(e.message)}),IE=(e,t)=>({BilledSizeBytes:y.expectLong(e.BilledSizeBytes),ClientToken:y.expectString(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.EndTime))):void 0,ExportArn:y.expectString(e.ExportArn),ExportFormat:y.expectString(e.ExportFormat),ExportManifest:y.expectString(e.ExportManifest),ExportStatus:y.expectString(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.ExportTime))):void 0,FailureCode:y.expectString(e.FailureCode),FailureMessage:y.expectString(e.FailureMessage),ItemCount:y.expectLong(e.ItemCount),S3Bucket:y.expectString(e.S3Bucket),S3BucketOwner:y.expectString(e.S3BucketOwner),S3Prefix:y.expectString(e.S3Prefix),S3SseAlgorithm:y.expectString(e.S3SseAlgorithm),S3SseKmsKeyId:y.expectString(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.StartTime))):void 0,TableArn:y.expectString(e.TableArn),TableId:y.expectString(e.TableId)}),RW=(e,t)=>({message:y.expectString(e.message)}),NW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:PW(n,t)),PW=(e,t)=>({ExportArn:y.expectString(e.ExportArn),ExportStatus:y.expectString(e.ExportStatus)}),DW=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?IE(e.ExportDescription,t):void 0}),OW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:y.expectString(i)}),{}),LW=(e,t)=>({ExceptionDescription:y.expectString(e.ExceptionDescription),ExceptionName:y.expectString(e.ExceptionName)}),qW=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Dr(e.Item,t):void 0}),MW=(e,t)=>({Backfilling:y.expectBoolean(e.Backfilling),IndexArn:y.expectString(e.IndexArn),IndexName:y.expectString(e.IndexName),IndexSizeBytes:y.expectLong(e.IndexSizeBytes),IndexStatus:y.expectString(e.IndexStatus),ItemCount:y.expectLong(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Kl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?OE(e.ProvisionedThroughput,t):void 0}),kW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:MW(n,t)),jW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:zW(n,t)),zW=(e,t)=>({IndexName:y.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Kl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?DE(e.ProvisionedThroughput,t):void 0}),UW=(e,t)=>({GlobalTableName:y.expectString(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?U4(e.ReplicationGroup,t):void 0}),FW=(e,t)=>({message:y.expectString(e.message)}),fh=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.CreationDateTime))):void 0,GlobalTableArn:y.expectString(e.GlobalTableArn),GlobalTableName:y.expectString(e.GlobalTableName),GlobalTableStatus:y.expectString(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?qE(e.ReplicationGroup,t):void 0}),BW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:UW(n,t)),GW=(e,t)=>({message:y.expectString(e.message)}),$W=(e,t)=>({Message:y.expectString(e.Message)}),KW=(e,t)=>({message:y.expectString(e.message)}),VW=(e,t)=>({message:y.expectString(e.message)}),HW=(e,t)=>({Message:y.expectString(e.Message)}),WW=(e,t)=>({message:y.expectString(e.message)}),YW=(e,t)=>({message:y.expectString(e.message)}),JW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),Bl=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?JW(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?XW(e.SizeEstimateRangeGB,t):void 0}),QW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Bl(n,t)),RE=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:QW(i,t)}),{}),XW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.limitedParseDouble(n)),ZW=(e,t)=>({message:y.expectString(e.message)}),Gl=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Dr(n,t)),e4=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Dr(e.Item,t):void 0}),NE=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:e4(n,t)),$l=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),t4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:$l(n,t)),n4=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?L3(e.AttributesToGet,t):void 0,ConsistentRead:y.expectBoolean(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?OW(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?t4(e.Keys,t):void 0,ProjectionExpression:y.expectString(e.ProjectionExpression)}),ds=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:r4(n,t)),r4=(e,t)=>({AttributeName:y.expectString(e.AttributeName),KeyType:y.expectString(e.KeyType)}),i4=(e,t)=>({DestinationStatus:y.expectString(e.DestinationStatus),DestinationStatusDescription:y.expectString(e.DestinationStatusDescription),StreamArn:y.expectString(e.StreamArn)}),s4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:i4(n,t)),PE=(e,t)=>({DestinationStatus:y.expectString(e.DestinationStatus),StreamArn:y.expectString(e.StreamArn),TableName:y.expectString(e.TableName)}),a4=(e,t)=>({message:y.expectString(e.message)}),o4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ls(y.expectUnion(n),t)),l4=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?U3(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:y.expectString(e.LastEvaluatedBackupArn)}),c4=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?nW(e.ContributorInsightsSummaries,t):void 0,NextToken:y.expectString(e.NextToken)}),d4=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?NW(e.ExportSummaries,t):void 0,NextToken:y.expectString(e.NextToken)}),u4=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?BW(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:y.expectString(e.LastEvaluatedGlobalTableName)}),m4=(e,t)=>({LastEvaluatedTableName:y.expectString(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?t6(e.TableNames,t):void 0}),f4=(e,t)=>({NextToken:y.expectString(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?i6(e.Tags,t):void 0}),p4=(e,t)=>({IndexArn:y.expectString(e.IndexArn),IndexName:y.expectString(e.IndexName),IndexSizeBytes:y.expectLong(e.IndexSizeBytes),ItemCount:y.expectLong(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Kl(e.Projection,t):void 0}),_4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:p4(n,t)),h4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:g4(n,t)),g4=(e,t)=>({IndexName:y.expectString(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Kl(e.Projection,t):void 0}),y4=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),v4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),b4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),S4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:H3(n,t)),w4=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.EarliestRestorableDateTime))):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LatestRestorableDateTime))):void 0,PointInTimeRecoveryStatus:y.expectString(e.PointInTimeRecoveryStatus)}),E4=(e,t)=>({message:y.expectString(e.message)}),Kl=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?v4(e.NonKeyAttributes,t):void 0,ProjectionType:y.expectString(e.ProjectionType)}),DE=(e,t)=>({ReadCapacityUnits:y.expectLong(e.ReadCapacityUnits),WriteCapacityUnits:y.expectLong(e.WriteCapacityUnits)}),OE=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastDecreaseDateTime))):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastIncreaseDateTime))):void 0,NumberOfDecreasesToday:y.expectLong(e.NumberOfDecreasesToday),ReadCapacityUnits:y.expectLong(e.ReadCapacityUnits),WriteCapacityUnits:y.expectLong(e.WriteCapacityUnits)}),A4=(e,t)=>({message:y.expectString(e.message)}),LE=(e,t)=>({ReadCapacityUnits:y.expectLong(e.ReadCapacityUnits)}),C4=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:ls(y.expectUnion(i),t)}),{}),T4=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Dr(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?Bl(e.ItemCollectionMetrics,t):void 0}),x4=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?C4(e.Item,t):void 0}),I4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Count:y.expectInt32(e.Count),Items:e.Items!==void 0&&e.Items!==null?Gl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?$l(e.LastEvaluatedKey,t):void 0,ScannedCount:y.expectInt32(e.ScannedCount)}),R4=(e,t)=>({RegionName:y.expectString(e.RegionName)}),N4=(e,t)=>({message:y.expectString(e.message)}),P4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?q4(e.GlobalSecondaryIndexes,t):void 0,RegionName:y.expectString(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Or(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Or(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:y.expectString(e.ReplicaStatus)}),D4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:P4(n,t)),O4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?k4(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:y.expectString(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?LE(e.ProvisionedThroughputOverride,t):void 0,RegionName:y.expectString(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.ReplicaInaccessibleDateTime))):void 0,ReplicaStatus:y.expectString(e.ReplicaStatus),ReplicaStatusDescription:y.expectString(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:y.expectString(e.ReplicaStatusPercentProgress),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?ph(e.ReplicaTableClassSummary,t):void 0}),qE=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:O4(n,t)),L4=(e,t)=>({IndexName:y.expectString(e.IndexName),IndexStatus:y.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Or(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Or(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),q4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:L4(n,t)),M4=(e,t)=>({IndexName:y.expectString(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?LE(e.ProvisionedThroughputOverride,t):void 0}),k4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:M4(n,t)),j4=(e,t)=>({IndexName:y.expectString(e.IndexName),IndexStatus:y.expectString(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Or(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:y.expectLong(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Or(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:y.expectLong(e.ProvisionedWriteCapacityUnits)}),z4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:j4(n,t)),U4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:R4(n,t)),F4=(e,t)=>({message:y.expectString(e.message)}),B4=(e,t)=>({RegionName:y.expectString(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?CE(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?z4(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Or(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:y.expectLong(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Or(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:y.expectLong(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:y.expectString(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?ph(e.ReplicaTableClassSummary,t):void 0}),ME=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:B4(n,t)),G4=(e,t)=>({message:y.expectString(e.message)}),$4=(e,t)=>({message:y.expectString(e.message)}),K4=(e,t)=>({message:y.expectString(e.message)}),V4=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.RestoreDateTime))):void 0,RestoreInProgress:y.expectBoolean(e.RestoreInProgress),SourceBackupArn:y.expectString(e.SourceBackupArn),SourceTableArn:y.expectString(e.SourceTableArn)}),H4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),W4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),Y4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Lr(e.ConsumedCapacity,t):void 0,Count:y.expectInt32(e.Count),Items:e.Items!==void 0&&e.Items!==null?Gl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?$l(e.LastEvaluatedKey,t):void 0,ScannedCount:y.expectInt32(e.ScannedCount)}),kE=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:f(o({},n),{[r]:TE(i,t)}),{}),J4=(e,t)=>({BillingMode:y.expectString(e.BillingMode),ItemCount:y.expectLong(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?DE(e.ProvisionedThroughput,t):void 0,TableArn:y.expectString(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.TableCreationDateTime))):void 0,TableId:y.expectString(e.TableId),TableName:y.expectString(e.TableName),TableSizeBytes:y.expectLong(e.TableSizeBytes)}),Q4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?jW(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?h4(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?jE(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?zE(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?FE(e.TimeToLiveDescription,t):void 0}),jE=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.InaccessibleEncryptionDateTime))):void 0,KMSMasterKeyArn:y.expectString(e.KMSMasterKeyArn),SSEType:y.expectString(e.SSEType),Status:y.expectString(e.Status)}),zE=(e,t)=>({StreamEnabled:y.expectBoolean(e.StreamEnabled),StreamViewType:y.expectString(e.StreamViewType)}),X4=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),Z4=(e,t)=>({message:y.expectString(e.message)}),UE=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?D4(e.Replicas,t):void 0,TableName:y.expectString(e.TableName),TableStatus:y.expectString(e.TableStatus)}),ph=(e,t)=>({LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.LastUpdateDateTime))):void 0,TableClass:y.expectString(e.TableClass)}),us=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?P3(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?O3(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?CE(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?y.expectNonNull(y.parseEpochTimestamp(y.expectNumber(e.CreationDateTime))):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?kW(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:y.expectString(e.GlobalTableVersion),ItemCount:y.expectLong(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?ds(e.KeySchema,t):void 0,LatestStreamArn:y.expectString(e.LatestStreamArn),LatestStreamLabel:y.expectString(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?_4(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?OE(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?qE(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?V4(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?jE(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?zE(e.StreamSpecification,t):void 0,TableArn:y.expectString(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?ph(e.TableClassSummary,t):void 0,TableId:y.expectString(e.TableId),TableName:y.expectString(e.TableName),TableSizeBytes:y.expectLong(e.TableSizeBytes),TableStatus:y.expectString(e.TableStatus)}),e6=(e,t)=>({message:y.expectString(e.message)}),t6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:y.expectString(n)),n6=(e,t)=>({message:y.expectString(e.message)}),r6=(e,t)=>({Key:y.expectString(e.Key),Value:y.expectString(e.Value)}),i6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:r6(n,t)),FE=(e,t)=>({AttributeName:y.expectString(e.AttributeName),TimeToLiveStatus:y.expectString(e.TimeToLiveStatus)}),s6=(e,t)=>({AttributeName:y.expectString(e.AttributeName),Enabled:y.expectBoolean(e.Enabled)}),a6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?NE(e.Responses,t):void 0}),o6=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?X3(e.CancellationReasons,t):void 0,Message:y.expectString(e.Message)}),l6=(e,t)=>({message:y.expectString(e.message)}),c6=(e,t)=>({Message:y.expectString(e.Message)}),d6=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?cs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?RE(e.ItemCollectionMetrics,t):void 0}),u6=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?xE(e.ContinuousBackupsDescription,t):void 0}),m6=(e,t)=>({ContributorInsightsStatus:y.expectString(e.ContributorInsightsStatus),IndexName:y.expectString(e.IndexName),TableName:y.expectString(e.TableName)}),f6=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?fh(e.GlobalTableDescription,t):void 0}),p6=(e,t)=>({GlobalTableName:y.expectString(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?ME(e.ReplicaSettings,t):void 0}),_6=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Dr(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?Bl(e.ItemCollectionMetrics,t):void 0}),h6=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?us(e.TableDescription,t):void 0}),g6=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?UE(e.TableAutoScalingDescription,t):void 0}),y6=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?s6(e.TimeToLiveSpecification,t):void 0}),v6=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?cW(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?x4(e.PutRequest,t):void 0}),b6=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:v6(n,t)),h=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"]}},_h=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),S6=(e,t)=>_h(e,t).then(n=>t.utf8Encoder(n)),Z=async(e,t,n,r,i)=>{let{hostname:s,protocol:a="https",port:l,path:c}=await e.endpoint(),d={protocol:a,hostname:s,port:l,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return r!==void 0&&(d.hostname=r),i!==void 0&&(d.body=i),new E$.HttpRequest(d)},P=(e,t)=>S6(e,t).then(n=>n.length?JSON.parse(n):{}),ee=(e,t)=>{let n=(s,a)=>Object.keys(s).find(l=>l.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},i=n(e.headers,"x-amzn-errortype");return i!==void 0?r(e.headers[i]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var hh=p(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.BatchExecuteStatementCommand=void 0;var w6=B(),E6=q(),BE=H(),GE=J(),$E=class extends E6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(w6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:BE.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:BE.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return GE.serializeAws_json1_0BatchExecuteStatementCommand(t,n)}deserialize(t,n){return GE.deserializeAws_json1_0BatchExecuteStatementCommand(t,n)}};Vl.BatchExecuteStatementCommand=$E});var gh=p(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.BatchGetItemCommand=void 0;var A6=B(),C6=q(),KE=H(),VE=J(),HE=class extends C6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(A6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:KE.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:KE.BatchGetItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return VE.serializeAws_json1_0BatchGetItemCommand(t,n)}deserialize(t,n){return VE.deserializeAws_json1_0BatchGetItemCommand(t,n)}};Hl.BatchGetItemCommand=HE});var yh=p(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.BatchWriteItemCommand=void 0;var T6=B(),x6=q(),WE=H(),YE=J(),JE=class extends x6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(T6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:WE.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:WE.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return YE.serializeAws_json1_0BatchWriteItemCommand(t,n)}deserialize(t,n){return YE.deserializeAws_json1_0BatchWriteItemCommand(t,n)}};Wl.BatchWriteItemCommand=JE});var vh=p(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.CreateBackupCommand=void 0;var I6=B(),R6=q(),QE=H(),XE=J(),ZE=class extends R6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(I6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:QE.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:QE.CreateBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return XE.serializeAws_json1_0CreateBackupCommand(t,n)}deserialize(t,n){return XE.deserializeAws_json1_0CreateBackupCommand(t,n)}};Yl.CreateBackupCommand=ZE});var bh=p(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.CreateGlobalTableCommand=void 0;var N6=B(),P6=q(),eA=H(),tA=J(),nA=class extends P6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(N6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:eA.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:eA.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return tA.serializeAws_json1_0CreateGlobalTableCommand(t,n)}deserialize(t,n){return tA.deserializeAws_json1_0CreateGlobalTableCommand(t,n)}};Jl.CreateGlobalTableCommand=nA});var Sh=p(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.CreateTableCommand=void 0;var D6=B(),O6=q(),rA=H(),iA=J(),sA=class extends O6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(D6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:rA.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:rA.CreateTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return iA.serializeAws_json1_0CreateTableCommand(t,n)}deserialize(t,n){return iA.deserializeAws_json1_0CreateTableCommand(t,n)}};Ql.CreateTableCommand=sA});var wh=p(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.DeleteBackupCommand=void 0;var L6=B(),q6=q(),aA=H(),oA=J(),lA=class extends q6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(L6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:aA.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:aA.DeleteBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return oA.serializeAws_json1_0DeleteBackupCommand(t,n)}deserialize(t,n){return oA.deserializeAws_json1_0DeleteBackupCommand(t,n)}};Xl.DeleteBackupCommand=lA});var Eh=p(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.DeleteItemCommand=void 0;var M6=B(),k6=q(),cA=H(),dA=J(),uA=class extends k6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(M6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:cA.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:cA.DeleteItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return dA.serializeAws_json1_0DeleteItemCommand(t,n)}deserialize(t,n){return dA.deserializeAws_json1_0DeleteItemCommand(t,n)}};Zl.DeleteItemCommand=uA});var Ah=p(ec=>{"use strict";Object.defineProperty(ec,"__esModule",{value:!0});ec.DeleteTableCommand=void 0;var j6=B(),z6=q(),mA=H(),fA=J(),pA=class extends z6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(j6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:mA.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:mA.DeleteTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return fA.serializeAws_json1_0DeleteTableCommand(t,n)}deserialize(t,n){return fA.deserializeAws_json1_0DeleteTableCommand(t,n)}};ec.DeleteTableCommand=pA});var Ch=p(tc=>{"use strict";Object.defineProperty(tc,"__esModule",{value:!0});tc.DescribeBackupCommand=void 0;var U6=B(),F6=q(),_A=H(),hA=J(),gA=class extends F6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(U6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:_A.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:_A.DescribeBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return hA.serializeAws_json1_0DescribeBackupCommand(t,n)}deserialize(t,n){return hA.deserializeAws_json1_0DescribeBackupCommand(t,n)}};tc.DescribeBackupCommand=gA});var Th=p(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.DescribeContinuousBackupsCommand=void 0;var B6=B(),G6=q(),yA=H(),vA=J(),bA=class extends G6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(B6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:yA.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:yA.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return vA.serializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}deserialize(t,n){return vA.deserializeAws_json1_0DescribeContinuousBackupsCommand(t,n)}};nc.DescribeContinuousBackupsCommand=bA});var xh=p(rc=>{"use strict";Object.defineProperty(rc,"__esModule",{value:!0});rc.DescribeContributorInsightsCommand=void 0;var $6=B(),K6=q(),SA=H(),wA=J(),EA=class extends K6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use($6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:SA.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:SA.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return wA.serializeAws_json1_0DescribeContributorInsightsCommand(t,n)}deserialize(t,n){return wA.deserializeAws_json1_0DescribeContributorInsightsCommand(t,n)}};rc.DescribeContributorInsightsCommand=EA});var sc=p(ic=>{"use strict";Object.defineProperty(ic,"__esModule",{value:!0});ic.DescribeEndpointsCommand=void 0;var V6=B(),H6=q(),AA=H(),CA=J(),TA=class extends H6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(V6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:AA.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:AA.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return CA.serializeAws_json1_0DescribeEndpointsCommand(t,n)}deserialize(t,n){return CA.deserializeAws_json1_0DescribeEndpointsCommand(t,n)}};ic.DescribeEndpointsCommand=TA});var Ih=p(ac=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.DescribeExportCommand=void 0;var W6=B(),Y6=q(),xA=H(),IA=J(),RA=class extends Y6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(W6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:xA.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:xA.DescribeExportOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return IA.serializeAws_json1_0DescribeExportCommand(t,n)}deserialize(t,n){return IA.deserializeAws_json1_0DescribeExportCommand(t,n)}};ac.DescribeExportCommand=RA});var Rh=p(oc=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.DescribeGlobalTableCommand=void 0;var J6=B(),Q6=q(),NA=H(),PA=J(),DA=class extends Q6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(J6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:NA.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:NA.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return PA.serializeAws_json1_0DescribeGlobalTableCommand(t,n)}deserialize(t,n){return PA.deserializeAws_json1_0DescribeGlobalTableCommand(t,n)}};oc.DescribeGlobalTableCommand=DA});var Nh=p(lc=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.DescribeGlobalTableSettingsCommand=void 0;var X6=B(),Z6=q(),OA=H(),LA=J(),qA=class extends Z6.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(X6.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:OA.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:OA.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return LA.serializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}deserialize(t,n){return LA.deserializeAws_json1_0DescribeGlobalTableSettingsCommand(t,n)}};lc.DescribeGlobalTableSettingsCommand=qA});var Ph=p(cc=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.DescribeKinesisStreamingDestinationCommand=void 0;var e8=B(),t8=q(),MA=H(),kA=J(),jA=class extends t8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(e8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:MA.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:MA.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return kA.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return kA.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand(t,n)}};cc.DescribeKinesisStreamingDestinationCommand=jA});var Dh=p(dc=>{"use strict";Object.defineProperty(dc,"__esModule",{value:!0});dc.DescribeLimitsCommand=void 0;var n8=B(),r8=q(),zA=H(),UA=J(),FA=class extends r8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(n8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:zA.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:zA.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return UA.serializeAws_json1_0DescribeLimitsCommand(t,n)}deserialize(t,n){return UA.deserializeAws_json1_0DescribeLimitsCommand(t,n)}};dc.DescribeLimitsCommand=FA});var Aa=p(uc=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.DescribeTableCommand=void 0;var i8=B(),s8=q(),BA=H(),GA=J(),$A=class extends s8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(i8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:BA.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:BA.DescribeTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return GA.serializeAws_json1_0DescribeTableCommand(t,n)}deserialize(t,n){return GA.deserializeAws_json1_0DescribeTableCommand(t,n)}};uc.DescribeTableCommand=$A});var Oh=p(mc=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.DescribeTableReplicaAutoScalingCommand=void 0;var a8=B(),o8=q(),KA=H(),VA=J(),HA=class extends o8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(a8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:KA.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:KA.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return VA.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return VA.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand(t,n)}};mc.DescribeTableReplicaAutoScalingCommand=HA});var Lh=p(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.DescribeTimeToLiveCommand=void 0;var l8=B(),c8=q(),WA=H(),YA=J(),JA=class extends c8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(l8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:WA.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:WA.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return YA.serializeAws_json1_0DescribeTimeToLiveCommand(t,n)}deserialize(t,n){return YA.deserializeAws_json1_0DescribeTimeToLiveCommand(t,n)}};fc.DescribeTimeToLiveCommand=JA});var qh=p(pc=>{"use strict";Object.defineProperty(pc,"__esModule",{value:!0});pc.DisableKinesisStreamingDestinationCommand=void 0;var d8=B(),u8=q(),QA=H(),XA=J(),ZA=class extends u8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(d8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:QA.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:QA.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return XA.serializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return XA.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand(t,n)}};pc.DisableKinesisStreamingDestinationCommand=ZA});var Mh=p(_c=>{"use strict";Object.defineProperty(_c,"__esModule",{value:!0});_c.EnableKinesisStreamingDestinationCommand=void 0;var m8=B(),f8=q(),e0=H(),t0=J(),n0=class extends f8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(m8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:e0.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:e0.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return t0.serializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}deserialize(t,n){return t0.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand(t,n)}};_c.EnableKinesisStreamingDestinationCommand=n0});var kh=p(hc=>{"use strict";Object.defineProperty(hc,"__esModule",{value:!0});hc.ExecuteStatementCommand=void 0;var p8=B(),_8=q(),r0=H(),i0=J(),s0=class extends _8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(p8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:r0.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:r0.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return i0.serializeAws_json1_0ExecuteStatementCommand(t,n)}deserialize(t,n){return i0.deserializeAws_json1_0ExecuteStatementCommand(t,n)}};hc.ExecuteStatementCommand=s0});var jh=p(gc=>{"use strict";Object.defineProperty(gc,"__esModule",{value:!0});gc.ExecuteTransactionCommand=void 0;var h8=B(),g8=q(),a0=H(),o0=J(),l0=class extends g8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(h8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:a0.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:a0.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return o0.serializeAws_json1_0ExecuteTransactionCommand(t,n)}deserialize(t,n){return o0.deserializeAws_json1_0ExecuteTransactionCommand(t,n)}};gc.ExecuteTransactionCommand=l0});var zh=p(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.ExportTableToPointInTimeCommand=void 0;var y8=B(),v8=q(),c0=H(),d0=J(),u0=class extends v8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(y8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:c0.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:c0.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return d0.serializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}deserialize(t,n){return d0.deserializeAws_json1_0ExportTableToPointInTimeCommand(t,n)}};yc.ExportTableToPointInTimeCommand=u0});var Uh=p(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.GetItemCommand=void 0;var b8=B(),S8=q(),m0=H(),f0=J(),p0=class extends S8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(b8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:m0.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:m0.GetItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return f0.serializeAws_json1_0GetItemCommand(t,n)}deserialize(t,n){return f0.deserializeAws_json1_0GetItemCommand(t,n)}};vc.GetItemCommand=p0});var Fh=p(bc=>{"use strict";Object.defineProperty(bc,"__esModule",{value:!0});bc.ListBackupsCommand=void 0;var w8=B(),E8=q(),_0=H(),h0=J(),g0=class extends E8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(w8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:_0.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:_0.ListBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return h0.serializeAws_json1_0ListBackupsCommand(t,n)}deserialize(t,n){return h0.deserializeAws_json1_0ListBackupsCommand(t,n)}};bc.ListBackupsCommand=g0});var wc=p(Sc=>{"use strict";Object.defineProperty(Sc,"__esModule",{value:!0});Sc.ListContributorInsightsCommand=void 0;var A8=B(),C8=q(),y0=H(),v0=J(),b0=class extends C8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(A8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:y0.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:y0.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return v0.serializeAws_json1_0ListContributorInsightsCommand(t,n)}deserialize(t,n){return v0.deserializeAws_json1_0ListContributorInsightsCommand(t,n)}};Sc.ListContributorInsightsCommand=b0});var Ac=p(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.ListExportsCommand=void 0;var T8=B(),x8=q(),S0=H(),w0=J(),E0=class extends x8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(T8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:S0.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:S0.ListExportsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return w0.serializeAws_json1_0ListExportsCommand(t,n)}deserialize(t,n){return w0.deserializeAws_json1_0ListExportsCommand(t,n)}};Ec.ListExportsCommand=E0});var Bh=p(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.ListGlobalTablesCommand=void 0;var I8=B(),R8=q(),A0=H(),C0=J(),T0=class extends R8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(I8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:A0.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:A0.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return C0.serializeAws_json1_0ListGlobalTablesCommand(t,n)}deserialize(t,n){return C0.deserializeAws_json1_0ListGlobalTablesCommand(t,n)}};Cc.ListGlobalTablesCommand=T0});var xc=p(Tc=>{"use strict";Object.defineProperty(Tc,"__esModule",{value:!0});Tc.ListTablesCommand=void 0;var N8=B(),P8=q(),x0=H(),I0=J(),R0=class extends P8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(N8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:x0.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:x0.ListTablesOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return I0.serializeAws_json1_0ListTablesCommand(t,n)}deserialize(t,n){return I0.deserializeAws_json1_0ListTablesCommand(t,n)}};Tc.ListTablesCommand=R0});var Gh=p(Ic=>{"use strict";Object.defineProperty(Ic,"__esModule",{value:!0});Ic.ListTagsOfResourceCommand=void 0;var D8=B(),O8=q(),N0=H(),P0=J(),D0=class extends O8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(D8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:N0.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:N0.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return P0.serializeAws_json1_0ListTagsOfResourceCommand(t,n)}deserialize(t,n){return P0.deserializeAws_json1_0ListTagsOfResourceCommand(t,n)}};Ic.ListTagsOfResourceCommand=D0});var $h=p(Rc=>{"use strict";Object.defineProperty(Rc,"__esModule",{value:!0});Rc.PutItemCommand=void 0;var L8=B(),q8=q(),O0=H(),L0=J(),q0=class extends q8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(L8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:O0.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:O0.PutItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return L0.serializeAws_json1_0PutItemCommand(t,n)}deserialize(t,n){return L0.deserializeAws_json1_0PutItemCommand(t,n)}};Rc.PutItemCommand=q0});var Pc=p(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.QueryCommand=void 0;var M8=B(),k8=q(),M0=H(),k0=J(),j0=class extends k8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(M8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:M0.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:M0.QueryOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return k0.serializeAws_json1_0QueryCommand(t,n)}deserialize(t,n){return k0.deserializeAws_json1_0QueryCommand(t,n)}};Nc.QueryCommand=j0});var Kh=p(Dc=>{"use strict";Object.defineProperty(Dc,"__esModule",{value:!0});Dc.RestoreTableFromBackupCommand=void 0;var j8=B(),z8=q(),z0=H(),U0=J(),F0=class extends z8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(j8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:z0.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:z0.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return U0.serializeAws_json1_0RestoreTableFromBackupCommand(t,n)}deserialize(t,n){return U0.deserializeAws_json1_0RestoreTableFromBackupCommand(t,n)}};Dc.RestoreTableFromBackupCommand=F0});var Vh=p(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.RestoreTableToPointInTimeCommand=void 0;var U8=B(),F8=q(),B0=H(),G0=J(),$0=class extends F8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(U8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:B0.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:B0.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return G0.serializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}deserialize(t,n){return G0.deserializeAws_json1_0RestoreTableToPointInTimeCommand(t,n)}};Oc.RestoreTableToPointInTimeCommand=$0});var qc=p(Lc=>{"use strict";Object.defineProperty(Lc,"__esModule",{value:!0});Lc.ScanCommand=void 0;var B8=B(),G8=q(),K0=H(),V0=J(),H0=class extends G8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(B8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:K0.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:K0.ScanOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return V0.serializeAws_json1_0ScanCommand(t,n)}deserialize(t,n){return V0.deserializeAws_json1_0ScanCommand(t,n)}};Lc.ScanCommand=H0});var Hh=p(Mc=>{"use strict";Object.defineProperty(Mc,"__esModule",{value:!0});Mc.TagResourceCommand=void 0;var $8=B(),K8=q(),V8=H(),W0=J(),Y0=class extends K8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use($8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:V8.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return W0.serializeAws_json1_0TagResourceCommand(t,n)}deserialize(t,n){return W0.deserializeAws_json1_0TagResourceCommand(t,n)}};Mc.TagResourceCommand=Y0});var Wh=p(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.TransactGetItemsCommand=void 0;var H8=B(),W8=q(),J0=H(),Q0=J(),X0=class extends W8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(H8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:J0.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:J0.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return Q0.serializeAws_json1_0TransactGetItemsCommand(t,n)}deserialize(t,n){return Q0.deserializeAws_json1_0TransactGetItemsCommand(t,n)}};kc.TransactGetItemsCommand=X0});var Yh=p(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.TransactWriteItemsCommand=void 0;var Y8=B(),J8=q(),Z0=H(),eC=J(),tC=class extends J8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Y8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:Z0.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:Z0.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return eC.serializeAws_json1_0TransactWriteItemsCommand(t,n)}deserialize(t,n){return eC.deserializeAws_json1_0TransactWriteItemsCommand(t,n)}};jc.TransactWriteItemsCommand=tC});var Jh=p(zc=>{"use strict";Object.defineProperty(zc,"__esModule",{value:!0});zc.UntagResourceCommand=void 0;var Q8=B(),X8=q(),Z8=H(),nC=J(),rC=class extends X8.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(Q8.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:Z8.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return nC.serializeAws_json1_0UntagResourceCommand(t,n)}deserialize(t,n){return nC.deserializeAws_json1_0UntagResourceCommand(t,n)}};zc.UntagResourceCommand=rC});var Qh=p(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.UpdateContinuousBackupsCommand=void 0;var e5=B(),t5=q(),iC=H(),sC=J(),aC=class extends t5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(e5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:iC.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:iC.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return sC.serializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}deserialize(t,n){return sC.deserializeAws_json1_0UpdateContinuousBackupsCommand(t,n)}};Uc.UpdateContinuousBackupsCommand=aC});var Xh=p(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.UpdateContributorInsightsCommand=void 0;var n5=B(),r5=q(),oC=H(),lC=J(),cC=class extends r5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(n5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:oC.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:oC.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return lC.serializeAws_json1_0UpdateContributorInsightsCommand(t,n)}deserialize(t,n){return lC.deserializeAws_json1_0UpdateContributorInsightsCommand(t,n)}};Fc.UpdateContributorInsightsCommand=cC});var Zh=p(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.UpdateGlobalTableCommand=void 0;var i5=B(),s5=q(),dC=H(),uC=J(),mC=class extends s5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(i5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:dC.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:dC.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return uC.serializeAws_json1_0UpdateGlobalTableCommand(t,n)}deserialize(t,n){return uC.deserializeAws_json1_0UpdateGlobalTableCommand(t,n)}};Bc.UpdateGlobalTableCommand=mC});var eg=p(Gc=>{"use strict";Object.defineProperty(Gc,"__esModule",{value:!0});Gc.UpdateGlobalTableSettingsCommand=void 0;var a5=B(),o5=q(),fC=H(),pC=J(),_C=class extends o5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(a5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:fC.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:fC.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return pC.serializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}deserialize(t,n){return pC.deserializeAws_json1_0UpdateGlobalTableSettingsCommand(t,n)}};Gc.UpdateGlobalTableSettingsCommand=_C});var tg=p($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.UpdateItemCommand=void 0;var l5=B(),c5=q(),hC=H(),gC=J(),yC=class extends c5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(l5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:hC.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:hC.UpdateItemOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return gC.serializeAws_json1_0UpdateItemCommand(t,n)}deserialize(t,n){return gC.deserializeAws_json1_0UpdateItemCommand(t,n)}};$c.UpdateItemCommand=yC});var ng=p(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.UpdateTableCommand=void 0;var d5=B(),u5=q(),vC=H(),bC=J(),SC=class extends u5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(d5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:vC.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:vC.UpdateTableOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return bC.serializeAws_json1_0UpdateTableCommand(t,n)}deserialize(t,n){return bC.deserializeAws_json1_0UpdateTableCommand(t,n)}};Kc.UpdateTableCommand=SC});var rg=p(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.UpdateTableReplicaAutoScalingCommand=void 0;var m5=B(),f5=q(),wC=H(),EC=J(),AC=class extends f5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(m5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:wC.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:wC.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return EC.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}deserialize(t,n){return EC.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand(t,n)}};Vc.UpdateTableReplicaAutoScalingCommand=AC});var ig=p(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.UpdateTimeToLiveCommand=void 0;var p5=B(),_5=q(),CC=H(),TC=J(),xC=class extends _5.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(p5.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:CC.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:CC.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return TC.serializeAws_json1_0UpdateTimeToLiveCommand(t,n)}deserialize(t,n){return TC.deserializeAws_json1_0UpdateTimeToLiveCommand(t,n)}};Hc.UpdateTimeToLiveCommand=xC});var IC=p(_i=>{"use strict";Object.defineProperty(_i,"__esModule",{value:!0});_i.booleanSelector=_i.SelectorType=void 0;var h5;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(h5=_i.SelectorType||(_i.SelectorType={}));var g5=(e,t,n)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${n} "${t}". Expected "true" or "false", got ${e[t]}.`)}};_i.booleanSelector=g5});var ag=p(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var y5=se();y5.__exportStar(IC(),sg)});var RC=p(Jt=>{"use strict";Object.defineProperty(Jt,"__esModule",{value:!0});Jt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Jt.DEFAULT_USE_DUALSTACK_ENDPOINT=Jt.CONFIG_USE_DUALSTACK_ENDPOINT=Jt.ENV_USE_DUALSTACK_ENDPOINT=void 0;var Wc=ag();Jt.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";Jt.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";Jt.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;Jt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>Wc.booleanSelector(e,Jt.ENV_USE_DUALSTACK_ENDPOINT,Wc.SelectorType.ENV),configFileSelector:e=>Wc.booleanSelector(e,Jt.CONFIG_USE_DUALSTACK_ENDPOINT,Wc.SelectorType.CONFIG),default:!1}});var NC=p(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Qt.DEFAULT_USE_FIPS_ENDPOINT=Qt.CONFIG_USE_FIPS_ENDPOINT=Qt.ENV_USE_FIPS_ENDPOINT=void 0;var Yc=ag();Qt.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";Qt.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";Qt.DEFAULT_USE_FIPS_ENDPOINT=!1;Qt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>Yc.booleanSelector(e,Qt.ENV_USE_FIPS_ENDPOINT,Yc.SelectorType.ENV),configFileSelector:e=>Yc.booleanSelector(e,Qt.CONFIG_USE_FIPS_ENDPOINT,Yc.SelectorType.CONFIG),default:!1}});var og=p(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.normalizeBoolean=void 0;var v5=e=>{if(typeof e=="boolean"){let t=Promise.resolve(e);return()=>t}return e};Jc.normalizeBoolean=v5});var lg=p(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.normalizeEndpoint=void 0;var b5=({endpoint:e,urlParser:t})=>{if(typeof e=="string"){let n=Promise.resolve(t(e));return()=>n}else if(typeof e=="object"){let n=Promise.resolve(e);return()=>n}return e};Qc.normalizeEndpoint=b5});var PC=p(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.resolveCustomEndpointsConfig=void 0;var S5=og(),w5=lg(),E5=e=>{var t;return f(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:w5.normalizeEndpoint(e),isCustomEndpoint:!0,useDualstackEndpoint:S5.normalizeBoolean(e.useDualstackEndpoint)})};Xc.resolveCustomEndpointsConfig=E5});var DC=p(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.getEndpointFromRegion=void 0;var A5=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 s=await e.useDualstackEndpoint(),a=await e.useFipsEndpoint(),{hostname:l}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:a}))!==null&&t!==void 0?t:{};if(!l)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${l}`)};Zc.getEndpointFromRegion=A5});var OC=p(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.resolveEndpointsConfig=void 0;var C5=DC(),T5=og(),x5=lg(),I5=e=>{var t;let n=T5.normalizeBoolean(e.useDualstackEndpoint),{endpoint:r,useFipsEndpoint:i}=e;return f(o({},e),{tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:r?x5.normalizeEndpoint(f(o({},e),{endpoint:r})):()=>C5.getEndpointFromRegion(f(o({},e),{useDualstackEndpoint:n,useFipsEndpoint:i})),isCustomEndpoint:!!r,useDualstackEndpoint:n})};ed.resolveEndpointsConfig=I5});var LC=p(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});var td=se();td.__exportStar(RC(),ms);td.__exportStar(NC(),ms);td.__exportStar(PC(),ms);td.__exportStar(OC(),ms)});var qC=p(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.NODE_REGION_CONFIG_FILE_OPTIONS=Xt.NODE_REGION_CONFIG_OPTIONS=Xt.REGION_INI_NAME=Xt.REGION_ENV_NAME=void 0;Xt.REGION_ENV_NAME="AWS_REGION";Xt.REGION_INI_NAME="region";Xt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Xt.REGION_ENV_NAME],configFileSelector:e=>e[Xt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};Xt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var cg=p(nd=>{"use strict";Object.defineProperty(nd,"__esModule",{value:!0});nd.isFipsRegion=void 0;var R5=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));nd.isFipsRegion=R5});var MC=p(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.getRealRegion=void 0;var N5=cg(),P5=e=>N5.isFipsRegion(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;rd.getRealRegion=P5});var jC=p(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.resolveRegionConfig=void 0;var kC=MC(),D5=cg(),O5=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return f(o({},e),{region:async()=>{if(typeof t=="string")return kC.getRealRegion(t);let r=await t();return kC.getRealRegion(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return D5.isFipsRegion(r)?!0:typeof n=="boolean"?Promise.resolve(n):n()}})};id.resolveRegionConfig=O5});var UC=p(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});var zC=se();zC.__exportStar(qC(),sd);zC.__exportStar(jC(),sd)});var BC=p(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0})});var $C=p(GC=>{"use strict";Object.defineProperty(GC,"__esModule",{value:!0})});var KC=p(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.getHostnameFromVariants=void 0;var L5=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:n})=>{var r;return(r=e.find(({tags:i})=>t===i.includes("fips")&&n===i.includes("dualstack")))===null||r===void 0?void 0:r.hostname};ad.getHostnameFromVariants=L5});var VC=p(od=>{"use strict";Object.defineProperty(od,"__esModule",{value:!0});od.getResolvedHostname=void 0;var q5=(e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace("{region}",e):void 0);od.getResolvedHostname=q5});var HC=p(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.getResolvedPartition=void 0;var M5=(e,{partitionHash:t})=>{var n;return(n=Object.keys(t||{}).find(r=>t[r].regions.includes(e)))!==null&&n!==void 0?n:"aws"};ld.getResolvedPartition=M5});var WC=p(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.getResolvedSigningRegion=void 0;var k5=(e,{signingRegion:t,regionRegex:n,useFipsEndpoint:r})=>{if(t)return t;if(r){let i=n.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(i);if(s)return s[0].slice(1,-1)}};cd.getResolvedSigningRegion=k5});var JC=p(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.getRegionInfo=void 0;var YC=KC(),j5=VC(),z5=HC(),U5=WC(),F5=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:i,partitionHash:s})=>{var a,l,c,d,u,_;let g=z5.getResolvedPartition(e,{partitionHash:s}),b=e in i?e:(l=(a=s[g])===null||a===void 0?void 0:a.endpoint)!==null&&l!==void 0?l:e,S={useFipsEndpoint:t,useDualstackEndpoint:n},v=YC.getHostnameFromVariants((c=i[b])===null||c===void 0?void 0:c.variants,S),I=YC.getHostnameFromVariants((d=s[g])===null||d===void 0?void 0:d.variants,S),L=j5.getResolvedHostname(b,{regionHostname:v,partitionHostname:I});if(L===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:b,useFipsEndpoint:t,useDualstackEndpoint:n}}`);let x=U5.getResolvedSigningRegion(L,{signingRegion:(u=i[b])===null||u===void 0?void 0:u.signingRegion,regionRegex:s[g].regionRegex,useFipsEndpoint:t});return o(o({partition:g,signingService:r,hostname:L},x&&{signingRegion:x}),((_=i[b])===null||_===void 0?void 0:_.signingService)&&{signingService:i[b].signingService})};dd.getRegionInfo=F5});var QC=p(Ca=>{"use strict";Object.defineProperty(Ca,"__esModule",{value:!0});var dg=se();dg.__exportStar(BC(),Ca);dg.__exportStar($C(),Ca);dg.__exportStar(JC(),Ca)});var un=p(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});var ug=se();ug.__exportStar(LC(),Ta);ug.__exportStar(UC(),Ta);ug.__exportStar(QC(),Ta)});var ud=p(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.getContentLengthPlugin=rr.contentLengthMiddlewareOptions=rr.contentLengthMiddleware=void 0;var B5=jt(),XC="content-length";function ZC(e){return t=>async n=>{let r=n.request;if(B5.HttpRequest.isInstance(r)){let{body:i,headers:s}=r;if(i&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(XC)===-1){let a=e(i);a!==void 0&&(r.headers=f(o({},r.headers),{[XC]:String(a)}))}}return t(f(o({},n),{request:r}))}}rr.contentLengthMiddleware=ZC;rr.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var G5=e=>({applyToStack:t=>{t.add(ZC(e.bodyLengthChecker),rr.contentLengthMiddlewareOptions)}});rr.getContentLengthPlugin=G5});var nT=p(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var eT=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],mg="endpoint_discovery_enabled",tT=e=>["false","0"].indexOf(e)>=0;md.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<eT.length;t++){let n=eT[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!tT(r)}}},configFileSelector:e=>{if(mg in e){let t=e[mg];if(t===void 0)throw Error(`Shared config entry ${mg} can't be undefined, got "${t}"`);return!tT(t)}},default:void 0}});var rT=p(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.getCacheKey=void 0;var $5=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:i}=n;return JSON.stringify(o(o({},r&&{accessKeyId:r}),i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[a,l])=>f(o({},s),{[a]:l}),{})}))};fd.getCacheKey=$5});var iT=p(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.updateDiscoveredEndpointInCache=void 0;var ir={},K5=async(e,t)=>new Promise((n,r)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:a,identifiers:l}=t,c=i.get(s);if(c&&c.length===1&&c[0].Address==="")t.isDiscoveredEndpointRequired?(ir[s]||(ir[s]=[]),ir[s].push({resolve:n,reject:r})):n();else if(c&&c.length>0)n();else{let d=[{Address:"",CachePeriodInMinutes:1}];i.set(s,d);let u=new t.endpointDiscoveryCommandCtor({Operation:a.substr(0,a.length-7),Identifiers:l});u.resolveMiddleware(t.clientStack,e,t.options)(u).then(g=>{i.set(s,g.output.Endpoints),ir[s]&&(ir[s].forEach(({resolve:b})=>{b()}),delete ir[s]),n()}).catch(g=>{var b;(g.name==="InvalidEndpointException"||((b=g.$metadata)===null||b===void 0?void 0:b.httpStatusCode)===421)&&i.delete(s);let S=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:g});ir[s]&&(ir[s].forEach(({reject:v})=>{v(S)}),delete ir[s]),t.isDiscoveredEndpointRequired?r(S):(i.set(s,d),n())})}});pd.updateDiscoveredEndpointInCache=K5});var aT=p(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.endpointDiscoveryMiddleware=void 0;var V5=jt(),H5=rT(),sT=iT(),W5=(e,t)=>(n,r)=>async i=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return n(i)}let{endpointDiscoveryCommandCtor:s}=e,{isDiscoveredEndpointRequired:a,identifiers:l}=t,{clientName:c,commandName:d}=r,u=await e.endpointDiscoveryEnabled(),_=await H5.getCacheKey(d,e,{identifiers:l});if(a){if(u===!1)throw new Error(`Endpoint Discovery is disabled but ${d} on ${c} requires it. Please check your configurations.`);await sT.updateDiscoveredEndpointInCache(e,f(o({},t),{commandName:d,cacheKey:_,endpointDiscoveryCommandCtor:s}))}else u&&sT.updateDiscoveredEndpointInCache(e,f(o({},t),{commandName:d,cacheKey:_,endpointDiscoveryCommandCtor:s}));let{request:g}=i;if(_&&V5.HttpRequest.isInstance(g)){let b=e.endpointCache.getEndpoint(_);b&&(g.hostname=b)}return n(i)};_d.endpointDiscoveryMiddleware=W5});var oT=p(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getEndpointDiscoveryOptionalPlugin=Ut.getEndpointDiscoveryRequiredPlugin=Ut.getEndpointDiscoveryPlugin=Ut.endpointDiscoveryMiddlewareOptions=void 0;var fg=aT();Ut.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var Y5=(e,t)=>({applyToStack:n=>{n.add(fg.endpointDiscoveryMiddleware(e,t),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryPlugin=Y5;var J5=(e,t)=>({applyToStack:n=>{n.add(fg.endpointDiscoveryMiddleware(e,f(o({},t),{isDiscoveredEndpointRequired:!0})),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryRequiredPlugin=J5;var Q5=(e,t)=>({applyToStack:n=>{n.add(fg.endpointDiscoveryMiddleware(e,f(o({},t),{isDiscoveredEndpointRequired:!1})),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryOptionalPlugin=Q5});var cT=p(lT=>{"use strict";Object.defineProperty(lT,"__esModule",{value:!0})});var uT=p((Rye,dT)=>{function sr(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}sr.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol!="undefined"&&(sr.prototype[Symbol.iterator]=function(){return this});sr.of=function(){var e=arguments,t=e.length,n=0;return new sr(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};sr.empty=function(){var e=new sr(null);return e.done=!0,e};sr.is=function(e){return e instanceof sr?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};dT.exports=sr});var pg=p((Nye,_T)=>{var mT=typeof ArrayBuffer!="undefined",fT=typeof Symbol!="undefined";function pT(e,t){var n,r,i,s,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)||mT&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],i);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(fT&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;a=n.next(),a.done!==!0;)t(a.value,i),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}pT.forEachWithNullKeys=function(e,t){var n,r,i,s,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)||mT&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],null);return}if(e instanceof Set){e.forEach(function(l){t(l,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(fT&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;a=n.next(),a.done!==!0;)t(a.value,null),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};_T.exports=pT});var _g=p(Tn=>{var X5=Math.pow(2,8)-1,Z5=Math.pow(2,16)-1,eY=Math.pow(2,32)-1,tY=Math.pow(2,7)-1,nY=Math.pow(2,15)-1,rY=Math.pow(2,31)-1;Tn.getPointerArray=function(e){var t=e-1;return t<=X5?Uint8Array:t<=Z5?Uint16Array:t<=eY?Uint32Array:Float64Array};Tn.getSignedPointerArray=function(e){var t=e-1;return t<=tY?Int8Array:t<=nY?Int16Array:t<=rY?Int32Array:Float64Array};Tn.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 iY={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};Tn.getMinimalRepresentation=function(e,t){var n=null,r=0,i,s,a,l,c;for(l=0,c=e.length;l<c;l++)a=t?t(e[l]):e[l],s=Tn.getNumberType(a),i=iY[s.name],i>r&&(r=i,n=s);return n};Tn.isTypedArray=function(e){return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView(e)};Tn.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)i.set(arguments[t],n),n+=arguments[t].length;return i};Tn.indices=function(e){for(var t=Tn.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var yT=p(xa=>{var hT=pg(),gT=_g();function sY(e){return Array.isArray(e)||gT.isTypedArray(e)}function hg(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function aY(e){var t=hg(e),n=typeof t=="number"?new Array(t):[],r=0;return hT(e,function(i){n[r++]=i}),n}function oY(e){var t=hg(e),n=typeof t=="number"?gT.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new n(t):[],s=0;return hT(e,function(a){r[s]=a,i[s]=s++}),[r,i]}xa.isArrayLike=sY;xa.guessLength=hg;xa.toArray=aY;xa.toArrayWithIndices=oY});var bT=p((Oye,vT)=>{var gg=uT(),lY=pg(),cY=_g(),dY=yT();function Ge(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=cY.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={}}Ge.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};Ge.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};Ge.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};Ge.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return typeof i!="undefined"?(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],delete this.items[this.K[i]]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null)};Ge.prototype.has=function(e){return e in this.items};Ge.prototype.get=function(e){var t=this.items[e];if(typeof t!="undefined")return this.splayOnTop(t),this.V[t]};Ge.prototype.peek=function(e){var t=this.items[e];if(typeof t!="undefined")return this.V[t]};Ge.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,s=this.K,a=this.V,l=this.forward;n<r;)e.call(t,a[i],s[i],this),i=l[i],n++};Ge.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.forward;return new gg(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};Ge.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,i=this.forward;return new gg(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};Ge.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.V,s=this.forward;return new gg(function(){if(e>=t)return{done:!0};var a=r[n],l=i[n];return e++,e<t&&(n=s[n]),{done:!1,value:[a,l]}})};typeof Symbol!="undefined"&&(Ge.prototype[Symbol.iterator]=Ge.prototype.entries);Ge.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:Ge,enumerable:!1}),e};typeof Symbol!="undefined"&&(Ge.prototype[Symbol.for("nodejs.util.inspect.custom")]=Ge.prototype.inspect);Ge.from=function(e,t,n,r){if(arguments.length<2){if(r=dY.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 i=new Ge(t,n,r);return lY(e,function(s,a){i.set(a,s)}),i};vT.exports=Ge});var wT=p(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.EndpointCache=void 0;var uY=se(),mY=uY.__importDefault(bT()),ST=class{constructor(t){this.cache=new mY.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let r=n.map(i=>i.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(),i=n.filter(s=>r<s.Expires);if(i.length===0){this.delete(t);return}return i}set(t,n){let r=Date.now();this.cache.set(t,n.map(({Address:i,CachePeriodInMinutes:s})=>({Address:i,Expires:r+s*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()}};hd.EndpointCache=ST});var AT=p(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});var ET=se();ET.__exportStar(cT(),gd);ET.__exportStar(wT(),gd)});var CT=p(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.resolveEndpointDiscoveryConfig=void 0;var fY=AT(),pY=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return f(o({},e),{endpointDiscoveryCommandCtor:t,endpointCache:new fY.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})};yd.resolveEndpointDiscoveryConfig=pY});var vg=p(Ia=>{"use strict";Object.defineProperty(Ia,"__esModule",{value:!0});var yg=se();yg.__exportStar(nT(),Ia);yg.__exportStar(oT(),Ia);yg.__exportStar(CT(),Ia)});var vd=p(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.getHostHeaderPlugin=Zt.hostHeaderMiddlewareOptions=Zt.hostHeaderMiddleware=Zt.resolveHostHeaderConfig=void 0;var _Y=jt();function hY(e){return e}Zt.resolveHostHeaderConfig=hY;var gY=e=>t=>async n=>{if(!_Y.HttpRequest.isInstance(n.request))return t(n);let{request:r}=n,{handlerProtocol:i=""}=e.requestHandler.metadata||{};return i.indexOf("h2")>=0&&!r.headers[":authority"]?(delete r.headers.host,r.headers[":authority"]=""):r.headers.host||(r.headers.host=r.hostname),t(n)};Zt.hostHeaderMiddleware=gY;Zt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var yY=e=>({applyToStack:t=>{t.add(Zt.hostHeaderMiddleware(e),Zt.hostHeaderMiddlewareOptions)}});Zt.getHostHeaderPlugin=yY});var TT=p(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.getLoggerPlugin=xn.loggerMiddlewareOptions=xn.loggerMiddleware=void 0;var vY=()=>(e,t)=>async n=>{let{clientName:r,commandName:i,inputFilterSensitiveLog:s,logger:a,outputFilterSensitiveLog:l}=t,c=await e(n);if(!a)return c;if(typeof a.info=="function"){let d=c.output,{$metadata:u}=d,_=xr(d,["$metadata"]);a.info({clientName:r,commandName:i,input:s(n.input),output:l(_),metadata:u})}return c};xn.loggerMiddleware=vY;xn.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var bY=e=>({applyToStack:t=>{t.add(xn.loggerMiddleware(),xn.loggerMiddlewareOptions)}});xn.getLoggerPlugin=bY});var bd=p(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});var SY=se();SY.__exportStar(TT(),bg)});var Ra=p(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});ar.DEFAULT_RETRY_MODE=ar.DEFAULT_MAX_ATTEMPTS=ar.RETRY_MODES=void 0;var xT;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(xT=ar.RETRY_MODES||(ar.RETRY_MODES={}));ar.DEFAULT_MAX_ATTEMPTS=3;ar.DEFAULT_RETRY_MODE=xT.STANDARD});var IT=p(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.TRANSIENT_ERROR_STATUS_CODES=In.TRANSIENT_ERROR_CODES=In.THROTTLING_ERROR_CODES=In.CLOCK_SKEW_ERROR_CODES=void 0;In.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];In.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];In.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];In.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var wd=p(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.isTransientError=Rn.isThrottlingError=Rn.isClockSkewError=Rn.isRetryableByTrait=void 0;var Sd=IT(),wY=e=>e.$retryable!==void 0;Rn.isRetryableByTrait=wY;var EY=e=>Sd.CLOCK_SKEW_ERROR_CODES.includes(e.name);Rn.isClockSkewError=EY;var AY=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||Sd.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};Rn.isThrottlingError=AY;var CY=e=>{var t;return Sd.TRANSIENT_ERROR_CODES.includes(e.name)||Sd.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};Rn.isTransientError=CY});var Sg=p(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});Ed.DefaultRateLimiter=void 0;var TY=wd(),RT=class{constructor(t){var n,r,i,s,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=(i=t==null?void 0:t.minFillRate)!==null&&i!==void 0?i:.5,this.scaleConstant=(s=t==null?void 0:t.scaleConstant)!==null&&s!==void 0?s:.4,this.smooth=(a=t==null?void 0:t.smooth)!==null&&a!==void 0?a:.8;let l=this.getCurrentTimeInSeconds();this.lastThrottleTime=l,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(),TY.isThrottlingError(t)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(i),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))}};Ed.DefaultRateLimiter=RT});var Na=p($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.REQUEST_HEADER=$e.INVOCATION_ID_HEADER=$e.NO_RETRY_INCREMENT=$e.TIMEOUT_RETRY_COST=$e.RETRY_COST=$e.INITIAL_RETRY_TOKENS=$e.THROTTLING_RETRY_DELAY_BASE=$e.MAXIMUM_RETRY_DELAY=$e.DEFAULT_RETRY_DELAY_BASE=void 0;$e.DEFAULT_RETRY_DELAY_BASE=100;$e.MAXIMUM_RETRY_DELAY=20*1e3;$e.THROTTLING_RETRY_DELAY_BASE=500;$e.INITIAL_RETRY_TOKENS=500;$e.RETRY_COST=5;$e.TIMEOUT_RETRY_COST=10;$e.NO_RETRY_INCREMENT=1;$e.INVOCATION_ID_HEADER="amz-sdk-invocation-id";$e.REQUEST_HEADER="amz-sdk-request"});var NT=p(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.getDefaultRetryQuota=void 0;var wg=Na(),xY=(e,t)=>{var n,r,i;let s=e,a=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:wg.NO_RETRY_INCREMENT,l=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:wg.RETRY_COST,c=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:wg.TIMEOUT_RETRY_COST,d=e,u=S=>S.name==="TimeoutError"?c:l,_=S=>u(S)<=d;return Object.freeze({hasRetryTokens:_,retrieveRetryTokens:S=>{if(!_(S))throw new Error("No retry token available");let v=u(S);return d-=v,v},releaseRetryTokens:S=>{d+=S??a,d=Math.min(d,s)}})};Ad.getDefaultRetryQuota=xY});var Eg=p(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.defaultDelayDecider=void 0;var IY=Na(),RY=(e,t)=>Math.floor(Math.min(IY.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));Cd.defaultDelayDecider=RY});var Ag=p(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.defaultRetryDecider=void 0;var Td=wd(),NY=e=>e?Td.isRetryableByTrait(e)||Td.isClockSkewError(e)||Td.isThrottlingError(e)||Td.isTransientError(e):!1;xd.defaultRetryDecider=NY});var Rd=p(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.StandardRetryStrategy=void 0;var PT=jt(),PY=wd(),DY=eh(),DT=Ra(),Pa=Na(),OY=NT(),LY=Eg(),qY=Ag(),OT=class{constructor(t,n){var r,i,s;this.maxAttemptsProvider=t,this.mode=DT.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:qY.defaultRetryDecider,this.delayDecider=(i=n==null?void 0:n.delayDecider)!==null&&i!==void 0?i:LY.defaultDelayDecider,this.retryQuota=(s=n==null?void 0:n.retryQuota)!==null&&s!==void 0?s:OY.getDefaultRetryQuota(Pa.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{t=DT.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let i,s=0,a=0,l=await this.getMaxAttempts(),{request:c}=n;for(PT.HttpRequest.isInstance(c)&&(c.headers[Pa.INVOCATION_ID_HEADER]=DY.v4());;)try{PT.HttpRequest.isInstance(c)&&(c.headers[Pa.REQUEST_HEADER]=`attempt=${s+1}; max=${l}`),(r==null?void 0:r.beforeRequest)&&await r.beforeRequest();let{response:d,output:u}=await t(n);return(r==null?void 0:r.afterRequest)&&r.afterRequest(d),this.retryQuota.releaseRetryTokens(i),u.$metadata.attempts=s+1,u.$metadata.totalRetryDelay=a,{response:d,output:u}}catch(d){let u=MY(d);if(s++,this.shouldRetry(u,s,l)){i=this.retryQuota.retrieveRetryTokens(u);let _=this.delayDecider(PY.isThrottlingError(u)?Pa.THROTTLING_RETRY_DELAY_BASE:Pa.DEFAULT_RETRY_DELAY_BASE,s);a+=_,await new Promise(g=>setTimeout(g,_));continue}throw u.$metadata||(u.$metadata={}),u.$metadata.attempts=s,u.$metadata.totalRetryDelay=a,u}}};Id.StandardRetryStrategy=OT;var MY=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 Cg=p(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.AdaptiveRetryStrategy=void 0;var kY=Ra(),jY=Sg(),zY=Rd(),LT=class extends zY.StandardRetryStrategy{constructor(t,n){let s=n??{},{rateLimiter:r}=s,i=xr(s,["rateLimiter"]);super(t,i);this.rateLimiter=r??new jY.DefaultRateLimiter,this.mode=kY.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};Nd.AdaptiveRetryStrategy=LT});var qT=p(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.NODE_RETRY_MODE_CONFIG_OPTIONS=ke.CONFIG_RETRY_MODE=ke.ENV_RETRY_MODE=ke.resolveRetryConfig=ke.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=ke.CONFIG_MAX_ATTEMPTS=ke.ENV_MAX_ATTEMPTS=void 0;var UY=Cg(),Pd=Ra(),FY=Rd();ke.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";ke.CONFIG_MAX_ATTEMPTS="max_attempts";ke.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[ke.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${ke.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[ke.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${ke.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:Pd.DEFAULT_MAX_ATTEMPTS};var BY=e=>{let t=$Y(e.maxAttempts);return f(o({},e),{maxAttempts:t,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await GY(e.retryMode)===Pd.RETRY_MODES.ADAPTIVE?new UY.AdaptiveRetryStrategy(t):new FY.StandardRetryStrategy(t)})};ke.resolveRetryConfig=BY;var GY=async e=>typeof e=="string"?e:await e(),$Y=(e=Pd.DEFAULT_MAX_ATTEMPTS)=>{if(typeof e=="number"){let t=Promise.resolve(e);return()=>t}return e};ke.ENV_RETRY_MODE="AWS_RETRY_MODE";ke.CONFIG_RETRY_MODE="retry_mode";ke.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ke.ENV_RETRY_MODE],configFileSelector:e=>e[ke.CONFIG_RETRY_MODE],default:Pd.DEFAULT_RETRY_MODE}});var kT=p(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.getOmitRetryHeadersPlugin=Nn.omitRetryHeadersMiddlewareOptions=Nn.omitRetryHeadersMiddleware=void 0;var KY=jt(),MT=Na(),VY=()=>e=>async t=>{let{request:n}=t;return KY.HttpRequest.isInstance(n)&&(delete n.headers[MT.INVOCATION_ID_HEADER],delete n.headers[MT.REQUEST_HEADER]),e(t)};Nn.omitRetryHeadersMiddleware=VY;Nn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var HY=e=>({applyToStack:t=>{t.addRelativeTo(Nn.omitRetryHeadersMiddleware(),Nn.omitRetryHeadersMiddlewareOptions)}});Nn.getOmitRetryHeadersPlugin=HY});var jT=p(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.getRetryPlugin=Pn.retryMiddlewareOptions=Pn.retryMiddleware=void 0;var WY=e=>(t,n)=>async r=>{let i=await e.retryStrategy();return(i==null?void 0:i.mode)&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)};Pn.retryMiddleware=WY;Pn.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var YY=e=>({applyToStack:t=>{t.add(Pn.retryMiddleware(e),Pn.retryMiddlewareOptions)}});Pn.getRetryPlugin=YY});var UT=p(zT=>{"use strict";Object.defineProperty(zT,"__esModule",{value:!0})});var hi=p(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});var Dn=se();Dn.__exportStar(Cg(),en);Dn.__exportStar(Sg(),en);Dn.__exportStar(Rd(),en);Dn.__exportStar(Ra(),en);Dn.__exportStar(qT(),en);Dn.__exportStar(Eg(),en);Dn.__exportStar(kT(),en);Dn.__exportStar(Ag(),en);Dn.__exportStar(jT(),en);Dn.__exportStar(UT(),en)});var Tg=p(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.CredentialsProviderError=fs.ProviderError=void 0;var FT=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}};fs.ProviderError=FT;var BT=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}};fs.CredentialsProviderError=BT});var GT=p(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.chain=void 0;var JY=Tg();function QY(...e){return()=>{let t=Promise.reject(new JY.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}}Dd.chain=QY});var $T=p(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.fromStatic=void 0;var XY=e=>()=>Promise.resolve(e);Od.fromStatic=XY});var KT=p(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.memoize=void 0;var ZY=(e,t,n)=>{let r,i,s,a=async()=>{i||(i=e());try{r=await i,s=!0}finally{i=void 0}return r};if(t===void 0)return async()=>(s||(r=await a()),r);let l=!1;return async()=>(s||(r=await a()),l?r:n&&!n(r)?(l=!0,r):(t(r)&&await a(),r))};Ld.memoize=ZY});var lt=p(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var qd=se();qd.__exportStar(Tg(),ps);qd.__exportStar(GT(),ps);qd.__exportStar($T(),ps);qd.__exportStar(KT(),ps)});var Md=p(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.toHex=_s.fromHex=void 0;var VT={},xg={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),VT[e]=t,xg[t]=e}function eJ(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 xg)t[n/2]=xg[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}_s.fromHex=eJ;function tJ(e){let t="";for(let n=0;n<e.byteLength;n++)t+=VT[e[n]];return t}_s.toHex=tJ});var gi=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_V4A=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.REGION_SET_PARAM=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.REGION_SET_PARAM="X-Amz-Region-Set";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.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-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 Rg=p(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.clearCredentialCache=qr.getSigningKey=qr.createScope=void 0;var nJ=Md(),Ig=gi(),hs={},kd=[],rJ=(e,t,n)=>`${e}/${t}/${n}/${Ig.KEY_TYPE_IDENTIFIER}`;qr.createScope=rJ;var iJ=async(e,t,n,r,i)=>{let s=await HT(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${i}:${nJ.toHex(s)}:${t.sessionToken}`;if(a in hs)return hs[a];for(kd.push(a);kd.length>Ig.MAX_CACHE_SIZE;)delete hs[kd.shift()];let l=`AWS4${t.secretAccessKey}`;for(let c of[n,r,i,Ig.KEY_TYPE_IDENTIFIER])l=await HT(e,l,c);return hs[a]=l};qr.getSigningKey=iJ;var sJ=()=>{kd.length=0,Object.keys(hs).forEach(e=>{delete hs[e]})};qr.clearCredentialCache=sJ;var HT=(e,t,n)=>{let r=new e(t);return r.update(n),r.digest()}});var Pg=p(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.getCanonicalHeaders=void 0;var Ng=gi(),aJ=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in Ng.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||Ng.PROXY_HEADER_PATTERN.test(s)||Ng.SEC_HEADER_PATTERN.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[i].trim().replace(/\s+/g," "))}return r};jd.getCanonicalHeaders=aJ});var Dg=p(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.escapeUri=void 0;var oJ=e=>encodeURIComponent(e).replace(/[!'()*]/g,lJ);zd.escapeUri=oJ;var lJ=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var WT=p(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.escapeUriPath=void 0;var cJ=Dg(),dJ=e=>e.split("/").map(cJ.escapeUri).join("/");Ud.escapeUriPath=dJ});var Og=p(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});var YT=se();YT.__exportStar(Dg(),Fd);YT.__exportStar(WT(),Fd)});var Lg=p(Gd=>{"use strict";Object.defineProperty(Gd,"__esModule",{value:!0});Gd.getCanonicalQuery=void 0;var Bd=Og(),uJ=gi(),mJ=({query:e={}})=>{let t=[],n={};for(let r of Object.keys(e).sort()){if(r.toLowerCase()===uJ.SIGNATURE_HEADER)continue;t.push(r);let i=e[r];typeof i=="string"?n[r]=`${Bd.escapeUri(r)}=${Bd.escapeUri(i)}`:Array.isArray(i)&&(n[r]=i.slice(0).sort().reduce((s,a)=>s.concat([`${Bd.escapeUri(r)}=${Bd.escapeUri(a)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")};Gd.getCanonicalQuery=mJ});var qg=p($d=>{"use strict";Object.defineProperty($d,"__esModule",{value:!0});$d.isArrayBuffer=void 0;var fJ=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";$d.isArrayBuffer=fJ});var Mg=p(Kd=>{"use strict";Object.defineProperty(Kd,"__esModule",{value:!0});Kd.getPayloadHash=void 0;var pJ=qg(),_J=Md(),JT=gi(),hJ=async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===JT.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||pJ.isArrayBuffer(t)){let r=new n;return r.update(t),_J.toHex(await r.digest())}return JT.UNSIGNED_PAYLOAD};Kd.getPayloadHash=hJ});var QT=p(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.deleteHeader=Mr.getHeaderValue=Mr.hasHeader=void 0;var gJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1};Mr.hasHeader=gJ;var yJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return t[n]};Mr.getHeaderValue=yJ;var vJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))e===n.toLowerCase()&&delete t[n]};Mr.deleteHeader=vJ});var kg=p(yi=>{"use strict";Object.defineProperty(yi,"__esModule",{value:!0});yi.cloneQuery=yi.cloneRequest=void 0;var bJ=r=>{var i=r,{headers:e,query:t}=i,n=xr(i,["headers","query"]);return f(o({},n),{headers:o({},e),query:t?yi.cloneQuery(t):void 0})};yi.cloneRequest=bJ;var SJ=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return f(o({},t),{[n]:Array.isArray(r)?[...r]:r})},{});yi.cloneQuery=SJ});var jg=p(Vd=>{"use strict";Object.defineProperty(Vd,"__esModule",{value:!0});Vd.moveHeadersToQuery=void 0;var wJ=kg(),EJ=(e,t={})=>{var n;let{headers:r,query:i={}}=typeof e.clone=="function"?e.clone():wJ.cloneRequest(e);for(let s of Object.keys(r)){let a=s.toLowerCase();a.substr(0,6)==="x-amz-"&&!((n=t.unhoistableHeaders)===null||n===void 0?void 0:n.has(a))&&(i[s]=r[s],delete r[s])}return f(o({},e),{headers:r,query:i})};Vd.moveHeadersToQuery=EJ});var zg=p(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});gs.normalizeCredentialsProvider=gs.normalizeRegionProvider=void 0;var AJ=e=>{if(typeof e=="string"){let t=Promise.resolve(e);return()=>t}else return e};gs.normalizeRegionProvider=AJ;var CJ=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}else return e};gs.normalizeCredentialsProvider=CJ});var Ug=p(Hd=>{"use strict";Object.defineProperty(Hd,"__esModule",{value:!0});Hd.prepareRequest=void 0;var TJ=kg(),xJ=gi(),IJ=e=>{e=typeof e.clone=="function"?e.clone():TJ.cloneRequest(e);for(let t of Object.keys(e.headers))xJ.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Hd.prepareRequest=IJ});var XT=p(vi=>{"use strict";Object.defineProperty(vi,"__esModule",{value:!0});vi.toDate=vi.iso8601=void 0;var RJ=e=>vi.toDate(e).toISOString().replace(/\.\d{3}Z$/,"Z");vi.iso8601=RJ;var NJ=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;vi.toDate=NJ});var ix=p(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.SignatureV4=void 0;var Wd=Md(),ct=gi(),Yd=Rg(),ZT=Pg(),PJ=Lg(),Fg=Mg(),DJ=QT(),OJ=jg(),ex=zg(),tx=Ug(),LJ=XT(),nx=class{constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:s,uriEscapePath:a=!0}){this.service=i,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=ex.normalizeRegionProvider(r),this.credentialProvider=ex.normalizeCredentialsProvider(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:l,signingRegion:c,signingService:d}=n,u=await this.credentialProvider(),_=c??await this.regionProvider(),{longDate:g,shortDate:b}=Jd(r);if(i>ct.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let S=Yd.createScope(b,_,d??this.service),v=OJ.moveHeadersToQuery(tx.prepareRequest(t),{unhoistableHeaders:a});u.sessionToken&&(v.query[ct.TOKEN_QUERY_PARAM]=u.sessionToken),v.query[ct.ALGORITHM_QUERY_PARAM]=ct.ALGORITHM_IDENTIFIER,v.query[ct.CREDENTIAL_QUERY_PARAM]=`${u.accessKeyId}/${S}`,v.query[ct.AMZ_DATE_QUERY_PARAM]=g,v.query[ct.EXPIRES_QUERY_PARAM]=i.toString(10);let I=ZT.getCanonicalHeaders(v,s,l);return v.query[ct.SIGNED_HEADERS_QUERY_PARAM]=rx(I),v.query[ct.SIGNATURE_QUERY_PARAM]=await this.getSignature(g,S,this.getSigningKey(u,_,b,d),this.createCanonicalRequest(v,I,await Fg.getPayloadHash(t,this.sha256))),v}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:i,signingRegion:s,signingService:a}){let l=s??await this.regionProvider(),{shortDate:c,longDate:d}=Jd(r),u=Yd.createScope(c,l,a??this.service),_=await Fg.getPayloadHash({headers:{},body:n},this.sha256),g=new this.sha256;g.update(t);let b=Wd.toHex(await g.digest()),S=[ct.EVENT_ALGORITHM_IDENTIFIER,d,u,i,b,_].join(`
10
+ `);return this.signString(S,{signingDate:r,signingRegion:l,signingService:a})}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:i}={}){let s=await this.credentialProvider(),a=r??await this.regionProvider(),{shortDate:l}=Jd(n),c=new this.sha256(await this.getSigningKey(s,a,l,i));return c.update(t),Wd.toHex(await c.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:i,signingRegion:s,signingService:a}={}){let l=await this.credentialProvider(),c=s??await this.regionProvider(),d=tx.prepareRequest(t),{longDate:u,shortDate:_}=Jd(n),g=Yd.createScope(_,c,a??this.service);d.headers[ct.AMZ_DATE_HEADER]=u,l.sessionToken&&(d.headers[ct.TOKEN_HEADER]=l.sessionToken);let b=await Fg.getPayloadHash(d,this.sha256);!DJ.hasHeader(ct.SHA256_HEADER,d.headers)&&this.applyChecksum&&(d.headers[ct.SHA256_HEADER]=b);let S=ZT.getCanonicalHeaders(d,i,r),v=await this.getSignature(u,g,this.getSigningKey(l,c,_,a),this.createCanonicalRequest(d,S,b));return d.headers[ct.AUTH_HEADER]=`${ct.ALGORITHM_IDENTIFIER} Credential=${l.accessKeyId}/${g}, SignedHeaders=${rx(S)}, Signature=${v}`,d}createCanonicalRequest(t,n,r){let i=Object.keys(n).sort();return`${t.method}
12
11
  ${this.getCanonicalPath(t)}
13
- ${m8.getCanonicalQuery(t)}
14
- ${s.map(i=>`${i}:${n[i]}`).join(`
12
+ ${PJ.getCanonicalQuery(t)}
13
+ ${i.map(s=>`${s}:${n[s]}`).join(`
15
14
  `)}
16
15
 
17
- ${s.join(";")}
18
- ${r}`}async createStringToSign(t,n,r){let s=new this.sha256;s.update(r);let i=await s.digest();return`${Xe.ALGORITHM_IDENTIFIER}
16
+ ${i.join(";")}
17
+ ${r}`}async createStringToSign(t,n,r){let i=new this.sha256;i.update(r);let s=await i.digest();return`${ct.ALGORITHM_IDENTIFIER}
19
18
  ${t}
20
19
  ${n}
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&&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;
20
+ ${Wd.toHex(s)}`}getCanonicalPath({path:t}){return this.uriEscapePath?`/${encodeURIComponent(t.replace(/^\//,"")).replace(/%2F/g,"/")}`:t}async getSignature(t,n,r,i){let s=await this.createStringToSign(t,n,i),a=new this.sha256(await r);return a.update(s),Wd.toHex(await a.digest())}getSigningKey(t,n,r,i){return Yd.getSigningKey(this.sha256,t,r,n,i||this.service)}};Qd.SignatureV4=nx;var Jd=e=>{let t=LJ.iso8601(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.substr(0,8)}},rx=e=>Object.keys(e).sort().join(";")});var ox=p(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.normalizeRegionProvider=tt.normalizeCredentialsProvider=tt.prepareRequest=tt.moveHeadersToQuery=tt.getPayloadHash=tt.getCanonicalQuery=tt.getCanonicalHeaders=void 0;var sx=se();sx.__exportStar(ix(),tt);var qJ=Pg();Object.defineProperty(tt,"getCanonicalHeaders",{enumerable:!0,get:function(){return qJ.getCanonicalHeaders}});var MJ=Lg();Object.defineProperty(tt,"getCanonicalQuery",{enumerable:!0,get:function(){return MJ.getCanonicalQuery}});var kJ=Mg();Object.defineProperty(tt,"getPayloadHash",{enumerable:!0,get:function(){return kJ.getPayloadHash}});var jJ=jg();Object.defineProperty(tt,"moveHeadersToQuery",{enumerable:!0,get:function(){return jJ.moveHeadersToQuery}});var zJ=Ug();Object.defineProperty(tt,"prepareRequest",{enumerable:!0,get:function(){return zJ.prepareRequest}});var ax=zg();Object.defineProperty(tt,"normalizeCredentialsProvider",{enumerable:!0,get:function(){return ax.normalizeCredentialsProvider}});Object.defineProperty(tt,"normalizeRegionProvider",{enumerable:!0,get:function(){return ax.normalizeRegionProvider}});sx.__exportStar(Rg(),tt)});var dx=p(ys=>{"use strict";Object.defineProperty(ys,"__esModule",{value:!0});ys.resolveSigV4AuthConfig=ys.resolveAwsAuthConfig=void 0;var UJ=lt(),lx=ox(),FJ=3e5,BJ=e=>{let t=e.credentials?cx(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Da(e.signer):s=()=>Da(e.region)().then(async a=>[await e.regionInfoProvider(a,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},a]).then(([a,l])=>{let{signingRegion:c,signingService:d}=a;e.signingRegion=e.signingRegion||c||l,e.signingName=e.signingName||d||e.serviceId;let u=f(o({},e),{credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n}),_=e.signerConstructor||lx.SignatureV4;return new _(u)}),f(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s})};ys.resolveAwsAuthConfig=BJ;var GJ=e=>{let t=e.credentials?cx(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Da(e.signer):s=Da(new lx.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:n})),f(o({},e),{systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s})};ys.resolveSigV4AuthConfig=GJ;var Da=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},cx=e=>typeof e=="function"?UJ.memoize(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<FJ,t=>t.expiration!==void 0):Da(e)});var Bg=p(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.getSkewCorrectedDate=void 0;var $J=e=>new Date(Date.now()+e);Xd.getSkewCorrectedDate=$J});var ux=p(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.isClockSkewed=void 0;var KJ=Bg(),VJ=(e,t)=>Math.abs(KJ.getSkewCorrectedDate(t).getTime()-e)>=3e5;Zd.isClockSkewed=VJ});var mx=p(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.getUpdatedSystemClockOffset=void 0;var HJ=ux(),WJ=(e,t)=>{let n=Date.parse(e);return HJ.isClockSkewed(n,t)?n-Date.now():t};eu.getUpdatedSystemClockOffset=WJ});var hx=p(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.getSigV4AuthPlugin=Ft.getAwsAuthPlugin=Ft.awsAuthMiddlewareOptions=Ft.awsAuthMiddleware=void 0;var fx=jt(),YJ=Bg(),px=mx(),JJ=e=>(t,n)=>async function(r){if(!fx.HttpRequest.isInstance(r.request))return t(r);let i=await e.signer(),s=await t(f(o({},r),{request:await i.sign(r.request,{signingDate:YJ.getSkewCorrectedDate(e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})})).catch(l=>{var c;let d=(c=l.ServerTime)!==null&&c!==void 0?c:_x(l.$response);throw d&&(e.systemClockOffset=px.getUpdatedSystemClockOffset(d,e.systemClockOffset)),l}),a=_x(s.response);return a&&(e.systemClockOffset=px.getUpdatedSystemClockOffset(a,e.systemClockOffset)),s};Ft.awsAuthMiddleware=JJ;var _x=e=>{var t,n,r;return fx.HttpResponse.isInstance(e)?(n=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&n!==void 0?n:(r=e.headers)===null||r===void 0?void 0:r.Date:void 0};Ft.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var QJ=e=>({applyToStack:t=>{t.addRelativeTo(Ft.awsAuthMiddleware(e),Ft.awsAuthMiddlewareOptions)}});Ft.getAwsAuthPlugin=QJ;Ft.getSigV4AuthPlugin=Ft.getAwsAuthPlugin});var or=p(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});var gx=se();gx.__exportStar(dx(),tu);gx.__exportStar(hx(),tu)});var yx=p(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.resolveUserAgentConfig=void 0;function XJ(e){return f(o({},e),{customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent})}nu.resolveUserAgentConfig=XJ});var vx=p(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.UA_ESCAPE_REGEX=On.SPACE=On.X_AMZ_USER_AGENT=On.USER_AGENT=void 0;On.USER_AGENT="user-agent";On.X_AMZ_USER_AGENT="x-amz-user-agent";On.SPACE=" ";On.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var bx=p(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getUserAgentPlugin=Ln.getUserAgentMiddlewareOptions=Ln.userAgentMiddleware=void 0;var ZJ=jt(),kr=vx(),e7=e=>(t,n)=>async r=>{var i,s;let{request:a}=r;if(!ZJ.HttpRequest.isInstance(a))return t(r);let{headers:l}=a,c=((i=n==null?void 0:n.userAgent)===null||i===void 0?void 0:i.map(Gg))||[],d=(await e.defaultUserAgentProvider()).map(Gg),u=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Gg))||[],_=[...d,...c,...u].join(kr.SPACE),g=[...d.filter(b=>b.startsWith("aws-sdk-")),...u].join(kr.SPACE);return e.runtime!=="browser"?(g&&(l[kr.X_AMZ_USER_AGENT]=l[kr.X_AMZ_USER_AGENT]?`${l[kr.USER_AGENT]} ${g}`:g),l[kr.USER_AGENT]=_):l[kr.X_AMZ_USER_AGENT]=_,t(f(o({},r),{request:a}))};Ln.userAgentMiddleware=e7;var Gg=([e,t])=>{let n=e.indexOf("/"),r=e.substring(0,n),i=e.substring(n+1);return r==="api"&&(i=i.toLowerCase()),[r,i,t].filter(s=>s&&s.length>0).map(s=>s==null?void 0:s.replace(kr.UA_ESCAPE_REGEX,"_")).join("/")};Ln.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var t7=e=>({applyToStack:t=>{t.add(Ln.userAgentMiddleware(e),Ln.getUserAgentMiddlewareOptions)}});Ln.getUserAgentPlugin=t7});var iu=p(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});var Sx=se();Sx.__exportStar(yx(),ru);Sx.__exportStar(bx(),ru)});var wx=p((qve,n7)=>{n7.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.47.0",scripts:{build:"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-*"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/client-sts":"3.47.0","@aws-sdk/config-resolver":"3.47.0","@aws-sdk/credential-provider-node":"3.47.0","@aws-sdk/fetch-http-handler":"3.47.0","@aws-sdk/hash-node":"3.47.0","@aws-sdk/invalid-dependency":"3.47.0","@aws-sdk/middleware-content-length":"3.47.0","@aws-sdk/middleware-endpoint-discovery":"3.47.0","@aws-sdk/middleware-host-header":"3.47.0","@aws-sdk/middleware-logger":"3.47.0","@aws-sdk/middleware-retry":"3.47.0","@aws-sdk/middleware-serde":"3.47.0","@aws-sdk/middleware-signing":"3.47.0","@aws-sdk/middleware-stack":"3.47.0","@aws-sdk/middleware-user-agent":"3.47.0","@aws-sdk/node-config-provider":"3.47.0","@aws-sdk/node-http-handler":"3.47.0","@aws-sdk/protocol-http":"3.47.0","@aws-sdk/smithy-client":"3.47.0","@aws-sdk/types":"3.47.0","@aws-sdk/url-parser":"3.47.0","@aws-sdk/util-base64-browser":"3.47.0","@aws-sdk/util-base64-node":"3.47.0","@aws-sdk/util-body-length-browser":"3.47.0","@aws-sdk/util-body-length-node":"3.47.0","@aws-sdk/util-defaults-mode-browser":"3.47.0","@aws-sdk/util-defaults-mode-node":"3.47.0","@aws-sdk/util-user-agent-browser":"3.47.0","@aws-sdk/util-user-agent-node":"3.47.0","@aws-sdk/util-utf8-browser":"3.47.0","@aws-sdk/util-utf8-node":"3.47.0","@aws-sdk/util-waiter":"3.47.0",tslib:"^2.3.0",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.47.0","@types/node":"^12.7.5","@types/uuid":"^8.3.0"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},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 qn=p(U=>{"use strict";Object.defineProperty(U,"__esModule",{value:!0});U.GetSessionTokenResponse=U.GetSessionTokenRequest=U.GetFederationTokenResponse=U.FederatedUser=U.GetFederationTokenRequest=U.GetCallerIdentityResponse=U.GetCallerIdentityRequest=U.GetAccessKeyInfoResponse=U.GetAccessKeyInfoRequest=U.DecodeAuthorizationMessageResponse=U.DecodeAuthorizationMessageRequest=U.AssumeRoleWithWebIdentityResponse=U.AssumeRoleWithWebIdentityRequest=U.AssumeRoleWithSAMLResponse=U.AssumeRoleWithSAMLRequest=U.AssumeRoleResponse=U.Credentials=U.AssumeRoleRequest=U.Tag=U.PolicyDescriptorType=U.AssumedRoleUser=void 0;var r7;(function(e){e.filterSensitiveLog=t=>o({},t)})(r7=U.AssumedRoleUser||(U.AssumedRoleUser={}));var i7;(function(e){e.filterSensitiveLog=t=>o({},t)})(i7=U.PolicyDescriptorType||(U.PolicyDescriptorType={}));var s7;(function(e){e.filterSensitiveLog=t=>o({},t)})(s7=U.Tag||(U.Tag={}));var a7;(function(e){e.filterSensitiveLog=t=>o({},t)})(a7=U.AssumeRoleRequest||(U.AssumeRoleRequest={}));var o7;(function(e){e.filterSensitiveLog=t=>o({},t)})(o7=U.Credentials||(U.Credentials={}));var l7;(function(e){e.filterSensitiveLog=t=>o({},t)})(l7=U.AssumeRoleResponse||(U.AssumeRoleResponse={}));var c7;(function(e){e.filterSensitiveLog=t=>o({},t)})(c7=U.AssumeRoleWithSAMLRequest||(U.AssumeRoleWithSAMLRequest={}));var d7;(function(e){e.filterSensitiveLog=t=>o({},t)})(d7=U.AssumeRoleWithSAMLResponse||(U.AssumeRoleWithSAMLResponse={}));var u7;(function(e){e.filterSensitiveLog=t=>o({},t)})(u7=U.AssumeRoleWithWebIdentityRequest||(U.AssumeRoleWithWebIdentityRequest={}));var m7;(function(e){e.filterSensitiveLog=t=>o({},t)})(m7=U.AssumeRoleWithWebIdentityResponse||(U.AssumeRoleWithWebIdentityResponse={}));var f7;(function(e){e.filterSensitiveLog=t=>o({},t)})(f7=U.DecodeAuthorizationMessageRequest||(U.DecodeAuthorizationMessageRequest={}));var p7;(function(e){e.filterSensitiveLog=t=>o({},t)})(p7=U.DecodeAuthorizationMessageResponse||(U.DecodeAuthorizationMessageResponse={}));var _7;(function(e){e.filterSensitiveLog=t=>o({},t)})(_7=U.GetAccessKeyInfoRequest||(U.GetAccessKeyInfoRequest={}));var h7;(function(e){e.filterSensitiveLog=t=>o({},t)})(h7=U.GetAccessKeyInfoResponse||(U.GetAccessKeyInfoResponse={}));var g7;(function(e){e.filterSensitiveLog=t=>o({},t)})(g7=U.GetCallerIdentityRequest||(U.GetCallerIdentityRequest={}));var y7;(function(e){e.filterSensitiveLog=t=>o({},t)})(y7=U.GetCallerIdentityResponse||(U.GetCallerIdentityResponse={}));var v7;(function(e){e.filterSensitiveLog=t=>o({},t)})(v7=U.GetFederationTokenRequest||(U.GetFederationTokenRequest={}));var b7;(function(e){e.filterSensitiveLog=t=>o({},t)})(b7=U.FederatedUser||(U.FederatedUser={}));var S7;(function(e){e.filterSensitiveLog=t=>o({},t)})(S7=U.GetFederationTokenResponse||(U.GetFederationTokenResponse={}));var w7;(function(e){e.filterSensitiveLog=t=>o({},t)})(w7=U.GetSessionTokenRequest||(U.GetSessionTokenRequest={}));var E7;(function(e){e.filterSensitiveLog=t=>o({},t)})(E7=U.GetSessionTokenResponse||(U.GetSessionTokenResponse={}))});var $g=p((kve,A7)=>{A7.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:`
21
+ `,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 Ex=p((jve,C7)=>{C7.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 Kg=p((zve,T7)=>{T7.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var Ax=p((Uve,x7)=>{x7.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 Tx=p(Oa=>{"use strict";var I7=Oa&&Oa.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oa,"__esModule",{value:!0});var Cx=I7(Ax()),R7=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 N7(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in Cx.default&&(e=Cx.default[e]),R7(e))}Oa.default=N7});var Hg=p(Mn=>{"use strict";var su=Mn&&Mn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Mn,"__esModule",{value:!0});Mn.decodeHTML=Mn.decodeHTMLStrict=Mn.decodeXML=void 0;var Vg=su($g()),P7=su(Ex()),D7=su(Kg()),xx=su(Tx()),O7=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Mn.decodeXML=Ix(D7.default);Mn.decodeHTMLStrict=Ix(Vg.default);function Ix(e){var t=Nx(e);return function(n){return String(n).replace(O7,t)}}var Rx=function(e,t){return e<t?1:-1};Mn.decodeHTML=function(){for(var e=Object.keys(P7.default).sort(Rx),t=Object.keys(Vg.default).sort(Rx),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=Nx(Vg.default);function a(l){return l.substr(-1)!==";"&&(l+=";"),s(l)}return function(l){return String(l).replace(i,a)}}();function Nx(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?xx.default(parseInt(n.substr(3),16)):xx.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var Yg=p(Tt=>{"use strict";var Px=Tt&&Tt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tt,"__esModule",{value:!0});Tt.escapeUTF8=Tt.escape=Tt.encodeNonAsciiHTML=Tt.encodeHTML=Tt.encodeXML=void 0;var L7=Px(Kg()),Dx=Lx(L7.default),Ox=qx(Dx);Tt.encodeXML=jx(Dx);var q7=Px($g()),Wg=Lx(q7.default),M7=qx(Wg);Tt.encodeHTML=j7(Wg,M7);Tt.encodeNonAsciiHTML=jx(Wg);function Lx(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function qx(e){for(var t=[],n=[],r=0,i=Object.keys(e);r<i.length;r++){var s=i[r];s.length===1?t.push("\\"+s):n.push(s)}t.sort();for(var a=0;a<t.length-1;a++){for(var l=a;l<t.length-1&&t[l].charCodeAt(1)+1===t[l+1].charCodeAt(1);)l+=1;var c=1+l-a;c<3||t.splice(a,c,t[a]+"-"+t[l])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var Mx=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,k7=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function au(e){return"&#x"+(e.length>1?k7(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function j7(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(Mx,au)}}var kx=new RegExp(Ox.source+"|"+Mx.source,"g");function z7(e){return e.replace(kx,au)}Tt.escape=z7;function U7(e){return e.replace(Ox,au)}Tt.escapeUTF8=U7;function jx(e){return function(t){return t.replace(kx,function(n){return e[n]||au(n)})}}});var Ux=p(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.decodeXMLStrict=me.decodeHTML5Strict=me.decodeHTML4Strict=me.decodeHTML5=me.decodeHTML4=me.decodeHTMLStrict=me.decodeHTML=me.decodeXML=me.encodeHTML5=me.encodeHTML4=me.escapeUTF8=me.escape=me.encodeNonAsciiHTML=me.encodeHTML=me.encodeXML=me.encode=me.decodeStrict=me.decode=void 0;var ou=Hg(),zx=Yg();function F7(e,t){return(!t||t<=0?ou.decodeXML:ou.decodeHTML)(e)}me.decode=F7;function B7(e,t){return(!t||t<=0?ou.decodeXML:ou.decodeHTMLStrict)(e)}me.decodeStrict=B7;function G7(e,t){return(!t||t<=0?zx.encodeXML:zx.encodeHTML)(e)}me.encode=G7;var bi=Yg();Object.defineProperty(me,"encodeXML",{enumerable:!0,get:function(){return bi.encodeXML}});Object.defineProperty(me,"encodeHTML",{enumerable:!0,get:function(){return bi.encodeHTML}});Object.defineProperty(me,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return bi.encodeNonAsciiHTML}});Object.defineProperty(me,"escape",{enumerable:!0,get:function(){return bi.escape}});Object.defineProperty(me,"escapeUTF8",{enumerable:!0,get:function(){return bi.escapeUTF8}});Object.defineProperty(me,"encodeHTML4",{enumerable:!0,get:function(){return bi.encodeHTML}});Object.defineProperty(me,"encodeHTML5",{enumerable:!0,get:function(){return bi.encodeHTML}});var jr=Hg();Object.defineProperty(me,"decodeXML",{enumerable:!0,get:function(){return jr.decodeXML}});Object.defineProperty(me,"decodeHTML",{enumerable:!0,get:function(){return jr.decodeHTML}});Object.defineProperty(me,"decodeHTMLStrict",{enumerable:!0,get:function(){return jr.decodeHTMLStrict}});Object.defineProperty(me,"decodeHTML4",{enumerable:!0,get:function(){return jr.decodeHTML}});Object.defineProperty(me,"decodeHTML5",{enumerable:!0,get:function(){return jr.decodeHTML}});Object.defineProperty(me,"decodeHTML4Strict",{enumerable:!0,get:function(){return jr.decodeHTMLStrict}});Object.defineProperty(me,"decodeHTML5Strict",{enumerable:!0,get:function(){return jr.decodeHTMLStrict}});Object.defineProperty(me,"decodeXMLStrict",{enumerable:!0,get:function(){return jr.decodeXML}})});var kn=p(mn=>{"use strict";var Fx=":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",$7=Fx+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Bx="["+Fx+"]["+$7+"]*",K7=new RegExp("^"+Bx+"$"),V7=function(e,t){let n=[],r=t.exec(e);for(;r;){let i=[],s=r.length;for(let a=0;a<s;a++)i.push(r[a]);n.push(i),r=t.exec(e)}return n},H7=function(e){let t=K7.exec(e);return!(t===null||typeof t=="undefined")};mn.isExist=function(e){return typeof e!="undefined"};mn.isEmptyObject=function(e){return Object.keys(e).length===0};mn.merge=function(e,t,n){if(t){let r=Object.keys(t),i=r.length;for(let s=0;s<i;s++)n==="strict"?e[r[s]]=[t[r[s]]]:e[r[s]]=t[r[s]]}};mn.getValue=function(e){return mn.isExist(e)?e:""};mn.buildOptions=function(e,t,n){var r={};if(!e)return t;for(let i=0;i<n.length;i++)e[n[i]]!==void 0?r[n[i]]=e[n[i]]:r[n[i]]=t[n[i]];return r};mn.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};mn.isName=H7;mn.getAllMatches=V7;mn.nameRegexp=Bx});var $x=p(Gx=>{"use strict";var Si=kn(),Jg=function(e,t,n){let r={};if((!e.child||Si.isEmptyObject(e.child))&&(!e.attrsMap||Si.isEmptyObject(e.attrsMap)))return Si.isExist(e.val)?e.val:"";if(Si.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=Si.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=s?[e.val]:e.val}Si.merge(r,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let a=i[s];if(e.child[a]&&e.child[a].length>1){r[a]=[];for(let l in e.child[a])e.child[a].hasOwnProperty(l)&&r[a].push(Jg(e.child[a][l],t,a))}else{let l=Jg(e.child[a][0],t,a),c=t.arrayMode===!0&&typeof l=="object"||Si.isTagNameInArrayMode(a,t.arrayMode,n);r[a]=c?[l]:l}}return r};Gx.convertToJson=Jg});var Vx=p((Hve,Kx)=>{"use strict";Kx.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 qa=p(du=>{"use strict";var wi=kn(),W7=kn().buildOptions,lu=Vx(),Wve="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,wi.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var Hx={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:[]};du.defaultOptions=Hx;var Wx=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];du.props=Wx;function cu(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=Yx(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function Y7(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 Yx(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 wi.isExist(e)?e:""}var J7=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function Jx(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=wi.getAllMatches(e,J7),r=n.length,i={};for(let s=0;s<r;s++){let a=Y7(n[s][1],t);a.length&&(n[s][4]!==void 0?(t.trimValues&&(n[s][4]=n[s][4].trim()),n[s][4]=t.attrValueProcessor(n[s][4],a),i[t.attributeNamePrefix+a]=Yx(n[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+a]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var Q7=function(e,t){e=e.replace(/\r\n?/g,`
22
+ `),t=W7(t,Hx,Wx);let n=new lu("!xml"),r=n,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let l=La(e,">",s,"Closing Tag is not closed."),c=e.substring(s+2,l).trim();if(t.ignoreNameSpace){let d=c.indexOf(":");d!==-1&&(c=c.substr(d+1))}r&&(r.val?r.val=wi.getValue(r.val)+""+cu(c,i,t):r.val=cu(c,i,t)),t.stopNodes.length&&t.stopNodes.includes(r.tagname)&&(r.child=[],r.attrsMap==null&&(r.attrsMap={}),r.val=e.substr(r.startIndex+1,s-r.startIndex-1)),r=r.parent,i="",s=l}else if(e[s+1]==="?")s=La(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=La(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let l=La(e,">",s,"DOCTYPE is not closed.");e.substring(s,l).indexOf("[")>=0?s=e.indexOf("]>",s)+1:s=l}else if(e.substr(s+1,2)==="!["){let l=La(e,"]]>",s,"CDATA is not closed.")-2,c=e.substring(s+9,l);if(i&&(r.val=wi.getValue(r.val)+""+cu(r.tagname,i,t),i=""),t.cdataTagName){let d=new lu(t.cdataTagName,r,c);r.addChild(d),r.val=wi.getValue(r.val)+t.cdataPositionChar,c&&(d.val=c)}else r.val=(r.val||"")+(c||"");s=l+2}else{let l=X7(e,s+1),c=l.data,d=l.index,u=c.indexOf(" "),_=c,g=!0;if(u!==-1&&(_=c.substr(0,u).replace(/\s\s*$/,""),c=c.substr(u+1)),t.ignoreNameSpace){let b=_.indexOf(":");b!==-1&&(_=_.substr(b+1),g=_!==l.data.substr(b+1))}if(r&&i&&r.tagname!=="!xml"&&(r.val=wi.getValue(r.val)+""+cu(r.tagname,i,t)),c.length>0&&c.lastIndexOf("/")===c.length-1){_[_.length-1]==="/"?(_=_.substr(0,_.length-1),c=_):c=c.substr(0,c.length-1);let b=new lu(_,r,"");_!==c&&(b.attrsMap=Jx(c,t)),r.addChild(b)}else{let b=new lu(_,r);t.stopNodes.length&&t.stopNodes.includes(b.tagname)&&(b.startIndex=d),_!==c&&g&&(b.attrsMap=Jx(c,t)),r.addChild(b),r=b}i="",s=d}else i+=e[s];return n};function X7(e,t){let n,r="";for(let i=t;i<e.length;i++){let s=e[i];if(n)s===n&&(n="");else if(s==='"'||s==="'")n=s;else{if(s===">")return{data:r,index:i};s===" "&&(s=" ")}r+=s}}function La(e,t,n,r){let i=e.indexOf(t,n);if(i===-1)throw new Error(r);return i+t.length-1}du.getTraversalObj=Q7});var tI=p(eI=>{"use strict";var uu=kn(),Z7={allowBooleanAttributes:!1},e9=["allowBooleanAttributes"];eI.validate=function(e,t){t=uu.buildOptions(t,Z7,e9);let n=[],r=!1,i=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let s=0;s<e.length;s++)if(e[s]==="<"&&e[s+1]==="?"){if(s+=2,s=Qx(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=Xx(e,s);continue}else{let a=!1;e[s]==="/"&&(a=!0,s++);let l="";for(;s<e.length&&e[s]!==">"&&e[s]!==" "&&e[s]!==" "&&e[s]!==`
23
+ `&&e[s]!=="\r";s++)l+=e[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!l9(l)){let u;return l.trim().length===0?u="There is an unnecessary space between tag name and backward slash '</ ..'.":u="Tag '"+l+"' is an invalid name.",dt("InvalidTag",u,fn(e,s))}let c=r9(e,s);if(c===!1)return dt("InvalidAttr","Attributes for '"+l+"' have open quote.",fn(e,s));let d=c.value;if(s=c.index,d[d.length-1]==="/"){d=d.substring(0,d.length-1);let u=Zx(d,t);if(u===!0)r=!0;else return dt(u.err.code,u.err.msg,fn(e,s-d.length+u.err.line))}else if(a)if(c.tagClosed){if(d.trim().length>0)return dt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",fn(e,s));{let u=n.pop();if(l!==u)return dt("InvalidTag","Closing tag '"+u+"' is expected inplace of '"+l+"'.",fn(e,s));n.length==0&&(i=!0)}}else return dt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",fn(e,s));else{let u=Zx(d,t);if(u!==!0)return dt(u.err.code,u.err.msg,fn(e,s-d.length+u.err.line));if(i===!0)return dt("InvalidXml","Multiple possible root nodes found.",fn(e,s));n.push(l),r=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=Xx(e,s);continue}else if(e[s+1]==="?"){if(s=Qx(e,++s),s.err)return s}else break;else if(e[s]==="&"){let u=a9(e,s);if(u==-1)return dt("InvalidChar","char '&' is not expected.",fn(e,s));s=u}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
24
+ `||e[s]==="\r")continue;return dt("InvalidChar","char '"+e[s]+"' is not expected.",fn(e,s))}if(r){if(n.length>0)return dt("InvalidXml","Invalid '"+JSON.stringify(n,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return dt("InvalidXml","Start tag expected.",1);return!0};function Qx(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 dt("InvalidXml","XML declaration allowed only at the start of the document.",fn(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function Xx(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 t9='"',n9="'";function r9(e,t){let n="",r="",i=!1;for(;t<e.length;t++){if(e[t]===t9||e[t]===n9)if(r==="")r=e[t];else{if(r!==e[t])continue;r=""}else if(e[t]===">"&&r===""){i=!0;break}n+=e[t]}return r!==""?!1:{value:n,index:t,tagClosed:i}}var i9=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Zx(e,t){let n=uu.getAllMatches(e,i9),r={};for(let i=0;i<n.length;i++){if(n[i][1].length===0)return dt("InvalidAttr","Attribute '"+n[i][2]+"' has no space in starting.",mu(e,n[i][0]));if(n[i][3]===void 0&&!t.allowBooleanAttributes)return dt("InvalidAttr","boolean attribute '"+n[i][2]+"' is not allowed.",mu(e,n[i][0]));let s=n[i][2];if(!o9(s))return dt("InvalidAttr","Attribute '"+s+"' is an invalid name.",mu(e,n[i][0]));if(!r.hasOwnProperty(s))r[s]=1;else return dt("InvalidAttr","Attribute '"+s+"' is repeated.",mu(e,n[i][0]))}return!0}function s9(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 a9(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,s9(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 dt(e,t,n){return{err:{code:e,msg:t,line:n}}}function o9(e){return uu.isName(e)}function l9(e){return uu.isName(e)}function fn(e,t){var n=e.substring(0,t).split(/\r?\n/);return n.length}function mu(e,t){return e.indexOf(t)+t.length}});var sI=p(iI=>{"use strict";var jn=function(e){return String.fromCharCode(e)},Ke={nilChar:jn(176),missingChar:jn(201),nilPremitive:jn(175),missingPremitive:jn(200),emptyChar:jn(178),emptyValue:jn(177),boundryChar:jn(179),objStart:jn(198),arrStart:jn(204),arrayEnd:jn(185)},c9=[Ke.nilChar,Ke.nilPremitive,Ke.missingChar,Ke.missingPremitive,Ke.boundryChar,Ke.emptyChar,Ke.emptyValue,Ke.arrayEnd,Ke.objStart,Ke.arrStart],Ma=function(e,t,n){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?Qg(e[0].val,t):Qg(e,t);{let r=d9(e);if(r===!0){let i="";if(Array.isArray(t)){i+=Ke.arrStart;let s=t[0],a=e.length;if(typeof s=="string")for(let l=0;l<a;l++){let c=Qg(e[l].val,s);i=Xg(i,c)}else for(let l=0;l<a;l++){let c=Ma(e[l],s,n);i=Xg(i,c)}i+=Ke.arrayEnd}else{i+=Ke.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let a in s){let l=s[a],c;!n.ignoreAttributes&&e.attrsMap&&e.attrsMap[l]?c=Ma(e.attrsMap[l],t[l],n):l===n.textNodeName?c=Ma(e.val,t[l],n):c=Ma(e.child[l],t[l],n),i=Xg(i,c)}}return i}else return r}},Qg=function(e){switch(e){case void 0:return Ke.missingPremitive;case null:return Ke.nilPremitive;case"":return Ke.emptyValue;default:return e}},Xg=function(e,t){return!nI(t[0])&&!nI(e[e.length-1])&&(e+=Ke.boundryChar),e+t},nI=function(e){return c9.indexOf(e)!==-1};function d9(e){return e===void 0?Ke.missingChar:e===null?Ke.nilChar:e.child&&Object.keys(e.child).length===0&&(!e.attrsMap||Object.keys(e.attrsMap).length===0)?Ke.emptyChar:!0}var rI=qa(),u9=kn().buildOptions,m9=function(e,t,n){return n=u9(n,rI.defaultOptions,rI.props),Ma(e,t,n)};iI.convert2nimn=m9});var lI=p(oI=>{"use strict";var fu=kn(),f9=kn().buildOptions,aI=qa(),p9=function(e,t){return t=f9(t,aI.defaultOptions,aI.props),t.indentBy=t.indentBy||"",Zg(e,t,0)},Zg=function(e,t,n){let r="{",i=Object.keys(e.child);for(let l=0;l<i.length;l++){var s=i[l];if(e.child[s]&&e.child[s].length>1){r+='"'+s+'" : [ ';for(var a in e.child[s])r+=Zg(e.child[s][a],t)+" , ";r=r.substr(0,r.length-1)+" ] "}else r+='"'+s+'" : '+Zg(e.child[s][0],t)+" ,"}return fu.merge(r,e.attrsMap),fu.isEmptyObject(r)?fu.isExist(e.val)?e.val:"":(fu.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(r+='"'+t.textNodeName+'" : '+_9(e.val))),r[r.length-1]===","&&(r=r.substr(0,r.length-2)),r+"}")};function _9(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}oI.convertToJsonString=p9});var mI=p((Zve,uI)=>{"use strict";var h9=kn().buildOptions,g9={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}},y9=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function ey(e){this.options=h9(e,g9,y9),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=A9),this.options.cdataTagName?this.isCDATA=C9:this.isCDATA=function(){return!1},this.replaceCDATAstr=v9,this.replaceCDATAarr=b9,this.options.format?(this.indentate=E9,this.tagEndChar=`>
25
+ `,this.newLine=`
26
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=w9,this.buildObjNode=S9):(this.buildTextNode=dI,this.buildObjNode=cI),this.buildTextValNode=dI,this.buildObjectNode=cI}ey.prototype.parse=function(e){return this.j2x(e,0).val};ey.prototype.j2x=function(e,t){let n="",r="",i=Object.keys(e),s=i.length;for(let a=0;a<s;a++){let l=i[a];if(typeof e[l]!="undefined")if(e[l]===null)r+=this.indentate(t)+"<"+l+"/"+this.tagEndChar;else if(e[l]instanceof Date)r+=this.buildTextNode(e[l],l,"",t);else if(typeof e[l]!="object"){let c=this.isAttribute(l);c?n+=" "+c+'="'+this.options.attrValueProcessor(""+e[l])+'"':this.isCDATA(l)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[l]):r+=this.replaceCDATAstr("",e[l]):l===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[l])):r+=this.buildTextNode(e[l],l,"",t)}else if(Array.isArray(e[l]))if(this.isCDATA(l))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[l]):r+=this.replaceCDATAarr("",e[l]);else{let c=e[l].length;for(let d=0;d<c;d++){let u=e[l][d];if(typeof u!="undefined")if(u===null)r+=this.indentate(t)+"<"+l+"/"+this.tagEndChar;else if(typeof u=="object"){let _=this.j2x(u,t+1);r+=this.buildObjNode(_.val,l,_.attrStr,t)}else r+=this.buildTextNode(u,l,"",t)}}else if(this.options.attrNodeName&&l===this.options.attrNodeName){let c=Object.keys(e[l]),d=c.length;for(let u=0;u<d;u++)n+=" "+c[u]+'="'+this.options.attrValueProcessor(""+e[l][c[u]])+'"'}else{let c=this.j2x(e[l],t+1);r+=this.buildObjNode(c.val,l,c.attrStr,t)}}return{attrStr:n,val:r}};function v9(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 b9(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 cI(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 S9(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function dI(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function w9(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function E9(e){return this.options.indentBy.repeat(e)}function A9(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function C9(e){return e===this.options.cdataTagName}uI.exports=ey});var gI=p(pn=>{"use strict";var fI=$x(),pI=qa(),_I=qa(),T9=kn().buildOptions,hI=tI();pn.parse=function(e,t,n){if(n){n===!0&&(n={});let i=hI.validate(e,n);if(i!==!0)throw Error(i.err.msg)}t=T9(t,_I.defaultOptions,_I.props);let r=pI.getTraversalObj(e,t);return fI.convertToJson(r,t)};pn.convertTonimn=sI().convert2nimn;pn.getTraversalObj=pI.getTraversalObj;pn.convertToJson=fI.convertToJson;pn.convertToJsonString=lI().convertToJsonString;pn.validate=hI.validate;pn.j2xParser=mI();pn.parseToNimn=function(e,t,n){return pn.convertTonimn(pn.getTraversalObj(e,n),t,n)}});var lr=p(pe=>{"use strict";Object.defineProperty(pe,"__esModule",{value:!0});pe.deserializeAws_queryGetSessionTokenCommand=pe.deserializeAws_queryGetFederationTokenCommand=pe.deserializeAws_queryGetCallerIdentityCommand=pe.deserializeAws_queryGetAccessKeyInfoCommand=pe.deserializeAws_queryDecodeAuthorizationMessageCommand=pe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=pe.deserializeAws_queryAssumeRoleWithSAMLCommand=pe.deserializeAws_queryAssumeRoleCommand=pe.serializeAws_queryGetSessionTokenCommand=pe.serializeAws_queryGetFederationTokenCommand=pe.serializeAws_queryGetCallerIdentityCommand=pe.serializeAws_queryGetAccessKeyInfoCommand=pe.serializeAws_queryDecodeAuthorizationMessageCommand=pe.serializeAws_queryAssumeRoleWithWebIdentityCommand=pe.serializeAws_queryAssumeRoleWithSAMLCommand=pe.serializeAws_queryAssumeRoleCommand=void 0;var x9=jt(),ce=q(),I9=Ux(),R9=gI(),N9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},nQ(e,t)),{Action:"AssumeRole",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryAssumeRoleCommand=N9;var P9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},rQ(e,t)),{Action:"AssumeRoleWithSAML",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryAssumeRoleWithSAMLCommand=P9;var D9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},iQ(e,t)),{Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryAssumeRoleWithWebIdentityCommand=D9;var O9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},sQ(e,t)),{Action:"DecodeAuthorizationMessage",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryDecodeAuthorizationMessageCommand=O9;var L9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},aQ(e,t)),{Action:"GetAccessKeyInfo",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryGetAccessKeyInfoCommand=L9;var q9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},oQ(e,t)),{Action:"GetCallerIdentity",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryGetCallerIdentityCommand=q9;var M9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},lQ(e,t)),{Action:"GetFederationToken",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryGetFederationTokenCommand=M9;var k9=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Ur(f(o({},cQ(e,t)),{Action:"GetSessionToken",Version:"2011-06-15"})),zr(t,n,"/",void 0,r)};pe.serializeAws_queryGetSessionTokenCommand=k9;var j9=async(e,t)=>{if(e.statusCode>=300)return z9(e,t);let n=await _t(e.body,t),r={};r=fQ(n.AssumeRoleResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleCommand=j9;var z9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=f(o({},await ty(n,t)),{name:i,$metadata:ae(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=f(o({},await pu(n,t)),{name:i,$metadata:ae(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=f(o({},await _u(n,t)),{name:i,$metadata:ae(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},U9=async(e,t)=>{if(e.statusCode>=300)return F9(e,t);let n=await _t(e.body,t),r={};r=pQ(n.AssumeRoleWithSAMLResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleWithSAMLCommand=U9;var F9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=f(o({},await ty(n,t)),{name:i,$metadata:ae(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=f(o({},await yI(n,t)),{name:i,$metadata:ae(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=f(o({},await vI(n,t)),{name:i,$metadata:ae(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=f(o({},await pu(n,t)),{name:i,$metadata:ae(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=f(o({},await _u(n,t)),{name:i,$metadata:ae(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},B9=async(e,t)=>{if(e.statusCode>=300)return G9(e,t);let n=await _t(e.body,t),r={};r=_Q(n.AssumeRoleWithWebIdentityResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=B9;var G9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":r=f(o({},await ty(n,t)),{name:i,$metadata:ae(e)});break;case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":r=f(o({},await eQ(n,t)),{name:i,$metadata:ae(e)});break;case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":r=f(o({},await yI(n,t)),{name:i,$metadata:ae(e)});break;case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":r=f(o({},await vI(n,t)),{name:i,$metadata:ae(e)});break;case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=f(o({},await pu(n,t)),{name:i,$metadata:ae(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=f(o({},await _u(n,t)),{name:i,$metadata:ae(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},$9=async(e,t)=>{if(e.statusCode>=300)return K9(e,t);let n=await _t(e.body,t),r={};r=hQ(n.DecodeAuthorizationMessageResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryDecodeAuthorizationMessageCommand=$9;var K9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":r=f(o({},await tQ(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},V9=async(e,t)=>{if(e.statusCode>=300)return H9(e,t);let n=await _t(e.body,t),r={};r=vQ(n.GetAccessKeyInfoResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryGetAccessKeyInfoCommand=V9;var H9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},W9=async(e,t)=>{if(e.statusCode>=300)return Y9(e,t);let n=await _t(e.body,t),r={};r=bQ(n.GetCallerIdentityResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryGetCallerIdentityCommand=W9;var Y9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},J9=async(e,t)=>{if(e.statusCode>=300)return Q9(e,t);let n=await _t(e.body,t),r={};r=SQ(n.GetFederationTokenResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryGetFederationTokenCommand=J9;var Q9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":r=f(o({},await pu(n,t)),{name:i,$metadata:ae(e)});break;case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":r=f(o({},await _u(n,t)),{name:i,$metadata:ae(e)});break;case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},X9=async(e,t)=>{if(e.statusCode>=300)return Z9(e,t);let n=await _t(e.body,t),r={};r=wQ(n.GetSessionTokenResult,t);let i=o({$metadata:ae(e)},r);return Promise.resolve(i)};pe.deserializeAws_queryGetSessionTokenCommand=X9;var Z9=async(e,t)=>{let n=f(o({},e),{body:await _t(e.body,t)}),r,i="UnknownError";switch(i=Fr(e,n.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":r=f(o({},await ka(n,t)),{name:i,$metadata:ae(e)});break;default:let a=n.body;i=a.Error.code||a.Error.Code||i,r=f(o({},a.Error),{name:`${i}`,message:a.Error.message||a.Error.Message||i,$fault:"client",$metadata:ae(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},ty=async(e,t)=>{let n=e.body,r=gQ(n.Error,t);return o({name:"ExpiredTokenException",$fault:"client",$metadata:ae(e)},r)},eQ=async(e,t)=>{let n=e.body,r=EQ(n.Error,t);return o({name:"IDPCommunicationErrorException",$fault:"client",$metadata:ae(e)},r)},yI=async(e,t)=>{let n=e.body,r=AQ(n.Error,t);return o({name:"IDPRejectedClaimException",$fault:"client",$metadata:ae(e)},r)},tQ=async(e,t)=>{let n=e.body,r=CQ(n.Error,t);return o({name:"InvalidAuthorizationMessageException",$fault:"client",$metadata:ae(e)},r)},vI=async(e,t)=>{let n=e.body,r=TQ(n.Error,t);return o({name:"InvalidIdentityTokenException",$fault:"client",$metadata:ae(e)},r)},pu=async(e,t)=>{let n=e.body,r=xQ(n.Error,t);return o({name:"MalformedPolicyDocumentException",$fault:"client",$metadata:ae(e)},r)},_u=async(e,t)=>{let n=e.body,r=IQ(n.Error,t);return o({name:"PackedPolicyTooLargeException",$fault:"client",$metadata:ae(e)},r)},ka=async(e,t)=>{let n=e.body,r=RQ(n.Error,t);return o({name:"RegionDisabledException",$fault:"client",$metadata:ae(e)},r)},nQ=(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=hu(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=s})}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=bI(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let a=`Tags.${i}`;n[a]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=mQ(e.TransitiveTagKeys,t);Object.entries(r).forEach(([i,s])=>{let a=`TransitiveTagKeys.${i}`;n[a]=s})}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},rQ=(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=hu(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=s})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},iQ=(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=hu(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=s})}return e.Policy!==void 0&&e.Policy!==null&&(n.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),n},sQ=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},aQ=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},oQ=(e,t)=>({}),lQ=(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=hu(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let a=`PolicyArns.${i}`;n[a]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=bI(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let a=`Tags.${i}`;n[a]=s})}return n},cQ=(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},hu=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=dQ(i,t);Object.entries(s).forEach(([a,l])=>{n[`member.${r}.${a}`]=l}),r++}return n},dQ=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},uQ=(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},mQ=(e,t)=>{let n={},r=1;for(let i of e)i!==null&&(n[`member.${r}`]=i,r++);return n},bI=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=uQ(i,t);Object.entries(s).forEach(([a,l])=>{n[`member.${r}.${a}`]=l}),r++}return n},ny=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=ce.expectString(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=ce.expectString(e.Arn)),n},fQ=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=ja(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=ny(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=ce.strictParseInt32(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ce.expectString(e.SourceIdentity)),n},pQ=(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=ja(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=ny(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=ce.strictParseInt32(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=ce.expectString(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=ce.expectString(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=ce.expectString(e.Issuer)),e.Audience!==void 0&&(n.Audience=ce.expectString(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=ce.expectString(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ce.expectString(e.SourceIdentity)),n},_Q=(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=ja(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=ce.expectString(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=ny(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=ce.strictParseInt32(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=ce.expectString(e.Provider)),e.Audience!==void 0&&(n.Audience=ce.expectString(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=ce.expectString(e.SourceIdentity)),n},ja=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=ce.expectString(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=ce.expectString(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=ce.expectString(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=ce.expectNonNull(ce.parseRfc3339DateTime(e.Expiration))),n},hQ=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=ce.expectString(e.DecodedMessage)),n},gQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},yQ=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=ce.expectString(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=ce.expectString(e.Arn)),n},vQ=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=ce.expectString(e.Account)),n},bQ=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=ce.expectString(e.UserId)),e.Account!==void 0&&(n.Account=ce.expectString(e.Account)),e.Arn!==void 0&&(n.Arn=ce.expectString(e.Arn)),n},SQ=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=ja(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=yQ(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=ce.strictParseInt32(e.PackedPolicySize)),n},wQ=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=ja(e.Credentials,t)),n},EQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},AQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},CQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},TQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},xQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},IQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},RQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=ce.expectString(e.message)),n},ae=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"]}},NQ=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),PQ=(e,t)=>NQ(e,t).then(n=>t.utf8Encoder(n)),zr=async(e,t,n,r,i)=>{let{hostname:s,protocol:a="https",port:l,path:c}=await e.endpoint(),d={protocol:a,hostname:s,port:l,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return r!==void 0&&(d.hostname=r),i!==void 0&&(d.body=i),new x9.HttpRequest(d)},_t=(e,t)=>PQ(e,t).then(n=>{if(n.length){let r=R9.parse(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:l=>l.trim()===""&&l.includes(`
27
+ `)?"":I9.decodeHTML(l)}),i="#text",s=Object.keys(r)[0],a=r[s];return a[i]&&(a[s]=a[i],delete a[i]),ce.getValueFromTextNode(a)}return{}}),Ur=e=>Object.entries(e).map(([t,n])=>ce.extendedEncodeURIComponent(t)+"="+ce.extendedEncodeURIComponent(n)).join("&"),Fr=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var yu=p(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.AssumeRoleCommand=void 0;var DQ=B(),OQ=or(),LQ=q(),SI=qn(),wI=lr(),EI=class extends LQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(DQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(OQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:SI.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:SI.AssumeRoleResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return wI.serializeAws_queryAssumeRoleCommand(t,n)}deserialize(t,n){return wI.deserializeAws_queryAssumeRoleCommand(t,n)}};gu.AssumeRoleCommand=EI});var ry=p(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.AssumeRoleWithSAMLCommand=void 0;var qQ=B(),MQ=q(),AI=qn(),CI=lr(),TI=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 i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:AI.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:AI.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return CI.serializeAws_queryAssumeRoleWithSAMLCommand(t,n)}deserialize(t,n){return CI.deserializeAws_queryAssumeRoleWithSAMLCommand(t,n)}};vu.AssumeRoleWithSAMLCommand=TI});var Su=p(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.AssumeRoleWithWebIdentityCommand=void 0;var kQ=B(),jQ=q(),xI=qn(),II=lr(),RI=class extends jQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(kQ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:xI.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:xI.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return II.serializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}deserialize(t,n){return II.deserializeAws_queryAssumeRoleWithWebIdentityCommand(t,n)}};bu.AssumeRoleWithWebIdentityCommand=RI});var iy=p(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.DecodeAuthorizationMessageCommand=void 0;var zQ=B(),UQ=or(),FQ=q(),NI=qn(),PI=lr(),DI=class extends FQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(zQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(UQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:NI.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:NI.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return PI.serializeAws_queryDecodeAuthorizationMessageCommand(t,n)}deserialize(t,n){return PI.deserializeAws_queryDecodeAuthorizationMessageCommand(t,n)}};wu.DecodeAuthorizationMessageCommand=DI});var sy=p(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.GetAccessKeyInfoCommand=void 0;var BQ=B(),GQ=or(),$Q=q(),OI=qn(),LI=lr(),qI=class extends $Q.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(BQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(GQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:OI.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:OI.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return LI.serializeAws_queryGetAccessKeyInfoCommand(t,n)}deserialize(t,n){return LI.deserializeAws_queryGetAccessKeyInfoCommand(t,n)}};Eu.GetAccessKeyInfoCommand=qI});var ay=p(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.GetCallerIdentityCommand=void 0;var KQ=B(),VQ=or(),HQ=q(),MI=qn(),kI=lr(),jI=class extends HQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(VQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:MI.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:MI.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return kI.serializeAws_queryGetCallerIdentityCommand(t,n)}deserialize(t,n){return kI.deserializeAws_queryGetCallerIdentityCommand(t,n)}};Au.GetCallerIdentityCommand=jI});var oy=p(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.GetFederationTokenCommand=void 0;var WQ=B(),YQ=or(),JQ=q(),zI=qn(),UI=lr(),FI=class extends JQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(WQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(YQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:zI.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:zI.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return UI.serializeAws_queryGetFederationTokenCommand(t,n)}deserialize(t,n){return UI.deserializeAws_queryGetFederationTokenCommand(t,n)}};Cu.GetFederationTokenCommand=FI});var ly=p(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.GetSessionTokenCommand=void 0;var QQ=B(),XQ=or(),ZQ=q(),BI=qn(),GI=lr(),$I=class extends ZQ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(QQ.getSerdePlugin(n,this.serialize,this.deserialize)),this.middlewareStack.use(XQ.getAwsAuthPlugin(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:BI.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:BI.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return GI.serializeAws_queryGetSessionTokenCommand(t,n)}deserialize(t,n){return GI.deserializeAws_queryGetSessionTokenCommand(t,n)}};Tu.GetSessionTokenCommand=$I});var KI=p(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.resolveStsAuthConfig=void 0;var eX=or(),tX=(e,{stsClientCtor:t})=>eX.resolveAwsAuthConfig(f(o({},e),{stsClientCtor:t}));xu.resolveStsAuthConfig=tX});var VI=p((ube,nX)=>{nX.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.47.0",scripts:{build:"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-*"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.47.0","@aws-sdk/credential-provider-node":"3.47.0","@aws-sdk/fetch-http-handler":"3.47.0","@aws-sdk/hash-node":"3.47.0","@aws-sdk/invalid-dependency":"3.47.0","@aws-sdk/middleware-content-length":"3.47.0","@aws-sdk/middleware-host-header":"3.47.0","@aws-sdk/middleware-logger":"3.47.0","@aws-sdk/middleware-retry":"3.47.0","@aws-sdk/middleware-sdk-sts":"3.47.0","@aws-sdk/middleware-serde":"3.47.0","@aws-sdk/middleware-signing":"3.47.0","@aws-sdk/middleware-stack":"3.47.0","@aws-sdk/middleware-user-agent":"3.47.0","@aws-sdk/node-config-provider":"3.47.0","@aws-sdk/node-http-handler":"3.47.0","@aws-sdk/protocol-http":"3.47.0","@aws-sdk/smithy-client":"3.47.0","@aws-sdk/types":"3.47.0","@aws-sdk/url-parser":"3.47.0","@aws-sdk/util-base64-browser":"3.47.0","@aws-sdk/util-base64-node":"3.47.0","@aws-sdk/util-body-length-browser":"3.47.0","@aws-sdk/util-body-length-node":"3.47.0","@aws-sdk/util-defaults-mode-browser":"3.47.0","@aws-sdk/util-defaults-mode-node":"3.47.0","@aws-sdk/util-user-agent-browser":"3.47.0","@aws-sdk/util-user-agent-node":"3.47.0","@aws-sdk/util-utf8-browser":"3.47.0","@aws-sdk/util-utf8-node":"3.47.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.3.0"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.47.0","@types/node":"^12.7.5"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},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 cy=p(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.decorateDefaultCredentialProvider=zn.getDefaultRoleAssumerWithWebIdentity=zn.getDefaultRoleAssumer=void 0;var rX=yu(),iX=Su(),HI="us-east-1",WI=e=>typeof e!="function"?e===void 0?HI:e:async()=>{try{return await e()}catch{return HI}},sX=(e,t)=>{let n,r;return async(i,s)=>{if(r=i,!n){let{logger:l,region:c,requestHandler:d}=e;n=new t(o({logger:l,credentialDefaultProvider:()=>async()=>r,region:WI(c||e.region)},d?{requestHandler:d}:{}))}let{Credentials:a}=await n.send(new rX.AssumeRoleCommand(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration}}};zn.getDefaultRoleAssumer=sX;var aX=(e,t)=>{let n;return async r=>{if(!n){let{logger:s,region:a,requestHandler:l}=e;n=new t(o({logger:s,region:WI(a||e.region)},l?{requestHandler:l}:{}))}let{Credentials:i}=await n.send(new iX.AssumeRoleWithWebIdentityCommand(r));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${r.RoleArn}`);return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};zn.getDefaultRoleAssumerWithWebIdentity=aX;var oX=e=>t=>e(o({roleAssumer:zn.getDefaultRoleAssumer(t,t.stsClientCtor),roleAssumerWithWebIdentity:zn.getDefaultRoleAssumerWithWebIdentity(t,t.stsClientCtor)},t));zn.decorateDefaultCredentialProvider=oX});var dy=p(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.fromEnv=ht.ENV_EXPIRATION=ht.ENV_SESSION=ht.ENV_SECRET=ht.ENV_KEY=void 0;var lX=lt();ht.ENV_KEY="AWS_ACCESS_KEY_ID";ht.ENV_SECRET="AWS_SECRET_ACCESS_KEY";ht.ENV_SESSION="AWS_SESSION_TOKEN";ht.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";function cX(){return()=>{let e=process.env[ht.ENV_KEY],t=process.env[ht.ENV_SECRET],n=process.env[ht.ENV_EXPIRATION];return e&&t?Promise.resolve({accessKeyId:e,secretAccessKey:t,sessionToken:process.env[ht.ENV_SESSION],expiration:n?new Date(n):void 0}):Promise.reject(new lX.CredentialsProviderError("Unable to find environment variable credentials."))}}ht.fromEnv=cX});var Ru=p(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.httpRequest=void 0;var uy=lt(),dX=require("buffer"),uX=require("http");function mX(e){return new Promise((t,n)=>{var r;let i=uX.request(f(o({method:"GET"},e),{hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")}));i.on("error",s=>{n(Object.assign(new uy.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new uy.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:a=400}=s;(a<200||300<=a)&&(n(Object.assign(new uy.ProviderError("Error response received from instance metadata service"),{statusCode:a})),i.destroy());let l=[];s.on("data",c=>{l.push(c)}),s.on("end",()=>{t(dX.Buffer.concat(l)),i.destroy()})}),i.end()})}Iu.httpRequest=mX});var my=p(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.fromImdsCredentials=vs.isImdsCredentials=void 0;var fX=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";vs.isImdsCredentials=fX;var pX=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});vs.fromImdsCredentials=pX});var Nu=p(Un=>{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.providerConfigFromInit=Un.DEFAULT_MAX_RETRIES=Un.DEFAULT_TIMEOUT=void 0;Un.DEFAULT_TIMEOUT=1e3;Un.DEFAULT_MAX_RETRIES=0;var _X=({maxRetries:e=Un.DEFAULT_MAX_RETRIES,timeout:t=Un.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Un.providerConfigFromInit=_X});var fy=p(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.retry=void 0;var hX=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};Pu.retry=hX});var JI=p(nt=>{"use strict";Object.defineProperty(nt,"__esModule",{value:!0});nt.fromContainerMetadata=nt.ENV_CMDS_AUTH_TOKEN=nt.ENV_CMDS_RELATIVE_URI=nt.ENV_CMDS_FULL_URI=void 0;var Du=lt(),gX=require("url"),yX=Ru(),YI=my(),vX=Nu(),bX=fy();nt.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";nt.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";nt.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var SX=(e={})=>{let{timeout:t,maxRetries:n}=vX.providerConfigFromInit(e);return()=>bX.retry(async()=>{let r=await TX(),i=JSON.parse(await wX(t,r));if(!YI.isImdsCredentials(i))throw new Du.CredentialsProviderError("Invalid response received from instance metadata service.");return YI.fromImdsCredentials(i)},n)};nt.fromContainerMetadata=SX;var wX=async(e,t)=>(process.env[nt.ENV_CMDS_AUTH_TOKEN]&&(t.headers=f(o({},t.headers),{Authorization:process.env[nt.ENV_CMDS_AUTH_TOKEN]})),(await yX.httpRequest(f(o({},t),{timeout:e}))).toString()),EX="169.254.170.2",AX={localhost:!0,"127.0.0.1":!0},CX={"http:":!0,"https:":!0},TX=async()=>{if(process.env[nt.ENV_CMDS_RELATIVE_URI])return{hostname:EX,path:process.env[nt.ENV_CMDS_RELATIVE_URI]};if(process.env[nt.ENV_CMDS_FULL_URI]){let e=gX.parse(process.env[nt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in AX))throw new Du.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in CX))throw new Du.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return f(o({},e),{port:e.port?parseInt(e.port,10):void 0})}throw new Du.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${nt.ENV_CMDS_RELATIVE_URI} or ${nt.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var QI=p(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.fromEnv=void 0;var xX=lt(),IX=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new xX.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};Ou.fromEnv=IX});var za=p(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.getHomeDir=xt.loadSharedConfigFiles=xt.ENV_CONFIG_PATH=xt.ENV_CREDENTIALS_PATH=void 0;var RX=require("fs"),NX=require("os"),py=require("path");xt.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";xt.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var XI=()=>({}),PX=(e={})=>{let{filepath:t=process.env[xt.ENV_CREDENTIALS_PATH]||py.join(xt.getHomeDir(),".aws","credentials"),configFilepath:n=process.env[xt.ENV_CONFIG_PATH]||py.join(xt.getHomeDir(),".aws","config")}=e;return Promise.all([e1(n).then(ZI).then(OX).catch(XI),e1(t).then(ZI).catch(XI)]).then(r=>{let[i,s]=r;return{configFile:i,credentialsFile:s}})};xt.loadSharedConfigFiles=PX;var DX=/^profile\s(["'])?([^\1]+)\1$/,OX=e=>{let t={};for(let n of Object.keys(e)){let r;if(n==="default")t.default=e.default;else if(r=DX.exec(n)){let[i,s,a]=r;a&&(t[a]=e[n])}}return t},LX=["__proto__","profile __proto__"],ZI=e=>{let t={},n;for(let r of e.split(/\r?\n/)){r=r.split(/(^|\s)[;#]/)[0];let i=r.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(n=i[1],LX.includes(n))throw new Error(`Found invalid profile name "${n}"`)}else if(n){let s=r.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[n]=t[n]||{},t[n][s[1]]=s[2])}}return t},e1=e=>new Promise((t,n)=>{RX.readFile(e,"utf8",(r,i)=>{r?n(r):t(i)})}),qX=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${py.sep}`}=process.env;return e||t||(n?`${r}${n}`:NX.homedir())};xt.getHomeDir=qX});var t1=p(Ei=>{"use strict";Object.defineProperty(Ei,"__esModule",{value:!0});Ei.fromSharedConfigFiles=Ei.ENV_PROFILE=void 0;var MX=lt(),kX=za(),jX="default";Ei.ENV_PROFILE="AWS_PROFILE";var zX=(e,r={})=>{var i=r,{preferredFile:t="config"}=i,n=xr(i,["preferredFile"]);return async()=>{let{loadedConfig:s=kX.loadSharedConfigFiles(n),profile:a=process.env[Ei.ENV_PROFILE]||jX}=n,{configFile:l,credentialsFile:c}=await s,d=c[a]||{},u=l[a]||{},_=t==="config"?o(o({},d),u):o(o({},u),d);try{let g=e(_);if(g===void 0)throw new Error;return g}catch(g){throw new MX.CredentialsProviderError(g.message||`Cannot load config for profile ${a} in SDK configuration files with getter: ${e}`)}}};Ei.fromSharedConfigFiles=zX});var n1=p(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.fromStatic=void 0;var UX=lt(),FX=e=>typeof e=="function",BX=e=>FX(e)?async()=>await e():UX.fromStatic(e);Lu.fromStatic=BX});var i1=p(qu=>{"use strict";Object.defineProperty(qu,"__esModule",{value:!0});qu.loadConfig=void 0;var r1=lt(),GX=QI(),$X=t1(),KX=n1(),VX=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>r1.memoize(r1.chain(GX.fromEnv(e),$X.fromSharedConfigFiles(t,r),KX.fromStatic(n)));qu.loadConfig=VX});var Ai=p(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var HX=se();HX.__exportStar(i1(),_y)});var s1=p(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.parseQueryString=void 0;function WX(e){let t={};if(e=e.replace(/^\?/,""),e)for(let n of e.split("&")){let[r,i=null]=n.split("=");r=decodeURIComponent(r),i&&(i=decodeURIComponent(i)),r in t?Array.isArray(t[r])?t[r].push(i):t[r]=[t[r],i]:t[r]=i}return t}Mu.parseQueryString=WX});var Ua=p(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});ku.parseUrl=void 0;var YX=s1(),JX=e=>{let{hostname:t,pathname:n,port:r,protocol:i,search:s}=new URL(e),a;return s&&(a=YX.parseQueryString(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:a}};ku.parseUrl=JX});var a1=p(Fa=>{"use strict";Object.defineProperty(Fa,"__esModule",{value:!0});Fa.Endpoint=void 0;var QX;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(QX=Fa.Endpoint||(Fa.Endpoint={}))});var o1=p(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.ENDPOINT_CONFIG_OPTIONS=Fn.CONFIG_ENDPOINT_NAME=Fn.ENV_ENDPOINT_NAME=void 0;Fn.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Fn.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Fn.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Fn.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Fn.CONFIG_ENDPOINT_NAME],default:void 0}});var hy=p(Ba=>{"use strict";Object.defineProperty(Ba,"__esModule",{value:!0});Ba.EndpointMode=void 0;var XX;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(XX=Ba.EndpointMode||(Ba.EndpointMode={}))});var l1=p(Bn=>{"use strict";Object.defineProperty(Bn,"__esModule",{value:!0});Bn.ENDPOINT_MODE_CONFIG_OPTIONS=Bn.CONFIG_ENDPOINT_MODE_NAME=Bn.ENV_ENDPOINT_MODE_NAME=void 0;var ZX=hy();Bn.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Bn.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Bn.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Bn.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Bn.CONFIG_ENDPOINT_MODE_NAME],default:ZX.EndpointMode.IPv4}});var yy=p(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.getInstanceMetadataEndpoint=void 0;var c1=Ai(),eZ=Ua(),d1=a1(),tZ=o1(),gy=hy(),nZ=l1(),rZ=async()=>eZ.parseUrl(await iZ()||await sZ());ju.getInstanceMetadataEndpoint=rZ;var iZ=async()=>c1.loadConfig(tZ.ENDPOINT_CONFIG_OPTIONS)(),sZ=async()=>{let e=await c1.loadConfig(nZ.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case gy.EndpointMode.IPv4:return d1.Endpoint.IPv4;case gy.EndpointMode.IPv6:return d1.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(gy.EndpointMode)}`)}}});var p1=p(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.fromInstanceMetadata=void 0;var aZ=lt(),vy=Ru(),u1=my(),oZ=Nu(),m1=fy(),lZ=yy(),f1="/latest/meta-data/iam/security-credentials/",cZ="/latest/api/token",dZ=(e={})=>{let t=!1,{timeout:n,maxRetries:r}=oZ.providerConfigFromInit(e),i=async(s,a)=>{let l=(await m1.retry(async()=>{let c;try{c=await mZ(a)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)).trim();return m1.retry(async()=>{let c;try{c=await fZ(l,a)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)};return async()=>{let s=await lZ.getInstanceMetadataEndpoint();if(t)return i(r,f(o({},s),{timeout:n}));{let a;try{a=(await uZ(f(o({},s),{timeout:n}))).toString()}catch(l){if((l==null?void 0:l.statusCode)===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(t=!0),i(r,f(o({},s),{timeout:n}))}return i(r,f(o({},s),{headers:{"x-aws-ec2-metadata-token":a},timeout:n}))}}};zu.fromInstanceMetadata=dZ;var uZ=async e=>vy.httpRequest(f(o({},e),{path:cZ,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}})),mZ=async e=>(await vy.httpRequest(f(o({},e),{path:f1}))).toString(),fZ=async(e,t)=>{let n=JSON.parse((await vy.httpRequest(f(o({},t),{path:f1+e}))).toString());if(!u1.isImdsCredentials(n))throw new aZ.CredentialsProviderError("Invalid response received from instance metadata service.");return u1.fromImdsCredentials(n)}});var Uu=p(cr=>{"use strict";Object.defineProperty(cr,"__esModule",{value:!0});cr.getInstanceMetadataEndpoint=cr.httpRequest=void 0;var by=se();by.__exportStar(JI(),cr);by.__exportStar(p1(),cr);by.__exportStar(Nu(),cr);var pZ=Ru();Object.defineProperty(cr,"httpRequest",{enumerable:!0,get:function(){return pZ.httpRequest}});var _Z=yy();Object.defineProperty(cr,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return _Z.getInstanceMetadataEndpoint}})});var Ss=p(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.LogoutRequest=ve.ListAccountsResponse=ve.ListAccountsRequest=ve.ListAccountRolesResponse=ve.RoleInfo=ve.ListAccountRolesRequest=ve.GetRoleCredentialsResponse=ve.RoleCredentials=ve.GetRoleCredentialsRequest=ve.AccountInfo=void 0;var bs=q(),hZ;(function(e){e.filterSensitiveLog=t=>o({},t)})(hZ=ve.AccountInfo||(ve.AccountInfo={}));var gZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:bs.SENSITIVE_STRING})})(gZ=ve.GetRoleCredentialsRequest||(ve.GetRoleCredentialsRequest={}));var _1;(function(e){e.filterSensitiveLog=t=>o(o(o({},t),t.secretAccessKey&&{secretAccessKey:bs.SENSITIVE_STRING}),t.sessionToken&&{sessionToken:bs.SENSITIVE_STRING})})(_1=ve.RoleCredentials||(ve.RoleCredentials={}));var yZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.roleCredentials&&{roleCredentials:_1.filterSensitiveLog(t.roleCredentials)})})(yZ=ve.GetRoleCredentialsResponse||(ve.GetRoleCredentialsResponse={}));var vZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:bs.SENSITIVE_STRING})})(vZ=ve.ListAccountRolesRequest||(ve.ListAccountRolesRequest={}));var bZ;(function(e){e.filterSensitiveLog=t=>o({},t)})(bZ=ve.RoleInfo||(ve.RoleInfo={}));var SZ;(function(e){e.filterSensitiveLog=t=>o({},t)})(SZ=ve.ListAccountRolesResponse||(ve.ListAccountRolesResponse={}));var wZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:bs.SENSITIVE_STRING})})(wZ=ve.ListAccountsRequest||(ve.ListAccountsRequest={}));var EZ;(function(e){e.filterSensitiveLog=t=>o({},t)})(EZ=ve.ListAccountsResponse||(ve.ListAccountsResponse={}));var AZ;(function(e){e.filterSensitiveLog=t=>o(o({},t),t.accessToken&&{accessToken:bs.SENSITIVE_STRING})})(AZ=ve.LogoutRequest||(ve.LogoutRequest={}))});var Ga=p(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.deserializeAws_restJson1LogoutCommand=rt.deserializeAws_restJson1ListAccountsCommand=rt.deserializeAws_restJson1ListAccountRolesCommand=rt.deserializeAws_restJson1GetRoleCredentialsCommand=rt.serializeAws_restJson1LogoutCommand=rt.serializeAws_restJson1ListAccountsCommand=rt.serializeAws_restJson1ListAccountRolesCommand=rt.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var Fu=jt(),ze=q(),CZ=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},Ku(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),l=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/federation/credentials`,c=o(o({},e.roleName!==void 0&&{role_name:e.roleName}),e.accountId!==void 0&&{account_id:e.accountId}),d;return new Fu.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:l,query:c,body:d})};rt.serializeAws_restJson1GetRoleCredentialsCommand=CZ;var TZ=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},Ku(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),l=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/assignment/roles`,c=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}),d;return new Fu.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:l,query:c,body:d})};rt.serializeAws_restJson1ListAccountRolesCommand=TZ;var xZ=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},Ku(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),l=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/assignment/accounts`,c=o(o({},e.nextToken!==void 0&&{next_token:e.nextToken}),e.maxResults!==void 0&&{max_result:e.maxResults.toString()}),d;return new Fu.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:a,path:l,query:c,body:d})};rt.serializeAws_restJson1ListAccountsCommand=xZ;var IZ=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),a=o({},Ku(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}),l=`${(s==null?void 0:s.endsWith("/"))?s.slice(0,-1):s||""}/logout`,c;return new Fu.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:a,path:l,body:c})};rt.serializeAws_restJson1LogoutCommand=IZ;var RZ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return NZ(e,t);let n={$metadata:Te(e),roleCredentials:void 0},r=ze.expectNonNull(ze.expectObject(await Ci(e.body,t)),"body");return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=zZ(r.roleCredentials,t)),Promise.resolve(n)};rt.deserializeAws_restJson1GetRoleCredentialsCommand=RZ;var NZ=async(e,t)=>{let n=f(o({},e),{body:await Ci(e.body,t)}),r,i="UnknownError";switch(i=Vu(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=f(o({},await Bu(n,t)),{name:i,$metadata:Te(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=f(o({},await Sy(n,t)),{name:i,$metadata:Te(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=f(o({},await Gu(n,t)),{name:i,$metadata:Te(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=f(o({},await $u(n,t)),{name:i,$metadata:Te(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Te(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},PZ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return DZ(e,t);let n={$metadata:Te(e),nextToken:void 0,roleList:void 0},r=ze.expectNonNull(ze.expectObject(await Ci(e.body,t)),"body");return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ze.expectString(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=FZ(r.roleList,t)),Promise.resolve(n)};rt.deserializeAws_restJson1ListAccountRolesCommand=PZ;var DZ=async(e,t)=>{let n=f(o({},e),{body:await Ci(e.body,t)}),r,i="UnknownError";switch(i=Vu(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=f(o({},await Bu(n,t)),{name:i,$metadata:Te(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=f(o({},await Sy(n,t)),{name:i,$metadata:Te(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=f(o({},await Gu(n,t)),{name:i,$metadata:Te(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=f(o({},await $u(n,t)),{name:i,$metadata:Te(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Te(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},OZ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return LZ(e,t);let n={$metadata:Te(e),accountList:void 0,nextToken:void 0},r=ze.expectNonNull(ze.expectObject(await Ci(e.body,t)),"body");return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=jZ(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=ze.expectString(r.nextToken)),Promise.resolve(n)};rt.deserializeAws_restJson1ListAccountsCommand=OZ;var LZ=async(e,t)=>{let n=f(o({},e),{body:await Ci(e.body,t)}),r,i="UnknownError";switch(i=Vu(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=f(o({},await Bu(n,t)),{name:i,$metadata:Te(e)});break;case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":r=f(o({},await Sy(n,t)),{name:i,$metadata:Te(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=f(o({},await Gu(n,t)),{name:i,$metadata:Te(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=f(o({},await $u(n,t)),{name:i,$metadata:Te(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Te(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},qZ=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return MZ(e,t);let n={$metadata:Te(e)};return await h1(e.body,t),Promise.resolve(n)};rt.deserializeAws_restJson1LogoutCommand=qZ;var MZ=async(e,t)=>{let n=f(o({},e),{body:await Ci(e.body,t)}),r,i="UnknownError";switch(i=Vu(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":r=f(o({},await Bu(n,t)),{name:i,$metadata:Te(e)});break;case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":r=f(o({},await Gu(n,t)),{name:i,$metadata:Te(e)});break;case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":r=f(o({},await $u(n,t)),{name:i,$metadata:Te(e)});break;default:let a=n.body;i=a.code||a.Code||i,r=f(o({},a),{name:`${i}`,message:a.message||a.Message||i,$fault:"client",$metadata:Te(e)})}let s=r.message||r.Message||i;return r.message=s,delete r.Message,Promise.reject(Object.assign(new Error(s),r))},Bu=async(e,t)=>{let n={name:"InvalidRequestException",$fault:"client",$metadata:Te(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ze.expectString(r.message)),n},Sy=async(e,t)=>{let n={name:"ResourceNotFoundException",$fault:"client",$metadata:Te(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ze.expectString(r.message)),n},Gu=async(e,t)=>{let n={name:"TooManyRequestsException",$fault:"client",$metadata:Te(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ze.expectString(r.message)),n},$u=async(e,t)=>{let n={name:"UnauthorizedException",$fault:"client",$metadata:Te(e),message:void 0},r=e.body;return r.message!==void 0&&r.message!==null&&(n.message=ze.expectString(r.message)),n},kZ=(e,t)=>({accountId:ze.expectString(e.accountId),accountName:ze.expectString(e.accountName),emailAddress:ze.expectString(e.emailAddress)}),jZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:kZ(n,t)),zZ=(e,t)=>({accessKeyId:ze.expectString(e.accessKeyId),expiration:ze.expectLong(e.expiration),secretAccessKey:ze.expectString(e.secretAccessKey),sessionToken:ze.expectString(e.sessionToken)}),UZ=(e,t)=>({accountId:ze.expectString(e.accountId),roleName:ze.expectString(e.roleName)}),FZ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:UZ(n,t)),Te=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"]}},h1=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),BZ=(e,t)=>h1(e,t).then(n=>t.utf8Encoder(n)),Ku=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Ci=(e,t)=>BZ(e,t).then(n=>n.length?JSON.parse(n):{}),Vu=(e,t)=>{let n=(s,a)=>Object.keys(s).find(l=>l.toLowerCase()===a.toLowerCase()),r=s=>{let a=s;return a.indexOf(":")>=0&&(a=a.split(":")[0]),a.indexOf("#")>=0&&(a=a.split("#")[1]),a},i=n(e.headers,"x-amzn-errortype");return i!==void 0?r(e.headers[i]):t.code!==void 0?r(t.code):t.__type!==void 0?r(t.__type):""}});var wy=p(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.GetRoleCredentialsCommand=void 0;var GZ=B(),$Z=q(),g1=Ss(),y1=Ga(),v1=class extends $Z.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(GZ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:g1.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:g1.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return y1.serializeAws_restJson1GetRoleCredentialsCommand(t,n)}deserialize(t,n){return y1.deserializeAws_restJson1GetRoleCredentialsCommand(t,n)}};Hu.GetRoleCredentialsCommand=v1});var Yu=p(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.ListAccountRolesCommand=void 0;var KZ=B(),VZ=q(),b1=Ss(),S1=Ga(),w1=class extends VZ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(KZ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:b1.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:b1.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return S1.serializeAws_restJson1ListAccountRolesCommand(t,n)}deserialize(t,n){return S1.deserializeAws_restJson1ListAccountRolesCommand(t,n)}};Wu.ListAccountRolesCommand=w1});var Qu=p(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.ListAccountsCommand=void 0;var HZ=B(),WZ=q(),E1=Ss(),A1=Ga(),C1=class extends WZ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(HZ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:E1.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:E1.ListAccountsResponse.filterSensitiveLog},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return A1.serializeAws_restJson1ListAccountsCommand(t,n)}deserialize(t,n){return A1.deserializeAws_restJson1ListAccountsCommand(t,n)}};Ju.ListAccountsCommand=C1});var Ey=p(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.LogoutCommand=void 0;var YZ=B(),JZ=q(),QZ=Ss(),T1=Ga(),x1=class extends JZ.Command{constructor(t){super();this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use(YZ.getSerdePlugin(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:QZ.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:u=>u},{requestHandler:d}=n;return i.resolve(u=>d.handle(u.request,r||{}),c)}serialize(t,n){return T1.serializeAws_restJson1LogoutCommand(t,n)}deserialize(t,n){return T1.deserializeAws_restJson1LogoutCommand(t,n)}};Xu.LogoutCommand=x1});var I1=p((Ube,XZ)=>{XZ.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.47.0",scripts:{build:"yarn build:cjs && yarn build:es && yarn build:types","build:cjs":"tsc -p tsconfig.cjs.json","build:docs":"typedoc","build:es":"tsc -p tsconfig.es.json","build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"rimraf ./dist-*"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"2.0.0","@aws-crypto/sha256-js":"2.0.0","@aws-sdk/config-resolver":"3.47.0","@aws-sdk/fetch-http-handler":"3.47.0","@aws-sdk/hash-node":"3.47.0","@aws-sdk/invalid-dependency":"3.47.0","@aws-sdk/middleware-content-length":"3.47.0","@aws-sdk/middleware-host-header":"3.47.0","@aws-sdk/middleware-logger":"3.47.0","@aws-sdk/middleware-retry":"3.47.0","@aws-sdk/middleware-serde":"3.47.0","@aws-sdk/middleware-stack":"3.47.0","@aws-sdk/middleware-user-agent":"3.47.0","@aws-sdk/node-config-provider":"3.47.0","@aws-sdk/node-http-handler":"3.47.0","@aws-sdk/protocol-http":"3.47.0","@aws-sdk/smithy-client":"3.47.0","@aws-sdk/types":"3.47.0","@aws-sdk/url-parser":"3.47.0","@aws-sdk/util-base64-browser":"3.47.0","@aws-sdk/util-base64-node":"3.47.0","@aws-sdk/util-body-length-browser":"3.47.0","@aws-sdk/util-body-length-node":"3.47.0","@aws-sdk/util-defaults-mode-browser":"3.47.0","@aws-sdk/util-defaults-mode-node":"3.47.0","@aws-sdk/util-user-agent-browser":"3.47.0","@aws-sdk/util-user-agent-node":"3.47.0","@aws-sdk/util-utf8-browser":"3.47.0","@aws-sdk/util-utf8-node":"3.47.0",tslib:"^2.3.0"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.47.0","@types/node":"^12.7.5"},engines:{node:">=12.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},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 Zu=p(ws=>{"use strict";Object.defineProperty(ws,"__esModule",{value:!0});ws.fromString=ws.fromArrayBuffer=void 0;var ZZ=qg(),Ay=require("buffer"),eee=(e,t=0,n=e.byteLength-t)=>{if(!ZZ.isArrayBuffer(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Ay.Buffer.from(e,t,n)};ws.fromArrayBuffer=eee;var tee=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Ay.Buffer.from(e,t):Ay.Buffer.from(e)};ws.fromString=tee});var tm=p(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.Hash=void 0;var Cy=Zu(),nee=require("buffer"),R1=require("crypto"),N1=class{constructor(t,n){this.hash=n?R1.createHmac(t,P1(n)):R1.createHash(t)}update(t,n){this.hash.update(P1(t,n))}digest(){return Promise.resolve(this.hash.digest())}};em.Hash=N1;function P1(e,t){return nee.Buffer.isBuffer(e)?e:typeof e=="string"?Cy.fromString(e,t):ArrayBuffer.isView(e)?Cy.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength):Cy.fromArrayBuffer(e)}});var xy=p(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.buildQueryString=void 0;var Ty=Og();function ree(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=Ty.escapeUri(n),Array.isArray(r))for(let i=0,s=r.length;i<s;i++)t.push(`${n}=${Ty.escapeUri(r[i])}`);else{let i=n;(r||typeof r=="string")&&(i+=`=${Ty.escapeUri(r)}`),t.push(i)}}return t.join("&")}nm.buildQueryString=ree});var D1=p(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.NODEJS_TIMEOUT_ERROR_CODES=void 0;rm.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var Iy=p(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.getTransformedHeaders=void 0;var iee=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};im.getTransformedHeaders=iee});var O1=p(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.setConnectionTimeout=void 0;var see=(e,t,n=0)=>{!n||e.on("socket",r=>{if(r.connecting){let i=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(i)})}})};sm.setConnectionTimeout=see});var L1=p(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.setSocketTimeout=void 0;var aee=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};am.setSocketTimeout=aee});var Ry=p(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.writeRequestBody=void 0;var oee=require("stream");function lee(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{q1(e,t.body)}):q1(e,t.body)}om.writeRequestBody=lee;function q1(e,t){t instanceof oee.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var z1=p(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.NodeHttpHandler=void 0;var cee=jt(),dee=xy(),M1=require("http"),k1=require("https"),uee=D1(),mee=Iy(),fee=O1(),pee=L1(),_ee=Ry(),j1=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},typeof t=="function"?this.configProvider=async()=>this.resolveDefaultConfig(await t()):this.config=this.resolveDefaultConfig(t)}resolveDefaultConfig(t){let{connectionTimeout:n,socketTimeout:r,httpAgent:i,httpsAgent:s}=t||{},a=!0,l=50;return{connectionTimeout:n,socketTimeout:r,httpAgent:i||new M1.Agent({keepAlive:a,maxSockets:l}),httpsAgent:s||new k1.Agent({keepAlive:a,maxSockets:l})}}destroy(){var t,n,r,i;(n=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||n===void 0||n.destroy(),(i=(r=this.config)===null||r===void 0?void 0:r.httpsAgent)===null||i===void 0||i.destroy()}async handle(t,{abortSignal:n}={}){return!this.config&&this.configProvider&&(this.config=await this.configProvider()),new Promise((r,i)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(n==null?void 0:n.aborted){let u=new Error("Request aborted");u.name="AbortError",i(u);return}let s=t.protocol==="https:",a=dee.buildQueryString(t.query||{}),l={headers:t.headers,host:t.hostname,method:t.method,path:a?`${t.path}?${a}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},d=(s?k1.request:M1.request)(l,u=>{let _=new cee.HttpResponse({statusCode:u.statusCode||-1,headers:mee.getTransformedHeaders(u.headers),body:u});r({response:_})});d.on("error",u=>{uee.NODEJS_TIMEOUT_ERROR_CODES.includes(u.code)?i(Object.assign(u,{name:"TimeoutError"})):i(u)}),fee.setConnectionTimeout(d,i,this.config.connectionTimeout),pee.setSocketTimeout(d,i,this.config.socketTimeout),n&&(n.onabort=()=>{d.abort();let u=new Error("Request aborted");u.name="AbortError",i(u)}),_ee.writeRequestBody(d,t)})}};lm.NodeHttpHandler=j1});var F1=p(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.NodeHttp2Handler=void 0;var hee=jt(),gee=xy(),Ny=require("http2"),yee=Iy(),vee=Ry(),U1=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,i)=>{let s=!1;if(n==null?void 0:n.aborted){s=!0;let x=new Error("Request aborted");x.name="AbortError",i(x);return}let{hostname:a,method:l,port:c,protocol:d,path:u,query:_}=t,g=`${d}//${a}${c?`:${c}`:""}`,b=this.getSession(g,this.disableConcurrentStreams||!1),S=x=>{this.disableConcurrentStreams&&this.destroySession(b),s=!0,i(x)},v=gee.buildQueryString(_||{}),I=b.request(f(o({},t.headers),{[Ny.constants.HTTP2_HEADER_PATH]:v?`${u}?${v}`:u,[Ny.constants.HTTP2_HEADER_METHOD]:l}));I.on("response",x=>{let re=new hee.HttpResponse({statusCode:x[":status"]||-1,headers:yee.getTransformedHeaders(x),body:I});s=!0,r({response:re}),this.disableConcurrentStreams&&(b.close(),this.deleteSessionFromCache(g,b))});let L=this.requestTimeout;L&&I.setTimeout(L,()=>{I.close();let x=new Error(`Stream timed out because of no activity for ${L} ms`);x.name="TimeoutError",S(x)}),n&&(n.onabort=()=>{I.close();let x=new Error("Request aborted");x.name="AbortError",S(x)}),I.on("frameError",(x,re,be)=>{S(new Error(`Frame type id ${x} in stream id ${be} has failed with code ${re}.`))}),I.on("error",S),I.on("aborted",()=>{S(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${I.rstCode}.`))}),I.on("close",()=>{this.disableConcurrentStreams&&b.destroy(),s||S(new Error("Unexpected error: http2 request did not get a response"))}),vee.writeRequestBody(I,t)})}getSession(t,n){let r=this.sessionCache,i=r.get(t)||[];if(i.length>0&&!n)return i[0];let s=Ny.connect(t),a=()=>{this.destroySession(s),this.deleteSessionFromCache(t,s)};s.on("goaway",a),s.on("error",a),s.on("frameError",a);let l=this.sessionTimeout;return l&&s.setTimeout(l,a),i.push(s),r.set(t,i),s}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,n){let r=this.sessionCache.get(t)||[];!r.includes(n)||this.sessionCache.set(t,r.filter(i=>i!==n))}};cm.NodeHttp2Handler=U1});var G1=p(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.Collector=void 0;var bee=require("stream"),B1=class extends bee.Writable{constructor(){super(...arguments);this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};dm.Collector=B1});var $1=p(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.streamCollector=void 0;var See=G1(),wee=e=>new Promise((t,n)=>{let r=new See.Collector;e.pipe(r),e.on("error",i=>{r.end(),n(i)}),r.on("error",n),r.on("finish",function(){let i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})});um.streamCollector=wee});var mm=p($a=>{"use strict";Object.defineProperty($a,"__esModule",{value:!0});var Py=se();Py.__exportStar(z1(),$a);Py.__exportStar(F1(),$a);Py.__exportStar($1(),$a)});var fm=p(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.toBase64=Es.fromBase64=void 0;var K1=Zu(),Eee=/^[A-Za-z0-9+/]*={0,2}$/;function Aee(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Eee.exec(e))throw new TypeError("Invalid base64 string.");let t=K1.fromString(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}Es.fromBase64=Aee;function Cee(e){return K1.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("base64")}Es.toBase64=Cee});var _m=p(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.calculateBodyLength=void 0;var Tee=require("fs");function xee(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 Tee.lstatSync(e.path).size}pm.calculateBodyLength=xee});var V1=p((nSe,Iee)=>{Iee.exports={name:"aws-crt",version:"1.10.5",description:"NodeJS/browser bindings to the aws-c-* libraries",homepage:"https://github.com/awslabs/aws-crt-nodejs",repository:"github:awslabs/aws-crt-nodejs",contributors:["AWS Common Runtime Team <aws-sdk-common-runtime@amazon.com>"],license:"Apache-2.0",main:"./dist/index.js",browser:"./dist.browser/browser.js",types:"./dist/index.d.ts",scripts:{tsc:"node ./scripts/tsc.js",test:"npm run test:native","test:node":"npm run test:native","test:native":"npx jest --runInBand --verbose --config test/native/jest.config.js --forceExit","test:browser":"npx jest --runInBand --verbose --config test/browser/jest.config.js --forceExit","test:browser:ci":"npm run install:puppeteer && npm run test:browser","install:puppeteer":"npm install --save-dev jest-puppeteer puppeteer @types/puppeteer",prepare:"node ./scripts/tsc.js && node ./scripts/build.js",install:"node ./scripts/install.js"},devDependencies:{"@types/crypto-js":"^3.1.43","@types/jest":"^27.0.1","@types/node":"^10.17.54","@types/puppeteer":"^5.4.4","@types/uuid":"^3.4.8","@types/ws":"^7.4.7","aws-sdk":"^2.848.0",jest:"^27.2.1","jest-puppeteer":"^5.0.4","jest-runtime":"^27.2.1",puppeteer:"^3.3.0","ts-jest":"^27.0.5",typedoc:"^0.17.8","typedoc-plugin-as-member-of":"^1.0.2","typedoc-plugin-external-module-name":"^4.0.6","typedoc-plugin-remove-references":"^0.0.5",typescript:"^3.9.9",uuid:"^8.3.2",yargs:"^17.2.1"},dependencies:{axios:"^0.21.4","cmake-js":"6.3.0","crypto-js":"^4.0.0",fastestsmallesttextencoderdecoder:"^1.0.22","@httptoolkit/websocket-stream":"^6.0.0",mqtt:"^4.2.8",tar:"^6.1.11",ws:"^7.5.5"}}});var Dy=p(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.crt_version=Gn.package_info=Gn.is_browser=Gn.is_nodejs=void 0;function H1(){return typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node!="undefined"}Gn.is_nodejs=H1;function Ree(){return!H1()}Gn.is_browser=Ree;function W1(){try{return V1()}catch{return{name:"aws-crt-nodejs",version:"UNKNOWN"}}}Gn.package_info=W1;function Nee(){return W1().version}Gn.crt_version=Nee});var Y1=p(As=>{"use strict";var Pee=As&&As.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(r.next(u))}catch(_){a(_)}}function c(u){try{d(r.throw(u))}catch(_){a(_)}}function d(u){u.done?s(u.value):i(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(As,"__esModule",{value:!0});As.using=void 0;function Dee(e,t){return Pee(this,void 0,void 0,function*(){try{yield t(e)}finally{e.close()}})}As.using=Dee});var Br=p(dr=>{"use strict";var Oee=dr&&dr.__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]}),Lee=dr&&dr.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),qee=dr&&dr.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.hasOwnProperty.call(e,n)&&Oee(t,e,n);return Lee(t,e),t};Object.defineProperty(dr,"__esModule",{value:!0});var Ka=qee(require("path")),J1=require("os"),Q1=require("fs"),X1=require("process"),Z1="Please upgrade to node >=10.16.0, or use the provided browser implementation.";if("napi"in X1.versions){if(parseInt(X1.versions.napi)<4)throw new Error("The AWS CRT native implementation requires that NAPI version 4 be present. "+Z1)}else throw new Error("The current runtime is not reporting an NAPI version. "+Z1);var eR="aws-crt-nodejs",Mee=`${J1.platform}-${J1.arch}`,Oy=Ka.resolve(__dirname,"..",".."),tR=Ka.join(Oy,"dist");Q1.existsSync(tR)&&(Oy=tR);var nR=Ka.resolve(Oy,"bin"),rR=[Ka.join(nR,"native",eR),Ka.join(nR,Mee,eR)],Ly;for(let e of rR)if(Q1.existsSync(e+".node")){Ly=require(e);break}if(Ly==null)throw new Error(`AWS CRT binary not present in any of the following locations:
28
+ `+rR.join(`
29
+ `));dr.default=Ly});var sR=p(Gr=>{"use strict";var kee=Gr&&Gr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Gr,"__esModule",{value:!0});Gr.native_memory_dump=Gr.native_memory=void 0;var iR=kee(Br());function jee(){return iR.default.native_memory()}Gr.native_memory=jee;function zee(){return iR.default.native_memory_dump()}Gr.native_memory_dump=zee});var Va=p(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.NativeResourceMixin=Cs.NativeResource=void 0;var aR=class{constructor(t){this.handle=t}native_handle(){return this.handle}};Cs.NativeResource=aR;function Uee(e){return class extends e{constructor(...t){let n=t.shift();super(...t);this._handle=n}_super(t){this._handle=t}native_handle(){return this._handle}}}Cs.NativeResourceMixin=Uee});var qy=p(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.SocketDomain=_n.SocketType=_n.TlsVersion=void 0;var Fee;(function(e){e[e.SSLv3=0]="SSLv3",e[e.TLSv1=1]="TLSv1",e[e.TLSv1_1=2]="TLSv1_1",e[e.TLSv1_2=3]="TLSv1_2",e[e.TLSv1_3=4]="TLSv1_3",e[e.Default=128]="Default"})(Fee=_n.TlsVersion||(_n.TlsVersion={}));var Bee;(function(e){e[e.STREAM=0]="STREAM",e[e.DGRAM=1]="DGRAM"})(Bee=_n.SocketType||(_n.SocketType={}));var Gee;(function(e){e[e.IPV4=0]="IPV4",e[e.IPV6=1]="IPV6",e[e.LOCAL=2]="LOCAL"})(Gee=_n.SocketDomain||(_n.SocketDomain={}))});var gm=p(_e=>{"use strict";var $ee=_e&&_e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(_e,"__esModule",{value:!0});_e.TlsConnectionOptions=_e.ServerTlsContext=_e.ClientTlsContext=_e.TlsContext=_e.TlsContextOptions=_e.SocketOptions=_e.ClientBootstrap=_e.InputStream=_e.is_alpn_available=_e.enable_logging=_e.LogLevel=_e.error_code_to_name=_e.error_code_to_string=void 0;var hn=$ee(Br()),Ha=Va(),My=qy(),ky=qy();Object.defineProperty(_e,"TlsVersion",{enumerable:!0,get:function(){return ky.TlsVersion}});Object.defineProperty(_e,"SocketType",{enumerable:!0,get:function(){return ky.SocketType}});Object.defineProperty(_e,"SocketDomain",{enumerable:!0,get:function(){return ky.SocketDomain}});function Kee(e){return hn.default.error_code_to_string(e)}_e.error_code_to_string=Kee;function Vee(e){return hn.default.error_code_to_name(e)}_e.error_code_to_name=Vee;var Hee;(function(e){e[e.NONE=0]="NONE",e[e.FATAL=1]="FATAL",e[e.ERROR=2]="ERROR",e[e.WARN=3]="WARN",e[e.INFO=4]="INFO",e[e.DEBUG=5]="DEBUG",e[e.TRACE=6]="TRACE"})(Hee=_e.LogLevel||(_e.LogLevel={}));function Wee(e){hn.default.io_logging_enable(e)}_e.enable_logging=Wee;function Yee(){return hn.default.is_alpn_available()}_e.is_alpn_available=Yee;var oR=class extends Ha.NativeResource{constructor(t){super(hn.default.io_input_stream_new(16*1024));this.source=t,this.source.on("data",n=>{n=Buffer.isBuffer(n)?n:new Buffer(n.toString(),"utf8"),hn.default.io_input_stream_append(this.native_handle(),n)}),this.source.on("end",()=>{hn.default.io_input_stream_append(this.native_handle(),void 0)})}};_e.InputStream=oR;var lR=class extends Ha.NativeResource{constructor(){super(hn.default.io_client_bootstrap_new())}};_e.ClientBootstrap=lR;var cR=class extends Ha.NativeResource{constructor(t=My.SocketType.STREAM,n=My.SocketDomain.IPV6,r=5e3,i=!1,s=0,a=0,l=0){super(hn.default.io_socket_options_new(t,n,r,s,a,l,i))}};_e.SocketOptions=cR;var $n=class{constructor(){this.min_tls_version=My.TlsVersion.Default,this.alpn_list=[],this.verify_peer=!0}override_default_trust_store_from_path(t,n){this.ca_dirpath=t,this.ca_filepath=n}override_default_trust_store(t){this.certificate_authority=t}static create_client_with_mtls(t,n){let r=new $n;return r.certificate=t,r.private_key=n,r.verify_peer=!0,r}static create_client_with_mtls_from_path(t,n){let r=new $n;return r.certificate_filepath=t,r.private_key_filepath=n,r.verify_peer=!0,r}static create_client_with_mtls_pkcs_from_path(t,n){let r=new $n;return r.pkcs12_filepath=t,r.pkcs12_password=n,r.verify_peer=!0,r}static create_server_with_mtls_from_path(t,n){let r=new $n;return r.certificate_filepath=t,r.private_key_filepath=n,r.verify_peer=!1,r}static create_server_with_mtls_pkcs_from_path(t,n){let r=new $n;return r.pkcs12_filepath=t,r.pkcs12_password=n,r.verify_peer=!1,r}};_e.TlsContextOptions=$n;var hm=class extends Ha.NativeResource{constructor(t){super(hn.default.io_tls_ctx_new(t.min_tls_version,t.ca_filepath,t.ca_dirpath,t.certificate_authority,t.alpn_list&&t.alpn_list.length>0?t.alpn_list.join(";"):void 0,t.certificate_filepath,t.certificate,t.private_key_filepath,t.private_key,t.pkcs12_filepath,t.pkcs12_password,t.verify_peer))}};_e.TlsContext=hm;var dR=class extends hm{constructor(t){t||(t=new $n,t.verify_peer=!0);super(t)}};_e.ClientTlsContext=dR;var uR=class extends hm{constructor(t){t||(t=new $n,t.verify_peer=!1);super(t)}};_e.ServerTlsContext=uR;var mR=class extends Ha.NativeResource{constructor(t,n,r=[]){super(hn.default.io_tls_connection_options_new(t.native_handle(),n,r&&r.length>0?r.join(";"):void 0));this.tls_ctx=t,this.server_name=n,this.alpn_list=r}};_e.TlsConnectionOptions=mR});var jy=p(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.BufferedEventEmitter=void 0;var Jee=require("events"),fR=class{constructor(t,n){this.event=t,this.args=n}},pR=class extends Jee.EventEmitter{constructor(){super();this.corked=!1}cork(){this.corked=!0}uncork(){for(this.corked=!1;this.eventQueue;){let t=this.eventQueue;super.emit(t.event,...t.args),this.eventQueue=this.eventQueue.next}}emit(t,...n){if(this.corked){let r=this.lastQueuedEvent;return this.lastQueuedEvent=new fR(t,n),r?r.next=this.lastQueuedEvent:this.eventQueue=this.lastQueuedEvent,this.listeners(t).length>0}return super.emit(t,...n)}};ym.BufferedEventEmitter=pR});var Ya=p(Ts=>{"use strict";var Qee=Ts&&Ts.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.CrtError=void 0;var _R=Qee(Br()),zy=require("util"),Wa=class extends Error{constructor(t){super(Xee(t));this.error=t,this.error_code=Zee(t),this.error_name=ete(t)}};Ts.CrtError=Wa;function Xee(e){return zy.isNumber(e)?_R.default.error_code_to_string(e):e instanceof Wa?e.message:e.toString()}function Zee(e){if(zy.isNumber(e))return e;if(e instanceof Wa)return e.error_code}function ete(e){if(zy.isNumber(e))return _R.default.error_code_to_name(e);if(e instanceof Wa)return e.error_name}});var Uy=p(Kn=>{"use strict";Object.defineProperty(Kn,"__esModule",{value:!0});Kn.CommonHttpProxyOptions=Kn.HttpProxyAuthenticationType=Kn.HttpVersion=void 0;var tte;(function(e){e[e.Unknown=0]="Unknown",e[e.Http1_0=1]="Http1_0",e[e.Http1_1=2]="Http1_1",e[e.Http2=3]="Http2"})(tte=Kn.HttpVersion||(Kn.HttpVersion={}));var hR;(function(e){e[e.None=0]="None",e[e.Basic=1]="Basic"})(hR=Kn.HttpProxyAuthenticationType||(Kn.HttpProxyAuthenticationType={}));var gR=class{constructor(t,n,r=hR.None,i,s){this.host_name=t,this.port=n,this.auth_method=r,this.auth_username=i,this.auth_password=s}};Kn.CommonHttpProxyOptions=gR});var Vy=p(Pe=>{"use strict";var nte=Pe&&Pe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Pe,"__esModule",{value:!0});Pe.HttpClientConnectionManager=Pe.HttpClientStream=Pe.HttpStream=Pe.HttpClientConnection=Pe.HttpProxyOptions=Pe.HttpProxyConnectionType=Pe.HttpConnection=Pe.HttpRequest=Pe.HttpHeaders=void 0;var tn=nte(Br()),Fy=Va(),vm=Ya(),yR=Uy(),rte=Uy();Object.defineProperty(Pe,"HttpProxyAuthenticationType",{enumerable:!0,get:function(){return rte.HttpProxyAuthenticationType}});var vR=jy();Pe.HttpHeaders=tn.default.HttpHeaders;var ite=tn.default.HttpRequest,bR=class extends ite{constructor(t,n,r,i){super(t,n,r,i==null?void 0:i.native_handle())}};Pe.HttpRequest=bR;var By=class extends Fy.NativeResourceMixin(vR.BufferedEventEmitter){constructor(t){super();this._super(t)}close(){tn.default.http_connection_close(this.native_handle())}on(t,n){return super.on(t,n),t=="connect"&&process.nextTick(()=>{this.uncork()}),this}};Pe.HttpConnection=By;var SR;(function(e){e[e.Legacy=0]="Legacy",e[e.Forwarding=1]="Forwarding",e[e.Tunneling=2]="Tunneling"})(SR=Pe.HttpProxyConnectionType||(Pe.HttpProxyConnectionType={}));var wR=class extends yR.CommonHttpProxyOptions{constructor(t,n,r=yR.HttpProxyAuthenticationType.None,i,s,a,l){super(t,n,r,i,s);this.tls_opts=a,this.connection_type=l}create_native_handle(){return tn.default.http_proxy_options_new(this.host_name,this.port,this.auth_method,this.auth_username,this.auth_password,this.tls_opts?this.tls_opts.native_handle():void 0,this.connection_type?this.connection_type:SR.Legacy)}};Pe.HttpProxyOptions=wR;var Gy=class extends By{constructor(t,n,r,i,s,a,l){super(l||tn.default.http_connection_new(t!=null?t.native_handle():null,(c,d)=>{this._on_setup(c,d)},(c,d)=>{this._on_shutdown(c,d)},n,r,i.native_handle(),s?s.native_handle():void 0,a?a.create_native_handle():void 0));this.bootstrap=t,this.socket_options=i,this.tls_opts=s}_on_setup(t,n){if(n){this.emit("error",new vm.CrtError(n));return}this.emit("connect")}_on_shutdown(t,n){if(n){this.emit("error",new vm.CrtError(n));return}this.emit("close")}request(t){let n,r=(l,c)=>{n._on_response(l,c)},i=l=>{n._on_body(l)},s=l=>{n._on_complete(l)},a=tn.default.http_stream_new(this.native_handle(),t,s,r,i);return n=new Ky(a,this,t)}};Pe.HttpClientConnection=Gy;var $y=class extends Fy.NativeResourceMixin(vR.BufferedEventEmitter){constructor(t,n){super();this.connection=n,this._super(t),this.cork()}activate(){tn.default.http_stream_activate(this.native_handle())}close(){tn.default.http_stream_close(this.native_handle())}_on_body(t){this.emit("data",t)}_on_complete(t){if(t){this.emit("error",new vm.CrtError(t)),this.close();return}this.on("end",()=>{this.close()}),this.emit("end")}};Pe.HttpStream=$y;var Ky=class extends $y{constructor(t,n,r){super(t,n);this.request=r}status_code(){return this.response_status_code}on(t,n){return super.on(t,n),t=="response"&&process.nextTick(()=>{this.uncork()}),this}_on_response(t,n){this.response_status_code=t;let r=new Pe.HttpHeaders(n);this.emit("response",t,r)}};Pe.HttpClientStream=Ky;var ER=class extends Fy.NativeResource{constructor(t,n,r,i,s,a,l,c){super(tn.default.http_connection_manager_new(t!=null?t.native_handle():null,n,r,i,s,a.native_handle(),l?l.native_handle():void 0,c?c.create_native_handle():void 0,void 0));this.bootstrap=t,this.host=n,this.port=r,this.max_connections=i,this.initial_window_size=s,this.socket_options=a,this.tls_opts=l,this.proxy_options=c,this.connections=new Map}acquire(){return new Promise((t,n)=>{let r=(i,s)=>{if(s){n(new vm.CrtError(s));return}let a=this.connections.get(i);a||(a=new Gy(this.bootstrap,this.host,this.port,this.socket_options,this.tls_opts,this.proxy_options,i),this.connections.set(i,a),a.on("close",()=>{this.connections.delete(i)})),t(a)};tn.default.http_connection_manager_acquire(this.native_handle(),r)})}release(t){tn.default.http_connection_manager_release(this.native_handle(),t.native_handle())}close(){tn.default.http_connection_manager_close(this.native_handle())}};Pe.HttpClientConnectionManager=ER});var CR=p(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});Ti.MqttWill=Ti.QoS=void 0;var ste;(function(e){e[e.AtMostOnce=0]="AtMostOnce",e[e.AtLeastOnce=1]="AtLeastOnce",e[e.ExactlyOnce=2]="ExactlyOnce"})(ste=Ti.QoS||(Ti.QoS={}));var AR=class{constructor(t,n,r,i=!1){this.topic=t,this.qos=n,this.payload=r,this.retain=i}};Ti.MqttWill=AR});var PR=p(Xe=>{"use strict";var ate=Xe&&Xe.__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]}),ote=Xe&&Xe.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lte=Xe&&Xe.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.hasOwnProperty.call(e,n)&&ate(t,e,n);return ote(t,e),t},xs=Xe&&Xe.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(r.next(u))}catch(_){a(_)}}function c(u){try{d(r.throw(u))}catch(_){a(_)}}function d(u){u.done?s(u.value):i(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})},cte=Xe&&Xe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Xe,"__esModule",{value:!0});Xe.MqttClientConnection=Xe.MqttClient=void 0;var Vn=cte(Br()),TR=Va(),dte=jy(),xR=Ya(),bm=lte(gm()),ute=Vy();Object.defineProperty(Xe,"HttpProxyOptions",{enumerable:!0,get:function(){return ute.HttpProxyOptions}});var IR=CR();Object.defineProperty(Xe,"QoS",{enumerable:!0,get:function(){return IR.QoS}});Object.defineProperty(Xe,"MqttWill",{enumerable:!0,get:function(){return IR.MqttWill}});var RR=class extends TR.NativeResource{constructor(t=void 0){super(Vn.default.mqtt_client_new(t!=null?t.native_handle():null));this.bootstrap=t}new_connection(t){return new Hy(this,t)}};Xe.MqttClient=RR;function NR(e){if(ArrayBuffer.isView(e)||e instanceof ArrayBuffer||typeof e=="string")return e;if(typeof e=="object")return JSON.stringify(e);throw new TypeError("payload parameter must be a string, object, or DataView.")}var Hy=class extends TR.NativeResourceMixin(dte.BufferedEventEmitter){constructor(t,n){super();this.client=t,this.config=n;let r=n.will?{topic:n.will.topic,qos:n.will.qos,payload:NR(n.will.payload),retain:n.will.retain}:void 0;this._super(Vn.default.mqtt_client_connection_new(t.native_handle(),i=>{this._on_connection_interrupted(i)},(i,s)=>{this._on_connection_resumed(i,s)},n.tls_ctx?n.tls_ctx.native_handle():null,r,n.username,n.password,n.use_websocket,n.proxy_options?n.proxy_options.create_native_handle():void 0,n.websocket_handshake_transform)),this.tls_ctx=n.tls_ctx,Vn.default.mqtt_client_connection_on_message(this.native_handle(),this._on_any_publish.bind(this)),this.on("error",i=>{})}close(){Vn.default.mqtt_client_connection_close(this.native_handle())}on(t,n){return super.on(t,n),t=="connect"&&process.nextTick(()=>{this.uncork()}),this}connect(){return xs(this,void 0,void 0,function*(){return new Promise((t,n)=>{n=this._reject(n);try{Vn.default.mqtt_client_connection_connect(this.native_handle(),this.config.client_id,this.config.host_name,this.config.port,this.config.socket_options.native_handle(),this.config.keep_alive,this.config.ping_timeout,this.config.protocol_operation_timeout,this.config.clean_session,this._on_connect_callback.bind(this,t,n))}catch(r){n(r)}})})}reconnect(){return xs(this,void 0,void 0,function*(){return new Promise((t,n)=>{n=this._reject(n);try{Vn.default.mqtt_client_connection_reconnect(this.native_handle(),this._on_connect_callback.bind(this,t,n))}catch(r){n(r)}})})}publish(t,n,r,i=!1){return xs(this,void 0,void 0,function*(){return new Promise((s,a)=>{a=this._reject(a);try{Vn.default.mqtt_client_connection_publish(this.native_handle(),t,NR(n),r,i,this._on_puback_callback.bind(this,s,a))}catch(l){a(l)}})})}subscribe(t,n,r){return xs(this,void 0,void 0,function*(){return new Promise((i,s)=>{s=this._reject(s);try{Vn.default.mqtt_client_connection_subscribe(this.native_handle(),t,n,r,this._on_suback_callback.bind(this,i,s))}catch(a){s(a)}})})}unsubscribe(t){return xs(this,void 0,void 0,function*(){return new Promise((n,r)=>{r=this._reject(r);try{Vn.default.mqtt_client_connection_unsubscribe(this.native_handle(),t,this._on_unsuback_callback.bind(this,n,r))}catch(i){r(i)}})})}disconnect(){return xs(this,void 0,void 0,function*(){return new Promise((t,n)=>{n=this._reject(n);try{Vn.default.mqtt_client_connection_disconnect(this.native_handle(),this._on_disconnect_callback.bind(this,t))}catch(r){n(r)}})})}_reject(t){return n=>{t(n),process.nextTick(()=>{this.emit("error",new xR.CrtError(n))})}}_on_connection_interrupted(t){this.emit("interrupt",new xR.CrtError(t))}_on_connection_resumed(t,n){this.emit("resume",t,n)}_on_any_publish(t,n,r,i,s){this.emit("message",t,n,r,i,s)}_on_connect_callback(t,n,r,i,s){r==0&&i==0?(t(s),this.emit("connect",s)):r!=0?n("Failed to connect: "+bm.error_code_to_string(r)):n("Server rejected connection.")}_on_puback_callback(t,n,r,i){i==0?t({packet_id:r}):n("Failed to publish: "+bm.error_code_to_string(i))}_on_suback_callback(t,n,r,i,s,a){a==0?t({packet_id:r,topic:i,qos:s,error_code:a}):n("Failed to subscribe: "+bm.error_code_to_string(a))}_on_unsuback_callback(t,n,r,i){i==0?t({packet_id:r}):n("Failed to unsubscribe: "+bm.error_code_to_string(i))}_on_disconnect_callback(t){t(),this.emit("disconnect"),this.close()}};Xe.MqttClientConnection=Hy});var jR=p(Ve=>{"use strict";var mte=Ve&&Ve.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ve,"__esModule",{value:!0});Ve.hmac_sha256=Ve.Sha256Hmac=Ve.hash_sha1=Ve.Sha1Hash=Ve.hash_sha256=Ve.Sha256Hash=Ve.hash_md5=Ve.Md5Hash=void 0;var nn=mte(Br()),DR=Va(),Sm=class extends DR.NativeResource{update(t){nn.default.hash_update(this.native_handle(),t)}finalize(t){return nn.default.hash_digest(this.native_handle(),t)}constructor(t){super(t)}},OR=class extends Sm{constructor(){super(nn.default.hash_md5_new())}};Ve.Md5Hash=OR;function fte(e,t){return nn.default.hash_md5_compute(e,t)}Ve.hash_md5=fte;var LR=class extends Sm{constructor(){super(nn.default.hash_sha256_new())}};Ve.Sha256Hash=LR;function pte(e,t){return nn.default.hash_sha256_compute(e,t)}Ve.hash_sha256=pte;var qR=class extends Sm{constructor(){super(nn.default.hash_sha1_new())}};Ve.Sha1Hash=qR;function _te(e,t){return nn.default.hash_sha1_compute(e,t)}Ve.hash_sha1=_te;var MR=class extends DR.NativeResource{update(t){nn.default.hmac_update(this.native_handle(),t)}finalize(t){return nn.default.hmac_digest(this.native_handle(),t)}constructor(t){super(t)}},kR=class extends MR{constructor(t){super(nn.default.hmac_sha256_new(t))}};Ve.Sha256Hmac=kR;function hte(e,t,n){return nn.default.hmac_sha256_compute(e,t,n)}Ve.hmac_sha256=hte});var Yy=p(Oe=>{"use strict";var gte=Oe&&Oe.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(r.next(u))}catch(_){a(_)}}function c(u){try{d(r.throw(u))}catch(_){a(_)}}function d(u){u.done?s(u.value):i(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})},yte=Oe&&Oe.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Oe,"__esModule",{value:!0});Oe.aws_verify_sigv4a_signing=Oe.aws_sign_request=Oe.AwsCredentialsProvider=Oe.AwsSignedBodyHeaderType=Oe.AwsSignedBodyValue=Oe.AwsSignatureType=Oe.AwsSigningAlgorithm=void 0;var Wy=yte(Br()),vte=Ya(),bte;(function(e){e[e.SigV4=0]="SigV4",e[e.SigV4Asymmetric=1]="SigV4Asymmetric"})(bte=Oe.AwsSigningAlgorithm||(Oe.AwsSigningAlgorithm={}));var Ste;(function(e){e[e.HttpRequestViaHeaders=0]="HttpRequestViaHeaders",e[e.HttpRequestViaQueryParams=1]="HttpRequestViaQueryParams",e[e.HttpRequestChunk=2]="HttpRequestChunk",e[e.HttpRequestEvent=3]="HttpRequestEvent"})(Ste=Oe.AwsSignatureType||(Oe.AwsSignatureType={}));var wte;(function(e){e.EmptySha256="e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",e.UnsignedPayload="UNSIGNED-PAYLOAD",e.StreamingAws4HmacSha256Payload="STREAMING-AWS4-HMAC-SHA256-PAYLOAD",e.StreamingAws4HmacSha256Events="STREAMING-AWS4-HMAC-SHA256-EVENTS"})(wte=Oe.AwsSignedBodyValue||(Oe.AwsSignedBodyValue={}));var Ete;(function(e){e[e.None=0]="None",e[e.XAmzContentSha256=1]="XAmzContentSha256"})(Ete=Oe.AwsSignedBodyHeaderType||(Oe.AwsSignedBodyHeaderType={}));var zR=class extends Wy.default.AwsCredentialsProvider{static newDefault(t=void 0){return super.newDefault(t!=null?t.native_handle():null)}};Oe.AwsCredentialsProvider=zR;function Ate(e,t){return gte(this,void 0,void 0,function*(){return new Promise((n,r)=>{try{Wy.default.aws_sign_request(e,t,i=>{i==0?n(e):r(new vte.CrtError(i))})}catch(i){r(i)}})})}Oe.aws_sign_request=Ate;function Cte(e,t,n,r,i,s){return Wy.default.aws_verify_sigv4a_signing(e,t,n,r,i,s)}Oe.aws_verify_sigv4a_signing=Cte});var FR=p(rn=>{"use strict";var Tte=rn&&rn.__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]}),xte=rn&&rn.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),UR=rn&&rn.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.hasOwnProperty.call(e,n)&&Tte(t,e,n);return xte(t,e),t},Ite=rn&&rn.__awaiter||function(e,t,n,r){function i(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(r.next(u))}catch(_){a(_)}}function c(u){try{d(r.throw(u))}catch(_){a(_)}}function d(u){u.done?s(u.value):i(u.value).then(l,c)}d((r=r.apply(e,t||[])).next())})};Object.defineProperty(rn,"__esModule",{value:!0});rn.AwsIotMqttConnectionConfigBuilder=void 0;var xi=UR(gm()),Rte=UR(Dy()),Ja=Yy(),Ii=class{constructor(t){this.tls_ctx_options=t,this.params={client_id:"",host_name:"",socket_options:new xi.SocketOptions,port:8883,use_websocket:!1,clean_session:!1,keep_alive:void 0,will:void 0,username:`?SDK=NodeJSv2&Version=${Rte.crt_version()}`,password:void 0,tls_ctx:void 0}}static new_mtls_builder_from_path(t,n){let r=new Ii(xi.TlsContextOptions.create_client_with_mtls_from_path(t,n));return r.params.port=8883,xi.is_alpn_available()&&r.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),r}static new_mtls_builder(t,n){let r=new Ii(xi.TlsContextOptions.create_client_with_mtls(t,n));return r.params.port=8883,xi.is_alpn_available()&&r.tls_ctx_options.alpn_list.unshift("x-amzn-mqtt-ca"),r}static new_websocket_builder(...t){return this.new_with_websockets(...t)}static configure_websocket_handshake(t,n){return n&&(t.params.websocket_handshake_transform=(r,i)=>Ite(this,void 0,void 0,function*(){var s,a,l;let c=(a=(s=n.create_signing_config)===null||s===void 0?void 0:s.call(n))!==null&&a!==void 0?a:{algorithm:Ja.AwsSigningAlgorithm.SigV4,signature_type:Ja.AwsSignatureType.HttpRequestViaQueryParams,provider:n.credentials_provider,region:n.region,service:(l=n.service)!==null&&l!==void 0?l:"iotdevicegateway",signed_body_value:Ja.AwsSignedBodyValue.EmptySha256,omit_session_token:!0};try{yield Ja.aws_sign_request(r,c),i()}catch(d){i(d)}})),t}static new_with_websockets(t){let n=t==null?void 0:t.tls_ctx_options;n||(n=new xi.TlsContextOptions,n.alpn_list=[]);let r=new Ii(n);return r.params.use_websocket=!0,r.params.proxy_options=t==null?void 0:t.proxy_options,r.tls_ctx_options&&(r.params.port=443),this.configure_websocket_handshake(r,t),r}with_certificate_authority_from_path(t,n){return this.tls_ctx_options.override_default_trust_store_from_path(t,n),this}with_certificate_authority(t){return this.tls_ctx_options.override_default_trust_store(t),this}with_endpoint(t){return this.params.host_name=t,this}with_port(t){return this.params.port=t,this}with_client_id(t){return this.params.client_id=t,this}with_clean_session(t){return this.params.clean_session=t,this}with_keep_alive_seconds(t){return this.params.keep_alive=t,this}with_timeout_ms(t){return this.with_ping_timeout_ms(t),this}with_ping_timeout_ms(t){return this.params.ping_timeout=t,this}with_protocol_operation_timeout_ms(t){return this.params.protocol_operation_timeout=t,this}with_will(t){return this.params.will=t,this}with_socket_options(t){return this.params.socket_options=t,this}with_credentials(t,n,r,i){return Ii.configure_websocket_handshake(this,{credentials_provider:Ja.AwsCredentialsProvider.newStatic(n,r,i),region:t,service:"iotdevicegateway"})}with_http_proxy_options(t){return this.params.proxy_options=t,this}build(){if(this.params.client_id===void 0||this.params.host_name===void 0)throw"client_id and endpoint are required";return this.params.tls_ctx===void 0&&(this.params.tls_ctx=new xi.ClientTlsContext(this.tls_ctx_options)),this.params}};rn.AwsIotMqttConnectionConfigBuilder=Ii});var BR=p(Ae=>{"use strict";var Nte=Ae&&Ae.__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]}),Pte=Ae&&Ae.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),ur=Ae&&Ae.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.hasOwnProperty.call(e,n)&&Nte(t,e,n);return Pte(t,e),t};Object.defineProperty(Ae,"__esModule",{value:!0});Ae.CrtError=Ae.resource_safety=Ae.platform=Ae.iot=Ae.auth=Ae.crypto=Ae.http=Ae.mqtt=Ae.io=Ae.crt=void 0;var Dte=ur(Dy());Ae.platform=Dte;var Ote=ur(Y1());Ae.resource_safety=Ote;var Lte=ur(sR());Ae.crt=Lte;var qte=ur(gm());Ae.io=qte;var Mte=ur(PR());Ae.mqtt=Mte;var kte=ur(Vy());Ae.http=kte;var jte=ur(jR());Ae.crypto=jte;var zte=ur(Yy());Ae.auth=zte;var Ute=ur(FR());Ae.iot=Ute;var Fte=Ya();Object.defineProperty(Ae,"CrtError",{enumerable:!0,get:function(){return Fte.CrtError}})});var GR=p((wm,Jy)=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});wm.isCrtAvailable=void 0;var Bte=()=>{try{return typeof require=="function"&&typeof Jy!="undefined"&&Jy.require&&BR()?["md/crt-avail"]:null}catch{return null}};wm.isCrtAvailable=Bte});var Em=p(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.defaultUserAgent=Hn.UA_APP_ID_INI_NAME=Hn.UA_APP_ID_ENV_NAME=void 0;var Gte=Ai(),$R=require("os"),Qy=require("process"),$te=GR();Hn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Hn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Kte=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${$R.platform()}`,$R.release()],["lang/js"],["md/nodejs",`${Qy.versions.node}`]],r=$te.isCrtAvailable();r&&n.push(r),e&&n.push([`api/${e}`,t]),Qy.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${Qy.env.AWS_EXECUTION_ENV}`]);let i=Gte.loadConfig({environmentVariableSelector:a=>a[Hn.UA_APP_ID_ENV_NAME],configFileSelector:a=>a[Hn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let a=await i;s=a?[...n,[`app/${a}`]]:[...n]}return s}};Hn.defaultUserAgent=Kte});var Am=p(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});Is.toUtf8=Is.fromUtf8=void 0;var KR=Zu(),Vte=e=>{let t=KR.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};Is.fromUtf8=Vte;var Hte=e=>KR.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8");Is.toUtf8=Hte});var VR=p(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.defaultRegionInfoProvider=void 0;var Wte=un(),Yte={"ap-northeast-1":{variants:[{hostname:"portal.sso.ap-northeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-1"},"ap-northeast-2":{variants:[{hostname:"portal.sso.ap-northeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-northeast-2"},"ap-south-1":{variants:[{hostname:"portal.sso.ap-south-1.amazonaws.com",tags:[]}],signingRegion:"ap-south-1"},"ap-southeast-1":{variants:[{hostname:"portal.sso.ap-southeast-1.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-1"},"ap-southeast-2":{variants:[{hostname:"portal.sso.ap-southeast-2.amazonaws.com",tags:[]}],signingRegion:"ap-southeast-2"},"ca-central-1":{variants:[{hostname:"portal.sso.ca-central-1.amazonaws.com",tags:[]}],signingRegion:"ca-central-1"},"eu-central-1":{variants:[{hostname:"portal.sso.eu-central-1.amazonaws.com",tags:[]}],signingRegion:"eu-central-1"},"eu-north-1":{variants:[{hostname:"portal.sso.eu-north-1.amazonaws.com",tags:[]}],signingRegion:"eu-north-1"},"eu-west-1":{variants:[{hostname:"portal.sso.eu-west-1.amazonaws.com",tags:[]}],signingRegion:"eu-west-1"},"eu-west-2":{variants:[{hostname:"portal.sso.eu-west-2.amazonaws.com",tags:[]}],signingRegion:"eu-west-2"},"eu-west-3":{variants:[{hostname:"portal.sso.eu-west-3.amazonaws.com",tags:[]}],signingRegion:"eu-west-3"},"sa-east-1":{variants:[{hostname:"portal.sso.sa-east-1.amazonaws.com",tags:[]}],signingRegion:"sa-east-1"},"us-east-1":{variants:[{hostname:"portal.sso.us-east-1.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-2":{variants:[{hostname:"portal.sso.us-east-2.amazonaws.com",tags:[]}],signingRegion:"us-east-2"},"us-gov-west-1":{variants:[{hostname:"portal.sso.us-gov-west-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-west-1"},"us-west-2":{variants:[{hostname:"portal.sso.us-west-2.amazonaws.com",tags:[]}],signingRegion:"us-west-2"}},Jte={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","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"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com.cn",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.c2s.ic.gov",tags:[]},{hostname:"portal.sso-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.sc2s.sgov.gov",tags:[]},{hostname:"portal.sso-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-west-1"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"portal.sso.{region}.amazonaws.com",tags:[]},{hostname:"portal.sso-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"portal.sso-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"portal.sso.{region}.api.aws",tags:["dualstack"]}]}},Qte=async(e,t)=>Wte.getRegionInfo(e,f(o({},t),{signingService:"awsssoportal",regionHash:Yte,partitionHash:Jte}));Cm.defaultRegionInfoProvider=Qte});var HR=p(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.getRuntimeConfig=void 0;var Xte=Ua(),Zte=VR(),ene=e=>{var t,n,r,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:Zte.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"SSO",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:Xte.parseUrl}};Tm.getRuntimeConfig=ene});var WR=p(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.IMDS_REGION_PATH=It.DEFAULTS_MODE_OPTIONS=It.ENV_IMDS_DISABLED=It.AWS_DEFAULT_REGION_ENV=It.AWS_REGION_ENV=It.AWS_EXECUTION_ENV=void 0;It.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";It.AWS_REGION_ENV="AWS_REGION";It.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";It.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";It.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];It.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var YR=p(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});xm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var tne="AWS_DEFAULTS_MODE",nne="defaults_mode";xm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[tne],configFileSelector:e=>e[nne],default:"legacy"}});var XR=p(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.resolveDefaultsModeConfig=void 0;var rne=un(),JR=Uu(),QR=Ai(),ine=lt(),$r=WR(),sne=YR(),ane=({region:e=QR.loadConfig(rne.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=QR.loadConfig(sne.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>ine.memoize(async()=>{let n=typeof t=="function"?await t():t;switch(n==null?void 0:n.toLowerCase()){case"auto":return one(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(n==null?void 0:n.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${$r.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${n}`)}});Im.resolveDefaultsModeConfig=ane;var one=async e=>{if(e){let t=typeof e=="function"?await e():e,n=await lne();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},lne=async()=>{var e;if(process.env[$r.AWS_EXECUTION_ENV]&&(process.env[$r.AWS_REGION_ENV]||process.env[$r.AWS_DEFAULT_REGION_ENV]))return(e=process.env[$r.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[$r.AWS_DEFAULT_REGION_ENV];if(!process.env[$r.ENV_IMDS_DISABLED])try{let t=await JR.getInstanceMetadataEndpoint();return(await JR.httpRequest(f(o({},t),{path:$r.IMDS_REGION_PATH}))).toString()}catch{}}});var Rm=p(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var cne=se();cne.__exportStar(XR(),Xy)});var nN=p(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.getRuntimeConfig=void 0;var dne=se(),une=dne.__importDefault(I1()),Nm=un(),mne=tm(),Zy=hi(),Qa=Ai(),ZR=mm(),eN=fm(),fne=_m(),pne=Em(),tN=Am(),_ne=HR(),hne=q(),gne=Rm(),yne=e=>{var t,n,r,i,s,a,l,c,d,u,_,g,b,S;let v=gne.resolveDefaultsModeConfig(e),I=()=>v().then(hne.loadConfigsForDefaultMode),L=_ne.getRuntimeConfig(e);return f(o(o({},L),e),{runtime:"node",defaultsMode:v,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:eN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:eN.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:fne.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:pne.defaultUserAgent({serviceId:L.serviceId,clientVersion:une.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:Qa.loadConfig(Zy.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:Qa.loadConfig(Nm.NODE_REGION_CONFIG_OPTIONS,Nm.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(l=e==null?void 0:e.requestHandler)!==null&&l!==void 0?l:new ZR.NodeHttpHandler(I),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:Qa.loadConfig(f(o({},Zy.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await I()).retryMode||Zy.DEFAULT_RETRY_MODE})),sha256:(d=e==null?void 0:e.sha256)!==null&&d!==void 0?d:mne.Hash.bind(null,"sha256"),streamCollector:(u=e==null?void 0:e.streamCollector)!==null&&u!==void 0?u:ZR.streamCollector,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!==null&&_!==void 0?_:Qa.loadConfig(Nm.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(g=e==null?void 0:e.useFipsEndpoint)!==null&&g!==void 0?g:Qa.loadConfig(Nm.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(b=e==null?void 0:e.utf8Decoder)!==null&&b!==void 0?b:tN.fromUtf8,utf8Encoder:(S=e==null?void 0:e.utf8Encoder)!==null&&S!==void 0?S:tN.toUtf8})};Pm.getRuntimeConfig=yne});var Xa=p(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.SSOClient=void 0;var rN=un(),vne=ud(),iN=vd(),bne=bd(),sN=hi(),aN=iu(),Sne=q(),wne=nN(),oN=class extends Sne.Client{constructor(t){let n=wne.getRuntimeConfig(t),r=rN.resolveRegionConfig(n),i=rN.resolveEndpointsConfig(r),s=sN.resolveRetryConfig(i),a=iN.resolveHostHeaderConfig(s),l=aN.resolveUserAgentConfig(a);super(l);this.config=l,this.middlewareStack.use(sN.getRetryPlugin(this.config)),this.middlewareStack.use(vne.getContentLengthPlugin(this.config)),this.middlewareStack.use(iN.getHostHeaderPlugin(this.config)),this.middlewareStack.use(bne.getLoggerPlugin(this.config)),this.middlewareStack.use(aN.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Dm.SSOClient=oN});var Lm=p(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.SSO=void 0;var Ene=wy(),Ane=Yu(),Cne=Qu(),Tne=Ey(),xne=Xa(),lN=class extends xne.SSOClient{getRoleCredentials(t,n,r){let i=new Ene.GetRoleCredentialsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAccountRoles(t,n,r){let i=new Ane.ListAccountRolesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listAccounts(t,n,r){let i=new Cne.ListAccountsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}logout(t,n,r){let i=new Tne.LogoutCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};Om.SSO=lN});var cN=p(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var qm=se();qm.__exportStar(wy(),Rs);qm.__exportStar(Yu(),Rs);qm.__exportStar(Qu(),Rs);qm.__exportStar(Ey(),Rs)});var dN=p(ev=>{"use strict";Object.defineProperty(ev,"__esModule",{value:!0});var Ine=se();Ine.__exportStar(Ss(),ev)});var mN=p(uN=>{"use strict";Object.defineProperty(uN,"__esModule",{value:!0})});var fN=p(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.paginateListAccountRoles=void 0;var Rne=Yu(),Nne=Lm(),Pne=Xa(),Dne=async(e,t,...n)=>await e.send(new Rne.ListAccountRolesCommand(t),...n),One=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*Lne(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof Nne.SSO)s=await One(e.client,t,...n);else if(e.client instanceof Pne.SSOClient)s=await Dne(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s,r=s.nextToken,i=!!r}return void 0}Mm.paginateListAccountRoles=Lne});var pN=p(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.paginateListAccounts=void 0;var qne=Qu(),Mne=Lm(),kne=Xa(),jne=async(e,t,...n)=>await e.send(new qne.ListAccountsCommand(t),...n),zne=async(e,t,...n)=>await e.listAccounts(t,...n);async function*Une(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=r,t.maxResults=e.pageSize,e.client instanceof Mne.SSO)s=await zne(e.client,t,...n);else if(e.client instanceof kne.SSOClient)s=await jne(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s,r=s.nextToken,i=!!r}return void 0}km.paginateListAccounts=Une});var _N=p(Za=>{"use strict";Object.defineProperty(Za,"__esModule",{value:!0});var tv=se();tv.__exportStar(mN(),Za);tv.__exportStar(fN(),Za);tv.__exportStar(pN(),Za)});var hN=p(Ri=>{"use strict";Object.defineProperty(Ri,"__esModule",{value:!0});var eo=se();eo.__exportStar(Lm(),Ri);eo.__exportStar(Xa(),Ri);eo.__exportStar(cN(),Ri);eo.__exportStar(dN(),Ri);eo.__exportStar(_N(),Ri)});var to=p(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.getMasterProfileName=sn.parseKnownFiles=sn.DEFAULT_PROFILE=sn.ENV_PROFILE=void 0;var Fne=za();sn.ENV_PROFILE="AWS_PROFILE";sn.DEFAULT_PROFILE="default";var Bne=async e=>{let{loadedConfig:t=Fne.loadSharedConfigFiles(e)}=e,n=await t;return o(o({},n.configFile),n.credentialsFile)};sn.parseKnownFiles=Bne;var Gne=e=>e.profile||process.env[sn.ENV_PROFILE]||sn.DEFAULT_PROFILE;sn.getMasterProfileName=Gne});var nv=p(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.isSsoProfile=Bt.validateSsoProfile=Bt.fromSSO=Bt.EXPIRE_WINDOW_MS=void 0;var gN=hN(),Ns=lt(),$ne=za(),yN=to(),Kne=require("crypto"),Vne=require("fs"),Hne=require("path");Bt.EXPIRE_WINDOW_MS=15*60*1e3;var jm=!1,Wne=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s}=e;if(!t&&!n&&!r&&!i){let a=await yN.parseKnownFiles(e),l=yN.getMasterProfileName(e),c=a[l];if(!Bt.isSsoProfile(c))throw new Ns.CredentialsProviderError(`Profile ${l} is not configured with SSO credentials.`);let{sso_start_url:d,sso_account_id:u,sso_region:_,sso_role_name:g}=Bt.validateSsoProfile(c);return vN({ssoStartUrl:d,ssoAccountId:u,ssoRegion:_,ssoRoleName:g,ssoClient:s})}else{if(!t||!n||!r||!i)throw new Ns.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return vN({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s})}};Bt.fromSSO=Wne;var vN=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:n,ssoRoleName:r,ssoClient:i})=>{let a=Kne.createHash("sha1").update(e).digest("hex"),l=Hne.join($ne.getHomeDir(),".aws","sso","cache",`${a}.json`),c;try{if(c=JSON.parse(Vne.readFileSync(l,{encoding:"utf-8"})),new Date(c.expiresAt).getTime()-Date.now()<=Bt.EXPIRE_WINDOW_MS)throw new Error("SSO token is expired.")}catch{throw new Ns.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.",jm)}let{accessToken:d}=c,u=i||new gN.SSOClient({region:n}),_;try{_=await u.send(new gN.GetRoleCredentialsCommand({accountId:t,roleName:r,accessToken:d}))}catch(I){throw Ns.CredentialsProviderError.from(I,jm)}let{roleCredentials:{accessKeyId:g,secretAccessKey:b,sessionToken:S,expiration:v}={}}=_;if(!g||!b||!S||!v)throw new Ns.CredentialsProviderError("SSO returns an invalid temporary credential.",jm);return{accessKeyId:g,secretAccessKey:b,sessionToken:S,expiration:new Date(v)}},Yne=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=e;if(!t||!n||!r||!i)throw new Ns.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
30
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,jm);return e};Bt.validateSsoProfile=Yne;var Jne=e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string");Bt.isSsoProfile=Jne});var rv=p(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.fromWebToken=void 0;var Qne=lt(),Xne=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:a,durationSeconds:l,roleAssumerWithWebIdentity:c}=e;if(!c)throw new Qne.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:n??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:r,ProviderId:i,PolicyArns:s,Policy:a,DurationSeconds:l})};zm.fromWebToken=Xne});var bN=p(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});Um.fromTokenFile=void 0;var Zne=lt(),ere=require("fs"),tre=rv(),nre="AWS_WEB_IDENTITY_TOKEN_FILE",rre="AWS_ROLE_ARN",ire="AWS_ROLE_SESSION_NAME",sre=(e={})=>async()=>are(e);Um.fromTokenFile=sre;var are=e=>{var t,n,r;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[nre],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[rre],a=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[ire];if(!i||!s)throw new Zne.CredentialsProviderError("Web identity configuration not specified");return tre.fromWebToken(f(o({},e),{webIdentityToken:ere.readFileSync(i,{encoding:"ascii"}),roleArn:s,roleSessionName:a}))()}});var iv=p(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var SN=se();SN.__exportStar(bN(),Fm);SN.__exportStar(rv(),Fm)});var xN=p(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.fromIni=void 0;var ore=dy(),wN=Uu(),sv=nv(),lre=iv(),no=lt(),av=to(),EN=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,cre=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,AN=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,dre=e=>AN(e)&&typeof e.source_profile=="string"&&typeof e.credential_source=="undefined",ure=e=>AN(e)&&typeof e.credential_source=="string"&&typeof e.source_profile=="undefined",mre=(e={})=>async()=>{let t=await av.parseKnownFiles(e);return CN(av.getMasterProfileName(e),t,e)};Bm.fromIni=mre;var CN=async(e,t,n,r={})=>{let i=t[e];if(Object.keys(r).length>0&&EN(i))return TN(i);if(dre(i)||ure(i)){let{external_id:s,mfa_serial:a,role_arn:l,role_session_name:c="aws-sdk-js-"+Date.now(),source_profile:d,credential_source:u}=i;if(!n.roleAssumer)throw new no.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);if(d&&d in r)throw new no.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${av.getMasterProfileName(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let _=d?CN(d,t,n,f(o({},r),{[d]:!0})):fre(u,e)(),g={RoleArn:l,RoleSessionName:c,ExternalId:s};if(a){if(!n.mfaCodeProvider)throw new no.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);g.SerialNumber=a,g.TokenCode=await n.mfaCodeProvider(a)}return n.roleAssumer(await _,g)}if(EN(i))return TN(i);if(cre(i))return pre(i,n);if(sv.isSsoProfile(i)){let{sso_start_url:s,sso_account_id:a,sso_region:l,sso_role_name:c}=sv.validateSsoProfile(i);return sv.fromSSO({ssoStartUrl:s,ssoAccountId:a,ssoRegion:l,ssoRoleName:c})()}throw new no.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)},fre=(e,t)=>{let n={EcsContainer:wN.fromContainerMetadata,Ec2InstanceMetadata:wN.fromInstanceMetadata,Environment:ore.fromEnv};if(e in n)return n[e]();throw new no.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)},TN=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token}),pre=async(e,t)=>lre.fromTokenFile({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})()});var RN=p(Ps=>{"use strict";Object.defineProperty(Ps,"__esModule",{value:!0});Ps.fromProcess=Ps.ENV_PROFILE=void 0;var ov=lt(),IN=to(),_re=require("child_process");Ps.ENV_PROFILE="AWS_PROFILE";var hre=(e={})=>async()=>{let t=await IN.parseKnownFiles(e);return gre(IN.getMasterProfileName(e),t)};Ps.fromProcess=hre;var gre=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0)return await yre(r).then(i=>{let s;try{s=JSON.parse(i)}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}let{Version:a,AccessKeyId:l,SecretAccessKey:c,SessionToken:d,Expiration:u}=s;if(a!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(l===void 0||c===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);let _;if(u){let g=new Date;if(new Date(u)<g)throw Error(`Profile ${e} credential_process returned expired credentials.`);_=Math.floor(new Date(u).valueOf()/1e3)}return{accessKeyId:l,secretAccessKey:c,sessionToken:d,expirationUnix:_}}).catch(i=>{throw new ov.CredentialsProviderError(i.message)});throw new ov.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new ov.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)},yre=e=>new Promise(function(t,n){_re.exec(e,(r,i)=>{if(r){n(r);return}t(i.trim())})})});var lv=p(Ni=>{"use strict";Object.defineProperty(Ni,"__esModule",{value:!0});Ni.defaultProvider=Ni.ENV_IMDS_DISABLED=void 0;var vre=dy(),Gm=Uu(),bre=xN(),Sre=RN(),wre=nv(),Ere=iv(),$m=lt(),Are=za(),Cre=to();Ni.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Tre=(e={})=>{let t=o({profile:process.env[Cre.ENV_PROFILE]},e);t.loadedConfig||(t.loadedConfig=Are.loadSharedConfigFiles(e));let n=[wre.fromSSO(t),bre.fromIni(t),Sre.fromProcess(t),Ere.fromTokenFile(t),xre(t),async()=>{throw new $m.CredentialsProviderError("Could not load credentials from any providers",!1)}];t.profile||n.unshift(vre.fromEnv());let r=$m.chain(...n);return $m.memoize(r,i=>i.expiration!==void 0&&i.expiration.getTime()-Date.now()<3e5,i=>i.expiration!==void 0)};Ni.defaultProvider=Tre;var xre=e=>process.env[Gm.ENV_CMDS_RELATIVE_URI]||process.env[Gm.ENV_CMDS_FULL_URI]?Gm.fromContainerMetadata(e):process.env[Ni.ENV_IMDS_DISABLED]?()=>Promise.reject(new $m.CredentialsProviderError("EC2 Instance Metadata Service access disabled")):Gm.fromInstanceMetadata(e)});var NN=p(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.defaultRegionInfoProvider=void 0;var Ire=un(),Rre={"aws-global":{variants:[{hostname:"sts.amazonaws.com",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"sts-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"sts-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"sts.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"sts.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"sts-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"sts-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},Nre={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","aws-global","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-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com.cn",tags:[]},{hostname:"sts-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"sts-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.c2s.ic.gov",tags:[]},{hostname:"sts-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.sc2s.sgov.gov",tags:[]},{hostname:"sts-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"sts.{region}.amazonaws.com",tags:[]},{hostname:"sts.{region}.amazonaws.com",tags:["fips"]},{hostname:"sts-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"sts.{region}.api.aws",tags:["dualstack"]}]}},Pre=async(e,t)=>Ire.getRegionInfo(e,f(o({},t),{signingService:"sts",regionHash:Rre,partitionHash:Nre}));Km.defaultRegionInfoProvider=Pre});var PN=p(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.getRuntimeConfig=void 0;var Dre=Ua(),Ore=NN(),Lre=e=>{var t,n,r,i,s;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:Ore.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"STS",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:Dre.parseUrl}};Vm.getRuntimeConfig=Lre});var qN=p(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.getRuntimeConfig=void 0;var qre=se(),Mre=qre.__importDefault(VI()),kre=cy(),Hm=un(),jre=lv(),zre=tm(),cv=hi(),ro=Ai(),DN=mm(),ON=fm(),Ure=_m(),Fre=Em(),LN=Am(),Bre=PN(),Gre=q(),$re=Rm(),Kre=e=>{var t,n,r,i,s,a,l,c,d,u,_,g,b,S,v;let I=$re.resolveDefaultsModeConfig(e),L=()=>I().then(Gre.loadConfigsForDefaultMode),x=Bre.getRuntimeConfig(e);return f(o(o({},x),e),{runtime:"node",defaultsMode:I,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:ON.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:ON.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:Ure.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:kre.decorateDefaultCredentialProvider(jre.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:Fre.defaultUserAgent({serviceId:x.serviceId,clientVersion:Mre.default.version}),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:ro.loadConfig(cv.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(l=e==null?void 0:e.region)!==null&&l!==void 0?l:ro.loadConfig(Hm.NODE_REGION_CONFIG_OPTIONS,Hm.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new DN.NodeHttpHandler(L),retryMode:(d=e==null?void 0:e.retryMode)!==null&&d!==void 0?d:ro.loadConfig(f(o({},cv.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await L()).retryMode||cv.DEFAULT_RETRY_MODE})),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:zre.Hash.bind(null,"sha256"),streamCollector:(_=e==null?void 0:e.streamCollector)!==null&&_!==void 0?_:DN.streamCollector,useDualstackEndpoint:(g=e==null?void 0:e.useDualstackEndpoint)!==null&&g!==void 0?g:ro.loadConfig(Hm.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(b=e==null?void 0:e.useFipsEndpoint)!==null&&b!==void 0?b:ro.loadConfig(Hm.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(S=e==null?void 0:e.utf8Decoder)!==null&&S!==void 0?S:LN.fromUtf8,utf8Encoder:(v=e==null?void 0:e.utf8Encoder)!==null&&v!==void 0?v:LN.toUtf8})};Wm.getRuntimeConfig=Kre});var Qm=p(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.STSClient=void 0;var MN=un(),Vre=ud(),kN=vd(),Hre=bd(),jN=hi(),Wre=KI(),zN=iu(),Yre=q(),Jre=qN(),Ym=class extends Yre.Client{constructor(t){let n=Jre.getRuntimeConfig(t),r=MN.resolveRegionConfig(n),i=MN.resolveEndpointsConfig(r),s=jN.resolveRetryConfig(i),a=kN.resolveHostHeaderConfig(s),l=Wre.resolveStsAuthConfig(a,{stsClientCtor:Ym}),c=zN.resolveUserAgentConfig(l);super(c);this.config=c,this.middlewareStack.use(jN.getRetryPlugin(this.config)),this.middlewareStack.use(Vre.getContentLengthPlugin(this.config)),this.middlewareStack.use(kN.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Hre.getLoggerPlugin(this.config)),this.middlewareStack.use(zN.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};Jm.STSClient=Ym});var FN=p(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.STS=void 0;var Qre=yu(),Xre=ry(),Zre=Su(),eie=iy(),tie=sy(),nie=ay(),rie=oy(),iie=ly(),sie=Qm(),UN=class extends sie.STSClient{assumeRole(t,n,r){let i=new Qre.AssumeRoleCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}assumeRoleWithSAML(t,n,r){let i=new Xre.AssumeRoleWithSAMLCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}assumeRoleWithWebIdentity(t,n,r){let i=new Zre.AssumeRoleWithWebIdentityCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}decodeAuthorizationMessage(t,n,r){let i=new eie.DecodeAuthorizationMessageCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getAccessKeyInfo(t,n,r){let i=new tie.GetAccessKeyInfoCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getCallerIdentity(t,n,r){let i=new nie.GetCallerIdentityCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getFederationToken(t,n,r){let i=new rie.GetFederationTokenCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getSessionToken(t,n,r){let i=new iie.GetSessionTokenCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};Xm.STS=UN});var BN=p(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});var Kr=se();Kr.__exportStar(yu(),Wn);Kr.__exportStar(ry(),Wn);Kr.__exportStar(Su(),Wn);Kr.__exportStar(iy(),Wn);Kr.__exportStar(sy(),Wn);Kr.__exportStar(ay(),Wn);Kr.__exportStar(oy(),Wn);Kr.__exportStar(ly(),Wn)});var KN=p(Yn=>{"use strict";Object.defineProperty(Yn,"__esModule",{value:!0});Yn.decorateDefaultCredentialProvider=Yn.getDefaultRoleAssumerWithWebIdentity=Yn.getDefaultRoleAssumer=void 0;var GN=cy(),$N=Qm(),aie=(e={})=>GN.getDefaultRoleAssumer(e,$N.STSClient);Yn.getDefaultRoleAssumer=aie;var oie=(e={})=>GN.getDefaultRoleAssumerWithWebIdentity(e,$N.STSClient);Yn.getDefaultRoleAssumerWithWebIdentity=oie;var lie=e=>t=>e(o({roleAssumer:Yn.getDefaultRoleAssumer(t),roleAssumerWithWebIdentity:Yn.getDefaultRoleAssumerWithWebIdentity(t)},t));Yn.decorateDefaultCredentialProvider=lie});var VN=p(dv=>{"use strict";Object.defineProperty(dv,"__esModule",{value:!0});var cie=se();cie.__exportStar(qn(),dv)});var HN=p(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var io=se();io.__exportStar(FN(),Pi);io.__exportStar(Qm(),Pi);io.__exportStar(BN(),Pi);io.__exportStar(KN(),Pi);io.__exportStar(VN(),Pi)});var WN=p(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.defaultRegionInfoProvider=void 0;var die=un(),uie={"ca-central-1":{variants:[{hostname:"dynamodb-fips.ca-central-1.amazonaws.com",tags:["fips"]}]},local:{variants:[{hostname:"localhost:8000",tags:[]}],signingRegion:"us-east-1"},"us-east-1":{variants:[{hostname:"dynamodb-fips.us-east-1.amazonaws.com",tags:["fips"]}]},"us-east-2":{variants:[{hostname:"dynamodb-fips.us-east-2.amazonaws.com",tags:["fips"]}]},"us-gov-east-1":{variants:[{hostname:"dynamodb.us-gov-east-1.amazonaws.com",tags:["fips"]}]},"us-gov-west-1":{variants:[{hostname:"dynamodb.us-gov-west-1.amazonaws.com",tags:["fips"]}]},"us-west-1":{variants:[{hostname:"dynamodb-fips.us-west-1.amazonaws.com",tags:["fips"]}]},"us-west-2":{variants:[{hostname:"dynamodb-fips.us-west-2.amazonaws.com",tags:["fips"]}]}},mie={aws:{regions:["af-south-1","ap-east-1","ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ap-southeast-3","ca-central-1","ca-central-1-fips","eu-central-1","eu-north-1","eu-south-1","eu-west-1","eu-west-2","eu-west-3","local","me-south-1","sa-east-1","us-east-1","us-east-1-fips","us-east-2","us-east-2-fips","us-west-1","us-west-1-fips","us-west-2","us-west-2-fips"],regionRegex:"^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]},"aws-cn":{regions:["cn-north-1","cn-northwest-1"],regionRegex:"^cn\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com.cn",tags:[]},{hostname:"dynamodb-fips.{region}.amazonaws.com.cn",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.amazonwebservices.com.cn",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.amazonwebservices.com.cn",tags:["dualstack"]}]},"aws-iso":{regions:["us-iso-east-1","us-iso-west-1"],regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.c2s.ic.gov",tags:[]},{hostname:"dynamodb-fips.{region}.c2s.ic.gov",tags:["fips"]}]},"aws-iso-b":{regions:["us-isob-east-1"],regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.sc2s.sgov.gov",tags:[]},{hostname:"dynamodb-fips.{region}.sc2s.sgov.gov",tags:["fips"]}]},"aws-us-gov":{regions:["us-gov-east-1","us-gov-east-1-fips","us-gov-west-1","us-gov-west-1-fips"],regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",variants:[{hostname:"dynamodb.{region}.amazonaws.com",tags:[]},{hostname:"dynamodb.{region}.amazonaws.com",tags:["fips"]},{hostname:"dynamodb-fips.{region}.api.aws",tags:["dualstack","fips"]},{hostname:"dynamodb.{region}.api.aws",tags:["dualstack"]}]}},fie=async(e,t)=>die.getRegionInfo(e,f(o({},t),{signingService:"dynamodb",regionHash:uie,partitionHash:mie}));Zm.defaultRegionInfoProvider=fie});var YN=p(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.getRuntimeConfig=void 0;var pie=Ua(),_ie=WN(),hie=e=>{var t,n,r,i,s;return{apiVersion:"2012-08-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(n=e==null?void 0:e.logger)!==null&&n!==void 0?n:{},regionInfoProvider:(r=e==null?void 0:e.regionInfoProvider)!==null&&r!==void 0?r:_ie.defaultRegionInfoProvider,serviceId:(i=e==null?void 0:e.serviceId)!==null&&i!==void 0?i:"DynamoDB",urlParser:(s=e==null?void 0:e.urlParser)!==null&&s!==void 0?s:pie.parseUrl}};ef.getRuntimeConfig=hie});var ZN=p(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.getRuntimeConfig=void 0;var gie=se(),yie=gie.__importDefault(wx()),vie=HN(),tf=un(),bie=lv(),Sie=tm(),wie=vg(),uv=hi(),Ds=Ai(),JN=mm(),QN=fm(),Eie=_m(),Aie=Em(),XN=Am(),Cie=YN(),Tie=q(),xie=Rm(),Iie=e=>{var t,n,r,i,s,a,l,c,d,u,_,g,b,S,v,I;let L=xie.resolveDefaultsModeConfig(e),x=()=>L().then(Tie.loadConfigsForDefaultMode),re=Cie.getRuntimeConfig(e);return f(o(o({},re),e),{runtime:"node",defaultsMode:L,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:QN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:QN.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:Eie.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:vie.decorateDefaultCredentialProvider(bie.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:Aie.defaultUserAgent({serviceId:re.serviceId,clientVersion:yie.default.version}),endpointDiscoveryEnabledProvider:(a=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&a!==void 0?a:Ds.loadConfig(wie.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(l=e==null?void 0:e.maxAttempts)!==null&&l!==void 0?l:Ds.loadConfig(uv.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:Ds.loadConfig(tf.NODE_REGION_CONFIG_OPTIONS,tf.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(d=e==null?void 0:e.requestHandler)!==null&&d!==void 0?d:new JN.NodeHttpHandler(x),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:Ds.loadConfig(f(o({},uv.NODE_RETRY_MODE_CONFIG_OPTIONS),{default:async()=>(await x()).retryMode||uv.DEFAULT_RETRY_MODE})),sha256:(_=e==null?void 0:e.sha256)!==null&&_!==void 0?_:Sie.Hash.bind(null,"sha256"),streamCollector:(g=e==null?void 0:e.streamCollector)!==null&&g!==void 0?g:JN.streamCollector,useDualstackEndpoint:(b=e==null?void 0:e.useDualstackEndpoint)!==null&&b!==void 0?b:Ds.loadConfig(tf.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(S=e==null?void 0:e.useFipsEndpoint)!==null&&S!==void 0?S:Ds.loadConfig(tf.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(v=e==null?void 0:e.utf8Decoder)!==null&&v!==void 0?v:XN.fromUtf8,utf8Encoder:(I=e==null?void 0:e.utf8Encoder)!==null&&I!==void 0?I:XN.toUtf8})};nf.getRuntimeConfig=Iie});var Vr=p(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.DynamoDBClient=void 0;var eP=un(),Rie=ud(),Nie=vg(),tP=vd(),Pie=bd(),nP=hi(),rP=or(),iP=iu(),Die=q(),Oie=sc(),Lie=ZN(),sP=class extends Die.Client{constructor(t){let n=Lie.getRuntimeConfig(t),r=eP.resolveRegionConfig(n),i=eP.resolveEndpointsConfig(r),s=nP.resolveRetryConfig(i),a=tP.resolveHostHeaderConfig(s),l=rP.resolveAwsAuthConfig(a),c=iP.resolveUserAgentConfig(l),d=Nie.resolveEndpointDiscoveryConfig(c,{endpointDiscoveryCommandCtor:Oie.DescribeEndpointsCommand});super(d);this.config=d,this.middlewareStack.use(nP.getRetryPlugin(this.config)),this.middlewareStack.use(Rie.getContentLengthPlugin(this.config)),this.middlewareStack.use(tP.getHostHeaderPlugin(this.config)),this.middlewareStack.use(Pie.getLoggerPlugin(this.config)),this.middlewareStack.use(rP.getAwsAuthPlugin(this.config)),this.middlewareStack.use(iP.getUserAgentPlugin(this.config))}destroy(){super.destroy()}};rf.DynamoDBClient=sP});var Di=p(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.DynamoDB=void 0;var qie=hh(),Mie=gh(),kie=yh(),jie=vh(),zie=bh(),Uie=Sh(),Fie=wh(),Bie=Eh(),Gie=Ah(),$ie=Ch(),Kie=Th(),Vie=xh(),Hie=sc(),Wie=Ih(),Yie=Rh(),Jie=Nh(),Qie=Ph(),Xie=Dh(),Zie=Aa(),ese=Oh(),tse=Lh(),nse=qh(),rse=Mh(),ise=kh(),sse=jh(),ase=zh(),ose=Uh(),lse=Fh(),cse=wc(),dse=Ac(),use=Bh(),mse=xc(),fse=Gh(),pse=$h(),_se=Pc(),hse=Kh(),gse=Vh(),yse=qc(),vse=Hh(),bse=Wh(),Sse=Yh(),wse=Jh(),Ese=Qh(),Ase=Xh(),Cse=Zh(),Tse=eg(),xse=tg(),Ise=ng(),Rse=rg(),Nse=ig(),Pse=Vr(),aP=class extends Pse.DynamoDBClient{batchExecuteStatement(t,n,r){let i=new qie.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchGetItem(t,n,r){let i=new Mie.BatchGetItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchWriteItem(t,n,r){let i=new kie.BatchWriteItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createBackup(t,n,r){let i=new jie.CreateBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createGlobalTable(t,n,r){let i=new zie.CreateGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}createTable(t,n,r){let i=new Uie.CreateTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteBackup(t,n,r){let i=new Fie.DeleteBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteItem(t,n,r){let i=new Bie.DeleteItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}deleteTable(t,n,r){let i=new Gie.DeleteTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeBackup(t,n,r){let i=new $ie.DescribeBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeContinuousBackups(t,n,r){let i=new Kie.DescribeContinuousBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeContributorInsights(t,n,r){let i=new Vie.DescribeContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeEndpoints(t,n,r){let i=new Hie.DescribeEndpointsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeExport(t,n,r){let i=new Wie.DescribeExportCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeGlobalTable(t,n,r){let i=new Yie.DescribeGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeGlobalTableSettings(t,n,r){let i=new Jie.DescribeGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeKinesisStreamingDestination(t,n,r){let i=new Qie.DescribeKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeLimits(t,n,r){let i=new Xie.DescribeLimitsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTable(t,n,r){let i=new Zie.DescribeTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTableReplicaAutoScaling(t,n,r){let i=new ese.DescribeTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}describeTimeToLive(t,n,r){let i=new tse.DescribeTimeToLiveCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}disableKinesisStreamingDestination(t,n,r){let i=new nse.DisableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}enableKinesisStreamingDestination(t,n,r){let i=new rse.EnableKinesisStreamingDestinationCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeStatement(t,n,r){let i=new ise.ExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeTransaction(t,n,r){let i=new sse.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}exportTableToPointInTime(t,n,r){let i=new ase.ExportTableToPointInTimeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}getItem(t,n,r){let i=new ose.GetItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listBackups(t,n,r){let i=new lse.ListBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listContributorInsights(t,n,r){let i=new cse.ListContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listExports(t,n,r){let i=new dse.ListExportsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listGlobalTables(t,n,r){let i=new use.ListGlobalTablesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTables(t,n,r){let i=new mse.ListTablesCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}listTagsOfResource(t,n,r){let i=new fse.ListTagsOfResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}putItem(t,n,r){let i=new pse.PutItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}query(t,n,r){let i=new _se.QueryCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}restoreTableFromBackup(t,n,r){let i=new hse.RestoreTableFromBackupCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}restoreTableToPointInTime(t,n,r){let i=new gse.RestoreTableToPointInTimeCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}scan(t,n,r){let i=new yse.ScanCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}tagResource(t,n,r){let i=new vse.TagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactGetItems(t,n,r){let i=new bse.TransactGetItemsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactWriteItems(t,n,r){let i=new Sse.TransactWriteItemsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}untagResource(t,n,r){let i=new wse.UntagResourceCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateContinuousBackups(t,n,r){let i=new Ese.UpdateContinuousBackupsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateContributorInsights(t,n,r){let i=new Ase.UpdateContributorInsightsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateGlobalTable(t,n,r){let i=new Cse.UpdateGlobalTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateGlobalTableSettings(t,n,r){let i=new Tse.UpdateGlobalTableSettingsCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateItem(t,n,r){let i=new xse.UpdateItemCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTable(t,n,r){let i=new Ise.UpdateTableCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTableReplicaAutoScaling(t,n,r){let i=new Rse.UpdateTableReplicaAutoScalingCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}updateTimeToLive(t,n,r){let i=new Nse.UpdateTimeToLiveCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};sf.DynamoDB=aP});var oP=p(W=>{"use strict";Object.defineProperty(W,"__esModule",{value:!0});var te=se();te.__exportStar(hh(),W);te.__exportStar(gh(),W);te.__exportStar(yh(),W);te.__exportStar(vh(),W);te.__exportStar(bh(),W);te.__exportStar(Sh(),W);te.__exportStar(wh(),W);te.__exportStar(Eh(),W);te.__exportStar(Ah(),W);te.__exportStar(Ch(),W);te.__exportStar(Th(),W);te.__exportStar(xh(),W);te.__exportStar(sc(),W);te.__exportStar(Ih(),W);te.__exportStar(Rh(),W);te.__exportStar(Nh(),W);te.__exportStar(Ph(),W);te.__exportStar(Dh(),W);te.__exportStar(Aa(),W);te.__exportStar(Oh(),W);te.__exportStar(Lh(),W);te.__exportStar(qh(),W);te.__exportStar(Mh(),W);te.__exportStar(kh(),W);te.__exportStar(jh(),W);te.__exportStar(zh(),W);te.__exportStar(Uh(),W);te.__exportStar(Fh(),W);te.__exportStar(wc(),W);te.__exportStar(Ac(),W);te.__exportStar(Bh(),W);te.__exportStar(xc(),W);te.__exportStar(Gh(),W);te.__exportStar($h(),W);te.__exportStar(Pc(),W);te.__exportStar(Kh(),W);te.__exportStar(Vh(),W);te.__exportStar(qc(),W);te.__exportStar(Hh(),W);te.__exportStar(Wh(),W);te.__exportStar(Yh(),W);te.__exportStar(Jh(),W);te.__exportStar(Qh(),W);te.__exportStar(Xh(),W);te.__exportStar(Zh(),W);te.__exportStar(eg(),W);te.__exportStar(tg(),W);te.__exportStar(ng(),W);te.__exportStar(rg(),W);te.__exportStar(ig(),W)});var lP=p(mv=>{"use strict";Object.defineProperty(mv,"__esModule",{value:!0});var Dse=se();Dse.__exportStar(H(),mv)});var dP=p(cP=>{"use strict";Object.defineProperty(cP,"__esModule",{value:!0})});var uP=p(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.paginateListContributorInsights=void 0;var Ose=wc(),Lse=Di(),qse=Vr(),Mse=async(e,t,...n)=>await e.send(new Ose.ListContributorInsightsCommand(t),...n),kse=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*jse(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof Lse.DynamoDB)s=await kse(e.client,t,...n);else if(e.client instanceof qse.DynamoDBClient)s=await Mse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.NextToken,i=!!r}return void 0}af.paginateListContributorInsights=jse});var mP=p(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.paginateListExports=void 0;var zse=Ac(),Use=Di(),Fse=Vr(),Bse=async(e,t,...n)=>await e.send(new zse.ListExportsCommand(t),...n),Gse=async(e,t,...n)=>await e.listExports(t,...n);async function*$se(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=r,t.MaxResults=e.pageSize,e.client instanceof Use.DynamoDB)s=await Gse(e.client,t,...n);else if(e.client instanceof Fse.DynamoDBClient)s=await Bse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.NextToken,i=!!r}return void 0}of.paginateListExports=$se});var fP=p(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.paginateListTables=void 0;var Kse=xc(),Vse=Di(),Hse=Vr(),Wse=async(e,t,...n)=>await e.send(new Kse.ListTablesCommand(t),...n),Yse=async(e,t,...n)=>await e.listTables(t,...n);async function*Jse(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartTableName=r,t.Limit=e.pageSize,e.client instanceof Vse.DynamoDB)s=await Yse(e.client,t,...n);else if(e.client instanceof Hse.DynamoDBClient)s=await Wse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedTableName,i=!!r}return void 0}lf.paginateListTables=Jse});var pP=p(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.paginateQuery=void 0;var Qse=Pc(),Xse=Di(),Zse=Vr(),eae=async(e,t,...n)=>await e.send(new Qse.QueryCommand(t),...n),tae=async(e,t,...n)=>await e.query(t,...n);async function*nae(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof Xse.DynamoDB)s=await tae(e.client,t,...n);else if(e.client instanceof Zse.DynamoDBClient)s=await eae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}cf.paginateQuery=nae});var _P=p(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.paginateScan=void 0;var rae=qc(),iae=Di(),sae=Vr(),aae=async(e,t,...n)=>await e.send(new rae.ScanCommand(t),...n),oae=async(e,t,...n)=>await e.scan(t,...n);async function*lae(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof iae.DynamoDB)s=await oae(e.client,t,...n);else if(e.client instanceof sae.DynamoDBClient)s=await aae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}df.paginateScan=lae});var hP=p(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});var Os=se();Os.__exportStar(dP(),Hr);Os.__exportStar(uP(),Hr);Os.__exportStar(mP(),Hr);Os.__exportStar(fP(),Hr);Os.__exportStar(pP(),Hr);Os.__exportStar(_P(),Hr)});var fv=p(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.sleep=void 0;var cae=e=>new Promise(t=>setTimeout(t,e*1e3));uf.sleep=cae});var ff=p(mr=>{"use strict";Object.defineProperty(mr,"__esModule",{value:!0});mr.checkExceptions=mr.WaiterState=mr.waiterServiceDefaults=void 0;mr.waiterServiceDefaults={minDelay:2,maxDelay:120};var mf;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(mf=mr.WaiterState||(mr.WaiterState={}));var dae=e=>{if(e.state===mf.ABORTED){let t=new Error(`${JSON.stringify(f(o({},e),{reason:"Request was aborted"}))}`);throw t.name="AbortError",t}else if(e.state===mf.TIMEOUT){let t=new Error(`${JSON.stringify(f(o({},e),{reason:"Waiter has timed out"}))}`);throw t.name="TimeoutError",t}else if(e.state!==mf.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};mr.checkExceptions=dae});var gP=p(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.runPolling=void 0;var uae=fv(),pf=ff(),mae=(e,t,n,r)=>{if(r>n)return t;let i=e*2**(r-1);return fae(e,i)},fae=(e,t)=>e+Math.random()*(t-e),pae=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:s},a,l)=>{var c;let{state:d}=await l(i,a);if(d!==pf.WaiterState.RETRY)return{state:d};let u=1,_=Date.now()+n*1e3,g=Math.log(t/e)/Math.log(2)+1;for(;;){if(((c=r==null?void 0:r.signal)===null||c===void 0?void 0:c.aborted)||(s==null?void 0:s.aborted))return{state:pf.WaiterState.ABORTED};let b=mae(e,t,g,u);if(Date.now()+b*1e3>_)return{state:pf.WaiterState.TIMEOUT};await uae.sleep(b);let{state:S}=await l(i,a);if(S!==pf.WaiterState.RETRY)return{state:S};u+=1}};_f.runPolling=pae});var yP=p(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.validateWaiterOptions=void 0;var _ae=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`)};hf.validateWaiterOptions=_ae});var bP=p(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var vP=se();vP.__exportStar(fv(),gf);vP.__exportStar(yP(),gf)});var EP=p(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.createWaiter=void 0;var hae=gP(),gae=bP(),SP=ff(),wP=async e=>new Promise(t=>{e.onabort=()=>t({state:SP.WaiterState.ABORTED})}),yae=async(e,t,n)=>{let r=o(o({},SP.waiterServiceDefaults),e);gae.validateWaiterOptions(r);let i=[hae.runPolling(r,t,n)];return e.abortController&&i.push(wP(e.abortController.signal)),e.abortSignal&&i.push(wP(e.abortSignal)),Promise.race(i)};yf.createWaiter=yae});var pv=p(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var AP=se();AP.__exportStar(EP(),vf);AP.__exportStar(ff(),vf)});var TP=p(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.waitUntilTableExists=qs.waitForTableExists=void 0;var Ls=pv(),vae=Aa(),CP=async(e,t)=>{let n;try{let r=await e.send(new vae.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:Ls.WaiterState.SUCCESS,reason:n}}catch{}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Ls.WaiterState.RETRY,reason:n}}return{state:Ls.WaiterState.RETRY,reason:n}},bae=async(e,t)=>{let n={minDelay:20,maxDelay:120};return Ls.createWaiter(o(o({},n),e),t,CP)};qs.waitForTableExists=bae;var Sae=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await Ls.createWaiter(o(o({},n),e),t,CP);return Ls.checkExceptions(r)};qs.waitUntilTableExists=Sae});var IP=p(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.waitUntilTableNotExists=Ms.waitForTableNotExists=void 0;var so=pv(),wae=Aa(),xP=async(e,t)=>{let n;try{n=await e.send(new wae.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:so.WaiterState.SUCCESS,reason:n}}return{state:so.WaiterState.RETRY,reason:n}},Eae=async(e,t)=>{let n={minDelay:20,maxDelay:120};return so.createWaiter(o(o({},n),e),t,xP)};Ms.waitForTableNotExists=Eae;var Aae=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await so.createWaiter(o(o({},n),e),t,xP);return so.checkExceptions(r)};Ms.waitUntilTableNotExists=Aae});var NP=p(bf=>{"use strict";Object.defineProperty(bf,"__esModule",{value:!0});var RP=se();RP.__exportStar(TP(),bf);RP.__exportStar(IP(),bf)});var wt=p(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});var ks=se();ks.__exportStar(Di(),Wr);ks.__exportStar(Vr(),Wr);ks.__exportStar(oP(),Wr);ks.__exportStar(lP(),Wr);ks.__exportStar(hP(),Wr);ks.__exportStar(NP(),Wr)});var _v=p(Oi=>{"use strict";Object.defineProperty(Oi,"__esModule",{value:!0});Oi.convertToAttr=void 0;var Cae=(e,t)=>{var n,r,i,s,a,l;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 Sf();if(Array.isArray(e))return Tae(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return xae(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return Iae(e,t);if(((i=e==null?void 0:e.constructor)===null||i===void 0?void 0:i.name)==="Object"||!e.constructor&&typeof e=="object")return PP(e,t);if(kP(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Sf():DP(e);if(typeof e=="boolean"||((s=e==null?void 0:e.constructor)===null||s===void 0?void 0:s.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 MP(e);if(typeof e=="bigint")return LP(e);if(typeof e=="string"||((l=e==null?void 0:e.constructor)===null||l===void 0?void 0:l.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Sf():OP(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return PP(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Oi.convertToAttr=Cae;var Tae=(e,t)=>({L:e.filter(n=>!(t==null?void 0:t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>Oi.convertToAttr(n,t))}),xae=(e,t)=>{let n=(t==null?void 0:t.removeUndefinedValues)?new Set([...e].filter(i=>i!==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 Sf();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(MP).map(i=>i.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(LP).map(i=>i.N)};if(typeof r=="string")return{SS:Array.from(n).map(OP).map(i=>i.S)};if(kP(r))return{BS:Array.from(n).map(DP).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},Iae=(e,t)=>({M:(n=>{let r={};for(let[i,s]of n)typeof s!="function"&&(s!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[i]=Oi.convertToAttr(s,t));return r})(e)}),PP=(e,t)=>({M:(n=>{let r={};for(let i in n){let s=n[i];typeof s!="function"&&(s!==void 0||!(t==null?void 0:t.removeUndefinedValues))&&(r[i]=Oi.convertToAttr(s,t))}return r})(e)}),Sf=()=>({NULL:!0}),DP=e=>({B:e}),OP=e=>({S:e.toString()}),LP=e=>({N:e.toString()}),qP=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},MP=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?qP(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&qP(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},kP=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 hv=p(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});js.convertToNative=void 0;var Rae=(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 jP(r,t);case"B":return UP(r);case"S":return zP(r);case"L":return Nae(r,t);case"M":return Pae(r,t);case"NS":return new Set(r.map(i=>jP(i,t)));case"BS":return new Set(r.map(UP));case"SS":return new Set(r.map(zP));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};js.convertToNative=Rae;var jP=(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{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},zP=e=>e,UP=e=>e,Nae=(e,t)=>e.map(n=>js.convertToNative(n,t)),Pae=(e,t)=>Object.entries(e).reduce((n,[r,i])=>f(o({},n),{[r]:js.convertToNative(i,t)}),{})});var FP=p(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.marshall=void 0;var Dae=_v(),Oae=(e,t)=>Dae.convertToAttr(e,t).M;wf.marshall=Oae});var GP=p(BP=>{"use strict";Object.defineProperty(BP,"__esModule",{value:!0})});var $P=p(Ef=>{"use strict";Object.defineProperty(Ef,"__esModule",{value:!0});Ef.unmarshall=void 0;var Lae=hv(),qae=(e,t)=>Lae.convertToNative({M:e},t);Ef.unmarshall=qae});var KP=p(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});var ao=se();ao.__exportStar(_v(),Li);ao.__exportStar(hv(),Li);ao.__exportStar(FP(),Li);ao.__exportStar(GP(),Li);ao.__exportStar($P(),Li)});var Rt=p(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.unmarshallOutput=zs.marshallInput=void 0;var VP=KP(),HP=(e,t,n)=>{if(e)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?gv(e,t,n):Mae(e,t,n.children)},WP=(e,t,n)=>Array.isArray(e)?e.map(r=>HP(r,t,n)):HP(e,t,n),gv=(e,t,n)=>n.reduce((r,{key:i,children:s})=>f(o({},r),{[i]:WP(r[i],t,s)}),e),Mae=(e,t,n)=>Object.entries(e).reduce((r,[i,s])=>f(o({},r),{[i]:WP(s,t,n)}),{}),kae=(e,t,n)=>gv(e,i=>VP.marshall(i,n),t);zs.marshallInput=kae;var jae=(e,t,n)=>gv(e,i=>VP.unmarshall(i,n),t);zs.unmarshallOutput=jae});var yv=p(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.BatchExecuteStatementCommand=void 0;var zae=wt(),Uae=q(),YP=Rt(),JP=class extends Uae.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new zae.BatchExecuteStatementCommand(YP.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:YP.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Af.BatchExecuteStatementCommand=JP});var vv=p(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.BatchGetCommand=void 0;var Fae=wt(),Bae=q(),QP=Rt(),XP=class extends Bae.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new Fae.BatchGetItemCommand(QP.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:QP.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Cf.BatchGetCommand=XP});var bv=p(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.BatchWriteCommand=void 0;var Gae=wt(),$ae=q(),ZP=Rt(),eD=class extends $ae.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new Gae.BatchWriteItemCommand(ZP.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:ZP.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Tf.BatchWriteCommand=eD});var Sv=p(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.DeleteCommand=void 0;var Kae=wt(),Vae=q(),tD=Rt(),nD=class extends Vae.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new Kae.DeleteItemCommand(tD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:tD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};xf.DeleteCommand=nD});var wv=p(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.ExecuteStatementCommand=void 0;var Hae=wt(),Wae=q(),rD=Rt(),iD=class extends Wae.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},a=new Hae.ExecuteStatementCommand(rD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:rD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};If.ExecuteStatementCommand=iD});var Ev=p(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.ExecuteTransactionCommand=void 0;var Yae=wt(),Jae=q(),sD=Rt(),aD=class extends Jae.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new Yae.ExecuteTransactionCommand(sD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:sD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Rf.ExecuteTransactionCommand=aD});var Av=p(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.GetCommand=void 0;var Qae=wt(),Xae=q(),oD=Rt(),lD=class extends Xae.Command{constructor(t){super();this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},a=new Qae.GetItemCommand(oD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:oD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Nf.GetCommand=lD});var Cv=p(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.PutCommand=void 0;var Zae=wt(),eoe=q(),cD=Rt(),dD=class extends eoe.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new Zae.PutItemCommand(cD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:cD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Pf.PutCommand=dD});var Of=p(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.QueryCommand=void 0;var toe=wt(),noe=q(),uD=Rt(),mD=class extends noe.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new toe.QueryCommand(uD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:uD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Df.QueryCommand=mD});var qf=p(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.ScanCommand=void 0;var roe=wt(),ioe=q(),fD=Rt(),pD=class extends ioe.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new roe.ScanCommand(fD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:fD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Lf.ScanCommand=pD});var Tv=p(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.TransactGetCommand=void 0;var soe=wt(),aoe=q(),_D=Rt(),hD=class extends aoe.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new soe.TransactGetItemsCommand(_D.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:_D.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};Mf.TransactGetCommand=hD});var xv=p(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.TransactWriteCommand=void 0;var ooe=wt(),loe=q(),gD=Rt(),yD=class extends loe.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new ooe.TransactWriteItemsCommand(gD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:gD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};kf.TransactWriteCommand=yD});var Iv=p(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.UpdateCommand=void 0;var coe=wt(),doe=q(),vD=Rt(),bD=class extends doe.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:i,unmarshallOptions:s}=n.translateConfig||{},a=new coe.UpdateItemCommand(vD.marshallInput(this.input,this.inputKeyNodes,i)),l=a.resolveMiddleware(t,n,r);return async()=>{let c=await l(a);return f(o({},c),{output:vD.unmarshallOutput(c.output,this.outputKeyNodes,s)})}}};jf.UpdateCommand=bD});var oo=p(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.DynamoDBDocumentClient=void 0;var uoe=q(),zf=class extends uoe.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 zf(t,n)}destroy(){}};Uf.DynamoDBDocumentClient=zf});var Gf=p(Bf=>{"use strict";Object.defineProperty(Bf,"__esModule",{value:!0});Bf.DynamoDBDocument=void 0;var moe=yv(),foe=vv(),poe=bv(),_oe=Sv(),hoe=wv(),goe=Ev(),yoe=Av(),voe=Cv(),boe=Of(),Soe=qf(),woe=Tv(),Eoe=xv(),Aoe=Iv(),Coe=oo(),Ff=class extends Coe.DynamoDBDocumentClient{static from(t,n){return new Ff(t,n)}batchExecuteStatement(t,n,r){let i=new moe.BatchExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchGet(t,n,r){let i=new foe.BatchGetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}batchWrite(t,n,r){let i=new poe.BatchWriteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}delete(t,n,r){let i=new _oe.DeleteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeStatement(t,n,r){let i=new hoe.ExecuteStatementCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}executeTransaction(t,n,r){let i=new goe.ExecuteTransactionCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}get(t,n,r){let i=new yoe.GetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}put(t,n,r){let i=new voe.PutCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}query(t,n,r){let i=new boe.QueryCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}scan(t,n,r){let i=new Soe.ScanCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactGet(t,n,r){let i=new woe.TransactGetCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}transactWrite(t,n,r){let i=new Eoe.TransactWriteCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}update(t,n,r){let i=new Aoe.UpdateCommand(t);if(typeof n=="function")this.send(i,n);else if(typeof r=="function"){if(typeof n!="object")throw new Error(`Expect http options but get ${typeof n}`);this.send(i,n||{},r)}else return this.send(i,n)}};Bf.DynamoDBDocument=Ff});var SD=p(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});var Gt=se();Gt.__exportStar(yv(),Et);Gt.__exportStar(vv(),Et);Gt.__exportStar(bv(),Et);Gt.__exportStar(Sv(),Et);Gt.__exportStar(wv(),Et);Gt.__exportStar(Ev(),Et);Gt.__exportStar(Av(),Et);Gt.__exportStar(Cv(),Et);Gt.__exportStar(Of(),Et);Gt.__exportStar(qf(),Et);Gt.__exportStar(Tv(),Et);Gt.__exportStar(xv(),Et);Gt.__exportStar(Iv(),Et)});var ED=p(wD=>{"use strict";Object.defineProperty(wD,"__esModule",{value:!0})});var AD=p($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.paginateQuery=void 0;var Toe=Of(),xoe=Gf(),Ioe=oo(),Roe=async(e,t,...n)=>await e.send(new Toe.QueryCommand(t),...n),Noe=async(e,t,...n)=>await e.query(t,...n);async function*Poe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof xoe.DynamoDBDocument)s=await Noe(e.client,t,...n);else if(e.client instanceof Ioe.DynamoDBDocumentClient)s=await Roe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}$f.paginateQuery=Poe});var CD=p(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});Kf.paginateScan=void 0;var Doe=qf(),Ooe=Gf(),Loe=oo(),qoe=async(e,t,...n)=>await e.send(new Doe.ScanCommand(t),...n),Moe=async(e,t,...n)=>await e.scan(t,...n);async function*koe(e,t,...n){let r=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=r,t.Limit=e.pageSize,e.client instanceof Ooe.DynamoDBDocument)s=await Moe(e.client,t,...n);else if(e.client instanceof Loe.DynamoDBDocumentClient)s=await qoe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}Kf.paginateScan=koe});var TD=p(lo=>{"use strict";Object.defineProperty(lo,"__esModule",{value:!0});var Rv=se();Rv.__exportStar(ED(),lo);Rv.__exportStar(AD(),lo);Rv.__exportStar(CD(),lo)});var xD=p(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});var Vf=se();Vf.__exportStar(Gf(),Us);Vf.__exportStar(oo(),Us);Vf.__exportStar(SD(),Us);Vf.__exportStar(TD(),Us)});var RD=p(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});Hf.DBManager=void 0;var joe=xD(),ID=class{constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=joe.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}};Hf.DBManager=ID});var ND=p(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});co.TransformationType=void 0;var zoe;(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"})(zoe=co.TransformationType||(co.TransformationType={}))});var uo=p(qi=>{"use strict";var Uoe=qi&&qi.__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]}),Foe=qi&&qi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Uoe(t,e,n)};Object.defineProperty(qi,"__esModule",{value:!0});Foe(ND(),qi)});var DD=p(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.MetadataStorage=void 0;var fr=uo(),PD=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(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?r===fr.TransformationType.CLASS_TO_CLASS||r===fr.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?r===fr.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),i=this._exposeMetadatas.get(t),s=i&&i.get(void 0);return r&&s||!r&&!s?"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===fr.TransformationType.CLASS_TO_CLASS||n===fr.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===fr.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===fr.TransformationType.CLASS_TO_CLASS||n===fr.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===fr.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),i;r&&(i=Array.from(r.values()).filter(a=>a.propertyName!==void 0));let s=[];for(let a of this.getAncestors(n)){let l=t.get(a);if(l){let c=Array.from(l.values()).filter(d=>d.propertyName!==void 0);s.push(...c)}}return s.concat(i||[])}findMetadata(t,n,r){let i=t.get(n);if(i){let s=i.get(r);if(s)return s}for(let s of this.getAncestors(n)){let a=t.get(s);if(a){let l=a.get(r);if(l)return l}}}findMetadatas(t,n,r){let i=t.get(n),s;i&&(s=i.get(r));let a=[];for(let l of this.getAncestors(n)){let c=t.get(l);c&&c.has(r)&&a.push(...c.get(r))}return a.slice().reverse().concat((s||[]).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)}};Wf.MetadataStorage=PD});var Fs=p(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.defaultMetadataStorage=void 0;var Boe=DD();Yf.defaultMetadataStorage=new Boe.MetadataStorage});var OD=p(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.getGlobal=void 0;function Goe(){if(typeof globalThis!="undefined")return globalThis;if(typeof global!="undefined")return global;if(typeof window!="undefined")return window;if(typeof self!="undefined")return self}Jf.getGlobal=Goe});var LD=p(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.isPromise=void 0;function $oe(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}Qf.isPromise=$oe});var MD=p(Yr=>{"use strict";var Koe=Yr&&Yr.__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]}),qD=Yr&&Yr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Koe(t,e,n)};Object.defineProperty(Yr,"__esModule",{value:!0});qD(OD(),Yr);qD(LD(),Yr)});var zD=p(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.TransformOperationExecutor=void 0;var an=Fs(),He=uo(),kD=MD();function Voe(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var jD=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,i,s,a=0){if(Array.isArray(n)||n instanceof Set){let l=i&&this.transformationType===He.TransformationType.PLAIN_TO_CLASS?Voe(i):[];return n.forEach((c,d)=>{let u=t?t[d]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let _;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===He.TransformationType.PLAIN_TO_CLASS){_=r.options.discriminator.subTypes.find(v=>v.name===c[r.options.discriminator.property]);let b={newObject:l,object:c,property:void 0},S=r.typeFunction(b);_===void 0?_=S:_=_.value,r.options.keepDiscriminatorProperty||delete c[r.options.discriminator.property]}this.transformationType===He.TransformationType.CLASS_TO_CLASS&&(_=c.constructor),this.transformationType===He.TransformationType.CLASS_TO_PLAIN&&(c[r.options.discriminator.property]=r.options.discriminator.subTypes.find(b=>b.value===c.constructor).name)}else _=r;let g=this.transform(u,c,_,void 0,c instanceof Map,a+1);l instanceof Set?l.add(g):l.push(g)}else this.transformationType===He.TransformationType.CLASS_TO_CLASS&&(l instanceof Set?l.add(c):l.push(c))}),l}else{if(r===String&&!s)return n==null?n:String(n);if(r===Number&&!s)return n==null?n:Number(n);if(r===Boolean&&!s)return n==null?n:Boolean(n);if((r===Date||n instanceof Date)&&!s)return n instanceof Date?new Date(n.valueOf()):n==null?n:new Date(n);if(!!kD.getGlobal().Buffer&&(r===Buffer||n instanceof Buffer)&&!s)return n==null?n:Buffer.from(n);if(kD.isPromise(n)&&!s)return new Promise((l,c)=>{n.then(d=>l(this.transform(void 0,d,r,void 0,void 0,a+1)),c)});if(!s&&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 l=this.getKeys(r,n,s),c=t||{};!t&&(this.transformationType===He.TransformationType.PLAIN_TO_CLASS||this.transformationType===He.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:r?c=new r:c={});for(let d of l){if(d==="__proto__"||d==="constructor")continue;let u=d,_=d,g=d;if(!this.options.ignoreDecorators&&r){if(this.transformationType===He.TransformationType.PLAIN_TO_CLASS){let x=an.defaultMetadataStorage.findExposeMetadataByCustomName(r,d);x&&(g=x.propertyName,_=x.propertyName)}else if(this.transformationType===He.TransformationType.CLASS_TO_PLAIN||this.transformationType===He.TransformationType.CLASS_TO_CLASS){let x=an.defaultMetadataStorage.findExposeMetadata(r,d);x&&x.options&&x.options.name&&(_=x.options.name)}}let b;n instanceof Map?b=n.get(u):n[u]instanceof Function?b=n[u]():b=n[u];let S,v=b instanceof Map;if(r&&s)S=r;else if(r){let x=an.defaultMetadataStorage.findTypeMetadata(r,g);if(x){let re={newObject:c,object:n,property:g},be=x.typeFunction?x.typeFunction(re):x.reflectedType;x.options&&x.options.discriminator&&x.options.discriminator.property&&x.options.discriminator.subTypes?n[u]instanceof Array?S=x:(this.transformationType===He.TransformationType.PLAIN_TO_CLASS&&(S=x.options.discriminator.subTypes.find(on=>{if(b&&b instanceof Object&&x.options.discriminator.property in b)return on.name===b[x.options.discriminator.property]}),S===void 0?S=be:S=S.value,x.options.keepDiscriminatorProperty||b&&b instanceof Object&&x.options.discriminator.property in b&&delete b[x.options.discriminator.property]),this.transformationType===He.TransformationType.CLASS_TO_CLASS&&(S=b.constructor),this.transformationType===He.TransformationType.CLASS_TO_PLAIN&&(b[x.options.discriminator.property]=x.options.discriminator.subTypes.find(on=>on.value===b.constructor).name)):S=be,v=v||x.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(re=>re.target===r&&!!re.properties[g]).forEach(re=>S=re.properties[g]);else if(this.options.enableImplicitConversion&&this.transformationType===He.TransformationType.PLAIN_TO_CLASS){let re=Reflect.getMetadata("design:type",r.prototype,g);re&&(S=re)}}let I=Array.isArray(n[u])?this.getReflectedType(r,g):void 0,L=t?t[u]:void 0;if(c.constructor.prototype){let x=Object.getOwnPropertyDescriptor(c.constructor.prototype,_);if((this.transformationType===He.TransformationType.PLAIN_TO_CLASS||this.transformationType===He.TransformationType.CLASS_TO_CLASS)&&(x&&!x.set||c[_]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(b)){let x=this.transformationType===He.TransformationType.PLAIN_TO_CLASS?_:d,re;this.transformationType===He.TransformationType.CLASS_TO_PLAIN?(re=n[x],re=this.applyCustomTransformations(re,r,x,n,this.transformationType),re=n[x]===re?b:re,re=this.transform(L,re,S,I,v,a+1)):b===void 0&&this.options.exposeDefaultValues?re=c[_]:(re=this.transform(L,b,S,I,v,a+1),re=this.applyCustomTransformations(re,r,x,n,this.transformationType)),(re!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(_,re):c[_]=re)}else if(this.transformationType===He.TransformationType.CLASS_TO_CLASS){let x=b;x=this.applyCustomTransformations(x,r,d,n,this.transformationType),(x!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(_,x):c[_]=x)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),c}else return n}}applyCustomTransformations(t,n,r,i,s){let a=an.defaultMetadataStorage.findTransformMetadatas(n,r,this.transformationType);return this.options.version!==void 0&&(a=a.filter(l=>l.options?this.checkVersion(l.options.since,l.options.until):!0)),this.options.groups&&this.options.groups.length?a=a.filter(l=>l.options?this.checkGroups(l.options.groups):!0):a=a.filter(l=>!l.options||!l.options.groups||!l.options.groups.length),a.forEach(l=>{t=l.transformFn({value:t,key:r,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,n){if(!t)return;let r=an.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let i=an.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||r)&&(n instanceof Map?s=Array.from(n.keys()):s=Object.keys(n)),r)return s;if(!this.options.ignoreDecorators&&t){let a=an.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===He.TransformationType.PLAIN_TO_CLASS&&(a=a.map(c=>{let d=an.defaultMetadataStorage.findExposeMetadata(t,c);return d&&d.options&&d.options.name?d.options.name:c})),this.options.excludeExtraneousValues?s=a:s=s.concat(a);let l=an.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);l.length>0&&(s=s.filter(c=>!l.includes(c))),this.options.version!==void 0&&(s=s.filter(c=>{let d=an.defaultMetadataStorage.findExposeMetadata(t,c);return!d||!d.options?!0:this.checkVersion(d.options.since,d.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(c=>{let d=an.defaultMetadataStorage.findExposeMetadata(t,c);return!d||!d.options?!0:this.checkGroups(d.options.groups)}):s=s.filter(c=>{let d=an.defaultMetadataStorage.findExposeMetadata(t,c);return!d||!d.options||!d.options.groups||!d.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(a=>this.options.excludePrefixes.every(l=>a.substr(0,l.length)!==l))),s=s.filter((a,l,c)=>c.indexOf(a)===l),s}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}};Xf.TransformOperationExecutor=jD});var UD=p(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});Zf.defaultOptions=void 0;Zf.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 Ks=p(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.ClassTransformer=void 0;var Bs=zD(),Gs=uo(),$s=UD(),FD=class{classToPlain(t,n){return new Bs.TransformOperationExecutor(Gs.TransformationType.CLASS_TO_PLAIN,o(o({},$s.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new Bs.TransformOperationExecutor(Gs.TransformationType.CLASS_TO_PLAIN,o(o({},$s.defaultOptions),r)).transform(n,t,void 0,void 0,void 0,void 0)}plainToClass(t,n,r){return new Bs.TransformOperationExecutor(Gs.TransformationType.PLAIN_TO_CLASS,o(o({},$s.defaultOptions),r)).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new Bs.TransformOperationExecutor(Gs.TransformationType.PLAIN_TO_CLASS,o(o({},$s.defaultOptions),r)).transform(t,n,void 0,void 0,void 0,void 0)}classToClass(t,n){return new Bs.TransformOperationExecutor(Gs.TransformationType.CLASS_TO_CLASS,o(o({},$s.defaultOptions),n)).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new Bs.TransformOperationExecutor(Gs.TransformationType.CLASS_TO_CLASS,o(o({},$s.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 i=JSON.parse(n);return this.plainToClass(t,i,r)}deserializeArray(t,n,r){let i=JSON.parse(n);return this.plainToClass(t,i,r)}};ep.ClassTransformer=FD});var BD=p(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.Exclude=void 0;var Hoe=Fs();function Woe(e={}){return function(t,n){Hoe.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}tp.Exclude=Woe});var GD=p(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.Expose=void 0;var Yoe=Fs();function Joe(e={}){return function(t,n){Yoe.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}np.Expose=Joe});var $D=p(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.TransformClassToClass=void 0;var Qoe=Ks();function Xoe(e){return function(t,n,r){let i=new Qoe.ClassTransformer,s=r.value;r.value=function(...a){let l=s.apply(this,a);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(d=>i.classToClass(d,e)):i.classToClass(l,e)}}}rp.TransformClassToClass=Xoe});var KD=p(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.TransformClassToPlain=void 0;var Zoe=Ks();function ele(e){return function(t,n,r){let i=new Zoe.ClassTransformer,s=r.value;r.value=function(...a){let l=s.apply(this,a);return!!l&&(typeof l=="object"||typeof l=="function")&&typeof l.then=="function"?l.then(d=>i.classToPlain(d,e)):i.classToPlain(l,e)}}}ip.TransformClassToPlain=ele});var VD=p(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.TransformPlainToClass=void 0;var tle=Ks();function nle(e,t){return function(n,r,i){let s=new tle.ClassTransformer,a=i.value;i.value=function(...l){let c=a.apply(this,l);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(u=>s.plainToClass(e,u,t)):s.plainToClass(e,c,t)}}}sp.TransformPlainToClass=nle});var HD=p(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.Transform=void 0;var rle=Fs();function ile(e,t={}){return function(n,r){rle.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}ap.Transform=ile});var WD=p(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.Type=void 0;var sle=Fs();function ale(e,t={}){return function(n,r){let i=Reflect.getMetadata("design:type",n,r);sle.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}op.Type=ale});var YD=p($t=>{"use strict";var ole=$t&&$t.__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]}),Mi=$t&&$t.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&ole(t,e,n)};Object.defineProperty($t,"__esModule",{value:!0});Mi(BD(),$t);Mi(GD(),$t);Mi($D(),$t);Mi(KD(),$t);Mi(VD(),$t);Mi(HD(),$t);Mi(WD(),$t)});var QD=p(JD=>{"use strict";Object.defineProperty(JD,"__esModule",{value:!0})});var ZD=p(XD=>{"use strict";Object.defineProperty(XD,"__esModule",{value:!0})});var tO=p(eO=>{"use strict";Object.defineProperty(eO,"__esModule",{value:!0})});var rO=p(nO=>{"use strict";Object.defineProperty(nO,"__esModule",{value:!0})});var sO=p(iO=>{"use strict";Object.defineProperty(iO,"__esModule",{value:!0})});var oO=p(aO=>{"use strict";Object.defineProperty(aO,"__esModule",{value:!0})});var cO=p(lO=>{"use strict";Object.defineProperty(lO,"__esModule",{value:!0})});var uO=p(dO=>{"use strict";Object.defineProperty(dO,"__esModule",{value:!0})});var fO=p(mO=>{"use strict";Object.defineProperty(mO,"__esModule",{value:!0})});var _O=p(pO=>{"use strict";Object.defineProperty(pO,"__esModule",{value:!0})});var gO=p(hO=>{"use strict";Object.defineProperty(hO,"__esModule",{value:!0})});var vO=p(yO=>{"use strict";Object.defineProperty(yO,"__esModule",{value:!0})});var SO=p(bO=>{"use strict";Object.defineProperty(bO,"__esModule",{value:!0})});var EO=p(wO=>{"use strict";Object.defineProperty(wO,"__esModule",{value:!0})});var AO=p(We=>{"use strict";var lle=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]}),Nt=We&&We.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&lle(t,e,n)};Object.defineProperty(We,"__esModule",{value:!0});Nt(QD(),We);Nt(ZD(),We);Nt(tO(),We);Nt(rO(),We);Nt(sO(),We);Nt(oO(),We);Nt(cO(),We);Nt(uO(),We);Nt(fO(),We);Nt(_O(),We);Nt(gO(),We);Nt(vO(),We);Nt(SO(),We);Nt(EO(),We)});var lp=p(Se=>{"use strict";var cle=Se&&Se.__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]}),Nv=Se&&Se.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cle(t,e,n)};Object.defineProperty(Se,"__esModule",{value:!0});Se.deserializeArray=Se.deserialize=Se.serialize=Se.classToClassFromExist=Se.classToClass=Se.plainToClassFromExist=Se.plainToClass=Se.classToPlainFromExist=Se.classToPlain=Se.ClassTransformer=void 0;var dle=Ks(),ule=Ks();Object.defineProperty(Se,"ClassTransformer",{enumerable:!0,get:function(){return ule.ClassTransformer}});Nv(YD(),Se);Nv(AO(),Se);Nv(uo(),Se);var pr=new dle.ClassTransformer;function mle(e,t){return pr.classToPlain(e,t)}Se.classToPlain=mle;function fle(e,t,n){return pr.classToPlainFromExist(e,t,n)}Se.classToPlainFromExist=fle;function ple(e,t,n){return pr.plainToClass(e,t,n)}Se.plainToClass=ple;function _le(e,t,n){return pr.plainToClassFromExist(e,t,n)}Se.plainToClassFromExist=_le;function hle(e,t){return pr.classToClass(e,t)}Se.classToClass=hle;function gle(e,t,n){return pr.classToClassFromExist(e,t,n)}Se.classToClassFromExist=gle;function yle(e,t){return pr.serialize(e,t)}Se.serialize=yle;function vle(e,t,n){return pr.deserialize(e,t,n)}Se.deserialize=vle;function ble(e,t,n){return pr.deserializeArray(e,t,n)}Se.deserializeArray=ble});var Pv=p(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.Rules=void 0;var Sle=lp(),cp=class{constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}static async Load(t){let{dbManager:n,key:r}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"rules"}});return Sle.plainToClass(cp,i)}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}};dp.Rules=cp});var Dv=p(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.Version=void 0;var CO=lp(),Vs;(function(e){e[e.AppName=0]="AppName"})(Vs||(Vs={}));var mo=class{constructor(t){this._keyBy=Vs.AppName,this._status="pending",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",Object.assign(this,t)}static async LoadVersions(t){let{dbManager:n,key:r}=t,{Items:i}=await n.ddbDocClient.query({TableName:n.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${r.AppName}`.toLowerCase(),":skval":"version"}}),s=[];if(i!==void 0)for(let a of i){let l=CO.plainToClass(mo,a);s.push(l)}return s}static async LoadVersion(t){let{dbManager:n,key:r}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}});return CO.plainToClass(mo,i)}static async DeleteVersion(t){let{dbManager:n,key:r}=t;await n.ddbDocClient.delete({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:`version#${r.SemVer}`.toLowerCase()}})}get PK(){switch(this._keyBy){case Vs.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,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat}}async Save(t){this._keyBy=Vs.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case Vs.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}get RouteIDAppVersion(){return this._routeIDAppVersion}set RouteIDAppVersion(t){this._routeIDAppVersion=t}get RouteIDAppVersionSplat(){return this._routeIDAppVersionSplat}set RouteIDAppVersionSplat(t){this._routeIDAppVersionSplat=t}};up.Version=mo});var IO=p(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.Application=void 0;var TO=lp(),xO=Pv(),wle=Dv(),_r;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(_r||(_r={}));var fo=class{constructor(t){Object.assign(this,t),this._keyBy=_r.AppName}static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,i=await xO.Rules.Load({dbManager:n,key:r}),s=i.RuleSet.default;s.SemVer=r.SemVer,await i.Save(n)}static async GetVersionsAndRules(t){let{key:n,dbManager:r}=t,i=wle.Version.LoadVersions({dbManager:r,key:n}),s=xO.Rules.Load({dbManager:r,key:n});return await Promise.all([i,s]),{Versions:await i,Rules:await s}}static async Load(t){let{key:n,dbManager:r}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"application"}});return TO.plainToClass(fo,i)}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 i of n){let s=TO.plainToClass(fo,i);r.push(s)}return r}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=_r.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=_r.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 _r.Applications:return"applications";case _r.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case _r.Applications:return`appName#${this.AppName}`.toLowerCase();case _r.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}};mp.Application=fo});var RO=p(Jn=>{"use strict";Object.defineProperty(Jn,"__esModule",{value:!0});Jn.Rules=Jn.Version=Jn.DBManager=Jn.Application=void 0;var Ele=RD();Object.defineProperty(Jn,"DBManager",{enumerable:!0,get:function(){return Ele.DBManager}});var Ale=IO();Object.defineProperty(Jn,"Application",{enumerable:!0,get:function(){return Ale.Application}});var Cle=Pv();Object.defineProperty(Jn,"Rules",{enumerable:!0,get:function(){return Cle.Rules}});var Tle=Dv();Object.defineProperty(Jn,"Version",{enumerable:!0,get:function(){return Tle.Version}})});var Pt=p(Ov=>{"use strict";Ov.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,(i,s)=>i!=null?r(i):n(s))})},"name",{value:e.name})};Ov.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 PO=p((UEe,NO)=>{var Jr=require("constants"),xle=process.cwd,fp=null,Ile=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return fp||(fp=xle.call(process)),fp};try{process.cwd()}catch{}typeof process.chdir=="function"&&(Lv=process.chdir,process.chdir=function(e){fp=null,Lv.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,Lv));var Lv;NO.exports=Rle;function Rle(e){Jr.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||n(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(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=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=l(e.stat),e.fstat=l(e.fstat),e.lstat=l(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.lchmod||(e.lchmod=function(u,_,g){g&&process.nextTick(g)},e.lchmodSync=function(){}),e.lchown||(e.lchown=function(u,_,g,b){b&&process.nextTick(b)},e.lchownSync=function(){}),Ile==="win32"&&(e.rename=function(u){return function(_,g,b){var S=Date.now(),v=0;u(_,g,function I(L){if(L&&(L.code==="EACCES"||L.code==="EPERM")&&Date.now()-S<6e4){setTimeout(function(){e.stat(g,function(x,re){x&&x.code==="ENOENT"?u(_,g,I):b(L)})},v),v<100&&(v+=10);return}b&&b(L)})}}(e.rename)),e.read=function(u){function _(g,b,S,v,I,L){var x;if(L&&typeof L=="function"){var re=0;x=function(be,on,wr){if(be&&be.code==="EAGAIN"&&re<10)return re++,u.call(e,g,b,S,v,I,x);L.apply(this,arguments)}}return u.call(e,g,b,S,v,I,x)}return Object.setPrototypeOf&&Object.setPrototypeOf(_,u),_}(e.read),e.readSync=function(u){return function(_,g,b,S,v){for(var I=0;;)try{return u.call(e,_,g,b,S,v)}catch(L){if(L.code==="EAGAIN"&&I<10){I++;continue}throw L}}}(e.readSync);function t(u){u.lchmod=function(_,g,b){u.open(_,Jr.O_WRONLY|Jr.O_SYMLINK,g,function(S,v){if(S){b&&b(S);return}u.fchmod(v,g,function(I){u.close(v,function(L){b&&b(I||L)})})})},u.lchmodSync=function(_,g){var b=u.openSync(_,Jr.O_WRONLY|Jr.O_SYMLINK,g),S=!0,v;try{v=u.fchmodSync(b,g),S=!1}finally{if(S)try{u.closeSync(b)}catch{}else u.closeSync(b)}return v}}function n(u){Jr.hasOwnProperty("O_SYMLINK")?(u.lutimes=function(_,g,b,S){u.open(_,Jr.O_SYMLINK,function(v,I){if(v){S&&S(v);return}u.futimes(I,g,b,function(L){u.close(I,function(x){S&&S(L||x)})})})},u.lutimesSync=function(_,g,b){var S=u.openSync(_,Jr.O_SYMLINK),v,I=!0;try{v=u.futimesSync(S,g,b),I=!1}finally{if(I)try{u.closeSync(S)}catch{}else u.closeSync(S)}return v}):(u.lutimes=function(_,g,b,S){S&&process.nextTick(S)},u.lutimesSync=function(){})}function r(u){return u&&function(_,g,b){return u.call(e,_,g,function(S){d(S)&&(S=null),b&&b.apply(this,arguments)})}}function i(u){return u&&function(_,g){try{return u.call(e,_,g)}catch(b){if(!d(b))throw b}}}function s(u){return u&&function(_,g,b,S){return u.call(e,_,g,b,function(v){d(v)&&(v=null),S&&S.apply(this,arguments)})}}function a(u){return u&&function(_,g,b){try{return u.call(e,_,g,b)}catch(S){if(!d(S))throw S}}}function l(u){return u&&function(_,g,b){typeof g=="function"&&(b=g,g=null);function S(v,I){I&&(I.uid<0&&(I.uid+=4294967296),I.gid<0&&(I.gid+=4294967296)),b&&b.apply(this,arguments)}return g?u.call(e,_,g,S):u.call(e,_,S)}}function c(u){return u&&function(_,g){var b=g?u.call(e,_,g):u.call(e,_);return b&&(b.uid<0&&(b.uid+=4294967296),b.gid<0&&(b.gid+=4294967296)),b}}function d(u){if(!u||u.code==="ENOSYS")return!0;var _=!process.getuid||process.getuid()!==0;return!!(_&&(u.code==="EINVAL"||u.code==="EPERM"))}}});var LO=p((FEe,OO)=>{var DO=require("stream").Stream;OO.exports=Nle;function Nle(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);DO.call(this);var s=this;this.path=r,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var a=Object.keys(i),l=0,c=a.length;l<c;l++){var d=a[l];this[d]=i[d]}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(){s._read()});return}e.open(this.path,this.flags,this.mode,function(u,_){if(u){s.emit("error",u),s.readable=!1;return}s.fd=_,s.emit("open",_),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);DO.call(this),this.path=r,this.fd=null,this.writable=!0,this.flags="w",this.encoding="binary",this.mode=438,this.bytesWritten=0,i=i||{};for(var s=Object.keys(i),a=0,l=s.length;a<l;a++){var c=s[a];this[c]=i[c]}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 MO=p((BEe,qO)=>{"use strict";qO.exports=Dle;var Ple=Object.getPrototypeOf||function(e){return e.__proto__};function Dle(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:Ple(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var gt=p((GEe,kv)=>{var qe=require("fs"),Ole=PO(),Lle=LO(),qle=MO(),pp=require("util"),ut,_p;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ut=Symbol.for("graceful-fs.queue"),_p=Symbol.for("graceful-fs.previous")):(ut="___graceful-fs.queue",_p="___graceful-fs.previous");function Mle(){}function kO(e,t){Object.defineProperty(e,ut,{get:function(){return t}})}var ki=Mle;pp.debuglog?ki=pp.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ki=function(){var e=pp.format.apply(pp,arguments);e="GFS4: "+e.split(/\n/).join(`
31
+ GFS4: `),console.error(e)});qe[ut]||(jO=global[ut]||[],kO(qe,jO),qe.close=function(e){function t(n,r){return e.call(qe,n,function(i){i||zO(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,_p,{value:e}),t}(qe.close),qe.closeSync=function(e){function t(n){e.apply(qe,arguments),zO()}return Object.defineProperty(t,_p,{value:e}),t}(qe.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ki(qe[ut]),require("assert").equal(qe[ut].length,0)}));var jO;global[ut]||kO(global,qe[ut]);kv.exports=qv(qle(qe));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!qe.__patched&&(kv.exports=qv(qe),qe.__patched=!0);function qv(e){Ole(e),e.gracefulify=qv,e.createReadStream=be,e.createWriteStream=on;var t=e.readFile;e.readFile=n;function n(Q,$,fe){return typeof $=="function"&&(fe=$,$=null),Le(Q,$,fe);function Le(we,Me,Ce,Ue){return t(we,Me,function(he){he&&(he.code==="EMFILE"||he.code==="ENFILE")?Hs([Le,[we,Me,Ce],he,Ue||Date.now(),Date.now()]):typeof Ce=="function"&&Ce.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(Q,$,fe,Le){return typeof fe=="function"&&(Le=fe,fe=null),we(Q,$,fe,Le);function we(Me,Ce,Ue,he,it){return r(Me,Ce,Ue,function(De){De&&(De.code==="EMFILE"||De.code==="ENFILE")?Hs([we,[Me,Ce,Ue,he],De,it||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=a);function a(Q,$,fe,Le){return typeof fe=="function"&&(Le=fe,fe=null),we(Q,$,fe,Le);function we(Me,Ce,Ue,he,it){return s(Me,Ce,Ue,function(De){De&&(De.code==="EMFILE"||De.code==="ENFILE")?Hs([we,[Me,Ce,Ue,he],De,it||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var l=e.copyFile;l&&(e.copyFile=c);function c(Q,$,fe,Le){return typeof fe=="function"&&(Le=fe,fe=0),we(Q,$,fe,Le);function we(Me,Ce,Ue,he,it){return l(Me,Ce,Ue,function(De){De&&(De.code==="EMFILE"||De.code==="ENFILE")?Hs([we,[Me,Ce,Ue,he],De,it||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}var d=e.readdir;e.readdir=u;function u(Q,$,fe){return typeof $=="function"&&(fe=$,$=null),Le(Q,$,fe);function Le(we,Me,Ce,Ue){return d(we,Me,function(he,it){he&&(he.code==="EMFILE"||he.code==="ENFILE")?Hs([Le,[we,Me,Ce],he,Ue||Date.now(),Date.now()]):(it&&it.sort&&it.sort(),typeof Ce=="function"&&Ce.call(this,he,it))})}}if(process.version.substr(0,4)==="v0.8"){var _=Lle(e);I=_.ReadStream,x=_.WriteStream}var g=e.ReadStream;g&&(I.prototype=Object.create(g.prototype),I.prototype.open=L);var b=e.WriteStream;b&&(x.prototype=Object.create(b.prototype),x.prototype.open=re),Object.defineProperty(e,"ReadStream",{get:function(){return I},set:function(Q){I=Q},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return x},set:function(Q){x=Q},enumerable:!0,configurable:!0});var S=I;Object.defineProperty(e,"FileReadStream",{get:function(){return S},set:function(Q){S=Q},enumerable:!0,configurable:!0});var v=x;Object.defineProperty(e,"FileWriteStream",{get:function(){return v},set:function(Q){v=Q},enumerable:!0,configurable:!0});function I(Q,$){return this instanceof I?(g.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function L(){var Q=this;vn(Q.path,Q.flags,Q.mode,function($,fe){$?(Q.autoClose&&Q.destroy(),Q.emit("error",$)):(Q.fd=fe,Q.emit("open",fe),Q.read())})}function x(Q,$){return this instanceof x?(b.apply(this,arguments),this):x.apply(Object.create(x.prototype),arguments)}function re(){var Q=this;vn(Q.path,Q.flags,Q.mode,function($,fe){$?(Q.destroy(),Q.emit("error",$)):(Q.fd=fe,Q.emit("open",fe))})}function be(Q,$){return new e.ReadStream(Q,$)}function on(Q,$){return new e.WriteStream(Q,$)}var wr=e.open;e.open=vn;function vn(Q,$,fe,Le){return typeof fe=="function"&&(Le=fe,fe=null),we(Q,$,fe,Le);function we(Me,Ce,Ue,he,it){return wr(Me,Ce,Ue,function(De,Hi){De&&(De.code==="EMFILE"||De.code==="ENFILE")?Hs([we,[Me,Ce,Ue,he],De,it||Date.now(),Date.now()]):typeof he=="function"&&he.apply(this,arguments)})}}return e}function Hs(e){ki("ENQUEUE",e[0].name,e[1]),qe[ut].push(e),Mv()}var hp;function zO(){for(var e=Date.now(),t=0;t<qe[ut].length;++t)qe[ut][t].length>2&&(qe[ut][t][3]=e,qe[ut][t][4]=e);Mv()}function Mv(){if(clearTimeout(hp),hp=void 0,qe[ut].length!==0){var e=qe[ut].shift(),t=e[0],n=e[1],r=e[2],i=e[3],s=e[4];if(i===void 0)ki("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=6e4){ki("TIMEOUT",t.name,n);var a=n.pop();typeof a=="function"&&a.call(null,r)}else{var l=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);l>=d?(ki("RETRY",t.name,n),t.apply(null,n.concat([i]))):qe[ut].push(e)}hp===void 0&&(hp=setTimeout(Mv,0))}}});var po=p(Qr=>{"use strict";var UO=Pt().fromCallback,At=gt(),kle=["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 At[e]=="function");Object.keys(At).forEach(e=>{e!=="promises"&&(Qr[e]=At[e])});kle.forEach(e=>{Qr[e]=UO(At[e])});Qr.exists=function(e,t){return typeof t=="function"?At.exists(e,t):new Promise(n=>At.exists(e,n))};Qr.read=function(e,t,n,r,i,s){return typeof s=="function"?At.read(e,t,n,r,i,s):new Promise((a,l)=>{At.read(e,t,n,r,i,(c,d,u)=>{if(c)return l(c);a({bytesRead:d,buffer:u})})})};Qr.write=function(e,t,...n){return typeof n[n.length-1]=="function"?At.write(e,t,...n):new Promise((r,i)=>{At.write(e,t,...n,(s,a,l)=>{if(s)return i(s);r({bytesWritten:a,buffer:l})})})};typeof At.writev=="function"&&(Qr.writev=function(e,t,...n){return typeof n[n.length-1]=="function"?At.writev(e,t,...n):new Promise((r,i)=>{At.writev(e,t,...n,(s,a,l)=>{if(s)return i(s);r({bytesWritten:a,buffers:l})})})});typeof At.realpath.native=="function"&&(Qr.realpath.native=UO(At.realpath.native))});var jv=p((KEe,FO)=>{FO.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 VO=p((VEe,zv)=>{"use strict";var Ws=po(),hr=require("path"),jle=jv(),BO=jle("10.12.0"),GO=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(hr.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},$O=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),o(o({},t),e)},KO=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};zv.exports.makeDir=async(e,t)=>{if(GO(e),t=$O(t),BO){let r=hr.resolve(e);return Ws.mkdir(r,{mode:t.mode,recursive:!0})}let n=async r=>{try{await Ws.mkdir(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(hr.dirname(r)===r)throw KO(r);if(i.message.includes("null bytes"))throw i;return await n(hr.dirname(r)),n(r)}try{if(!(await Ws.stat(r)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(hr.resolve(e))};zv.exports.makeDirSync=(e,t)=>{if(GO(e),t=$O(t),BO){let r=hr.resolve(e);return Ws.mkdirSync(r,{mode:t.mode,recursive:!0})}let n=r=>{try{Ws.mkdirSync(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(hr.dirname(r)===r)throw KO(r);if(i.message.includes("null bytes"))throw i;return n(hr.dirname(r)),n(r)}try{if(!Ws.statSync(r).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(hr.resolve(e))}});var gn=p((HEe,HO)=>{"use strict";var zle=Pt().fromPromise,{makeDir:Ule,makeDirSync:Uv}=VO(),Fv=zle(Ule);HO.exports={mkdirs:Fv,mkdirsSync:Uv,mkdirp:Fv,mkdirpSync:Uv,ensureDir:Fv,ensureDirSync:Uv}});var Bv=p((WEe,WO)=>{"use strict";var Ys=gt();function Fle(e,t,n,r){Ys.open(e,"r+",(i,s)=>{if(i)return r(i);Ys.futimes(s,t,n,a=>{Ys.close(s,l=>{r&&r(a||l)})})})}function Ble(e,t,n){let r=Ys.openSync(e,"r+");return Ys.futimesSync(r,t,n),Ys.closeSync(r)}WO.exports={utimesMillis:Fle,utimesMillisSync:Ble}});var _o=p((YEe,XO)=>{"use strict";var Js=po(),Dt=require("path"),Gle=require("util"),$le=jv(),gp=$le("10.5.0"),YO=e=>gp?Js.stat(e,{bigint:!0}):Js.stat(e),Gv=e=>gp?Js.statSync(e,{bigint:!0}):Js.statSync(e);function Kle(e,t){return Promise.all([YO(e),YO(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,r])=>({srcStat:n,destStat:r}))}function Vle(e,t){let n,r=Gv(e);try{n=Gv(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function Hle(e,t,n,r){Gle.callbackify(Kle)(e,t,(i,s)=>{if(i)return r(i);let{srcStat:a,destStat:l}=s;return l&&yp(a,l)?r(new Error("Source and destination must not be the same.")):a.isDirectory()&&$v(e,t)?r(new Error(vp(e,t,n))):r(null,{srcStat:a,destStat:l})})}function Wle(e,t,n){let{srcStat:r,destStat:i}=Vle(e,t);if(i&&yp(r,i))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&$v(e,t))throw new Error(vp(e,t,n));return{srcStat:r,destStat:i}}function JO(e,t,n,r,i){let s=Dt.resolve(Dt.dirname(e)),a=Dt.resolve(Dt.dirname(n));if(a===s||a===Dt.parse(a).root)return i();let l=(c,d)=>c?c.code==="ENOENT"?i():i(c):yp(t,d)?i(new Error(vp(e,n,r))):JO(e,t,a,r,i);gp?Js.stat(a,{bigint:!0},l):Js.stat(a,l)}function QO(e,t,n,r){let i=Dt.resolve(Dt.dirname(e)),s=Dt.resolve(Dt.dirname(n));if(s===i||s===Dt.parse(s).root)return;let a;try{a=Gv(s)}catch(l){if(l.code==="ENOENT")return;throw l}if(yp(t,a))throw new Error(vp(e,n,r));return QO(e,t,s,r)}function yp(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(gp||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 $v(e,t){let n=Dt.resolve(e).split(Dt.sep).filter(i=>i),r=Dt.resolve(t).split(Dt.sep).filter(i=>i);return n.reduce((i,s,a)=>i&&r[a]===s,!0)}function vp(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}XO.exports={checkPaths:Hle,checkPathsSync:Wle,checkParentPaths:JO,checkParentPathsSync:QO,isSrcSubdir:$v}});var rL=p((JEe,nL)=>{"use strict";var yt=gt(),ho=require("path"),Yle=gn().mkdirsSync,Jle=Bv().utimesMillisSync,go=_o();function Qle(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
32
 
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;
33
+ see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:r,destStat:i}=go.checkPathsSync(e,t,"copy");return go.checkParentPathsSync(e,r,t,"copy"),Xle(i,e,t,n)}function Xle(e,t,n,r){if(r.filter&&!r.filter(t,n))return;let i=ho.dirname(n);return yt.existsSync(i)||Yle(i),ZO(e,t,n,r)}function ZO(e,t,n,r){if(!(r.filter&&!r.filter(t,n)))return Zle(e,t,n,r)}function Zle(e,t,n,r){let s=(r.dereference?yt.statSync:yt.lstatSync)(t);if(s.isDirectory())return ace(s,e,t,n,r);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return ece(s,e,t,n,r);if(s.isSymbolicLink())return cce(e,t,n,r)}function ece(e,t,n,r,i){return t?tce(e,n,r,i):eL(e,n,r,i)}function tce(e,t,n,r){if(r.overwrite)return yt.unlinkSync(n),eL(e,t,n,r);if(r.errorOnExist)throw new Error(`'${n}' already exists`)}function eL(e,t,n,r){return yt.copyFileSync(t,n),r.preserveTimestamps&&nce(e.mode,t,n),Kv(n,e.mode)}function nce(e,t,n){return rce(e)&&ice(n,e),sce(t,n)}function rce(e){return(e&128)===0}function ice(e,t){return Kv(e,t|128)}function Kv(e,t){return yt.chmodSync(e,t)}function sce(e,t){let n=yt.statSync(e);return Jle(t,n.atime,n.mtime)}function ace(e,t,n,r,i){if(!t)return oce(e.mode,n,r,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`);return tL(n,r,i)}function oce(e,t,n,r){return yt.mkdirSync(n),tL(t,n,r),Kv(n,e)}function tL(e,t,n){yt.readdirSync(e).forEach(r=>lce(r,e,t,n))}function lce(e,t,n,r){let i=ho.join(t,e),s=ho.join(n,e),{destStat:a}=go.checkPathsSync(i,s,"copy");return ZO(a,i,s,r)}function cce(e,t,n,r){let i=yt.readlinkSync(t);if(r.dereference&&(i=ho.resolve(process.cwd(),i)),e){let s;try{s=yt.readlinkSync(n)}catch(a){if(a.code==="EINVAL"||a.code==="UNKNOWN")return yt.symlinkSync(i,n);throw a}if(r.dereference&&(s=ho.resolve(process.cwd(),s)),go.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(yt.statSync(n).isDirectory()&&go.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return dce(i,n)}else return yt.symlinkSync(i,n)}function dce(e,t){return yt.unlinkSync(t),yt.symlinkSync(e,t)}nL.exports=Qle});var Vv=p((QEe,iL)=>{"use strict";iL.exports={copySync:rL()}});var Xr=p((XEe,aL)=>{"use strict";var uce=Pt().fromPromise,sL=po();function mce(e){return sL.access(e).then(()=>!0).catch(()=>!1)}aL.exports={pathExists:uce(mce),pathExistsSync:sL.existsSync}});var _L=p((ZEe,pL)=>{"use strict";var Ot=gt(),yo=require("path"),fce=gn().mkdirs,pce=Xr().pathExists,_ce=Bv().utimesMillis,vo=_o();function hce(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
34
 
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="",D="";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+=`
35
+ see https://github.com/jprichardson/node-fs-extra/issues/269`),vo.checkPaths(e,t,"copy",(i,s)=>{if(i)return r(i);let{srcStat:a,destStat:l}=s;vo.checkParentPaths(e,a,t,"copy",c=>c?r(c):n.filter?lL(oL,l,e,t,n,r):oL(l,e,t,n,r))})}function oL(e,t,n,r,i){let s=yo.dirname(n);pce(s,(a,l)=>{if(a)return i(a);if(l)return Hv(e,t,n,r,i);fce(s,c=>c?i(c):Hv(e,t,n,r,i))})}function lL(e,t,n,r,i,s){Promise.resolve(i.filter(n,r)).then(a=>a?e(t,n,r,i,s):s(),a=>s(a))}function Hv(e,t,n,r,i){return r.filter?lL(cL,e,t,n,r,i):cL(e,t,n,r,i)}function cL(e,t,n,r,i){(r.dereference?Ot.stat:Ot.lstat)(t,(a,l)=>{if(a)return i(a);if(l.isDirectory())return Ece(l,e,t,n,r,i);if(l.isFile()||l.isCharacterDevice()||l.isBlockDevice())return gce(l,e,t,n,r,i);if(l.isSymbolicLink())return Tce(e,t,n,r,i)})}function gce(e,t,n,r,i,s){return t?yce(e,n,r,i,s):dL(e,n,r,i,s)}function yce(e,t,n,r,i){if(r.overwrite)Ot.unlink(n,s=>s?i(s):dL(e,t,n,r,i));else return r.errorOnExist?i(new Error(`'${n}' already exists`)):i()}function dL(e,t,n,r,i){Ot.copyFile(t,n,s=>s?i(s):r.preserveTimestamps?vce(e.mode,t,n,i):bp(n,e.mode,i))}function vce(e,t,n,r){return bce(e)?Sce(n,e,i=>i?r(i):uL(e,t,n,r)):uL(e,t,n,r)}function bce(e){return(e&128)===0}function Sce(e,t,n){return bp(e,t|128,n)}function uL(e,t,n,r){wce(t,n,i=>i?r(i):bp(n,e,r))}function bp(e,t,n){return Ot.chmod(e,t,n)}function wce(e,t,n){Ot.stat(e,(r,i)=>r?n(r):_ce(t,i.atime,i.mtime,n))}function Ece(e,t,n,r,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):mL(n,r,i,s):Ace(e.mode,n,r,i,s)}function Ace(e,t,n,r,i){Ot.mkdir(n,s=>{if(s)return i(s);mL(t,n,r,a=>a?i(a):bp(n,e,i))})}function mL(e,t,n,r){Ot.readdir(e,(i,s)=>i?r(i):fL(s,e,t,n,r))}function fL(e,t,n,r,i){let s=e.pop();return s?Cce(e,s,t,n,r,i):i()}function Cce(e,t,n,r,i,s){let a=yo.join(n,t),l=yo.join(r,t);vo.checkPaths(a,l,"copy",(c,d)=>{if(c)return s(c);let{destStat:u}=d;Hv(u,a,l,i,_=>_?s(_):fL(e,n,r,i,s))})}function Tce(e,t,n,r,i){Ot.readlink(t,(s,a)=>{if(s)return i(s);if(r.dereference&&(a=yo.resolve(process.cwd(),a)),e)Ot.readlink(n,(l,c)=>l?l.code==="EINVAL"||l.code==="UNKNOWN"?Ot.symlink(a,n,i):i(l):(r.dereference&&(c=yo.resolve(process.cwd(),c)),vo.isSrcSubdir(a,c)?i(new Error(`Cannot copy '${a}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&vo.isSrcSubdir(c,a)?i(new Error(`Cannot overwrite '${c}' with '${a}'.`)):xce(a,n,i)));else return Ot.symlink(a,n,i)})}function xce(e,t,n){Ot.unlink(t,r=>r?n(r):Ot.symlink(e,t,n))}pL.exports=hce});var Wv=p((eAe,hL)=>{"use strict";var Ice=Pt().fromCallback;hL.exports={copy:Ice(_L())}});var CL=p((tAe,AL)=>{"use strict";var gL=gt(),yL=require("path"),xe=require("assert"),bo=process.platform==="win32";function vL(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||gL[n],n=n+"Sync",e[n]=e[n]||gL[n]}),e.maxBusyTries=e.maxBusyTries||3}function Yv(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),xe(e,"rimraf: missing path"),xe.strictEqual(typeof e,"string","rimraf: path should be a string"),xe.strictEqual(typeof n,"function","rimraf: callback function required"),xe(t,"rimraf: invalid options argument provided"),xe.strictEqual(typeof t,"object","rimraf: options should be object"),vL(t),bL(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&r<t.maxBusyTries){r++;let a=r*100;return setTimeout(()=>bL(e,t,i),a)}s.code==="ENOENT"&&(s=null)}n(s)})}function bL(e,t,n){xe(e),xe(t),xe(typeof n=="function"),t.lstat(e,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&bo)return SL(e,t,r,n);if(i&&i.isDirectory())return Sp(e,t,r,n);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return n(null);if(s.code==="EPERM")return bo?SL(e,t,s,n):Sp(e,t,s,n);if(s.code==="EISDIR")return Sp(e,t,s,n)}return n(s)})})}function SL(e,t,n,r){xe(e),xe(t),xe(typeof r=="function"),t.chmod(e,438,i=>{i?r(i.code==="ENOENT"?null:n):t.stat(e,(s,a)=>{s?r(s.code==="ENOENT"?null:n):a.isDirectory()?Sp(e,t,n,r):t.unlink(e,r)})})}function wL(e,t,n){let r;xe(e),xe(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw n}try{r=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw n}r.isDirectory()?wp(e,t,n):t.unlinkSync(e)}function Sp(e,t,n,r){xe(e),xe(t),xe(typeof r=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?Rce(e,t,r):i&&i.code==="ENOTDIR"?r(n):r(i)})}function Rce(e,t,n){xe(e),xe(t),xe(typeof n=="function"),t.readdir(e,(r,i)=>{if(r)return n(r);let s=i.length,a;if(s===0)return t.rmdir(e,n);i.forEach(l=>{Yv(yL.join(e,l),t,c=>{if(!a){if(c)return n(a=c);--s===0&&t.rmdir(e,n)}})})})}function EL(e,t){let n;t=t||{},vL(t),xe(e,"rimraf: missing path"),xe.strictEqual(typeof e,"string","rimraf: path should be a string"),xe(t,"rimraf: missing options"),xe.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&bo&&wL(e,t,r)}try{n&&n.isDirectory()?wp(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return bo?wL(e,t,r):wp(e,t,r);if(r.code!=="EISDIR")throw r;wp(e,t,r)}}function wp(e,t,n){xe(e),xe(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")Nce(e,t);else if(r.code!=="ENOENT")throw r}}function Nce(e,t){if(xe(e),xe(t),t.readdirSync(e).forEach(n=>EL(yL.join(e,n),t)),bo){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}AL.exports=Yv;Yv.sync=EL});var So=p((nAe,xL)=>{"use strict";var Pce=Pt().fromCallback,TL=CL();xL.exports={remove:Pce(TL),removeSync:TL.sync}});var qL=p((rAe,LL)=>{"use strict";var Dce=Pt().fromCallback,IL=gt(),RL=require("path"),NL=gn(),PL=So(),DL=Dce(function(t,n){n=n||function(){},IL.readdir(t,(r,i)=>{if(r)return NL.mkdirs(t,n);i=i.map(a=>RL.join(t,a)),s();function s(){let a=i.pop();if(!a)return n();PL.remove(a,l=>{if(l)return n(l);s()})}})});function OL(e){let t;try{t=IL.readdirSync(e)}catch{return NL.mkdirsSync(e)}t.forEach(n=>{n=RL.join(e,n),PL.removeSync(n)})}LL.exports={emptyDirSync:OL,emptydirSync:OL,emptyDir:DL,emptydir:DL}});var zL=p((iAe,jL)=>{"use strict";var Oce=Pt().fromCallback,ML=require("path"),Zr=gt(),kL=gn();function Lce(e,t){function n(){Zr.writeFile(e,"",r=>{if(r)return t(r);t()})}Zr.stat(e,(r,i)=>{if(!r&&i.isFile())return t();let s=ML.dirname(e);Zr.stat(s,(a,l)=>{if(a)return a.code==="ENOENT"?kL.mkdirs(s,c=>{if(c)return t(c);n()}):t(a);l.isDirectory()?n():Zr.readdir(s,c=>{if(c)return t(c)})})})}function qce(e){let t;try{t=Zr.statSync(e)}catch{}if(t&&t.isFile())return;let n=ML.dirname(e);try{Zr.statSync(n).isDirectory()||Zr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")kL.mkdirsSync(n);else throw r}Zr.writeFileSync(e,"")}jL.exports={createFile:Oce(Lce),createFileSync:qce}});var $L=p((sAe,GL)=>{"use strict";var Mce=Pt().fromCallback,UL=require("path"),ji=gt(),FL=gn(),BL=Xr().pathExists;function kce(e,t,n){function r(i,s){ji.link(i,s,a=>{if(a)return n(a);n(null)})}BL(t,(i,s)=>{if(i)return n(i);if(s)return n(null);ji.lstat(e,a=>{if(a)return a.message=a.message.replace("lstat","ensureLink"),n(a);let l=UL.dirname(t);BL(l,(c,d)=>{if(c)return n(c);if(d)return r(e,t);FL.mkdirs(l,u=>{if(u)return n(u);r(e,t)})})})})}function jce(e,t){if(ji.existsSync(t))return;try{ji.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let r=UL.dirname(t);return ji.existsSync(r)||FL.mkdirsSync(r),ji.linkSync(e,t)}GL.exports={createLink:Mce(kce),createLinkSync:jce}});var VL=p((aAe,KL)=>{"use strict";var ei=require("path"),wo=gt(),zce=Xr().pathExists;function Uce(e,t,n){if(ei.isAbsolute(e))return wo.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=ei.dirname(t),i=ei.join(r,e);return zce(i,(s,a)=>s?n(s):a?n(null,{toCwd:i,toDst:e}):wo.lstat(e,l=>l?(l.message=l.message.replace("lstat","ensureSymlink"),n(l)):n(null,{toCwd:e,toDst:ei.relative(r,e)})))}}function Fce(e,t){let n;if(ei.isAbsolute(e)){if(n=wo.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=ei.dirname(t),i=ei.join(r,e);if(n=wo.existsSync(i),n)return{toCwd:i,toDst:e};if(n=wo.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:ei.relative(r,e)}}}KL.exports={symlinkPaths:Uce,symlinkPathsSync:Fce}});var YL=p((oAe,WL)=>{"use strict";var HL=gt();function Bce(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);HL.lstat(e,(r,i)=>{if(r)return n(null,"file");t=i&&i.isDirectory()?"dir":"file",n(null,t)})}function Gce(e,t){let n;if(t)return t;try{n=HL.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}WL.exports={symlinkType:Bce,symlinkTypeSync:Gce}});var nq=p((lAe,tq)=>{"use strict";var $ce=Pt().fromCallback,JL=require("path"),Qs=gt(),QL=gn(),Kce=QL.mkdirs,Vce=QL.mkdirsSync,XL=VL(),Hce=XL.symlinkPaths,Wce=XL.symlinkPathsSync,ZL=YL(),Yce=ZL.symlinkType,Jce=ZL.symlinkTypeSync,eq=Xr().pathExists;function Qce(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,eq(t,(i,s)=>{if(i)return r(i);if(s)return r(null);Hce(e,t,(a,l)=>{if(a)return r(a);e=l.toDst,Yce(l.toCwd,n,(c,d)=>{if(c)return r(c);let u=JL.dirname(t);eq(u,(_,g)=>{if(_)return r(_);if(g)return Qs.symlink(e,t,d,r);Kce(u,b=>{if(b)return r(b);Qs.symlink(e,t,d,r)})})})})})}function Xce(e,t,n){if(Qs.existsSync(t))return;let i=Wce(e,t);e=i.toDst,n=Jce(i.toCwd,n);let s=JL.dirname(t);return Qs.existsSync(s)||Vce(s),Qs.symlinkSync(e,t,n)}tq.exports={createSymlink:$ce(Qce),createSymlinkSync:Xce}});var iq=p((cAe,rq)=>{"use strict";var Ep=zL(),Ap=$L(),Cp=nq();rq.exports={createFile:Ep.createFile,createFileSync:Ep.createFileSync,ensureFile:Ep.createFile,ensureFileSync:Ep.createFileSync,createLink:Ap.createLink,createLinkSync:Ap.createLinkSync,ensureLink:Ap.createLink,ensureLinkSync:Ap.createLinkSync,createSymlink:Cp.createSymlink,createSymlinkSync:Cp.createSymlinkSync,ensureSymlink:Cp.createSymlink,ensureSymlinkSync:Cp.createSymlinkSync}});var Tp=p((dAe,sq)=>{function Zce(e,{EOL:t=`
36
+ `,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let s=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+s}function ede(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}sq.exports={stringify:Zce,stripBom:ede}});var cq=p((uAe,lq)=>{var Xs;try{Xs=gt()}catch{Xs=require("fs")}var xp=Pt(),{stringify:aq,stripBom:oq}=Tp();async function tde(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||Xs,r="throws"in t?t.throws:!0,i=await xp.fromCallback(n.readFile)(e,t);i=oq(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(a){if(r)throw a.message=`${e}: ${a.message}`,a;return null}return s}var nde=xp.fromPromise(tde);function rde(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||Xs,r="throws"in t?t.throws:!0;try{let i=n.readFileSync(e,t);return i=oq(i),JSON.parse(i,t.reviver)}catch(i){if(r)throw i.message=`${e}: ${i.message}`,i;return null}}async function ide(e,t,n={}){let r=n.fs||Xs,i=aq(t,n);await xp.fromCallback(r.writeFile)(e,i,n)}var sde=xp.fromPromise(ide);function ade(e,t,n={}){let r=n.fs||Xs,i=aq(t,n);return r.writeFileSync(e,i,n)}var ode={readFile:nde,readFileSync:rde,writeFile:sde,writeFileSync:ade};lq.exports=ode});var uq=p((mAe,dq)=>{"use strict";var Ip=cq();dq.exports={readJson:Ip.readFile,readJsonSync:Ip.readFileSync,writeJson:Ip.writeFile,writeJsonSync:Ip.writeFileSync}});var Rp=p((fAe,pq)=>{"use strict";var lde=Pt().fromCallback,Eo=gt(),mq=require("path"),fq=gn(),cde=Xr().pathExists;function dde(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let i=mq.dirname(e);cde(i,(s,a)=>{if(s)return r(s);if(a)return Eo.writeFile(e,t,n,r);fq.mkdirs(i,l=>{if(l)return r(l);Eo.writeFile(e,t,n,r)})})}function ude(e,...t){let n=mq.dirname(e);if(Eo.existsSync(n))return Eo.writeFileSync(e,...t);fq.mkdirsSync(n),Eo.writeFileSync(e,...t)}pq.exports={outputFile:lde(dde),outputFileSync:ude}});var hq=p((pAe,_q)=>{"use strict";var{stringify:mde}=Tp(),{outputFile:fde}=Rp();async function pde(e,t,n={}){let r=mde(t,n);await fde(e,r,n)}_q.exports=pde});var yq=p((_Ae,gq)=>{"use strict";var{stringify:_de}=Tp(),{outputFileSync:hde}=Rp();function gde(e,t,n){let r=_de(t,n);hde(e,r,n)}gq.exports=gde});var bq=p((hAe,vq)=>{"use strict";var yde=Pt().fromPromise,Ct=uq();Ct.outputJson=yde(hq());Ct.outputJsonSync=yq();Ct.outputJSON=Ct.outputJson;Ct.outputJSONSync=Ct.outputJsonSync;Ct.writeJSON=Ct.writeJson;Ct.writeJSONSync=Ct.writeJsonSync;Ct.readJSON=Ct.readJson;Ct.readJSONSync=Ct.readJsonSync;vq.exports=Ct});var Tq=p((gAe,Cq)=>{"use strict";var Sq=gt(),vde=require("path"),bde=Vv().copySync,wq=So().removeSync,Sde=gn().mkdirpSync,Eq=_o();function wde(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:i}=Eq.checkPathsSync(e,t,"move");return Eq.checkParentPathsSync(e,i,t,"move"),Sde(vde.dirname(t)),Ede(e,t,r)}function Ede(e,t,n){if(n)return wq(t),Aq(e,t,n);if(Sq.existsSync(t))throw new Error("dest already exists.");return Aq(e,t,n)}function Aq(e,t,n){try{Sq.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return Ade(e,t,n)}}function Ade(e,t,n){return bde(e,t,{overwrite:n,errorOnExist:!0}),wq(e)}Cq.exports=wde});var Iq=p((yAe,xq)=>{"use strict";xq.exports={moveSync:Tq()}});var Oq=p((vAe,Dq)=>{"use strict";var Cde=gt(),Tde=require("path"),xde=Wv().copy,Rq=So().remove,Ide=gn().mkdirp,Rde=Xr().pathExists,Nq=_o();function Nde(e,t,n,r){typeof n=="function"&&(r=n,n={});let i=n.overwrite||n.clobber||!1;Nq.checkPaths(e,t,"move",(s,a)=>{if(s)return r(s);let{srcStat:l}=a;Nq.checkParentPaths(e,l,t,"move",c=>{if(c)return r(c);Ide(Tde.dirname(t),d=>d?r(d):Pde(e,t,i,r))})})}function Pde(e,t,n,r){if(n)return Rq(t,i=>i?r(i):Pq(e,t,n,r));Rde(t,(i,s)=>i?r(i):s?r(new Error("dest already exists.")):Pq(e,t,n,r))}function Pq(e,t,n,r){Cde.rename(e,t,i=>i?i.code!=="EXDEV"?r(i):Dde(e,t,n,r):r())}function Dde(e,t,n,r){xde(e,t,{overwrite:n,errorOnExist:!0},s=>s?r(s):Rq(e,r))}Dq.exports=Nde});var qq=p((bAe,Lq)=>{"use strict";var Ode=Pt().fromCallback;Lq.exports={move:Ode(Oq())}});var Qv=p((SAe,Jv)=>{"use strict";Jv.exports=o(o(o(o(o(o(o(o(o(o(o(o({},po()),Vv()),Wv()),qL()),iq()),bq()),gn()),Iq()),qq()),Rp()),Xr()),So());var Mq=require("fs");Object.getOwnPropertyDescriptor(Mq,"promises")&&Object.defineProperty(Jv.exports,"promises",{get(){return Mq.promises}})});var Bq=p((wAe,Fq)=>{Fq.exports=Ao;Ao.default=Ao;Ao.stable=zq;Ao.stableStringify=zq;var Np="[...]",kq="[Circular]",zi=[],Ui=[];function jq(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Ao(e,t,n,r){typeof r=="undefined"&&(r=jq()),Xv(e,"",0,[],void 0,0,r);var i;try{Ui.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,Uq(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;zi.length!==0;){var s=zi.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Zs(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),zi.push([r,n,t,i])):Ui.push([t,n,e]):(r[n]=e,zi.push([r,n,t]))}function Xv(e,t,n,r,i,s,a){s+=1;var l;if(typeof e=="object"&&e!==null){for(l=0;l<r.length;l++)if(r[l]===e){Zs(kq,e,t,i);return}if(typeof a.depthLimit!="undefined"&&s>a.depthLimit){Zs(Np,e,t,i);return}if(typeof a.edgesLimit!="undefined"&&n+1>a.edgesLimit){Zs(Np,e,t,i);return}if(r.push(e),Array.isArray(e))for(l=0;l<e.length;l++)Xv(e[l],l,l,r,e,s,a);else{var c=Object.keys(e);for(l=0;l<c.length;l++){var d=c[l];Xv(e[d],d,l,r,e,s,a)}}r.pop()}}function Lde(e,t){return e<t?-1:e>t?1:0}function zq(e,t,n,r){typeof r=="undefined"&&(r=jq());var i=Zv(e,"",0,[],void 0,0,r)||e,s;try{Ui.length===0?s=JSON.stringify(i,t,n):s=JSON.stringify(i,Uq(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;zi.length!==0;){var a=zi.pop();a.length===4?Object.defineProperty(a[0],a[1],a[3]):a[0][a[1]]=a[2]}}return s}function Zv(e,t,n,r,i,s,a){s+=1;var l;if(typeof e=="object"&&e!==null){for(l=0;l<r.length;l++)if(r[l]===e){Zs(kq,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof a.depthLimit!="undefined"&&s>a.depthLimit){Zs(Np,e,t,i);return}if(typeof a.edgesLimit!="undefined"&&n+1>a.edgesLimit){Zs(Np,e,t,i);return}if(r.push(e),Array.isArray(e))for(l=0;l<e.length;l++)Zv(e[l],l,l,r,e,s,a);else{var c={},d=Object.keys(e).sort(Lde);for(l=0;l<d.length;l++){var u=d[l];Zv(e[u],u,l,r,e,s,a),c[u]=e[u]}if(typeof i!="undefined")zi.push([i,t,e]),i[t]=c;else return c}r.pop()}}function Uq(e){return e=typeof e!="undefined"?e:function(t,n){return n},function(t,n){if(Ui.length>0)for(var r=0;r<Ui.length;r++){var i=Ui[r];if(i[1]===t&&i[0]===n){n=i[2],Ui.splice(r,1);break}}return e.call(this,t,n)}}});var $q=p((EAe,Gq)=>{"use strict";var qde=Bq(),Pp=class{constructor({level:t,msg:n,meta:r,tags:i},s){this.level=t,this.meta=r,this.tags=["log",t].concat(s.tags,i);let a={};if(Pp.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||{},s.meta,a),s.dynamicMeta&&typeof s.dynamicMeta=="function"){let l=s.dynamicMeta(this,s);typeof l=="object"&&(this.meta=Object.assign(this.meta,l))}this._replacer=typeof s.replacer=="function"?s.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 qde(this.value,this._replacer,t?4:0)}static isError(t){return!!t&&typeof t=="object"&&(t instanceof Error||t.hasOwnProperty("message")&&t.hasOwnProperty("stack"))}};Gq.exports=Pp});var Vq=p((AAe,Kq)=>{"use strict";var Mde=require("events"),kde=$q(),Dp=class extends Mde{constructor(t={},n={}){super();this.LambdaLog=Dp,this.LogMessage=kde,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]=(i,s={},a=[])=>this.log(r,i,s,a)})}log(t,n,r={},i=[]){if(this._levels.indexOf(t)===-1)throw new Error(`"${t}" is not a valid log level`);let s=new this.LogMessage({level:t,msg:n,meta:r,tags:i},this.options),a=this._logLevels[t];return typeof a=="function"&&(a=a.call(this,s)),a?(this.options.silent||this.console[a](s.toJSON(this.options.dev)),this.emit("log",s),s):!1}assert(t,n,r={},i=[]){return t?!1:this.log("error",n,r,i)}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(s=>{t.then(a=>s(this.log("info",a,n,r))).catch(a=>s(this.log("error",a,n,r)))})}};Kq.exports=Dp});var Wq=p((CAe,Hq)=>{"use strict";var jde=Vq(),zde=new jde;Hq.exports=zde});var ea=p((Co,eb)=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.default=Ude;function Op(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Op=function(n){return typeof n}:Op=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Op(e)}function Ude(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=Op(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}eb.exports=Co.default;eb.exports.default=Co.default});var Lp=p((To,tb)=>{"use strict";Object.defineProperty(To,"__esModule",{value:!0});To.default=Fde;function Fde(){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}tb.exports=To.default;tb.exports.default=To.default});var Yq=p((xo,nb)=>{"use strict";Object.defineProperty(xo,"__esModule",{value:!0});xo.default=$de;var Bde=Gde(ea());function Gde(e){return e&&e.__esModule?e:{default:e}}function qp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qp=function(n){return typeof n}:qp=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},qp(e)}function $de(e,t){(0,Bde.default)(e);var n,r;qp(t)==="object"?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=n&&(typeof r=="undefined"||i<=r)}nb.exports=xo.default;nb.exports.default=xo.default});var ib=p((Io,rb)=>{"use strict";Object.defineProperty(Io,"__esModule",{value:!0});Io.default=Wde;var Kde=Jq(ea()),Vde=Jq(Lp());function Jq(e){return e&&e.__esModule?e:{default:e}}var Hde={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function Wde(e,t){(0,Kde.default)(e),t=(0,Vde.default)(t,Hde),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(i){return!(i.length>63||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(i)||/[\uff01-\uff5e]/.test(i)||/^-|-$/.test(i)||!t.allow_underscores&&/_/.test(i))})}rb.exports=Io.default;rb.exports.default=Io.default});var Mp=p((Ro,ab)=>{"use strict";Object.defineProperty(Ro,"__esModule",{value:!0});Ro.default=sb;var Yde=Jde(ea());function Jde(e){return e&&e.__esModule?e:{default:e}}var Qq="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",ti="(".concat(Qq,"[.]){3}").concat(Qq),Qde=new RegExp("^".concat(ti,"$")),Ye="(?:[0-9a-fA-F]{1,4})",Xde=new RegExp("^("+"(?:".concat(Ye,":){7}(?:").concat(Ye,"|:)|")+"(?:".concat(Ye,":){6}(?:").concat(ti,"|:").concat(Ye,"|:)|")+"(?:".concat(Ye,":){5}(?::").concat(ti,"|(:").concat(Ye,"){1,2}|:)|")+"(?:".concat(Ye,":){4}(?:(:").concat(Ye,"){0,1}:").concat(ti,"|(:").concat(Ye,"){1,3}|:)|")+"(?:".concat(Ye,":){3}(?:(:").concat(Ye,"){0,2}:").concat(ti,"|(:").concat(Ye,"){1,4}|:)|")+"(?:".concat(Ye,":){2}(?:(:").concat(Ye,"){0,3}:").concat(ti,"|(:").concat(Ye,"){1,5}|:)|")+"(?:".concat(Ye,":){1}(?:(:").concat(Ye,"){0,4}:").concat(ti,"|(:").concat(Ye,"){1,6}|:)|")+"(?::((?::".concat(Ye,"){0,5}:").concat(ti,"|(?::").concat(Ye,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function sb(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,Yde.default)(e),t=String(t),!t)return sb(e,4)||sb(e,6);if(t==="4"){if(!Qde.test(e))return!1;var n=e.split(".").sort(function(r,i){return r-i});return n[3]<=255}return t==="6"?!!Xde.test(e):!1}ab.exports=Ro.default;ab.exports.default=Ro.default});var Zq=p((Po,lb)=>{"use strict";Object.defineProperty(Po,"__esModule",{value:!0});Po.default=uue;var Zde=No(ea()),eue=No(Lp()),ob=No(Yq()),tue=No(ib()),Xq=No(Mp());function No(e){return e&&e.__esModule?e:{default:e}}var nue={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},rue=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,iue=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,sue=/^[a-z\d]+$/,aue=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,oue=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,lue=/^([\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,cue=254;function due(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 uue(e,t){if((0,Zde.default)(e),t=(0,eue.default)(t,nue),t.require_display_name||t.allow_display_name){var n=e.match(rue);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!due(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>cue)return!1;var i=e.split("@"),s=i.pop(),a=s.toLowerCase();if(t.host_blacklist.includes(a))return!1;var l=i.join("@");if(t.domain_specific_validation&&(a==="gmail.com"||a==="googlemail.com")){l=l.toLowerCase();var c=l.split("+")[0];if(!(0,ob.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var d=c.split("."),u=0;u<d.length;u++)if(!sue.test(d[u]))return!1}if(t.ignore_max_length===!1&&(!(0,ob.default)(l,{max:64})||!(0,ob.default)(s,{max:254})))return!1;if(!(0,tue.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,Xq.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var _=s.substr(1,s.length-2);if(_.length===0||!(0,Xq.default)(_))return!1}}if(l[0]==='"')return l=l.slice(1,l.length-1),t.allow_utf8_local_part?lue.test(l):aue.test(l);for(var g=t.allow_utf8_local_part?oue:iue,b=l.split("."),S=0;S<b.length;S++)if(!g.test(b[S]))return!1;return!(t.blacklisted_chars&&l.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}lb.exports=Po.default;lb.exports.default=Po.default});var rM=p((Do,cb)=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.default=Eue;var mue=kp(ea()),fue=kp(ib()),eM=kp(Mp()),pue=kp(Lp());function kp(e){return e&&e.__esModule?e:{default:e}}function _ue(e,t){return vue(e)||yue(e,t)||gue(e,t)||hue()}function hue(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
37
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function gue(e,t){if(!!e){if(typeof e=="string")return tM(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 tM(e,t)}}function tM(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 yue(e,t){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var a=e[Symbol.iterator](),l;!(r=(l=a.next()).done)&&(n.push(l.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&a.return!=null&&a.return()}finally{if(i)throw s}}return n}}function vue(e){if(Array.isArray(e))return e}var bue={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},Sue=/^\[([^\]]+)\](?::([0-9]+))?$/;function wue(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function nM(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||wue(r)&&r.test(e))return!0}return!1}function Eue(e,t){if((0,mue.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,pue.default)(t,bue),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,r,i,s,a,l,c,d;if(c=e.split("#"),e=c.shift(),c=e.split("?"),e=c.shift(),c=e.split("://"),c.length>1){if(n=c.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;c[0]=e.substr(2)}}if(e=c.join("://"),e==="")return!1;if(c=e.split("/"),e=c.shift(),e===""&&!t.require_host)return!0;if(c=e.split("@"),c.length>1){if(t.disallow_auth||c[0]===""||(r=c.shift(),r.indexOf(":")>=0&&r.split(":").length>2))return!1;var u=r.split(":"),_=_ue(u,2),g=_[0],b=_[1];if(g===""&&b==="")return!1}s=c.join("@"),l=null,d=null;var S=s.match(Sue);if(S?(i="",d=S[1],l=S[2]||null):(c=s.split(":"),i=c.shift(),c.length&&(l=c.join(":"))),l!==null&&l.length>0){if(a=parseInt(l,10),!/^[0-9]+$/.test(l)||a<=0||a>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?nM(i,t.host_whitelist):!(!(0,eM.default)(i)&&!(0,fue.default)(i,t)&&(!d||!(0,eM.default)(d,6))||(i=i||d,t.host_blacklist&&nM(i,t.host_blacklist)))}cb.exports=Do.default;cb.exports.default=Do.default});var sM=p((TAe,iM)=>{"use strict";var Aue=Zq(),Cue=rM(),Tue=Mp();function db(e,t){if(!e)throw new Error(t)}var xue={name:"email",coerce:e=>e.toString(),validate:function(e){db(Aue(e),"must be an email address")}},Iue={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){db(Tue(e),"must be an IP address")}},Rue={name:"url",coerce:e=>e.toString(),validate:function(e){db(Cue(e,{require_tld:!1}),"must be a URL")}};iM.exports={email:xue,ipaddress:Iue,url:Rue}});var WM=p(HM=>{"use strict";Object.defineProperty(HM,"__esModule",{value:!0})});var Cb=p(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0});var YM=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)||[]}};Ab.default=new YM});var JM=p(ii=>{"use strict";var Zfe=ii&&ii.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ii,"__esModule",{value:!0});ii.Property=ii.Config=void 0;var $p=Zfe(Cb());function epe(e={}){return t=>{$p.default.setConvictMetaForClass(e,t)}}ii.Config=epe;function tpe(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format=="undefined"){let r=$p.default.getTsType(t,n);r&&(e.format=r)}$p.default.setConvictMetaForProperty(e,t,n),$p.default.setPropertyForClass(t,n)}}ii.Property=tpe});var sk=p((qAe,ik)=>{"use strict";var npe=require("util"),rpe=require("fs"),QM=require("path");function jo(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let n="",r=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let a=e.charAt(s);r&&(r=!1,a=a.toUpperCase()),s!==0&&(a==="-"||a==="_")?r=!0:a!=="-"&&a!=="_"&&(n+=a)}return n}}function XM(e,t){let n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){let s=n.charAt(i),a=e.charAt(i);s!==a&&i>0?r+=`${t}${n.charAt(i)}`:r+=a}return r}function ZM(e){return e==null?!1:typeof e=="number"||/^0x[0-9a-f]+$/i.test(e)?!0:/^0[^.]/.test(e)?!1:/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function ipe(e){if(Array.isArray(e))return e.map(a=>typeof a!="string"?a+"":a);e=e.trim();let t=0,n=null,r=null,i=null,s=[];for(let a=0;a<e.length;a++){if(n=r,r=e.charAt(a),r===" "&&!i){n!==" "&&t++;continue}r===i?i=null:(r==="'"||r==='"')&&!i&&(i=r),s[t]||(s[t]=""),s[t]+=r}return s}var yn;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(yn||(yn={}));var yr,ek=class{constructor(t){yr=t}parse(t,n){let r=Object.assign({alias:void 0,array:void 0,boolean:void 0,config:void 0,configObjects:void 0,configuration:void 0,coerce:void 0,count:void 0,default:void 0,envPrefix:void 0,narg:void 0,normalize:void 0,string:void 0,number:void 0,__:void 0,key:void 0},n),i=ipe(t),s=spe(Object.assign(Object.create(null),r.alias)),a=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,"parse-positional-numbers":!0,"populate--":!1,"set-placeholder-key":!1,"short-option-groups":!0,"strip-aliased":!1,"strip-dashed":!1,"unknown-options-as-args":!1},r.configuration),l=Object.assign(Object.create(null),r.default),c=r.configObjects||[],d=r.envPrefix,u=a["populate--"],_=u?"--":"_",g=Object.create(null),b=Object.create(null),S=r.__||yr.format,v={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:[]},I=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,L=new RegExp("^--"+a["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach(function(E){let A=typeof E=="object"?E.key:E,O=Object.keys(E).map(function(R){return{boolean:"bools",string:"strings",number:"numbers"}[R]}).filter(Boolean).pop();O&&(v[O][A]=!0),v.arrays[A]=!0,v.keys.push(A)}),[].concat(r.boolean||[]).filter(Boolean).forEach(function(E){v.bools[E]=!0,v.keys.push(E)}),[].concat(r.string||[]).filter(Boolean).forEach(function(E){v.strings[E]=!0,v.keys.push(E)}),[].concat(r.number||[]).filter(Boolean).forEach(function(E){v.numbers[E]=!0,v.keys.push(E)}),[].concat(r.count||[]).filter(Boolean).forEach(function(E){v.counts[E]=!0,v.keys.push(E)}),[].concat(r.normalize||[]).filter(Boolean).forEach(function(E){v.normalize[E]=!0,v.keys.push(E)}),typeof r.narg=="object"&&Object.entries(r.narg).forEach(([E,A])=>{typeof A=="number"&&(v.nargs[E]=A,v.keys.push(E))}),typeof r.coerce=="object"&&Object.entries(r.coerce).forEach(([E,A])=>{typeof A=="function"&&(v.coercions[E]=A,v.keys.push(E))}),typeof r.config!="undefined"&&(Array.isArray(r.config)||typeof r.config=="string"?[].concat(r.config).filter(Boolean).forEach(function(E){v.configs[E]=!0}):typeof r.config=="object"&&Object.entries(r.config).forEach(([E,A])=>{(typeof A=="boolean"||typeof A=="function")&&(v.configs[E]=A)})),Ar(r.key,s,r.default,v.arrays),Object.keys(l).forEach(function(E){(v.aliases[E]||[]).forEach(function(A){l[A]=l[E]})});let x=null;d_();let re=[],be=Object.assign(Object.create(null),{_:[]}),on={};for(let E=0;E<i.length;E++){let A=i[E],O=A.replace(/^-{3,}/,"---"),R,C,j,z,Y,Fe;if(A!=="--"&&Wi(A))wr(A);else if(O.match(/---+(=|$)/)){wr(A);continue}else if(A.match(/^--.+=/)||!a["short-option-groups"]&&A.match(/^-.+=/))z=A.match(/^--?([^=]+)=([\s\S]*)$/),z!==null&&Array.isArray(z)&&z.length>=3&&(ie(z[1],v.arrays)?E=Q(E,z[1],i,z[2]):ie(z[1],v.nargs)!==!1?E=vn(E,z[1],i,z[2]):$(z[1],z[2]));else if(A.match(L)&&a["boolean-negation"])z=A.match(L),z!==null&&Array.isArray(z)&&z.length>=2&&(C=z[1],$(C,ie(C,v.arrays)?[!1]:!1));else if(A.match(/^--.+/)||!a["short-option-groups"]&&A.match(/^-[^-]+/))z=A.match(/^--?(.+)/),z!==null&&Array.isArray(z)&&z.length>=2&&(C=z[1],ie(C,v.arrays)?E=Q(E,C,i):ie(C,v.nargs)!==!1?E=vn(E,C,i):(Y=i[E+1],Y!==void 0&&(!Y.match(/^-/)||Y.match(I))&&!ie(C,v.bools)&&!ie(C,v.counts)||/^(true|false)$/.test(Y)?($(C,Y),E++):$(C,ft(C))));else if(A.match(/^-.\..+=/))z=A.match(/^-([^=]+)=([\s\S]*)$/),z!==null&&Array.isArray(z)&&z.length>=3&&$(z[1],z[2]);else if(A.match(/^-.\..+/)&&!A.match(I))Y=i[E+1],z=A.match(/^-(.\..+)/),z!==null&&Array.isArray(z)&&z.length>=2&&(C=z[1],Y!==void 0&&!Y.match(/^-/)&&!ie(C,v.bools)&&!ie(C,v.counts)?($(C,Y),E++):$(C,ft(C)));else if(A.match(/^-[^-]+/)&&!A.match(I)){j=A.slice(1,-1).split(""),R=!1;for(let Qe=0;Qe<j.length;Qe++){if(Y=A.slice(Qe+2),j[Qe+1]&&j[Qe+1]==="="){Fe=A.slice(Qe+3),C=j[Qe],ie(C,v.arrays)?E=Q(E,C,i,Fe):ie(C,v.nargs)!==!1?E=vn(E,C,i,Fe):$(C,Fe),R=!0;break}if(Y==="-"){$(j[Qe],Y);continue}if(/[A-Za-z]/.test(j[Qe])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Y)&&ie(Y,v.bools)===!1){$(j[Qe],Y),R=!0;break}if(j[Qe+1]&&j[Qe+1].match(/\W/)){$(j[Qe],Y),R=!0;break}else $(j[Qe],ft(j[Qe]))}C=A.slice(-1)[0],!R&&C!=="-"&&(ie(C,v.arrays)?E=Q(E,C,i):ie(C,v.nargs)!==!1?E=vn(E,C,i):(Y=i[E+1],Y!==void 0&&(!/^(-|--)[^-]/.test(Y)||Y.match(I))&&!ie(C,v.bools)&&!ie(C,v.counts)||/^(true|false)$/.test(Y)?($(C,Y),E++):$(C,ft(C))))}else if(A.match(/^-[0-9]$/)&&A.match(I)&&ie(A.slice(1),v.bools))C=A.slice(1),$(C,ft(C));else if(A==="--"){re=i.slice(E+1);break}else if(a["halt-at-non-option"]){re=i.slice(E);break}else wr(A)}he(be,!0),he(be,!1),Me(be),Ue(),Hi(be,v.aliases,l,!0),it(be),a["set-placeholder-key"]&&De(be),Object.keys(v.counts).forEach(function(E){Er(be,E.split("."))||$(E,0)}),u&&re.length&&(be[_]=[]),re.forEach(function(E){be[_].push(E)}),a["camel-case-expansion"]&&a["strip-dashed"]&&Object.keys(be).filter(E=>E!=="--"&&E.includes("-")).forEach(E=>{delete be[E]}),a["strip-aliased"]&&[].concat(...Object.keys(s).map(E=>s[E])).forEach(E=>{a["camel-case-expansion"]&&E.includes("-")&&delete be[E.split(".").map(A=>jo(A)).join(".")],delete be[E]});function wr(E){let A=we("_",E);(typeof A=="string"||typeof A=="number")&&be._.push(A)}function vn(E,A,O,R){let C,j=ie(A,v.nargs);if(j=typeof j!="number"||isNaN(j)?1:j,j===0)return Vt(R)||(x=Error(S("Argument unexpected for: %s",A))),$(A,ft(A)),E;let z=Vt(R)?0:1;if(a["nargs-eats-options"])O.length-(E+1)+z<j&&(x=Error(S("Not enough arguments following: %s",A))),z=j;else{for(C=E+1;C<O.length&&(!O[C].match(/^-[^0-9]/)||O[C].match(I)||Wi(O[C]));C++)z++;z<j&&(x=Error(S("Not enough arguments following: %s",A)))}let Y=Math.min(z,j);for(!Vt(R)&&Y>0&&($(A,R),Y--),C=E+1;C<Y+E+1;C++)$(A,O[C]);return E+Y}function Q(E,A,O,R){let C=[],j=R||O[E+1],z=ie(A,v.nargs);if(ie(A,v.bools)&&!/^(true|false)$/.test(j))C.push(!0);else if(Vt(j)||Vt(R)&&/^-/.test(j)&&!I.test(j)&&!Wi(j)){if(l[A]!==void 0){let Y=l[A];C=Array.isArray(Y)?Y:[Y]}}else{Vt(R)||C.push(Le(A,R));for(let Y=E+1;Y<O.length&&!(!a["greedy-arrays"]&&C.length>0||z&&typeof z=="number"&&C.length>=z||(j=O[Y],/^-/.test(j)&&!I.test(j)&&!Wi(j)));Y++)E=Y,C.push(Le(A,j))}return typeof z=="number"&&(z&&C.length<z||isNaN(z)&&C.length===0)&&(x=Error(S("Not enough arguments following: %s",A))),$(A,C),E}function $(E,A){if(/-/.test(E)&&a["camel-case-expansion"]){let C=E.split(".").map(function(j){return jo(j)}).join(".");fe(E,C)}let O=Le(E,A),R=E.split(".");Re(be,R,O),v.aliases[E]&&v.aliases[E].forEach(function(C){let j=C.split(".");Re(be,j,O)}),R.length>1&&a["dot-notation"]&&(v.aliases[R[0]]||[]).forEach(function(C){let j=C.split("."),z=[].concat(R);z.shift(),j=j.concat(z),(v.aliases[E]||[]).includes(j.join("."))||Re(be,j,O)}),ie(E,v.normalize)&&!ie(E,v.arrays)&&[E].concat(v.aliases[E]||[]).forEach(function(j){Object.defineProperty(on,j,{enumerable:!0,get(){return A},set(z){A=typeof z=="string"?yr.normalize(z):z}})})}function fe(E,A){v.aliases[E]&&v.aliases[E].length||(v.aliases[E]=[A],g[A]=!0),v.aliases[A]&&v.aliases[A].length||fe(A,E)}function Le(E,A){typeof A=="string"&&(A[0]==="'"||A[0]==='"')&&A[A.length-1]===A[0]&&(A=A.substring(1,A.length-1)),(ie(E,v.bools)||ie(E,v.counts))&&typeof A=="string"&&(A=A==="true");let O=Array.isArray(A)?A.map(function(R){return we(E,R)}):we(E,A);return ie(E,v.counts)&&(Vt(O)||typeof O=="boolean")&&(O=Tb()),ie(E,v.normalize)&&ie(E,v.arrays)&&(Array.isArray(A)?O=A.map(R=>yr.normalize(R)):O=yr.normalize(A)),O}function we(E,A){return!a["parse-positional-numbers"]&&E==="_"||!ie(E,v.strings)&&!ie(E,v.bools)&&!Array.isArray(A)&&(ZM(A)&&a["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${A}`)))||!Vt(A)&&ie(E,v.numbers))&&(A=Number(A)),A}function Me(E){let A=Object.create(null);Hi(A,v.aliases,l),Object.keys(v.configs).forEach(function(O){let R=E[O]||A[O];if(R)try{let C=null,j=yr.resolve(yr.cwd(),R),z=v.configs[O];if(typeof z=="function"){try{C=z(j)}catch(Y){C=Y}if(C instanceof Error){x=C;return}}else C=yr.require(j);Ce(C)}catch(C){C.name==="PermissionDenied"?x=C:E[O]&&(x=Error(S("Invalid JSON config file: %s",R)))}})}function Ce(E,A){Object.keys(E).forEach(function(O){let R=E[O],C=A?A+"."+O:O;typeof R=="object"&&R!==null&&!Array.isArray(R)&&a["dot-notation"]?Ce(R,C):(!Er(be,C.split("."))||ie(C,v.arrays)&&a["combine-arrays"])&&$(C,R)})}function Ue(){typeof c!="undefined"&&c.forEach(function(E){Ce(E)})}function he(E,A){if(typeof d=="undefined")return;let O=typeof d=="string"?d:"",R=yr.env();Object.keys(R).forEach(function(C){if(O===""||C.lastIndexOf(O,0)===0){let j=C.split("__").map(function(z,Y){return Y===0&&(z=z.substring(O.length)),jo(z)});(A&&v.configs[j.join(".")]||!A)&&!Er(E,j)&&$(j.join("."),R[C])}})}function it(E){let A,O=new Set;Object.keys(E).forEach(function(R){if(!O.has(R)&&(A=ie(R,v.coercions),typeof A=="function"))try{let C=we(R,A(E[R]));[].concat(v.aliases[R]||[],R).forEach(j=>{O.add(j),E[j]=C})}catch(C){x=C}})}function De(E){return v.keys.forEach(A=>{~A.indexOf(".")||typeof E[A]=="undefined"&&(E[A]=void 0)}),E}function Hi(E,A,O,R=!1){Object.keys(O).forEach(function(C){Er(E,C.split("."))||(Re(E,C.split("."),O[C]),R&&(b[C]=!0),(A[C]||[]).forEach(function(j){Er(E,j.split("."))||Re(E,j.split("."),O[C])}))})}function Er(E,A){let O=E;a["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(C){O=O[C]||{}});let R=A[A.length-1];return typeof O!="object"?!1:R in O}function Re(E,A,O){let R=E;a["dot-notation"]||(A=[A.join(".")]),A.slice(0,-1).forEach(function(Fe){Fe=tk(Fe),typeof R=="object"&&R[Fe]===void 0&&(R[Fe]={}),typeof R[Fe]!="object"||Array.isArray(R[Fe])?(Array.isArray(R[Fe])?R[Fe].push({}):R[Fe]=[R[Fe],{}],R=R[Fe][R[Fe].length-1]):R=R[Fe]});let C=tk(A[A.length-1]),j=ie(A.join("."),v.arrays),z=Array.isArray(O),Y=a["duplicate-arguments-array"];!Y&&ie(C,v.nargs)&&(Y=!0,(!Vt(R[C])&&v.nargs[C]===1||Array.isArray(R[C])&&R[C].length===v.nargs[C])&&(R[C]=void 0)),O===Tb()?R[C]=Tb(R[C]):Array.isArray(R[C])?Y&&j&&z?R[C]=a["flatten-duplicate-arrays"]?R[C].concat(O):(Array.isArray(R[C][0])?R[C]:[R[C]]).concat([O]):!Y&&Boolean(j)===Boolean(z)?R[C]=O:R[C]=R[C].concat([O]):R[C]===void 0&&j?R[C]=z?O:[O]:Y&&!(R[C]===void 0||ie(C,v.counts)||ie(C,v.bools))?R[C]=[R[C],O]:R[C]=O}function Ar(...E){E.forEach(function(A){Object.keys(A||{}).forEach(function(O){v.aliases[O]||(v.aliases[O]=[].concat(s[O]||[]),v.aliases[O].concat(O).forEach(function(R){if(/-/.test(R)&&a["camel-case-expansion"]){let C=jo(R);C!==O&&v.aliases[O].indexOf(C)===-1&&(v.aliases[O].push(C),g[C]=!0)}}),v.aliases[O].concat(O).forEach(function(R){if(R.length>1&&/[A-Z]/.test(R)&&a["camel-case-expansion"]){let C=XM(R,"-");C!==O&&v.aliases[O].indexOf(C)===-1&&(v.aliases[O].push(C),g[C]=!0)}}),v.aliases[O].forEach(function(R){v.aliases[R]=[O].concat(v.aliases[O].filter(function(C){return R!==C}))}))})})}function ie(E,A){let O=[].concat(v.aliases[E]||[],E),R=Object.keys(A),C=O.find(j=>R.includes(j));return C?A[C]:!1}function je(E){let A=Object.keys(v);return[].concat(A.map(R=>v[R])).some(function(R){return Array.isArray(R)?R.includes(E):R[E]})}function o_(E,...A){return[].concat(...A).some(function(R){let C=E.match(R);return C&&je(C[1])})}function l_(E){if(E.match(I)||!E.match(/^-[^-]+/))return!1;let A=!0,O,R=E.slice(1).split("");for(let C=0;C<R.length;C++){if(O=E.slice(C+2),!je(R[C])){A=!1;break}if(R[C+1]&&R[C+1]==="="||O==="-"||/[A-Za-z]/.test(R[C])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)||R[C+1]&&R[C+1].match(/\W/))break}return A}function Wi(E){return a["unknown-options-as-args"]&&c_(E)}function c_(E){return E=E.replace(/^-{3,}/,"--"),E.match(I)||l_(E)?!1:!o_(E,/^-+([^=]+?)=[\s\S]*$/,L,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ft(E){return!ie(E,v.bools)&&!ie(E,v.counts)&&`${E}`in l?l[E]:Vo(Cr(E))}function Vo(E){return{[yn.BOOLEAN]:!0,[yn.STRING]:"",[yn.NUMBER]:void 0,[yn.ARRAY]:[]}[E]}function Cr(E){let A=yn.BOOLEAN;return ie(E,v.strings)?A=yn.STRING:ie(E,v.numbers)?A=yn.NUMBER:ie(E,v.bools)?A=yn.BOOLEAN:ie(E,v.arrays)&&(A=yn.ARRAY),A}function Vt(E){return E===void 0}function d_(){Object.keys(v.counts).find(E=>ie(E,v.arrays)?(x=Error(S("Invalid configuration: %s, opts.count excludes opts.array.",E)),!0):ie(E,v.nargs)?(x=Error(S("Invalid configuration: %s, opts.count excludes opts.narg.",E)),!0):!1)}return{aliases:Object.assign({},v.aliases),argv:Object.assign(on,be),configuration:a,defaulted:Object.assign({},b),error:x,newAliases:Object.assign({},g)}}};function spe(e){let t=[],n=Object.create(null),r=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});r;){r=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(l){return t[s].indexOf(l)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),r=!0;break}}return t.forEach(function(i){i=i.filter(function(a,l,c){return c.indexOf(a)===l});let s=i.pop();s!==void 0&&typeof s=="string"&&(n[s]=i)}),n}function Tb(e){return e!==void 0?e+1:1}function tk(e){return e==="__proto__"?"___proto___":e}var nk=process&&process.env&&process.env.YARGS_MIN_NODE_VERSION?Number(process.env.YARGS_MIN_NODE_VERSION):10;if(process&&process.version&&Number(process.version.match(/v([^.]+)/)[1])<nk)throw Error(`yargs parser supports a minimum Node.js version of ${nk}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var ape=process?process.env:{},rk=new ek({cwd:process.cwd,env:()=>ape,format:npe.format,normalize:QM.normalize,resolve:QM.resolve,require:e=>{if(typeof require!="undefined")return require(e);if(e.match(/\.json$/))return rpe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),zo=function(t,n){return rk.parse(t.slice(),n).argv};zo.detailed=function(e,t){return rk.parse(e.slice(),t)};zo.camelCase=jo;zo.decamelize=XM;zo.looksLikeNumber=ZM;ik.exports=zo});var Hk=p((Bo,la)=>{var ope=200,ak="__lodash_hash_undefined__",ok=9007199254740991,xb="[object Arguments]",lpe="[object Array]",lk="[object Boolean]",ck="[object Date]",cpe="[object Error]",Ib="[object Function]",dk="[object GeneratorFunction]",Kp="[object Map]",uk="[object Number]",Rb="[object Object]",mk="[object Promise]",fk="[object RegExp]",Vp="[object Set]",pk="[object String]",_k="[object Symbol]",Nb="[object WeakMap]",hk="[object ArrayBuffer]",Hp="[object DataView]",gk="[object Float32Array]",yk="[object Float64Array]",vk="[object Int8Array]",bk="[object Int16Array]",Sk="[object Int32Array]",wk="[object Uint8Array]",Ek="[object Uint8ClampedArray]",Ak="[object Uint16Array]",Ck="[object Uint32Array]",dpe=/[\\^$.*+?()[\]{}|]/g,upe=/\w*$/,mpe=/^\[object .+?Constructor\]$/,fpe=/^(?:0|[1-9]\d*)$/,Ie={};Ie[xb]=Ie[lpe]=Ie[hk]=Ie[Hp]=Ie[lk]=Ie[ck]=Ie[gk]=Ie[yk]=Ie[vk]=Ie[bk]=Ie[Sk]=Ie[Kp]=Ie[uk]=Ie[Rb]=Ie[fk]=Ie[Vp]=Ie[pk]=Ie[_k]=Ie[wk]=Ie[Ek]=Ie[Ak]=Ie[Ck]=!0;Ie[cpe]=Ie[Ib]=Ie[Nb]=!1;var ppe=typeof global=="object"&&global&&global.Object===Object&&global,_pe=typeof self=="object"&&self&&self.Object===Object&&self,vr=ppe||_pe||Function("return this")(),Tk=typeof Bo=="object"&&Bo&&!Bo.nodeType&&Bo,xk=Tk&&typeof la=="object"&&la&&!la.nodeType&&la,hpe=xk&&xk.exports===Tk;function gpe(e,t){return e.set(t[0],t[1]),e}function ype(e,t){return e.add(t),e}function vpe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function bpe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Ik(e,t,n,r){var i=-1,s=e?e.length:0;for(r&&s&&(n=e[++i]);++i<s;)n=t(n,e[i],i,e);return n}function Spe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function wpe(e,t){return e==null?void 0:e[t]}function Rk(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Nk(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Pb(e,t){return function(n){return e(t(n))}}function Pk(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var Epe=Array.prototype,Ape=Function.prototype,Wp=Object.prototype,Db=vr["__core-js_shared__"],Dk=function(){var e=/[^.]+$/.exec(Db&&Db.keys&&Db.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Ok=Ape.toString,si=Wp.hasOwnProperty,Yp=Wp.toString,Cpe=RegExp("^"+Ok.call(si).replace(dpe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Lk=hpe?vr.Buffer:void 0,qk=vr.Symbol,Mk=vr.Uint8Array,Tpe=Pb(Object.getPrototypeOf,Object),xpe=Object.create,Ipe=Wp.propertyIsEnumerable,Rpe=Epe.splice,kk=Object.getOwnPropertySymbols,Npe=Lk?Lk.isBuffer:void 0,Ppe=Pb(Object.keys,Object),Ob=oa(vr,"DataView"),Uo=oa(vr,"Map"),Lb=oa(vr,"Promise"),qb=oa(vr,"Set"),Mb=oa(vr,"WeakMap"),Fo=oa(Object,"create"),Dpe=Ki(Ob),Ope=Ki(Uo),Lpe=Ki(Lb),qpe=Ki(qb),Mpe=Ki(Mb),jk=qk?qk.prototype:void 0,zk=jk?jk.valueOf:void 0;function Gi(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 kpe(){this.__data__=Fo?Fo(null):{}}function jpe(e){return this.has(e)&&delete this.__data__[e]}function zpe(e){var t=this.__data__;if(Fo){var n=t[e];return n===ak?void 0:n}return si.call(t,e)?t[e]:void 0}function Upe(e){var t=this.__data__;return Fo?t[e]!==void 0:si.call(t,e)}function Fpe(e,t){var n=this.__data__;return n[e]=Fo&&t===void 0?ak:t,this}Gi.prototype.clear=kpe;Gi.prototype.delete=jpe;Gi.prototype.get=zpe;Gi.prototype.has=Upe;Gi.prototype.set=Fpe;function br(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 Bpe(){this.__data__=[]}function Gpe(e){var t=this.__data__,n=Jp(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():Rpe.call(t,n,1),!0}function $pe(e){var t=this.__data__,n=Jp(t,e);return n<0?void 0:t[n][1]}function Kpe(e){return Jp(this.__data__,e)>-1}function Vpe(e,t){var n=this.__data__,r=Jp(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}br.prototype.clear=Bpe;br.prototype.delete=Gpe;br.prototype.get=$pe;br.prototype.has=Kpe;br.prototype.set=Vpe;function sa(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 Hpe(){this.__data__={hash:new Gi,map:new(Uo||br),string:new Gi}}function Wpe(e){return Qp(this,e).delete(e)}function Ype(e){return Qp(this,e).get(e)}function Jpe(e){return Qp(this,e).has(e)}function Qpe(e,t){return Qp(this,e).set(e,t),this}sa.prototype.clear=Hpe;sa.prototype.delete=Wpe;sa.prototype.get=Ype;sa.prototype.has=Jpe;sa.prototype.set=Qpe;function aa(e){this.__data__=new br(e)}function Xpe(){this.__data__=new br}function Zpe(e){return this.__data__.delete(e)}function e_e(e){return this.__data__.get(e)}function t_e(e){return this.__data__.has(e)}function n_e(e,t){var n=this.__data__;if(n instanceof br){var r=n.__data__;if(!Uo||r.length<ope-1)return r.push([e,t]),this;n=this.__data__=new sa(r)}return n.set(e,t),this}aa.prototype.clear=Xpe;aa.prototype.delete=Zpe;aa.prototype.get=e_e;aa.prototype.has=t_e;aa.prototype.set=n_e;function r_e(e,t){var n=zb(e)||x_e(e)?Spe(e.length,String):[],r=n.length,i=!!r;for(var s in e)(t||si.call(e,s))&&!(i&&(s=="length"||E_e(s,r)))&&n.push(s);return n}function Uk(e,t,n){var r=e[t];(!(si.call(e,t)&&$k(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Jp(e,t){for(var n=e.length;n--;)if($k(e[n][0],t))return n;return-1}function i_e(e,t){return e&&Fk(t,Ub(t),e)}function kb(e,t,n,r,i,s,a){var l;if(r&&(l=s?r(e,i,s,a):r(e)),l!==void 0)return l;if(!Xp(e))return e;var c=zb(e);if(c){if(l=b_e(e),!t)return g_e(e,l)}else{var d=$i(e),u=d==Ib||d==dk;if(R_e(e))return d_e(e,t);if(d==Rb||d==xb||u&&!s){if(Rk(e))return s?e:{};if(l=S_e(u?{}:e),!t)return y_e(e,i_e(l,e))}else{if(!Ie[d])return s?e:{};l=w_e(e,d,kb,t)}}a||(a=new aa);var _=a.get(e);if(_)return _;if(a.set(e,l),!c)var g=n?v_e(e):Ub(e);return vpe(g||e,function(b,S){g&&(S=b,b=e[S]),Uk(l,S,kb(b,t,n,r,S,e,a))}),l}function s_e(e){return Xp(e)?xpe(e):{}}function a_e(e,t,n){var r=t(e);return zb(e)?r:bpe(r,n(e))}function o_e(e){return Yp.call(e)}function l_e(e){if(!Xp(e)||C_e(e))return!1;var t=Vk(e)||Rk(e)?Cpe:mpe;return t.test(Ki(e))}function c_e(e){if(!Gk(e))return Ppe(e);var t=[];for(var n in Object(e))si.call(e,n)&&n!="constructor"&&t.push(n);return t}function d_e(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function jb(e){var t=new e.constructor(e.byteLength);return new Mk(t).set(new Mk(e)),t}function u_e(e,t){var n=t?jb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function m_e(e,t,n){var r=t?n(Nk(e),!0):Nk(e);return Ik(r,gpe,new e.constructor)}function f_e(e){var t=new e.constructor(e.source,upe.exec(e));return t.lastIndex=e.lastIndex,t}function p_e(e,t,n){var r=t?n(Pk(e),!0):Pk(e);return Ik(r,ype,new e.constructor)}function __e(e){return zk?Object(zk.call(e)):{}}function h_e(e,t){var n=t?jb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function g_e(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function Fk(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var a=t[i],l=r?r(n[a],e[a],a,n,e):void 0;Uk(n,a,l===void 0?e[a]:l)}return n}function y_e(e,t){return Fk(e,Bk(e),t)}function v_e(e){return a_e(e,Ub,Bk)}function Qp(e,t){var n=e.__data__;return A_e(t)?n[typeof t=="string"?"string":"hash"]:n.map}function oa(e,t){var n=wpe(e,t);return l_e(n)?n:void 0}var Bk=kk?Pb(kk,Object):D_e,$i=o_e;(Ob&&$i(new Ob(new ArrayBuffer(1)))!=Hp||Uo&&$i(new Uo)!=Kp||Lb&&$i(Lb.resolve())!=mk||qb&&$i(new qb)!=Vp||Mb&&$i(new Mb)!=Nb)&&($i=function(e){var t=Yp.call(e),n=t==Rb?e.constructor:void 0,r=n?Ki(n):void 0;if(r)switch(r){case Dpe:return Hp;case Ope:return Kp;case Lpe:return mk;case qpe:return Vp;case Mpe:return Nb}return t});function b_e(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&si.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function S_e(e){return typeof e.constructor=="function"&&!Gk(e)?s_e(Tpe(e)):{}}function w_e(e,t,n,r){var i=e.constructor;switch(t){case hk:return jb(e);case lk:case ck:return new i(+e);case Hp:return u_e(e,r);case gk:case yk:case vk:case bk:case Sk:case wk:case Ek:case Ak:case Ck:return h_e(e,r);case Kp:return m_e(e,r,n);case uk:case pk:return new i(e);case fk:return f_e(e);case Vp:return p_e(e,r,n);case _k:return __e(e)}}function E_e(e,t){return t=t??ok,!!t&&(typeof e=="number"||fpe.test(e))&&e>-1&&e%1==0&&e<t}function A_e(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function C_e(e){return!!Dk&&Dk in e}function Gk(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Wp;return e===n}function Ki(e){if(e!=null){try{return Ok.call(e)}catch{}try{return e+""}catch{}}return""}function T_e(e){return kb(e,!0,!0)}function $k(e,t){return e===t||e!==e&&t!==t}function x_e(e){return I_e(e)&&si.call(e,"callee")&&(!Ipe.call(e,"callee")||Yp.call(e)==xb)}var zb=Array.isArray;function Kk(e){return e!=null&&N_e(e.length)&&!Vk(e)}function I_e(e){return P_e(e)&&Kk(e)}var R_e=Npe||O_e;function Vk(e){var t=Xp(e)?Yp.call(e):"";return t==Ib||t==dk}function N_e(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ok}function Xp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function P_e(e){return!!e&&typeof e=="object"}function Ub(e){return Kk(e)?r_e(e):c_e(e)}function D_e(){return[]}function O_e(){return!1}la.exports=T_e});var rj=p((MAe,nj)=>{"use strict";var L_e=require("fs"),q_e=sk(),ca=Hk();function ai(e,t){if(!e)throw new Error(t)}function Wk(e){return Number.isInteger(e)&&e>=0&&e<=65535}function Fb(e){return String(e).includes("\\\\.\\pipe\\")}var Go={"*":function(){},int:function(e){ai(Number.isInteger(e),"must be an integer")},nat:function(e){ai(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){ai(Wk(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){ai(Fb(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){Fb(e)||ai(Wk(e),"must be a windows named pipe or a number within range 0 - 65535")}};Go.integer=Go.int;var Bb=new Map,Gb={"*":JSON.parse},M_e="strict",Yk="warn";function Jk(e,t){let n=Object.keys(e),r,i=[];for(;n.length;){r=n.shift();let a=da(e,r);if(typeof a=="object"&&!Array.isArray(a)&&a!=null){if(t)if("_cvtProperties"in a)a=a._cvtProperties,r=r+"._cvtProperties";else{i.push([r,a]);continue}let l=Object.keys(a);if(l.length>0){l.forEach(function(c){n.push(r+"."+c)});continue}}i.push([r,a])}let s={};return i.forEach(function(a){let l=a[0];t&&(l=l.replace(/\._cvtProperties/g,""));let c=a[1];s[l]=c}),s}function k_e(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},i=Jk(e),s=Jk(t._cvtProperties,!0);return Object.keys(s).forEach(function(a){let l=s[a],c=i[a];if(!(a in i))try{if(typeof l.default=="object"&&!Array.isArray(l.default))c=da(e,a);else throw new Error("missing")}catch{let u=new Error("configuration param '"+a+"' missing from config, did you override its parent?");r.missing.push(u);return}if(delete i[a],(l.format==="object"||typeof l.default=="object")&&Object.keys(i).filter(function(d){return d.lastIndexOf(a+".",0)===0}).forEach(function(d){delete i[d]}),!(typeof l.default=="undefined"&&c===l.default))try{l._format(c)}catch(d){r.invalid_type.push(d)}}),n&&Object.keys(i).forEach(function(a){let l=new Error("configuration param '"+a+"' not declared in the schema");r.undeclared.push(l)}),r}function j_e(e,t){ai(e.indexOf(t)!==-1,"must be one of the possible values: "+JSON.stringify(e))}var $b={Object,Array,String,Number,Boolean,RegExp},Qk=Object.keys($b),z_e=Qk.map(function(e){return $b[e]});function Xk(e,t,n,r,i,s,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(u){Xk(u,t[u],n[e]._cvtProperties,r+"."+u,i,s,a)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let l=ca(t);if(n[e]=l,l.env&&(i[l.env]||(i[l.env]=[]),i[l.env].push(r)),l.arg){if(s[l.arg])throw new Error("'"+r+"' reuses a command-line argument: "+l.arg);s[l.arg]=r}l.sensitive===!0&&a.add(r);let c=l.format,d;if(z_e.indexOf(c)>=0||Qk.indexOf(c)>=0){let u=typeof c=="string"?$b[c]:c;d=function(_){ai(Object.prototype.toString.call(_)==Object.prototype.toString.call(new u),"must be of type "+u.name)},l.format=u.name.toLowerCase()}else if(typeof c=="string"){if(!Go[c])throw new Error("'"+r+"' uses an unknown format type: "+c);d=Go[c]}else if(Array.isArray(c))d=j_e.bind(null,c);else if(typeof c=="function")d=c;else if(c&&typeof c!="function")throw new Error("'"+r+"': `format` must be a function or a known format type.");if(!d&&!c){let u=Object.prototype.toString.call(l.default);d=function(_){ai(Object.prototype.toString.call(_)==u," should be of type "+u.replace(/\[.* |]/g,""))}}l._format=function(u){if(!(this.nullable&&u===null))try{d(u,this)}catch(_){throw _.fullName=r,_.value=u,_}}}function Kb(e){let t=e.getEnv();Object.keys(e._env).forEach(function(n){t[n]!==void 0&&e._env[n].forEach(function(i){e.set(i,t[n])})})}function Vb(e){let t=q_e(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 Zk(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let i=e._cvtProperties[r];if(i._cvtProperties){let s=t[r]||{};Zk(i,s,n),t[r]=s}else t[r]=Wb(r,ca(i.default),e,n)})}function ej(e){return typeof e=="object"&&e!==null}function Hb(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!ej(e[r])||!n||n.format==="object"?t[r]=Wb(r,e[r],n):(ej(t[r])||(t[r]={}),Hb(e[r],t[r],n._cvtProperties[r]))})}function U_e(e,t){let n=t.split("."),r=e;for(;n.length>0;){let i=n.shift();if(r&&r._cvtProperties&&r._cvtProperties[i])r=r._cvtProperties[i];else{r=null;break}}return r}function F_e(e,t){let n=U_e(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function Wb(e,t,n,r){let i=F_e(n,e);if(typeof t=="string"){if(Bb.has(i))return Bb.get(i)(t,r,e);switch(i){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=Fb(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 tj(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Gb[n]||Gb["*"])(L_e.readFileSync(e,"utf-8"))}function da(e,t,n){if(t){let r=t.split(".");for(;r.length;){let i=r.shift();if(n&&e[i]==null)e[i]={},e=e[i];else if(i in e)e=e[i];else throw new Error("cannot find configuration param '"+t+"'")}}return e}var $o=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 ca(this._instance)},toString:function(){let i=ca(this._instance);return this._sensitive.forEach(function(s){let a=s.split("."),l=a.pop(),c=a.join("."),d=da(i,c);d[l]="[Sensitive]"}),JSON.stringify(i,null,2)},getSchema:function(){return JSON.parse(JSON.stringify(this._schema))},getSchemaString:function(){return JSON.stringify(this._schema,null,2)},get:function(i){let s=da(this._instance,i);return ca(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=da(this._schema._cvtProperties,i);return ca(s)},reset:function(i){this.set(i,this.default(i))},has:function(i){try{return typeof this.get(i)!="undefined"}catch{return!1}},set:function(i,s){s=Wb(i,s,this._schema,this);let a=i.split("."),l=a.pop(),c=a.join(".");if(!(c=="__proto__"||c=="constructor"||c=="prototype")){let d=da(this._instance,c,!0);d[l]=s}return this},load:function(i){return Hb(i,this._instance,this._schema),Kb(r),Vb(r),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(a){let l=tj(a);l&&Hb(l,s._instance,s._schema)}),Kb(r),Vb(r),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||Yk,i.output&&typeof i.output!="function")throw new Error("options.output is optional and must be a function.");let s=i.output||global.console.log,a=k_e(this._instance,this._schema,i.allowed);if(a.invalid_type.length+a.undeclared.length+a.missing.length){let l=this._sensitive,c=function(S){let v="";for(let I=0;I<S.length;I++){v.length&&(v+=`
38
+ `);let L=S[I];L.fullName&&(v+=L.fullName+": "),L.message&&(v+=L.message),L.value&&!l.has(L.fullName)&&(v+=": value was "+JSON.stringify(L.value))}return v},d=c(a.invalid_type),u=c(a.undeclared),_=c(a.missing),g=[d,_];if(i.allowed===Yk&&u.length){let S="Warning:";if(process.stdout.isTTY){let v="\x1B[33;1m",I="\x1B[0m";S=v+S+I}s(S+" "+u)}else i.allowed===M_e&&g.push(u);let b=g.filter(function(S){return S.length}).join(`
39
+ `);if(b.length)throw new Error(b)}return this}};return typeof t=="string"?r._def=tj(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(i){Xk(i,r._def[i],r._schema._cvtProperties,i,r._env,r._argv,r._sensitive)}),r._instance={},Zk(r._schema,r._instance,r),Kb(r),Vb(r),r};$o.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.");Go[e]=t,n&&Bb.set(e,n)};$o.addFormats=function(e){Object.keys(e).forEach(function(t){$o.addFormat(t,e[t].validate,e[t].coerce)})};$o.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");Gb[r]=t.parse})})};nj.exports=$o});var sj=p(ua=>{"use strict";var Zp=ua&&ua.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ua,"__esModule",{value:!0});ua.TSConvict=void 0;var Xn=Zp(Cb()),Yb=Zp(rj()),B_e=Zp(require("fs")),G_e=Zp(require("path")),ij=class{constructor(t){if(this.opts={},!Xn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Xn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser!="undefined"&&Yb.default.addParser(n.parser),typeof n.formats!="undefined"&&Yb.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=Yb.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file!="undefined"&&B_e.default.existsSync(G_e.default.resolve(this.opts.file))&&(n=this.opts.file),typeof t=="string"||Array.isArray(t)){let s;Array.isArray(t)?s=t:s=[t],n!==null&&s.unshift(n),this.client.loadFile(s)}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 i=this.client.getProperties();return this.applyDataToModel(this.baseModel,i)}getSchemaFor(t){let n={};for(let r of Xn.default.getClassProperties(t)){let i=Xn.default.getConvictMetaForProperty(t,r);if(Xn.default.isConstructor(i)&&Xn.default.isConfigClass(i))try{t[r]=new i,n[r]=this.getSchemaFor(t[r])}catch(s){throw console.error(s),new Error("Could not make a new class of "+i)}else n[r]=i}return n}applyDataToModel(t,n){for(let r of Xn.default.getClassProperties(t)){let i=Xn.default.getConvictMetaForProperty(t,r);Xn.default.isConstructor(i)&&Xn.default.isConfigClass(i)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};ua.TSConvict=ij});var e_=p(Sr=>{"use strict";var $_e=Sr&&Sr.__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]}),Jb=Sr&&Sr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$_e(t,e,n)};Object.defineProperty(Sr,"__esModule",{value:!0});Jb(WM(),Sr);Jb(JM(),Sr);Jb(sj(),Sr)});var Z_e={};pj(Z_e,{handler:()=>J_e,overrideDBManager:()=>V_e});zS().install();var US;(function(e){(function(t){var n=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),r=i(e);typeof n.Reflect=="undefined"?n.Reflect=e:r=i(n.Reflect,r),t(r);function i(s,a){return function(l,c){typeof s[l]!="function"&&Object.defineProperty(s,l,{configurable:!0,writable:!0,value:c}),a&&a(l,c)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive!="undefined"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator!="undefined"?Symbol.iterator:"@@iterator",a=typeof Object.create=="function",l={__proto__:[]}instanceof Array,c=!a&&!l,d={create:a?function(){return Qe(Object.create(null))}:l?function(){return Qe({__proto__:null})}:function(){return Qe({})},has:c?function(T,N){return n.call(T,N)}:function(T,N){return N in T},get:c?function(T,N){return n.call(T,N)?T[N]:void 0}:function(T,N){return T[N]}},u=Object.getPrototypeOf(Function),_=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",g=!_&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:z(),b=!_&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Y(),S=!_&&typeof WeakMap=="function"?WeakMap:Fe(),v=new S;function I(T,N,D,k){if(Re(D)){if(!Vo(T))throw new TypeError;if(!Vt(N))throw new TypeError;return fe(T,N)}else{if(!Vo(T))throw new TypeError;if(!je(N))throw new TypeError;if(!je(k)&&!Re(k)&&!Ar(k))throw new TypeError;return Ar(k)&&(k=void 0),D=ft(D),Le(T,N,D,k)}}t("decorate",I);function L(T,N){function D(k,V){if(!je(k))throw new TypeError;if(!Re(V)&&!d_(V))throw new TypeError;it(T,N,k,V)}return D}t("metadata",L);function x(T,N,D,k){if(!je(D))throw new TypeError;return Re(k)||(k=ft(k)),it(T,N,D,k)}t("defineMetadata",x);function re(T,N,D){if(!je(N))throw new TypeError;return Re(D)||(D=ft(D)),Me(T,N,D)}t("hasMetadata",re);function be(T,N,D){if(!je(N))throw new TypeError;return Re(D)||(D=ft(D)),Ce(T,N,D)}t("hasOwnMetadata",be);function on(T,N,D){if(!je(N))throw new TypeError;return Re(D)||(D=ft(D)),Ue(T,N,D)}t("getMetadata",on);function wr(T,N,D){if(!je(N))throw new TypeError;return Re(D)||(D=ft(D)),he(T,N,D)}t("getOwnMetadata",wr);function vn(T,N){if(!je(T))throw new TypeError;return Re(N)||(N=ft(N)),De(T,N)}t("getMetadataKeys",vn);function Q(T,N){if(!je(T))throw new TypeError;return Re(N)||(N=ft(N)),Hi(T,N)}t("getOwnMetadataKeys",Q);function $(T,N,D){if(!je(N))throw new TypeError;Re(D)||(D=ft(D));var k=we(N,D,!1);if(Re(k)||!k.delete(T))return!1;if(k.size>0)return!0;var V=v.get(N);return V.delete(D),V.size>0||v.delete(N),!0}t("deleteMetadata",$);function fe(T,N){for(var D=T.length-1;D>=0;--D){var k=T[D],V=k(N);if(!Re(V)&&!Ar(V)){if(!Vt(V))throw new TypeError;N=V}}return N}function Le(T,N,D,k){for(var V=T.length-1;V>=0;--V){var st=T[V],le=st(N,D,k);if(!Re(le)&&!Ar(le)){if(!je(le))throw new TypeError;k=le}}return k}function we(T,N,D){var k=v.get(T);if(Re(k)){if(!D)return;k=new g,v.set(T,k)}var V=k.get(N);if(Re(V)){if(!D)return;V=new g,k.set(N,V)}return V}function Me(T,N,D){var k=Ce(T,N,D);if(k)return!0;var V=j(N);return Ar(V)?!1:Me(T,V,D)}function Ce(T,N,D){var k=we(N,D,!1);return Re(k)?!1:Wi(k.has(T))}function Ue(T,N,D){var k=Ce(T,N,D);if(k)return he(T,N,D);var V=j(N);if(!Ar(V))return Ue(T,V,D)}function he(T,N,D){var k=we(N,D,!1);if(!Re(k))return k.get(T)}function it(T,N,D,k){var V=we(D,k,!0);V.set(T,N)}function De(T,N){var D=Hi(T,N),k=j(T);if(k===null)return D;var V=De(k,N);if(V.length<=0)return D;if(D.length<=0)return V;for(var st=new b,le=[],de=0,X=D;de<X.length;de++){var ge=X[de],ye=st.has(ge);ye||(st.add(ge),le.push(ge))}for(var Tr=0,eS=V;Tr<eS.length;Tr++){var ge=eS[Tr],ye=st.has(ge);ye||(st.add(ge),le.push(ge))}return le}function Hi(T,N){var D=[],k=we(T,N,!1);if(Re(k))return D;for(var V=k.keys(),st=A(V),le=0;;){var de=R(st);if(!de)return D.length=le,D;var X=O(de);try{D[le]=X}catch(ge){try{C(st)}finally{throw ge}}le++}}function Er(T){if(T===null)return 1;switch(typeof T){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return T===null?1:6;default:return 6}}function Re(T){return T===void 0}function Ar(T){return T===null}function ie(T){return typeof T=="symbol"}function je(T){return typeof T=="object"?T!==null:typeof T=="function"}function o_(T,N){switch(Er(T)){case 0:return T;case 1:return T;case 2:return T;case 3:return T;case 4:return T;case 5:return T}var D=N===3?"string":N===5?"number":"default",k=E(T,i);if(k!==void 0){var V=k.call(T,D);if(je(V))throw new TypeError;return V}return l_(T,D==="default"?"number":D)}function l_(T,N){if(N==="string"){var D=T.toString;if(Cr(D)){var k=D.call(T);if(!je(k))return k}var V=T.valueOf;if(Cr(V)){var k=V.call(T);if(!je(k))return k}}else{var V=T.valueOf;if(Cr(V)){var k=V.call(T);if(!je(k))return k}var st=T.toString;if(Cr(st)){var k=st.call(T);if(!je(k))return k}}throw new TypeError}function Wi(T){return!!T}function c_(T){return""+T}function ft(T){var N=o_(T,3);return ie(N)?N:c_(N)}function Vo(T){return Array.isArray?Array.isArray(T):T instanceof Object?T instanceof Array:Object.prototype.toString.call(T)==="[object Array]"}function Cr(T){return typeof T=="function"}function Vt(T){return typeof T=="function"}function d_(T){switch(Er(T)){case 3:return!0;case 4:return!0;default:return!1}}function E(T,N){var D=T[N];if(D!=null){if(!Cr(D))throw new TypeError;return D}}function A(T){var N=E(T,s);if(!Cr(N))throw new TypeError;var D=N.call(T);if(!je(D))throw new TypeError;return D}function O(T){return T.value}function R(T){var N=T.next();return N.done?!1:N}function C(T){var N=T.return;N&&N.call(T)}function j(T){var N=Object.getPrototypeOf(T);if(typeof T!="function"||T===u||N!==u)return N;var D=T.prototype,k=D&&Object.getPrototypeOf(D);if(k==null||k===Object.prototype)return N;var V=k.constructor;return typeof V!="function"||V===T?N:V}function z(){var T={},N=[],D=function(){function le(de,X,ge){this._index=0,this._keys=de,this._values=X,this._selector=ge}return le.prototype["@@iterator"]=function(){return this},le.prototype[s]=function(){return this},le.prototype.next=function(){var de=this._index;if(de>=0&&de<this._keys.length){var X=this._selector(this._keys[de],this._values[de]);return de+1>=this._keys.length?(this._index=-1,this._keys=N,this._values=N):this._index++,{value:X,done:!1}}return{value:void 0,done:!0}},le.prototype.throw=function(de){throw this._index>=0&&(this._index=-1,this._keys=N,this._values=N),de},le.prototype.return=function(de){return this._index>=0&&(this._index=-1,this._keys=N,this._values=N),{value:de,done:!0}},le}();return function(){function le(){this._keys=[],this._values=[],this._cacheKey=T,this._cacheIndex=-2}return Object.defineProperty(le.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),le.prototype.has=function(de){return this._find(de,!1)>=0},le.prototype.get=function(de){var X=this._find(de,!1);return X>=0?this._values[X]:void 0},le.prototype.set=function(de,X){var ge=this._find(de,!0);return this._values[ge]=X,this},le.prototype.delete=function(de){var X=this._find(de,!1);if(X>=0){for(var ge=this._keys.length,ye=X+1;ye<ge;ye++)this._keys[ye-1]=this._keys[ye],this._values[ye-1]=this._values[ye];return this._keys.length--,this._values.length--,de===this._cacheKey&&(this._cacheKey=T,this._cacheIndex=-2),!0}return!1},le.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=T,this._cacheIndex=-2},le.prototype.keys=function(){return new D(this._keys,this._values,k)},le.prototype.values=function(){return new D(this._keys,this._values,V)},le.prototype.entries=function(){return new D(this._keys,this._values,st)},le.prototype["@@iterator"]=function(){return this.entries()},le.prototype[s]=function(){return this.entries()},le.prototype._find=function(de,X){return this._cacheKey!==de&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=de)),this._cacheIndex<0&&X&&(this._cacheIndex=this._keys.length,this._keys.push(de),this._values.push(void 0)),this._cacheIndex},le}();function k(le,de){return le}function V(le,de){return de}function st(le,de){return[le,de]}}function Y(){return function(){function T(){this._map=new g}return Object.defineProperty(T.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),T.prototype.has=function(N){return this._map.has(N)},T.prototype.add=function(N){return this._map.set(N,N),this},T.prototype.delete=function(N){return this._map.delete(N)},T.prototype.clear=function(){this._map.clear()},T.prototype.keys=function(){return this._map.keys()},T.prototype.values=function(){return this._map.values()},T.prototype.entries=function(){return this._map.entries()},T.prototype["@@iterator"]=function(){return this.keys()},T.prototype[s]=function(){return this.keys()},T}()}function Fe(){var T=16,N=d.create(),D=k();return function(){function X(){this._key=k()}return X.prototype.has=function(ge){var ye=V(ge,!1);return ye!==void 0?d.has(ye,this._key):!1},X.prototype.get=function(ge){var ye=V(ge,!1);return ye!==void 0?d.get(ye,this._key):void 0},X.prototype.set=function(ge,ye){var Tr=V(ge,!0);return Tr[this._key]=ye,this},X.prototype.delete=function(ge){var ye=V(ge,!1);return ye!==void 0?delete ye[this._key]:!1},X.prototype.clear=function(){this._key=k()},X}();function k(){var X;do X="@@WeakMap@@"+de();while(d.has(N,X));return N[X]=!0,X}function V(X,ge){if(!n.call(X,D)){if(!ge)return;Object.defineProperty(X,D,{value:d.create()})}return X[D]}function st(X,ge){for(var ye=0;ye<ge;++ye)X[ye]=Math.random()*255|0;return X}function le(X){return typeof Uint8Array=="function"?typeof crypto!="undefined"?crypto.getRandomValues(new Uint8Array(X)):typeof msCrypto!="undefined"?msCrypto.getRandomValues(new Uint8Array(X)):st(new Uint8Array(X),X):st(new Array(X),X)}function de(){var X=le(T);X[6]=X[6]&79|64,X[8]=X[8]&191|128;for(var ge="",ye=0;ye<T;++ye){var Tr=X[ye];(ye===4||ye===6||ye===8)&&(ge+="-"),Tr<16&&(ge+="0"),ge+=Tr.toString(16).toLowerCase()}return ge}}function Qe(T){return T.__=void 0,delete T.__,T}})})(US||(US={}));var i_=bn(require("path")),lj=bn(wt()),Vi=bn(RO()),s_=bn(Qv()),Xb=bn(Wq());var r_=bn(sM());function aM(e){return typeof e=="undefined"||e===null}function Nue(e){return typeof e=="object"&&e!==null}function Pue(e){return Array.isArray(e)?e:aM(e)?[]:[e]}function Due(e,t){var n,r,i,s;if(t)for(s=Object.keys(t),n=0,r=s.length;n<r;n+=1)i=s[n],e[i]=t[i];return e}function Oue(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Lue(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var que=aM,Mue=Nue,kue=Pue,jue=Oue,zue=Lue,Uue=Due,Ze={isNothing:que,isObject:Mue,toArray:kue,repeat:jue,isNegativeZero:zue,extend:Uue};function oM(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
40
 
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
- `+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
- `,c+=Ge.repeat("-",t.indent+f+3+m.pos)+`^
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 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
- `,i?1+l:l):s===_g&&i&&(e.result+=`
41
- `);break}for(r?Yr(g)?(m=!0,e.result+=Ge.repeat(`
42
- `,i?1+l:l)):m?(m=!1,e.result+=Ge.repeat(`
43
- `,l+1)):l===0?i&&(e.result+=" "):e.result+=Ge.repeat(`
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 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
- `,r),s===-1?(a=e.slice(r),r=c):(a=e.slice(r,s+1),r=s+1),a.length&&a!==`
48
- `&&(i+=n),i+=a;return i}function Eg(e,t){return`
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
- `,s=r&&(e[e.length-2]===`
41
+ `+e.mark.snippet),r+" "+n):r}function Oo(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=oM(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Oo.prototype=Object.create(Error.prototype);Oo.prototype.constructor=Oo;Oo.prototype.toString=function(t){return this.name+": "+oM(this,t)};var Lt=Oo;function ub(e,t,n,r,i){var s="",a="",l=Math.floor(i/2)-1;return r-t>l&&(s=" ... ",t=r-l+s.length),n-r>l&&(a=" ...",n=r+l-a.length),{str:s+e.slice(t,n).replace(/\t/g,"\u2192")+a,pos:r-t+s.length}}function mb(e,t){return Ze.repeat(" ",t-e.length)+e}function Fue(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],i=[],s,a=-1;s=n.exec(e.buffer);)i.push(s.index),r.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var l="",c,d,u=Math.min(e.line+t.linesAfter,i.length).toString().length,_=t.maxLength-(t.indent+u+3);for(c=1;c<=t.linesBefore&&!(a-c<0);c++)d=ub(e.buffer,r[a-c],i[a-c],e.position-(r[a]-r[a-c]),_),l=Ze.repeat(" ",t.indent)+mb((e.line-c+1).toString(),u)+" | "+d.str+`
42
+ `+l;for(d=ub(e.buffer,r[a],i[a],e.position,_),l+=Ze.repeat(" ",t.indent)+mb((e.line+1).toString(),u)+" | "+d.str+`
43
+ `,l+=Ze.repeat("-",t.indent+u+3+d.pos)+`^
44
+ `,c=1;c<=t.linesAfter&&!(a+c>=i.length);c++)d=ub(e.buffer,r[a+c],i[a+c],e.position-(r[a]-r[a+c]),_),l+=Ze.repeat(" ",t.indent)+mb((e.line+c+1).toString(),u)+" | "+d.str+`
45
+ `;return l.replace(/\n$/,"")}var Bue=Fue,Gue=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],$ue=["scalar","sequence","mapping"];function Kue(e){var t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(r){t[String(r)]=n})}),t}function Vue(e,t){if(t=t||{},Object.keys(t).forEach(function(n){if(Gue.indexOf(n)===-1)throw new Lt('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=Kue(t.styleAliases||null),$ue.indexOf(this.kind)===-1)throw new Lt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var vt=Vue;function lM(e,t){var n=[];return e[t].forEach(function(r){var i=n.length;n.forEach(function(s,a){s.tag===r.tag&&s.kind===r.kind&&s.multi===r.multi&&(i=a)}),n[i]=r}),n}function Hue(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,n;function r(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,n=arguments.length;t<n;t+=1)arguments[t].forEach(r);return e}function fb(e){return this.extend(e)}fb.prototype.extend=function(t){var n=[],r=[];if(t instanceof vt)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 Lt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(s){if(!(s instanceof vt))throw new Lt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Lt("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Lt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(s){if(!(s instanceof vt))throw new Lt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(fb.prototype);return i.implicit=(this.implicit||[]).concat(n),i.explicit=(this.explicit||[]).concat(r),i.compiledImplicit=lM(i,"implicit"),i.compiledExplicit=lM(i,"explicit"),i.compiledTypeMap=Hue(i.compiledImplicit,i.compiledExplicit),i};var Wue=fb,Yue=new vt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),Jue=new vt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),Que=new vt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),Xue=new Wue({explicit:[Yue,Jue,Que]});function Zue(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function eme(){return null}function tme(e){return e===null}var nme=new vt("tag:yaml.org,2002:null",{kind:"scalar",resolve:Zue,construct:eme,predicate:tme,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function rme(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 ime(e){return e==="true"||e==="True"||e==="TRUE"}function sme(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ame=new vt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:rme,construct:ime,predicate:sme,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 ome(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function lme(e){return 48<=e&&e<=55}function cme(e){return 48<=e&&e<=57}function dme(e){if(e===null)return!1;var t=e.length,n=0,r=!1,i;if(!t)return!1;if(i=e[n],(i==="-"||i==="+")&&(i=e[++n]),i==="0"){if(n+1===t)return!0;if(i=e[++n],i==="b"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(i!=="0"&&i!=="1")return!1;r=!0}return r&&i!=="_"}if(i==="x"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!ome(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}if(i==="o"){for(n++;n<t;n++)if(i=e[n],i!=="_"){if(!lme(e.charCodeAt(n)))return!1;r=!0}return r&&i!=="_"}}if(i==="_")return!1;for(;n<t;n++)if(i=e[n],i!=="_"){if(!cme(e.charCodeAt(n)))return!1;r=!0}return!(!r||i==="_")}function ume(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 mme(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Ze.isNegativeZero(e)}var fme=new vt("tag:yaml.org,2002:int",{kind:"scalar",resolve:dme,construct:ume,predicate:mme,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"]}}),pme=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function _me(e){return!(e===null||!pme.test(e)||e[e.length-1]==="_")}function hme(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 gme=/^[-+]?[0-9]+e/;function yme(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(Ze.isNegativeZero(e))return"-0.0";return n=e.toString(10),gme.test(n)?n.replace("e",".e"):n}function vme(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Ze.isNegativeZero(e))}var bme=new vt("tag:yaml.org,2002:float",{kind:"scalar",resolve:_me,construct:hme,predicate:vme,represent:yme,defaultStyle:"lowercase"}),Sme=Xue.extend({implicit:[nme,ame,fme,bme]}),wme=Sme,cM=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),dM=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 Eme(e){return e===null?!1:cM.exec(e)!==null||dM.exec(e)!==null}function Ame(e){var t,n,r,i,s,a,l,c=0,d=null,u,_,g;if(t=cM.exec(e),t===null&&(t=dM.exec(e)),t===null)throw new Error("Date resolve error");if(n=+t[1],r=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(n,r,i));if(s=+t[4],a=+t[5],l=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(u=+t[10],_=+(t[11]||0),d=(u*60+_)*6e4,t[9]==="-"&&(d=-d)),g=new Date(Date.UTC(n,r,i,s,a,l,c)),d&&g.setTime(g.getTime()-d),g}function Cme(e){return e.toISOString()}var Tme=new vt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Eme,construct:Ame,instanceOf:Date,represent:Cme});function xme(e){return e==="<<"||e===null}var Ime=new vt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:xme}),pb=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
46
+ \r`;function Rme(e){if(e===null)return!1;var t,n,r=0,i=e.length,s=pb;for(n=0;n<i;n++)if(t=s.indexOf(e.charAt(n)),!(t>64)){if(t<0)return!1;r+=6}return r%8===0}function Nme(e){var t,n,r=e.replace(/[\r\n=]/g,""),i=r.length,s=pb,a=0,l=[];for(t=0;t<i;t++)t%4===0&&t&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|s.indexOf(r.charAt(t));return n=i%4*6,n===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):n===18?(l.push(a>>10&255),l.push(a>>2&255)):n===12&&l.push(a>>4&255),new Uint8Array(l)}function Pme(e){var t="",n=0,r,i,s=e.length,a=pb;for(r=0;r<s;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 i=s%3,i===0?(t+=a[n>>18&63],t+=a[n>>12&63],t+=a[n>>6&63],t+=a[n&63]):i===2?(t+=a[n>>10&63],t+=a[n>>4&63],t+=a[n<<2&63],t+=a[64]):i===1&&(t+=a[n>>2&63],t+=a[n<<4&63],t+=a[64],t+=a[64]),t}function Dme(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var Ome=new vt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Rme,construct:Nme,predicate:Dme,represent:Pme}),Lme=Object.prototype.hasOwnProperty,qme=Object.prototype.toString;function Mme(e){if(e===null)return!0;var t=[],n,r,i,s,a,l=e;for(n=0,r=l.length;n<r;n+=1){if(i=l[n],a=!1,qme.call(i)!=="[object Object]")return!1;for(s in i)if(Lme.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function kme(e){return e!==null?e:[]}var jme=new vt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Mme,construct:kme}),zme=Object.prototype.toString;function Ume(e){if(e===null)return!0;var t,n,r,i,s,a=e;for(s=new Array(a.length),t=0,n=a.length;t<n;t+=1){if(r=a[t],zme.call(r)!=="[object Object]"||(i=Object.keys(r),i.length!==1))return!1;s[t]=[i[0],r[i[0]]]}return!0}function Fme(e){if(e===null)return[];var t,n,r,i,s,a=e;for(s=new Array(a.length),t=0,n=a.length;t<n;t+=1)r=a[t],i=Object.keys(r),s[t]=[i[0],r[i[0]]];return s}var Bme=new vt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Ume,construct:Fme}),Gme=Object.prototype.hasOwnProperty;function $me(e){if(e===null)return!0;var t,n=e;for(t in n)if(Gme.call(n,t)&&n[t]!==null)return!1;return!0}function Kme(e){return e!==null?e:{}}var Vme=new vt("tag:yaml.org,2002:set",{kind:"mapping",resolve:$me,construct:Kme}),uM=wme.extend({implicit:[Tme,Ime],explicit:[Ome,jme,Bme,Vme]}),ni=Object.prototype.hasOwnProperty,jp=1,mM=2,fM=3,zp=4,_b=1,Hme=2,pM=3,Wme=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Yme=/[\x85\u2028\u2029]/,Jme=/[,\[\]\{\}]/,_M=/^(?:!|!!|![a-z\-]+!)$/i,hM=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function gM(e){return Object.prototype.toString.call(e)}function Qn(e){return e===10||e===13}function Fi(e){return e===9||e===32}function qt(e){return e===9||e===32||e===10||e===13}function ta(e){return e===44||e===91||e===93||e===123||e===125}function Qme(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Xme(e){return e===120?2:e===117?4:e===85?8:0}function Zme(e){return 48<=e&&e<=57?e-48:-1}function yM(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
47
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function efe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var vM=new Array(256),bM=new Array(256);for(Bi=0;Bi<256;Bi++)vM[Bi]=yM(Bi)?1:0,bM[Bi]=yM(Bi);var Bi;function tfe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||uM,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 SM(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=Bue(n),new Lt(t,n)}function K(e,t){throw SM(e,t)}function Up(e,t){e.onWarning&&e.onWarning.call(null,SM(e,t))}var wM={YAML:function(t,n,r){var i,s,a;t.version!==null&&K(t,"duplication of %YAML directive"),r.length!==1&&K(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),i===null&&K(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&K(t,"unacceptable YAML version of the document"),t.version=r[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Up(t,"unsupported YAML version of the document")},TAG:function(t,n,r){var i,s;r.length!==2&&K(t,"TAG directive accepts exactly two arguments"),i=r[0],s=r[1],_M.test(i)||K(t,"ill-formed tag handle (first argument) of the TAG directive"),ni.call(t.tagMap,i)&&K(t,'there is a previously declared suffix for "'+i+'" tag handle'),hM.test(s)||K(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{K(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function ri(e,t,n,r){var i,s,a,l;if(t<n){if(l=e.input.slice(t,n),r)for(i=0,s=l.length;i<s;i+=1)a=l.charCodeAt(i),a===9||32<=a&&a<=1114111||K(e,"expected valid JSON character");else Wme.test(l)&&K(e,"the stream contains non-printable characters");e.result+=l}}function EM(e,t,n,r){var i,s,a,l;for(Ze.isObject(n)||K(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(n),a=0,l=i.length;a<l;a+=1)s=i[a],ni.call(t,s)||(t[s]=n[s],r[s]=!0)}function na(e,t,n,r,i,s,a,l,c){var d,u;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),d=0,u=i.length;d<u;d+=1)Array.isArray(i[d])&&K(e,"nested arrays are not supported inside keys"),typeof i=="object"&&gM(i[d])==="[object Object]"&&(i[d]="[object Object]");if(typeof i=="object"&&gM(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(d=0,u=s.length;d<u;d+=1)EM(e,t,s[d],n);else EM(e,t,s,n);else!e.json&&!ni.call(n,i)&&ni.call(t,i)&&(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=c||e.position,K(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete n[i];return t}function hb(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++):K(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Je(e,t,n){for(var r=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Fi(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(Qn(i))for(hb(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&Up(e,"deficient indentation"),r}function Fp(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||qt(n)))}function gb(e,t){t===1?e.result+=" ":t>1&&(e.result+=Ze.repeat(`
48
+ `,t-1))}function nfe(e,t,n){var r,i,s,a,l,c,d,u,_=e.kind,g=e.result,b;if(b=e.input.charCodeAt(e.position),qt(b)||ta(b)||b===35||b===38||b===42||b===33||b===124||b===62||b===39||b===34||b===37||b===64||b===96||(b===63||b===45)&&(i=e.input.charCodeAt(e.position+1),qt(i)||n&&ta(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,l=!1;b!==0;){if(b===58){if(i=e.input.charCodeAt(e.position+1),qt(i)||n&&ta(i))break}else if(b===35){if(r=e.input.charCodeAt(e.position-1),qt(r))break}else{if(e.position===e.lineStart&&Fp(e)||n&&ta(b))break;if(Qn(b))if(c=e.line,d=e.lineStart,u=e.lineIndent,Je(e,!1,-1),e.lineIndent>=t){l=!0,b=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=c,e.lineStart=d,e.lineIndent=u;break}}l&&(ri(e,s,a,!1),gb(e,e.line-c),s=a=e.position,l=!1),Fi(b)||(a=e.position+1),b=e.input.charCodeAt(++e.position)}return ri(e,s,a,!1),e.result?!0:(e.kind=_,e.result=g,!1)}function rfe(e,t){var n,r,i;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,r=i=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(ri(e,r,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)r=e.position,e.position++,i=e.position;else return!0;else Qn(n)?(ri(e,r,i,!0),gb(e,Je(e,!1,t)),r=i=e.position):e.position===e.lineStart&&Fp(e)?K(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);K(e,"unexpected end of the stream within a single quoted scalar")}function ife(e,t){var n,r,i,s,a,l;if(l=e.input.charCodeAt(e.position),l!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=r=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return ri(e,n,e.position,!0),e.position++,!0;if(l===92){if(ri(e,n,e.position,!0),l=e.input.charCodeAt(++e.position),Qn(l))Je(e,!1,t);else if(l<256&&vM[l])e.result+=bM[l],e.position++;else if((a=Xme(l))>0){for(i=a,s=0;i>0;i--)l=e.input.charCodeAt(++e.position),(a=Qme(l))>=0?s=(s<<4)+a:K(e,"expected hexadecimal character");e.result+=efe(s),e.position++}else K(e,"unknown escape sequence");n=r=e.position}else Qn(l)?(ri(e,n,r,!0),gb(e,Je(e,!1,t)),n=r=e.position):e.position===e.lineStart&&Fp(e)?K(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}K(e,"unexpected end of the stream within a double quoted scalar")}function sfe(e,t){var n=!0,r,i,s,a=e.tag,l,c=e.anchor,d,u,_,g,b,S=Object.create(null),v,I,L,x;if(x=e.input.charCodeAt(e.position),x===91)u=93,b=!1,l=[];else if(x===123)u=125,b=!0,l={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),x=e.input.charCodeAt(++e.position);x!==0;){if(Je(e,!0,t),x=e.input.charCodeAt(e.position),x===u)return e.position++,e.tag=a,e.anchor=c,e.kind=b?"mapping":"sequence",e.result=l,!0;n?x===44&&K(e,"expected the node content, but found ','"):K(e,"missed comma between flow collection entries"),I=v=L=null,_=g=!1,x===63&&(d=e.input.charCodeAt(e.position+1),qt(d)&&(_=g=!0,e.position++,Je(e,!0,t))),r=e.line,i=e.lineStart,s=e.position,ra(e,t,jp,!1,!0),I=e.tag,v=e.result,Je(e,!0,t),x=e.input.charCodeAt(e.position),(g||e.line===r)&&x===58&&(_=!0,x=e.input.charCodeAt(++e.position),Je(e,!0,t),ra(e,t,jp,!1,!0),L=e.result),b?na(e,l,S,I,v,L,r,i,s):_?l.push(na(e,null,S,I,v,L,r,i,s)):l.push(v),Je(e,!0,t),x=e.input.charCodeAt(e.position),x===44?(n=!0,x=e.input.charCodeAt(++e.position)):n=!1}K(e,"unexpected end of the stream within a flow collection")}function afe(e,t){var n,r,i=_b,s=!1,a=!1,l=t,c=0,d=!1,u,_;if(_=e.input.charCodeAt(e.position),_===124)r=!1;else if(_===62)r=!0;else return!1;for(e.kind="scalar",e.result="";_!==0;)if(_=e.input.charCodeAt(++e.position),_===43||_===45)_b===i?i=_===43?pM:Hme:K(e,"repeat of a chomping mode identifier");else if((u=Zme(_))>=0)u===0?K(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?K(e,"repeat of an indentation width identifier"):(l=t+u-1,a=!0);else break;if(Fi(_)){do _=e.input.charCodeAt(++e.position);while(Fi(_));if(_===35)do _=e.input.charCodeAt(++e.position);while(!Qn(_)&&_!==0)}for(;_!==0;){for(hb(e),e.lineIndent=0,_=e.input.charCodeAt(e.position);(!a||e.lineIndent<l)&&_===32;)e.lineIndent++,_=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>l&&(l=e.lineIndent),Qn(_)){c++;continue}if(e.lineIndent<l){i===pM?e.result+=Ze.repeat(`
49
+ `,s?1+c:c):i===_b&&s&&(e.result+=`
50
+ `);break}for(r?Fi(_)?(d=!0,e.result+=Ze.repeat(`
51
+ `,s?1+c:c)):d?(d=!1,e.result+=Ze.repeat(`
52
+ `,c+1)):c===0?s&&(e.result+=" "):e.result+=Ze.repeat(`
53
+ `,c):e.result+=Ze.repeat(`
54
+ `,s?1+c:c),s=!0,a=!0,c=0,n=e.position;!Qn(_)&&_!==0;)_=e.input.charCodeAt(++e.position);ri(e,n,e.position,!1)}return!0}function AM(e,t){var n,r=e.tag,i=e.anchor,s=[],a,l=!1,c;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),c=e.input.charCodeAt(e.position);c!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,K(e,"tab characters must not be used in indentation")),!(c!==45||(a=e.input.charCodeAt(e.position+1),!qt(a))));){if(l=!0,e.position++,Je(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(n=e.line,ra(e,t,fM,!1,!0),s.push(e.result),Je(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&c!==0)K(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return l?(e.tag=r,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function ofe(e,t,n){var r,i,s,a,l,c,d=e.tag,u=e.anchor,_={},g=Object.create(null),b=null,S=null,v=null,I=!1,L=!1,x;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=_),x=e.input.charCodeAt(e.position);x!==0;){if(!I&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,K(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),s=e.line,(x===63||x===58)&&qt(r))x===63?(I&&(na(e,_,g,b,S,null,a,l,c),b=S=v=null),L=!0,I=!0,i=!0):I?(I=!1,i=!0):K(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,x=r;else{if(a=e.line,l=e.lineStart,c=e.position,!ra(e,n,mM,!1,!0))break;if(e.line===s){for(x=e.input.charCodeAt(e.position);Fi(x);)x=e.input.charCodeAt(++e.position);if(x===58)x=e.input.charCodeAt(++e.position),qt(x)||K(e,"a whitespace character is expected after the key-value separator within a block mapping"),I&&(na(e,_,g,b,S,null,a,l,c),b=S=v=null),L=!0,I=!1,i=!1,b=e.tag,S=e.result;else if(L)K(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=u,!0}else if(L)K(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=d,e.anchor=u,!0}if((e.line===s||e.lineIndent>t)&&(I&&(a=e.line,l=e.lineStart,c=e.position),ra(e,t,zp,!0,i)&&(I?S=e.result:v=e.result),I||(na(e,_,g,b,S,v,a,l,c),b=S=v=null),Je(e,!0,-1),x=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&x!==0)K(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return I&&na(e,_,g,b,S,null,a,l,c),L&&(e.tag=d,e.anchor=u,e.kind="mapping",e.result=_),L}function lfe(e){var t,n=!1,r=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&K(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,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,n){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):K(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!qt(a);)a===33&&(r?K(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),_M.test(i)||K(e,"named tag handle cannot contain such characters"),r=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Jme.test(s)&&K(e,"tag suffix cannot contain flow indicator characters")}s&&!hM.test(s)&&K(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{K(e,"tag name is malformed: "+s)}return n?e.tag=s:ni.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:K(e,'undeclared tag handle "'+i+'"'),!0}function cfe(e){var t,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&K(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!qt(n)&&!ta(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function dfe(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&&!qt(r)&&!ta(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an alias node must contain at least one character"),n=e.input.slice(t,e.position),ni.call(e.anchorMap,n)||K(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Je(e,!0,-1),!0}function ra(e,t,n,r,i){var s,a,l,c=1,d=!1,u=!1,_,g,b,S,v,I;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=l=zp===n||fM===n,r&&Je(e,!0,-1)&&(d=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;lfe(e)||cfe(e);)Je(e,!0,-1)?(d=!0,l=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):l=!1;if(l&&(l=d||i),(c===1||zp===n)&&(jp===n||mM===n?v=t:v=t+1,I=e.position-e.lineStart,c===1?l&&(AM(e,I)||ofe(e,I,v))||sfe(e,v)?u=!0:(a&&afe(e,v)||rfe(e,v)||ife(e,v)?u=!0:dfe(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&K(e,"alias node should not have any properties")):nfe(e,v,jp===n)&&(u=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(u=l&&AM(e,I))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&K(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),_=0,g=e.implicitTypes.length;_<g;_+=1)if(S=e.implicitTypes[_],S.resolve(e.result)){e.result=S.construct(e.result),e.tag=S.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ni.call(e.typeMap[e.kind||"fallback"],e.tag))S=e.typeMap[e.kind||"fallback"][e.tag];else for(S=null,b=e.typeMap.multi[e.kind||"fallback"],_=0,g=b.length;_<g;_+=1)if(e.tag.slice(0,b[_].tag.length)===b[_].tag){S=b[_];break}S||K(e,"unknown tag !<"+e.tag+">"),e.result!==null&&S.kind!==e.kind&&K(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+S.kind+'", not "'+e.kind+'"'),S.resolve(e.result,e.tag)?(e.result=S.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):K(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||u}function ufe(e){var t=e.position,n,r,i,s=!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&&(Je(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),n=e.position;a!==0&&!qt(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(n,e.position),i=[],r.length<1&&K(e,"directive name must not be less than one character in length");a!==0;){for(;Fi(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Qn(a));break}if(Qn(a))break;for(n=e.position;a!==0&&!qt(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(n,e.position))}a!==0&&hb(e),ni.call(wM,r)?wM[r](e,r,i):Up(e,'unknown document directive "'+r+'"')}if(Je(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,Je(e,!0,-1)):s&&K(e,"directives end mark is expected"),ra(e,e.lineIndent-1,zp,!1,!0),Je(e,!0,-1),e.checkLineBreaks&&Yme.test(e.input.slice(t,e.position))&&Up(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Fp(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Je(e,!0,-1));return}if(e.position<e.length-1)K(e,"end of the stream or a document separator is expected");else return}function CM(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
55
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new tfe(e,t),r=e.indexOf("\0");for(r!==-1&&(n.position=r,K(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;)ufe(n);return n.documents}function mfe(e,t,n){t!==null&&typeof t=="object"&&typeof n=="undefined"&&(n=t,t=null);var r=CM(e,n);if(typeof t!="function")return r;for(var i=0,s=r.length;i<s;i+=1)t(r[i])}function ffe(e,t){var n=CM(e,t);if(n.length!==0){if(n.length===1)return n[0];throw new Lt("expected a single document in the stream, but found more")}}var pfe=mfe,_fe=ffe,TM={loadAll:pfe,load:_fe},xM=Object.prototype.toString,IM=Object.prototype.hasOwnProperty,yb=65279,hfe=9,Lo=10,gfe=13,yfe=32,vfe=33,bfe=34,vb=35,Sfe=37,wfe=38,Efe=39,Afe=42,RM=44,Cfe=45,Bp=58,Tfe=61,xfe=62,Ife=63,Rfe=64,NM=91,PM=93,Nfe=96,DM=123,Pfe=124,OM=125,bt={};bt[0]="\\0";bt[7]="\\a";bt[8]="\\b";bt[9]="\\t";bt[10]="\\n";bt[11]="\\v";bt[12]="\\f";bt[13]="\\r";bt[27]="\\e";bt[34]='\\"';bt[92]="\\\\";bt[133]="\\N";bt[160]="\\_";bt[8232]="\\L";bt[8233]="\\P";var Dfe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],Ofe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Lfe(e,t){var n,r,i,s,a,l,c;if(t===null)return{};for(n={},r=Object.keys(t),i=0,s=r.length;i<s;i+=1)a=r[i],l=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),c=e.compiledTypeMap.fallback[a],c&&IM.call(c.styleAliases,l)&&(l=c.styleAliases[l]),n[a]=l;return n}function qfe(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 Lt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+Ze.repeat("0",r-t.length)+t}var Mfe=1,qo=2;function kfe(e){this.schema=e.schema||uM,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ze.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Lfe(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==='"'?qo:Mfe,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 LM(e,t){for(var n=Ze.repeat(" ",t),r=0,i=-1,s="",a,l=e.length;r<l;)i=e.indexOf(`
56
+ `,r),i===-1?(a=e.slice(r),r=l):(a=e.slice(r,i+1),r=i+1),a.length&&a!==`
57
+ `&&(s+=n),s+=a;return s}function bb(e,t){return`
58
+ `+Ze.repeat(" ",e.indent*t)}function jfe(e,t){var n,r,i;for(n=0,r=e.implicitTypes.length;n<r;n+=1)if(i=e.implicitTypes[n],i.resolve(t))return!0;return!1}function Gp(e){return e===yfe||e===hfe}function Mo(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==yb||65536<=e&&e<=1114111}function qM(e){return Mo(e)&&e!==yb&&e!==gfe&&e!==Lo}function MM(e,t,n){var r=qM(e),i=r&&!Gp(e);return(n?r:r&&e!==RM&&e!==NM&&e!==PM&&e!==DM&&e!==OM)&&e!==vb&&!(t===Bp&&!i)||qM(t)&&!Gp(t)&&e===vb||t===Bp&&i}function zfe(e){return Mo(e)&&e!==yb&&!Gp(e)&&e!==Cfe&&e!==Ife&&e!==Bp&&e!==RM&&e!==NM&&e!==PM&&e!==DM&&e!==OM&&e!==vb&&e!==wfe&&e!==Afe&&e!==vfe&&e!==Pfe&&e!==Tfe&&e!==xfe&&e!==Efe&&e!==bfe&&e!==Sfe&&e!==Rfe&&e!==Nfe}function Ufe(e){return!Gp(e)&&e!==Bp}function ko(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 kM(e){var t=/^\n* /;return t.test(e)}var jM=1,Sb=2,zM=3,UM=4,ia=5;function Ffe(e,t,n,r,i,s,a,l){var c,d=0,u=null,_=!1,g=!1,b=r!==-1,S=-1,v=zfe(ko(e,0))&&Ufe(ko(e,e.length-1));if(t||a)for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ko(e,c),!Mo(d))return ia;v=v&&MM(d,u,l),u=d}else{for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=ko(e,c),d===Lo)_=!0,b&&(g=g||c-S-1>r&&e[S+1]!==" ",S=c);else if(!Mo(d))return ia;v=v&&MM(d,u,l),u=d}g=g||b&&c-S-1>r&&e[S+1]!==" "}return!_&&!g?v&&!a&&!i(e)?jM:s===qo?ia:Sb:n>9&&kM(e)?ia:a?s===qo?ia:Sb:g?UM:zM}function Bfe(e,t,n,r,i){e.dump=function(){if(t.length===0)return e.quotingType===qo?'""':"''";if(!e.noCompatMode&&(Dfe.indexOf(t)!==-1||Ofe.test(t)))return e.quotingType===qo?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,n),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),l=r||e.flowLevel>-1&&n>=e.flowLevel;function c(d){return jfe(e,d)}switch(Ffe(t,l,e.indent,a,c,e.quotingType,e.forceQuotes&&!r,i)){case jM:return t;case Sb:return"'"+t.replace(/'/g,"''")+"'";case zM:return"|"+FM(t,e.indent)+BM(LM(t,s));case UM:return">"+FM(t,e.indent)+BM(LM(Gfe(t,a),s));case ia:return'"'+$fe(t)+'"';default:throw new Lt("impossible error: invalid scalar style")}}()}function FM(e,t){var n=kM(e)?String(t):"",r=e[e.length-1]===`
59
+ `,i=r&&(e[e.length-2]===`
51
60
  `||e===`
52
- `),i=s?"+":r?"":"-";return n+i+`
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
- `||e[0]===" ",i,a;a=n.exec(e);){var c=a[1],l=a[2];i=l[0]===" ",r+=c+(!s&&!i&&l!==""?`
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
- `+e.slice(s,i),s=i+1),a=c;return l+=`
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 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});
61
+ `),s=i?"+":r?"":"-";return n+s+`
62
+ `}function BM(e){return e[e.length-1]===`
63
+ `?e.slice(0,-1):e}function Gfe(e,t){for(var n=/(\n+)([^\n]*)/g,r=function(){var d=e.indexOf(`
64
+ `);return d=d!==-1?d:e.length,n.lastIndex=d,GM(e.slice(0,d),t)}(),i=e[0]===`
65
+ `||e[0]===" ",s,a;a=n.exec(e);){var l=a[1],c=a[2];s=c[0]===" ",r+=l+(!i&&!s&&c!==""?`
66
+ `:"")+GM(c,t),i=s}return r}function GM(e,t){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,r,i=0,s,a=0,l=0,c="";r=n.exec(e);)l=r.index,l-i>t&&(s=a>i?a:l,c+=`
67
+ `+e.slice(i,s),i=s+1),a=l;return c+=`
68
+ `,e.length-i>t&&a>i?c+=e.slice(i,a)+`
69
+ `+e.slice(a+1):c+=e.slice(i),c.slice(1)}function $fe(e){for(var t="",n=0,r,i=0;i<e.length;n>=65536?i+=2:i++)n=ko(e,i),r=bt[n],!r&&Mo(n)?(t+=e[i],n>=65536&&(t+=e[i+1])):t+=r||qfe(n);return t}function Kfe(e,t,n){var r="",i=e.tag,s,a,l;for(s=0,a=n.length;s<a;s+=1)l=n[s],e.replacer&&(l=e.replacer.call(n,String(s),l)),(gr(e,t,l,!1,!1)||typeof l=="undefined"&&gr(e,t,null,!1,!1))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=i,e.dump="["+r+"]"}function $M(e,t,n,r){var i="",s=e.tag,a,l,c;for(a=0,l=n.length;a<l;a+=1)c=n[a],e.replacer&&(c=e.replacer.call(n,String(a),c)),(gr(e,t+1,c,!0,!0,!1,!0)||typeof c=="undefined"&&gr(e,t+1,null,!0,!0,!1,!0))&&((!r||i!=="")&&(i+=bb(e,t)),e.dump&&Lo===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function Vfe(e,t,n){var r="",i=e.tag,s=Object.keys(n),a,l,c,d,u;for(a=0,l=s.length;a<l;a+=1)u="",r!==""&&(u+=", "),e.condenseFlow&&(u+='"'),c=s[a],d=n[c],e.replacer&&(d=e.replacer.call(n,c,d)),!!gr(e,t,c,!1,!1)&&(e.dump.length>1024&&(u+="? "),u+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),!!gr(e,t,d,!1,!1)&&(u+=e.dump,r+=u));e.tag=i,e.dump="{"+r+"}"}function Hfe(e,t,n,r){var i="",s=e.tag,a=Object.keys(n),l,c,d,u,_,g;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new Lt("sortKeys must be a boolean or a function");for(l=0,c=a.length;l<c;l+=1)g="",(!r||i!=="")&&(g+=bb(e,t)),d=a[l],u=n[d],e.replacer&&(u=e.replacer.call(n,d,u)),!!gr(e,t+1,d,!0,!0,!0)&&(_=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,_&&(e.dump&&Lo===e.dump.charCodeAt(0)?g+="?":g+="? "),g+=e.dump,_&&(g+=bb(e,t)),!!gr(e,t+1,u,!0,_)&&(e.dump&&Lo===e.dump.charCodeAt(0)?g+=":":g+=": ",g+=e.dump,i+=g));e.tag=s,e.dump=i||"{}"}function KM(e,t,n){var r,i,s,a,l,c;for(i=n?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(l=i[s],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof t=="object"&&t instanceof l.instanceOf)&&(!l.predicate||l.predicate(t))){if(n?l.multi&&l.representName?e.tag=l.representName(t):e.tag=l.tag:e.tag="?",l.represent){if(c=e.styleMap[l.tag]||l.defaultStyle,xM.call(l.represent)==="[object Function]")r=l.represent(t,c);else if(IM.call(l.represent,c))r=l.represent[c](t,c);else throw new Lt("!<"+l.tag+'> tag resolver accepts not "'+c+'" style');e.dump=r}return!0}return!1}function gr(e,t,n,r,i,s,a){e.tag=null,e.dump=n,KM(e,n,!1)||KM(e,n,!0);var l=xM.call(e.dump),c=r,d;r&&(r=e.flowLevel<0||e.flowLevel>t);var u=l==="[object Object]"||l==="[object Array]",_,g;if(u&&(_=e.duplicates.indexOf(n),g=_!==-1),(e.tag!==null&&e.tag!=="?"||g||e.indent!==2&&t>0)&&(i=!1),g&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(u&&g&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),l==="[object Object]")r&&Object.keys(e.dump).length!==0?(Hfe(e,t,e.dump,i),g&&(e.dump="&ref_"+_+e.dump)):(Vfe(e,t,e.dump),g&&(e.dump="&ref_"+_+" "+e.dump));else if(l==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?$M(e,t-1,e.dump,i):$M(e,t,e.dump,i),g&&(e.dump="&ref_"+_+e.dump)):(Kfe(e,t,e.dump),g&&(e.dump="&ref_"+_+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&Bfe(e,e.dump,t,s,c);else{if(l==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new Lt("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(d=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?d="!"+d:d.slice(0,18)==="tag:yaml.org,2002:"?d="!!"+d.slice(18):d="!<"+d+">",e.dump=d+" "+e.dump)}return!0}function Wfe(e,t){var n=[],r=[],i,s;for(wb(e,n,r),i=0,s=r.length;i<s;i+=1)t.duplicates.push(n[r[i]]);t.usedDuplicates=new Array(s)}function wb(e,t,n){var r,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)n.indexOf(i)===-1&&n.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)wb(e[i],t,n);else for(r=Object.keys(e),i=0,s=r.length;i<s;i+=1)wb(e[r[i]],t,n)}function Yfe(e,t){t=t||{};var n=new kfe(t);n.noRefs||Wfe(e,n);var r=e;return n.replacer&&(r=n.replacer.call({"":r},"",r)),gr(n,0,r,!0,!0)?n.dump+`
70
+ `:""}var Jfe=Yfe,Qfe={dump:Jfe};function Eb(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 VM=TM.load,xAe=TM.loadAll,IAe=Qfe.dump;var RAe=Eb("safeLoad","load"),NAe=Eb("safeLoadAll","loadAll"),PAe=Eb("safeDump","dump");var Ko=bn(e_()),oj=bn(e_());var t_=bn(Qv()),Qb=class{static async getExistingFiles(t){let n=[];for(let r of t)await(0,t_.pathExists)(r)&&n.push(r);return n}static getExistingFilesSync(t){let n=[];for(let r of t)(0,t_.pathExistsSync)(r)&&n.push(r);return n}};var aj=bn(e_()),n_=class{};Ji([(0,aj.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],n_.prototype,"tableName",2);var mt=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${mt.envLevel}.yaml`,`./configs/config-${mt.envLevel}.yml`];return Qb.getExistingFilesSync(t)}static get instance(){if(mt._instance===void 0){let t=new oj.TSConvict(mt);mt._instance=t.load(mt.configFiles())}return mt._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};Ji([Ko.Property(n_)],mt.prototype,"db",2),Ji([Ko.Property({doc:"Path prefix for this deployment",default:"",env:"ROOT_PATH_PREFIX"})],mt.prototype,"rootPathPrefix",2),mt=Ji([Ko.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:VM},formats:{url:r_.url,ipaddress:r_.ipaddress}})],mt);var K_e=!!process.env.DEBUG,ma,Zb=new lj.DynamoDBClient({maxAttempts:8});function V_e(e){ma=e.dbManager,Zb=e.dynamoClient}ma=new Vi.DBManager({dynamoClient:Zb,tableName:mt.instance.db.tableName});function H_e(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}function W_e(){let e=[__dirname,i_.default.join(__dirname,".."),i_.default.join(__dirname,"templates"),"/opt","/opt/templates"],t=new Xb.LambdaLog({meta:{source:"microapps-router"},dynamicMeta:n=>({timestamp:new Date().toISOString()})});for(let n of e){let r=i_.default.join(n,"appFrame.html");try{if((0,s_.pathExistsSync)(r))return t.info("found html file",{fullPath:r}),(0,s_.readFileSync)(r,"utf-8")}catch{}}throw t.error("appFrame.html not found"),new Error("appFrame.html not found")}var Y_e=W_e(),Kt=H_e(mt.instance.rootPathPrefix),a_=new Xb.LambdaLog({dev:K_e,dynamicMeta:e=>({timestamp:new Date().toISOString()})});async function J_e(e,t){ma===void 0&&(ma=new Vi.DBManager({dynamoClient:Zb,tableName:mt.instance.db.tableName}));let n={statusCode:200,headers:{},isBase64Encoded:!1};a_.options={meta:{source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath}};try{if(Kt!==""&&!e.rawPath.startsWith(Kt))return n.statusCode=404,n;let i=(Kt!==""&&e.rawPath.startsWith(Kt)?e.rawPath.slice(Kt.length-1):e.rawPath).split("/"),s="";if(i.length>=3&&i[2]!==""&&(s=i.slice(2).join("/")),(i.length===3||i.length===4)&&await X_e({response:n,appName:i[1],semVer:i[2],log:a_}))return n;if(i.length>=2)await Q_e({event:e,response:n,appName:i[1],additionalParts:s,log:a_});else throw new Error("Unmatched route")}catch(r){a_.error("unexpected exception - returning 599",{statusCode:599,error:r}),n.statusCode=599,n.headers={},n.headers["Content-Type"]="text/plain",n.body=`Router - Could not route: ${e.rawPath}, ${r.message}`}return n}async function Q_e(e){var _,g;let{event:t,response:n,appName:r,additionalParts:i,log:s}=e,a;if(n.headers===void 0)throw new Error("do not call me with undefined headers");try{a=await Vi.Application.GetVersionsAndRules({dbManager:ma,key:{AppName:r}})}catch(b){s.info(`GetVersionsAndRules threw for '${r}', assuming not found - returning 404`,{appName:r,statusCode:404,error:b}),n.statusCode=404,n.headers["Cache-Control"]="no-store; private",n.headers["Content-Type"]="text/plain; charset=UTF-8",n.body=`Router - Could not find app: ${t.rawPath}, ${r}`;return}let l=(g=(_=a.Rules)==null?void 0:_.RuleSet.default)==null?void 0:g.SemVer;if(l==null){s.error(`could not find app ${r}, for path ${t.rawPath} - returning 404`,{statusCode:404}),n.statusCode=404,n.headers["Cache-Control"]="no-store; private",n.headers["Content-Type"]="text/plain; charset=UTF-8",n.body=`Router - Could not find app: ${t.rawPath}, ${r}`;return}let c=a.Versions.find(b=>b.SemVer===l),d;(c==null?void 0:c.Type)!=="static"&&((c==null?void 0:c.DefaultFile)===void 0||(c==null?void 0:c.DefaultFile)===""||i!=="")?(d=`${Kt}/${r}/${l}`,i!==""&&(d+=`/${i}`)):d=`${Kt}/${r}/${l}/${c.DefaultFile}`;let u=Y_e.replace("{{iframeSrc}}",d);n.headers["Cache-Control"]="no-store; private",n.headers["Content-Type"]="text/html; charset=UTF-8",n.statusCode=200,n.body=u,s.info(`found app ${r}, for path ${t.rawPath} - returning 200`,{statusCode:200,routedPath:d})}async function X_e(e){let{response:t,appName:n,semVer:r,log:i}=e,s;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{s=await Vi.Version.LoadVersion({dbManager:ma,key:{AppName:n,SemVer:r}})}catch(a){return i.info(`LoadVersion threw for '${Kt}/${n}/${r}' - falling through to app routing'`,{appName:n,semVer:r,error:a}),!1}return s===void 0?(i.info(`LoadVersion returned undefined for '${Kt}/${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=`${Kt}/${n}/${r}/${s.DefaultFile}`,i.info(`found '${Kt}/${n}/${r}' - returning 302 to ${Kt}/${n}/${r}/${s.DefaultFile}`,{statusCode:302,routedPath:`${Kt}/${n}/${r}/${s.DefaultFile}`}),!0)}module.exports=_j(Z_e);0&&(module.exports={handler,overrideDBManager});
62
71
  /*! *****************************************************************************
63
72
  Copyright (C) Microsoft. All rights reserved.
64
73
  Licensed under the Apache License, Version 2.0 (the "License"); you may not use