@pwrdrvr/microapps-cdk 0.4.0-alpha.4 → 0.4.0-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +2 -2
- package/changelog.md +1 -1
- package/lib/MicroApps.js +1 -1
- package/lib/MicroAppsAPIGwy.js +1 -1
- package/lib/MicroAppsCF.js +1 -1
- package/lib/MicroAppsChildDeployer.js +1 -1
- package/lib/MicroAppsEdgeToOrigin.js +1 -1
- package/lib/MicroAppsS3.js +1 -1
- package/lib/MicroAppsSvcs.js +1 -1
- package/lib/MicroAppsTable.js +1 -1
- package/lib/microapps-deployer/index.js +71 -59
- package/lib/microapps-deployer/index.js.map +4 -4
- package/lib/microapps-edge-to-origin/index.js +59 -47
- package/lib/microapps-edge-to-origin/index.js.map +4 -4
- package/lib/microapps-router/index.js +52 -51
- package/lib/microapps-router/index.js.map +4 -4
- package/package.json +1 -1
- package/releasetag.txt +1 -1
- package/version.txt +1 -1
|
@@ -1,71 +1,72 @@
|
|
|
1
|
-
"use strict";var $j=Object.create;var no=Object.defineProperty;var zb=Object.getOwnPropertyDescriptor;var Vj=Object.getOwnPropertyNames;var Kj=Object.getPrototypeOf,Wj=Object.prototype.hasOwnProperty;var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Hj=(e,t)=>{for(var n in t)no(e,n,{get:t[n],enumerable:!0})},jb=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Vj(t))!Wj.call(e,i)&&i!==n&&no(e,i,{get:()=>t[i],enumerable:!(r=zb(t,i))||r.enumerable});return e};var un=(e,t,n)=>(n=e!=null?$j(Kj(e)):{},jb(t||!e||!e.__esModule?no(n,"default",{value:e,enumerable:!0}):n,e)),Yj=e=>jb(no({},"__esModule",{value:!0}),e),ki=(e,t,n,r)=>{for(var i=r>1?void 0:r?zb(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&no(t,n,i),i};var Fb=f(f_=>{var kb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");f_.encode=function(e){if(0<=e&&e<kb.length)return kb[e];throw new TypeError("Must be between 0 and 63: "+e)};f_.decode=function(e){var t=65,n=90,r=97,i=122,s=48,o=57,a=43,c=47,u=26,d=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+u:s<=e&&e<=o?e-s+d:e==a?62:e==c?63:-1}});var h_=f(p_=>{var Ub=Fb(),m_=5,Bb=1<<m_,Gb=Bb-1,$b=Bb;function Jj(e){return e<0?(-e<<1)+1:(e<<1)+0}function Qj(e){var t=(e&1)===1,n=e>>1;return t?-n:n}p_.encode=function(t){var n="",r,i=Jj(t);do r=i&Gb,i>>>=m_,i>0&&(r|=$b),n+=Ub.encode(r);while(i>0);return n};p_.decode=function(t,n,r){var i=t.length,s=0,o=0,a,c;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=Ub.decode(t.charCodeAt(n++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));a=!!(c&$b),c&=Gb,s=s+(c<<o),o+=m_}while(a);r.value=Qj(s),r.rest=n}});var Bi=f(ct=>{function Xj(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}ct.getArg=Xj;var Vb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Zj=/^data:.+\,.+$/;function ro(e){var t=e.match(Vb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}ct.urlParse=ro;function Fi(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}ct.urlGenerate=Fi;function __(e){var t=e,n=ro(e);if(n){if(!n.path)return e;t=n.path}for(var r=ct.isAbsolute(t),i=t.split(/\/+/),s,o=0,a=i.length-1;a>=0;a--)s=i[a],s==="."?i.splice(a,1):s===".."?o++:o>0&&(s===""?(i.splice(a+1,o),o=0):(i.splice(a,2),o--));return t=i.join("/"),t===""&&(t=r?"/":"."),n?(n.path=t,Fi(n)):t}ct.normalize=__;function Kb(e,t){e===""&&(e="."),t===""&&(t=".");var n=ro(t),r=ro(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),Fi(n);if(n||t.match(Zj))return t;if(r&&!r.host&&!r.path)return r.host=t,Fi(r);var i=t.charAt(0)==="/"?t:__(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,Fi(r)):i}ct.join=Kb;ct.isAbsolute=function(e){return e.charAt(0)==="/"||Vb.test(e)};function ek(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)}ct.relative=ek;var Wb=function(){var e=Object.create(null);return!("__proto__"in e)}();function Hb(e){return e}function tk(e){return Yb(e)?"$"+e:e}ct.toSetString=Wb?Hb:tk;function nk(e){return Yb(e)?e.slice(1):e}ct.fromSetString=Wb?Hb:nk;function Yb(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 rk(e,t,n){var r=Ui(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:Ui(e.name,t.name)}ct.compareByOriginalPositions=rk;function ik(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=Ui(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:Ui(e.name,t.name)}ct.compareByGeneratedPositionsDeflated=ik;function Ui(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function sk(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=Ui(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:Ui(e.name,t.name)}ct.compareByGeneratedPositionsInflated=sk;function ok(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}ct.parseSourceMapInput=ok;function ak(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=ro(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=Kb(Fi(r),t)}return __(t)}ct.computeSourceURL=ak});var v_=f(Jb=>{var y_=Bi(),g_=Object.prototype.hasOwnProperty,ei=typeof Map<"u";function $n(){this._array=[],this._set=ei?new Map:Object.create(null)}$n.fromArray=function(t,n){for(var r=new $n,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};$n.prototype.size=function(){return ei?this._set.size:Object.getOwnPropertyNames(this._set).length};$n.prototype.add=function(t,n){var r=ei?t:y_.toSetString(t),i=ei?this.has(t):g_.call(this._set,r),s=this._array.length;(!i||n)&&this._array.push(t),i||(ei?this._set.set(t,s):this._set[r]=s)};$n.prototype.has=function(t){if(ei)return this._set.has(t);var n=y_.toSetString(t);return g_.call(this._set,n)};$n.prototype.indexOf=function(t){if(ei){var n=this._set.get(t);if(n>=0)return n}else{var r=y_.toSetString(t);if(g_.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};$n.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};$n.prototype.toArray=function(){return this._array.slice()};Jb.ArraySet=$n});var Zb=f(Xb=>{var Qb=Bi();function ck(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||Qb.compareByGeneratedPositionsInflated(e,t)<=0}function Rc(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Rc.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};Rc.prototype.add=function(t){ck(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Rc.prototype.toArray=function(){return this._sorted||(this._array.sort(Qb.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Xb.MappingList=Rc});var S_=f(eE=>{var io=h_(),Be=Bi(),Dc=v_().ArraySet,lk=Zb().MappingList;function Ut(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 Dc,this._names=new Dc,this._mappings=new lk,this._sourcesContents=null}Ut.prototype._version=3;Ut.fromSourceMap=function(t){var n=t.sourceRoot,r=new Ut({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 o=t.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r};Ut.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})};Ut.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))};Ut.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 o=new Dc,a=new Dc;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var u=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});u.source!=null&&(c.source=u.source,r!=null&&(c.source=Be.join(r,c.source)),s!=null&&(c.source=Be.relative(s,c.source)),c.originalLine=u.line,c.originalColumn=u.column,u.name!=null&&(c.name=u.name))}var d=c.source;d!=null&&!o.has(d)&&o.add(d);var h=c.name;h!=null&&!a.has(h)&&a.add(h)},this),this._sources=o,this._names=a,t.sources.forEach(function(c){var u=t.sourceContentFor(c);u!=null&&(r!=null&&(c=Be.join(r,c)),s!=null&&(c=Be.relative(s,c)),this.setSourceContent(c,u))},this)};Ut.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}))}};Ut.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,o=0,a="",c,u,d,h,m=this._mappings.toArray(),y=0,g=m.length;y<g;y++){if(u=m[y],c="",u.generatedLine!==n)for(t=0;u.generatedLine!==n;)c+=";",n++;else if(y>0){if(!Be.compareByGeneratedPositionsInflated(u,m[y-1]))continue;c+=","}c+=io.encode(u.generatedColumn-t),t=u.generatedColumn,u.source!=null&&(h=this._sources.indexOf(u.source),c+=io.encode(h-o),o=h,c+=io.encode(u.originalLine-1-i),i=u.originalLine-1,c+=io.encode(u.originalColumn-r),r=u.originalColumn,u.name!=null&&(d=this._names.indexOf(u.name),c+=io.encode(d-s),s=d)),a+=c}return a};Ut.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)};Ut.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};Ut.prototype.toString=function(){return JSON.stringify(this.toJSON())};eE.SourceMapGenerator=Ut});var tE=f(ti=>{ti.GREATEST_LOWER_BOUND=1;ti.LEAST_UPPER_BOUND=2;function w_(e,t,n,r,i,s){var o=Math.floor((t-e)/2)+e,a=i(n,r[o],!0);return a===0?o:a>0?t-o>1?w_(o,t,n,r,i,s):s==ti.LEAST_UPPER_BOUND?t<r.length?t:-1:o:o-e>1?w_(e,o,n,r,i,s):s==ti.LEAST_UPPER_BOUND?o:e<0?-1:e}ti.search=function(t,n,r,i){if(n.length===0)return-1;var s=w_(-1,n.length,t,n,r,i||ti.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(n[s],n[s-1],!0)===0;)--s;return s}});var rE=f(nE=>{function b_(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function uk(e,t){return Math.round(e+Math.random()*(t-e))}function E_(e,t,n,r){if(n<r){var i=uk(n,r),s=n-1;b_(e,i,r);for(var o=e[r],a=n;a<r;a++)t(e[a],o)<=0&&(s+=1,b_(e,s,a));b_(e,s+1,a);var c=s+1;E_(e,t,n,c-1),E_(e,t,c+1,r)}}nE.quickSort=function(e,t){E_(e,t,0,e.length-1)}});var sE=f(Nc=>{var F=Bi(),A_=tE(),Gi=v_().ArraySet,dk=h_(),so=rE().quickSort;function Pe(e,t){var n=e;return typeof e=="string"&&(n=F.parseSourceMapInput(e)),n.sections!=null?new Qt(n,t):new nt(n,t)}Pe.fromSourceMap=function(e,t){return nt.fromSourceMap(e,t)};Pe.prototype._version=3;Pe.prototype.__generatedMappings=null;Object.defineProperty(Pe.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Pe.prototype.__originalMappings=null;Object.defineProperty(Pe.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Pe.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};Pe.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};Pe.GENERATED_ORDER=1;Pe.ORIGINAL_ORDER=2;Pe.GREATEST_LOWER_BOUND=1;Pe.LEAST_UPPER_BOUND=2;Pe.prototype.eachMapping=function(t,n,r){var i=n||null,s=r||Pe.GENERATED_ORDER,o;switch(s){case Pe.GENERATED_ORDER:o=this._generatedMappings;break;case Pe.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(c){var u=c.source===null?null:this._sources.at(c.source);return u=F.computeSourceURL(a,u,this._sourceMapURL),{source:u,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)};Pe.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 o=this._originalMappings[s];if(t.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:F.getArg(o,"generatedLine",null),column:F.getArg(o,"generatedColumn",null),lastColumn:F.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===n&&o.originalColumn==c;)i.push({line:F.getArg(o,"generatedLine",null),column:F.getArg(o,"generatedColumn",null),lastColumn:F.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};Nc.SourceMapConsumer=Pe;function nt(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",[]),o=F.getArg(n,"sourceRoot",null),a=F.getArg(n,"sourcesContent",null),c=F.getArg(n,"mappings"),u=F.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o&&(o=F.normalize(o)),i=i.map(String).map(F.normalize).map(function(d){return o&&F.isAbsolute(o)&&F.isAbsolute(d)?F.relative(o,d):d}),this._names=Gi.fromArray(s.map(String),!0),this._sources=Gi.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(d){return F.computeSourceURL(o,d,t)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=t,this.file=u}nt.prototype=Object.create(Pe.prototype);nt.prototype.consumer=Pe;nt.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};nt.fromSourceMap=function(t,n){var r=Object.create(nt.prototype),i=r._names=Gi.fromArray(t._names.toArray(),!0),s=r._sources=Gi.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(y){return F.computeSourceURL(r.sourceRoot,y,n)});for(var o=t._mappings.toArray().slice(),a=r.__generatedMappings=[],c=r.__originalMappings=[],u=0,d=o.length;u<d;u++){var h=o[u],m=new iE;m.generatedLine=h.generatedLine,m.generatedColumn=h.generatedColumn,h.source&&(m.source=s.indexOf(h.source),m.originalLine=h.originalLine,m.originalColumn=h.originalColumn,h.name&&(m.name=i.indexOf(h.name)),c.push(m)),a.push(m)}return so(r.__originalMappings,F.compareByOriginalPositions),r};nt.prototype._version=3;Object.defineProperty(nt.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function iE(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}nt.prototype._parseMappings=function(t,n){for(var r=1,i=0,s=0,o=0,a=0,c=0,u=t.length,d=0,h={},m={},y=[],g=[],_,A,R,T,G;d<u;)if(t.charAt(d)===";")r++,d++,i=0;else if(t.charAt(d)===",")d++;else{for(_=new iE,_.generatedLine=r,T=d;T<u&&!this._charIsMappingSeparator(t,T);T++);if(A=t.slice(d,T),R=h[A],R)d+=A.length;else{for(R=[];d<T;)dk.decode(t,d,m),G=m.value,d=m.rest,R.push(G);if(R.length===2)throw new Error("Found a source, but no line and column");if(R.length===3)throw new Error("Found a source and line, but no column");h[A]=R}_.generatedColumn=i+R[0],i=_.generatedColumn,R.length>1&&(_.source=a+R[1],a+=R[1],_.originalLine=s+R[2],s=_.originalLine,_.originalLine+=1,_.originalColumn=o+R[3],o=_.originalColumn,R.length>4&&(_.name=c+R[4],c+=R[4])),g.push(_),typeof _.originalLine=="number"&&y.push(_)}so(g,F.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,so(y,F.compareByOriginalPositions),this.__originalMappings=y};nt.prototype._findMapping=function(t,n,r,i,s,o){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,o)};nt.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}};nt.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",Pe.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 o=F.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:F.getArg(i,"originalLine",null),column:F.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};nt.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};nt.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 o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];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.')};nt.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",Pe.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}};Nc.BasicSourceMapConsumer=nt;function Qt(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 Gi,this._names=new Gi;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=F.getArg(o,"offset"),c=F.getArg(a,"line"),u=F.getArg(a,"column");if(c<s.line||c===s.line&&u<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:u+1},consumer:new Pe(F.getArg(o,"map"),t)}})}Qt.prototype=Object.create(Pe.prototype);Qt.prototype.constructor=Pe;Qt.prototype._version=3;Object.defineProperty(Qt.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}});Qt.prototype.originalPositionFor=function(t){var n={generatedLine:F.getArg(t,"line"),generatedColumn:F.getArg(t,"column")},r=A_.search(n,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.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}};Qt.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Qt.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.')};Qt.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}};Qt.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,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c=F.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var u=null;a.name&&(u=i.consumer._names.at(a.name),this._names.add(u),u=this._names.indexOf(u));var d={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:u};this.__generatedMappings.push(d),typeof d.originalLine=="number"&&this.__originalMappings.push(d)}so(this.__generatedMappings,F.compareByGeneratedPositionsDeflated),so(this.__originalMappings,F.compareByOriginalPositions)};Nc.IndexedSourceMapConsumer=Qt});var aE=f(oE=>{var fk=S_().SourceMapGenerator,Pc=Bi(),mk=/(\r?\n)/,pk=10,$i="$$$isSourceNode$$$";function Pt(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[$i]=!0,r!=null&&this.add(r)}Pt.fromStringWithSourceMap=function(t,n,r){var i=new Pt,s=t.split(mk),o=0,a=function(){var m=g(),y=g()||"";return m+y;function g(){return o<s.length?s[o++]:void 0}},c=1,u=0,d=null;return n.eachMapping(function(m){if(d!==null)if(c<m.generatedLine)h(d,a()),c++,u=0;else{var y=s[o]||"",g=y.substr(0,m.generatedColumn-u);s[o]=y.substr(m.generatedColumn-u),u=m.generatedColumn,h(d,g),d=m;return}for(;c<m.generatedLine;)i.add(a()),c++;if(u<m.generatedColumn){var y=s[o]||"";i.add(y.substr(0,m.generatedColumn)),s[o]=y.substr(m.generatedColumn),u=m.generatedColumn}d=m},this),o<s.length&&(d&&h(d,a()),i.add(s.splice(o).join(""))),n.sources.forEach(function(m){var y=n.sourceContentFor(m);y!=null&&(r!=null&&(m=Pc.join(r,m)),i.setSourceContent(m,y))}),i;function h(m,y){if(m===null||m.source===void 0)i.add(y);else{var g=r?Pc.join(r,m.source):m.source;i.add(new Pt(m.originalLine,m.originalColumn,g,y,m.name))}}};Pt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[$i]||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};Pt.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[$i]||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};Pt.prototype.walk=function(t){for(var n,r=0,i=this.children.length;r<i;r++)n=this.children[r],n[$i]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};Pt.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};Pt.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[$i]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};Pt.prototype.setSourceContent=function(t,n){this.sourceContents[Pc.toSetString(t)]=n};Pt.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][$i]&&this.children[n].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),n=0,r=i.length;n<r;n++)t(Pc.fromSetString(i[n]),this.sourceContents[i[n]])};Pt.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};Pt.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new fk(t),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(u,d){n.code+=u,d.source!==null&&d.line!==null&&d.column!==null?((s!==d.source||o!==d.line||a!==d.column||c!==d.name)&&r.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:n.line,column:n.column},name:d.name}),s=d.source,o=d.line,a=d.column,c=d.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),s=null,i=!1);for(var h=0,m=u.length;h<m;h++)u.charCodeAt(h)===pk?(n.line++,n.column=0,h+1===m?(s=null,i=!1):i&&r.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:n.line,column:n.column},name:d.name})):n.column++}),this.walkSourceContents(function(u,d){r.setSourceContent(u,d)}),{code:n.code,map:r}};oE.SourceNode=Pt});var cE=f(Oc=>{Oc.SourceMapGenerator=S_().SourceMapGenerator;Oc.SourceMapConsumer=sE().SourceMapConsumer;Oc.SourceNode=aE().SourceNode});var uE=f((T_e,lE)=>{var hk=Object.prototype.toString,T_=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function _k(e){return hk.call(e).slice(8,-1)==="ArrayBuffer"}function yk(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 T_?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function gk(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return T_?Buffer.from(e,t):new Buffer(e,t)}function vk(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return _k(e)?yk(e,t,n):typeof e=="string"?gk(e,t):T_?Buffer.from(e):new Buffer(e)}lE.exports=vk});var gE=f((ri,R_)=>{var Sk=cE().SourceMapConsumer,C_=require("path"),dn;try{dn=require("fs"),(!dn.existsSync||!dn.readFileSync)&&(dn=null)}catch{}var wk=uE();function dE(e,t){return e.require(t)}var fE=!1,mE=!1,x_=!1,oo="auto",ni={},ao={},bk=/^data:application\/json[^,]+base64,/,vr=[],Sr=[];function D_(){return oo==="browser"?!0:oo==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function Ek(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function Ak(){return typeof process=="object"&&process!==null?process.version:""}function Tk(){if(typeof process=="object"&&process!==null)return process.stderr}function Ck(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function Lc(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var N_=Lc(vr);vr.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,i){return i?"":"/"})),e in ni)return ni[e];var t="";try{if(dn)dn.existsSync(e)&&(t=dn.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 ni[e]=t});function I_(e,t){if(!e)return t;var n=C_.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"",s=n.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+C_.resolve(n.slice(i.length),t).replace(/\\/g,"/")):i+C_.resolve(n.slice(i.length),t)}function xk(e){var t;if(D_())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=N_(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,o;o=i.exec(t);)s=o;return s?s[1]:null}var P_=Lc(Sr);Sr.push(function(e){var t=xk(e);if(!t)return null;var n;if(bk.test(t)){var r=t.slice(t.indexOf(",")+1);n=wk(r,"base64").toString(),t=e}else t=I_(e,t),n=N_(t);return n?{url:t,map:n}:null});function O_(e){var t=ao[e.source];if(!t){var n=P_(e.source);n?(t=ao[e.source]={url:n.url,map:new Sk(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var o=t.map.sourcesContent[s];if(o){var a=I_(t.url,i);ni[a]=o}})):t=ao[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=I_(t.url,r.source),r}return e}function hE(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=O_({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]+" ("+hE(t[2])+")":e}function Ik(){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(),o=!0,a=this.isConstructor(),c=!(this.isToplevel()||a);if(c){var u=this.getTypeName();u==="[object Object]"&&(u="null");var d=this.getMethodName();s?(u&&s.indexOf(u)!=0&&(i+=u+"."),i+=s,d&&s.indexOf("."+d)!=s.length-d.length-1&&(i+=" [as "+d+"]")):i+=u+"."+(d||"<anonymous>")}else a?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function pE(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=Ik,t}function _E(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)/,o=s.test(Ak())?0:62;r===1&&i>o&&!D_()&&!e.isEval()&&(i-=o);var a=O_({source:n,line:r,column:i});t.curPosition=a,e=pE(e);var c=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?c():t.nextPosition.name||c()},e.getFileName=function(){return a.source},e.getLineNumber=function(){return a.line},e.getColumnNumber=function(){return a.column+1},e.getScriptNameOrSourceURL=function(){return a.source},e}var u=e.isEval()&&e.getEvalOrigin();return u&&(u=hE(u),e=pE(e),e.getEvalOrigin=function(){return u}),e}function Rk(e,t){x_&&(ni={},ao={});for(var n=e.name||"Error",r=e.message||"",i=n+": "+r,s={nextPosition:null,curPosition:null},o=[],a=t.length-1;a>=0;a--)o.push(`
|
|
2
|
-
at `+
|
|
1
|
+
"use strict";var uV=Object.create;var Uo=Object.defineProperty;var IC=Object.getOwnPropertyDescriptor;var fV=Object.getOwnPropertyNames;var mV=Object.getPrototypeOf,pV=Object.prototype.hasOwnProperty;var u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_V=(e,t)=>{for(var r in t)Uo(e,r,{get:t[r],enumerable:!0})},RC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of fV(t))!pV.call(e,i)&&i!==r&&Uo(e,i,{get:()=>t[i],enumerable:!(n=IC(t,i))||n.enumerable});return e};var yr=(e,t,r)=>(r=e!=null?uV(mV(e)):{},RC(t||!e||!e.__esModule?Uo(r,"default",{value:e,enumerable:!0}):r,e)),hV=e=>RC(Uo({},"__esModule",{value:!0}),e),hs=(e,t,r,n)=>{for(var i=n>1?void 0:n?IC(t,r):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(n?o(t,r,i):o(i))||i);return n&&i&&Uo(t,r,i),i};var PC=u(gv=>{var NC="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");gv.encode=function(e){if(0<=e&&e<NC.length)return NC[e];throw new TypeError("Must be between 0 and 63: "+e)};gv.decode=function(e){var t=65,r=90,n=97,i=122,s=48,o=57,a=43,c=47,d=26,f=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+d:s<=e&&e<=o?e-s+f:e==a?62:e==c?63:-1}});var wv=u(Sv=>{var DC=PC(),vv=5,OC=1<<vv,LC=OC-1,qC=OC;function yV(e){return e<0?(-e<<1)+1:(e<<1)+0}function gV(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Sv.encode=function(t){var r="",n,i=yV(t);do n=i&LC,i>>>=vv,i>0&&(n|=qC),r+=DC.encode(n);while(i>0);return r};Sv.decode=function(t,r,n){var i=t.length,s=0,o=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=DC.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));a=!!(c&qC),c&=LC,s=s+(c<<o),o+=vv}while(a);n.value=gV(s),n.rest=r}});var vs=u(ft=>{function vV(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}ft.getArg=vV;var MC=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,SV=/^data:.+\,.+$/;function Bo(e){var t=e.match(MC);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}ft.urlParse=Bo;function ys(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}ft.urlGenerate=ys;function Ev(e){var t=e,r=Bo(e);if(r){if(!r.path)return e;t=r.path}for(var n=ft.isAbsolute(t),i=t.split(/\/+/),s,o=0,a=i.length-1;a>=0;a--)s=i[a],s==="."?i.splice(a,1):s===".."?o++:o>0&&(s===""?(i.splice(a+1,o),o=0):(i.splice(a,2),o--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,ys(r)):t}ft.normalize=Ev;function zC(e,t){e===""&&(e="."),t===""&&(t=".");var r=Bo(t),n=Bo(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ys(r);if(r||t.match(SV))return t;if(n&&!n.host&&!n.path)return n.host=t,ys(n);var i=t.charAt(0)==="/"?t:Ev(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,ys(n)):i}ft.join=zC;ft.isAbsolute=function(e){return e.charAt(0)==="/"||MC.test(e)};function wV(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var r=0;t.indexOf(e+"/")!==0;){var n=e.lastIndexOf("/");if(n<0||(e=e.slice(0,n),e.match(/^([^\/]+:\/)?\/*$/)))return t;++r}return Array(r+1).join("../")+t.substr(e.length+1)}ft.relative=wV;var jC=function(){var e=Object.create(null);return!("__proto__"in e)}();function kC(e){return e}function EV(e){return FC(e)?"$"+e:e}ft.toSetString=jC?kC:EV;function bV(e){return FC(e)?e.slice(1):e}ft.fromSetString=jC?kC:bV;function FC(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 r=t-10;r>=0;r--)if(e.charCodeAt(r)!==36)return!1;return!0}function AV(e,t,r){var n=gs(e.source,t.source);return n!==0||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0||r)||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=e.generatedLine-t.generatedLine,n!==0)?n:gs(e.name,t.name)}ft.compareByOriginalPositions=AV;function TV(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=gs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:gs(e.name,t.name)}ft.compareByGeneratedPositionsDeflated=TV;function gs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function CV(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=gs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:gs(e.name,t.name)}ft.compareByGeneratedPositionsInflated=CV;function xV(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}ft.parseSourceMapInput=xV;function IV(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Bo(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var i=n.path.lastIndexOf("/");i>=0&&(n.path=n.path.substring(0,i+1))}t=zC(ys(n),t)}return Ev(t)}ft.computeSourceURL=IV});var Tv=u(UC=>{var bv=vs(),Av=Object.prototype.hasOwnProperty,Ti=typeof Map<"u";function un(){this._array=[],this._set=Ti?new Map:Object.create(null)}un.fromArray=function(t,r){for(var n=new un,i=0,s=t.length;i<s;i++)n.add(t[i],r);return n};un.prototype.size=function(){return Ti?this._set.size:Object.getOwnPropertyNames(this._set).length};un.prototype.add=function(t,r){var n=Ti?t:bv.toSetString(t),i=Ti?this.has(t):Av.call(this._set,n),s=this._array.length;(!i||r)&&this._array.push(t),i||(Ti?this._set.set(t,s):this._set[n]=s)};un.prototype.has=function(t){if(Ti)return this._set.has(t);var r=bv.toSetString(t);return Av.call(this._set,r)};un.prototype.indexOf=function(t){if(Ti){var r=this._set.get(t);if(r>=0)return r}else{var n=bv.toSetString(t);if(Av.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};un.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};un.prototype.toArray=function(){return this._array.slice()};UC.ArraySet=un});var $C=u(GC=>{var BC=vs();function RV(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return n>r||n==r&&s>=i||BC.compareByGeneratedPositionsInflated(e,t)<=0}function Xl(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Xl.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Xl.prototype.add=function(t){RV(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Xl.prototype.toArray=function(){return this._sorted||(this._array.sort(BC.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};GC.MappingList=Xl});var Cv=u(VC=>{var Go=wv(),Ge=vs(),Zl=Tv().ArraySet,NV=$C().MappingList;function Jt(e){e||(e={}),this._file=Ge.getArg(e,"file",null),this._sourceRoot=Ge.getArg(e,"sourceRoot",null),this._skipValidation=Ge.getArg(e,"skipValidation",!1),this._sources=new Zl,this._names=new Zl,this._mappings=new NV,this._sourcesContents=null}Jt.prototype._version=3;Jt.fromSourceMap=function(t){var r=t.sourceRoot,n=new Jt({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,r!=null&&(s.source=Ge.relative(r,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),n.addMapping(s)}),t.sources.forEach(function(i){var s=i;r!==null&&(s=Ge.relative(r,i)),n._sources.has(s)||n._sources.add(s);var o=t.sourceContentFor(i);o!=null&&n.setSourceContent(i,o)}),n};Jt.prototype.addMapping=function(t){var r=Ge.getArg(t,"generated"),n=Ge.getArg(t,"original",null),i=Ge.getArg(t,"source",null),s=Ge.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,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:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:s})};Jt.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=Ge.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Ge.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[Ge.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Jt.prototype.applySourceMap=function(t,r,n){var i=r;if(r==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=Ge.relative(s,i));var o=new Zl,a=new Zl;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,n!=null&&(c.source=Ge.join(n,c.source)),s!=null&&(c.source=Ge.relative(s,c.source)),c.originalLine=d.line,c.originalColumn=d.column,d.name!=null&&(c.name=d.name))}var f=c.source;f!=null&&!o.has(f)&&o.add(f);var _=c.name;_!=null&&!a.has(_)&&a.add(_)},this),this._sources=o,this._names=a,t.sources.forEach(function(c){var d=t.sourceContentFor(c);d!=null&&(n!=null&&(c=Ge.join(n,c)),s!=null&&(c=Ge.relative(s,c)),this.setSourceContent(c,d))},this)};Jt.prototype._validateMapping=function(t,r,n,i){if(r&&typeof r.line!="number"&&typeof r.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&&!r&&!n&&!i)){if(t&&"line"in t&&"column"in t&&r&&"line"in r&&"column"in r&&t.line>0&&t.column>=0&&r.line>0&&r.column>=0&&n)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:n,original:r,name:i}))}};Jt.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,s=0,o=0,a="",c,d,f,_,m=this._mappings.toArray(),h=0,g=m.length;h<g;h++){if(d=m[h],c="",d.generatedLine!==r)for(t=0;d.generatedLine!==r;)c+=";",r++;else if(h>0){if(!Ge.compareByGeneratedPositionsInflated(d,m[h-1]))continue;c+=","}c+=Go.encode(d.generatedColumn-t),t=d.generatedColumn,d.source!=null&&(_=this._sources.indexOf(d.source),c+=Go.encode(_-o),o=_,c+=Go.encode(d.originalLine-1-i),i=d.originalLine-1,c+=Go.encode(d.originalColumn-n),n=d.originalColumn,d.name!=null&&(f=this._names.indexOf(d.name),c+=Go.encode(f-s),s=f)),a+=c}return a};Jt.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=Ge.relative(r,n));var i=Ge.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Jt.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};Jt.prototype.toString=function(){return JSON.stringify(this.toJSON())};VC.SourceMapGenerator=Jt});var KC=u(Ci=>{Ci.GREATEST_LOWER_BOUND=1;Ci.LEAST_UPPER_BOUND=2;function xv(e,t,r,n,i,s){var o=Math.floor((t-e)/2)+e,a=i(r,n[o],!0);return a===0?o:a>0?t-o>1?xv(o,t,r,n,i,s):s==Ci.LEAST_UPPER_BOUND?t<n.length?t:-1:o:o-e>1?xv(e,o,r,n,i,s):s==Ci.LEAST_UPPER_BOUND?o:e<0?-1:e}Ci.search=function(t,r,n,i){if(r.length===0)return-1;var s=xv(-1,r.length,t,r,n,i||Ci.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(r[s],r[s-1],!0)===0;)--s;return s}});var WC=u(HC=>{function Iv(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function PV(e,t){return Math.round(e+Math.random()*(t-e))}function Rv(e,t,r,n){if(r<n){var i=PV(r,n),s=r-1;Iv(e,i,n);for(var o=e[n],a=r;a<n;a++)t(e[a],o)<=0&&(s+=1,Iv(e,s,a));Iv(e,s+1,a);var c=s+1;Rv(e,t,r,c-1),Rv(e,t,c+1,n)}}HC.quickSort=function(e,t){Rv(e,t,0,e.length-1)}});var YC=u(ed=>{var B=vs(),Nv=KC(),Ss=Tv().ArraySet,DV=wv(),$o=WC().quickSort;function Le(e,t){var r=e;return typeof e=="string"&&(r=B.parseSourceMapInput(e)),r.sections!=null?new or(r,t):new ot(r,t)}Le.fromSourceMap=function(e,t){return ot.fromSourceMap(e,t)};Le.prototype._version=3;Le.prototype.__generatedMappings=null;Object.defineProperty(Le.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Le.prototype.__originalMappings=null;Object.defineProperty(Le.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Le.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};Le.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Le.GENERATED_ORDER=1;Le.ORIGINAL_ORDER=2;Le.GREATEST_LOWER_BOUND=1;Le.LEAST_UPPER_BOUND=2;Le.prototype.eachMapping=function(t,r,n){var i=r||null,s=n||Le.GENERATED_ORDER,o;switch(s){case Le.GENERATED_ORDER:o=this._generatedMappings;break;case Le.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(c){var d=c.source===null?null:this._sources.at(c.source);return d=B.computeSourceURL(a,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)};Le.prototype.allGeneratedPositionsFor=function(t){var r=B.getArg(t,"line"),n={source:B.getArg(t,"source"),originalLine:r,originalColumn:B.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",B.compareByOriginalPositions,Nv.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(t.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:B.getArg(o,"generatedLine",null),column:B.getArg(o,"generatedColumn",null),lastColumn:B.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===r&&o.originalColumn==c;)i.push({line:B.getArg(o,"generatedLine",null),column:B.getArg(o,"generatedColumn",null),lastColumn:B.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};ed.SourceMapConsumer=Le;function ot(e,t){var r=e;typeof e=="string"&&(r=B.parseSourceMapInput(e));var n=B.getArg(r,"version"),i=B.getArg(r,"sources"),s=B.getArg(r,"names",[]),o=B.getArg(r,"sourceRoot",null),a=B.getArg(r,"sourcesContent",null),c=B.getArg(r,"mappings"),d=B.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=B.normalize(o)),i=i.map(String).map(B.normalize).map(function(f){return o&&B.isAbsolute(o)&&B.isAbsolute(f)?B.relative(o,f):f}),this._names=Ss.fromArray(s.map(String),!0),this._sources=Ss.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(f){return B.computeSourceURL(o,f,t)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=t,this.file=d}ot.prototype=Object.create(Le.prototype);ot.prototype.consumer=Le;ot.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=B.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var r;for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return-1};ot.fromSourceMap=function(t,r){var n=Object.create(ot.prototype),i=n._names=Ss.fromArray(t._names.toArray(),!0),s=n._sources=Ss.fromArray(t._sources.toArray(),!0);n.sourceRoot=t._sourceRoot,n.sourcesContent=t._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=t._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(h){return B.computeSourceURL(n.sourceRoot,h,r)});for(var o=t._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],d=0,f=o.length;d<f;d++){var _=o[d],m=new JC;m.generatedLine=_.generatedLine,m.generatedColumn=_.generatedColumn,_.source&&(m.source=s.indexOf(_.source),m.originalLine=_.originalLine,m.originalColumn=_.originalColumn,_.name&&(m.name=i.indexOf(_.name)),c.push(m)),a.push(m)}return $o(n.__originalMappings,B.compareByOriginalPositions),n};ot.prototype._version=3;Object.defineProperty(ot.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function JC(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}ot.prototype._parseMappings=function(t,r){for(var n=1,i=0,s=0,o=0,a=0,c=0,d=t.length,f=0,_={},m={},h=[],g=[],y,A,R,T,$;f<d;)if(t.charAt(f)===";")n++,f++,i=0;else if(t.charAt(f)===",")f++;else{for(y=new JC,y.generatedLine=n,T=f;T<d&&!this._charIsMappingSeparator(t,T);T++);if(A=t.slice(f,T),R=_[A],R)f+=A.length;else{for(R=[];f<T;)DV.decode(t,f,m),$=m.value,f=m.rest,R.push($);if(R.length===2)throw new Error("Found a source, but no line and column");if(R.length===3)throw new Error("Found a source and line, but no column");_[A]=R}y.generatedColumn=i+R[0],i=y.generatedColumn,R.length>1&&(y.source=a+R[1],a+=R[1],y.originalLine=s+R[2],s=y.originalLine,y.originalLine+=1,y.originalColumn=o+R[3],o=y.originalColumn,R.length>4&&(y.name=c+R[4],c+=R[4])),g.push(y),typeof y.originalLine=="number"&&h.push(y)}$o(g,B.compareByGeneratedPositionsDeflated),this.__generatedMappings=g,$o(h,B.compareByOriginalPositions),this.__originalMappings=h};ot.prototype._findMapping=function(t,r,n,i,s,o){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return Nv.search(t,r,s,o)};ot.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var r=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var n=this._generatedMappings[t+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}};ot.prototype.originalPositionFor=function(t){var r={generatedLine:B.getArg(t,"line"),generatedColumn:B.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",B.compareByGeneratedPositionsDeflated,B.getArg(t,"bias",Le.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var s=B.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=B.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=B.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:B.getArg(i,"originalLine",null),column:B.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};ot.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};ot.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var i=t;this.sourceRoot!=null&&(i=B.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=B.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw new Error('"'+i+'" is not in the SourceMap.')};ot.prototype.generatedPositionFor=function(t){var r=B.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:B.getArg(t,"line"),originalColumn:B.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",B.compareByOriginalPositions,B.getArg(t,"bias",Le.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===n.source)return{line:B.getArg(s,"generatedLine",null),column:B.getArg(s,"generatedColumn",null),lastColumn:B.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};ed.BasicSourceMapConsumer=ot;function or(e,t){var r=e;typeof e=="string"&&(r=B.parseSourceMapInput(e));var n=B.getArg(r,"version"),i=B.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Ss,this._names=new Ss;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=B.getArg(o,"offset"),c=B.getArg(a,"line"),d=B.getArg(a,"column");if(c<s.line||c===s.line&&d<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:d+1},consumer:new Le(B.getArg(o,"map"),t)}})}or.prototype=Object.create(Le.prototype);or.prototype.constructor=Le;or.prototype._version=3;Object.defineProperty(or.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var r=0;r<this._sections[t].consumer.sources.length;r++)e.push(this._sections[t].consumer.sources[r]);return e}});or.prototype.originalPositionFor=function(t){var r={generatedLine:B.getArg(t,"line"),generatedColumn:B.getArg(t,"column")},n=Nv.search(r,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};or.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};or.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};or.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(B.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};or.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c=B.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var d=null;a.name&&(d=i.consumer._names.at(a.name),this._names.add(d),d=this._names.indexOf(d));var f={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:d};this.__generatedMappings.push(f),typeof f.originalLine=="number"&&this.__originalMappings.push(f)}$o(this.__generatedMappings,B.compareByGeneratedPositionsDeflated),$o(this.__originalMappings,B.compareByOriginalPositions)};ed.IndexedSourceMapConsumer=or});var XC=u(QC=>{var OV=Cv().SourceMapGenerator,td=vs(),LV=/(\r?\n)/,qV=10,ws="$$$isSourceNode$$$";function kt(e,t,r,n,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=i??null,this[ws]=!0,n!=null&&this.add(n)}kt.fromStringWithSourceMap=function(t,r,n){var i=new kt,s=t.split(LV),o=0,a=function(){var m=g(),h=g()||"";return m+h;function g(){return o<s.length?s[o++]:void 0}},c=1,d=0,f=null;return r.eachMapping(function(m){if(f!==null)if(c<m.generatedLine)_(f,a()),c++,d=0;else{var h=s[o]||"",g=h.substr(0,m.generatedColumn-d);s[o]=h.substr(m.generatedColumn-d),d=m.generatedColumn,_(f,g),f=m;return}for(;c<m.generatedLine;)i.add(a()),c++;if(d<m.generatedColumn){var h=s[o]||"";i.add(h.substr(0,m.generatedColumn)),s[o]=h.substr(m.generatedColumn),d=m.generatedColumn}f=m},this),o<s.length&&(f&&_(f,a()),i.add(s.splice(o).join(""))),r.sources.forEach(function(m){var h=r.sourceContentFor(m);h!=null&&(n!=null&&(m=td.join(n,m)),i.setSourceContent(m,h))}),i;function _(m,h){if(m===null||m.source===void 0)i.add(h);else{var g=n?td.join(n,m.source):m.source;i.add(new kt(m.originalLine,m.originalColumn,g,h,m.name))}}};kt.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[ws]||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 r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[ws]||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 r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[ws]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};kt.prototype.join=function(t){var r,n,i=this.children.length;if(i>0){for(r=[],n=0;n<i-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};kt.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[ws]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};kt.prototype.setSourceContent=function(t,r){this.sourceContents[td.toSetString(t)]=r};kt.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][ws]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(td.fromSetString(i[r]),this.sourceContents[i[r]])};kt.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};kt.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new OV(t),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(d,f){r.code+=d,f.source!==null&&f.line!==null&&f.column!==null?((s!==f.source||o!==f.line||a!==f.column||c!==f.name)&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name}),s=f.source,o=f.line,a=f.column,c=f.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),s=null,i=!1);for(var _=0,m=d.length;_<m;_++)d.charCodeAt(_)===qV?(r.line++,r.column=0,_+1===m?(s=null,i=!1):i&&n.addMapping({source:f.source,original:{line:f.line,column:f.column},generated:{line:r.line,column:r.column},name:f.name})):r.column++}),this.walkSourceContents(function(d,f){n.setSourceContent(d,f)}),{code:r.code,map:n}};QC.SourceNode=kt});var ZC=u(rd=>{rd.SourceMapGenerator=Cv().SourceMapGenerator;rd.SourceMapConsumer=YC().SourceMapConsumer;rd.SourceNode=XC().SourceNode});var tx=u(($Ce,ex)=>{var MV=Object.prototype.toString,Pv=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function zV(e){return MV.call(e).slice(8,-1)==="ArrayBuffer"}function jV(e,t,r){t>>>=0;var n=e.byteLength-t;if(n<0)throw new RangeError("'offset' is out of bounds");if(r===void 0)r=n;else if(r>>>=0,r>n)throw new RangeError("'length' is out of bounds");return Pv?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function kV(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return Pv?Buffer.from(e,t):new Buffer(e,t)}function FV(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return zV(e)?jV(e,t,r):typeof e=="string"?kV(e,t):Pv?Buffer.from(e):new Buffer(e)}ex.exports=FV});var lx=u((Ii,qv)=>{var UV=ZC().SourceMapConsumer,Dv=require("path"),gr;try{gr=require("fs"),(!gr.existsSync||!gr.readFileSync)&&(gr=null)}catch{}var BV=tx();function rx(e,t){return e.require(t)}var nx=!1,ix=!1,Ov=!1,Vo="auto",xi={},Ko={},GV=/^data:application\/json[^,]+base64,/,$n=[],Vn=[];function Mv(){return Vo==="browser"?!0:Vo==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function $V(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function VV(){return typeof process=="object"&&process!==null?process.version:""}function KV(){if(typeof process=="object"&&process!==null)return process.stderr}function HV(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function nd(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var zv=nd($n);$n.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(n,i){return i?"":"/"})),e in xi)return xi[e];var t="";try{if(gr)gr.existsSync(e)&&(t=gr.readFileSync(e,"utf8"));else{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),r.readyState===4&&r.status===200&&(t=r.responseText)}}catch{}return xi[e]=t});function Lv(e,t){if(!e)return t;var r=Dv.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",s=r.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+Dv.resolve(r.slice(i.length),t).replace(/\\/g,"/")):i+Dv.resolve(r.slice(i.length),t)}function WV(e){var t;if(Mv())try{var r=new XMLHttpRequest;r.open("GET",e,!1),r.send(null),t=r.readyState===4?r.responseText:null;var n=r.getResponseHeader("SourceMap")||r.getResponseHeader("X-SourceMap");if(n)return n}catch{}t=zv(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,o;o=i.exec(t);)s=o;return s?s[1]:null}var jv=nd(Vn);Vn.push(function(e){var t=WV(e);if(!t)return null;var r;if(GV.test(t)){var n=t.slice(t.indexOf(",")+1);r=BV(n,"base64").toString(),t=e}else t=Lv(e,t),r=zv(t);return r?{url:t,map:r}:null});function kv(e){var t=Ko[e.source];if(!t){var r=jv(e.source);r?(t=Ko[e.source]={url:r.url,map:new UV(r.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var o=t.map.sourcesContent[s];if(o){var a=Lv(t.url,i);xi[a]=o}})):t=Ko[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var n=t.map.originalPositionFor(e);if(n.source!==null)return n.source=Lv(t.url,n.source),n}return e}function ox(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=kv({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+r.source+":"+r.line+":"+(r.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+ox(t[2])+")":e}function JV(){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 r=this.getLineNumber();if(r!=null){t+=":"+r;var n=this.getColumnNumber();n&&(t+=":"+n)}}var i="",s=this.getFunctionName(),o=!0,a=this.isConstructor(),c=!(this.isToplevel()||a);if(c){var d=this.getTypeName();d==="[object Object]"&&(d="null");var f=this.getMethodName();s?(d&&s.indexOf(d)!=0&&(i+=d+"."),i+=s,f&&s.indexOf("."+f)!=s.length-f.length-1&&(i+=" [as "+f+"]")):i+=d+"."+(f||"<anonymous>")}else a?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function sx(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(r){t[r]=/^(?:is|get)/.test(r)?function(){return e[r].call(e)}:e[r]}),t.toString=JV,t}function ax(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var r=e.getFileName()||e.getScriptNameOrSourceURL();if(r){var n=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)/,o=s.test(VV())?0:62;n===1&&i>o&&!Mv()&&!e.isEval()&&(i-=o);var a=kv({source:r,line:n,column:i});t.curPosition=a,e=sx(e);var c=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?c():t.nextPosition.name||c()},e.getFileName=function(){return a.source},e.getLineNumber=function(){return a.line},e.getColumnNumber=function(){return a.column+1},e.getScriptNameOrSourceURL=function(){return a.source},e}var d=e.isEval()&&e.getEvalOrigin();return d&&(d=ox(d),e=sx(e),e.getEvalOrigin=function(){return d}),e}function YV(e,t){Ov&&(xi={},Ko={});for(var r=e.name||"Error",n=e.message||"",i=r+": "+n,s={nextPosition:null,curPosition:null},o=[],a=t.length-1;a>=0;a--)o.push(`
|
|
2
|
+
at `+ax(t[a],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+o.reverse().join("")}function cx(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],n=+t[2],i=+t[3],s=xi[r];if(!s&&gr&&gr.existsSync(r))try{s=gr.readFileSync(r,"utf8")}catch{s=""}if(s){var o=s.split(/(?:\r\n|\r|\n)/)[n-1];if(o)return r+":"+n+`
|
|
3
3
|
`+o+`
|
|
4
|
-
`+new Array(i).join(" ")+"^"}}return null}function Dk(e){var t=yE(e),n=Tk();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),Ck(1)}function Nk(){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 Dk(arguments[1])}return e.apply(this,arguments)}}var Pk=vr.slice(0),Ok=Sr.slice(0);ri.wrapCallSite=_E;ri.getErrorSource=yE;ri.mapSourcePosition=O_;ri.retrieveSourceMap=P_;ri.install=function(e){if(e=e||{},e.environment&&(oo=e.environment,["node","browser","auto"].indexOf(oo)===-1))throw new Error("environment "+oo+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(vr.length=0),vr.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Sr.length=0),Sr.unshift(e.retrieveSourceMap)),e.hookRequire&&!D_()){var t=dE(R_,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(s,o){return ni[o]=s,ao[o]=void 0,n.call(this,s,o)},t.prototype._compile.__sourceMapSupport=!0)}if(x_||(x_="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),fE||(fE=!0,Error.prepareStackTrace=Rk),!mE){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=dE(R_,"worker_threads");i.isMainThread===!1&&(r=!1)}catch{}r&&Ek()&&(mE=!0,Nk())}};ri.resetRetrieveHandlers=function(){vr.length=0,Sr.length=0,vr=Pk.slice(0),Sr=Ok.slice(0),P_=Lc(Sr),N_=Lc(vr)}});var L_=f(()=>{gE().install()});var K=f((I_e,zc)=>{var SE,wE,bE,EE,AE,TE,CE,xE,IE,qc,q_,RE,DE,NE,Vi,PE,OE,LE,qE,ME,zE,jE,kE,FE,Mc;(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 zc=="object"&&typeof zc.exports=="object"?e(n(t,n(zc.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,o){return r[s]=i?i(s,o):o}}})(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])};SE=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)},wE=Object.assign||function(r){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(r[a]=i[a])}return r},bE=function(r,i){var s={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&i.indexOf(o)<0&&(s[o]=r[o]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(r);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(r,o[a])&&(s[o[a]]=r[o[a]]);return s},EE=function(r,i,s,o){var a=arguments.length,c=a<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,s):o,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(r,i,s,o);else for(var d=r.length-1;d>=0;d--)(u=r[d])&&(c=(a<3?u(c):a>3?u(i,s,c):u(i,s))||c);return a>3&&c&&Object.defineProperty(i,s,c),c},AE=function(r,i){return function(s,o){i(s,o,r)}},TE=function(r,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(r,i)},CE=function(r,i,s,o){function a(c){return c instanceof s?c:new s(function(u){u(c)})}return new(s||(s=Promise))(function(c,u){function d(y){try{m(o.next(y))}catch(g){u(g)}}function h(y){try{m(o.throw(y))}catch(g){u(g)}}function m(y){y.done?c(y.value):a(y.value).then(d,h)}m((o=o.apply(r,i||[])).next())})},xE=function(r,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,a,c,u;return u={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function d(m){return function(y){return h([m,y])}}function h(m){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,a&&(c=m[0]&2?a.return:m[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,m[1])).done)return c;switch(a=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return s.label++,{value:m[1],done:!1};case 5:s.label++,a=m[1],m=[0];continue;case 7:m=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){s=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){s.label=m[1];break}if(m[0]===6&&s.label<c[1]){s.label=c[1],c=m;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(m);break}c[2]&&s.ops.pop(),s.trys.pop();continue}m=i.call(r,s)}catch(y){m=[6,y],a=0}finally{o=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},IE=function(r,i){for(var s in r)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&Mc(i,r,s)},Mc=Object.create?function(r,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(r,o,a)}:function(r,i,s,o){o===void 0&&(o=s),r[o]=i[s]},qc=function(r){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&r[i],o=0;if(s)return s.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&o>=r.length&&(r=void 0),{value:r&&r[o++],done:!r}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},q_=function(r,i){var s=typeof Symbol=="function"&&r[Symbol.iterator];if(!s)return r;var o=s.call(r),a,c=[],u;try{for(;(i===void 0||i-- >0)&&!(a=o.next()).done;)c.push(a.value)}catch(d){u={error:d}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(u)throw u.error}}return c},RE=function(){for(var r=[],i=0;i<arguments.length;i++)r=r.concat(q_(arguments[i]));return r},DE=function(){for(var r=0,i=0,s=arguments.length;i<s;i++)r+=arguments[i].length;for(var o=Array(r),a=0,i=0;i<s;i++)for(var c=arguments[i],u=0,d=c.length;u<d;u++,a++)o[a]=c[u];return o},NE=function(r,i,s){if(s||arguments.length===2)for(var o=0,a=i.length,c;o<a;o++)(c||!(o in i))&&(c||(c=Array.prototype.slice.call(i,0,o)),c[o]=i[o]);return r.concat(c||Array.prototype.slice.call(i))},Vi=function(r){return this instanceof Vi?(this.v=r,this):new Vi(r)},PE=function(r,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(r,i||[]),a,c=[];return a={},u("next"),u("throw"),u("return"),a[Symbol.asyncIterator]=function(){return this},a;function u(_){o[_]&&(a[_]=function(A){return new Promise(function(R,T){c.push([_,A,R,T])>1||d(_,A)})})}function d(_,A){try{h(o[_](A))}catch(R){g(c[0][3],R)}}function h(_){_.value instanceof Vi?Promise.resolve(_.value.v).then(m,y):g(c[0][2],_)}function m(_){d("next",_)}function y(_){d("throw",_)}function g(_,A){_(A),c.shift(),c.length&&d(c[0][0],c[0][1])}},OE=function(r){var i,s;return i={},o("next"),o("throw",function(a){throw a}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(a,c){i[a]=r[a]?function(u){return(s=!s)?{value:Vi(r[a](u)),done:a==="return"}:c?c(u):u}:c}},LE=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 qc=="function"?qc(r):r[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(c){s[c]=r[c]&&function(u){return new Promise(function(d,h){u=r[c](u),a(d,h,u.done,u.value)})}}function a(c,u,d,h){Promise.resolve(h).then(function(m){c({value:m,done:d})},u)}},qE=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};ME=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)&&Mc(i,r,s);return n(i,r),i},zE=function(r){return r&&r.__esModule?r:{default:r}},jE=function(r,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?r!==i||!o:!i.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(r):o?o.value:i.get(r)},kE=function(r,i,s,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?r!==i||!a:!i.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(r,s):a?a.value=s:i.set(r,s),s},FE=function(r,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof r=="function"?i===r:r.has(i)},e("__extends",SE),e("__assign",wE),e("__rest",bE),e("__decorate",EE),e("__param",AE),e("__metadata",TE),e("__awaiter",CE),e("__generator",xE),e("__exportStar",IE),e("__createBinding",Mc),e("__values",qc),e("__read",q_),e("__spread",RE),e("__spreadArrays",DE),e("__spreadArray",NE),e("__await",Vi),e("__asyncGenerator",PE),e("__asyncDelegator",OE),e("__asyncValues",LE),e("__makeTemplateObject",qE),e("__importStar",ME),e("__importDefault",zE),e("__classPrivateFieldGet",jE),e("__classPrivateFieldSet",kE),e("__classPrivateFieldIn",FE)})});var M_=f(jc=>{"use strict";Object.defineProperty(jc,"__esModule",{value:!0});jc.deserializerMiddleware=void 0;var Lk=(e,t)=>(n,r)=>async i=>{let{response:s}=await n(i);try{let o=await t(s,e);return{response:s,output:o}}catch(o){throw Object.defineProperty(o,"$response",{value:s}),o}};jc.deserializerMiddleware=Lk});var z_=f(kc=>{"use strict";Object.defineProperty(kc,"__esModule",{value:!0});kc.serializerMiddleware=void 0;var qk=(e,t)=>(n,r)=>async i=>{let s=await t(i.input,e);return n({...i,request:s})};kc.serializerMiddleware=qk});var UE=f(fn=>{"use strict";Object.defineProperty(fn,"__esModule",{value:!0});fn.getSerdePlugin=fn.serializerMiddlewareOption=fn.deserializerMiddlewareOption=void 0;var Mk=M_(),zk=z_();fn.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};fn.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function jk(e,t,n){return{applyToStack:r=>{r.add((0,Mk.deserializerMiddleware)(e,n),fn.deserializerMiddlewareOption),r.add((0,zk.serializerMiddleware)(e,t),fn.serializerMiddlewareOption)}}}fn.getSerdePlugin=jk});var U=f(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var j_=K();j_.__exportStar(M_(),co);j_.__exportStar(UE(),co);j_.__exportStar(z_(),co)});var $E=f(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.constructStack=void 0;var kk=()=>{let e=[],t=[],n=new Set,r=d=>d.sort((h,m)=>BE[m.step]-BE[h.step]||GE[m.priority||"normal"]-GE[h.priority||"normal"]),i=d=>{let h=!1,m=y=>y.name&&y.name===d?(h=!0,n.delete(d),!1):!0;return e=e.filter(m),t=t.filter(m),h},s=d=>{let h=!1,m=y=>y.middleware===d?(h=!0,y.name&&n.delete(y.name),!1):!0;return e=e.filter(m),t=t.filter(m),h},o=d=>(e.forEach(h=>{d.add(h.middleware,{...h})}),t.forEach(h=>{d.addRelativeTo(h.middleware,{...h})}),d),a=d=>{let h=[];return d.before.forEach(m=>{m.before.length===0&&m.after.length===0?h.push(m):h.push(...a(m))}),h.push(d),d.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?h.push(m):h.push(...a(m))}),h},c=()=>{let d=[],h=[],m={};return e.forEach(g=>{let _={...g,before:[],after:[]};_.name&&(m[_.name]=_),d.push(_)}),t.forEach(g=>{let _={...g,before:[],after:[]};_.name&&(m[_.name]=_),h.push(_)}),h.forEach(g=>{if(g.toMiddleware){let _=m[g.toMiddleware];if(_===void 0)throw new Error(`${g.toMiddleware} is not found when adding ${g.name||"anonymous"} middleware ${g.relation} ${g.toMiddleware}`);g.relation==="after"&&_.after.push(g),g.relation==="before"&&_.before.push(g)}}),r(d).map(a).reduce((g,_)=>(g.push(..._),g),[]).map(g=>g.middleware)},u={add:(d,h={})=>{let{name:m,override:y}=h,g={step:"initialize",priority:"normal",middleware:d,...h};if(m){if(n.has(m)){if(!y)throw new Error(`Duplicate middleware name '${m}'`);let _=e.findIndex(R=>R.name===m),A=e[_];if(A.step!==g.step||A.priority!==g.priority)throw new Error(`"${m}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by same-name middleware with ${g.priority} priority in ${g.step} step.`);e.splice(_,1)}n.add(m)}e.push(g)},addRelativeTo:(d,h)=>{let{name:m,override:y}=h,g={middleware:d,...h};if(m){if(n.has(m)){if(!y)throw new Error(`Duplicate middleware name '${m}'`);let _=t.findIndex(R=>R.name===m),A=t[_];if(A.toMiddleware!==g.toMiddleware||A.relation!==g.relation)throw new Error(`"${m}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by same-name middleware ${g.relation} "${g.toMiddleware}" middleware.`);t.splice(_,1)}n.add(m)}t.push(g)},clone:()=>o((0,Ki.constructStack)()),use:d=>{d.applyToStack(u)},remove:d=>typeof d=="string"?i(d):s(d),removeByTag:d=>{let h=!1,m=y=>{let{tags:g,name:_}=y;return g&&g.includes(d)?(_&&n.delete(_),h=!0,!1):!0};return e=e.filter(m),t=t.filter(m),h},concat:d=>{let h=o((0,Ki.constructStack)());return h.use(d),h},applyToStack:o,resolve:(d,h)=>{for(let m of c().reverse())d=m(d,h);return d}};return u};Ki.constructStack=kk;var BE={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},GE={high:3,normal:2,low:1}});var F_=f(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});var Fk=K();Fk.__exportStar($E(),k_)});var VE=f(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.Client=void 0;var Uk=F_(),U_=class{constructor(t){this.middlewareStack=(0,Uk.constructStack)(),this.config=t}send(t,n,r){let i=typeof n!="function"?n:void 0,s=typeof n=="function"?n:r,o=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(t).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(t).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};Fc.Client=U_});var KE=f(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.Command=void 0;var Bk=F_(),B_=class{constructor(){this.middlewareStack=(0,Bk.constructStack)()}};Uc.Command=B_});var WE=f(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.SENSITIVE_STRING=void 0;Bc.SENSITIVE_STRING="***SensitiveInformation***"});var $_=f(q=>{"use strict";Object.defineProperty(q,"__esModule",{value:!0});q.strictParseByte=q.strictParseShort=q.strictParseInt32=q.strictParseInt=q.strictParseLong=q.limitedParseFloat32=q.limitedParseFloat=q.handleFloat=q.limitedParseDouble=q.strictParseFloat32=q.strictParseFloat=q.strictParseDouble=q.expectUnion=q.expectString=q.expectObject=q.expectNonNull=q.expectByte=q.expectShort=q.expectInt32=q.expectInt=q.expectLong=q.expectFloat32=q.expectNumber=q.expectBoolean=q.parseBoolean=void 0;var Gk=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};q.parseBoolean=Gk;var $k=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};q.expectBoolean=$k;var Vk=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};q.expectNumber=Vk;var Kk=Math.ceil(2**127*(2-2**-23)),Wk=e=>{let t=(0,q.expectNumber)(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>Kk)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};q.expectFloat32=Wk;var Hk=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};q.expectLong=Hk;q.expectInt=q.expectLong;var Yk=e=>G_(e,32);q.expectInt32=Yk;var Jk=e=>G_(e,16);q.expectShort=Jk;var Qk=e=>G_(e,8);q.expectByte=Qk;var G_=(e,t)=>{let n=(0,q.expectLong)(e);if(n!==void 0&&Xk(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},Xk=(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]}},Zk=(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};q.expectNonNull=Zk;var eF=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};q.expectObject=eF;var tF=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};q.expectString=tF;var nF=e=>{if(e==null)return;let t=(0,q.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};q.expectUnion=nF;var rF=e=>typeof e=="string"?(0,q.expectNumber)(Wi(e)):(0,q.expectNumber)(e);q.strictParseDouble=rF;q.strictParseFloat=q.strictParseDouble;var iF=e=>typeof e=="string"?(0,q.expectFloat32)(Wi(e)):(0,q.expectFloat32)(e);q.strictParseFloat32=iF;var sF=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Wi=e=>{let t=e.match(sF);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},oF=e=>typeof e=="string"?HE(e):(0,q.expectNumber)(e);q.limitedParseDouble=oF;q.handleFloat=q.limitedParseDouble;q.limitedParseFloat=q.limitedParseDouble;var aF=e=>typeof e=="string"?HE(e):(0,q.expectFloat32)(e);q.limitedParseFloat32=aF;var HE=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}`)}},cF=e=>typeof e=="string"?(0,q.expectLong)(Wi(e)):(0,q.expectLong)(e);q.strictParseLong=cF;q.strictParseInt=q.strictParseLong;var lF=e=>typeof e=="string"?(0,q.expectInt32)(Wi(e)):(0,q.expectInt32)(e);q.strictParseInt32=lF;var uF=e=>typeof e=="string"?(0,q.expectShort)(Wi(e)):(0,q.expectShort)(e);q.strictParseShort=uF;var dF=e=>typeof e=="string"?(0,q.expectByte)(Wi(e)):(0,q.expectByte)(e);q.strictParseByte=dF});var YE=f(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.parseEpochTimestamp=mn.parseRfc7231DateTime=mn.parseRfc3339DateTime=mn.dateToUtcString=void 0;var ii=$_(),fF=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],K_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function mF(e){let t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,u=s<10?`0${s}`:`${s}`,d=o<10?`0${o}`:`${o}`,h=a<10?`0${a}`:`${a}`;return`${fF[r]}, ${c} ${K_[n]} ${t} ${u}:${d}:${h} GMT`}mn.dateToUtcString=mF;var pF=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),hF=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=pF.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[n,r,i,s,o,a,c,u]=t,d=(0,ii.strictParseShort)(lo(r)),h=wr(i,"month",1,12),m=wr(s,"day",1,31);return Gc(d,h,m,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u})};mn.parseRfc3339DateTime=hF;var _F=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$/),yF=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$/),gF=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})$/),vF=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=_F.exec(e);if(t){let[n,r,i,s,o,a,c,u]=t;return Gc((0,ii.strictParseShort)(lo(s)),V_(i),wr(r,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u})}if(t=yF.exec(e),t){let[n,r,i,s,o,a,c,u]=t;return EF(Gc(wF(s),V_(i),wr(r,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:u}))}if(t=gF.exec(e),t){let[n,r,i,s,o,a,c,u]=t;return Gc((0,ii.strictParseShort)(lo(u)),V_(r),wr(i.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};mn.parseRfc7231DateTime=vF;var SF=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=(0,ii.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))};mn.parseEpochTimestamp=SF;var Gc=(e,t,n,r)=>{let i=t-1;return TF(e,i,n),new Date(Date.UTC(e,i,n,wr(r.hours,"hour",0,23),wr(r.minutes,"minute",0,59),wr(r.seconds,"seconds",0,60),xF(r.fractionalMilliseconds)))},wF=e=>{let t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+(0,ii.strictParseShort)(lo(e));return n<t?n+100:n},bF=50*365*24*60*60*1e3,EF=e=>e.getTime()-new Date().getTime()>bF?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,V_=e=>{let t=K_.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},AF=[31,28,31,30,31,30,31,31,30,31,30,31],TF=(e,t,n)=>{let r=AF[t];if(t===1&&CF(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${K_[t]} in ${e}: ${n}`)},CF=e=>e%4===0&&(e%100!==0||e%400===0),wr=(e,t,n,r)=>{let i=(0,ii.strictParseByte)(lo(e));if(i<n||i>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return i},xF=e=>e==null?0:(0,ii.strictParseFloat32)("0."+e)*1e3,lo=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var JE=f($c=>{"use strict";Object.defineProperty($c,"__esModule",{value:!0});$c.loadConfigsForDefaultMode=void 0;var IF=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{}}};$c.loadConfigsForDefaultMode=IF});var XE=f(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});Vc.emitWarningIfUnsupportedVersion=void 0;var QE=!1,RF=e=>{e&&!QE&&parseInt(e.substring(1,e.indexOf(".")))<12&&(QE=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
|
|
4
|
+
`+new Array(i).join(" ")+"^"}}return null}function QV(e){var t=cx(e),r=KV();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),HV(1)}function XV(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var r=arguments[1]&&arguments[1].stack,n=this.listeners(t).length>0;if(r&&!n)return QV(arguments[1])}return e.apply(this,arguments)}}var ZV=$n.slice(0),e2=Vn.slice(0);Ii.wrapCallSite=ax;Ii.getErrorSource=cx;Ii.mapSourcePosition=kv;Ii.retrieveSourceMap=jv;Ii.install=function(e){if(e=e||{},e.environment&&(Vo=e.environment,["node","browser","auto"].indexOf(Vo)===-1))throw new Error("environment "+Vo+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&($n.length=0),$n.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Vn.length=0),Vn.unshift(e.retrieveSourceMap)),e.hookRequire&&!Mv()){var t=rx(qv,"module"),r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(s,o){return xi[o]=s,Ko[o]=void 0,r.call(this,s,o)},t.prototype._compile.__sourceMapSupport=!0)}if(Ov||(Ov="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),nx||(nx=!0,Error.prepareStackTrace=YV),!ix){var n="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=rx(qv,"worker_threads");i.isMainThread===!1&&(n=!1)}catch{}n&&$V()&&(ix=!0,XV())}};Ii.resetRetrieveHandlers=function(){$n.length=0,Vn.length=0,$n=ZV.slice(0),Vn=e2.slice(0),jv=nd(Vn),zv=nd($n)}});var Fv=u(()=>{lx().install()});var q=u((HCe,od)=>{var ux,fx,mx,px,_x,hx,yx,gx,vx,id,Uv,Sx,wx,Ex,Es,bx,Ax,Tx,Cx,xx,Ix,Rx,Nx,Px,sd;(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(n){e(r(t,r(n)))}):typeof od=="object"&&typeof od.exports=="object"?e(r(t,r(od.exports))):e(r(t));function r(n,i){return n!==t&&(typeof Object.create=="function"?Object.defineProperty(n,"__esModule",{value:!0}):n.__esModule=!0),function(s,o){return n[s]=i?i(s,o):o}}})(function(e){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])};ux=function(n,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(n,i);function s(){this.constructor=n}n.prototype=i===null?Object.create(i):(s.prototype=i.prototype,new s)},fx=Object.assign||function(n){for(var i,s=1,o=arguments.length;s<o;s++){i=arguments[s];for(var a in i)Object.prototype.hasOwnProperty.call(i,a)&&(n[a]=i[a])}return n},mx=function(n,i){var s={};for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&i.indexOf(o)<0&&(s[o]=n[o]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,o=Object.getOwnPropertySymbols(n);a<o.length;a++)i.indexOf(o[a])<0&&Object.prototype.propertyIsEnumerable.call(n,o[a])&&(s[o[a]]=n[o[a]]);return s},px=function(n,i,s,o){var a=arguments.length,c=a<3?i:o===null?o=Object.getOwnPropertyDescriptor(i,s):o,d;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(n,i,s,o);else for(var f=n.length-1;f>=0;f--)(d=n[f])&&(c=(a<3?d(c):a>3?d(i,s,c):d(i,s))||c);return a>3&&c&&Object.defineProperty(i,s,c),c},_x=function(n,i){return function(s,o){i(s,o,n)}},hx=function(n,i){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(n,i)},yx=function(n,i,s,o){function a(c){return c instanceof s?c:new s(function(d){d(c)})}return new(s||(s=Promise))(function(c,d){function f(h){try{m(o.next(h))}catch(g){d(g)}}function _(h){try{m(o.throw(h))}catch(g){d(g)}}function m(h){h.done?c(h.value):a(h.value).then(f,_)}m((o=o.apply(n,i||[])).next())})},gx=function(n,i){var s={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},o,a,c,d;return d={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function f(m){return function(h){return _([m,h])}}function _(m){if(o)throw new TypeError("Generator is already executing.");for(;s;)try{if(o=1,a&&(c=m[0]&2?a.return:m[0]?a.throw||((c=a.return)&&c.call(a),0):a.next)&&!(c=c.call(a,m[1])).done)return c;switch(a=0,c&&(m=[m[0]&2,c.value]),m[0]){case 0:case 1:c=m;break;case 4:return s.label++,{value:m[1],done:!1};case 5:s.label++,a=m[1],m=[0];continue;case 7:m=s.ops.pop(),s.trys.pop();continue;default:if(c=s.trys,!(c=c.length>0&&c[c.length-1])&&(m[0]===6||m[0]===2)){s=0;continue}if(m[0]===3&&(!c||m[1]>c[0]&&m[1]<c[3])){s.label=m[1];break}if(m[0]===6&&s.label<c[1]){s.label=c[1],c=m;break}if(c&&s.label<c[2]){s.label=c[2],s.ops.push(m);break}c[2]&&s.ops.pop(),s.trys.pop();continue}m=i.call(n,s)}catch(h){m=[6,h],a=0}finally{o=c=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:!0}}},vx=function(n,i){for(var s in n)s!=="default"&&!Object.prototype.hasOwnProperty.call(i,s)&&sd(i,n,s)},sd=Object.create?function(n,i,s,o){o===void 0&&(o=s);var a=Object.getOwnPropertyDescriptor(i,s);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[s]}}),Object.defineProperty(n,o,a)}:function(n,i,s,o){o===void 0&&(o=s),n[o]=i[s]},id=function(n){var i=typeof Symbol=="function"&&Symbol.iterator,s=i&&n[i],o=0;if(s)return s.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&o>=n.length&&(n=void 0),{value:n&&n[o++],done:!n}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")},Uv=function(n,i){var s=typeof Symbol=="function"&&n[Symbol.iterator];if(!s)return n;var o=s.call(n),a,c=[],d;try{for(;(i===void 0||i-- >0)&&!(a=o.next()).done;)c.push(a.value)}catch(f){d={error:f}}finally{try{a&&!a.done&&(s=o.return)&&s.call(o)}finally{if(d)throw d.error}}return c},Sx=function(){for(var n=[],i=0;i<arguments.length;i++)n=n.concat(Uv(arguments[i]));return n},wx=function(){for(var n=0,i=0,s=arguments.length;i<s;i++)n+=arguments[i].length;for(var o=Array(n),a=0,i=0;i<s;i++)for(var c=arguments[i],d=0,f=c.length;d<f;d++,a++)o[a]=c[d];return o},Ex=function(n,i,s){if(s||arguments.length===2)for(var o=0,a=i.length,c;o<a;o++)(c||!(o in i))&&(c||(c=Array.prototype.slice.call(i,0,o)),c[o]=i[o]);return n.concat(c||Array.prototype.slice.call(i))},Es=function(n){return this instanceof Es?(this.v=n,this):new Es(n)},bx=function(n,i,s){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=s.apply(n,i||[]),a,c=[];return a={},d("next"),d("throw"),d("return"),a[Symbol.asyncIterator]=function(){return this},a;function d(y){o[y]&&(a[y]=function(A){return new Promise(function(R,T){c.push([y,A,R,T])>1||f(y,A)})})}function f(y,A){try{_(o[y](A))}catch(R){g(c[0][3],R)}}function _(y){y.value instanceof Es?Promise.resolve(y.value.v).then(m,h):g(c[0][2],y)}function m(y){f("next",y)}function h(y){f("throw",y)}function g(y,A){y(A),c.shift(),c.length&&f(c[0][0],c[0][1])}},Ax=function(n){var i,s;return i={},o("next"),o("throw",function(a){throw a}),o("return"),i[Symbol.iterator]=function(){return this},i;function o(a,c){i[a]=n[a]?function(d){return(s=!s)?{value:Es(n[a](d)),done:a==="return"}:c?c(d):d}:c}},Tx=function(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=n[Symbol.asyncIterator],s;return i?i.call(n):(n=typeof id=="function"?id(n):n[Symbol.iterator](),s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s);function o(c){s[c]=n[c]&&function(d){return new Promise(function(f,_){d=n[c](d),a(f,_,d.done,d.value)})}}function a(c,d,f,_){Promise.resolve(_).then(function(m){c({value:m,done:f})},d)}},Cx=function(n,i){return Object.defineProperty?Object.defineProperty(n,"raw",{value:i}):n.raw=i,n};var r=Object.create?function(n,i){Object.defineProperty(n,"default",{enumerable:!0,value:i})}:function(n,i){n.default=i};xx=function(n){if(n&&n.__esModule)return n;var i={};if(n!=null)for(var s in n)s!=="default"&&Object.prototype.hasOwnProperty.call(n,s)&&sd(i,n,s);return r(i,n),i},Ix=function(n){return n&&n.__esModule?n:{default:n}},Rx=function(n,i,s,o){if(s==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof i=="function"?n!==i||!o:!i.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return s==="m"?o:s==="a"?o.call(n):o?o.value:i.get(n)},Nx=function(n,i,s,o,a){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof i=="function"?n!==i||!a:!i.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?a.call(n,s):a?a.value=s:i.set(n,s),s},Px=function(n,i){if(i===null||typeof i!="object"&&typeof i!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof n=="function"?i===n:n.has(i)},e("__extends",ux),e("__assign",fx),e("__rest",mx),e("__decorate",px),e("__param",_x),e("__metadata",hx),e("__awaiter",yx),e("__generator",gx),e("__exportStar",vx),e("__createBinding",sd),e("__values",id),e("__read",Uv),e("__spread",Sx),e("__spreadArrays",wx),e("__spreadArray",Ex),e("__await",Es),e("__asyncGenerator",bx),e("__asyncDelegator",Ax),e("__asyncValues",Tx),e("__makeTemplateObject",Cx),e("__importStar",xx),e("__importDefault",Ix),e("__classPrivateFieldGet",Rx),e("__classPrivateFieldSet",Nx),e("__classPrivateFieldIn",Px)})});var Bv=u(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.deserializerMiddleware=void 0;var t2=(e,t)=>(r,n)=>async i=>{let{response:s}=await r(i);try{let o=await t(s,e);return{response:s,output:o}}catch(o){throw Object.defineProperty(o,"$response",{value:s}),o}};ad.deserializerMiddleware=t2});var Gv=u(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.serializerMiddleware=void 0;var r2=(e,t)=>(r,n)=>async i=>{let s=await t(i.input,e);return r({...i,request:s})};cd.serializerMiddleware=r2});var Dx=u(vr=>{"use strict";Object.defineProperty(vr,"__esModule",{value:!0});vr.getSerdePlugin=vr.serializerMiddlewareOption=vr.deserializerMiddlewareOption=void 0;var n2=Bv(),i2=Gv();vr.deserializerMiddlewareOption={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0};vr.serializerMiddlewareOption={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function s2(e,t,r){return{applyToStack:n=>{n.add((0,n2.deserializerMiddleware)(e,r),vr.deserializerMiddlewareOption),n.add((0,i2.serializerMiddleware)(e,t),vr.serializerMiddlewareOption)}}}vr.getSerdePlugin=s2});var U=u(Ho=>{"use strict";Object.defineProperty(Ho,"__esModule",{value:!0});var $v=q();$v.__exportStar(Bv(),Ho);$v.__exportStar(Dx(),Ho);$v.__exportStar(Gv(),Ho)});var qx=u(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.constructStack=void 0;var o2=()=>{let e=[],t=[],r=new Set,n=f=>f.sort((_,m)=>Ox[m.step]-Ox[_.step]||Lx[m.priority||"normal"]-Lx[_.priority||"normal"]),i=f=>{let _=!1,m=h=>h.name&&h.name===f?(_=!0,r.delete(f),!1):!0;return e=e.filter(m),t=t.filter(m),_},s=f=>{let _=!1,m=h=>h.middleware===f?(_=!0,h.name&&r.delete(h.name),!1):!0;return e=e.filter(m),t=t.filter(m),_},o=f=>(e.forEach(_=>{f.add(_.middleware,{..._})}),t.forEach(_=>{f.addRelativeTo(_.middleware,{..._})}),f),a=f=>{let _=[];return f.before.forEach(m=>{m.before.length===0&&m.after.length===0?_.push(m):_.push(...a(m))}),_.push(f),f.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?_.push(m):_.push(...a(m))}),_},c=()=>{let f=[],_=[],m={};return e.forEach(g=>{let y={...g,before:[],after:[]};y.name&&(m[y.name]=y),f.push(y)}),t.forEach(g=>{let y={...g,before:[],after:[]};y.name&&(m[y.name]=y),_.push(y)}),_.forEach(g=>{if(g.toMiddleware){let y=m[g.toMiddleware];if(y===void 0)throw new Error(`${g.toMiddleware} is not found when adding ${g.name||"anonymous"} middleware ${g.relation} ${g.toMiddleware}`);g.relation==="after"&&y.after.push(g),g.relation==="before"&&y.before.push(g)}}),n(f).map(a).reduce((g,y)=>(g.push(...y),g),[]).map(g=>g.middleware)},d={add:(f,_={})=>{let{name:m,override:h}=_,g={step:"initialize",priority:"normal",middleware:f,..._};if(m){if(r.has(m)){if(!h)throw new Error(`Duplicate middleware name '${m}'`);let y=e.findIndex(R=>R.name===m),A=e[y];if(A.step!==g.step||A.priority!==g.priority)throw new Error(`"${m}" middleware with ${A.priority} priority in ${A.step} step cannot be overridden by same-name middleware with ${g.priority} priority in ${g.step} step.`);e.splice(y,1)}r.add(m)}e.push(g)},addRelativeTo:(f,_)=>{let{name:m,override:h}=_,g={middleware:f,..._};if(m){if(r.has(m)){if(!h)throw new Error(`Duplicate middleware name '${m}'`);let y=t.findIndex(R=>R.name===m),A=t[y];if(A.toMiddleware!==g.toMiddleware||A.relation!==g.relation)throw new Error(`"${m}" middleware ${A.relation} "${A.toMiddleware}" middleware cannot be overridden by same-name middleware ${g.relation} "${g.toMiddleware}" middleware.`);t.splice(y,1)}r.add(m)}t.push(g)},clone:()=>o((0,bs.constructStack)()),use:f=>{f.applyToStack(d)},remove:f=>typeof f=="string"?i(f):s(f),removeByTag:f=>{let _=!1,m=h=>{let{tags:g,name:y}=h;return g&&g.includes(f)?(y&&r.delete(y),_=!0,!1):!0};return e=e.filter(m),t=t.filter(m),_},concat:f=>{let _=o((0,bs.constructStack)());return _.use(f),_},applyToStack:o,resolve:(f,_)=>{for(let m of c().reverse())f=m(f,_);return f}};return d};bs.constructStack=o2;var Ox={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},Lx={high:3,normal:2,low:1}});var Kv=u(Vv=>{"use strict";Object.defineProperty(Vv,"__esModule",{value:!0});var a2=q();a2.__exportStar(qx(),Vv)});var Mx=u(ld=>{"use strict";Object.defineProperty(ld,"__esModule",{value:!0});ld.Client=void 0;var c2=Kv(),Hv=class{constructor(t){this.middlewareStack=(0,c2.constructStack)(),this.config=t}send(t,r,n){let i=typeof r!="function"?r:void 0,s=typeof r=="function"?r:n,o=t.resolveMiddleware(this.middlewareStack,this.config,i);if(s)o(t).then(a=>s(null,a.output),a=>s(a)).catch(()=>{});else return o(t).then(a=>a.output)}destroy(){this.config.requestHandler.destroy&&this.config.requestHandler.destroy()}};ld.Client=Hv});var zx=u(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.Command=void 0;var l2=Kv(),Wv=class{constructor(){this.middlewareStack=(0,l2.constructStack)()}};dd.Command=Wv});var jx=u(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.SENSITIVE_STRING=void 0;ud.SENSITIVE_STRING="***SensitiveInformation***"});var Yv=u(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 d2=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}};M.parseBoolean=d2;var u2=e=>{if(e!=null){if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}`)}};M.expectBoolean=u2;var f2=e=>{if(e!=null){if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}`)}};M.expectNumber=f2;var m2=Math.ceil(2**127*(2-2**-23)),p2=e=>{let t=(0,M.expectNumber)(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>m2)throw new TypeError(`Expected 32-bit float, got ${e}`);return t};M.expectFloat32=p2;var _2=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}`)}};M.expectLong=_2;M.expectInt=M.expectLong;var h2=e=>Jv(e,32);M.expectInt32=h2;var y2=e=>Jv(e,16);M.expectShort=y2;var g2=e=>Jv(e,8);M.expectByte=g2;var Jv=(e,t)=>{let r=(0,M.expectLong)(e);if(r!==void 0&&v2(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},v2=(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]}},S2=(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=S2;var w2=e=>{if(e!=null){if(typeof e=="object"&&!Array.isArray(e))return e;throw new TypeError(`Expected object, got ${typeof e}`)}};M.expectObject=w2;var E2=e=>{if(e!=null){if(typeof e=="string")return e;throw new TypeError(`Expected string, got ${typeof e}`)}};M.expectString=E2;var b2=e=>{if(e==null)return;let t=(0,M.expectObject)(e),r=Object.entries(t).filter(([n,i])=>i!=null).map(([n,i])=>n);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t};M.expectUnion=b2;var A2=e=>typeof e=="string"?(0,M.expectNumber)(As(e)):(0,M.expectNumber)(e);M.strictParseDouble=A2;M.strictParseFloat=M.strictParseDouble;var T2=e=>typeof e=="string"?(0,M.expectFloat32)(As(e)):(0,M.expectFloat32)(e);M.strictParseFloat32=T2;var C2=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,As=e=>{let t=e.match(C2);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},x2=e=>typeof e=="string"?kx(e):(0,M.expectNumber)(e);M.limitedParseDouble=x2;M.handleFloat=M.limitedParseDouble;M.limitedParseFloat=M.limitedParseDouble;var I2=e=>typeof e=="string"?kx(e):(0,M.expectFloat32)(e);M.limitedParseFloat32=I2;var kx=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}`)}},R2=e=>typeof e=="string"?(0,M.expectLong)(As(e)):(0,M.expectLong)(e);M.strictParseLong=R2;M.strictParseInt=M.strictParseLong;var N2=e=>typeof e=="string"?(0,M.expectInt32)(As(e)):(0,M.expectInt32)(e);M.strictParseInt32=N2;var P2=e=>typeof e=="string"?(0,M.expectShort)(As(e)):(0,M.expectShort)(e);M.strictParseShort=P2;var D2=e=>typeof e=="string"?(0,M.expectByte)(As(e)):(0,M.expectByte)(e);M.strictParseByte=D2});var Fx=u(Sr=>{"use strict";Object.defineProperty(Sr,"__esModule",{value:!0});Sr.parseEpochTimestamp=Sr.parseRfc7231DateTime=Sr.parseRfc3339DateTime=Sr.dateToUtcString=void 0;var Ri=Yv(),O2=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Xv=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L2(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),i=e.getUTCDate(),s=e.getUTCHours(),o=e.getUTCMinutes(),a=e.getUTCSeconds(),c=i<10?`0${i}`:`${i}`,d=s<10?`0${s}`:`${s}`,f=o<10?`0${o}`:`${o}`,_=a<10?`0${a}`:`${a}`;return`${O2[n]}, ${c} ${Xv[r]} ${t} ${d}:${f}:${_} GMT`}Sr.dateToUtcString=L2;var q2=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),M2=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=q2.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,n,i,s,o,a,c,d]=t,f=(0,Ri.strictParseShort)(Wo(n)),_=Kn(i,"month",1,12),m=Kn(s,"day",1,31);return fd(f,_,m,{hours:o,minutes:a,seconds:c,fractionalMilliseconds:d})};Sr.parseRfc3339DateTime=M2;var z2=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$/),j2=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$/),k2=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})$/),F2=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=z2.exec(e);if(t){let[r,n,i,s,o,a,c,d]=t;return fd((0,Ri.strictParseShort)(Wo(s)),Qv(i),Kn(n,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:d})}if(t=j2.exec(e),t){let[r,n,i,s,o,a,c,d]=t;return $2(fd(B2(s),Qv(i),Kn(n,"day",1,31),{hours:o,minutes:a,seconds:c,fractionalMilliseconds:d}))}if(t=k2.exec(e),t){let[r,n,i,s,o,a,c,d]=t;return fd((0,Ri.strictParseShort)(Wo(d)),Qv(n),Kn(i.trimLeft(),"day",1,31),{hours:s,minutes:o,seconds:a,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")};Sr.parseRfc7231DateTime=F2;var U2=e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=(0,Ri.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))};Sr.parseEpochTimestamp=U2;var fd=(e,t,r,n)=>{let i=t-1;return K2(e,i,r),new Date(Date.UTC(e,i,r,Kn(n.hours,"hour",0,23),Kn(n.minutes,"minute",0,59),Kn(n.seconds,"seconds",0,60),W2(n.fractionalMilliseconds)))},B2=e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+(0,Ri.strictParseShort)(Wo(e));return r<t?r+100:r},G2=50*365*24*60*60*1e3,$2=e=>e.getTime()-new Date().getTime()>G2?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,Qv=e=>{let t=Xv.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},V2=[31,28,31,30,31,30,31,31,30,31,30,31],K2=(e,t,r)=>{let n=V2[t];if(t===1&&H2(e)&&(n=29),r>n)throw new TypeError(`Invalid day for ${Xv[t]} in ${e}: ${r}`)},H2=e=>e%4===0&&(e%100!==0||e%400===0),Kn=(e,t,r,n)=>{let i=(0,Ri.strictParseByte)(Wo(e));if(i<r||i>n)throw new TypeError(`${t} must be between ${r} and ${n}, inclusive`);return i},W2=e=>e==null?0:(0,Ri.strictParseFloat32)("0."+e)*1e3,Wo=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)}});var Ux=u(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.loadConfigsForDefaultMode=void 0;var J2=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{}}};md.loadConfigsForDefaultMode=J2});var Gx=u(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.emitWarningIfUnsupportedVersion=void 0;var Bx=!1,Y2=e=>{e&&!Bx&&parseInt(e.substring(1,e.indexOf(".")))<12&&(Bx=!0,process.emitWarning(`The AWS SDK for JavaScript (v3) will
|
|
5
5
|
no longer support Node.js ${e} as of January 1, 2022.
|
|
6
6
|
To continue receiving updates to AWS services, bug fixes, and security
|
|
7
7
|
updates please upgrade to Node.js 12.x or later.
|
|
8
8
|
|
|
9
|
-
More information can be found at: https://a.co/1l6FLnu`,"NodeDeprecationWarning"))};Vc.emitWarningIfUnsupportedVersion=RF});var ZE=f(Hi=>{"use strict";Object.defineProperty(Hi,"__esModule",{value:!0});Hi.decorateServiceException=Hi.ServiceException=void 0;var uo=class extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,uo.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};Hi.ServiceException=uo;var DF=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,i])=>{(e[r]==null||e[r]==="")&&(e[r]=i)});let n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e};Hi.decorateServiceException=DF});var eA=f(Kc=>{"use strict";Object.defineProperty(Kc,"__esModule",{value:!0});Kc.extendedEncodeURIComponent=void 0;function NF(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}Kc.extendedEncodeURIComponent=NF});var tA=f(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.getArrayIfSingleItem=void 0;var PF=e=>Array.isArray(e)?e:[e];Wc.getArrayIfSingleItem=PF});var nA=f(fo=>{"use strict";Object.defineProperty(fo,"__esModule",{value:!0});fo.getValueFromTextNode=void 0;var OF=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]=(0,fo.getValueFromTextNode)(e[n]));return e};fo.getValueFromTextNode=OF});var rA=f(pn=>{"use strict";Object.defineProperty(pn,"__esModule",{value:!0});pn.LazyJsonString=pn.StringWrapper=void 0;var LF=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),n=new t;return Object.setPrototypeOf(n,e.prototype),n};pn.StringWrapper=LF;pn.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:pn.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(pn.StringWrapper,String);var si=class extends pn.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof si?t:t instanceof String||typeof t=="string"?new si(t):new si(JSON.stringify(t))}};pn.LazyJsonString=si});var iA=f(Hc=>{"use strict";Object.defineProperty(Hc,"__esModule",{value:!0});Hc.serializeFloat=void 0;var qF=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};Hc.serializeFloat=qF});var sA=f(Yc=>{"use strict";Object.defineProperty(Yc,"__esModule",{value:!0});Yc.splitEvery=void 0;function MF(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 o=0;o<r.length;o++)s===""?s=r[o]:s+=t+r[o],(o+1)%n===0&&(i.push(s),s="");return s!==""&&i.push(s),i}Yc.splitEvery=MF});var O=f(lt=>{"use strict";Object.defineProperty(lt,"__esModule",{value:!0});var St=K();St.__exportStar(VE(),lt);St.__exportStar(KE(),lt);St.__exportStar(WE(),lt);St.__exportStar(YE(),lt);St.__exportStar(JE(),lt);St.__exportStar(XE(),lt);St.__exportStar(ZE(),lt);St.__exportStar(eA(),lt);St.__exportStar(tA(),lt);St.__exportStar(nA(),lt);St.__exportStar(rA(),lt);St.__exportStar($_(),lt);St.__exportStar(iA(),lt);St.__exportStar(sA(),lt)});var Qc=f(Jc=>{"use strict";Object.defineProperty(Jc,"__esModule",{value:!0});Jc.DynamoDBServiceException=void 0;var zF=O(),mo=class extends zF.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,mo.prototype)}};Jc.DynamoDBServiceException=mo});var H=f(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.ProvisionedThroughputOverride=l.CreateGlobalTableInput=l.Replica=l.CreateGlobalSecondaryIndexAction=l.TableNotFoundException=l.TableInUseException=l.LimitExceededException=l.CreateBackupOutput=l.CreateBackupInput=l.ContributorInsightsSummary=l.ContinuousBackupsUnavailableException=l.ContinuousBackupsDescription=l.PointInTimeRecoveryDescription=l.ConditionalCheckFailedException=l.BillingModeSummary=l.ItemCollectionSizeLimitExceededException=l.ResourceNotFoundException=l.ProvisionedThroughputExceededException=l.InvalidEndpointException=l.RequestLimitExceeded=l.InternalServerError=l.BatchStatementError=l.BatchStatementErrorCodeEnum=l.ConsumedCapacity=l.Capacity=l.BackupTypeFilter=l.BackupSummary=l.BackupNotFoundException=l.BackupInUseException=l.BackupDescription=l.SourceTableFeatureDetails=l.TimeToLiveDescription=l.StreamSpecification=l.SSEDescription=l.LocalSecondaryIndexInfo=l.GlobalSecondaryIndexInfo=l.Projection=l.SourceTableDetails=l.ProvisionedThroughput=l.KeySchemaElement=l.BackupDetails=l.BackupType=l.AutoScalingSettingsUpdate=l.AutoScalingSettingsDescription=l.AutoScalingPolicyUpdate=l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=l.AutoScalingPolicyDescription=l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=l.AttributeDefinition=l.ArchivalSummary=void 0;l.DescribeGlobalTableSettingsInput=l.GlobalTableNotFoundException=l.DescribeGlobalTableOutput=l.DescribeGlobalTableInput=l.ExportNotFoundException=l.DescribeExportOutput=l.ExportDescription=l.ExportStatus=l.ExportFormat=l.DescribeExportInput=l.DescribeEndpointsResponse=l.Endpoint=l.DescribeEndpointsRequest=l.DescribeContributorInsightsOutput=l.FailureException=l.DescribeContributorInsightsInput=l.DescribeContinuousBackupsOutput=l.DescribeContinuousBackupsInput=l.DescribeBackupOutput=l.DescribeBackupInput=l.DeleteTableOutput=l.DeleteTableInput=l.DeleteReplicationGroupMemberAction=l.DeleteReplicaAction=l.TransactionConflictException=l.DeleteGlobalSecondaryIndexAction=l.DeleteBackupOutput=l.DeleteBackupInput=l.ResourceInUseException=l.CreateTableOutput=l.TableDescription=l.RestoreSummary=l.LocalSecondaryIndexDescription=l.GlobalSecondaryIndexDescription=l.ProvisionedThroughputDescription=l.CreateTableInput=l.Tag=l.SSESpecification=l.LocalSecondaryIndex=l.GlobalSecondaryIndex=l.CreateReplicationGroupMemberAction=l.ReplicaGlobalSecondaryIndex=l.CreateReplicaAction=l.GlobalTableAlreadyExistsException=l.CreateGlobalTableOutput=l.GlobalTableDescription=l.ReplicaDescription=l.TableClassSummary=l.TableClass=l.ReplicaGlobalSecondaryIndexDescription=void 0;l.PointInTimeRecoverySpecification=l.UntagResourceInput=l.TagResourceInput=l.RestoreTableToPointInTimeOutput=l.RestoreTableToPointInTimeInput=l.InvalidRestoreTimeException=l.TableAlreadyExistsException=l.RestoreTableFromBackupOutput=l.RestoreTableFromBackupInput=l.ListTagsOfResourceOutput=l.ListTagsOfResourceInput=l.ListTablesOutput=l.ListTablesInput=l.ListGlobalTablesOutput=l.GlobalTable=l.ListGlobalTablesInput=l.ListExportsOutput=l.ExportSummary=l.ListExportsInput=l.ListContributorInsightsOutput=l.ListContributorInsightsInput=l.ListBackupsOutput=l.ListBackupsInput=l.PointInTimeRecoveryUnavailableException=l.InvalidExportTimeException=l.ExportTableToPointInTimeOutput=l.ExportTableToPointInTimeInput=l.ExportConflictException=l.TransactionInProgressException=l.IdempotentParameterMismatchException=l.DuplicateItemException=l.KinesisStreamingDestinationOutput=l.KinesisStreamingDestinationInput=l.DescribeTimeToLiveOutput=l.DescribeTimeToLiveInput=l.DescribeTableReplicaAutoScalingOutput=l.TableAutoScalingDescription=l.ReplicaAutoScalingDescription=l.ReplicaGlobalSecondaryIndexAutoScalingDescription=l.DescribeTableReplicaAutoScalingInput=l.DescribeTableOutput=l.DescribeTableInput=l.DescribeLimitsOutput=l.DescribeLimitsInput=l.DescribeKinesisStreamingDestinationOutput=l.KinesisDataStreamDestination=l.DescribeKinesisStreamingDestinationInput=l.DescribeGlobalTableSettingsOutput=l.ReplicaSettingsDescription=l.ReplicaGlobalSecondaryIndexSettingsDescription=void 0;l.ExecuteTransactionOutput=l.ExecuteTransactionInput=l.BatchExecuteStatementOutput=l.BatchExecuteStatementInput=l.TransactGetItem=l.KeysAndAttributes=l.PutRequest=l.ParameterizedStatement=l.ItemResponse=l.ItemCollectionMetrics=l.GetItemOutput=l.GetItemInput=l.Get=l.ExecuteStatementInput=l.DeleteRequest=l.Condition=l.CancellationReason=l.BatchStatementResponse=l.BatchStatementRequest=l.AttributeValueUpdate=l.AttributeValue=l.UpdateTimeToLiveOutput=l.UpdateTimeToLiveInput=l.TimeToLiveSpecification=l.UpdateTableReplicaAutoScalingOutput=l.UpdateTableReplicaAutoScalingInput=l.ReplicaAutoScalingUpdate=l.ReplicaGlobalSecondaryIndexAutoScalingUpdate=l.GlobalSecondaryIndexAutoScalingUpdate=l.UpdateTableOutput=l.UpdateTableInput=l.ReplicationGroupUpdate=l.UpdateReplicationGroupMemberAction=l.GlobalSecondaryIndexUpdate=l.UpdateGlobalSecondaryIndexAction=l.UpdateGlobalTableSettingsOutput=l.UpdateGlobalTableSettingsInput=l.ReplicaSettingsUpdate=l.ReplicaGlobalSecondaryIndexSettingsUpdate=l.GlobalTableGlobalSecondaryIndexSettingsUpdate=l.IndexNotFoundException=l.UpdateGlobalTableOutput=l.UpdateGlobalTableInput=l.ReplicaUpdate=l.ReplicaNotFoundException=l.ReplicaAlreadyExistsException=l.UpdateContributorInsightsOutput=l.UpdateContributorInsightsInput=l.UpdateContinuousBackupsOutput=l.UpdateContinuousBackupsInput=void 0;l.TransactWriteItemsInput=l.TransactWriteItem=l.UpdateItemInput=l.BatchWriteItemOutput=l.QueryInput=l.PutItemInput=l.DeleteItemInput=l.BatchWriteItemInput=l.ScanInput=l.BatchGetItemOutput=l.WriteRequest=l.UpdateItemOutput=l.ScanOutput=l.QueryOutput=l.PutItemOutput=l.ExecuteStatementOutput=l.DeleteItemOutput=l.Update=l.Put=l.Delete=l.ConditionCheck=l.TransactWriteItemsOutput=l.TransactGetItemsInput=l.ExpectedAttributeValue=l.BatchGetItemInput=l.TransactionCanceledException=l.TransactGetItemsOutput=void 0;var we=Qc(),jF;(function(e){e.filterSensitiveLog=t=>({...t})})(jF=l.ArchivalSummary||(l.ArchivalSummary={}));var kF;(function(e){e.filterSensitiveLog=t=>({...t})})(kF=l.AttributeDefinition||(l.AttributeDefinition={}));var FF;(function(e){e.filterSensitiveLog=t=>({...t})})(FF=l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var UF;(function(e){e.filterSensitiveLog=t=>({...t})})(UF=l.AutoScalingPolicyDescription||(l.AutoScalingPolicyDescription={}));var BF;(function(e){e.filterSensitiveLog=t=>({...t})})(BF=l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var GF;(function(e){e.filterSensitiveLog=t=>({...t})})(GF=l.AutoScalingPolicyUpdate||(l.AutoScalingPolicyUpdate={}));var $F;(function(e){e.filterSensitiveLog=t=>({...t})})($F=l.AutoScalingSettingsDescription||(l.AutoScalingSettingsDescription={}));var VF;(function(e){e.filterSensitiveLog=t=>({...t})})(VF=l.AutoScalingSettingsUpdate||(l.AutoScalingSettingsUpdate={}));var KF;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(KF=l.BackupType||(l.BackupType={}));var WF;(function(e){e.filterSensitiveLog=t=>({...t})})(WF=l.BackupDetails||(l.BackupDetails={}));var HF;(function(e){e.filterSensitiveLog=t=>({...t})})(HF=l.KeySchemaElement||(l.KeySchemaElement={}));var YF;(function(e){e.filterSensitiveLog=t=>({...t})})(YF=l.ProvisionedThroughput||(l.ProvisionedThroughput={}));var JF;(function(e){e.filterSensitiveLog=t=>({...t})})(JF=l.SourceTableDetails||(l.SourceTableDetails={}));var QF;(function(e){e.filterSensitiveLog=t=>({...t})})(QF=l.Projection||(l.Projection={}));var XF;(function(e){e.filterSensitiveLog=t=>({...t})})(XF=l.GlobalSecondaryIndexInfo||(l.GlobalSecondaryIndexInfo={}));var ZF;(function(e){e.filterSensitiveLog=t=>({...t})})(ZF=l.LocalSecondaryIndexInfo||(l.LocalSecondaryIndexInfo={}));var eU;(function(e){e.filterSensitiveLog=t=>({...t})})(eU=l.SSEDescription||(l.SSEDescription={}));var tU;(function(e){e.filterSensitiveLog=t=>({...t})})(tU=l.StreamSpecification||(l.StreamSpecification={}));var nU;(function(e){e.filterSensitiveLog=t=>({...t})})(nU=l.TimeToLiveDescription||(l.TimeToLiveDescription={}));var rU;(function(e){e.filterSensitiveLog=t=>({...t})})(rU=l.SourceTableFeatureDetails||(l.SourceTableFeatureDetails={}));var iU;(function(e){e.filterSensitiveLog=t=>({...t})})(iU=l.BackupDescription||(l.BackupDescription={}));var po=class extends we.DynamoDBServiceException{constructor(t){super({name:"BackupInUseException",$fault:"client",...t}),this.name="BackupInUseException",this.$fault="client",Object.setPrototypeOf(this,po.prototype)}};l.BackupInUseException=po;var ho=class extends we.DynamoDBServiceException{constructor(t){super({name:"BackupNotFoundException",$fault:"client",...t}),this.name="BackupNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ho.prototype)}};l.BackupNotFoundException=ho;var sU;(function(e){e.filterSensitiveLog=t=>({...t})})(sU=l.BackupSummary||(l.BackupSummary={}));var oU;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(oU=l.BackupTypeFilter||(l.BackupTypeFilter={}));var aU;(function(e){e.filterSensitiveLog=t=>({...t})})(aU=l.Capacity||(l.Capacity={}));var cU;(function(e){e.filterSensitiveLog=t=>({...t})})(cU=l.ConsumedCapacity||(l.ConsumedCapacity={}));var lU;(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"})(lU=l.BatchStatementErrorCodeEnum||(l.BatchStatementErrorCodeEnum={}));var uU;(function(e){e.filterSensitiveLog=t=>({...t})})(uU=l.BatchStatementError||(l.BatchStatementError={}));var _o=class extends we.DynamoDBServiceException{constructor(t){super({name:"InternalServerError",$fault:"server",...t}),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,_o.prototype)}};l.InternalServerError=_o;var yo=class extends we.DynamoDBServiceException{constructor(t){super({name:"RequestLimitExceeded",$fault:"client",...t}),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,yo.prototype)}};l.RequestLimitExceeded=yo;var go=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t}),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,go.prototype),this.Message=t.Message}};l.InvalidEndpointException=go;var vo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ProvisionedThroughputExceededException",$fault:"client",...t}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,vo.prototype)}};l.ProvisionedThroughputExceededException=vo;var So=class extends we.DynamoDBServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,So.prototype)}};l.ResourceNotFoundException=So;var wo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...t}),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,wo.prototype)}};l.ItemCollectionSizeLimitExceededException=wo;var dU;(function(e){e.filterSensitiveLog=t=>({...t})})(dU=l.BillingModeSummary||(l.BillingModeSummary={}));var bo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ConditionalCheckFailedException",$fault:"client",...t}),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,bo.prototype)}};l.ConditionalCheckFailedException=bo;var fU;(function(e){e.filterSensitiveLog=t=>({...t})})(fU=l.PointInTimeRecoveryDescription||(l.PointInTimeRecoveryDescription={}));var mU;(function(e){e.filterSensitiveLog=t=>({...t})})(mU=l.ContinuousBackupsDescription||(l.ContinuousBackupsDescription={}));var Eo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...t}),this.name="ContinuousBackupsUnavailableException",this.$fault="client",Object.setPrototypeOf(this,Eo.prototype)}};l.ContinuousBackupsUnavailableException=Eo;var pU;(function(e){e.filterSensitiveLog=t=>({...t})})(pU=l.ContributorInsightsSummary||(l.ContributorInsightsSummary={}));var hU;(function(e){e.filterSensitiveLog=t=>({...t})})(hU=l.CreateBackupInput||(l.CreateBackupInput={}));var _U;(function(e){e.filterSensitiveLog=t=>({...t})})(_U=l.CreateBackupOutput||(l.CreateBackupOutput={}));var Ao=class extends we.DynamoDBServiceException{constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,Ao.prototype)}};l.LimitExceededException=Ao;var To=class extends we.DynamoDBServiceException{constructor(t){super({name:"TableInUseException",$fault:"client",...t}),this.name="TableInUseException",this.$fault="client",Object.setPrototypeOf(this,To.prototype)}};l.TableInUseException=To;var Co=class extends we.DynamoDBServiceException{constructor(t){super({name:"TableNotFoundException",$fault:"client",...t}),this.name="TableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Co.prototype)}};l.TableNotFoundException=Co;var yU;(function(e){e.filterSensitiveLog=t=>({...t})})(yU=l.CreateGlobalSecondaryIndexAction||(l.CreateGlobalSecondaryIndexAction={}));var gU;(function(e){e.filterSensitiveLog=t=>({...t})})(gU=l.Replica||(l.Replica={}));var vU;(function(e){e.filterSensitiveLog=t=>({...t})})(vU=l.CreateGlobalTableInput||(l.CreateGlobalTableInput={}));var SU;(function(e){e.filterSensitiveLog=t=>({...t})})(SU=l.ProvisionedThroughputOverride||(l.ProvisionedThroughputOverride={}));var wU;(function(e){e.filterSensitiveLog=t=>({...t})})(wU=l.ReplicaGlobalSecondaryIndexDescription||(l.ReplicaGlobalSecondaryIndexDescription={}));var bU;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(bU=l.TableClass||(l.TableClass={}));var EU;(function(e){e.filterSensitiveLog=t=>({...t})})(EU=l.TableClassSummary||(l.TableClassSummary={}));var AU;(function(e){e.filterSensitiveLog=t=>({...t})})(AU=l.ReplicaDescription||(l.ReplicaDescription={}));var TU;(function(e){e.filterSensitiveLog=t=>({...t})})(TU=l.GlobalTableDescription||(l.GlobalTableDescription={}));var CU;(function(e){e.filterSensitiveLog=t=>({...t})})(CU=l.CreateGlobalTableOutput||(l.CreateGlobalTableOutput={}));var xo=class extends we.DynamoDBServiceException{constructor(t){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...t}),this.name="GlobalTableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,xo.prototype)}};l.GlobalTableAlreadyExistsException=xo;var xU;(function(e){e.filterSensitiveLog=t=>({...t})})(xU=l.CreateReplicaAction||(l.CreateReplicaAction={}));var IU;(function(e){e.filterSensitiveLog=t=>({...t})})(IU=l.ReplicaGlobalSecondaryIndex||(l.ReplicaGlobalSecondaryIndex={}));var RU;(function(e){e.filterSensitiveLog=t=>({...t})})(RU=l.CreateReplicationGroupMemberAction||(l.CreateReplicationGroupMemberAction={}));var DU;(function(e){e.filterSensitiveLog=t=>({...t})})(DU=l.GlobalSecondaryIndex||(l.GlobalSecondaryIndex={}));var NU;(function(e){e.filterSensitiveLog=t=>({...t})})(NU=l.LocalSecondaryIndex||(l.LocalSecondaryIndex={}));var PU;(function(e){e.filterSensitiveLog=t=>({...t})})(PU=l.SSESpecification||(l.SSESpecification={}));var OU;(function(e){e.filterSensitiveLog=t=>({...t})})(OU=l.Tag||(l.Tag={}));var LU;(function(e){e.filterSensitiveLog=t=>({...t})})(LU=l.CreateTableInput||(l.CreateTableInput={}));var qU;(function(e){e.filterSensitiveLog=t=>({...t})})(qU=l.ProvisionedThroughputDescription||(l.ProvisionedThroughputDescription={}));var MU;(function(e){e.filterSensitiveLog=t=>({...t})})(MU=l.GlobalSecondaryIndexDescription||(l.GlobalSecondaryIndexDescription={}));var zU;(function(e){e.filterSensitiveLog=t=>({...t})})(zU=l.LocalSecondaryIndexDescription||(l.LocalSecondaryIndexDescription={}));var jU;(function(e){e.filterSensitiveLog=t=>({...t})})(jU=l.RestoreSummary||(l.RestoreSummary={}));var kU;(function(e){e.filterSensitiveLog=t=>({...t})})(kU=l.TableDescription||(l.TableDescription={}));var FU;(function(e){e.filterSensitiveLog=t=>({...t})})(FU=l.CreateTableOutput||(l.CreateTableOutput={}));var Io=class extends we.DynamoDBServiceException{constructor(t){super({name:"ResourceInUseException",$fault:"client",...t}),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,Io.prototype)}};l.ResourceInUseException=Io;var UU;(function(e){e.filterSensitiveLog=t=>({...t})})(UU=l.DeleteBackupInput||(l.DeleteBackupInput={}));var BU;(function(e){e.filterSensitiveLog=t=>({...t})})(BU=l.DeleteBackupOutput||(l.DeleteBackupOutput={}));var GU;(function(e){e.filterSensitiveLog=t=>({...t})})(GU=l.DeleteGlobalSecondaryIndexAction||(l.DeleteGlobalSecondaryIndexAction={}));var Ro=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionConflictException",$fault:"client",...t}),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,Ro.prototype)}};l.TransactionConflictException=Ro;var $U;(function(e){e.filterSensitiveLog=t=>({...t})})($U=l.DeleteReplicaAction||(l.DeleteReplicaAction={}));var VU;(function(e){e.filterSensitiveLog=t=>({...t})})(VU=l.DeleteReplicationGroupMemberAction||(l.DeleteReplicationGroupMemberAction={}));var KU;(function(e){e.filterSensitiveLog=t=>({...t})})(KU=l.DeleteTableInput||(l.DeleteTableInput={}));var WU;(function(e){e.filterSensitiveLog=t=>({...t})})(WU=l.DeleteTableOutput||(l.DeleteTableOutput={}));var HU;(function(e){e.filterSensitiveLog=t=>({...t})})(HU=l.DescribeBackupInput||(l.DescribeBackupInput={}));var YU;(function(e){e.filterSensitiveLog=t=>({...t})})(YU=l.DescribeBackupOutput||(l.DescribeBackupOutput={}));var JU;(function(e){e.filterSensitiveLog=t=>({...t})})(JU=l.DescribeContinuousBackupsInput||(l.DescribeContinuousBackupsInput={}));var QU;(function(e){e.filterSensitiveLog=t=>({...t})})(QU=l.DescribeContinuousBackupsOutput||(l.DescribeContinuousBackupsOutput={}));var XU;(function(e){e.filterSensitiveLog=t=>({...t})})(XU=l.DescribeContributorInsightsInput||(l.DescribeContributorInsightsInput={}));var ZU;(function(e){e.filterSensitiveLog=t=>({...t})})(ZU=l.FailureException||(l.FailureException={}));var eB;(function(e){e.filterSensitiveLog=t=>({...t})})(eB=l.DescribeContributorInsightsOutput||(l.DescribeContributorInsightsOutput={}));var tB;(function(e){e.filterSensitiveLog=t=>({...t})})(tB=l.DescribeEndpointsRequest||(l.DescribeEndpointsRequest={}));var nB;(function(e){e.filterSensitiveLog=t=>({...t})})(nB=l.Endpoint||(l.Endpoint={}));var rB;(function(e){e.filterSensitiveLog=t=>({...t})})(rB=l.DescribeEndpointsResponse||(l.DescribeEndpointsResponse={}));var iB;(function(e){e.filterSensitiveLog=t=>({...t})})(iB=l.DescribeExportInput||(l.DescribeExportInput={}));var sB;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(sB=l.ExportFormat||(l.ExportFormat={}));var oB;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(oB=l.ExportStatus||(l.ExportStatus={}));var aB;(function(e){e.filterSensitiveLog=t=>({...t})})(aB=l.ExportDescription||(l.ExportDescription={}));var cB;(function(e){e.filterSensitiveLog=t=>({...t})})(cB=l.DescribeExportOutput||(l.DescribeExportOutput={}));var Do=class extends we.DynamoDBServiceException{constructor(t){super({name:"ExportNotFoundException",$fault:"client",...t}),this.name="ExportNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Do.prototype)}};l.ExportNotFoundException=Do;var lB;(function(e){e.filterSensitiveLog=t=>({...t})})(lB=l.DescribeGlobalTableInput||(l.DescribeGlobalTableInput={}));var uB;(function(e){e.filterSensitiveLog=t=>({...t})})(uB=l.DescribeGlobalTableOutput||(l.DescribeGlobalTableOutput={}));var No=class extends we.DynamoDBServiceException{constructor(t){super({name:"GlobalTableNotFoundException",$fault:"client",...t}),this.name="GlobalTableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,No.prototype)}};l.GlobalTableNotFoundException=No;var dB;(function(e){e.filterSensitiveLog=t=>({...t})})(dB=l.DescribeGlobalTableSettingsInput||(l.DescribeGlobalTableSettingsInput={}));var fB;(function(e){e.filterSensitiveLog=t=>({...t})})(fB=l.ReplicaGlobalSecondaryIndexSettingsDescription||(l.ReplicaGlobalSecondaryIndexSettingsDescription={}));var mB;(function(e){e.filterSensitiveLog=t=>({...t})})(mB=l.ReplicaSettingsDescription||(l.ReplicaSettingsDescription={}));var pB;(function(e){e.filterSensitiveLog=t=>({...t})})(pB=l.DescribeGlobalTableSettingsOutput||(l.DescribeGlobalTableSettingsOutput={}));var hB;(function(e){e.filterSensitiveLog=t=>({...t})})(hB=l.DescribeKinesisStreamingDestinationInput||(l.DescribeKinesisStreamingDestinationInput={}));var _B;(function(e){e.filterSensitiveLog=t=>({...t})})(_B=l.KinesisDataStreamDestination||(l.KinesisDataStreamDestination={}));var yB;(function(e){e.filterSensitiveLog=t=>({...t})})(yB=l.DescribeKinesisStreamingDestinationOutput||(l.DescribeKinesisStreamingDestinationOutput={}));var gB;(function(e){e.filterSensitiveLog=t=>({...t})})(gB=l.DescribeLimitsInput||(l.DescribeLimitsInput={}));var vB;(function(e){e.filterSensitiveLog=t=>({...t})})(vB=l.DescribeLimitsOutput||(l.DescribeLimitsOutput={}));var SB;(function(e){e.filterSensitiveLog=t=>({...t})})(SB=l.DescribeTableInput||(l.DescribeTableInput={}));var wB;(function(e){e.filterSensitiveLog=t=>({...t})})(wB=l.DescribeTableOutput||(l.DescribeTableOutput={}));var bB;(function(e){e.filterSensitiveLog=t=>({...t})})(bB=l.DescribeTableReplicaAutoScalingInput||(l.DescribeTableReplicaAutoScalingInput={}));var EB;(function(e){e.filterSensitiveLog=t=>({...t})})(EB=l.ReplicaGlobalSecondaryIndexAutoScalingDescription||(l.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var AB;(function(e){e.filterSensitiveLog=t=>({...t})})(AB=l.ReplicaAutoScalingDescription||(l.ReplicaAutoScalingDescription={}));var TB;(function(e){e.filterSensitiveLog=t=>({...t})})(TB=l.TableAutoScalingDescription||(l.TableAutoScalingDescription={}));var CB;(function(e){e.filterSensitiveLog=t=>({...t})})(CB=l.DescribeTableReplicaAutoScalingOutput||(l.DescribeTableReplicaAutoScalingOutput={}));var xB;(function(e){e.filterSensitiveLog=t=>({...t})})(xB=l.DescribeTimeToLiveInput||(l.DescribeTimeToLiveInput={}));var IB;(function(e){e.filterSensitiveLog=t=>({...t})})(IB=l.DescribeTimeToLiveOutput||(l.DescribeTimeToLiveOutput={}));var RB;(function(e){e.filterSensitiveLog=t=>({...t})})(RB=l.KinesisStreamingDestinationInput||(l.KinesisStreamingDestinationInput={}));var DB;(function(e){e.filterSensitiveLog=t=>({...t})})(DB=l.KinesisStreamingDestinationOutput||(l.KinesisStreamingDestinationOutput={}));var Po=class extends we.DynamoDBServiceException{constructor(t){super({name:"DuplicateItemException",$fault:"client",...t}),this.name="DuplicateItemException",this.$fault="client",Object.setPrototypeOf(this,Po.prototype)}};l.DuplicateItemException=Po;var Oo=class extends we.DynamoDBServiceException{constructor(t){super({name:"IdempotentParameterMismatchException",$fault:"client",...t}),this.name="IdempotentParameterMismatchException",this.$fault="client",Object.setPrototypeOf(this,Oo.prototype),this.Message=t.Message}};l.IdempotentParameterMismatchException=Oo;var Lo=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionInProgressException",$fault:"client",...t}),this.name="TransactionInProgressException",this.$fault="client",Object.setPrototypeOf(this,Lo.prototype),this.Message=t.Message}};l.TransactionInProgressException=Lo;var qo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ExportConflictException",$fault:"client",...t}),this.name="ExportConflictException",this.$fault="client",Object.setPrototypeOf(this,qo.prototype)}};l.ExportConflictException=qo;var NB;(function(e){e.filterSensitiveLog=t=>({...t})})(NB=l.ExportTableToPointInTimeInput||(l.ExportTableToPointInTimeInput={}));var PB;(function(e){e.filterSensitiveLog=t=>({...t})})(PB=l.ExportTableToPointInTimeOutput||(l.ExportTableToPointInTimeOutput={}));var Mo=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidExportTimeException",$fault:"client",...t}),this.name="InvalidExportTimeException",this.$fault="client",Object.setPrototypeOf(this,Mo.prototype)}};l.InvalidExportTimeException=Mo;var zo=class extends we.DynamoDBServiceException{constructor(t){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...t}),this.name="PointInTimeRecoveryUnavailableException",this.$fault="client",Object.setPrototypeOf(this,zo.prototype)}};l.PointInTimeRecoveryUnavailableException=zo;var OB;(function(e){e.filterSensitiveLog=t=>({...t})})(OB=l.ListBackupsInput||(l.ListBackupsInput={}));var LB;(function(e){e.filterSensitiveLog=t=>({...t})})(LB=l.ListBackupsOutput||(l.ListBackupsOutput={}));var qB;(function(e){e.filterSensitiveLog=t=>({...t})})(qB=l.ListContributorInsightsInput||(l.ListContributorInsightsInput={}));var MB;(function(e){e.filterSensitiveLog=t=>({...t})})(MB=l.ListContributorInsightsOutput||(l.ListContributorInsightsOutput={}));var zB;(function(e){e.filterSensitiveLog=t=>({...t})})(zB=l.ListExportsInput||(l.ListExportsInput={}));var jB;(function(e){e.filterSensitiveLog=t=>({...t})})(jB=l.ExportSummary||(l.ExportSummary={}));var kB;(function(e){e.filterSensitiveLog=t=>({...t})})(kB=l.ListExportsOutput||(l.ListExportsOutput={}));var FB;(function(e){e.filterSensitiveLog=t=>({...t})})(FB=l.ListGlobalTablesInput||(l.ListGlobalTablesInput={}));var UB;(function(e){e.filterSensitiveLog=t=>({...t})})(UB=l.GlobalTable||(l.GlobalTable={}));var BB;(function(e){e.filterSensitiveLog=t=>({...t})})(BB=l.ListGlobalTablesOutput||(l.ListGlobalTablesOutput={}));var GB;(function(e){e.filterSensitiveLog=t=>({...t})})(GB=l.ListTablesInput||(l.ListTablesInput={}));var $B;(function(e){e.filterSensitiveLog=t=>({...t})})($B=l.ListTablesOutput||(l.ListTablesOutput={}));var VB;(function(e){e.filterSensitiveLog=t=>({...t})})(VB=l.ListTagsOfResourceInput||(l.ListTagsOfResourceInput={}));var KB;(function(e){e.filterSensitiveLog=t=>({...t})})(KB=l.ListTagsOfResourceOutput||(l.ListTagsOfResourceOutput={}));var WB;(function(e){e.filterSensitiveLog=t=>({...t})})(WB=l.RestoreTableFromBackupInput||(l.RestoreTableFromBackupInput={}));var HB;(function(e){e.filterSensitiveLog=t=>({...t})})(HB=l.RestoreTableFromBackupOutput||(l.RestoreTableFromBackupOutput={}));var jo=class extends we.DynamoDBServiceException{constructor(t){super({name:"TableAlreadyExistsException",$fault:"client",...t}),this.name="TableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,jo.prototype)}};l.TableAlreadyExistsException=jo;var ko=class extends we.DynamoDBServiceException{constructor(t){super({name:"InvalidRestoreTimeException",$fault:"client",...t}),this.name="InvalidRestoreTimeException",this.$fault="client",Object.setPrototypeOf(this,ko.prototype)}};l.InvalidRestoreTimeException=ko;var YB;(function(e){e.filterSensitiveLog=t=>({...t})})(YB=l.RestoreTableToPointInTimeInput||(l.RestoreTableToPointInTimeInput={}));var JB;(function(e){e.filterSensitiveLog=t=>({...t})})(JB=l.RestoreTableToPointInTimeOutput||(l.RestoreTableToPointInTimeOutput={}));var QB;(function(e){e.filterSensitiveLog=t=>({...t})})(QB=l.TagResourceInput||(l.TagResourceInput={}));var XB;(function(e){e.filterSensitiveLog=t=>({...t})})(XB=l.UntagResourceInput||(l.UntagResourceInput={}));var ZB;(function(e){e.filterSensitiveLog=t=>({...t})})(ZB=l.PointInTimeRecoverySpecification||(l.PointInTimeRecoverySpecification={}));var eG;(function(e){e.filterSensitiveLog=t=>({...t})})(eG=l.UpdateContinuousBackupsInput||(l.UpdateContinuousBackupsInput={}));var tG;(function(e){e.filterSensitiveLog=t=>({...t})})(tG=l.UpdateContinuousBackupsOutput||(l.UpdateContinuousBackupsOutput={}));var nG;(function(e){e.filterSensitiveLog=t=>({...t})})(nG=l.UpdateContributorInsightsInput||(l.UpdateContributorInsightsInput={}));var rG;(function(e){e.filterSensitiveLog=t=>({...t})})(rG=l.UpdateContributorInsightsOutput||(l.UpdateContributorInsightsOutput={}));var Fo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ReplicaAlreadyExistsException",$fault:"client",...t}),this.name="ReplicaAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Fo.prototype)}};l.ReplicaAlreadyExistsException=Fo;var Uo=class extends we.DynamoDBServiceException{constructor(t){super({name:"ReplicaNotFoundException",$fault:"client",...t}),this.name="ReplicaNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Uo.prototype)}};l.ReplicaNotFoundException=Uo;var iG;(function(e){e.filterSensitiveLog=t=>({...t})})(iG=l.ReplicaUpdate||(l.ReplicaUpdate={}));var sG;(function(e){e.filterSensitiveLog=t=>({...t})})(sG=l.UpdateGlobalTableInput||(l.UpdateGlobalTableInput={}));var oG;(function(e){e.filterSensitiveLog=t=>({...t})})(oG=l.UpdateGlobalTableOutput||(l.UpdateGlobalTableOutput={}));var Bo=class extends we.DynamoDBServiceException{constructor(t){super({name:"IndexNotFoundException",$fault:"client",...t}),this.name="IndexNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Bo.prototype)}};l.IndexNotFoundException=Bo;var aG;(function(e){e.filterSensitiveLog=t=>({...t})})(aG=l.GlobalTableGlobalSecondaryIndexSettingsUpdate||(l.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var cG;(function(e){e.filterSensitiveLog=t=>({...t})})(cG=l.ReplicaGlobalSecondaryIndexSettingsUpdate||(l.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var lG;(function(e){e.filterSensitiveLog=t=>({...t})})(lG=l.ReplicaSettingsUpdate||(l.ReplicaSettingsUpdate={}));var uG;(function(e){e.filterSensitiveLog=t=>({...t})})(uG=l.UpdateGlobalTableSettingsInput||(l.UpdateGlobalTableSettingsInput={}));var dG;(function(e){e.filterSensitiveLog=t=>({...t})})(dG=l.UpdateGlobalTableSettingsOutput||(l.UpdateGlobalTableSettingsOutput={}));var fG;(function(e){e.filterSensitiveLog=t=>({...t})})(fG=l.UpdateGlobalSecondaryIndexAction||(l.UpdateGlobalSecondaryIndexAction={}));var mG;(function(e){e.filterSensitiveLog=t=>({...t})})(mG=l.GlobalSecondaryIndexUpdate||(l.GlobalSecondaryIndexUpdate={}));var pG;(function(e){e.filterSensitiveLog=t=>({...t})})(pG=l.UpdateReplicationGroupMemberAction||(l.UpdateReplicationGroupMemberAction={}));var hG;(function(e){e.filterSensitiveLog=t=>({...t})})(hG=l.ReplicationGroupUpdate||(l.ReplicationGroupUpdate={}));var _G;(function(e){e.filterSensitiveLog=t=>({...t})})(_G=l.UpdateTableInput||(l.UpdateTableInput={}));var yG;(function(e){e.filterSensitiveLog=t=>({...t})})(yG=l.UpdateTableOutput||(l.UpdateTableOutput={}));var gG;(function(e){e.filterSensitiveLog=t=>({...t})})(gG=l.GlobalSecondaryIndexAutoScalingUpdate||(l.GlobalSecondaryIndexAutoScalingUpdate={}));var vG;(function(e){e.filterSensitiveLog=t=>({...t})})(vG=l.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(l.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var SG;(function(e){e.filterSensitiveLog=t=>({...t})})(SG=l.ReplicaAutoScalingUpdate||(l.ReplicaAutoScalingUpdate={}));var wG;(function(e){e.filterSensitiveLog=t=>({...t})})(wG=l.UpdateTableReplicaAutoScalingInput||(l.UpdateTableReplicaAutoScalingInput={}));var bG;(function(e){e.filterSensitiveLog=t=>({...t})})(bG=l.UpdateTableReplicaAutoScalingOutput||(l.UpdateTableReplicaAutoScalingOutput={}));var EG;(function(e){e.filterSensitiveLog=t=>({...t})})(EG=l.TimeToLiveSpecification||(l.TimeToLiveSpecification={}));var AG;(function(e){e.filterSensitiveLog=t=>({...t})})(AG=l.UpdateTimeToLiveInput||(l.UpdateTimeToLiveInput={}));var TG;(function(e){e.filterSensitiveLog=t=>({...t})})(TG=l.UpdateTimeToLiveOutput||(l.UpdateTimeToLiveOutput={}));var se;(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])=>({...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"}}})(se=l.AttributeValue||(l.AttributeValue={}));var oA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:se.filterSensitiveLog(t.Value)}})})(oA=l.AttributeValueUpdate||(l.AttributeValueUpdate={}));var aA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(n=>se.filterSensitiveLog(n))}})})(aA=l.BatchStatementRequest||(l.BatchStatementRequest={}));var cA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(cA=l.BatchStatementResponse||(l.BatchStatementResponse={}));var CG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(CG=l.CancellationReason||(l.CancellationReason={}));var Xc;(function(e){e.filterSensitiveLog=t=>({...t,...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>se.filterSensitiveLog(n))}})})(Xc=l.Condition||(l.Condition={}));var lA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(lA=l.DeleteRequest||(l.DeleteRequest={}));var xG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(n=>se.filterSensitiveLog(n))}})})(xG=l.ExecuteStatementInput||(l.ExecuteStatementInput={}));var uA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(uA=l.Get||(l.Get={}));var IG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(IG=l.GetItemInput||(l.GetItemInput={}));var RG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(RG=l.GetItemOutput||(l.GetItemOutput={}));var Yi;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(Yi=l.ItemCollectionMetrics||(l.ItemCollectionMetrics={}));var W_;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(W_=l.ItemResponse||(l.ItemResponse={}));var dA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(n=>se.filterSensitiveLog(n))}})})(dA=l.ParameterizedStatement||(l.ParameterizedStatement={}));var fA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(fA=l.PutRequest||(l.PutRequest={}));var H_;(function(e){e.filterSensitiveLog=t=>({...t,...t.Keys&&{Keys:t.Keys.map(n=>Object.entries(n).reduce((r,[i,s])=>({...r,[i]:se.filterSensitiveLog(s)}),{}))}})})(H_=l.KeysAndAttributes||(l.KeysAndAttributes={}));var mA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Get&&{Get:uA.filterSensitiveLog(t.Get)}})})(mA=l.TransactGetItem||(l.TransactGetItem={}));var DG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Statements&&{Statements:t.Statements.map(n=>aA.filterSensitiveLog(n))}})})(DG=l.BatchExecuteStatementInput||(l.BatchExecuteStatementInput={}));var NG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(n=>cA.filterSensitiveLog(n))}})})(NG=l.BatchExecuteStatementOutput||(l.BatchExecuteStatementOutput={}));var PG;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactStatements&&{TransactStatements:t.TransactStatements.map(n=>dA.filterSensitiveLog(n))}})})(PG=l.ExecuteTransactionInput||(l.ExecuteTransactionInput={}));var OG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(n=>W_.filterSensitiveLog(n))}})})(OG=l.ExecuteTransactionOutput||(l.ExecuteTransactionOutput={}));var LG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(n=>W_.filterSensitiveLog(n))}})})(LG=l.TransactGetItemsOutput||(l.TransactGetItemsOutput={}));var Go=class extends we.DynamoDBServiceException{constructor(t){super({name:"TransactionCanceledException",$fault:"client",...t}),this.name="TransactionCanceledException",this.$fault="client",Object.setPrototypeOf(this,Go.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};l.TransactionCanceledException=Go;var qG;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>({...n,[r]:H_.filterSensitiveLog(i)}),{})}})})(qG=l.BatchGetItemInput||(l.BatchGetItemInput={}));var Zc;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:se.filterSensitiveLog(t.Value)},...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(n=>se.filterSensitiveLog(n))}})})(Zc=l.ExpectedAttributeValue||(l.ExpectedAttributeValue={}));var MG;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(n=>mA.filterSensitiveLog(n))}})})(MG=l.TransactGetItemsInput||(l.TransactGetItemsInput={}));var zG;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Yi.filterSensitiveLog(s))}),{})}})})(zG=l.TransactWriteItemsOutput||(l.TransactWriteItemsOutput={}));var pA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(pA=l.ConditionCheck||(l.ConditionCheck={}));var hA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(hA=l.Delete||(l.Delete={}));var _A;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(_A=l.Put||(l.Put={}));var yA;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(yA=l.Update||(l.Update={}));var jG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)}})})(jG=l.DeleteItemOutput||(l.DeleteItemOutput={}));var kG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>({...r,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(kG=l.ExecuteStatementOutput||(l.ExecuteStatementOutput={}));var FG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)}})})(FG=l.PutItemOutput||(l.PutItemOutput={}));var UG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>({...r,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(UG=l.QueryOutput||(l.QueryOutput={}));var BG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(n=>Object.entries(n).reduce((r,[i,s])=>({...r,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(BG=l.ScanOutput||(l.ScanOutput={}));var GG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Yi.filterSensitiveLog(t.ItemCollectionMetrics)}})})(GG=l.UpdateItemOutput||(l.UpdateItemOutput={}));var Y_;(function(e){e.filterSensitiveLog=t=>({...t,...t.PutRequest&&{PutRequest:fA.filterSensitiveLog(t.PutRequest)},...t.DeleteRequest&&{DeleteRequest:lA.filterSensitiveLog(t.DeleteRequest)}})})(Y_=l.WriteRequest||(l.WriteRequest={}));var $G;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:Object.entries(t.Responses).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Object.entries(s).reduce((o,[a,c])=>({...o,[a]:se.filterSensitiveLog(c)}),{}))}),{})},...t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((n,[r,i])=>({...n,[r]:H_.filterSensitiveLog(i)}),{})}})})($G=l.BatchGetItemOutput||(l.BatchGetItemOutput={}));var VG;(function(e){e.filterSensitiveLog=t=>({...t,...t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((n,[r,i])=>({...n,[r]:Xc.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(VG=l.ScanInput||(l.ScanInput={}));var KG;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Y_.filterSensitiveLog(s))}),{})}})})(KG=l.BatchWriteItemInput||(l.BatchWriteItemInput={}));var WG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>({...n,[r]:Zc.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(WG=l.DeleteItemInput||(l.DeleteItemInput={}));var HG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>({...n,[r]:Zc.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(HG=l.PutItemInput||(l.PutItemInput={}));var YG;(function(e){e.filterSensitiveLog=t=>({...t,...t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((n,[r,i])=>({...n,[r]:Xc.filterSensitiveLog(i)}),{})},...t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((n,[r,i])=>({...n,[r]:Xc.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(YG=l.QueryInput||(l.QueryInput={}));var JG;(function(e){e.filterSensitiveLog=t=>({...t,...t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Y_.filterSensitiveLog(s))}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((n,[r,i])=>({...n,[r]:i.map(s=>Yi.filterSensitiveLog(s))}),{})}})})(JG=l.BatchWriteItemOutput||(l.BatchWriteItemOutput={}));var QG;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})},...t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((n,[r,i])=>({...n,[r]:oA.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((n,[r,i])=>({...n,[r]:Zc.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((n,[r,i])=>({...n,[r]:se.filterSensitiveLog(i)}),{})}})})(QG=l.UpdateItemInput||(l.UpdateItemInput={}));var gA;(function(e){e.filterSensitiveLog=t=>({...t,...t.ConditionCheck&&{ConditionCheck:pA.filterSensitiveLog(t.ConditionCheck)},...t.Put&&{Put:_A.filterSensitiveLog(t.Put)},...t.Delete&&{Delete:hA.filterSensitiveLog(t.Delete)},...t.Update&&{Update:yA.filterSensitiveLog(t.Update)}})})(gA=l.TransactWriteItem||(l.TransactWriteItem={}));var XG;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(n=>gA.filterSensitiveLog(n))}})})(XG=l.TransactWriteItemsInput||(l.TransactWriteItemsInput={}))});var SA=f(vA=>{"use strict";Object.defineProperty(vA,"__esModule",{value:!0})});var wA=f(el=>{"use strict";Object.defineProperty(el,"__esModule",{value:!0});el.HttpRequest=void 0;var $o=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.slice(-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 $o({...this,headers:{...this.headers}});return t.query&&(t.query=ZG(t.query)),t}};el.HttpRequest=$o;function ZG(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}});var bA=f(tl=>{"use strict";Object.defineProperty(tl,"__esModule",{value:!0});tl.HttpResponse=void 0;var J_=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"}};tl.HttpResponse=J_});var EA=f(nl=>{"use strict";Object.defineProperty(nl,"__esModule",{value:!0});nl.isValidHostname=void 0;function e$(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}nl.isValidHostname=e$});var Ot=f(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var rl=K();rl.__exportStar(SA(),Ji);rl.__exportStar(wA(),Ji);rl.__exportStar(bA(),Ji);rl.__exportStar(EA(),Ji)});var X_=f(Q_=>{"use strict";Object.defineProperty(Q_,"__esModule",{value:!0});Q_.default=r$;var t$=n$(require("crypto"));function n$(e){return e&&e.__esModule?e:{default:e}}var sl=new Uint8Array(256),il=sl.length;function r$(){return il>sl.length-16&&(t$.default.randomFillSync(sl),il=0),sl.slice(il,il+=16)}});var AA=f(ol=>{"use strict";Object.defineProperty(ol,"__esModule",{value:!0});ol.default=void 0;var i$=/^(?:[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;ol.default=i$});var Vo=f(al=>{"use strict";Object.defineProperty(al,"__esModule",{value:!0});al.default=void 0;var s$=o$(AA());function o$(e){return e&&e.__esModule?e:{default:e}}function a$(e){return typeof e=="string"&&s$.default.test(e)}var c$=a$;al.default=c$});var Ko=f(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.default=void 0;var l$=u$(Vo());function u$(e){return e&&e.__esModule?e:{default:e}}var rt=[];for(let e=0;e<256;++e)rt.push((e+256).toString(16).substr(1));function d$(e,t=0){let n=(rt[e[t+0]]+rt[e[t+1]]+rt[e[t+2]]+rt[e[t+3]]+"-"+rt[e[t+4]]+rt[e[t+5]]+"-"+rt[e[t+6]]+rt[e[t+7]]+"-"+rt[e[t+8]]+rt[e[t+9]]+"-"+rt[e[t+10]]+rt[e[t+11]]+rt[e[t+12]]+rt[e[t+13]]+rt[e[t+14]]+rt[e[t+15]]).toLowerCase();if(!(0,l$.default)(n))throw TypeError("Stringified UUID is invalid");return n}var f$=d$;cl.default=f$});var xA=f(ll=>{"use strict";Object.defineProperty(ll,"__esModule",{value:!0});ll.default=void 0;var m$=CA(X_()),p$=CA(Ko());function CA(e){return e&&e.__esModule?e:{default:e}}var TA,Z_,ey=0,ty=0;function h$(e,t,n){let r=t&&n||0,i=t||new Array(16);e=e||{};let s=e.node||TA,o=e.clockseq!==void 0?e.clockseq:Z_;if(s==null||o==null){let m=e.random||(e.rng||m$.default)();s==null&&(s=TA=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),o==null&&(o=Z_=(m[6]<<8|m[7])&16383)}let a=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:ty+1,u=a-ey+(c-ty)/1e4;if(u<0&&e.clockseq===void 0&&(o=o+1&16383),(u<0||a>ey)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");ey=a,ty=c,Z_=o,a+=122192928e5;let d=((a&268435455)*1e4+c)%4294967296;i[r++]=d>>>24&255,i[r++]=d>>>16&255,i[r++]=d>>>8&255,i[r++]=d&255;let h=a/4294967296*1e4&268435455;i[r++]=h>>>8&255,i[r++]=h&255,i[r++]=h>>>24&15|16,i[r++]=h>>>16&255,i[r++]=o>>>8|128,i[r++]=o&255;for(let m=0;m<6;++m)i[r+m]=s[m];return t||(0,p$.default)(i)}var _$=h$;ll.default=_$});var ny=f(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.default=void 0;var y$=g$(Vo());function g$(e){return e&&e.__esModule?e:{default:e}}function v$(e){if(!(0,y$.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 S$=v$;ul.default=S$});var ry=f(oi=>{"use strict";Object.defineProperty(oi,"__esModule",{value:!0});oi.default=A$;oi.URL=oi.DNS=void 0;var w$=IA(Ko()),b$=IA(ny());function IA(e){return e&&e.__esModule?e:{default:e}}function E$(e){e=unescape(encodeURIComponent(e));let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var RA="6ba7b810-9dad-11d1-80b4-00c04fd430c8";oi.DNS=RA;var DA="6ba7b811-9dad-11d1-80b4-00c04fd430c8";oi.URL=DA;function A$(e,t,n){function r(i,s,o,a){if(typeof i=="string"&&(i=E$(i)),typeof s=="string"&&(s=(0,b$.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,o){a=a||0;for(let u=0;u<16;++u)o[a+u]=c[u];return o}return(0,w$.default)(c)}try{r.name=e}catch{}return r.DNS=RA,r.URL=DA,r}});var NA=f(dl=>{"use strict";Object.defineProperty(dl,"__esModule",{value:!0});dl.default=void 0;var T$=C$(require("crypto"));function C$(e){return e&&e.__esModule?e:{default:e}}function x$(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),T$.default.createHash("md5").update(e).digest()}var I$=x$;dl.default=I$});var OA=f(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.default=void 0;var R$=PA(ry()),D$=PA(NA());function PA(e){return e&&e.__esModule?e:{default:e}}var N$=(0,R$.default)("v3",48,D$.default),P$=N$;fl.default=P$});var qA=f(ml=>{"use strict";Object.defineProperty(ml,"__esModule",{value:!0});ml.default=void 0;var O$=LA(X_()),L$=LA(Ko());function LA(e){return e&&e.__esModule?e:{default:e}}function q$(e,t,n){e=e||{};let r=e.random||(e.rng||O$.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,L$.default)(r)}var M$=q$;ml.default=M$});var MA=f(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});pl.default=void 0;var z$=j$(require("crypto"));function j$(e){return e&&e.__esModule?e:{default:e}}function k$(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),z$.default.createHash("sha1").update(e).digest()}var F$=k$;pl.default=F$});var jA=f(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.default=void 0;var U$=zA(ry()),B$=zA(MA());function zA(e){return e&&e.__esModule?e:{default:e}}var G$=(0,U$.default)("v5",80,B$.default),$$=G$;hl.default=$$});var kA=f(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.default=void 0;var V$="00000000-0000-0000-0000-000000000000";_l.default=V$});var FA=f(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.default=void 0;var K$=W$(Vo());function W$(e){return e&&e.__esModule?e:{default:e}}function H$(e){if(!(0,K$.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var Y$=H$;yl.default=Y$});var iy=f(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Object.defineProperty(Xt,"v1",{enumerable:!0,get:function(){return J$.default}});Object.defineProperty(Xt,"v3",{enumerable:!0,get:function(){return Q$.default}});Object.defineProperty(Xt,"v4",{enumerable:!0,get:function(){return X$.default}});Object.defineProperty(Xt,"v5",{enumerable:!0,get:function(){return Z$.default}});Object.defineProperty(Xt,"NIL",{enumerable:!0,get:function(){return e2.default}});Object.defineProperty(Xt,"version",{enumerable:!0,get:function(){return t2.default}});Object.defineProperty(Xt,"validate",{enumerable:!0,get:function(){return n2.default}});Object.defineProperty(Xt,"stringify",{enumerable:!0,get:function(){return r2.default}});Object.defineProperty(Xt,"parse",{enumerable:!0,get:function(){return i2.default}});var J$=Vn(xA()),Q$=Vn(OA()),X$=Vn(qA()),Z$=Vn(jA()),e2=Vn(kA()),t2=Vn(FA()),n2=Vn(Vo()),r2=Vn(Ko()),i2=Vn(ny());function Vn(e){return e&&e.__esModule?e:{default:e}}});var Q=f(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 s2=Ot(),p=O(),sy=iy(),Z=Qc(),ve=H(),o2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},r;return r=JSON.stringify(a3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchExecuteStatementCommand=o2;var a2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},r;return r=JSON.stringify(c3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchGetItemCommand=a2;var c2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},r;return r=JSON.stringify(d3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0BatchWriteItemCommand=c2;var l2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},r;return r=JSON.stringify(h3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateBackupCommand=l2;var u2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},r;return r=JSON.stringify(y3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateGlobalTableCommand=u2;var d2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},r;return r=JSON.stringify(S3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0CreateTableCommand=d2;var f2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},r;return r=JSON.stringify(b3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteBackupCommand=f2;var m2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},r;return r=JSON.stringify(A3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteItemCommand=m2;var p2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},r;return r=JSON.stringify(I3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DeleteTableCommand=p2;var h2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},r;return r=JSON.stringify(R3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeBackupCommand=h2;var _2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},r;return r=JSON.stringify(D3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=_2;var y2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},r;return r=JSON.stringify(N3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeContributorInsightsCommand=y2;var g2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},r;return r=JSON.stringify(P3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeEndpointsCommand=g2;var v2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},r;return r=JSON.stringify(O3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeExportCommand=v2;var S2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},r;return r=JSON.stringify(L3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableCommand=S2;var w2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},r;return r=JSON.stringify(q3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=w2;var b2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},r;return r=JSON.stringify(M3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=b2;var E2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},r;return r=JSON.stringify(z3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeLimitsCommand=E2;var A2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},r;return r=JSON.stringify(j3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableCommand=A2;var T2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},r;return r=JSON.stringify(k3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=T2;var C2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},r;return r=JSON.stringify(F3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DescribeTimeToLiveCommand=C2;var x2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},r;return r=JSON.stringify(XA(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=x2;var I2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},r;return r=JSON.stringify(XA(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=I2;var R2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},r;return r=JSON.stringify(U3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteStatementCommand=R2;var D2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},r;return r=JSON.stringify(B3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ExecuteTransactionCommand=D2;var N2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},r;return r=JSON.stringify($3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=N2;var P2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},r;return r=JSON.stringify(K3(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0GetItemCommand=P2;var O2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},r;return r=JSON.stringify(sW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListBackupsCommand=O2;var L2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},r;return r=JSON.stringify(oW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListContributorInsightsCommand=L2;var q2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},r;return r=JSON.stringify(aW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListExportsCommand=q2;var M2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},r;return r=JSON.stringify(cW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListGlobalTablesCommand=M2;var z2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},r;return r=JSON.stringify(lW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTablesCommand=z2;var j2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},r;return r=JSON.stringify(uW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ListTagsOfResourceCommand=j2;var k2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},r;return r=JSON.stringify(SW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0PutItemCommand=k2;var F2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},r;return r=JSON.stringify(bW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0QueryCommand=F2;var U2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},r;return r=JSON.stringify(jW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableFromBackupCommand=U2;var B2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},r;return r=JSON.stringify(kW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=B2;var G2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},r;return r=JSON.stringify(FW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0ScanCommand=G2;var $2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},r;return r=JSON.stringify($W(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0TagResourceCommand=$2;var V2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},r;return r=JSON.stringify(HW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactGetItemsCommand=V2;var K2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},r;return r=JSON.stringify(QW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0TransactWriteItemsCommand=K2;var W2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},r;return r=JSON.stringify(XW(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UntagResourceCommand=W2;var H2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},r;return r=JSON.stringify(eH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=H2;var Y2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},r;return r=JSON.stringify(tH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateContributorInsightsCommand=Y2;var J2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},r;return r=JSON.stringify(rH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableCommand=J2;var Q2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},r;return r=JSON.stringify(iH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=Q2;var X2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},r;return r=JSON.stringify(sH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateItemCommand=X2;var Z2=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},r;return r=JSON.stringify(aH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableCommand=Z2;var eV=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},r;return r=JSON.stringify(cH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=eV;var tV=async(e,t)=>{let n={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},r;return r=JSON.stringify(lH(e,t)),ee(t,n,"/",void 0,r)};v.serializeAws_json1_0UpdateTimeToLiveCommand=tV;var nV=async(e,t)=>{if(e.statusCode>=300)return rV(e,t);let n=await D(e.body,t),r={};r=EH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0BatchExecuteStatementCommand=nV;var rV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},iV=async(e,t)=>{if(e.statusCode>=300)return sV(e,t);let n=await D(e.body,t),r={};r=AH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0BatchGetItemCommand=iV;var sV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},oV=async(e,t)=>{if(e.statusCode>=300)return aV(e,t);let n=await D(e.body,t),r={};r=RH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0BatchWriteItemCommand=oV;var aV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},cV=async(e,t)=>{if(e.statusCode>=300)return lV(e,t);let n=await D(e.body,t),r={};r=kH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0CreateBackupCommand=cV;var lV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await oy(n,t);case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await BA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await cy(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},uV=async(e,t)=>{if(e.statusCode>=300)return dV(e,t);let n=await D(e.body,t),r={};r=FH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0CreateGlobalTableCommand=uV;var dV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":throw await QK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},fV=async(e,t)=>{if(e.statusCode>=300)return mV(e,t);let n=await D(e.body,t),r={};r=UH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0CreateTableCommand=fV;var mV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},pV=async(e,t)=>{if(e.statusCode>=300)return hV(e,t);let n=await D(e.body,t),r={};r=BH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteBackupCommand=pV;var hV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await oy(n,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await ay(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},_V=async(e,t)=>{if(e.statusCode>=300)return yV(e,t);let n=await D(e.body,t),r={};r=GH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteItemCommand=_V;var yV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Sl(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},gV=async(e,t)=>{if(e.statusCode>=300)return vV(e,t);let n=await D(e.body,t),r={};r=VH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteTableCommand=gV;var vV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},SV=async(e,t)=>{if(e.statusCode>=300)return wV(e,t);let n=await D(e.body,t),r={};r=KH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeBackupCommand=SV;var wV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await ay(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},bV=async(e,t)=>{if(e.statusCode>=300)return EV(e,t);let n=await D(e.body,t),r={};r=WH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=bV;var EV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},AV=async(e,t)=>{if(e.statusCode>=300)return TV(e,t);let n=await D(e.body,t),r={};r=HH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=AV;var TV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},CV=async(e,t)=>{if(e.statusCode>=300)return xV(e,t);let n=await D(e.body,t),r={};r=YH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeEndpointsCommand=CV;var xV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},IV=async(e,t)=>{if(e.statusCode>=300)return RV(e,t);let n=await D(e.body,t),r={};r=JH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeExportCommand=IV;var RV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":throw await JK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},DV=async(e,t)=>{if(e.statusCode>=300)return NV(e,t);let n=await D(e.body,t),r={};r=QH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableCommand=DV;var NV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await vl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},PV=async(e,t)=>{if(e.statusCode>=300)return OV(e,t);let n=await D(e.body,t),r={};r=XH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=PV;var OV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await vl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},LV=async(e,t)=>{if(e.statusCode>=300)return qV(e,t);let n=await D(e.body,t),r={};r=ZH(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=LV;var qV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},MV=async(e,t)=>{if(e.statusCode>=300)return zV(e,t);let n=await D(e.body,t),r={};r=e8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeLimitsCommand=MV;var zV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},jV=async(e,t)=>{if(e.statusCode>=300)return kV(e,t);let n=await D(e.body,t),r={};r=t8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableCommand=jV;var kV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},FV=async(e,t)=>{if(e.statusCode>=300)return UV(e,t);let n=await D(e.body,t),r={};r=n8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=FV;var UV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},BV=async(e,t)=>{if(e.statusCode>=300)return GV(e,t);let n=await D(e.body,t),r={};r=r8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=BV;var GV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},$V=async(e,t)=>{if(e.statusCode>=300)return VV(e,t);let n=await D(e.body,t),r={};r=uT(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=$V;var VV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},KV=async(e,t)=>{if(e.statusCode>=300)return WV(e,t);let n=await D(e.body,t),r={};r=uT(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=KV;var WV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},HV=async(e,t)=>{if(e.statusCode>=300)return YV(e,t);let n=await D(e.body,t),r={};r=a8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteStatementCommand=HV;var YV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":throw await HK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Sl(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},JV=async(e,t)=>{if(e.statusCode>=300)return QV(e,t);let n=await D(e.body,t),r={};r=c8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteTransactionCommand=JV;var QV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await GA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await ly(n,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await WA(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},XV=async(e,t)=>{if(e.statusCode>=300)return ZV(e,t);let n=await D(e.body,t),r={};r=m8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=XV;var ZV=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":throw await YK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":throw await ZK(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await $A(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},eK=async(e,t)=>{if(e.statusCode>=300)return tK(e,t);let n=await D(e.body,t),r={};r=_8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0GetItemCommand=eK;var tK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},nK=async(e,t)=>{if(e.statusCode>=300)return rK(e,t);let n=await D(e.body,t),r={};r=G8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListBackupsCommand=nK;var rK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},iK=async(e,t)=>{if(e.statusCode>=300)return sK(e,t);let n=await D(e.body,t),r={};r=$8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListContributorInsightsCommand=iK;var sK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},oK=async(e,t)=>{if(e.statusCode>=300)return aK(e,t);let n=await D(e.body,t),r={};r=V8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListExportsCommand=oK;var aK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},cK=async(e,t)=>{if(e.statusCode>=300)return lK(e,t);let n=await D(e.body,t),r={};r=K8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListGlobalTablesCommand=cK;var lK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},uK=async(e,t)=>{if(e.statusCode>=300)return dK(e,t);let n=await D(e.body,t),r={};r=W8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListTablesCommand=uK;var dK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},fK=async(e,t)=>{if(e.statusCode>=300)return mK(e,t);let n=await D(e.body,t),r={};r=H8(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ListTagsOfResourceCommand=fK;var mK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},pK=async(e,t)=>{if(e.statusCode>=300)return hK(e,t);let n=await D(e.body,t),r={};r=a4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0PutItemCommand=pK;var hK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Sl(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},_K=async(e,t)=>{if(e.statusCode>=300)return yK(e,t);let n=await D(e.body,t),r={};r=l4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0QueryCommand=_K;var yK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},gK=async(e,t)=>{if(e.statusCode>=300)return vK(e,t);let n=await D(e.body,t),r={};r=I4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=gK;var vK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await oy(n,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await ay(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await KA(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await cy(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},SK=async(e,t)=>{if(e.statusCode>=300)return wK(e,t);let n=await D(e.body,t),r={};r=R4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=SK;var wK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":throw await e3(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await $A(n,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await KA(n,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await cy(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},bK=async(e,t)=>{if(e.statusCode>=300)return EK(e,t);let n=await D(e.body,t),r={};r=D4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0ScanCommand=bK;var EK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},AK=async(e,t)=>{if(e.statusCode>=300)return TK(e,t);await vy(e.body,t);let n={$metadata:C(e)};return Promise.resolve(n)};v.deserializeAws_json1_0TagResourceCommand=AK;var TK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},CK=async(e,t)=>{if(e.statusCode>=300)return xK(e,t);let n=await D(e.body,t),r={};r=U4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0TransactGetItemsCommand=CK;var xK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await ly(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},IK=async(e,t)=>{if(e.statusCode>=300)return RK(e,t);let n=await D(e.body,t),r={};r=V4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0TransactWriteItemsCommand=IK;var RK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await GA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await ly(n,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await WA(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},DK=async(e,t)=>{if(e.statusCode>=300)return NK(e,t);await vy(e.body,t);let n={$metadata:C(e)};return Promise.resolve(n)};v.deserializeAws_json1_0UntagResourceCommand=DK;var NK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},PK=async(e,t)=>{if(e.statusCode>=300)return OK(e,t);let n=await D(e.body,t),r={};r=K4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=PK;var OK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await BA(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},LK=async(e,t)=>{if(e.statusCode>=300)return qK(e,t);let n=await D(e.body,t),r={};r=W4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=LK;var qK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},MK=async(e,t)=>{if(e.statusCode>=300)return zK(e,t);let n=await D(e.body,t),r={};r=H4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableCommand=MK;var zK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await vl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":throw await t3(n,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await VA(n,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await ai(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},jK=async(e,t)=>{if(e.statusCode>=300)return kK(e,t);let n=await D(e.body,t),r={};r=Y4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=jK;var kK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await vl(n,t);case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":throw await XK(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await VA(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},FK=async(e,t)=>{if(e.statusCode>=300)return UK(e,t);let n=await D(e.body,t),r={};r=J4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateItemCommand=FK;var UK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await gl(n,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Wo(n,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Bt(n,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Lt(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Sl(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},BK=async(e,t)=>{if(e.statusCode>=300)return GK(e,t);let n=await D(e.body,t),r={};r=Q4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableCommand=BK;var GK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},$K=async(e,t)=>{if(e.statusCode>=300)return VK(e,t);let n=await D(e.body,t),r={};r=X4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=$K;var VK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},KK=async(e,t)=>{if(e.statusCode>=300)return WK(e,t);let n=await D(e.body,t),r={};r=Z4(n,t);let i={$metadata:C(e),...r};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=KK;var WK=async(e,t)=>{let n={...e,body:await D(e.body,t)},r,i="UnknownError";switch(i=te(e,n.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await re(n,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await le(n,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Qe(n,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await hn(n,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ce(n,t);default:let s=n.body;throw r=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(r,s)}},oy=async(e,t)=>{let n=e.body,r=vH(n,t),i=new ve.BackupInUseException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},ay=async(e,t)=>{let n=e.body,r=SH(n,t),i=new ve.BackupNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},gl=async(e,t)=>{let n=e.body,r=LH(n,t),i=new ve.ConditionalCheckFailedException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},BA=async(e,t)=>{let n=e.body,r=qH(n,t),i=new ve.ContinuousBackupsUnavailableException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},HK=async(e,t)=>{let n=e.body,r=i8(n,t),i=new ve.DuplicateItemException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},YK=async(e,t)=>{let n=e.body,r=l8(n,t),i=new ve.ExportConflictException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},JK=async(e,t)=>{let n=e.body,r=u8(n,t),i=new ve.ExportNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},QK=async(e,t)=>{let n=e.body,r=b8(n,t),i=new ve.GlobalTableAlreadyExistsException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},vl=async(e,t)=>{let n=e.body,r=A8(n,t),i=new ve.GlobalTableNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},GA=async(e,t)=>{let n=e.body,r=T8(n,t),i=new ve.IdempotentParameterMismatchException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},XK=async(e,t)=>{let n=e.body,r=C8(n,t),i=new ve.IndexNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},re=async(e,t)=>{let n=e.body,r=x8(n,t),i=new ve.InternalServerError({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},le=async(e,t)=>{let n=e.body,r=I8(n,t),i=new ve.InvalidEndpointException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},ZK=async(e,t)=>{let n=e.body,r=R8(n,t),i=new ve.InvalidExportTimeException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},e3=async(e,t)=>{let n=e.body,r=D8(n,t),i=new ve.InvalidRestoreTimeException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Wo=async(e,t)=>{let n=e.body,r=L8(n,t),i=new ve.ItemCollectionSizeLimitExceededException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Qe=async(e,t)=>{let n=e.body,r=U8(n,t),i=new ve.LimitExceededException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},$A=async(e,t)=>{let n=e.body,r=i4(n,t),i=new ve.PointInTimeRecoveryUnavailableException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Bt=async(e,t)=>{let n=e.body,r=s4(n,t),i=new ve.ProvisionedThroughputExceededException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},t3=async(e,t)=>{let n=e.body,r=d4(n,t),i=new ve.ReplicaAlreadyExistsException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},VA=async(e,t)=>{let n=e.body,r=b4(n,t),i=new ve.ReplicaNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Lt=async(e,t)=>{let n=e.body,r=A4(n,t),i=new ve.RequestLimitExceeded({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},hn=async(e,t)=>{let n=e.body,r=T4(n,t),i=new ve.ResourceInUseException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Ce=async(e,t)=>{let n=e.body,r=C4(n,t),i=new ve.ResourceNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},KA=async(e,t)=>{let n=e.body,r=L4(n,t),i=new ve.TableAlreadyExistsException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},cy=async(e,t)=>{let n=e.body,r=q4(n,t),i=new ve.TableInUseException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},ai=async(e,t)=>{let n=e.body,r=z4(n,t),i=new ve.TableNotFoundException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},ly=async(e,t)=>{let n=e.body,r=B4(n,t),i=new ve.TransactionCanceledException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},Sl=async(e,t)=>{let n=e.body,r=G4(n,t),i=new ve.TransactionConflictException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},WA=async(e,t)=>{let n=e.body,r=$4(n,t),i=new ve.TransactionInProgressException({$metadata:C(e),...r});return(0,p.decorateServiceException)(i,n)},n3=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}}),HA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n3(n,t)),wl=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),r3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:i3(i,t)},{}),Kn=(e,t)=>ve.AttributeValue.visit(e,{B:n=>({B:t.base64Encoder(n)}),BOOL:n=>({BOOL:n}),BS:n=>({BS:m3(n,t)}),L:n=>({L:iW(n,t)}),M:n=>({M:fW(n,t)}),N:n=>({N:n}),NS:n=>({NS:pW(n,t)}),NULL:n=>({NULL:n}),S:n=>({S:n}),SS:n=>({SS:UW(n,t)}),_:(n,r)=>({name:r})}),YA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Kn(n,t)),i3=(e,t)=>({...e.Action!==void 0&&e.Action!==null&&{Action:e.Action},...e.Value!==void 0&&e.Value!==null&&{Value:Kn(e.Value,t)}}),s3=(e,t)=>({...e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName},...e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:o3(e.TargetTrackingScalingPolicyConfiguration,t)}}),Er=(e,t)=>({...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:s3(e.ScalingPolicyUpdate,t)}}),o3=(e,t)=>({...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:(0,p.serializeFloat)(e.TargetValue)}}),a3=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statements!==void 0&&e.Statements!==null&&{Statements:yW(e.Statements,t)}}),c3=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:l3(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}}),l3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:nW(i,t)},{}),u3=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:my(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),d3=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:f3(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}}),f3=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:dH(i,t)},{}),m3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:t.base64Encoder(n)),JA=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:YA(e.AttributeValueList,t)},...e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}}),p3=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),h3=(e,t)=>({...e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),_3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:py(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)}}),y3=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:NW(e.ReplicationGroup,t)}}),g3=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),v3=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:ZA(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:hy(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),S3=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:HA(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:dy(e.GlobalSecondaryIndexes,t)},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)},...e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:fy(e.LocalSecondaryIndexes,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:El(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:eT(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:tT(e.Tags,t)}}),w3=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),b3=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),E3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}}),A3=(e,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:uy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(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}}),T3=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),C3=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),x3=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:Zt(e.Key,t)}}),I3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),R3=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),D3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),N3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),P3=(e,t)=>({}),O3=(e,t)=>({...e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}}),L3=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),q3=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),M3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),z3=(e,t)=>({}),j3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),k3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),F3=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),U3=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:my(e.Parameters,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),B3=(e,t)=>{var n;return{ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:(0,sy.v4)(),...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:_W(e.TransactStatements,t)}}},uy=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:G3(i,t)},{}),G3=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:YA(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:Kn(e.Value,t)}}),$3=(e,t)=>{var n;return{ClientToken:(n=e.ClientToken)!==null&&n!==void 0?n:(0,sy.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}}},Gt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:i},{}),Wn=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Kn(i,t)},{}),QA=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:JA(i,t)},{}),V3=(e,t)=>({...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(e.Key,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),K3=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(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}}),W3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:py(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)}}),H3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Er(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}}),Y3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:H3(n,t)),dy=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:W3(n,t)),J3=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:_3(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:E3(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:nH(e.Update,t)}}),Q3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:J3(n,t)),X3=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Er(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}}),Z3=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:X3(n,t)),Zt=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Kn(i,t)},{}),eW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:JA(i,t)},{}),tW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Zt(n,t)),nW=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.Keys!==void 0&&e.Keys!==null&&{Keys:tW(e.Keys,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}}),bl=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:rW(n,t)),rW=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}}),XA=(e,t)=>({...e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),iW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Kn(n,t)),sW=(e,t)=>({...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)}}),oW=(e,t)=>({...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}}),aW=(e,t)=>({...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}}),cW=(e,t)=>({...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}}),lW=(e,t)=>({...e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}}),uW=(e,t)=>({...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}}),dW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:bl(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:py(e.Projection,t)}}),fy=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:dW(n,t)),fW=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Kn(i,t)},{}),mW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),pW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),hW=(e,t)=>({...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:my(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),_W=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:hW(n,t)),yW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:u3(n,t)),gW=(e,t)=>({...e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}}),my=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:Kn(n,t)),py=(e,t)=>({...e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:mW(e.NonKeyAttributes,t)},...e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}}),ci=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits},...e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}}),hy=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}}),vW=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:_y(e.Item,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),SW=(e,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:uy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:_y(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}}),_y=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Kn(i,t)},{}),wW=(e,t)=>({...e.Item!==void 0&&e.Item!==null&&{Item:_y(e.Item,t)}}),bW=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(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:Zt(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(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:eW(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:QA(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}}),EW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),AW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:IW(e.ReplicaGlobalSecondaryIndexUpdates,t)},...e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Er(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}}),TW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:AW(n,t)),CW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:hy(e.ProvisionedThroughputOverride,t)}}),xW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Er(e.ProvisionedReadCapacityAutoScalingUpdate,t)}}),IW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:xW(n,t)),ZA=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:CW(n,t)),RW=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Er(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}}),DW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:RW(n,t)),NW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:EW(n,t)),PW=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:DW(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Er(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits},...e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}}),OW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:PW(n,t)),LW=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:v3(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:C3(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:oH(e.Update,t)}}),qW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:LW(n,t)),MW=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:g3(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:T3(e.Delete,t)}}),zW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:MW(n,t)),jW=(e,t)=>({...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:dy(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:fy(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:ci(e.ProvisionedThroughputOverride,t)},...e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:El(e.SSESpecificationOverride,t)},...e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}}),kW=(e,t)=>({...e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride},...e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:dy(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:fy(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:ci(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:El(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}}),FW=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:wl(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:Zt(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(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:QA(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}}),El=(e,t)=>({...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}}),eT=(e,t)=>({...e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled},...e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}}),UW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),BW=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:e.Key},...e.Value!==void 0&&e.Value!==null&&{Value:e.Value}}),GW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:n),tT=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:BW(n,t)),$W=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.Tags!==void 0&&e.Tags!==null&&{Tags:tT(e.Tags,t)}}),VW=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}}),KW=(e,t)=>({...e.Get!==void 0&&e.Get!==null&&{Get:V3(e.Get,t)}}),WW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:KW(n,t)),HW=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:WW(e.TransactItems,t)}}),YW=(e,t)=>({...e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:p3(e.ConditionCheck,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:w3(e.Delete,t)},...e.Put!==void 0&&e.Put!==null&&{Put:vW(e.Put,t)},...e.Update!==void 0&&e.Update!==null&&{Update:ZW(e.Update,t)}}),JW=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:YW(n,t)),QW=(e,t)=>{var n;return{ClientRequestToken:(n=e.ClientRequestToken)!==null&&n!==void 0?n:(0,sy.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:JW(e.TransactItems,t)}}},XW=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:GW(e.TagKeys,t)}}),ZW=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(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}}),eH=(e,t)=>({...e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:gW(e.PointInTimeRecoverySpecification,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),tH=(e,t)=>({...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}}),nH=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)}}),rH=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:zW(e.ReplicaUpdates,t)}}),iH=(e,t)=>({...e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode},...e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:Z3(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)},...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Er(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits},...e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:OW(e.ReplicaSettingsUpdate,t)}}),sH=(e,t)=>({...e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:r3(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:uy(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Gt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:Wn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:Zt(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}}),oH=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:ZA(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:hy(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),aH=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:HA(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:Q3(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:ci(e.ProvisionedThroughput,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:qW(e.ReplicaUpdates,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:El(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:eT(e.StreamSpecification,t)},...e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),cH=(e,t)=>({...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:Y3(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Er(e.ProvisionedWriteCapacityAutoScalingUpdate,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:TW(e.ReplicaUpdates,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),lH=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:VW(e.TimeToLiveSpecification,t)}}),uH=(e,t)=>({...e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:x3(e.DeleteRequest,t)},...e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:wW(e.PutRequest,t)}}),dH=(e,t)=>e.filter(n=>n!=null).map(n=>n===null?null:uH(n,t)),fH=(e,t)=>({ArchivalBackupArn:(0,p.expectString)(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ArchivalDateTime))):void 0,ArchivalReason:(0,p.expectString)(e.ArchivalReason)}),mH=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),AttributeType:(0,p.expectString)(e.AttributeType)}),pH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:mH(r,t)),Ar=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),hH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),Qi=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:(0,p.expectBoolean)(e.BOOL)!==void 0?{BOOL:(0,p.expectBoolean)(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:NH(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:B8(e.L,t)}:e.M!==void 0&&e.M!==null?{M:Z8(e.M,t)}:(0,p.expectString)(e.N)!==void 0?{N:(0,p.expectString)(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:t4(e.NS,t)}:(0,p.expectBoolean)(e.NULL)!==void 0?{NULL:(0,p.expectBoolean)(e.NULL)}:(0,p.expectString)(e.S)!==void 0?{S:(0,p.expectString)(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:O4(e.SS,t)}:{$unknown:Object.entries(e)[0]},_H=(e,t)=>({PolicyName:(0,p.expectString)(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?gH(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),yH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:_H(r,t)),br=(e,t)=>({AutoScalingDisabled:(0,p.expectBoolean)(e.AutoScalingDisabled),AutoScalingRoleArn:(0,p.expectString)(e.AutoScalingRoleArn),MaximumUnits:(0,p.expectLong)(e.MaximumUnits),MinimumUnits:(0,p.expectLong)(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?yH(e.ScalingPolicies,t):void 0}),gH=(e,t)=>({DisableScaleIn:(0,p.expectBoolean)(e.DisableScaleIn),ScaleInCooldown:(0,p.expectInt32)(e.ScaleInCooldown),ScaleOutCooldown:(0,p.expectInt32)(e.ScaleOutCooldown),TargetValue:(0,p.limitedParseDouble)(e.TargetValue)}),nT=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?rT(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?N4(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?P4(e.SourceTableFeatureDetails,t):void 0}),rT=(e,t)=>({BackupArn:(0,p.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,p.expectString)(e.BackupName),BackupSizeBytes:(0,p.expectLong)(e.BackupSizeBytes),BackupStatus:(0,p.expectString)(e.BackupStatus),BackupType:(0,p.expectString)(e.BackupType)}),vH=(e,t)=>({message:(0,p.expectString)(e.message)}),SH=(e,t)=>({message:(0,p.expectString)(e.message)}),wH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:bH(r,t)),bH=(e,t)=>({BackupArn:(0,p.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,p.expectString)(e.BackupName),BackupSizeBytes:(0,p.expectLong)(e.BackupSizeBytes),BackupStatus:(0,p.expectString)(e.BackupStatus),BackupType:(0,p.expectString)(e.BackupType),TableArn:(0,p.expectString)(e.TableArn),TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName)}),EH=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?n4(e.Responses,t):void 0}),AH=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?CH(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?TH(e.UnprocessedKeys,t):void 0}),TH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:z8(i,t)},{}),CH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Tl(i,t)},{}),xH=(e,t)=>({Code:(0,p.expectString)(e.Code),Message:(0,p.expectString)(e.Message)}),IH=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?xH(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Ar(e.Item,t):void 0,TableName:(0,p.expectString)(e.TableName)}),RH=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?cT(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?DH(e.UnprocessedItems,t):void 0}),DH=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:t6(i,t)},{}),iT=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateToPayPerRequestDateTime))):void 0}),NH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:t.base64Decoder(r)),PH=(e,t)=>({Code:(0,p.expectString)(e.Code),Item:e.Item!==void 0&&e.Item!==null?Ar(e.Item,t):void 0,Message:(0,p.expectString)(e.Message)}),OH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:PH(r,t)),sT=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),LH=(e,t)=>({message:(0,p.expectString)(e.message)}),Tr=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?UA(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?UA(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?sT(e.Table,t):void 0,TableName:(0,p.expectString)(e.TableName),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),Xi=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Tr(r,t)),oT=(e,t)=>({ContinuousBackupsStatus:(0,p.expectString)(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?r4(e.PointInTimeRecoveryDescription,t):void 0}),qH=(e,t)=>({message:(0,p.expectString)(e.message)}),MH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),zH=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:jH(r,t)),jH=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),kH=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?rT(e.BackupDetails,t):void 0}),FH=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?yy(e.GlobalTableDescription,t):void 0}),UH=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),BH=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?nT(e.BackupDescription,t):void 0}),GH=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Ar(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),$H=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?Ho(e.Key,t):void 0}),VH=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),KH=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?nT(e.BackupDescription,t):void 0}),WH=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?oT(e.ContinuousBackupsDescription,t):void 0}),HH=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?MH(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?h8(e.FailureException,t):void 0,IndexName:(0,p.expectString)(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateDateTime))):void 0,TableName:(0,p.expectString)(e.TableName)}),YH=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?o8(e.Endpoints,t):void 0}),JH=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?aT(e.ExportDescription,t):void 0}),QH=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?yy(e.GlobalTableDescription,t):void 0}),XH=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?hT(e.ReplicaSettings,t):void 0}),ZH=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?F8(e.KinesisDataStreamDestinations,t):void 0,TableName:(0,p.expectString)(e.TableName)}),e8=(e,t)=>({AccountMaxReadCapacityUnits:(0,p.expectLong)(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:(0,p.expectLong)(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:(0,p.expectLong)(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:(0,p.expectLong)(e.TableMaxWriteCapacityUnits)}),t8=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?es(e.Table,t):void 0}),n8=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?gT(e.TableAutoScalingDescription,t):void 0}),r8=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?vT(e.TimeToLiveDescription,t):void 0}),i8=(e,t)=>({message:(0,p.expectString)(e.message)}),s8=(e,t)=>({Address:(0,p.expectString)(e.Address),CachePeriodInMinutes:(0,p.expectLong)(e.CachePeriodInMinutes)}),o8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:s8(r,t)),a8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Ho(e.LastEvaluatedKey,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),c8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?lT(e.Responses,t):void 0}),l8=(e,t)=>({message:(0,p.expectString)(e.message)}),aT=(e,t)=>({BilledSizeBytes:(0,p.expectLong)(e.BilledSizeBytes),ClientToken:(0,p.expectString)(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.EndTime))):void 0,ExportArn:(0,p.expectString)(e.ExportArn),ExportFormat:(0,p.expectString)(e.ExportFormat),ExportManifest:(0,p.expectString)(e.ExportManifest),ExportStatus:(0,p.expectString)(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ExportTime))):void 0,FailureCode:(0,p.expectString)(e.FailureCode),FailureMessage:(0,p.expectString)(e.FailureMessage),ItemCount:(0,p.expectLong)(e.ItemCount),S3Bucket:(0,p.expectString)(e.S3Bucket),S3BucketOwner:(0,p.expectString)(e.S3BucketOwner),S3Prefix:(0,p.expectString)(e.S3Prefix),S3SseAlgorithm:(0,p.expectString)(e.S3SseAlgorithm),S3SseKmsKeyId:(0,p.expectString)(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.StartTime))):void 0,TableArn:(0,p.expectString)(e.TableArn),TableId:(0,p.expectString)(e.TableId)}),u8=(e,t)=>({message:(0,p.expectString)(e.message)}),d8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:f8(r,t)),f8=(e,t)=>({ExportArn:(0,p.expectString)(e.ExportArn),ExportStatus:(0,p.expectString)(e.ExportStatus)}),m8=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?aT(e.ExportDescription,t):void 0}),p8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:(0,p.expectString)(i)},{}),h8=(e,t)=>({ExceptionDescription:(0,p.expectString)(e.ExceptionDescription),ExceptionName:(0,p.expectString)(e.ExceptionName)}),_8=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Ar(e.Item,t):void 0}),y8=(e,t)=>({Backfilling:(0,p.expectBoolean)(e.Backfilling),IndexArn:(0,p.expectString)(e.IndexArn),IndexName:(0,p.expectString)(e.IndexName),IndexSizeBytes:(0,p.expectLong)(e.IndexSizeBytes),IndexStatus:(0,p.expectString)(e.IndexStatus),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?fT(e.ProvisionedThroughput,t):void 0}),g8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:y8(r,t)),v8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:S8(r,t)),S8=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?dT(e.ProvisionedThroughput,t):void 0}),w8=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?w4(e.ReplicationGroup,t):void 0}),b8=(e,t)=>({message:(0,p.expectString)(e.message)}),yy=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.CreationDateTime))):void 0,GlobalTableArn:(0,p.expectString)(e.GlobalTableArn),GlobalTableName:(0,p.expectString)(e.GlobalTableName),GlobalTableStatus:(0,p.expectString)(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?pT(e.ReplicationGroup,t):void 0}),E8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:w8(r,t)),A8=(e,t)=>({message:(0,p.expectString)(e.message)}),T8=(e,t)=>({Message:(0,p.expectString)(e.Message)}),C8=(e,t)=>({message:(0,p.expectString)(e.message)}),x8=(e,t)=>({message:(0,p.expectString)(e.message)}),I8=(e,t)=>({Message:(0,p.expectString)(e.Message)}),R8=(e,t)=>({message:(0,p.expectString)(e.message)}),D8=(e,t)=>({message:(0,p.expectString)(e.message)}),N8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),Al=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?N8(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?O8(e.SizeEstimateRangeGB,t):void 0}),P8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Al(r,t)),cT=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:P8(i,t)},{}),O8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.limitedParseDouble)(r)),L8=(e,t)=>({message:(0,p.expectString)(e.message)}),Tl=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Ar(r,t)),q8=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Ar(e.Item,t):void 0}),lT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:q8(r,t)),Ho=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),M8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Ho(r,t)),z8=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?hH(e.AttributesToGet,t):void 0,ConsistentRead:(0,p.expectBoolean)(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?p8(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?M8(e.Keys,t):void 0,ProjectionExpression:(0,p.expectString)(e.ProjectionExpression)}),Zi=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:j8(r,t)),j8=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),KeyType:(0,p.expectString)(e.KeyType)}),k8=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),DestinationStatusDescription:(0,p.expectString)(e.DestinationStatusDescription),StreamArn:(0,p.expectString)(e.StreamArn)}),F8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:k8(r,t)),uT=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),StreamArn:(0,p.expectString)(e.StreamArn),TableName:(0,p.expectString)(e.TableName)}),U8=(e,t)=>({message:(0,p.expectString)(e.message)}),B8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Qi((0,p.expectUnion)(r),t)),G8=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?wH(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:(0,p.expectString)(e.LastEvaluatedBackupArn)}),$8=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?zH(e.ContributorInsightsSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),V8=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?d8(e.ExportSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),K8=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?E8(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:(0,p.expectString)(e.LastEvaluatedGlobalTableName)}),W8=(e,t)=>({LastEvaluatedTableName:(0,p.expectString)(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?M4(e.TableNames,t):void 0}),H8=(e,t)=>({NextToken:(0,p.expectString)(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?k4(e.Tags,t):void 0}),Y8=(e,t)=>({IndexArn:(0,p.expectString)(e.IndexArn),IndexName:(0,p.expectString)(e.IndexName),IndexSizeBytes:(0,p.expectLong)(e.IndexSizeBytes),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0}),J8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Y8(r,t)),Q8=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:X8(r,t)),X8=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Cl(e.Projection,t):void 0}),Z8=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),e4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),t4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),n4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:IH(r,t)),r4=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.EarliestRestorableDateTime))):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LatestRestorableDateTime))):void 0,PointInTimeRecoveryStatus:(0,p.expectString)(e.PointInTimeRecoveryStatus)}),i4=(e,t)=>({message:(0,p.expectString)(e.message)}),Cl=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?e4(e.NonKeyAttributes,t):void 0,ProjectionType:(0,p.expectString)(e.ProjectionType)}),dT=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),fT=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastDecreaseDateTime))):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastIncreaseDateTime))):void 0,NumberOfDecreasesToday:(0,p.expectLong)(e.NumberOfDecreasesToday),ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),s4=(e,t)=>({message:(0,p.expectString)(e.message)}),mT=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits)}),o4=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:Qi((0,p.expectUnion)(i),t)},{}),a4=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Ar(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),c4=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?o4(e.Item,t):void 0}),l4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Ho(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),u4=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName)}),d4=(e,t)=>({message:(0,p.expectString)(e.message)}),f4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?_4(e.GlobalSecondaryIndexes,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?br(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?br(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus)}),m4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:f4(r,t)),p4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?g4(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:(0,p.expectString)(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?mT(e.ProvisionedThroughputOverride,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ReplicaInaccessibleDateTime))):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus),ReplicaStatusDescription:(0,p.expectString)(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:(0,p.expectString)(e.ReplicaStatusPercentProgress),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?gy(e.ReplicaTableClassSummary,t):void 0}),pT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:p4(r,t)),h4=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?br(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?br(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),_4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:h4(r,t)),y4=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?mT(e.ProvisionedThroughputOverride,t):void 0}),g4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:y4(r,t)),v4=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?br(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:(0,p.expectLong)(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?br(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ProvisionedWriteCapacityUnits)}),S4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:v4(r,t)),w4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:u4(r,t)),b4=(e,t)=>({message:(0,p.expectString)(e.message)}),E4=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?iT(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?S4(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?br(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?br(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:(0,p.expectString)(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?gy(e.ReplicaTableClassSummary,t):void 0}),hT=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:E4(r,t)),A4=(e,t)=>({message:(0,p.expectString)(e.message)}),T4=(e,t)=>({message:(0,p.expectString)(e.message)}),C4=(e,t)=>({message:(0,p.expectString)(e.message)}),x4=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.RestoreDateTime))):void 0,RestoreInProgress:(0,p.expectBoolean)(e.RestoreInProgress),SourceBackupArn:(0,p.expectString)(e.SourceBackupArn),SourceTableArn:(0,p.expectString)(e.SourceTableArn)}),I4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),R4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),D4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Tl(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Ho(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),UA=(e,t)=>Object.entries(e).reduce((n,[r,i])=>i===null?n:{...n,[r]:sT(i,t)},{}),N4=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?dT(e.ProvisionedThroughput,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.TableCreationDateTime))):void 0,TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName),TableSizeBytes:(0,p.expectLong)(e.TableSizeBytes)}),P4=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?v8(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?Q8(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?_T(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?yT(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?vT(e.TimeToLiveDescription,t):void 0}),_T=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.InaccessibleEncryptionDateTime))):void 0,KMSMasterKeyArn:(0,p.expectString)(e.KMSMasterKeyArn),SSEType:(0,p.expectString)(e.SSEType),Status:(0,p.expectString)(e.Status)}),yT=(e,t)=>({StreamEnabled:(0,p.expectBoolean)(e.StreamEnabled),StreamViewType:(0,p.expectString)(e.StreamViewType)}),O4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),L4=(e,t)=>({message:(0,p.expectString)(e.message)}),gT=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?m4(e.Replicas,t):void 0,TableName:(0,p.expectString)(e.TableName),TableStatus:(0,p.expectString)(e.TableStatus)}),gy=(e,t)=>({LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateDateTime))):void 0,TableClass:(0,p.expectString)(e.TableClass)}),es=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?fH(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?pH(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?iT(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.CreationDateTime))):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?g8(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:(0,p.expectString)(e.GlobalTableVersion),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Zi(e.KeySchema,t):void 0,LatestStreamArn:(0,p.expectString)(e.LatestStreamArn),LatestStreamLabel:(0,p.expectString)(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?J8(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?fT(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?pT(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?x4(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?_T(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?yT(e.StreamSpecification,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?gy(e.TableClassSummary,t):void 0,TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName),TableSizeBytes:(0,p.expectLong)(e.TableSizeBytes),TableStatus:(0,p.expectString)(e.TableStatus)}),q4=(e,t)=>({message:(0,p.expectString)(e.message)}),M4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:(0,p.expectString)(r)),z4=(e,t)=>({message:(0,p.expectString)(e.message)}),j4=(e,t)=>({Key:(0,p.expectString)(e.Key),Value:(0,p.expectString)(e.Value)}),k4=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:j4(r,t)),vT=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),TimeToLiveStatus:(0,p.expectString)(e.TimeToLiveStatus)}),F4=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),Enabled:(0,p.expectBoolean)(e.Enabled)}),U4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?lT(e.Responses,t):void 0}),B4=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?OH(e.CancellationReasons,t):void 0,Message:(0,p.expectString)(e.Message)}),G4=(e,t)=>({message:(0,p.expectString)(e.message)}),$4=(e,t)=>({Message:(0,p.expectString)(e.Message)}),V4=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Xi(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?cT(e.ItemCollectionMetrics,t):void 0}),K4=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?oT(e.ContinuousBackupsDescription,t):void 0}),W4=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),H4=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?yy(e.GlobalTableDescription,t):void 0}),Y4=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?hT(e.ReplicaSettings,t):void 0}),J4=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Ar(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Tr(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Al(e.ItemCollectionMetrics,t):void 0}),Q4=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?es(e.TableDescription,t):void 0}),X4=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?gT(e.TableAutoScalingDescription,t):void 0}),Z4=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?F4(e.TimeToLiveSpecification,t):void 0}),e6=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?$H(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?c4(e.PutRequest,t):void 0}),t6=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:e6(r,t)),C=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"]}},vy=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),n6=(e,t)=>vy(e,t).then(n=>t.utf8Encoder(n)),ee=async(e,t,n,r,i)=>{let{hostname:s,protocol:o="https",port:a,path:c}=await e.endpoint(),u={protocol:o,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return r!==void 0&&(u.hostname=r),i!==void 0&&(u.body=i),new s2.HttpRequest(u)},D=(e,t)=>n6(e,t).then(n=>n.length?JSON.parse(n):{}),te=(e,t)=>{let n=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),r=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},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=f(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.BatchExecuteStatementCommand=void 0;var r6=U(),i6=O(),ST=H(),wT=Q(),Sy=class extends i6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,r6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:ST.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:ST.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,wT.serializeAws_json1_0BatchExecuteStatementCommand)(t,n)}deserialize(t,n){return(0,wT.deserializeAws_json1_0BatchExecuteStatementCommand)(t,n)}};xl.BatchExecuteStatementCommand=Sy});var Ey=f(Il=>{"use strict";Object.defineProperty(Il,"__esModule",{value:!0});Il.BatchGetItemCommand=void 0;var s6=U(),o6=O(),bT=H(),ET=Q(),by=class extends o6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,s6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:bT.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:bT.BatchGetItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,ET.serializeAws_json1_0BatchGetItemCommand)(t,n)}deserialize(t,n){return(0,ET.deserializeAws_json1_0BatchGetItemCommand)(t,n)}};Il.BatchGetItemCommand=by});var Ty=f(Rl=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.BatchWriteItemCommand=void 0;var a6=U(),c6=O(),AT=H(),TT=Q(),Ay=class extends c6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,a6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:AT.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:AT.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,TT.serializeAws_json1_0BatchWriteItemCommand)(t,n)}deserialize(t,n){return(0,TT.deserializeAws_json1_0BatchWriteItemCommand)(t,n)}};Rl.BatchWriteItemCommand=Ay});var xy=f(Dl=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.CreateBackupCommand=void 0;var l6=U(),u6=O(),CT=H(),xT=Q(),Cy=class extends u6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,l6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:CT.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:CT.CreateBackupOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,xT.serializeAws_json1_0CreateBackupCommand)(t,n)}deserialize(t,n){return(0,xT.deserializeAws_json1_0CreateBackupCommand)(t,n)}};Dl.CreateBackupCommand=Cy});var Ry=f(Nl=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.CreateGlobalTableCommand=void 0;var d6=U(),f6=O(),IT=H(),RT=Q(),Iy=class extends f6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,d6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:IT.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:IT.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,RT.serializeAws_json1_0CreateGlobalTableCommand)(t,n)}deserialize(t,n){return(0,RT.deserializeAws_json1_0CreateGlobalTableCommand)(t,n)}};Nl.CreateGlobalTableCommand=Iy});var Ny=f(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.CreateTableCommand=void 0;var m6=U(),p6=O(),DT=H(),NT=Q(),Dy=class extends p6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,m6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:DT.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:DT.CreateTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,NT.serializeAws_json1_0CreateTableCommand)(t,n)}deserialize(t,n){return(0,NT.deserializeAws_json1_0CreateTableCommand)(t,n)}};Pl.CreateTableCommand=Dy});var Oy=f(Ol=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.DeleteBackupCommand=void 0;var h6=U(),_6=O(),PT=H(),OT=Q(),Py=class extends _6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,h6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:PT.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:PT.DeleteBackupOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,OT.serializeAws_json1_0DeleteBackupCommand)(t,n)}deserialize(t,n){return(0,OT.deserializeAws_json1_0DeleteBackupCommand)(t,n)}};Ol.DeleteBackupCommand=Py});var qy=f(Ll=>{"use strict";Object.defineProperty(Ll,"__esModule",{value:!0});Ll.DeleteItemCommand=void 0;var y6=U(),g6=O(),LT=H(),qT=Q(),Ly=class extends g6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,y6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:LT.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:LT.DeleteItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,qT.serializeAws_json1_0DeleteItemCommand)(t,n)}deserialize(t,n){return(0,qT.deserializeAws_json1_0DeleteItemCommand)(t,n)}};Ll.DeleteItemCommand=Ly});var zy=f(ql=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.DeleteTableCommand=void 0;var v6=U(),S6=O(),MT=H(),zT=Q(),My=class extends S6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:MT.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:MT.DeleteTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,zT.serializeAws_json1_0DeleteTableCommand)(t,n)}deserialize(t,n){return(0,zT.deserializeAws_json1_0DeleteTableCommand)(t,n)}};ql.DeleteTableCommand=My});var ky=f(Ml=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.DescribeBackupCommand=void 0;var w6=U(),b6=O(),jT=H(),kT=Q(),jy=class extends b6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,w6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:jT.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:jT.DescribeBackupOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,kT.serializeAws_json1_0DescribeBackupCommand)(t,n)}deserialize(t,n){return(0,kT.deserializeAws_json1_0DescribeBackupCommand)(t,n)}};Ml.DescribeBackupCommand=jy});var Uy=f(zl=>{"use strict";Object.defineProperty(zl,"__esModule",{value:!0});zl.DescribeContinuousBackupsCommand=void 0;var E6=U(),A6=O(),FT=H(),UT=Q(),Fy=class extends A6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,E6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:FT.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:FT.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,UT.serializeAws_json1_0DescribeContinuousBackupsCommand)(t,n)}deserialize(t,n){return(0,UT.deserializeAws_json1_0DescribeContinuousBackupsCommand)(t,n)}};zl.DescribeContinuousBackupsCommand=Fy});var Gy=f(jl=>{"use strict";Object.defineProperty(jl,"__esModule",{value:!0});jl.DescribeContributorInsightsCommand=void 0;var T6=U(),C6=O(),BT=H(),GT=Q(),By=class extends C6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,T6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:BT.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:BT.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,GT.serializeAws_json1_0DescribeContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,GT.deserializeAws_json1_0DescribeContributorInsightsCommand)(t,n)}};jl.DescribeContributorInsightsCommand=By});var Fl=f(kl=>{"use strict";Object.defineProperty(kl,"__esModule",{value:!0});kl.DescribeEndpointsCommand=void 0;var x6=U(),I6=O(),$T=H(),VT=Q(),$y=class extends I6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,x6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:$T.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:$T.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,VT.serializeAws_json1_0DescribeEndpointsCommand)(t,n)}deserialize(t,n){return(0,VT.deserializeAws_json1_0DescribeEndpointsCommand)(t,n)}};kl.DescribeEndpointsCommand=$y});var Ky=f(Ul=>{"use strict";Object.defineProperty(Ul,"__esModule",{value:!0});Ul.DescribeExportCommand=void 0;var R6=U(),D6=O(),KT=H(),WT=Q(),Vy=class extends D6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,R6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:KT.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:KT.DescribeExportOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,WT.serializeAws_json1_0DescribeExportCommand)(t,n)}deserialize(t,n){return(0,WT.deserializeAws_json1_0DescribeExportCommand)(t,n)}};Ul.DescribeExportCommand=Vy});var Hy=f(Bl=>{"use strict";Object.defineProperty(Bl,"__esModule",{value:!0});Bl.DescribeGlobalTableCommand=void 0;var N6=U(),P6=O(),HT=H(),YT=Q(),Wy=class extends P6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,N6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:HT.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:HT.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,YT.serializeAws_json1_0DescribeGlobalTableCommand)(t,n)}deserialize(t,n){return(0,YT.deserializeAws_json1_0DescribeGlobalTableCommand)(t,n)}};Bl.DescribeGlobalTableCommand=Wy});var Jy=f(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});Gl.DescribeGlobalTableSettingsCommand=void 0;var O6=U(),L6=O(),JT=H(),QT=Q(),Yy=class extends L6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,O6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:JT.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:JT.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,QT.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,n)}deserialize(t,n){return(0,QT.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,n)}};Gl.DescribeGlobalTableSettingsCommand=Yy});var Xy=f($l=>{"use strict";Object.defineProperty($l,"__esModule",{value:!0});$l.DescribeKinesisStreamingDestinationCommand=void 0;var q6=U(),M6=O(),XT=H(),ZT=Q(),Qy=class extends M6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,q6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:XT.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:XT.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,ZT.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,ZT.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,n)}};$l.DescribeKinesisStreamingDestinationCommand=Qy});var eg=f(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});Vl.DescribeLimitsCommand=void 0;var z6=U(),j6=O(),eC=H(),tC=Q(),Zy=class extends j6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,z6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:eC.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:eC.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,tC.serializeAws_json1_0DescribeLimitsCommand)(t,n)}deserialize(t,n){return(0,tC.deserializeAws_json1_0DescribeLimitsCommand)(t,n)}};Vl.DescribeLimitsCommand=Zy});var Yo=f(Kl=>{"use strict";Object.defineProperty(Kl,"__esModule",{value:!0});Kl.DescribeTableCommand=void 0;var k6=U(),F6=O(),nC=H(),rC=Q(),tg=class extends F6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,k6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:nC.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:nC.DescribeTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,rC.serializeAws_json1_0DescribeTableCommand)(t,n)}deserialize(t,n){return(0,rC.deserializeAws_json1_0DescribeTableCommand)(t,n)}};Kl.DescribeTableCommand=tg});var rg=f(Wl=>{"use strict";Object.defineProperty(Wl,"__esModule",{value:!0});Wl.DescribeTableReplicaAutoScalingCommand=void 0;var U6=U(),B6=O(),iC=H(),sC=Q(),ng=class extends B6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,U6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:iC.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:iC.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,sC.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,n)}deserialize(t,n){return(0,sC.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,n)}};Wl.DescribeTableReplicaAutoScalingCommand=ng});var sg=f(Hl=>{"use strict";Object.defineProperty(Hl,"__esModule",{value:!0});Hl.DescribeTimeToLiveCommand=void 0;var G6=U(),$6=O(),oC=H(),aC=Q(),ig=class extends $6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:oC.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:oC.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,aC.serializeAws_json1_0DescribeTimeToLiveCommand)(t,n)}deserialize(t,n){return(0,aC.deserializeAws_json1_0DescribeTimeToLiveCommand)(t,n)}};Hl.DescribeTimeToLiveCommand=ig});var ag=f(Yl=>{"use strict";Object.defineProperty(Yl,"__esModule",{value:!0});Yl.DisableKinesisStreamingDestinationCommand=void 0;var V6=U(),K6=O(),cC=H(),lC=Q(),og=class extends K6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,V6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:cC.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:cC.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,lC.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,lC.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,n)}};Yl.DisableKinesisStreamingDestinationCommand=og});var lg=f(Jl=>{"use strict";Object.defineProperty(Jl,"__esModule",{value:!0});Jl.EnableKinesisStreamingDestinationCommand=void 0;var W6=U(),H6=O(),uC=H(),dC=Q(),cg=class extends H6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,W6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:uC.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:uC.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,dC.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,n)}deserialize(t,n){return(0,dC.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,n)}};Jl.EnableKinesisStreamingDestinationCommand=cg});var dg=f(Ql=>{"use strict";Object.defineProperty(Ql,"__esModule",{value:!0});Ql.ExecuteStatementCommand=void 0;var Y6=U(),J6=O(),fC=H(),mC=Q(),ug=class extends J6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Y6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:fC.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:fC.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,mC.serializeAws_json1_0ExecuteStatementCommand)(t,n)}deserialize(t,n){return(0,mC.deserializeAws_json1_0ExecuteStatementCommand)(t,n)}};Ql.ExecuteStatementCommand=ug});var mg=f(Xl=>{"use strict";Object.defineProperty(Xl,"__esModule",{value:!0});Xl.ExecuteTransactionCommand=void 0;var Q6=U(),X6=O(),pC=H(),hC=Q(),fg=class extends X6.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Q6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:pC.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:pC.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,hC.serializeAws_json1_0ExecuteTransactionCommand)(t,n)}deserialize(t,n){return(0,hC.deserializeAws_json1_0ExecuteTransactionCommand)(t,n)}};Xl.ExecuteTransactionCommand=fg});var hg=f(Zl=>{"use strict";Object.defineProperty(Zl,"__esModule",{value:!0});Zl.ExportTableToPointInTimeCommand=void 0;var Z6=U(),e5=O(),_C=H(),yC=Q(),pg=class extends e5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Z6.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:_C.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:_C.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,yC.serializeAws_json1_0ExportTableToPointInTimeCommand)(t,n)}deserialize(t,n){return(0,yC.deserializeAws_json1_0ExportTableToPointInTimeCommand)(t,n)}};Zl.ExportTableToPointInTimeCommand=pg});var yg=f(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.GetItemCommand=void 0;var t5=U(),n5=O(),gC=H(),vC=Q(),_g=class extends n5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,t5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:gC.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:gC.GetItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,vC.serializeAws_json1_0GetItemCommand)(t,n)}deserialize(t,n){return(0,vC.deserializeAws_json1_0GetItemCommand)(t,n)}};eu.GetItemCommand=_g});var vg=f(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.ListBackupsCommand=void 0;var r5=U(),i5=O(),SC=H(),wC=Q(),gg=class extends i5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,r5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:SC.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:SC.ListBackupsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,wC.serializeAws_json1_0ListBackupsCommand)(t,n)}deserialize(t,n){return(0,wC.deserializeAws_json1_0ListBackupsCommand)(t,n)}};tu.ListBackupsCommand=gg});var ru=f(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.ListContributorInsightsCommand=void 0;var s5=U(),o5=O(),bC=H(),EC=Q(),Sg=class extends o5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,s5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:bC.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:bC.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,EC.serializeAws_json1_0ListContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,EC.deserializeAws_json1_0ListContributorInsightsCommand)(t,n)}};nu.ListContributorInsightsCommand=Sg});var su=f(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.ListExportsCommand=void 0;var a5=U(),c5=O(),AC=H(),TC=Q(),wg=class extends c5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,a5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:AC.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:AC.ListExportsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,TC.serializeAws_json1_0ListExportsCommand)(t,n)}deserialize(t,n){return(0,TC.deserializeAws_json1_0ListExportsCommand)(t,n)}};iu.ListExportsCommand=wg});var Eg=f(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.ListGlobalTablesCommand=void 0;var l5=U(),u5=O(),CC=H(),xC=Q(),bg=class extends u5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,l5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:CC.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:CC.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,xC.serializeAws_json1_0ListGlobalTablesCommand)(t,n)}deserialize(t,n){return(0,xC.deserializeAws_json1_0ListGlobalTablesCommand)(t,n)}};ou.ListGlobalTablesCommand=bg});var cu=f(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.ListTablesCommand=void 0;var d5=U(),f5=O(),IC=H(),RC=Q(),Ag=class extends f5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,d5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:IC.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:IC.ListTablesOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,RC.serializeAws_json1_0ListTablesCommand)(t,n)}deserialize(t,n){return(0,RC.deserializeAws_json1_0ListTablesCommand)(t,n)}};au.ListTablesCommand=Ag});var Cg=f(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.ListTagsOfResourceCommand=void 0;var m5=U(),p5=O(),DC=H(),NC=Q(),Tg=class extends p5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,m5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:DC.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:DC.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,NC.serializeAws_json1_0ListTagsOfResourceCommand)(t,n)}deserialize(t,n){return(0,NC.deserializeAws_json1_0ListTagsOfResourceCommand)(t,n)}};lu.ListTagsOfResourceCommand=Tg});var Ig=f(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.PutItemCommand=void 0;var h5=U(),_5=O(),PC=H(),OC=Q(),xg=class extends _5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,h5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:PC.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:PC.PutItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,OC.serializeAws_json1_0PutItemCommand)(t,n)}deserialize(t,n){return(0,OC.deserializeAws_json1_0PutItemCommand)(t,n)}};uu.PutItemCommand=xg});var fu=f(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.QueryCommand=void 0;var y5=U(),g5=O(),LC=H(),qC=Q(),Rg=class extends g5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,y5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:LC.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:LC.QueryOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,qC.serializeAws_json1_0QueryCommand)(t,n)}deserialize(t,n){return(0,qC.deserializeAws_json1_0QueryCommand)(t,n)}};du.QueryCommand=Rg});var Ng=f(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.RestoreTableFromBackupCommand=void 0;var v5=U(),S5=O(),MC=H(),zC=Q(),Dg=class extends S5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,v5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:MC.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:MC.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,zC.serializeAws_json1_0RestoreTableFromBackupCommand)(t,n)}deserialize(t,n){return(0,zC.deserializeAws_json1_0RestoreTableFromBackupCommand)(t,n)}};mu.RestoreTableFromBackupCommand=Dg});var Og=f(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.RestoreTableToPointInTimeCommand=void 0;var w5=U(),b5=O(),jC=H(),kC=Q(),Pg=class extends b5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,w5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:jC.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:jC.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,kC.serializeAws_json1_0RestoreTableToPointInTimeCommand)(t,n)}deserialize(t,n){return(0,kC.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(t,n)}};pu.RestoreTableToPointInTimeCommand=Pg});var _u=f(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.ScanCommand=void 0;var E5=U(),A5=O(),FC=H(),UC=Q(),Lg=class extends A5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,E5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:FC.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:FC.ScanOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,UC.serializeAws_json1_0ScanCommand)(t,n)}deserialize(t,n){return(0,UC.deserializeAws_json1_0ScanCommand)(t,n)}};hu.ScanCommand=Lg});var Mg=f(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.TagResourceCommand=void 0;var T5=U(),C5=O(),x5=H(),BC=Q(),qg=class extends C5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,T5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:x5.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,BC.serializeAws_json1_0TagResourceCommand)(t,n)}deserialize(t,n){return(0,BC.deserializeAws_json1_0TagResourceCommand)(t,n)}};yu.TagResourceCommand=qg});var jg=f(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.TransactGetItemsCommand=void 0;var I5=U(),R5=O(),GC=H(),$C=Q(),zg=class extends R5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,I5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:GC.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:GC.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,$C.serializeAws_json1_0TransactGetItemsCommand)(t,n)}deserialize(t,n){return(0,$C.deserializeAws_json1_0TransactGetItemsCommand)(t,n)}};gu.TransactGetItemsCommand=zg});var Fg=f(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.TransactWriteItemsCommand=void 0;var D5=U(),N5=O(),VC=H(),KC=Q(),kg=class extends N5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,D5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:VC.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:VC.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,KC.serializeAws_json1_0TransactWriteItemsCommand)(t,n)}deserialize(t,n){return(0,KC.deserializeAws_json1_0TransactWriteItemsCommand)(t,n)}};vu.TransactWriteItemsCommand=kg});var Bg=f(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.UntagResourceCommand=void 0;var P5=U(),O5=O(),L5=H(),WC=Q(),Ug=class extends O5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,P5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:L5.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,WC.serializeAws_json1_0UntagResourceCommand)(t,n)}deserialize(t,n){return(0,WC.deserializeAws_json1_0UntagResourceCommand)(t,n)}};Su.UntagResourceCommand=Ug});var $g=f(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.UpdateContinuousBackupsCommand=void 0;var q5=U(),M5=O(),HC=H(),YC=Q(),Gg=class extends M5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,q5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:HC.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:HC.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,YC.serializeAws_json1_0UpdateContinuousBackupsCommand)(t,n)}deserialize(t,n){return(0,YC.deserializeAws_json1_0UpdateContinuousBackupsCommand)(t,n)}};wu.UpdateContinuousBackupsCommand=Gg});var Kg=f(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.UpdateContributorInsightsCommand=void 0;var z5=U(),j5=O(),JC=H(),QC=Q(),Vg=class extends j5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,z5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:JC.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:JC.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,QC.serializeAws_json1_0UpdateContributorInsightsCommand)(t,n)}deserialize(t,n){return(0,QC.deserializeAws_json1_0UpdateContributorInsightsCommand)(t,n)}};bu.UpdateContributorInsightsCommand=Vg});var Hg=f(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.UpdateGlobalTableCommand=void 0;var k5=U(),F5=O(),XC=H(),ZC=Q(),Wg=class extends F5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,k5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:XC.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:XC.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,ZC.serializeAws_json1_0UpdateGlobalTableCommand)(t,n)}deserialize(t,n){return(0,ZC.deserializeAws_json1_0UpdateGlobalTableCommand)(t,n)}};Eu.UpdateGlobalTableCommand=Wg});var Jg=f(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.UpdateGlobalTableSettingsCommand=void 0;var U5=U(),B5=O(),ex=H(),tx=Q(),Yg=class extends B5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,U5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:ex.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:ex.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,tx.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,n)}deserialize(t,n){return(0,tx.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,n)}};Au.UpdateGlobalTableSettingsCommand=Yg});var Xg=f(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.UpdateItemCommand=void 0;var G5=U(),$5=O(),nx=H(),rx=Q(),Qg=class extends $5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,G5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:nx.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:nx.UpdateItemOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,rx.serializeAws_json1_0UpdateItemCommand)(t,n)}deserialize(t,n){return(0,rx.deserializeAws_json1_0UpdateItemCommand)(t,n)}};Tu.UpdateItemCommand=Qg});var ev=f(Cu=>{"use strict";Object.defineProperty(Cu,"__esModule",{value:!0});Cu.UpdateTableCommand=void 0;var V5=U(),K5=O(),ix=H(),sx=Q(),Zg=class extends K5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,V5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:ix.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:ix.UpdateTableOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,sx.serializeAws_json1_0UpdateTableCommand)(t,n)}deserialize(t,n){return(0,sx.deserializeAws_json1_0UpdateTableCommand)(t,n)}};Cu.UpdateTableCommand=Zg});var nv=f(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.UpdateTableReplicaAutoScalingCommand=void 0;var W5=U(),H5=O(),ox=H(),ax=Q(),tv=class extends H5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,W5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:ox.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:ox.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,ax.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,n)}deserialize(t,n){return(0,ax.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,n)}};xu.UpdateTableReplicaAutoScalingCommand=tv});var iv=f(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});Iu.UpdateTimeToLiveCommand=void 0;var Y5=U(),J5=O(),cx=H(),lx=Q(),rv=class extends J5.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Y5.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:cx.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:cx.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,lx.serializeAws_json1_0UpdateTimeToLiveCommand)(t,n)}deserialize(t,n){return(0,lx.deserializeAws_json1_0UpdateTimeToLiveCommand)(t,n)}};Iu.UpdateTimeToLiveCommand=rv});var ux=f(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.booleanSelector=li.SelectorType=void 0;var Q5;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(Q5=li.SelectorType||(li.SelectorType={}));var X5=(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]}.`)}};li.booleanSelector=X5});var ov=f(sv=>{"use strict";Object.defineProperty(sv,"__esModule",{value:!0});var Z5=K();Z5.__exportStar(ux(),sv)});var dx=f($t=>{"use strict";Object.defineProperty($t,"__esModule",{value:!0});$t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=$t.DEFAULT_USE_DUALSTACK_ENDPOINT=$t.CONFIG_USE_DUALSTACK_ENDPOINT=$t.ENV_USE_DUALSTACK_ENDPOINT=void 0;var Ru=ov();$t.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";$t.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";$t.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;$t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Ru.booleanSelector)(e,$t.ENV_USE_DUALSTACK_ENDPOINT,Ru.SelectorType.ENV),configFileSelector:e=>(0,Ru.booleanSelector)(e,$t.CONFIG_USE_DUALSTACK_ENDPOINT,Ru.SelectorType.CONFIG),default:!1}});var fx=f(Vt=>{"use strict";Object.defineProperty(Vt,"__esModule",{value:!0});Vt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Vt.DEFAULT_USE_FIPS_ENDPOINT=Vt.CONFIG_USE_FIPS_ENDPOINT=Vt.ENV_USE_FIPS_ENDPOINT=void 0;var Du=ov();Vt.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";Vt.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";Vt.DEFAULT_USE_FIPS_ENDPOINT=!1;Vt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Du.booleanSelector)(e,Vt.ENV_USE_FIPS_ENDPOINT,Du.SelectorType.ENV),configFileSelector:e=>(0,Du.booleanSelector)(e,Vt.CONFIG_USE_FIPS_ENDPOINT,Du.SelectorType.CONFIG),default:!1}});var mx=f(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.normalizeProvider=void 0;var eY=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Nu.normalizeProvider=eY});var Jo=f(av=>{"use strict";Object.defineProperty(av,"__esModule",{value:!0});var tY=K();tY.__exportStar(mx(),av)});var hx=f(Pu=>{"use strict";Object.defineProperty(Pu,"__esModule",{value:!0});Pu.resolveCustomEndpointsConfig=void 0;var px=Jo(),nY=e=>{var t;let{endpoint:n,urlParser:r}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:(0,px.normalizeProvider)(typeof n=="string"?r(n):n),isCustomEndpoint:!0,useDualstackEndpoint:(0,px.normalizeProvider)(e.useDualstackEndpoint)}};Pu.resolveCustomEndpointsConfig=nY});var _x=f(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.getEndpointFromRegion=void 0;var rY=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(),o=await e.useFipsEndpoint(),{hostname:a}=(t=await e.regionInfoProvider(r,{useDualstackEndpoint:s,useFipsEndpoint:o}))!==null&&t!==void 0?t:{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${n?"https:":"http:"}//${a}`)};Ou.getEndpointFromRegion=rY});var gx=f(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.resolveEndpointsConfig=void 0;var yx=Jo(),iY=_x(),sY=e=>{var t;let n=(0,yx.normalizeProvider)(e.useDualstackEndpoint),{endpoint:r,useFipsEndpoint:i,urlParser:s}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:r?(0,yx.normalizeProvider)(typeof r=="string"?s(r):r):()=>(0,iY.getEndpointFromRegion)({...e,useDualstackEndpoint:n,useFipsEndpoint:i}),isCustomEndpoint:!!r,useDualstackEndpoint:n}};Lu.resolveEndpointsConfig=sY});var vx=f(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var qu=K();qu.__exportStar(dx(),ts);qu.__exportStar(fx(),ts);qu.__exportStar(hx(),ts);qu.__exportStar(gx(),ts)});var Sx=f(Kt=>{"use strict";Object.defineProperty(Kt,"__esModule",{value:!0});Kt.NODE_REGION_CONFIG_FILE_OPTIONS=Kt.NODE_REGION_CONFIG_OPTIONS=Kt.REGION_INI_NAME=Kt.REGION_ENV_NAME=void 0;Kt.REGION_ENV_NAME="AWS_REGION";Kt.REGION_INI_NAME="region";Kt.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Kt.REGION_ENV_NAME],configFileSelector:e=>e[Kt.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};Kt.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var cv=f(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.isFipsRegion=void 0;var oY=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));Mu.isFipsRegion=oY});var wx=f(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.getRealRegion=void 0;var aY=cv(),cY=e=>(0,aY.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;zu.getRealRegion=cY});var Ex=f(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.resolveRegionConfig=void 0;var bx=wx(),lY=cv(),uY=e=>{let{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return(0,bx.getRealRegion)(t);let r=await t();return(0,bx.getRealRegion)(r)},useFipsEndpoint:async()=>{let r=typeof t=="string"?t:await t();return(0,lY.isFipsRegion)(r)?!0:typeof n=="boolean"?Promise.resolve(n):n()}}};ju.resolveRegionConfig=uY});var Tx=f(ku=>{"use strict";Object.defineProperty(ku,"__esModule",{value:!0});var Ax=K();Ax.__exportStar(Sx(),ku);Ax.__exportStar(Ex(),ku)});var xx=f(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0})});var Rx=f(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0})});var Dx=f(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.getHostnameFromVariants=void 0;var dY=(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};Fu.getHostnameFromVariants=dY});var Nx=f(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.getResolvedHostname=void 0;var fY=(e,{regionHostname:t,partitionHostname:n})=>t||(n?n.replace("{region}",e):void 0);Uu.getResolvedHostname=fY});var Px=f(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.getResolvedPartition=void 0;var mY=(e,{partitionHash:t})=>{var n;return(n=Object.keys(t||{}).find(r=>t[r].regions.includes(e)))!==null&&n!==void 0?n:"aws"};Bu.getResolvedPartition=mY});var Ox=f(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.getResolvedSigningRegion=void 0;var pY=(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)}};Gu.getResolvedSigningRegion=pY});var qx=f($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.getRegionInfo=void 0;var Lx=Dx(),hY=Nx(),_Y=Px(),yY=Ox(),gY=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:n=!1,signingService:r,regionHash:i,partitionHash:s})=>{var o,a,c,u,d,h;let m=(0,_Y.getResolvedPartition)(e,{partitionHash:s}),y=e in i?e:(a=(o=s[m])===null||o===void 0?void 0:o.endpoint)!==null&&a!==void 0?a:e,g={useFipsEndpoint:t,useDualstackEndpoint:n},_=(0,Lx.getHostnameFromVariants)((c=i[y])===null||c===void 0?void 0:c.variants,g),A=(0,Lx.getHostnameFromVariants)((u=s[m])===null||u===void 0?void 0:u.variants,g),R=(0,hY.getResolvedHostname)(y,{regionHostname:_,partitionHostname:A});if(R===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:y,useFipsEndpoint:t,useDualstackEndpoint:n}}`);let T=(0,yY.getResolvedSigningRegion)(R,{signingRegion:(d=i[y])===null||d===void 0?void 0:d.signingRegion,regionRegex:s[m].regionRegex,useFipsEndpoint:t});return{partition:m,signingService:r,hostname:R,...T&&{signingRegion:T},...((h=i[y])===null||h===void 0?void 0:h.signingService)&&{signingService:i[y].signingService}}};$u.getRegionInfo=gY});var Mx=f(Qo=>{"use strict";Object.defineProperty(Qo,"__esModule",{value:!0});var lv=K();lv.__exportStar(xx(),Qo);lv.__exportStar(Rx(),Qo);lv.__exportStar(qx(),Qo)});var en=f(Xo=>{"use strict";Object.defineProperty(Xo,"__esModule",{value:!0});var uv=K();uv.__exportStar(vx(),Xo);uv.__exportStar(Tx(),Xo);uv.__exportStar(Mx(),Xo)});var Vu=f(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.getContentLengthPlugin=Hn.contentLengthMiddlewareOptions=Hn.contentLengthMiddleware=void 0;var vY=Ot(),zx="content-length";function jx(e){return t=>async n=>{let r=n.request;if(vY.HttpRequest.isInstance(r)){let{body:i,headers:s}=r;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(zx)===-1)try{let o=e(i);r.headers={...r.headers,[zx]:String(o)}}catch{}}return t({...n,request:r})}}Hn.contentLengthMiddleware=jx;Hn.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var SY=e=>({applyToStack:t=>{t.add(jx(e.bodyLengthChecker),Hn.contentLengthMiddlewareOptions)}});Hn.getContentLengthPlugin=SY});var Ux=f(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var kx=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],dv="endpoint_discovery_enabled",Fx=e=>["false","0"].indexOf(e)>=0;Ku.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<kx.length;t++){let n=kx[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!Fx(r)}}},configFileSelector:e=>{if(dv in e){let t=e[dv];if(t===void 0)throw Error(`Shared config entry ${dv} can't be undefined, got "${t}"`);return!Fx(t)}},default:void 0}});var Bx=f(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.getCacheKey=void 0;var wY=async(e,t,n)=>{let{accessKeyId:r}=await t.credentials(),{identifiers:i}=n;return JSON.stringify({...r&&{accessKeyId:r},...i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[o,a])=>({...s,[o]:a}),{})}})};Wu.getCacheKey=wY});var Gx=f(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.updateDiscoveredEndpointInCache=void 0;var Yn={},bY=async(e,t)=>new Promise((n,r)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:o,identifiers:a}=t,c=i.get(s);if(c&&c.length===1&&c[0].Address==="")t.isDiscoveredEndpointRequired?(Yn[s]||(Yn[s]=[]),Yn[s].push({resolve:n,reject:r})):n();else if(c&&c.length>0)n();else{let u=[{Address:"",CachePeriodInMinutes:1}];i.set(s,u);let d=new t.endpointDiscoveryCommandCtor({Operation:o.slice(0,-7),Identifiers:a});d.resolveMiddleware(t.clientStack,e,t.options)(d).then(m=>{i.set(s,m.output.Endpoints),Yn[s]&&(Yn[s].forEach(({resolve:y})=>{y()}),delete Yn[s]),n()}).catch(m=>{var y;(m.name==="InvalidEndpointException"||((y=m.$metadata)===null||y===void 0?void 0:y.httpStatusCode)===421)&&i.delete(s);let g=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:m});Yn[s]&&(Yn[s].forEach(({reject:_})=>{_(g)}),delete Yn[s]),t.isDiscoveredEndpointRequired?r(g):(i.set(s,u),n())})}});Hu.updateDiscoveredEndpointInCache=bY});var Vx=f(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.endpointDiscoveryMiddleware=void 0;var EY=Ot(),AY=Bx(),$x=Gx(),TY=(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:o,identifiers:a}=t,{clientName:c,commandName:u}=r,d=await e.endpointDiscoveryEnabled(),h=await(0,AY.getCacheKey)(u,e,{identifiers:a});if(o){if(d===!1)throw new Error(`Endpoint Discovery is disabled but ${u} on ${c} requires it. Please check your configurations.`);await(0,$x.updateDiscoveredEndpointInCache)(e,{...t,commandName:u,cacheKey:h,endpointDiscoveryCommandCtor:s})}else d&&(0,$x.updateDiscoveredEndpointInCache)(e,{...t,commandName:u,cacheKey:h,endpointDiscoveryCommandCtor:s});let{request:m}=i;if(h&&EY.HttpRequest.isInstance(m)){let y=e.endpointCache.getEndpoint(h);y&&(m.hostname=y)}return n(i)};Yu.endpointDiscoveryMiddleware=TY});var Kx=f(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getEndpointDiscoveryOptionalPlugin=qt.getEndpointDiscoveryRequiredPlugin=qt.getEndpointDiscoveryPlugin=qt.endpointDiscoveryMiddlewareOptions=void 0;var fv=Vx();qt.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var CY=(e,t)=>({applyToStack:n=>{n.add((0,fv.endpointDiscoveryMiddleware)(e,t),qt.endpointDiscoveryMiddlewareOptions)}});qt.getEndpointDiscoveryPlugin=CY;var xY=(e,t)=>({applyToStack:n=>{n.add((0,fv.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!0}),qt.endpointDiscoveryMiddlewareOptions)}});qt.getEndpointDiscoveryRequiredPlugin=xY;var IY=(e,t)=>({applyToStack:n=>{n.add((0,fv.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!1}),qt.endpointDiscoveryMiddlewareOptions)}});qt.getEndpointDiscoveryOptionalPlugin=IY});var Hx=f(Wx=>{"use strict";Object.defineProperty(Wx,"__esModule",{value:!0})});var Jx=f((Kge,Yx)=>{function Jn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}Jn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(Jn.prototype[Symbol.iterator]=function(){return this});Jn.of=function(){var e=arguments,t=e.length,n=0;return new Jn(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};Jn.empty=function(){var e=new Jn(null);return e.done=!0,e};Jn.is=function(e){return e instanceof Jn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};Yx.exports=Jn});var mv=f((Wge,eI)=>{var Qx=typeof ArrayBuffer<"u",Xx=typeof Symbol<"u";function Zx(e,t){var n,r,i,s,o;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)||Qx&&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(Xx&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;o=n.next(),o.done!==!0;)t(o.value,i),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}Zx.forEachWithNullKeys=function(e,t){var n,r,i,s,o;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)||Qx&&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(a){t(a,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(Xx&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;o=n.next(),o.done!==!0;)t(o.value,null),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};eI.exports=Zx});var pv=f(_n=>{var RY=Math.pow(2,8)-1,DY=Math.pow(2,16)-1,NY=Math.pow(2,32)-1,PY=Math.pow(2,7)-1,OY=Math.pow(2,15)-1,LY=Math.pow(2,31)-1;_n.getPointerArray=function(e){var t=e-1;return t<=RY?Uint8Array:t<=DY?Uint16Array:t<=NY?Uint32Array:Float64Array};_n.getSignedPointerArray=function(e){var t=e-1;return t<=PY?Int8Array:t<=OY?Int16Array:t<=LY?Int32Array:Float64Array};_n.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 qY={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};_n.getMinimalRepresentation=function(e,t){var n=null,r=0,i,s,o,a,c;for(a=0,c=e.length;a<c;a++)o=t?t(e[a]):e[a],s=_n.getNumberType(o),i=qY[s.name],i>r&&(r=i,n=s);return n};_n.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};_n.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};_n.indices=function(e){for(var t=_n.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var rI=f(Zo=>{var tI=mv(),nI=pv();function MY(e){return Array.isArray(e)||nI.isTypedArray(e)}function hv(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function zY(e){var t=hv(e),n=typeof t=="number"?new Array(t):[],r=0;return tI(e,function(i){n[r++]=i}),n}function jY(e){var t=hv(e),n=typeof t=="number"?nI.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new n(t):[],s=0;return tI(e,function(o){r[s]=o,i[s]=s++}),[r,i]}Zo.isArrayLike=MY;Zo.guessLength=hv;Zo.toArray=zY;Zo.toArrayWithIndices=jY});var sI=f((Jge,iI)=>{var _v=Jx(),kY=mv(),FY=pv(),UY=rI();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=FY.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<"u"){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<"u"?(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>"u"))return this.splayOnTop(t),this.V[t]};Ge.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))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,o=this.V,a=this.forward;n<r;)e.call(t,o[i],s[i],this),i=a[i],n++};Ge.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.forward;return new _v(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 _v(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 _v(function(){if(e>=t)return{done:!0};var o=r[n],a=i[n];return e++,e<t&&(n=s[n]),{done:!1,value:[o,a]}})};typeof Symbol<"u"&&(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<"u"&&(Ge.prototype[Symbol.for("nodejs.util.inspect.custom")]=Ge.prototype.inspect);Ge.from=function(e,t,n,r){if(arguments.length<2){if(r=UY.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 kY(e,function(s,o){i.set(o,s)}),i};iI.exports=Ge});var oI=f(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.EndpointCache=void 0;var BY=K(),GY=BY.__importDefault(sI()),yv=class{constructor(t){this.cache=new GY.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()}};Ju.EndpointCache=yv});var cI=f(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});var aI=K();aI.__exportStar(Hx(),Qu);aI.__exportStar(oI(),Qu)});var lI=f(Xu=>{"use strict";Object.defineProperty(Xu,"__esModule",{value:!0});Xu.resolveEndpointDiscoveryConfig=void 0;var $Y=cI(),VY=(e,{endpointDiscoveryCommandCtor:t})=>{var n;return{...e,endpointDiscoveryCommandCtor:t,endpointCache:new $Y.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}};Xu.resolveEndpointDiscoveryConfig=VY});var vv=f(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});var gv=K();gv.__exportStar(Ux(),ea);gv.__exportStar(Kx(),ea);gv.__exportStar(lI(),ea)});var Zu=f(Wt=>{"use strict";Object.defineProperty(Wt,"__esModule",{value:!0});Wt.getHostHeaderPlugin=Wt.hostHeaderMiddlewareOptions=Wt.hostHeaderMiddleware=Wt.resolveHostHeaderConfig=void 0;var KY=Ot();function WY(e){return e}Wt.resolveHostHeaderConfig=WY;var HY=e=>t=>async n=>{if(!KY.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)};Wt.hostHeaderMiddleware=HY;Wt.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var YY=e=>({applyToStack:t=>{t.add((0,Wt.hostHeaderMiddleware)(e),Wt.hostHeaderMiddlewareOptions)}});Wt.getHostHeaderPlugin=YY});var uI=f(yn=>{"use strict";Object.defineProperty(yn,"__esModule",{value:!0});yn.getLoggerPlugin=yn.loggerMiddlewareOptions=yn.loggerMiddleware=void 0;var JY=()=>(e,t)=>async n=>{let{clientName:r,commandName:i,inputFilterSensitiveLog:s,logger:o,outputFilterSensitiveLog:a}=t,c=await e(n);if(!o)return c;if(typeof o.info=="function"){let{$metadata:u,...d}=c.output;o.info({clientName:r,commandName:i,input:s(n.input),output:a(d),metadata:u})}return c};yn.loggerMiddleware=JY;yn.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var QY=e=>({applyToStack:t=>{t.add((0,yn.loggerMiddleware)(),yn.loggerMiddlewareOptions)}});yn.getLoggerPlugin=QY});var ed=f(Sv=>{"use strict";Object.defineProperty(Sv,"__esModule",{value:!0});var XY=K();XY.__exportStar(uI(),Sv)});var ta=f(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.DEFAULT_RETRY_MODE=Qn.DEFAULT_MAX_ATTEMPTS=Qn.RETRY_MODES=void 0;var dI;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(dI=Qn.RETRY_MODES||(Qn.RETRY_MODES={}));Qn.DEFAULT_MAX_ATTEMPTS=3;Qn.DEFAULT_RETRY_MODE=dI.STANDARD});var fI=f(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.TRANSIENT_ERROR_STATUS_CODES=gn.TRANSIENT_ERROR_CODES=gn.THROTTLING_ERROR_CODES=gn.CLOCK_SKEW_ERROR_CODES=void 0;gn.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];gn.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];gn.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];gn.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var nd=f(vn=>{"use strict";Object.defineProperty(vn,"__esModule",{value:!0});vn.isTransientError=vn.isThrottlingError=vn.isClockSkewError=vn.isRetryableByTrait=void 0;var td=fI(),ZY=e=>e.$retryable!==void 0;vn.isRetryableByTrait=ZY;var eJ=e=>td.CLOCK_SKEW_ERROR_CODES.includes(e.name);vn.isClockSkewError=eJ;var tJ=e=>{var t,n;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||td.THROTTLING_ERROR_CODES.includes(e.name)||((n=e.$retryable)===null||n===void 0?void 0:n.throttling)==!0};vn.isThrottlingError=tJ;var nJ=e=>{var t;return td.TRANSIENT_ERROR_CODES.includes(e.name)||td.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};vn.isTransientError=nJ});var bv=f(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.DefaultRateLimiter=void 0;var rJ=nd(),wv=class{constructor(t){var n,r,i,s,o;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=(o=t==null?void 0:t.smooth)!==null&&o!==void 0?o:.8;let a=this.getCurrentTimeInSeconds();this.lastThrottleTime=a,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(),(0,rJ.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))}};rd.DefaultRateLimiter=wv});var na=f($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 mI=f(id=>{"use strict";Object.defineProperty(id,"__esModule",{value:!0});id.getDefaultRetryQuota=void 0;var Ev=na(),iJ=(e,t)=>{var n,r,i;let s=e,o=(n=t==null?void 0:t.noRetryIncrement)!==null&&n!==void 0?n:Ev.NO_RETRY_INCREMENT,a=(r=t==null?void 0:t.retryCost)!==null&&r!==void 0?r:Ev.RETRY_COST,c=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:Ev.TIMEOUT_RETRY_COST,u=e,d=g=>g.name==="TimeoutError"?c:a,h=g=>d(g)<=u;return Object.freeze({hasRetryTokens:h,retrieveRetryTokens:g=>{if(!h(g))throw new Error("No retry token available");let _=d(g);return u-=_,_},releaseRetryTokens:g=>{u+=g??o,u=Math.min(u,s)}})};id.getDefaultRetryQuota=iJ});var Av=f(sd=>{"use strict";Object.defineProperty(sd,"__esModule",{value:!0});sd.defaultDelayDecider=void 0;var sJ=na(),oJ=(e,t)=>Math.floor(Math.min(sJ.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));sd.defaultDelayDecider=oJ});var Tv=f(ad=>{"use strict";Object.defineProperty(ad,"__esModule",{value:!0});ad.defaultRetryDecider=void 0;var od=nd(),aJ=e=>e?(0,od.isRetryableByTrait)(e)||(0,od.isClockSkewError)(e)||(0,od.isThrottlingError)(e)||(0,od.isTransientError)(e):!1;ad.defaultRetryDecider=aJ});var ld=f(cd=>{"use strict";Object.defineProperty(cd,"__esModule",{value:!0});cd.StandardRetryStrategy=void 0;var pI=Ot(),cJ=nd(),lJ=iy(),hI=ta(),ra=na(),uJ=mI(),dJ=Av(),fJ=Tv(),Cv=class{constructor(t,n){var r,i,s;this.maxAttemptsProvider=t,this.mode=hI.RETRY_MODES.STANDARD,this.retryDecider=(r=n==null?void 0:n.retryDecider)!==null&&r!==void 0?r:fJ.defaultRetryDecider,this.delayDecider=(i=n==null?void 0:n.delayDecider)!==null&&i!==void 0?i:dJ.defaultDelayDecider,this.retryQuota=(s=n==null?void 0:n.retryQuota)!==null&&s!==void 0?s:(0,uJ.getDefaultRetryQuota)(ra.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=hI.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,n,r){let i,s=0,o=0,a=await this.getMaxAttempts(),{request:c}=n;for(pI.HttpRequest.isInstance(c)&&(c.headers[ra.INVOCATION_ID_HEADER]=(0,lJ.v4)());;)try{pI.HttpRequest.isInstance(c)&&(c.headers[ra.REQUEST_HEADER]=`attempt=${s+1}; max=${a}`),r!=null&&r.beforeRequest&&await r.beforeRequest();let{response:u,output:d}=await t(n);return r!=null&&r.afterRequest&&r.afterRequest(u),this.retryQuota.releaseRetryTokens(i),d.$metadata.attempts=s+1,d.$metadata.totalRetryDelay=o,{response:u,output:d}}catch(u){let d=mJ(u);if(s++,this.shouldRetry(d,s,a)){i=this.retryQuota.retrieveRetryTokens(d);let h=this.delayDecider((0,cJ.isThrottlingError)(d)?ra.THROTTLING_RETRY_DELAY_BASE:ra.DEFAULT_RETRY_DELAY_BASE,s);o+=h,await new Promise(m=>setTimeout(m,h));continue}throw d.$metadata||(d.$metadata={}),d.$metadata.attempts=s,d.$metadata.totalRetryDelay=o,d}}};cd.StandardRetryStrategy=Cv;var mJ=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 Iv=f(ud=>{"use strict";Object.defineProperty(ud,"__esModule",{value:!0});ud.AdaptiveRetryStrategy=void 0;var pJ=ta(),hJ=bv(),_J=ld(),xv=class extends _J.StandardRetryStrategy{constructor(t,n){let{rateLimiter:r,...i}=n??{};super(t,i),this.rateLimiter=r??new hJ.DefaultRateLimiter,this.mode=pJ.RETRY_MODES.ADAPTIVE}async retry(t,n){return super.retry(t,n,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:r=>{this.rateLimiter.updateClientSendingRate(r)}})}};ud.AdaptiveRetryStrategy=xv});var yI=f(ze=>{"use strict";Object.defineProperty(ze,"__esModule",{value:!0});ze.NODE_RETRY_MODE_CONFIG_OPTIONS=ze.CONFIG_RETRY_MODE=ze.ENV_RETRY_MODE=ze.resolveRetryConfig=ze.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=ze.CONFIG_MAX_ATTEMPTS=ze.ENV_MAX_ATTEMPTS=void 0;var _I=Jo(),yJ=Iv(),dd=ta(),gJ=ld();ze.ENV_MAX_ATTEMPTS="AWS_MAX_ATTEMPTS";ze.CONFIG_MAX_ATTEMPTS="max_attempts";ze.NODE_MAX_ATTEMPT_CONFIG_OPTIONS={environmentVariableSelector:e=>{let t=e[ze.ENV_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Environment variable ${ze.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},configFileSelector:e=>{let t=e[ze.CONFIG_MAX_ATTEMPTS];if(!t)return;let n=parseInt(t);if(Number.isNaN(n))throw new Error(`Shared config file entry ${ze.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return n},default:dd.DEFAULT_MAX_ATTEMPTS};var vJ=e=>{var t;let n=(0,_I.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:dd.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:n,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await(0,_I.normalizeProvider)(e.retryMode)()===dd.RETRY_MODES.ADAPTIVE?new yJ.AdaptiveRetryStrategy(n):new gJ.StandardRetryStrategy(n)}};ze.resolveRetryConfig=vJ;ze.ENV_RETRY_MODE="AWS_RETRY_MODE";ze.CONFIG_RETRY_MODE="retry_mode";ze.NODE_RETRY_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[ze.ENV_RETRY_MODE],configFileSelector:e=>e[ze.CONFIG_RETRY_MODE],default:dd.DEFAULT_RETRY_MODE}});var vI=f(Sn=>{"use strict";Object.defineProperty(Sn,"__esModule",{value:!0});Sn.getOmitRetryHeadersPlugin=Sn.omitRetryHeadersMiddlewareOptions=Sn.omitRetryHeadersMiddleware=void 0;var SJ=Ot(),gI=na(),wJ=()=>e=>async t=>{let{request:n}=t;return SJ.HttpRequest.isInstance(n)&&(delete n.headers[gI.INVOCATION_ID_HEADER],delete n.headers[gI.REQUEST_HEADER]),e(t)};Sn.omitRetryHeadersMiddleware=wJ;Sn.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var bJ=e=>({applyToStack:t=>{t.addRelativeTo((0,Sn.omitRetryHeadersMiddleware)(),Sn.omitRetryHeadersMiddlewareOptions)}});Sn.getOmitRetryHeadersPlugin=bJ});var SI=f(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.getRetryPlugin=wn.retryMiddlewareOptions=wn.retryMiddleware=void 0;var EJ=e=>(t,n)=>async r=>{let i=await e.retryStrategy();return i!=null&&i.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,r)};wn.retryMiddleware=EJ;wn.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var AJ=e=>({applyToStack:t=>{t.add((0,wn.retryMiddleware)(e),wn.retryMiddlewareOptions)}});wn.getRetryPlugin=AJ});var bI=f(wI=>{"use strict";Object.defineProperty(wI,"__esModule",{value:!0})});var ui=f(Ht=>{"use strict";Object.defineProperty(Ht,"__esModule",{value:!0});var bn=K();bn.__exportStar(Iv(),Ht);bn.__exportStar(bv(),Ht);bn.__exportStar(ld(),Ht);bn.__exportStar(ta(),Ht);bn.__exportStar(yI(),Ht);bn.__exportStar(Av(),Ht);bn.__exportStar(vI(),Ht);bn.__exportStar(Tv(),Ht);bn.__exportStar(SI(),Ht);bn.__exportStar(bI(),Ht)});var md=f(fd=>{"use strict";Object.defineProperty(fd,"__esModule",{value:!0});fd.ProviderError=void 0;var ia=class extends Error{constructor(t,n=!0){super(t),this.tryNextLink=n,this.name="ProviderError",Object.setPrototypeOf(this,ia.prototype)}static from(t,n=!0){return Object.assign(new this(t.message,n),t)}};fd.ProviderError=ia});var EI=f(pd=>{"use strict";Object.defineProperty(pd,"__esModule",{value:!0});pd.CredentialsProviderError=void 0;var TJ=md(),sa=class extends TJ.ProviderError{constructor(t,n=!0){super(t,n),this.tryNextLink=n,this.name="CredentialsProviderError",Object.setPrototypeOf(this,sa.prototype)}};pd.CredentialsProviderError=sa});var AI=f(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.chain=void 0;var CJ=md();function xJ(...e){return()=>{let t=Promise.reject(new CJ.ProviderError("No providers in chain"));for(let n of e)t=t.catch(r=>{if(r!=null&&r.tryNextLink)return n();throw r});return t}}hd.chain=xJ});var TI=f(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.fromStatic=void 0;var IJ=e=>()=>Promise.resolve(e);_d.fromStatic=IJ});var CI=f(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.memoize=void 0;var RJ=(e,t,n)=>{let r,i,s,o=!1,a=async()=>{i||(i=e());try{r=await i,s=!0,o=!1}finally{i=void 0}return r};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(r=await a()),r):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(r=await a()),o?r:n&&!n(r)?(o=!0,r):(t(r)&&await a(),r))};yd.memoize=RJ});var je=f(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});var oa=K();oa.__exportStar(EI(),di);oa.__exportStar(md(),di);oa.__exportStar(AI(),di);oa.__exportStar(TI(),di);oa.__exportStar(CI(),di)});var gd=f(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.toHex=ns.fromHex=void 0;var xI={},Rv={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),xI[e]=t,Rv[t]=e}function DJ(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.slice(n,n+2).toLowerCase();if(r in Rv)t[n/2]=Rv[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}ns.fromHex=DJ;function NJ(e){let t="";for(let n=0;n<e.byteLength;n++)t+=xI[e[n]];return t}ns.toHex=NJ});var fi=f(B=>{"use strict";Object.defineProperty(B,"__esModule",{value:!0});B.MAX_PRESIGNED_TTL=B.KEY_TYPE_IDENTIFIER=B.MAX_CACHE_SIZE=B.UNSIGNED_PAYLOAD=B.EVENT_ALGORITHM_IDENTIFIER=B.ALGORITHM_IDENTIFIER_V4A=B.ALGORITHM_IDENTIFIER=B.UNSIGNABLE_PATTERNS=B.SEC_HEADER_PATTERN=B.PROXY_HEADER_PATTERN=B.ALWAYS_UNSIGNABLE_HEADERS=B.HOST_HEADER=B.TOKEN_HEADER=B.SHA256_HEADER=B.SIGNATURE_HEADER=B.GENERATED_HEADERS=B.DATE_HEADER=B.AMZ_DATE_HEADER=B.AUTH_HEADER=B.REGION_SET_PARAM=B.TOKEN_QUERY_PARAM=B.SIGNATURE_QUERY_PARAM=B.EXPIRES_QUERY_PARAM=B.SIGNED_HEADERS_QUERY_PARAM=B.AMZ_DATE_QUERY_PARAM=B.CREDENTIAL_QUERY_PARAM=B.ALGORITHM_QUERY_PARAM=void 0;B.ALGORITHM_QUERY_PARAM="X-Amz-Algorithm";B.CREDENTIAL_QUERY_PARAM="X-Amz-Credential";B.AMZ_DATE_QUERY_PARAM="X-Amz-Date";B.SIGNED_HEADERS_QUERY_PARAM="X-Amz-SignedHeaders";B.EXPIRES_QUERY_PARAM="X-Amz-Expires";B.SIGNATURE_QUERY_PARAM="X-Amz-Signature";B.TOKEN_QUERY_PARAM="X-Amz-Security-Token";B.REGION_SET_PARAM="X-Amz-Region-Set";B.AUTH_HEADER="authorization";B.AMZ_DATE_HEADER=B.AMZ_DATE_QUERY_PARAM.toLowerCase();B.DATE_HEADER="date";B.GENERATED_HEADERS=[B.AUTH_HEADER,B.AMZ_DATE_HEADER,B.DATE_HEADER];B.SIGNATURE_HEADER=B.SIGNATURE_QUERY_PARAM.toLowerCase();B.SHA256_HEADER="x-amz-content-sha256";B.TOKEN_HEADER=B.TOKEN_QUERY_PARAM.toLowerCase();B.HOST_HEADER="host";B.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};B.PROXY_HEADER_PATTERN=/^proxy-/;B.SEC_HEADER_PATTERN=/^sec-/;B.UNSIGNABLE_PATTERNS=[/^proxy-/i,/^sec-/i];B.ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256";B.ALGORITHM_IDENTIFIER_V4A="AWS4-ECDSA-P256-SHA256";B.EVENT_ALGORITHM_IDENTIFIER="AWS4-HMAC-SHA256-PAYLOAD";B.UNSIGNED_PAYLOAD="UNSIGNED-PAYLOAD";B.MAX_CACHE_SIZE=50;B.KEY_TYPE_IDENTIFIER="aws4_request";B.MAX_PRESIGNED_TTL=60*60*24*7});var Nv=f(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.clearCredentialCache=Cr.getSigningKey=Cr.createScope=void 0;var PJ=gd(),Dv=fi(),rs={},vd=[],OJ=(e,t,n)=>`${e}/${t}/${n}/${Dv.KEY_TYPE_IDENTIFIER}`;Cr.createScope=OJ;var LJ=async(e,t,n,r,i)=>{let s=await II(e,t.secretAccessKey,t.accessKeyId),o=`${n}:${r}:${i}:${(0,PJ.toHex)(s)}:${t.sessionToken}`;if(o in rs)return rs[o];for(vd.push(o);vd.length>Dv.MAX_CACHE_SIZE;)delete rs[vd.shift()];let a=`AWS4${t.secretAccessKey}`;for(let c of[n,r,i,Dv.KEY_TYPE_IDENTIFIER])a=await II(e,a,c);return rs[o]=a};Cr.getSigningKey=LJ;var qJ=()=>{vd.length=0,Object.keys(rs).forEach(e=>{delete rs[e]})};Cr.clearCredentialCache=qJ;var II=(e,t,n)=>{let r=new e(t);return r.update(n),r.digest()}});var Ov=f(Sd=>{"use strict";Object.defineProperty(Sd,"__esModule",{value:!0});Sd.getCanonicalHeaders=void 0;var Pv=fi(),MJ=({headers:e},t,n)=>{let r={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in Pv.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||Pv.PROXY_HEADER_PATTERN.test(s)||Pv.SEC_HEADER_PATTERN.test(s))&&(!n||n&&!n.has(s))||(r[s]=e[i].trim().replace(/\s+/g," "))}return r};Sd.getCanonicalHeaders=MJ});var Lv=f(wd=>{"use strict";Object.defineProperty(wd,"__esModule",{value:!0});wd.escapeUri=void 0;var zJ=e=>encodeURIComponent(e).replace(/[!'()*]/g,jJ);wd.escapeUri=zJ;var jJ=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var RI=f(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.escapeUriPath=void 0;var kJ=Lv(),FJ=e=>e.split("/").map(kJ.escapeUri).join("/");bd.escapeUriPath=FJ});var qv=f(Ed=>{"use strict";Object.defineProperty(Ed,"__esModule",{value:!0});var DI=K();DI.__exportStar(Lv(),Ed);DI.__exportStar(RI(),Ed)});var Mv=f(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.getCanonicalQuery=void 0;var Ad=qv(),UJ=fi(),BJ=({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]=`${(0,Ad.escapeUri)(r)}=${(0,Ad.escapeUri)(i)}`:Array.isArray(i)&&(n[r]=i.slice(0).sort().reduce((s,o)=>s.concat([`${(0,Ad.escapeUri)(r)}=${(0,Ad.escapeUri)(o)}`]),[]).join("&"))}return t.map(r=>n[r]).filter(r=>r).join("&")};Td.getCanonicalQuery=BJ});var zv=f(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.isArrayBuffer=void 0;var GJ=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Cd.isArrayBuffer=GJ});var jv=f(xd=>{"use strict";Object.defineProperty(xd,"__esModule",{value:!0});xd.getPayloadHash=void 0;var $J=zv(),VJ=gd(),NI=fi(),KJ=async({headers:e,body:t},n)=>{for(let r of Object.keys(e))if(r.toLowerCase()===NI.SHA256_HEADER)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,$J.isArrayBuffer)(t)){let r=new n;return r.update(t),(0,VJ.toHex)(await r.digest())}return NI.UNSIGNED_PAYLOAD};xd.getPayloadHash=KJ});var PI=f(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.deleteHeader=xr.getHeaderValue=xr.hasHeader=void 0;var WJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1};xr.hasHeader=WJ;var HJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))if(e===n.toLowerCase())return t[n]};xr.getHeaderValue=HJ;var YJ=(e,t)=>{e=e.toLowerCase();for(let n of Object.keys(t))e===n.toLowerCase()&&delete t[n]};xr.deleteHeader=YJ});var kv=f(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.cloneQuery=mi.cloneRequest=void 0;var JJ=({headers:e,query:t,...n})=>({...n,headers:{...e},query:t?(0,mi.cloneQuery)(t):void 0});mi.cloneRequest=JJ;var QJ=e=>Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{});mi.cloneQuery=QJ});var Fv=f(Id=>{"use strict";Object.defineProperty(Id,"__esModule",{value:!0});Id.moveHeadersToQuery=void 0;var XJ=kv(),ZJ=(e,t={})=>{var n;let{headers:r,query:i={}}=typeof e.clone=="function"?e.clone():(0,XJ.cloneRequest)(e);for(let s of Object.keys(r)){let o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!(!((n=t.unhoistableHeaders)===null||n===void 0)&&n.has(o))&&(i[s]=r[s],delete r[s])}return{...e,headers:r,query:i}};Id.moveHeadersToQuery=ZJ});var Uv=f(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.prepareRequest=void 0;var e9=kv(),t9=fi(),n9=e=>{e=typeof e.clone=="function"?e.clone():(0,e9.cloneRequest)(e);for(let t of Object.keys(e.headers))t9.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Rd.prepareRequest=n9});var OI=f(pi=>{"use strict";Object.defineProperty(pi,"__esModule",{value:!0});pi.toDate=pi.iso8601=void 0;var r9=e=>(0,pi.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");pi.iso8601=r9;var i9=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;pi.toDate=i9});var jI=f(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.SignatureV4=void 0;var Dd=gd(),LI=Jo(),it=fi(),Nd=Nv(),qI=Ov(),s9=Mv(),Bv=jv(),o9=PI(),a9=Fv(),MI=Uv(),c9=OI(),Gv=class{constructor({applyChecksum:t,credentials:n,region:r,service:i,sha256:s,uriEscapePath:o=!0}){this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,LI.normalizeProvider)(r),this.credentialProvider=(0,LI.normalizeProvider)(n)}async presign(t,n={}){let{signingDate:r=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:c,signingService:u}=n,d=await this.credentialProvider(),h=c??await this.regionProvider(),{longDate:m,shortDate:y}=Pd(r);if(i>it.MAX_PRESIGNED_TTL)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let g=(0,Nd.createScope)(y,h,u??this.service),_=(0,a9.moveHeadersToQuery)((0,MI.prepareRequest)(t),{unhoistableHeaders:o});d.sessionToken&&(_.query[it.TOKEN_QUERY_PARAM]=d.sessionToken),_.query[it.ALGORITHM_QUERY_PARAM]=it.ALGORITHM_IDENTIFIER,_.query[it.CREDENTIAL_QUERY_PARAM]=`${d.accessKeyId}/${g}`,_.query[it.AMZ_DATE_QUERY_PARAM]=m,_.query[it.EXPIRES_QUERY_PARAM]=i.toString(10);let A=(0,qI.getCanonicalHeaders)(_,s,a);return _.query[it.SIGNED_HEADERS_QUERY_PARAM]=zI(A),_.query[it.SIGNATURE_QUERY_PARAM]=await this.getSignature(m,g,this.getSigningKey(d,h,y,u),this.createCanonicalRequest(_,A,await(0,Bv.getPayloadHash)(t,this.sha256))),_}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:o}){let a=s??await this.regionProvider(),{shortDate:c,longDate:u}=Pd(r),d=(0,Nd.createScope)(c,a,o??this.service),h=await(0,Bv.getPayloadHash)({headers:{},body:n},this.sha256),m=new this.sha256;m.update(t);let y=(0,Dd.toHex)(await m.digest()),g=[it.EVENT_ALGORITHM_IDENTIFIER,u,d,i,y,h].join(`
|
|
10
|
-
`);return this.signString(g,{signingDate:
|
|
9
|
+
More information can be found at: https://a.co/1l6FLnu`,"NodeDeprecationWarning"))};pd.emitWarningIfUnsupportedVersion=Y2});var $x=u(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});Ts.decorateServiceException=Ts.ServiceException=void 0;var Jo=class extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,Jo.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}};Ts.ServiceException=Jo;var Q2=(e,t={})=>{Object.entries(t).filter(([,n])=>n!==void 0).forEach(([n,i])=>{(e[n]==null||e[n]==="")&&(e[n]=i)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e};Ts.decorateServiceException=Q2});var Vx=u(_d=>{"use strict";Object.defineProperty(_d,"__esModule",{value:!0});_d.extendedEncodeURIComponent=void 0;function X2(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}_d.extendedEncodeURIComponent=X2});var Kx=u(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.getArrayIfSingleItem=void 0;var Z2=e=>Array.isArray(e)?e:[e];hd.getArrayIfSingleItem=Z2});var Hx=u(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.getValueFromTextNode=void 0;var eK=e=>{let t="#text";for(let r in e)e.hasOwnProperty(r)&&e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=(0,Yo.getValueFromTextNode)(e[r]));return e};Yo.getValueFromTextNode=eK});var Wx=u(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.LazyJsonString=wr.StringWrapper=void 0;var tK=function(){let e=Object.getPrototypeOf(this).constructor,t=Function.bind.apply(String,[null,...arguments]),r=new t;return Object.setPrototypeOf(r,e.prototype),r};wr.StringWrapper=tK;wr.StringWrapper.prototype=Object.create(String.prototype,{constructor:{value:wr.StringWrapper,enumerable:!1,writable:!0,configurable:!0}});Object.setPrototypeOf(wr.StringWrapper,String);var Ni=class extends wr.StringWrapper{deserializeJSON(){return JSON.parse(super.toString())}toJSON(){return super.toString()}static fromObject(t){return t instanceof Ni?t:t instanceof String||typeof t=="string"?new Ni(t):new Ni(JSON.stringify(t))}};wr.LazyJsonString=Ni});var Jx=u(yd=>{"use strict";Object.defineProperty(yd,"__esModule",{value:!0});yd.serializeFloat=void 0;var rK=e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}};yd.serializeFloat=rK});var Yx=u(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.splitEvery=void 0;function nK(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let n=e.split(t);if(r===1)return n;let i=[],s="";for(let o=0;o<n.length;o++)s===""?s=n[o]:s+=t+n[o],(o+1)%r===0&&(i.push(s),s="");return s!==""&&i.push(s),i}gd.splitEvery=nK});var N=u(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});var Tt=q();Tt.__exportStar(Mx(),mt);Tt.__exportStar(zx(),mt);Tt.__exportStar(jx(),mt);Tt.__exportStar(Fx(),mt);Tt.__exportStar(Ux(),mt);Tt.__exportStar(Gx(),mt);Tt.__exportStar($x(),mt);Tt.__exportStar(Vx(),mt);Tt.__exportStar(Kx(),mt);Tt.__exportStar(Hx(),mt);Tt.__exportStar(Wx(),mt);Tt.__exportStar(Yv(),mt);Tt.__exportStar(Jx(),mt);Tt.__exportStar(Yx(),mt)});var Sd=u(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.DynamoDBServiceException=void 0;var iK=N(),Qo=class extends iK.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Qo.prototype)}};vd.DynamoDBServiceException=Qo});var W=u(l=>{"use strict";Object.defineProperty(l,"__esModule",{value:!0});l.ProvisionedThroughputOverride=l.CreateGlobalTableInput=l.Replica=l.CreateGlobalSecondaryIndexAction=l.TableNotFoundException=l.TableInUseException=l.LimitExceededException=l.CreateBackupOutput=l.CreateBackupInput=l.ContributorInsightsSummary=l.ContinuousBackupsUnavailableException=l.ContinuousBackupsDescription=l.PointInTimeRecoveryDescription=l.ConditionalCheckFailedException=l.BillingModeSummary=l.ItemCollectionSizeLimitExceededException=l.ResourceNotFoundException=l.ProvisionedThroughputExceededException=l.InvalidEndpointException=l.RequestLimitExceeded=l.InternalServerError=l.BatchStatementError=l.BatchStatementErrorCodeEnum=l.ConsumedCapacity=l.Capacity=l.BackupTypeFilter=l.BackupSummary=l.BackupNotFoundException=l.BackupInUseException=l.BackupDescription=l.SourceTableFeatureDetails=l.TimeToLiveDescription=l.StreamSpecification=l.SSEDescription=l.LocalSecondaryIndexInfo=l.GlobalSecondaryIndexInfo=l.Projection=l.SourceTableDetails=l.ProvisionedThroughput=l.KeySchemaElement=l.BackupDetails=l.BackupType=l.AutoScalingSettingsUpdate=l.AutoScalingSettingsDescription=l.AutoScalingPolicyUpdate=l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate=l.AutoScalingPolicyDescription=l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription=l.AttributeDefinition=l.ArchivalSummary=void 0;l.DescribeGlobalTableSettingsInput=l.GlobalTableNotFoundException=l.DescribeGlobalTableOutput=l.DescribeGlobalTableInput=l.ExportNotFoundException=l.DescribeExportOutput=l.ExportDescription=l.ExportStatus=l.ExportFormat=l.DescribeExportInput=l.DescribeEndpointsResponse=l.Endpoint=l.DescribeEndpointsRequest=l.DescribeContributorInsightsOutput=l.FailureException=l.DescribeContributorInsightsInput=l.DescribeContinuousBackupsOutput=l.DescribeContinuousBackupsInput=l.DescribeBackupOutput=l.DescribeBackupInput=l.DeleteTableOutput=l.DeleteTableInput=l.DeleteReplicationGroupMemberAction=l.DeleteReplicaAction=l.TransactionConflictException=l.DeleteGlobalSecondaryIndexAction=l.DeleteBackupOutput=l.DeleteBackupInput=l.ResourceInUseException=l.CreateTableOutput=l.TableDescription=l.RestoreSummary=l.LocalSecondaryIndexDescription=l.GlobalSecondaryIndexDescription=l.ProvisionedThroughputDescription=l.CreateTableInput=l.Tag=l.SSESpecification=l.LocalSecondaryIndex=l.GlobalSecondaryIndex=l.CreateReplicationGroupMemberAction=l.ReplicaGlobalSecondaryIndex=l.CreateReplicaAction=l.GlobalTableAlreadyExistsException=l.CreateGlobalTableOutput=l.GlobalTableDescription=l.ReplicaDescription=l.TableClassSummary=l.TableClass=l.ReplicaGlobalSecondaryIndexDescription=void 0;l.PointInTimeRecoverySpecification=l.UntagResourceInput=l.TagResourceInput=l.RestoreTableToPointInTimeOutput=l.RestoreTableToPointInTimeInput=l.InvalidRestoreTimeException=l.TableAlreadyExistsException=l.RestoreTableFromBackupOutput=l.RestoreTableFromBackupInput=l.ListTagsOfResourceOutput=l.ListTagsOfResourceInput=l.ListTablesOutput=l.ListTablesInput=l.ListGlobalTablesOutput=l.GlobalTable=l.ListGlobalTablesInput=l.ListExportsOutput=l.ExportSummary=l.ListExportsInput=l.ListContributorInsightsOutput=l.ListContributorInsightsInput=l.ListBackupsOutput=l.ListBackupsInput=l.PointInTimeRecoveryUnavailableException=l.InvalidExportTimeException=l.ExportTableToPointInTimeOutput=l.ExportTableToPointInTimeInput=l.ExportConflictException=l.TransactionInProgressException=l.IdempotentParameterMismatchException=l.DuplicateItemException=l.KinesisStreamingDestinationOutput=l.KinesisStreamingDestinationInput=l.DescribeTimeToLiveOutput=l.DescribeTimeToLiveInput=l.DescribeTableReplicaAutoScalingOutput=l.TableAutoScalingDescription=l.ReplicaAutoScalingDescription=l.ReplicaGlobalSecondaryIndexAutoScalingDescription=l.DescribeTableReplicaAutoScalingInput=l.DescribeTableOutput=l.DescribeTableInput=l.DescribeLimitsOutput=l.DescribeLimitsInput=l.DescribeKinesisStreamingDestinationOutput=l.KinesisDataStreamDestination=l.DescribeKinesisStreamingDestinationInput=l.DescribeGlobalTableSettingsOutput=l.ReplicaSettingsDescription=l.ReplicaGlobalSecondaryIndexSettingsDescription=void 0;l.ExecuteTransactionOutput=l.ExecuteTransactionInput=l.BatchExecuteStatementOutput=l.BatchExecuteStatementInput=l.TransactGetItem=l.KeysAndAttributes=l.PutRequest=l.ParameterizedStatement=l.ItemResponse=l.ItemCollectionMetrics=l.GetItemOutput=l.GetItemInput=l.Get=l.ExecuteStatementInput=l.DeleteRequest=l.Condition=l.CancellationReason=l.BatchStatementResponse=l.BatchStatementRequest=l.AttributeValueUpdate=l.AttributeValue=l.UpdateTimeToLiveOutput=l.UpdateTimeToLiveInput=l.TimeToLiveSpecification=l.UpdateTableReplicaAutoScalingOutput=l.UpdateTableReplicaAutoScalingInput=l.ReplicaAutoScalingUpdate=l.ReplicaGlobalSecondaryIndexAutoScalingUpdate=l.GlobalSecondaryIndexAutoScalingUpdate=l.UpdateTableOutput=l.UpdateTableInput=l.ReplicationGroupUpdate=l.UpdateReplicationGroupMemberAction=l.GlobalSecondaryIndexUpdate=l.UpdateGlobalSecondaryIndexAction=l.UpdateGlobalTableSettingsOutput=l.UpdateGlobalTableSettingsInput=l.ReplicaSettingsUpdate=l.ReplicaGlobalSecondaryIndexSettingsUpdate=l.GlobalTableGlobalSecondaryIndexSettingsUpdate=l.IndexNotFoundException=l.UpdateGlobalTableOutput=l.UpdateGlobalTableInput=l.ReplicaUpdate=l.ReplicaNotFoundException=l.ReplicaAlreadyExistsException=l.UpdateContributorInsightsOutput=l.UpdateContributorInsightsInput=l.UpdateContinuousBackupsOutput=l.UpdateContinuousBackupsInput=void 0;l.TransactWriteItemsInput=l.TransactWriteItem=l.UpdateItemInput=l.BatchWriteItemOutput=l.QueryInput=l.PutItemInput=l.DeleteItemInput=l.BatchWriteItemInput=l.ScanInput=l.BatchGetItemOutput=l.WriteRequest=l.UpdateItemOutput=l.ScanOutput=l.QueryOutput=l.PutItemOutput=l.ExecuteStatementOutput=l.DeleteItemOutput=l.Update=l.Put=l.Delete=l.ConditionCheck=l.TransactWriteItemsOutput=l.TransactGetItemsInput=l.ExpectedAttributeValue=l.BatchGetItemInput=l.TransactionCanceledException=l.TransactGetItemsOutput=void 0;var Ee=Sd(),sK;(function(e){e.filterSensitiveLog=t=>({...t})})(sK=l.ArchivalSummary||(l.ArchivalSummary={}));var oK;(function(e){e.filterSensitiveLog=t=>({...t})})(oK=l.AttributeDefinition||(l.AttributeDefinition={}));var aK;(function(e){e.filterSensitiveLog=t=>({...t})})(aK=l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription||(l.AutoScalingTargetTrackingScalingPolicyConfigurationDescription={}));var cK;(function(e){e.filterSensitiveLog=t=>({...t})})(cK=l.AutoScalingPolicyDescription||(l.AutoScalingPolicyDescription={}));var lK;(function(e){e.filterSensitiveLog=t=>({...t})})(lK=l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate||(l.AutoScalingTargetTrackingScalingPolicyConfigurationUpdate={}));var dK;(function(e){e.filterSensitiveLog=t=>({...t})})(dK=l.AutoScalingPolicyUpdate||(l.AutoScalingPolicyUpdate={}));var uK;(function(e){e.filterSensitiveLog=t=>({...t})})(uK=l.AutoScalingSettingsDescription||(l.AutoScalingSettingsDescription={}));var fK;(function(e){e.filterSensitiveLog=t=>({...t})})(fK=l.AutoScalingSettingsUpdate||(l.AutoScalingSettingsUpdate={}));var mK;(function(e){e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(mK=l.BackupType||(l.BackupType={}));var pK;(function(e){e.filterSensitiveLog=t=>({...t})})(pK=l.BackupDetails||(l.BackupDetails={}));var _K;(function(e){e.filterSensitiveLog=t=>({...t})})(_K=l.KeySchemaElement||(l.KeySchemaElement={}));var hK;(function(e){e.filterSensitiveLog=t=>({...t})})(hK=l.ProvisionedThroughput||(l.ProvisionedThroughput={}));var yK;(function(e){e.filterSensitiveLog=t=>({...t})})(yK=l.SourceTableDetails||(l.SourceTableDetails={}));var gK;(function(e){e.filterSensitiveLog=t=>({...t})})(gK=l.Projection||(l.Projection={}));var vK;(function(e){e.filterSensitiveLog=t=>({...t})})(vK=l.GlobalSecondaryIndexInfo||(l.GlobalSecondaryIndexInfo={}));var SK;(function(e){e.filterSensitiveLog=t=>({...t})})(SK=l.LocalSecondaryIndexInfo||(l.LocalSecondaryIndexInfo={}));var wK;(function(e){e.filterSensitiveLog=t=>({...t})})(wK=l.SSEDescription||(l.SSEDescription={}));var EK;(function(e){e.filterSensitiveLog=t=>({...t})})(EK=l.StreamSpecification||(l.StreamSpecification={}));var bK;(function(e){e.filterSensitiveLog=t=>({...t})})(bK=l.TimeToLiveDescription||(l.TimeToLiveDescription={}));var AK;(function(e){e.filterSensitiveLog=t=>({...t})})(AK=l.SourceTableFeatureDetails||(l.SourceTableFeatureDetails={}));var TK;(function(e){e.filterSensitiveLog=t=>({...t})})(TK=l.BackupDescription||(l.BackupDescription={}));var Xo=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"BackupInUseException",$fault:"client",...t}),this.name="BackupInUseException",this.$fault="client",Object.setPrototypeOf(this,Xo.prototype)}};l.BackupInUseException=Xo;var Zo=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"BackupNotFoundException",$fault:"client",...t}),this.name="BackupNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Zo.prototype)}};l.BackupNotFoundException=Zo;var CK;(function(e){e.filterSensitiveLog=t=>({...t})})(CK=l.BackupSummary||(l.BackupSummary={}));var xK;(function(e){e.ALL="ALL",e.AWS_BACKUP="AWS_BACKUP",e.SYSTEM="SYSTEM",e.USER="USER"})(xK=l.BackupTypeFilter||(l.BackupTypeFilter={}));var IK;(function(e){e.filterSensitiveLog=t=>({...t})})(IK=l.Capacity||(l.Capacity={}));var RK;(function(e){e.filterSensitiveLog=t=>({...t})})(RK=l.ConsumedCapacity||(l.ConsumedCapacity={}));var NK;(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"})(NK=l.BatchStatementErrorCodeEnum||(l.BatchStatementErrorCodeEnum={}));var PK;(function(e){e.filterSensitiveLog=t=>({...t})})(PK=l.BatchStatementError||(l.BatchStatementError={}));var ea=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"InternalServerError",$fault:"server",...t}),this.name="InternalServerError",this.$fault="server",Object.setPrototypeOf(this,ea.prototype)}};l.InternalServerError=ea;var ta=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"RequestLimitExceeded",$fault:"client",...t}),this.name="RequestLimitExceeded",this.$fault="client",Object.setPrototypeOf(this,ta.prototype)}};l.RequestLimitExceeded=ta;var ra=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"InvalidEndpointException",$fault:"client",...t}),this.name="InvalidEndpointException",this.$fault="client",Object.setPrototypeOf(this,ra.prototype),this.Message=t.Message}};l.InvalidEndpointException=ra;var na=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ProvisionedThroughputExceededException",$fault:"client",...t}),this.name="ProvisionedThroughputExceededException",this.$fault="client",Object.setPrototypeOf(this,na.prototype)}};l.ProvisionedThroughputExceededException=na;var ia=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,ia.prototype)}};l.ResourceNotFoundException=ia;var sa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ItemCollectionSizeLimitExceededException",$fault:"client",...t}),this.name="ItemCollectionSizeLimitExceededException",this.$fault="client",Object.setPrototypeOf(this,sa.prototype)}};l.ItemCollectionSizeLimitExceededException=sa;var DK;(function(e){e.filterSensitiveLog=t=>({...t})})(DK=l.BillingModeSummary||(l.BillingModeSummary={}));var oa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ConditionalCheckFailedException",$fault:"client",...t}),this.name="ConditionalCheckFailedException",this.$fault="client",Object.setPrototypeOf(this,oa.prototype)}};l.ConditionalCheckFailedException=oa;var OK;(function(e){e.filterSensitiveLog=t=>({...t})})(OK=l.PointInTimeRecoveryDescription||(l.PointInTimeRecoveryDescription={}));var LK;(function(e){e.filterSensitiveLog=t=>({...t})})(LK=l.ContinuousBackupsDescription||(l.ContinuousBackupsDescription={}));var aa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ContinuousBackupsUnavailableException",$fault:"client",...t}),this.name="ContinuousBackupsUnavailableException",this.$fault="client",Object.setPrototypeOf(this,aa.prototype)}};l.ContinuousBackupsUnavailableException=aa;var qK;(function(e){e.filterSensitiveLog=t=>({...t})})(qK=l.ContributorInsightsSummary||(l.ContributorInsightsSummary={}));var MK;(function(e){e.filterSensitiveLog=t=>({...t})})(MK=l.CreateBackupInput||(l.CreateBackupInput={}));var zK;(function(e){e.filterSensitiveLog=t=>({...t})})(zK=l.CreateBackupOutput||(l.CreateBackupOutput={}));var ca=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"LimitExceededException",$fault:"client",...t}),this.name="LimitExceededException",this.$fault="client",Object.setPrototypeOf(this,ca.prototype)}};l.LimitExceededException=ca;var la=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"TableInUseException",$fault:"client",...t}),this.name="TableInUseException",this.$fault="client",Object.setPrototypeOf(this,la.prototype)}};l.TableInUseException=la;var da=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"TableNotFoundException",$fault:"client",...t}),this.name="TableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,da.prototype)}};l.TableNotFoundException=da;var jK;(function(e){e.filterSensitiveLog=t=>({...t})})(jK=l.CreateGlobalSecondaryIndexAction||(l.CreateGlobalSecondaryIndexAction={}));var kK;(function(e){e.filterSensitiveLog=t=>({...t})})(kK=l.Replica||(l.Replica={}));var FK;(function(e){e.filterSensitiveLog=t=>({...t})})(FK=l.CreateGlobalTableInput||(l.CreateGlobalTableInput={}));var UK;(function(e){e.filterSensitiveLog=t=>({...t})})(UK=l.ProvisionedThroughputOverride||(l.ProvisionedThroughputOverride={}));var BK;(function(e){e.filterSensitiveLog=t=>({...t})})(BK=l.ReplicaGlobalSecondaryIndexDescription||(l.ReplicaGlobalSecondaryIndexDescription={}));var GK;(function(e){e.STANDARD="STANDARD",e.STANDARD_INFREQUENT_ACCESS="STANDARD_INFREQUENT_ACCESS"})(GK=l.TableClass||(l.TableClass={}));var $K;(function(e){e.filterSensitiveLog=t=>({...t})})($K=l.TableClassSummary||(l.TableClassSummary={}));var VK;(function(e){e.filterSensitiveLog=t=>({...t})})(VK=l.ReplicaDescription||(l.ReplicaDescription={}));var KK;(function(e){e.filterSensitiveLog=t=>({...t})})(KK=l.GlobalTableDescription||(l.GlobalTableDescription={}));var HK;(function(e){e.filterSensitiveLog=t=>({...t})})(HK=l.CreateGlobalTableOutput||(l.CreateGlobalTableOutput={}));var ua=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"GlobalTableAlreadyExistsException",$fault:"client",...t}),this.name="GlobalTableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,ua.prototype)}};l.GlobalTableAlreadyExistsException=ua;var WK;(function(e){e.filterSensitiveLog=t=>({...t})})(WK=l.CreateReplicaAction||(l.CreateReplicaAction={}));var JK;(function(e){e.filterSensitiveLog=t=>({...t})})(JK=l.ReplicaGlobalSecondaryIndex||(l.ReplicaGlobalSecondaryIndex={}));var YK;(function(e){e.filterSensitiveLog=t=>({...t})})(YK=l.CreateReplicationGroupMemberAction||(l.CreateReplicationGroupMemberAction={}));var QK;(function(e){e.filterSensitiveLog=t=>({...t})})(QK=l.GlobalSecondaryIndex||(l.GlobalSecondaryIndex={}));var XK;(function(e){e.filterSensitiveLog=t=>({...t})})(XK=l.LocalSecondaryIndex||(l.LocalSecondaryIndex={}));var ZK;(function(e){e.filterSensitiveLog=t=>({...t})})(ZK=l.SSESpecification||(l.SSESpecification={}));var eH;(function(e){e.filterSensitiveLog=t=>({...t})})(eH=l.Tag||(l.Tag={}));var tH;(function(e){e.filterSensitiveLog=t=>({...t})})(tH=l.CreateTableInput||(l.CreateTableInput={}));var rH;(function(e){e.filterSensitiveLog=t=>({...t})})(rH=l.ProvisionedThroughputDescription||(l.ProvisionedThroughputDescription={}));var nH;(function(e){e.filterSensitiveLog=t=>({...t})})(nH=l.GlobalSecondaryIndexDescription||(l.GlobalSecondaryIndexDescription={}));var iH;(function(e){e.filterSensitiveLog=t=>({...t})})(iH=l.LocalSecondaryIndexDescription||(l.LocalSecondaryIndexDescription={}));var sH;(function(e){e.filterSensitiveLog=t=>({...t})})(sH=l.RestoreSummary||(l.RestoreSummary={}));var oH;(function(e){e.filterSensitiveLog=t=>({...t})})(oH=l.TableDescription||(l.TableDescription={}));var aH;(function(e){e.filterSensitiveLog=t=>({...t})})(aH=l.CreateTableOutput||(l.CreateTableOutput={}));var fa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ResourceInUseException",$fault:"client",...t}),this.name="ResourceInUseException",this.$fault="client",Object.setPrototypeOf(this,fa.prototype)}};l.ResourceInUseException=fa;var cH;(function(e){e.filterSensitiveLog=t=>({...t})})(cH=l.DeleteBackupInput||(l.DeleteBackupInput={}));var lH;(function(e){e.filterSensitiveLog=t=>({...t})})(lH=l.DeleteBackupOutput||(l.DeleteBackupOutput={}));var dH;(function(e){e.filterSensitiveLog=t=>({...t})})(dH=l.DeleteGlobalSecondaryIndexAction||(l.DeleteGlobalSecondaryIndexAction={}));var ma=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"TransactionConflictException",$fault:"client",...t}),this.name="TransactionConflictException",this.$fault="client",Object.setPrototypeOf(this,ma.prototype)}};l.TransactionConflictException=ma;var uH;(function(e){e.filterSensitiveLog=t=>({...t})})(uH=l.DeleteReplicaAction||(l.DeleteReplicaAction={}));var fH;(function(e){e.filterSensitiveLog=t=>({...t})})(fH=l.DeleteReplicationGroupMemberAction||(l.DeleteReplicationGroupMemberAction={}));var mH;(function(e){e.filterSensitiveLog=t=>({...t})})(mH=l.DeleteTableInput||(l.DeleteTableInput={}));var pH;(function(e){e.filterSensitiveLog=t=>({...t})})(pH=l.DeleteTableOutput||(l.DeleteTableOutput={}));var _H;(function(e){e.filterSensitiveLog=t=>({...t})})(_H=l.DescribeBackupInput||(l.DescribeBackupInput={}));var hH;(function(e){e.filterSensitiveLog=t=>({...t})})(hH=l.DescribeBackupOutput||(l.DescribeBackupOutput={}));var yH;(function(e){e.filterSensitiveLog=t=>({...t})})(yH=l.DescribeContinuousBackupsInput||(l.DescribeContinuousBackupsInput={}));var gH;(function(e){e.filterSensitiveLog=t=>({...t})})(gH=l.DescribeContinuousBackupsOutput||(l.DescribeContinuousBackupsOutput={}));var vH;(function(e){e.filterSensitiveLog=t=>({...t})})(vH=l.DescribeContributorInsightsInput||(l.DescribeContributorInsightsInput={}));var SH;(function(e){e.filterSensitiveLog=t=>({...t})})(SH=l.FailureException||(l.FailureException={}));var wH;(function(e){e.filterSensitiveLog=t=>({...t})})(wH=l.DescribeContributorInsightsOutput||(l.DescribeContributorInsightsOutput={}));var EH;(function(e){e.filterSensitiveLog=t=>({...t})})(EH=l.DescribeEndpointsRequest||(l.DescribeEndpointsRequest={}));var bH;(function(e){e.filterSensitiveLog=t=>({...t})})(bH=l.Endpoint||(l.Endpoint={}));var AH;(function(e){e.filterSensitiveLog=t=>({...t})})(AH=l.DescribeEndpointsResponse||(l.DescribeEndpointsResponse={}));var TH;(function(e){e.filterSensitiveLog=t=>({...t})})(TH=l.DescribeExportInput||(l.DescribeExportInput={}));var CH;(function(e){e.DYNAMODB_JSON="DYNAMODB_JSON",e.ION="ION"})(CH=l.ExportFormat||(l.ExportFormat={}));var xH;(function(e){e.COMPLETED="COMPLETED",e.FAILED="FAILED",e.IN_PROGRESS="IN_PROGRESS"})(xH=l.ExportStatus||(l.ExportStatus={}));var IH;(function(e){e.filterSensitiveLog=t=>({...t})})(IH=l.ExportDescription||(l.ExportDescription={}));var RH;(function(e){e.filterSensitiveLog=t=>({...t})})(RH=l.DescribeExportOutput||(l.DescribeExportOutput={}));var pa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ExportNotFoundException",$fault:"client",...t}),this.name="ExportNotFoundException",this.$fault="client",Object.setPrototypeOf(this,pa.prototype)}};l.ExportNotFoundException=pa;var NH;(function(e){e.filterSensitiveLog=t=>({...t})})(NH=l.DescribeGlobalTableInput||(l.DescribeGlobalTableInput={}));var PH;(function(e){e.filterSensitiveLog=t=>({...t})})(PH=l.DescribeGlobalTableOutput||(l.DescribeGlobalTableOutput={}));var _a=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"GlobalTableNotFoundException",$fault:"client",...t}),this.name="GlobalTableNotFoundException",this.$fault="client",Object.setPrototypeOf(this,_a.prototype)}};l.GlobalTableNotFoundException=_a;var DH;(function(e){e.filterSensitiveLog=t=>({...t})})(DH=l.DescribeGlobalTableSettingsInput||(l.DescribeGlobalTableSettingsInput={}));var OH;(function(e){e.filterSensitiveLog=t=>({...t})})(OH=l.ReplicaGlobalSecondaryIndexSettingsDescription||(l.ReplicaGlobalSecondaryIndexSettingsDescription={}));var LH;(function(e){e.filterSensitiveLog=t=>({...t})})(LH=l.ReplicaSettingsDescription||(l.ReplicaSettingsDescription={}));var qH;(function(e){e.filterSensitiveLog=t=>({...t})})(qH=l.DescribeGlobalTableSettingsOutput||(l.DescribeGlobalTableSettingsOutput={}));var MH;(function(e){e.filterSensitiveLog=t=>({...t})})(MH=l.DescribeKinesisStreamingDestinationInput||(l.DescribeKinesisStreamingDestinationInput={}));var zH;(function(e){e.filterSensitiveLog=t=>({...t})})(zH=l.KinesisDataStreamDestination||(l.KinesisDataStreamDestination={}));var jH;(function(e){e.filterSensitiveLog=t=>({...t})})(jH=l.DescribeKinesisStreamingDestinationOutput||(l.DescribeKinesisStreamingDestinationOutput={}));var kH;(function(e){e.filterSensitiveLog=t=>({...t})})(kH=l.DescribeLimitsInput||(l.DescribeLimitsInput={}));var FH;(function(e){e.filterSensitiveLog=t=>({...t})})(FH=l.DescribeLimitsOutput||(l.DescribeLimitsOutput={}));var UH;(function(e){e.filterSensitiveLog=t=>({...t})})(UH=l.DescribeTableInput||(l.DescribeTableInput={}));var BH;(function(e){e.filterSensitiveLog=t=>({...t})})(BH=l.DescribeTableOutput||(l.DescribeTableOutput={}));var GH;(function(e){e.filterSensitiveLog=t=>({...t})})(GH=l.DescribeTableReplicaAutoScalingInput||(l.DescribeTableReplicaAutoScalingInput={}));var $H;(function(e){e.filterSensitiveLog=t=>({...t})})($H=l.ReplicaGlobalSecondaryIndexAutoScalingDescription||(l.ReplicaGlobalSecondaryIndexAutoScalingDescription={}));var VH;(function(e){e.filterSensitiveLog=t=>({...t})})(VH=l.ReplicaAutoScalingDescription||(l.ReplicaAutoScalingDescription={}));var KH;(function(e){e.filterSensitiveLog=t=>({...t})})(KH=l.TableAutoScalingDescription||(l.TableAutoScalingDescription={}));var HH;(function(e){e.filterSensitiveLog=t=>({...t})})(HH=l.DescribeTableReplicaAutoScalingOutput||(l.DescribeTableReplicaAutoScalingOutput={}));var WH;(function(e){e.filterSensitiveLog=t=>({...t})})(WH=l.DescribeTimeToLiveInput||(l.DescribeTimeToLiveInput={}));var JH;(function(e){e.filterSensitiveLog=t=>({...t})})(JH=l.DescribeTimeToLiveOutput||(l.DescribeTimeToLiveOutput={}));var YH;(function(e){e.filterSensitiveLog=t=>({...t})})(YH=l.KinesisStreamingDestinationInput||(l.KinesisStreamingDestinationInput={}));var QH;(function(e){e.filterSensitiveLog=t=>({...t})})(QH=l.KinesisStreamingDestinationOutput||(l.KinesisStreamingDestinationOutput={}));var ha=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"DuplicateItemException",$fault:"client",...t}),this.name="DuplicateItemException",this.$fault="client",Object.setPrototypeOf(this,ha.prototype)}};l.DuplicateItemException=ha;var ya=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"IdempotentParameterMismatchException",$fault:"client",...t}),this.name="IdempotentParameterMismatchException",this.$fault="client",Object.setPrototypeOf(this,ya.prototype),this.Message=t.Message}};l.IdempotentParameterMismatchException=ya;var ga=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"TransactionInProgressException",$fault:"client",...t}),this.name="TransactionInProgressException",this.$fault="client",Object.setPrototypeOf(this,ga.prototype),this.Message=t.Message}};l.TransactionInProgressException=ga;var va=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ExportConflictException",$fault:"client",...t}),this.name="ExportConflictException",this.$fault="client",Object.setPrototypeOf(this,va.prototype)}};l.ExportConflictException=va;var XH;(function(e){e.filterSensitiveLog=t=>({...t})})(XH=l.ExportTableToPointInTimeInput||(l.ExportTableToPointInTimeInput={}));var ZH;(function(e){e.filterSensitiveLog=t=>({...t})})(ZH=l.ExportTableToPointInTimeOutput||(l.ExportTableToPointInTimeOutput={}));var Sa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"InvalidExportTimeException",$fault:"client",...t}),this.name="InvalidExportTimeException",this.$fault="client",Object.setPrototypeOf(this,Sa.prototype)}};l.InvalidExportTimeException=Sa;var wa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"PointInTimeRecoveryUnavailableException",$fault:"client",...t}),this.name="PointInTimeRecoveryUnavailableException",this.$fault="client",Object.setPrototypeOf(this,wa.prototype)}};l.PointInTimeRecoveryUnavailableException=wa;var e3;(function(e){e.filterSensitiveLog=t=>({...t})})(e3=l.ListBackupsInput||(l.ListBackupsInput={}));var t3;(function(e){e.filterSensitiveLog=t=>({...t})})(t3=l.ListBackupsOutput||(l.ListBackupsOutput={}));var r3;(function(e){e.filterSensitiveLog=t=>({...t})})(r3=l.ListContributorInsightsInput||(l.ListContributorInsightsInput={}));var n3;(function(e){e.filterSensitiveLog=t=>({...t})})(n3=l.ListContributorInsightsOutput||(l.ListContributorInsightsOutput={}));var i3;(function(e){e.filterSensitiveLog=t=>({...t})})(i3=l.ListExportsInput||(l.ListExportsInput={}));var s3;(function(e){e.filterSensitiveLog=t=>({...t})})(s3=l.ExportSummary||(l.ExportSummary={}));var o3;(function(e){e.filterSensitiveLog=t=>({...t})})(o3=l.ListExportsOutput||(l.ListExportsOutput={}));var a3;(function(e){e.filterSensitiveLog=t=>({...t})})(a3=l.ListGlobalTablesInput||(l.ListGlobalTablesInput={}));var c3;(function(e){e.filterSensitiveLog=t=>({...t})})(c3=l.GlobalTable||(l.GlobalTable={}));var l3;(function(e){e.filterSensitiveLog=t=>({...t})})(l3=l.ListGlobalTablesOutput||(l.ListGlobalTablesOutput={}));var d3;(function(e){e.filterSensitiveLog=t=>({...t})})(d3=l.ListTablesInput||(l.ListTablesInput={}));var u3;(function(e){e.filterSensitiveLog=t=>({...t})})(u3=l.ListTablesOutput||(l.ListTablesOutput={}));var f3;(function(e){e.filterSensitiveLog=t=>({...t})})(f3=l.ListTagsOfResourceInput||(l.ListTagsOfResourceInput={}));var m3;(function(e){e.filterSensitiveLog=t=>({...t})})(m3=l.ListTagsOfResourceOutput||(l.ListTagsOfResourceOutput={}));var p3;(function(e){e.filterSensitiveLog=t=>({...t})})(p3=l.RestoreTableFromBackupInput||(l.RestoreTableFromBackupInput={}));var _3;(function(e){e.filterSensitiveLog=t=>({...t})})(_3=l.RestoreTableFromBackupOutput||(l.RestoreTableFromBackupOutput={}));var Ea=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"TableAlreadyExistsException",$fault:"client",...t}),this.name="TableAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Ea.prototype)}};l.TableAlreadyExistsException=Ea;var ba=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"InvalidRestoreTimeException",$fault:"client",...t}),this.name="InvalidRestoreTimeException",this.$fault="client",Object.setPrototypeOf(this,ba.prototype)}};l.InvalidRestoreTimeException=ba;var h3;(function(e){e.filterSensitiveLog=t=>({...t})})(h3=l.RestoreTableToPointInTimeInput||(l.RestoreTableToPointInTimeInput={}));var y3;(function(e){e.filterSensitiveLog=t=>({...t})})(y3=l.RestoreTableToPointInTimeOutput||(l.RestoreTableToPointInTimeOutput={}));var g3;(function(e){e.filterSensitiveLog=t=>({...t})})(g3=l.TagResourceInput||(l.TagResourceInput={}));var v3;(function(e){e.filterSensitiveLog=t=>({...t})})(v3=l.UntagResourceInput||(l.UntagResourceInput={}));var S3;(function(e){e.filterSensitiveLog=t=>({...t})})(S3=l.PointInTimeRecoverySpecification||(l.PointInTimeRecoverySpecification={}));var w3;(function(e){e.filterSensitiveLog=t=>({...t})})(w3=l.UpdateContinuousBackupsInput||(l.UpdateContinuousBackupsInput={}));var E3;(function(e){e.filterSensitiveLog=t=>({...t})})(E3=l.UpdateContinuousBackupsOutput||(l.UpdateContinuousBackupsOutput={}));var b3;(function(e){e.filterSensitiveLog=t=>({...t})})(b3=l.UpdateContributorInsightsInput||(l.UpdateContributorInsightsInput={}));var A3;(function(e){e.filterSensitiveLog=t=>({...t})})(A3=l.UpdateContributorInsightsOutput||(l.UpdateContributorInsightsOutput={}));var Aa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ReplicaAlreadyExistsException",$fault:"client",...t}),this.name="ReplicaAlreadyExistsException",this.$fault="client",Object.setPrototypeOf(this,Aa.prototype)}};l.ReplicaAlreadyExistsException=Aa;var Ta=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"ReplicaNotFoundException",$fault:"client",...t}),this.name="ReplicaNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ta.prototype)}};l.ReplicaNotFoundException=Ta;var T3;(function(e){e.filterSensitiveLog=t=>({...t})})(T3=l.ReplicaUpdate||(l.ReplicaUpdate={}));var C3;(function(e){e.filterSensitiveLog=t=>({...t})})(C3=l.UpdateGlobalTableInput||(l.UpdateGlobalTableInput={}));var x3;(function(e){e.filterSensitiveLog=t=>({...t})})(x3=l.UpdateGlobalTableOutput||(l.UpdateGlobalTableOutput={}));var Ca=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"IndexNotFoundException",$fault:"client",...t}),this.name="IndexNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ca.prototype)}};l.IndexNotFoundException=Ca;var I3;(function(e){e.filterSensitiveLog=t=>({...t})})(I3=l.GlobalTableGlobalSecondaryIndexSettingsUpdate||(l.GlobalTableGlobalSecondaryIndexSettingsUpdate={}));var R3;(function(e){e.filterSensitiveLog=t=>({...t})})(R3=l.ReplicaGlobalSecondaryIndexSettingsUpdate||(l.ReplicaGlobalSecondaryIndexSettingsUpdate={}));var N3;(function(e){e.filterSensitiveLog=t=>({...t})})(N3=l.ReplicaSettingsUpdate||(l.ReplicaSettingsUpdate={}));var P3;(function(e){e.filterSensitiveLog=t=>({...t})})(P3=l.UpdateGlobalTableSettingsInput||(l.UpdateGlobalTableSettingsInput={}));var D3;(function(e){e.filterSensitiveLog=t=>({...t})})(D3=l.UpdateGlobalTableSettingsOutput||(l.UpdateGlobalTableSettingsOutput={}));var O3;(function(e){e.filterSensitiveLog=t=>({...t})})(O3=l.UpdateGlobalSecondaryIndexAction||(l.UpdateGlobalSecondaryIndexAction={}));var L3;(function(e){e.filterSensitiveLog=t=>({...t})})(L3=l.GlobalSecondaryIndexUpdate||(l.GlobalSecondaryIndexUpdate={}));var q3;(function(e){e.filterSensitiveLog=t=>({...t})})(q3=l.UpdateReplicationGroupMemberAction||(l.UpdateReplicationGroupMemberAction={}));var M3;(function(e){e.filterSensitiveLog=t=>({...t})})(M3=l.ReplicationGroupUpdate||(l.ReplicationGroupUpdate={}));var z3;(function(e){e.filterSensitiveLog=t=>({...t})})(z3=l.UpdateTableInput||(l.UpdateTableInput={}));var j3;(function(e){e.filterSensitiveLog=t=>({...t})})(j3=l.UpdateTableOutput||(l.UpdateTableOutput={}));var k3;(function(e){e.filterSensitiveLog=t=>({...t})})(k3=l.GlobalSecondaryIndexAutoScalingUpdate||(l.GlobalSecondaryIndexAutoScalingUpdate={}));var F3;(function(e){e.filterSensitiveLog=t=>({...t})})(F3=l.ReplicaGlobalSecondaryIndexAutoScalingUpdate||(l.ReplicaGlobalSecondaryIndexAutoScalingUpdate={}));var U3;(function(e){e.filterSensitiveLog=t=>({...t})})(U3=l.ReplicaAutoScalingUpdate||(l.ReplicaAutoScalingUpdate={}));var B3;(function(e){e.filterSensitiveLog=t=>({...t})})(B3=l.UpdateTableReplicaAutoScalingInput||(l.UpdateTableReplicaAutoScalingInput={}));var G3;(function(e){e.filterSensitiveLog=t=>({...t})})(G3=l.UpdateTableReplicaAutoScalingOutput||(l.UpdateTableReplicaAutoScalingOutput={}));var $3;(function(e){e.filterSensitiveLog=t=>({...t})})($3=l.TimeToLiveSpecification||(l.TimeToLiveSpecification={}));var V3;(function(e){e.filterSensitiveLog=t=>({...t})})(V3=l.UpdateTimeToLiveInput||(l.UpdateTimeToLiveInput={}));var K3;(function(e){e.filterSensitiveLog=t=>({...t})})(K3=l.UpdateTimeToLiveOutput||(l.UpdateTimeToLiveOutput={}));var se;(function(e){e.visit=(t,r)=>t.S!==void 0?r.S(t.S):t.N!==void 0?r.N(t.N):t.B!==void 0?r.B(t.B):t.SS!==void 0?r.SS(t.SS):t.NS!==void 0?r.NS(t.NS):t.BS!==void 0?r.BS(t.BS):t.M!==void 0?r.M(t.M):t.L!==void 0?r.L(t.L):t.NULL!==void 0?r.NULL(t.NULL):t.BOOL!==void 0?r.BOOL(t.BOOL):r._(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((r,[n,i])=>({...r,[n]:e.filterSensitiveLog(i)}),{})};if(t.L!==void 0)return{L:t.L.map(r=>e.filterSensitiveLog(r))};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"}}})(se=l.AttributeValue||(l.AttributeValue={}));var Qx;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:se.filterSensitiveLog(t.Value)}})})(Qx=l.AttributeValueUpdate||(l.AttributeValueUpdate={}));var Xx;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>se.filterSensitiveLog(r))}})})(Xx=l.BatchStatementRequest||(l.BatchStatementRequest={}));var Zx;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(Zx=l.BatchStatementResponse||(l.BatchStatementResponse={}));var H3;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(H3=l.CancellationReason||(l.CancellationReason={}));var wd;(function(e){e.filterSensitiveLog=t=>({...t,...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>se.filterSensitiveLog(r))}})})(wd=l.Condition||(l.Condition={}));var eI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(eI=l.DeleteRequest||(l.DeleteRequest={}));var W3;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>se.filterSensitiveLog(r))}})})(W3=l.ExecuteStatementInput||(l.ExecuteStatementInput={}));var tI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(tI=l.Get||(l.Get={}));var J3;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(J3=l.GetItemInput||(l.GetItemInput={}));var Y3;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(Y3=l.GetItemOutput||(l.GetItemOutput={}));var Cs;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionKey&&{ItemCollectionKey:Object.entries(t.ItemCollectionKey).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(Cs=l.ItemCollectionMetrics||(l.ItemCollectionMetrics={}));var Zv;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(Zv=l.ItemResponse||(l.ItemResponse={}));var rI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Parameters&&{Parameters:t.Parameters.map(r=>se.filterSensitiveLog(r))}})})(rI=l.ParameterizedStatement||(l.ParameterizedStatement={}));var nI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(nI=l.PutRequest||(l.PutRequest={}));var eS;(function(e){e.filterSensitiveLog=t=>({...t,...t.Keys&&{Keys:t.Keys.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:se.filterSensitiveLog(s)}),{}))}})})(eS=l.KeysAndAttributes||(l.KeysAndAttributes={}));var iI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Get&&{Get:tI.filterSensitiveLog(t.Get)}})})(iI=l.TransactGetItem||(l.TransactGetItem={}));var Q3;(function(e){e.filterSensitiveLog=t=>({...t,...t.Statements&&{Statements:t.Statements.map(r=>Xx.filterSensitiveLog(r))}})})(Q3=l.BatchExecuteStatementInput||(l.BatchExecuteStatementInput={}));var X3;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>Zx.filterSensitiveLog(r))}})})(X3=l.BatchExecuteStatementOutput||(l.BatchExecuteStatementOutput={}));var Z3;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactStatements&&{TransactStatements:t.TransactStatements.map(r=>rI.filterSensitiveLog(r))}})})(Z3=l.ExecuteTransactionInput||(l.ExecuteTransactionInput={}));var eW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>Zv.filterSensitiveLog(r))}})})(eW=l.ExecuteTransactionOutput||(l.ExecuteTransactionOutput={}));var tW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:t.Responses.map(r=>Zv.filterSensitiveLog(r))}})})(tW=l.TransactGetItemsOutput||(l.TransactGetItemsOutput={}));var xa=class extends Ee.DynamoDBServiceException{constructor(t){super({name:"TransactionCanceledException",$fault:"client",...t}),this.name="TransactionCanceledException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype),this.Message=t.Message,this.CancellationReasons=t.CancellationReasons}};l.TransactionCanceledException=xa;var rW;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>({...r,[n]:eS.filterSensitiveLog(i)}),{})}})})(rW=l.BatchGetItemInput||(l.BatchGetItemInput={}));var Ed;(function(e){e.filterSensitiveLog=t=>({...t,...t.Value&&{Value:se.filterSensitiveLog(t.Value)},...t.AttributeValueList&&{AttributeValueList:t.AttributeValueList.map(r=>se.filterSensitiveLog(r))}})})(Ed=l.ExpectedAttributeValue||(l.ExpectedAttributeValue={}));var nW;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(r=>iI.filterSensitiveLog(r))}})})(nW=l.TransactGetItemsInput||(l.TransactGetItemsInput={}));var iW;(function(e){e.filterSensitiveLog=t=>({...t,...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Cs.filterSensitiveLog(s))}),{})}})})(iW=l.TransactWriteItemsOutput||(l.TransactWriteItemsOutput={}));var sI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(sI=l.ConditionCheck||(l.ConditionCheck={}));var oI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(oI=l.Delete||(l.Delete={}));var aI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(aI=l.Put||(l.Put={}));var cI;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(cI=l.Update||(l.Update={}));var sW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Cs.filterSensitiveLog(t.ItemCollectionMetrics)}})})(sW=l.DeleteItemOutput||(l.DeleteItemOutput={}));var oW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(oW=l.ExecuteStatementOutput||(l.ExecuteStatementOutput={}));var aW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Cs.filterSensitiveLog(t.ItemCollectionMetrics)}})})(aW=l.PutItemOutput||(l.PutItemOutput={}));var cW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(cW=l.QueryOutput||(l.QueryOutput={}));var lW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Items&&{Items:t.Items.map(r=>Object.entries(r).reduce((n,[i,s])=>({...n,[i]:se.filterSensitiveLog(s)}),{}))},...t.LastEvaluatedKey&&{LastEvaluatedKey:Object.entries(t.LastEvaluatedKey).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(lW=l.ScanOutput||(l.ScanOutput={}));var dW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Attributes&&{Attributes:Object.entries(t.Attributes).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Cs.filterSensitiveLog(t.ItemCollectionMetrics)}})})(dW=l.UpdateItemOutput||(l.UpdateItemOutput={}));var tS;(function(e){e.filterSensitiveLog=t=>({...t,...t.PutRequest&&{PutRequest:nI.filterSensitiveLog(t.PutRequest)},...t.DeleteRequest&&{DeleteRequest:eI.filterSensitiveLog(t.DeleteRequest)}})})(tS=l.WriteRequest||(l.WriteRequest={}));var uW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Responses&&{Responses:Object.entries(t.Responses).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Object.entries(s).reduce((o,[a,c])=>({...o,[a]:se.filterSensitiveLog(c)}),{}))}),{})},...t.UnprocessedKeys&&{UnprocessedKeys:Object.entries(t.UnprocessedKeys).reduce((r,[n,i])=>({...r,[n]:eS.filterSensitiveLog(i)}),{})}})})(uW=l.BatchGetItemOutput||(l.BatchGetItemOutput={}));var fW;(function(e){e.filterSensitiveLog=t=>({...t,...t.ScanFilter&&{ScanFilter:Object.entries(t.ScanFilter).reduce((r,[n,i])=>({...r,[n]:wd.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(fW=l.ScanInput||(l.ScanInput={}));var mW;(function(e){e.filterSensitiveLog=t=>({...t,...t.RequestItems&&{RequestItems:Object.entries(t.RequestItems).reduce((r,[n,i])=>({...r,[n]:i.map(s=>tS.filterSensitiveLog(s))}),{})}})})(mW=l.BatchWriteItemInput||(l.BatchWriteItemInput={}));var pW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:Ed.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(pW=l.DeleteItemInput||(l.DeleteItemInput={}));var _W;(function(e){e.filterSensitiveLog=t=>({...t,...t.Item&&{Item:Object.entries(t.Item).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:Ed.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(_W=l.PutItemInput||(l.PutItemInput={}));var hW;(function(e){e.filterSensitiveLog=t=>({...t,...t.KeyConditions&&{KeyConditions:Object.entries(t.KeyConditions).reduce((r,[n,i])=>({...r,[n]:wd.filterSensitiveLog(i)}),{})},...t.QueryFilter&&{QueryFilter:Object.entries(t.QueryFilter).reduce((r,[n,i])=>({...r,[n]:wd.filterSensitiveLog(i)}),{})},...t.ExclusiveStartKey&&{ExclusiveStartKey:Object.entries(t.ExclusiveStartKey).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(hW=l.QueryInput||(l.QueryInput={}));var yW;(function(e){e.filterSensitiveLog=t=>({...t,...t.UnprocessedItems&&{UnprocessedItems:Object.entries(t.UnprocessedItems).reduce((r,[n,i])=>({...r,[n]:i.map(s=>tS.filterSensitiveLog(s))}),{})},...t.ItemCollectionMetrics&&{ItemCollectionMetrics:Object.entries(t.ItemCollectionMetrics).reduce((r,[n,i])=>({...r,[n]:i.map(s=>Cs.filterSensitiveLog(s))}),{})}})})(yW=l.BatchWriteItemOutput||(l.BatchWriteItemOutput={}));var gW;(function(e){e.filterSensitiveLog=t=>({...t,...t.Key&&{Key:Object.entries(t.Key).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})},...t.AttributeUpdates&&{AttributeUpdates:Object.entries(t.AttributeUpdates).reduce((r,[n,i])=>({...r,[n]:Qx.filterSensitiveLog(i)}),{})},...t.Expected&&{Expected:Object.entries(t.Expected).reduce((r,[n,i])=>({...r,[n]:Ed.filterSensitiveLog(i)}),{})},...t.ExpressionAttributeValues&&{ExpressionAttributeValues:Object.entries(t.ExpressionAttributeValues).reduce((r,[n,i])=>({...r,[n]:se.filterSensitiveLog(i)}),{})}})})(gW=l.UpdateItemInput||(l.UpdateItemInput={}));var lI;(function(e){e.filterSensitiveLog=t=>({...t,...t.ConditionCheck&&{ConditionCheck:sI.filterSensitiveLog(t.ConditionCheck)},...t.Put&&{Put:aI.filterSensitiveLog(t.Put)},...t.Delete&&{Delete:oI.filterSensitiveLog(t.Delete)},...t.Update&&{Update:cI.filterSensitiveLog(t.Update)}})})(lI=l.TransactWriteItem||(l.TransactWriteItem={}));var vW;(function(e){e.filterSensitiveLog=t=>({...t,...t.TransactItems&&{TransactItems:t.TransactItems.map(r=>lI.filterSensitiveLog(r))}})})(vW=l.TransactWriteItemsInput||(l.TransactWriteItemsInput={}))});var uI=u(dI=>{"use strict";Object.defineProperty(dI,"__esModule",{value:!0})});var fI=u(bd=>{"use strict";Object.defineProperty(bd,"__esModule",{value:!0});bd.HttpRequest=void 0;var Ia=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.slice(-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 r=t;return"method"in r&&"protocol"in r&&"hostname"in r&&"path"in r&&typeof r.query=="object"&&typeof r.headers=="object"}clone(){let t=new Ia({...this,headers:{...this.headers}});return t.query&&(t.query=SW(t.query)),t}};bd.HttpRequest=Ia;function SW(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}});var mI=u(Ad=>{"use strict";Object.defineProperty(Ad,"__esModule",{value:!0});Ad.HttpResponse=void 0;var rS=class{constructor(t){this.statusCode=t.statusCode,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;let r=t;return typeof r.statusCode=="number"&&typeof r.headers=="object"}};Ad.HttpResponse=rS});var pI=u(Td=>{"use strict";Object.defineProperty(Td,"__esModule",{value:!0});Td.isValidHostname=void 0;function wW(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}Td.isValidHostname=wW});var Ct=u(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});var Cd=q();Cd.__exportStar(uI(),xs);Cd.__exportStar(fI(),xs);Cd.__exportStar(mI(),xs);Cd.__exportStar(pI(),xs)});var iS=u(nS=>{"use strict";Object.defineProperty(nS,"__esModule",{value:!0});nS.default=AW;var EW=bW(require("crypto"));function bW(e){return e&&e.__esModule?e:{default:e}}var Id=new Uint8Array(256),xd=Id.length;function AW(){return xd>Id.length-16&&(EW.default.randomFillSync(Id),xd=0),Id.slice(xd,xd+=16)}});var _I=u(Rd=>{"use strict";Object.defineProperty(Rd,"__esModule",{value:!0});Rd.default=void 0;var TW=/^(?:[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;Rd.default=TW});var Ra=u(Nd=>{"use strict";Object.defineProperty(Nd,"__esModule",{value:!0});Nd.default=void 0;var CW=xW(_I());function xW(e){return e&&e.__esModule?e:{default:e}}function IW(e){return typeof e=="string"&&CW.default.test(e)}var RW=IW;Nd.default=RW});var Na=u(Pd=>{"use strict";Object.defineProperty(Pd,"__esModule",{value:!0});Pd.default=void 0;var NW=PW(Ra());function PW(e){return e&&e.__esModule?e:{default:e}}var at=[];for(let e=0;e<256;++e)at.push((e+256).toString(16).substr(1));function DW(e,t=0){let r=(at[e[t+0]]+at[e[t+1]]+at[e[t+2]]+at[e[t+3]]+"-"+at[e[t+4]]+at[e[t+5]]+"-"+at[e[t+6]]+at[e[t+7]]+"-"+at[e[t+8]]+at[e[t+9]]+"-"+at[e[t+10]]+at[e[t+11]]+at[e[t+12]]+at[e[t+13]]+at[e[t+14]]+at[e[t+15]]).toLowerCase();if(!(0,NW.default)(r))throw TypeError("Stringified UUID is invalid");return r}var OW=DW;Pd.default=OW});var gI=u(Dd=>{"use strict";Object.defineProperty(Dd,"__esModule",{value:!0});Dd.default=void 0;var LW=yI(iS()),qW=yI(Na());function yI(e){return e&&e.__esModule?e:{default:e}}var hI,sS,oS=0,aS=0;function MW(e,t,r){let n=t&&r||0,i=t||new Array(16);e=e||{};let s=e.node||hI,o=e.clockseq!==void 0?e.clockseq:sS;if(s==null||o==null){let m=e.random||(e.rng||LW.default)();s==null&&(s=hI=[m[0]|1,m[1],m[2],m[3],m[4],m[5]]),o==null&&(o=sS=(m[6]<<8|m[7])&16383)}let a=e.msecs!==void 0?e.msecs:Date.now(),c=e.nsecs!==void 0?e.nsecs:aS+1,d=a-oS+(c-aS)/1e4;if(d<0&&e.clockseq===void 0&&(o=o+1&16383),(d<0||a>oS)&&e.nsecs===void 0&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");oS=a,aS=c,sS=o,a+=122192928e5;let f=((a&268435455)*1e4+c)%4294967296;i[n++]=f>>>24&255,i[n++]=f>>>16&255,i[n++]=f>>>8&255,i[n++]=f&255;let _=a/4294967296*1e4&268435455;i[n++]=_>>>8&255,i[n++]=_&255,i[n++]=_>>>24&15|16,i[n++]=_>>>16&255,i[n++]=o>>>8|128,i[n++]=o&255;for(let m=0;m<6;++m)i[n+m]=s[m];return t||(0,qW.default)(i)}var zW=MW;Dd.default=zW});var cS=u(Od=>{"use strict";Object.defineProperty(Od,"__esModule",{value:!0});Od.default=void 0;var jW=kW(Ra());function kW(e){return e&&e.__esModule?e:{default:e}}function FW(e){if(!(0,jW.default)(e))throw TypeError("Invalid UUID");let t,r=new Uint8Array(16);return r[0]=(t=parseInt(e.slice(0,8),16))>>>24,r[1]=t>>>16&255,r[2]=t>>>8&255,r[3]=t&255,r[4]=(t=parseInt(e.slice(9,13),16))>>>8,r[5]=t&255,r[6]=(t=parseInt(e.slice(14,18),16))>>>8,r[7]=t&255,r[8]=(t=parseInt(e.slice(19,23),16))>>>8,r[9]=t&255,r[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,r[11]=t/4294967296&255,r[12]=t>>>24&255,r[13]=t>>>16&255,r[14]=t>>>8&255,r[15]=t&255,r}var UW=FW;Od.default=UW});var lS=u(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});Pi.default=VW;Pi.URL=Pi.DNS=void 0;var BW=vI(Na()),GW=vI(cS());function vI(e){return e&&e.__esModule?e:{default:e}}function $W(e){e=unescape(encodeURIComponent(e));let t=[];for(let r=0;r<e.length;++r)t.push(e.charCodeAt(r));return t}var SI="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Pi.DNS=SI;var wI="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Pi.URL=wI;function VW(e,t,r){function n(i,s,o,a){if(typeof i=="string"&&(i=$W(i)),typeof s=="string"&&(s=(0,GW.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=r(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,o){a=a||0;for(let d=0;d<16;++d)o[a+d]=c[d];return o}return(0,BW.default)(c)}try{n.name=e}catch{}return n.DNS=SI,n.URL=wI,n}});var EI=u(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.default=void 0;var KW=HW(require("crypto"));function HW(e){return e&&e.__esModule?e:{default:e}}function WW(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),KW.default.createHash("md5").update(e).digest()}var JW=WW;Ld.default=JW});var AI=u(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.default=void 0;var YW=bI(lS()),QW=bI(EI());function bI(e){return e&&e.__esModule?e:{default:e}}var XW=(0,YW.default)("v3",48,QW.default),ZW=XW;qd.default=ZW});var CI=u(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.default=void 0;var e8=TI(iS()),t8=TI(Na());function TI(e){return e&&e.__esModule?e:{default:e}}function r8(e,t,r){e=e||{};let n=e.random||(e.rng||e8.default)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,t){r=r||0;for(let i=0;i<16;++i)t[r+i]=n[i];return t}return(0,t8.default)(n)}var n8=r8;Md.default=n8});var xI=u(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});zd.default=void 0;var i8=s8(require("crypto"));function s8(e){return e&&e.__esModule?e:{default:e}}function o8(e){return Array.isArray(e)?e=Buffer.from(e):typeof e=="string"&&(e=Buffer.from(e,"utf8")),i8.default.createHash("sha1").update(e).digest()}var a8=o8;zd.default=a8});var RI=u(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.default=void 0;var c8=II(lS()),l8=II(xI());function II(e){return e&&e.__esModule?e:{default:e}}var d8=(0,c8.default)("v5",80,l8.default),u8=d8;jd.default=u8});var NI=u(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});kd.default=void 0;var f8="00000000-0000-0000-0000-000000000000";kd.default=f8});var PI=u(Fd=>{"use strict";Object.defineProperty(Fd,"__esModule",{value:!0});Fd.default=void 0;var m8=p8(Ra());function p8(e){return e&&e.__esModule?e:{default:e}}function _8(e){if(!(0,m8.default)(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}var h8=_8;Fd.default=h8});var dS=u(ar=>{"use strict";Object.defineProperty(ar,"__esModule",{value:!0});Object.defineProperty(ar,"v1",{enumerable:!0,get:function(){return y8.default}});Object.defineProperty(ar,"v3",{enumerable:!0,get:function(){return g8.default}});Object.defineProperty(ar,"v4",{enumerable:!0,get:function(){return v8.default}});Object.defineProperty(ar,"v5",{enumerable:!0,get:function(){return S8.default}});Object.defineProperty(ar,"NIL",{enumerable:!0,get:function(){return w8.default}});Object.defineProperty(ar,"version",{enumerable:!0,get:function(){return E8.default}});Object.defineProperty(ar,"validate",{enumerable:!0,get:function(){return b8.default}});Object.defineProperty(ar,"stringify",{enumerable:!0,get:function(){return A8.default}});Object.defineProperty(ar,"parse",{enumerable:!0,get:function(){return T8.default}});var y8=fn(gI()),g8=fn(AI()),v8=fn(CI()),S8=fn(RI()),w8=fn(NI()),E8=fn(PI()),b8=fn(Ra()),A8=fn(Na()),T8=fn(cS());function fn(e){return e&&e.__esModule?e:{default:e}}});var Q=u(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 C8=Ct(),p=N(),uS=dS(),Z=Sd(),Se=W(),x8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchExecuteStatement"},n;return n=JSON.stringify(I5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchExecuteStatementCommand=x8;var I8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchGetItem"},n;return n=JSON.stringify(R5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchGetItemCommand=I8;var R8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.BatchWriteItem"},n;return n=JSON.stringify(D5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0BatchWriteItemCommand=R8;var N8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateBackup"},n;return n=JSON.stringify(M5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateBackupCommand=N8;var P8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateGlobalTable"},n;return n=JSON.stringify(j5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateGlobalTableCommand=P8;var D8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.CreateTable"},n;return n=JSON.stringify(U5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0CreateTableCommand=D8;var O8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteBackup"},n;return n=JSON.stringify(G5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteBackupCommand=O8;var L8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteItem"},n;return n=JSON.stringify(V5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteItemCommand=L8;var q8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DeleteTable"},n;return n=JSON.stringify(J5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DeleteTableCommand=q8;var M8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeBackup"},n;return n=JSON.stringify(Y5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeBackupCommand=M8;var z8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContinuousBackups"},n;return n=JSON.stringify(Q5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeContinuousBackupsCommand=z8;var j8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeContributorInsights"},n;return n=JSON.stringify(X5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeContributorInsightsCommand=j8;var k8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeEndpoints"},n;return n=JSON.stringify(Z5(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeEndpointsCommand=k8;var F8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeExport"},n;return n=JSON.stringify(eJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeExportCommand=F8;var U8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTable"},n;return n=JSON.stringify(tJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeGlobalTableCommand=U8;var B8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeGlobalTableSettings"},n;return n=JSON.stringify(rJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeGlobalTableSettingsCommand=B8;var G8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeKinesisStreamingDestination"},n;return n=JSON.stringify(nJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand=G8;var $8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeLimits"},n;return n=JSON.stringify(iJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeLimitsCommand=$8;var V8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTable"},n;return n=JSON.stringify(sJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTableCommand=V8;var K8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTableReplicaAutoScaling"},n;return n=JSON.stringify(oJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand=K8;var H8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DescribeTimeToLive"},n;return n=JSON.stringify(aJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DescribeTimeToLiveCommand=H8;var W8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.DisableKinesisStreamingDestination"},n;return n=JSON.stringify(GI(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0DisableKinesisStreamingDestinationCommand=W8;var J8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.EnableKinesisStreamingDestination"},n;return n=JSON.stringify(GI(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0EnableKinesisStreamingDestinationCommand=J8;var Y8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteStatement"},n;return n=JSON.stringify(cJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ExecuteStatementCommand=Y8;var Q8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExecuteTransaction"},n;return n=JSON.stringify(lJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ExecuteTransactionCommand=Q8;var X8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ExportTableToPointInTime"},n;return n=JSON.stringify(uJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ExportTableToPointInTimeCommand=X8;var Z8=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.GetItem"},n;return n=JSON.stringify(mJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0GetItemCommand=Z8;var e4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListBackups"},n;return n=JSON.stringify(CJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ListBackupsCommand=e4;var t4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListContributorInsights"},n;return n=JSON.stringify(xJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ListContributorInsightsCommand=t4;var r4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListExports"},n;return n=JSON.stringify(IJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ListExportsCommand=r4;var n4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListGlobalTables"},n;return n=JSON.stringify(RJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ListGlobalTablesCommand=n4;var i4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTables"},n;return n=JSON.stringify(NJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ListTablesCommand=i4;var s4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.ListTagsOfResource"},n;return n=JSON.stringify(PJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ListTagsOfResourceCommand=s4;var o4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.PutItem"},n;return n=JSON.stringify(UJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0PutItemCommand=o4;var a4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Query"},n;return n=JSON.stringify(GJ(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0QueryCommand=a4;var c4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableFromBackup"},n;return n=JSON.stringify(sY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0RestoreTableFromBackupCommand=c4;var l4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.RestoreTableToPointInTime"},n;return n=JSON.stringify(oY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0RestoreTableToPointInTimeCommand=l4;var d4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.Scan"},n;return n=JSON.stringify(aY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0ScanCommand=d4;var u4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TagResource"},n;return n=JSON.stringify(uY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0TagResourceCommand=u4;var f4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactGetItems"},n;return n=JSON.stringify(_Y(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0TransactGetItemsCommand=f4;var m4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.TransactWriteItems"},n;return n=JSON.stringify(gY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0TransactWriteItemsCommand=m4;var p4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UntagResource"},n;return n=JSON.stringify(vY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UntagResourceCommand=p4;var _4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContinuousBackups"},n;return n=JSON.stringify(wY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateContinuousBackupsCommand=_4;var h4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateContributorInsights"},n;return n=JSON.stringify(EY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateContributorInsightsCommand=h4;var y4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTable"},n;return n=JSON.stringify(AY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateGlobalTableCommand=y4;var g4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateGlobalTableSettings"},n;return n=JSON.stringify(TY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateGlobalTableSettingsCommand=g4;var v4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateItem"},n;return n=JSON.stringify(CY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateItemCommand=v4;var S4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTable"},n;return n=JSON.stringify(IY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTableCommand=S4;var w4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTableReplicaAutoScaling"},n;return n=JSON.stringify(RY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand=w4;var E4=async(e,t)=>{let r={"content-type":"application/x-amz-json-1.0","x-amz-target":"DynamoDB_20120810.UpdateTimeToLive"},n;return n=JSON.stringify(NY(e,t)),ee(t,r,"/",void 0,n)};v.serializeAws_json1_0UpdateTimeToLiveCommand=E4;var b4=async(e,t)=>{if(e.statusCode>=300)return A4(e,t);let r=await P(e.body,t),n={};n=$Y(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchExecuteStatementCommand=b4;var A4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},T4=async(e,t)=>{if(e.statusCode>=300)return C4(e,t);let r=await P(e.body,t),n={};n=VY(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchGetItemCommand=T4;var C4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},x4=async(e,t)=>{if(e.statusCode>=300)return I4(e,t);let r=await P(e.body,t),n={};n=YY(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0BatchWriteItemCommand=x4;var I4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Pa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},R4=async(e,t)=>{if(e.statusCode>=300)return N4(e,t);let r=await P(e.body,t),n={};n=o7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateBackupCommand=R4;var N4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await fS(r,t);case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await OI(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await pS(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},P4=async(e,t)=>{if(e.statusCode>=300)return D4(e,t);let r=await P(e.body,t),n={};n=a7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateGlobalTableCommand=P4;var D4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"GlobalTableAlreadyExistsException":case"com.amazonaws.dynamodb#GlobalTableAlreadyExistsException":throw await g5(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},O4=async(e,t)=>{if(e.statusCode>=300)return L4(e,t);let r=await P(e.body,t),n={};n=c7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0CreateTableCommand=O4;var L4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},q4=async(e,t)=>{if(e.statusCode>=300)return M4(e,t);let r=await P(e.body,t),n={};n=l7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteBackupCommand=q4;var M4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await fS(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await mS(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},z4=async(e,t)=>{if(e.statusCode>=300)return j4(e,t);let r=await P(e.body,t),n={};n=d7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteItemCommand=z4;var j4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Ud(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Pa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Gd(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},k4=async(e,t)=>{if(e.statusCode>=300)return F4(e,t);let r=await P(e.body,t),n={};n=f7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DeleteTableCommand=k4;var F4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},U4=async(e,t)=>{if(e.statusCode>=300)return B4(e,t);let r=await P(e.body,t),n={};n=m7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeBackupCommand=U4;var B4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await mS(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},G4=async(e,t)=>{if(e.statusCode>=300)return $4(e,t);let r=await P(e.body,t),n={};n=p7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContinuousBackupsCommand=G4;var $4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},V4=async(e,t)=>{if(e.statusCode>=300)return K4(e,t);let r=await P(e.body,t),n={};n=_7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeContributorInsightsCommand=V4;var K4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},H4=async(e,t)=>{if(e.statusCode>=300)return W4(e,t);let r=await P(e.body,t),n={};n=h7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeEndpointsCommand=H4;var W4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},J4=async(e,t)=>{if(e.statusCode>=300)return Y4(e,t);let r=await P(e.body,t),n={};n=y7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeExportCommand=J4;var Y4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"ExportNotFoundException":case"com.amazonaws.dynamodb#ExportNotFoundException":throw await y5(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},Q4=async(e,t)=>{if(e.statusCode>=300)return X4(e,t);let r=await P(e.body,t),n={};n=g7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableCommand=Q4;var X4=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Bd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},Z4=async(e,t)=>{if(e.statusCode>=300)return e6(e,t);let r=await P(e.body,t),n={};n=v7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeGlobalTableSettingsCommand=Z4;var e6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Bd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},t6=async(e,t)=>{if(e.statusCode>=300)return r6(e,t);let r=await P(e.body,t),n={};n=S7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand=t6;var r6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},n6=async(e,t)=>{if(e.statusCode>=300)return i6(e,t);let r=await P(e.body,t),n={};n=w7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeLimitsCommand=n6;var i6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},s6=async(e,t)=>{if(e.statusCode>=300)return o6(e,t);let r=await P(e.body,t),n={};n=E7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableCommand=s6;var o6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},a6=async(e,t)=>{if(e.statusCode>=300)return c6(e,t);let r=await P(e.body,t),n={};n=b7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand=a6;var c6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},l6=async(e,t)=>{if(e.statusCode>=300)return d6(e,t);let r=await P(e.body,t),n={};n=A7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DescribeTimeToLiveCommand=l6;var d6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},u6=async(e,t)=>{if(e.statusCode>=300)return f6(e,t);let r=await P(e.body,t),n={};n=t1(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand=u6;var f6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},m6=async(e,t)=>{if(e.statusCode>=300)return p6(e,t);let r=await P(e.body,t),n={};n=t1(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand=m6;var p6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},_6=async(e,t)=>{if(e.statusCode>=300)return h6(e,t);let r=await P(e.body,t),n={};n=I7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteStatementCommand=_6;var h6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Ud(r,t);case"DuplicateItemException":case"com.amazonaws.dynamodb#DuplicateItemException":throw await _5(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Pa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Gd(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},y6=async(e,t)=>{if(e.statusCode>=300)return g6(e,t);let r=await P(e.body,t),n={};n=R7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExecuteTransactionCommand=y6;var g6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await LI(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await _S(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await jI(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},v6=async(e,t)=>{if(e.statusCode>=300)return S6(e,t);let r=await P(e.body,t),n={};n=L7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ExportTableToPointInTimeCommand=v6;var S6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"ExportConflictException":case"com.amazonaws.dynamodb#ExportConflictException":throw await h5(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidExportTimeException":case"com.amazonaws.dynamodb#InvalidExportTimeException":throw await S5(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await qI(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},w6=async(e,t)=>{if(e.statusCode>=300)return E6(e,t);let r=await P(e.body,t),n={};n=z7(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0GetItemCommand=w6;var E6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},b6=async(e,t)=>{if(e.statusCode>=300)return A6(e,t);let r=await P(e.body,t),n={};n=d9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListBackupsCommand=b6;var A6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},T6=async(e,t)=>{if(e.statusCode>=300)return C6(e,t);let r=await P(e.body,t),n={};n=u9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListContributorInsightsCommand=T6;var C6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},x6=async(e,t)=>{if(e.statusCode>=300)return I6(e,t);let r=await P(e.body,t),n={};n=f9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListExportsCommand=x6;var I6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},R6=async(e,t)=>{if(e.statusCode>=300)return N6(e,t);let r=await P(e.body,t),n={};n=m9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListGlobalTablesCommand=R6;var N6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},P6=async(e,t)=>{if(e.statusCode>=300)return D6(e,t);let r=await P(e.body,t),n={};n=p9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListTablesCommand=P6;var D6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},O6=async(e,t)=>{if(e.statusCode>=300)return L6(e,t);let r=await P(e.body,t),n={};n=_9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ListTagsOfResourceCommand=O6;var L6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},q6=async(e,t)=>{if(e.statusCode>=300)return M6(e,t);let r=await P(e.body,t),n={};n=I9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0PutItemCommand=q6;var M6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Ud(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Pa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Gd(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},z6=async(e,t)=>{if(e.statusCode>=300)return j6(e,t);let r=await P(e.body,t),n={};n=N9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0QueryCommand=z6;var j6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},k6=async(e,t)=>{if(e.statusCode>=300)return F6(e,t);let r=await P(e.body,t),n={};n=J9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableFromBackupCommand=k6;var F6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"BackupInUseException":case"com.amazonaws.dynamodb#BackupInUseException":throw await fS(r,t);case"BackupNotFoundException":case"com.amazonaws.dynamodb#BackupNotFoundException":throw await mS(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await zI(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await pS(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},U6=async(e,t)=>{if(e.statusCode>=300)return B6(e,t);let r=await P(e.body,t),n={};n=Y9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0RestoreTableToPointInTimeCommand=U6;var B6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"InvalidRestoreTimeException":case"com.amazonaws.dynamodb#InvalidRestoreTimeException":throw await w5(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"PointInTimeRecoveryUnavailableException":case"com.amazonaws.dynamodb#PointInTimeRecoveryUnavailableException":throw await qI(r,t);case"TableAlreadyExistsException":case"com.amazonaws.dynamodb#TableAlreadyExistsException":throw await zI(r,t);case"TableInUseException":case"com.amazonaws.dynamodb#TableInUseException":throw await pS(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},G6=async(e,t)=>{if(e.statusCode>=300)return $6(e,t);let r=await P(e.body,t),n={};n=Q9(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0ScanCommand=G6;var $6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},V6=async(e,t)=>{if(e.statusCode>=300)return K6(e,t);await TS(e.body,t);let r={$metadata:C(e)};return Promise.resolve(r)};v.deserializeAws_json1_0TagResourceCommand=V6;var K6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},H6=async(e,t)=>{if(e.statusCode>=300)return W6(e,t);let r=await P(e.body,t),n={};n=cQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0TransactGetItemsCommand=H6;var W6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await _S(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},J6=async(e,t)=>{if(e.statusCode>=300)return Y6(e,t);let r=await P(e.body,t),n={};n=fQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0TransactWriteItemsCommand=J6;var Y6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"IdempotentParameterMismatchException":case"com.amazonaws.dynamodb#IdempotentParameterMismatchException":throw await LI(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);case"TransactionCanceledException":case"com.amazonaws.dynamodb#TransactionCanceledException":throw await _S(r,t);case"TransactionInProgressException":case"com.amazonaws.dynamodb#TransactionInProgressException":throw await jI(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},Q6=async(e,t)=>{if(e.statusCode>=300)return X6(e,t);await TS(e.body,t);let r={$metadata:C(e)};return Promise.resolve(r)};v.deserializeAws_json1_0UntagResourceCommand=Q6;var X6=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},Z6=async(e,t)=>{if(e.statusCode>=300)return e5(e,t);let r=await P(e.body,t),n={};n=mQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContinuousBackupsCommand=Z6;var e5=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"ContinuousBackupsUnavailableException":case"com.amazonaws.dynamodb#ContinuousBackupsUnavailableException":throw await OI(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},t5=async(e,t)=>{if(e.statusCode>=300)return r5(e,t);let r=await P(e.body,t),n={};n=pQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateContributorInsightsCommand=t5;var r5=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},n5=async(e,t)=>{if(e.statusCode>=300)return i5(e,t);let r=await P(e.body,t),n={};n=_Q(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableCommand=n5;var i5=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Bd(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ReplicaAlreadyExistsException":case"com.amazonaws.dynamodb#ReplicaAlreadyExistsException":throw await E5(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await MI(r,t);case"TableNotFoundException":case"com.amazonaws.dynamodb#TableNotFoundException":throw await Di(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},s5=async(e,t)=>{if(e.statusCode>=300)return o5(e,t);let r=await P(e.body,t),n={};n=hQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateGlobalTableSettingsCommand=s5;var o5=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"GlobalTableNotFoundException":case"com.amazonaws.dynamodb#GlobalTableNotFoundException":throw await Bd(r,t);case"IndexNotFoundException":case"com.amazonaws.dynamodb#IndexNotFoundException":throw await v5(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ReplicaNotFoundException":case"com.amazonaws.dynamodb#ReplicaNotFoundException":throw await MI(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},a5=async(e,t)=>{if(e.statusCode>=300)return c5(e,t);let r=await P(e.body,t),n={};n=yQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateItemCommand=a5;var c5=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"ConditionalCheckFailedException":case"com.amazonaws.dynamodb#ConditionalCheckFailedException":throw await Ud(r,t);case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"ItemCollectionSizeLimitExceededException":case"com.amazonaws.dynamodb#ItemCollectionSizeLimitExceededException":throw await Pa(r,t);case"ProvisionedThroughputExceededException":case"com.amazonaws.dynamodb#ProvisionedThroughputExceededException":throw await Yt(r,t);case"RequestLimitExceeded":case"com.amazonaws.dynamodb#RequestLimitExceeded":throw await Ft(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);case"TransactionConflictException":case"com.amazonaws.dynamodb#TransactionConflictException":throw await Gd(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},l5=async(e,t)=>{if(e.statusCode>=300)return d5(e,t);let r=await P(e.body,t),n={};n=gQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableCommand=l5;var d5=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},u5=async(e,t)=>{if(e.statusCode>=300)return f5(e,t);let r=await P(e.body,t),n={};n=vQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand=u5;var f5=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},m5=async(e,t)=>{if(e.statusCode>=300)return p5(e,t);let r=await P(e.body,t),n={};n=SQ(r,t);let i={$metadata:C(e),...n};return Promise.resolve(i)};v.deserializeAws_json1_0UpdateTimeToLiveCommand=m5;var p5=async(e,t)=>{let r={...e,body:await P(e.body,t)},n,i="UnknownError";switch(i=te(e,r.body),i){case"InternalServerError":case"com.amazonaws.dynamodb#InternalServerError":throw await ne(r,t);case"InvalidEndpointException":case"com.amazonaws.dynamodb#InvalidEndpointException":throw await de(r,t);case"LimitExceededException":case"com.amazonaws.dynamodb#LimitExceededException":throw await Xe(r,t);case"ResourceInUseException":case"com.amazonaws.dynamodb#ResourceInUseException":throw await Er(r,t);case"ResourceNotFoundException":case"com.amazonaws.dynamodb#ResourceNotFoundException":throw await Ie(r,t);default:let s=r.body;throw n=new Z.DynamoDBServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:C(e)}),(0,p.decorateServiceException)(n,s)}},fS=async(e,t)=>{let r=e.body,n=FY(r,t),i=new Se.BackupInUseException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},mS=async(e,t)=>{let r=e.body,n=UY(r,t),i=new Se.BackupNotFoundException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Ud=async(e,t)=>{let r=e.body,n=t7(r,t),i=new Se.ConditionalCheckFailedException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},OI=async(e,t)=>{let r=e.body,n=r7(r,t),i=new Se.ContinuousBackupsUnavailableException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},_5=async(e,t)=>{let r=e.body,n=T7(r,t),i=new Se.DuplicateItemException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},h5=async(e,t)=>{let r=e.body,n=N7(r,t),i=new Se.ExportConflictException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},y5=async(e,t)=>{let r=e.body,n=P7(r,t),i=new Se.ExportNotFoundException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},g5=async(e,t)=>{let r=e.body,n=G7(r,t),i=new Se.GlobalTableAlreadyExistsException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Bd=async(e,t)=>{let r=e.body,n=V7(r,t),i=new Se.GlobalTableNotFoundException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},LI=async(e,t)=>{let r=e.body,n=K7(r,t),i=new Se.IdempotentParameterMismatchException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},v5=async(e,t)=>{let r=e.body,n=H7(r,t),i=new Se.IndexNotFoundException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},ne=async(e,t)=>{let r=e.body,n=W7(r,t),i=new Se.InternalServerError({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},de=async(e,t)=>{let r=e.body,n=J7(r,t),i=new Se.InvalidEndpointException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},S5=async(e,t)=>{let r=e.body,n=Y7(r,t),i=new Se.InvalidExportTimeException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},w5=async(e,t)=>{let r=e.body,n=Q7(r,t),i=new Se.InvalidRestoreTimeException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Pa=async(e,t)=>{let r=e.body,n=t9(r,t),i=new Se.ItemCollectionSizeLimitExceededException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Xe=async(e,t)=>{let r=e.body,n=c9(r,t),i=new Se.LimitExceededException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},qI=async(e,t)=>{let r=e.body,n=T9(r,t),i=new Se.PointInTimeRecoveryUnavailableException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Yt=async(e,t)=>{let r=e.body,n=C9(r,t),i=new Se.ProvisionedThroughputExceededException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},E5=async(e,t)=>{let r=e.body,n=D9(r,t),i=new Se.ReplicaAlreadyExistsException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},MI=async(e,t)=>{let r=e.body,n=G9(r,t),i=new Se.ReplicaNotFoundException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Ft=async(e,t)=>{let r=e.body,n=V9(r,t),i=new Se.RequestLimitExceeded({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Er=async(e,t)=>{let r=e.body,n=K9(r,t),i=new Se.ResourceInUseException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Ie=async(e,t)=>{let r=e.body,n=H9(r,t),i=new Se.ResourceNotFoundException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},zI=async(e,t)=>{let r=e.body,n=tQ(r,t),i=new Se.TableAlreadyExistsException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},pS=async(e,t)=>{let r=e.body,n=rQ(r,t),i=new Se.TableInUseException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Di=async(e,t)=>{let r=e.body,n=iQ(r,t),i=new Se.TableNotFoundException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},_S=async(e,t)=>{let r=e.body,n=lQ(r,t),i=new Se.TransactionCanceledException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},Gd=async(e,t)=>{let r=e.body,n=dQ(r,t),i=new Se.TransactionConflictException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},jI=async(e,t)=>{let r=e.body,n=uQ(r,t),i=new Se.TransactionInProgressException({$metadata:C(e),...n});return(0,p.decorateServiceException)(i,r)},b5=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.AttributeType!==void 0&&e.AttributeType!==null&&{AttributeType:e.AttributeType}}),kI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:b5(r,t)),$d=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),A5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:T5(i,t)},{}),mn=(e,t)=>Se.AttributeValue.visit(e,{B:r=>({B:t.base64Encoder(r)}),BOOL:r=>({BOOL:r}),BS:r=>({BS:L5(r,t)}),L:r=>({L:TJ(r,t)}),M:r=>({M:OJ(r,t)}),N:r=>({N:r}),NS:r=>({NS:qJ(r,t)}),NULL:r=>({NULL:r}),S:r=>({S:r}),SS:r=>({SS:cY(r,t)}),_:(r,n)=>({name:n})}),FI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:mn(r,t)),T5=(e,t)=>({...e.Action!==void 0&&e.Action!==null&&{Action:e.Action},...e.Value!==void 0&&e.Value!==null&&{Value:mn(e.Value,t)}}),C5=(e,t)=>({...e.PolicyName!==void 0&&e.PolicyName!==null&&{PolicyName:e.PolicyName},...e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null&&{TargetTrackingScalingPolicyConfiguration:x5(e.TargetTrackingScalingPolicyConfiguration,t)}}),Wn=(e,t)=>({...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:C5(e.ScalingPolicyUpdate,t)}}),x5=(e,t)=>({...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:(0,p.serializeFloat)(e.TargetValue)}}),I5=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statements!==void 0&&e.Statements!==null&&{Statements:jJ(e.Statements,t)}}),R5=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:N5(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity}}),N5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:bJ(i,t)},{}),P5=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:vS(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),D5=(e,t)=>({...e.RequestItems!==void 0&&e.RequestItems!==null&&{RequestItems:O5(e.RequestItems,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.ReturnItemCollectionMetrics!==void 0&&e.ReturnItemCollectionMetrics!==null&&{ReturnItemCollectionMetrics:e.ReturnItemCollectionMetrics}}),O5=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:DY(i,t)},{}),L5=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:t.base64Encoder(r)),UI=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:FI(e.AttributeValueList,t)},...e.ComparisonOperator!==void 0&&e.ComparisonOperator!==null&&{ComparisonOperator:e.ComparisonOperator}}),q5=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),M5=(e,t)=>({...e.BackupName!==void 0&&e.BackupName!==null&&{BackupName:e.BackupName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),z5=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Vd(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:SS(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)}}),j5=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null&&{ReplicationGroup:XJ(e.ReplicationGroup,t)}}),k5=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),F5=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:$I(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:wS(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),U5=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:kI(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:yS(e.GlobalSecondaryIndexes,t)},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Vd(e.KeySchema,t)},...e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null&&{LocalSecondaryIndexes:gS(e.LocalSecondaryIndexes,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Kd(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:VI(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:KI(e.Tags,t)}}),B5=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),G5=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),$5=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName}}),V5=(e,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:hS(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:cr(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}}),K5=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),H5=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),W5=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)}}),J5=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),Y5=(e,t)=>({...e.BackupArn!==void 0&&e.BackupArn!==null&&{BackupArn:e.BackupArn}}),Q5=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),X5=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),Z5=(e,t)=>({}),eJ=(e,t)=>({...e.ExportArn!==void 0&&e.ExportArn!==null&&{ExportArn:e.ExportArn}}),tJ=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),rJ=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName}}),nJ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),iJ=(e,t)=>({}),sJ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),oJ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),aJ=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),cJ=(e,t)=>({...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit},...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:vS(e.Parameters,t)},...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),lJ=(e,t)=>{var r;return{ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,uS.v4)(),...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactStatements!==void 0&&e.TransactStatements!==null&&{TransactStatements:zJ(e.TransactStatements,t)}}},hS=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:dJ(i,t)},{}),dJ=(e,t)=>({...e.AttributeValueList!==void 0&&e.AttributeValueList!==null&&{AttributeValueList:FI(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:mn(e.Value,t)}}),uJ=(e,t)=>{var r;return{ClientToken:(r=e.ClientToken)!==null&&r!==void 0?r:(0,uS.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}}},Qt=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:i},{}),pn=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:mn(i,t)},{}),BI=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:UI(i,t)},{}),fJ=(e,t)=>({...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:cr(e.Key,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),mJ=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:$d(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.Key!==void 0&&e.Key!==null&&{Key:cr(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}}),pJ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Vd(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:SS(e.Projection,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)}}),_J=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Wn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)}}),hJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:_J(r,t)),yS=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:pJ(r,t)),yJ=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:z5(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:$5(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:bY(e.Update,t)}}),gJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:yJ(r,t)),vJ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedWriteCapacityAutoScalingSettingsUpdate:Wn(e.ProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedWriteCapacityUnits!==void 0&&e.ProvisionedWriteCapacityUnits!==null&&{ProvisionedWriteCapacityUnits:e.ProvisionedWriteCapacityUnits}}),SJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:vJ(r,t)),cr=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:mn(i,t)},{}),wJ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:UI(i,t)},{}),EJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:cr(r,t)),bJ=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:$d(e.AttributesToGet,t)},...e.ConsistentRead!==void 0&&e.ConsistentRead!==null&&{ConsistentRead:e.ConsistentRead},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.Keys!==void 0&&e.Keys!==null&&{Keys:EJ(e.Keys,t)},...e.ProjectionExpression!==void 0&&e.ProjectionExpression!==null&&{ProjectionExpression:e.ProjectionExpression}}),Vd=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:AJ(r,t)),AJ=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.KeyType!==void 0&&e.KeyType!==null&&{KeyType:e.KeyType}}),GI=(e,t)=>({...e.StreamArn!==void 0&&e.StreamArn!==null&&{StreamArn:e.StreamArn},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),TJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:mn(r,t)),CJ=(e,t)=>({...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)}}),xJ=(e,t)=>({...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}}),IJ=(e,t)=>({...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}}),RJ=(e,t)=>({...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}}),NJ=(e,t)=>({...e.ExclusiveStartTableName!==void 0&&e.ExclusiveStartTableName!==null&&{ExclusiveStartTableName:e.ExclusiveStartTableName},...e.Limit!==void 0&&e.Limit!==null&&{Limit:e.Limit}}),PJ=(e,t)=>({...e.NextToken!==void 0&&e.NextToken!==null&&{NextToken:e.NextToken},...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn}}),DJ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.KeySchema!==void 0&&e.KeySchema!==null&&{KeySchema:Vd(e.KeySchema,t)},...e.Projection!==void 0&&e.Projection!==null&&{Projection:SS(e.Projection,t)}}),gS=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:DJ(r,t)),OJ=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:mn(i,t)},{}),LJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),qJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),MJ=(e,t)=>({...e.Parameters!==void 0&&e.Parameters!==null&&{Parameters:vS(e.Parameters,t)},...e.Statement!==void 0&&e.Statement!==null&&{Statement:e.Statement}}),zJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:MJ(r,t)),jJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:P5(r,t)),kJ=(e,t)=>({...e.PointInTimeRecoveryEnabled!==void 0&&e.PointInTimeRecoveryEnabled!==null&&{PointInTimeRecoveryEnabled:e.PointInTimeRecoveryEnabled}}),vS=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:mn(r,t)),SS=(e,t)=>({...e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null&&{NonKeyAttributes:LJ(e.NonKeyAttributes,t)},...e.ProjectionType!==void 0&&e.ProjectionType!==null&&{ProjectionType:e.ProjectionType}}),Oi=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits},...e.WriteCapacityUnits!==void 0&&e.WriteCapacityUnits!==null&&{WriteCapacityUnits:e.WriteCapacityUnits}}),wS=(e,t)=>({...e.ReadCapacityUnits!==void 0&&e.ReadCapacityUnits!==null&&{ReadCapacityUnits:e.ReadCapacityUnits}}),FJ=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:ES(e.Item,t)},...e.ReturnValuesOnConditionCheckFailure!==void 0&&e.ReturnValuesOnConditionCheckFailure!==null&&{ReturnValuesOnConditionCheckFailure:e.ReturnValuesOnConditionCheckFailure},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),UJ=(e,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:hS(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(e.ExpressionAttributeValues,t)},...e.Item!==void 0&&e.Item!==null&&{Item:ES(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}}),ES=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:mn(i,t)},{}),BJ=(e,t)=>({...e.Item!==void 0&&e.Item!==null&&{Item:ES(e.Item,t)}}),GJ=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:$d(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:cr(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(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:wJ(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:BI(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}}),$J=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName}}),VJ=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexUpdates!==void 0&&e.ReplicaGlobalSecondaryIndexUpdates!==null&&{ReplicaGlobalSecondaryIndexUpdates:JJ(e.ReplicaGlobalSecondaryIndexUpdates,t)},...e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingUpdate:Wn(e.ReplicaProvisionedReadCapacityAutoScalingUpdate,t)}}),KJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:VJ(r,t)),HJ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:wS(e.ProvisionedThroughputOverride,t)}}),WJ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingUpdate!==null&&{ProvisionedReadCapacityAutoScalingUpdate:Wn(e.ProvisionedReadCapacityAutoScalingUpdate,t)}}),JJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:WJ(r,t)),$I=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:HJ(r,t)),YJ=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ProvisionedReadCapacityAutoScalingSettingsUpdate:Wn(e.ProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ProvisionedReadCapacityUnits!==void 0&&e.ProvisionedReadCapacityUnits!==null&&{ProvisionedReadCapacityUnits:e.ProvisionedReadCapacityUnits}}),QJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:YJ(r,t)),XJ=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:$J(r,t)),ZJ=(e,t)=>({...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.ReplicaGlobalSecondaryIndexSettingsUpdate!==void 0&&e.ReplicaGlobalSecondaryIndexSettingsUpdate!==null&&{ReplicaGlobalSecondaryIndexSettingsUpdate:QJ(e.ReplicaGlobalSecondaryIndexSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate!==null&&{ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate:Wn(e.ReplicaProvisionedReadCapacityAutoScalingSettingsUpdate,t)},...e.ReplicaProvisionedReadCapacityUnits!==void 0&&e.ReplicaProvisionedReadCapacityUnits!==null&&{ReplicaProvisionedReadCapacityUnits:e.ReplicaProvisionedReadCapacityUnits},...e.ReplicaTableClass!==void 0&&e.ReplicaTableClass!==null&&{ReplicaTableClass:e.ReplicaTableClass}}),eY=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:ZJ(r,t)),tY=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:F5(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:H5(e.Delete,t)},...e.Update!==void 0&&e.Update!==null&&{Update:xY(e.Update,t)}}),rY=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:tY(r,t)),nY=(e,t)=>({...e.Create!==void 0&&e.Create!==null&&{Create:k5(e.Create,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:K5(e.Delete,t)}}),iY=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:nY(r,t)),sY=(e,t)=>({...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:yS(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:gS(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Oi(e.ProvisionedThroughputOverride,t)},...e.SSESpecificationOverride!==void 0&&e.SSESpecificationOverride!==null&&{SSESpecificationOverride:Kd(e.SSESpecificationOverride,t)},...e.TargetTableName!==void 0&&e.TargetTableName!==null&&{TargetTableName:e.TargetTableName}}),oY=(e,t)=>({...e.BillingModeOverride!==void 0&&e.BillingModeOverride!==null&&{BillingModeOverride:e.BillingModeOverride},...e.GlobalSecondaryIndexOverride!==void 0&&e.GlobalSecondaryIndexOverride!==null&&{GlobalSecondaryIndexOverride:yS(e.GlobalSecondaryIndexOverride,t)},...e.LocalSecondaryIndexOverride!==void 0&&e.LocalSecondaryIndexOverride!==null&&{LocalSecondaryIndexOverride:gS(e.LocalSecondaryIndexOverride,t)},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:Oi(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:Kd(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}}),aY=(e,t)=>({...e.AttributesToGet!==void 0&&e.AttributesToGet!==null&&{AttributesToGet:$d(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:cr(e.ExclusiveStartKey,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(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:BI(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}}),Kd=(e,t)=>({...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}}),VI=(e,t)=>({...e.StreamEnabled!==void 0&&e.StreamEnabled!==null&&{StreamEnabled:e.StreamEnabled},...e.StreamViewType!==void 0&&e.StreamViewType!==null&&{StreamViewType:e.StreamViewType}}),cY=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),lY=(e,t)=>({...e.Key!==void 0&&e.Key!==null&&{Key:e.Key},...e.Value!==void 0&&e.Value!==null&&{Value:e.Value}}),dY=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:r),KI=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:lY(r,t)),uY=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.Tags!==void 0&&e.Tags!==null&&{Tags:KI(e.Tags,t)}}),fY=(e,t)=>({...e.AttributeName!==void 0&&e.AttributeName!==null&&{AttributeName:e.AttributeName},...e.Enabled!==void 0&&e.Enabled!==null&&{Enabled:e.Enabled}}),mY=(e,t)=>({...e.Get!==void 0&&e.Get!==null&&{Get:fJ(e.Get,t)}}),pY=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:mY(r,t)),_Y=(e,t)=>({...e.ReturnConsumedCapacity!==void 0&&e.ReturnConsumedCapacity!==null&&{ReturnConsumedCapacity:e.ReturnConsumedCapacity},...e.TransactItems!==void 0&&e.TransactItems!==null&&{TransactItems:pY(e.TransactItems,t)}}),hY=(e,t)=>({...e.ConditionCheck!==void 0&&e.ConditionCheck!==null&&{ConditionCheck:q5(e.ConditionCheck,t)},...e.Delete!==void 0&&e.Delete!==null&&{Delete:B5(e.Delete,t)},...e.Put!==void 0&&e.Put!==null&&{Put:FJ(e.Put,t)},...e.Update!==void 0&&e.Update!==null&&{Update:SY(e.Update,t)}}),yY=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:hY(r,t)),gY=(e,t)=>{var r;return{ClientRequestToken:(r=e.ClientRequestToken)!==null&&r!==void 0?r:(0,uS.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:yY(e.TransactItems,t)}}},vY=(e,t)=>({...e.ResourceArn!==void 0&&e.ResourceArn!==null&&{ResourceArn:e.ResourceArn},...e.TagKeys!==void 0&&e.TagKeys!==null&&{TagKeys:dY(e.TagKeys,t)}}),SY=(e,t)=>({...e.ConditionExpression!==void 0&&e.ConditionExpression!==null&&{ConditionExpression:e.ConditionExpression},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:cr(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}}),wY=(e,t)=>({...e.PointInTimeRecoverySpecification!==void 0&&e.PointInTimeRecoverySpecification!==null&&{PointInTimeRecoverySpecification:kJ(e.PointInTimeRecoverySpecification,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),EY=(e,t)=>({...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}}),bY=(e,t)=>({...e.IndexName!==void 0&&e.IndexName!==null&&{IndexName:e.IndexName},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)}}),AY=(e,t)=>({...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:iY(e.ReplicaUpdates,t)}}),TY=(e,t)=>({...e.GlobalTableBillingMode!==void 0&&e.GlobalTableBillingMode!==null&&{GlobalTableBillingMode:e.GlobalTableBillingMode},...e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==void 0&&e.GlobalTableGlobalSecondaryIndexSettingsUpdate!==null&&{GlobalTableGlobalSecondaryIndexSettingsUpdate:SJ(e.GlobalTableGlobalSecondaryIndexSettingsUpdate,t)},...e.GlobalTableName!==void 0&&e.GlobalTableName!==null&&{GlobalTableName:e.GlobalTableName},...e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==void 0&&e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate!==null&&{GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate:Wn(e.GlobalTableProvisionedWriteCapacityAutoScalingSettingsUpdate,t)},...e.GlobalTableProvisionedWriteCapacityUnits!==void 0&&e.GlobalTableProvisionedWriteCapacityUnits!==null&&{GlobalTableProvisionedWriteCapacityUnits:e.GlobalTableProvisionedWriteCapacityUnits},...e.ReplicaSettingsUpdate!==void 0&&e.ReplicaSettingsUpdate!==null&&{ReplicaSettingsUpdate:eY(e.ReplicaSettingsUpdate,t)}}),CY=(e,t)=>({...e.AttributeUpdates!==void 0&&e.AttributeUpdates!==null&&{AttributeUpdates:A5(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:hS(e.Expected,t)},...e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null&&{ExpressionAttributeNames:Qt(e.ExpressionAttributeNames,t)},...e.ExpressionAttributeValues!==void 0&&e.ExpressionAttributeValues!==null&&{ExpressionAttributeValues:pn(e.ExpressionAttributeValues,t)},...e.Key!==void 0&&e.Key!==null&&{Key:cr(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}}),xY=(e,t)=>({...e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null&&{GlobalSecondaryIndexes:$I(e.GlobalSecondaryIndexes,t)},...e.KMSMasterKeyId!==void 0&&e.KMSMasterKeyId!==null&&{KMSMasterKeyId:e.KMSMasterKeyId},...e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null&&{ProvisionedThroughputOverride:wS(e.ProvisionedThroughputOverride,t)},...e.RegionName!==void 0&&e.RegionName!==null&&{RegionName:e.RegionName},...e.TableClassOverride!==void 0&&e.TableClassOverride!==null&&{TableClassOverride:e.TableClassOverride}}),IY=(e,t)=>({...e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null&&{AttributeDefinitions:kI(e.AttributeDefinitions,t)},...e.BillingMode!==void 0&&e.BillingMode!==null&&{BillingMode:e.BillingMode},...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:gJ(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null&&{ProvisionedThroughput:Oi(e.ProvisionedThroughput,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:rY(e.ReplicaUpdates,t)},...e.SSESpecification!==void 0&&e.SSESpecification!==null&&{SSESpecification:Kd(e.SSESpecification,t)},...e.StreamSpecification!==void 0&&e.StreamSpecification!==null&&{StreamSpecification:VI(e.StreamSpecification,t)},...e.TableClass!==void 0&&e.TableClass!==null&&{TableClass:e.TableClass},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),RY=(e,t)=>({...e.GlobalSecondaryIndexUpdates!==void 0&&e.GlobalSecondaryIndexUpdates!==null&&{GlobalSecondaryIndexUpdates:hJ(e.GlobalSecondaryIndexUpdates,t)},...e.ProvisionedWriteCapacityAutoScalingUpdate!==void 0&&e.ProvisionedWriteCapacityAutoScalingUpdate!==null&&{ProvisionedWriteCapacityAutoScalingUpdate:Wn(e.ProvisionedWriteCapacityAutoScalingUpdate,t)},...e.ReplicaUpdates!==void 0&&e.ReplicaUpdates!==null&&{ReplicaUpdates:KJ(e.ReplicaUpdates,t)},...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName}}),NY=(e,t)=>({...e.TableName!==void 0&&e.TableName!==null&&{TableName:e.TableName},...e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null&&{TimeToLiveSpecification:fY(e.TimeToLiveSpecification,t)}}),PY=(e,t)=>({...e.DeleteRequest!==void 0&&e.DeleteRequest!==null&&{DeleteRequest:W5(e.DeleteRequest,t)},...e.PutRequest!==void 0&&e.PutRequest!==null&&{PutRequest:BJ(e.PutRequest,t)}}),DY=(e,t)=>e.filter(r=>r!=null).map(r=>r===null?null:PY(r,t)),OY=(e,t)=>({ArchivalBackupArn:(0,p.expectString)(e.ArchivalBackupArn),ArchivalDateTime:e.ArchivalDateTime!==void 0&&e.ArchivalDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ArchivalDateTime))):void 0,ArchivalReason:(0,p.expectString)(e.ArchivalReason)}),LY=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),AttributeType:(0,p.expectString)(e.AttributeType)}),qY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:LY(n,t)),Jn=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Is((0,p.expectUnion)(i),t)},{}),MY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),Is=(e,t)=>e.B!==void 0&&e.B!==null?{B:t.base64Decoder(e.B)}:(0,p.expectBoolean)(e.BOOL)!==void 0?{BOOL:(0,p.expectBoolean)(e.BOOL)}:e.BS!==void 0&&e.BS!==null?{BS:XY(e.BS,t)}:e.L!==void 0&&e.L!==null?{L:l9(e.L,t)}:e.M!==void 0&&e.M!==null?{M:S9(e.M,t)}:(0,p.expectString)(e.N)!==void 0?{N:(0,p.expectString)(e.N)}:e.NS!==void 0&&e.NS!==null?{NS:E9(e.NS,t)}:(0,p.expectBoolean)(e.NULL)!==void 0?{NULL:(0,p.expectBoolean)(e.NULL)}:(0,p.expectString)(e.S)!==void 0?{S:(0,p.expectString)(e.S)}:e.SS!==void 0&&e.SS!==null?{SS:eQ(e.SS,t)}:{$unknown:Object.entries(e)[0]},zY=(e,t)=>({PolicyName:(0,p.expectString)(e.PolicyName),TargetTrackingScalingPolicyConfiguration:e.TargetTrackingScalingPolicyConfiguration!==void 0&&e.TargetTrackingScalingPolicyConfiguration!==null?kY(e.TargetTrackingScalingPolicyConfiguration,t):void 0}),jY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:zY(n,t)),Hn=(e,t)=>({AutoScalingDisabled:(0,p.expectBoolean)(e.AutoScalingDisabled),AutoScalingRoleArn:(0,p.expectString)(e.AutoScalingRoleArn),MaximumUnits:(0,p.expectLong)(e.MaximumUnits),MinimumUnits:(0,p.expectLong)(e.MinimumUnits),ScalingPolicies:e.ScalingPolicies!==void 0&&e.ScalingPolicies!==null?jY(e.ScalingPolicies,t):void 0}),kY=(e,t)=>({DisableScaleIn:(0,p.expectBoolean)(e.DisableScaleIn),ScaleInCooldown:(0,p.expectInt32)(e.ScaleInCooldown),ScaleOutCooldown:(0,p.expectInt32)(e.ScaleOutCooldown),TargetValue:(0,p.limitedParseDouble)(e.TargetValue)}),HI=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?WI(e.BackupDetails,t):void 0,SourceTableDetails:e.SourceTableDetails!==void 0&&e.SourceTableDetails!==null?X9(e.SourceTableDetails,t):void 0,SourceTableFeatureDetails:e.SourceTableFeatureDetails!==void 0&&e.SourceTableFeatureDetails!==null?Z9(e.SourceTableFeatureDetails,t):void 0}),WI=(e,t)=>({BackupArn:(0,p.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,p.expectString)(e.BackupName),BackupSizeBytes:(0,p.expectLong)(e.BackupSizeBytes),BackupStatus:(0,p.expectString)(e.BackupStatus),BackupType:(0,p.expectString)(e.BackupType)}),FY=(e,t)=>({message:(0,p.expectString)(e.message)}),UY=(e,t)=>({message:(0,p.expectString)(e.message)}),BY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:GY(n,t)),GY=(e,t)=>({BackupArn:(0,p.expectString)(e.BackupArn),BackupCreationDateTime:e.BackupCreationDateTime!==void 0&&e.BackupCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupCreationDateTime))):void 0,BackupExpiryDateTime:e.BackupExpiryDateTime!==void 0&&e.BackupExpiryDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.BackupExpiryDateTime))):void 0,BackupName:(0,p.expectString)(e.BackupName),BackupSizeBytes:(0,p.expectLong)(e.BackupSizeBytes),BackupStatus:(0,p.expectString)(e.BackupStatus),BackupType:(0,p.expectString)(e.BackupType),TableArn:(0,p.expectString)(e.TableArn),TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName)}),$Y=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Rs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?b9(e.Responses,t):void 0}),VY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Rs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?HY(e.Responses,t):void 0,UnprocessedKeys:e.UnprocessedKeys!==void 0&&e.UnprocessedKeys!==null?KY(e.UnprocessedKeys,t):void 0}),KY=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:i9(i,t)},{}),HY=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Wd(i,t)},{}),WY=(e,t)=>({Code:(0,p.expectString)(e.Code),Message:(0,p.expectString)(e.Message)}),JY=(e,t)=>({Error:e.Error!==void 0&&e.Error!==null?WY(e.Error,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Jn(e.Item,t):void 0,TableName:(0,p.expectString)(e.TableName)}),YY=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Rs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?ZI(e.ItemCollectionMetrics,t):void 0,UnprocessedItems:e.UnprocessedItems!==void 0&&e.UnprocessedItems!==null?QY(e.UnprocessedItems,t):void 0}),QY=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:EQ(i,t)},{}),JI=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),LastUpdateToPayPerRequestDateTime:e.LastUpdateToPayPerRequestDateTime!==void 0&&e.LastUpdateToPayPerRequestDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateToPayPerRequestDateTime))):void 0}),XY=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:t.base64Decoder(n)),ZY=(e,t)=>({Code:(0,p.expectString)(e.Code),Item:e.Item!==void 0&&e.Item!==null?Jn(e.Item,t):void 0,Message:(0,p.expectString)(e.Message)}),e7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ZY(n,t)),YI=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),t7=(e,t)=>({message:(0,p.expectString)(e.message)}),Yn=(e,t)=>({CapacityUnits:(0,p.limitedParseDouble)(e.CapacityUnits),GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?DI(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?DI(e.LocalSecondaryIndexes,t):void 0,ReadCapacityUnits:(0,p.limitedParseDouble)(e.ReadCapacityUnits),Table:e.Table!==void 0&&e.Table!==null?YI(e.Table,t):void 0,TableName:(0,p.expectString)(e.TableName),WriteCapacityUnits:(0,p.limitedParseDouble)(e.WriteCapacityUnits)}),Rs=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Yn(n,t)),QI=(e,t)=>({ContinuousBackupsStatus:(0,p.expectString)(e.ContinuousBackupsStatus),PointInTimeRecoveryDescription:e.PointInTimeRecoveryDescription!==void 0&&e.PointInTimeRecoveryDescription!==null?A9(e.PointInTimeRecoveryDescription,t):void 0}),r7=(e,t)=>({message:(0,p.expectString)(e.message)}),n7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),i7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:s7(n,t)),s7=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),o7=(e,t)=>({BackupDetails:e.BackupDetails!==void 0&&e.BackupDetails!==null?WI(e.BackupDetails,t):void 0}),a7=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?bS(e.GlobalTableDescription,t):void 0}),c7=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ps(e.TableDescription,t):void 0}),l7=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?HI(e.BackupDescription,t):void 0}),d7=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Jn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Hd(e.ItemCollectionMetrics,t):void 0}),u7=(e,t)=>({Key:e.Key!==void 0&&e.Key!==null?Da(e.Key,t):void 0}),f7=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ps(e.TableDescription,t):void 0}),m7=(e,t)=>({BackupDescription:e.BackupDescription!==void 0&&e.BackupDescription!==null?HI(e.BackupDescription,t):void 0}),p7=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?QI(e.ContinuousBackupsDescription,t):void 0}),_7=(e,t)=>({ContributorInsightsRuleList:e.ContributorInsightsRuleList!==void 0&&e.ContributorInsightsRuleList!==null?n7(e.ContributorInsightsRuleList,t):void 0,ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),FailureException:e.FailureException!==void 0&&e.FailureException!==null?M7(e.FailureException,t):void 0,IndexName:(0,p.expectString)(e.IndexName),LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateDateTime))):void 0,TableName:(0,p.expectString)(e.TableName)}),h7=(e,t)=>({Endpoints:e.Endpoints!==void 0&&e.Endpoints!==null?x7(e.Endpoints,t):void 0}),y7=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?XI(e.ExportDescription,t):void 0}),g7=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?bS(e.GlobalTableDescription,t):void 0}),v7=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?o1(e.ReplicaSettings,t):void 0}),S7=(e,t)=>({KinesisDataStreamDestinations:e.KinesisDataStreamDestinations!==void 0&&e.KinesisDataStreamDestinations!==null?a9(e.KinesisDataStreamDestinations,t):void 0,TableName:(0,p.expectString)(e.TableName)}),w7=(e,t)=>({AccountMaxReadCapacityUnits:(0,p.expectLong)(e.AccountMaxReadCapacityUnits),AccountMaxWriteCapacityUnits:(0,p.expectLong)(e.AccountMaxWriteCapacityUnits),TableMaxReadCapacityUnits:(0,p.expectLong)(e.TableMaxReadCapacityUnits),TableMaxWriteCapacityUnits:(0,p.expectLong)(e.TableMaxWriteCapacityUnits)}),E7=(e,t)=>({Table:e.Table!==void 0&&e.Table!==null?Ps(e.Table,t):void 0}),b7=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?l1(e.TableAutoScalingDescription,t):void 0}),A7=(e,t)=>({TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?d1(e.TimeToLiveDescription,t):void 0}),T7=(e,t)=>({message:(0,p.expectString)(e.message)}),C7=(e,t)=>({Address:(0,p.expectString)(e.Address),CachePeriodInMinutes:(0,p.expectLong)(e.CachePeriodInMinutes)}),x7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:C7(n,t)),I7=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,Items:e.Items!==void 0&&e.Items!==null?Wd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Da(e.LastEvaluatedKey,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),R7=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Rs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?e1(e.Responses,t):void 0}),N7=(e,t)=>({message:(0,p.expectString)(e.message)}),XI=(e,t)=>({BilledSizeBytes:(0,p.expectLong)(e.BilledSizeBytes),ClientToken:(0,p.expectString)(e.ClientToken),EndTime:e.EndTime!==void 0&&e.EndTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.EndTime))):void 0,ExportArn:(0,p.expectString)(e.ExportArn),ExportFormat:(0,p.expectString)(e.ExportFormat),ExportManifest:(0,p.expectString)(e.ExportManifest),ExportStatus:(0,p.expectString)(e.ExportStatus),ExportTime:e.ExportTime!==void 0&&e.ExportTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ExportTime))):void 0,FailureCode:(0,p.expectString)(e.FailureCode),FailureMessage:(0,p.expectString)(e.FailureMessage),ItemCount:(0,p.expectLong)(e.ItemCount),S3Bucket:(0,p.expectString)(e.S3Bucket),S3BucketOwner:(0,p.expectString)(e.S3BucketOwner),S3Prefix:(0,p.expectString)(e.S3Prefix),S3SseAlgorithm:(0,p.expectString)(e.S3SseAlgorithm),S3SseKmsKeyId:(0,p.expectString)(e.S3SseKmsKeyId),StartTime:e.StartTime!==void 0&&e.StartTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.StartTime))):void 0,TableArn:(0,p.expectString)(e.TableArn),TableId:(0,p.expectString)(e.TableId)}),P7=(e,t)=>({message:(0,p.expectString)(e.message)}),D7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:O7(n,t)),O7=(e,t)=>({ExportArn:(0,p.expectString)(e.ExportArn),ExportStatus:(0,p.expectString)(e.ExportStatus)}),L7=(e,t)=>({ExportDescription:e.ExportDescription!==void 0&&e.ExportDescription!==null?XI(e.ExportDescription,t):void 0}),q7=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:(0,p.expectString)(i)},{}),M7=(e,t)=>({ExceptionDescription:(0,p.expectString)(e.ExceptionDescription),ExceptionName:(0,p.expectString)(e.ExceptionName)}),z7=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,Item:e.Item!==void 0&&e.Item!==null?Jn(e.Item,t):void 0}),j7=(e,t)=>({Backfilling:(0,p.expectBoolean)(e.Backfilling),IndexArn:(0,p.expectString)(e.IndexArn),IndexName:(0,p.expectString)(e.IndexName),IndexSizeBytes:(0,p.expectLong)(e.IndexSizeBytes),IndexStatus:(0,p.expectString)(e.IndexStatus),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ns(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Jd(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?n1(e.ProvisionedThroughput,t):void 0}),k7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:j7(n,t)),F7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:U7(n,t)),U7=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ns(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Jd(e.Projection,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?r1(e.ProvisionedThroughput,t):void 0}),B7=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?B9(e.ReplicationGroup,t):void 0}),G7=(e,t)=>({message:(0,p.expectString)(e.message)}),bS=(e,t)=>({CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.CreationDateTime))):void 0,GlobalTableArn:(0,p.expectString)(e.GlobalTableArn),GlobalTableName:(0,p.expectString)(e.GlobalTableName),GlobalTableStatus:(0,p.expectString)(e.GlobalTableStatus),ReplicationGroup:e.ReplicationGroup!==void 0&&e.ReplicationGroup!==null?s1(e.ReplicationGroup,t):void 0}),$7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:B7(n,t)),V7=(e,t)=>({message:(0,p.expectString)(e.message)}),K7=(e,t)=>({Message:(0,p.expectString)(e.Message)}),H7=(e,t)=>({message:(0,p.expectString)(e.message)}),W7=(e,t)=>({message:(0,p.expectString)(e.message)}),J7=(e,t)=>({Message:(0,p.expectString)(e.Message)}),Y7=(e,t)=>({message:(0,p.expectString)(e.message)}),Q7=(e,t)=>({message:(0,p.expectString)(e.message)}),X7=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Is((0,p.expectUnion)(i),t)},{}),Hd=(e,t)=>({ItemCollectionKey:e.ItemCollectionKey!==void 0&&e.ItemCollectionKey!==null?X7(e.ItemCollectionKey,t):void 0,SizeEstimateRangeGB:e.SizeEstimateRangeGB!==void 0&&e.SizeEstimateRangeGB!==null?e9(e.SizeEstimateRangeGB,t):void 0}),Z7=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Hd(n,t)),ZI=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Z7(i,t)},{}),e9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.limitedParseDouble)(n)),t9=(e,t)=>({message:(0,p.expectString)(e.message)}),Wd=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Jn(n,t)),r9=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?Jn(e.Item,t):void 0}),e1=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:r9(n,t)),Da=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Is((0,p.expectUnion)(i),t)},{}),n9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Da(n,t)),i9=(e,t)=>({AttributesToGet:e.AttributesToGet!==void 0&&e.AttributesToGet!==null?MY(e.AttributesToGet,t):void 0,ConsistentRead:(0,p.expectBoolean)(e.ConsistentRead),ExpressionAttributeNames:e.ExpressionAttributeNames!==void 0&&e.ExpressionAttributeNames!==null?q7(e.ExpressionAttributeNames,t):void 0,Keys:e.Keys!==void 0&&e.Keys!==null?n9(e.Keys,t):void 0,ProjectionExpression:(0,p.expectString)(e.ProjectionExpression)}),Ns=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:s9(n,t)),s9=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),KeyType:(0,p.expectString)(e.KeyType)}),o9=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),DestinationStatusDescription:(0,p.expectString)(e.DestinationStatusDescription),StreamArn:(0,p.expectString)(e.StreamArn)}),a9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:o9(n,t)),t1=(e,t)=>({DestinationStatus:(0,p.expectString)(e.DestinationStatus),StreamArn:(0,p.expectString)(e.StreamArn),TableName:(0,p.expectString)(e.TableName)}),c9=(e,t)=>({message:(0,p.expectString)(e.message)}),l9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Is((0,p.expectUnion)(n),t)),d9=(e,t)=>({BackupSummaries:e.BackupSummaries!==void 0&&e.BackupSummaries!==null?BY(e.BackupSummaries,t):void 0,LastEvaluatedBackupArn:(0,p.expectString)(e.LastEvaluatedBackupArn)}),u9=(e,t)=>({ContributorInsightsSummaries:e.ContributorInsightsSummaries!==void 0&&e.ContributorInsightsSummaries!==null?i7(e.ContributorInsightsSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),f9=(e,t)=>({ExportSummaries:e.ExportSummaries!==void 0&&e.ExportSummaries!==null?D7(e.ExportSummaries,t):void 0,NextToken:(0,p.expectString)(e.NextToken)}),m9=(e,t)=>({GlobalTables:e.GlobalTables!==void 0&&e.GlobalTables!==null?$7(e.GlobalTables,t):void 0,LastEvaluatedGlobalTableName:(0,p.expectString)(e.LastEvaluatedGlobalTableName)}),p9=(e,t)=>({LastEvaluatedTableName:(0,p.expectString)(e.LastEvaluatedTableName),TableNames:e.TableNames!==void 0&&e.TableNames!==null?nQ(e.TableNames,t):void 0}),_9=(e,t)=>({NextToken:(0,p.expectString)(e.NextToken),Tags:e.Tags!==void 0&&e.Tags!==null?oQ(e.Tags,t):void 0}),h9=(e,t)=>({IndexArn:(0,p.expectString)(e.IndexArn),IndexName:(0,p.expectString)(e.IndexName),IndexSizeBytes:(0,p.expectLong)(e.IndexSizeBytes),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ns(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Jd(e.Projection,t):void 0}),y9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:h9(n,t)),g9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:v9(n,t)),v9=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ns(e.KeySchema,t):void 0,Projection:e.Projection!==void 0&&e.Projection!==null?Jd(e.Projection,t):void 0}),S9=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Is((0,p.expectUnion)(i),t)},{}),w9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),E9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),b9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:JY(n,t)),A9=(e,t)=>({EarliestRestorableDateTime:e.EarliestRestorableDateTime!==void 0&&e.EarliestRestorableDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.EarliestRestorableDateTime))):void 0,LatestRestorableDateTime:e.LatestRestorableDateTime!==void 0&&e.LatestRestorableDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LatestRestorableDateTime))):void 0,PointInTimeRecoveryStatus:(0,p.expectString)(e.PointInTimeRecoveryStatus)}),T9=(e,t)=>({message:(0,p.expectString)(e.message)}),Jd=(e,t)=>({NonKeyAttributes:e.NonKeyAttributes!==void 0&&e.NonKeyAttributes!==null?w9(e.NonKeyAttributes,t):void 0,ProjectionType:(0,p.expectString)(e.ProjectionType)}),r1=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),n1=(e,t)=>({LastDecreaseDateTime:e.LastDecreaseDateTime!==void 0&&e.LastDecreaseDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastDecreaseDateTime))):void 0,LastIncreaseDateTime:e.LastIncreaseDateTime!==void 0&&e.LastIncreaseDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastIncreaseDateTime))):void 0,NumberOfDecreasesToday:(0,p.expectLong)(e.NumberOfDecreasesToday),ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits),WriteCapacityUnits:(0,p.expectLong)(e.WriteCapacityUnits)}),C9=(e,t)=>({message:(0,p.expectString)(e.message)}),i1=(e,t)=>({ReadCapacityUnits:(0,p.expectLong)(e.ReadCapacityUnits)}),x9=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:Is((0,p.expectUnion)(i),t)},{}),I9=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Jn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Hd(e.ItemCollectionMetrics,t):void 0}),R9=(e,t)=>({Item:e.Item!==void 0&&e.Item!==null?x9(e.Item,t):void 0}),N9=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Wd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Da(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),P9=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName)}),D9=(e,t)=>({message:(0,p.expectString)(e.message)}),O9=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?z9(e.GlobalSecondaryIndexes,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Hn(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Hn(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus)}),L9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:O9(n,t)),q9=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?k9(e.GlobalSecondaryIndexes,t):void 0,KMSMasterKeyId:(0,p.expectString)(e.KMSMasterKeyId),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?i1(e.ProvisionedThroughputOverride,t):void 0,RegionName:(0,p.expectString)(e.RegionName),ReplicaInaccessibleDateTime:e.ReplicaInaccessibleDateTime!==void 0&&e.ReplicaInaccessibleDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.ReplicaInaccessibleDateTime))):void 0,ReplicaStatus:(0,p.expectString)(e.ReplicaStatus),ReplicaStatusDescription:(0,p.expectString)(e.ReplicaStatusDescription),ReplicaStatusPercentProgress:(0,p.expectString)(e.ReplicaStatusPercentProgress),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?AS(e.ReplicaTableClassSummary,t):void 0}),s1=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:q9(n,t)),M9=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Hn(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Hn(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0}),z9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:M9(n,t)),j9=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),ProvisionedThroughputOverride:e.ProvisionedThroughputOverride!==void 0&&e.ProvisionedThroughputOverride!==null?i1(e.ProvisionedThroughputOverride,t):void 0}),k9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:j9(n,t)),F9=(e,t)=>({IndexName:(0,p.expectString)(e.IndexName),IndexStatus:(0,p.expectString)(e.IndexStatus),ProvisionedReadCapacityAutoScalingSettings:e.ProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ProvisionedReadCapacityAutoScalingSettings!==null?Hn(e.ProvisionedReadCapacityAutoScalingSettings,t):void 0,ProvisionedReadCapacityUnits:(0,p.expectLong)(e.ProvisionedReadCapacityUnits),ProvisionedWriteCapacityAutoScalingSettings:e.ProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ProvisionedWriteCapacityAutoScalingSettings!==null?Hn(e.ProvisionedWriteCapacityAutoScalingSettings,t):void 0,ProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ProvisionedWriteCapacityUnits)}),U9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:F9(n,t)),B9=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:P9(n,t)),G9=(e,t)=>({message:(0,p.expectString)(e.message)}),$9=(e,t)=>({RegionName:(0,p.expectString)(e.RegionName),ReplicaBillingModeSummary:e.ReplicaBillingModeSummary!==void 0&&e.ReplicaBillingModeSummary!==null?JI(e.ReplicaBillingModeSummary,t):void 0,ReplicaGlobalSecondaryIndexSettings:e.ReplicaGlobalSecondaryIndexSettings!==void 0&&e.ReplicaGlobalSecondaryIndexSettings!==null?U9(e.ReplicaGlobalSecondaryIndexSettings,t):void 0,ReplicaProvisionedReadCapacityAutoScalingSettings:e.ReplicaProvisionedReadCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedReadCapacityAutoScalingSettings!==null?Hn(e.ReplicaProvisionedReadCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedReadCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedReadCapacityUnits),ReplicaProvisionedWriteCapacityAutoScalingSettings:e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==void 0&&e.ReplicaProvisionedWriteCapacityAutoScalingSettings!==null?Hn(e.ReplicaProvisionedWriteCapacityAutoScalingSettings,t):void 0,ReplicaProvisionedWriteCapacityUnits:(0,p.expectLong)(e.ReplicaProvisionedWriteCapacityUnits),ReplicaStatus:(0,p.expectString)(e.ReplicaStatus),ReplicaTableClassSummary:e.ReplicaTableClassSummary!==void 0&&e.ReplicaTableClassSummary!==null?AS(e.ReplicaTableClassSummary,t):void 0}),o1=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:$9(n,t)),V9=(e,t)=>({message:(0,p.expectString)(e.message)}),K9=(e,t)=>({message:(0,p.expectString)(e.message)}),H9=(e,t)=>({message:(0,p.expectString)(e.message)}),W9=(e,t)=>({RestoreDateTime:e.RestoreDateTime!==void 0&&e.RestoreDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.RestoreDateTime))):void 0,RestoreInProgress:(0,p.expectBoolean)(e.RestoreInProgress),SourceBackupArn:(0,p.expectString)(e.SourceBackupArn),SourceTableArn:(0,p.expectString)(e.SourceTableArn)}),J9=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ps(e.TableDescription,t):void 0}),Y9=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ps(e.TableDescription,t):void 0}),Q9=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,Count:(0,p.expectInt32)(e.Count),Items:e.Items!==void 0&&e.Items!==null?Wd(e.Items,t):void 0,LastEvaluatedKey:e.LastEvaluatedKey!==void 0&&e.LastEvaluatedKey!==null?Da(e.LastEvaluatedKey,t):void 0,ScannedCount:(0,p.expectInt32)(e.ScannedCount)}),DI=(e,t)=>Object.entries(e).reduce((r,[n,i])=>i===null?r:{...r,[n]:YI(i,t)},{}),X9=(e,t)=>({BillingMode:(0,p.expectString)(e.BillingMode),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ns(e.KeySchema,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?r1(e.ProvisionedThroughput,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableCreationDateTime:e.TableCreationDateTime!==void 0&&e.TableCreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.TableCreationDateTime))):void 0,TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName),TableSizeBytes:(0,p.expectLong)(e.TableSizeBytes)}),Z9=(e,t)=>({GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?F7(e.GlobalSecondaryIndexes,t):void 0,LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?g9(e.LocalSecondaryIndexes,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?a1(e.SSEDescription,t):void 0,StreamDescription:e.StreamDescription!==void 0&&e.StreamDescription!==null?c1(e.StreamDescription,t):void 0,TimeToLiveDescription:e.TimeToLiveDescription!==void 0&&e.TimeToLiveDescription!==null?d1(e.TimeToLiveDescription,t):void 0}),a1=(e,t)=>({InaccessibleEncryptionDateTime:e.InaccessibleEncryptionDateTime!==void 0&&e.InaccessibleEncryptionDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.InaccessibleEncryptionDateTime))):void 0,KMSMasterKeyArn:(0,p.expectString)(e.KMSMasterKeyArn),SSEType:(0,p.expectString)(e.SSEType),Status:(0,p.expectString)(e.Status)}),c1=(e,t)=>({StreamEnabled:(0,p.expectBoolean)(e.StreamEnabled),StreamViewType:(0,p.expectString)(e.StreamViewType)}),eQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),tQ=(e,t)=>({message:(0,p.expectString)(e.message)}),l1=(e,t)=>({Replicas:e.Replicas!==void 0&&e.Replicas!==null?L9(e.Replicas,t):void 0,TableName:(0,p.expectString)(e.TableName),TableStatus:(0,p.expectString)(e.TableStatus)}),AS=(e,t)=>({LastUpdateDateTime:e.LastUpdateDateTime!==void 0&&e.LastUpdateDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.LastUpdateDateTime))):void 0,TableClass:(0,p.expectString)(e.TableClass)}),Ps=(e,t)=>({ArchivalSummary:e.ArchivalSummary!==void 0&&e.ArchivalSummary!==null?OY(e.ArchivalSummary,t):void 0,AttributeDefinitions:e.AttributeDefinitions!==void 0&&e.AttributeDefinitions!==null?qY(e.AttributeDefinitions,t):void 0,BillingModeSummary:e.BillingModeSummary!==void 0&&e.BillingModeSummary!==null?JI(e.BillingModeSummary,t):void 0,CreationDateTime:e.CreationDateTime!==void 0&&e.CreationDateTime!==null?(0,p.expectNonNull)((0,p.parseEpochTimestamp)((0,p.expectNumber)(e.CreationDateTime))):void 0,GlobalSecondaryIndexes:e.GlobalSecondaryIndexes!==void 0&&e.GlobalSecondaryIndexes!==null?k7(e.GlobalSecondaryIndexes,t):void 0,GlobalTableVersion:(0,p.expectString)(e.GlobalTableVersion),ItemCount:(0,p.expectLong)(e.ItemCount),KeySchema:e.KeySchema!==void 0&&e.KeySchema!==null?Ns(e.KeySchema,t):void 0,LatestStreamArn:(0,p.expectString)(e.LatestStreamArn),LatestStreamLabel:(0,p.expectString)(e.LatestStreamLabel),LocalSecondaryIndexes:e.LocalSecondaryIndexes!==void 0&&e.LocalSecondaryIndexes!==null?y9(e.LocalSecondaryIndexes,t):void 0,ProvisionedThroughput:e.ProvisionedThroughput!==void 0&&e.ProvisionedThroughput!==null?n1(e.ProvisionedThroughput,t):void 0,Replicas:e.Replicas!==void 0&&e.Replicas!==null?s1(e.Replicas,t):void 0,RestoreSummary:e.RestoreSummary!==void 0&&e.RestoreSummary!==null?W9(e.RestoreSummary,t):void 0,SSEDescription:e.SSEDescription!==void 0&&e.SSEDescription!==null?a1(e.SSEDescription,t):void 0,StreamSpecification:e.StreamSpecification!==void 0&&e.StreamSpecification!==null?c1(e.StreamSpecification,t):void 0,TableArn:(0,p.expectString)(e.TableArn),TableClassSummary:e.TableClassSummary!==void 0&&e.TableClassSummary!==null?AS(e.TableClassSummary,t):void 0,TableId:(0,p.expectString)(e.TableId),TableName:(0,p.expectString)(e.TableName),TableSizeBytes:(0,p.expectLong)(e.TableSizeBytes),TableStatus:(0,p.expectString)(e.TableStatus)}),rQ=(e,t)=>({message:(0,p.expectString)(e.message)}),nQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:(0,p.expectString)(n)),iQ=(e,t)=>({message:(0,p.expectString)(e.message)}),sQ=(e,t)=>({Key:(0,p.expectString)(e.Key),Value:(0,p.expectString)(e.Value)}),oQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:sQ(n,t)),d1=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),TimeToLiveStatus:(0,p.expectString)(e.TimeToLiveStatus)}),aQ=(e,t)=>({AttributeName:(0,p.expectString)(e.AttributeName),Enabled:(0,p.expectBoolean)(e.Enabled)}),cQ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Rs(e.ConsumedCapacity,t):void 0,Responses:e.Responses!==void 0&&e.Responses!==null?e1(e.Responses,t):void 0}),lQ=(e,t)=>({CancellationReasons:e.CancellationReasons!==void 0&&e.CancellationReasons!==null?e7(e.CancellationReasons,t):void 0,Message:(0,p.expectString)(e.Message)}),dQ=(e,t)=>({message:(0,p.expectString)(e.message)}),uQ=(e,t)=>({Message:(0,p.expectString)(e.Message)}),fQ=(e,t)=>({ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Rs(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?ZI(e.ItemCollectionMetrics,t):void 0}),mQ=(e,t)=>({ContinuousBackupsDescription:e.ContinuousBackupsDescription!==void 0&&e.ContinuousBackupsDescription!==null?QI(e.ContinuousBackupsDescription,t):void 0}),pQ=(e,t)=>({ContributorInsightsStatus:(0,p.expectString)(e.ContributorInsightsStatus),IndexName:(0,p.expectString)(e.IndexName),TableName:(0,p.expectString)(e.TableName)}),_Q=(e,t)=>({GlobalTableDescription:e.GlobalTableDescription!==void 0&&e.GlobalTableDescription!==null?bS(e.GlobalTableDescription,t):void 0}),hQ=(e,t)=>({GlobalTableName:(0,p.expectString)(e.GlobalTableName),ReplicaSettings:e.ReplicaSettings!==void 0&&e.ReplicaSettings!==null?o1(e.ReplicaSettings,t):void 0}),yQ=(e,t)=>({Attributes:e.Attributes!==void 0&&e.Attributes!==null?Jn(e.Attributes,t):void 0,ConsumedCapacity:e.ConsumedCapacity!==void 0&&e.ConsumedCapacity!==null?Yn(e.ConsumedCapacity,t):void 0,ItemCollectionMetrics:e.ItemCollectionMetrics!==void 0&&e.ItemCollectionMetrics!==null?Hd(e.ItemCollectionMetrics,t):void 0}),gQ=(e,t)=>({TableDescription:e.TableDescription!==void 0&&e.TableDescription!==null?Ps(e.TableDescription,t):void 0}),vQ=(e,t)=>({TableAutoScalingDescription:e.TableAutoScalingDescription!==void 0&&e.TableAutoScalingDescription!==null?l1(e.TableAutoScalingDescription,t):void 0}),SQ=(e,t)=>({TimeToLiveSpecification:e.TimeToLiveSpecification!==void 0&&e.TimeToLiveSpecification!==null?aQ(e.TimeToLiveSpecification,t):void 0}),wQ=(e,t)=>({DeleteRequest:e.DeleteRequest!==void 0&&e.DeleteRequest!==null?u7(e.DeleteRequest,t):void 0,PutRequest:e.PutRequest!==void 0&&e.PutRequest!==null?R9(e.PutRequest,t):void 0}),EQ=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:wQ(n,t)),C=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"]}},TS=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),bQ=(e,t)=>TS(e,t).then(r=>t.utf8Encoder(r)),ee=async(e,t,r,n,i)=>{let{hostname:s,protocol:o="https",port:a,path:c}=await e.endpoint(),d={protocol:o,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+r:c+r,headers:t};return n!==void 0&&(d.hostname=n),i!==void 0&&(d.body=i),new C8.HttpRequest(d)},P=(e,t)=>bQ(e,t).then(r=>r.length?JSON.parse(r):{}),te=(e,t)=>{let r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var xS=u(Yd=>{"use strict";Object.defineProperty(Yd,"__esModule",{value:!0});Yd.BatchExecuteStatementCommand=void 0;var AQ=U(),TQ=N(),u1=W(),f1=Q(),CS=class extends TQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,AQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchExecuteStatementCommand",inputFilterSensitiveLog:u1.BatchExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:u1.BatchExecuteStatementOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,f1.serializeAws_json1_0BatchExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,f1.deserializeAws_json1_0BatchExecuteStatementCommand)(t,r)}};Yd.BatchExecuteStatementCommand=CS});var RS=u(Qd=>{"use strict";Object.defineProperty(Qd,"__esModule",{value:!0});Qd.BatchGetItemCommand=void 0;var CQ=U(),xQ=N(),m1=W(),p1=Q(),IS=class extends xQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,CQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchGetItemCommand",inputFilterSensitiveLog:m1.BatchGetItemInput.filterSensitiveLog,outputFilterSensitiveLog:m1.BatchGetItemOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,p1.serializeAws_json1_0BatchGetItemCommand)(t,r)}deserialize(t,r){return(0,p1.deserializeAws_json1_0BatchGetItemCommand)(t,r)}};Qd.BatchGetItemCommand=IS});var PS=u(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});Xd.BatchWriteItemCommand=void 0;var IQ=U(),RQ=N(),_1=W(),h1=Q(),NS=class extends RQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,IQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"BatchWriteItemCommand",inputFilterSensitiveLog:_1.BatchWriteItemInput.filterSensitiveLog,outputFilterSensitiveLog:_1.BatchWriteItemOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,h1.serializeAws_json1_0BatchWriteItemCommand)(t,r)}deserialize(t,r){return(0,h1.deserializeAws_json1_0BatchWriteItemCommand)(t,r)}};Xd.BatchWriteItemCommand=NS});var OS=u(Zd=>{"use strict";Object.defineProperty(Zd,"__esModule",{value:!0});Zd.CreateBackupCommand=void 0;var NQ=U(),PQ=N(),y1=W(),g1=Q(),DS=class extends PQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,NQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateBackupCommand",inputFilterSensitiveLog:y1.CreateBackupInput.filterSensitiveLog,outputFilterSensitiveLog:y1.CreateBackupOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,g1.serializeAws_json1_0CreateBackupCommand)(t,r)}deserialize(t,r){return(0,g1.deserializeAws_json1_0CreateBackupCommand)(t,r)}};Zd.CreateBackupCommand=DS});var qS=u(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.CreateGlobalTableCommand=void 0;var DQ=U(),OQ=N(),v1=W(),S1=Q(),LS=class extends OQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,DQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateGlobalTableCommand",inputFilterSensitiveLog:v1.CreateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:v1.CreateGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,S1.serializeAws_json1_0CreateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,S1.deserializeAws_json1_0CreateGlobalTableCommand)(t,r)}};eu.CreateGlobalTableCommand=LS});var zS=u(tu=>{"use strict";Object.defineProperty(tu,"__esModule",{value:!0});tu.CreateTableCommand=void 0;var LQ=U(),qQ=N(),w1=W(),E1=Q(),MS=class extends qQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,LQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"CreateTableCommand",inputFilterSensitiveLog:w1.CreateTableInput.filterSensitiveLog,outputFilterSensitiveLog:w1.CreateTableOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,E1.serializeAws_json1_0CreateTableCommand)(t,r)}deserialize(t,r){return(0,E1.deserializeAws_json1_0CreateTableCommand)(t,r)}};tu.CreateTableCommand=MS});var kS=u(ru=>{"use strict";Object.defineProperty(ru,"__esModule",{value:!0});ru.DeleteBackupCommand=void 0;var MQ=U(),zQ=N(),b1=W(),A1=Q(),jS=class extends zQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,MQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteBackupCommand",inputFilterSensitiveLog:b1.DeleteBackupInput.filterSensitiveLog,outputFilterSensitiveLog:b1.DeleteBackupOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,A1.serializeAws_json1_0DeleteBackupCommand)(t,r)}deserialize(t,r){return(0,A1.deserializeAws_json1_0DeleteBackupCommand)(t,r)}};ru.DeleteBackupCommand=jS});var US=u(nu=>{"use strict";Object.defineProperty(nu,"__esModule",{value:!0});nu.DeleteItemCommand=void 0;var jQ=U(),kQ=N(),T1=W(),C1=Q(),FS=class extends kQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,jQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteItemCommand",inputFilterSensitiveLog:T1.DeleteItemInput.filterSensitiveLog,outputFilterSensitiveLog:T1.DeleteItemOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,C1.serializeAws_json1_0DeleteItemCommand)(t,r)}deserialize(t,r){return(0,C1.deserializeAws_json1_0DeleteItemCommand)(t,r)}};nu.DeleteItemCommand=FS});var GS=u(iu=>{"use strict";Object.defineProperty(iu,"__esModule",{value:!0});iu.DeleteTableCommand=void 0;var FQ=U(),UQ=N(),x1=W(),I1=Q(),BS=class extends UQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,FQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DeleteTableCommand",inputFilterSensitiveLog:x1.DeleteTableInput.filterSensitiveLog,outputFilterSensitiveLog:x1.DeleteTableOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,I1.serializeAws_json1_0DeleteTableCommand)(t,r)}deserialize(t,r){return(0,I1.deserializeAws_json1_0DeleteTableCommand)(t,r)}};iu.DeleteTableCommand=BS});var VS=u(su=>{"use strict";Object.defineProperty(su,"__esModule",{value:!0});su.DescribeBackupCommand=void 0;var BQ=U(),GQ=N(),R1=W(),N1=Q(),$S=class extends GQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,BQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeBackupCommand",inputFilterSensitiveLog:R1.DescribeBackupInput.filterSensitiveLog,outputFilterSensitiveLog:R1.DescribeBackupOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,N1.serializeAws_json1_0DescribeBackupCommand)(t,r)}deserialize(t,r){return(0,N1.deserializeAws_json1_0DescribeBackupCommand)(t,r)}};su.DescribeBackupCommand=$S});var HS=u(ou=>{"use strict";Object.defineProperty(ou,"__esModule",{value:!0});ou.DescribeContinuousBackupsCommand=void 0;var $Q=U(),VQ=N(),P1=W(),D1=Q(),KS=class extends VQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,$Q.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContinuousBackupsCommand",inputFilterSensitiveLog:P1.DescribeContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:P1.DescribeContinuousBackupsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,D1.serializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,D1.deserializeAws_json1_0DescribeContinuousBackupsCommand)(t,r)}};ou.DescribeContinuousBackupsCommand=KS});var JS=u(au=>{"use strict";Object.defineProperty(au,"__esModule",{value:!0});au.DescribeContributorInsightsCommand=void 0;var KQ=U(),HQ=N(),O1=W(),L1=Q(),WS=class extends HQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,KQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeContributorInsightsCommand",inputFilterSensitiveLog:O1.DescribeContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:O1.DescribeContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,L1.serializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,L1.deserializeAws_json1_0DescribeContributorInsightsCommand)(t,r)}};au.DescribeContributorInsightsCommand=WS});var lu=u(cu=>{"use strict";Object.defineProperty(cu,"__esModule",{value:!0});cu.DescribeEndpointsCommand=void 0;var WQ=U(),JQ=N(),q1=W(),M1=Q(),YS=class extends JQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,WQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeEndpointsCommand",inputFilterSensitiveLog:q1.DescribeEndpointsRequest.filterSensitiveLog,outputFilterSensitiveLog:q1.DescribeEndpointsResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,M1.serializeAws_json1_0DescribeEndpointsCommand)(t,r)}deserialize(t,r){return(0,M1.deserializeAws_json1_0DescribeEndpointsCommand)(t,r)}};cu.DescribeEndpointsCommand=YS});var XS=u(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.DescribeExportCommand=void 0;var YQ=U(),QQ=N(),z1=W(),j1=Q(),QS=class extends QQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,YQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeExportCommand",inputFilterSensitiveLog:z1.DescribeExportInput.filterSensitiveLog,outputFilterSensitiveLog:z1.DescribeExportOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,j1.serializeAws_json1_0DescribeExportCommand)(t,r)}deserialize(t,r){return(0,j1.deserializeAws_json1_0DescribeExportCommand)(t,r)}};du.DescribeExportCommand=QS});var ew=u(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.DescribeGlobalTableCommand=void 0;var XQ=U(),ZQ=N(),k1=W(),F1=Q(),ZS=class extends ZQ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,XQ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableCommand",inputFilterSensitiveLog:k1.DescribeGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:k1.DescribeGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,F1.serializeAws_json1_0DescribeGlobalTableCommand)(t,r)}deserialize(t,r){return(0,F1.deserializeAws_json1_0DescribeGlobalTableCommand)(t,r)}};uu.DescribeGlobalTableCommand=ZS});var rw=u(fu=>{"use strict";Object.defineProperty(fu,"__esModule",{value:!0});fu.DescribeGlobalTableSettingsCommand=void 0;var eX=U(),tX=N(),U1=W(),B1=Q(),tw=class extends tX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,eX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeGlobalTableSettingsCommand",inputFilterSensitiveLog:U1.DescribeGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:U1.DescribeGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,B1.serializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,B1.deserializeAws_json1_0DescribeGlobalTableSettingsCommand)(t,r)}};fu.DescribeGlobalTableSettingsCommand=tw});var iw=u(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.DescribeKinesisStreamingDestinationCommand=void 0;var rX=U(),nX=N(),G1=W(),$1=Q(),nw=class extends nX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,rX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeKinesisStreamingDestinationCommand",inputFilterSensitiveLog:G1.DescribeKinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:G1.DescribeKinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,$1.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,$1.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand)(t,r)}};mu.DescribeKinesisStreamingDestinationCommand=nw});var ow=u(pu=>{"use strict";Object.defineProperty(pu,"__esModule",{value:!0});pu.DescribeLimitsCommand=void 0;var iX=U(),sX=N(),V1=W(),K1=Q(),sw=class extends sX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,iX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeLimitsCommand",inputFilterSensitiveLog:V1.DescribeLimitsInput.filterSensitiveLog,outputFilterSensitiveLog:V1.DescribeLimitsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,K1.serializeAws_json1_0DescribeLimitsCommand)(t,r)}deserialize(t,r){return(0,K1.deserializeAws_json1_0DescribeLimitsCommand)(t,r)}};pu.DescribeLimitsCommand=sw});var Oa=u(_u=>{"use strict";Object.defineProperty(_u,"__esModule",{value:!0});_u.DescribeTableCommand=void 0;var oX=U(),aX=N(),H1=W(),W1=Q(),aw=class extends aX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,oX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableCommand",inputFilterSensitiveLog:H1.DescribeTableInput.filterSensitiveLog,outputFilterSensitiveLog:H1.DescribeTableOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,W1.serializeAws_json1_0DescribeTableCommand)(t,r)}deserialize(t,r){return(0,W1.deserializeAws_json1_0DescribeTableCommand)(t,r)}};_u.DescribeTableCommand=aw});var lw=u(hu=>{"use strict";Object.defineProperty(hu,"__esModule",{value:!0});hu.DescribeTableReplicaAutoScalingCommand=void 0;var cX=U(),lX=N(),J1=W(),Y1=Q(),cw=class extends lX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,cX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTableReplicaAutoScalingCommand",inputFilterSensitiveLog:J1.DescribeTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:J1.DescribeTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,Y1.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,Y1.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand)(t,r)}};hu.DescribeTableReplicaAutoScalingCommand=cw});var uw=u(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});yu.DescribeTimeToLiveCommand=void 0;var dX=U(),uX=N(),Q1=W(),X1=Q(),dw=class extends uX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,dX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DescribeTimeToLiveCommand",inputFilterSensitiveLog:Q1.DescribeTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:Q1.DescribeTimeToLiveOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,X1.serializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,X1.deserializeAws_json1_0DescribeTimeToLiveCommand)(t,r)}};yu.DescribeTimeToLiveCommand=dw});var mw=u(gu=>{"use strict";Object.defineProperty(gu,"__esModule",{value:!0});gu.DisableKinesisStreamingDestinationCommand=void 0;var fX=U(),mX=N(),Z1=W(),eR=Q(),fw=class extends mX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,fX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"DisableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:Z1.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:Z1.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,eR.serializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,eR.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand)(t,r)}};gu.DisableKinesisStreamingDestinationCommand=fw});var _w=u(vu=>{"use strict";Object.defineProperty(vu,"__esModule",{value:!0});vu.EnableKinesisStreamingDestinationCommand=void 0;var pX=U(),_X=N(),tR=W(),rR=Q(),pw=class extends _X.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,pX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"EnableKinesisStreamingDestinationCommand",inputFilterSensitiveLog:tR.KinesisStreamingDestinationInput.filterSensitiveLog,outputFilterSensitiveLog:tR.KinesisStreamingDestinationOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,rR.serializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}deserialize(t,r){return(0,rR.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand)(t,r)}};vu.EnableKinesisStreamingDestinationCommand=pw});var yw=u(Su=>{"use strict";Object.defineProperty(Su,"__esModule",{value:!0});Su.ExecuteStatementCommand=void 0;var hX=U(),yX=N(),nR=W(),iR=Q(),hw=class extends yX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,hX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteStatementCommand",inputFilterSensitiveLog:nR.ExecuteStatementInput.filterSensitiveLog,outputFilterSensitiveLog:nR.ExecuteStatementOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,iR.serializeAws_json1_0ExecuteStatementCommand)(t,r)}deserialize(t,r){return(0,iR.deserializeAws_json1_0ExecuteStatementCommand)(t,r)}};Su.ExecuteStatementCommand=hw});var vw=u(wu=>{"use strict";Object.defineProperty(wu,"__esModule",{value:!0});wu.ExecuteTransactionCommand=void 0;var gX=U(),vX=N(),sR=W(),oR=Q(),gw=class extends vX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,gX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExecuteTransactionCommand",inputFilterSensitiveLog:sR.ExecuteTransactionInput.filterSensitiveLog,outputFilterSensitiveLog:sR.ExecuteTransactionOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,oR.serializeAws_json1_0ExecuteTransactionCommand)(t,r)}deserialize(t,r){return(0,oR.deserializeAws_json1_0ExecuteTransactionCommand)(t,r)}};wu.ExecuteTransactionCommand=gw});var ww=u(Eu=>{"use strict";Object.defineProperty(Eu,"__esModule",{value:!0});Eu.ExportTableToPointInTimeCommand=void 0;var SX=U(),wX=N(),aR=W(),cR=Q(),Sw=class extends wX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,SX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ExportTableToPointInTimeCommand",inputFilterSensitiveLog:aR.ExportTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:aR.ExportTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,cR.serializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,cR.deserializeAws_json1_0ExportTableToPointInTimeCommand)(t,r)}};Eu.ExportTableToPointInTimeCommand=Sw});var bw=u(bu=>{"use strict";Object.defineProperty(bu,"__esModule",{value:!0});bu.GetItemCommand=void 0;var EX=U(),bX=N(),lR=W(),dR=Q(),Ew=class extends bX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,EX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"GetItemCommand",inputFilterSensitiveLog:lR.GetItemInput.filterSensitiveLog,outputFilterSensitiveLog:lR.GetItemOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,dR.serializeAws_json1_0GetItemCommand)(t,r)}deserialize(t,r){return(0,dR.deserializeAws_json1_0GetItemCommand)(t,r)}};bu.GetItemCommand=Ew});var Tw=u(Au=>{"use strict";Object.defineProperty(Au,"__esModule",{value:!0});Au.ListBackupsCommand=void 0;var AX=U(),TX=N(),uR=W(),fR=Q(),Aw=class extends TX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,AX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListBackupsCommand",inputFilterSensitiveLog:uR.ListBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:uR.ListBackupsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,fR.serializeAws_json1_0ListBackupsCommand)(t,r)}deserialize(t,r){return(0,fR.deserializeAws_json1_0ListBackupsCommand)(t,r)}};Au.ListBackupsCommand=Aw});var Cu=u(Tu=>{"use strict";Object.defineProperty(Tu,"__esModule",{value:!0});Tu.ListContributorInsightsCommand=void 0;var CX=U(),xX=N(),mR=W(),pR=Q(),Cw=class extends xX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,CX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListContributorInsightsCommand",inputFilterSensitiveLog:mR.ListContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:mR.ListContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,pR.serializeAws_json1_0ListContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,pR.deserializeAws_json1_0ListContributorInsightsCommand)(t,r)}};Tu.ListContributorInsightsCommand=Cw});var Iu=u(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.ListExportsCommand=void 0;var IX=U(),RX=N(),_R=W(),hR=Q(),xw=class extends RX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,IX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListExportsCommand",inputFilterSensitiveLog:_R.ListExportsInput.filterSensitiveLog,outputFilterSensitiveLog:_R.ListExportsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,hR.serializeAws_json1_0ListExportsCommand)(t,r)}deserialize(t,r){return(0,hR.deserializeAws_json1_0ListExportsCommand)(t,r)}};xu.ListExportsCommand=xw});var Rw=u(Ru=>{"use strict";Object.defineProperty(Ru,"__esModule",{value:!0});Ru.ListGlobalTablesCommand=void 0;var NX=U(),PX=N(),yR=W(),gR=Q(),Iw=class extends PX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,NX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListGlobalTablesCommand",inputFilterSensitiveLog:yR.ListGlobalTablesInput.filterSensitiveLog,outputFilterSensitiveLog:yR.ListGlobalTablesOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,gR.serializeAws_json1_0ListGlobalTablesCommand)(t,r)}deserialize(t,r){return(0,gR.deserializeAws_json1_0ListGlobalTablesCommand)(t,r)}};Ru.ListGlobalTablesCommand=Iw});var Pu=u(Nu=>{"use strict";Object.defineProperty(Nu,"__esModule",{value:!0});Nu.ListTablesCommand=void 0;var DX=U(),OX=N(),vR=W(),SR=Q(),Nw=class extends OX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,DX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTablesCommand",inputFilterSensitiveLog:vR.ListTablesInput.filterSensitiveLog,outputFilterSensitiveLog:vR.ListTablesOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,SR.serializeAws_json1_0ListTablesCommand)(t,r)}deserialize(t,r){return(0,SR.deserializeAws_json1_0ListTablesCommand)(t,r)}};Nu.ListTablesCommand=Nw});var Dw=u(Du=>{"use strict";Object.defineProperty(Du,"__esModule",{value:!0});Du.ListTagsOfResourceCommand=void 0;var LX=U(),qX=N(),wR=W(),ER=Q(),Pw=class extends qX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,LX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ListTagsOfResourceCommand",inputFilterSensitiveLog:wR.ListTagsOfResourceInput.filterSensitiveLog,outputFilterSensitiveLog:wR.ListTagsOfResourceOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,ER.serializeAws_json1_0ListTagsOfResourceCommand)(t,r)}deserialize(t,r){return(0,ER.deserializeAws_json1_0ListTagsOfResourceCommand)(t,r)}};Du.ListTagsOfResourceCommand=Pw});var Lw=u(Ou=>{"use strict";Object.defineProperty(Ou,"__esModule",{value:!0});Ou.PutItemCommand=void 0;var MX=U(),zX=N(),bR=W(),AR=Q(),Ow=class extends zX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,MX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"PutItemCommand",inputFilterSensitiveLog:bR.PutItemInput.filterSensitiveLog,outputFilterSensitiveLog:bR.PutItemOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,AR.serializeAws_json1_0PutItemCommand)(t,r)}deserialize(t,r){return(0,AR.deserializeAws_json1_0PutItemCommand)(t,r)}};Ou.PutItemCommand=Ow});var qu=u(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.QueryCommand=void 0;var jX=U(),kX=N(),TR=W(),CR=Q(),qw=class extends kX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,jX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"QueryCommand",inputFilterSensitiveLog:TR.QueryInput.filterSensitiveLog,outputFilterSensitiveLog:TR.QueryOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,CR.serializeAws_json1_0QueryCommand)(t,r)}deserialize(t,r){return(0,CR.deserializeAws_json1_0QueryCommand)(t,r)}};Lu.QueryCommand=qw});var zw=u(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});Mu.RestoreTableFromBackupCommand=void 0;var FX=U(),UX=N(),xR=W(),IR=Q(),Mw=class extends UX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,FX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableFromBackupCommand",inputFilterSensitiveLog:xR.RestoreTableFromBackupInput.filterSensitiveLog,outputFilterSensitiveLog:xR.RestoreTableFromBackupOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,IR.serializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}deserialize(t,r){return(0,IR.deserializeAws_json1_0RestoreTableFromBackupCommand)(t,r)}};Mu.RestoreTableFromBackupCommand=Mw});var kw=u(zu=>{"use strict";Object.defineProperty(zu,"__esModule",{value:!0});zu.RestoreTableToPointInTimeCommand=void 0;var BX=U(),GX=N(),RR=W(),NR=Q(),jw=class extends GX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,BX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"RestoreTableToPointInTimeCommand",inputFilterSensitiveLog:RR.RestoreTableToPointInTimeInput.filterSensitiveLog,outputFilterSensitiveLog:RR.RestoreTableToPointInTimeOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,NR.serializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}deserialize(t,r){return(0,NR.deserializeAws_json1_0RestoreTableToPointInTimeCommand)(t,r)}};zu.RestoreTableToPointInTimeCommand=jw});var ku=u(ju=>{"use strict";Object.defineProperty(ju,"__esModule",{value:!0});ju.ScanCommand=void 0;var $X=U(),VX=N(),PR=W(),DR=Q(),Fw=class extends VX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,$X.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"ScanCommand",inputFilterSensitiveLog:PR.ScanInput.filterSensitiveLog,outputFilterSensitiveLog:PR.ScanOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,DR.serializeAws_json1_0ScanCommand)(t,r)}deserialize(t,r){return(0,DR.deserializeAws_json1_0ScanCommand)(t,r)}};ju.ScanCommand=Fw});var Bw=u(Fu=>{"use strict";Object.defineProperty(Fu,"__esModule",{value:!0});Fu.TagResourceCommand=void 0;var KX=U(),HX=N(),WX=W(),OR=Q(),Uw=class extends HX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,KX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TagResourceCommand",inputFilterSensitiveLog:WX.TagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,OR.serializeAws_json1_0TagResourceCommand)(t,r)}deserialize(t,r){return(0,OR.deserializeAws_json1_0TagResourceCommand)(t,r)}};Fu.TagResourceCommand=Uw});var $w=u(Uu=>{"use strict";Object.defineProperty(Uu,"__esModule",{value:!0});Uu.TransactGetItemsCommand=void 0;var JX=U(),YX=N(),LR=W(),qR=Q(),Gw=class extends YX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,JX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactGetItemsCommand",inputFilterSensitiveLog:LR.TransactGetItemsInput.filterSensitiveLog,outputFilterSensitiveLog:LR.TransactGetItemsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,qR.serializeAws_json1_0TransactGetItemsCommand)(t,r)}deserialize(t,r){return(0,qR.deserializeAws_json1_0TransactGetItemsCommand)(t,r)}};Uu.TransactGetItemsCommand=Gw});var Kw=u(Bu=>{"use strict";Object.defineProperty(Bu,"__esModule",{value:!0});Bu.TransactWriteItemsCommand=void 0;var QX=U(),XX=N(),MR=W(),zR=Q(),Vw=class extends XX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,QX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"TransactWriteItemsCommand",inputFilterSensitiveLog:MR.TransactWriteItemsInput.filterSensitiveLog,outputFilterSensitiveLog:MR.TransactWriteItemsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,zR.serializeAws_json1_0TransactWriteItemsCommand)(t,r)}deserialize(t,r){return(0,zR.deserializeAws_json1_0TransactWriteItemsCommand)(t,r)}};Bu.TransactWriteItemsCommand=Vw});var Ww=u(Gu=>{"use strict";Object.defineProperty(Gu,"__esModule",{value:!0});Gu.UntagResourceCommand=void 0;var ZX=U(),eZ=N(),tZ=W(),jR=Q(),Hw=class extends eZ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,ZX.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UntagResourceCommand",inputFilterSensitiveLog:tZ.UntagResourceInput.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,jR.serializeAws_json1_0UntagResourceCommand)(t,r)}deserialize(t,r){return(0,jR.deserializeAws_json1_0UntagResourceCommand)(t,r)}};Gu.UntagResourceCommand=Hw});var Yw=u($u=>{"use strict";Object.defineProperty($u,"__esModule",{value:!0});$u.UpdateContinuousBackupsCommand=void 0;var rZ=U(),nZ=N(),kR=W(),FR=Q(),Jw=class extends nZ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,rZ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContinuousBackupsCommand",inputFilterSensitiveLog:kR.UpdateContinuousBackupsInput.filterSensitiveLog,outputFilterSensitiveLog:kR.UpdateContinuousBackupsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,FR.serializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}deserialize(t,r){return(0,FR.deserializeAws_json1_0UpdateContinuousBackupsCommand)(t,r)}};$u.UpdateContinuousBackupsCommand=Jw});var Xw=u(Vu=>{"use strict";Object.defineProperty(Vu,"__esModule",{value:!0});Vu.UpdateContributorInsightsCommand=void 0;var iZ=U(),sZ=N(),UR=W(),BR=Q(),Qw=class extends sZ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,iZ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateContributorInsightsCommand",inputFilterSensitiveLog:UR.UpdateContributorInsightsInput.filterSensitiveLog,outputFilterSensitiveLog:UR.UpdateContributorInsightsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,BR.serializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}deserialize(t,r){return(0,BR.deserializeAws_json1_0UpdateContributorInsightsCommand)(t,r)}};Vu.UpdateContributorInsightsCommand=Qw});var e0=u(Ku=>{"use strict";Object.defineProperty(Ku,"__esModule",{value:!0});Ku.UpdateGlobalTableCommand=void 0;var oZ=U(),aZ=N(),GR=W(),$R=Q(),Zw=class extends aZ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,oZ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableCommand",inputFilterSensitiveLog:GR.UpdateGlobalTableInput.filterSensitiveLog,outputFilterSensitiveLog:GR.UpdateGlobalTableOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,$R.serializeAws_json1_0UpdateGlobalTableCommand)(t,r)}deserialize(t,r){return(0,$R.deserializeAws_json1_0UpdateGlobalTableCommand)(t,r)}};Ku.UpdateGlobalTableCommand=Zw});var r0=u(Hu=>{"use strict";Object.defineProperty(Hu,"__esModule",{value:!0});Hu.UpdateGlobalTableSettingsCommand=void 0;var cZ=U(),lZ=N(),VR=W(),KR=Q(),t0=class extends lZ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,cZ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateGlobalTableSettingsCommand",inputFilterSensitiveLog:VR.UpdateGlobalTableSettingsInput.filterSensitiveLog,outputFilterSensitiveLog:VR.UpdateGlobalTableSettingsOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,KR.serializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}deserialize(t,r){return(0,KR.deserializeAws_json1_0UpdateGlobalTableSettingsCommand)(t,r)}};Hu.UpdateGlobalTableSettingsCommand=t0});var i0=u(Wu=>{"use strict";Object.defineProperty(Wu,"__esModule",{value:!0});Wu.UpdateItemCommand=void 0;var dZ=U(),uZ=N(),HR=W(),WR=Q(),n0=class extends uZ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,dZ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateItemCommand",inputFilterSensitiveLog:HR.UpdateItemInput.filterSensitiveLog,outputFilterSensitiveLog:HR.UpdateItemOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,WR.serializeAws_json1_0UpdateItemCommand)(t,r)}deserialize(t,r){return(0,WR.deserializeAws_json1_0UpdateItemCommand)(t,r)}};Wu.UpdateItemCommand=n0});var o0=u(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.UpdateTableCommand=void 0;var fZ=U(),mZ=N(),JR=W(),YR=Q(),s0=class extends mZ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,fZ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableCommand",inputFilterSensitiveLog:JR.UpdateTableInput.filterSensitiveLog,outputFilterSensitiveLog:JR.UpdateTableOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,YR.serializeAws_json1_0UpdateTableCommand)(t,r)}deserialize(t,r){return(0,YR.deserializeAws_json1_0UpdateTableCommand)(t,r)}};Ju.UpdateTableCommand=s0});var c0=u(Yu=>{"use strict";Object.defineProperty(Yu,"__esModule",{value:!0});Yu.UpdateTableReplicaAutoScalingCommand=void 0;var pZ=U(),_Z=N(),QR=W(),XR=Q(),a0=class extends _Z.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,pZ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTableReplicaAutoScalingCommand",inputFilterSensitiveLog:QR.UpdateTableReplicaAutoScalingInput.filterSensitiveLog,outputFilterSensitiveLog:QR.UpdateTableReplicaAutoScalingOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,XR.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}deserialize(t,r){return(0,XR.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand)(t,r)}};Yu.UpdateTableReplicaAutoScalingCommand=a0});var d0=u(Qu=>{"use strict";Object.defineProperty(Qu,"__esModule",{value:!0});Qu.UpdateTimeToLiveCommand=void 0;var hZ=U(),yZ=N(),ZR=W(),eN=Q(),l0=class extends yZ.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,hZ.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"DynamoDBClient",commandName:"UpdateTimeToLiveCommand",inputFilterSensitiveLog:ZR.UpdateTimeToLiveInput.filterSensitiveLog,outputFilterSensitiveLog:ZR.UpdateTimeToLiveOutput.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,eN.serializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}deserialize(t,r){return(0,eN.deserializeAws_json1_0UpdateTimeToLiveCommand)(t,r)}};Qu.UpdateTimeToLiveCommand=l0});var tN=u(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.booleanSelector=Li.SelectorType=void 0;var gZ;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(gZ=Li.SelectorType||(Li.SelectorType={}));var vZ=(e,t,r)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}};Li.booleanSelector=vZ});var f0=u(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});var SZ=q();SZ.__exportStar(tN(),u0)});var rN=u(Xt=>{"use strict";Object.defineProperty(Xt,"__esModule",{value:!0});Xt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=Xt.DEFAULT_USE_DUALSTACK_ENDPOINT=Xt.CONFIG_USE_DUALSTACK_ENDPOINT=Xt.ENV_USE_DUALSTACK_ENDPOINT=void 0;var Xu=f0();Xt.ENV_USE_DUALSTACK_ENDPOINT="AWS_USE_DUALSTACK_ENDPOINT";Xt.CONFIG_USE_DUALSTACK_ENDPOINT="use_dualstack_endpoint";Xt.DEFAULT_USE_DUALSTACK_ENDPOINT=!1;Xt.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Xu.booleanSelector)(e,Xt.ENV_USE_DUALSTACK_ENDPOINT,Xu.SelectorType.ENV),configFileSelector:e=>(0,Xu.booleanSelector)(e,Xt.CONFIG_USE_DUALSTACK_ENDPOINT,Xu.SelectorType.CONFIG),default:!1}});var nN=u(Zt=>{"use strict";Object.defineProperty(Zt,"__esModule",{value:!0});Zt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=Zt.DEFAULT_USE_FIPS_ENDPOINT=Zt.CONFIG_USE_FIPS_ENDPOINT=Zt.ENV_USE_FIPS_ENDPOINT=void 0;var Zu=f0();Zt.ENV_USE_FIPS_ENDPOINT="AWS_USE_FIPS_ENDPOINT";Zt.CONFIG_USE_FIPS_ENDPOINT="use_fips_endpoint";Zt.DEFAULT_USE_FIPS_ENDPOINT=!1;Zt.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>(0,Zu.booleanSelector)(e,Zt.ENV_USE_FIPS_ENDPOINT,Zu.SelectorType.ENV),configFileSelector:e=>(0,Zu.booleanSelector)(e,Zt.CONFIG_USE_FIPS_ENDPOINT,Zu.SelectorType.CONFIG),default:!1}});var iN=u(ef=>{"use strict";Object.defineProperty(ef,"__esModule",{value:!0});ef.normalizeProvider=void 0;var wZ=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};ef.normalizeProvider=wZ});var p0=u(m0=>{"use strict";Object.defineProperty(m0,"__esModule",{value:!0});var EZ=q();EZ.__exportStar(iN(),m0)});var oN=u(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.resolveCustomEndpointsConfig=void 0;var sN=p0(),bZ=e=>{var t;let{endpoint:r,urlParser:n}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:(0,sN.normalizeProvider)(typeof r=="string"?n(r):r),isCustomEndpoint:!0,useDualstackEndpoint:(0,sN.normalizeProvider)(e.useDualstackEndpoint)}};tf.resolveCustomEndpointsConfig=bZ});var aN=u(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.getEndpointFromRegion=void 0;var AZ=async e=>{var t;let{tls:r=!0}=e,n=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(n))throw new Error("Invalid region in client config");let s=await e.useDualstackEndpoint(),o=await e.useFipsEndpoint(),{hostname:a}=(t=await e.regionInfoProvider(n,{useDualstackEndpoint:s,useFipsEndpoint:o}))!==null&&t!==void 0?t:{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${r?"https:":"http:"}//${a}`)};rf.getEndpointFromRegion=AZ});var lN=u(nf=>{"use strict";Object.defineProperty(nf,"__esModule",{value:!0});nf.resolveEndpointsConfig=void 0;var cN=p0(),TZ=aN(),CZ=e=>{var t;let r=(0,cN.normalizeProvider)(e.useDualstackEndpoint),{endpoint:n,useFipsEndpoint:i,urlParser:s}=e;return{...e,tls:(t=e.tls)!==null&&t!==void 0?t:!0,endpoint:n?(0,cN.normalizeProvider)(typeof n=="string"?s(n):n):()=>(0,TZ.getEndpointFromRegion)({...e,useDualstackEndpoint:r,useFipsEndpoint:i}),isCustomEndpoint:!!n,useDualstackEndpoint:r}};nf.resolveEndpointsConfig=CZ});var dN=u(Ds=>{"use strict";Object.defineProperty(Ds,"__esModule",{value:!0});var sf=q();sf.__exportStar(rN(),Ds);sf.__exportStar(nN(),Ds);sf.__exportStar(oN(),Ds);sf.__exportStar(lN(),Ds)});var uN=u(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});er.NODE_REGION_CONFIG_FILE_OPTIONS=er.NODE_REGION_CONFIG_OPTIONS=er.REGION_INI_NAME=er.REGION_ENV_NAME=void 0;er.REGION_ENV_NAME="AWS_REGION";er.REGION_INI_NAME="region";er.NODE_REGION_CONFIG_OPTIONS={environmentVariableSelector:e=>e[er.REGION_ENV_NAME],configFileSelector:e=>e[er.REGION_INI_NAME],default:()=>{throw new Error("Region is missing")}};er.NODE_REGION_CONFIG_FILE_OPTIONS={preferredFile:"credentials"}});var _0=u(of=>{"use strict";Object.defineProperty(of,"__esModule",{value:!0});of.isFipsRegion=void 0;var xZ=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips"));of.isFipsRegion=xZ});var fN=u(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.getRealRegion=void 0;var IZ=_0(),RZ=e=>(0,IZ.isFipsRegion)(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e;af.getRealRegion=RZ});var pN=u(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.resolveRegionConfig=void 0;var mN=fN(),NZ=_0(),PZ=e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return{...e,region:async()=>{if(typeof t=="string")return(0,mN.getRealRegion)(t);let n=await t();return(0,mN.getRealRegion)(n)},useFipsEndpoint:async()=>{let n=typeof t=="string"?t:await t();return(0,NZ.isFipsRegion)(n)?!0:typeof r=="boolean"?Promise.resolve(r):r()}}};cf.resolveRegionConfig=PZ});var hN=u(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});var _N=q();_N.__exportStar(uN(),lf);_N.__exportStar(pN(),lf)});var gN=u(yN=>{"use strict";Object.defineProperty(yN,"__esModule",{value:!0})});var SN=u(vN=>{"use strict";Object.defineProperty(vN,"__esModule",{value:!0})});var wN=u(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.getHostnameFromVariants=void 0;var DZ=(e=[],{useFipsEndpoint:t,useDualstackEndpoint:r})=>{var n;return(n=e.find(({tags:i})=>t===i.includes("fips")&&r===i.includes("dualstack")))===null||n===void 0?void 0:n.hostname};df.getHostnameFromVariants=DZ});var EN=u(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.getResolvedHostname=void 0;var OZ=(e,{regionHostname:t,partitionHostname:r})=>t||(r?r.replace("{region}",e):void 0);uf.getResolvedHostname=OZ});var bN=u(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.getResolvedPartition=void 0;var LZ=(e,{partitionHash:t})=>{var r;return(r=Object.keys(t||{}).find(n=>t[n].regions.includes(e)))!==null&&r!==void 0?r:"aws"};ff.getResolvedPartition=LZ});var AN=u(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.getResolvedSigningRegion=void 0;var qZ=(e,{signingRegion:t,regionRegex:r,useFipsEndpoint:n})=>{if(t)return t;if(n){let i=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(i);if(s)return s[0].slice(1,-1)}};mf.getResolvedSigningRegion=qZ});var CN=u(pf=>{"use strict";Object.defineProperty(pf,"__esModule",{value:!0});pf.getRegionInfo=void 0;var TN=wN(),MZ=EN(),zZ=bN(),jZ=AN(),kZ=(e,{useFipsEndpoint:t=!1,useDualstackEndpoint:r=!1,signingService:n,regionHash:i,partitionHash:s})=>{var o,a,c,d,f,_;let m=(0,zZ.getResolvedPartition)(e,{partitionHash:s}),h=e in i?e:(a=(o=s[m])===null||o===void 0?void 0:o.endpoint)!==null&&a!==void 0?a:e,g={useFipsEndpoint:t,useDualstackEndpoint:r},y=(0,TN.getHostnameFromVariants)((c=i[h])===null||c===void 0?void 0:c.variants,g),A=(0,TN.getHostnameFromVariants)((d=s[m])===null||d===void 0?void 0:d.variants,g),R=(0,MZ.getResolvedHostname)(h,{regionHostname:y,partitionHostname:A});if(R===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:h,useFipsEndpoint:t,useDualstackEndpoint:r}}`);let T=(0,jZ.getResolvedSigningRegion)(R,{signingRegion:(f=i[h])===null||f===void 0?void 0:f.signingRegion,regionRegex:s[m].regionRegex,useFipsEndpoint:t});return{partition:m,signingService:n,hostname:R,...T&&{signingRegion:T},...((_=i[h])===null||_===void 0?void 0:_.signingService)&&{signingService:i[h].signingService}}};pf.getRegionInfo=kZ});var xN=u(La=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var h0=q();h0.__exportStar(gN(),La);h0.__exportStar(SN(),La);h0.__exportStar(CN(),La)});var xt=u(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var y0=q();y0.__exportStar(dN(),qa);y0.__exportStar(hN(),qa);y0.__exportStar(xN(),qa)});var Ma=u(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.getContentLengthPlugin=_n.contentLengthMiddlewareOptions=_n.contentLengthMiddleware=void 0;var FZ=Ct(),IN="content-length";function RN(e){return t=>async r=>{let n=r.request;if(FZ.HttpRequest.isInstance(n)){let{body:i,headers:s}=n;if(i&&Object.keys(s).map(o=>o.toLowerCase()).indexOf(IN)===-1)try{let o=e(i);n.headers={...n.headers,[IN]:String(o)}}catch{}}return t({...r,request:n})}}_n.contentLengthMiddleware=RN;_n.contentLengthMiddlewareOptions={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0};var UZ=e=>({applyToStack:t=>{t.add(RN(e.bodyLengthChecker),_n.contentLengthMiddlewareOptions)}});_n.getContentLengthPlugin=UZ});var DN=u(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS=void 0;var NN=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],g0="endpoint_discovery_enabled",PN=e=>["false","0"].indexOf(e)>=0;_f.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS={environmentVariableSelector:e=>{for(let t=0;t<NN.length;t++){let r=NN[t];if(r in e){let n=e[r];if(n==="")throw Error(`Environment variable ${r} can't be empty of undefined, got "${n}"`);return!PN(n)}}},configFileSelector:e=>{if(g0 in e){let t=e[g0];if(t===void 0)throw Error(`Shared config entry ${g0} can't be undefined, got "${t}"`);return!PN(t)}},default:void 0}});var ON=u(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.getCacheKey=void 0;var BZ=async(e,t,r)=>{let{accessKeyId:n}=await t.credentials(),{identifiers:i}=r;return JSON.stringify({...n&&{accessKeyId:n},...i&&{commandName:e,identifiers:Object.entries(i).sort().reduce((s,[o,a])=>({...s,[o]:a}),{})}})};hf.getCacheKey=BZ});var LN=u(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.updateDiscoveredEndpointInCache=void 0;var hn={},GZ=async(e,t)=>new Promise((r,n)=>{let{endpointCache:i}=e,{cacheKey:s,commandName:o,identifiers:a}=t,c=i.get(s);if(c&&c.length===1&&c[0].Address==="")t.isDiscoveredEndpointRequired?(hn[s]||(hn[s]=[]),hn[s].push({resolve:r,reject:n})):r();else if(c&&c.length>0)r();else{let d=[{Address:"",CachePeriodInMinutes:1}];i.set(s,d);let f=new t.endpointDiscoveryCommandCtor({Operation:o.slice(0,-7),Identifiers:a});f.resolveMiddleware(t.clientStack,e,t.options)(f).then(m=>{i.set(s,m.output.Endpoints),hn[s]&&(hn[s].forEach(({resolve:h})=>{h()}),delete hn[s]),r()}).catch(m=>{var h;(m.name==="InvalidEndpointException"||((h=m.$metadata)===null||h===void 0?void 0:h.httpStatusCode)===421)&&i.delete(s);let g=Object.assign(new Error("The operation to discover endpoint failed. Please retry, or provide a custom endpoint and disable endpoint discovery to proceed."),{reason:m});hn[s]&&(hn[s].forEach(({reject:y})=>{y(g)}),delete hn[s]),t.isDiscoveredEndpointRequired?n(g):(i.set(s,d),r())})}});yf.updateDiscoveredEndpointInCache=GZ});var MN=u(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.endpointDiscoveryMiddleware=void 0;var $Z=Ct(),VZ=ON(),qN=LN(),KZ=(e,t)=>(r,n)=>async i=>{if(e.isCustomEndpoint){if(e.isClientEndpointDiscoveryEnabled)throw new Error("Custom endpoint is supplied; endpointDiscoveryEnabled must not be true.");return r(i)}let{endpointDiscoveryCommandCtor:s}=e,{isDiscoveredEndpointRequired:o,identifiers:a}=t,{clientName:c,commandName:d}=n,f=await e.endpointDiscoveryEnabled(),_=await(0,VZ.getCacheKey)(d,e,{identifiers:a});if(o){if(f===!1)throw new Error(`Endpoint Discovery is disabled but ${d} on ${c} requires it. Please check your configurations.`);await(0,qN.updateDiscoveredEndpointInCache)(e,{...t,commandName:d,cacheKey:_,endpointDiscoveryCommandCtor:s})}else f&&(0,qN.updateDiscoveredEndpointInCache)(e,{...t,commandName:d,cacheKey:_,endpointDiscoveryCommandCtor:s});let{request:m}=i;if(_&&$Z.HttpRequest.isInstance(m)){let h=e.endpointCache.getEndpoint(_);h&&(m.hostname=h)}return r(i)};gf.endpointDiscoveryMiddleware=KZ});var zN=u(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.getEndpointDiscoveryOptionalPlugin=Ut.getEndpointDiscoveryRequiredPlugin=Ut.getEndpointDiscoveryPlugin=Ut.endpointDiscoveryMiddlewareOptions=void 0;var v0=MN();Ut.endpointDiscoveryMiddlewareOptions={name:"endpointDiscoveryMiddleware",step:"build",tags:["ENDPOINT_DISCOVERY"],override:!0};var HZ=(e,t)=>({applyToStack:r=>{r.add((0,v0.endpointDiscoveryMiddleware)(e,t),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryPlugin=HZ;var WZ=(e,t)=>({applyToStack:r=>{r.add((0,v0.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!0}),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryRequiredPlugin=WZ;var JZ=(e,t)=>({applyToStack:r=>{r.add((0,v0.endpointDiscoveryMiddleware)(e,{...t,isDiscoveredEndpointRequired:!1}),Ut.endpointDiscoveryMiddlewareOptions)}});Ut.getEndpointDiscoveryOptionalPlugin=JZ});var kN=u(jN=>{"use strict";Object.defineProperty(jN,"__esModule",{value:!0})});var UN=u((u1e,FN)=>{function yn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}yn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(yn.prototype[Symbol.iterator]=function(){return this});yn.of=function(){var e=arguments,t=e.length,r=0;return new yn(function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}})};yn.empty=function(){var e=new yn(null);return e.done=!0,e};yn.is=function(e){return e instanceof yn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};FN.exports=yn});var S0=u((f1e,VN)=>{var BN=typeof ArrayBuffer<"u",GN=typeof Symbol<"u";function $N(e,t){var r,n,i,s,o;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)||BN&&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(GN&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;o=r.next(),o.done!==!0;)t(o.value,i),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)}$N.forEachWithNullKeys=function(e,t){var r,n,i,s,o;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)||BN&&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(a){t(a,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(GN&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;o=r.next(),o.done!==!0;)t(o.value,null),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)};VN.exports=$N});var w0=u(br=>{var YZ=Math.pow(2,8)-1,QZ=Math.pow(2,16)-1,XZ=Math.pow(2,32)-1,ZZ=Math.pow(2,7)-1,eee=Math.pow(2,15)-1,tee=Math.pow(2,31)-1;br.getPointerArray=function(e){var t=e-1;return t<=YZ?Uint8Array:t<=QZ?Uint16Array:t<=XZ?Uint32Array:Float64Array};br.getSignedPointerArray=function(e){var t=e-1;return t<=ZZ?Int8Array:t<=eee?Int16Array:t<=tee?Int32Array:Float64Array};br.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 ree={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};br.getMinimalRepresentation=function(e,t){var r=null,n=0,i,s,o,a,c;for(a=0,c=e.length;a<c;a++)o=t?t(e[a]):e[a],s=br.getNumberType(o),i=ree[s.name],i>n&&(n=i,r=s);return r};br.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};br.concat=function(){var e=0,t,r,n;for(t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,r=0;t<n;t++)i.set(arguments[t],r),r+=arguments[t].length;return i};br.indices=function(e){for(var t=br.getPointerArray(e),r=new t(e),n=0;n<e;n++)r[n]=n;return r}});var WN=u(za=>{var KN=S0(),HN=w0();function nee(e){return Array.isArray(e)||HN.isTypedArray(e)}function E0(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function iee(e){var t=E0(e),r=typeof t=="number"?new Array(t):[],n=0;return KN(e,function(i){r[n++]=i}),r}function see(e){var t=E0(e),r=typeof t=="number"?HN.getPointerArray(t):Array,n=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new r(t):[],s=0;return KN(e,function(o){n[s]=o,i[s]=s++}),[n,i]}za.isArrayLike=nee;za.guessLength=E0;za.toArray=iee;za.toArrayWithIndices=see});var YN=u((_1e,JN)=>{var b0=UN(),oee=S0(),aee=w0(),cee=WN();function $e(e,t,r){if(arguments.length<2&&(r=e,e=null,t=null),this.capacity=r,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var n=aee.getPointerArray(r);this.forward=new n(r),this.backward=new n(r),this.K=typeof e=="function"?new e(r):new Array(r),this.V=typeof t=="function"?new t(r):new Array(r),this.size=0,this.head=0,this.tail=0,this.items={}}$e.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};$e.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var r=this.backward[e],n=this.forward[e];return this.tail===e?this.tail=r:this.backward[n]=r,this.forward[r]=n,this.backward[t]=e,this.head=e,this.forward[e]=t,this};$e.prototype.set=function(e,t){var r=this.items[e];if(typeof r<"u"){this.splayOnTop(r),this.V[r]=t;return}this.size<this.capacity?r=this.size++:(r=this.tail,this.tail=this.backward[r],delete this.items[this.K[r]]),this.items[e]=r,this.K[r]=e,this.V[r]=t,this.forward[r]=this.head,this.backward[this.head]=r,this.head=r};$e.prototype.setpop=function(e,t){var r=null,n=null,i=this.items[e];return typeof i<"u"?(this.splayOnTop(i),r=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:r}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],r=this.V[i],n=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,n?{evicted:!0,key:n,value:r}:null)};$e.prototype.has=function(e){return e in this.items};$e.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};$e.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};$e.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var r=0,n=this.size,i=this.head,s=this.K,o=this.V,a=this.forward;r<n;)e.call(t,o[i],s[i],this),i=a[i],r++};$e.prototype.keys=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.forward;return new b0(function(){if(e>=t)return{done:!0};var s=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:s}})};$e.prototype.values=function(){var e=0,t=this.size,r=this.head,n=this.V,i=this.forward;return new b0(function(){if(e>=t)return{done:!0};var s=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:s}})};$e.prototype.entries=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.V,s=this.forward;return new b0(function(){if(e>=t)return{done:!0};var o=n[r],a=i[r];return e++,e<t&&(r=s[r]),{done:!1,value:[o,a]}})};typeof Symbol<"u"&&($e.prototype[Symbol.iterator]=$e.prototype.entries);$e.prototype.inspect=function(){for(var e=new Map,t=this.entries(),r;r=t.next(),!r.done;)e.set(r.value[0],r.value[1]);return Object.defineProperty(e,"constructor",{value:$e,enumerable:!1}),e};typeof Symbol<"u"&&($e.prototype[Symbol.for("nodejs.util.inspect.custom")]=$e.prototype.inspect);$e.from=function(e,t,r,n){if(arguments.length<2){if(n=cee.guessLength(e),typeof n!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(n=t,t=null,r=null);var i=new $e(t,r,n);return oee(e,function(s,o){i.set(o,s)}),i};JN.exports=$e});var QN=u(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.EndpointCache=void 0;var lee=q(),dee=lee.__importDefault(YN()),A0=class{constructor(t){this.cache=new dee.default(t)}getEndpoint(t){let r=this.get(t);if(!r||r.length===0)return;let n=r.map(i=>i.Address);return n[Math.floor(Math.random()*n.length)]}get(t){if(!this.has(t))return;let r=this.cache.get(t);if(!r)return;let n=Date.now(),i=r.filter(s=>n<s.Expires);if(i.length===0){this.delete(t);return}return i}set(t,r){let n=Date.now();this.cache.set(t,r.map(({Address:i,CachePeriodInMinutes:s})=>({Address:i,Expires:n+s*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let r=this.cache.peek(t);return r?r.length>0:!1}clear(){this.cache.clear()}};vf.EndpointCache=A0});var ZN=u(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});var XN=q();XN.__exportStar(kN(),Sf);XN.__exportStar(QN(),Sf)});var eP=u(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.resolveEndpointDiscoveryConfig=void 0;var uee=ZN(),fee=(e,{endpointDiscoveryCommandCtor:t})=>{var r;return{...e,endpointDiscoveryCommandCtor:t,endpointCache:new uee.EndpointCache((r=e.endpointCacheSize)!==null&&r!==void 0?r:1e3),endpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0?()=>Promise.resolve(e.endpointDiscoveryEnabled):e.endpointDiscoveryEnabledProvider,isClientEndpointDiscoveryEnabled:e.endpointDiscoveryEnabled!==void 0}};wf.resolveEndpointDiscoveryConfig=fee});var C0=u(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});var T0=q();T0.__exportStar(DN(),ja);T0.__exportStar(zN(),ja);T0.__exportStar(eP(),ja)});var ka=u(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.getHostHeaderPlugin=tr.hostHeaderMiddlewareOptions=tr.hostHeaderMiddleware=tr.resolveHostHeaderConfig=void 0;var mee=Ct();function pee(e){return e}tr.resolveHostHeaderConfig=pee;var _ee=e=>t=>async r=>{if(!mee.HttpRequest.isInstance(r.request))return t(r);let{request:n}=r,{handlerProtocol:i=""}=e.requestHandler.metadata||{};return i.indexOf("h2")>=0&&!n.headers[":authority"]?(delete n.headers.host,n.headers[":authority"]=""):n.headers.host||(n.headers.host=n.hostname),t(r)};tr.hostHeaderMiddleware=_ee;tr.hostHeaderMiddlewareOptions={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0};var hee=e=>({applyToStack:t=>{t.add((0,tr.hostHeaderMiddleware)(e),tr.hostHeaderMiddlewareOptions)}});tr.getHostHeaderPlugin=hee});var tP=u(Ar=>{"use strict";Object.defineProperty(Ar,"__esModule",{value:!0});Ar.getLoggerPlugin=Ar.loggerMiddlewareOptions=Ar.loggerMiddleware=void 0;var yee=()=>(e,t)=>async r=>{let{clientName:n,commandName:i,inputFilterSensitiveLog:s,logger:o,outputFilterSensitiveLog:a}=t,c=await e(r);if(!o)return c;if(typeof o.info=="function"){let{$metadata:d,...f}=c.output;o.info({clientName:n,commandName:i,input:s(r.input),output:a(f),metadata:d})}return c};Ar.loggerMiddleware=yee;Ar.loggerMiddlewareOptions={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0};var gee=e=>({applyToStack:t=>{t.add((0,Ar.loggerMiddleware)(),Ar.loggerMiddlewareOptions)}});Ar.getLoggerPlugin=gee});var Fa=u(x0=>{"use strict";Object.defineProperty(x0,"__esModule",{value:!0});var vee=q();vee.__exportStar(tP(),x0)});var Ua=u(gn=>{"use strict";Object.defineProperty(gn,"__esModule",{value:!0});gn.DEFAULT_RETRY_MODE=gn.DEFAULT_MAX_ATTEMPTS=gn.RETRY_MODES=void 0;var rP;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(rP=gn.RETRY_MODES||(gn.RETRY_MODES={}));gn.DEFAULT_MAX_ATTEMPTS=3;gn.DEFAULT_RETRY_MODE=rP.STANDARD});var nP=u(Tr=>{"use strict";Object.defineProperty(Tr,"__esModule",{value:!0});Tr.TRANSIENT_ERROR_STATUS_CODES=Tr.TRANSIENT_ERROR_CODES=Tr.THROTTLING_ERROR_CODES=Tr.CLOCK_SKEW_ERROR_CODES=void 0;Tr.CLOCK_SKEW_ERROR_CODES=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"];Tr.THROTTLING_ERROR_CODES=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"];Tr.TRANSIENT_ERROR_CODES=["AbortError","TimeoutError","RequestTimeout","RequestTimeoutException"];Tr.TRANSIENT_ERROR_STATUS_CODES=[500,502,503,504]});var bf=u(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.isTransientError=Cr.isThrottlingError=Cr.isClockSkewError=Cr.isRetryableByTrait=void 0;var Ef=nP(),See=e=>e.$retryable!==void 0;Cr.isRetryableByTrait=See;var wee=e=>Ef.CLOCK_SKEW_ERROR_CODES.includes(e.name);Cr.isClockSkewError=wee;var Eee=e=>{var t,r;return((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)===429||Ef.THROTTLING_ERROR_CODES.includes(e.name)||((r=e.$retryable)===null||r===void 0?void 0:r.throttling)==!0};Cr.isThrottlingError=Eee;var bee=e=>{var t;return Ef.TRANSIENT_ERROR_CODES.includes(e.name)||Ef.TRANSIENT_ERROR_STATUS_CODES.includes(((t=e.$metadata)===null||t===void 0?void 0:t.httpStatusCode)||0)};Cr.isTransientError=bee});var R0=u(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.DefaultRateLimiter=void 0;var Aee=bf(),I0=class{constructor(t){var r,n,i,s,o;this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=(r=t==null?void 0:t.beta)!==null&&r!==void 0?r:.7,this.minCapacity=(n=t==null?void 0:t.minCapacity)!==null&&n!==void 0?n: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=(o=t==null?void 0:t.smooth)!==null&&o!==void 0?o:.8;let a=this.getCurrentTimeInSeconds();this.lastThrottleTime=a,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 r=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(n=>setTimeout(n,r))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let r=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+r),this.lastTimestamp=t}updateClientSendingRate(t){let r;if(this.updateMeasuredRate(),(0,Aee.isThrottlingError)(t)){let i=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=i,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(i),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let n=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(n)}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(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let n=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(n*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}};Af.DefaultRateLimiter=I0});var Ba=u(Ve=>{"use strict";Object.defineProperty(Ve,"__esModule",{value:!0});Ve.REQUEST_HEADER=Ve.INVOCATION_ID_HEADER=Ve.NO_RETRY_INCREMENT=Ve.TIMEOUT_RETRY_COST=Ve.RETRY_COST=Ve.INITIAL_RETRY_TOKENS=Ve.THROTTLING_RETRY_DELAY_BASE=Ve.MAXIMUM_RETRY_DELAY=Ve.DEFAULT_RETRY_DELAY_BASE=void 0;Ve.DEFAULT_RETRY_DELAY_BASE=100;Ve.MAXIMUM_RETRY_DELAY=20*1e3;Ve.THROTTLING_RETRY_DELAY_BASE=500;Ve.INITIAL_RETRY_TOKENS=500;Ve.RETRY_COST=5;Ve.TIMEOUT_RETRY_COST=10;Ve.NO_RETRY_INCREMENT=1;Ve.INVOCATION_ID_HEADER="amz-sdk-invocation-id";Ve.REQUEST_HEADER="amz-sdk-request"});var iP=u(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.getDefaultRetryQuota=void 0;var N0=Ba(),Tee=(e,t)=>{var r,n,i;let s=e,o=(r=t==null?void 0:t.noRetryIncrement)!==null&&r!==void 0?r:N0.NO_RETRY_INCREMENT,a=(n=t==null?void 0:t.retryCost)!==null&&n!==void 0?n:N0.RETRY_COST,c=(i=t==null?void 0:t.timeoutRetryCost)!==null&&i!==void 0?i:N0.TIMEOUT_RETRY_COST,d=e,f=g=>g.name==="TimeoutError"?c:a,_=g=>f(g)<=d;return Object.freeze({hasRetryTokens:_,retrieveRetryTokens:g=>{if(!_(g))throw new Error("No retry token available");let y=f(g);return d-=y,y},releaseRetryTokens:g=>{d+=g??o,d=Math.min(d,s)}})};Tf.getDefaultRetryQuota=Tee});var P0=u(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.defaultDelayDecider=void 0;var Cee=Ba(),xee=(e,t)=>Math.floor(Math.min(Cee.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e));Cf.defaultDelayDecider=xee});var D0=u(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.defaultRetryDecider=void 0;var xf=bf(),Iee=e=>e?(0,xf.isRetryableByTrait)(e)||(0,xf.isClockSkewError)(e)||(0,xf.isThrottlingError)(e)||(0,xf.isTransientError)(e):!1;If.defaultRetryDecider=Iee});var Nf=u(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.StandardRetryStrategy=void 0;var sP=Ct(),Ree=bf(),Nee=dS(),oP=Ua(),Ga=Ba(),Pee=iP(),Dee=P0(),Oee=D0(),O0=class{constructor(t,r){var n,i,s;this.maxAttemptsProvider=t,this.mode=oP.RETRY_MODES.STANDARD,this.retryDecider=(n=r==null?void 0:r.retryDecider)!==null&&n!==void 0?n:Oee.defaultRetryDecider,this.delayDecider=(i=r==null?void 0:r.delayDecider)!==null&&i!==void 0?i:Dee.defaultDelayDecider,this.retryQuota=(s=r==null?void 0:r.retryQuota)!==null&&s!==void 0?s:(0,Pee.getDefaultRetryQuota)(Ga.INITIAL_RETRY_TOKENS)}shouldRetry(t,r,n){return r<n&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch{t=oP.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,r,n){let i,s=0,o=0,a=await this.getMaxAttempts(),{request:c}=r;for(sP.HttpRequest.isInstance(c)&&(c.headers[Ga.INVOCATION_ID_HEADER]=(0,Nee.v4)());;)try{sP.HttpRequest.isInstance(c)&&(c.headers[Ga.REQUEST_HEADER]=`attempt=${s+1}; max=${a}`),n!=null&&n.beforeRequest&&await n.beforeRequest();let{response:d,output:f}=await t(r);return n!=null&&n.afterRequest&&n.afterRequest(d),this.retryQuota.releaseRetryTokens(i),f.$metadata.attempts=s+1,f.$metadata.totalRetryDelay=o,{response:d,output:f}}catch(d){let f=Lee(d);if(s++,this.shouldRetry(f,s,a)){i=this.retryQuota.retrieveRetryTokens(f);let _=this.delayDecider((0,Ree.isThrottlingError)(f)?Ga.THROTTLING_RETRY_DELAY_BASE:Ga.DEFAULT_RETRY_DELAY_BASE,s);o+=_,await new Promise(m=>setTimeout(m,_));continue}throw f.$metadata||(f.$metadata={}),f.$metadata.attempts=s,f.$metadata.totalRetryDelay=o,f}}};Rf.StandardRetryStrategy=O0;var Lee=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 q0=u(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.AdaptiveRetryStrategy=void 0;var qee=Ua(),Mee=R0(),zee=Nf(),L0=class extends zee.StandardRetryStrategy{constructor(t,r){let{rateLimiter:n,...i}=r??{};super(t,i),this.rateLimiter=n??new Mee.DefaultRateLimiter,this.mode=qee.RETRY_MODES.ADAPTIVE}async retry(t,r){return super.retry(t,r,{beforeRequest:async()=>this.rateLimiter.getSendToken(),afterRequest:n=>{this.rateLimiter.updateClientSendingRate(n)}})}};Pf.AdaptiveRetryStrategy=L0});var aP=u(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.normalizeProvider=void 0;var jee=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Df.normalizeProvider=jee});var cP=u(M0=>{"use strict";Object.defineProperty(M0,"__esModule",{value:!0});var kee=q();kee.__exportStar(aP(),M0)});var dP=u(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 lP=cP(),Fee=q0(),Of=Ua(),Uee=Nf();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 r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${ke.ENV_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},configFileSelector:e=>{let t=e[ke.CONFIG_MAX_ATTEMPTS];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${ke.CONFIG_MAX_ATTEMPTS} mast be a number, got "${t}"`);return r},default:Of.DEFAULT_MAX_ATTEMPTS};var Bee=e=>{var t;let r=(0,lP.normalizeProvider)((t=e.maxAttempts)!==null&&t!==void 0?t:Of.DEFAULT_MAX_ATTEMPTS);return{...e,maxAttempts:r,retryStrategy:async()=>e.retryStrategy?e.retryStrategy:await(0,lP.normalizeProvider)(e.retryMode)()===Of.RETRY_MODES.ADAPTIVE?new Fee.AdaptiveRetryStrategy(r):new Uee.StandardRetryStrategy(r)}};ke.resolveRetryConfig=Bee;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:Of.DEFAULT_RETRY_MODE}});var fP=u(xr=>{"use strict";Object.defineProperty(xr,"__esModule",{value:!0});xr.getOmitRetryHeadersPlugin=xr.omitRetryHeadersMiddlewareOptions=xr.omitRetryHeadersMiddleware=void 0;var Gee=Ct(),uP=Ba(),$ee=()=>e=>async t=>{let{request:r}=t;return Gee.HttpRequest.isInstance(r)&&(delete r.headers[uP.INVOCATION_ID_HEADER],delete r.headers[uP.REQUEST_HEADER]),e(t)};xr.omitRetryHeadersMiddleware=$ee;xr.omitRetryHeadersMiddlewareOptions={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0};var Vee=e=>({applyToStack:t=>{t.addRelativeTo((0,xr.omitRetryHeadersMiddleware)(),xr.omitRetryHeadersMiddlewareOptions)}});xr.getOmitRetryHeadersPlugin=Vee});var mP=u(Ir=>{"use strict";Object.defineProperty(Ir,"__esModule",{value:!0});Ir.getRetryPlugin=Ir.retryMiddlewareOptions=Ir.retryMiddleware=void 0;var Kee=e=>(t,r)=>async n=>{let i=await e.retryStrategy();return i!=null&&i.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",i.mode]]),i.retry(t,n)};Ir.retryMiddleware=Kee;Ir.retryMiddlewareOptions={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0};var Hee=e=>({applyToStack:t=>{t.add((0,Ir.retryMiddleware)(e),Ir.retryMiddlewareOptions)}});Ir.getRetryPlugin=Hee});var _P=u(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0})});var vn=u(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});var Rr=q();Rr.__exportStar(q0(),rr);Rr.__exportStar(R0(),rr);Rr.__exportStar(Nf(),rr);Rr.__exportStar(Ua(),rr);Rr.__exportStar(dP(),rr);Rr.__exportStar(P0(),rr);Rr.__exportStar(fP(),rr);Rr.__exportStar(D0(),rr);Rr.__exportStar(mP(),rr);Rr.__exportStar(_P(),rr)});var qf=u(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.ProviderError=void 0;var $a=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,$a.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};Lf.ProviderError=$a});var hP=u(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});Mf.CredentialsProviderError=void 0;var Wee=qf(),Va=class extends Wee.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,Va.prototype)}};Mf.CredentialsProviderError=Va});var yP=u(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});zf.chain=void 0;var Jee=qf();function Yee(...e){return()=>{let t=Promise.reject(new Jee.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}zf.chain=Yee});var gP=u(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.fromStatic=void 0;var Qee=e=>()=>Promise.resolve(e);jf.fromStatic=Qee});var vP=u(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.memoize=void 0;var Xee=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};kf.memoize=Xee});var SP=u(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});var Ka=q();Ka.__exportStar(hP(),qi);Ka.__exportStar(qf(),qi);Ka.__exportStar(yP(),qi);Ka.__exportStar(gP(),qi);Ka.__exportStar(vP(),qi)});var Ff=u(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});Os.toHex=Os.fromHex=void 0;var wP={},z0={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),wP[e]=t,z0[t]=e}function Zee(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 r=0;r<e.length;r+=2){let n=e.slice(r,r+2).toLowerCase();if(n in z0)t[r/2]=z0[n];else throw new Error(`Cannot decode unrecognized sequence ${n} as hexadecimal`)}return t}Os.fromHex=Zee;function ete(e){let t="";for(let r=0;r<e.byteLength;r++)t+=wP[e[r]];return t}Os.toHex=ete});var EP=u(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});Uf.normalizeProvider=void 0;var tte=e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t};Uf.normalizeProvider=tte});var bP=u(j0=>{"use strict";Object.defineProperty(j0,"__esModule",{value:!0});var rte=q();rte.__exportStar(EP(),j0)});var Mi=u(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 F0=u(Qn=>{"use strict";Object.defineProperty(Qn,"__esModule",{value:!0});Qn.clearCredentialCache=Qn.getSigningKey=Qn.createScope=void 0;var nte=Ff(),k0=Mi(),Ls={},Bf=[],ite=(e,t,r)=>`${e}/${t}/${r}/${k0.KEY_TYPE_IDENTIFIER}`;Qn.createScope=ite;var ste=async(e,t,r,n,i)=>{let s=await AP(e,t.secretAccessKey,t.accessKeyId),o=`${r}:${n}:${i}:${(0,nte.toHex)(s)}:${t.sessionToken}`;if(o in Ls)return Ls[o];for(Bf.push(o);Bf.length>k0.MAX_CACHE_SIZE;)delete Ls[Bf.shift()];let a=`AWS4${t.secretAccessKey}`;for(let c of[r,n,i,k0.KEY_TYPE_IDENTIFIER])a=await AP(e,a,c);return Ls[o]=a};Qn.getSigningKey=ste;var ote=()=>{Bf.length=0,Object.keys(Ls).forEach(e=>{delete Ls[e]})};Qn.clearCredentialCache=ote;var AP=(e,t,r)=>{let n=new e(t);return n.update(r),n.digest()}});var B0=u(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.getCanonicalHeaders=void 0;var U0=Mi(),ate=({headers:e},t,r)=>{let n={};for(let i of Object.keys(e).sort()){let s=i.toLowerCase();(s in U0.ALWAYS_UNSIGNABLE_HEADERS||(t==null?void 0:t.has(s))||U0.PROXY_HEADER_PATTERN.test(s)||U0.SEC_HEADER_PATTERN.test(s))&&(!r||r&&!r.has(s))||(n[s]=e[i].trim().replace(/\s+/g," "))}return n};Gf.getCanonicalHeaders=ate});var G0=u($f=>{"use strict";Object.defineProperty($f,"__esModule",{value:!0});$f.escapeUri=void 0;var cte=e=>encodeURIComponent(e).replace(/[!'()*]/g,lte);$f.escapeUri=cte;var lte=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var TP=u(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});Vf.escapeUriPath=void 0;var dte=G0(),ute=e=>e.split("/").map(dte.escapeUri).join("/");Vf.escapeUriPath=ute});var xP=u(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var CP=q();CP.__exportStar(G0(),Kf);CP.__exportStar(TP(),Kf)});var $0=u(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.getCanonicalQuery=void 0;var Hf=xP(),fte=Mi(),mte=({query:e={}})=>{let t=[],r={};for(let n of Object.keys(e).sort()){if(n.toLowerCase()===fte.SIGNATURE_HEADER)continue;t.push(n);let i=e[n];typeof i=="string"?r[n]=`${(0,Hf.escapeUri)(n)}=${(0,Hf.escapeUri)(i)}`:Array.isArray(i)&&(r[n]=i.slice(0).sort().reduce((s,o)=>s.concat([`${(0,Hf.escapeUri)(n)}=${(0,Hf.escapeUri)(o)}`]),[]).join("&"))}return t.map(n=>r[n]).filter(n=>n).join("&")};Wf.getCanonicalQuery=mte});var IP=u(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});Jf.isArrayBuffer=void 0;var pte=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Jf.isArrayBuffer=pte});var V0=u(Yf=>{"use strict";Object.defineProperty(Yf,"__esModule",{value:!0});Yf.getPayloadHash=void 0;var _te=IP(),hte=Ff(),RP=Mi(),yte=async({headers:e,body:t},r)=>{for(let n of Object.keys(e))if(n.toLowerCase()===RP.SHA256_HEADER)return e[n];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||(0,_te.isArrayBuffer)(t)){let n=new r;return n.update(t),(0,hte.toHex)(await n.digest())}return RP.UNSIGNED_PAYLOAD};Yf.getPayloadHash=yte});var NP=u(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});Xn.deleteHeader=Xn.getHeaderValue=Xn.hasHeader=void 0;var gte=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1};Xn.hasHeader=gte;var vte=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return t[r]};Xn.getHeaderValue=vte;var Ste=(e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))e===r.toLowerCase()&&delete t[r]};Xn.deleteHeader=Ste});var K0=u(zi=>{"use strict";Object.defineProperty(zi,"__esModule",{value:!0});zi.cloneQuery=zi.cloneRequest=void 0;var wte=({headers:e,query:t,...r})=>({...r,headers:{...e},query:t?(0,zi.cloneQuery)(t):void 0});zi.cloneRequest=wte;var Ete=e=>Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{});zi.cloneQuery=Ete});var H0=u(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.moveHeadersToQuery=void 0;var bte=K0(),Ate=(e,t={})=>{var r;let{headers:n,query:i={}}=typeof e.clone=="function"?e.clone():(0,bte.cloneRequest)(e);for(let s of Object.keys(n)){let o=s.toLowerCase();o.slice(0,6)==="x-amz-"&&!(!((r=t.unhoistableHeaders)===null||r===void 0)&&r.has(o))&&(i[s]=n[s],delete n[s])}return{...e,headers:n,query:i}};Qf.moveHeadersToQuery=Ate});var W0=u(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.prepareRequest=void 0;var Tte=K0(),Cte=Mi(),xte=e=>{e=typeof e.clone=="function"?e.clone():(0,Tte.cloneRequest)(e);for(let t of Object.keys(e.headers))Cte.GENERATED_HEADERS.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e};Xf.prepareRequest=xte});var PP=u(ji=>{"use strict";Object.defineProperty(ji,"__esModule",{value:!0});ji.toDate=ji.iso8601=void 0;var Ite=e=>(0,ji.toDate)(e).toISOString().replace(/\.\d{3}Z$/,"Z");ji.iso8601=Ite;var Rte=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;ji.toDate=Rte});var MP=u(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});rm.SignatureV4=void 0;var Zf=Ff(),DP=bP(),ct=Mi(),em=F0(),OP=B0(),Nte=$0(),J0=V0(),Pte=NP(),Dte=H0(),LP=W0(),Ote=PP(),Y0=class{constructor({applyChecksum:t,credentials:r,region:n,service:i,sha256:s,uriEscapePath:o=!0}){this.service=i,this.sha256=s,this.uriEscapePath=o,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=(0,DP.normalizeProvider)(n),this.credentialProvider=(0,DP.normalizeProvider)(r)}async presign(t,r={}){let{signingDate:n=new Date,expiresIn:i=3600,unsignableHeaders:s,unhoistableHeaders:o,signableHeaders:a,signingRegion:c,signingService:d}=r,f=await this.credentialProvider(),_=c??await this.regionProvider(),{longDate:m,shortDate:h}=tm(n);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 g=(0,em.createScope)(h,_,d??this.service),y=(0,Dte.moveHeadersToQuery)((0,LP.prepareRequest)(t),{unhoistableHeaders:o});f.sessionToken&&(y.query[ct.TOKEN_QUERY_PARAM]=f.sessionToken),y.query[ct.ALGORITHM_QUERY_PARAM]=ct.ALGORITHM_IDENTIFIER,y.query[ct.CREDENTIAL_QUERY_PARAM]=`${f.accessKeyId}/${g}`,y.query[ct.AMZ_DATE_QUERY_PARAM]=m,y.query[ct.EXPIRES_QUERY_PARAM]=i.toString(10);let A=(0,OP.getCanonicalHeaders)(y,s,a);return y.query[ct.SIGNED_HEADERS_QUERY_PARAM]=qP(A),y.query[ct.SIGNATURE_QUERY_PARAM]=await this.getSignature(m,g,this.getSigningKey(f,_,h,d),this.createCanonicalRequest(y,A,await(0,J0.getPayloadHash)(t,this.sha256))),y}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:n=new Date,priorSignature:i,signingRegion:s,signingService:o}){let a=s??await this.regionProvider(),{shortDate:c,longDate:d}=tm(n),f=(0,em.createScope)(c,a,o??this.service),_=await(0,J0.getPayloadHash)({headers:{},body:r},this.sha256),m=new this.sha256;m.update(t);let h=(0,Zf.toHex)(await m.digest()),g=[ct.EVENT_ALGORITHM_IDENTIFIER,d,f,i,h,_].join(`
|
|
10
|
+
`);return this.signString(g,{signingDate:n,signingRegion:a,signingService:o})}async signString(t,{signingDate:r=new Date,signingRegion:n,signingService:i}={}){let s=await this.credentialProvider(),o=n??await this.regionProvider(),{shortDate:a}=tm(r),c=new this.sha256(await this.getSigningKey(s,o,a,i));return c.update(t),(0,Zf.toHex)(await c.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:n,unsignableHeaders:i,signingRegion:s,signingService:o}={}){let a=await this.credentialProvider(),c=s??await this.regionProvider(),d=(0,LP.prepareRequest)(t),{longDate:f,shortDate:_}=tm(r),m=(0,em.createScope)(_,c,o??this.service);d.headers[ct.AMZ_DATE_HEADER]=f,a.sessionToken&&(d.headers[ct.TOKEN_HEADER]=a.sessionToken);let h=await(0,J0.getPayloadHash)(d,this.sha256);!(0,Pte.hasHeader)(ct.SHA256_HEADER,d.headers)&&this.applyChecksum&&(d.headers[ct.SHA256_HEADER]=h);let g=(0,OP.getCanonicalHeaders)(d,i,n),y=await this.getSignature(f,m,this.getSigningKey(a,c,_,o),this.createCanonicalRequest(d,g,h));return d.headers[ct.AUTH_HEADER]=`${ct.ALGORITHM_IDENTIFIER} Credential=${a.accessKeyId}/${m}, SignedHeaders=${qP(g)}, Signature=${y}`,d}createCanonicalRequest(t,r,n){let i=Object.keys(r).sort();return`${t.method}
|
|
11
11
|
${this.getCanonicalPath(t)}
|
|
12
|
-
${(0,
|
|
13
|
-
${i.map(s=>`${s}:${
|
|
12
|
+
${(0,Nte.getCanonicalQuery)(t)}
|
|
13
|
+
${i.map(s=>`${s}:${r[s]}`).join(`
|
|
14
14
|
`)}
|
|
15
15
|
|
|
16
16
|
${i.join(";")}
|
|
17
|
-
${
|
|
17
|
+
${n}`}async createStringToSign(t,r,n){let i=new this.sha256;i.update(n);let s=await i.digest();return`${ct.ALGORITHM_IDENTIFIER}
|
|
18
18
|
${t}
|
|
19
|
-
${
|
|
20
|
-
${(0,Dd.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let n=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?n.pop():n.push(s));let r=`${t!=null&&t.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&(t==null?void 0:t.endsWith("/"))?"/":""}`;return encodeURIComponent(r).replace(/%2F/g,"/")}return t}async getSignature(t,n,r,i){let s=await this.createStringToSign(t,n,i),o=new this.sha256(await r);return o.update(s),(0,Dd.toHex)(await o.digest())}getSigningKey(t,n,r,i){return(0,Nd.getSigningKey)(this.sha256,t,r,n,i||this.service)}};Od.SignatureV4=Gv;var Pd=e=>{let t=(0,c9.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},zI=e=>Object.keys(e).sort().join(";")});var FI=f(wt=>{"use strict";Object.defineProperty(wt,"__esModule",{value:!0});wt.prepareRequest=wt.moveHeadersToQuery=wt.getPayloadHash=wt.getCanonicalQuery=wt.getCanonicalHeaders=void 0;var kI=K();kI.__exportStar(jI(),wt);var l9=Ov();Object.defineProperty(wt,"getCanonicalHeaders",{enumerable:!0,get:function(){return l9.getCanonicalHeaders}});var u9=Mv();Object.defineProperty(wt,"getCanonicalQuery",{enumerable:!0,get:function(){return u9.getCanonicalQuery}});var d9=jv();Object.defineProperty(wt,"getPayloadHash",{enumerable:!0,get:function(){return d9.getPayloadHash}});var f9=Fv();Object.defineProperty(wt,"moveHeadersToQuery",{enumerable:!0,get:function(){return f9.moveHeadersToQuery}});var m9=Uv();Object.defineProperty(wt,"prepareRequest",{enumerable:!0,get:function(){return m9.prepareRequest}});kI.__exportStar(Nv(),wt)});var GI=f(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});is.resolveSigV4AuthConfig=is.resolveAwsAuthConfig=void 0;var p9=je(),UI=FI(),h9=3e5,_9=e=>{let t=e.credentials?BI(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=aa(e.signer):s=()=>aa(e.region)().then(async o=>[await e.regionInfoProvider(o,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},o]).then(([o,a])=>{let{signingRegion:c,signingService:u}=o;e.signingRegion=e.signingRegion||c||a,e.signingName=e.signingName||u||e.serviceId;let d={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:n},h=e.signerConstructor||UI.SignatureV4;return new h(d)}),{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s}};is.resolveAwsAuthConfig=_9;var y9=e=>{let t=e.credentials?BI(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:n=!0,systemClockOffset:r=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=aa(e.signer):s=aa(new UI.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:n})),{...e,systemClockOffset:r,signingEscapePath:n,credentials:t,signer:s}};is.resolveSigV4AuthConfig=y9;var aa=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},BI=e=>typeof e=="function"?(0,p9.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<h9,t=>t.expiration!==void 0):aa(e)});var $v=f(Ld=>{"use strict";Object.defineProperty(Ld,"__esModule",{value:!0});Ld.getSkewCorrectedDate=void 0;var g9=e=>new Date(Date.now()+e);Ld.getSkewCorrectedDate=g9});var $I=f(qd=>{"use strict";Object.defineProperty(qd,"__esModule",{value:!0});qd.isClockSkewed=void 0;var v9=$v(),S9=(e,t)=>Math.abs((0,v9.getSkewCorrectedDate)(t).getTime()-e)>=3e5;qd.isClockSkewed=S9});var VI=f(Md=>{"use strict";Object.defineProperty(Md,"__esModule",{value:!0});Md.getUpdatedSystemClockOffset=void 0;var w9=$I(),b9=(e,t)=>{let n=Date.parse(e);return(0,w9.isClockSkewed)(n,t)?n-Date.now():t};Md.getUpdatedSystemClockOffset=b9});var YI=f(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.getSigV4AuthPlugin=Mt.getAwsAuthPlugin=Mt.awsAuthMiddlewareOptions=Mt.awsAuthMiddleware=void 0;var HI=Ot(),E9=$v(),KI=VI(),A9=e=>(t,n)=>async function(r){if(!HI.HttpRequest.isInstance(r.request))return t(r);let i=await e.signer(),s=await t({...r,request:await i.sign(r.request,{signingDate:(0,E9.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:n.signing_region,signingService:n.signing_service})}).catch(a=>{var c;let u=(c=a.ServerTime)!==null&&c!==void 0?c:WI(a.$response);throw u&&(e.systemClockOffset=(0,KI.getUpdatedSystemClockOffset)(u,e.systemClockOffset)),a}),o=WI(s.response);return o&&(e.systemClockOffset=(0,KI.getUpdatedSystemClockOffset)(o,e.systemClockOffset)),s};Mt.awsAuthMiddleware=A9;var WI=e=>{var t,n,r;return HI.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};Mt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var T9=e=>({applyToStack:t=>{t.addRelativeTo((0,Mt.awsAuthMiddleware)(e),Mt.awsAuthMiddlewareOptions)}});Mt.getAwsAuthPlugin=T9;Mt.getSigV4AuthPlugin=Mt.getAwsAuthPlugin});var Xn=f(zd=>{"use strict";Object.defineProperty(zd,"__esModule",{value:!0});var JI=K();JI.__exportStar(GI(),zd);JI.__exportStar(YI(),zd)});var QI=f(jd=>{"use strict";Object.defineProperty(jd,"__esModule",{value:!0});jd.resolveUserAgentConfig=void 0;function C9(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}jd.resolveUserAgentConfig=C9});var XI=f(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.UA_ESCAPE_REGEX=En.SPACE=En.X_AMZ_USER_AGENT=En.USER_AGENT=void 0;En.USER_AGENT="user-agent";En.X_AMZ_USER_AGENT="x-amz-user-agent";En.SPACE=" ";En.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var ZI=f(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.getUserAgentPlugin=An.getUserAgentMiddlewareOptions=An.userAgentMiddleware=void 0;var x9=Ot(),Ir=XI(),I9=e=>(t,n)=>async r=>{var i,s;let{request:o}=r;if(!x9.HttpRequest.isInstance(o))return t(r);let{headers:a}=o,c=((i=n==null?void 0:n.userAgent)===null||i===void 0?void 0:i.map(Vv))||[],u=(await e.defaultUserAgentProvider()).map(Vv),d=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(Vv))||[],h=[...u,...c,...d].join(Ir.SPACE),m=[...u.filter(y=>y.startsWith("aws-sdk-")),...d].join(Ir.SPACE);return e.runtime!=="browser"?(m&&(a[Ir.X_AMZ_USER_AGENT]=a[Ir.X_AMZ_USER_AGENT]?`${a[Ir.USER_AGENT]} ${m}`:m),a[Ir.USER_AGENT]=h):a[Ir.X_AMZ_USER_AGENT]=h,t({...r,request:o})};An.userAgentMiddleware=I9;var Vv=([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(Ir.UA_ESCAPE_REGEX,"_")).join("/")};An.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var R9=e=>({applyToStack:t=>{t.add((0,An.userAgentMiddleware)(e),An.getUserAgentMiddlewareOptions)}});An.getUserAgentPlugin=R9});var Fd=f(kd=>{"use strict";Object.defineProperty(kd,"__esModule",{value:!0});var e1=K();e1.__exportStar(QI(),kd);e1.__exportStar(ZI(),kd)});var t1=f((Xve,D9)=>{D9.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently '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-* && rimraf *.tsbuildinfo"},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.78.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/credential-provider-node":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-endpoint-discovery":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","@aws-sdk/util-waiter":"3.78.0",tslib:"^2.3.1",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","@types/uuid":"^8.3.0",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},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 Bd=f(Ud=>{"use strict";Object.defineProperty(Ud,"__esModule",{value:!0});Ud.STSServiceException=void 0;var N9=O(),ca=class extends N9.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,ca.prototype)}};Ud.STSServiceException=ca});var tn=f(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.GetSessionTokenResponse=L.GetSessionTokenRequest=L.GetFederationTokenResponse=L.FederatedUser=L.GetFederationTokenRequest=L.GetCallerIdentityResponse=L.GetCallerIdentityRequest=L.GetAccessKeyInfoResponse=L.GetAccessKeyInfoRequest=L.InvalidAuthorizationMessageException=L.DecodeAuthorizationMessageResponse=L.DecodeAuthorizationMessageRequest=L.IDPCommunicationErrorException=L.AssumeRoleWithWebIdentityResponse=L.AssumeRoleWithWebIdentityRequest=L.InvalidIdentityTokenException=L.IDPRejectedClaimException=L.AssumeRoleWithSAMLResponse=L.AssumeRoleWithSAMLRequest=L.RegionDisabledException=L.PackedPolicyTooLargeException=L.MalformedPolicyDocumentException=L.ExpiredTokenException=L.AssumeRoleResponse=L.Credentials=L.AssumeRoleRequest=L.Tag=L.PolicyDescriptorType=L.AssumedRoleUser=void 0;var Rr=Bd(),P9;(function(e){e.filterSensitiveLog=t=>({...t})})(P9=L.AssumedRoleUser||(L.AssumedRoleUser={}));var O9;(function(e){e.filterSensitiveLog=t=>({...t})})(O9=L.PolicyDescriptorType||(L.PolicyDescriptorType={}));var L9;(function(e){e.filterSensitiveLog=t=>({...t})})(L9=L.Tag||(L.Tag={}));var q9;(function(e){e.filterSensitiveLog=t=>({...t})})(q9=L.AssumeRoleRequest||(L.AssumeRoleRequest={}));var M9;(function(e){e.filterSensitiveLog=t=>({...t})})(M9=L.Credentials||(L.Credentials={}));var z9;(function(e){e.filterSensitiveLog=t=>({...t})})(z9=L.AssumeRoleResponse||(L.AssumeRoleResponse={}));var la=class extends Rr.STSServiceException{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,la.prototype)}};L.ExpiredTokenException=la;var ua=class extends Rr.STSServiceException{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,ua.prototype)}};L.MalformedPolicyDocumentException=ua;var da=class extends Rr.STSServiceException{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,da.prototype)}};L.PackedPolicyTooLargeException=da;var fa=class extends Rr.STSServiceException{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,fa.prototype)}};L.RegionDisabledException=fa;var j9;(function(e){e.filterSensitiveLog=t=>({...t})})(j9=L.AssumeRoleWithSAMLRequest||(L.AssumeRoleWithSAMLRequest={}));var k9;(function(e){e.filterSensitiveLog=t=>({...t})})(k9=L.AssumeRoleWithSAMLResponse||(L.AssumeRoleWithSAMLResponse={}));var ma=class extends Rr.STSServiceException{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,ma.prototype)}};L.IDPRejectedClaimException=ma;var pa=class extends Rr.STSServiceException{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,pa.prototype)}};L.InvalidIdentityTokenException=pa;var F9;(function(e){e.filterSensitiveLog=t=>({...t})})(F9=L.AssumeRoleWithWebIdentityRequest||(L.AssumeRoleWithWebIdentityRequest={}));var U9;(function(e){e.filterSensitiveLog=t=>({...t})})(U9=L.AssumeRoleWithWebIdentityResponse||(L.AssumeRoleWithWebIdentityResponse={}));var ha=class extends Rr.STSServiceException{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,ha.prototype)}};L.IDPCommunicationErrorException=ha;var B9;(function(e){e.filterSensitiveLog=t=>({...t})})(B9=L.DecodeAuthorizationMessageRequest||(L.DecodeAuthorizationMessageRequest={}));var G9;(function(e){e.filterSensitiveLog=t=>({...t})})(G9=L.DecodeAuthorizationMessageResponse||(L.DecodeAuthorizationMessageResponse={}));var _a=class extends Rr.STSServiceException{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,_a.prototype)}};L.InvalidAuthorizationMessageException=_a;var $9;(function(e){e.filterSensitiveLog=t=>({...t})})($9=L.GetAccessKeyInfoRequest||(L.GetAccessKeyInfoRequest={}));var V9;(function(e){e.filterSensitiveLog=t=>({...t})})(V9=L.GetAccessKeyInfoResponse||(L.GetAccessKeyInfoResponse={}));var K9;(function(e){e.filterSensitiveLog=t=>({...t})})(K9=L.GetCallerIdentityRequest||(L.GetCallerIdentityRequest={}));var W9;(function(e){e.filterSensitiveLog=t=>({...t})})(W9=L.GetCallerIdentityResponse||(L.GetCallerIdentityResponse={}));var H9;(function(e){e.filterSensitiveLog=t=>({...t})})(H9=L.GetFederationTokenRequest||(L.GetFederationTokenRequest={}));var Y9;(function(e){e.filterSensitiveLog=t=>({...t})})(Y9=L.FederatedUser||(L.FederatedUser={}));var J9;(function(e){e.filterSensitiveLog=t=>({...t})})(J9=L.GetFederationTokenResponse||(L.GetFederationTokenResponse={}));var Q9;(function(e){e.filterSensitiveLog=t=>({...t})})(Q9=L.GetSessionTokenRequest||(L.GetSessionTokenRequest={}));var X9;(function(e){e.filterSensitiveLog=t=>({...t})})(X9=L.GetSessionTokenResponse||(L.GetSessionTokenResponse={}))});var Kv=f((tSe,Z9)=>{Z9.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 n1=f((nSe,e7)=>{e7.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 Wv=f((rSe,t7)=>{t7.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var r1=f((iSe,n7)=>{n7.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 s1=f(ya=>{"use strict";var r7=ya&&ya.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ya,"__esModule",{value:!0});var i1=r7(r1()),i7=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 s7(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in i1.default&&(e=i1.default[e]),i7(e))}ya.default=s7});var Yv=f(Tn=>{"use strict";var Gd=Tn&&Tn.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.decodeHTML=Tn.decodeHTMLStrict=Tn.decodeXML=void 0;var Hv=Gd(Kv()),o7=Gd(n1()),a7=Gd(Wv()),o1=Gd(s1()),c7=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Tn.decodeXML=c1(a7.default);Tn.decodeHTMLStrict=c1(Hv.default);function c1(e){var t=l1(e);return function(n){return String(n).replace(c7,t)}}var a1=function(e,t){return e<t?1:-1};Tn.decodeHTML=function(){for(var e=Object.keys(o7.default).sort(a1),t=Object.keys(Hv.default).sort(a1),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=l1(Hv.default);function o(a){return a.substr(-1)!==";"&&(a+=";"),s(a)}return function(a){return String(a).replace(i,o)}}();function l1(e){return function(n){if(n.charAt(1)==="#"){var r=n.charAt(2);return r==="X"||r==="x"?o1.default(parseInt(n.substr(3),16)):o1.default(parseInt(n.substr(2),10))}return e[n.slice(1,-1)]||n}}});var Qv=f(bt=>{"use strict";var u1=bt&&bt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(bt,"__esModule",{value:!0});bt.escapeUTF8=bt.escape=bt.encodeNonAsciiHTML=bt.encodeHTML=bt.encodeXML=void 0;var l7=u1(Wv()),d1=m1(l7.default),f1=p1(d1);bt.encodeXML=y1(d1);var u7=u1(Kv()),Jv=m1(u7.default),d7=p1(Jv);bt.encodeHTML=m7(Jv,d7);bt.encodeNonAsciiHTML=y1(Jv);function m1(e){return Object.keys(e).sort().reduce(function(t,n){return t[e[n]]="&"+n+";",t},{})}function p1(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 o=0;o<t.length-1;o++){for(var a=o;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var c=1+a-o;c<3||t.splice(o,c,t[o]+"-"+t[a])}return n.unshift("["+t.join("")+"]"),new RegExp(n.join("|"),"g")}var h1=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,f7=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function $d(e){return"&#x"+(e.length>1?f7(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function m7(e,t){return function(n){return n.replace(t,function(r){return e[r]}).replace(h1,$d)}}var _1=new RegExp(f1.source+"|"+h1.source,"g");function p7(e){return e.replace(_1,$d)}bt.escape=p7;function h7(e){return e.replace(f1,$d)}bt.escapeUTF8=h7;function y1(e){return function(t){return t.replace(_1,function(n){return e[n]||$d(n)})}}});var v1=f(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.decodeXMLStrict=ue.decodeHTML5Strict=ue.decodeHTML4Strict=ue.decodeHTML5=ue.decodeHTML4=ue.decodeHTMLStrict=ue.decodeHTML=ue.decodeXML=ue.encodeHTML5=ue.encodeHTML4=ue.escapeUTF8=ue.escape=ue.encodeNonAsciiHTML=ue.encodeHTML=ue.encodeXML=ue.encode=ue.decodeStrict=ue.decode=void 0;var Vd=Yv(),g1=Qv();function _7(e,t){return(!t||t<=0?Vd.decodeXML:Vd.decodeHTML)(e)}ue.decode=_7;function y7(e,t){return(!t||t<=0?Vd.decodeXML:Vd.decodeHTMLStrict)(e)}ue.decodeStrict=y7;function g7(e,t){return(!t||t<=0?g1.encodeXML:g1.encodeHTML)(e)}ue.encode=g7;var hi=Qv();Object.defineProperty(ue,"encodeXML",{enumerable:!0,get:function(){return hi.encodeXML}});Object.defineProperty(ue,"encodeHTML",{enumerable:!0,get:function(){return hi.encodeHTML}});Object.defineProperty(ue,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return hi.encodeNonAsciiHTML}});Object.defineProperty(ue,"escape",{enumerable:!0,get:function(){return hi.escape}});Object.defineProperty(ue,"escapeUTF8",{enumerable:!0,get:function(){return hi.escapeUTF8}});Object.defineProperty(ue,"encodeHTML4",{enumerable:!0,get:function(){return hi.encodeHTML}});Object.defineProperty(ue,"encodeHTML5",{enumerable:!0,get:function(){return hi.encodeHTML}});var Dr=Yv();Object.defineProperty(ue,"decodeXML",{enumerable:!0,get:function(){return Dr.decodeXML}});Object.defineProperty(ue,"decodeHTML",{enumerable:!0,get:function(){return Dr.decodeHTML}});Object.defineProperty(ue,"decodeHTMLStrict",{enumerable:!0,get:function(){return Dr.decodeHTMLStrict}});Object.defineProperty(ue,"decodeHTML4",{enumerable:!0,get:function(){return Dr.decodeHTML}});Object.defineProperty(ue,"decodeHTML5",{enumerable:!0,get:function(){return Dr.decodeHTML}});Object.defineProperty(ue,"decodeHTML4Strict",{enumerable:!0,get:function(){return Dr.decodeHTMLStrict}});Object.defineProperty(ue,"decodeHTML5Strict",{enumerable:!0,get:function(){return Dr.decodeHTMLStrict}});Object.defineProperty(ue,"decodeXMLStrict",{enumerable:!0,get:function(){return Dr.decodeXML}})});var Cn=f(nn=>{"use strict";var S1=":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",v7=S1+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",w1="["+S1+"]["+v7+"]*",S7=new RegExp("^"+w1+"$"),w7=function(e,t){let n=[],r=t.exec(e);for(;r;){let i=[],s=r.length;for(let o=0;o<s;o++)i.push(r[o]);n.push(i),r=t.exec(e)}return n},b7=function(e){let t=S7.exec(e);return!(t===null||typeof t>"u")};nn.isExist=function(e){return typeof e<"u"};nn.isEmptyObject=function(e){return Object.keys(e).length===0};nn.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]]}};nn.getValue=function(e){return nn.isExist(e)?e:""};nn.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};nn.isTagNameInArrayMode=function(e,t,n){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,n):t==="strict"};nn.isName=b7;nn.getAllMatches=w7;nn.nameRegexp=w1});var E1=f(b1=>{"use strict";var _i=Cn(),Xv=function(e,t,n){let r={};if((!e.child||_i.isEmptyObject(e.child))&&(!e.attrsMap||_i.isEmptyObject(e.attrsMap)))return _i.isExist(e.val)?e.val:"";if(_i.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=_i.isTagNameInArrayMode(e.tagname,t.arrayMode,n);r[t.textNodeName]=s?[e.val]:e.val}_i.merge(r,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let o=i[s];if(e.child[o]&&e.child[o].length>1){r[o]=[];for(let a in e.child[o])e.child[o].hasOwnProperty(a)&&r[o].push(Xv(e.child[o][a],t,o))}else{let a=Xv(e.child[o][0],t,o),c=t.arrayMode===!0&&typeof a=="object"||_i.isTagNameInArrayMode(o,t.arrayMode,n);r[o]=c?[a]:a}}return r};b1.convertToJson=Xv});var T1=f((dSe,A1)=>{"use strict";A1.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 va=f(Hd=>{"use strict";var yi=Cn(),E7=Cn().buildOptions,Kd=T1(),fSe="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,yi.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var x1={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:[]};Hd.defaultOptions=x1;var I1=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];Hd.props=I1;function Wd(e,t,n){return t&&(n.trimValues&&(t=t.trim()),t=n.tagValueProcessor(t,e),t=R1(t,n.parseNodeValue,n.parseTrueNumberOnly)),t}function A7(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 R1(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 yi.isExist(e)?e:""}var T7=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function C1(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let n=yi.getAllMatches(e,T7),r=n.length,i={};for(let s=0;s<r;s++){let o=A7(n[s][1],t);o.length&&(n[s][4]!==void 0?(t.trimValues&&(n[s][4]=n[s][4].trim()),n[s][4]=t.attrValueProcessor(n[s][4],o),i[t.attributeNamePrefix+o]=R1(n[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+o]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var C7=function(e,t){e=e.replace(/\r\n?/g,`
|
|
22
|
-
`),t=
|
|
23
|
-
`&&e[s]!=="\r";s++)a+=e[s];if(a=a.trim(),a[a.length-1]==="/"&&(a=a.substring(0,a.length-1),s--),!
|
|
24
|
-
`||e[s]==="\r")continue;return
|
|
19
|
+
${r}
|
|
20
|
+
${(0,Zf.toHex)(s)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let r=[];for(let s of t.split("/"))(s==null?void 0:s.length)!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let n=`${t!=null&&t.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&(t==null?void 0:t.endsWith("/"))?"/":""}`;return encodeURIComponent(n).replace(/%2F/g,"/")}return t}async getSignature(t,r,n,i){let s=await this.createStringToSign(t,r,i),o=new this.sha256(await n);return o.update(s),(0,Zf.toHex)(await o.digest())}getSigningKey(t,r,n,i){return(0,em.getSigningKey)(this.sha256,t,n,r,i||this.service)}};rm.SignatureV4=Y0;var tm=e=>{let t=(0,Ote.iso8601)(e).replace(/[\-:]/g,"");return{longDate:t,shortDate:t.slice(0,8)}},qP=e=>Object.keys(e).sort().join(";")});var jP=u(It=>{"use strict";Object.defineProperty(It,"__esModule",{value:!0});It.prepareRequest=It.moveHeadersToQuery=It.getPayloadHash=It.getCanonicalQuery=It.getCanonicalHeaders=void 0;var zP=q();zP.__exportStar(MP(),It);var Lte=B0();Object.defineProperty(It,"getCanonicalHeaders",{enumerable:!0,get:function(){return Lte.getCanonicalHeaders}});var qte=$0();Object.defineProperty(It,"getCanonicalQuery",{enumerable:!0,get:function(){return qte.getCanonicalQuery}});var Mte=V0();Object.defineProperty(It,"getPayloadHash",{enumerable:!0,get:function(){return Mte.getPayloadHash}});var zte=H0();Object.defineProperty(It,"moveHeadersToQuery",{enumerable:!0,get:function(){return zte.moveHeadersToQuery}});var jte=W0();Object.defineProperty(It,"prepareRequest",{enumerable:!0,get:function(){return jte.prepareRequest}});zP.__exportStar(F0(),It)});var UP=u(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});qs.resolveSigV4AuthConfig=qs.resolveAwsAuthConfig=void 0;var kte=SP(),kP=jP(),Fte=3e5,Ute=e=>{let t=e.credentials?FP(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Ha(e.signer):s=()=>Ha(e.region)().then(async o=>[await e.regionInfoProvider(o,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},o]).then(([o,a])=>{let{signingRegion:c,signingService:d}=o;e.signingRegion=e.signingRegion||c||a,e.signingName=e.signingName||d||e.serviceId;let f={...e,credentials:t,region:e.signingRegion,service:e.signingName,sha256:i,uriEscapePath:r},_=e.signerConstructor||kP.SignatureV4;return new _(f)}),{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s}};qs.resolveAwsAuthConfig=Ute;var Bte=e=>{let t=e.credentials?FP(e.credentials):e.credentialDefaultProvider(e),{signingEscapePath:r=!0,systemClockOffset:n=e.systemClockOffset||0,sha256:i}=e,s;return e.signer?s=Ha(e.signer):s=Ha(new kP.SignatureV4({credentials:t,region:e.region,service:e.signingName,sha256:i,uriEscapePath:r})),{...e,systemClockOffset:n,signingEscapePath:r,credentials:t,signer:s}};qs.resolveSigV4AuthConfig=Bte;var Ha=e=>{if(typeof e=="object"){let t=Promise.resolve(e);return()=>t}return e},FP=e=>typeof e=="function"?(0,kte.memoize)(e,t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<Fte,t=>t.expiration!==void 0):Ha(e)});var Q0=u(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.getSkewCorrectedDate=void 0;var Gte=e=>new Date(Date.now()+e);nm.getSkewCorrectedDate=Gte});var BP=u(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.isClockSkewed=void 0;var $te=Q0(),Vte=(e,t)=>Math.abs((0,$te.getSkewCorrectedDate)(t).getTime()-e)>=3e5;im.isClockSkewed=Vte});var GP=u(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});sm.getUpdatedSystemClockOffset=void 0;var Kte=BP(),Hte=(e,t)=>{let r=Date.parse(e);return(0,Kte.isClockSkewed)(r,t)?r-Date.now():t};sm.getUpdatedSystemClockOffset=Hte});var HP=u(Bt=>{"use strict";Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getSigV4AuthPlugin=Bt.getAwsAuthPlugin=Bt.awsAuthMiddlewareOptions=Bt.awsAuthMiddleware=void 0;var KP=Ct(),Wte=Q0(),$P=GP(),Jte=e=>(t,r)=>async function(n){if(!KP.HttpRequest.isInstance(n.request))return t(n);let i=await e.signer(),s=await t({...n,request:await i.sign(n.request,{signingDate:(0,Wte.getSkewCorrectedDate)(e.systemClockOffset),signingRegion:r.signing_region,signingService:r.signing_service})}).catch(a=>{var c;let d=(c=a.ServerTime)!==null&&c!==void 0?c:VP(a.$response);throw d&&(e.systemClockOffset=(0,$P.getUpdatedSystemClockOffset)(d,e.systemClockOffset)),a}),o=VP(s.response);return o&&(e.systemClockOffset=(0,$P.getUpdatedSystemClockOffset)(o,e.systemClockOffset)),s};Bt.awsAuthMiddleware=Jte;var VP=e=>{var t,r,n;return KP.HttpResponse.isInstance(e)?(r=(t=e.headers)===null||t===void 0?void 0:t.date)!==null&&r!==void 0?r:(n=e.headers)===null||n===void 0?void 0:n.Date:void 0};Bt.awsAuthMiddlewareOptions={name:"awsAuthMiddleware",tags:["SIGNATURE","AWSAUTH"],relation:"after",toMiddleware:"retryMiddleware",override:!0};var Yte=e=>({applyToStack:t=>{t.addRelativeTo((0,Bt.awsAuthMiddleware)(e),Bt.awsAuthMiddlewareOptions)}});Bt.getAwsAuthPlugin=Yte;Bt.getSigV4AuthPlugin=Bt.getAwsAuthPlugin});var Sn=u(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});var WP=q();WP.__exportStar(UP(),om);WP.__exportStar(HP(),om)});var JP=u(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.resolveUserAgentConfig=void 0;function Qte(e){return{...e,customUserAgent:typeof e.customUserAgent=="string"?[[e.customUserAgent]]:e.customUserAgent}}am.resolveUserAgentConfig=Qte});var YP=u(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.UA_ESCAPE_REGEX=Nr.SPACE=Nr.X_AMZ_USER_AGENT=Nr.USER_AGENT=void 0;Nr.USER_AGENT="user-agent";Nr.X_AMZ_USER_AGENT="x-amz-user-agent";Nr.SPACE=" ";Nr.UA_ESCAPE_REGEX=/[^\!\#\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g});var QP=u(Pr=>{"use strict";Object.defineProperty(Pr,"__esModule",{value:!0});Pr.getUserAgentPlugin=Pr.getUserAgentMiddlewareOptions=Pr.userAgentMiddleware=void 0;var Xte=Ct(),Zn=YP(),Zte=e=>(t,r)=>async n=>{var i,s;let{request:o}=n;if(!Xte.HttpRequest.isInstance(o))return t(n);let{headers:a}=o,c=((i=r==null?void 0:r.userAgent)===null||i===void 0?void 0:i.map(X0))||[],d=(await e.defaultUserAgentProvider()).map(X0),f=((s=e==null?void 0:e.customUserAgent)===null||s===void 0?void 0:s.map(X0))||[],_=[...d,...c,...f].join(Zn.SPACE),m=[...d.filter(h=>h.startsWith("aws-sdk-")),...f].join(Zn.SPACE);return e.runtime!=="browser"?(m&&(a[Zn.X_AMZ_USER_AGENT]=a[Zn.X_AMZ_USER_AGENT]?`${a[Zn.USER_AGENT]} ${m}`:m),a[Zn.USER_AGENT]=_):a[Zn.X_AMZ_USER_AGENT]=_,t({...n,request:o})};Pr.userAgentMiddleware=Zte;var X0=([e,t])=>{let r=e.indexOf("/"),n=e.substring(0,r),i=e.substring(r+1);return n==="api"&&(i=i.toLowerCase()),[n,i,t].filter(s=>s&&s.length>0).map(s=>s==null?void 0:s.replace(Zn.UA_ESCAPE_REGEX,"_")).join("/")};Pr.getUserAgentMiddlewareOptions={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0};var ere=e=>({applyToStack:t=>{t.add((0,Pr.userAgentMiddleware)(e),Pr.getUserAgentMiddlewareOptions)}});Pr.getUserAgentPlugin=ere});var Wa=u(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});var XP=q();XP.__exportStar(JP(),cm);XP.__exportStar(QP(),cm)});var ZP=u((wRe,tre)=>{tre.exports={name:"@aws-sdk/client-dynamodb",description:"AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently '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-* && rimraf *.tsbuildinfo"},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.78.0","@aws-sdk/config-resolver":"3.78.0","@aws-sdk/credential-provider-node":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-endpoint-discovery":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0","@aws-sdk/util-waiter":"3.78.0",tslib:"^2.3.1",uuid:"^8.3.2"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5","@types/uuid":"^8.3.0",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},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 dm=u(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.STSServiceException=void 0;var rre=N(),Ja=class extends rre.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Ja.prototype)}};lm.STSServiceException=Ja});var lr=u(L=>{"use strict";Object.defineProperty(L,"__esModule",{value:!0});L.GetSessionTokenResponse=L.GetSessionTokenRequest=L.GetFederationTokenResponse=L.FederatedUser=L.GetFederationTokenRequest=L.GetCallerIdentityResponse=L.GetCallerIdentityRequest=L.GetAccessKeyInfoResponse=L.GetAccessKeyInfoRequest=L.InvalidAuthorizationMessageException=L.DecodeAuthorizationMessageResponse=L.DecodeAuthorizationMessageRequest=L.IDPCommunicationErrorException=L.AssumeRoleWithWebIdentityResponse=L.AssumeRoleWithWebIdentityRequest=L.InvalidIdentityTokenException=L.IDPRejectedClaimException=L.AssumeRoleWithSAMLResponse=L.AssumeRoleWithSAMLRequest=L.RegionDisabledException=L.PackedPolicyTooLargeException=L.MalformedPolicyDocumentException=L.ExpiredTokenException=L.AssumeRoleResponse=L.Credentials=L.AssumeRoleRequest=L.Tag=L.PolicyDescriptorType=L.AssumedRoleUser=void 0;var ei=dm(),nre;(function(e){e.filterSensitiveLog=t=>({...t})})(nre=L.AssumedRoleUser||(L.AssumedRoleUser={}));var ire;(function(e){e.filterSensitiveLog=t=>({...t})})(ire=L.PolicyDescriptorType||(L.PolicyDescriptorType={}));var sre;(function(e){e.filterSensitiveLog=t=>({...t})})(sre=L.Tag||(L.Tag={}));var ore;(function(e){e.filterSensitiveLog=t=>({...t})})(ore=L.AssumeRoleRequest||(L.AssumeRoleRequest={}));var are;(function(e){e.filterSensitiveLog=t=>({...t})})(are=L.Credentials||(L.Credentials={}));var cre;(function(e){e.filterSensitiveLog=t=>({...t})})(cre=L.AssumeRoleResponse||(L.AssumeRoleResponse={}));var Ya=class extends ei.STSServiceException{constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),this.name="ExpiredTokenException",this.$fault="client",Object.setPrototypeOf(this,Ya.prototype)}};L.ExpiredTokenException=Ya;var Qa=class extends ei.STSServiceException{constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),this.name="MalformedPolicyDocumentException",this.$fault="client",Object.setPrototypeOf(this,Qa.prototype)}};L.MalformedPolicyDocumentException=Qa;var Xa=class extends ei.STSServiceException{constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),this.name="PackedPolicyTooLargeException",this.$fault="client",Object.setPrototypeOf(this,Xa.prototype)}};L.PackedPolicyTooLargeException=Xa;var Za=class extends ei.STSServiceException{constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),this.name="RegionDisabledException",this.$fault="client",Object.setPrototypeOf(this,Za.prototype)}};L.RegionDisabledException=Za;var lre;(function(e){e.filterSensitiveLog=t=>({...t})})(lre=L.AssumeRoleWithSAMLRequest||(L.AssumeRoleWithSAMLRequest={}));var dre;(function(e){e.filterSensitiveLog=t=>({...t})})(dre=L.AssumeRoleWithSAMLResponse||(L.AssumeRoleWithSAMLResponse={}));var ec=class extends ei.STSServiceException{constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),this.name="IDPRejectedClaimException",this.$fault="client",Object.setPrototypeOf(this,ec.prototype)}};L.IDPRejectedClaimException=ec;var tc=class extends ei.STSServiceException{constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),this.name="InvalidIdentityTokenException",this.$fault="client",Object.setPrototypeOf(this,tc.prototype)}};L.InvalidIdentityTokenException=tc;var ure;(function(e){e.filterSensitiveLog=t=>({...t})})(ure=L.AssumeRoleWithWebIdentityRequest||(L.AssumeRoleWithWebIdentityRequest={}));var fre;(function(e){e.filterSensitiveLog=t=>({...t})})(fre=L.AssumeRoleWithWebIdentityResponse||(L.AssumeRoleWithWebIdentityResponse={}));var rc=class extends ei.STSServiceException{constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),this.name="IDPCommunicationErrorException",this.$fault="client",Object.setPrototypeOf(this,rc.prototype)}};L.IDPCommunicationErrorException=rc;var mre;(function(e){e.filterSensitiveLog=t=>({...t})})(mre=L.DecodeAuthorizationMessageRequest||(L.DecodeAuthorizationMessageRequest={}));var pre;(function(e){e.filterSensitiveLog=t=>({...t})})(pre=L.DecodeAuthorizationMessageResponse||(L.DecodeAuthorizationMessageResponse={}));var nc=class extends ei.STSServiceException{constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),this.name="InvalidAuthorizationMessageException",this.$fault="client",Object.setPrototypeOf(this,nc.prototype)}};L.InvalidAuthorizationMessageException=nc;var _re;(function(e){e.filterSensitiveLog=t=>({...t})})(_re=L.GetAccessKeyInfoRequest||(L.GetAccessKeyInfoRequest={}));var hre;(function(e){e.filterSensitiveLog=t=>({...t})})(hre=L.GetAccessKeyInfoResponse||(L.GetAccessKeyInfoResponse={}));var yre;(function(e){e.filterSensitiveLog=t=>({...t})})(yre=L.GetCallerIdentityRequest||(L.GetCallerIdentityRequest={}));var gre;(function(e){e.filterSensitiveLog=t=>({...t})})(gre=L.GetCallerIdentityResponse||(L.GetCallerIdentityResponse={}));var vre;(function(e){e.filterSensitiveLog=t=>({...t})})(vre=L.GetFederationTokenRequest||(L.GetFederationTokenRequest={}));var Sre;(function(e){e.filterSensitiveLog=t=>({...t})})(Sre=L.FederatedUser||(L.FederatedUser={}));var wre;(function(e){e.filterSensitiveLog=t=>({...t})})(wre=L.GetFederationTokenResponse||(L.GetFederationTokenResponse={}));var Ere;(function(e){e.filterSensitiveLog=t=>({...t})})(Ere=L.GetSessionTokenRequest||(L.GetSessionTokenRequest={}));var bre;(function(e){e.filterSensitiveLog=t=>({...t})})(bre=L.GetSessionTokenResponse||(L.GetSessionTokenResponse={}))});var Z0=u((ARe,Are)=>{Are.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 eD=u((TRe,Tre)=>{Tre.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 eE=u((CRe,Cre)=>{Cre.exports={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}});var tD=u((xRe,xre)=>{xre.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 nD=u(ic=>{"use strict";var Ire=ic&&ic.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(ic,"__esModule",{value:!0});var rD=Ire(tD()),Rre=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 Nre(e){return e>=55296&&e<=57343||e>1114111?"\uFFFD":(e in rD.default&&(e=rD.default[e]),Rre(e))}ic.default=Nre});var rE=u(Dr=>{"use strict";var um=Dr&&Dr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Dr,"__esModule",{value:!0});Dr.decodeHTML=Dr.decodeHTMLStrict=Dr.decodeXML=void 0;var tE=um(Z0()),Pre=um(eD()),Dre=um(eE()),iD=um(nD()),Ore=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Dr.decodeXML=oD(Dre.default);Dr.decodeHTMLStrict=oD(tE.default);function oD(e){var t=aD(e);return function(r){return String(r).replace(Ore,t)}}var sD=function(e,t){return e<t?1:-1};Dr.decodeHTML=function(){for(var e=Object.keys(Pre.default).sort(sD),t=Object.keys(tE.default).sort(sD),r=0,n=0;r<t.length;r++)e[n]===t[r]?(t[r]+=";?",n++):t[r]+=";";var i=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=aD(tE.default);function o(a){return a.substr(-1)!==";"&&(a+=";"),s(a)}return function(a){return String(a).replace(i,o)}}();function aD(e){return function(r){if(r.charAt(1)==="#"){var n=r.charAt(2);return n==="X"||n==="x"?iD.default(parseInt(r.substr(3),16)):iD.default(parseInt(r.substr(2),10))}return e[r.slice(1,-1)]||r}}});var iE=u(Rt=>{"use strict";var cD=Rt&&Rt.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Rt,"__esModule",{value:!0});Rt.escapeUTF8=Rt.escape=Rt.encodeNonAsciiHTML=Rt.encodeHTML=Rt.encodeXML=void 0;var Lre=cD(eE()),lD=uD(Lre.default),dD=fD(lD);Rt.encodeXML=_D(lD);var qre=cD(Z0()),nE=uD(qre.default),Mre=fD(nE);Rt.encodeHTML=jre(nE,Mre);Rt.encodeNonAsciiHTML=_D(nE);function uD(e){return Object.keys(e).sort().reduce(function(t,r){return t[e[r]]="&"+r+";",t},{})}function fD(e){for(var t=[],r=[],n=0,i=Object.keys(e);n<i.length;n++){var s=i[n];s.length===1?t.push("\\"+s):r.push(s)}t.sort();for(var o=0;o<t.length-1;o++){for(var a=o;a<t.length-1&&t[a].charCodeAt(1)+1===t[a+1].charCodeAt(1);)a+=1;var c=1+a-o;c<3||t.splice(o,c,t[o]+"-"+t[a])}return r.unshift("["+t.join("")+"]"),new RegExp(r.join("|"),"g")}var mD=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,zre=String.prototype.codePointAt!=null?function(e){return e.codePointAt(0)}:function(e){return(e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536};function fm(e){return"&#x"+(e.length>1?zre(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function jre(e,t){return function(r){return r.replace(t,function(n){return e[n]}).replace(mD,fm)}}var pD=new RegExp(dD.source+"|"+mD.source,"g");function kre(e){return e.replace(pD,fm)}Rt.escape=kre;function Fre(e){return e.replace(dD,fm)}Rt.escapeUTF8=Fre;function _D(e){return function(t){return t.replace(pD,function(r){return e[r]||fm(r)})}}});var yD=u(ue=>{"use strict";Object.defineProperty(ue,"__esModule",{value:!0});ue.decodeXMLStrict=ue.decodeHTML5Strict=ue.decodeHTML4Strict=ue.decodeHTML5=ue.decodeHTML4=ue.decodeHTMLStrict=ue.decodeHTML=ue.decodeXML=ue.encodeHTML5=ue.encodeHTML4=ue.escapeUTF8=ue.escape=ue.encodeNonAsciiHTML=ue.encodeHTML=ue.encodeXML=ue.encode=ue.decodeStrict=ue.decode=void 0;var mm=rE(),hD=iE();function Ure(e,t){return(!t||t<=0?mm.decodeXML:mm.decodeHTML)(e)}ue.decode=Ure;function Bre(e,t){return(!t||t<=0?mm.decodeXML:mm.decodeHTMLStrict)(e)}ue.decodeStrict=Bre;function Gre(e,t){return(!t||t<=0?hD.encodeXML:hD.encodeHTML)(e)}ue.encode=Gre;var ki=iE();Object.defineProperty(ue,"encodeXML",{enumerable:!0,get:function(){return ki.encodeXML}});Object.defineProperty(ue,"encodeHTML",{enumerable:!0,get:function(){return ki.encodeHTML}});Object.defineProperty(ue,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return ki.encodeNonAsciiHTML}});Object.defineProperty(ue,"escape",{enumerable:!0,get:function(){return ki.escape}});Object.defineProperty(ue,"escapeUTF8",{enumerable:!0,get:function(){return ki.escapeUTF8}});Object.defineProperty(ue,"encodeHTML4",{enumerable:!0,get:function(){return ki.encodeHTML}});Object.defineProperty(ue,"encodeHTML5",{enumerable:!0,get:function(){return ki.encodeHTML}});var ti=rE();Object.defineProperty(ue,"decodeXML",{enumerable:!0,get:function(){return ti.decodeXML}});Object.defineProperty(ue,"decodeHTML",{enumerable:!0,get:function(){return ti.decodeHTML}});Object.defineProperty(ue,"decodeHTMLStrict",{enumerable:!0,get:function(){return ti.decodeHTMLStrict}});Object.defineProperty(ue,"decodeHTML4",{enumerable:!0,get:function(){return ti.decodeHTML}});Object.defineProperty(ue,"decodeHTML5",{enumerable:!0,get:function(){return ti.decodeHTML}});Object.defineProperty(ue,"decodeHTML4Strict",{enumerable:!0,get:function(){return ti.decodeHTMLStrict}});Object.defineProperty(ue,"decodeHTML5Strict",{enumerable:!0,get:function(){return ti.decodeHTMLStrict}});Object.defineProperty(ue,"decodeXMLStrict",{enumerable:!0,get:function(){return ti.decodeXML}})});var Or=u(dr=>{"use strict";var gD=":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",$re=gD+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",vD="["+gD+"]["+$re+"]*",Vre=new RegExp("^"+vD+"$"),Kre=function(e,t){let r=[],n=t.exec(e);for(;n;){let i=[],s=n.length;for(let o=0;o<s;o++)i.push(n[o]);r.push(i),n=t.exec(e)}return r},Hre=function(e){let t=Vre.exec(e);return!(t===null||typeof t>"u")};dr.isExist=function(e){return typeof e<"u"};dr.isEmptyObject=function(e){return Object.keys(e).length===0};dr.merge=function(e,t,r){if(t){let n=Object.keys(t),i=n.length;for(let s=0;s<i;s++)r==="strict"?e[n[s]]=[t[n[s]]]:e[n[s]]=t[n[s]]}};dr.getValue=function(e){return dr.isExist(e)?e:""};dr.buildOptions=function(e,t,r){var n={};if(!e)return t;for(let i=0;i<r.length;i++)e[r[i]]!==void 0?n[r[i]]=e[r[i]]:n[r[i]]=t[r[i]];return n};dr.isTagNameInArrayMode=function(e,t,r){return t===!1?!1:t instanceof RegExp?t.test(e):typeof t=="function"?!!t(e,r):t==="strict"};dr.isName=Hre;dr.getAllMatches=Kre;dr.nameRegexp=vD});var wD=u(SD=>{"use strict";var Fi=Or(),sE=function(e,t,r){let n={};if((!e.child||Fi.isEmptyObject(e.child))&&(!e.attrsMap||Fi.isEmptyObject(e.attrsMap)))return Fi.isExist(e.val)?e.val:"";if(Fi.isExist(e.val)&&!(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar))){let s=Fi.isTagNameInArrayMode(e.tagname,t.arrayMode,r);n[t.textNodeName]=s?[e.val]:e.val}Fi.merge(n,e.attrsMap,t.arrayMode);let i=Object.keys(e.child);for(let s=0;s<i.length;s++){let o=i[s];if(e.child[o]&&e.child[o].length>1){n[o]=[];for(let a in e.child[o])e.child[o].hasOwnProperty(a)&&n[o].push(sE(e.child[o][a],t,o))}else{let a=sE(e.child[o][0],t,o),c=t.arrayMode===!0&&typeof a=="object"||Fi.isTagNameInArrayMode(o,t.arrayMode,r);n[o]=c?[a]:a}}return n};SD.convertToJson=sE});var bD=u((LRe,ED)=>{"use strict";ED.exports=function(e,t,r){this.tagname=e,this.parent=t,this.child={},this.attrsMap={},this.val=r,this.addChild=function(n){Array.isArray(this.child[n.tagname])?this.child[n.tagname].push(n):this.child[n.tagname]=[n]}}});var oc=u(hm=>{"use strict";var Ui=Or(),Wre=Or().buildOptions,pm=bD(),qRe="<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)".replace(/NAME/g,Ui.nameRegexp);!Number.parseInt&&window.parseInt&&(Number.parseInt=window.parseInt);!Number.parseFloat&&window.parseFloat&&(Number.parseFloat=window.parseFloat);var TD={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:[]};hm.defaultOptions=TD;var CD=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","ignoreNameSpace","allowBooleanAttributes","parseNodeValue","parseAttributeValue","arrayMode","trimValues","cdataTagName","cdataPositionChar","tagValueProcessor","attrValueProcessor","parseTrueNumberOnly","stopNodes"];hm.props=CD;function _m(e,t,r){return t&&(r.trimValues&&(t=t.trim()),t=r.tagValueProcessor(t,e),t=xD(t,r.parseNodeValue,r.parseTrueNumberOnly)),t}function Jre(e,t){if(t.ignoreNameSpace){let r=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(r[0]==="xmlns")return"";r.length===2&&(e=n+r[1])}return e}function xD(e,t,r){if(t&&typeof e=="string"){let n;return e.trim()===""||isNaN(e)?n=e==="true"?!0:e==="false"?!1:e:(e.indexOf("0x")!==-1?n=Number.parseInt(e,16):e.indexOf(".")!==-1?(n=Number.parseFloat(e),e=e.replace(/\.?0+$/,"")):n=Number.parseInt(e,10),r&&(n=String(n)===e?n:e)),n}else return Ui.isExist(e)?e:""}var Yre=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])(.*?)\\3)?`,"g");function AD(e,t){if(!t.ignoreAttributes&&typeof e=="string"){e=e.replace(/\r?\n/g," ");let r=Ui.getAllMatches(e,Yre),n=r.length,i={};for(let s=0;s<n;s++){let o=Jre(r[s][1],t);o.length&&(r[s][4]!==void 0?(t.trimValues&&(r[s][4]=r[s][4].trim()),r[s][4]=t.attrValueProcessor(r[s][4],o),i[t.attributeNamePrefix+o]=xD(r[s][4],t.parseAttributeValue,t.parseTrueNumberOnly)):t.allowBooleanAttributes&&(i[t.attributeNamePrefix+o]=!0))}if(!Object.keys(i).length)return;if(t.attrNodeName){let s={};return s[t.attrNodeName]=i,s}return i}}var Qre=function(e,t){e=e.replace(/\r\n?/g,`
|
|
22
|
+
`),t=Wre(t,TD,CD);let r=new pm("!xml"),n=r,i="";for(let s=0;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="/"){let a=sc(e,">",s,"Closing Tag is not closed."),c=e.substring(s+2,a).trim();if(t.ignoreNameSpace){let d=c.indexOf(":");d!==-1&&(c=c.substr(d+1))}n&&(n.val?n.val=Ui.getValue(n.val)+""+_m(c,i,t):n.val=_m(c,i,t)),t.stopNodes.length&&t.stopNodes.includes(n.tagname)&&(n.child=[],n.attrsMap==null&&(n.attrsMap={}),n.val=e.substr(n.startIndex+1,s-n.startIndex-1)),n=n.parent,i="",s=a}else if(e[s+1]==="?")s=sc(e,"?>",s,"Pi Tag is not closed.");else if(e.substr(s+1,3)==="!--")s=sc(e,"-->",s,"Comment is not closed.");else if(e.substr(s+1,2)==="!D"){let a=sc(e,">",s,"DOCTYPE is not closed.");e.substring(s,a).indexOf("[")>=0?s=e.indexOf("]>",s)+1:s=a}else if(e.substr(s+1,2)==="!["){let a=sc(e,"]]>",s,"CDATA is not closed.")-2,c=e.substring(s+9,a);if(i&&(n.val=Ui.getValue(n.val)+""+_m(n.tagname,i,t),i=""),t.cdataTagName){let d=new pm(t.cdataTagName,n,c);n.addChild(d),n.val=Ui.getValue(n.val)+t.cdataPositionChar,c&&(d.val=c)}else n.val=(n.val||"")+(c||"");s=a+2}else{let a=Xre(e,s+1),c=a.data,d=a.index,f=c.indexOf(" "),_=c,m=!0;if(f!==-1&&(_=c.substr(0,f).replace(/\s\s*$/,""),c=c.substr(f+1)),t.ignoreNameSpace){let h=_.indexOf(":");h!==-1&&(_=_.substr(h+1),m=_!==a.data.substr(h+1))}if(n&&i&&n.tagname!=="!xml"&&(n.val=Ui.getValue(n.val)+""+_m(n.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 h=new pm(_,n,"");_!==c&&(h.attrsMap=AD(c,t)),n.addChild(h)}else{let h=new pm(_,n);t.stopNodes.length&&t.stopNodes.includes(h.tagname)&&(h.startIndex=d),_!==c&&m&&(h.attrsMap=AD(c,t)),n.addChild(h),n=h}i="",s=d}else i+=e[s];return r};function Xre(e,t){let r,n="";for(let i=t;i<e.length;i++){let s=e[i];if(r)s===r&&(r="");else if(s==='"'||s==="'")r=s;else{if(s===">")return{data:n,index:i};s===" "&&(s=" ")}n+=s}}function sc(e,t,r,n){let i=e.indexOf(t,r);if(i===-1)throw new Error(n);return i+t.length-1}hm.getTraversalObj=Qre});var DD=u(PD=>{"use strict";var gm=Or(),Zre={allowBooleanAttributes:!1},ene=["allowBooleanAttributes"];PD.validate=function(e,t){t=gm.buildOptions(t,Zre,ene);let r=[],n=!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=ID(e,s),s.err)return s}else if(e[s]==="<")if(s++,e[s]==="!"){s=RD(e,s);continue}else{let o=!1;e[s]==="/"&&(o=!0,s++);let a="";for(;s<e.length&&e[s]!==">"&&e[s]!==" "&&e[s]!==" "&&e[s]!==`
|
|
23
|
+
`&&e[s]!=="\r";s++)a+=e[s];if(a=a.trim(),a[a.length-1]==="/"&&(a=a.substring(0,a.length-1),s--),!cne(a)){let f;return a.trim().length===0?f="There is an unnecessary space between tag name and backward slash '</ ..'.":f="Tag '"+a+"' is an invalid name.",lt("InvalidTag",f,ur(e,s))}let c=nne(e,s);if(c===!1)return lt("InvalidAttr","Attributes for '"+a+"' have open quote.",ur(e,s));let d=c.value;if(s=c.index,d[d.length-1]==="/"){d=d.substring(0,d.length-1);let f=ND(d,t);if(f===!0)n=!0;else return lt(f.err.code,f.err.msg,ur(e,s-d.length+f.err.line))}else if(o)if(c.tagClosed){if(d.trim().length>0)return lt("InvalidTag","Closing tag '"+a+"' can't have attributes or invalid starting.",ur(e,s));{let f=r.pop();if(a!==f)return lt("InvalidTag","Closing tag '"+f+"' is expected inplace of '"+a+"'.",ur(e,s));r.length==0&&(i=!0)}}else return lt("InvalidTag","Closing tag '"+a+"' doesn't have proper closing.",ur(e,s));else{let f=ND(d,t);if(f!==!0)return lt(f.err.code,f.err.msg,ur(e,s-d.length+f.err.line));if(i===!0)return lt("InvalidXml","Multiple possible root nodes found.",ur(e,s));r.push(a),n=!0}for(s++;s<e.length;s++)if(e[s]==="<")if(e[s+1]==="!"){s++,s=RD(e,s);continue}else if(e[s+1]==="?"){if(s=ID(e,++s),s.err)return s}else break;else if(e[s]==="&"){let f=one(e,s);if(f==-1)return lt("InvalidChar","char '&' is not expected.",ur(e,s));s=f}e[s]==="<"&&s--}else{if(e[s]===" "||e[s]===" "||e[s]===`
|
|
24
|
+
`||e[s]==="\r")continue;return lt("InvalidChar","char '"+e[s]+"' is not expected.",ur(e,s))}if(n){if(r.length>0)return lt("InvalidXml","Invalid '"+JSON.stringify(r,null,4).replace(/\r?\n/g,"")+"' found.",1)}else return lt("InvalidXml","Start tag expected.",1);return!0};function ID(e,t){for(var r=t;t<e.length;t++)if(e[t]=="?"||e[t]==" "){var n=e.substr(r,t-r);if(t>5&&n==="xml")return lt("InvalidXml","XML declaration allowed only at the start of the document.",ur(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function RD(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 r=1;for(t+=8;t<e.length;t++)if(e[t]==="<")r++;else if(e[t]===">"&&(r--,r===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 tne='"',rne="'";function nne(e,t){let r="",n="",i=!1;for(;t<e.length;t++){if(e[t]===tne||e[t]===rne)if(n==="")n=e[t];else{if(n!==e[t])continue;n=""}else if(e[t]===">"&&n===""){i=!0;break}r+=e[t]}return n!==""?!1:{value:r,index:t,tagClosed:i}}var ine=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function ND(e,t){let r=gm.getAllMatches(e,ine),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return lt("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",ym(e,r[i][0]));if(r[i][3]===void 0&&!t.allowBooleanAttributes)return lt("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",ym(e,r[i][0]));let s=r[i][2];if(!ane(s))return lt("InvalidAttr","Attribute '"+s+"' is an invalid name.",ym(e,r[i][0]));if(!n.hasOwnProperty(s))n[s]=1;else return lt("InvalidAttr","Attribute '"+s+"' is repeated.",ym(e,r[i][0]))}return!0}function sne(e,t){let r=/\d/;for(e[t]==="x"&&(t++,r=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(r))break}return-1}function one(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,sne(e,t);let r=0;for(;t<e.length;t++,r++)if(!(e[t].match(/\w/)&&r<20)){if(e[t]===";")break;return-1}return t}function lt(e,t,r){return{err:{code:e,msg:t,line:r}}}function ane(e){return gm.isName(e)}function cne(e){return gm.isName(e)}function ur(e,t){var r=e.substring(0,t).split(/\r?\n/);return r.length}function ym(e,t){return e.indexOf(t)+t.length}});var MD=u(qD=>{"use strict";var Lr=function(e){return String.fromCharCode(e)},Ke={nilChar:Lr(176),missingChar:Lr(201),nilPremitive:Lr(175),missingPremitive:Lr(200),emptyChar:Lr(178),emptyValue:Lr(177),boundryChar:Lr(179),objStart:Lr(198),arrStart:Lr(204),arrayEnd:Lr(185)},lne=[Ke.nilChar,Ke.nilPremitive,Ke.missingChar,Ke.missingPremitive,Ke.boundryChar,Ke.emptyChar,Ke.emptyValue,Ke.arrayEnd,Ke.objStart,Ke.arrStart],ac=function(e,t,r){if(typeof t=="string")return e&&e[0]&&e[0].val!==void 0?oE(e[0].val,t):oE(e,t);{let n=dne(e);if(n===!0){let i="";if(Array.isArray(t)){i+=Ke.arrStart;let s=t[0],o=e.length;if(typeof s=="string")for(let a=0;a<o;a++){let c=oE(e[a].val,s);i=aE(i,c)}else for(let a=0;a<o;a++){let c=ac(e[a],s,r);i=aE(i,c)}i+=Ke.arrayEnd}else{i+=Ke.objStart;let s=Object.keys(t);Array.isArray(e)&&(e=e[0]);for(let o in s){let a=s[o],c;!r.ignoreAttributes&&e.attrsMap&&e.attrsMap[a]?c=ac(e.attrsMap[a],t[a],r):a===r.textNodeName?c=ac(e.val,t[a],r):c=ac(e.child[a],t[a],r),i=aE(i,c)}}return i}else return n}},oE=function(e){switch(e){case void 0:return Ke.missingPremitive;case null:return Ke.nilPremitive;case"":return Ke.emptyValue;default:return e}},aE=function(e,t){return!OD(t[0])&&!OD(e[e.length-1])&&(e+=Ke.boundryChar),e+t},OD=function(e){return lne.indexOf(e)!==-1};function dne(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 LD=oc(),une=Or().buildOptions,fne=function(e,t,r){return r=une(r,LD.defaultOptions,LD.props),ac(e,t,r)};qD.convert2nimn=fne});var kD=u(jD=>{"use strict";var vm=Or(),mne=Or().buildOptions,zD=oc(),pne=function(e,t){return t=mne(t,zD.defaultOptions,zD.props),t.indentBy=t.indentBy||"",cE(e,t,0)},cE=function(e,t,r){let n="{",i=Object.keys(e.child);for(let a=0;a<i.length;a++){var s=i[a];if(e.child[s]&&e.child[s].length>1){n+='"'+s+'" : [ ';for(var o in e.child[s])n+=cE(e.child[s][o],t)+" , ";n=n.substr(0,n.length-1)+" ] "}else n+='"'+s+'" : '+cE(e.child[s][0],t)+" ,"}return vm.merge(n,e.attrsMap),vm.isEmptyObject(n)?vm.isExist(e.val)?e.val:"":(vm.isExist(e.val)&&(typeof e.val=="string"&&(e.val===""||e.val===t.cdataPositionChar)||(n+='"'+t.textNodeName+'" : '+_ne(e.val))),n[n.length-1]===","&&(n=n.substr(0,n.length-2)),n+"}")};function _ne(e){return e===!0||e===!1||!isNaN(e)?e:'"'+e+'"'}jD.convertToJsonString=pne});var GD=u((FRe,BD)=>{"use strict";var hne=Or().buildOptions,yne={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}},gne=["attributeNamePrefix","attrNodeName","textNodeName","ignoreAttributes","cdataTagName","cdataPositionChar","format","indentBy","supressEmptyNode","tagValueProcessor","attrValueProcessor"];function lE(e){this.options=hne(e,yne,gne),this.options.ignoreAttributes||this.options.attrNodeName?this.isAttribute=function(){return!1}:(this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Ane),this.options.cdataTagName?this.isCDATA=Tne:this.isCDATA=function(){return!1},this.replaceCDATAstr=vne,this.replaceCDATAarr=Sne,this.options.format?(this.indentate=bne,this.tagEndChar=`>
|
|
25
25
|
`,this.newLine=`
|
|
26
|
-
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=Q7,this.buildObjNode=J7):(this.buildTextNode=G1,this.buildObjNode=B1),this.buildTextValNode=G1,this.buildObjectNode=B1}nS.prototype.parse=function(e){return this.j2x(e,0).val};nS.prototype.j2x=function(e,t){let n="",r="",i=Object.keys(e),s=i.length;for(let o=0;o<s;o++){let a=i[o];if(!(typeof e[a]>"u"))if(e[a]===null)r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)r+=this.buildTextNode(e[a],a,"",t);else if(typeof e[a]!="object"){let c=this.isAttribute(a);c?n+=" "+c+'="'+this.options.attrValueProcessor(""+e[a])+'"':this.isCDATA(a)?e[this.options.textNodeName]?r+=this.replaceCDATAstr(e[this.options.textNodeName],e[a]):r+=this.replaceCDATAstr("",e[a]):a===this.options.textNodeName?e[this.options.cdataTagName]||(r+=this.options.tagValueProcessor(""+e[a])):r+=this.buildTextNode(e[a],a,"",t)}else if(Array.isArray(e[a]))if(this.isCDATA(a))r+=this.indentate(t),e[this.options.textNodeName]?r+=this.replaceCDATAarr(e[this.options.textNodeName],e[a]):r+=this.replaceCDATAarr("",e[a]);else{let c=e[a].length;for(let u=0;u<c;u++){let d=e[a][u];if(!(typeof d>"u"))if(d===null)r+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object"){let h=this.j2x(d,t+1);r+=this.buildObjNode(h.val,a,h.attrStr,t)}else r+=this.buildTextNode(d,a,"",t)}}else if(this.options.attrNodeName&&a===this.options.attrNodeName){let c=Object.keys(e[a]),u=c.length;for(let d=0;d<u;d++)n+=" "+c[d]+'="'+this.options.attrValueProcessor(""+e[a][c[d]])+'"'}else{let c=this.j2x(e[a],t+1);r+=this.buildObjNode(c.val,a,c.attrStr,t)}}return{attrStr:n,val:r}};function H7(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 Y7(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 B1(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 J7(e,t,n,r){return e!==""?this.buildObjectNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function G1(e,t,n,r){return this.indentate(r)+"<"+t+n+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function Q7(e,t,n,r){return e!==""?this.buildTextValNode(e,t,n,r):this.indentate(r)+"<"+t+n+"/"+this.tagEndChar}function X7(e){return this.options.indentBy.repeat(e)}function Z7(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function eQ(e){return e===this.options.cdataTagName}$1.exports=nS});var J1=f(sn=>{"use strict";var W1=E1(),H1=va(),K1=va(),tQ=Cn().buildOptions,Y1=L1();sn.parse=function(e,t,n){if(n){n===!0&&(n={});let i=Y1.validate(e,n);if(i!==!0)throw Error(i.err.msg)}t=tQ(t,K1.defaultOptions,K1.props);let r=H1.getTraversalObj(e,t);return W1.convertToJson(r,t)};sn.convertTonimn=j1().convert2nimn;sn.getTraversalObj=H1.getTraversalObj;sn.convertToJson=W1.convertToJson;sn.convertToJsonString=U1().convertToJsonString;sn.validate=Y1.validate;sn.j2xParser=V1();sn.parseToNimn=function(e,t,n){return sn.convertTonimn(sn.getTraversalObj(e,n),t,n)}});var Zn=f(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 nQ=Ot(),$=O(),rQ=v1(),iQ=J1(),Nr=tn(),Pr=Bd(),sQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...NQ(e,t),Action:"AssumeRole",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleCommand=sQ;var oQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...PQ(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithSAMLCommand=oQ;var aQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...OQ(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryAssumeRoleWithWebIdentityCommand=aQ;var cQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...LQ(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryDecodeAuthorizationMessageCommand=cQ;var lQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...qQ(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryGetAccessKeyInfoCommand=lQ;var uQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...MQ(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryGetCallerIdentityCommand=uQ;var dQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...zQ(e,t),Action:"GetFederationToken",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryGetFederationTokenCommand=dQ;var fQ=async(e,t)=>{let n={"content-type":"application/x-www-form-urlencoded"},r;return r=Lr({...jQ(e,t),Action:"GetSessionToken",Version:"2011-06-15"}),Or(t,n,"/",void 0,r)};me.serializeAws_queryGetSessionTokenCommand=fQ;var mQ=async(e,t)=>{if(e.statusCode>=300)return pQ(e,t);let n=await ut(e.body,t),r={};r=BQ(n.AssumeRoleResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleCommand=mQ;var pQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await rS(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},hQ=async(e,t)=>{if(e.statusCode>=300)return _Q(e,t);let n=await ut(e.body,t),r={};r=GQ(n.AssumeRoleWithSAMLResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleWithSAMLCommand=hQ;var _Q=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await rS(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Q1(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await X1(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},yQ=async(e,t)=>{if(e.statusCode>=300)return gQ(e,t);let n=await ut(e.body,t),r={};r=$Q(n.AssumeRoleWithWebIdentityResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryAssumeRoleWithWebIdentityCommand=yQ;var gQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await rS(n,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await RQ(n,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await Q1(n,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await X1(n,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},vQ=async(e,t)=>{if(e.statusCode>=300)return SQ(e,t);let n=await ut(e.body,t),r={};r=VQ(n.DecodeAuthorizationMessageResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryDecodeAuthorizationMessageCommand=vQ;var SQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await DQ(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},wQ=async(e,t)=>{if(e.statusCode>=300)return bQ(e,t);let n=await ut(e.body,t),r={};r=HQ(n.GetAccessKeyInfoResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryGetAccessKeyInfoCommand=wQ;var bQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},EQ=async(e,t)=>{if(e.statusCode>=300)return AQ(e,t);let n=await ut(e.body,t),r={};r=YQ(n.GetCallerIdentityResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryGetCallerIdentityCommand=EQ;var AQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},TQ=async(e,t)=>{if(e.statusCode>=300)return CQ(e,t);let n=await ut(e.body,t),r={};r=JQ(n.GetFederationTokenResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryGetFederationTokenCommand=TQ;var CQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Xd(n,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await Zd(n,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},xQ=async(e,t)=>{if(e.statusCode>=300)return IQ(e,t);let n=await ut(e.body,t),r={};r=QQ(n.GetSessionTokenResult,t);let i={$metadata:Oe(e),...r};return Promise.resolve(i)};me.deserializeAws_queryGetSessionTokenCommand=xQ;var IQ=async(e,t)=>{let n={...e,body:await ut(e.body,t)},r,i="UnknownError";switch(i=qr(e,n.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await wa(n,t);default:let s=n.body;throw r=new Pr.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:Oe(e)}),(0,$.decorateServiceException)(r,s.Error)}},rS=async(e,t)=>{let n=e.body,r=KQ(n.Error,t),i=new Nr.ExpiredTokenException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},RQ=async(e,t)=>{let n=e.body,r=XQ(n.Error,t),i=new Nr.IDPCommunicationErrorException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},Q1=async(e,t)=>{let n=e.body,r=ZQ(n.Error,t),i=new Nr.IDPRejectedClaimException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},DQ=async(e,t)=>{let n=e.body,r=eX(n.Error,t),i=new Nr.InvalidAuthorizationMessageException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},X1=async(e,t)=>{let n=e.body,r=tX(n.Error,t),i=new Nr.InvalidIdentityTokenException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},Xd=async(e,t)=>{let n=e.body,r=nX(n.Error,t),i=new Nr.MalformedPolicyDocumentException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},Zd=async(e,t)=>{let n=e.body,r=rX(n.Error,t),i=new Nr.PackedPolicyTooLargeException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},wa=async(e,t)=>{let n=e.body,r=iX(n.Error,t),i=new Nr.RegionDisabledException({$metadata:Oe(e),...r});return(0,$.decorateServiceException)(i,n)},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=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=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=Z1(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let o=`Tags.${i}`;n[o]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let r=UQ(e.TransitiveTagKeys,t);Object.entries(r).forEach(([i,s])=>{let o=`TransitiveTagKeys.${i}`;n[o]=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},PQ=(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=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=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},OQ=(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=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=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},LQ=(e,t)=>{let n={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(n.EncodedMessage=e.EncodedMessage),n},qQ=(e,t)=>{let n={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(n.AccessKeyId=e.AccessKeyId),n},MQ=(e,t)=>({}),zQ=(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=ef(e.PolicyArns,t);Object.entries(r).forEach(([i,s])=>{let o=`PolicyArns.${i}`;n[o]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(n.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let r=Z1(e.Tags,t);Object.entries(r).forEach(([i,s])=>{let o=`Tags.${i}`;n[o]=s})}return n},jQ=(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},ef=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=kQ(i,t);Object.entries(s).forEach(([o,a])=>{n[`member.${r}.${o}`]=a}),r++}return n},kQ=(e,t)=>{let n={};return e.arn!==void 0&&e.arn!==null&&(n.arn=e.arn),n},FQ=(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},UQ=(e,t)=>{let n={},r=1;for(let i of e)i!==null&&(n[`member.${r}`]=i,r++);return n},Z1=(e,t)=>{let n={},r=1;for(let i of e){if(i===null)continue;let s=FQ(i,t);Object.entries(s).forEach(([o,a])=>{n[`member.${r}.${o}`]=a}),r++}return n},iS=(e,t)=>{let n={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(n.AssumedRoleId=(0,$.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(n.Arn=(0,$.expectString)(e.Arn)),n},BQ=(e,t)=>{let n={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(n.Credentials=ba(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=iS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,$.expectString)(e.SourceIdentity)),n},GQ=(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=ba(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=iS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(n.Subject=(0,$.expectString)(e.Subject)),e.SubjectType!==void 0&&(n.SubjectType=(0,$.expectString)(e.SubjectType)),e.Issuer!==void 0&&(n.Issuer=(0,$.expectString)(e.Issuer)),e.Audience!==void 0&&(n.Audience=(0,$.expectString)(e.Audience)),e.NameQualifier!==void 0&&(n.NameQualifier=(0,$.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,$.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=ba(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(n.SubjectFromWebIdentityToken=(0,$.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(n.AssumedRoleUser=iS(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(n.Provider=(0,$.expectString)(e.Provider)),e.Audience!==void 0&&(n.Audience=(0,$.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(n.SourceIdentity=(0,$.expectString)(e.SourceIdentity)),n},ba=(e,t)=>{let n={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(n.AccessKeyId=(0,$.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(n.SecretAccessKey=(0,$.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(n.SessionToken=(0,$.expectString)(e.SessionToken)),e.Expiration!==void 0&&(n.Expiration=(0,$.expectNonNull)((0,$.parseRfc3339DateTime)(e.Expiration))),n},VQ=(e,t)=>{let n={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(n.DecodedMessage=(0,$.expectString)(e.DecodedMessage)),n},KQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},WQ=(e,t)=>{let n={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(n.FederatedUserId=(0,$.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(n.Arn=(0,$.expectString)(e.Arn)),n},HQ=(e,t)=>{let n={Account:void 0};return e.Account!==void 0&&(n.Account=(0,$.expectString)(e.Account)),n},YQ=(e,t)=>{let n={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(n.UserId=(0,$.expectString)(e.UserId)),e.Account!==void 0&&(n.Account=(0,$.expectString)(e.Account)),e.Arn!==void 0&&(n.Arn=(0,$.expectString)(e.Arn)),n},JQ=(e,t)=>{let n={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(n.Credentials=ba(e.Credentials,t)),e.FederatedUser!==void 0&&(n.FederatedUser=WQ(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(n.PackedPolicySize=(0,$.strictParseInt32)(e.PackedPolicySize)),n},QQ=(e,t)=>{let n={Credentials:void 0};return e.Credentials!==void 0&&(n.Credentials=ba(e.Credentials,t)),n},XQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},ZQ=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},eX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},tX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},nX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},rX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},iX=(e,t)=>{let n={message:void 0};return e.message!==void 0&&(n.message=(0,$.expectString)(e.message)),n},Oe=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"]}},sX=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),oX=(e,t)=>sX(e,t).then(n=>t.utf8Encoder(n)),Or=async(e,t,n,r,i)=>{let{hostname:s,protocol:o="https",port:a,path:c}=await e.endpoint(),u={protocol:o,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+n:c+n,headers:t};return r!==void 0&&(u.hostname=r),i!==void 0&&(u.body=i),new nQ.HttpRequest(u)},ut=(e,t)=>oX(e,t).then(n=>{if(n.length){let r=(0,iQ.parse)(n,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:a=>a.trim()===""&&a.includes(`
|
|
27
|
-
`)?"":(0,rQ.decodeHTML)(a)}),i="#text",s=Object.keys(r)[0],o=r[s];return o[i]&&(o[s]=o[i],delete o[i]),(0,$.getValueFromTextNode)(o)}return{}}),Lr=e=>Object.entries(e).map(([t,n])=>(0,$.extendedEncodeURIComponent)(t)+"="+(0,$.extendedEncodeURIComponent)(n)).join("&"),qr=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var nf=f(tf=>{"use strict";Object.defineProperty(tf,"__esModule",{value:!0});tf.AssumeRoleCommand=void 0;var aX=U(),cX=Xn(),lX=O(),eR=tn(),tR=Zn(),sS=class extends lX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,aX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,cX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:eR.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:eR.AssumeRoleResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,tR.serializeAws_queryAssumeRoleCommand)(t,n)}deserialize(t,n){return(0,tR.deserializeAws_queryAssumeRoleCommand)(t,n)}};tf.AssumeRoleCommand=sS});var aS=f(rf=>{"use strict";Object.defineProperty(rf,"__esModule",{value:!0});rf.AssumeRoleWithSAMLCommand=void 0;var uX=U(),dX=O(),nR=tn(),rR=Zn(),oS=class extends dX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,uX.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:nR.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:nR.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,rR.serializeAws_queryAssumeRoleWithSAMLCommand)(t,n)}deserialize(t,n){return(0,rR.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,n)}};rf.AssumeRoleWithSAMLCommand=oS});var of=f(sf=>{"use strict";Object.defineProperty(sf,"__esModule",{value:!0});sf.AssumeRoleWithWebIdentityCommand=void 0;var fX=U(),mX=O(),iR=tn(),sR=Zn(),cS=class extends mX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,fX.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:iR.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:iR.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,sR.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,n)}deserialize(t,n){return(0,sR.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,n)}};sf.AssumeRoleWithWebIdentityCommand=cS});var uS=f(af=>{"use strict";Object.defineProperty(af,"__esModule",{value:!0});af.DecodeAuthorizationMessageCommand=void 0;var pX=U(),hX=Xn(),_X=O(),oR=tn(),aR=Zn(),lS=class extends _X.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,pX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,hX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:oR.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:oR.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,aR.serializeAws_queryDecodeAuthorizationMessageCommand)(t,n)}deserialize(t,n){return(0,aR.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,n)}};af.DecodeAuthorizationMessageCommand=lS});var fS=f(cf=>{"use strict";Object.defineProperty(cf,"__esModule",{value:!0});cf.GetAccessKeyInfoCommand=void 0;var yX=U(),gX=Xn(),vX=O(),cR=tn(),lR=Zn(),dS=class extends vX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,yX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,gX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:cR.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:cR.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,lR.serializeAws_queryGetAccessKeyInfoCommand)(t,n)}deserialize(t,n){return(0,lR.deserializeAws_queryGetAccessKeyInfoCommand)(t,n)}};cf.GetAccessKeyInfoCommand=dS});var pS=f(lf=>{"use strict";Object.defineProperty(lf,"__esModule",{value:!0});lf.GetCallerIdentityCommand=void 0;var SX=U(),wX=Xn(),bX=O(),uR=tn(),dR=Zn(),mS=class extends bX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,SX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,wX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:uR.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:uR.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,dR.serializeAws_queryGetCallerIdentityCommand)(t,n)}deserialize(t,n){return(0,dR.deserializeAws_queryGetCallerIdentityCommand)(t,n)}};lf.GetCallerIdentityCommand=mS});var _S=f(uf=>{"use strict";Object.defineProperty(uf,"__esModule",{value:!0});uf.GetFederationTokenCommand=void 0;var EX=U(),AX=Xn(),TX=O(),fR=tn(),mR=Zn(),hS=class extends TX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,EX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,AX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:fR.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:fR.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,mR.serializeAws_queryGetFederationTokenCommand)(t,n)}deserialize(t,n){return(0,mR.deserializeAws_queryGetFederationTokenCommand)(t,n)}};uf.GetFederationTokenCommand=hS});var gS=f(df=>{"use strict";Object.defineProperty(df,"__esModule",{value:!0});df.GetSessionTokenCommand=void 0;var CX=U(),xX=Xn(),IX=O(),pR=tn(),hR=Zn(),yS=class extends IX.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,CX.getSerdePlugin)(n,this.serialize,this.deserialize)),this.middlewareStack.use((0,xX.getAwsAuthPlugin)(n));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:pR.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:pR.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,hR.serializeAws_queryGetSessionTokenCommand)(t,n)}deserialize(t,n){return(0,hR.deserializeAws_queryGetSessionTokenCommand)(t,n)}};df.GetSessionTokenCommand=yS});var _R=f(ff=>{"use strict";Object.defineProperty(ff,"__esModule",{value:!0});ff.resolveStsAuthConfig=void 0;var RX=Xn(),DX=(e,{stsClientCtor:t})=>(0,RX.resolveAwsAuthConfig)({...e,stsClientCtor:t});ff.resolveStsAuthConfig=DX});var yR=f((RSe,NX)=>{NX.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently '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-* && rimraf *.tsbuildinfo"},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.78.0","@aws-sdk/credential-provider-node":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-sdk-sts":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},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 vS=f(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.decorateDefaultCredentialProvider=In.getDefaultRoleAssumerWithWebIdentity=In.getDefaultRoleAssumer=void 0;var PX=nf(),OX=of(),gR="us-east-1",vR=e=>typeof e!="function"?e===void 0?gR:e:async()=>{try{return await e()}catch{return gR}},LX=(e,t)=>{let n,r;return async(i,s)=>{if(r=i,!n){let{logger:a,region:c,requestHandler:u}=e;n=new t({logger:a,credentialDefaultProvider:()=>async()=>r,region:vR(c||e.region),...u?{requestHandler:u}:{}})}let{Credentials:o}=await n.send(new PX.AssumeRoleCommand(s));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};In.getDefaultRoleAssumer=LX;var qX=(e,t)=>{let n;return async r=>{if(!n){let{logger:s,region:o,requestHandler:a}=e;n=new t({logger:s,region:vR(o||e.region),...a?{requestHandler:a}:{}})}let{Credentials:i}=await n.send(new OX.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}}};In.getDefaultRoleAssumerWithWebIdentity=qX;var MX=e=>t=>e({roleAssumer:(0,In.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,In.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor),...t});In.decorateDefaultCredentialProvider=MX});var SR=f(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.fromEnv=dt.ENV_EXPIRATION=dt.ENV_SESSION=dt.ENV_SECRET=dt.ENV_KEY=void 0;var zX=je();dt.ENV_KEY="AWS_ACCESS_KEY_ID";dt.ENV_SECRET="AWS_SECRET_ACCESS_KEY";dt.ENV_SESSION="AWS_SESSION_TOKEN";dt.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var jX=()=>async()=>{let e=process.env[dt.ENV_KEY],t=process.env[dt.ENV_SECRET],n=process.env[dt.ENV_SESSION],r=process.env[dt.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...n&&{sessionToken:n},...r&&{expiration:new Date(r)}};throw new zX.CredentialsProviderError("Unable to find environment variable credentials.")};dt.fromEnv=jX});var wS=f(SS=>{"use strict";Object.defineProperty(SS,"__esModule",{value:!0});var kX=K();kX.__exportStar(SR(),SS)});var pf=f(mf=>{"use strict";Object.defineProperty(mf,"__esModule",{value:!0});mf.getHomeDir=void 0;var FX=require("os"),UX=require("path"),BX=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:n,HOMEDRIVE:r=`C:${UX.sep}`}=process.env;return e||t||(n?`${r}${n}`:(0,FX.homedir)())};mf.getHomeDir=BX});var wR=f(Rn=>{"use strict";Object.defineProperty(Rn,"__esModule",{value:!0});Rn.getProfileName=Rn.DEFAULT_PROFILE=Rn.ENV_PROFILE=void 0;Rn.ENV_PROFILE="AWS_PROFILE";Rn.DEFAULT_PROFILE="default";var GX=e=>e.profile||process.env[Rn.ENV_PROFILE]||Rn.DEFAULT_PROFILE;Rn.getProfileName=GX});var bS=f(hf=>{"use strict";Object.defineProperty(hf,"__esModule",{value:!0});hf.getSSOTokenFilepath=void 0;var $X=require("crypto"),VX=require("path"),KX=pf(),WX=e=>{let n=(0,$X.createHash)("sha1").update(e).digest("hex");return(0,VX.join)((0,KX.getHomeDir)(),".aws","sso","cache",`${n}.json`)};hf.getSSOTokenFilepath=WX});var bR=f(_f=>{"use strict";Object.defineProperty(_f,"__esModule",{value:!0});_f.getSSOTokenFromFile=void 0;var HX=require("fs"),YX=bS(),{readFile:JX}=HX.promises,QX=async e=>{let t=(0,YX.getSSOTokenFilepath)(e),n=await JX(t,"utf8");return JSON.parse(n)};_f.getSSOTokenFromFile=QX});var ER=f(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.normalizeConfigFile=void 0;var XX=/^profile\s(["'])?([^\1]+)\1$/,ZX=e=>{let t={};for(let n of Object.keys(e)){let r;if(n==="default")t.default=e.default;else if(r=XX.exec(n)){let[i,s,o]=r;o&&(t[o]=e[n])}}return t};yf.normalizeConfigFile=ZX});var AR=f(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});gf.parseIni=void 0;var eZ=["__proto__","profile __proto__"],tZ=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],eZ.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};gf.parseIni=tZ});var TR=f(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});vf.slurpFile=void 0;var nZ=require("fs"),{readFile:rZ}=nZ.promises,ES={},iZ=e=>(ES[e]||(ES[e]=rZ(e,"utf8")),ES[e]);vf.slurpFile=iZ});var AS=f(Dn=>{"use strict";Object.defineProperty(Dn,"__esModule",{value:!0});Dn.loadSharedConfigFiles=Dn.ENV_CONFIG_PATH=Dn.ENV_CREDENTIALS_PATH=void 0;var CR=require("path"),xR=pf(),sZ=ER(),IR=AR(),RR=TR();Dn.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";Dn.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var DR=()=>({}),oZ=async(e={})=>{let{filepath:t=process.env[Dn.ENV_CREDENTIALS_PATH]||(0,CR.join)((0,xR.getHomeDir)(),".aws","credentials"),configFilepath:n=process.env[Dn.ENV_CONFIG_PATH]||(0,CR.join)((0,xR.getHomeDir)(),".aws","config")}=e,r=await Promise.all([(0,RR.slurpFile)(n).then(IR.parseIni).then(sZ.normalizeConfigFile).catch(DR),(0,RR.slurpFile)(t).then(IR.parseIni).catch(DR)]);return{configFile:r[0],credentialsFile:r[1]}};Dn.loadSharedConfigFiles=oZ});var NR=f(Sf=>{"use strict";Object.defineProperty(Sf,"__esModule",{value:!0});Sf.parseKnownFiles=void 0;var aZ=AS(),cZ=async e=>{let t=await(0,aZ.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};Sf.parseKnownFiles=cZ});var OR=f(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0})});var Mr=f(er=>{"use strict";Object.defineProperty(er,"__esModule",{value:!0});var gi=K();gi.__exportStar(pf(),er);gi.__exportStar(wR(),er);gi.__exportStar(bS(),er);gi.__exportStar(bR(),er);gi.__exportStar(AS(),er);gi.__exportStar(NR(),er);gi.__exportStar(OR(),er)});var bf=f(wf=>{"use strict";Object.defineProperty(wf,"__esModule",{value:!0});wf.httpRequest=void 0;var TS=je(),lZ=require("buffer"),uZ=require("http");function dZ(e){return new Promise((t,n)=>{var r;let i=(0,uZ.request)({method:"GET",...e,hostname:(r=e.hostname)===null||r===void 0?void 0:r.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{n(Object.assign(new TS.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{n(new TS.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(n(Object.assign(new TS.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(lZ.Buffer.concat(a)),i.destroy()})}),i.end()})}wf.httpRequest=dZ});var CS=f(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});ss.fromImdsCredentials=ss.isImdsCredentials=void 0;var fZ=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";ss.isImdsCredentials=fZ;var mZ=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});ss.fromImdsCredentials=mZ});var Ef=f(Nn=>{"use strict";Object.defineProperty(Nn,"__esModule",{value:!0});Nn.providerConfigFromInit=Nn.DEFAULT_MAX_RETRIES=Nn.DEFAULT_TIMEOUT=void 0;Nn.DEFAULT_TIMEOUT=1e3;Nn.DEFAULT_MAX_RETRIES=0;var pZ=({maxRetries:e=Nn.DEFAULT_MAX_RETRIES,timeout:t=Nn.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Nn.providerConfigFromInit=pZ});var xS=f(Af=>{"use strict";Object.defineProperty(Af,"__esModule",{value:!0});Af.retry=void 0;var hZ=(e,t)=>{let n=e();for(let r=0;r<t;r++)n=n.catch(e);return n};Af.retry=hZ});var qR=f(Xe=>{"use strict";Object.defineProperty(Xe,"__esModule",{value:!0});Xe.fromContainerMetadata=Xe.ENV_CMDS_AUTH_TOKEN=Xe.ENV_CMDS_RELATIVE_URI=Xe.ENV_CMDS_FULL_URI=void 0;var Tf=je(),_Z=require("url"),yZ=bf(),LR=CS(),gZ=Ef(),vZ=xS();Xe.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Xe.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Xe.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var SZ=(e={})=>{let{timeout:t,maxRetries:n}=(0,gZ.providerConfigFromInit)(e);return()=>(0,vZ.retry)(async()=>{let r=await TZ(),i=JSON.parse(await wZ(t,r));if(!(0,LR.isImdsCredentials)(i))throw new Tf.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,LR.fromImdsCredentials)(i)},n)};Xe.fromContainerMetadata=SZ;var wZ=async(e,t)=>(process.env[Xe.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[Xe.ENV_CMDS_AUTH_TOKEN]}),(await(0,yZ.httpRequest)({...t,timeout:e})).toString()),bZ="169.254.170.2",EZ={localhost:!0,"127.0.0.1":!0},AZ={"http:":!0,"https:":!0},TZ=async()=>{if(process.env[Xe.ENV_CMDS_RELATIVE_URI])return{hostname:bZ,path:process.env[Xe.ENV_CMDS_RELATIVE_URI]};if(process.env[Xe.ENV_CMDS_FULL_URI]){let e=(0,_Z.parse)(process.env[Xe.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in EZ))throw new Tf.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in AZ))throw new Tf.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Tf.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Xe.ENV_CMDS_RELATIVE_URI} or ${Xe.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var MR=f(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});Cf.fromEnv=void 0;var CZ=je(),xZ=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new CZ.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};Cf.fromEnv=xZ});var jR=f(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.fromSharedConfigFiles=void 0;var IZ=je(),zR=Mr(),RZ=(e,{preferredFile:t="config",...n}={})=>async()=>{let r=(0,zR.getProfileName)(n),{configFile:i,credentialsFile:s}=await(0,zR.loadSharedConfigFiles)(n),o=s[r]||{},a=i[r]||{},c=t==="config"?{...o,...a}:{...a,...o};try{let u=e(c);if(u===void 0)throw new Error;return u}catch(u){throw new IZ.CredentialsProviderError(u.message||`Cannot load config for profile ${r} in SDK configuration files with getter: ${e}`)}};xf.fromSharedConfigFiles=RZ});var kR=f(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.fromStatic=void 0;var DZ=je(),NZ=e=>typeof e=="function",PZ=e=>NZ(e)?async()=>await e():(0,DZ.fromStatic)(e);If.fromStatic=PZ});var UR=f(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.loadConfig=void 0;var FR=je(),OZ=MR(),LZ=jR(),qZ=kR(),MZ=({environmentVariableSelector:e,configFileSelector:t,default:n},r={})=>(0,FR.memoize)((0,FR.chain)((0,OZ.fromEnv)(e),(0,LZ.fromSharedConfigFiles)(t,r),(0,qZ.fromStatic)(n)));Rf.loadConfig=MZ});var vi=f(IS=>{"use strict";Object.defineProperty(IS,"__esModule",{value:!0});var zZ=K();zZ.__exportStar(UR(),IS)});var BR=f(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});Df.parseQueryString=void 0;function jZ(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}Df.parseQueryString=jZ});var Ea=f(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});Nf.parseUrl=void 0;var kZ=BR(),FZ=e=>{let{hostname:t,pathname:n,port:r,protocol:i,search:s}=new URL(e),o;return s&&(o=(0,kZ.parseQueryString)(s)),{hostname:t,port:r?parseInt(r):void 0,protocol:i,path:n,query:o}};Nf.parseUrl=FZ});var GR=f(Aa=>{"use strict";Object.defineProperty(Aa,"__esModule",{value:!0});Aa.Endpoint=void 0;var UZ;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(UZ=Aa.Endpoint||(Aa.Endpoint={}))});var $R=f(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.ENDPOINT_CONFIG_OPTIONS=Pn.CONFIG_ENDPOINT_NAME=Pn.ENV_ENDPOINT_NAME=void 0;Pn.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Pn.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Pn.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Pn.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Pn.CONFIG_ENDPOINT_NAME],default:void 0}});var RS=f(Ta=>{"use strict";Object.defineProperty(Ta,"__esModule",{value:!0});Ta.EndpointMode=void 0;var BZ;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(BZ=Ta.EndpointMode||(Ta.EndpointMode={}))});var VR=f(On=>{"use strict";Object.defineProperty(On,"__esModule",{value:!0});On.ENDPOINT_MODE_CONFIG_OPTIONS=On.CONFIG_ENDPOINT_MODE_NAME=On.ENV_ENDPOINT_MODE_NAME=void 0;var GZ=RS();On.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";On.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";On.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[On.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[On.CONFIG_ENDPOINT_MODE_NAME],default:GZ.EndpointMode.IPv4}});var NS=f(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.getInstanceMetadataEndpoint=void 0;var WR=vi(),$Z=Ea(),KR=GR(),VZ=$R(),DS=RS(),KZ=VR(),WZ=async()=>(0,$Z.parseUrl)(await HZ()||await YZ());Pf.getInstanceMetadataEndpoint=WZ;var HZ=async()=>(0,WR.loadConfig)(VZ.ENDPOINT_CONFIG_OPTIONS)(),YZ=async()=>{let e=await(0,WR.loadConfig)(KZ.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case DS.EndpointMode.IPv4:return KR.Endpoint.IPv4;case DS.EndpointMode.IPv6:return KR.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(DS.EndpointMode)}`)}}});var HR=f(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.getExtendedInstanceMetadataCredentials=void 0;var JZ=15*60,QZ=5*60,XZ="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",ZZ=(e,t)=>{var n;let r=JZ+Math.floor(Math.random()*QZ),i=new Date(Date.now()+r*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+XZ);let s=(n=e.originalExpiration)!==null&&n!==void 0?n:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};Of.getExtendedInstanceMetadataCredentials=ZZ});var JR=f(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});Lf.staticStabilityProvider=void 0;var YR=HR(),eee=(e,t={})=>{let n=(t==null?void 0:t.logger)||console,r;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,YR.getExtendedInstanceMetadataCredentials)(i,n))}catch(s){if(r)n.warn("Credential renew failed: ",s),i=(0,YR.getExtendedInstanceMetadataCredentials)(r,n);else throw s}return r=i,i}};Lf.staticStabilityProvider=eee});var eD=f(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.fromInstanceMetadata=void 0;var tee=je(),PS=bf(),QR=CS(),nee=Ef(),XR=xS(),ree=NS(),iee=JR(),ZR="/latest/meta-data/iam/security-credentials/",see="/latest/api/token",oee=(e={})=>(0,iee.staticStabilityProvider)(aee(e),{logger:e.logger});qf.fromInstanceMetadata=oee;var aee=e=>{let t=!1,{timeout:n,maxRetries:r}=(0,nee.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,XR.retry)(async()=>{let c;try{c=await lee(o)}catch(u){throw u.statusCode===401&&(t=!1),u}return c},s)).trim();return(0,XR.retry)(async()=>{let c;try{c=await uee(a,o)}catch(u){throw u.statusCode===401&&(t=!1),u}return c},s)};return async()=>{let s=await(0,ree.getInstanceMetadataEndpoint)();if(t)return i(r,{...s,timeout:n});{let o;try{o=(await cee({...s,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),i(r,{...s,timeout:n})}return i(r,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:n})}}},cee=async e=>(0,PS.httpRequest)({...e,path:see,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),lee=async e=>(await(0,PS.httpRequest)({...e,path:ZR})).toString(),uee=async(e,t)=>{let n=JSON.parse((await(0,PS.httpRequest)({...t,path:ZR+e})).toString());if(!(0,QR.isImdsCredentials)(n))throw new tee.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,QR.fromImdsCredentials)(n)}});var nD=f(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0})});var zf=f(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.getInstanceMetadataEndpoint=Ln.httpRequest=void 0;var Mf=K();Mf.__exportStar(qR(),Ln);Mf.__exportStar(eD(),Ln);Mf.__exportStar(Ef(),Ln);Mf.__exportStar(nD(),Ln);var dee=bf();Object.defineProperty(Ln,"httpRequest",{enumerable:!0,get:function(){return dee.httpRequest}});var fee=NS();Object.defineProperty(Ln,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return fee.getInstanceMetadataEndpoint}})});var iD=f(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});jf.resolveCredentialSource=void 0;var mee=wS(),rD=zf(),pee=je(),hee=(e,t)=>{let n={EcsContainer:rD.fromContainerMetadata,Ec2InstanceMetadata:rD.fromInstanceMetadata,Environment:mee.fromEnv};if(e in n)return n[e]();throw new pee.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};jf.resolveCredentialSource=hee});var sD=f(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});os.resolveAssumeRoleCredentials=os.isAssumeRoleProfile=void 0;var OS=je(),_ee=Mr(),yee=iD(),gee=LS(),vee=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&&(See(e)||wee(e));os.isAssumeRoleProfile=vee;var See=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",wee=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",bee=async(e,t,n,r={})=>{let i=t[e];if(!n.roleAssumer)throw new OS.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=i;if(s&&s in r)throw new OS.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,_ee.getProfileName)(n)}. Profiles visited: `+Object.keys(r).join(", "),!1);let o=s?(0,gee.resolveProfileData)(s,t,n,{...r,[s]:!0}):(0,yee.resolveCredentialSource)(i.credential_source,e)(),a={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id},{mfa_serial:c}=i;if(c){if(!n.mfaCodeProvider)throw new OS.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);a.SerialNumber=c,a.TokenCode=await n.mfaCodeProvider(c)}let u=await o;return n.roleAssumer(u,a)};os.resolveAssumeRoleCredentials=bee});var qS=f(kf=>{"use strict";Object.defineProperty(kf,"__esModule",{value:!0});kf.isSsoProfile=void 0;var Eee=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");kf.isSsoProfile=Eee});var Uf=f(Ff=>{"use strict";Object.defineProperty(Ff,"__esModule",{value:!0});Ff.SSOServiceException=void 0;var Aee=O(),Ca=class extends Aee.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Ca.prototype)}};Ff.SSOServiceException=Ca});var Si=f(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.LogoutRequest=ae.ListAccountsResponse=ae.ListAccountsRequest=ae.ListAccountRolesResponse=ae.RoleInfo=ae.ListAccountRolesRequest=ae.UnauthorizedException=ae.TooManyRequestsException=ae.ResourceNotFoundException=ae.InvalidRequestException=ae.GetRoleCredentialsResponse=ae.RoleCredentials=ae.GetRoleCredentialsRequest=ae.AccountInfo=void 0;var as=O(),Bf=Uf(),Tee;(function(e){e.filterSensitiveLog=t=>({...t})})(Tee=ae.AccountInfo||(ae.AccountInfo={}));var Cee;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:as.SENSITIVE_STRING}})})(Cee=ae.GetRoleCredentialsRequest||(ae.GetRoleCredentialsRequest={}));var oD;(function(e){e.filterSensitiveLog=t=>({...t,...t.secretAccessKey&&{secretAccessKey:as.SENSITIVE_STRING},...t.sessionToken&&{sessionToken:as.SENSITIVE_STRING}})})(oD=ae.RoleCredentials||(ae.RoleCredentials={}));var xee;(function(e){e.filterSensitiveLog=t=>({...t,...t.roleCredentials&&{roleCredentials:oD.filterSensitiveLog(t.roleCredentials)}})})(xee=ae.GetRoleCredentialsResponse||(ae.GetRoleCredentialsResponse={}));var xa=class extends Bf.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,xa.prototype)}};ae.InvalidRequestException=xa;var Ia=class extends Bf.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Ia.prototype)}};ae.ResourceNotFoundException=Ia;var Ra=class extends Bf.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Ra.prototype)}};ae.TooManyRequestsException=Ra;var Da=class extends Bf.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Da.prototype)}};ae.UnauthorizedException=Da;var Iee;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:as.SENSITIVE_STRING}})})(Iee=ae.ListAccountRolesRequest||(ae.ListAccountRolesRequest={}));var Ree;(function(e){e.filterSensitiveLog=t=>({...t})})(Ree=ae.RoleInfo||(ae.RoleInfo={}));var Dee;(function(e){e.filterSensitiveLog=t=>({...t})})(Dee=ae.ListAccountRolesResponse||(ae.ListAccountRolesResponse={}));var Nee;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:as.SENSITIVE_STRING}})})(Nee=ae.ListAccountsRequest||(ae.ListAccountsRequest={}));var Pee;(function(e){e.filterSensitiveLog=t=>({...t})})(Pee=ae.ListAccountsResponse||(ae.ListAccountsResponse={}));var Oee;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:as.SENSITIVE_STRING}})})(Oee=ae.LogoutRequest||(ae.LogoutRequest={}))});var Na=f(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.deserializeAws_restJson1LogoutCommand=Ze.deserializeAws_restJson1ListAccountsCommand=Ze.deserializeAws_restJson1ListAccountRolesCommand=Ze.deserializeAws_restJson1GetRoleCredentialsCommand=Ze.serializeAws_restJson1LogoutCommand=Ze.serializeAws_restJson1ListAccountsCommand=Ze.serializeAws_restJson1ListAccountRolesCommand=Ze.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var Gf=Ot(),be=O(),$f=Si(),Vf=Uf(),Lee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o={...Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,c={...e.roleName!==void 0&&{role_name:e.roleName},...e.accountId!==void 0&&{account_id:e.accountId}},u;return new Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:a,query:c,body:u})};Ze.serializeAws_restJson1GetRoleCredentialsCommand=Lee;var qee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o={...Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,c={...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}},u;return new Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:a,query:c,body:u})};Ze.serializeAws_restJson1ListAccountRolesCommand=qee;var Mee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o={...Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()}},u;return new Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"GET",headers:o,path:a,query:c,body:u})};Ze.serializeAws_restJson1ListAccountsCommand=Mee;var zee=async(e,t)=>{let{hostname:n,protocol:r="https",port:i,path:s}=await t.endpoint(),o={...Yf(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new Gf.HttpRequest({protocol:r,hostname:n,port:i,method:"POST",headers:o,path:a,body:c})};Ze.serializeAws_restJson1LogoutCommand=zee;var jee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return kee(e,t);let n={$metadata:Yt(e),roleCredentials:void 0},r=(0,be.expectNonNull)((0,be.expectObject)(await wi(e.body,t)),"body");return r.roleCredentials!==void 0&&r.roleCredentials!==null&&(n.roleCredentials=Hee(r.roleCredentials,t)),Promise.resolve(n)};Ze.deserializeAws_restJson1GetRoleCredentialsCommand=jee;var kee=async(e,t)=>{let n={...e,body:await wi(e.body,t)},r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await MS(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Wf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Hf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Yt(e)}),(0,be.decorateServiceException)(r,s)}},Fee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Uee(e,t);let n={$metadata:Yt(e),nextToken:void 0,roleList:void 0},r=(0,be.expectNonNull)((0,be.expectObject)(await wi(e.body,t)),"body");return r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,be.expectString)(r.nextToken)),r.roleList!==void 0&&r.roleList!==null&&(n.roleList=Jee(r.roleList,t)),Promise.resolve(n)};Ze.deserializeAws_restJson1ListAccountRolesCommand=Fee;var Uee=async(e,t)=>{let n={...e,body:await wi(e.body,t)},r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await MS(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Wf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Hf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Yt(e)}),(0,be.decorateServiceException)(r,s)}},Bee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Gee(e,t);let n={$metadata:Yt(e),accountList:void 0,nextToken:void 0},r=(0,be.expectNonNull)((0,be.expectObject)(await wi(e.body,t)),"body");return r.accountList!==void 0&&r.accountList!==null&&(n.accountList=Wee(r.accountList,t)),r.nextToken!==void 0&&r.nextToken!==null&&(n.nextToken=(0,be.expectString)(r.nextToken)),Promise.resolve(n)};Ze.deserializeAws_restJson1ListAccountsCommand=Bee;var Gee=async(e,t)=>{let n={...e,body:await wi(e.body,t)},r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await MS(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Wf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Hf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Yt(e)}),(0,be.decorateServiceException)(r,s)}},$ee=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Vee(e,t);let n={$metadata:Yt(e)};return await aD(e.body,t),Promise.resolve(n)};Ze.deserializeAws_restJson1LogoutCommand=$ee;var Vee=async(e,t)=>{let n={...e,body:await wi(e.body,t)},r,i="UnknownError";switch(i=Jf(e,n.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await Kf(n,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await Wf(n,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Hf(n,t);default:let s=n.body;throw r=new Vf.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:Yt(e)}),(0,be.decorateServiceException)(r,s)}},Kf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,be.expectString)(r.message));let i=new $f.InvalidRequestException({$metadata:Yt(e),...n});return(0,be.decorateServiceException)(i,e.body)},MS=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,be.expectString)(r.message));let i=new $f.ResourceNotFoundException({$metadata:Yt(e),...n});return(0,be.decorateServiceException)(i,e.body)},Wf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,be.expectString)(r.message));let i=new $f.TooManyRequestsException({$metadata:Yt(e),...n});return(0,be.decorateServiceException)(i,e.body)},Hf=async(e,t)=>{let n={},r=e.body;r.message!==void 0&&r.message!==null&&(n.message=(0,be.expectString)(r.message));let i=new $f.UnauthorizedException({$metadata:Yt(e),...n});return(0,be.decorateServiceException)(i,e.body)},Kee=(e,t)=>({accountId:(0,be.expectString)(e.accountId),accountName:(0,be.expectString)(e.accountName),emailAddress:(0,be.expectString)(e.emailAddress)}),Wee=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Kee(r,t)),Hee=(e,t)=>({accessKeyId:(0,be.expectString)(e.accessKeyId),expiration:(0,be.expectLong)(e.expiration),secretAccessKey:(0,be.expectString)(e.secretAccessKey),sessionToken:(0,be.expectString)(e.sessionToken)}),Yee=(e,t)=>({accountId:(0,be.expectString)(e.accountId),roleName:(0,be.expectString)(e.roleName)}),Jee=(e,t)=>(e||[]).filter(r=>r!=null).map(r=>r===null?null:Yee(r,t)),Yt=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"]}},aD=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Qee=(e,t)=>aD(e,t).then(n=>t.utf8Encoder(n)),Yf=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),wi=(e,t)=>Qee(e,t).then(n=>n.length?JSON.parse(n):{}),Jf=(e,t)=>{let n=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),r=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},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 jS=f(Qf=>{"use strict";Object.defineProperty(Qf,"__esModule",{value:!0});Qf.GetRoleCredentialsCommand=void 0;var Xee=U(),Zee=O(),cD=Si(),lD=Na(),zS=class extends Zee.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,Xee.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:cD.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:cD.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,lD.serializeAws_restJson1GetRoleCredentialsCommand)(t,n)}deserialize(t,n){return(0,lD.deserializeAws_restJson1GetRoleCredentialsCommand)(t,n)}};Qf.GetRoleCredentialsCommand=zS});var Zf=f(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.ListAccountRolesCommand=void 0;var ete=U(),tte=O(),uD=Si(),dD=Na(),kS=class extends tte.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ete.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:uD.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:uD.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,dD.serializeAws_restJson1ListAccountRolesCommand)(t,n)}deserialize(t,n){return(0,dD.deserializeAws_restJson1ListAccountRolesCommand)(t,n)}};Xf.ListAccountRolesCommand=kS});var tm=f(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});em.ListAccountsCommand=void 0;var nte=U(),rte=O(),fD=Si(),mD=Na(),FS=class extends rte.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,nte.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:fD.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:fD.ListAccountsResponse.filterSensitiveLog},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,mD.serializeAws_restJson1ListAccountsCommand)(t,n)}deserialize(t,n){return(0,mD.deserializeAws_restJson1ListAccountsCommand)(t,n)}};em.ListAccountsCommand=FS});var BS=f(nm=>{"use strict";Object.defineProperty(nm,"__esModule",{value:!0});nm.LogoutCommand=void 0;var ite=U(),ste=O(),ote=Si(),pD=Na(),US=class extends ste.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,n,r){this.middlewareStack.use((0,ite.getSerdePlugin)(n,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=n,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:ote.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:d=>d},{requestHandler:u}=n;return i.resolve(d=>u.handle(d.request,r||{}),c)}serialize(t,n){return(0,pD.serializeAws_restJson1LogoutCommand)(t,n)}deserialize(t,n){return(0,pD.deserializeAws_restJson1LogoutCommand)(t,n)}};nm.LogoutCommand=US});var hD=f((bwe,ate)=>{ate.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently '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-* && rimraf *.tsbuildinfo"},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.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},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 rm=f(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.fromString=cs.fromArrayBuffer=void 0;var cte=zv(),GS=require("buffer"),lte=(e,t=0,n=e.byteLength-t)=>{if(!(0,cte.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return GS.Buffer.from(e,t,n)};cs.fromArrayBuffer=lte;var ute=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?GS.Buffer.from(e,t):GS.Buffer.from(e)};cs.fromString=ute});var sm=f(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.Hash=void 0;var $S=rm(),dte=require("buffer"),_D=require("crypto"),VS=class{constructor(t,n){this.hash=n?(0,_D.createHmac)(t,yD(n)):(0,_D.createHash)(t)}update(t,n){this.hash.update(yD(t,n))}digest(){return Promise.resolve(this.hash.digest())}};im.Hash=VS;function yD(e,t){return dte.Buffer.isBuffer(e)?e:typeof e=="string"?(0,$S.fromString)(e,t):ArrayBuffer.isView(e)?(0,$S.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,$S.fromArrayBuffer)(e)}});var WS=f(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});om.buildQueryString=void 0;var KS=qv();function fte(e){let t=[];for(let n of Object.keys(e).sort()){let r=e[n];if(n=(0,KS.escapeUri)(n),Array.isArray(r))for(let i=0,s=r.length;i<s;i++)t.push(`${n}=${(0,KS.escapeUri)(r[i])}`);else{let i=n;(r||typeof r=="string")&&(i+=`=${(0,KS.escapeUri)(r)}`),t.push(i)}}return t.join("&")}om.buildQueryString=fte});var gD=f(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.NODEJS_TIMEOUT_ERROR_CODES=void 0;am.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var HS=f(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});cm.getTransformedHeaders=void 0;var mte=e=>{let t={};for(let n of Object.keys(e)){let r=e[n];t[n]=Array.isArray(r)?r.join(","):r}return t};cm.getTransformedHeaders=mte});var vD=f(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});lm.setConnectionTimeout=void 0;var pte=(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)})}})};lm.setConnectionTimeout=pte});var SD=f(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});um.setSocketTimeout=void 0;var hte=(e,t,n=0)=>{e.setTimeout(n,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${n} ms`),{name:"TimeoutError"}))})};um.setSocketTimeout=hte});var YS=f(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});dm.writeRequestBody=void 0;var _te=require("stream");function yte(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{wD(e,t.body)}):wD(e,t.body)}dm.writeRequestBody=yte;function wD(e,t){t instanceof _te.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var AD=f(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});fm.NodeHttpHandler=void 0;var gte=Ot(),vte=WS(),bD=require("http"),ED=require("https"),Ste=gD(),wte=HS(),bte=vD(),Ete=SD(),Ate=YS(),JS=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((n,r)=>{typeof t=="function"?t().then(i=>{n(this.resolveDefaultConfig(i))}).catch(r):n(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:n,socketTimeout:r,httpAgent:i,httpsAgent:s}=t||{},o=!0,a=50;return{connectionTimeout:n,socketTimeout:r,httpAgent:i||new bD.Agent({keepAlive:o,maxSockets:a}),httpsAgent:s||new ED.Agent({keepAlive:o,maxSockets:a})}}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.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&&n.aborted){let d=new Error("Request aborted");d.name="AbortError",i(d);return}let s=t.protocol==="https:",o=(0,vte.buildQueryString)(t.query||{}),a={headers:t.headers,host:t.hostname,method:t.method,path:o?`${t.path}?${o}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},u=(s?ED.request:bD.request)(a,d=>{let h=new gte.HttpResponse({statusCode:d.statusCode||-1,headers:(0,wte.getTransformedHeaders)(d.headers),body:d});r({response:h})});u.on("error",d=>{Ste.NODEJS_TIMEOUT_ERROR_CODES.includes(d.code)?i(Object.assign(d,{name:"TimeoutError"})):i(d)}),(0,bte.setConnectionTimeout)(u,i,this.config.connectionTimeout),(0,Ete.setSocketTimeout)(u,i,this.config.socketTimeout),n&&(n.onabort=()=>{u.abort();let d=new Error("Request aborted");d.name="AbortError",i(d)}),(0,Ate.writeRequestBody)(u,t)})}};fm.NodeHttpHandler=JS});var TD=f(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});mm.NodeHttp2Handler=void 0;var Tte=Ot(),Cte=WS(),QS=require("http2"),xte=HS(),Ite=YS(),XS=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&&n.aborted){s=!0;let T=new Error("Request aborted");T.name="AbortError",i(T);return}let{hostname:o,method:a,port:c,protocol:u,path:d,query:h}=t,m=`${u}//${o}${c?`:${c}`:""}`,y=this.getSession(m,this.disableConcurrentStreams||!1),g=T=>{this.disableConcurrentStreams&&this.destroySession(y),s=!0,i(T)},_=(0,Cte.buildQueryString)(h||{}),A=y.request({...t.headers,[QS.constants.HTTP2_HEADER_PATH]:_?`${d}?${_}`:d,[QS.constants.HTTP2_HEADER_METHOD]:a});y.ref(),A.on("response",T=>{let G=new Tte.HttpResponse({statusCode:T[":status"]||-1,headers:(0,xte.getTransformedHeaders)(T),body:A});s=!0,r({response:G}),this.disableConcurrentStreams&&(y.close(),this.deleteSessionFromCache(m,y))});let R=this.requestTimeout;R&&A.setTimeout(R,()=>{A.close();let T=new Error(`Stream timed out because of no activity for ${R} ms`);T.name="TimeoutError",g(T)}),n&&(n.onabort=()=>{A.close();let T=new Error("Request aborted");T.name="AbortError",g(T)}),A.on("frameError",(T,G,he)=>{g(new Error(`Frame type id ${T} in stream id ${he} has failed with code ${G}.`))}),A.on("error",g),A.on("aborted",()=>{g(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${A.rstCode}.`))}),A.on("close",()=>{y.unref(),this.disableConcurrentStreams&&y.destroy(),s||g(new Error("Unexpected error: http2 request did not get a response"))}),(0,Ite.writeRequestBody)(A,t)})}getSession(t,n){let r=this.sessionCache,i=r.get(t)||[];if(i.length>0&&!n)return i[0];let s=(0,QS.connect)(t);s.unref();let o=()=>{this.destroySession(s),this.deleteSessionFromCache(t,s)};s.on("goaway",o),s.on("error",o),s.on("frameError",o);let a=this.sessionTimeout;return a&&s.setTimeout(a,o),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))}};mm.NodeHttp2Handler=XS});var CD=f(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.Collector=void 0;var Rte=require("stream"),ZS=class extends Rte.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,n,r){this.bufferedBytes.push(t),r()}};pm.Collector=ZS});var xD=f(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});hm.streamCollector=void 0;var Dte=CD(),Nte=e=>new Promise((t,n)=>{let r=new Dte.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)})});hm.streamCollector=Nte});var _m=f(Pa=>{"use strict";Object.defineProperty(Pa,"__esModule",{value:!0});var ew=K();ew.__exportStar(AD(),Pa);ew.__exportStar(TD(),Pa);ew.__exportStar(xD(),Pa)});var ym=f(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});ls.toBase64=ls.fromBase64=void 0;var ID=rm(),Pte=/^[A-Za-z0-9+/]*={0,2}$/;function Ote(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Pte.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,ID.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}ls.fromBase64=Ote;function Lte(e){return(0,ID.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}ls.toBase64=Lte});var DD=f(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});gm.calculateBodyLength=void 0;var RD=require("fs"),qte=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"||Buffer.isBuffer(e.path))return(0,RD.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,RD.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};gm.calculateBodyLength=qte});var vm=f(tw=>{"use strict";Object.defineProperty(tw,"__esModule",{value:!0});var Mte=K();Mte.__exportStar(DD(),tw)});var ND=f((Sm,nw)=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});Sm.isCrtAvailable=void 0;var zte=()=>{try{return typeof require=="function"&&typeof nw<"u"&&nw.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};Sm.isCrtAvailable=zte});var wm=f(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.defaultUserAgent=qn.UA_APP_ID_INI_NAME=qn.UA_APP_ID_ENV_NAME=void 0;var jte=vi(),PD=require("os"),rw=require("process"),kte=ND();qn.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";qn.UA_APP_ID_INI_NAME="sdk-ua-app-id";var Fte=({serviceId:e,clientVersion:t})=>{let n=[["aws-sdk-js",t],[`os/${(0,PD.platform)()}`,(0,PD.release)()],["lang/js"],["md/nodejs",`${rw.versions.node}`]],r=(0,kte.isCrtAvailable)();r&&n.push(r),e&&n.push([`api/${e}`,t]),rw.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${rw.env.AWS_EXECUTION_ENV}`]);let i=(0,jte.loadConfig)({environmentVariableSelector:o=>o[qn.UA_APP_ID_ENV_NAME],configFileSelector:o=>o[qn.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let o=await i;s=o?[...n,[`app/${o}`]]:[...n]}return s}};qn.defaultUserAgent=Fte});var bm=f(us=>{"use strict";Object.defineProperty(us,"__esModule",{value:!0});us.toUtf8=us.fromUtf8=void 0;var OD=rm(),Ute=e=>{let t=(0,OD.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};us.fromUtf8=Ute;var Bte=e=>(0,OD.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");us.toUtf8=Bte});var LD=f(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});Em.defaultRegionInfoProvider=void 0;var Gte=en(),$te={"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-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"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"}},Vte={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"]}]}},Kte=async(e,t)=>(0,Gte.getRegionInfo)(e,{...t,signingService:"awsssoportal",regionHash:$te,partitionHash:Vte});Em.defaultRegionInfoProvider=Kte});var qD=f(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});Am.getRuntimeConfig=void 0;var Wte=Ea(),Hte=LD(),Yte=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:Hte.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:Wte.parseUrl}};Am.getRuntimeConfig=Yte});var MD=f(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});Et.IMDS_REGION_PATH=Et.DEFAULTS_MODE_OPTIONS=Et.ENV_IMDS_DISABLED=Et.AWS_DEFAULT_REGION_ENV=Et.AWS_REGION_ENV=Et.AWS_EXECUTION_ENV=void 0;Et.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";Et.AWS_REGION_ENV="AWS_REGION";Et.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";Et.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";Et.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];Et.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var zD=f(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var Jte="AWS_DEFAULTS_MODE",Qte="defaults_mode";Tm.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Jte],configFileSelector:e=>e[Qte],default:"legacy"}});var FD=f(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.resolveDefaultsModeConfig=void 0;var Xte=en(),jD=zf(),kD=vi(),Zte=je(),zr=MD(),ene=zD(),tne=({region:e=(0,kD.loadConfig)(Xte.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,kD.loadConfig)(ene.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,Zte.memoize)(async()=>{let n=typeof t=="function"?await t():t;switch(n==null?void 0:n.toLowerCase()){case"auto":return nne(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 ${zr.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${n}`)}});Cm.resolveDefaultsModeConfig=tne;var nne=async e=>{if(e){let t=typeof e=="function"?await e():e,n=await rne();return n?t===n?"in-region":"cross-region":"standard"}return"standard"},rne=async()=>{var e;if(process.env[zr.AWS_EXECUTION_ENV]&&(process.env[zr.AWS_REGION_ENV]||process.env[zr.AWS_DEFAULT_REGION_ENV]))return(e=process.env[zr.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[zr.AWS_DEFAULT_REGION_ENV];if(!process.env[zr.ENV_IMDS_DISABLED])try{let t=await(0,jD.getInstanceMetadataEndpoint)();return(await(0,jD.httpRequest)({...t,path:zr.IMDS_REGION_PATH})).toString()}catch{}}});var xm=f(iw=>{"use strict";Object.defineProperty(iw,"__esModule",{value:!0});var ine=K();ine.__exportStar(FD(),iw)});var $D=f(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.getRuntimeConfig=void 0;var sne=K(),one=sne.__importDefault(hD()),Im=en(),ane=sm(),sw=ui(),Oa=vi(),UD=_m(),BD=ym(),cne=vm(),lne=wm(),GD=bm(),une=qD(),dne=O(),fne=xm(),mne=e=>{var t,n,r,i,s,o,a,c,u,d,h,m,y,g;let _=(0,fne.resolveDefaultsModeConfig)(e),A=()=>_().then(dne.loadConfigsForDefaultMode),R=(0,une.getRuntimeConfig)(e);return{...R,...e,runtime:"node",defaultsMode:_,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:BD.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:BD.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:cne.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,lne.defaultUserAgent)({serviceId:R.serviceId,clientVersion:one.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Oa.loadConfig)(sw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Oa.loadConfig)(Im.NODE_REGION_CONFIG_OPTIONS,Im.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new UD.NodeHttpHandler(A),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Oa.loadConfig)({...sw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await A()).retryMode||sw.DEFAULT_RETRY_MODE}),sha256:(u=e==null?void 0:e.sha256)!==null&&u!==void 0?u:ane.Hash.bind(null,"sha256"),streamCollector:(d=e==null?void 0:e.streamCollector)!==null&&d!==void 0?d:UD.streamCollector,useDualstackEndpoint:(h=e==null?void 0:e.useDualstackEndpoint)!==null&&h!==void 0?h:(0,Oa.loadConfig)(Im.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(m=e==null?void 0:e.useFipsEndpoint)!==null&&m!==void 0?m:(0,Oa.loadConfig)(Im.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(y=e==null?void 0:e.utf8Decoder)!==null&&y!==void 0?y:GD.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:GD.toUtf8}};Rm.getRuntimeConfig=mne});var La=f(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.SSOClient=void 0;var VD=en(),pne=Vu(),KD=Zu(),hne=ed(),WD=ui(),HD=Fd(),_ne=O(),yne=$D(),ow=class extends _ne.Client{constructor(t){let n=(0,yne.getRuntimeConfig)(t),r=(0,VD.resolveRegionConfig)(n),i=(0,VD.resolveEndpointsConfig)(r),s=(0,WD.resolveRetryConfig)(i),o=(0,KD.resolveHostHeaderConfig)(s),a=(0,HD.resolveUserAgentConfig)(o);super(a),this.config=a,this.middlewareStack.use((0,WD.getRetryPlugin)(this.config)),this.middlewareStack.use((0,pne.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,KD.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,hne.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,HD.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Dm.SSOClient=ow});var Pm=f(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.SSO=void 0;var gne=jS(),vne=Zf(),Sne=tm(),wne=BS(),bne=La(),aw=class extends bne.SSOClient{getRoleCredentials(t,n,r){let i=new gne.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 vne.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 Sne.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 wne.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)}};Nm.SSO=aw});var YD=f(ds=>{"use strict";Object.defineProperty(ds,"__esModule",{value:!0});var Om=K();Om.__exportStar(jS(),ds);Om.__exportStar(Zf(),ds);Om.__exportStar(tm(),ds);Om.__exportStar(BS(),ds)});var JD=f(cw=>{"use strict";Object.defineProperty(cw,"__esModule",{value:!0});var Ene=K();Ene.__exportStar(Si(),cw)});var XD=f(QD=>{"use strict";Object.defineProperty(QD,"__esModule",{value:!0})});var ZD=f(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.paginateListAccountRoles=void 0;var Ane=Zf(),Tne=Pm(),Cne=La(),xne=async(e,t,...n)=>await e.send(new Ane.ListAccountRolesCommand(t),...n),Ine=async(e,t,...n)=>await e.listAccountRoles(t,...n);async function*Rne(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 Tne.SSO)s=await Ine(e.client,t,...n);else if(e.client instanceof Cne.SSOClient)s=await xne(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}Lm.paginateListAccountRoles=Rne});var eN=f(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});qm.paginateListAccounts=void 0;var Dne=tm(),Nne=Pm(),Pne=La(),One=async(e,t,...n)=>await e.send(new Dne.ListAccountsCommand(t),...n),Lne=async(e,t,...n)=>await e.listAccounts(t,...n);async function*qne(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 Lne(e.client,t,...n);else if(e.client instanceof Pne.SSOClient)s=await One(e.client,t,...n);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=r;r=s.nextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}qm.paginateListAccounts=qne});var tN=f(qa=>{"use strict";Object.defineProperty(qa,"__esModule",{value:!0});var lw=K();lw.__exportStar(XD(),qa);lw.__exportStar(ZD(),qa);lw.__exportStar(eN(),qa)});var nN=f(tr=>{"use strict";Object.defineProperty(tr,"__esModule",{value:!0});tr.SSOServiceException=void 0;var Ma=K();Ma.__exportStar(Pm(),tr);Ma.__exportStar(La(),tr);Ma.__exportStar(YD(),tr);Ma.__exportStar(JD(),tr);Ma.__exportStar(tN(),tr);var Mne=Uf();Object.defineProperty(tr,"SSOServiceException",{enumerable:!0,get:function(){return Mne.SSOServiceException}})});var iN=f(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.resolveSSOCredentials=void 0;var rN=nN(),Mm=je(),zne=Mr(),jne=15*60*1e3,zm=!1,kne=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:n,ssoRoleName:r,ssoClient:i})=>{let s,o="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,zne.getSSOTokenFromFile)(e)}catch{throw new Mm.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${o}`,zm)}if(new Date(s.expiresAt).getTime()-Date.now()<=jne)throw new Mm.CredentialsProviderError(`The SSO session associated with this profile has expired. ${o}`,zm);let{accessToken:a}=s,c=i||new rN.SSOClient({region:n}),u;try{u=await c.send(new rN.GetRoleCredentialsCommand({accountId:t,roleName:r,accessToken:a}))}catch(g){throw Mm.CredentialsProviderError.from(g,zm)}let{roleCredentials:{accessKeyId:d,secretAccessKey:h,sessionToken:m,expiration:y}={}}=u;if(!d||!h||!m||!y)throw new Mm.CredentialsProviderError("SSO returns an invalid temporary credential.",zm);return{accessKeyId:d,secretAccessKey:h,sessionToken:m,expiration:new Date(y)}};jm.resolveSSOCredentials=kne});var uw=f(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.validateSsoProfile=void 0;var Fne=je(),Une=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 Fne.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(", ")}
|
|
28
|
-
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};km.validateSsoProfile=Une});var cN=f(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.fromSSO=void 0;var sN=je(),oN=Mr(),Bne=qS(),aN=iN(),Gne=uw(),$ne=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s}=e;if(!t&&!n&&!r&&!i){let o=await(0,oN.parseKnownFiles)(e),a=(0,oN.getProfileName)(e),c=o[a];if(!(0,Bne.isSsoProfile)(c))throw new sN.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:u,sso_account_id:d,sso_region:h,sso_role_name:m}=(0,Gne.validateSsoProfile)(c);return(0,aN.resolveSSOCredentials)({ssoStartUrl:u,ssoAccountId:d,ssoRegion:h,ssoRoleName:m,ssoClient:s})}else{if(!t||!n||!r||!i)throw new sN.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,aN.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i,ssoClient:s})}};Fm.fromSSO=$ne});var uN=f(lN=>{"use strict";Object.defineProperty(lN,"__esModule",{value:!0})});var Bm=f(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var Um=K();Um.__exportStar(cN(),fs);Um.__exportStar(qS(),fs);Um.__exportStar(uN(),fs);Um.__exportStar(uw(),fs)});var fN=f(ms=>{"use strict";Object.defineProperty(ms,"__esModule",{value:!0});ms.resolveSsoCredentials=ms.isSsoProfile=void 0;var dN=Bm(),Vne=Bm();Object.defineProperty(ms,"isSsoProfile",{enumerable:!0,get:function(){return Vne.isSsoProfile}});var Kne=e=>{let{sso_start_url:t,sso_account_id:n,sso_region:r,sso_role_name:i}=(0,dN.validateSsoProfile)(e);return(0,dN.fromSSO)({ssoStartUrl:t,ssoAccountId:n,ssoRegion:r,ssoRoleName:i})()};ms.resolveSsoCredentials=Kne});var mN=f(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});ps.resolveStaticCredentials=ps.isStaticCredsProfile=void 0;var Wne=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;ps.isStaticCredsProfile=Wne;var Hne=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});ps.resolveStaticCredentials=Hne});var dw=f(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.fromWebToken=void 0;var Yne=je(),Jne=e=>()=>{let{roleArn:t,roleSessionName:n,webIdentityToken:r,providerId:i,policyArns:s,policy:o,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new Yne.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:o,DurationSeconds:a})};Gm.fromWebToken=Jne});var pN=f($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.fromTokenFile=void 0;var Qne=je(),Xne=require("fs"),Zne=dw(),ere="AWS_WEB_IDENTITY_TOKEN_FILE",tre="AWS_ROLE_ARN",nre="AWS_ROLE_SESSION_NAME",rre=(e={})=>async()=>ire(e);$m.fromTokenFile=rre;var ire=e=>{var t,n,r;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[ere],s=(n=e==null?void 0:e.roleArn)!==null&&n!==void 0?n:process.env[tre],o=(r=e==null?void 0:e.roleSessionName)!==null&&r!==void 0?r:process.env[nre];if(!i||!s)throw new Qne.CredentialsProviderError("Web identity configuration not specified");return(0,Zne.fromWebToken)({...e,webIdentityToken:(0,Xne.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:o})()}});var fw=f(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var hN=K();hN.__exportStar(pN(),Vm);hN.__exportStar(dw(),Vm)});var _N=f(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.resolveWebIdentityCredentials=hs.isWebIdentityProfile=void 0;var sre=fw(),ore=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;hs.isWebIdentityProfile=ore;var are=async(e,t)=>(0,sre.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();hs.resolveWebIdentityCredentials=are});var LS=f(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.resolveProfileData=void 0;var cre=je(),yN=sD(),gN=fN(),Km=mN(),vN=_N(),lre=async(e,t,n,r={})=>{let i=t[e];if(Object.keys(r).length>0&&(0,Km.isStaticCredsProfile)(i))return(0,Km.resolveStaticCredentials)(i);if((0,yN.isAssumeRoleProfile)(i))return(0,yN.resolveAssumeRoleCredentials)(e,t,n,r);if((0,Km.isStaticCredsProfile)(i))return(0,Km.resolveStaticCredentials)(i);if((0,vN.isWebIdentityProfile)(i))return(0,vN.resolveWebIdentityCredentials)(i,n);if((0,gN.isSsoProfile)(i))return(0,gN.resolveSsoCredentials)(i);throw new cre.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};Wm.resolveProfileData=lre});var wN=f(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.fromIni=void 0;var SN=Mr(),ure=LS(),dre=(e={})=>async()=>{let t=await(0,SN.parseKnownFiles)(e);return(0,ure.resolveProfileData)((0,SN.getProfileName)(e),t,e)};Hm.fromIni=dre});var bN=f(mw=>{"use strict";Object.defineProperty(mw,"__esModule",{value:!0});var fre=K();fre.__exportStar(wN(),mw)});var EN=f(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.getValidatedProcessCredentials=void 0;var mre=(e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let n=new Date;if(new Date(t.Expiration)<n)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}};Ym.getValidatedProcessCredentials=mre});var AN=f(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});Jm.resolveProcessCredentials=void 0;var pw=je(),pre=require("child_process"),hre=require("util"),_re=EN(),yre=async(e,t)=>{let n=t[e];if(t[e]){let r=n.credential_process;if(r!==void 0){let i=(0,hre.promisify)(pre.exec);try{let{stdout:s}=await i(r),o;try{o=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,_re.getValidatedProcessCredentials)(e,o)}catch(s){throw new pw.CredentialsProviderError(s.message)}}else throw new pw.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new pw.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};Jm.resolveProcessCredentials=yre});var CN=f(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.fromProcess=void 0;var TN=Mr(),gre=AN(),vre=(e={})=>async()=>{let t=await(0,TN.parseKnownFiles)(e);return(0,gre.resolveProcessCredentials)((0,TN.getProfileName)(e),t)};Qm.fromProcess=vre});var xN=f(hw=>{"use strict";Object.defineProperty(hw,"__esModule",{value:!0});var Sre=K();Sre.__exportStar(CN(),hw)});var IN=f(bi=>{"use strict";Object.defineProperty(bi,"__esModule",{value:!0});bi.remoteProvider=bi.ENV_IMDS_DISABLED=void 0;var Xm=zf(),wre=je();bi.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var bre=e=>process.env[Xm.ENV_CMDS_RELATIVE_URI]||process.env[Xm.ENV_CMDS_FULL_URI]?(0,Xm.fromContainerMetadata)(e):process.env[bi.ENV_IMDS_DISABLED]?async()=>{throw new wre.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,Xm.fromInstanceMetadata)(e);bi.remoteProvider=bre});var RN=f(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.defaultProvider=void 0;var Ere=wS(),Are=bN(),Tre=xN(),Cre=Bm(),xre=fw(),_w=je(),Ire=Mr(),Rre=IN(),Dre=(e={})=>(0,_w.memoize)((0,_w.chain)(...e.profile||process.env[Ire.ENV_PROFILE]?[]:[(0,Ere.fromEnv)()],(0,Cre.fromSSO)(e),(0,Are.fromIni)(e),(0,Tre.fromProcess)(e),(0,xre.fromTokenFile)(e),(0,Rre.remoteProvider)(e),async()=>{throw new _w.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);Zm.defaultProvider=Dre});var gw=f(yw=>{"use strict";Object.defineProperty(yw,"__esModule",{value:!0});var Nre=K();Nre.__exportStar(RN(),yw)});var DN=f(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.defaultRegionInfoProvider=void 0;var Pre=en(),Ore={"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"]}]}},Lre={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"]}]}},qre=async(e,t)=>(0,Pre.getRegionInfo)(e,{...t,signingService:"sts",regionHash:Ore,partitionHash:Lre});ep.defaultRegionInfoProvider=qre});var NN=f(tp=>{"use strict";Object.defineProperty(tp,"__esModule",{value:!0});tp.getRuntimeConfig=void 0;var Mre=Ea(),zre=DN(),jre=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:zre.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:Mre.parseUrl}};tp.getRuntimeConfig=jre});var qN=f(rp=>{"use strict";Object.defineProperty(rp,"__esModule",{value:!0});rp.getRuntimeConfig=void 0;var kre=K(),Fre=kre.__importDefault(yR()),Ure=vS(),np=en(),Bre=gw(),Gre=sm(),vw=ui(),za=vi(),PN=_m(),ON=ym(),$re=vm(),Vre=wm(),LN=bm(),Kre=NN(),Wre=O(),Hre=xm(),Yre=e=>{var t,n,r,i,s,o,a,c,u,d,h,m,y,g,_;let A=(0,Hre.resolveDefaultsModeConfig)(e),R=()=>A().then(Wre.loadConfigsForDefaultMode),T=(0,Kre.getRuntimeConfig)(e);return{...T,...e,runtime:"node",defaultsMode:A,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:$re.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,Ure.decorateDefaultCredentialProvider)(Bre.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Vre.defaultUserAgent)({serviceId:T.serviceId,clientVersion:Fre.default.version}),maxAttempts:(o=e==null?void 0:e.maxAttempts)!==null&&o!==void 0?o:(0,za.loadConfig)(vw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,za.loadConfig)(np.NODE_REGION_CONFIG_OPTIONS,np.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new PN.NodeHttpHandler(R),retryMode:(u=e==null?void 0:e.retryMode)!==null&&u!==void 0?u:(0,za.loadConfig)({...vw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await R()).retryMode||vw.DEFAULT_RETRY_MODE}),sha256:(d=e==null?void 0:e.sha256)!==null&&d!==void 0?d:Gre.Hash.bind(null,"sha256"),streamCollector:(h=e==null?void 0:e.streamCollector)!==null&&h!==void 0?h:PN.streamCollector,useDualstackEndpoint:(m=e==null?void 0:e.useDualstackEndpoint)!==null&&m!==void 0?m:(0,za.loadConfig)(np.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(y=e==null?void 0:e.useFipsEndpoint)!==null&&y!==void 0?y:(0,za.loadConfig)(np.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(g=e==null?void 0:e.utf8Decoder)!==null&&g!==void 0?g:LN.fromUtf8,utf8Encoder:(_=e==null?void 0:e.utf8Encoder)!==null&&_!==void 0?_:LN.toUtf8}};rp.getRuntimeConfig=Yre});var sp=f(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.STSClient=void 0;var MN=en(),Jre=Vu(),zN=Zu(),Qre=ed(),jN=ui(),Xre=_R(),kN=Fd(),Zre=O(),eie=qN(),ja=class extends Zre.Client{constructor(t){let n=(0,eie.getRuntimeConfig)(t),r=(0,MN.resolveRegionConfig)(n),i=(0,MN.resolveEndpointsConfig)(r),s=(0,jN.resolveRetryConfig)(i),o=(0,zN.resolveHostHeaderConfig)(s),a=(0,Xre.resolveStsAuthConfig)(o,{stsClientCtor:ja}),c=(0,kN.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,jN.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Jre.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,zN.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Qre.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,kN.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};ip.STSClient=ja});var FN=f(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});op.STS=void 0;var tie=nf(),nie=aS(),rie=of(),iie=uS(),sie=fS(),oie=pS(),aie=_S(),cie=gS(),lie=sp(),Sw=class extends lie.STSClient{assumeRole(t,n,r){let i=new tie.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 nie.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 rie.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 iie.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 sie.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 oie.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 aie.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 cie.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)}};op.STS=Sw});var UN=f(Mn=>{"use strict";Object.defineProperty(Mn,"__esModule",{value:!0});var jr=K();jr.__exportStar(nf(),Mn);jr.__exportStar(aS(),Mn);jr.__exportStar(of(),Mn);jr.__exportStar(uS(),Mn);jr.__exportStar(fS(),Mn);jr.__exportStar(pS(),Mn);jr.__exportStar(_S(),Mn);jr.__exportStar(gS(),Mn)});var $N=f(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.decorateDefaultCredentialProvider=zn.getDefaultRoleAssumerWithWebIdentity=zn.getDefaultRoleAssumer=void 0;var BN=vS(),GN=sp(),uie=(e={})=>(0,BN.getDefaultRoleAssumer)(e,GN.STSClient);zn.getDefaultRoleAssumer=uie;var die=(e={})=>(0,BN.getDefaultRoleAssumerWithWebIdentity)(e,GN.STSClient);zn.getDefaultRoleAssumerWithWebIdentity=die;var fie=e=>t=>e({roleAssumer:(0,zn.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,zn.getDefaultRoleAssumerWithWebIdentity)(t),...t});zn.decorateDefaultCredentialProvider=fie});var VN=f(ww=>{"use strict";Object.defineProperty(ww,"__esModule",{value:!0});var mie=K();mie.__exportStar(tn(),ww)});var KN=f(nr=>{"use strict";Object.defineProperty(nr,"__esModule",{value:!0});nr.STSServiceException=void 0;var ka=K();ka.__exportStar(FN(),nr);ka.__exportStar(sp(),nr);ka.__exportStar(UN(),nr);ka.__exportStar($N(),nr);ka.__exportStar(VN(),nr);var pie=Bd();Object.defineProperty(nr,"STSServiceException",{enumerable:!0,get:function(){return pie.STSServiceException}})});var WN=f(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.defaultRegionInfoProvider=void 0;var hie=en(),_ie={"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"]}]}},yie={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"]}]}},gie=async(e,t)=>(0,hie.getRegionInfo)(e,{...t,signingService:"dynamodb",regionHash:_ie,partitionHash:yie});ap.defaultRegionInfoProvider=gie});var HN=f(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.getRuntimeConfig=void 0;var vie=Ea(),Sie=WN(),wie=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:Sie.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:vie.parseUrl}};cp.getRuntimeConfig=wie});var XN=f(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.getRuntimeConfig=void 0;var bie=K(),Eie=bie.__importDefault(t1()),Aie=KN(),lp=en(),Tie=gw(),Cie=sm(),xie=vv(),bw=ui(),_s=vi(),YN=_m(),JN=ym(),Iie=vm(),Rie=wm(),QN=bm(),Die=HN(),Nie=O(),Pie=xm(),Oie=e=>{var t,n,r,i,s,o,a,c,u,d,h,m,y,g,_,A;let R=(0,Pie.resolveDefaultsModeConfig)(e),T=()=>R().then(Nie.loadConfigsForDefaultMode),G=(0,Die.getRuntimeConfig)(e);return{...G,...e,runtime:"node",defaultsMode:R,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:JN.fromBase64,base64Encoder:(n=e==null?void 0:e.base64Encoder)!==null&&n!==void 0?n:JN.toBase64,bodyLengthChecker:(r=e==null?void 0:e.bodyLengthChecker)!==null&&r!==void 0?r:Iie.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,Aie.decorateDefaultCredentialProvider)(Tie.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,Rie.defaultUserAgent)({serviceId:G.serviceId,clientVersion:Eie.default.version}),endpointDiscoveryEnabledProvider:(o=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&o!==void 0?o:(0,_s.loadConfig)(xie.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,_s.loadConfig)(bw.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,_s.loadConfig)(lp.NODE_REGION_CONFIG_OPTIONS,lp.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(u=e==null?void 0:e.requestHandler)!==null&&u!==void 0?u:new YN.NodeHttpHandler(T),retryMode:(d=e==null?void 0:e.retryMode)!==null&&d!==void 0?d:(0,_s.loadConfig)({...bw.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await T()).retryMode||bw.DEFAULT_RETRY_MODE}),sha256:(h=e==null?void 0:e.sha256)!==null&&h!==void 0?h:Cie.Hash.bind(null,"sha256"),streamCollector:(m=e==null?void 0:e.streamCollector)!==null&&m!==void 0?m:YN.streamCollector,useDualstackEndpoint:(y=e==null?void 0:e.useDualstackEndpoint)!==null&&y!==void 0?y:(0,_s.loadConfig)(lp.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(g=e==null?void 0:e.useFipsEndpoint)!==null&&g!==void 0?g:(0,_s.loadConfig)(lp.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(_=e==null?void 0:e.utf8Decoder)!==null&&_!==void 0?_:QN.fromUtf8,utf8Encoder:(A=e==null?void 0:e.utf8Encoder)!==null&&A!==void 0?A:QN.toUtf8}};up.getRuntimeConfig=Oie});var kr=f(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.DynamoDBClient=void 0;var ZN=en(),Lie=Vu(),qie=vv(),eP=Zu(),Mie=ed(),tP=ui(),nP=Xn(),rP=Fd(),zie=O(),jie=Fl(),kie=XN(),Ew=class extends zie.Client{constructor(t){let n=(0,kie.getRuntimeConfig)(t),r=(0,ZN.resolveRegionConfig)(n),i=(0,ZN.resolveEndpointsConfig)(r),s=(0,tP.resolveRetryConfig)(i),o=(0,eP.resolveHostHeaderConfig)(s),a=(0,nP.resolveAwsAuthConfig)(o),c=(0,rP.resolveUserAgentConfig)(a),u=(0,qie.resolveEndpointDiscoveryConfig)(c,{endpointDiscoveryCommandCtor:jie.DescribeEndpointsCommand});super(u),this.config=u,this.middlewareStack.use((0,tP.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Lie.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,eP.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Mie.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,nP.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,rP.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};dp.DynamoDBClient=Ew});var Ei=f(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.DynamoDB=void 0;var Fie=wy(),Uie=Ey(),Bie=Ty(),Gie=xy(),$ie=Ry(),Vie=Ny(),Kie=Oy(),Wie=qy(),Hie=zy(),Yie=ky(),Jie=Uy(),Qie=Gy(),Xie=Fl(),Zie=Ky(),ese=Hy(),tse=Jy(),nse=Xy(),rse=eg(),ise=Yo(),sse=rg(),ose=sg(),ase=ag(),cse=lg(),lse=dg(),use=mg(),dse=hg(),fse=yg(),mse=vg(),pse=ru(),hse=su(),_se=Eg(),yse=cu(),gse=Cg(),vse=Ig(),Sse=fu(),wse=Ng(),bse=Og(),Ese=_u(),Ase=Mg(),Tse=jg(),Cse=Fg(),xse=Bg(),Ise=$g(),Rse=Kg(),Dse=Hg(),Nse=Jg(),Pse=Xg(),Ose=ev(),Lse=nv(),qse=iv(),Mse=kr(),Aw=class extends Mse.DynamoDBClient{batchExecuteStatement(t,n,r){let i=new Fie.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 Uie.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 Bie.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 Gie.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 $ie.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 Vie.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 Kie.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 Wie.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 Hie.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 Yie.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 Jie.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 Qie.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 Xie.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 Zie.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 ese.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 tse.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 nse.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 rse.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 ise.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 sse.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 ose.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 ase.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 cse.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 lse.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 use.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 dse.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 fse.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 mse.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 pse.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 hse.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 _se.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 yse.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 gse.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 vse.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 Sse.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 wse.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 bse.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 Ese.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 Ase.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 Tse.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 Cse.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 xse.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 Ise.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 Rse.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 Dse.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 Nse.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 Pse.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 Ose.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 Lse.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 qse.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)}};fp.DynamoDB=Aw});var iP=f(Y=>{"use strict";Object.defineProperty(Y,"__esModule",{value:!0});var ne=K();ne.__exportStar(wy(),Y);ne.__exportStar(Ey(),Y);ne.__exportStar(Ty(),Y);ne.__exportStar(xy(),Y);ne.__exportStar(Ry(),Y);ne.__exportStar(Ny(),Y);ne.__exportStar(Oy(),Y);ne.__exportStar(qy(),Y);ne.__exportStar(zy(),Y);ne.__exportStar(ky(),Y);ne.__exportStar(Uy(),Y);ne.__exportStar(Gy(),Y);ne.__exportStar(Fl(),Y);ne.__exportStar(Ky(),Y);ne.__exportStar(Hy(),Y);ne.__exportStar(Jy(),Y);ne.__exportStar(Xy(),Y);ne.__exportStar(eg(),Y);ne.__exportStar(Yo(),Y);ne.__exportStar(rg(),Y);ne.__exportStar(sg(),Y);ne.__exportStar(ag(),Y);ne.__exportStar(lg(),Y);ne.__exportStar(dg(),Y);ne.__exportStar(mg(),Y);ne.__exportStar(hg(),Y);ne.__exportStar(yg(),Y);ne.__exportStar(vg(),Y);ne.__exportStar(ru(),Y);ne.__exportStar(su(),Y);ne.__exportStar(Eg(),Y);ne.__exportStar(cu(),Y);ne.__exportStar(Cg(),Y);ne.__exportStar(Ig(),Y);ne.__exportStar(fu(),Y);ne.__exportStar(Ng(),Y);ne.__exportStar(Og(),Y);ne.__exportStar(_u(),Y);ne.__exportStar(Mg(),Y);ne.__exportStar(jg(),Y);ne.__exportStar(Fg(),Y);ne.__exportStar(Bg(),Y);ne.__exportStar($g(),Y);ne.__exportStar(Kg(),Y);ne.__exportStar(Hg(),Y);ne.__exportStar(Jg(),Y);ne.__exportStar(Xg(),Y);ne.__exportStar(ev(),Y);ne.__exportStar(nv(),Y);ne.__exportStar(iv(),Y)});var sP=f(Tw=>{"use strict";Object.defineProperty(Tw,"__esModule",{value:!0});var zse=K();zse.__exportStar(H(),Tw)});var aP=f(oP=>{"use strict";Object.defineProperty(oP,"__esModule",{value:!0})});var cP=f(mp=>{"use strict";Object.defineProperty(mp,"__esModule",{value:!0});mp.paginateListContributorInsights=void 0;var jse=ru(),kse=Ei(),Fse=kr(),Use=async(e,t,...n)=>await e.send(new jse.ListContributorInsightsCommand(t),...n),Bse=async(e,t,...n)=>await e.listContributorInsights(t,...n);async function*Gse(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 kse.DynamoDB)s=await Bse(e.client,t,...n);else if(e.client instanceof Fse.DynamoDBClient)s=await Use(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}mp.paginateListContributorInsights=Gse});var lP=f(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.paginateListExports=void 0;var $se=su(),Vse=Ei(),Kse=kr(),Wse=async(e,t,...n)=>await e.send(new $se.ListExportsCommand(t),...n),Hse=async(e,t,...n)=>await e.listExports(t,...n);async function*Yse(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 Vse.DynamoDB)s=await Hse(e.client,t,...n);else if(e.client instanceof Kse.DynamoDBClient)s=await Wse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.NextToken,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}pp.paginateListExports=Yse});var uP=f(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.paginateListTables=void 0;var Jse=cu(),Qse=Ei(),Xse=kr(),Zse=async(e,t,...n)=>await e.send(new Jse.ListTablesCommand(t),...n),eoe=async(e,t,...n)=>await e.listTables(t,...n);async function*toe(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 Qse.DynamoDB)s=await eoe(e.client,t,...n);else if(e.client instanceof Xse.DynamoDBClient)s=await Zse(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedTableName,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}hp.paginateListTables=toe});var dP=f(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.paginateQuery=void 0;var noe=fu(),roe=Ei(),ioe=kr(),soe=async(e,t,...n)=>await e.send(new noe.QueryCommand(t),...n),ooe=async(e,t,...n)=>await e.query(t,...n);async function*aoe(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 roe.DynamoDB)s=await ooe(e.client,t,...n);else if(e.client instanceof ioe.DynamoDBClient)s=await soe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}_p.paginateQuery=aoe});var fP=f(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.paginateScan=void 0;var coe=_u(),loe=Ei(),uoe=kr(),doe=async(e,t,...n)=>await e.send(new coe.ScanCommand(t),...n),foe=async(e,t,...n)=>await e.scan(t,...n);async function*moe(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 loe.DynamoDB)s=await foe(e.client,t,...n);else if(e.client instanceof uoe.DynamoDBClient)s=await doe(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=r;r=s.LastEvaluatedKey,i=!!(r&&(!e.stopOnSameToken||r!==o))}return void 0}yp.paginateScan=moe});var mP=f(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});var ys=K();ys.__exportStar(aP(),Fr);ys.__exportStar(cP(),Fr);ys.__exportStar(lP(),Fr);ys.__exportStar(uP(),Fr);ys.__exportStar(dP(),Fr);ys.__exportStar(fP(),Fr)});var Cw=f(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.sleep=void 0;var poe=e=>new Promise(t=>setTimeout(t,e*1e3));gp.sleep=poe});var Sp=f(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.checkExceptions=rr.WaiterState=rr.waiterServiceDefaults=void 0;rr.waiterServiceDefaults={minDelay:2,maxDelay:120};var vp;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(vp=rr.WaiterState||(rr.WaiterState={}));var hoe=e=>{if(e.state===vp.ABORTED){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw t.name="AbortError",t}else if(e.state===vp.TIMEOUT){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw t.name="TimeoutError",t}else if(e.state!==vp.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};rr.checkExceptions=hoe});var pP=f(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.runPolling=void 0;var _oe=Cw(),wp=Sp(),yoe=(e,t,n,r)=>{if(r>n)return t;let i=e*2**(r-1);return goe(e,i)},goe=(e,t)=>e+Math.random()*(t-e),voe=async({minDelay:e,maxDelay:t,maxWaitTime:n,abortController:r,client:i,abortSignal:s},o,a)=>{var c;let{state:u}=await a(i,o);if(u!==wp.WaiterState.RETRY)return{state:u};let d=1,h=Date.now()+n*1e3,m=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:wp.WaiterState.ABORTED};let y=yoe(e,t,m,d);if(Date.now()+y*1e3>h)return{state:wp.WaiterState.TIMEOUT};await(0,_oe.sleep)(y);let{state:g}=await a(i,o);if(g!==wp.WaiterState.RETRY)return{state:g};d+=1}};bp.runPolling=voe});var hP=f(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.validateWaiterOptions=void 0;var Soe=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`)};Ep.validateWaiterOptions=Soe});var yP=f(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});var _P=K();_P.__exportStar(Cw(),Ap);_P.__exportStar(hP(),Ap)});var SP=f(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.createWaiter=void 0;var woe=pP(),boe=yP(),vP=Sp(),gP=async e=>new Promise(t=>{e.onabort=()=>t({state:vP.WaiterState.ABORTED})}),Eoe=async(e,t,n)=>{let r={...vP.waiterServiceDefaults,...e};(0,boe.validateWaiterOptions)(r);let i=[(0,woe.runPolling)(r,t,n)];return e.abortController&&i.push(gP(e.abortController.signal)),e.abortSignal&&i.push(gP(e.abortSignal)),Promise.race(i)};Tp.createWaiter=Eoe});var xw=f(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});var wP=K();wP.__exportStar(SP(),Cp);wP.__exportStar(Sp(),Cp)});var EP=f(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});vs.waitUntilTableExists=vs.waitForTableExists=void 0;var gs=xw(),Aoe=Yo(),bP=async(e,t)=>{let n;try{let r=await e.send(new Aoe.DescribeTableCommand(t));n=r;try{if((()=>r.Table.TableStatus)()==="ACTIVE")return{state:gs.WaiterState.SUCCESS,reason:n}}catch{}}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:gs.WaiterState.RETRY,reason:n}}return{state:gs.WaiterState.RETRY,reason:n}},Toe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,gs.createWaiter)({...n,...e},t,bP)};vs.waitForTableExists=Toe;var Coe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,gs.createWaiter)({...n,...e},t,bP);return(0,gs.checkExceptions)(r)};vs.waitUntilTableExists=Coe});var TP=f(Ss=>{"use strict";Object.defineProperty(Ss,"__esModule",{value:!0});Ss.waitUntilTableNotExists=Ss.waitForTableNotExists=void 0;var Fa=xw(),xoe=Yo(),AP=async(e,t)=>{let n;try{n=await e.send(new xoe.DescribeTableCommand(t))}catch(r){if(n=r,r.name&&r.name=="ResourceNotFoundException")return{state:Fa.WaiterState.SUCCESS,reason:n}}return{state:Fa.WaiterState.RETRY,reason:n}},Ioe=async(e,t)=>{let n={minDelay:20,maxDelay:120};return(0,Fa.createWaiter)({...n,...e},t,AP)};Ss.waitForTableNotExists=Ioe;var Roe=async(e,t)=>{let n={minDelay:20,maxDelay:120},r=await(0,Fa.createWaiter)({...n,...e},t,AP);return(0,Fa.checkExceptions)(r)};Ss.waitUntilTableNotExists=Roe});var xP=f(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var CP=K();CP.__exportStar(EP(),xp);CP.__exportStar(TP(),xp)});var _t=f(jn=>{"use strict";Object.defineProperty(jn,"__esModule",{value:!0});jn.DynamoDBServiceException=void 0;var ws=K();ws.__exportStar(Ei(),jn);ws.__exportStar(kr(),jn);ws.__exportStar(iP(),jn);ws.__exportStar(sP(),jn);ws.__exportStar(mP(),jn);ws.__exportStar(xP(),jn);var Doe=Qc();Object.defineProperty(jn,"DynamoDBServiceException",{enumerable:!0,get:function(){return Doe.DynamoDBServiceException}})});var Iw=f(Ai=>{"use strict";Object.defineProperty(Ai,"__esModule",{value:!0});Ai.convertToAttr=void 0;var Noe=(e,t)=>{var n,r,i,s,o,a;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 Ip();if(Array.isArray(e))return Poe(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Set")return Ooe(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Map")return Loe(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 IP(e,t);if(LP(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Ip():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"||((o=e==null?void 0:e.constructor)===null||o===void 0?void 0:o.name)==="Number")return OP(e);if(typeof e=="bigint")return PP(e);if(typeof e=="string"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Ip():NP(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return IP(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};Ai.convertToAttr=Noe;var Poe=(e,t)=>({L:e.filter(n=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&n!==void 0).map(n=>(0,Ai.convertToAttr)(n,t))}),Ooe=(e,t)=>{let n=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&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&&t.convertEmptyValues)return Ip();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(OP).map(i=>i.N)};if(typeof r=="bigint")return{NS:Array.from(n).map(PP).map(i=>i.N)};if(typeof r=="string")return{SS:Array.from(n).map(NP).map(i=>i.S)};if(LP(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.")},Loe=(e,t)=>({M:(n=>{let r={};for(let[i,s]of n)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ai.convertToAttr)(s,t));return r})(e)}),IP=(e,t)=>({M:(n=>{let r={};for(let i in n){let s=n[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(r[i]=(0,Ai.convertToAttr)(s,t))}return r})(e)}),Ip=()=>({NULL:!0}),DP=e=>({B:e}),NP=e=>({S:e.toString()}),PP=e=>({N:e.toString()}),RP=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},OP=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?RP(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&RP(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},LP=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return e!=null&&e.constructor?t.includes(e.constructor.name):!1}});var Rw=f(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});bs.convertToNative=void 0;var qoe=(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 qP(r,t);case"B":return zP(r);case"S":return MP(r);case"L":return Moe(r,t);case"M":return zoe(r,t);case"NS":return new Set(r.map(i=>qP(i,t)));case"BS":return new Set(r.map(zP));case"SS":return new Set(r.map(MP));default:throw new Error(`Unsupported type passed: ${n}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};bs.convertToNative=qoe;var qP=(e,t)=>{if(t!=null&&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},MP=e=>e,zP=e=>e,Moe=(e,t)=>e.map(n=>(0,bs.convertToNative)(n,t)),zoe=(e,t)=>Object.entries(e).reduce((n,[r,i])=>({...n,[r]:(0,bs.convertToNative)(i,t)}),{})});var jP=f(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});Rp.marshall=void 0;var joe=Iw();function koe(e,t){let n=(0,joe.convertToAttr)(e,t),[r,i]=Object.entries(n)[0];switch(r){case"M":case"L":return i;case"SS":case"NS":case"BS":case"S":case"N":case"B":case"NULL":case"BOOL":case"$unknown":default:return n}}Rp.marshall=koe});var FP=f(kP=>{"use strict";Object.defineProperty(kP,"__esModule",{value:!0})});var UP=f(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.unmarshall=void 0;var Foe=Rw(),Uoe=(e,t)=>(0,Foe.convertToNative)({M:e},t);Dp.unmarshall=Uoe});var BP=f(Ti=>{"use strict";Object.defineProperty(Ti,"__esModule",{value:!0});var Ua=K();Ua.__exportStar(Iw(),Ti);Ua.__exportStar(Rw(),Ti);Ua.__exportStar(jP(),Ti);Ua.__exportStar(FP(),Ti);Ua.__exportStar(UP(),Ti)});var At=f(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});Es.unmarshallOutput=Es.marshallInput=void 0;var $P=BP(),GP=(e,t,n)=>{if(e!==void 0)return!n||Array.isArray(n)&&n.length===0?t(e):Array.isArray(n)?Dw(e,t,n):Boe(e,t,n.children)},VP=(e,t,n)=>Array.isArray(e)?e.map(r=>GP(r,t,n)):GP(e,t,n),Dw=(e,t,n)=>n.reduce((r,{key:i,children:s})=>({...r,[i]:VP(r[i],t,s)}),e),Boe=(e,t,n)=>Object.entries(e).reduce((r,[i,s])=>({...r,[i]:VP(s,t,n)}),{}),Goe=(e,t,n)=>Dw(e,i=>(0,$P.marshall)(i,n),t);Es.marshallInput=Goe;var $oe=(e,t,n)=>Dw(e,i=>(0,$P.unmarshall)(i,n),t);Es.unmarshallOutput=$oe});var Pw=f(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.BatchExecuteStatementCommand=void 0;var Voe=_t(),Koe=O(),KP=At(),Nw=class extends Koe.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||{},o=new Voe.BatchExecuteStatementCommand((0,KP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,KP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Np.BatchExecuteStatementCommand=Nw});var Lw=f(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.BatchGetCommand=void 0;var Woe=_t(),Hoe=O(),WP=At(),Ow=class extends Hoe.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||{},o=new Woe.BatchGetItemCommand((0,WP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,WP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Pp.BatchGetCommand=Ow});var Mw=f(Op=>{"use strict";Object.defineProperty(Op,"__esModule",{value:!0});Op.BatchWriteCommand=void 0;var Yoe=_t(),Joe=O(),HP=At(),qw=class extends Joe.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||{},o=new Yoe.BatchWriteItemCommand((0,HP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,HP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Op.BatchWriteCommand=qw});var jw=f(Lp=>{"use strict";Object.defineProperty(Lp,"__esModule",{value:!0});Lp.DeleteCommand=void 0;var Qoe=_t(),Xoe=O(),YP=At(),zw=class extends Xoe.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||{},o=new Qoe.DeleteItemCommand((0,YP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,YP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Lp.DeleteCommand=zw});var Fw=f(qp=>{"use strict";Object.defineProperty(qp,"__esModule",{value:!0});qp.ExecuteStatementCommand=void 0;var Zoe=_t(),eae=O(),JP=At(),kw=class extends eae.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,n,r){let{marshallOptions:i,unmarshallOptions:s}=n.translateConfig||{},o=new Zoe.ExecuteStatementCommand((0,JP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,JP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};qp.ExecuteStatementCommand=kw});var Bw=f(Mp=>{"use strict";Object.defineProperty(Mp,"__esModule",{value:!0});Mp.ExecuteTransactionCommand=void 0;var tae=_t(),nae=O(),QP=At(),Uw=class extends nae.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||{},o=new tae.ExecuteTransactionCommand((0,QP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,QP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Mp.ExecuteTransactionCommand=Uw});var $w=f(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.GetCommand=void 0;var rae=_t(),iae=O(),XP=At(),Gw=class extends iae.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||{},o=new rae.GetItemCommand((0,XP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,XP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};zp.GetCommand=Gw});var Kw=f(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.PutCommand=void 0;var sae=_t(),oae=O(),ZP=At(),Vw=class extends oae.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||{},o=new sae.PutItemCommand((0,ZP.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,ZP.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};jp.PutCommand=Vw});var Fp=f(kp=>{"use strict";Object.defineProperty(kp,"__esModule",{value:!0});kp.QueryCommand=void 0;var aae=_t(),cae=O(),eO=At(),Ww=class extends cae.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||{},o=new aae.QueryCommand((0,eO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,eO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};kp.QueryCommand=Ww});var Bp=f(Up=>{"use strict";Object.defineProperty(Up,"__esModule",{value:!0});Up.ScanCommand=void 0;var lae=_t(),uae=O(),tO=At(),Hw=class extends uae.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||{},o=new lae.ScanCommand((0,tO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,tO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Up.ScanCommand=Hw});var Jw=f(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.TransactGetCommand=void 0;var dae=_t(),fae=O(),nO=At(),Yw=class extends fae.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||{},o=new dae.TransactGetItemsCommand((0,nO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,nO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Gp.TransactGetCommand=Yw});var Xw=f($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.TransactWriteCommand=void 0;var mae=_t(),pae=O(),rO=At(),Qw=class extends pae.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||{},o=new mae.TransactWriteItemsCommand((0,rO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,rO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};$p.TransactWriteCommand=Qw});var e0=f(Vp=>{"use strict";Object.defineProperty(Vp,"__esModule",{value:!0});Vp.UpdateCommand=void 0;var hae=_t(),_ae=O(),iO=At(),Zw=class extends _ae.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||{},o=new hae.UpdateItemCommand((0,iO.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,n,r);return async()=>{let c=await a(o);return{...c,output:(0,iO.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Vp.UpdateCommand=Zw});var Ga=f(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.DynamoDBDocumentClient=void 0;var yae=O(),Ba=class extends yae.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 Ba(t,n)}destroy(){}};Kp.DynamoDBDocumentClient=Ba});var Hp=f(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.DynamoDBDocument=void 0;var gae=Pw(),vae=Lw(),Sae=Mw(),wae=jw(),bae=Fw(),Eae=Bw(),Aae=$w(),Tae=Kw(),Cae=Fp(),xae=Bp(),Iae=Jw(),Rae=Xw(),Dae=e0(),Nae=Ga(),$a=class extends Nae.DynamoDBDocumentClient{static from(t,n){return new $a(t,n)}batchExecuteStatement(t,n,r){let i=new gae.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 vae.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 Sae.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 wae.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 bae.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 Eae.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 Aae.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 Tae.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 Cae.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 xae.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 Iae.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 Rae.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 Dae.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)}};Wp.DynamoDBDocument=$a});var sO=f(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});var zt=K();zt.__exportStar(Pw(),yt);zt.__exportStar(Lw(),yt);zt.__exportStar(Mw(),yt);zt.__exportStar(jw(),yt);zt.__exportStar(Fw(),yt);zt.__exportStar(Bw(),yt);zt.__exportStar($w(),yt);zt.__exportStar(Kw(),yt);zt.__exportStar(Fp(),yt);zt.__exportStar(Bp(),yt);zt.__exportStar(Jw(),yt);zt.__exportStar(Xw(),yt);zt.__exportStar(e0(),yt)});var aO=f(oO=>{"use strict";Object.defineProperty(oO,"__esModule",{value:!0})});var cO=f(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.paginateQuery=void 0;var Pae=Fp(),Oae=Hp(),Lae=Ga(),qae=async(e,t,...n)=>await e.send(new Pae.QueryCommand(t),...n),Mae=async(e,t,...n)=>await e.query(t,...n);async function*zae(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 Oae.DynamoDBDocument)s=await Mae(e.client,t,...n);else if(e.client instanceof Lae.DynamoDBDocumentClient)s=await qae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}Yp.paginateQuery=zae});var lO=f(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.paginateScan=void 0;var jae=Bp(),kae=Hp(),Fae=Ga(),Uae=async(e,t,...n)=>await e.send(new jae.ScanCommand(t),...n),Bae=async(e,t,...n)=>await e.scan(t,...n);async function*Gae(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 kae.DynamoDBDocument)s=await Bae(e.client,t,...n);else if(e.client instanceof Fae.DynamoDBDocumentClient)s=await Uae(e.client,t,...n);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,r=s.LastEvaluatedKey,i=!!r}return void 0}Jp.paginateScan=Gae});var uO=f(Va=>{"use strict";Object.defineProperty(Va,"__esModule",{value:!0});var t0=K();t0.__exportStar(aO(),Va);t0.__exportStar(cO(),Va);t0.__exportStar(lO(),Va)});var dO=f(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Qp=K();Qp.__exportStar(Hp(),As);Qp.__exportStar(Ga(),As);Qp.__exportStar(sO(),As);Qp.__exportStar(uO(),As)});var fO=f(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.DBManager=void 0;var $ae=dO(),n0=class{get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}constructor(t){let{dynamoClient:n,tableName:r}=t;this._tableName=r,this._client=n,this._ddbDocClient=$ae.DynamoDBDocument.from(this._client)}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};Xp.DBManager=n0});var mO=f(Ka=>{"use strict";Object.defineProperty(Ka,"__esModule",{value:!0});Ka.TransformationType=void 0;var Vae;(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"})(Vae=Ka.TransformationType||(Ka.TransformationType={}))});var Wa=f(Ci=>{"use strict";var Kae=Ci&&Ci.__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]}),Wae=Ci&&Ci.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Kae(t,e,n)};Object.defineProperty(Ci,"__esModule",{value:!0});Wae(mO(),Ci)});var pO=f(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});Zp.MetadataStorage=void 0;var ir=Wa(),r0=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===ir.TransformationType.CLASS_TO_CLASS||r===ir.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?r===ir.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===ir.TransformationType.CLASS_TO_CLASS||n===ir.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===ir.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===ir.TransformationType.CLASS_TO_CLASS||n===ir.TransformationType.PLAIN_TO_CLASS:r.options.toPlainOnly===!0?n===ir.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(o=>o.propertyName!==void 0));let s=[];for(let o of this.getAncestors(n)){let a=t.get(o);if(a){let c=Array.from(a.values()).filter(u=>u.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 o=t.get(s);if(o){let a=o.get(r);if(a)return a}}}findMetadatas(t,n,r){let i=t.get(n),s;i&&(s=i.get(r));let o=[];for(let a of this.getAncestors(n)){let c=t.get(a);c&&c.has(r)&&o.push(...c.get(r))}return o.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<"u";r=Object.getPrototypeOf(r.prototype.constructor))n.push(r);this._ancestorsMap.set(t,n)}return this._ancestorsMap.get(t)}};Zp.MetadataStorage=r0});var Ts=f(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.defaultMetadataStorage=void 0;var Hae=pO();eh.defaultMetadataStorage=new Hae.MetadataStorage});var hO=f(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});th.getGlobal=void 0;function Yae(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}th.getGlobal=Yae});var _O=f(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.isPromise=void 0;function Jae(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}nh.isPromise=Jae});var gO=f(Ur=>{"use strict";var Qae=Ur&&Ur.__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]}),yO=Ur&&Ur.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&Qae(t,e,n)};Object.defineProperty(Ur,"__esModule",{value:!0});yO(hO(),Ur);yO(_O(),Ur)});var SO=f(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.TransformOperationExecutor=void 0;var Tt=Ts(),Fe=Wa(),vO=gO();function Xae(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var i0=class{constructor(t,n){this.transformationType=t,this.options=n,this.recursionStack=new Set}transform(t,n,r,i,s,o=0){if(Array.isArray(n)||n instanceof Set){let a=i&&this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?Xae(i):[];return n.forEach((c,u)=>{let d=t?t[u]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let h;if(typeof r!="function"&&r&&r.options&&r.options.discriminator&&r.options.discriminator.property&&r.options.discriminator.subTypes){if(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){h=r.options.discriminator.subTypes.find(_=>_.name===c[r.options.discriminator.property]);let y={newObject:a,object:c,property:void 0},g=r.typeFunction(y);h===void 0?h=g:h=h.value,r.options.keepDiscriminatorProperty||delete c[r.options.discriminator.property]}this.transformationType===Fe.TransformationType.CLASS_TO_CLASS&&(h=c.constructor),this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN&&(c[r.options.discriminator.property]=r.options.discriminator.subTypes.find(y=>y.value===c.constructor).name)}else h=r;let m=this.transform(d,c,h,void 0,c instanceof Map,o+1);a instanceof Set?a.add(m):a.push(m)}else this.transformationType===Fe.TransformationType.CLASS_TO_CLASS&&(a instanceof Set?a.add(c):a.push(c))}),a}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(!!(0,vO.getGlobal)().Buffer&&(r===Buffer||n instanceof Buffer)&&!s)return n==null?n:Buffer.from(n);if((0,vO.isPromise)(n)&&!s)return new Promise((a,c)=>{n.then(u=>a(this.transform(void 0,u,r,void 0,void 0,o+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&&(!Array.isArray(n)&&n.constructor===Array||(r=n.constructor)),!r&&t&&(r=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(n);let a=this.getKeys(r,n,s),c=t||{};!t&&(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:r?c=new r:c={});for(let u of a){if(u==="__proto__"||u==="constructor")continue;let d=u,h=u,m=u;if(!this.options.ignoreDecorators&&r){if(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){let T=Tt.defaultMetadataStorage.findExposeMetadataByCustomName(r,u);T&&(m=T.propertyName,h=T.propertyName)}else if(this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS){let T=Tt.defaultMetadataStorage.findExposeMetadata(r,u);T&&T.options&&T.options.name&&(h=T.options.name)}}let y;this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?y=n[d]:n instanceof Map?y=n.get(d):n[d]instanceof Function?y=n[d]():y=n[d];let g,_=y instanceof Map;if(r&&s)g=r;else if(r){let T=Tt.defaultMetadataStorage.findTypeMetadata(r,m);if(T){let G={newObject:c,object:n,property:m},he=T.typeFunction?T.typeFunction(G):T.reflectedType;T.options&&T.options.discriminator&&T.options.discriminator.property&&T.options.discriminator.subTypes?n[d]instanceof Array?g=T:(this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS&&(g=T.options.discriminator.subTypes.find(Jt=>{if(y&&y instanceof Object&&T.options.discriminator.property in y)return Jt.name===y[T.options.discriminator.property]}),g===void 0?g=he:g=g.value,T.options.keepDiscriminatorProperty||y&&y instanceof Object&&T.options.discriminator.property in y&&delete y[T.options.discriminator.property]),this.transformationType===Fe.TransformationType.CLASS_TO_CLASS&&(g=y.constructor),this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN&&y&&(y[T.options.discriminator.property]=T.options.discriminator.subTypes.find(Jt=>Jt.value===y.constructor).name)):g=he,_=_||T.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter(G=>G.target===r&&!!G.properties[m]).forEach(G=>g=G.properties[m]);else if(this.options.enableImplicitConversion&&this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS){let G=Reflect.getMetadata("design:type",r.prototype,m);G&&(g=G)}}let A=Array.isArray(n[d])?this.getReflectedType(r,m):void 0,R=t?t[d]:void 0;if(c.constructor.prototype){let T=Object.getOwnPropertyDescriptor(c.constructor.prototype,h);if((this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS||this.transformationType===Fe.TransformationType.CLASS_TO_CLASS)&&(T&&!T.set||c[h]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(y)){let T=this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS?h:u,G;this.transformationType===Fe.TransformationType.CLASS_TO_PLAIN?(G=n[T],G=this.applyCustomTransformations(G,r,T,n,this.transformationType),G=n[T]===G?y:G,G=this.transform(R,G,g,A,_,o+1)):y===void 0&&this.options.exposeDefaultValues?G=c[h]:(G=this.transform(R,y,g,A,_,o+1),G=this.applyCustomTransformations(G,r,T,n,this.transformationType)),(G!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(h,G):c[h]=G)}else if(this.transformationType===Fe.TransformationType.CLASS_TO_CLASS){let T=y;T=this.applyCustomTransformations(T,r,u,n,this.transformationType),(T!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(h,T):c[h]=T)}}return this.options.enableCircularCheck&&this.recursionStack.delete(n),c}else return n}}applyCustomTransformations(t,n,r,i,s){let o=Tt.defaultMetadataStorage.findTransformMetadatas(n,r,this.transformationType);return this.options.version!==void 0&&(o=o.filter(a=>a.options?this.checkVersion(a.options.since,a.options.until):!0)),this.options.groups&&this.options.groups.length?o=o.filter(a=>a.options?this.checkGroups(a.options.groups):!0):o=o.filter(a=>!a.options||!a.options.groups||!a.options.groups.length),o.forEach(a=>{t=a.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=Tt.defaultMetadataStorage.findTypeMetadata(t,n);return r?r.reflectedType:void 0}getKeys(t,n,r){let i=Tt.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&&this.options.excludeExtraneousValues&&t){let o=Tt.defaultMetadataStorage.getExposedProperties(t,this.transformationType),a=Tt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...o,...a]}if(!this.options.ignoreDecorators&&t){let o=Tt.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Fe.TransformationType.PLAIN_TO_CLASS&&(o=o.map(c=>{let u=Tt.defaultMetadataStorage.findExposeMetadata(t,c);return u&&u.options&&u.options.name?u.options.name:c})),this.options.excludeExtraneousValues?s=o:s=s.concat(o);let a=Tt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);a.length>0&&(s=s.filter(c=>!a.includes(c))),this.options.version!==void 0&&(s=s.filter(c=>{let u=Tt.defaultMetadataStorage.findExposeMetadata(t,c);return!u||!u.options?!0:this.checkVersion(u.options.since,u.options.until)})),this.options.groups&&this.options.groups.length?s=s.filter(c=>{let u=Tt.defaultMetadataStorage.findExposeMetadata(t,c);return!u||!u.options?!0:this.checkGroups(u.options.groups)}):s=s.filter(c=>{let u=Tt.defaultMetadataStorage.findExposeMetadata(t,c);return!u||!u.options||!u.options.groups||!u.options.groups.length})}return this.options.excludePrefixes&&this.options.excludePrefixes.length&&(s=s.filter(o=>this.options.excludePrefixes.every(a=>o.substr(0,a.length)!==a))),s=s.filter((o,a,c)=>c.indexOf(o)===a),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}};rh.TransformOperationExecutor=i0});var wO=f(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.defaultOptions=void 0;ih.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 Rs=f(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.ClassTransformer=void 0;var Cs=SO(),xs=Wa(),Is=wO(),s0=class{instanceToPlain(t,n){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_PLAIN,{...Is.defaultOptions,...n}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_PLAIN,{...Is.defaultOptions,...r}).transform(n,t,void 0,void 0,void 0,void 0)}plainToInstance(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.PLAIN_TO_CLASS,{...Is.defaultOptions,...r}).transform(void 0,n,t,void 0,void 0,void 0)}plainToClassFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.PLAIN_TO_CLASS,{...Is.defaultOptions,...r}).transform(t,n,void 0,void 0,void 0,void 0)}instanceToInstance(t,n){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_CLASS,{...Is.defaultOptions,...n}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,n,r){return new Cs.TransformOperationExecutor(xs.TransformationType.CLASS_TO_CLASS,{...Is.defaultOptions,...r}).transform(n,t,void 0,void 0,void 0,void 0)}serialize(t,n){return JSON.stringify(this.instanceToPlain(t,n))}deserialize(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}deserializeArray(t,n,r){let i=JSON.parse(n);return this.plainToInstance(t,i,r)}};sh.ClassTransformer=s0});var bO=f(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.Exclude=void 0;var Zae=Ts();function ece(e={}){return function(t,n){Zae.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}oh.Exclude=ece});var EO=f(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.Expose=void 0;var tce=Ts();function nce(e={}){return function(t,n){tce.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:n,options:e})}}ah.Expose=nce});var AO=f(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.TransformInstanceToInstance=void 0;var rce=Rs();function ice(e){return function(t,n,r){let i=new rce.ClassTransformer,s=r.value;r.value=function(...o){let a=s.apply(this,o);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(u=>i.instanceToInstance(u,e)):i.instanceToInstance(a,e)}}}ch.TransformInstanceToInstance=ice});var TO=f(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.TransformInstanceToPlain=void 0;var sce=Rs();function oce(e){return function(t,n,r){let i=new sce.ClassTransformer,s=r.value;r.value=function(...o){let a=s.apply(this,o);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(u=>i.instanceToPlain(u,e)):i.instanceToPlain(a,e)}}}lh.TransformInstanceToPlain=oce});var CO=f(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.TransformPlainToInstance=void 0;var ace=Rs();function cce(e,t){return function(n,r,i){let s=new ace.ClassTransformer,o=i.value;i.value=function(...a){let c=o.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(d=>s.plainToInstance(e,d,t)):s.plainToInstance(e,c,t)}}}uh.TransformPlainToInstance=cce});var xO=f(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.Transform=void 0;var lce=Ts();function uce(e,t={}){return function(n,r){lce.defaultMetadataStorage.addTransformMetadata({target:n.constructor,propertyName:r,transformFn:e,options:t})}}dh.Transform=uce});var IO=f(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.Type=void 0;var dce=Ts();function fce(e,t={}){return function(n,r){let i=Reflect.getMetadata("design:type",n,r);dce.defaultMetadataStorage.addTypeMetadata({target:n.constructor,propertyName:r,reflectedType:i,typeFunction:e,options:t})}}fh.Type=fce});var RO=f(jt=>{"use strict";var mce=jt&&jt.__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]}),xi=jt&&jt.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&mce(t,e,n)};Object.defineProperty(jt,"__esModule",{value:!0});xi(bO(),jt);xi(EO(),jt);xi(AO(),jt);xi(TO(),jt);xi(CO(),jt);xi(xO(),jt);xi(IO(),jt)});var NO=f(DO=>{"use strict";Object.defineProperty(DO,"__esModule",{value:!0})});var OO=f(PO=>{"use strict";Object.defineProperty(PO,"__esModule",{value:!0})});var qO=f(LO=>{"use strict";Object.defineProperty(LO,"__esModule",{value:!0})});var zO=f(MO=>{"use strict";Object.defineProperty(MO,"__esModule",{value:!0})});var kO=f(jO=>{"use strict";Object.defineProperty(jO,"__esModule",{value:!0})});var UO=f(FO=>{"use strict";Object.defineProperty(FO,"__esModule",{value:!0})});var GO=f(BO=>{"use strict";Object.defineProperty(BO,"__esModule",{value:!0})});var VO=f($O=>{"use strict";Object.defineProperty($O,"__esModule",{value:!0})});var WO=f(KO=>{"use strict";Object.defineProperty(KO,"__esModule",{value:!0})});var YO=f(HO=>{"use strict";Object.defineProperty(HO,"__esModule",{value:!0})});var QO=f(JO=>{"use strict";Object.defineProperty(JO,"__esModule",{value:!0})});var ZO=f(XO=>{"use strict";Object.defineProperty(XO,"__esModule",{value:!0})});var tL=f(eL=>{"use strict";Object.defineProperty(eL,"__esModule",{value:!0})});var rL=f(nL=>{"use strict";Object.defineProperty(nL,"__esModule",{value:!0})});var iL=f(Ke=>{"use strict";var pce=Ke&&Ke.__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]}),Ct=Ke&&Ke.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&pce(t,e,n)};Object.defineProperty(Ke,"__esModule",{value:!0});Ct(NO(),Ke);Ct(OO(),Ke);Ct(qO(),Ke);Ct(zO(),Ke);Ct(kO(),Ke);Ct(UO(),Ke);Ct(GO(),Ke);Ct(VO(),Ke);Ct(WO(),Ke);Ct(YO(),Ke);Ct(QO(),Ke);Ct(ZO(),Ke);Ct(tL(),Ke);Ct(rL(),Ke)});var mh=f(pe=>{"use strict";var hce=pe&&pe.__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]}),o0=pe&&pe.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&hce(t,e,n)};Object.defineProperty(pe,"__esModule",{value:!0});pe.deserializeArray=pe.deserialize=pe.serialize=pe.classToClassFromExist=pe.instanceToInstance=pe.plainToClassFromExist=pe.plainToInstance=pe.plainToClass=pe.classToPlainFromExist=pe.instanceToPlain=pe.classToPlain=pe.ClassTransformer=void 0;var _ce=Rs(),yce=Rs();Object.defineProperty(pe,"ClassTransformer",{enumerable:!0,get:function(){return yce.ClassTransformer}});o0(RO(),pe);o0(iL(),pe);o0(Wa(),pe);var on=new _ce.ClassTransformer;function gce(e,t){return on.instanceToPlain(e,t)}pe.classToPlain=gce;function vce(e,t){return on.instanceToPlain(e,t)}pe.instanceToPlain=vce;function Sce(e,t,n){return on.classToPlainFromExist(e,t,n)}pe.classToPlainFromExist=Sce;function wce(e,t,n){return on.plainToInstance(e,t,n)}pe.plainToClass=wce;function bce(e,t,n){return on.plainToInstance(e,t,n)}pe.plainToInstance=bce;function Ece(e,t,n){return on.plainToClassFromExist(e,t,n)}pe.plainToClassFromExist=Ece;function Ace(e,t){return on.instanceToInstance(e,t)}pe.instanceToInstance=Ace;function Tce(e,t,n){return on.classToClassFromExist(e,t,n)}pe.classToClassFromExist=Tce;function Cce(e,t){return on.serialize(e,t)}pe.serialize=Cce;function xce(e,t,n){return on.deserialize(e,t,n)}pe.deserialize=xce;function Ice(e,t,n){return on.deserializeArray(e,t,n)}pe.deserializeArray=Ice});var a0=f(ph=>{"use strict";Object.defineProperty(ph,"__esModule",{value:!0});ph.Rules=void 0;var Rce=mh(),Ha=class{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(0,Rce.plainToInstance)(Ha,i)}constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}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}};ph.Rules=Ha});var c0=f(hh=>{"use strict";Object.defineProperty(hh,"__esModule",{value:!0});hh.Version=void 0;var sL=mh(),Ds;(function(e){e[e.AppName=0]="AppName"})(Ds||(Ds={}));var Ns=class{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 o of i){let a=(0,sL.plainToInstance)(Ns,o);s.push(a)}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(0,sL.plainToInstance)(Ns,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 Ds.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}constructor(t){this._keyBy=Ds.AppName,this._status="pending",this._startupType="iframe",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",this._url="",this._lambdaARN="",Object.assign(this,t)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,StartupType:this.StartupType,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat,URL:this.URL,LambdaARN:this.LambdaARN}}async Save(t){this._keyBy=Ds.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case Ds.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 StartupType(){return this._startupType}set StartupType(t){this._startupType=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}get URL(){return this._url}set URL(t){this._url=t}get LambdaARN(){return this._lambdaARN}set LambdaARN(t){this._lambdaARN=t}};hh.Version=Ns});var cL=f(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});_h.Application=void 0;var oL=mh(),aL=a0(),Dce=c0(),sr;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(sr||(sr={}));var Ps=class{static async UpdateDefaultRule(t){let{dbManager:n,key:r}=t,i=await aL.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=Dce.Version.LoadVersions({dbManager:r,key:n}),s=aL.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(0,oL.plainToInstance)(Ps,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=(0,oL.plainToInstance)(Ps,i);r.push(s)}return r}constructor(t){Object.assign(this,t),this._keyBy=sr.AppName}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=sr.AppName;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=sr.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 sr.Applications:return"applications";case sr.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case sr.Applications:return`appName#${this.AppName}`.toLowerCase();case sr.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}};_h.Application=Ps});var l0=f(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.Version=kn.Rules=kn.Application=kn.DBManager=void 0;var Nce=fO();Object.defineProperty(kn,"DBManager",{enumerable:!0,get:function(){return Nce.DBManager}});var Pce=cL();Object.defineProperty(kn,"Application",{enumerable:!0,get:function(){return Pce.Application}});var Oce=a0();Object.defineProperty(kn,"Rules",{enumerable:!0,get:function(){return Oce.Rules}});var Lce=c0();Object.defineProperty(kn,"Version",{enumerable:!0,get:function(){return Lce.Version}})});var xt=f(u0=>{"use strict";u0.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})};u0.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 uL=f((gEe,lL)=>{var Br=require("constants"),qce=process.cwd,yh=null,Mce=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return yh||(yh=qce.call(process)),yh};try{process.cwd()}catch{}typeof process.chdir=="function"&&(d0=process.chdir,process.chdir=function(e){yh=null,d0.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,d0));var d0;lL.exports=zce;function zce(e){Br.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=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(d,h,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(d,h,m,y){y&&process.nextTick(y)},e.lchownSync=function(){}),Mce==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(d){function h(m,y,g){var _=Date.now(),A=0;d(m,y,function R(T){if(T&&(T.code==="EACCES"||T.code==="EPERM")&&Date.now()-_<6e4){setTimeout(function(){e.stat(y,function(G,he){G&&G.code==="ENOENT"?d(m,y,R):g(T)})},A),A<100&&(A+=10);return}g&&g(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(h,d),h}(e.rename)),e.read=typeof e.read!="function"?e.read:function(d){function h(m,y,g,_,A,R){var T;if(R&&typeof R=="function"){var G=0;T=function(he,Jt,pr){if(he&&he.code==="EAGAIN"&&G<10)return G++,d.call(e,m,y,g,_,A,T);R.apply(this,arguments)}}return d.call(e,m,y,g,_,A,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(h,d),h}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(d){return function(h,m,y,g,_){for(var A=0;;)try{return d.call(e,h,m,y,g,_)}catch(R){if(R.code==="EAGAIN"&&A<10){A++;continue}throw R}}}(e.readSync);function t(d){d.lchmod=function(h,m,y){d.open(h,Br.O_WRONLY|Br.O_SYMLINK,m,function(g,_){if(g){y&&y(g);return}d.fchmod(_,m,function(A){d.close(_,function(R){y&&y(A||R)})})})},d.lchmodSync=function(h,m){var y=d.openSync(h,Br.O_WRONLY|Br.O_SYMLINK,m),g=!0,_;try{_=d.fchmodSync(y,m),g=!1}finally{if(g)try{d.closeSync(y)}catch{}else d.closeSync(y)}return _}}function n(d){Br.hasOwnProperty("O_SYMLINK")&&d.futimes?(d.lutimes=function(h,m,y,g){d.open(h,Br.O_SYMLINK,function(_,A){if(_){g&&g(_);return}d.futimes(A,m,y,function(R){d.close(A,function(T){g&&g(R||T)})})})},d.lutimesSync=function(h,m,y){var g=d.openSync(h,Br.O_SYMLINK),_,A=!0;try{_=d.futimesSync(g,m,y),A=!1}finally{if(A)try{d.closeSync(g)}catch{}else d.closeSync(g)}return _}):d.futimes&&(d.lutimes=function(h,m,y,g){g&&process.nextTick(g)},d.lutimesSync=function(){})}function r(d){return d&&function(h,m,y){return d.call(e,h,m,function(g){u(g)&&(g=null),y&&y.apply(this,arguments)})}}function i(d){return d&&function(h,m){try{return d.call(e,h,m)}catch(y){if(!u(y))throw y}}}function s(d){return d&&function(h,m,y,g){return d.call(e,h,m,y,function(_){u(_)&&(_=null),g&&g.apply(this,arguments)})}}function o(d){return d&&function(h,m,y){try{return d.call(e,h,m,y)}catch(g){if(!u(g))throw g}}}function a(d){return d&&function(h,m,y){typeof m=="function"&&(y=m,m=null);function g(_,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),y&&y.apply(this,arguments)}return m?d.call(e,h,m,g):d.call(e,h,g)}}function c(d){return d&&function(h,m){var y=m?d.call(e,h,m):d.call(e,h);return y&&(y.uid<0&&(y.uid+=4294967296),y.gid<0&&(y.gid+=4294967296)),y}}function u(d){if(!d||d.code==="ENOSYS")return!0;var h=!process.getuid||process.getuid()!==0;return!!(h&&(d.code==="EINVAL"||d.code==="EPERM"))}}});var mL=f((vEe,fL)=>{var dL=require("stream").Stream;fL.exports=jce;function jce(e){return{ReadStream:t,WriteStream:n};function t(r,i){if(!(this instanceof t))return new t(r,i);dL.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 o=Object.keys(i),a=0,c=o.length;a<c;a++){var u=o[a];this[u]=i[u]}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(d,h){if(d){s.emit("error",d),s.readable=!1;return}s.fd=h,s.emit("open",h),s._read()})}function n(r,i){if(!(this instanceof n))return new n(r,i);dL.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),o=0,a=s.length;o<a;o++){var c=s[o];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 hL=f((SEe,pL)=>{"use strict";pL.exports=Fce;var kce=Object.getPrototypeOf||function(e){return e.__proto__};function Fce(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:kce(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))}),t}});var ft=f((wEe,p0)=>{var Le=require("fs"),Uce=uL(),Bce=mL(),Gce=hL(),gh=require("util"),ot,Sh;typeof Symbol=="function"&&typeof Symbol.for=="function"?(ot=Symbol.for("graceful-fs.queue"),Sh=Symbol.for("graceful-fs.previous")):(ot="___graceful-fs.queue",Sh="___graceful-fs.previous");function $ce(){}function gL(e,t){Object.defineProperty(e,ot,{get:function(){return t}})}var Ii=$ce;gh.debuglog?Ii=gh.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(Ii=function(){var e=gh.format.apply(gh,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
29
|
-
GFS4: `),console.error(e)});Le[ot]||(_L=global[ot]||[],gL(Le,_L),Le.close=function(e){function t(n,r){return e.call(Le,n,function(i){i||yL(),typeof r=="function"&&r.apply(this,arguments)})}return Object.defineProperty(t,Sh,{value:e}),t}(Le.close),Le.closeSync=function(e){function t(n){e.apply(Le,arguments),yL()}return Object.defineProperty(t,Sh,{value:e}),t}(Le.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Ii(Le[ot]),require("assert").equal(Le[ot].length,0)}));var _L;global[ot]||gL(global,Le[ot]);p0.exports=f0(Gce(Le));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Le.__patched&&(p0.exports=f0(Le),Le.__patched=!0);function f0(e){Uce(e),e.gracefulify=f0,e.createReadStream=Jt,e.createWriteStream=pr;var t=e.readFile;e.readFile=n;function n(z,fe,de){return typeof fe=="function"&&(de=fe,fe=null),Ee(z,fe,de);function Ee(qe,Re,Ae,Te){return t(qe,Re,function(ge){ge&&(ge.code==="EMFILE"||ge.code==="ENFILE")?Os([Ee,[qe,Re,Ae],ge,Te||Date.now(),Date.now()]):typeof Ae=="function"&&Ae.apply(this,arguments)})}}var r=e.writeFile;e.writeFile=i;function i(z,fe,de,Ee){return typeof de=="function"&&(Ee=de,de=null),qe(z,fe,de,Ee);function qe(Re,Ae,Te,ge,Me){return r(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([qe,[Re,Ae,Te,ge],Se,Me||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(z,fe,de,Ee){return typeof de=="function"&&(Ee=de,de=null),qe(z,fe,de,Ee);function qe(Re,Ae,Te,ge,Me){return s(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([qe,[Re,Ae,Te,ge],Se,Me||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(z,fe,de,Ee){return typeof de=="function"&&(Ee=de,de=0),qe(z,fe,de,Ee);function qe(Re,Ae,Te,ge,Me){return a(Re,Ae,Te,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([qe,[Re,Ae,Te,ge],Se,Me||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}var u=e.readdir;e.readdir=h;var d=/^v[0-5]\./;function h(z,fe,de){typeof fe=="function"&&(de=fe,fe=null);var Ee=d.test(process.version)?function(Ae,Te,ge,Me){return u(Ae,qe(Ae,Te,ge,Me))}:function(Ae,Te,ge,Me){return u(Ae,Te,qe(Ae,Te,ge,Me))};return Ee(z,fe,de);function qe(Re,Ae,Te,ge){return function(Me,Se){Me&&(Me.code==="EMFILE"||Me.code==="ENFILE")?Os([Ee,[Re,Ae,Te],Me,ge||Date.now(),Date.now()]):(Se&&Se.sort&&Se.sort(),typeof Te=="function"&&Te.call(this,Me,Se))}}}if(process.version.substr(0,4)==="v0.8"){var m=Bce(e);R=m.ReadStream,G=m.WriteStream}var y=e.ReadStream;y&&(R.prototype=Object.create(y.prototype),R.prototype.open=T);var g=e.WriteStream;g&&(G.prototype=Object.create(g.prototype),G.prototype.open=he),Object.defineProperty(e,"ReadStream",{get:function(){return R},set:function(z){R=z},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return G},set:function(z){G=z},enumerable:!0,configurable:!0});var _=R;Object.defineProperty(e,"FileReadStream",{get:function(){return _},set:function(z){_=z},enumerable:!0,configurable:!0});var A=G;Object.defineProperty(e,"FileWriteStream",{get:function(){return A},set:function(z){A=z},enumerable:!0,configurable:!0});function R(z,fe){return this instanceof R?(y.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function T(){var z=this;ln(z.path,z.flags,z.mode,function(fe,de){fe?(z.autoClose&&z.destroy(),z.emit("error",fe)):(z.fd=de,z.emit("open",de),z.read())})}function G(z,fe){return this instanceof G?(g.apply(this,arguments),this):G.apply(Object.create(G.prototype),arguments)}function he(){var z=this;ln(z.path,z.flags,z.mode,function(fe,de){fe?(z.destroy(),z.emit("error",fe)):(z.fd=de,z.emit("open",de))})}function Jt(z,fe){return new e.ReadStream(z,fe)}function pr(z,fe){return new e.WriteStream(z,fe)}var hr=e.open;e.open=ln;function ln(z,fe,de,Ee){return typeof de=="function"&&(Ee=de,de=null),qe(z,fe,de,Ee);function qe(Re,Ae,Te,ge,Me){return hr(Re,Ae,Te,function(Se,Gn){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?Os([qe,[Re,Ae,Te,ge],Se,Me||Date.now(),Date.now()]):typeof ge=="function"&&ge.apply(this,arguments)})}}return e}function Os(e){Ii("ENQUEUE",e[0].name,e[1]),Le[ot].push(e),m0()}var vh;function yL(){for(var e=Date.now(),t=0;t<Le[ot].length;++t)Le[ot][t].length>2&&(Le[ot][t][3]=e,Le[ot][t][4]=e);m0()}function m0(){if(clearTimeout(vh),vh=void 0,Le[ot].length!==0){var e=Le[ot].shift(),t=e[0],n=e[1],r=e[2],i=e[3],s=e[4];if(i===void 0)Ii("RETRY",t.name,n),t.apply(null,n);else if(Date.now()-i>=6e4){Ii("TIMEOUT",t.name,n);var o=n.pop();typeof o=="function"&&o.call(null,r)}else{var a=Date.now()-s,c=Math.max(s-i,1),u=Math.min(c*1.2,100);a>=u?(Ii("RETRY",t.name,n),t.apply(null,n.concat([i]))):Le[ot].push(e)}vh===void 0&&(vh=setTimeout(m0,0))}}});var Ya=f(Gr=>{"use strict";var vL=xt().fromCallback,gt=ft(),Vce=["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 gt[e]=="function");Object.keys(gt).forEach(e=>{e!=="promises"&&(Gr[e]=gt[e])});Vce.forEach(e=>{Gr[e]=vL(gt[e])});Gr.exists=function(e,t){return typeof t=="function"?gt.exists(e,t):new Promise(n=>gt.exists(e,n))};Gr.read=function(e,t,n,r,i,s){return typeof s=="function"?gt.read(e,t,n,r,i,s):new Promise((o,a)=>{gt.read(e,t,n,r,i,(c,u,d)=>{if(c)return a(c);o({bytesRead:u,buffer:d})})})};Gr.write=function(e,t,...n){return typeof n[n.length-1]=="function"?gt.write(e,t,...n):new Promise((r,i)=>{gt.write(e,t,...n,(s,o,a)=>{if(s)return i(s);r({bytesWritten:o,buffer:a})})})};typeof gt.writev=="function"&&(Gr.writev=function(e,t,...n){return typeof n[n.length-1]=="function"?gt.writev(e,t,...n):new Promise((r,i)=>{gt.writev(e,t,...n,(s,o,a)=>{if(s)return i(s);r({bytesWritten:o,buffers:a})})})});typeof gt.realpath.native=="function"&&(Gr.realpath.native=vL(gt.realpath.native))});var h0=f((EEe,SL)=>{SL.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 TL=f((AEe,_0)=>{"use strict";var Ls=Ya(),or=require("path"),Kce=h0(),wL=Kce("10.12.0"),bL=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(or.parse(e).root,""))){let n=new Error(`Path contains invalid characters: ${e}`);throw n.code="EINVAL",n}},EL=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},AL=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};_0.exports.makeDir=async(e,t)=>{if(bL(e),t=EL(t),wL){let r=or.resolve(e);return Ls.mkdir(r,{mode:t.mode,recursive:!0})}let n=async r=>{try{await Ls.mkdir(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(or.dirname(r)===r)throw AL(r);if(i.message.includes("null bytes"))throw i;return await n(or.dirname(r)),n(r)}try{if(!(await Ls.stat(r)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(or.resolve(e))};_0.exports.makeDirSync=(e,t)=>{if(bL(e),t=EL(t),wL){let r=or.resolve(e);return Ls.mkdirSync(r,{mode:t.mode,recursive:!0})}let n=r=>{try{Ls.mkdirSync(r,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(or.dirname(r)===r)throw AL(r);if(i.message.includes("null bytes"))throw i;return n(or.dirname(r)),n(r)}try{if(!Ls.statSync(r).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return n(or.resolve(e))}});var an=f((TEe,CL)=>{"use strict";var Wce=xt().fromPromise,{makeDir:Hce,makeDirSync:y0}=TL(),g0=Wce(Hce);CL.exports={mkdirs:g0,mkdirsSync:y0,mkdirp:g0,mkdirpSync:y0,ensureDir:g0,ensureDirSync:y0}});var v0=f((CEe,xL)=>{"use strict";var qs=ft();function Yce(e,t,n,r){qs.open(e,"r+",(i,s)=>{if(i)return r(i);qs.futimes(s,t,n,o=>{qs.close(s,a=>{r&&r(o||a)})})})}function Jce(e,t,n){let r=qs.openSync(e,"r+");return qs.futimesSync(r,t,n),qs.closeSync(r)}xL.exports={utimesMillis:Yce,utimesMillisSync:Jce}});var Ja=f((xEe,NL)=>{"use strict";var Ms=Ya(),It=require("path"),Qce=require("util"),Xce=h0(),wh=Xce("10.5.0"),IL=e=>wh?Ms.stat(e,{bigint:!0}):Ms.stat(e),S0=e=>wh?Ms.statSync(e,{bigint:!0}):Ms.statSync(e);function Zce(e,t){return Promise.all([IL(e),IL(t).catch(n=>{if(n.code==="ENOENT")return null;throw n})]).then(([n,r])=>({srcStat:n,destStat:r}))}function ele(e,t){let n,r=S0(e);try{n=S0(t)}catch(i){if(i.code==="ENOENT")return{srcStat:r,destStat:null};throw i}return{srcStat:r,destStat:n}}function tle(e,t,n,r){Qce.callbackify(Zce)(e,t,(i,s)=>{if(i)return r(i);let{srcStat:o,destStat:a}=s;return a&&bh(o,a)?r(new Error("Source and destination must not be the same.")):o.isDirectory()&&w0(e,t)?r(new Error(Eh(e,t,n))):r(null,{srcStat:o,destStat:a})})}function nle(e,t,n){let{srcStat:r,destStat:i}=ele(e,t);if(i&&bh(r,i))throw new Error("Source and destination must not be the same.");if(r.isDirectory()&&w0(e,t))throw new Error(Eh(e,t,n));return{srcStat:r,destStat:i}}function RL(e,t,n,r,i){let s=It.resolve(It.dirname(e)),o=It.resolve(It.dirname(n));if(o===s||o===It.parse(o).root)return i();let a=(c,u)=>c?c.code==="ENOENT"?i():i(c):bh(t,u)?i(new Error(Eh(e,n,r))):RL(e,t,o,r,i);wh?Ms.stat(o,{bigint:!0},a):Ms.stat(o,a)}function DL(e,t,n,r){let i=It.resolve(It.dirname(e)),s=It.resolve(It.dirname(n));if(s===i||s===It.parse(s).root)return;let o;try{o=S0(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(bh(t,o))throw new Error(Eh(e,n,r));return DL(e,t,s,r)}function bh(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(wh||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 w0(e,t){let n=It.resolve(e).split(It.sep).filter(i=>i),r=It.resolve(t).split(It.sep).filter(i=>i);return n.reduce((i,s,o)=>i&&r[o]===s,!0)}function Eh(e,t,n){return`Cannot ${n} '${e}' to a subdirectory of itself, '${t}'.`}NL.exports={checkPaths:tle,checkPathsSync:nle,checkParentPaths:RL,checkParentPathsSync:DL,isSrcSubdir:w0}});var ML=f((IEe,qL)=>{"use strict";var mt=ft(),Qa=require("path"),rle=an().mkdirsSync,ile=v0().utimesMillisSync,Xa=Ja();function sle(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;
|
|
26
|
+
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine=""),this.options.supressEmptyNode?(this.buildTextNode=Ene,this.buildObjNode=wne):(this.buildTextNode=UD,this.buildObjNode=FD),this.buildTextValNode=UD,this.buildObjectNode=FD}lE.prototype.parse=function(e){return this.j2x(e,0).val};lE.prototype.j2x=function(e,t){let r="",n="",i=Object.keys(e),s=i.length;for(let o=0;o<s;o++){let a=i[o];if(!(typeof e[a]>"u"))if(e[a]===null)n+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(e[a]instanceof Date)n+=this.buildTextNode(e[a],a,"",t);else if(typeof e[a]!="object"){let c=this.isAttribute(a);c?r+=" "+c+'="'+this.options.attrValueProcessor(""+e[a])+'"':this.isCDATA(a)?e[this.options.textNodeName]?n+=this.replaceCDATAstr(e[this.options.textNodeName],e[a]):n+=this.replaceCDATAstr("",e[a]):a===this.options.textNodeName?e[this.options.cdataTagName]||(n+=this.options.tagValueProcessor(""+e[a])):n+=this.buildTextNode(e[a],a,"",t)}else if(Array.isArray(e[a]))if(this.isCDATA(a))n+=this.indentate(t),e[this.options.textNodeName]?n+=this.replaceCDATAarr(e[this.options.textNodeName],e[a]):n+=this.replaceCDATAarr("",e[a]);else{let c=e[a].length;for(let d=0;d<c;d++){let f=e[a][d];if(!(typeof f>"u"))if(f===null)n+=this.indentate(t)+"<"+a+"/"+this.tagEndChar;else if(typeof f=="object"){let _=this.j2x(f,t+1);n+=this.buildObjNode(_.val,a,_.attrStr,t)}else n+=this.buildTextNode(f,a,"",t)}}else if(this.options.attrNodeName&&a===this.options.attrNodeName){let c=Object.keys(e[a]),d=c.length;for(let f=0;f<d;f++)r+=" "+c[f]+'="'+this.options.attrValueProcessor(""+e[a][c[f]])+'"'}else{let c=this.j2x(e[a],t+1);n+=this.buildObjNode(c.val,a,c.attrStr,t)}}return{attrStr:r,val:n}};function vne(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 Sne(e,t){if(e=this.options.tagValueProcessor(""+e),this.options.cdataPositionChar===""||e==="")return e+"<![CDATA["+t.join("]]><![CDATA[")+"]]"+this.tagEndChar;for(let r in t)e=e.replace(this.options.cdataPositionChar,"<![CDATA["+t[r]+"]]>");return e+this.newLine}function FD(e,t,r,n){return r&&!e.includes("<")?this.indentate(n)+"<"+t+r+">"+e+"</"+t+this.tagEndChar:this.indentate(n)+"<"+t+r+this.tagEndChar+e+this.indentate(n)+"</"+t+this.tagEndChar}function wne(e,t,r,n){return e!==""?this.buildObjectNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function UD(e,t,r,n){return this.indentate(n)+"<"+t+r+">"+this.options.tagValueProcessor(e)+"</"+t+this.tagEndChar}function Ene(e,t,r,n){return e!==""?this.buildTextValNode(e,t,r,n):this.indentate(n)+"<"+t+r+"/"+this.tagEndChar}function bne(e){return this.options.indentBy.repeat(e)}function Ane(e){return e.startsWith(this.options.attributeNamePrefix)?e.substr(this.attrPrefixLen):!1}function Tne(e){return e===this.options.cdataTagName}BD.exports=lE});var WD=u(fr=>{"use strict";var VD=wD(),KD=oc(),$D=oc(),Cne=Or().buildOptions,HD=DD();fr.parse=function(e,t,r){if(r){r===!0&&(r={});let i=HD.validate(e,r);if(i!==!0)throw Error(i.err.msg)}t=Cne(t,$D.defaultOptions,$D.props);let n=KD.getTraversalObj(e,t);return VD.convertToJson(n,t)};fr.convertTonimn=MD().convert2nimn;fr.getTraversalObj=KD.getTraversalObj;fr.convertToJson=VD.convertToJson;fr.convertToJsonString=kD().convertToJsonString;fr.validate=HD.validate;fr.j2xParser=GD();fr.parseToNimn=function(e,t,r){return fr.convertTonimn(fr.getTraversalObj(e,r),t,r)}});var wn=u(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 xne=Ct(),V=N(),Ine=yD(),Rne=WD(),ri=lr(),ni=dm(),Nne=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si({...rie(e,t),Action:"AssumeRole",Version:"2011-06-15"}),ii(t,r,"/",void 0,n)};pe.serializeAws_queryAssumeRoleCommand=Nne;var Pne=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si({...nie(e,t),Action:"AssumeRoleWithSAML",Version:"2011-06-15"}),ii(t,r,"/",void 0,n)};pe.serializeAws_queryAssumeRoleWithSAMLCommand=Pne;var Dne=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si({...iie(e,t),Action:"AssumeRoleWithWebIdentity",Version:"2011-06-15"}),ii(t,r,"/",void 0,n)};pe.serializeAws_queryAssumeRoleWithWebIdentityCommand=Dne;var One=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si({...sie(e,t),Action:"DecodeAuthorizationMessage",Version:"2011-06-15"}),ii(t,r,"/",void 0,n)};pe.serializeAws_queryDecodeAuthorizationMessageCommand=One;var Lne=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si({...oie(e,t),Action:"GetAccessKeyInfo",Version:"2011-06-15"}),ii(t,r,"/",void 0,n)};pe.serializeAws_queryGetAccessKeyInfoCommand=Lne;var qne=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si({...aie(e,t),Action:"GetCallerIdentity",Version:"2011-06-15"}),ii(t,r,"/",void 0,n)};pe.serializeAws_queryGetCallerIdentityCommand=qne;var Mne=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si({...cie(e,t),Action:"GetFederationToken",Version:"2011-06-15"}),ii(t,r,"/",void 0,n)};pe.serializeAws_queryGetFederationTokenCommand=Mne;var zne=async(e,t)=>{let r={"content-type":"application/x-www-form-urlencoded"},n;return n=si({...lie(e,t),Action:"GetSessionToken",Version:"2011-06-15"}),ii(t,r,"/",void 0,n)};pe.serializeAws_queryGetSessionTokenCommand=zne;var jne=async(e,t)=>{if(e.statusCode>=300)return kne(e,t);let r=await pt(e.body,t),n={};n=mie(r.AssumeRoleResult,t);let i={$metadata:qe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleCommand=jne;var kne=async(e,t)=>{let r={...e,body:await pt(e.body,t)},n,i="UnknownError";switch(i=oi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await dE(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Sm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await wm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await cc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:qe(e)}),(0,V.decorateServiceException)(n,s.Error)}},Fne=async(e,t)=>{if(e.statusCode>=300)return Une(e,t);let r=await pt(e.body,t),n={};n=pie(r.AssumeRoleWithSAMLResult,t);let i={$metadata:qe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleWithSAMLCommand=Fne;var Une=async(e,t)=>{let r={...e,body:await pt(e.body,t)},n,i="UnknownError";switch(i=oi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await dE(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await JD(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await YD(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Sm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await wm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await cc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:qe(e)}),(0,V.decorateServiceException)(n,s.Error)}},Bne=async(e,t)=>{if(e.statusCode>=300)return Gne(e,t);let r=await pt(e.body,t),n={};n=_ie(r.AssumeRoleWithWebIdentityResult,t);let i={$metadata:qe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryAssumeRoleWithWebIdentityCommand=Bne;var Gne=async(e,t)=>{let r={...e,body:await pt(e.body,t)},n,i="UnknownError";switch(i=oi(e,r.body),i){case"ExpiredTokenException":case"com.amazonaws.sts#ExpiredTokenException":throw await dE(r,t);case"IDPCommunicationErrorException":case"com.amazonaws.sts#IDPCommunicationErrorException":throw await eie(r,t);case"IDPRejectedClaimException":case"com.amazonaws.sts#IDPRejectedClaimException":throw await JD(r,t);case"InvalidIdentityTokenException":case"com.amazonaws.sts#InvalidIdentityTokenException":throw await YD(r,t);case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Sm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await wm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await cc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:qe(e)}),(0,V.decorateServiceException)(n,s.Error)}},$ne=async(e,t)=>{if(e.statusCode>=300)return Vne(e,t);let r=await pt(e.body,t),n={};n=hie(r.DecodeAuthorizationMessageResult,t);let i={$metadata:qe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryDecodeAuthorizationMessageCommand=$ne;var Vne=async(e,t)=>{let r={...e,body:await pt(e.body,t)},n,i="UnknownError";switch(i=oi(e,r.body),i){case"InvalidAuthorizationMessageException":case"com.amazonaws.sts#InvalidAuthorizationMessageException":throw await tie(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:qe(e)}),(0,V.decorateServiceException)(n,s.Error)}},Kne=async(e,t)=>{if(e.statusCode>=300)return Hne(e,t);let r=await pt(e.body,t),n={};n=vie(r.GetAccessKeyInfoResult,t);let i={$metadata:qe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryGetAccessKeyInfoCommand=Kne;var Hne=async(e,t)=>{let r={...e,body:await pt(e.body,t)},n,i="UnknownError";switch(i=oi(e,r.body),i){default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:qe(e)}),(0,V.decorateServiceException)(n,s.Error)}},Wne=async(e,t)=>{if(e.statusCode>=300)return Jne(e,t);let r=await pt(e.body,t),n={};n=Sie(r.GetCallerIdentityResult,t);let i={$metadata:qe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryGetCallerIdentityCommand=Wne;var Jne=async(e,t)=>{let r={...e,body:await pt(e.body,t)},n,i="UnknownError";switch(i=oi(e,r.body),i){default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:qe(e)}),(0,V.decorateServiceException)(n,s.Error)}},Yne=async(e,t)=>{if(e.statusCode>=300)return Qne(e,t);let r=await pt(e.body,t),n={};n=wie(r.GetFederationTokenResult,t);let i={$metadata:qe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryGetFederationTokenCommand=Yne;var Qne=async(e,t)=>{let r={...e,body:await pt(e.body,t)},n,i="UnknownError";switch(i=oi(e,r.body),i){case"MalformedPolicyDocumentException":case"com.amazonaws.sts#MalformedPolicyDocumentException":throw await Sm(r,t);case"PackedPolicyTooLargeException":case"com.amazonaws.sts#PackedPolicyTooLargeException":throw await wm(r,t);case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await cc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:qe(e)}),(0,V.decorateServiceException)(n,s.Error)}},Xne=async(e,t)=>{if(e.statusCode>=300)return Zne(e,t);let r=await pt(e.body,t),n={};n=Eie(r.GetSessionTokenResult,t);let i={$metadata:qe(e),...n};return Promise.resolve(i)};pe.deserializeAws_queryGetSessionTokenCommand=Xne;var Zne=async(e,t)=>{let r={...e,body:await pt(e.body,t)},n,i="UnknownError";switch(i=oi(e,r.body),i){case"RegionDisabledException":case"com.amazonaws.sts#RegionDisabledException":throw await cc(r,t);default:let s=r.body;throw n=new ni.STSServiceException({name:s.Error.code||s.Error.Code||i,$fault:"client",$metadata:qe(e)}),(0,V.decorateServiceException)(n,s.Error)}},dE=async(e,t)=>{let r=e.body,n=yie(r.Error,t),i=new ri.ExpiredTokenException({$metadata:qe(e),...n});return(0,V.decorateServiceException)(i,r)},eie=async(e,t)=>{let r=e.body,n=bie(r.Error,t),i=new ri.IDPCommunicationErrorException({$metadata:qe(e),...n});return(0,V.decorateServiceException)(i,r)},JD=async(e,t)=>{let r=e.body,n=Aie(r.Error,t),i=new ri.IDPRejectedClaimException({$metadata:qe(e),...n});return(0,V.decorateServiceException)(i,r)},tie=async(e,t)=>{let r=e.body,n=Tie(r.Error,t),i=new ri.InvalidAuthorizationMessageException({$metadata:qe(e),...n});return(0,V.decorateServiceException)(i,r)},YD=async(e,t)=>{let r=e.body,n=Cie(r.Error,t),i=new ri.InvalidIdentityTokenException({$metadata:qe(e),...n});return(0,V.decorateServiceException)(i,r)},Sm=async(e,t)=>{let r=e.body,n=xie(r.Error,t),i=new ri.MalformedPolicyDocumentException({$metadata:qe(e),...n});return(0,V.decorateServiceException)(i,r)},wm=async(e,t)=>{let r=e.body,n=Iie(r.Error,t),i=new ri.PackedPolicyTooLargeException({$metadata:qe(e),...n});return(0,V.decorateServiceException)(i,r)},cc=async(e,t)=>{let r=e.body,n=Rie(r.Error,t),i=new ri.RegionDisabledException({$metadata:qe(e),...n});return(0,V.decorateServiceException)(i,r)},rie=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(r.RoleSessionName=e.RoleSessionName),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=Em(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}if(e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=QD(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let o=`Tags.${i}`;r[o]=s})}if(e.TransitiveTagKeys!==void 0&&e.TransitiveTagKeys!==null){let n=fie(e.TransitiveTagKeys,t);Object.entries(n).forEach(([i,s])=>{let o=`TransitiveTagKeys.${i}`;r[o]=s})}return e.ExternalId!==void 0&&e.ExternalId!==null&&(r.ExternalId=e.ExternalId),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(r.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(r.TokenCode=e.TokenCode),e.SourceIdentity!==void 0&&e.SourceIdentity!==null&&(r.SourceIdentity=e.SourceIdentity),r},nie=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.PrincipalArn!==void 0&&e.PrincipalArn!==null&&(r.PrincipalArn=e.PrincipalArn),e.SAMLAssertion!==void 0&&e.SAMLAssertion!==null&&(r.SAMLAssertion=e.SAMLAssertion),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=Em(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}return e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),r},iie=(e,t)=>{let r={};if(e.RoleArn!==void 0&&e.RoleArn!==null&&(r.RoleArn=e.RoleArn),e.RoleSessionName!==void 0&&e.RoleSessionName!==null&&(r.RoleSessionName=e.RoleSessionName),e.WebIdentityToken!==void 0&&e.WebIdentityToken!==null&&(r.WebIdentityToken=e.WebIdentityToken),e.ProviderId!==void 0&&e.ProviderId!==null&&(r.ProviderId=e.ProviderId),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=Em(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}return e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),r},sie=(e,t)=>{let r={};return e.EncodedMessage!==void 0&&e.EncodedMessage!==null&&(r.EncodedMessage=e.EncodedMessage),r},oie=(e,t)=>{let r={};return e.AccessKeyId!==void 0&&e.AccessKeyId!==null&&(r.AccessKeyId=e.AccessKeyId),r},aie=(e,t)=>({}),cie=(e,t)=>{let r={};if(e.Name!==void 0&&e.Name!==null&&(r.Name=e.Name),e.Policy!==void 0&&e.Policy!==null&&(r.Policy=e.Policy),e.PolicyArns!==void 0&&e.PolicyArns!==null){let n=Em(e.PolicyArns,t);Object.entries(n).forEach(([i,s])=>{let o=`PolicyArns.${i}`;r[o]=s})}if(e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.Tags!==void 0&&e.Tags!==null){let n=QD(e.Tags,t);Object.entries(n).forEach(([i,s])=>{let o=`Tags.${i}`;r[o]=s})}return r},lie=(e,t)=>{let r={};return e.DurationSeconds!==void 0&&e.DurationSeconds!==null&&(r.DurationSeconds=e.DurationSeconds),e.SerialNumber!==void 0&&e.SerialNumber!==null&&(r.SerialNumber=e.SerialNumber),e.TokenCode!==void 0&&e.TokenCode!==null&&(r.TokenCode=e.TokenCode),r},Em=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=die(i,t);Object.entries(s).forEach(([o,a])=>{r[`member.${n}.${o}`]=a}),n++}return r},die=(e,t)=>{let r={};return e.arn!==void 0&&e.arn!==null&&(r.arn=e.arn),r},uie=(e,t)=>{let r={};return e.Key!==void 0&&e.Key!==null&&(r.Key=e.Key),e.Value!==void 0&&e.Value!==null&&(r.Value=e.Value),r},fie=(e,t)=>{let r={},n=1;for(let i of e)i!==null&&(r[`member.${n}`]=i,n++);return r},QD=(e,t)=>{let r={},n=1;for(let i of e){if(i===null)continue;let s=uie(i,t);Object.entries(s).forEach(([o,a])=>{r[`member.${n}.${o}`]=a}),n++}return r},uE=(e,t)=>{let r={AssumedRoleId:void 0,Arn:void 0};return e.AssumedRoleId!==void 0&&(r.AssumedRoleId=(0,V.expectString)(e.AssumedRoleId)),e.Arn!==void 0&&(r.Arn=(0,V.expectString)(e.Arn)),r},mie=(e,t)=>{let r={Credentials:void 0,AssumedRoleUser:void 0,PackedPolicySize:void 0,SourceIdentity:void 0};return e.Credentials!==void 0&&(r.Credentials=lc(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=uE(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,V.strictParseInt32)(e.PackedPolicySize)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,V.expectString)(e.SourceIdentity)),r},pie=(e,t)=>{let r={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&&(r.Credentials=lc(e.Credentials,t)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=uE(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,V.strictParseInt32)(e.PackedPolicySize)),e.Subject!==void 0&&(r.Subject=(0,V.expectString)(e.Subject)),e.SubjectType!==void 0&&(r.SubjectType=(0,V.expectString)(e.SubjectType)),e.Issuer!==void 0&&(r.Issuer=(0,V.expectString)(e.Issuer)),e.Audience!==void 0&&(r.Audience=(0,V.expectString)(e.Audience)),e.NameQualifier!==void 0&&(r.NameQualifier=(0,V.expectString)(e.NameQualifier)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,V.expectString)(e.SourceIdentity)),r},_ie=(e,t)=>{let r={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&&(r.Credentials=lc(e.Credentials,t)),e.SubjectFromWebIdentityToken!==void 0&&(r.SubjectFromWebIdentityToken=(0,V.expectString)(e.SubjectFromWebIdentityToken)),e.AssumedRoleUser!==void 0&&(r.AssumedRoleUser=uE(e.AssumedRoleUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,V.strictParseInt32)(e.PackedPolicySize)),e.Provider!==void 0&&(r.Provider=(0,V.expectString)(e.Provider)),e.Audience!==void 0&&(r.Audience=(0,V.expectString)(e.Audience)),e.SourceIdentity!==void 0&&(r.SourceIdentity=(0,V.expectString)(e.SourceIdentity)),r},lc=(e,t)=>{let r={AccessKeyId:void 0,SecretAccessKey:void 0,SessionToken:void 0,Expiration:void 0};return e.AccessKeyId!==void 0&&(r.AccessKeyId=(0,V.expectString)(e.AccessKeyId)),e.SecretAccessKey!==void 0&&(r.SecretAccessKey=(0,V.expectString)(e.SecretAccessKey)),e.SessionToken!==void 0&&(r.SessionToken=(0,V.expectString)(e.SessionToken)),e.Expiration!==void 0&&(r.Expiration=(0,V.expectNonNull)((0,V.parseRfc3339DateTime)(e.Expiration))),r},hie=(e,t)=>{let r={DecodedMessage:void 0};return e.DecodedMessage!==void 0&&(r.DecodedMessage=(0,V.expectString)(e.DecodedMessage)),r},yie=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,V.expectString)(e.message)),r},gie=(e,t)=>{let r={FederatedUserId:void 0,Arn:void 0};return e.FederatedUserId!==void 0&&(r.FederatedUserId=(0,V.expectString)(e.FederatedUserId)),e.Arn!==void 0&&(r.Arn=(0,V.expectString)(e.Arn)),r},vie=(e,t)=>{let r={Account:void 0};return e.Account!==void 0&&(r.Account=(0,V.expectString)(e.Account)),r},Sie=(e,t)=>{let r={UserId:void 0,Account:void 0,Arn:void 0};return e.UserId!==void 0&&(r.UserId=(0,V.expectString)(e.UserId)),e.Account!==void 0&&(r.Account=(0,V.expectString)(e.Account)),e.Arn!==void 0&&(r.Arn=(0,V.expectString)(e.Arn)),r},wie=(e,t)=>{let r={Credentials:void 0,FederatedUser:void 0,PackedPolicySize:void 0};return e.Credentials!==void 0&&(r.Credentials=lc(e.Credentials,t)),e.FederatedUser!==void 0&&(r.FederatedUser=gie(e.FederatedUser,t)),e.PackedPolicySize!==void 0&&(r.PackedPolicySize=(0,V.strictParseInt32)(e.PackedPolicySize)),r},Eie=(e,t)=>{let r={Credentials:void 0};return e.Credentials!==void 0&&(r.Credentials=lc(e.Credentials,t)),r},bie=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,V.expectString)(e.message)),r},Aie=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,V.expectString)(e.message)),r},Tie=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,V.expectString)(e.message)),r},Cie=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,V.expectString)(e.message)),r},xie=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,V.expectString)(e.message)),r},Iie=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,V.expectString)(e.message)),r},Rie=(e,t)=>{let r={message:void 0};return e.message!==void 0&&(r.message=(0,V.expectString)(e.message)),r},qe=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"]}},Nie=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),Pie=(e,t)=>Nie(e,t).then(r=>t.utf8Encoder(r)),ii=async(e,t,r,n,i)=>{let{hostname:s,protocol:o="https",port:a,path:c}=await e.endpoint(),d={protocol:o,hostname:s,port:a,method:"POST",path:c.endsWith("/")?c.slice(0,-1)+r:c+r,headers:t};return n!==void 0&&(d.hostname=n),i!==void 0&&(d.body=i),new xne.HttpRequest(d)},pt=(e,t)=>Pie(e,t).then(r=>{if(r.length){let n=(0,Rne.parse)(r,{attributeNamePrefix:"",ignoreAttributes:!1,parseNodeValue:!1,trimValues:!1,tagValueProcessor:a=>a.trim()===""&&a.includes(`
|
|
27
|
+
`)?"":(0,Ine.decodeHTML)(a)}),i="#text",s=Object.keys(n)[0],o=n[s];return o[i]&&(o[s]=o[i],delete o[i]),(0,V.getValueFromTextNode)(o)}return{}}),si=e=>Object.entries(e).map(([t,r])=>(0,V.extendedEncodeURIComponent)(t)+"="+(0,V.extendedEncodeURIComponent)(r)).join("&"),oi=(e,t)=>t.Error.Code!==void 0?t.Error.Code:e.statusCode==404?"NotFound":""});var Am=u(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});bm.AssumeRoleCommand=void 0;var Die=U(),Oie=Sn(),Lie=N(),XD=lr(),ZD=wn(),fE=class extends Lie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Die.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Oie.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleCommand",inputFilterSensitiveLog:XD.AssumeRoleRequest.filterSensitiveLog,outputFilterSensitiveLog:XD.AssumeRoleResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,ZD.serializeAws_queryAssumeRoleCommand)(t,r)}deserialize(t,r){return(0,ZD.deserializeAws_queryAssumeRoleCommand)(t,r)}};bm.AssumeRoleCommand=fE});var pE=u(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});Tm.AssumeRoleWithSAMLCommand=void 0;var qie=U(),Mie=N(),eO=lr(),tO=wn(),mE=class extends Mie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,qie.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithSAMLCommand",inputFilterSensitiveLog:eO.AssumeRoleWithSAMLRequest.filterSensitiveLog,outputFilterSensitiveLog:eO.AssumeRoleWithSAMLResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,tO.serializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}deserialize(t,r){return(0,tO.deserializeAws_queryAssumeRoleWithSAMLCommand)(t,r)}};Tm.AssumeRoleWithSAMLCommand=mE});var xm=u(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});Cm.AssumeRoleWithWebIdentityCommand=void 0;var zie=U(),jie=N(),rO=lr(),nO=wn(),_E=class extends jie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,zie.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"AssumeRoleWithWebIdentityCommand",inputFilterSensitiveLog:rO.AssumeRoleWithWebIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:rO.AssumeRoleWithWebIdentityResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,nO.serializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}deserialize(t,r){return(0,nO.deserializeAws_queryAssumeRoleWithWebIdentityCommand)(t,r)}};Cm.AssumeRoleWithWebIdentityCommand=_E});var yE=u(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});Im.DecodeAuthorizationMessageCommand=void 0;var kie=U(),Fie=Sn(),Uie=N(),iO=lr(),sO=wn(),hE=class extends Uie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,kie.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Fie.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"DecodeAuthorizationMessageCommand",inputFilterSensitiveLog:iO.DecodeAuthorizationMessageRequest.filterSensitiveLog,outputFilterSensitiveLog:iO.DecodeAuthorizationMessageResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,sO.serializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}deserialize(t,r){return(0,sO.deserializeAws_queryDecodeAuthorizationMessageCommand)(t,r)}};Im.DecodeAuthorizationMessageCommand=hE});var vE=u(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});Rm.GetAccessKeyInfoCommand=void 0;var Bie=U(),Gie=Sn(),$ie=N(),oO=lr(),aO=wn(),gE=class extends $ie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Bie.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Gie.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetAccessKeyInfoCommand",inputFilterSensitiveLog:oO.GetAccessKeyInfoRequest.filterSensitiveLog,outputFilterSensitiveLog:oO.GetAccessKeyInfoResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,aO.serializeAws_queryGetAccessKeyInfoCommand)(t,r)}deserialize(t,r){return(0,aO.deserializeAws_queryGetAccessKeyInfoCommand)(t,r)}};Rm.GetAccessKeyInfoCommand=gE});var wE=u(Nm=>{"use strict";Object.defineProperty(Nm,"__esModule",{value:!0});Nm.GetCallerIdentityCommand=void 0;var Vie=U(),Kie=Sn(),Hie=N(),cO=lr(),lO=wn(),SE=class extends Hie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Vie.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Kie.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetCallerIdentityCommand",inputFilterSensitiveLog:cO.GetCallerIdentityRequest.filterSensitiveLog,outputFilterSensitiveLog:cO.GetCallerIdentityResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,lO.serializeAws_queryGetCallerIdentityCommand)(t,r)}deserialize(t,r){return(0,lO.deserializeAws_queryGetCallerIdentityCommand)(t,r)}};Nm.GetCallerIdentityCommand=SE});var bE=u(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});Pm.GetFederationTokenCommand=void 0;var Wie=U(),Jie=Sn(),Yie=N(),dO=lr(),uO=wn(),EE=class extends Yie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Wie.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Jie.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetFederationTokenCommand",inputFilterSensitiveLog:dO.GetFederationTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:dO.GetFederationTokenResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,uO.serializeAws_queryGetFederationTokenCommand)(t,r)}deserialize(t,r){return(0,uO.deserializeAws_queryGetFederationTokenCommand)(t,r)}};Pm.GetFederationTokenCommand=EE});var TE=u(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});Dm.GetSessionTokenCommand=void 0;var Qie=U(),Xie=Sn(),Zie=N(),fO=lr(),mO=wn(),AE=class extends Zie.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Qie.getSerdePlugin)(r,this.serialize,this.deserialize)),this.middlewareStack.use((0,Xie.getAwsAuthPlugin)(r));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"STSClient",commandName:"GetSessionTokenCommand",inputFilterSensitiveLog:fO.GetSessionTokenRequest.filterSensitiveLog,outputFilterSensitiveLog:fO.GetSessionTokenResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,mO.serializeAws_queryGetSessionTokenCommand)(t,r)}deserialize(t,r){return(0,mO.deserializeAws_queryGetSessionTokenCommand)(t,r)}};Dm.GetSessionTokenCommand=AE});var pO=u(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});Om.resolveStsAuthConfig=void 0;var ese=Sn(),tse=(e,{stsClientCtor:t})=>(0,ese.resolveAwsAuthConfig)({...e,stsClientCtor:t});Om.resolveStsAuthConfig=tse});var _O=u((XRe,rse)=>{rse.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently '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-* && rimraf *.tsbuildinfo"},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.78.0","@aws-sdk/credential-provider-node":"3.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-sdk-sts":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-signing":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",entities:"2.2.0","fast-xml-parser":"3.19.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},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 CE=u(qr=>{"use strict";Object.defineProperty(qr,"__esModule",{value:!0});qr.decorateDefaultCredentialProvider=qr.getDefaultRoleAssumerWithWebIdentity=qr.getDefaultRoleAssumer=void 0;var nse=Am(),ise=xm(),hO="us-east-1",yO=e=>typeof e!="function"?e===void 0?hO:e:async()=>{try{return await e()}catch{return hO}},sse=(e,t)=>{let r,n;return async(i,s)=>{if(n=i,!r){let{logger:a,region:c,requestHandler:d}=e;r=new t({logger:a,credentialDefaultProvider:()=>async()=>n,region:yO(c||e.region),...d?{requestHandler:d}:{}})}let{Credentials:o}=await r.send(new nse.AssumeRoleCommand(s));if(!o||!o.AccessKeyId||!o.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);return{accessKeyId:o.AccessKeyId,secretAccessKey:o.SecretAccessKey,sessionToken:o.SessionToken,expiration:o.Expiration}}};qr.getDefaultRoleAssumer=sse;var ose=(e,t)=>{let r;return async n=>{if(!r){let{logger:s,region:o,requestHandler:a}=e;r=new t({logger:s,region:yO(o||e.region),...a?{requestHandler:a}:{}})}let{Credentials:i}=await r.send(new ise.AssumeRoleWithWebIdentityCommand(n));if(!i||!i.AccessKeyId||!i.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${n.RoleArn}`);return{accessKeyId:i.AccessKeyId,secretAccessKey:i.SecretAccessKey,sessionToken:i.SessionToken,expiration:i.Expiration}}};qr.getDefaultRoleAssumerWithWebIdentity=ose;var ase=e=>t=>e({roleAssumer:(0,qr.getDefaultRoleAssumer)(t,t.stsClientCtor),roleAssumerWithWebIdentity:(0,qr.getDefaultRoleAssumerWithWebIdentity)(t,t.stsClientCtor),...t});qr.decorateDefaultCredentialProvider=ase});var qm=u(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});Lm.ProviderError=void 0;var dc=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,dc.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};Lm.ProviderError=dc});var gO=u(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});Mm.CredentialsProviderError=void 0;var cse=qm(),uc=class extends cse.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,uc.prototype)}};Mm.CredentialsProviderError=uc});var vO=u(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});zm.chain=void 0;var lse=qm();function dse(...e){return()=>{let t=Promise.reject(new lse.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}zm.chain=dse});var SO=u(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.fromStatic=void 0;var use=e=>()=>Promise.resolve(e);jm.fromStatic=use});var wO=u(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});km.memoize=void 0;var fse=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};km.memoize=fse});var Gt=u(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});var fc=q();fc.__exportStar(gO(),Bi);fc.__exportStar(qm(),Bi);fc.__exportStar(vO(),Bi);fc.__exportStar(SO(),Bi);fc.__exportStar(wO(),Bi)});var EO=u(_t=>{"use strict";Object.defineProperty(_t,"__esModule",{value:!0});_t.fromEnv=_t.ENV_EXPIRATION=_t.ENV_SESSION=_t.ENV_SECRET=_t.ENV_KEY=void 0;var mse=Gt();_t.ENV_KEY="AWS_ACCESS_KEY_ID";_t.ENV_SECRET="AWS_SECRET_ACCESS_KEY";_t.ENV_SESSION="AWS_SESSION_TOKEN";_t.ENV_EXPIRATION="AWS_CREDENTIAL_EXPIRATION";var pse=()=>async()=>{let e=process.env[_t.ENV_KEY],t=process.env[_t.ENV_SECRET],r=process.env[_t.ENV_SESSION],n=process.env[_t.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...r&&{sessionToken:r},...n&&{expiration:new Date(n)}};throw new mse.CredentialsProviderError("Unable to find environment variable credentials.")};_t.fromEnv=pse});var bO=u(xE=>{"use strict";Object.defineProperty(xE,"__esModule",{value:!0});var _se=q();_se.__exportStar(EO(),xE)});var Um=u(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});Fm.getHomeDir=void 0;var hse=require("os"),yse=require("path"),gse=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${yse.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,hse.homedir)())};Fm.getHomeDir=gse});var AO=u(Mr=>{"use strict";Object.defineProperty(Mr,"__esModule",{value:!0});Mr.getProfileName=Mr.DEFAULT_PROFILE=Mr.ENV_PROFILE=void 0;Mr.ENV_PROFILE="AWS_PROFILE";Mr.DEFAULT_PROFILE="default";var vse=e=>e.profile||process.env[Mr.ENV_PROFILE]||Mr.DEFAULT_PROFILE;Mr.getProfileName=vse});var IE=u(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});Bm.getSSOTokenFilepath=void 0;var Sse=require("crypto"),wse=require("path"),Ese=Um(),bse=e=>{let r=(0,Sse.createHash)("sha1").update(e).digest("hex");return(0,wse.join)((0,Ese.getHomeDir)(),".aws","sso","cache",`${r}.json`)};Bm.getSSOTokenFilepath=bse});var TO=u(Gm=>{"use strict";Object.defineProperty(Gm,"__esModule",{value:!0});Gm.getSSOTokenFromFile=void 0;var Ase=require("fs"),Tse=IE(),{readFile:Cse}=Ase.promises,xse=async e=>{let t=(0,Tse.getSSOTokenFilepath)(e),r=await Cse(t,"utf8");return JSON.parse(r)};Gm.getSSOTokenFromFile=xse});var CO=u($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.normalizeConfigFile=void 0;var Ise=/^profile\s(["'])?([^\1]+)\1$/,Rse=e=>{let t={};for(let r of Object.keys(e)){let n;if(r==="default")t.default=e.default;else if(n=Ise.exec(r)){let[i,s,o]=n;o&&(t[o]=e[r])}}return t};$m.normalizeConfigFile=Rse});var xO=u(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});Vm.parseIni=void 0;var Nse=["__proto__","profile __proto__"],Pse=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],Nse.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};Vm.parseIni=Pse});var IO=u(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.slurpFile=void 0;var Dse=require("fs"),{readFile:Ose}=Dse.promises,RE={},Lse=e=>(RE[e]||(RE[e]=Ose(e,"utf8")),RE[e]);Km.slurpFile=Lse});var NE=u(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});zr.loadSharedConfigFiles=zr.ENV_CONFIG_PATH=zr.ENV_CREDENTIALS_PATH=void 0;var RO=require("path"),NO=Um(),qse=CO(),PO=xO(),DO=IO();zr.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";zr.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var OO=()=>({}),Mse=async(e={})=>{let{filepath:t=process.env[zr.ENV_CREDENTIALS_PATH]||(0,RO.join)((0,NO.getHomeDir)(),".aws","credentials"),configFilepath:r=process.env[zr.ENV_CONFIG_PATH]||(0,RO.join)((0,NO.getHomeDir)(),".aws","config")}=e,n=await Promise.all([(0,DO.slurpFile)(r).then(PO.parseIni).then(qse.normalizeConfigFile).catch(OO),(0,DO.slurpFile)(t).then(PO.parseIni).catch(OO)]);return{configFile:n[0],credentialsFile:n[1]}};zr.loadSharedConfigFiles=Mse});var LO=u(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});Hm.parseKnownFiles=void 0;var zse=NE(),jse=async e=>{let t=await(0,zse.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};Hm.parseKnownFiles=jse});var MO=u(qO=>{"use strict";Object.defineProperty(qO,"__esModule",{value:!0})});var mc=u(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});var Gi=q();Gi.__exportStar(Um(),En);Gi.__exportStar(AO(),En);Gi.__exportStar(IE(),En);Gi.__exportStar(TO(),En);Gi.__exportStar(NE(),En);Gi.__exportStar(LO(),En);Gi.__exportStar(MO(),En)});var Jm=u(Wm=>{"use strict";Object.defineProperty(Wm,"__esModule",{value:!0});Wm.ProviderError=void 0;var pc=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,pc.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};Wm.ProviderError=pc});var zO=u(Ym=>{"use strict";Object.defineProperty(Ym,"__esModule",{value:!0});Ym.CredentialsProviderError=void 0;var kse=Jm(),_c=class extends kse.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,_c.prototype)}};Ym.CredentialsProviderError=_c});var jO=u(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});Qm.chain=void 0;var Fse=Jm();function Use(...e){return()=>{let t=Promise.reject(new Fse.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}Qm.chain=Use});var kO=u(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});Xm.fromStatic=void 0;var Bse=e=>()=>Promise.resolve(e);Xm.fromStatic=Bse});var FO=u(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});Zm.memoize=void 0;var Gse=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};Zm.memoize=Gse});var $t=u($i=>{"use strict";Object.defineProperty($i,"__esModule",{value:!0});var hc=q();hc.__exportStar(zO(),$i);hc.__exportStar(Jm(),$i);hc.__exportStar(jO(),$i);hc.__exportStar(kO(),$i);hc.__exportStar(FO(),$i)});var UO=u(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 $se=$t();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";var Vse=()=>async()=>{let e=process.env[ht.ENV_KEY],t=process.env[ht.ENV_SECRET],r=process.env[ht.ENV_SESSION],n=process.env[ht.ENV_EXPIRATION];if(e&&t)return{accessKeyId:e,secretAccessKey:t,...r&&{sessionToken:r},...n&&{expiration:new Date(n)}};throw new $se.CredentialsProviderError("Unable to find environment variable credentials.")};ht.fromEnv=Vse});var BO=u(PE=>{"use strict";Object.defineProperty(PE,"__esModule",{value:!0});var Kse=q();Kse.__exportStar(UO(),PE)});var tp=u(ep=>{"use strict";Object.defineProperty(ep,"__esModule",{value:!0});ep.httpRequest=void 0;var DE=$t(),Hse=require("buffer"),Wse=require("http");function Jse(e){return new Promise((t,r)=>{var n;let i=(0,Wse.request)({method:"GET",...e,hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{r(Object.assign(new DE.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new DE.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new DE.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(Hse.Buffer.concat(a)),i.destroy()})}),i.end()})}ep.httpRequest=Jse});var OE=u(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});Ms.fromImdsCredentials=Ms.isImdsCredentials=void 0;var Yse=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Ms.isImdsCredentials=Yse;var Qse=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Ms.fromImdsCredentials=Qse});var rp=u(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.providerConfigFromInit=jr.DEFAULT_MAX_RETRIES=jr.DEFAULT_TIMEOUT=void 0;jr.DEFAULT_TIMEOUT=1e3;jr.DEFAULT_MAX_RETRIES=0;var Xse=({maxRetries:e=jr.DEFAULT_MAX_RETRIES,timeout:t=jr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});jr.providerConfigFromInit=Xse});var LE=u(np=>{"use strict";Object.defineProperty(np,"__esModule",{value:!0});np.retry=void 0;var Zse=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};np.retry=Zse});var $O=u(Ze=>{"use strict";Object.defineProperty(Ze,"__esModule",{value:!0});Ze.fromContainerMetadata=Ze.ENV_CMDS_AUTH_TOKEN=Ze.ENV_CMDS_RELATIVE_URI=Ze.ENV_CMDS_FULL_URI=void 0;var ip=$t(),eoe=require("url"),toe=tp(),GO=OE(),roe=rp(),noe=LE();Ze.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";Ze.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";Ze.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var ioe=(e={})=>{let{timeout:t,maxRetries:r}=(0,roe.providerConfigFromInit)(e);return()=>(0,noe.retry)(async()=>{let n=await loe(),i=JSON.parse(await soe(t,n));if(!(0,GO.isImdsCredentials)(i))throw new ip.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,GO.fromImdsCredentials)(i)},r)};Ze.fromContainerMetadata=ioe;var soe=async(e,t)=>(process.env[Ze.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[Ze.ENV_CMDS_AUTH_TOKEN]}),(await(0,toe.httpRequest)({...t,timeout:e})).toString()),ooe="169.254.170.2",aoe={localhost:!0,"127.0.0.1":!0},coe={"http:":!0,"https:":!0},loe=async()=>{if(process.env[Ze.ENV_CMDS_RELATIVE_URI])return{hostname:ooe,path:process.env[Ze.ENV_CMDS_RELATIVE_URI]};if(process.env[Ze.ENV_CMDS_FULL_URI]){let e=(0,eoe.parse)(process.env[Ze.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in aoe))throw new ip.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in coe))throw new ip.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new ip.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${Ze.ENV_CMDS_RELATIVE_URI} or ${Ze.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var op=u(sp=>{"use strict";Object.defineProperty(sp,"__esModule",{value:!0});sp.ProviderError=void 0;var yc=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,yc.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};sp.ProviderError=yc});var VO=u(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.CredentialsProviderError=void 0;var doe=op(),gc=class extends doe.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,gc.prototype)}};ap.CredentialsProviderError=gc});var KO=u(cp=>{"use strict";Object.defineProperty(cp,"__esModule",{value:!0});cp.chain=void 0;var uoe=op();function foe(...e){return()=>{let t=Promise.reject(new uoe.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}cp.chain=foe});var HO=u(lp=>{"use strict";Object.defineProperty(lp,"__esModule",{value:!0});lp.fromStatic=void 0;var moe=e=>()=>Promise.resolve(e);lp.fromStatic=moe});var WO=u(dp=>{"use strict";Object.defineProperty(dp,"__esModule",{value:!0});dp.memoize=void 0;var poe=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};dp.memoize=poe});var Sc=u(Vi=>{"use strict";Object.defineProperty(Vi,"__esModule",{value:!0});var vc=q();vc.__exportStar(VO(),Vi);vc.__exportStar(op(),Vi);vc.__exportStar(KO(),Vi);vc.__exportStar(HO(),Vi);vc.__exportStar(WO(),Vi)});var JO=u(up=>{"use strict";Object.defineProperty(up,"__esModule",{value:!0});up.fromEnv=void 0;var _oe=Sc(),hoe=e=>async()=>{try{let t=e(process.env);if(t===void 0)throw new Error;return t}catch(t){throw new _oe.CredentialsProviderError(t.message||`Cannot load config from environment variables with getter: ${e}`)}};up.fromEnv=hoe});var mp=u(fp=>{"use strict";Object.defineProperty(fp,"__esModule",{value:!0});fp.getHomeDir=void 0;var yoe=require("os"),goe=require("path"),voe=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${goe.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,yoe.homedir)())};fp.getHomeDir=voe});var YO=u(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.getProfileName=kr.DEFAULT_PROFILE=kr.ENV_PROFILE=void 0;kr.ENV_PROFILE="AWS_PROFILE";kr.DEFAULT_PROFILE="default";var Soe=e=>e.profile||process.env[kr.ENV_PROFILE]||kr.DEFAULT_PROFILE;kr.getProfileName=Soe});var qE=u(pp=>{"use strict";Object.defineProperty(pp,"__esModule",{value:!0});pp.getSSOTokenFilepath=void 0;var woe=require("crypto"),Eoe=require("path"),boe=mp(),Aoe=e=>{let r=(0,woe.createHash)("sha1").update(e).digest("hex");return(0,Eoe.join)((0,boe.getHomeDir)(),".aws","sso","cache",`${r}.json`)};pp.getSSOTokenFilepath=Aoe});var QO=u(_p=>{"use strict";Object.defineProperty(_p,"__esModule",{value:!0});_p.getSSOTokenFromFile=void 0;var Toe=require("fs"),Coe=qE(),{readFile:xoe}=Toe.promises,Ioe=async e=>{let t=(0,Coe.getSSOTokenFilepath)(e),r=await xoe(t,"utf8");return JSON.parse(r)};_p.getSSOTokenFromFile=Ioe});var XO=u(hp=>{"use strict";Object.defineProperty(hp,"__esModule",{value:!0});hp.normalizeConfigFile=void 0;var Roe=/^profile\s(["'])?([^\1]+)\1$/,Noe=e=>{let t={};for(let r of Object.keys(e)){let n;if(r==="default")t.default=e.default;else if(n=Roe.exec(r)){let[i,s,o]=n;o&&(t[o]=e[r])}}return t};hp.normalizeConfigFile=Noe});var ZO=u(yp=>{"use strict";Object.defineProperty(yp,"__esModule",{value:!0});yp.parseIni=void 0;var Poe=["__proto__","profile __proto__"],Doe=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],Poe.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};yp.parseIni=Doe});var eL=u(gp=>{"use strict";Object.defineProperty(gp,"__esModule",{value:!0});gp.slurpFile=void 0;var Ooe=require("fs"),{readFile:Loe}=Ooe.promises,ME={},qoe=e=>(ME[e]||(ME[e]=Loe(e,"utf8")),ME[e]);gp.slurpFile=qoe});var zE=u(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.loadSharedConfigFiles=Fr.ENV_CONFIG_PATH=Fr.ENV_CREDENTIALS_PATH=void 0;var tL=require("path"),rL=mp(),Moe=XO(),nL=ZO(),iL=eL();Fr.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";Fr.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var sL=()=>({}),zoe=async(e={})=>{let{filepath:t=process.env[Fr.ENV_CREDENTIALS_PATH]||(0,tL.join)((0,rL.getHomeDir)(),".aws","credentials"),configFilepath:r=process.env[Fr.ENV_CONFIG_PATH]||(0,tL.join)((0,rL.getHomeDir)(),".aws","config")}=e,n=await Promise.all([(0,iL.slurpFile)(r).then(nL.parseIni).then(Moe.normalizeConfigFile).catch(sL),(0,iL.slurpFile)(t).then(nL.parseIni).catch(sL)]);return{configFile:n[0],credentialsFile:n[1]}};Fr.loadSharedConfigFiles=zoe});var oL=u(vp=>{"use strict";Object.defineProperty(vp,"__esModule",{value:!0});vp.parseKnownFiles=void 0;var joe=zE(),koe=async e=>{let t=await(0,joe.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};vp.parseKnownFiles=koe});var cL=u(aL=>{"use strict";Object.defineProperty(aL,"__esModule",{value:!0})});var lL=u(bn=>{"use strict";Object.defineProperty(bn,"__esModule",{value:!0});var Ki=q();Ki.__exportStar(mp(),bn);Ki.__exportStar(YO(),bn);Ki.__exportStar(qE(),bn);Ki.__exportStar(QO(),bn);Ki.__exportStar(zE(),bn);Ki.__exportStar(oL(),bn);Ki.__exportStar(cL(),bn)});var uL=u(Sp=>{"use strict";Object.defineProperty(Sp,"__esModule",{value:!0});Sp.fromSharedConfigFiles=void 0;var Foe=Sc(),dL=lL(),Uoe=(e,{preferredFile:t="config",...r}={})=>async()=>{let n=(0,dL.getProfileName)(r),{configFile:i,credentialsFile:s}=await(0,dL.loadSharedConfigFiles)(r),o=s[n]||{},a=i[n]||{},c=t==="config"?{...o,...a}:{...a,...o};try{let d=e(c);if(d===void 0)throw new Error;return d}catch(d){throw new Foe.CredentialsProviderError(d.message||`Cannot load config for profile ${n} in SDK configuration files with getter: ${e}`)}};Sp.fromSharedConfigFiles=Uoe});var fL=u(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.fromStatic=void 0;var Boe=Sc(),Goe=e=>typeof e=="function",$oe=e=>Goe(e)?async()=>await e():(0,Boe.fromStatic)(e);wp.fromStatic=$oe});var pL=u(Ep=>{"use strict";Object.defineProperty(Ep,"__esModule",{value:!0});Ep.loadConfig=void 0;var mL=Sc(),Voe=JO(),Koe=uL(),Hoe=fL(),Woe=({environmentVariableSelector:e,configFileSelector:t,default:r},n={})=>(0,mL.memoize)((0,mL.chain)((0,Voe.fromEnv)(e),(0,Koe.fromSharedConfigFiles)(t,n),(0,Hoe.fromStatic)(r)));Ep.loadConfig=Woe});var Ur=u(jE=>{"use strict";Object.defineProperty(jE,"__esModule",{value:!0});var Joe=q();Joe.__exportStar(pL(),jE)});var _L=u(bp=>{"use strict";Object.defineProperty(bp,"__esModule",{value:!0});bp.parseQueryString=void 0;function Yoe(e){let t={};if(e=e.replace(/^\?/,""),e)for(let r of e.split("&")){let[n,i=null]=r.split("=");n=decodeURIComponent(n),i&&(i=decodeURIComponent(i)),n in t?Array.isArray(t[n])?t[n].push(i):t[n]=[t[n],i]:t[n]=i}return t}bp.parseQueryString=Yoe});var ai=u(Ap=>{"use strict";Object.defineProperty(Ap,"__esModule",{value:!0});Ap.parseUrl=void 0;var Qoe=_L(),Xoe=e=>{let{hostname:t,pathname:r,port:n,protocol:i,search:s}=new URL(e),o;return s&&(o=(0,Qoe.parseQueryString)(s)),{hostname:t,port:n?parseInt(n):void 0,protocol:i,path:r,query:o}};Ap.parseUrl=Xoe});var hL=u(wc=>{"use strict";Object.defineProperty(wc,"__esModule",{value:!0});wc.Endpoint=void 0;var Zoe;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(Zoe=wc.Endpoint||(wc.Endpoint={}))});var yL=u(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.ENDPOINT_CONFIG_OPTIONS=Br.CONFIG_ENDPOINT_NAME=Br.ENV_ENDPOINT_NAME=void 0;Br.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Br.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Br.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Br.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Br.CONFIG_ENDPOINT_NAME],default:void 0}});var kE=u(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.EndpointMode=void 0;var eae;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(eae=Ec.EndpointMode||(Ec.EndpointMode={}))});var gL=u(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.ENDPOINT_MODE_CONFIG_OPTIONS=Gr.CONFIG_ENDPOINT_MODE_NAME=Gr.ENV_ENDPOINT_MODE_NAME=void 0;var tae=kE();Gr.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Gr.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Gr.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Gr.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Gr.CONFIG_ENDPOINT_MODE_NAME],default:tae.EndpointMode.IPv4}});var UE=u(Tp=>{"use strict";Object.defineProperty(Tp,"__esModule",{value:!0});Tp.getInstanceMetadataEndpoint=void 0;var SL=Ur(),rae=ai(),vL=hL(),nae=yL(),FE=kE(),iae=gL(),sae=async()=>(0,rae.parseUrl)(await oae()||await aae());Tp.getInstanceMetadataEndpoint=sae;var oae=async()=>(0,SL.loadConfig)(nae.ENDPOINT_CONFIG_OPTIONS)(),aae=async()=>{let e=await(0,SL.loadConfig)(iae.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case FE.EndpointMode.IPv4:return vL.Endpoint.IPv4;case FE.EndpointMode.IPv6:return vL.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(FE.EndpointMode)}`)}}});var wL=u(Cp=>{"use strict";Object.defineProperty(Cp,"__esModule",{value:!0});Cp.getExtendedInstanceMetadataCredentials=void 0;var cae=15*60,lae=5*60,dae="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",uae=(e,t)=>{var r;let n=cae+Math.floor(Math.random()*lae),i=new Date(Date.now()+n*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+dae);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};Cp.getExtendedInstanceMetadataCredentials=uae});var bL=u(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});xp.staticStabilityProvider=void 0;var EL=wL(),fae=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,EL.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,EL.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};xp.staticStabilityProvider=fae});var xL=u(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.fromInstanceMetadata=void 0;var mae=$t(),BE=tp(),AL=OE(),pae=rp(),TL=LE(),_ae=UE(),hae=bL(),CL="/latest/meta-data/iam/security-credentials/",yae="/latest/api/token",gae=(e={})=>(0,hae.staticStabilityProvider)(vae(e),{logger:e.logger});Ip.fromInstanceMetadata=gae;var vae=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,pae.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,TL.retry)(async()=>{let c;try{c=await wae(o)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)).trim();return(0,TL.retry)(async()=>{let c;try{c=await Eae(a,o)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)};return async()=>{let s=await(0,_ae.getInstanceMetadataEndpoint)();if(t)return i(n,{...s,timeout:r});{let o;try{o=(await Sae({...s,timeout:r})).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),i(n,{...s,timeout:r})}return i(n,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:r})}}},Sae=async e=>(0,BE.httpRequest)({...e,path:yae,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),wae=async e=>(await(0,BE.httpRequest)({...e,path:CL})).toString(),Eae=async(e,t)=>{let r=JSON.parse((await(0,BE.httpRequest)({...t,path:CL+e})).toString());if(!(0,AL.isImdsCredentials)(r))throw new mae.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,AL.fromImdsCredentials)(r)}});var RL=u(IL=>{"use strict";Object.defineProperty(IL,"__esModule",{value:!0})});var NL=u($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});$r.getInstanceMetadataEndpoint=$r.httpRequest=void 0;var Rp=q();Rp.__exportStar($O(),$r);Rp.__exportStar(xL(),$r);Rp.__exportStar(rp(),$r);Rp.__exportStar(RL(),$r);var bae=tp();Object.defineProperty($r,"httpRequest",{enumerable:!0,get:function(){return bae.httpRequest}});var Aae=UE();Object.defineProperty($r,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return Aae.getInstanceMetadataEndpoint}})});var DL=u(Np=>{"use strict";Object.defineProperty(Np,"__esModule",{value:!0});Np.resolveCredentialSource=void 0;var Tae=BO(),PL=NL(),Cae=$t(),xae=(e,t)=>{let r={EcsContainer:PL.fromContainerMetadata,Ec2InstanceMetadata:PL.fromInstanceMetadata,Environment:Tae.fromEnv};if(e in r)return r[e]();throw new Cae.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`)};Np.resolveCredentialSource=xae});var OL=u(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.resolveAssumeRoleCredentials=zs.isAssumeRoleProfile=void 0;var GE=$t(),Iae=mc(),Rae=DL(),Nae=$E(),Pae=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&&(Dae(e)||Oae(e));zs.isAssumeRoleProfile=Pae;var Dae=e=>typeof e.source_profile=="string"&&typeof e.credential_source>"u",Oae=e=>typeof e.credential_source=="string"&&typeof e.source_profile>"u",Lae=async(e,t,r,n={})=>{let i=t[e];if(!r.roleAssumer)throw new GE.CredentialsProviderError(`Profile ${e} requires a role to be assumed, but no role assumption callback was provided.`,!1);let{source_profile:s}=i;if(s&&s in n)throw new GE.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${(0,Iae.getProfileName)(r)}. Profiles visited: `+Object.keys(n).join(", "),!1);let o=s?(0,Nae.resolveProfileData)(s,t,r,{...n,[s]:!0}):(0,Rae.resolveCredentialSource)(i.credential_source,e)(),a={RoleArn:i.role_arn,RoleSessionName:i.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:i.external_id},{mfa_serial:c}=i;if(c){if(!r.mfaCodeProvider)throw new GE.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,!1);a.SerialNumber=c,a.TokenCode=await r.mfaCodeProvider(c)}let d=await o;return r.roleAssumer(d,a)};zs.resolveAssumeRoleCredentials=Lae});var VE=u(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.isSsoProfile=void 0;var qae=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");Pp.isSsoProfile=qae});var Op=u(Dp=>{"use strict";Object.defineProperty(Dp,"__esModule",{value:!0});Dp.SSOServiceException=void 0;var Mae=N(),bc=class extends Mae.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,bc.prototype)}};Dp.SSOServiceException=bc});var Hi=u(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.LogoutRequest=ae.ListAccountsResponse=ae.ListAccountsRequest=ae.ListAccountRolesResponse=ae.RoleInfo=ae.ListAccountRolesRequest=ae.UnauthorizedException=ae.TooManyRequestsException=ae.ResourceNotFoundException=ae.InvalidRequestException=ae.GetRoleCredentialsResponse=ae.RoleCredentials=ae.GetRoleCredentialsRequest=ae.AccountInfo=void 0;var js=N(),Lp=Op(),zae;(function(e){e.filterSensitiveLog=t=>({...t})})(zae=ae.AccountInfo||(ae.AccountInfo={}));var jae;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:js.SENSITIVE_STRING}})})(jae=ae.GetRoleCredentialsRequest||(ae.GetRoleCredentialsRequest={}));var LL;(function(e){e.filterSensitiveLog=t=>({...t,...t.secretAccessKey&&{secretAccessKey:js.SENSITIVE_STRING},...t.sessionToken&&{sessionToken:js.SENSITIVE_STRING}})})(LL=ae.RoleCredentials||(ae.RoleCredentials={}));var kae;(function(e){e.filterSensitiveLog=t=>({...t,...t.roleCredentials&&{roleCredentials:LL.filterSensitiveLog(t.roleCredentials)}})})(kae=ae.GetRoleCredentialsResponse||(ae.GetRoleCredentialsResponse={}));var Ac=class extends Lp.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Ac.prototype)}};ae.InvalidRequestException=Ac;var Tc=class extends Lp.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Tc.prototype)}};ae.ResourceNotFoundException=Tc;var Cc=class extends Lp.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Cc.prototype)}};ae.TooManyRequestsException=Cc;var xc=class extends Lp.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,xc.prototype)}};ae.UnauthorizedException=xc;var Fae;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:js.SENSITIVE_STRING}})})(Fae=ae.ListAccountRolesRequest||(ae.ListAccountRolesRequest={}));var Uae;(function(e){e.filterSensitiveLog=t=>({...t})})(Uae=ae.RoleInfo||(ae.RoleInfo={}));var Bae;(function(e){e.filterSensitiveLog=t=>({...t})})(Bae=ae.ListAccountRolesResponse||(ae.ListAccountRolesResponse={}));var Gae;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:js.SENSITIVE_STRING}})})(Gae=ae.ListAccountsRequest||(ae.ListAccountsRequest={}));var $ae;(function(e){e.filterSensitiveLog=t=>({...t})})($ae=ae.ListAccountsResponse||(ae.ListAccountsResponse={}));var Vae;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:js.SENSITIVE_STRING}})})(Vae=ae.LogoutRequest||(ae.LogoutRequest={}))});var Ic=u(et=>{"use strict";Object.defineProperty(et,"__esModule",{value:!0});et.deserializeAws_restJson1LogoutCommand=et.deserializeAws_restJson1ListAccountsCommand=et.deserializeAws_restJson1ListAccountRolesCommand=et.deserializeAws_restJson1GetRoleCredentialsCommand=et.serializeAws_restJson1LogoutCommand=et.serializeAws_restJson1ListAccountsCommand=et.serializeAws_restJson1ListAccountRolesCommand=et.serializeAws_restJson1GetRoleCredentialsCommand=void 0;var qp=Ct(),be=N(),Mp=Hi(),zp=Op(),Kae=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...Up(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,c={...e.roleName!==void 0&&{role_name:e.roleName},...e.accountId!==void 0&&{account_id:e.accountId}},d;return new qp.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:d})};et.serializeAws_restJson1GetRoleCredentialsCommand=Kae;var Hae=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...Up(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,c={...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 qp.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:d})};et.serializeAws_restJson1ListAccountRolesCommand=Hae;var Wae=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...Up(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()}},d;return new qp.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:d})};et.serializeAws_restJson1ListAccountsCommand=Wae;var Jae=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...Up(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new qp.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:o,path:a,body:c})};et.serializeAws_restJson1LogoutCommand=Jae;var Yae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Qae(e,t);let r={$metadata:nr(e),roleCredentials:void 0},n=(0,be.expectNonNull)((0,be.expectObject)(await Wi(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=oce(n.roleCredentials,t)),Promise.resolve(r)};et.deserializeAws_restJson1GetRoleCredentialsCommand=Yae;var Qae=async(e,t)=>{let r={...e,body:await Wi(e.body,t)},n,i="UnknownError";switch(i=Bp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await jp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await KE(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await kp(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fp(r,t);default:let s=r.body;throw n=new zp.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:nr(e)}),(0,be.decorateServiceException)(n,s)}},Xae=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Zae(e,t);let r={$metadata:nr(e),nextToken:void 0,roleList:void 0},n=(0,be.expectNonNull)((0,be.expectObject)(await Wi(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,be.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=cce(n.roleList,t)),Promise.resolve(r)};et.deserializeAws_restJson1ListAccountRolesCommand=Xae;var Zae=async(e,t)=>{let r={...e,body:await Wi(e.body,t)},n,i="UnknownError";switch(i=Bp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await jp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await KE(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await kp(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fp(r,t);default:let s=r.body;throw n=new zp.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:nr(e)}),(0,be.decorateServiceException)(n,s)}},ece=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return tce(e,t);let r={$metadata:nr(e),accountList:void 0,nextToken:void 0},n=(0,be.expectNonNull)((0,be.expectObject)(await Wi(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=sce(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,be.expectString)(n.nextToken)),Promise.resolve(r)};et.deserializeAws_restJson1ListAccountsCommand=ece;var tce=async(e,t)=>{let r={...e,body:await Wi(e.body,t)},n,i="UnknownError";switch(i=Bp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await jp(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await KE(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await kp(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fp(r,t);default:let s=r.body;throw n=new zp.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:nr(e)}),(0,be.decorateServiceException)(n,s)}},rce=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return nce(e,t);let r={$metadata:nr(e)};return await qL(e.body,t),Promise.resolve(r)};et.deserializeAws_restJson1LogoutCommand=rce;var nce=async(e,t)=>{let r={...e,body:await Wi(e.body,t)},n,i="UnknownError";switch(i=Bp(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await jp(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await kp(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Fp(r,t);default:let s=r.body;throw n=new zp.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:nr(e)}),(0,be.decorateServiceException)(n,s)}},jp=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,be.expectString)(n.message));let i=new Mp.InvalidRequestException({$metadata:nr(e),...r});return(0,be.decorateServiceException)(i,e.body)},KE=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,be.expectString)(n.message));let i=new Mp.ResourceNotFoundException({$metadata:nr(e),...r});return(0,be.decorateServiceException)(i,e.body)},kp=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,be.expectString)(n.message));let i=new Mp.TooManyRequestsException({$metadata:nr(e),...r});return(0,be.decorateServiceException)(i,e.body)},Fp=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,be.expectString)(n.message));let i=new Mp.UnauthorizedException({$metadata:nr(e),...r});return(0,be.decorateServiceException)(i,e.body)},ice=(e,t)=>({accountId:(0,be.expectString)(e.accountId),accountName:(0,be.expectString)(e.accountName),emailAddress:(0,be.expectString)(e.emailAddress)}),sce=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ice(n,t)),oce=(e,t)=>({accessKeyId:(0,be.expectString)(e.accessKeyId),expiration:(0,be.expectLong)(e.expiration),secretAccessKey:(0,be.expectString)(e.secretAccessKey),sessionToken:(0,be.expectString)(e.sessionToken)}),ace=(e,t)=>({accountId:(0,be.expectString)(e.accountId),roleName:(0,be.expectString)(e.roleName)}),cce=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:ace(n,t)),nr=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"]}},qL=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),lce=(e,t)=>qL(e,t).then(r=>t.utf8Encoder(r)),Up=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Wi=(e,t)=>lce(e,t).then(r=>r.length?JSON.parse(r):{}),Bp=(e,t)=>{let r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var WE=u(Gp=>{"use strict";Object.defineProperty(Gp,"__esModule",{value:!0});Gp.GetRoleCredentialsCommand=void 0;var dce=U(),uce=N(),ML=Hi(),zL=Ic(),HE=class extends uce.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,dce.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:ML.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:ML.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,zL.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,zL.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};Gp.GetRoleCredentialsCommand=HE});var Vp=u($p=>{"use strict";Object.defineProperty($p,"__esModule",{value:!0});$p.ListAccountRolesCommand=void 0;var fce=U(),mce=N(),jL=Hi(),kL=Ic(),JE=class extends mce.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,fce.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:jL.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:jL.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,kL.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,kL.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};$p.ListAccountRolesCommand=JE});var Hp=u(Kp=>{"use strict";Object.defineProperty(Kp,"__esModule",{value:!0});Kp.ListAccountsCommand=void 0;var pce=U(),_ce=N(),FL=Hi(),UL=Ic(),YE=class extends _ce.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,pce.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:FL.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:FL.ListAccountsResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,UL.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,UL.deserializeAws_restJson1ListAccountsCommand)(t,r)}};Kp.ListAccountsCommand=YE});var XE=u(Wp=>{"use strict";Object.defineProperty(Wp,"__esModule",{value:!0});Wp.LogoutCommand=void 0;var hce=U(),yce=N(),gce=Hi(),BL=Ic(),QE=class extends yce.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,hce.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:gce.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,BL.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,BL.deserializeAws_restJson1LogoutCommand)(t,r)}};Wp.LogoutCommand=QE});var GL=u((EPe,vce)=>{vce.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently '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-* && rimraf *.tsbuildinfo"},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.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},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 $L=u(Jp=>{"use strict";Object.defineProperty(Jp,"__esModule",{value:!0});Jp.isArrayBuffer=void 0;var Sce=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";Jp.isArrayBuffer=Sce});var VL=u(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.fromString=ks.fromArrayBuffer=void 0;var wce=$L(),ZE=require("buffer"),Ece=(e,t=0,r=e.byteLength-t)=>{if(!(0,wce.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return ZE.Buffer.from(e,t,r)};ks.fromArrayBuffer=Ece;var bce=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?ZE.Buffer.from(e,t):ZE.Buffer.from(e)};ks.fromString=bce});var Rc=u(Yp=>{"use strict";Object.defineProperty(Yp,"__esModule",{value:!0});Yp.Hash=void 0;var eb=VL(),Ace=require("buffer"),KL=require("crypto"),tb=class{constructor(t,r){this.hash=r?(0,KL.createHmac)(t,HL(r)):(0,KL.createHash)(t)}update(t,r){this.hash.update(HL(t,r))}digest(){return Promise.resolve(this.hash.digest())}};Yp.Hash=tb;function HL(e,t){return Ace.Buffer.isBuffer(e)?e:typeof e=="string"?(0,eb.fromString)(e,t):ArrayBuffer.isView(e)?(0,eb.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength):(0,eb.fromArrayBuffer)(e)}});var rb=u(Qp=>{"use strict";Object.defineProperty(Qp,"__esModule",{value:!0});Qp.escapeUri=void 0;var Tce=e=>encodeURIComponent(e).replace(/[!'()*]/g,Cce);Qp.escapeUri=Tce;var Cce=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`});var WL=u(Xp=>{"use strict";Object.defineProperty(Xp,"__esModule",{value:!0});Xp.escapeUriPath=void 0;var xce=rb(),Ice=e=>e.split("/").map(xce.escapeUri).join("/");Xp.escapeUriPath=Ice});var YL=u(Zp=>{"use strict";Object.defineProperty(Zp,"__esModule",{value:!0});var JL=q();JL.__exportStar(rb(),Zp);JL.__exportStar(WL(),Zp)});var ib=u(e_=>{"use strict";Object.defineProperty(e_,"__esModule",{value:!0});e_.buildQueryString=void 0;var nb=YL();function Rce(e){let t=[];for(let r of Object.keys(e).sort()){let n=e[r];if(r=(0,nb.escapeUri)(r),Array.isArray(n))for(let i=0,s=n.length;i<s;i++)t.push(`${r}=${(0,nb.escapeUri)(n[i])}`);else{let i=r;(n||typeof n=="string")&&(i+=`=${(0,nb.escapeUri)(n)}`),t.push(i)}}return t.join("&")}e_.buildQueryString=Rce});var QL=u(t_=>{"use strict";Object.defineProperty(t_,"__esModule",{value:!0});t_.NODEJS_TIMEOUT_ERROR_CODES=void 0;t_.NODEJS_TIMEOUT_ERROR_CODES=["ECONNRESET","EPIPE","ETIMEDOUT"]});var sb=u(r_=>{"use strict";Object.defineProperty(r_,"__esModule",{value:!0});r_.getTransformedHeaders=void 0;var Nce=e=>{let t={};for(let r of Object.keys(e)){let n=e[r];t[r]=Array.isArray(n)?n.join(","):n}return t};r_.getTransformedHeaders=Nce});var XL=u(n_=>{"use strict";Object.defineProperty(n_,"__esModule",{value:!0});n_.setConnectionTimeout=void 0;var Pce=(e,t,r=0)=>{!r||e.on("socket",n=>{if(n.connecting){let i=setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`Socket timed out without establishing a connection within ${r} ms`),{name:"TimeoutError"}))},r);n.on("connect",()=>{clearTimeout(i)})}})};n_.setConnectionTimeout=Pce});var ZL=u(i_=>{"use strict";Object.defineProperty(i_,"__esModule",{value:!0});i_.setSocketTimeout=void 0;var Dce=(e,t,r=0)=>{e.setTimeout(r,()=>{e.destroy(),t(Object.assign(new Error(`Connection timed out after ${r} ms`),{name:"TimeoutError"}))})};i_.setSocketTimeout=Dce});var ob=u(s_=>{"use strict";Object.defineProperty(s_,"__esModule",{value:!0});s_.writeRequestBody=void 0;var Oce=require("stream");function Lce(e,t){(t.headers.Expect||t.headers.expect)==="100-continue"?e.on("continue",()=>{eq(e,t.body)}):eq(e,t.body)}s_.writeRequestBody=Lce;function eq(e,t){t instanceof Oce.Readable?t.pipe(e):t?e.end(Buffer.from(t)):e.end()}});var nq=u(o_=>{"use strict";Object.defineProperty(o_,"__esModule",{value:!0});o_.NodeHttpHandler=void 0;var qce=Ct(),Mce=ib(),tq=require("http"),rq=require("https"),zce=QL(),jce=sb(),kce=XL(),Fce=ZL(),Uce=ob(),ab=class{constructor(t){this.metadata={handlerProtocol:"http/1.1"},this.configProvider=new Promise((r,n)=>{typeof t=="function"?t().then(i=>{r(this.resolveDefaultConfig(i))}).catch(n):r(this.resolveDefaultConfig(t))})}resolveDefaultConfig(t){let{connectionTimeout:r,socketTimeout:n,httpAgent:i,httpsAgent:s}=t||{},o=!0,a=50;return{connectionTimeout:r,socketTimeout:n,httpAgent:i||new tq.Agent({keepAlive:o,maxSockets:a}),httpsAgent:s||new rq.Agent({keepAlive:o,maxSockets:a})}}destroy(){var t,r,n,i;(r=(t=this.config)===null||t===void 0?void 0:t.httpAgent)===null||r===void 0||r.destroy(),(i=(n=this.config)===null||n===void 0?void 0:n.httpsAgent)===null||i===void 0||i.destroy()}async handle(t,{abortSignal:r}={}){return this.config||(this.config=await this.configProvider),new Promise((n,i)=>{if(!this.config)throw new Error("Node HTTP request handler config is not resolved");if(r!=null&&r.aborted){let f=new Error("Request aborted");f.name="AbortError",i(f);return}let s=t.protocol==="https:",o=(0,Mce.buildQueryString)(t.query||{}),a={headers:t.headers,host:t.hostname,method:t.method,path:o?`${t.path}?${o}`:t.path,port:t.port,agent:s?this.config.httpsAgent:this.config.httpAgent},d=(s?rq.request:tq.request)(a,f=>{let _=new qce.HttpResponse({statusCode:f.statusCode||-1,headers:(0,jce.getTransformedHeaders)(f.headers),body:f});n({response:_})});d.on("error",f=>{zce.NODEJS_TIMEOUT_ERROR_CODES.includes(f.code)?i(Object.assign(f,{name:"TimeoutError"})):i(f)}),(0,kce.setConnectionTimeout)(d,i,this.config.connectionTimeout),(0,Fce.setSocketTimeout)(d,i,this.config.socketTimeout),r&&(r.onabort=()=>{d.abort();let f=new Error("Request aborted");f.name="AbortError",i(f)}),(0,Uce.writeRequestBody)(d,t)})}};o_.NodeHttpHandler=ab});var iq=u(a_=>{"use strict";Object.defineProperty(a_,"__esModule",{value:!0});a_.NodeHttp2Handler=void 0;var Bce=Ct(),Gce=ib(),cb=require("http2"),$ce=sb(),Vce=ob(),lb=class{constructor({requestTimeout:t,sessionTimeout:r,disableConcurrentStreams:n}={}){this.metadata={handlerProtocol:"h2"},this.requestTimeout=t,this.sessionTimeout=r,this.disableConcurrentStreams=n,this.sessionCache=new Map}destroy(){for(let t of this.sessionCache.values())t.forEach(r=>this.destroySession(r));this.sessionCache.clear()}handle(t,{abortSignal:r}={}){return new Promise((n,i)=>{let s=!1;if(r!=null&&r.aborted){s=!0;let T=new Error("Request aborted");T.name="AbortError",i(T);return}let{hostname:o,method:a,port:c,protocol:d,path:f,query:_}=t,m=`${d}//${o}${c?`:${c}`:""}`,h=this.getSession(m,this.disableConcurrentStreams||!1),g=T=>{this.disableConcurrentStreams&&this.destroySession(h),s=!0,i(T)},y=(0,Gce.buildQueryString)(_||{}),A=h.request({...t.headers,[cb.constants.HTTP2_HEADER_PATH]:y?`${f}?${y}`:f,[cb.constants.HTTP2_HEADER_METHOD]:a});h.ref(),A.on("response",T=>{let $=new Bce.HttpResponse({statusCode:T[":status"]||-1,headers:(0,$ce.getTransformedHeaders)(T),body:A});s=!0,n({response:$}),this.disableConcurrentStreams&&(h.close(),this.deleteSessionFromCache(m,h))});let R=this.requestTimeout;R&&A.setTimeout(R,()=>{A.close();let T=new Error(`Stream timed out because of no activity for ${R} ms`);T.name="TimeoutError",g(T)}),r&&(r.onabort=()=>{A.close();let T=new Error("Request aborted");T.name="AbortError",g(T)}),A.on("frameError",(T,$,he)=>{g(new Error(`Frame type id ${T} in stream id ${he} has failed with code ${$}.`))}),A.on("error",g),A.on("aborted",()=>{g(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${A.rstCode}.`))}),A.on("close",()=>{h.unref(),this.disableConcurrentStreams&&h.destroy(),s||g(new Error("Unexpected error: http2 request did not get a response"))}),(0,Vce.writeRequestBody)(A,t)})}getSession(t,r){let n=this.sessionCache,i=n.get(t)||[];if(i.length>0&&!r)return i[0];let s=(0,cb.connect)(t);s.unref();let o=()=>{this.destroySession(s),this.deleteSessionFromCache(t,s)};s.on("goaway",o),s.on("error",o),s.on("frameError",o);let a=this.sessionTimeout;return a&&s.setTimeout(a,o),i.push(s),n.set(t,i),s}destroySession(t){t.destroyed||t.destroy()}deleteSessionFromCache(t,r){let n=this.sessionCache.get(t)||[];!n.includes(r)||this.sessionCache.set(t,n.filter(i=>i!==r))}};a_.NodeHttp2Handler=lb});var sq=u(c_=>{"use strict";Object.defineProperty(c_,"__esModule",{value:!0});c_.Collector=void 0;var Kce=require("stream"),db=class extends Kce.Writable{constructor(){super(...arguments),this.bufferedBytes=[]}_write(t,r,n){this.bufferedBytes.push(t),n()}};c_.Collector=db});var oq=u(l_=>{"use strict";Object.defineProperty(l_,"__esModule",{value:!0});l_.streamCollector=void 0;var Hce=sq(),Wce=e=>new Promise((t,r)=>{let n=new Hce.Collector;e.pipe(n),e.on("error",i=>{n.end(),r(i)}),n.on("error",r),n.on("finish",function(){let i=new Uint8Array(Buffer.concat(this.bufferedBytes));t(i)})});l_.streamCollector=Wce});var Pc=u(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});var ub=q();ub.__exportStar(nq(),Nc);ub.__exportStar(iq(),Nc);ub.__exportStar(oq(),Nc)});var aq=u(d_=>{"use strict";Object.defineProperty(d_,"__esModule",{value:!0});d_.isArrayBuffer=void 0;var Jce=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";d_.isArrayBuffer=Jce});var cq=u(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.fromString=Fs.fromArrayBuffer=void 0;var Yce=aq(),fb=require("buffer"),Qce=(e,t=0,r=e.byteLength-t)=>{if(!(0,Yce.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return fb.Buffer.from(e,t,r)};Fs.fromArrayBuffer=Qce;var Xce=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?fb.Buffer.from(e,t):fb.Buffer.from(e)};Fs.fromString=Xce});var Dc=u(Us=>{"use strict";Object.defineProperty(Us,"__esModule",{value:!0});Us.toBase64=Us.fromBase64=void 0;var lq=cq(),Zce=/^[A-Za-z0-9+/]*={0,2}$/;function ele(e){if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!Zce.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,lq.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}Us.fromBase64=ele;function tle(e){return(0,lq.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("base64")}Us.toBase64=tle});var uq=u(u_=>{"use strict";Object.defineProperty(u_,"__esModule",{value:!0});u_.calculateBodyLength=void 0;var dq=require("fs"),rle=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"||Buffer.isBuffer(e.path))return(0,dq.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,dq.fstatSync)(e.fd).size;throw new Error(`Body Length computation failed for ${e}`)};u_.calculateBodyLength=rle});var Oc=u(mb=>{"use strict";Object.defineProperty(mb,"__esModule",{value:!0});var nle=q();nle.__exportStar(uq(),mb)});var fq=u((f_,pb)=>{"use strict";Object.defineProperty(f_,"__esModule",{value:!0});f_.isCrtAvailable=void 0;var ile=()=>{try{return typeof require=="function"&&typeof pb<"u"&&pb.require&&require("aws-crt")?["md/crt-avail"]:null}catch{return null}};f_.isCrtAvailable=ile});var Lc=u(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.defaultUserAgent=Vr.UA_APP_ID_INI_NAME=Vr.UA_APP_ID_ENV_NAME=void 0;var sle=Ur(),mq=require("os"),_b=require("process"),ole=fq();Vr.UA_APP_ID_ENV_NAME="AWS_SDK_UA_APP_ID";Vr.UA_APP_ID_INI_NAME="sdk-ua-app-id";var ale=({serviceId:e,clientVersion:t})=>{let r=[["aws-sdk-js",t],[`os/${(0,mq.platform)()}`,(0,mq.release)()],["lang/js"],["md/nodejs",`${_b.versions.node}`]],n=(0,ole.isCrtAvailable)();n&&r.push(n),e&&r.push([`api/${e}`,t]),_b.env.AWS_EXECUTION_ENV&&r.push([`exec-env/${_b.env.AWS_EXECUTION_ENV}`]);let i=(0,sle.loadConfig)({environmentVariableSelector:o=>o[Vr.UA_APP_ID_ENV_NAME],configFileSelector:o=>o[Vr.UA_APP_ID_INI_NAME],default:void 0})(),s;return async()=>{if(!s){let o=await i;s=o?[...r,[`app/${o}`]]:[...r]}return s}};Vr.defaultUserAgent=ale});var pq=u(m_=>{"use strict";Object.defineProperty(m_,"__esModule",{value:!0});m_.isArrayBuffer=void 0;var cle=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]";m_.isArrayBuffer=cle});var _q=u(Bs=>{"use strict";Object.defineProperty(Bs,"__esModule",{value:!0});Bs.fromString=Bs.fromArrayBuffer=void 0;var lle=pq(),hb=require("buffer"),dle=(e,t=0,r=e.byteLength-t)=>{if(!(0,lle.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return hb.Buffer.from(e,t,r)};Bs.fromArrayBuffer=dle;var ule=(e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?hb.Buffer.from(e,t):hb.Buffer.from(e)};Bs.fromString=ule});var qc=u(Gs=>{"use strict";Object.defineProperty(Gs,"__esModule",{value:!0});Gs.toUtf8=Gs.fromUtf8=void 0;var hq=_q(),fle=e=>{let t=(0,hq.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)};Gs.fromUtf8=fle;var mle=e=>(0,hq.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8");Gs.toUtf8=mle});var yq=u(p_=>{"use strict";Object.defineProperty(p_,"__esModule",{value:!0});p_.defaultRegionInfoProvider=void 0;var ple=xt(),_le={"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-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"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"}},hle={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"]}]}},yle=async(e,t)=>(0,ple.getRegionInfo)(e,{...t,signingService:"awsssoportal",regionHash:_le,partitionHash:hle});p_.defaultRegionInfoProvider=yle});var gq=u(__=>{"use strict";Object.defineProperty(__,"__esModule",{value:!0});__.getRuntimeConfig=void 0;var gle=ai(),vle=yq(),Sle=e=>{var t,r,n,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:vle.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:gle.parseUrl}};__.getRuntimeConfig=Sle});var y_=u(h_=>{"use strict";Object.defineProperty(h_,"__esModule",{value:!0});h_.ProviderError=void 0;var Mc=class extends Error{constructor(t,r=!0){super(t),this.tryNextLink=r,this.name="ProviderError",Object.setPrototypeOf(this,Mc.prototype)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}};h_.ProviderError=Mc});var vq=u(g_=>{"use strict";Object.defineProperty(g_,"__esModule",{value:!0});g_.CredentialsProviderError=void 0;var wle=y_(),zc=class extends wle.ProviderError{constructor(t,r=!0){super(t,r),this.tryNextLink=r,this.name="CredentialsProviderError",Object.setPrototypeOf(this,zc.prototype)}};g_.CredentialsProviderError=zc});var Sq=u(v_=>{"use strict";Object.defineProperty(v_,"__esModule",{value:!0});v_.chain=void 0;var Ele=y_();function ble(...e){return()=>{let t=Promise.reject(new Ele.ProviderError("No providers in chain"));for(let r of e)t=t.catch(n=>{if(n!=null&&n.tryNextLink)return r();throw n});return t}}v_.chain=ble});var wq=u(S_=>{"use strict";Object.defineProperty(S_,"__esModule",{value:!0});S_.fromStatic=void 0;var Ale=e=>()=>Promise.resolve(e);S_.fromStatic=Ale});var Eq=u(w_=>{"use strict";Object.defineProperty(w_,"__esModule",{value:!0});w_.memoize=void 0;var Tle=(e,t,r)=>{let n,i,s,o=!1,a=async()=>{i||(i=e());try{n=await i,s=!0,o=!1}finally{i=void 0}return n};return t===void 0?async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),n):async c=>((!s||(c==null?void 0:c.forceRefresh))&&(n=await a()),o?n:r&&!r(n)?(o=!0,n):(t(n)&&await a(),n))};w_.memoize=Tle});var kc=u(Ji=>{"use strict";Object.defineProperty(Ji,"__esModule",{value:!0});var jc=q();jc.__exportStar(vq(),Ji);jc.__exportStar(y_(),Ji);jc.__exportStar(Sq(),Ji);jc.__exportStar(wq(),Ji);jc.__exportStar(Eq(),Ji)});var b_=u(E_=>{"use strict";Object.defineProperty(E_,"__esModule",{value:!0});E_.httpRequest=void 0;var yb=kc(),Cle=require("buffer"),xle=require("http");function Ile(e){return new Promise((t,r)=>{var n;let i=(0,xle.request)({method:"GET",...e,hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{r(Object.assign(new yb.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new yb.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new yb.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(Cle.Buffer.concat(a)),i.destroy()})}),i.end()})}E_.httpRequest=Ile});var gb=u($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});$s.fromImdsCredentials=$s.isImdsCredentials=void 0;var Rle=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";$s.isImdsCredentials=Rle;var Nle=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});$s.fromImdsCredentials=Nle});var A_=u(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.providerConfigFromInit=Kr.DEFAULT_MAX_RETRIES=Kr.DEFAULT_TIMEOUT=void 0;Kr.DEFAULT_TIMEOUT=1e3;Kr.DEFAULT_MAX_RETRIES=0;var Ple=({maxRetries:e=Kr.DEFAULT_MAX_RETRIES,timeout:t=Kr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Kr.providerConfigFromInit=Ple});var vb=u(T_=>{"use strict";Object.defineProperty(T_,"__esModule",{value:!0});T_.retry=void 0;var Dle=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};T_.retry=Dle});var Aq=u(tt=>{"use strict";Object.defineProperty(tt,"__esModule",{value:!0});tt.fromContainerMetadata=tt.ENV_CMDS_AUTH_TOKEN=tt.ENV_CMDS_RELATIVE_URI=tt.ENV_CMDS_FULL_URI=void 0;var C_=kc(),Ole=require("url"),Lle=b_(),bq=gb(),qle=A_(),Mle=vb();tt.ENV_CMDS_FULL_URI="AWS_CONTAINER_CREDENTIALS_FULL_URI";tt.ENV_CMDS_RELATIVE_URI="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";tt.ENV_CMDS_AUTH_TOKEN="AWS_CONTAINER_AUTHORIZATION_TOKEN";var zle=(e={})=>{let{timeout:t,maxRetries:r}=(0,qle.providerConfigFromInit)(e);return()=>(0,Mle.retry)(async()=>{let n=await Ble(),i=JSON.parse(await jle(t,n));if(!(0,bq.isImdsCredentials)(i))throw new C_.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,bq.fromImdsCredentials)(i)},r)};tt.fromContainerMetadata=zle;var jle=async(e,t)=>(process.env[tt.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[tt.ENV_CMDS_AUTH_TOKEN]}),(await(0,Lle.httpRequest)({...t,timeout:e})).toString()),kle="169.254.170.2",Fle={localhost:!0,"127.0.0.1":!0},Ule={"http:":!0,"https:":!0},Ble=async()=>{if(process.env[tt.ENV_CMDS_RELATIVE_URI])return{hostname:kle,path:process.env[tt.ENV_CMDS_RELATIVE_URI]};if(process.env[tt.ENV_CMDS_FULL_URI]){let e=(0,Ole.parse)(process.env[tt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in Fle))throw new C_.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in Ule))throw new C_.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new C_.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${tt.ENV_CMDS_RELATIVE_URI} or ${tt.ENV_CMDS_FULL_URI} environment variable is set`,!1)}});var Tq=u(Fc=>{"use strict";Object.defineProperty(Fc,"__esModule",{value:!0});Fc.Endpoint=void 0;var Gle;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(Gle=Fc.Endpoint||(Fc.Endpoint={}))});var Cq=u(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.ENDPOINT_CONFIG_OPTIONS=Hr.CONFIG_ENDPOINT_NAME=Hr.ENV_ENDPOINT_NAME=void 0;Hr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Hr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Hr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Hr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Hr.CONFIG_ENDPOINT_NAME],default:void 0}});var Sb=u(Uc=>{"use strict";Object.defineProperty(Uc,"__esModule",{value:!0});Uc.EndpointMode=void 0;var $le;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})($le=Uc.EndpointMode||(Uc.EndpointMode={}))});var xq=u(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.ENDPOINT_MODE_CONFIG_OPTIONS=Wr.CONFIG_ENDPOINT_MODE_NAME=Wr.ENV_ENDPOINT_MODE_NAME=void 0;var Vle=Sb();Wr.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";Wr.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";Wr.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Wr.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[Wr.CONFIG_ENDPOINT_MODE_NAME],default:Vle.EndpointMode.IPv4}});var Eb=u(x_=>{"use strict";Object.defineProperty(x_,"__esModule",{value:!0});x_.getInstanceMetadataEndpoint=void 0;var Rq=Ur(),Kle=ai(),Iq=Tq(),Hle=Cq(),wb=Sb(),Wle=xq(),Jle=async()=>(0,Kle.parseUrl)(await Yle()||await Qle());x_.getInstanceMetadataEndpoint=Jle;var Yle=async()=>(0,Rq.loadConfig)(Hle.ENDPOINT_CONFIG_OPTIONS)(),Qle=async()=>{let e=await(0,Rq.loadConfig)(Wle.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case wb.EndpointMode.IPv4:return Iq.Endpoint.IPv4;case wb.EndpointMode.IPv6:return Iq.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(wb.EndpointMode)}`)}}});var Nq=u(I_=>{"use strict";Object.defineProperty(I_,"__esModule",{value:!0});I_.getExtendedInstanceMetadataCredentials=void 0;var Xle=15*60,Zle=5*60,ede="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",tde=(e,t)=>{var r;let n=Xle+Math.floor(Math.random()*Zle),i=new Date(Date.now()+n*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+ede);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};I_.getExtendedInstanceMetadataCredentials=tde});var Dq=u(R_=>{"use strict";Object.defineProperty(R_,"__esModule",{value:!0});R_.staticStabilityProvider=void 0;var Pq=Nq(),rde=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,Pq.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,Pq.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};R_.staticStabilityProvider=rde});var Mq=u(N_=>{"use strict";Object.defineProperty(N_,"__esModule",{value:!0});N_.fromInstanceMetadata=void 0;var nde=kc(),bb=b_(),Oq=gb(),ide=A_(),Lq=vb(),sde=Eb(),ode=Dq(),qq="/latest/meta-data/iam/security-credentials/",ade="/latest/api/token",cde=(e={})=>(0,ode.staticStabilityProvider)(lde(e),{logger:e.logger});N_.fromInstanceMetadata=cde;var lde=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,ide.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,Lq.retry)(async()=>{let c;try{c=await ude(o)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)).trim();return(0,Lq.retry)(async()=>{let c;try{c=await fde(a,o)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)};return async()=>{let s=await(0,sde.getInstanceMetadataEndpoint)();if(t)return i(n,{...s,timeout:r});{let o;try{o=(await dde({...s,timeout:r})).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),i(n,{...s,timeout:r})}return i(n,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:r})}}},dde=async e=>(0,bb.httpRequest)({...e,path:ade,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),ude=async e=>(await(0,bb.httpRequest)({...e,path:qq})).toString(),fde=async(e,t)=>{let r=JSON.parse((await(0,bb.httpRequest)({...t,path:qq+e})).toString());if(!(0,Oq.isImdsCredentials)(r))throw new nde.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,Oq.fromImdsCredentials)(r)}});var jq=u(zq=>{"use strict";Object.defineProperty(zq,"__esModule",{value:!0})});var kq=u(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});Jr.getInstanceMetadataEndpoint=Jr.httpRequest=void 0;var P_=q();P_.__exportStar(Aq(),Jr);P_.__exportStar(Mq(),Jr);P_.__exportStar(A_(),Jr);P_.__exportStar(jq(),Jr);var mde=b_();Object.defineProperty(Jr,"httpRequest",{enumerable:!0,get:function(){return mde.httpRequest}});var pde=Eb();Object.defineProperty(Jr,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return pde.getInstanceMetadataEndpoint}})});var Fq=u(Nt=>{"use strict";Object.defineProperty(Nt,"__esModule",{value:!0});Nt.IMDS_REGION_PATH=Nt.DEFAULTS_MODE_OPTIONS=Nt.ENV_IMDS_DISABLED=Nt.AWS_DEFAULT_REGION_ENV=Nt.AWS_REGION_ENV=Nt.AWS_EXECUTION_ENV=void 0;Nt.AWS_EXECUTION_ENV="AWS_EXECUTION_ENV";Nt.AWS_REGION_ENV="AWS_REGION";Nt.AWS_DEFAULT_REGION_ENV="AWS_DEFAULT_REGION";Nt.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";Nt.DEFAULTS_MODE_OPTIONS=["in-region","cross-region","mobile","standard","legacy"];Nt.IMDS_REGION_PATH="/latest/meta-data/placement/region"});var Uq=u(D_=>{"use strict";Object.defineProperty(D_,"__esModule",{value:!0});D_.NODE_DEFAULTS_MODE_CONFIG_OPTIONS=void 0;var _de="AWS_DEFAULTS_MODE",hde="defaults_mode";D_.NODE_DEFAULTS_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[_de],configFileSelector:e=>e[hde],default:"legacy"}});var $q=u(O_=>{"use strict";Object.defineProperty(O_,"__esModule",{value:!0});O_.resolveDefaultsModeConfig=void 0;var yde=xt(),Bq=kq(),Gq=Ur(),gde=kc(),ci=Fq(),vde=Uq(),Sde=({region:e=(0,Gq.loadConfig)(yde.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=(0,Gq.loadConfig)(vde.NODE_DEFAULTS_MODE_CONFIG_OPTIONS)}={})=>(0,gde.memoize)(async()=>{let r=typeof t=="function"?await t():t;switch(r==null?void 0:r.toLowerCase()){case"auto":return wde(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r==null?void 0:r.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${ci.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${r}`)}});O_.resolveDefaultsModeConfig=Sde;var wde=async e=>{if(e){let t=typeof e=="function"?await e():e,r=await Ede();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},Ede=async()=>{var e;if(process.env[ci.AWS_EXECUTION_ENV]&&(process.env[ci.AWS_REGION_ENV]||process.env[ci.AWS_DEFAULT_REGION_ENV]))return(e=process.env[ci.AWS_REGION_ENV])!==null&&e!==void 0?e:process.env[ci.AWS_DEFAULT_REGION_ENV];if(!process.env[ci.ENV_IMDS_DISABLED])try{let t=await(0,Bq.getInstanceMetadataEndpoint)();return(await(0,Bq.httpRequest)({...t,path:ci.IMDS_REGION_PATH})).toString()}catch{}}});var Bc=u(Ab=>{"use strict";Object.defineProperty(Ab,"__esModule",{value:!0});var bde=q();bde.__exportStar($q(),Ab)});var Wq=u(q_=>{"use strict";Object.defineProperty(q_,"__esModule",{value:!0});q_.getRuntimeConfig=void 0;var Ade=q(),Tde=Ade.__importDefault(GL()),L_=xt(),Cde=Rc(),Tb=vn(),Gc=Ur(),Vq=Pc(),Kq=Dc(),xde=Oc(),Ide=Lc(),Hq=qc(),Rde=gq(),Nde=N(),Pde=Bc(),Dde=e=>{var t,r,n,i,s,o,a,c,d,f,_,m,h,g;let y=(0,Pde.resolveDefaultsModeConfig)(e),A=()=>y().then(Nde.loadConfigsForDefaultMode),R=(0,Rde.getRuntimeConfig)(e);return{...R,...e,runtime:"node",defaultsMode:y,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:Kq.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:Kq.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:xde.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,Ide.defaultUserAgent)({serviceId:R.serviceId,clientVersion:Tde.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,Gc.loadConfig)(Tb.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,Gc.loadConfig)(L_.NODE_REGION_CONFIG_OPTIONS,L_.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new Vq.NodeHttpHandler(A),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,Gc.loadConfig)({...Tb.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await A()).retryMode||Tb.DEFAULT_RETRY_MODE}),sha256:(d=e==null?void 0:e.sha256)!==null&&d!==void 0?d:Cde.Hash.bind(null,"sha256"),streamCollector:(f=e==null?void 0:e.streamCollector)!==null&&f!==void 0?f:Vq.streamCollector,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!==null&&_!==void 0?_:(0,Gc.loadConfig)(L_.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(m=e==null?void 0:e.useFipsEndpoint)!==null&&m!==void 0?m:(0,Gc.loadConfig)(L_.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(h=e==null?void 0:e.utf8Decoder)!==null&&h!==void 0?h:Hq.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:Hq.toUtf8}};q_.getRuntimeConfig=Dde});var $c=u(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});M_.SSOClient=void 0;var Jq=xt(),Ode=Ma(),Yq=ka(),Lde=Fa(),Qq=vn(),Xq=Wa(),qde=N(),Mde=Wq(),Cb=class extends qde.Client{constructor(t){let r=(0,Mde.getRuntimeConfig)(t),n=(0,Jq.resolveRegionConfig)(r),i=(0,Jq.resolveEndpointsConfig)(n),s=(0,Qq.resolveRetryConfig)(i),o=(0,Yq.resolveHostHeaderConfig)(s),a=(0,Xq.resolveUserAgentConfig)(o);super(a),this.config=a,this.middlewareStack.use((0,Qq.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Ode.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Yq.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,Lde.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,Xq.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};M_.SSOClient=Cb});var j_=u(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.SSO=void 0;var zde=WE(),jde=Vp(),kde=Hp(),Fde=XE(),Ude=$c(),xb=class extends Ude.SSOClient{getRoleCredentials(t,r,n){let i=new zde.GetRoleCredentialsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccountRoles(t,r,n){let i=new jde.ListAccountRolesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccounts(t,r,n){let i=new kde.ListAccountsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}logout(t,r,n){let i=new Fde.LogoutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};z_.SSO=xb});var Zq=u(Vs=>{"use strict";Object.defineProperty(Vs,"__esModule",{value:!0});var k_=q();k_.__exportStar(WE(),Vs);k_.__exportStar(Vp(),Vs);k_.__exportStar(Hp(),Vs);k_.__exportStar(XE(),Vs)});var eM=u(Ib=>{"use strict";Object.defineProperty(Ib,"__esModule",{value:!0});var Bde=q();Bde.__exportStar(Hi(),Ib)});var rM=u(tM=>{"use strict";Object.defineProperty(tM,"__esModule",{value:!0})});var nM=u(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.paginateListAccountRoles=void 0;var Gde=Vp(),$de=j_(),Vde=$c(),Kde=async(e,t,...r)=>await e.send(new Gde.ListAccountRolesCommand(t),...r),Hde=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*Wde(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof $de.SSO)s=await Hde(e.client,t,...r);else if(e.client instanceof Vde.SSOClient)s=await Kde(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}F_.paginateListAccountRoles=Wde});var iM=u(U_=>{"use strict";Object.defineProperty(U_,"__esModule",{value:!0});U_.paginateListAccounts=void 0;var Jde=Hp(),Yde=j_(),Qde=$c(),Xde=async(e,t,...r)=>await e.send(new Jde.ListAccountsCommand(t),...r),Zde=async(e,t,...r)=>await e.listAccounts(t,...r);async function*eue(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof Yde.SSO)s=await Zde(e.client,t,...r);else if(e.client instanceof Qde.SSOClient)s=await Xde(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}U_.paginateListAccounts=eue});var sM=u(Vc=>{"use strict";Object.defineProperty(Vc,"__esModule",{value:!0});var Rb=q();Rb.__exportStar(rM(),Vc);Rb.__exportStar(nM(),Vc);Rb.__exportStar(iM(),Vc)});var oM=u(An=>{"use strict";Object.defineProperty(An,"__esModule",{value:!0});An.SSOServiceException=void 0;var Kc=q();Kc.__exportStar(j_(),An);Kc.__exportStar($c(),An);Kc.__exportStar(Zq(),An);Kc.__exportStar(eM(),An);Kc.__exportStar(sM(),An);var tue=Op();Object.defineProperty(An,"SSOServiceException",{enumerable:!0,get:function(){return tue.SSOServiceException}})});var cM=u($_=>{"use strict";Object.defineProperty($_,"__esModule",{value:!0});$_.resolveSSOCredentials=void 0;var aM=oM(),B_=$t(),rue=mc(),nue=15*60*1e3,G_=!1,iue=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,o="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,rue.getSSOTokenFromFile)(e)}catch{throw new B_.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${o}`,G_)}if(new Date(s.expiresAt).getTime()-Date.now()<=nue)throw new B_.CredentialsProviderError(`The SSO session associated with this profile has expired. ${o}`,G_);let{accessToken:a}=s,c=i||new aM.SSOClient({region:r}),d;try{d=await c.send(new aM.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:a}))}catch(g){throw B_.CredentialsProviderError.from(g,G_)}let{roleCredentials:{accessKeyId:f,secretAccessKey:_,sessionToken:m,expiration:h}={}}=d;if(!f||!_||!m||!h)throw new B_.CredentialsProviderError("SSO returns an invalid temporary credential.",G_);return{accessKeyId:f,secretAccessKey:_,sessionToken:m,expiration:new Date(h)}};$_.resolveSSOCredentials=iue});var Nb=u(V_=>{"use strict";Object.defineProperty(V_,"__esModule",{value:!0});V_.validateSsoProfile=void 0;var sue=$t(),oue=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=e;if(!t||!r||!n||!i)throw new sue.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(", ")}
|
|
28
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};V_.validateSsoProfile=oue});var fM=u(K_=>{"use strict";Object.defineProperty(K_,"__esModule",{value:!0});K_.fromSSO=void 0;var lM=$t(),dM=mc(),aue=VE(),uM=cM(),cue=Nb(),lue=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let o=await(0,dM.parseKnownFiles)(e),a=(0,dM.getProfileName)(e),c=o[a];if(!(0,aue.isSsoProfile)(c))throw new lM.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:d,sso_account_id:f,sso_region:_,sso_role_name:m}=(0,cue.validateSsoProfile)(c);return(0,uM.resolveSSOCredentials)({ssoStartUrl:d,ssoAccountId:f,ssoRegion:_,ssoRoleName:m,ssoClient:s})}else{if(!t||!r||!n||!i)throw new lM.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,uM.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};K_.fromSSO=lue});var pM=u(mM=>{"use strict";Object.defineProperty(mM,"__esModule",{value:!0})});var Pb=u(Ks=>{"use strict";Object.defineProperty(Ks,"__esModule",{value:!0});var H_=q();H_.__exportStar(fM(),Ks);H_.__exportStar(VE(),Ks);H_.__exportStar(pM(),Ks);H_.__exportStar(Nb(),Ks)});var hM=u(Hs=>{"use strict";Object.defineProperty(Hs,"__esModule",{value:!0});Hs.resolveSsoCredentials=Hs.isSsoProfile=void 0;var _M=Pb(),due=Pb();Object.defineProperty(Hs,"isSsoProfile",{enumerable:!0,get:function(){return due.isSsoProfile}});var uue=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=(0,_M.validateSsoProfile)(e);return(0,_M.fromSSO)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i})()};Hs.resolveSsoCredentials=uue});var yM=u(Ws=>{"use strict";Object.defineProperty(Ws,"__esModule",{value:!0});Ws.resolveStaticCredentials=Ws.isStaticCredsProfile=void 0;var fue=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;Ws.isStaticCredsProfile=fue;var mue=e=>Promise.resolve({accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token});Ws.resolveStaticCredentials=mue});var Db=u(W_=>{"use strict";Object.defineProperty(W_,"__esModule",{value:!0});W_.fromWebToken=void 0;var pue=$t(),_ue=e=>()=>{let{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:i,policyArns:s,policy:o,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new pue.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:i,PolicyArns:s,Policy:o,DurationSeconds:a})};W_.fromWebToken=_ue});var gM=u(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.fromTokenFile=void 0;var hue=$t(),yue=require("fs"),gue=Db(),vue="AWS_WEB_IDENTITY_TOKEN_FILE",Sue="AWS_ROLE_ARN",wue="AWS_ROLE_SESSION_NAME",Eue=(e={})=>async()=>bue(e);J_.fromTokenFile=Eue;var bue=e=>{var t,r,n;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[vue],s=(r=e==null?void 0:e.roleArn)!==null&&r!==void 0?r:process.env[Sue],o=(n=e==null?void 0:e.roleSessionName)!==null&&n!==void 0?n:process.env[wue];if(!i||!s)throw new hue.CredentialsProviderError("Web identity configuration not specified");return(0,gue.fromWebToken)({...e,webIdentityToken:(0,yue.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:o})()}});var SM=u(Y_=>{"use strict";Object.defineProperty(Y_,"__esModule",{value:!0});var vM=q();vM.__exportStar(gM(),Y_);vM.__exportStar(Db(),Y_)});var wM=u(Js=>{"use strict";Object.defineProperty(Js,"__esModule",{value:!0});Js.resolveWebIdentityCredentials=Js.isWebIdentityProfile=void 0;var Aue=SM(),Tue=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;Js.isWebIdentityProfile=Tue;var Cue=async(e,t)=>(0,Aue.fromTokenFile)({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity})();Js.resolveWebIdentityCredentials=Cue});var $E=u(X_=>{"use strict";Object.defineProperty(X_,"__esModule",{value:!0});X_.resolveProfileData=void 0;var xue=$t(),EM=OL(),bM=hM(),Q_=yM(),AM=wM(),Iue=async(e,t,r,n={})=>{let i=t[e];if(Object.keys(n).length>0&&(0,Q_.isStaticCredsProfile)(i))return(0,Q_.resolveStaticCredentials)(i);if((0,EM.isAssumeRoleProfile)(i))return(0,EM.resolveAssumeRoleCredentials)(e,t,r,n);if((0,Q_.isStaticCredsProfile)(i))return(0,Q_.resolveStaticCredentials)(i);if((0,AM.isWebIdentityProfile)(i))return(0,AM.resolveWebIdentityCredentials)(i,r);if((0,bM.isSsoProfile)(i))return(0,bM.resolveSsoCredentials)(i);throw new xue.CredentialsProviderError(`Profile ${e} could not be found or parsed in shared credentials file.`)};X_.resolveProfileData=Iue});var CM=u(Z_=>{"use strict";Object.defineProperty(Z_,"__esModule",{value:!0});Z_.fromIni=void 0;var TM=mc(),Rue=$E(),Nue=(e={})=>async()=>{let t=await(0,TM.parseKnownFiles)(e);return(0,Rue.resolveProfileData)((0,TM.getProfileName)(e),t,e)};Z_.fromIni=Nue});var xM=u(Ob=>{"use strict";Object.defineProperty(Ob,"__esModule",{value:!0});var Pue=q();Pue.__exportStar(CM(),Ob)});var th=u(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});eh.getHomeDir=void 0;var Due=require("os"),Oue=require("path"),Lue=()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:n=`C:${Oue.sep}`}=process.env;return e||t||(r?`${n}${r}`:(0,Due.homedir)())};eh.getHomeDir=Lue});var IM=u(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});Yr.getProfileName=Yr.DEFAULT_PROFILE=Yr.ENV_PROFILE=void 0;Yr.ENV_PROFILE="AWS_PROFILE";Yr.DEFAULT_PROFILE="default";var que=e=>e.profile||process.env[Yr.ENV_PROFILE]||Yr.DEFAULT_PROFILE;Yr.getProfileName=que});var Lb=u(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});rh.getSSOTokenFilepath=void 0;var Mue=require("crypto"),zue=require("path"),jue=th(),kue=e=>{let r=(0,Mue.createHash)("sha1").update(e).digest("hex");return(0,zue.join)((0,jue.getHomeDir)(),".aws","sso","cache",`${r}.json`)};rh.getSSOTokenFilepath=kue});var RM=u(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});nh.getSSOTokenFromFile=void 0;var Fue=require("fs"),Uue=Lb(),{readFile:Bue}=Fue.promises,Gue=async e=>{let t=(0,Uue.getSSOTokenFilepath)(e),r=await Bue(t,"utf8");return JSON.parse(r)};nh.getSSOTokenFromFile=Gue});var NM=u(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});ih.normalizeConfigFile=void 0;var $ue=/^profile\s(["'])?([^\1]+)\1$/,Vue=e=>{let t={};for(let r of Object.keys(e)){let n;if(r==="default")t.default=e.default;else if(n=$ue.exec(r)){let[i,s,o]=n;o&&(t[o]=e[r])}}return t};ih.normalizeConfigFile=Vue});var PM=u(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});sh.parseIni=void 0;var Kue=["__proto__","profile __proto__"],Hue=e=>{let t={},r;for(let n of e.split(/\r?\n/)){n=n.split(/(^|\s)[;#]/)[0];let i=n.match(/^\s*\[([^\[\]]+)]\s*$/);if(i){if(r=i[1],Kue.includes(r))throw new Error(`Found invalid profile name "${r}"`)}else if(r){let s=n.match(/^\s*(.+?)\s*=\s*(.+?)\s*$/);s&&(t[r]=t[r]||{},t[r][s[1]]=s[2])}}return t};sh.parseIni=Hue});var DM=u(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});oh.slurpFile=void 0;var Wue=require("fs"),{readFile:Jue}=Wue.promises,qb={},Yue=e=>(qb[e]||(qb[e]=Jue(e,"utf8")),qb[e]);oh.slurpFile=Yue});var Mb=u(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.loadSharedConfigFiles=Qr.ENV_CONFIG_PATH=Qr.ENV_CREDENTIALS_PATH=void 0;var OM=require("path"),LM=th(),Que=NM(),qM=PM(),MM=DM();Qr.ENV_CREDENTIALS_PATH="AWS_SHARED_CREDENTIALS_FILE";Qr.ENV_CONFIG_PATH="AWS_CONFIG_FILE";var zM=()=>({}),Xue=async(e={})=>{let{filepath:t=process.env[Qr.ENV_CREDENTIALS_PATH]||(0,OM.join)((0,LM.getHomeDir)(),".aws","credentials"),configFilepath:r=process.env[Qr.ENV_CONFIG_PATH]||(0,OM.join)((0,LM.getHomeDir)(),".aws","config")}=e,n=await Promise.all([(0,MM.slurpFile)(r).then(qM.parseIni).then(Que.normalizeConfigFile).catch(zM),(0,MM.slurpFile)(t).then(qM.parseIni).catch(zM)]);return{configFile:n[0],credentialsFile:n[1]}};Qr.loadSharedConfigFiles=Xue});var jM=u(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});ah.parseKnownFiles=void 0;var Zue=Mb(),efe=async e=>{let t=await(0,Zue.loadSharedConfigFiles)(e);return{...t.configFile,...t.credentialsFile}};ah.parseKnownFiles=efe});var FM=u(kM=>{"use strict";Object.defineProperty(kM,"__esModule",{value:!0})});var Hc=u(Tn=>{"use strict";Object.defineProperty(Tn,"__esModule",{value:!0});var Yi=q();Yi.__exportStar(th(),Tn);Yi.__exportStar(IM(),Tn);Yi.__exportStar(Lb(),Tn);Yi.__exportStar(RM(),Tn);Yi.__exportStar(Mb(),Tn);Yi.__exportStar(jM(),Tn);Yi.__exportStar(FM(),Tn)});var UM=u(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});ch.getValidatedProcessCredentials=void 0;var tfe=(e,t)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let r=new Date;if(new Date(t.Expiration)<r)throw Error(`Profile ${e} credential_process returned expired credentials.`)}return{accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)}}};ch.getValidatedProcessCredentials=tfe});var BM=u(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});lh.resolveProcessCredentials=void 0;var zb=Gt(),rfe=require("child_process"),nfe=require("util"),ife=UM(),sfe=async(e,t)=>{let r=t[e];if(t[e]){let n=r.credential_process;if(n!==void 0){let i=(0,nfe.promisify)(rfe.exec);try{let{stdout:s}=await i(n),o;try{o=JSON.parse(s.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return(0,ife.getValidatedProcessCredentials)(e,o)}catch(s){throw new zb.CredentialsProviderError(s.message)}}else throw new zb.CredentialsProviderError(`Profile ${e} did not contain credential_process.`)}else throw new zb.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`)};lh.resolveProcessCredentials=sfe});var $M=u(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});dh.fromProcess=void 0;var GM=Hc(),ofe=BM(),afe=(e={})=>async()=>{let t=await(0,GM.parseKnownFiles)(e);return(0,ofe.resolveProcessCredentials)((0,GM.getProfileName)(e),t)};dh.fromProcess=afe});var VM=u(jb=>{"use strict";Object.defineProperty(jb,"__esModule",{value:!0});var cfe=q();cfe.__exportStar($M(),jb)});var kb=u(uh=>{"use strict";Object.defineProperty(uh,"__esModule",{value:!0});uh.isSsoProfile=void 0;var lfe=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");uh.isSsoProfile=lfe});var mh=u(fh=>{"use strict";Object.defineProperty(fh,"__esModule",{value:!0});fh.SSOServiceException=void 0;var dfe=N(),Wc=class extends dfe.ServiceException{constructor(t){super(t),Object.setPrototypeOf(this,Wc.prototype)}};fh.SSOServiceException=Wc});var Qi=u(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.LogoutRequest=ce.ListAccountsResponse=ce.ListAccountsRequest=ce.ListAccountRolesResponse=ce.RoleInfo=ce.ListAccountRolesRequest=ce.UnauthorizedException=ce.TooManyRequestsException=ce.ResourceNotFoundException=ce.InvalidRequestException=ce.GetRoleCredentialsResponse=ce.RoleCredentials=ce.GetRoleCredentialsRequest=ce.AccountInfo=void 0;var Ys=N(),ph=mh(),ufe;(function(e){e.filterSensitiveLog=t=>({...t})})(ufe=ce.AccountInfo||(ce.AccountInfo={}));var ffe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:Ys.SENSITIVE_STRING}})})(ffe=ce.GetRoleCredentialsRequest||(ce.GetRoleCredentialsRequest={}));var KM;(function(e){e.filterSensitiveLog=t=>({...t,...t.secretAccessKey&&{secretAccessKey:Ys.SENSITIVE_STRING},...t.sessionToken&&{sessionToken:Ys.SENSITIVE_STRING}})})(KM=ce.RoleCredentials||(ce.RoleCredentials={}));var mfe;(function(e){e.filterSensitiveLog=t=>({...t,...t.roleCredentials&&{roleCredentials:KM.filterSensitiveLog(t.roleCredentials)}})})(mfe=ce.GetRoleCredentialsResponse||(ce.GetRoleCredentialsResponse={}));var Jc=class extends ph.SSOServiceException{constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),this.name="InvalidRequestException",this.$fault="client",Object.setPrototypeOf(this,Jc.prototype)}};ce.InvalidRequestException=Jc;var Yc=class extends ph.SSOServiceException{constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),this.name="ResourceNotFoundException",this.$fault="client",Object.setPrototypeOf(this,Yc.prototype)}};ce.ResourceNotFoundException=Yc;var Qc=class extends ph.SSOServiceException{constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),this.name="TooManyRequestsException",this.$fault="client",Object.setPrototypeOf(this,Qc.prototype)}};ce.TooManyRequestsException=Qc;var Xc=class extends ph.SSOServiceException{constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),this.name="UnauthorizedException",this.$fault="client",Object.setPrototypeOf(this,Xc.prototype)}};ce.UnauthorizedException=Xc;var pfe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:Ys.SENSITIVE_STRING}})})(pfe=ce.ListAccountRolesRequest||(ce.ListAccountRolesRequest={}));var _fe;(function(e){e.filterSensitiveLog=t=>({...t})})(_fe=ce.RoleInfo||(ce.RoleInfo={}));var hfe;(function(e){e.filterSensitiveLog=t=>({...t})})(hfe=ce.ListAccountRolesResponse||(ce.ListAccountRolesResponse={}));var yfe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:Ys.SENSITIVE_STRING}})})(yfe=ce.ListAccountsRequest||(ce.ListAccountsRequest={}));var gfe;(function(e){e.filterSensitiveLog=t=>({...t})})(gfe=ce.ListAccountsResponse||(ce.ListAccountsResponse={}));var vfe;(function(e){e.filterSensitiveLog=t=>({...t,...t.accessToken&&{accessToken:Ys.SENSITIVE_STRING}})})(vfe=ce.LogoutRequest||(ce.LogoutRequest={}))});var Zc=u(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 _h=Ct(),Ae=N(),hh=Qi(),yh=mh(),Sfe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...wh(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/federation/credentials`,c={...e.roleName!==void 0&&{role_name:e.roleName},...e.accountId!==void 0&&{account_id:e.accountId}},d;return new _h.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:d})};rt.serializeAws_restJson1GetRoleCredentialsCommand=Sfe;var wfe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...wh(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/roles`,c={...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 _h.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:d})};rt.serializeAws_restJson1ListAccountRolesCommand=wfe;var Efe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...wh(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/assignment/accounts`,c={...e.nextToken!==void 0&&{next_token:e.nextToken},...e.maxResults!==void 0&&{max_result:e.maxResults.toString()}},d;return new _h.HttpRequest({protocol:n,hostname:r,port:i,method:"GET",headers:o,path:a,query:c,body:d})};rt.serializeAws_restJson1ListAccountsCommand=Efe;var bfe=async(e,t)=>{let{hostname:r,protocol:n="https",port:i,path:s}=await t.endpoint(),o={...wh(e.accessToken)&&{"x-amz-sso_bearer_token":e.accessToken}},a=`${s!=null&&s.endsWith("/")?s.slice(0,-1):s||""}/logout`,c;return new _h.HttpRequest({protocol:n,hostname:r,port:i,method:"POST",headers:o,path:a,body:c})};rt.serializeAws_restJson1LogoutCommand=bfe;var Afe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Tfe(e,t);let r={$metadata:ir(e),roleCredentials:void 0},n=(0,Ae.expectNonNull)((0,Ae.expectObject)(await Xi(e.body,t)),"body");return n.roleCredentials!==void 0&&n.roleCredentials!==null&&(r.roleCredentials=Lfe(n.roleCredentials,t)),Promise.resolve(r)};rt.deserializeAws_restJson1GetRoleCredentialsCommand=Afe;var Tfe=async(e,t)=>{let r={...e,body:await Xi(e.body,t)},n,i="UnknownError";switch(i=Eh(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await gh(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Fb(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await vh(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Sh(r,t);default:let s=r.body;throw n=new yh.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Ae.decorateServiceException)(n,s)}},Cfe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return xfe(e,t);let r={$metadata:ir(e),nextToken:void 0,roleList:void 0},n=(0,Ae.expectNonNull)((0,Ae.expectObject)(await Xi(e.body,t)),"body");return n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Ae.expectString)(n.nextToken)),n.roleList!==void 0&&n.roleList!==null&&(r.roleList=Mfe(n.roleList,t)),Promise.resolve(r)};rt.deserializeAws_restJson1ListAccountRolesCommand=Cfe;var xfe=async(e,t)=>{let r={...e,body:await Xi(e.body,t)},n,i="UnknownError";switch(i=Eh(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await gh(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Fb(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await vh(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Sh(r,t);default:let s=r.body;throw n=new yh.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Ae.decorateServiceException)(n,s)}},Ife=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Rfe(e,t);let r={$metadata:ir(e),accountList:void 0,nextToken:void 0},n=(0,Ae.expectNonNull)((0,Ae.expectObject)(await Xi(e.body,t)),"body");return n.accountList!==void 0&&n.accountList!==null&&(r.accountList=Ofe(n.accountList,t)),n.nextToken!==void 0&&n.nextToken!==null&&(r.nextToken=(0,Ae.expectString)(n.nextToken)),Promise.resolve(r)};rt.deserializeAws_restJson1ListAccountsCommand=Ife;var Rfe=async(e,t)=>{let r={...e,body:await Xi(e.body,t)},n,i="UnknownError";switch(i=Eh(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await gh(r,t);case"ResourceNotFoundException":case"com.amazonaws.sso#ResourceNotFoundException":throw await Fb(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await vh(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Sh(r,t);default:let s=r.body;throw n=new yh.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Ae.decorateServiceException)(n,s)}},Nfe=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Pfe(e,t);let r={$metadata:ir(e)};return await HM(e.body,t),Promise.resolve(r)};rt.deserializeAws_restJson1LogoutCommand=Nfe;var Pfe=async(e,t)=>{let r={...e,body:await Xi(e.body,t)},n,i="UnknownError";switch(i=Eh(e,r.body),i){case"InvalidRequestException":case"com.amazonaws.sso#InvalidRequestException":throw await gh(r,t);case"TooManyRequestsException":case"com.amazonaws.sso#TooManyRequestsException":throw await vh(r,t);case"UnauthorizedException":case"com.amazonaws.sso#UnauthorizedException":throw await Sh(r,t);default:let s=r.body;throw n=new yh.SSOServiceException({name:s.code||s.Code||i,$fault:"client",$metadata:ir(e)}),(0,Ae.decorateServiceException)(n,s)}},gh=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ae.expectString)(n.message));let i=new hh.InvalidRequestException({$metadata:ir(e),...r});return(0,Ae.decorateServiceException)(i,e.body)},Fb=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ae.expectString)(n.message));let i=new hh.ResourceNotFoundException({$metadata:ir(e),...r});return(0,Ae.decorateServiceException)(i,e.body)},vh=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ae.expectString)(n.message));let i=new hh.TooManyRequestsException({$metadata:ir(e),...r});return(0,Ae.decorateServiceException)(i,e.body)},Sh=async(e,t)=>{let r={},n=e.body;n.message!==void 0&&n.message!==null&&(r.message=(0,Ae.expectString)(n.message));let i=new hh.UnauthorizedException({$metadata:ir(e),...r});return(0,Ae.decorateServiceException)(i,e.body)},Dfe=(e,t)=>({accountId:(0,Ae.expectString)(e.accountId),accountName:(0,Ae.expectString)(e.accountName),emailAddress:(0,Ae.expectString)(e.emailAddress)}),Ofe=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:Dfe(n,t)),Lfe=(e,t)=>({accessKeyId:(0,Ae.expectString)(e.accessKeyId),expiration:(0,Ae.expectLong)(e.expiration),secretAccessKey:(0,Ae.expectString)(e.secretAccessKey),sessionToken:(0,Ae.expectString)(e.sessionToken)}),qfe=(e,t)=>({accountId:(0,Ae.expectString)(e.accountId),roleName:(0,Ae.expectString)(e.roleName)}),Mfe=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>n===null?null:qfe(n,t)),ir=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"]}},HM=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),zfe=(e,t)=>HM(e,t).then(r=>t.utf8Encoder(r)),wh=e=>e!=null&&e!==""&&(!Object.getOwnPropertyNames(e).includes("length")||e.length!=0)&&(!Object.getOwnPropertyNames(e).includes("size")||e.size!=0),Xi=(e,t)=>zfe(e,t).then(r=>r.length?JSON.parse(r):{}),Eh=(e,t)=>{let r=(s,o)=>Object.keys(s).find(a=>a.toLowerCase()===o.toLowerCase()),n=s=>{let o=s;return o.indexOf(":")>=0&&(o=o.split(":")[0]),o.indexOf("#")>=0&&(o=o.split("#")[1]),o},i=r(e.headers,"x-amzn-errortype");return i!==void 0?n(e.headers[i]):t.code!==void 0?n(t.code):t.__type!==void 0?n(t.__type):""}});var Bb=u(bh=>{"use strict";Object.defineProperty(bh,"__esModule",{value:!0});bh.GetRoleCredentialsCommand=void 0;var jfe=U(),kfe=N(),WM=Qi(),JM=Zc(),Ub=class extends kfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,jfe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"GetRoleCredentialsCommand",inputFilterSensitiveLog:WM.GetRoleCredentialsRequest.filterSensitiveLog,outputFilterSensitiveLog:WM.GetRoleCredentialsResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,JM.serializeAws_restJson1GetRoleCredentialsCommand)(t,r)}deserialize(t,r){return(0,JM.deserializeAws_restJson1GetRoleCredentialsCommand)(t,r)}};bh.GetRoleCredentialsCommand=Ub});var Th=u(Ah=>{"use strict";Object.defineProperty(Ah,"__esModule",{value:!0});Ah.ListAccountRolesCommand=void 0;var Ffe=U(),Ufe=N(),YM=Qi(),QM=Zc(),Gb=class extends Ufe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Ffe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountRolesCommand",inputFilterSensitiveLog:YM.ListAccountRolesRequest.filterSensitiveLog,outputFilterSensitiveLog:YM.ListAccountRolesResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,QM.serializeAws_restJson1ListAccountRolesCommand)(t,r)}deserialize(t,r){return(0,QM.deserializeAws_restJson1ListAccountRolesCommand)(t,r)}};Ah.ListAccountRolesCommand=Gb});var xh=u(Ch=>{"use strict";Object.defineProperty(Ch,"__esModule",{value:!0});Ch.ListAccountsCommand=void 0;var Bfe=U(),Gfe=N(),XM=Qi(),ZM=Zc(),$b=class extends Gfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,Bfe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"ListAccountsCommand",inputFilterSensitiveLog:XM.ListAccountsRequest.filterSensitiveLog,outputFilterSensitiveLog:XM.ListAccountsResponse.filterSensitiveLog},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,ZM.serializeAws_restJson1ListAccountsCommand)(t,r)}deserialize(t,r){return(0,ZM.deserializeAws_restJson1ListAccountsCommand)(t,r)}};Ch.ListAccountsCommand=$b});var Kb=u(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});Ih.LogoutCommand=void 0;var $fe=U(),Vfe=N(),Kfe=Qi(),ez=Zc(),Vb=class extends Vfe.Command{constructor(t){super(),this.input=t}resolveMiddleware(t,r,n){this.middlewareStack.use((0,$fe.getSerdePlugin)(r,this.serialize,this.deserialize));let i=t.concat(this.middlewareStack),{logger:s}=r,c={logger:s,clientName:"SSOClient",commandName:"LogoutCommand",inputFilterSensitiveLog:Kfe.LogoutRequest.filterSensitiveLog,outputFilterSensitiveLog:f=>f},{requestHandler:d}=r;return i.resolve(f=>d.handle(f.request,n||{}),c)}serialize(t,r){return(0,ez.serializeAws_restJson1LogoutCommand)(t,r)}deserialize(t,r){return(0,ez.deserializeAws_restJson1LogoutCommand)(t,r)}};Ih.LogoutCommand=Vb});var tz=u((_Oe,Hfe)=>{Hfe.exports={name:"@aws-sdk/client-sso",description:"AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",version:"3.78.0",scripts:{build:"concurrently '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-* && rimraf *.tsbuildinfo"},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.78.0","@aws-sdk/fetch-http-handler":"3.78.0","@aws-sdk/hash-node":"3.78.0","@aws-sdk/invalid-dependency":"3.78.0","@aws-sdk/middleware-content-length":"3.78.0","@aws-sdk/middleware-host-header":"3.78.0","@aws-sdk/middleware-logger":"3.78.0","@aws-sdk/middleware-retry":"3.78.0","@aws-sdk/middleware-serde":"3.78.0","@aws-sdk/middleware-stack":"3.78.0","@aws-sdk/middleware-user-agent":"3.78.0","@aws-sdk/node-config-provider":"3.78.0","@aws-sdk/node-http-handler":"3.78.0","@aws-sdk/protocol-http":"3.78.0","@aws-sdk/smithy-client":"3.78.0","@aws-sdk/types":"3.78.0","@aws-sdk/url-parser":"3.78.0","@aws-sdk/util-base64-browser":"3.58.0","@aws-sdk/util-base64-node":"3.55.0","@aws-sdk/util-body-length-browser":"3.55.0","@aws-sdk/util-body-length-node":"3.55.0","@aws-sdk/util-defaults-mode-browser":"3.78.0","@aws-sdk/util-defaults-mode-node":"3.78.0","@aws-sdk/util-user-agent-browser":"3.78.0","@aws-sdk/util-user-agent-node":"3.78.0","@aws-sdk/util-utf8-browser":"3.55.0","@aws-sdk/util-utf8-node":"3.55.0",tslib:"^2.3.1"},devDependencies:{"@aws-sdk/service-client-documentation-generator":"3.58.0","@tsconfig/recommended":"1.0.1","@types/node":"^12.7.5",concurrently:"7.0.0","downlevel-dts":"0.7.0",rimraf:"3.0.2",typedoc:"0.19.2",typescript:"~4.6.2"},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 rz=u(Rh=>{"use strict";Object.defineProperty(Rh,"__esModule",{value:!0});Rh.defaultRegionInfoProvider=void 0;var Wfe=xt(),Jfe={"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-east-1":{variants:[{hostname:"portal.sso.us-gov-east-1.amazonaws.com",tags:[]}],signingRegion:"us-gov-east-1"},"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"}},Yfe={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"]}]}},Qfe=async(e,t)=>(0,Wfe.getRegionInfo)(e,{...t,signingService:"awsssoportal",regionHash:Jfe,partitionHash:Yfe});Rh.defaultRegionInfoProvider=Qfe});var nz=u(Nh=>{"use strict";Object.defineProperty(Nh,"__esModule",{value:!0});Nh.getRuntimeConfig=void 0;var Xfe=ai(),Zfe=rz(),eme=e=>{var t,r,n,i,s;return{apiVersion:"2019-06-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:Zfe.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:Xfe.parseUrl}};Nh.getRuntimeConfig=eme});var az=u(Dh=>{"use strict";Object.defineProperty(Dh,"__esModule",{value:!0});Dh.getRuntimeConfig=void 0;var tme=q(),rme=tme.__importDefault(tz()),Ph=xt(),nme=Rc(),Hb=vn(),el=Ur(),iz=Pc(),sz=Dc(),ime=Oc(),sme=Lc(),oz=qc(),ome=nz(),ame=N(),cme=Bc(),lme=e=>{var t,r,n,i,s,o,a,c,d,f,_,m,h,g;let y=(0,cme.resolveDefaultsModeConfig)(e),A=()=>y().then(ame.loadConfigsForDefaultMode),R=(0,ome.getRuntimeConfig)(e);return{...R,...e,runtime:"node",defaultsMode:y,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:sz.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:sz.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:ime.calculateBodyLength,defaultUserAgentProvider:(i=e==null?void 0:e.defaultUserAgentProvider)!==null&&i!==void 0?i:(0,sme.defaultUserAgent)({serviceId:R.serviceId,clientVersion:rme.default.version}),maxAttempts:(s=e==null?void 0:e.maxAttempts)!==null&&s!==void 0?s:(0,el.loadConfig)(Hb.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(o=e==null?void 0:e.region)!==null&&o!==void 0?o:(0,el.loadConfig)(Ph.NODE_REGION_CONFIG_OPTIONS,Ph.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(a=e==null?void 0:e.requestHandler)!==null&&a!==void 0?a:new iz.NodeHttpHandler(A),retryMode:(c=e==null?void 0:e.retryMode)!==null&&c!==void 0?c:(0,el.loadConfig)({...Hb.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await A()).retryMode||Hb.DEFAULT_RETRY_MODE}),sha256:(d=e==null?void 0:e.sha256)!==null&&d!==void 0?d:nme.Hash.bind(null,"sha256"),streamCollector:(f=e==null?void 0:e.streamCollector)!==null&&f!==void 0?f:iz.streamCollector,useDualstackEndpoint:(_=e==null?void 0:e.useDualstackEndpoint)!==null&&_!==void 0?_:(0,el.loadConfig)(Ph.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(m=e==null?void 0:e.useFipsEndpoint)!==null&&m!==void 0?m:(0,el.loadConfig)(Ph.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(h=e==null?void 0:e.utf8Decoder)!==null&&h!==void 0?h:oz.fromUtf8,utf8Encoder:(g=e==null?void 0:e.utf8Encoder)!==null&&g!==void 0?g:oz.toUtf8}};Dh.getRuntimeConfig=lme});var tl=u(Oh=>{"use strict";Object.defineProperty(Oh,"__esModule",{value:!0});Oh.SSOClient=void 0;var cz=xt(),dme=Ma(),lz=ka(),ume=Fa(),dz=vn(),uz=Wa(),fme=N(),mme=az(),Wb=class extends fme.Client{constructor(t){let r=(0,mme.getRuntimeConfig)(t),n=(0,cz.resolveRegionConfig)(r),i=(0,cz.resolveEndpointsConfig)(n),s=(0,dz.resolveRetryConfig)(i),o=(0,lz.resolveHostHeaderConfig)(s),a=(0,uz.resolveUserAgentConfig)(o);super(a),this.config=a,this.middlewareStack.use((0,dz.getRetryPlugin)(this.config)),this.middlewareStack.use((0,dme.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,lz.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,ume.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,uz.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};Oh.SSOClient=Wb});var qh=u(Lh=>{"use strict";Object.defineProperty(Lh,"__esModule",{value:!0});Lh.SSO=void 0;var pme=Bb(),_me=Th(),hme=xh(),yme=Kb(),gme=tl(),Jb=class extends gme.SSOClient{getRoleCredentials(t,r,n){let i=new pme.GetRoleCredentialsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccountRoles(t,r,n){let i=new _me.ListAccountRolesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listAccounts(t,r,n){let i=new hme.ListAccountsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}logout(t,r,n){let i=new yme.LogoutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Lh.SSO=Jb});var fz=u(Qs=>{"use strict";Object.defineProperty(Qs,"__esModule",{value:!0});var Mh=q();Mh.__exportStar(Bb(),Qs);Mh.__exportStar(Th(),Qs);Mh.__exportStar(xh(),Qs);Mh.__exportStar(Kb(),Qs)});var mz=u(Yb=>{"use strict";Object.defineProperty(Yb,"__esModule",{value:!0});var vme=q();vme.__exportStar(Qi(),Yb)});var _z=u(pz=>{"use strict";Object.defineProperty(pz,"__esModule",{value:!0})});var hz=u(zh=>{"use strict";Object.defineProperty(zh,"__esModule",{value:!0});zh.paginateListAccountRoles=void 0;var Sme=Th(),wme=qh(),Eme=tl(),bme=async(e,t,...r)=>await e.send(new Sme.ListAccountRolesCommand(t),...r),Ame=async(e,t,...r)=>await e.listAccountRoles(t,...r);async function*Tme(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof wme.SSO)s=await Ame(e.client,t,...r);else if(e.client instanceof Eme.SSOClient)s=await bme(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}zh.paginateListAccountRoles=Tme});var yz=u(jh=>{"use strict";Object.defineProperty(jh,"__esModule",{value:!0});jh.paginateListAccounts=void 0;var Cme=xh(),xme=qh(),Ime=tl(),Rme=async(e,t,...r)=>await e.send(new Cme.ListAccountsCommand(t),...r),Nme=async(e,t,...r)=>await e.listAccounts(t,...r);async function*Pme(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.nextToken=n,t.maxResults=e.pageSize,e.client instanceof xme.SSO)s=await Nme(e.client,t,...r);else if(e.client instanceof Ime.SSOClient)s=await Rme(e.client,t,...r);else throw new Error("Invalid client, expected SSO | SSOClient");yield s;let o=n;n=s.nextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}jh.paginateListAccounts=Pme});var gz=u(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});var Qb=q();Qb.__exportStar(_z(),rl);Qb.__exportStar(hz(),rl);Qb.__exportStar(yz(),rl)});var vz=u(Cn=>{"use strict";Object.defineProperty(Cn,"__esModule",{value:!0});Cn.SSOServiceException=void 0;var nl=q();nl.__exportStar(qh(),Cn);nl.__exportStar(tl(),Cn);nl.__exportStar(fz(),Cn);nl.__exportStar(mz(),Cn);nl.__exportStar(gz(),Cn);var Dme=mh();Object.defineProperty(Cn,"SSOServiceException",{enumerable:!0,get:function(){return Dme.SSOServiceException}})});var wz=u(Uh=>{"use strict";Object.defineProperty(Uh,"__esModule",{value:!0});Uh.resolveSSOCredentials=void 0;var Sz=vz(),kh=Gt(),Ome=Hc(),Lme=15*60*1e3,Fh=!1,qme=async({ssoStartUrl:e,ssoAccountId:t,ssoRegion:r,ssoRoleName:n,ssoClient:i})=>{let s,o="To refresh this SSO session run aws sso login with the corresponding profile.";try{s=await(0,Ome.getSSOTokenFromFile)(e)}catch{throw new kh.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${o}`,Fh)}if(new Date(s.expiresAt).getTime()-Date.now()<=Lme)throw new kh.CredentialsProviderError(`The SSO session associated with this profile has expired. ${o}`,Fh);let{accessToken:a}=s,c=i||new Sz.SSOClient({region:r}),d;try{d=await c.send(new Sz.GetRoleCredentialsCommand({accountId:t,roleName:n,accessToken:a}))}catch(g){throw kh.CredentialsProviderError.from(g,Fh)}let{roleCredentials:{accessKeyId:f,secretAccessKey:_,sessionToken:m,expiration:h}={}}=d;if(!f||!_||!m||!h)throw new kh.CredentialsProviderError("SSO returns an invalid temporary credential.",Fh);return{accessKeyId:f,secretAccessKey:_,sessionToken:m,expiration:new Date(h)}};Uh.resolveSSOCredentials=qme});var Xb=u(Bh=>{"use strict";Object.defineProperty(Bh,"__esModule",{value:!0});Bh.validateSsoProfile=void 0;var Mme=Gt(),zme=e=>{let{sso_start_url:t,sso_account_id:r,sso_region:n,sso_role_name:i}=e;if(!t||!r||!n||!i)throw new Mme.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(", ")}
|
|
29
|
+
Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,!1);return e};Bh.validateSsoProfile=zme});var Tz=u(Gh=>{"use strict";Object.defineProperty(Gh,"__esModule",{value:!0});Gh.fromSSO=void 0;var Ez=Gt(),bz=Hc(),jme=kb(),Az=wz(),kme=Xb(),Fme=(e={})=>async()=>{let{ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s}=e;if(!t&&!r&&!n&&!i){let o=await(0,bz.parseKnownFiles)(e),a=(0,bz.getProfileName)(e),c=o[a];if(!(0,jme.isSsoProfile)(c))throw new Ez.CredentialsProviderError(`Profile ${a} is not configured with SSO credentials.`);let{sso_start_url:d,sso_account_id:f,sso_region:_,sso_role_name:m}=(0,kme.validateSsoProfile)(c);return(0,Az.resolveSSOCredentials)({ssoStartUrl:d,ssoAccountId:f,ssoRegion:_,ssoRoleName:m,ssoClient:s})}else{if(!t||!r||!n||!i)throw new Ez.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"');return(0,Az.resolveSSOCredentials)({ssoStartUrl:t,ssoAccountId:r,ssoRegion:n,ssoRoleName:i,ssoClient:s})}};Gh.fromSSO=Fme});var xz=u(Cz=>{"use strict";Object.defineProperty(Cz,"__esModule",{value:!0})});var Iz=u(Xs=>{"use strict";Object.defineProperty(Xs,"__esModule",{value:!0});var $h=q();$h.__exportStar(Tz(),Xs);$h.__exportStar(kb(),Xs);$h.__exportStar(xz(),Xs);$h.__exportStar(Xb(),Xs)});var Zb=u(Vh=>{"use strict";Object.defineProperty(Vh,"__esModule",{value:!0});Vh.fromWebToken=void 0;var Ume=Gt(),Bme=e=>()=>{let{roleArn:t,roleSessionName:r,webIdentityToken:n,providerId:i,policyArns:s,policy:o,durationSeconds:a,roleAssumerWithWebIdentity:c}=e;if(!c)throw new Ume.CredentialsProviderError(`Role Arn '${t}' needs to be assumed with web identity, but no role assumption callback was provided.`,!1);return c({RoleArn:t,RoleSessionName:r??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:i,PolicyArns:s,Policy:o,DurationSeconds:a})};Vh.fromWebToken=Bme});var Rz=u(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});Kh.fromTokenFile=void 0;var Gme=Gt(),$me=require("fs"),Vme=Zb(),Kme="AWS_WEB_IDENTITY_TOKEN_FILE",Hme="AWS_ROLE_ARN",Wme="AWS_ROLE_SESSION_NAME",Jme=(e={})=>async()=>Yme(e);Kh.fromTokenFile=Jme;var Yme=e=>{var t,r,n;let i=(t=e==null?void 0:e.webIdentityTokenFile)!==null&&t!==void 0?t:process.env[Kme],s=(r=e==null?void 0:e.roleArn)!==null&&r!==void 0?r:process.env[Hme],o=(n=e==null?void 0:e.roleSessionName)!==null&&n!==void 0?n:process.env[Wme];if(!i||!s)throw new Gme.CredentialsProviderError("Web identity configuration not specified");return(0,Vme.fromWebToken)({...e,webIdentityToken:(0,$me.readFileSync)(i,{encoding:"ascii"}),roleArn:s,roleSessionName:o})()}});var Pz=u(Hh=>{"use strict";Object.defineProperty(Hh,"__esModule",{value:!0});var Nz=q();Nz.__exportStar(Rz(),Hh);Nz.__exportStar(Zb(),Hh)});var Jh=u(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});Wh.httpRequest=void 0;var eA=Gt(),Qme=require("buffer"),Xme=require("http");function Zme(e){return new Promise((t,r)=>{var n;let i=(0,Xme.request)({method:"GET",...e,hostname:(n=e.hostname)===null||n===void 0?void 0:n.replace(/^\[(.+)\]$/,"$1")});i.on("error",s=>{r(Object.assign(new eA.ProviderError("Unable to connect to instance metadata service"),s)),i.destroy()}),i.on("timeout",()=>{r(new eA.ProviderError("TimeoutError from instance metadata service")),i.destroy()}),i.on("response",s=>{let{statusCode:o=400}=s;(o<200||300<=o)&&(r(Object.assign(new eA.ProviderError("Error response received from instance metadata service"),{statusCode:o})),i.destroy());let a=[];s.on("data",c=>{a.push(c)}),s.on("end",()=>{t(Qme.Buffer.concat(a)),i.destroy()})}),i.end()})}Wh.httpRequest=Zme});var tA=u(Zs=>{"use strict";Object.defineProperty(Zs,"__esModule",{value:!0});Zs.fromImdsCredentials=Zs.isImdsCredentials=void 0;var epe=e=>Boolean(e)&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string";Zs.isImdsCredentials=epe;var tpe=e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration)});Zs.fromImdsCredentials=tpe});var Yh=u(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.providerConfigFromInit=Xr.DEFAULT_MAX_RETRIES=Xr.DEFAULT_TIMEOUT=void 0;Xr.DEFAULT_TIMEOUT=1e3;Xr.DEFAULT_MAX_RETRIES=0;var rpe=({maxRetries:e=Xr.DEFAULT_MAX_RETRIES,timeout:t=Xr.DEFAULT_TIMEOUT})=>({maxRetries:e,timeout:t});Xr.providerConfigFromInit=rpe});var rA=u(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});Qh.retry=void 0;var npe=(e,t)=>{let r=e();for(let n=0;n<t;n++)r=r.catch(e);return r};Qh.retry=npe});var Oz=u(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 Xh=Gt(),ipe=require("url"),spe=Jh(),Dz=tA(),ope=Yh(),ape=rA();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 cpe=(e={})=>{let{timeout:t,maxRetries:r}=(0,ope.providerConfigFromInit)(e);return()=>(0,ape.retry)(async()=>{let n=await mpe(),i=JSON.parse(await lpe(t,n));if(!(0,Dz.isImdsCredentials)(i))throw new Xh.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,Dz.fromImdsCredentials)(i)},r)};nt.fromContainerMetadata=cpe;var lpe=async(e,t)=>(process.env[nt.ENV_CMDS_AUTH_TOKEN]&&(t.headers={...t.headers,Authorization:process.env[nt.ENV_CMDS_AUTH_TOKEN]}),(await(0,spe.httpRequest)({...t,timeout:e})).toString()),dpe="169.254.170.2",upe={localhost:!0,"127.0.0.1":!0},fpe={"http:":!0,"https:":!0},mpe=async()=>{if(process.env[nt.ENV_CMDS_RELATIVE_URI])return{hostname:dpe,path:process.env[nt.ENV_CMDS_RELATIVE_URI]};if(process.env[nt.ENV_CMDS_FULL_URI]){let e=(0,ipe.parse)(process.env[nt.ENV_CMDS_FULL_URI]);if(!e.hostname||!(e.hostname in upe))throw new Xh.CredentialsProviderError(`${e.hostname} is not a valid container metadata service hostname`,!1);if(!e.protocol||!(e.protocol in fpe))throw new Xh.CredentialsProviderError(`${e.protocol} is not a valid container metadata service protocol`,!1);return{...e,port:e.port?parseInt(e.port,10):void 0}}throw new Xh.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 Lz=u(il=>{"use strict";Object.defineProperty(il,"__esModule",{value:!0});il.Endpoint=void 0;var ppe;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(ppe=il.Endpoint||(il.Endpoint={}))});var qz=u(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});Zr.ENDPOINT_CONFIG_OPTIONS=Zr.CONFIG_ENDPOINT_NAME=Zr.ENV_ENDPOINT_NAME=void 0;Zr.ENV_ENDPOINT_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT";Zr.CONFIG_ENDPOINT_NAME="ec2_metadata_service_endpoint";Zr.ENDPOINT_CONFIG_OPTIONS={environmentVariableSelector:e=>e[Zr.ENV_ENDPOINT_NAME],configFileSelector:e=>e[Zr.CONFIG_ENDPOINT_NAME],default:void 0}});var nA=u(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.EndpointMode=void 0;var _pe;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(_pe=sl.EndpointMode||(sl.EndpointMode={}))});var Mz=u(en=>{"use strict";Object.defineProperty(en,"__esModule",{value:!0});en.ENDPOINT_MODE_CONFIG_OPTIONS=en.CONFIG_ENDPOINT_MODE_NAME=en.ENV_ENDPOINT_MODE_NAME=void 0;var hpe=nA();en.ENV_ENDPOINT_MODE_NAME="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";en.CONFIG_ENDPOINT_MODE_NAME="ec2_metadata_service_endpoint_mode";en.ENDPOINT_MODE_CONFIG_OPTIONS={environmentVariableSelector:e=>e[en.ENV_ENDPOINT_MODE_NAME],configFileSelector:e=>e[en.CONFIG_ENDPOINT_MODE_NAME],default:hpe.EndpointMode.IPv4}});var sA=u(Zh=>{"use strict";Object.defineProperty(Zh,"__esModule",{value:!0});Zh.getInstanceMetadataEndpoint=void 0;var jz=Ur(),ype=ai(),zz=Lz(),gpe=qz(),iA=nA(),vpe=Mz(),Spe=async()=>(0,ype.parseUrl)(await wpe()||await Epe());Zh.getInstanceMetadataEndpoint=Spe;var wpe=async()=>(0,jz.loadConfig)(gpe.ENDPOINT_CONFIG_OPTIONS)(),Epe=async()=>{let e=await(0,jz.loadConfig)(vpe.ENDPOINT_MODE_CONFIG_OPTIONS)();switch(e){case iA.EndpointMode.IPv4:return zz.Endpoint.IPv4;case iA.EndpointMode.IPv6:return zz.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(iA.EndpointMode)}`)}}});var kz=u(ey=>{"use strict";Object.defineProperty(ey,"__esModule",{value:!0});ey.getExtendedInstanceMetadataCredentials=void 0;var bpe=15*60,Ape=5*60,Tpe="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",Cpe=(e,t)=>{var r;let n=bpe+Math.floor(Math.random()*Ape),i=new Date(Date.now()+n*1e3);t.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: "+Tpe);let s=(r=e.originalExpiration)!==null&&r!==void 0?r:e.expiration;return{...e,...s?{originalExpiration:s}:{},expiration:i}};ey.getExtendedInstanceMetadataCredentials=Cpe});var Uz=u(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});ty.staticStabilityProvider=void 0;var Fz=kz(),xpe=(e,t={})=>{let r=(t==null?void 0:t.logger)||console,n;return async()=>{let i;try{i=await e(),i.expiration&&i.expiration.getTime()<Date.now()&&(i=(0,Fz.getExtendedInstanceMetadataCredentials)(i,r))}catch(s){if(n)r.warn("Credential renew failed: ",s),i=(0,Fz.getExtendedInstanceMetadataCredentials)(n,r);else throw s}return n=i,i}};ty.staticStabilityProvider=xpe});var Vz=u(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});ry.fromInstanceMetadata=void 0;var Ipe=Gt(),oA=Jh(),Bz=tA(),Rpe=Yh(),Gz=rA(),Npe=sA(),Ppe=Uz(),$z="/latest/meta-data/iam/security-credentials/",Dpe="/latest/api/token",Ope=(e={})=>(0,Ppe.staticStabilityProvider)(Lpe(e),{logger:e.logger});ry.fromInstanceMetadata=Ope;var Lpe=e=>{let t=!1,{timeout:r,maxRetries:n}=(0,Rpe.providerConfigFromInit)(e),i=async(s,o)=>{let a=(await(0,Gz.retry)(async()=>{let c;try{c=await Mpe(o)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)).trim();return(0,Gz.retry)(async()=>{let c;try{c=await zpe(a,o)}catch(d){throw d.statusCode===401&&(t=!1),d}return c},s)};return async()=>{let s=await(0,Npe.getInstanceMetadataEndpoint)();if(t)return i(n,{...s,timeout:r});{let o;try{o=(await qpe({...s,timeout:r})).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),i(n,{...s,timeout:r})}return i(n,{...s,headers:{"x-aws-ec2-metadata-token":o},timeout:r})}}},qpe=async e=>(0,oA.httpRequest)({...e,path:Dpe,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),Mpe=async e=>(await(0,oA.httpRequest)({...e,path:$z})).toString(),zpe=async(e,t)=>{let r=JSON.parse((await(0,oA.httpRequest)({...t,path:$z+e})).toString());if(!(0,Bz.isImdsCredentials)(r))throw new Ipe.CredentialsProviderError("Invalid response received from instance metadata service.");return(0,Bz.fromImdsCredentials)(r)}});var Hz=u(Kz=>{"use strict";Object.defineProperty(Kz,"__esModule",{value:!0})});var Wz=u(tn=>{"use strict";Object.defineProperty(tn,"__esModule",{value:!0});tn.getInstanceMetadataEndpoint=tn.httpRequest=void 0;var ny=q();ny.__exportStar(Oz(),tn);ny.__exportStar(Vz(),tn);ny.__exportStar(Yh(),tn);ny.__exportStar(Hz(),tn);var jpe=Jh();Object.defineProperty(tn,"httpRequest",{enumerable:!0,get:function(){return jpe.httpRequest}});var kpe=sA();Object.defineProperty(tn,"getInstanceMetadataEndpoint",{enumerable:!0,get:function(){return kpe.getInstanceMetadataEndpoint}})});var Jz=u(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.remoteProvider=Zi.ENV_IMDS_DISABLED=void 0;var iy=Wz(),Fpe=Gt();Zi.ENV_IMDS_DISABLED="AWS_EC2_METADATA_DISABLED";var Upe=e=>process.env[iy.ENV_CMDS_RELATIVE_URI]||process.env[iy.ENV_CMDS_FULL_URI]?(0,iy.fromContainerMetadata)(e):process.env[Zi.ENV_IMDS_DISABLED]?async()=>{throw new Fpe.CredentialsProviderError("EC2 Instance Metadata Service access disabled")}:(0,iy.fromInstanceMetadata)(e);Zi.remoteProvider=Upe});var Yz=u(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});sy.defaultProvider=void 0;var Bpe=bO(),Gpe=xM(),$pe=VM(),Vpe=Iz(),Kpe=Pz(),aA=Gt(),Hpe=Hc(),Wpe=Jz(),Jpe=(e={})=>(0,aA.memoize)((0,aA.chain)(...e.profile||process.env[Hpe.ENV_PROFILE]?[]:[(0,Bpe.fromEnv)()],(0,Vpe.fromSSO)(e),(0,Gpe.fromIni)(e),(0,$pe.fromProcess)(e),(0,Kpe.fromTokenFile)(e),(0,Wpe.remoteProvider)(e),async()=>{throw new aA.CredentialsProviderError("Could not load credentials from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0);sy.defaultProvider=Jpe});var lA=u(cA=>{"use strict";Object.defineProperty(cA,"__esModule",{value:!0});var Ype=q();Ype.__exportStar(Yz(),cA)});var Qz=u(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});oy.defaultRegionInfoProvider=void 0;var Qpe=xt(),Xpe={"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"]}]}},Zpe={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"]}]}},e_e=async(e,t)=>(0,Qpe.getRegionInfo)(e,{...t,signingService:"sts",regionHash:Xpe,partitionHash:Zpe});oy.defaultRegionInfoProvider=e_e});var Xz=u(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.getRuntimeConfig=void 0;var t_e=ai(),r_e=Qz(),n_e=e=>{var t,r,n,i,s;return{apiVersion:"2011-06-15",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:r_e.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:t_e.parseUrl}};ay.getRuntimeConfig=n_e});var rj=u(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});ly.getRuntimeConfig=void 0;var i_e=q(),s_e=i_e.__importDefault(_O()),o_e=CE(),cy=xt(),a_e=lA(),c_e=Rc(),dA=vn(),ol=Ur(),Zz=Pc(),ej=Dc(),l_e=Oc(),d_e=Lc(),tj=qc(),u_e=Xz(),f_e=N(),m_e=Bc(),p_e=e=>{var t,r,n,i,s,o,a,c,d,f,_,m,h,g,y;let A=(0,m_e.resolveDefaultsModeConfig)(e),R=()=>A().then(f_e.loadConfigsForDefaultMode),T=(0,u_e.getRuntimeConfig)(e);return{...T,...e,runtime:"node",defaultsMode:A,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:ej.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:ej.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:l_e.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,o_e.decorateDefaultCredentialProvider)(a_e.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,d_e.defaultUserAgent)({serviceId:T.serviceId,clientVersion:s_e.default.version}),maxAttempts:(o=e==null?void 0:e.maxAttempts)!==null&&o!==void 0?o:(0,ol.loadConfig)(dA.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(a=e==null?void 0:e.region)!==null&&a!==void 0?a:(0,ol.loadConfig)(cy.NODE_REGION_CONFIG_OPTIONS,cy.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(c=e==null?void 0:e.requestHandler)!==null&&c!==void 0?c:new Zz.NodeHttpHandler(R),retryMode:(d=e==null?void 0:e.retryMode)!==null&&d!==void 0?d:(0,ol.loadConfig)({...dA.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await R()).retryMode||dA.DEFAULT_RETRY_MODE}),sha256:(f=e==null?void 0:e.sha256)!==null&&f!==void 0?f:c_e.Hash.bind(null,"sha256"),streamCollector:(_=e==null?void 0:e.streamCollector)!==null&&_!==void 0?_:Zz.streamCollector,useDualstackEndpoint:(m=e==null?void 0:e.useDualstackEndpoint)!==null&&m!==void 0?m:(0,ol.loadConfig)(cy.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(h=e==null?void 0:e.useFipsEndpoint)!==null&&h!==void 0?h:(0,ol.loadConfig)(cy.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(g=e==null?void 0:e.utf8Decoder)!==null&&g!==void 0?g:tj.fromUtf8,utf8Encoder:(y=e==null?void 0:e.utf8Encoder)!==null&&y!==void 0?y:tj.toUtf8}};ly.getRuntimeConfig=p_e});var uy=u(dy=>{"use strict";Object.defineProperty(dy,"__esModule",{value:!0});dy.STSClient=void 0;var nj=xt(),__e=Ma(),ij=ka(),h_e=Fa(),sj=vn(),y_e=pO(),oj=Wa(),g_e=N(),v_e=rj(),al=class extends g_e.Client{constructor(t){let r=(0,v_e.getRuntimeConfig)(t),n=(0,nj.resolveRegionConfig)(r),i=(0,nj.resolveEndpointsConfig)(n),s=(0,sj.resolveRetryConfig)(i),o=(0,ij.resolveHostHeaderConfig)(s),a=(0,y_e.resolveStsAuthConfig)(o,{stsClientCtor:al}),c=(0,oj.resolveUserAgentConfig)(a);super(c),this.config=c,this.middlewareStack.use((0,sj.getRetryPlugin)(this.config)),this.middlewareStack.use((0,__e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ij.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,h_e.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,oj.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};dy.STSClient=al});var aj=u(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});fy.STS=void 0;var S_e=Am(),w_e=pE(),E_e=xm(),b_e=yE(),A_e=vE(),T_e=wE(),C_e=bE(),x_e=TE(),I_e=uy(),uA=class extends I_e.STSClient{assumeRole(t,r,n){let i=new S_e.AssumeRoleCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}assumeRoleWithSAML(t,r,n){let i=new w_e.AssumeRoleWithSAMLCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}assumeRoleWithWebIdentity(t,r,n){let i=new E_e.AssumeRoleWithWebIdentityCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}decodeAuthorizationMessage(t,r,n){let i=new b_e.DecodeAuthorizationMessageCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getAccessKeyInfo(t,r,n){let i=new A_e.GetAccessKeyInfoCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getCallerIdentity(t,r,n){let i=new T_e.GetCallerIdentityCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getFederationToken(t,r,n){let i=new C_e.GetFederationTokenCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getSessionToken(t,r,n){let i=new x_e.GetSessionTokenCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};fy.STS=uA});var cj=u(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});var li=q();li.__exportStar(Am(),rn);li.__exportStar(pE(),rn);li.__exportStar(xm(),rn);li.__exportStar(yE(),rn);li.__exportStar(vE(),rn);li.__exportStar(wE(),rn);li.__exportStar(bE(),rn);li.__exportStar(TE(),rn)});var uj=u(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});nn.decorateDefaultCredentialProvider=nn.getDefaultRoleAssumerWithWebIdentity=nn.getDefaultRoleAssumer=void 0;var lj=CE(),dj=uy(),R_e=(e={})=>(0,lj.getDefaultRoleAssumer)(e,dj.STSClient);nn.getDefaultRoleAssumer=R_e;var N_e=(e={})=>(0,lj.getDefaultRoleAssumerWithWebIdentity)(e,dj.STSClient);nn.getDefaultRoleAssumerWithWebIdentity=N_e;var P_e=e=>t=>e({roleAssumer:(0,nn.getDefaultRoleAssumer)(t),roleAssumerWithWebIdentity:(0,nn.getDefaultRoleAssumerWithWebIdentity)(t),...t});nn.decorateDefaultCredentialProvider=P_e});var fj=u(fA=>{"use strict";Object.defineProperty(fA,"__esModule",{value:!0});var D_e=q();D_e.__exportStar(lr(),fA)});var mj=u(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});xn.STSServiceException=void 0;var cl=q();cl.__exportStar(aj(),xn);cl.__exportStar(uy(),xn);cl.__exportStar(cj(),xn);cl.__exportStar(uj(),xn);cl.__exportStar(fj(),xn);var O_e=dm();Object.defineProperty(xn,"STSServiceException",{enumerable:!0,get:function(){return O_e.STSServiceException}})});var pj=u(my=>{"use strict";Object.defineProperty(my,"__esModule",{value:!0});my.defaultRegionInfoProvider=void 0;var L_e=xt(),q_e={"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"]}]}},M_e={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"]}]}},z_e=async(e,t)=>(0,L_e.getRegionInfo)(e,{...t,signingService:"dynamodb",regionHash:q_e,partitionHash:M_e});my.defaultRegionInfoProvider=z_e});var _j=u(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});py.getRuntimeConfig=void 0;var j_e=ai(),k_e=pj(),F_e=e=>{var t,r,n,i,s;return{apiVersion:"2012-08-10",disableHostPrefix:(t=e==null?void 0:e.disableHostPrefix)!==null&&t!==void 0?t:!1,logger:(r=e==null?void 0:e.logger)!==null&&r!==void 0?r:{},regionInfoProvider:(n=e==null?void 0:e.regionInfoProvider)!==null&&n!==void 0?n:k_e.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:j_e.parseUrl}};py.getRuntimeConfig=F_e});var vj=u(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});hy.getRuntimeConfig=void 0;var U_e=q(),B_e=U_e.__importDefault(ZP()),G_e=mj(),_y=xt(),$_e=lA(),V_e=Rc(),K_e=C0(),mA=vn(),eo=Ur(),hj=Pc(),yj=Dc(),H_e=Oc(),W_e=Lc(),gj=qc(),J_e=_j(),Y_e=N(),Q_e=Bc(),X_e=e=>{var t,r,n,i,s,o,a,c,d,f,_,m,h,g,y,A;let R=(0,Q_e.resolveDefaultsModeConfig)(e),T=()=>R().then(Y_e.loadConfigsForDefaultMode),$=(0,J_e.getRuntimeConfig)(e);return{...$,...e,runtime:"node",defaultsMode:R,base64Decoder:(t=e==null?void 0:e.base64Decoder)!==null&&t!==void 0?t:yj.fromBase64,base64Encoder:(r=e==null?void 0:e.base64Encoder)!==null&&r!==void 0?r:yj.toBase64,bodyLengthChecker:(n=e==null?void 0:e.bodyLengthChecker)!==null&&n!==void 0?n:H_e.calculateBodyLength,credentialDefaultProvider:(i=e==null?void 0:e.credentialDefaultProvider)!==null&&i!==void 0?i:(0,G_e.decorateDefaultCredentialProvider)($_e.defaultProvider),defaultUserAgentProvider:(s=e==null?void 0:e.defaultUserAgentProvider)!==null&&s!==void 0?s:(0,W_e.defaultUserAgent)({serviceId:$.serviceId,clientVersion:B_e.default.version}),endpointDiscoveryEnabledProvider:(o=e==null?void 0:e.endpointDiscoveryEnabledProvider)!==null&&o!==void 0?o:(0,eo.loadConfig)(K_e.NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS),maxAttempts:(a=e==null?void 0:e.maxAttempts)!==null&&a!==void 0?a:(0,eo.loadConfig)(mA.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),region:(c=e==null?void 0:e.region)!==null&&c!==void 0?c:(0,eo.loadConfig)(_y.NODE_REGION_CONFIG_OPTIONS,_y.NODE_REGION_CONFIG_FILE_OPTIONS),requestHandler:(d=e==null?void 0:e.requestHandler)!==null&&d!==void 0?d:new hj.NodeHttpHandler(T),retryMode:(f=e==null?void 0:e.retryMode)!==null&&f!==void 0?f:(0,eo.loadConfig)({...mA.NODE_RETRY_MODE_CONFIG_OPTIONS,default:async()=>(await T()).retryMode||mA.DEFAULT_RETRY_MODE}),sha256:(_=e==null?void 0:e.sha256)!==null&&_!==void 0?_:V_e.Hash.bind(null,"sha256"),streamCollector:(m=e==null?void 0:e.streamCollector)!==null&&m!==void 0?m:hj.streamCollector,useDualstackEndpoint:(h=e==null?void 0:e.useDualstackEndpoint)!==null&&h!==void 0?h:(0,eo.loadConfig)(_y.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),useFipsEndpoint:(g=e==null?void 0:e.useFipsEndpoint)!==null&&g!==void 0?g:(0,eo.loadConfig)(_y.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),utf8Decoder:(y=e==null?void 0:e.utf8Decoder)!==null&&y!==void 0?y:gj.fromUtf8,utf8Encoder:(A=e==null?void 0:e.utf8Encoder)!==null&&A!==void 0?A:gj.toUtf8}};hy.getRuntimeConfig=X_e});var di=u(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});yy.DynamoDBClient=void 0;var Sj=xt(),Z_e=Ma(),ehe=C0(),wj=ka(),the=Fa(),Ej=vn(),bj=Sn(),Aj=Wa(),rhe=N(),nhe=lu(),ihe=vj(),pA=class extends rhe.Client{constructor(t){let r=(0,ihe.getRuntimeConfig)(t),n=(0,Sj.resolveRegionConfig)(r),i=(0,Sj.resolveEndpointsConfig)(n),s=(0,Ej.resolveRetryConfig)(i),o=(0,wj.resolveHostHeaderConfig)(s),a=(0,bj.resolveAwsAuthConfig)(o),c=(0,Aj.resolveUserAgentConfig)(a),d=(0,ehe.resolveEndpointDiscoveryConfig)(c,{endpointDiscoveryCommandCtor:nhe.DescribeEndpointsCommand});super(d),this.config=d,this.middlewareStack.use((0,Ej.getRetryPlugin)(this.config)),this.middlewareStack.use((0,Z_e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,wj.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,the.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,bj.getAwsAuthPlugin)(this.config)),this.middlewareStack.use((0,Aj.getUserAgentPlugin)(this.config))}destroy(){super.destroy()}};yy.DynamoDBClient=pA});var es=u(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});gy.DynamoDB=void 0;var she=xS(),ohe=RS(),ahe=PS(),che=OS(),lhe=qS(),dhe=zS(),uhe=kS(),fhe=US(),mhe=GS(),phe=VS(),_he=HS(),hhe=JS(),yhe=lu(),ghe=XS(),vhe=ew(),She=rw(),whe=iw(),Ehe=ow(),bhe=Oa(),Ahe=lw(),The=uw(),Che=mw(),xhe=_w(),Ihe=yw(),Rhe=vw(),Nhe=ww(),Phe=bw(),Dhe=Tw(),Ohe=Cu(),Lhe=Iu(),qhe=Rw(),Mhe=Pu(),zhe=Dw(),jhe=Lw(),khe=qu(),Fhe=zw(),Uhe=kw(),Bhe=ku(),Ghe=Bw(),$he=$w(),Vhe=Kw(),Khe=Ww(),Hhe=Yw(),Whe=Xw(),Jhe=e0(),Yhe=r0(),Qhe=i0(),Xhe=o0(),Zhe=c0(),eye=d0(),tye=di(),_A=class extends tye.DynamoDBClient{batchExecuteStatement(t,r,n){let i=new she.BatchExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchGetItem(t,r,n){let i=new ohe.BatchGetItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchWriteItem(t,r,n){let i=new ahe.BatchWriteItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createBackup(t,r,n){let i=new che.CreateBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createGlobalTable(t,r,n){let i=new lhe.CreateGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}createTable(t,r,n){let i=new dhe.CreateTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteBackup(t,r,n){let i=new uhe.DeleteBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteItem(t,r,n){let i=new fhe.DeleteItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}deleteTable(t,r,n){let i=new mhe.DeleteTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeBackup(t,r,n){let i=new phe.DescribeBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeContinuousBackups(t,r,n){let i=new _he.DescribeContinuousBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeContributorInsights(t,r,n){let i=new hhe.DescribeContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeEndpoints(t,r,n){let i=new yhe.DescribeEndpointsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeExport(t,r,n){let i=new ghe.DescribeExportCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeGlobalTable(t,r,n){let i=new vhe.DescribeGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeGlobalTableSettings(t,r,n){let i=new She.DescribeGlobalTableSettingsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeKinesisStreamingDestination(t,r,n){let i=new whe.DescribeKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeLimits(t,r,n){let i=new Ehe.DescribeLimitsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTable(t,r,n){let i=new bhe.DescribeTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTableReplicaAutoScaling(t,r,n){let i=new Ahe.DescribeTableReplicaAutoScalingCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}describeTimeToLive(t,r,n){let i=new The.DescribeTimeToLiveCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}disableKinesisStreamingDestination(t,r,n){let i=new Che.DisableKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}enableKinesisStreamingDestination(t,r,n){let i=new xhe.EnableKinesisStreamingDestinationCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeStatement(t,r,n){let i=new Ihe.ExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeTransaction(t,r,n){let i=new Rhe.ExecuteTransactionCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}exportTableToPointInTime(t,r,n){let i=new Nhe.ExportTableToPointInTimeCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}getItem(t,r,n){let i=new Phe.GetItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listBackups(t,r,n){let i=new Dhe.ListBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listContributorInsights(t,r,n){let i=new Ohe.ListContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listExports(t,r,n){let i=new Lhe.ListExportsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listGlobalTables(t,r,n){let i=new qhe.ListGlobalTablesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listTables(t,r,n){let i=new Mhe.ListTablesCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}listTagsOfResource(t,r,n){let i=new zhe.ListTagsOfResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}putItem(t,r,n){let i=new jhe.PutItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}query(t,r,n){let i=new khe.QueryCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}restoreTableFromBackup(t,r,n){let i=new Fhe.RestoreTableFromBackupCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}restoreTableToPointInTime(t,r,n){let i=new Uhe.RestoreTableToPointInTimeCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}scan(t,r,n){let i=new Bhe.ScanCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}tagResource(t,r,n){let i=new Ghe.TagResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactGetItems(t,r,n){let i=new $he.TransactGetItemsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactWriteItems(t,r,n){let i=new Vhe.TransactWriteItemsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}untagResource(t,r,n){let i=new Khe.UntagResourceCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateContinuousBackups(t,r,n){let i=new Hhe.UpdateContinuousBackupsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateContributorInsights(t,r,n){let i=new Whe.UpdateContributorInsightsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateGlobalTable(t,r,n){let i=new Jhe.UpdateGlobalTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateGlobalTableSettings(t,r,n){let i=new Yhe.UpdateGlobalTableSettingsCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateItem(t,r,n){let i=new Qhe.UpdateItemCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTable(t,r,n){let i=new Xhe.UpdateTableCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTableReplicaAutoScaling(t,r,n){let i=new Zhe.UpdateTableReplicaAutoScalingCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}updateTimeToLive(t,r,n){let i=new eye.UpdateTimeToLiveCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};gy.DynamoDB=_A});var Tj=u(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});var re=q();re.__exportStar(xS(),J);re.__exportStar(RS(),J);re.__exportStar(PS(),J);re.__exportStar(OS(),J);re.__exportStar(qS(),J);re.__exportStar(zS(),J);re.__exportStar(kS(),J);re.__exportStar(US(),J);re.__exportStar(GS(),J);re.__exportStar(VS(),J);re.__exportStar(HS(),J);re.__exportStar(JS(),J);re.__exportStar(lu(),J);re.__exportStar(XS(),J);re.__exportStar(ew(),J);re.__exportStar(rw(),J);re.__exportStar(iw(),J);re.__exportStar(ow(),J);re.__exportStar(Oa(),J);re.__exportStar(lw(),J);re.__exportStar(uw(),J);re.__exportStar(mw(),J);re.__exportStar(_w(),J);re.__exportStar(yw(),J);re.__exportStar(vw(),J);re.__exportStar(ww(),J);re.__exportStar(bw(),J);re.__exportStar(Tw(),J);re.__exportStar(Cu(),J);re.__exportStar(Iu(),J);re.__exportStar(Rw(),J);re.__exportStar(Pu(),J);re.__exportStar(Dw(),J);re.__exportStar(Lw(),J);re.__exportStar(qu(),J);re.__exportStar(zw(),J);re.__exportStar(kw(),J);re.__exportStar(ku(),J);re.__exportStar(Bw(),J);re.__exportStar($w(),J);re.__exportStar(Kw(),J);re.__exportStar(Ww(),J);re.__exportStar(Yw(),J);re.__exportStar(Xw(),J);re.__exportStar(e0(),J);re.__exportStar(r0(),J);re.__exportStar(i0(),J);re.__exportStar(o0(),J);re.__exportStar(c0(),J);re.__exportStar(d0(),J)});var Cj=u(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});var rye=q();rye.__exportStar(W(),hA)});var Ij=u(xj=>{"use strict";Object.defineProperty(xj,"__esModule",{value:!0})});var Rj=u(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});vy.paginateListContributorInsights=void 0;var nye=Cu(),iye=es(),sye=di(),oye=async(e,t,...r)=>await e.send(new nye.ListContributorInsightsCommand(t),...r),aye=async(e,t,...r)=>await e.listContributorInsights(t,...r);async function*cye(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=n,t.MaxResults=e.pageSize,e.client instanceof iye.DynamoDB)s=await aye(e.client,t,...r);else if(e.client instanceof sye.DynamoDBClient)s=await oye(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}vy.paginateListContributorInsights=cye});var Nj=u(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});Sy.paginateListExports=void 0;var lye=Iu(),dye=es(),uye=di(),fye=async(e,t,...r)=>await e.send(new lye.ListExportsCommand(t),...r),mye=async(e,t,...r)=>await e.listExports(t,...r);async function*pye(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.NextToken=n,t.MaxResults=e.pageSize,e.client instanceof dye.DynamoDB)s=await mye(e.client,t,...r);else if(e.client instanceof uye.DynamoDBClient)s=await fye(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.NextToken,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Sy.paginateListExports=pye});var Pj=u(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});wy.paginateListTables=void 0;var _ye=Pu(),hye=es(),yye=di(),gye=async(e,t,...r)=>await e.send(new _ye.ListTablesCommand(t),...r),vye=async(e,t,...r)=>await e.listTables(t,...r);async function*Sye(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartTableName=n,t.Limit=e.pageSize,e.client instanceof hye.DynamoDB)s=await vye(e.client,t,...r);else if(e.client instanceof yye.DynamoDBClient)s=await gye(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedTableName,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}wy.paginateListTables=Sye});var Dj=u(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});Ey.paginateQuery=void 0;var wye=qu(),Eye=es(),bye=di(),Aye=async(e,t,...r)=>await e.send(new wye.QueryCommand(t),...r),Tye=async(e,t,...r)=>await e.query(t,...r);async function*Cye(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof Eye.DynamoDB)s=await Tye(e.client,t,...r);else if(e.client instanceof bye.DynamoDBClient)s=await Aye(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}Ey.paginateQuery=Cye});var Oj=u(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});by.paginateScan=void 0;var xye=ku(),Iye=es(),Rye=di(),Nye=async(e,t,...r)=>await e.send(new xye.ScanCommand(t),...r),Pye=async(e,t,...r)=>await e.scan(t,...r);async function*Dye(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof Iye.DynamoDB)s=await Pye(e.client,t,...r);else if(e.client instanceof Rye.DynamoDBClient)s=await Nye(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");yield s;let o=n;n=s.LastEvaluatedKey,i=!!(n&&(!e.stopOnSameToken||n!==o))}return void 0}by.paginateScan=Dye});var Lj=u(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});var to=q();to.__exportStar(Ij(),ui);to.__exportStar(Rj(),ui);to.__exportStar(Nj(),ui);to.__exportStar(Pj(),ui);to.__exportStar(Dj(),ui);to.__exportStar(Oj(),ui)});var yA=u(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});Ay.sleep=void 0;var Oye=e=>new Promise(t=>setTimeout(t,e*1e3));Ay.sleep=Oye});var Cy=u(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.checkExceptions=In.WaiterState=In.waiterServiceDefaults=void 0;In.waiterServiceDefaults={minDelay:2,maxDelay:120};var Ty;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Ty=In.WaiterState||(In.WaiterState={}));var Lye=e=>{if(e.state===Ty.ABORTED){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"})}`);throw t.name="AbortError",t}else if(e.state===Ty.TIMEOUT){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"})}`);throw t.name="TimeoutError",t}else if(e.state!==Ty.SUCCESS)throw new Error(`${JSON.stringify({result:e})}`);return e};In.checkExceptions=Lye});var qj=u(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});Iy.runPolling=void 0;var qye=yA(),xy=Cy(),Mye=(e,t,r,n)=>{if(n>r)return t;let i=e*2**(n-1);return zye(e,i)},zye=(e,t)=>e+Math.random()*(t-e),jye=async({minDelay:e,maxDelay:t,maxWaitTime:r,abortController:n,client:i,abortSignal:s},o,a)=>{var c;let{state:d}=await a(i,o);if(d!==xy.WaiterState.RETRY)return{state:d};let f=1,_=Date.now()+r*1e3,m=Math.log(t/e)/Math.log(2)+1;for(;;){if(((c=n==null?void 0:n.signal)===null||c===void 0?void 0:c.aborted)||(s==null?void 0:s.aborted))return{state:xy.WaiterState.ABORTED};let h=Mye(e,t,m,f);if(Date.now()+h*1e3>_)return{state:xy.WaiterState.TIMEOUT};await(0,qye.sleep)(h);let{state:g}=await a(i,o);if(g!==xy.WaiterState.RETRY)return{state:g};f+=1}};Iy.runPolling=jye});var Mj=u(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});Ry.validateWaiterOptions=void 0;var kye=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`)};Ry.validateWaiterOptions=kye});var jj=u(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var zj=q();zj.__exportStar(yA(),Ny);zj.__exportStar(Mj(),Ny)});var Uj=u(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});Py.createWaiter=void 0;var Fye=qj(),Uye=jj(),Fj=Cy(),kj=async e=>new Promise(t=>{e.onabort=()=>t({state:Fj.WaiterState.ABORTED})}),Bye=async(e,t,r)=>{let n={...Fj.waiterServiceDefaults,...e};(0,Uye.validateWaiterOptions)(n);let i=[(0,Fye.runPolling)(n,t,r)];return e.abortController&&i.push(kj(e.abortController.signal)),e.abortSignal&&i.push(kj(e.abortSignal)),Promise.race(i)};Py.createWaiter=Bye});var gA=u(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Bj=q();Bj.__exportStar(Uj(),Dy);Bj.__exportStar(Cy(),Dy)});var $j=u(no=>{"use strict";Object.defineProperty(no,"__esModule",{value:!0});no.waitUntilTableExists=no.waitForTableExists=void 0;var ro=gA(),Gye=Oa(),Gj=async(e,t)=>{let r;try{let n=await e.send(new Gye.DescribeTableCommand(t));r=n;try{if((()=>n.Table.TableStatus)()==="ACTIVE")return{state:ro.WaiterState.SUCCESS,reason:r}}catch{}}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:ro.WaiterState.RETRY,reason:r}}return{state:ro.WaiterState.RETRY,reason:r}},$ye=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,ro.createWaiter)({...r,...e},t,Gj)};no.waitForTableExists=$ye;var Vye=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,ro.createWaiter)({...r,...e},t,Gj);return(0,ro.checkExceptions)(n)};no.waitUntilTableExists=Vye});var Kj=u(io=>{"use strict";Object.defineProperty(io,"__esModule",{value:!0});io.waitUntilTableNotExists=io.waitForTableNotExists=void 0;var ll=gA(),Kye=Oa(),Vj=async(e,t)=>{let r;try{r=await e.send(new Kye.DescribeTableCommand(t))}catch(n){if(r=n,n.name&&n.name=="ResourceNotFoundException")return{state:ll.WaiterState.SUCCESS,reason:r}}return{state:ll.WaiterState.RETRY,reason:r}},Hye=async(e,t)=>{let r={minDelay:20,maxDelay:120};return(0,ll.createWaiter)({...r,...e},t,Vj)};io.waitForTableNotExists=Hye;var Wye=async(e,t)=>{let r={minDelay:20,maxDelay:120},n=await(0,ll.createWaiter)({...r,...e},t,Vj);return(0,ll.checkExceptions)(n)};io.waitUntilTableNotExists=Wye});var Wj=u(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var Hj=q();Hj.__exportStar($j(),Oy);Hj.__exportStar(Kj(),Oy)});var wt=u(sn=>{"use strict";Object.defineProperty(sn,"__esModule",{value:!0});sn.DynamoDBServiceException=void 0;var so=q();so.__exportStar(es(),sn);so.__exportStar(di(),sn);so.__exportStar(Tj(),sn);so.__exportStar(Cj(),sn);so.__exportStar(Lj(),sn);so.__exportStar(Wj(),sn);var Jye=Sd();Object.defineProperty(sn,"DynamoDBServiceException",{enumerable:!0,get:function(){return Jye.DynamoDBServiceException}})});var vA=u(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});ts.convertToAttr=void 0;var Yye=(e,t)=>{var r,n,i,s,o,a;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 Ly();if(Array.isArray(e))return Qye(e,t);if(((r=e==null?void 0:e.constructor)===null||r===void 0?void 0:r.name)==="Set")return Xye(e,t);if(((n=e==null?void 0:e.constructor)===null||n===void 0?void 0:n.name)==="Map")return Zye(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 Jj(e,t);if(tk(e))return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Ly():Qj(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"||((o=e==null?void 0:e.constructor)===null||o===void 0?void 0:o.name)==="Number")return ek(e);if(typeof e=="bigint")return Zj(e);if(typeof e=="string"||((a=e==null?void 0:e.constructor)===null||a===void 0?void 0:a.name)==="String")return e.length===0&&(t==null?void 0:t.convertEmptyValues)?Ly():Xj(e);if((t==null?void 0:t.convertClassInstanceToMap)&&typeof e=="object")return Jj(e,t);throw new Error(`Unsupported type passed: ${e}. Pass options.convertClassInstanceToMap=true to marshall typeof object as map attribute.`)};ts.convertToAttr=Yye;var Qye=(e,t)=>({L:e.filter(r=>!(t!=null&&t.removeUndefinedValues)||(t==null?void 0:t.removeUndefinedValues)&&r!==void 0).map(r=>(0,ts.convertToAttr)(r,t))}),Xye=(e,t)=>{let r=t!=null&&t.removeUndefinedValues?new Set([...e].filter(i=>i!==void 0)):e;if(!(t!=null&&t.removeUndefinedValues)&&r.has(void 0))throw new Error("Pass options.removeUndefinedValues=true to remove undefined values from map/array/set.");if(r.size===0){if(t!=null&&t.convertEmptyValues)return Ly();throw new Error("Pass a non-empty set, or options.convertEmptyValues=true.")}let n=r.values().next().value;if(typeof n=="number")return{NS:Array.from(r).map(ek).map(i=>i.N)};if(typeof n=="bigint")return{NS:Array.from(r).map(Zj).map(i=>i.N)};if(typeof n=="string")return{SS:Array.from(r).map(Xj).map(i=>i.S)};if(tk(n))return{BS:Array.from(r).map(Qj).map(i=>i.B)};throw new Error("Only Number Set (NS), Binary Set (BS) or String Set (SS) are allowed.")},Zye=(e,t)=>({M:(r=>{let n={};for(let[i,s]of r)typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(n[i]=(0,ts.convertToAttr)(s,t));return n})(e)}),Jj=(e,t)=>({M:(r=>{let n={};for(let i in r){let s=r[i];typeof s!="function"&&(s!==void 0||!(t!=null&&t.removeUndefinedValues))&&(n[i]=(0,ts.convertToAttr)(s,t))}return n})(e)}),Ly=()=>({NULL:!0}),Qj=e=>({B:e}),Xj=e=>({S:e.toString()}),Zj=e=>({N:e.toString()}),Yj=e=>{throw new Error(`${e} ${typeof BigInt=="function"?"Use BigInt.":"Pass string value instead."} `)},ek=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?Yj(`Number ${e.toString()} is greater than Number.MAX_SAFE_INTEGER.`):e<Number.MIN_SAFE_INTEGER&&Yj(`Number ${e.toString()} is lesser than Number.MIN_SAFE_INTEGER.`),{N:e.toString()}},tk=e=>{let t=["ArrayBuffer","Blob","Buffer","DataView","File","Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];return e!=null&&e.constructor?t.includes(e.constructor.name):!1}});var SA=u(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});oo.convertToNative=void 0;var ege=(e,t)=>{for(let[r,n]of Object.entries(e))if(n!==void 0)switch(r){case"NULL":return null;case"BOOL":return Boolean(n);case"N":return rk(n,t);case"B":return ik(n);case"S":return nk(n);case"L":return tge(n,t);case"M":return rge(n,t);case"NS":return new Set(n.map(i=>rk(i,t)));case"BS":return new Set(n.map(ik));case"SS":return new Set(n.map(nk));default:throw new Error(`Unsupported type passed: ${r}`)}throw new Error(`No value defined: ${JSON.stringify(e)}`)};oo.convertToNative=ege;var rk=(e,t)=>{if(t!=null&&t.wrapNumbers)return{value:e};let r=Number(e),n=[Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY];if((r>Number.MAX_SAFE_INTEGER||r<Number.MIN_SAFE_INTEGER)&&!n.includes(r))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 r},nk=e=>e,ik=e=>e,tge=(e,t)=>e.map(r=>(0,oo.convertToNative)(r,t)),rge=(e,t)=>Object.entries(e).reduce((r,[n,i])=>({...r,[n]:(0,oo.convertToNative)(i,t)}),{})});var sk=u(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});qy.marshall=void 0;var nge=vA();function ige(e,t){let r=(0,nge.convertToAttr)(e,t),[n,i]=Object.entries(r)[0];switch(n){case"M":case"L":return i;case"SS":case"NS":case"BS":case"S":case"N":case"B":case"NULL":case"BOOL":case"$unknown":default:return r}}qy.marshall=ige});var ak=u(ok=>{"use strict";Object.defineProperty(ok,"__esModule",{value:!0})});var ck=u(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});My.unmarshall=void 0;var sge=SA(),oge=(e,t)=>(0,sge.convertToNative)({M:e},t);My.unmarshall=oge});var lk=u(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});var dl=q();dl.__exportStar(vA(),rs);dl.__exportStar(SA(),rs);dl.__exportStar(sk(),rs);dl.__exportStar(ak(),rs);dl.__exportStar(ck(),rs)});var Pt=u(ao=>{"use strict";Object.defineProperty(ao,"__esModule",{value:!0});ao.unmarshallOutput=ao.marshallInput=void 0;var uk=lk(),dk=(e,t,r)=>{if(e!==void 0)return!r||Array.isArray(r)&&r.length===0?t(e):Array.isArray(r)?wA(e,t,r):age(e,t,r.children)},fk=(e,t,r)=>Array.isArray(e)?e.map(n=>dk(n,t,r)):dk(e,t,r),wA=(e,t,r)=>r.reduce((n,{key:i,children:s})=>({...n,[i]:fk(n[i],t,s)}),e),age=(e,t,r)=>Object.entries(e).reduce((n,[i,s])=>({...n,[i]:fk(s,t,r)}),{}),cge=(e,t,r)=>wA(e,i=>(0,uk.marshall)(i,r),t);ao.marshallInput=cge;var lge=(e,t,r)=>wA(e,i=>(0,uk.unmarshall)(i,r),t);ao.unmarshallOutput=lge});var bA=u(zy=>{"use strict";Object.defineProperty(zy,"__esModule",{value:!0});zy.BatchExecuteStatementCommand=void 0;var dge=wt(),uge=N(),mk=Pt(),EA=class extends uge.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Statements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new dge.BatchExecuteStatementCommand((0,mk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,mk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};zy.BatchExecuteStatementCommand=EA});var TA=u(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});jy.BatchGetCommand=void 0;var fge=wt(),mge=N(),pk=Pt(),AA=class extends mge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new fge.BatchGetItemCommand((0,pk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,pk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};jy.BatchGetCommand=AA});var xA=u(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});ky.BatchWriteCommand=void 0;var pge=wt(),_ge=N(),_k=Pt(),CA=class extends _ge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new pge.BatchWriteItemCommand((0,_k.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,_k.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};ky.BatchWriteCommand=CA});var RA=u(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.DeleteCommand=void 0;var hge=wt(),yge=N(),hk=Pt(),IA=class extends yge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new hge.DeleteItemCommand((0,hk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,hk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Fy.DeleteCommand=IA});var PA=u(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});Uy.ExecuteStatementCommand=void 0;var gge=wt(),vge=N(),yk=Pt(),NA=class extends vge.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Parameters"}],this.outputKeyNodes=[{key:"Items"},{key:"LastEvaluatedKey"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new gge.ExecuteStatementCommand((0,yk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,yk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Uy.ExecuteStatementCommand=NA});var OA=u(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});By.ExecuteTransactionCommand=void 0;var Sge=wt(),wge=N(),gk=Pt(),DA=class extends wge.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"TransactStatements",children:[{key:"Parameters"}]}],this.outputKeyNodes=[{key:"Responses",children:[{key:"Item"}]}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Sge.ExecuteTransactionCommand((0,gk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,gk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};By.ExecuteTransactionCommand=DA});var qA=u(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});Gy.GetCommand=void 0;var Ege=wt(),bge=N(),vk=Pt(),LA=class extends bge.Command{constructor(t){super(),this.input=t,this.inputKeyNodes=[{key:"Key"}],this.outputKeyNodes=[{key:"Item"}]}resolveMiddleware(t,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Ege.GetItemCommand((0,vk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,vk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Gy.GetCommand=LA});var zA=u($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});$y.PutCommand=void 0;var Age=wt(),Tge=N(),Sk=Pt(),MA=class extends Tge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Age.PutItemCommand((0,Sk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,Sk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};$y.PutCommand=MA});var Ky=u(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});Vy.QueryCommand=void 0;var Cge=wt(),xge=N(),wk=Pt(),jA=class extends xge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Cge.QueryCommand((0,wk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,wk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Vy.QueryCommand=jA});var Wy=u(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});Hy.ScanCommand=void 0;var Ige=wt(),Rge=N(),Ek=Pt(),kA=class extends Rge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Ige.ScanCommand((0,Ek.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,Ek.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Hy.ScanCommand=kA});var UA=u(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});Jy.TransactGetCommand=void 0;var Nge=wt(),Pge=N(),bk=Pt(),FA=class extends Pge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Nge.TransactGetItemsCommand((0,bk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,bk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Jy.TransactGetCommand=FA});var GA=u(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.TransactWriteCommand=void 0;var Dge=wt(),Oge=N(),Ak=Pt(),BA=class extends Oge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Dge.TransactWriteItemsCommand((0,Ak.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,Ak.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Yy.TransactWriteCommand=BA});var VA=u(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});Qy.UpdateCommand=void 0;var Lge=wt(),qge=N(),Tk=Pt(),$A=class extends qge.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,r,n){let{marshallOptions:i,unmarshallOptions:s}=r.translateConfig||{},o=new Lge.UpdateItemCommand((0,Tk.marshallInput)(this.input,this.inputKeyNodes,i)),a=o.resolveMiddleware(t,r,n);return async()=>{let c=await a(o);return{...c,output:(0,Tk.unmarshallOutput)(c.output,this.outputKeyNodes,s)}}}};Qy.UpdateCommand=$A});var fl=u(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});Xy.DynamoDBDocumentClient=void 0;var Mge=N(),ul=class extends Mge.Client{constructor(t,r){super(t.config),this.config=t.config,this.config.translateConfig=r,this.middlewareStack=t.middlewareStack}static from(t,r){return new ul(t,r)}destroy(){}};Xy.DynamoDBDocumentClient=ul});var eg=u(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});Zy.DynamoDBDocument=void 0;var zge=bA(),jge=TA(),kge=xA(),Fge=RA(),Uge=PA(),Bge=OA(),Gge=qA(),$ge=zA(),Vge=Ky(),Kge=Wy(),Hge=UA(),Wge=GA(),Jge=VA(),Yge=fl(),ml=class extends Yge.DynamoDBDocumentClient{static from(t,r){return new ml(t,r)}batchExecuteStatement(t,r,n){let i=new zge.BatchExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchGet(t,r,n){let i=new jge.BatchGetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}batchWrite(t,r,n){let i=new kge.BatchWriteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}delete(t,r,n){let i=new Fge.DeleteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeStatement(t,r,n){let i=new Uge.ExecuteStatementCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}executeTransaction(t,r,n){let i=new Bge.ExecuteTransactionCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}get(t,r,n){let i=new Gge.GetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}put(t,r,n){let i=new $ge.PutCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}query(t,r,n){let i=new Vge.QueryCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}scan(t,r,n){let i=new Kge.ScanCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactGet(t,r,n){let i=new Hge.TransactGetCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}transactWrite(t,r,n){let i=new Wge.TransactWriteCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}update(t,r,n){let i=new Jge.UpdateCommand(t);if(typeof r=="function")this.send(i,r);else if(typeof n=="function"){if(typeof r!="object")throw new Error(`Expect http options but get ${typeof r}`);this.send(i,r||{},n)}else return this.send(i,r)}};Zy.DynamoDBDocument=ml});var Ck=u(Et=>{"use strict";Object.defineProperty(Et,"__esModule",{value:!0});var Vt=q();Vt.__exportStar(bA(),Et);Vt.__exportStar(TA(),Et);Vt.__exportStar(xA(),Et);Vt.__exportStar(RA(),Et);Vt.__exportStar(PA(),Et);Vt.__exportStar(OA(),Et);Vt.__exportStar(qA(),Et);Vt.__exportStar(zA(),Et);Vt.__exportStar(Ky(),Et);Vt.__exportStar(Wy(),Et);Vt.__exportStar(UA(),Et);Vt.__exportStar(GA(),Et);Vt.__exportStar(VA(),Et)});var Ik=u(xk=>{"use strict";Object.defineProperty(xk,"__esModule",{value:!0})});var Rk=u(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});tg.paginateQuery=void 0;var Qge=Ky(),Xge=eg(),Zge=fl(),eve=async(e,t,...r)=>await e.send(new Qge.QueryCommand(t),...r),tve=async(e,t,...r)=>await e.query(t,...r);async function*rve(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof Xge.DynamoDBDocument)s=await tve(e.client,t,...r);else if(e.client instanceof Zge.DynamoDBDocumentClient)s=await eve(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}tg.paginateQuery=rve});var Nk=u(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});rg.paginateScan=void 0;var nve=Wy(),ive=eg(),sve=fl(),ove=async(e,t,...r)=>await e.send(new nve.ScanCommand(t),...r),ave=async(e,t,...r)=>await e.scan(t,...r);async function*cve(e,t,...r){let n=e.startingToken||void 0,i=!0,s;for(;i;){if(t.ExclusiveStartKey=n,t.Limit=e.pageSize,e.client instanceof ive.DynamoDBDocument)s=await ave(e.client,t,...r);else if(e.client instanceof sve.DynamoDBDocumentClient)s=await ove(e.client,t,...r);else throw new Error("Invalid client, expected DynamoDBDocument | DynamoDBDocumentClient");yield s,n=s.LastEvaluatedKey,i=!!n}return void 0}rg.paginateScan=cve});var Pk=u(pl=>{"use strict";Object.defineProperty(pl,"__esModule",{value:!0});var KA=q();KA.__exportStar(Ik(),pl);KA.__exportStar(Rk(),pl);KA.__exportStar(Nk(),pl)});var Dk=u(co=>{"use strict";Object.defineProperty(co,"__esModule",{value:!0});var ng=q();ng.__exportStar(eg(),co);ng.__exportStar(fl(),co);ng.__exportStar(Ck(),co);ng.__exportStar(Pk(),co)});var Ok=u(ig=>{"use strict";Object.defineProperty(ig,"__esModule",{value:!0});ig.DBManager=void 0;var lve=Dk(),HA=class{get client(){return this._client}get ddbDocClient(){return this._ddbDocClient}constructor(t){let{dynamoClient:r,tableName:n}=t;this._tableName=n,this._client=r,this._ddbDocClient=lve.DynamoDBDocument.from(this._client)}get tableName(){return this._tableName}set tableName(t){this._tableName=t}};ig.DBManager=HA});var Lk=u(_l=>{"use strict";Object.defineProperty(_l,"__esModule",{value:!0});_l.TransformationType=void 0;var dve;(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"})(dve=_l.TransformationType||(_l.TransformationType={}))});var hl=u(ns=>{"use strict";var uve=ns&&ns.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),fve=ns&&ns.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&uve(t,e,r)};Object.defineProperty(ns,"__esModule",{value:!0});fve(Lk(),ns)});var qk=u(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});sg.MetadataStorage=void 0;var Rn=hl(),WA=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,r,n){return this.findMetadatas(this._transformMetadatas,t,r).filter(i=>!i.options||i.options.toClassOnly===!0&&i.options.toPlainOnly===!0?!0:i.options.toClassOnly===!0?n===Rn.TransformationType.CLASS_TO_CLASS||n===Rn.TransformationType.PLAIN_TO_CLASS:i.options.toPlainOnly===!0?n===Rn.TransformationType.CLASS_TO_PLAIN:!0)}findExcludeMetadata(t,r){return this.findMetadata(this._excludeMetadatas,t,r)}findExposeMetadata(t,r){return this.findMetadata(this._exposeMetadatas,t,r)}findExposeMetadataByCustomName(t,r){return this.getExposedMetadatas(t).find(n=>n.options&&n.options.name===r)}findTypeMetadata(t,r){return this.findMetadata(this._typeMetadatas,t,r)}getStrategy(t){let r=this._excludeMetadatas.get(t),n=r&&r.get(void 0),i=this._exposeMetadatas.get(t),s=i&&i.get(void 0);return n&&s||!n&&!s?"none":n?"excludeAll":"exposeAll"}getExposedMetadatas(t){return this.getMetadata(this._exposeMetadatas,t)}getExcludedMetadatas(t){return this.getMetadata(this._excludeMetadatas,t)}getExposedProperties(t,r){return this.getExposedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===Rn.TransformationType.CLASS_TO_CLASS||r===Rn.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===Rn.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}getExcludedProperties(t,r){return this.getExcludedMetadatas(t).filter(n=>!n.options||n.options.toClassOnly===!0&&n.options.toPlainOnly===!0?!0:n.options.toClassOnly===!0?r===Rn.TransformationType.CLASS_TO_CLASS||r===Rn.TransformationType.PLAIN_TO_CLASS:n.options.toPlainOnly===!0?r===Rn.TransformationType.CLASS_TO_PLAIN:!0).map(n=>n.propertyName)}clear(){this._typeMetadatas.clear(),this._exposeMetadatas.clear(),this._excludeMetadatas.clear(),this._ancestorsMap.clear()}getMetadata(t,r){let n=t.get(r),i;n&&(i=Array.from(n.values()).filter(o=>o.propertyName!==void 0));let s=[];for(let o of this.getAncestors(r)){let a=t.get(o);if(a){let c=Array.from(a.values()).filter(d=>d.propertyName!==void 0);s.push(...c)}}return s.concat(i||[])}findMetadata(t,r,n){let i=t.get(r);if(i){let s=i.get(n);if(s)return s}for(let s of this.getAncestors(r)){let o=t.get(s);if(o){let a=o.get(n);if(a)return a}}}findMetadatas(t,r,n){let i=t.get(r),s;i&&(s=i.get(n));let o=[];for(let a of this.getAncestors(r)){let c=t.get(a);c&&c.has(n)&&o.push(...c.get(n))}return o.slice().reverse().concat((s||[]).slice().reverse())}getAncestors(t){if(!t)return[];if(!this._ancestorsMap.has(t)){let r=[];for(let n=Object.getPrototypeOf(t.prototype.constructor);typeof n.prototype<"u";n=Object.getPrototypeOf(n.prototype.constructor))r.push(n);this._ancestorsMap.set(t,r)}return this._ancestorsMap.get(t)}};sg.MetadataStorage=WA});var lo=u(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});og.defaultMetadataStorage=void 0;var mve=qk();og.defaultMetadataStorage=new mve.MetadataStorage});var Mk=u(ag=>{"use strict";Object.defineProperty(ag,"__esModule",{value:!0});ag.getGlobal=void 0;function pve(){if(typeof globalThis<"u")return globalThis;if(typeof global<"u")return global;if(typeof window<"u")return window;if(typeof self<"u")return self}ag.getGlobal=pve});var zk=u(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});cg.isPromise=void 0;function _ve(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}cg.isPromise=_ve});var kk=u(fi=>{"use strict";var hve=fi&&fi.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),jk=fi&&fi.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&hve(t,e,r)};Object.defineProperty(fi,"__esModule",{value:!0});jk(Mk(),fi);jk(zk(),fi)});var Uk=u(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});lg.TransformOperationExecutor=void 0;var Dt=lo(),Ue=hl(),Fk=kk();function yve(e){let t=new e;return!(t instanceof Set)&&!("push"in t)?[]:t}var JA=class{constructor(t,r){this.transformationType=t,this.options=r,this.recursionStack=new Set}transform(t,r,n,i,s,o=0){if(Array.isArray(r)||r instanceof Set){let a=i&&this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS?yve(i):[];return r.forEach((c,d)=>{let f=t?t[d]:void 0;if(!this.options.enableCircularCheck||!this.isCircular(c)){let _;if(typeof n!="function"&&n&&n.options&&n.options.discriminator&&n.options.discriminator.property&&n.options.discriminator.subTypes){if(this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS){_=n.options.discriminator.subTypes.find(y=>y.name===c[n.options.discriminator.property]);let h={newObject:a,object:c,property:void 0},g=n.typeFunction(h);_===void 0?_=g:_=_.value,n.options.keepDiscriminatorProperty||delete c[n.options.discriminator.property]}this.transformationType===Ue.TransformationType.CLASS_TO_CLASS&&(_=c.constructor),this.transformationType===Ue.TransformationType.CLASS_TO_PLAIN&&(c[n.options.discriminator.property]=n.options.discriminator.subTypes.find(h=>h.value===c.constructor).name)}else _=n;let m=this.transform(f,c,_,void 0,c instanceof Map,o+1);a instanceof Set?a.add(m):a.push(m)}else this.transformationType===Ue.TransformationType.CLASS_TO_CLASS&&(a instanceof Set?a.add(c):a.push(c))}),a}else{if(n===String&&!s)return r==null?r:String(r);if(n===Number&&!s)return r==null?r:Number(r);if(n===Boolean&&!s)return r==null?r:Boolean(r);if((n===Date||r instanceof Date)&&!s)return r instanceof Date?new Date(r.valueOf()):r==null?r:new Date(r);if(!!(0,Fk.getGlobal)().Buffer&&(n===Buffer||r instanceof Buffer)&&!s)return r==null?r:Buffer.from(r);if((0,Fk.isPromise)(r)&&!s)return new Promise((a,c)=>{r.then(d=>a(this.transform(void 0,d,n,void 0,void 0,o+1)),c)});if(!s&&r!==null&&typeof r=="object"&&typeof r.then=="function")return r;if(typeof r=="object"&&r!==null){!n&&r.constructor!==Object&&(!Array.isArray(r)&&r.constructor===Array||(n=r.constructor)),!n&&t&&(n=t.constructor),this.options.enableCircularCheck&&this.recursionStack.add(r);let a=this.getKeys(n,r,s),c=t||{};!t&&(this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS||this.transformationType===Ue.TransformationType.CLASS_TO_CLASS)&&(s?c=new Map:n?c=new n:c={});for(let d of a){if(d==="__proto__"||d==="constructor")continue;let f=d,_=d,m=d;if(!this.options.ignoreDecorators&&n){if(this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS){let T=Dt.defaultMetadataStorage.findExposeMetadataByCustomName(n,d);T&&(m=T.propertyName,_=T.propertyName)}else if(this.transformationType===Ue.TransformationType.CLASS_TO_PLAIN||this.transformationType===Ue.TransformationType.CLASS_TO_CLASS){let T=Dt.defaultMetadataStorage.findExposeMetadata(n,d);T&&T.options&&T.options.name&&(_=T.options.name)}}let h;this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS?h=r[f]:r instanceof Map?h=r.get(f):r[f]instanceof Function?h=r[f]():h=r[f];let g,y=h instanceof Map;if(n&&s)g=n;else if(n){let T=Dt.defaultMetadataStorage.findTypeMetadata(n,m);if(T){let $={newObject:c,object:r,property:m},he=T.typeFunction?T.typeFunction($):T.reflectedType;T.options&&T.options.discriminator&&T.options.discriminator.property&&T.options.discriminator.subTypes?r[f]instanceof Array?g=T:(this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS&&(g=T.options.discriminator.subTypes.find(sr=>{if(h&&h instanceof Object&&T.options.discriminator.property in h)return sr.name===h[T.options.discriminator.property]}),g===void 0?g=he:g=g.value,T.options.keepDiscriminatorProperty||h&&h instanceof Object&&T.options.discriminator.property in h&&delete h[T.options.discriminator.property]),this.transformationType===Ue.TransformationType.CLASS_TO_CLASS&&(g=h.constructor),this.transformationType===Ue.TransformationType.CLASS_TO_PLAIN&&h&&(h[T.options.discriminator.property]=T.options.discriminator.subTypes.find(sr=>sr.value===h.constructor).name)):g=he,y=y||T.reflectedType===Map}else if(this.options.targetMaps)this.options.targetMaps.filter($=>$.target===n&&!!$.properties[m]).forEach($=>g=$.properties[m]);else if(this.options.enableImplicitConversion&&this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS){let $=Reflect.getMetadata("design:type",n.prototype,m);$&&(g=$)}}let A=Array.isArray(r[f])?this.getReflectedType(n,m):void 0,R=t?t[f]:void 0;if(c.constructor.prototype){let T=Object.getOwnPropertyDescriptor(c.constructor.prototype,_);if((this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS||this.transformationType===Ue.TransformationType.CLASS_TO_CLASS)&&(T&&!T.set||c[_]instanceof Function))continue}if(!this.options.enableCircularCheck||!this.isCircular(h)){let T=this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS?_:d,$;this.transformationType===Ue.TransformationType.CLASS_TO_PLAIN?($=r[T],$=this.applyCustomTransformations($,n,T,r,this.transformationType),$=r[T]===$?h:$,$=this.transform(R,$,g,A,y,o+1)):h===void 0&&this.options.exposeDefaultValues?$=c[_]:($=this.transform(R,h,g,A,y,o+1),$=this.applyCustomTransformations($,n,T,r,this.transformationType)),($!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(_,$):c[_]=$)}else if(this.transformationType===Ue.TransformationType.CLASS_TO_CLASS){let T=h;T=this.applyCustomTransformations(T,n,d,r,this.transformationType),(T!==void 0||this.options.exposeUnsetFields)&&(c instanceof Map?c.set(_,T):c[_]=T)}}return this.options.enableCircularCheck&&this.recursionStack.delete(r),c}else return r}}applyCustomTransformations(t,r,n,i,s){let o=Dt.defaultMetadataStorage.findTransformMetadatas(r,n,this.transformationType);return this.options.version!==void 0&&(o=o.filter(a=>a.options?this.checkVersion(a.options.since,a.options.until):!0)),this.options.groups&&this.options.groups.length?o=o.filter(a=>a.options?this.checkGroups(a.options.groups):!0):o=o.filter(a=>!a.options||!a.options.groups||!a.options.groups.length),o.forEach(a=>{t=a.transformFn({value:t,key:n,obj:i,type:s,options:this.options})}),t}isCircular(t){return this.recursionStack.has(t)}getReflectedType(t,r){if(!t)return;let n=Dt.defaultMetadataStorage.findTypeMetadata(t,r);return n?n.reflectedType:void 0}getKeys(t,r,n){let i=Dt.defaultMetadataStorage.getStrategy(t);i==="none"&&(i=this.options.strategy||"exposeAll");let s=[];if((i==="exposeAll"||n)&&(r instanceof Map?s=Array.from(r.keys()):s=Object.keys(r)),n)return s;if(this.options.ignoreDecorators&&this.options.excludeExtraneousValues&&t){let o=Dt.defaultMetadataStorage.getExposedProperties(t,this.transformationType),a=Dt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);s=[...o,...a]}if(!this.options.ignoreDecorators&&t){let o=Dt.defaultMetadataStorage.getExposedProperties(t,this.transformationType);this.transformationType===Ue.TransformationType.PLAIN_TO_CLASS&&(o=o.map(c=>{let d=Dt.defaultMetadataStorage.findExposeMetadata(t,c);return d&&d.options&&d.options.name?d.options.name:c})),this.options.excludeExtraneousValues?s=o:s=s.concat(o);let a=Dt.defaultMetadataStorage.getExcludedProperties(t,this.transformationType);a.length>0&&(s=s.filter(c=>!a.includes(c))),this.options.version!==void 0&&(s=s.filter(c=>{let d=Dt.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=Dt.defaultMetadataStorage.findExposeMetadata(t,c);return!d||!d.options?!0:this.checkGroups(d.options.groups)}):s=s.filter(c=>{let d=Dt.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(o=>this.options.excludePrefixes.every(a=>o.substr(0,a.length)!==a))),s=s.filter((o,a,c)=>c.indexOf(o)===a),s}checkVersion(t,r){let n=!0;return n&&t&&(n=this.options.version>=t),n&&r&&(n=this.options.version<r),n}checkGroups(t){return t?this.options.groups.some(r=>t.includes(r)):!0}};lg.TransformOperationExecutor=JA});var Bk=u(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.defaultOptions=void 0;dg.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 po=u(ug=>{"use strict";Object.defineProperty(ug,"__esModule",{value:!0});ug.ClassTransformer=void 0;var uo=Uk(),fo=hl(),mo=Bk(),YA=class{instanceToPlain(t,r){return new uo.TransformOperationExecutor(fo.TransformationType.CLASS_TO_PLAIN,{...mo.defaultOptions,...r}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToPlainFromExist(t,r,n){return new uo.TransformOperationExecutor(fo.TransformationType.CLASS_TO_PLAIN,{...mo.defaultOptions,...n}).transform(r,t,void 0,void 0,void 0,void 0)}plainToInstance(t,r,n){return new uo.TransformOperationExecutor(fo.TransformationType.PLAIN_TO_CLASS,{...mo.defaultOptions,...n}).transform(void 0,r,t,void 0,void 0,void 0)}plainToClassFromExist(t,r,n){return new uo.TransformOperationExecutor(fo.TransformationType.PLAIN_TO_CLASS,{...mo.defaultOptions,...n}).transform(t,r,void 0,void 0,void 0,void 0)}instanceToInstance(t,r){return new uo.TransformOperationExecutor(fo.TransformationType.CLASS_TO_CLASS,{...mo.defaultOptions,...r}).transform(void 0,t,void 0,void 0,void 0,void 0)}classToClassFromExist(t,r,n){return new uo.TransformOperationExecutor(fo.TransformationType.CLASS_TO_CLASS,{...mo.defaultOptions,...n}).transform(r,t,void 0,void 0,void 0,void 0)}serialize(t,r){return JSON.stringify(this.instanceToPlain(t,r))}deserialize(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}deserializeArray(t,r,n){let i=JSON.parse(r);return this.plainToInstance(t,i,n)}};ug.ClassTransformer=YA});var Gk=u(fg=>{"use strict";Object.defineProperty(fg,"__esModule",{value:!0});fg.Exclude=void 0;var gve=lo();function vve(e={}){return function(t,r){gve.defaultMetadataStorage.addExcludeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}fg.Exclude=vve});var $k=u(mg=>{"use strict";Object.defineProperty(mg,"__esModule",{value:!0});mg.Expose=void 0;var Sve=lo();function wve(e={}){return function(t,r){Sve.defaultMetadataStorage.addExposeMetadata({target:t instanceof Function?t:t.constructor,propertyName:r,options:e})}}mg.Expose=wve});var Vk=u(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.TransformInstanceToInstance=void 0;var Eve=po();function bve(e){return function(t,r,n){let i=new Eve.ClassTransformer,s=n.value;n.value=function(...o){let a=s.apply(this,o);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(d=>i.instanceToInstance(d,e)):i.instanceToInstance(a,e)}}}pg.TransformInstanceToInstance=bve});var Kk=u(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.TransformInstanceToPlain=void 0;var Ave=po();function Tve(e){return function(t,r,n){let i=new Ave.ClassTransformer,s=n.value;n.value=function(...o){let a=s.apply(this,o);return!!a&&(typeof a=="object"||typeof a=="function")&&typeof a.then=="function"?a.then(d=>i.instanceToPlain(d,e)):i.instanceToPlain(a,e)}}}_g.TransformInstanceToPlain=Tve});var Hk=u(hg=>{"use strict";Object.defineProperty(hg,"__esModule",{value:!0});hg.TransformPlainToInstance=void 0;var Cve=po();function xve(e,t){return function(r,n,i){let s=new Cve.ClassTransformer,o=i.value;i.value=function(...a){let c=o.apply(this,a);return!!c&&(typeof c=="object"||typeof c=="function")&&typeof c.then=="function"?c.then(f=>s.plainToInstance(e,f,t)):s.plainToInstance(e,c,t)}}}hg.TransformPlainToInstance=xve});var Wk=u(yg=>{"use strict";Object.defineProperty(yg,"__esModule",{value:!0});yg.Transform=void 0;var Ive=lo();function Rve(e,t={}){return function(r,n){Ive.defaultMetadataStorage.addTransformMetadata({target:r.constructor,propertyName:n,transformFn:e,options:t})}}yg.Transform=Rve});var Jk=u(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.Type=void 0;var Nve=lo();function Pve(e,t={}){return function(r,n){let i=Reflect.getMetadata("design:type",r,n);Nve.defaultMetadataStorage.addTypeMetadata({target:r.constructor,propertyName:n,reflectedType:i,typeFunction:e,options:t})}}gg.Type=Pve});var Yk=u(Kt=>{"use strict";var Dve=Kt&&Kt.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),is=Kt&&Kt.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Dve(t,e,r)};Object.defineProperty(Kt,"__esModule",{value:!0});is(Gk(),Kt);is($k(),Kt);is(Vk(),Kt);is(Kk(),Kt);is(Hk(),Kt);is(Wk(),Kt);is(Jk(),Kt)});var Xk=u(Qk=>{"use strict";Object.defineProperty(Qk,"__esModule",{value:!0})});var eF=u(Zk=>{"use strict";Object.defineProperty(Zk,"__esModule",{value:!0})});var rF=u(tF=>{"use strict";Object.defineProperty(tF,"__esModule",{value:!0})});var iF=u(nF=>{"use strict";Object.defineProperty(nF,"__esModule",{value:!0})});var oF=u(sF=>{"use strict";Object.defineProperty(sF,"__esModule",{value:!0})});var cF=u(aF=>{"use strict";Object.defineProperty(aF,"__esModule",{value:!0})});var dF=u(lF=>{"use strict";Object.defineProperty(lF,"__esModule",{value:!0})});var fF=u(uF=>{"use strict";Object.defineProperty(uF,"__esModule",{value:!0})});var pF=u(mF=>{"use strict";Object.defineProperty(mF,"__esModule",{value:!0})});var hF=u(_F=>{"use strict";Object.defineProperty(_F,"__esModule",{value:!0})});var gF=u(yF=>{"use strict";Object.defineProperty(yF,"__esModule",{value:!0})});var SF=u(vF=>{"use strict";Object.defineProperty(vF,"__esModule",{value:!0})});var EF=u(wF=>{"use strict";Object.defineProperty(wF,"__esModule",{value:!0})});var AF=u(bF=>{"use strict";Object.defineProperty(bF,"__esModule",{value:!0})});var TF=u(He=>{"use strict";var Ove=He&&He.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),Ot=He&&He.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Ove(t,e,r)};Object.defineProperty(He,"__esModule",{value:!0});Ot(Xk(),He);Ot(eF(),He);Ot(rF(),He);Ot(iF(),He);Ot(oF(),He);Ot(cF(),He);Ot(dF(),He);Ot(fF(),He);Ot(pF(),He);Ot(hF(),He);Ot(gF(),He);Ot(SF(),He);Ot(EF(),He);Ot(AF(),He)});var vg=u(_e=>{"use strict";var Lve=_e&&_e.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),QA=_e&&_e.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&Lve(t,e,r)};Object.defineProperty(_e,"__esModule",{value:!0});_e.deserializeArray=_e.deserialize=_e.serialize=_e.classToClassFromExist=_e.instanceToInstance=_e.plainToClassFromExist=_e.plainToInstance=_e.plainToClass=_e.classToPlainFromExist=_e.instanceToPlain=_e.classToPlain=_e.ClassTransformer=void 0;var qve=po(),Mve=po();Object.defineProperty(_e,"ClassTransformer",{enumerable:!0,get:function(){return Mve.ClassTransformer}});QA(Yk(),_e);QA(TF(),_e);QA(hl(),_e);var mr=new qve.ClassTransformer;function zve(e,t){return mr.instanceToPlain(e,t)}_e.classToPlain=zve;function jve(e,t){return mr.instanceToPlain(e,t)}_e.instanceToPlain=jve;function kve(e,t,r){return mr.classToPlainFromExist(e,t,r)}_e.classToPlainFromExist=kve;function Fve(e,t,r){return mr.plainToInstance(e,t,r)}_e.plainToClass=Fve;function Uve(e,t,r){return mr.plainToInstance(e,t,r)}_e.plainToInstance=Uve;function Bve(e,t,r){return mr.plainToClassFromExist(e,t,r)}_e.plainToClassFromExist=Bve;function Gve(e,t){return mr.instanceToInstance(e,t)}_e.instanceToInstance=Gve;function $ve(e,t,r){return mr.classToClassFromExist(e,t,r)}_e.classToClassFromExist=$ve;function Vve(e,t){return mr.serialize(e,t)}_e.serialize=Vve;function Kve(e,t,r){return mr.deserialize(e,t,r)}_e.deserialize=Kve;function Hve(e,t,r){return mr.deserializeArray(e,t,r)}_e.deserializeArray=Hve});var XA=u(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.Rules=void 0;var Wve=vg(),yl=class{static async Load(t){let{dbManager:r,key:n}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:"rules"}});return(0,Wve.plainToInstance)(yl,i)}constructor(t){Object.assign(this,t),t===void 0&&(this._ruleSet={})}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,RuleSet:this.RuleSet,Version:this.Version}}async Save(t){let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct}),n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([r,n]),await r,await n}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}};Sg.Rules=yl});var ZA=u(wg=>{"use strict";Object.defineProperty(wg,"__esModule",{value:!0});wg.Version=void 0;var CF=vg(),_o;(function(e){e[e.AppName=0]="AppName"})(_o||(_o={}));var ho=class{static async LoadVersions(t){let{dbManager:r,key:n}=t,{Items:i}=await r.ddbDocClient.query({TableName:r.tableName,KeyConditionExpression:"PK = :pkval and begins_with(SK, :skval)",ExpressionAttributeValues:{":pkval":`appName#${n.AppName}`.toLowerCase(),":skval":"version"}}),s=[];if(i!==void 0)for(let o of i){let a=(0,CF.plainToInstance)(ho,o);s.push(a)}return s}static async LoadVersion(t){let{dbManager:r,key:n}=t,{Item:i}=await r.ddbDocClient.get({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:`version#${n.SemVer}`.toLowerCase()}});return(0,CF.plainToInstance)(ho,i)}static async DeleteVersion(t){let{dbManager:r,key:n}=t;await r.ddbDocClient.delete({TableName:r.tableName,Key:{PK:`appName#${n.AppName}`.toLowerCase(),SK:`version#${n.SemVer}`.toLowerCase()}})}get PK(){switch(this._keyBy){case _o.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}constructor(t){this._keyBy=_o.AppName,this._status="pending",this._startupType="iframe",this._defaultFile="",this._integrationID="",this._routeIDAppVersion="",this._routeIDAppVersionSplat="",this._url="",this._lambdaARN="",Object.assign(this,t)}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,SemVer:this.SemVer,Type:this.Type,StartupType:this.StartupType,Status:this.Status,DefaultFile:this.DefaultFile,IntegrationID:this.IntegrationID,RouteIDAppVersion:this.RouteIDAppVersion,RouteIDAppVersionSplat:this.RouteIDAppVersionSplat,URL:this.URL,LambdaARN:this.LambdaARN}}async Save(t){this._keyBy=_o.AppName,await t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct})}get SK(){switch(this._keyBy){case _o.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 StartupType(){return this._startupType}set StartupType(t){this._startupType=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}get URL(){return this._url}set URL(t){this._url=t}get LambdaARN(){return this._lambdaARN}set LambdaARN(t){this._lambdaARN=t}};wg.Version=ho});var RF=u(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.Application=void 0;var xF=vg(),IF=XA(),Jve=ZA(),Nn;(function(e){e[e.AppName=0]="AppName",e[e.Applications=1]="Applications"})(Nn||(Nn={}));var yo=class{static async UpdateDefaultRule(t){let{dbManager:r,key:n}=t,i=await IF.Rules.Load({dbManager:r,key:n}),s=i.RuleSet.default;s.SemVer=n.SemVer,await i.Save(r)}static async GetVersionsAndRules(t){let{key:r,dbManager:n}=t,i=Jve.Version.LoadVersions({dbManager:n,key:r}),s=IF.Rules.Load({dbManager:n,key:r});return await Promise.all([i,s]),{Versions:await i,Rules:await s}}static async Load(t){let{key:r,dbManager:n}=t,{Item:i}=await n.ddbDocClient.get({TableName:n.tableName,Key:{PK:`appName#${r.AppName}`.toLowerCase(),SK:"application"}});return(0,xF.plainToInstance)(yo,i)}static async LoadAllApps(t){let{Items:r}=await t.ddbDocClient.query({TableName:t.tableName,KeyConditionExpression:"PK = :pkval",ExpressionAttributeValues:{":pkval":"applications"}}),n=[];if(r!==void 0)for(let i of r){let s=(0,xF.plainToInstance)(yo,i);n.push(s)}return n}constructor(t){Object.assign(this,t),this._keyBy=Nn.AppName}get DbStruct(){return{PK:this.PK,SK:this.SK,AppName:this.AppName,DisplayName:this.DisplayName}}async Save(t){this._keyBy=Nn.AppName;let r=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});this._keyBy=Nn.Applications;let n=t.ddbDocClient.put({TableName:t.tableName,Item:this.DbStruct});await Promise.all([r,n]),await r,await n}get PK(){switch(this._keyBy){case Nn.Applications:return"applications";case Nn.AppName:return`appName#${this.AppName}`.toLowerCase();default:throw new Error("Missing SaveBy handler")}}get SK(){switch(this._keyBy){case Nn.Applications:return`appName#${this.AppName}`.toLowerCase();case Nn.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}};Eg.Application=yo});var eT=u(on=>{"use strict";Object.defineProperty(on,"__esModule",{value:!0});on.Version=on.Rules=on.Application=on.DBManager=void 0;var Yve=Ok();Object.defineProperty(on,"DBManager",{enumerable:!0,get:function(){return Yve.DBManager}});var Qve=RF();Object.defineProperty(on,"Application",{enumerable:!0,get:function(){return Qve.Application}});var Xve=XA();Object.defineProperty(on,"Rules",{enumerable:!0,get:function(){return Xve.Rules}});var Zve=ZA();Object.defineProperty(on,"Version",{enumerable:!0,get:function(){return Zve.Version}})});var Lt=u(tT=>{"use strict";tT.fromCallback=function(e){return Object.defineProperty(function(...t){if(typeof t[t.length-1]=="function")e.apply(this,t);else return new Promise((r,n)=>{e.call(this,...t,(i,s)=>i!=null?n(i):r(s))})},"name",{value:e.name})};tT.fromPromise=function(e){return Object.defineProperty(function(...t){let r=t[t.length-1];if(typeof r!="function")return e.apply(this,t);e.apply(this,t.slice(0,-1)).then(n=>r(null,n),r)},"name",{value:e.name})}});var PF=u((Wqe,NF)=>{var mi=require("constants"),eSe=process.cwd,bg=null,tSe=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){return bg||(bg=eSe.call(process)),bg};try{process.cwd()}catch{}typeof process.chdir=="function"&&(rT=process.chdir,process.chdir=function(e){bg=null,rT.call(process,e)},Object.setPrototypeOf&&Object.setPrototypeOf(process.chdir,rT));var rT;NF.exports=rSe;function rSe(e){mi.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)&&t(e),e.lutimes||r(e),e.chown=s(e.chown),e.fchown=s(e.fchown),e.lchown=s(e.lchown),e.chmod=n(e.chmod),e.fchmod=n(e.fchmod),e.lchmod=n(e.lchmod),e.chownSync=o(e.chownSync),e.fchownSync=o(e.fchownSync),e.lchownSync=o(e.lchownSync),e.chmodSync=i(e.chmodSync),e.fchmodSync=i(e.fchmodSync),e.lchmodSync=i(e.lchmodSync),e.stat=a(e.stat),e.fstat=a(e.fstat),e.lstat=a(e.lstat),e.statSync=c(e.statSync),e.fstatSync=c(e.fstatSync),e.lstatSync=c(e.lstatSync),e.chmod&&!e.lchmod&&(e.lchmod=function(f,_,m){m&&process.nextTick(m)},e.lchmodSync=function(){}),e.chown&&!e.lchown&&(e.lchown=function(f,_,m,h){h&&process.nextTick(h)},e.lchownSync=function(){}),tSe==="win32"&&(e.rename=typeof e.rename!="function"?e.rename:function(f){function _(m,h,g){var y=Date.now(),A=0;f(m,h,function R(T){if(T&&(T.code==="EACCES"||T.code==="EPERM")&&Date.now()-y<6e4){setTimeout(function(){e.stat(h,function($,he){$&&$.code==="ENOENT"?f(m,h,R):g(T)})},A),A<100&&(A+=10);return}g&&g(T)})}return Object.setPrototypeOf&&Object.setPrototypeOf(_,f),_}(e.rename)),e.read=typeof e.read!="function"?e.read:function(f){function _(m,h,g,y,A,R){var T;if(R&&typeof R=="function"){var $=0;T=function(he,sr,kn){if(he&&he.code==="EAGAIN"&&$<10)return $++,f.call(e,m,h,g,y,A,T);R.apply(this,arguments)}}return f.call(e,m,h,g,y,A,T)}return Object.setPrototypeOf&&Object.setPrototypeOf(_,f),_}(e.read),e.readSync=typeof e.readSync!="function"?e.readSync:function(f){return function(_,m,h,g,y){for(var A=0;;)try{return f.call(e,_,m,h,g,y)}catch(R){if(R.code==="EAGAIN"&&A<10){A++;continue}throw R}}}(e.readSync);function t(f){f.lchmod=function(_,m,h){f.open(_,mi.O_WRONLY|mi.O_SYMLINK,m,function(g,y){if(g){h&&h(g);return}f.fchmod(y,m,function(A){f.close(y,function(R){h&&h(A||R)})})})},f.lchmodSync=function(_,m){var h=f.openSync(_,mi.O_WRONLY|mi.O_SYMLINK,m),g=!0,y;try{y=f.fchmodSync(h,m),g=!1}finally{if(g)try{f.closeSync(h)}catch{}else f.closeSync(h)}return y}}function r(f){mi.hasOwnProperty("O_SYMLINK")&&f.futimes?(f.lutimes=function(_,m,h,g){f.open(_,mi.O_SYMLINK,function(y,A){if(y){g&&g(y);return}f.futimes(A,m,h,function(R){f.close(A,function(T){g&&g(R||T)})})})},f.lutimesSync=function(_,m,h){var g=f.openSync(_,mi.O_SYMLINK),y,A=!0;try{y=f.futimesSync(g,m,h),A=!1}finally{if(A)try{f.closeSync(g)}catch{}else f.closeSync(g)}return y}):f.futimes&&(f.lutimes=function(_,m,h,g){g&&process.nextTick(g)},f.lutimesSync=function(){})}function n(f){return f&&function(_,m,h){return f.call(e,_,m,function(g){d(g)&&(g=null),h&&h.apply(this,arguments)})}}function i(f){return f&&function(_,m){try{return f.call(e,_,m)}catch(h){if(!d(h))throw h}}}function s(f){return f&&function(_,m,h,g){return f.call(e,_,m,h,function(y){d(y)&&(y=null),g&&g.apply(this,arguments)})}}function o(f){return f&&function(_,m,h){try{return f.call(e,_,m,h)}catch(g){if(!d(g))throw g}}}function a(f){return f&&function(_,m,h){typeof m=="function"&&(h=m,m=null);function g(y,A){A&&(A.uid<0&&(A.uid+=4294967296),A.gid<0&&(A.gid+=4294967296)),h&&h.apply(this,arguments)}return m?f.call(e,_,m,g):f.call(e,_,g)}}function c(f){return f&&function(_,m){var h=m?f.call(e,_,m):f.call(e,_);return h&&(h.uid<0&&(h.uid+=4294967296),h.gid<0&&(h.gid+=4294967296)),h}}function d(f){if(!f||f.code==="ENOSYS")return!0;var _=!process.getuid||process.getuid()!==0;return!!(_&&(f.code==="EINVAL"||f.code==="EPERM"))}}});var LF=u((Jqe,OF)=>{var DF=require("stream").Stream;OF.exports=nSe;function nSe(e){return{ReadStream:t,WriteStream:r};function t(n,i){if(!(this instanceof t))return new t(n,i);DF.call(this);var s=this;this.path=n,this.fd=null,this.readable=!0,this.paused=!1,this.flags="r",this.mode=438,this.bufferSize=64*1024,i=i||{};for(var o=Object.keys(i),a=0,c=o.length;a<c;a++){var d=o[a];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(f,_){if(f){s.emit("error",f),s.readable=!1;return}s.fd=_,s.emit("open",_),s._read()})}function r(n,i){if(!(this instanceof r))return new r(n,i);DF.call(this),this.path=n,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),o=0,a=s.length;o<a;o++){var c=s[o];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 MF=u((Yqe,qF)=>{"use strict";qF.exports=sSe;var iSe=Object.getPrototypeOf||function(e){return e.__proto__};function sSe(e){if(e===null||typeof e!="object")return e;if(e instanceof Object)var t={__proto__:iSe(e)};else var t=Object.create(null);return Object.getOwnPropertyNames(e).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}),t}});var yt=u((Qqe,sT)=>{var Me=require("fs"),oSe=PF(),aSe=LF(),cSe=MF(),Ag=require("util"),dt,Cg;typeof Symbol=="function"&&typeof Symbol.for=="function"?(dt=Symbol.for("graceful-fs.queue"),Cg=Symbol.for("graceful-fs.previous")):(dt="___graceful-fs.queue",Cg="___graceful-fs.previous");function lSe(){}function kF(e,t){Object.defineProperty(e,dt,{get:function(){return t}})}var ss=lSe;Ag.debuglog?ss=Ag.debuglog("gfs4"):/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&(ss=function(){var e=Ag.format.apply(Ag,arguments);e="GFS4: "+e.split(/\n/).join(`
|
|
30
|
+
GFS4: `),console.error(e)});Me[dt]||(zF=global[dt]||[],kF(Me,zF),Me.close=function(e){function t(r,n){return e.call(Me,r,function(i){i||jF(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(t,Cg,{value:e}),t}(Me.close),Me.closeSync=function(e){function t(r){e.apply(Me,arguments),jF()}return Object.defineProperty(t,Cg,{value:e}),t}(Me.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){ss(Me[dt]),require("assert").equal(Me[dt].length,0)}));var zF;global[dt]||kF(global,Me[dt]);sT.exports=nT(cSe(Me));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Me.__patched&&(sT.exports=nT(Me),Me.__patched=!0);function nT(e){oSe(e),e.gracefulify=nT,e.createReadStream=sr,e.createWriteStream=kn;var t=e.readFile;e.readFile=r;function r(j,me,fe){return typeof me=="function"&&(fe=me,me=null),Te(j,me,fe);function Te(ze,Pe,Ce,xe){return t(ze,Pe,function(ve){ve&&(ve.code==="EMFILE"||ve.code==="ENFILE")?go([Te,[ze,Pe,Ce],ve,xe||Date.now(),Date.now()]):typeof Ce=="function"&&Ce.apply(this,arguments)})}}var n=e.writeFile;e.writeFile=i;function i(j,me,fe,Te){return typeof fe=="function"&&(Te=fe,fe=null),ze(j,me,fe,Te);function ze(Pe,Ce,xe,ve,je){return n(Pe,Ce,xe,function(we){we&&(we.code==="EMFILE"||we.code==="ENFILE")?go([ze,[Pe,Ce,xe,ve],we,je||Date.now(),Date.now()]):typeof ve=="function"&&ve.apply(this,arguments)})}}var s=e.appendFile;s&&(e.appendFile=o);function o(j,me,fe,Te){return typeof fe=="function"&&(Te=fe,fe=null),ze(j,me,fe,Te);function ze(Pe,Ce,xe,ve,je){return s(Pe,Ce,xe,function(we){we&&(we.code==="EMFILE"||we.code==="ENFILE")?go([ze,[Pe,Ce,xe,ve],we,je||Date.now(),Date.now()]):typeof ve=="function"&&ve.apply(this,arguments)})}}var a=e.copyFile;a&&(e.copyFile=c);function c(j,me,fe,Te){return typeof fe=="function"&&(Te=fe,fe=0),ze(j,me,fe,Te);function ze(Pe,Ce,xe,ve,je){return a(Pe,Ce,xe,function(we){we&&(we.code==="EMFILE"||we.code==="ENFILE")?go([ze,[Pe,Ce,xe,ve],we,je||Date.now(),Date.now()]):typeof ve=="function"&&ve.apply(this,arguments)})}}var d=e.readdir;e.readdir=_;var f=/^v[0-5]\./;function _(j,me,fe){typeof me=="function"&&(fe=me,me=null);var Te=f.test(process.version)?function(Ce,xe,ve,je){return d(Ce,ze(Ce,xe,ve,je))}:function(Ce,xe,ve,je){return d(Ce,xe,ze(Ce,xe,ve,je))};return Te(j,me,fe);function ze(Pe,Ce,xe,ve){return function(je,we){je&&(je.code==="EMFILE"||je.code==="ENFILE")?go([Te,[Pe,Ce,xe],je,ve||Date.now(),Date.now()]):(we&&we.sort&&we.sort(),typeof xe=="function"&&xe.call(this,je,we))}}}if(process.version.substr(0,4)==="v0.8"){var m=aSe(e);R=m.ReadStream,$=m.WriteStream}var h=e.ReadStream;h&&(R.prototype=Object.create(h.prototype),R.prototype.open=T);var g=e.WriteStream;g&&($.prototype=Object.create(g.prototype),$.prototype.open=he),Object.defineProperty(e,"ReadStream",{get:function(){return R},set:function(j){R=j},enumerable:!0,configurable:!0}),Object.defineProperty(e,"WriteStream",{get:function(){return $},set:function(j){$=j},enumerable:!0,configurable:!0});var y=R;Object.defineProperty(e,"FileReadStream",{get:function(){return y},set:function(j){y=j},enumerable:!0,configurable:!0});var A=$;Object.defineProperty(e,"FileWriteStream",{get:function(){return A},set:function(j){A=j},enumerable:!0,configurable:!0});function R(j,me){return this instanceof R?(h.apply(this,arguments),this):R.apply(Object.create(R.prototype),arguments)}function T(){var j=this;hr(j.path,j.flags,j.mode,function(me,fe){me?(j.autoClose&&j.destroy(),j.emit("error",me)):(j.fd=fe,j.emit("open",fe),j.read())})}function $(j,me){return this instanceof $?(g.apply(this,arguments),this):$.apply(Object.create($.prototype),arguments)}function he(){var j=this;hr(j.path,j.flags,j.mode,function(me,fe){me?(j.destroy(),j.emit("error",me)):(j.fd=fe,j.emit("open",fe))})}function sr(j,me){return new e.ReadStream(j,me)}function kn(j,me){return new e.WriteStream(j,me)}var Fn=e.open;e.open=hr;function hr(j,me,fe,Te){return typeof fe=="function"&&(Te=fe,fe=null),ze(j,me,fe,Te);function ze(Pe,Ce,xe,ve,je){return Fn(Pe,Ce,xe,function(we,dn){we&&(we.code==="EMFILE"||we.code==="ENFILE")?go([ze,[Pe,Ce,xe,ve],we,je||Date.now(),Date.now()]):typeof ve=="function"&&ve.apply(this,arguments)})}}return e}function go(e){ss("ENQUEUE",e[0].name,e[1]),Me[dt].push(e),iT()}var Tg;function jF(){for(var e=Date.now(),t=0;t<Me[dt].length;++t)Me[dt][t].length>2&&(Me[dt][t][3]=e,Me[dt][t][4]=e);iT()}function iT(){if(clearTimeout(Tg),Tg=void 0,Me[dt].length!==0){var e=Me[dt].shift(),t=e[0],r=e[1],n=e[2],i=e[3],s=e[4];if(i===void 0)ss("RETRY",t.name,r),t.apply(null,r);else if(Date.now()-i>=6e4){ss("TIMEOUT",t.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-s,c=Math.max(s-i,1),d=Math.min(c*1.2,100);a>=d?(ss("RETRY",t.name,r),t.apply(null,r.concat([i]))):Me[dt].push(e)}Tg===void 0&&(Tg=setTimeout(iT,0))}}});var gl=u(pi=>{"use strict";var FF=Lt().fromCallback,bt=yt(),dSe=["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 bt[e]=="function");Object.keys(bt).forEach(e=>{e!=="promises"&&(pi[e]=bt[e])});dSe.forEach(e=>{pi[e]=FF(bt[e])});pi.exists=function(e,t){return typeof t=="function"?bt.exists(e,t):new Promise(r=>bt.exists(e,r))};pi.read=function(e,t,r,n,i,s){return typeof s=="function"?bt.read(e,t,r,n,i,s):new Promise((o,a)=>{bt.read(e,t,r,n,i,(c,d,f)=>{if(c)return a(c);o({bytesRead:d,buffer:f})})})};pi.write=function(e,t,...r){return typeof r[r.length-1]=="function"?bt.write(e,t,...r):new Promise((n,i)=>{bt.write(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffer:a})})})};typeof bt.writev=="function"&&(pi.writev=function(e,t,...r){return typeof r[r.length-1]=="function"?bt.writev(e,t,...r):new Promise((n,i)=>{bt.writev(e,t,...r,(s,o,a)=>{if(s)return i(s);n({bytesWritten:o,buffers:a})})})});typeof bt.realpath.native=="function"&&(pi.realpath.native=FF(bt.realpath.native))});var oT=u((Zqe,UF)=>{UF.exports=e=>{let t=process.versions.node.split(".").map(r=>parseInt(r,10));return e=e.split(".").map(r=>parseInt(r,10)),t[0]>e[0]||t[0]===e[0]&&(t[1]>e[1]||t[1]===e[1]&&t[2]>=e[2])}});var KF=u((eMe,aT)=>{"use strict";var vo=gl(),Pn=require("path"),uSe=oT(),BF=uSe("10.12.0"),GF=e=>{if(process.platform==="win32"&&/[<>:"|?*]/.test(e.replace(Pn.parse(e).root,""))){let r=new Error(`Path contains invalid characters: ${e}`);throw r.code="EINVAL",r}},$F=e=>{let t={mode:511};return typeof e=="number"&&(e={mode:e}),{...t,...e}},VF=e=>{let t=new Error(`operation not permitted, mkdir '${e}'`);return t.code="EPERM",t.errno=-4048,t.path=e,t.syscall="mkdir",t};aT.exports.makeDir=async(e,t)=>{if(GF(e),t=$F(t),BF){let n=Pn.resolve(e);return vo.mkdir(n,{mode:t.mode,recursive:!0})}let r=async n=>{try{await vo.mkdir(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Pn.dirname(n)===n)throw VF(n);if(i.message.includes("null bytes"))throw i;return await r(Pn.dirname(n)),r(n)}try{if(!(await vo.stat(n)).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Pn.resolve(e))};aT.exports.makeDirSync=(e,t)=>{if(GF(e),t=$F(t),BF){let n=Pn.resolve(e);return vo.mkdirSync(n,{mode:t.mode,recursive:!0})}let r=n=>{try{vo.mkdirSync(n,t.mode)}catch(i){if(i.code==="EPERM")throw i;if(i.code==="ENOENT"){if(Pn.dirname(n)===n)throw VF(n);if(i.message.includes("null bytes"))throw i;return r(Pn.dirname(n)),r(n)}try{if(!vo.statSync(n).isDirectory())throw new Error("The path is not a directory")}catch{throw i}}};return r(Pn.resolve(e))}});var pr=u((tMe,HF)=>{"use strict";var fSe=Lt().fromPromise,{makeDir:mSe,makeDirSync:cT}=KF(),lT=fSe(mSe);HF.exports={mkdirs:lT,mkdirsSync:cT,mkdirp:lT,mkdirpSync:cT,ensureDir:lT,ensureDirSync:cT}});var dT=u((rMe,WF)=>{"use strict";var So=yt();function pSe(e,t,r,n){So.open(e,"r+",(i,s)=>{if(i)return n(i);So.futimes(s,t,r,o=>{So.close(s,a=>{n&&n(o||a)})})})}function _Se(e,t,r){let n=So.openSync(e,"r+");return So.futimesSync(n,t,r),So.closeSync(n)}WF.exports={utimesMillis:pSe,utimesMillisSync:_Se}});var vl=u((nMe,XF)=>{"use strict";var wo=gl(),qt=require("path"),hSe=require("util"),ySe=oT(),xg=ySe("10.5.0"),JF=e=>xg?wo.stat(e,{bigint:!0}):wo.stat(e),uT=e=>xg?wo.statSync(e,{bigint:!0}):wo.statSync(e);function gSe(e,t){return Promise.all([JF(e),JF(t).catch(r=>{if(r.code==="ENOENT")return null;throw r})]).then(([r,n])=>({srcStat:r,destStat:n}))}function vSe(e,t){let r,n=uT(e);try{r=uT(t)}catch(i){if(i.code==="ENOENT")return{srcStat:n,destStat:null};throw i}return{srcStat:n,destStat:r}}function SSe(e,t,r,n){hSe.callbackify(gSe)(e,t,(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;return a&&Ig(o,a)?n(new Error("Source and destination must not be the same.")):o.isDirectory()&&fT(e,t)?n(new Error(Rg(e,t,r))):n(null,{srcStat:o,destStat:a})})}function wSe(e,t,r){let{srcStat:n,destStat:i}=vSe(e,t);if(i&&Ig(n,i))throw new Error("Source and destination must not be the same.");if(n.isDirectory()&&fT(e,t))throw new Error(Rg(e,t,r));return{srcStat:n,destStat:i}}function YF(e,t,r,n,i){let s=qt.resolve(qt.dirname(e)),o=qt.resolve(qt.dirname(r));if(o===s||o===qt.parse(o).root)return i();let a=(c,d)=>c?c.code==="ENOENT"?i():i(c):Ig(t,d)?i(new Error(Rg(e,r,n))):YF(e,t,o,n,i);xg?wo.stat(o,{bigint:!0},a):wo.stat(o,a)}function QF(e,t,r,n){let i=qt.resolve(qt.dirname(e)),s=qt.resolve(qt.dirname(r));if(s===i||s===qt.parse(s).root)return;let o;try{o=uT(s)}catch(a){if(a.code==="ENOENT")return;throw a}if(Ig(t,o))throw new Error(Rg(e,r,n));return QF(e,t,s,n)}function Ig(e,t){return!!(t.ino&&t.dev&&t.ino===e.ino&&t.dev===e.dev&&(xg||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 fT(e,t){let r=qt.resolve(e).split(qt.sep).filter(i=>i),n=qt.resolve(t).split(qt.sep).filter(i=>i);return r.reduce((i,s,o)=>i&&n[o]===s,!0)}function Rg(e,t,r){return`Cannot ${r} '${e}' to a subdirectory of itself, '${t}'.`}XF.exports={checkPaths:SSe,checkPathsSync:wSe,checkParentPaths:YF,checkParentPathsSync:QF,isSrcSubdir:fT}});var nU=u((iMe,rU)=>{"use strict";var gt=yt(),Sl=require("path"),ESe=pr().mkdirsSync,bSe=dT().utimesMillisSync,wl=vl();function ASe(e,t,r){typeof r=="function"&&(r={filter:r}),r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
30
31
|
|
|
31
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:
|
|
32
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`);let{srcStat:n,destStat:i}=wl.checkPathsSync(e,t,"copy");return wl.checkParentPathsSync(e,n,t,"copy"),TSe(i,e,t,r)}function TSe(e,t,r,n){if(n.filter&&!n.filter(t,r))return;let i=Sl.dirname(r);return gt.existsSync(i)||ESe(i),ZF(e,t,r,n)}function ZF(e,t,r,n){if(!(n.filter&&!n.filter(t,r)))return CSe(e,t,r,n)}function CSe(e,t,r,n){let s=(n.dereference?gt.statSync:gt.lstatSync)(t);if(s.isDirectory())return OSe(s,e,t,r,n);if(s.isFile()||s.isCharacterDevice()||s.isBlockDevice())return xSe(s,e,t,r,n);if(s.isSymbolicLink())return MSe(e,t,r,n)}function xSe(e,t,r,n,i){return t?ISe(e,r,n,i):eU(e,r,n,i)}function ISe(e,t,r,n){if(n.overwrite)return gt.unlinkSync(r),eU(e,t,r,n);if(n.errorOnExist)throw new Error(`'${r}' already exists`)}function eU(e,t,r,n){return gt.copyFileSync(t,r),n.preserveTimestamps&&RSe(e.mode,t,r),mT(r,e.mode)}function RSe(e,t,r){return NSe(e)&&PSe(r,e),DSe(t,r)}function NSe(e){return(e&128)===0}function PSe(e,t){return mT(e,t|128)}function mT(e,t){return gt.chmodSync(e,t)}function DSe(e,t){let r=gt.statSync(e);return bSe(t,r.atime,r.mtime)}function OSe(e,t,r,n,i){if(!t)return LSe(e.mode,r,n,i);if(t&&!t.isDirectory())throw new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`);return tU(r,n,i)}function LSe(e,t,r,n){return gt.mkdirSync(r),tU(t,r,n),mT(r,e)}function tU(e,t,r){gt.readdirSync(e).forEach(n=>qSe(n,e,t,r))}function qSe(e,t,r,n){let i=Sl.join(t,e),s=Sl.join(r,e),{destStat:o}=wl.checkPathsSync(i,s,"copy");return ZF(o,i,s,n)}function MSe(e,t,r,n){let i=gt.readlinkSync(t);if(n.dereference&&(i=Sl.resolve(process.cwd(),i)),e){let s;try{s=gt.readlinkSync(r)}catch(o){if(o.code==="EINVAL"||o.code==="UNKNOWN")return gt.symlinkSync(i,r);throw o}if(n.dereference&&(s=Sl.resolve(process.cwd(),s)),wl.isSrcSubdir(i,s))throw new Error(`Cannot copy '${i}' to a subdirectory of itself, '${s}'.`);if(gt.statSync(r).isDirectory()&&wl.isSrcSubdir(s,i))throw new Error(`Cannot overwrite '${s}' with '${i}'.`);return zSe(i,r)}else return gt.symlinkSync(i,r)}function zSe(e,t){return gt.unlinkSync(t),gt.symlinkSync(e,t)}rU.exports=ASe});var pT=u((sMe,iU)=>{"use strict";iU.exports={copySync:nU()}});var _i=u((oMe,oU)=>{"use strict";var jSe=Lt().fromPromise,sU=gl();function kSe(e){return sU.access(e).then(()=>!0).catch(()=>!1)}oU.exports={pathExists:jSe(kSe),pathExistsSync:sU.existsSync}});var _U=u((aMe,pU)=>{"use strict";var Mt=yt(),El=require("path"),FSe=pr().mkdirs,USe=_i().pathExists,BSe=dT().utimesMillis,bl=vl();function GSe(e,t,r,n){typeof r=="function"&&!n?(n=r,r={}):typeof r=="function"&&(r={filter:r}),n=n||function(){},r=r||{},r.clobber="clobber"in r?!!r.clobber:!0,r.overwrite="overwrite"in r?!!r.overwrite:r.clobber,r.preserveTimestamps&&process.arch==="ia32"&&console.warn(`fs-extra: Using the preserveTimestamps option in 32-bit node is not recommended;
|
|
32
33
|
|
|
33
|
-
see https://github.com/jprichardson/node-fs-extra/issues/269`),ec.checkPaths(e,t,"copy",(i,s)=>{if(i)return r(i);let{srcStat:o,destStat:a}=s;ec.checkParentPaths(e,o,t,"copy",c=>c?r(c):n.filter?GL(FL,a,e,t,n,r):FL(a,e,t,n,r))})}function FL(e,t,n,r,i){let s=Za.dirname(n);ble(s,(o,a)=>{if(o)return i(o);if(a)return A0(e,t,n,r,i);wle(s,c=>c?i(c):A0(e,t,n,r,i))})}function GL(e,t,n,r,i,s){Promise.resolve(i.filter(n,r)).then(o=>o?e(t,n,r,i,s):s(),o=>s(o))}function A0(e,t,n,r,i){return r.filter?GL(UL,e,t,n,r,i):UL(e,t,n,r,i)}function UL(e,t,n,r,i){(r.dereference?Rt.stat:Rt.lstat)(t,(o,a)=>{if(o)return i(o);if(a.isDirectory())return Nle(a,e,t,n,r,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return Tle(a,e,t,n,r,i);if(a.isSymbolicLink())return Lle(e,t,n,r,i)})}function Tle(e,t,n,r,i,s){return t?Cle(e,n,r,i,s):$L(e,n,r,i,s)}function Cle(e,t,n,r,i){if(r.overwrite)Rt.unlink(n,s=>s?i(s):$L(e,t,n,r,i));else return r.errorOnExist?i(new Error(`'${n}' already exists`)):i()}function $L(e,t,n,r,i){Rt.copyFile(t,n,s=>s?i(s):r.preserveTimestamps?xle(e.mode,t,n,i):Ah(n,e.mode,i))}function xle(e,t,n,r){return Ile(e)?Rle(n,e,i=>i?r(i):BL(e,t,n,r)):BL(e,t,n,r)}function Ile(e){return(e&128)===0}function Rle(e,t,n){return Ah(e,t|128,n)}function BL(e,t,n,r){Dle(t,n,i=>i?r(i):Ah(n,e,r))}function Ah(e,t,n){return Rt.chmod(e,t,n)}function Dle(e,t,n){Rt.stat(e,(r,i)=>r?n(r):Ele(t,i.atime,i.mtime,n))}function Nle(e,t,n,r,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${r}' with directory '${n}'.`)):VL(n,r,i,s):Ple(e.mode,n,r,i,s)}function Ple(e,t,n,r,i){Rt.mkdir(n,s=>{if(s)return i(s);VL(t,n,r,o=>o?i(o):Ah(n,e,i))})}function VL(e,t,n,r){Rt.readdir(e,(i,s)=>i?r(i):KL(s,e,t,n,r))}function KL(e,t,n,r,i){let s=e.pop();return s?Ole(e,s,t,n,r,i):i()}function Ole(e,t,n,r,i,s){let o=Za.join(n,t),a=Za.join(r,t);ec.checkPaths(o,a,"copy",(c,u)=>{if(c)return s(c);let{destStat:d}=u;A0(d,o,a,i,h=>h?s(h):KL(e,n,r,i,s))})}function Lle(e,t,n,r,i){Rt.readlink(t,(s,o)=>{if(s)return i(s);if(r.dereference&&(o=Za.resolve(process.cwd(),o)),e)Rt.readlink(n,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Rt.symlink(o,n,i):i(a):(r.dereference&&(c=Za.resolve(process.cwd(),c)),ec.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&ec.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):qle(o,n,i)));else return Rt.symlink(o,n,i)})}function qle(e,t,n){Rt.unlink(t,r=>r?n(r):Rt.symlink(e,t,n))}WL.exports=Ale});var T0=f((PEe,YL)=>{"use strict";var Mle=xt().fromCallback;YL.exports={copy:Mle(HL())}});var iq=f((OEe,rq)=>{"use strict";var JL=ft(),eq=require("path"),Ie=require("assert"),tc=process.platform==="win32";function tq(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(n=>{e[n]=e[n]||JL[n],n=n+"Sync",e[n]=e[n]||JL[n]}),e.maxBusyTries=e.maxBusyTries||3}function C0(e,t,n){let r=0;typeof t=="function"&&(n=t,t={}),Ie(e,"rimraf: missing path"),Ie.strictEqual(typeof e,"string","rimraf: path should be a string"),Ie.strictEqual(typeof n,"function","rimraf: callback function required"),Ie(t,"rimraf: invalid options argument provided"),Ie.strictEqual(typeof t,"object","rimraf: options should be object"),tq(t),QL(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&r<t.maxBusyTries){r++;let o=r*100;return setTimeout(()=>QL(e,t,i),o)}s.code==="ENOENT"&&(s=null)}n(s)})}function QL(e,t,n){Ie(e),Ie(t),Ie(typeof n=="function"),t.lstat(e,(r,i)=>{if(r&&r.code==="ENOENT")return n(null);if(r&&r.code==="EPERM"&&tc)return XL(e,t,r,n);if(i&&i.isDirectory())return Th(e,t,r,n);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return n(null);if(s.code==="EPERM")return tc?XL(e,t,s,n):Th(e,t,s,n);if(s.code==="EISDIR")return Th(e,t,s,n)}return n(s)})})}function XL(e,t,n,r){Ie(e),Ie(t),Ie(typeof r=="function"),t.chmod(e,438,i=>{i?r(i.code==="ENOENT"?null:n):t.stat(e,(s,o)=>{s?r(s.code==="ENOENT"?null:n):o.isDirectory()?Th(e,t,n,r):t.unlink(e,r)})})}function ZL(e,t,n){let r;Ie(e),Ie(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()?Ch(e,t,n):t.unlinkSync(e)}function Th(e,t,n,r){Ie(e),Ie(t),Ie(typeof r=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?zle(e,t,r):i&&i.code==="ENOTDIR"?r(n):r(i)})}function zle(e,t,n){Ie(e),Ie(t),Ie(typeof n=="function"),t.readdir(e,(r,i)=>{if(r)return n(r);let s=i.length,o;if(s===0)return t.rmdir(e,n);i.forEach(a=>{C0(eq.join(e,a),t,c=>{if(!o){if(c)return n(o=c);--s===0&&t.rmdir(e,n)}})})})}function nq(e,t){let n;t=t||{},tq(t),Ie(e,"rimraf: missing path"),Ie.strictEqual(typeof e,"string","rimraf: path should be a string"),Ie(t,"rimraf: missing options"),Ie.strictEqual(typeof t,"object","rimraf: options should be object");try{n=t.lstatSync(e)}catch(r){if(r.code==="ENOENT")return;r.code==="EPERM"&&tc&&ZL(e,t,r)}try{n&&n.isDirectory()?Ch(e,t,null):t.unlinkSync(e)}catch(r){if(r.code==="ENOENT")return;if(r.code==="EPERM")return tc?ZL(e,t,r):Ch(e,t,r);if(r.code!=="EISDIR")throw r;Ch(e,t,r)}}function Ch(e,t,n){Ie(e),Ie(t);try{t.rmdirSync(e)}catch(r){if(r.code==="ENOTDIR")throw n;if(r.code==="ENOTEMPTY"||r.code==="EEXIST"||r.code==="EPERM")jle(e,t);else if(r.code!=="ENOENT")throw r}}function jle(e,t){if(Ie(e),Ie(t),t.readdirSync(e).forEach(n=>nq(eq.join(e,n),t)),tc){let n=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-n<500)}else return t.rmdirSync(e,t)}rq.exports=C0;C0.sync=nq});var nc=f((LEe,oq)=>{"use strict";var kle=xt().fromCallback,sq=iq();oq.exports={remove:kle(sq),removeSync:sq.sync}});var pq=f((qEe,mq)=>{"use strict";var Fle=xt().fromCallback,lq=ft(),uq=require("path"),dq=an(),fq=nc(),aq=Fle(function(t,n){n=n||function(){},lq.readdir(t,(r,i)=>{if(r)return dq.mkdirs(t,n);i=i.map(o=>uq.join(t,o)),s();function s(){let o=i.pop();if(!o)return n();fq.remove(o,a=>{if(a)return n(a);s()})}})});function cq(e){let t;try{t=lq.readdirSync(e)}catch{return dq.mkdirsSync(e)}t.forEach(n=>{n=uq.join(e,n),fq.removeSync(n)})}mq.exports={emptyDirSync:cq,emptydirSync:cq,emptyDir:aq,emptydir:aq}});var gq=f((MEe,yq)=>{"use strict";var Ule=xt().fromCallback,hq=require("path"),Vr=ft(),_q=an();function Ble(e,t){function n(){Vr.writeFile(e,"",r=>{if(r)return t(r);t()})}Vr.stat(e,(r,i)=>{if(!r&&i.isFile())return t();let s=hq.dirname(e);Vr.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?_q.mkdirs(s,c=>{if(c)return t(c);n()}):t(o);a.isDirectory()?n():Vr.readdir(s,c=>{if(c)return t(c)})})})}function Gle(e){let t;try{t=Vr.statSync(e)}catch{}if(t&&t.isFile())return;let n=hq.dirname(e);try{Vr.statSync(n).isDirectory()||Vr.readdirSync(n)}catch(r){if(r&&r.code==="ENOENT")_q.mkdirsSync(n);else throw r}Vr.writeFileSync(e,"")}yq.exports={createFile:Ule(Ble),createFileSync:Gle}});var Eq=f((zEe,bq)=>{"use strict";var $le=xt().fromCallback,Sq=require("path"),Ri=ft(),wq=an(),vq=$r().pathExists;function Vle(e,t,n){function r(i,s){Ri.link(i,s,o=>{if(o)return n(o);n(null)})}vq(t,(i,s)=>{if(i)return n(i);if(s)return n(null);Ri.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),n(o);let a=Sq.dirname(t);vq(a,(c,u)=>{if(c)return n(c);if(u)return r(e,t);wq.mkdirs(a,d=>{if(d)return n(d);r(e,t)})})})})}function Kle(e,t){if(Ri.existsSync(t))return;try{Ri.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let r=Sq.dirname(t);return Ri.existsSync(r)||wq.mkdirsSync(r),Ri.linkSync(e,t)}bq.exports={createLink:$le(Vle),createLinkSync:Kle}});var Tq=f((jEe,Aq)=>{"use strict";var Kr=require("path"),rc=ft(),Wle=$r().pathExists;function Hle(e,t,n){if(Kr.isAbsolute(e))return rc.lstat(e,r=>r?(r.message=r.message.replace("lstat","ensureSymlink"),n(r)):n(null,{toCwd:e,toDst:e}));{let r=Kr.dirname(t),i=Kr.join(r,e);return Wle(i,(s,o)=>s?n(s):o?n(null,{toCwd:i,toDst:e}):rc.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),n(a)):n(null,{toCwd:e,toDst:Kr.relative(r,e)})))}}function Yle(e,t){let n;if(Kr.isAbsolute(e)){if(n=rc.existsSync(e),!n)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let r=Kr.dirname(t),i=Kr.join(r,e);if(n=rc.existsSync(i),n)return{toCwd:i,toDst:e};if(n=rc.existsSync(e),!n)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:Kr.relative(r,e)}}}Aq.exports={symlinkPaths:Hle,symlinkPathsSync:Yle}});var Iq=f((kEe,xq)=>{"use strict";var Cq=ft();function Jle(e,t,n){if(n=typeof t=="function"?t:n,t=typeof t=="function"?!1:t,t)return n(null,t);Cq.lstat(e,(r,i)=>{if(r)return n(null,"file");t=i&&i.isDirectory()?"dir":"file",n(null,t)})}function Qle(e,t){let n;if(t)return t;try{n=Cq.lstatSync(e)}catch{return"file"}return n&&n.isDirectory()?"dir":"file"}xq.exports={symlinkType:Jle,symlinkTypeSync:Qle}});var qq=f((FEe,Lq)=>{"use strict";var Xle=xt().fromCallback,Dq=require("path"),zs=ft(),Nq=an(),Zle=Nq.mkdirs,eue=Nq.mkdirsSync,Pq=Tq(),tue=Pq.symlinkPaths,nue=Pq.symlinkPathsSync,Oq=Iq(),rue=Oq.symlinkType,iue=Oq.symlinkTypeSync,Rq=$r().pathExists;function sue(e,t,n,r){r=typeof n=="function"?n:r,n=typeof n=="function"?!1:n,Rq(t,(i,s)=>{if(i)return r(i);if(s)return r(null);tue(e,t,(o,a)=>{if(o)return r(o);e=a.toDst,rue(a.toCwd,n,(c,u)=>{if(c)return r(c);let d=Dq.dirname(t);Rq(d,(h,m)=>{if(h)return r(h);if(m)return zs.symlink(e,t,u,r);Zle(d,y=>{if(y)return r(y);zs.symlink(e,t,u,r)})})})})})}function oue(e,t,n){if(zs.existsSync(t))return;let i=nue(e,t);e=i.toDst,n=iue(i.toCwd,n);let s=Dq.dirname(t);return zs.existsSync(s)||eue(s),zs.symlinkSync(e,t,n)}Lq.exports={createSymlink:Xle(sue),createSymlinkSync:oue}});var zq=f((UEe,Mq)=>{"use strict";var xh=gq(),Ih=Eq(),Rh=qq();Mq.exports={createFile:xh.createFile,createFileSync:xh.createFileSync,ensureFile:xh.createFile,ensureFileSync:xh.createFileSync,createLink:Ih.createLink,createLinkSync:Ih.createLinkSync,ensureLink:Ih.createLink,ensureLinkSync:Ih.createLinkSync,createSymlink:Rh.createSymlink,createSymlinkSync:Rh.createSymlinkSync,ensureSymlink:Rh.createSymlink,ensureSymlinkSync:Rh.createSymlinkSync}});var Dh=f((BEe,jq)=>{function aue(e,{EOL:t=`
|
|
34
|
-
`,finalEOL:n=!0,replacer:r=null,spaces:i}={}){let s=n?t:"";return JSON.stringify(e,r,i).replace(/\n/g,t)+s}function cue(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}jq.exports={stringify:aue,stripBom:cue}});var Bq=f((GEe,Uq)=>{var js;try{js=ft()}catch{js=require("fs")}var Nh=xt(),{stringify:kq,stripBom:Fq}=Dh();async function lue(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||js,r="throws"in t?t.throws:!0,i=await Nh.fromCallback(n.readFile)(e,t);i=Fq(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(r)throw o.message=`${e}: ${o.message}`,o;return null}return s}var uue=Nh.fromPromise(lue);function due(e,t={}){typeof t=="string"&&(t={encoding:t});let n=t.fs||js,r="throws"in t?t.throws:!0;try{let i=n.readFileSync(e,t);return i=Fq(i),JSON.parse(i,t.reviver)}catch(i){if(r)throw i.message=`${e}: ${i.message}`,i;return null}}async function fue(e,t,n={}){let r=n.fs||js,i=kq(t,n);await Nh.fromCallback(r.writeFile)(e,i,n)}var mue=Nh.fromPromise(fue);function pue(e,t,n={}){let r=n.fs||js,i=kq(t,n);return r.writeFileSync(e,i,n)}var hue={readFile:uue,readFileSync:due,writeFile:mue,writeFileSync:pue};Uq.exports=hue});var $q=f(($Ee,Gq)=>{"use strict";var Ph=Bq();Gq.exports={readJson:Ph.readFile,readJsonSync:Ph.readFileSync,writeJson:Ph.writeFile,writeJsonSync:Ph.writeFileSync}});var Oh=f((VEe,Wq)=>{"use strict";var _ue=xt().fromCallback,ic=ft(),Vq=require("path"),Kq=an(),yue=$r().pathExists;function gue(e,t,n,r){typeof n=="function"&&(r=n,n="utf8");let i=Vq.dirname(e);yue(i,(s,o)=>{if(s)return r(s);if(o)return ic.writeFile(e,t,n,r);Kq.mkdirs(i,a=>{if(a)return r(a);ic.writeFile(e,t,n,r)})})}function vue(e,...t){let n=Vq.dirname(e);if(ic.existsSync(n))return ic.writeFileSync(e,...t);Kq.mkdirsSync(n),ic.writeFileSync(e,...t)}Wq.exports={outputFile:_ue(gue),outputFileSync:vue}});var Yq=f((KEe,Hq)=>{"use strict";var{stringify:Sue}=Dh(),{outputFile:wue}=Oh();async function bue(e,t,n={}){let r=Sue(t,n);await wue(e,r,n)}Hq.exports=bue});var Qq=f((WEe,Jq)=>{"use strict";var{stringify:Eue}=Dh(),{outputFileSync:Aue}=Oh();function Tue(e,t,n){let r=Eue(t,n);Aue(e,r,n)}Jq.exports=Tue});var Zq=f((HEe,Xq)=>{"use strict";var Cue=xt().fromPromise,vt=$q();vt.outputJson=Cue(Yq());vt.outputJsonSync=Qq();vt.outputJSON=vt.outputJson;vt.outputJSONSync=vt.outputJsonSync;vt.writeJSON=vt.writeJson;vt.writeJSONSync=vt.writeJsonSync;vt.readJSON=vt.readJson;vt.readJSONSync=vt.readJsonSync;Xq.exports=vt});var sM=f((YEe,iM)=>{"use strict";var nM=ft(),xue=require("path"),Iue=E0().copySync,rM=nc().removeSync,Rue=an().mkdirpSync,eM=Ja();function Due(e,t,n){n=n||{};let r=n.overwrite||n.clobber||!1,{srcStat:i}=eM.checkPathsSync(e,t,"move");return eM.checkParentPathsSync(e,i,t,"move"),Rue(xue.dirname(t)),Nue(e,t,r)}function Nue(e,t,n){if(n)return rM(t),tM(e,t,n);if(nM.existsSync(t))throw new Error("dest already exists.");return tM(e,t,n)}function tM(e,t,n){try{nM.renameSync(e,t)}catch(r){if(r.code!=="EXDEV")throw r;return Pue(e,t,n)}}function Pue(e,t,n){return Iue(e,t,{overwrite:n,errorOnExist:!0}),rM(e)}iM.exports=Due});var aM=f((JEe,oM)=>{"use strict";oM.exports={moveSync:sM()}});var fM=f((QEe,dM)=>{"use strict";var Oue=ft(),Lue=require("path"),que=T0().copy,uM=nc().remove,Mue=an().mkdirp,zue=$r().pathExists,cM=Ja();function jue(e,t,n,r){typeof n=="function"&&(r=n,n={});let i=n.overwrite||n.clobber||!1;cM.checkPaths(e,t,"move",(s,o)=>{if(s)return r(s);let{srcStat:a}=o;cM.checkParentPaths(e,a,t,"move",c=>{if(c)return r(c);Mue(Lue.dirname(t),u=>u?r(u):kue(e,t,i,r))})})}function kue(e,t,n,r){if(n)return uM(t,i=>i?r(i):lM(e,t,n,r));zue(t,(i,s)=>i?r(i):s?r(new Error("dest already exists.")):lM(e,t,n,r))}function lM(e,t,n,r){Oue.rename(e,t,i=>i?i.code!=="EXDEV"?r(i):Fue(e,t,n,r):r())}function Fue(e,t,n,r){que(e,t,{overwrite:n,errorOnExist:!0},s=>s?r(s):uM(e,r))}dM.exports=jue});var pM=f((XEe,mM)=>{"use strict";var Uue=xt().fromCallback;mM.exports={move:Uue(fM())}});var I0=f((ZEe,x0)=>{"use strict";x0.exports={...Ya(),...E0(),...T0(),...pq(),...zq(),...Zq(),...an(),...aM(),...pM(),...Oh(),...$r(),...nc()};var hM=require("fs");Object.getOwnPropertyDescriptor(hM,"promises")&&Object.defineProperty(x0.exports,"promises",{get(){return hM.promises}})});var wM=f((eAe,SM)=>{SM.exports=sc;sc.default=sc;sc.stable=gM;sc.stableStringify=gM;var Lh="[...]",_M="[Circular]",Ni=[],Di=[];function yM(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function sc(e,t,n,r){typeof r>"u"&&(r=yM()),R0(e,"",0,[],void 0,0,r);var i;try{Di.length===0?i=JSON.stringify(e,t,n):i=JSON.stringify(e,vM(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ni.length!==0;){var s=Ni.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function ks(e,t,n,r){var i=Object.getOwnPropertyDescriptor(r,n);i.get!==void 0?i.configurable?(Object.defineProperty(r,n,{value:e}),Ni.push([r,n,t,i])):Di.push([t,n,e]):(r[n]=e,Ni.push([r,n,t]))}function R0(e,t,n,r,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<r.length;a++)if(r[a]===e){ks(_M,e,t,i);return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){ks(Lh,e,t,i);return}if(typeof o.edgesLimit<"u"&&n+1>o.edgesLimit){ks(Lh,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;a<e.length;a++)R0(e[a],a,a,r,e,s,o);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var u=c[a];R0(e[u],u,a,r,e,s,o)}}r.pop()}}function Bue(e,t){return e<t?-1:e>t?1:0}function gM(e,t,n,r){typeof r>"u"&&(r=yM());var i=D0(e,"",0,[],void 0,0,r)||e,s;try{Di.length===0?s=JSON.stringify(i,t,n):s=JSON.stringify(i,vM(t),n)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;Ni.length!==0;){var o=Ni.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function D0(e,t,n,r,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<r.length;a++)if(r[a]===e){ks(_M,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){ks(Lh,e,t,i);return}if(typeof o.edgesLimit<"u"&&n+1>o.edgesLimit){ks(Lh,e,t,i);return}if(r.push(e),Array.isArray(e))for(a=0;a<e.length;a++)D0(e[a],a,a,r,e,s,o);else{var c={},u=Object.keys(e).sort(Bue);for(a=0;a<u.length;a++){var d=u[a];D0(e[d],d,a,r,e,s,o),c[d]=e[d]}if(typeof i<"u")Ni.push([i,t,e]),i[t]=c;else return c}r.pop()}}function vM(e){return e=typeof e<"u"?e:function(t,n){return n},function(t,n){if(Di.length>0)for(var r=0;r<Di.length;r++){var i=Di[r];if(i[1]===t&&i[0]===n){n=i[2],Di.splice(r,1);break}}return e.call(this,t,n)}}});var EM=f((tAe,bM)=>{var Gue=wM(),xe={LOG:Symbol("log"),META:Symbol("meta"),ERROR:Symbol("error"),OPTS:Symbol("opts")},Wr=class{constructor(t,n){this[xe.LOG]=t,this[xe.META]={},this[xe.ERROR]=null,this[xe.OPTS]=n;let{meta:r,tags:i}=this[xe.LOG];if(r&&(typeof r!="object"||Array.isArray(r))&&(this[xe.LOG].meta={meta:r}),r||(this[xe.LOG].meta={}),i||(this[xe.LOG].tags=[]),Wr.isError(t.msg)){let s=t.msg;this[xe.ERROR]=s,this[xe.META].stack=s.stack,this[xe.LOG].msg=s.message}}get level(){return this[xe.LOG].level}get msg(){return this[xe.LOG].msg}set msg(t){this[xe.LOG].msg=t}get message(){return this.msg}set message(t){this.msg=t}get meta(){let t=this[xe.OPTS],n={...this[xe.META],...this[xe.OPTS].meta,...this[xe.LOG].meta};if(t.dynamicMeta&&typeof t.dynamicMeta=="function"){let r=t.dynamicMeta.call(this,this,t);typeof r=="object"&&(n=Object.assign(n,r))}for(let[r,i]of Object.entries(n))typeof i=="object"&&Wr.isError(i)&&(n[r]=Wr.stubError(i));return n}set meta(t){this[xe.LOG].meta={...this[xe.LOG].meta,...t}}get tags(){let t=this[xe.OPTS];return[].concat(t.tags,this[xe.LOG].tags).map(r=>{if(typeof r=="function")return r.call(this,{level:this.level,meta:this.meta,options:t});let i=r.match(/(<<(.*)>>)/);return i&&i[2]==="level"?r.replace(i[1],this.level):r}).filter(r=>r!=null&&r!=="")}set tags(t){this[xe.LOG].tags=this[xe.LOG].tags.concat(t)}get value(){let t=this[xe.OPTS];return{[t.levelKey]:t.levelKey?this.level:void 0,[t.messageKey]:this.msg,...this.meta,[t.tagsKey]:t.tagsKey?this.tags:void 0}}get log(){return this.value}get throw(){let t=this[xe.ERROR]||new Error(this.msg);throw t.log=this,t}toJSON(t){return Gue(this.value,this[xe.OPTS].replacer||null,t?4:0)}static isError(t){return Boolean(t)&&typeof t=="object"&&(t instanceof Error||Object.prototype.hasOwnProperty.call(t,"message")&&Object.prototype.hasOwnProperty.call(t,"stack"))}static stubError(t){return typeof t.toJSON=="function"||(t.toJSON=function(){return["name","message","stack"].concat(Object.keys(t)).reduce((r,i)=>{if(i in t){let s=t[i];if(typeof s=="function")return r;r[i]=s}return r},{})}),t}};Wr.symbols=xe;bM.exports=Wr});var TM=f((nAe,AM)=>{var $ue=require("events"),Vue=EM(),Fs={LEVELS:Symbol("levels")},Us=class extends $ue{constructor(t={},n={}){super(),this.LambdaLog=Us,this.LogMessage=Vue,this.options={meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:["true","yes","y","1"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console,levelKey:"_logLevel",messageKey:"msg",tagsKey:"_tags",...t},this[Fs.LEVELS]={info:"info",warn:"warn",error:"error",debug(){return this.options.debug?"debug":!1},...n},this.console=this.options.logHandler;let r=this[Fs.LEVELS];for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&this.addLevel(i,r[i])}addLevel(t,n){return this[Fs.LEVELS][t]=n,this[t]=(r,i={},s=[])=>this.log(t,r,i,s),this}log(t,n,r={},i=[]){if(!Object.prototype.hasOwnProperty.call(this[Fs.LEVELS],t))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),o=this[Fs.LEVELS][t];return typeof o=="function"&&(o=o.call(this,s)),o?(this.options.silent||this.console[o](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(o=>s(this.log("info",o,n,r))).catch(o=>s(this.log("error",o,n,r)))})}};Us.symbols=Fs;AM.exports=Us});var N0=f((rAe,CM)=>{var Kue=TM(),Wue=new Kue;CM.exports=Wue});var xM=f(P0=>{"use strict";Object.defineProperty(P0,"__esModule",{value:!0});var Hue=N0(),qh=class{};P0.default=qh;qh.Instance=new Hue.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0})});var NM=f(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.GetAppInfo=Fn.GetRoute=Fn.normalizePathPrefix=Fn.loadAppFrame=void 0;var RM=K();L_();var O0=RM.__importDefault(require("path")),IM=I0(),L0=l0(),Yue=RM.__importDefault(xM()),ar=Yue.default.Instance;function Jue({basePath:e="."}){let t=[e,O0.default.join(e,".."),O0.default.join(e,"templates"),e,"/opt","/opt/templates"];for(let n of t){let r=O0.default.join(n,"appFrame.html");try{if((0,IM.pathExistsSync)(r))return ar.info("found html file",{fullPath:r}),(0,IM.readFileSync)(r,"utf-8")}catch{}}throw ar.error("appFrame.html not found"),new Error("appFrame.html not found")}Fn.loadAppFrame=Jue;function Que(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}Fn.normalizePathPrefix=Que;async function Xue(e){let{dbManager:t,normalizedPathPrefix:n="",queryStringParameters:r}=e;try{if(n&&!e.rawPath.startsWith(n))return{statusCode:404,errorMessage:"Request not routable"};let i=n&&e.rawPath.startsWith(n)?e.rawPath.slice(n.length-1):e.rawPath,s=i.split("/"),{versionsAndRules:o,appName:a}=await DM({dbManager:t,appName:s.length>=2?s[1]:"[root]"}),c=a==="[root]",u=c?"":`${a}/`,h=(c?i:i.slice(a.length+1)).split("/"),m="";if(h.length>=2&&h[1]!==""&&(m=h.slice(1).join("/")),h.length===2||h.length===3&&!h[2]){let A=await ede({dbManager:t,appName:a,normalizedPathPrefix:n,semVer:h[1],appNameOrRootTrailingSlash:u});if(A)return A}let y=h.length>=4?h[3]:"",g=h.length>=2?h[1]:"",_=Zue({dbManager:t,normalizedPathPrefix:n,event:e,appName:a,possibleSemVerPathNextData:y,possibleSemVerPathAfterApp:g,possibleSemVerQuery:(r==null?void 0:r.get("appver"))||"",additionalParts:m,versionsAndRules:o,appNameOrRootTrailingSlash:u});return _||{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, no matching route`}}catch(i){return ar.error("unexpected exception - returning 599",{statusCode:599,error:i}),{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, ${i.message}`}}}Fn.GetRoute=Xue;async function DM(e){let{dbManager:t,appName:n}=e,r;return r=await L0.Application.GetVersionsAndRules({dbManager:t,key:{AppName:n}}),r.Versions.length>0?{appName:n,versionsAndRules:r}:(r=await L0.Application.GetVersionsAndRules({dbManager:t,key:{AppName:"[root]"}}),{appName:"[root]",versionsAndRules:r})}Fn.GetAppInfo=DM;function Zue(e){var t,n;let{event:r,normalizedPathPrefix:i="",appName:s,possibleSemVerPathNextData:o,possibleSemVerPathAfterApp:a,possibleSemVerQuery:c,additionalParts:u,versionsAndRules:d,appNameOrRootTrailingSlash:h}=e,m,y=a?d.Versions.find(R=>R.SemVer===a):void 0,g=o?d.Versions.find(R=>R.SemVer===o):void 0,_=c?d.Versions.find(R=>R.SemVer===c):void 0,A=y||g;if(A)return{appName:s,semVer:A.SemVer,...A!=null&&A.URL?{url:A==null?void 0:A.URL}:{},...A!=null&&A.Type?{type:(A==null?void 0:A.Type)==="lambda"?"apigwy":A==null?void 0:A.Type}:{}};if(_)m=_;else{if(c)return ar.error(`could not find app ${s}, for path ${r.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${r.rawPath}, ${s}`};{let R=(n=(t=d.Rules)===null||t===void 0?void 0:t.RuleSet.default)===null||n===void 0?void 0:n.SemVer;if(R==null)return ar.error(`could not find app ${s}, for path ${r.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${r.rawPath}, ${s}`};m=d.Versions.find(G=>G.SemVer===R)}}if(!m)return ar.error(`could not find version info for app ${s}, for path ${r.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find version info for app: ${r.rawPath}, ${s}`};if((m==null?void 0:m.StartupType)==="iframe"||!(m!=null&&m.StartupType)){let R;return(m==null?void 0:m.Type)!=="static"&&((m==null?void 0:m.DefaultFile)===void 0||(m==null?void 0:m.DefaultFile)===""||u!=="")?(R=`${i}/${h}${m.SemVer}`,u!==""&&(R+=`/${u}`)):R=`${i}/${h}${m.SemVer}/${m.DefaultFile}`,{statusCode:200,appName:s,semVer:m.SemVer,startupType:"iframe",...m!=null&&m.URL?{url:m==null?void 0:m.URL}:{},...m!=null&&m.Type?{type:(m==null?void 0:m.Type)==="lambda"?"apigwy":m==null?void 0:m.Type}:{},iFrameAppVersionPath:R}}else{if((m==null?void 0:m.Type)==="lambda")throw new Error("Invalid type for direct app version");if(["apigwy","static"].includes((m==null?void 0:m.Type)||""))throw new Error("Invalid type for direct app version");return{appName:s,semVer:m.SemVer,startupType:"direct",...m!=null&&m.URL?{url:m==null?void 0:m.URL}:{},...m!=null&&m.Type?{type:m==null?void 0:m.Type}:{}}}}async function ede(e){let{dbManager:t,normalizedPathPrefix:n="",appName:r,appNameOrRootTrailingSlash:i,semVer:s}=e,o;try{o=await L0.Version.LoadVersion({dbManager:t,key:{AppName:r,SemVer:s}})}catch(a){ar.info(`LoadVersion threw for '${n}/${i}${s}' - falling through to app routing'`,{appName:r,semVer:s,error:a});return}if(o===void 0){ar.info(`LoadVersion returned undefined for '${n}/${i}${s}', assuming not found - falling through to app routing'`,{appName:r,semVer:s});return}if(!!o.DefaultFile)return ar.info(`found '${n}/${i}${s}' - returning 302 to ${n}/${i}${s}/${o.DefaultFile}`,{statusCode:302,routedPath:`${n}/${i}${s}/${o.DefaultFile}`}),{statusCode:302,redirectLocation:`${n}/${i}${s}/${o.DefaultFile}`}}});var Bs=f((oc,q0)=>{"use strict";Object.defineProperty(oc,"__esModule",{value:!0});oc.default=tde;function Mh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mh=function(n){return typeof n}:Mh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Mh(e)}function tde(e){var t=typeof e=="string"||e instanceof String;if(!t){var n=Mh(e);throw e===null?n="null":n==="object"&&(n=e.constructor.name),new TypeError("Expected a string but received a ".concat(n))}}q0.exports=oc.default;q0.exports.default=oc.default});var zh=f((ac,M0)=>{"use strict";Object.defineProperty(ac,"__esModule",{value:!0});ac.default=nde;function nde(){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]>"u"&&(e[n]=t[n]);return e}M0.exports=ac.default;M0.exports.default=ac.default});var PM=f((cc,z0)=>{"use strict";Object.defineProperty(cc,"__esModule",{value:!0});cc.default=sde;var rde=ide(Bs());function ide(e){return e&&e.__esModule?e:{default:e}}function jh(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?jh=function(n){return typeof n}:jh=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},jh(e)}function sde(e,t){(0,rde.default)(e);var n,r;jh(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>"u"||i<=r)}z0.exports=cc.default;z0.exports.default=cc.default});var k0=f((lc,j0)=>{"use strict";Object.defineProperty(lc,"__esModule",{value:!0});lc.default=lde;var ode=OM(Bs()),ade=OM(zh());function OM(e){return e&&e.__esModule?e:{default:e}}var cde={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function lde(e,t){(0,ode.default)(e),t=(0,ade.default)(t,cde),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))})}j0.exports=lc.default;j0.exports.default=lc.default});var kh=f((uc,U0)=>{"use strict";Object.defineProperty(uc,"__esModule",{value:!0});uc.default=F0;var ude=dde(Bs());function dde(e){return e&&e.__esModule?e:{default:e}}var LM="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",Hr="(".concat(LM,"[.]){3}").concat(LM),fde=new RegExp("^".concat(Hr,"$")),We="(?:[0-9a-fA-F]{1,4})",mde=new RegExp("^("+"(?:".concat(We,":){7}(?:").concat(We,"|:)|")+"(?:".concat(We,":){6}(?:").concat(Hr,"|:").concat(We,"|:)|")+"(?:".concat(We,":){5}(?::").concat(Hr,"|(:").concat(We,"){1,2}|:)|")+"(?:".concat(We,":){4}(?:(:").concat(We,"){0,1}:").concat(Hr,"|(:").concat(We,"){1,3}|:)|")+"(?:".concat(We,":){3}(?:(:").concat(We,"){0,2}:").concat(Hr,"|(:").concat(We,"){1,4}|:)|")+"(?:".concat(We,":){2}(?:(:").concat(We,"){0,3}:").concat(Hr,"|(:").concat(We,"){1,5}|:)|")+"(?:".concat(We,":){1}(?:(:").concat(We,"){0,4}:").concat(Hr,"|(:").concat(We,"){1,6}|:)|")+"(?::((?::".concat(We,"){0,5}:").concat(Hr,"|(?::").concat(We,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function F0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,ude.default)(e),t=String(t),!t)return F0(e,4)||F0(e,6);if(t==="4"){if(!fde.test(e))return!1;var n=e.split(".").sort(function(r,i){return r-i});return n[3]<=255}return t==="6"?!!mde.test(e):!1}U0.exports=uc.default;U0.exports.default=uc.default});var MM=f((fc,G0)=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.default=Cde;var pde=dc(Bs()),hde=dc(zh()),B0=dc(PM()),_de=dc(k0()),qM=dc(kh());function dc(e){return e&&e.__esModule?e:{default:e}}var yde={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},gde=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,vde=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,Sde=/^[a-z\d]+$/,wde=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,bde=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,Ede=/^([\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,Ade=254;function Tde(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 Cde(e,t){if((0,pde.default)(e),t=(0,hde.default)(t,yde),t.require_display_name||t.allow_display_name){var n=e.match(gde);if(n){var r=n[1];if(e=e.replace(r,"").replace(/(^<|>$)/g,""),r.endsWith(" ")&&(r=r.substr(0,r.length-1)),!Tde(r))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>Ade)return!1;var i=e.split("@"),s=i.pop(),o=s.toLowerCase();if(t.host_blacklist.includes(o))return!1;var a=i.join("@");if(t.domain_specific_validation&&(o==="gmail.com"||o==="googlemail.com")){a=a.toLowerCase();var c=a.split("+")[0];if(!(0,B0.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var u=c.split("."),d=0;d<u.length;d++)if(!Sde.test(u[d]))return!1}if(t.ignore_max_length===!1&&(!(0,B0.default)(a,{max:64})||!(0,B0.default)(s,{max:254})))return!1;if(!(0,_de.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,qM.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var h=s.substr(1,s.length-2);if(h.length===0||!(0,qM.default)(h))return!1}}if(a[0]==='"')return a=a.slice(1,a.length-1),t.allow_utf8_local_part?Ede.test(a):wde.test(a);for(var m=t.allow_utf8_local_part?bde:vde,y=a.split("."),g=0;g<y.length;g++)if(!m.test(y[g]))return!1;return!(t.blacklisted_chars&&a.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}G0.exports=fc.default;G0.exports.default=fc.default});var FM=f((mc,$0)=>{"use strict";Object.defineProperty(mc,"__esModule",{value:!0});mc.default=jde;var xde=Fh(Bs()),Ide=Fh(k0()),zM=Fh(kh()),Rde=Fh(zh());function Fh(e){return e&&e.__esModule?e:{default:e}}function Dde(e,t){return Lde(e)||Ode(e,t)||Pde(e,t)||Nde()}function Nde(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
35
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Pde(e,t){if(!!e){if(typeof e=="string")return jM(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 jM(e,t)}}function jM(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 Ode(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,s=void 0;try{for(var o=e[Symbol.iterator](),a;!(r=(a=o.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,s=c}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw s}}return n}}function Lde(e){if(Array.isArray(e))return e}var qde={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},Mde=/^\[([^\]]+)\](?::([0-9]+))?$/;function zde(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function kM(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||zde(r)&&r.test(e))return!0}return!1}function jde(e,t){if((0,xde.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,Rde.default)(t,qde),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,o,a,c,u;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 d=r.split(":"),h=Dde(d,2),m=h[0],y=h[1];if(m===""&&y==="")return!1}s=c.join("@"),a=null,u=null;var g=s.match(Mde);if(g?(i="",u=g[1],a=g[2]||null):(c=s.split(":"),i=c.shift(),c.length&&(a=c.join(":"))),a!==null&&a.length>0){if(o=parseInt(a,10),!/^[0-9]+$/.test(a)||o<=0||o>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?kM(i,t.host_whitelist):!(!(0,zM.default)(i)&&!(0,Ide.default)(i,t)&&(!u||!(0,zM.default)(u,6))||(i=i||u,t.host_blacklist&&kM(i,t.host_blacklist)))}$0.exports=mc.default;$0.exports.default=mc.default});var BM=f((oAe,UM)=>{"use strict";var kde=MM(),Fde=FM(),Ude=kh();function V0(e,t){if(!e)throw new Error(t)}var Bde={name:"email",coerce:e=>e.toString(),validate:function(e){V0(kde(e),"must be an email address")}},Gde={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){V0(Ude(e),"must be an IP address")}},$de={name:"url",coerce:e=>e.toString(),validate:function(e){V0(Fde(e,{require_tld:!1}),"must be a URL")}};UM.exports={email:Bde,ipaddress:Gde,url:$de}});var Nz=f(Dz=>{"use strict";Object.defineProperty(Dz,"__esModule",{value:!0})});var ab=f(ob=>{"use strict";Object.defineProperty(ob,"__esModule",{value:!0});var sb=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)||[]}};ob.default=new sb});var Pz=f(Qr=>{"use strict";var ppe=Qr&&Qr.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Qr,"__esModule",{value:!0});Qr.Property=Qr.Config=void 0;var Wh=ppe(ab());function hpe(e={}){return t=>{Wh.default.setConvictMetaForClass(e,t)}}Qr.Config=hpe;function _pe(e){return(t,n)=>{if(typeof e=="object"&&typeof e.format>"u"){let r=Wh.default.getTsType(t,n);r&&(e.format=r)}Wh.default.setConvictMetaForProperty(e,t,n),Wh.default.setPropertyForClass(t,n)}}Qr.Property=_pe});var Fz=f((hAe,kz)=>{"use strict";var ype=require("util"),gpe=require("fs"),Oz=require("path");function vc(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 o=e.charAt(s);r&&(r=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?r=!0:o!=="-"&&o!=="_"&&(n+=o)}return n}}function Mz(e,t){let n=e.toLowerCase();t=t||"-";let r="";for(let i=0;i<e.length;i++){let s=n.charAt(i),o=e.charAt(i);s!==o&&i>0?r+=`${t}${n.charAt(i)}`:r+=o}return r}function zz(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 vpe(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,n=null,r=null,i=null,s=[];for(let o=0;o<e.length;o++){if(n=r,r=e.charAt(o),r===" "&&!i){n!==" "&&t++;continue}r===i?i=null:(r==="'"||r==='"')&&!i&&(i=r),s[t]||(s[t]=""),s[t]+=r}return s}var cn;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(cn||(cn={}));var lr,lb=class{constructor(t){lr=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=vpe(t),s=Spe(Object.assign(Object.create(null),r.alias)),o=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),a=Object.assign(Object.create(null),r.default),c=r.configObjects||[],u=r.envPrefix,d=o["populate--"],h=d?"--":"_",m=Object.create(null),y=Object.create(null),g=r.__||lr.format,_={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:[]},A=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,R=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(r.array||[]).filter(Boolean).forEach(function(S){let w=typeof S=="object"?S.key:S,P=Object.keys(S).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();P&&(_[P][w]=!0),_.arrays[w]=!0,_.keys.push(w)}),[].concat(r.boolean||[]).filter(Boolean).forEach(function(S){_.bools[S]=!0,_.keys.push(S)}),[].concat(r.string||[]).filter(Boolean).forEach(function(S){_.strings[S]=!0,_.keys.push(S)}),[].concat(r.number||[]).filter(Boolean).forEach(function(S){_.numbers[S]=!0,_.keys.push(S)}),[].concat(r.count||[]).filter(Boolean).forEach(function(S){_.counts[S]=!0,_.keys.push(S)}),[].concat(r.normalize||[]).filter(Boolean).forEach(function(S){_.normalize[S]=!0,_.keys.push(S)}),typeof r.narg=="object"&&Object.entries(r.narg).forEach(([S,w])=>{typeof w=="number"&&(_.nargs[S]=w,_.keys.push(S))}),typeof r.coerce=="object"&&Object.entries(r.coerce).forEach(([S,w])=>{typeof w=="function"&&(_.coercions[S]=w,_.keys.push(S))}),typeof r.config<"u"&&(Array.isArray(r.config)||typeof r.config=="string"?[].concat(r.config).filter(Boolean).forEach(function(S){_.configs[S]=!0}):typeof r.config=="object"&&Object.entries(r.config).forEach(([S,w])=>{(typeof w=="boolean"||typeof w=="function")&&(_.configs[S]=w)})),_r(r.key,s,r.default,_.arrays),Object.keys(a).forEach(function(S){(_.aliases[S]||[]).forEach(function(w){a[w]=a[S]})});let T=null;d_();let G=[],he=Object.assign(Object.create(null),{_:[]}),Jt={};for(let S=0;S<i.length;S++){let w=i[S],P=w.replace(/^-{3,}/,"---"),x,b,j,k,J,Ue;if(w!=="--"&&ji(w))pr(w);else if(P.match(/---+(=|$)/)){pr(w);continue}else if(w.match(/^--.+=/)||!o["short-option-groups"]&&w.match(/^-.+=/))k=w.match(/^--?([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&(ie(k[1],_.arrays)?S=ln(S,k[1],i,k[2]):ie(k[1],_.nargs)!==!1?S=hr(S,k[1],i,k[2]):z(k[1],k[2]));else if(w.match(R)&&o["boolean-negation"])k=w.match(R),k!==null&&Array.isArray(k)&&k.length>=2&&(b=k[1],z(b,ie(b,_.arrays)?[!1]:!1));else if(w.match(/^--.+/)||!o["short-option-groups"]&&w.match(/^-[^-]+/))k=w.match(/^--?(.+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(b=k[1],ie(b,_.arrays)?S=ln(S,b,i):ie(b,_.nargs)!==!1?S=hr(S,b,i):(J=i[S+1],J!==void 0&&(!J.match(/^-/)||J.match(A))&&!ie(b,_.bools)&&!ie(b,_.counts)||/^(true|false)$/.test(J)?(z(b,J),S++):z(b,at(b))));else if(w.match(/^-.\..+=/))k=w.match(/^-([^=]+)=([\s\S]*)$/),k!==null&&Array.isArray(k)&&k.length>=3&&z(k[1],k[2]);else if(w.match(/^-.\..+/)&&!w.match(A))J=i[S+1],k=w.match(/^-(.\..+)/),k!==null&&Array.isArray(k)&&k.length>=2&&(b=k[1],J!==void 0&&!J.match(/^-/)&&!ie(b,_.bools)&&!ie(b,_.counts)?(z(b,J),S++):z(b,at(b)));else if(w.match(/^-[^-]+/)&&!w.match(A)){j=w.slice(1,-1).split(""),x=!1;for(let Ye=0;Ye<j.length;Ye++){if(J=w.slice(Ye+2),j[Ye+1]&&j[Ye+1]==="="){Ue=w.slice(Ye+3),b=j[Ye],ie(b,_.arrays)?S=ln(S,b,i,Ue):ie(b,_.nargs)!==!1?S=hr(S,b,i,Ue):z(b,Ue),x=!0;break}if(J==="-"){z(j[Ye],J);continue}if(/[A-Za-z]/.test(j[Ye])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(J)&&ie(J,_.bools)===!1){z(j[Ye],J),x=!0;break}if(j[Ye+1]&&j[Ye+1].match(/\W/)){z(j[Ye],J),x=!0;break}else z(j[Ye],at(j[Ye]))}b=w.slice(-1)[0],!x&&b!=="-"&&(ie(b,_.arrays)?S=ln(S,b,i):ie(b,_.nargs)!==!1?S=hr(S,b,i):(J=i[S+1],J!==void 0&&(!/^(-|--)[^-]/.test(J)||J.match(A))&&!ie(b,_.bools)&&!ie(b,_.counts)||/^(true|false)$/.test(J)?(z(b,J),S++):z(b,at(b))))}else if(w.match(/^-[0-9]$/)&&w.match(A)&&ie(w.slice(1),_.bools))b=w.slice(1),z(b,at(b));else if(w==="--"){G=i.slice(S+1);break}else if(o["halt-at-non-option"]){G=i.slice(S);break}else pr(w)}Te(he,!0),Te(he,!1),qe(he),Ae(),Se(he,_.aliases,a,!0),ge(he),o["set-placeholder-key"]&&Me(he),Object.keys(_.counts).forEach(function(S){Gn(he,S.split("."))||z(S,0)}),d&&G.length&&(he[h]=[]),G.forEach(function(S){he[h].push(S)}),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(he).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete he[S]}),o["strip-aliased"]&&[].concat(...Object.keys(s).map(S=>s[S])).forEach(S=>{o["camel-case-expansion"]&&S.includes("-")&&delete he[S.split(".").map(w=>vc(w)).join(".")],delete he[S]});function pr(S){let w=Ee("_",S);(typeof w=="string"||typeof w=="number")&&he._.push(w)}function hr(S,w,P,x){let b,j=ie(w,_.nargs);if(j=typeof j!="number"||isNaN(j)?1:j,j===0)return Ft(x)||(T=Error(g("Argument unexpected for: %s",w))),z(w,at(w)),S;let k=Ft(x)?0:1;if(o["nargs-eats-options"])P.length-(S+1)+k<j&&(T=Error(g("Not enough arguments following: %s",w))),k=j;else{for(b=S+1;b<P.length&&(!P[b].match(/^-[^0-9]/)||P[b].match(A)||ji(P[b]));b++)k++;k<j&&(T=Error(g("Not enough arguments following: %s",w)))}let J=Math.min(k,j);for(!Ft(x)&&J>0&&(z(w,x),J--),b=S+1;b<J+S+1;b++)z(w,P[b]);return S+J}function ln(S,w,P,x){let b=[],j=x||P[S+1],k=ie(w,_.nargs);if(ie(w,_.bools)&&!/^(true|false)$/.test(j))b.push(!0);else if(Ft(j)||Ft(x)&&/^-/.test(j)&&!A.test(j)&&!ji(j)){if(a[w]!==void 0){let J=a[w];b=Array.isArray(J)?J:[J]}}else{Ft(x)||b.push(de(w,x));for(let J=S+1;J<P.length&&!(!o["greedy-arrays"]&&b.length>0||k&&typeof k=="number"&&b.length>=k||(j=P[J],/^-/.test(j)&&!A.test(j)&&!ji(j)));J++)S=J,b.push(de(w,j))}return typeof k=="number"&&(k&&b.length<k||isNaN(k)&&b.length===0)&&(T=Error(g("Not enough arguments following: %s",w))),z(w,b),S}function z(S,w){if(/-/.test(S)&&o["camel-case-expansion"]){let b=S.split(".").map(function(j){return vc(j)}).join(".");fe(S,b)}let P=de(S,w),x=S.split(".");Ne(he,x,P),_.aliases[S]&&_.aliases[S].forEach(function(b){let j=b.split(".");Ne(he,j,P)}),x.length>1&&o["dot-notation"]&&(_.aliases[x[0]]||[]).forEach(function(b){let j=b.split("."),k=[].concat(x);k.shift(),j=j.concat(k),(_.aliases[S]||[]).includes(j.join("."))||Ne(he,j,P)}),ie(S,_.normalize)&&!ie(S,_.arrays)&&[S].concat(_.aliases[S]||[]).forEach(function(j){Object.defineProperty(Jt,j,{enumerable:!0,get(){return w},set(k){w=typeof k=="string"?lr.normalize(k):k}})})}function fe(S,w){_.aliases[S]&&_.aliases[S].length||(_.aliases[S]=[w],m[w]=!0),_.aliases[w]&&_.aliases[w].length||fe(w,S)}function de(S,w){typeof w=="string"&&(w[0]==="'"||w[0]==='"')&&w[w.length-1]===w[0]&&(w=w.substring(1,w.length-1)),(ie(S,_.bools)||ie(S,_.counts))&&typeof w=="string"&&(w=w==="true");let P=Array.isArray(w)?w.map(function(x){return Ee(S,x)}):Ee(S,w);return ie(S,_.counts)&&(Ft(P)||typeof P=="boolean")&&(P=cb()),ie(S,_.normalize)&&ie(S,_.arrays)&&(Array.isArray(w)?P=w.map(x=>lr.normalize(x)):P=lr.normalize(w)),P}function Ee(S,w){return!o["parse-positional-numbers"]&&S==="_"||!ie(S,_.strings)&&!ie(S,_.bools)&&!Array.isArray(w)&&(zz(w)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${w}`)))||!Ft(w)&&ie(S,_.numbers))&&(w=Number(w)),w}function qe(S){let w=Object.create(null);Se(w,_.aliases,a),Object.keys(_.configs).forEach(function(P){let x=S[P]||w[P];if(x)try{let b=null,j=lr.resolve(lr.cwd(),x),k=_.configs[P];if(typeof k=="function"){try{b=k(j)}catch(J){b=J}if(b instanceof Error){T=b;return}}else b=lr.require(j);Re(b)}catch(b){b.name==="PermissionDenied"?T=b:S[P]&&(T=Error(g("Invalid JSON config file: %s",x)))}})}function Re(S,w){Object.keys(S).forEach(function(P){let x=S[P],b=w?w+"."+P:P;typeof x=="object"&&x!==null&&!Array.isArray(x)&&o["dot-notation"]?Re(x,b):(!Gn(he,b.split("."))||ie(b,_.arrays)&&o["combine-arrays"])&&z(b,x)})}function Ae(){typeof c<"u"&&c.forEach(function(S){Re(S)})}function Te(S,w){if(typeof u>"u")return;let P=typeof u=="string"?u:"",x=lr.env();Object.keys(x).forEach(function(b){if(P===""||b.lastIndexOf(P,0)===0){let j=b.split("__").map(function(k,J){return J===0&&(k=k.substring(P.length)),vc(k)});(w&&_.configs[j.join(".")]||!w)&&!Gn(S,j)&&z(j.join("."),x[b])}})}function ge(S){let w,P=new Set;Object.keys(S).forEach(function(x){if(!P.has(x)&&(w=ie(x,_.coercions),typeof w=="function"))try{let b=Ee(x,w(S[x]));[].concat(_.aliases[x]||[],x).forEach(j=>{P.add(j),S[j]=b})}catch(b){T=b}})}function Me(S){return _.keys.forEach(w=>{~w.indexOf(".")||typeof S[w]>"u"&&(S[w]=void 0)}),S}function Se(S,w,P,x=!1){Object.keys(P).forEach(function(b){Gn(S,b.split("."))||(Ne(S,b.split("."),P[b]),x&&(y[b]=!0),(w[b]||[]).forEach(function(j){Gn(S,j.split("."))||Ne(S,j.split("."),P[b])}))})}function Gn(S,w){let P=S;o["dot-notation"]||(w=[w.join(".")]),w.slice(0,-1).forEach(function(b){P=P[b]||{}});let x=w[w.length-1];return typeof P!="object"?!1:x in P}function Ne(S,w,P){let x=S;o["dot-notation"]||(w=[w.join(".")]),w.slice(0,-1).forEach(function(Ue){Ue=Lz(Ue),typeof x=="object"&&x[Ue]===void 0&&(x[Ue]={}),typeof x[Ue]!="object"||Array.isArray(x[Ue])?(Array.isArray(x[Ue])?x[Ue].push({}):x[Ue]=[x[Ue],{}],x=x[Ue][x[Ue].length-1]):x=x[Ue]});let b=Lz(w[w.length-1]),j=ie(w.join("."),_.arrays),k=Array.isArray(P),J=o["duplicate-arguments-array"];!J&&ie(b,_.nargs)&&(J=!0,(!Ft(x[b])&&_.nargs[b]===1||Array.isArray(x[b])&&x[b].length===_.nargs[b])&&(x[b]=void 0)),P===cb()?x[b]=cb(x[b]):Array.isArray(x[b])?J&&j&&k?x[b]=o["flatten-duplicate-arrays"]?x[b].concat(P):(Array.isArray(x[b][0])?x[b]:[x[b]]).concat([P]):!J&&Boolean(j)===Boolean(k)?x[b]=P:x[b]=x[b].concat([P]):x[b]===void 0&&j?x[b]=k?P:[P]:J&&!(x[b]===void 0||ie(b,_.counts)||ie(b,_.bools))?x[b]=[x[b],P]:x[b]=P}function _r(...S){S.forEach(function(w){Object.keys(w||{}).forEach(function(P){_.aliases[P]||(_.aliases[P]=[].concat(s[P]||[]),_.aliases[P].concat(P).forEach(function(x){if(/-/.test(x)&&o["camel-case-expansion"]){let b=vc(x);b!==P&&_.aliases[P].indexOf(b)===-1&&(_.aliases[P].push(b),m[b]=!0)}}),_.aliases[P].concat(P).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&o["camel-case-expansion"]){let b=Mz(x,"-");b!==P&&_.aliases[P].indexOf(b)===-1&&(_.aliases[P].push(b),m[b]=!0)}}),_.aliases[P].forEach(function(x){_.aliases[x]=[P].concat(_.aliases[P].filter(function(b){return x!==b}))}))})})}function ie(S,w){let P=[].concat(_.aliases[S]||[],S),x=Object.keys(w),b=P.find(j=>x.includes(j));return b?w[b]:!1}function ke(S){let w=Object.keys(_);return[].concat(w.map(x=>_[x])).some(function(x){return Array.isArray(x)?x.includes(S):x[S]})}function c_(S,...w){return[].concat(...w).some(function(x){let b=S.match(x);return b&&ke(b[1])})}function l_(S){if(S.match(A)||!S.match(/^-[^-]+/))return!1;let w=!0,P,x=S.slice(1).split("");for(let b=0;b<x.length;b++){if(P=S.slice(b+2),!ke(x[b])){w=!1;break}if(x[b+1]&&x[b+1]==="="||P==="-"||/[A-Za-z]/.test(x[b])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(P)||x[b+1]&&x[b+1].match(/\W/))break}return w}function ji(S){return o["unknown-options-as-args"]&&u_(S)}function u_(S){return S=S.replace(/^-{3,}/,"--"),S.match(A)||l_(S)?!1:!c_(S,/^-+([^=]+?)=[\s\S]*$/,R,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function at(S){return!ie(S,_.bools)&&!ie(S,_.counts)&&`${S}`in a?a[S]:Ic(yr(S))}function Ic(S){return{[cn.BOOLEAN]:!0,[cn.STRING]:"",[cn.NUMBER]:void 0,[cn.ARRAY]:[]}[S]}function yr(S){let w=cn.BOOLEAN;return ie(S,_.strings)?w=cn.STRING:ie(S,_.numbers)?w=cn.NUMBER:ie(S,_.bools)?w=cn.BOOLEAN:ie(S,_.arrays)&&(w=cn.ARRAY),w}function Ft(S){return S===void 0}function d_(){Object.keys(_.counts).find(S=>ie(S,_.arrays)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0):ie(S,_.nargs)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0):!1)}return{aliases:Object.assign({},_.aliases),argv:Object.assign(Jt,he),configuration:o,defaulted:Object.assign({},y),error:T,newAliases:Object.assign({},m)}}};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(a){return t[s].indexOf(a)!==-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(o,a,c){return c.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(n[s]=i)}),n}function cb(e){return e!==void 0?e+1:1}function Lz(e){return e==="__proto__"?"___proto___":e}var qz=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])<qz)throw Error(`yargs parser supports a minimum Node.js version of ${qz}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var wpe=process?process.env:{},jz=new lb({cwd:process.cwd,env:()=>wpe,format:ype.format,normalize:Oz.normalize,resolve:Oz.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return gpe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),Sc=function(t,n){return jz.parse(t.slice(),n).argv};Sc.detailed=function(e,t){return jz.parse(e.slice(),t)};Sc.camelCase=vc;Sc.decamelize=Mz;Sc.looksLikeNumber=zz;kz.exports=Sc});var Ij=f((wc,Ws)=>{var bpe=200,Xz="__lodash_hash_undefined__",Zz=9007199254740991,yb="[object Arguments]",Epe="[object Array]",ej="[object Boolean]",tj="[object Date]",Ape="[object Error]",gb="[object Function]",nj="[object GeneratorFunction]",Hh="[object Map]",rj="[object Number]",vb="[object Object]",Uz="[object Promise]",ij="[object RegExp]",Yh="[object Set]",sj="[object String]",oj="[object Symbol]",db="[object WeakMap]",aj="[object ArrayBuffer]",Jh="[object DataView]",cj="[object Float32Array]",lj="[object Float64Array]",uj="[object Int8Array]",dj="[object Int16Array]",fj="[object Int32Array]",mj="[object Uint8Array]",pj="[object Uint8ClampedArray]",hj="[object Uint16Array]",_j="[object Uint32Array]",Tpe=/[\\^$.*+?()[\]{}|]/g,Cpe=/\w*$/,xpe=/^\[object .+?Constructor\]$/,Ipe=/^(?:0|[1-9]\d*)$/,De={};De[yb]=De[Epe]=De[aj]=De[Jh]=De[ej]=De[tj]=De[cj]=De[lj]=De[uj]=De[dj]=De[fj]=De[Hh]=De[rj]=De[vb]=De[ij]=De[Yh]=De[sj]=De[oj]=De[mj]=De[pj]=De[hj]=De[_j]=!0;De[Ape]=De[gb]=De[db]=!1;var Rpe=typeof global=="object"&&global&&global.Object===Object&&global,Dpe=typeof self=="object"&&self&&self.Object===Object&&self,ur=Rpe||Dpe||Function("return this")(),yj=typeof wc=="object"&&wc&&!wc.nodeType&&wc,Bz=yj&&typeof Ws=="object"&&Ws&&!Ws.nodeType&&Ws,Npe=Bz&&Bz.exports===yj;function Ppe(e,t){return e.set(t[0],t[1]),e}function Ope(e,t){return e.add(t),e}function Lpe(e,t){for(var n=-1,r=e?e.length:0;++n<r&&t(e[n],n,e)!==!1;);return e}function qpe(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function gj(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 Mpe(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function zpe(e,t){return e==null?void 0:e[t]}function vj(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function Gz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Sb(e,t){return function(n){return e(t(n))}}function $z(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var jpe=Array.prototype,kpe=Function.prototype,Qh=Object.prototype,ub=ur["__core-js_shared__"],Vz=function(){var e=/[^.]+$/.exec(ub&&ub.keys&&ub.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Sj=kpe.toString,Xr=Qh.hasOwnProperty,Xh=Qh.toString,Fpe=RegExp("^"+Sj.call(Xr).replace(Tpe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Kz=Npe?ur.Buffer:void 0,Wz=ur.Symbol,Hz=ur.Uint8Array,Upe=Sb(Object.getPrototypeOf,Object),Bpe=Object.create,Gpe=Qh.propertyIsEnumerable,$pe=jpe.splice,Yz=Object.getOwnPropertySymbols,Vpe=Kz?Kz.isBuffer:void 0,Kpe=Sb(Object.keys,Object),fb=Js(ur,"DataView"),bc=Js(ur,"Map"),mb=Js(ur,"Promise"),pb=Js(ur,"Set"),hb=Js(ur,"WeakMap"),Ec=Js(Object,"create"),Wpe=Mi(fb),Hpe=Mi(bc),Ype=Mi(mb),Jpe=Mi(pb),Qpe=Mi(hb),Jz=Wz?Wz.prototype:void 0,Qz=Jz?Jz.valueOf:void 0;function qi(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 Xpe(){this.__data__=Ec?Ec(null):{}}function Zpe(e){return this.has(e)&&delete this.__data__[e]}function ehe(e){var t=this.__data__;if(Ec){var n=t[e];return n===Xz?void 0:n}return Xr.call(t,e)?t[e]:void 0}function the(e){var t=this.__data__;return Ec?t[e]!==void 0:Xr.call(t,e)}function nhe(e,t){var n=this.__data__;return n[e]=Ec&&t===void 0?Xz:t,this}qi.prototype.clear=Xpe;qi.prototype.delete=Zpe;qi.prototype.get=ehe;qi.prototype.has=the;qi.prototype.set=nhe;function dr(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 rhe(){this.__data__=[]}function ihe(e){var t=this.__data__,n=Zh(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():$pe.call(t,n,1),!0}function she(e){var t=this.__data__,n=Zh(t,e);return n<0?void 0:t[n][1]}function ohe(e){return Zh(this.__data__,e)>-1}function ahe(e,t){var n=this.__data__,r=Zh(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}dr.prototype.clear=rhe;dr.prototype.delete=ihe;dr.prototype.get=she;dr.prototype.has=ohe;dr.prototype.set=ahe;function Hs(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 che(){this.__data__={hash:new qi,map:new(bc||dr),string:new qi}}function lhe(e){return e_(this,e).delete(e)}function uhe(e){return e_(this,e).get(e)}function dhe(e){return e_(this,e).has(e)}function fhe(e,t){return e_(this,e).set(e,t),this}Hs.prototype.clear=che;Hs.prototype.delete=lhe;Hs.prototype.get=uhe;Hs.prototype.has=dhe;Hs.prototype.set=fhe;function Ys(e){this.__data__=new dr(e)}function mhe(){this.__data__=new dr}function phe(e){return this.__data__.delete(e)}function hhe(e){return this.__data__.get(e)}function _he(e){return this.__data__.has(e)}function yhe(e,t){var n=this.__data__;if(n instanceof dr){var r=n.__data__;if(!bc||r.length<bpe-1)return r.push([e,t]),this;n=this.__data__=new Hs(r)}return n.set(e,t),this}Ys.prototype.clear=mhe;Ys.prototype.delete=phe;Ys.prototype.get=hhe;Ys.prototype.has=_he;Ys.prototype.set=yhe;function ghe(e,t){var n=bb(e)||Bhe(e)?Mpe(e.length,String):[],r=n.length,i=!!r;for(var s in e)(t||Xr.call(e,s))&&!(i&&(s=="length"||jhe(s,r)))&&n.push(s);return n}function wj(e,t,n){var r=e[t];(!(Xr.call(e,t)&&Tj(r,n))||n===void 0&&!(t in e))&&(e[t]=n)}function Zh(e,t){for(var n=e.length;n--;)if(Tj(e[n][0],t))return n;return-1}function vhe(e,t){return e&&bj(t,Eb(t),e)}function _b(e,t,n,r,i,s,o){var a;if(r&&(a=s?r(e,i,s,o):r(e)),a!==void 0)return a;if(!t_(e))return e;var c=bb(e);if(c){if(a=qhe(e),!t)return Phe(e,a)}else{var u=Li(e),d=u==gb||u==nj;if($he(e))return The(e,t);if(u==vb||u==yb||d&&!s){if(vj(e))return s?e:{};if(a=Mhe(d?{}:e),!t)return Ohe(e,vhe(a,e))}else{if(!De[u])return s?e:{};a=zhe(e,u,_b,t)}}o||(o=new Ys);var h=o.get(e);if(h)return h;if(o.set(e,a),!c)var m=n?Lhe(e):Eb(e);return Lpe(m||e,function(y,g){m&&(g=y,y=e[g]),wj(a,g,_b(y,t,n,r,g,e,o))}),a}function She(e){return t_(e)?Bpe(e):{}}function whe(e,t,n){var r=t(e);return bb(e)?r:qpe(r,n(e))}function bhe(e){return Xh.call(e)}function Ehe(e){if(!t_(e)||Fhe(e))return!1;var t=xj(e)||vj(e)?Fpe:xpe;return t.test(Mi(e))}function Ahe(e){if(!Aj(e))return Kpe(e);var t=[];for(var n in Object(e))Xr.call(e,n)&&n!="constructor"&&t.push(n);return t}function The(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function wb(e){var t=new e.constructor(e.byteLength);return new Hz(t).set(new Hz(e)),t}function Che(e,t){var n=t?wb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function xhe(e,t,n){var r=t?n(Gz(e),!0):Gz(e);return gj(r,Ppe,new e.constructor)}function Ihe(e){var t=new e.constructor(e.source,Cpe.exec(e));return t.lastIndex=e.lastIndex,t}function Rhe(e,t,n){var r=t?n($z(e),!0):$z(e);return gj(r,Ope,new e.constructor)}function Dhe(e){return Qz?Object(Qz.call(e)):{}}function Nhe(e,t){var n=t?wb(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Phe(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function bj(e,t,n,r){n||(n={});for(var i=-1,s=t.length;++i<s;){var o=t[i],a=r?r(n[o],e[o],o,n,e):void 0;wj(n,o,a===void 0?e[o]:a)}return n}function Ohe(e,t){return bj(e,Ej(e),t)}function Lhe(e){return whe(e,Eb,Ej)}function e_(e,t){var n=e.__data__;return khe(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Js(e,t){var n=zpe(e,t);return Ehe(n)?n:void 0}var Ej=Yz?Sb(Yz,Object):Whe,Li=bhe;(fb&&Li(new fb(new ArrayBuffer(1)))!=Jh||bc&&Li(new bc)!=Hh||mb&&Li(mb.resolve())!=Uz||pb&&Li(new pb)!=Yh||hb&&Li(new hb)!=db)&&(Li=function(e){var t=Xh.call(e),n=t==vb?e.constructor:void 0,r=n?Mi(n):void 0;if(r)switch(r){case Wpe:return Jh;case Hpe:return Hh;case Ype:return Uz;case Jpe:return Yh;case Qpe:return db}return t});function qhe(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]=="string"&&Xr.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Mhe(e){return typeof e.constructor=="function"&&!Aj(e)?She(Upe(e)):{}}function zhe(e,t,n,r){var i=e.constructor;switch(t){case aj:return wb(e);case ej:case tj:return new i(+e);case Jh:return Che(e,r);case cj:case lj:case uj:case dj:case fj:case mj:case pj:case hj:case _j:return Nhe(e,r);case Hh:return xhe(e,r,n);case rj:case sj:return new i(e);case ij:return Ihe(e);case Yh:return Rhe(e,r,n);case oj:return Dhe(e)}}function jhe(e,t){return t=t??Zz,!!t&&(typeof e=="number"||Ipe.test(e))&&e>-1&&e%1==0&&e<t}function khe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Fhe(e){return!!Vz&&Vz in e}function Aj(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Qh;return e===n}function Mi(e){if(e!=null){try{return Sj.call(e)}catch{}try{return e+""}catch{}}return""}function Uhe(e){return _b(e,!0,!0)}function Tj(e,t){return e===t||e!==e&&t!==t}function Bhe(e){return Ghe(e)&&Xr.call(e,"callee")&&(!Gpe.call(e,"callee")||Xh.call(e)==yb)}var bb=Array.isArray;function Cj(e){return e!=null&&Vhe(e.length)&&!xj(e)}function Ghe(e){return Khe(e)&&Cj(e)}var $he=Vpe||Hhe;function xj(e){var t=t_(e)?Xh.call(e):"";return t==gb||t==nj}function Vhe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Zz}function t_(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function Khe(e){return!!e&&typeof e=="object"}function Eb(e){return Cj(e)?ghe(e):Ahe(e)}function Whe(){return[]}function Hhe(){return!1}Ws.exports=Uhe});var jj=f((_Ae,zj)=>{"use strict";var Yhe=require("fs"),Jhe=Fz(),Qs=Ij(),Qhe=["__proto__.","constructor.prototype."],Xhe="strict",Rj="warn";function Zr(e,t){if(!e)throw new Error(t)}function Dj(e){return Number.isInteger(e)&&e>=0&&e<=65535}function Cb(e){return String(e).includes("\\\\.\\pipe\\")}var Ac={"*":function(){},int:function(e){Zr(Number.isInteger(e),"must be an integer")},nat:function(e){Zr(Number.isInteger(e)&&e>=0,"must be a positive integer")},port:function(e){Zr(Dj(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){Zr(Cb(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){Cb(e)||Zr(Dj(e),"must be a windows named pipe or a number within range 0 - 65535")}};Ac.integer=Ac.int;var xb=new Map,Ib={"*":JSON.parse};function Nj(e,t){let n=Object.keys(e),r,i=[];for(;n.length;){r=n.shift();let o=Xs(e,r);if(typeof o=="object"&&!Array.isArray(o)&&o!=null){if(t)if("_cvtProperties"in o)o=o._cvtProperties,r=`${r}._cvtProperties`;else{i.push([r,o]);continue}let a=Object.keys(o);if(a.length>0){a.forEach(function(c){n.push(`${r}.${c}`)});continue}}i.push([r,o])}let s={};return i.forEach(function(o){let a=o[0];t&&(a=a.replace(/\._cvtProperties/g,""));let c=o[1];s[a]=c}),s}function Zhe(e,t,n){let r={undeclared:[],invalid_type:[],missing:[]},i=Nj(e),s=Nj(t._cvtProperties,!0);return Object.keys(s).forEach(function(o){let a=s[o],c=i[o];if(!(o in i))try{if(typeof a.default=="object"&&!Array.isArray(a.default))c=Xs(e,o);else throw new Error("missing")}catch{let d=new Error(`configuration param '${o}' missing from config, did you override its parent?`);r.missing.push(d);return}if(delete i[o],(a.format==="object"||typeof a.default=="object")&&Object.keys(i).filter(function(u){return u.lastIndexOf(`${o}.`,0)===0}).forEach(function(u){delete i[u]}),!(typeof a.default>"u"&&c===a.default))try{a._format(c)}catch(u){r.invalid_type.push(u)}}),n&&Object.keys(i).forEach(function(o){let a=new Error(`configuration param '${o}' not declared in the schema`);r.undeclared.push(a)}),r}function e_e(e,t){Zr(e.indexOf(t)!==-1,`must be one of the possible values: ${JSON.stringify(e)}`)}var Db={Object,Array,String,Number,Boolean,RegExp},Lj=Object.keys(Db),t_e=Lj.map(function(e){return Db[e]});function qj(e,t,n,r,i,s,o){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(d){qj(d,t[d],n[e]._cvtProperties,`${r}.${d}`,i,s,o)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let a=Qs(t);if(n[e]=a,a.env&&(i[a.env]||(i[a.env]=[]),i[a.env].push(r)),a.arg){if(s[a.arg])throw new Error(`'${r}' reuses a command-line argument: ${a.arg}`);s[a.arg]=r}a.sensitive===!0&&o.add(r);let c=a.format,u;if(t_e.indexOf(c)>=0||Lj.indexOf(c)>=0){let d=typeof c=="string"?Db[c]:c;u=function(h){Zr(Object.prototype.toString.call(h)==Object.prototype.toString.call(new d),`must be of type ${d.name}`)},a.format=d.name.toLowerCase()}else if(typeof c=="string"){if(!Ac[c])throw new Error(`'${r}' uses an unknown format type: ${c}`);u=Ac[c]}else if(Array.isArray(c))u=e_e.bind(null,c);else if(typeof c=="function")u=c;else if(c&&typeof c!="function")throw new Error(`'${r}': "format" must be a function or a known format type.`);if(!u&&!c){let d=Object.prototype.toString.call(a.default);u=function(h){Zr(Object.prototype.toString.call(h)==d," should be of type "+d.replace(/\[.* |]/g,""))}}a._format=function(d){if(!(this.nullable&&d===null))try{u(d,this)}catch(h){throw h.fullName=r,h.value=d,h}}}function Ab(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 Tb(e){let t=Jhe(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 Mj(e,t,n){Object.keys(e._cvtProperties).forEach(function(r){let i=e._cvtProperties[r];if(i._cvtProperties){let s=t[r]||{};Mj(i,s,n),t[r]=s}else t[r]=Nb(r,Qs(i.default),e,n)})}function Pj(e){return typeof e=="object"&&e!==null}function Rb(e,t,n){Object.keys(e).forEach(function(r){Array.isArray(e[r])||!Pj(e[r])||!n||n.format==="object"?t[r]=Nb(r,e[r],n):(Pj(t[r])||(t[r]={}),Rb(e[r],t[r],n._cvtProperties[r]))})}function n_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 r_e(e,t){let n=n_e(e,t);return n==null?null:typeof n.format=="string"?n.format:n.default!=null?typeof n.default:null}function Nb(e,t,n,r){let i=r_e(n,e);if(typeof t=="string"){if(xb.has(i))return xb.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=Cb(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 Oj(e){let t=e.split("."),n=t.length>1?t.pop():"";return(Ib[n]||Ib["*"])(Yhe.readFileSync(e,"utf-8"))}function Xs(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 Tc=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 Qs(this._instance)},toString:function(){let i=Qs(this._instance);return this._sensitive.forEach(function(s){let o=s.split("."),a=o.pop(),c=o.join("."),u=Xs(i,c);u[a]="[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=Xs(this._instance,i);return Qs(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=Xs(this._schema._cvtProperties,i);return Qs(s)},reset:function(i){this.set(i,this.default(i))},has:function(i){try{return typeof this.get(i)<"u"}catch{return!1}},set:function(i,s){for(let d of Qhe)if(i.startsWith(d)||i.includes(`.${d}`))return this;s=Nb(i,s,this._schema,this);let o=i.split("."),a=o.pop(),c=o.join("."),u=Xs(this._instance,c,!0);return u[a]=s,this},load:function(i){return Rb(i,this._instance,this._schema),Ab(r),Tb(r),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(o){let a=Oj(o);a&&Rb(a,s._instance,s._schema)}),Ab(r),Tb(r),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||Rj,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,o=Zhe(this._instance,this._schema,i.allowed);if(o.invalid_type.length+o.undeclared.length+o.missing.length){let a=this._sensitive,c=function(g){let _="";for(let A=0;A<g.length;A++){_.length&&(_+=`
|
|
36
|
-
`);let R=g[A];R.fullName&&(
|
|
37
|
-
`);if(y.length)throw new Error(y)}return this}};return typeof t=="string"?r._def=Oj(t):r._def=t,r._schema={_cvtProperties:{}},r._env={},r._argv={},r._sensitive=new Set,Object.keys(r._def).forEach(function(i){qj(i,r._def[i],r._schema._cvtProperties,i,r._env,r._argv,r._sensitive)}),r._instance={},Mj(r._schema,r._instance,r),Ab(r),Tb(r),r};Tc.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.`);Ac[e]=t,n&&xb.set(e,n)};Tc.addFormats=function(e){Object.keys(e).forEach(function(t){Tc.addFormat(t,e[t].validate,e[t].coerce)})};Tc.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");Ib[r]=t.parse})})};zj.exports=Tc});var kj=f(Zs=>{"use strict";var n_=Zs&&Zs.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Zs,"__esModule",{value:!0});Zs.TSConvict=void 0;var Bn=n_(ab()),Pb=n_(jj()),i_e=n_(require("fs")),s_e=n_(require("path")),Ob=class{constructor(t){if(this.opts={},!Bn.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let n=Bn.default.getConvictMetaForClass(t);n!==null&&(typeof n.parser<"u"&&Pb.default.addParser(n.parser),typeof n.formats<"u"&&Pb.default.addFormats(n.formats),this.opts=n),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=Pb.default(this.schema)}load(t=null){let n=null;if(typeof this.opts.file<"u"&&i_e.default.existsSync(s_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 Bn.default.getClassProperties(t)){let i=Bn.default.getConvictMetaForProperty(t,r);if(Bn.default.isConstructor(i)&&Bn.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 Bn.default.getClassProperties(t)){let i=Bn.default.getConvictMetaForProperty(t,r);Bn.default.isConstructor(i)&&Bn.default.isConfigClass(i)?this.applyDataToModel(t[r],n[r]||{}):r in n&&(t[r]=n[r])}return t}};Zs.TSConvict=Ob});var r_=f(fr=>{"use strict";var o_e=fr&&fr.__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]}),Lb=fr&&fr.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&o_e(t,e,n)};Object.defineProperty(fr,"__esModule",{value:!0});Lb(Nz(),fr);Lb(Pz(),fr);Lb(kj(),fr)});var f_e={};Hj(f_e,{handler:()=>l_e,overrideDBManager:()=>a_e});module.exports=Yj(f_e);var CAe=un(L_());var vE;(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>"u"?n.Reflect=e:r=i(n.Reflect,r),t(r);function i(s,o){return function(a,c){typeof s[a]!="function"&&Object.defineProperty(s,a,{configurable:!0,writable:!0,value:c}),o&&o(a,c)}}})(function(t){var n=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",i=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!o&&!a,u={create:o?function(){return Ye(Object.create(null))}:a?function(){return Ye({__proto__:null})}:function(){return Ye({})},has:c?function(E,I){return n.call(E,I)}:function(E,I){return I in E},get:c?function(E,I){return n.call(E,I)?E[I]:void 0}:function(E,I){return E[I]}},d=Object.getPrototypeOf(Function),h=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",m=!h&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:k(),y=!h&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:J(),g=!h&&typeof WeakMap=="function"?WeakMap:Ue(),_=new g;function A(E,I,N,M){if(Ne(N)){if(!Ic(E))throw new TypeError;if(!Ft(I))throw new TypeError;return fe(E,I)}else{if(!Ic(E))throw new TypeError;if(!ke(I))throw new TypeError;if(!ke(M)&&!Ne(M)&&!_r(M))throw new TypeError;return _r(M)&&(M=void 0),N=at(N),de(E,I,N,M)}}t("decorate",A);function R(E,I){function N(M,W){if(!ke(M))throw new TypeError;if(!Ne(W)&&!d_(W))throw new TypeError;ge(E,I,M,W)}return N}t("metadata",R);function T(E,I,N,M){if(!ke(N))throw new TypeError;return Ne(M)||(M=at(M)),ge(E,I,N,M)}t("defineMetadata",T);function G(E,I,N){if(!ke(I))throw new TypeError;return Ne(N)||(N=at(N)),qe(E,I,N)}t("hasMetadata",G);function he(E,I,N){if(!ke(I))throw new TypeError;return Ne(N)||(N=at(N)),Re(E,I,N)}t("hasOwnMetadata",he);function Jt(E,I,N){if(!ke(I))throw new TypeError;return Ne(N)||(N=at(N)),Ae(E,I,N)}t("getMetadata",Jt);function pr(E,I,N){if(!ke(I))throw new TypeError;return Ne(N)||(N=at(N)),Te(E,I,N)}t("getOwnMetadata",pr);function hr(E,I){if(!ke(E))throw new TypeError;return Ne(I)||(I=at(I)),Me(E,I)}t("getMetadataKeys",hr);function ln(E,I){if(!ke(E))throw new TypeError;return Ne(I)||(I=at(I)),Se(E,I)}t("getOwnMetadataKeys",ln);function z(E,I,N){if(!ke(I))throw new TypeError;Ne(N)||(N=at(N));var M=Ee(I,N,!1);if(Ne(M)||!M.delete(E))return!1;if(M.size>0)return!0;var W=_.get(I);return W.delete(N),W.size>0||_.delete(I),!0}t("deleteMetadata",z);function fe(E,I){for(var N=E.length-1;N>=0;--N){var M=E[N],W=M(I);if(!Ne(W)&&!_r(W)){if(!Ft(W))throw new TypeError;I=W}}return I}function de(E,I,N,M){for(var W=E.length-1;W>=0;--W){var tt=E[W],oe=tt(I,N,M);if(!Ne(oe)&&!_r(oe)){if(!ke(oe))throw new TypeError;M=oe}}return M}function Ee(E,I,N){var M=_.get(E);if(Ne(M)){if(!N)return;M=new m,_.set(E,M)}var W=M.get(I);if(Ne(W)){if(!N)return;W=new m,M.set(I,W)}return W}function qe(E,I,N){var M=Re(E,I,N);if(M)return!0;var W=j(I);return _r(W)?!1:qe(E,W,N)}function Re(E,I,N){var M=Ee(I,N,!1);return Ne(M)?!1:ji(M.has(E))}function Ae(E,I,N){var M=Re(E,I,N);if(M)return Te(E,I,N);var W=j(I);if(!_r(W))return Ae(E,W,N)}function Te(E,I,N){var M=Ee(I,N,!1);if(!Ne(M))return M.get(E)}function ge(E,I,N,M){var W=Ee(N,M,!0);W.set(E,I)}function Me(E,I){var N=Se(E,I),M=j(E);if(M===null)return N;var W=Me(M,I);if(W.length<=0)return N;if(N.length<=0)return W;for(var tt=new y,oe=[],ce=0,X=N;ce<X.length;ce++){var _e=X[ce],ye=tt.has(_e);ye||(tt.add(_e),oe.push(_e))}for(var gr=0,Mb=W;gr<Mb.length;gr++){var _e=Mb[gr],ye=tt.has(_e);ye||(tt.add(_e),oe.push(_e))}return oe}function Se(E,I){var N=[],M=Ee(E,I,!1);if(Ne(M))return N;for(var W=M.keys(),tt=w(W),oe=0;;){var ce=x(tt);if(!ce)return N.length=oe,N;var X=P(ce);try{N[oe]=X}catch(_e){try{b(tt)}finally{throw _e}}oe++}}function Gn(E){if(E===null)return 1;switch(typeof E){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return E===null?1:6;default:return 6}}function Ne(E){return E===void 0}function _r(E){return E===null}function ie(E){return typeof E=="symbol"}function ke(E){return typeof E=="object"?E!==null:typeof E=="function"}function c_(E,I){switch(Gn(E)){case 0:return E;case 1:return E;case 2:return E;case 3:return E;case 4:return E;case 5:return E}var N=I===3?"string":I===5?"number":"default",M=S(E,i);if(M!==void 0){var W=M.call(E,N);if(ke(W))throw new TypeError;return W}return l_(E,N==="default"?"number":N)}function l_(E,I){if(I==="string"){var N=E.toString;if(yr(N)){var M=N.call(E);if(!ke(M))return M}var W=E.valueOf;if(yr(W)){var M=W.call(E);if(!ke(M))return M}}else{var W=E.valueOf;if(yr(W)){var M=W.call(E);if(!ke(M))return M}var tt=E.toString;if(yr(tt)){var M=tt.call(E);if(!ke(M))return M}}throw new TypeError}function ji(E){return!!E}function u_(E){return""+E}function at(E){var I=c_(E,3);return ie(I)?I:u_(I)}function Ic(E){return Array.isArray?Array.isArray(E):E instanceof Object?E instanceof Array:Object.prototype.toString.call(E)==="[object Array]"}function yr(E){return typeof E=="function"}function Ft(E){return typeof E=="function"}function d_(E){switch(Gn(E)){case 3:return!0;case 4:return!0;default:return!1}}function S(E,I){var N=E[I];if(N!=null){if(!yr(N))throw new TypeError;return N}}function w(E){var I=S(E,s);if(!yr(I))throw new TypeError;var N=I.call(E);if(!ke(N))throw new TypeError;return N}function P(E){return E.value}function x(E){var I=E.next();return I.done?!1:I}function b(E){var I=E.return;I&&I.call(E)}function j(E){var I=Object.getPrototypeOf(E);if(typeof E!="function"||E===d||I!==d)return I;var N=E.prototype,M=N&&Object.getPrototypeOf(N);if(M==null||M===Object.prototype)return I;var W=M.constructor;return typeof W!="function"||W===E?I:W}function k(){var E={},I=[],N=function(){function oe(ce,X,_e){this._index=0,this._keys=ce,this._values=X,this._selector=_e}return oe.prototype["@@iterator"]=function(){return this},oe.prototype[s]=function(){return this},oe.prototype.next=function(){var ce=this._index;if(ce>=0&&ce<this._keys.length){var X=this._selector(this._keys[ce],this._values[ce]);return ce+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:X,done:!1}}return{value:void 0,done:!0}},oe.prototype.throw=function(ce){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),ce},oe.prototype.return=function(ce){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:ce,done:!0}},oe}();return function(){function oe(){this._keys=[],this._values=[],this._cacheKey=E,this._cacheIndex=-2}return Object.defineProperty(oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),oe.prototype.has=function(ce){return this._find(ce,!1)>=0},oe.prototype.get=function(ce){var X=this._find(ce,!1);return X>=0?this._values[X]:void 0},oe.prototype.set=function(ce,X){var _e=this._find(ce,!0);return this._values[_e]=X,this},oe.prototype.delete=function(ce){var X=this._find(ce,!1);if(X>=0){for(var _e=this._keys.length,ye=X+1;ye<_e;ye++)this._keys[ye-1]=this._keys[ye],this._values[ye-1]=this._values[ye];return this._keys.length--,this._values.length--,ce===this._cacheKey&&(this._cacheKey=E,this._cacheIndex=-2),!0}return!1},oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=E,this._cacheIndex=-2},oe.prototype.keys=function(){return new N(this._keys,this._values,M)},oe.prototype.values=function(){return new N(this._keys,this._values,W)},oe.prototype.entries=function(){return new N(this._keys,this._values,tt)},oe.prototype["@@iterator"]=function(){return this.entries()},oe.prototype[s]=function(){return this.entries()},oe.prototype._find=function(ce,X){return this._cacheKey!==ce&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=ce)),this._cacheIndex<0&&X&&(this._cacheIndex=this._keys.length,this._keys.push(ce),this._values.push(void 0)),this._cacheIndex},oe}();function M(oe,ce){return oe}function W(oe,ce){return ce}function tt(oe,ce){return[oe,ce]}}function J(){return function(){function E(){this._map=new m}return Object.defineProperty(E.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),E.prototype.has=function(I){return this._map.has(I)},E.prototype.add=function(I){return this._map.set(I,I),this},E.prototype.delete=function(I){return this._map.delete(I)},E.prototype.clear=function(){this._map.clear()},E.prototype.keys=function(){return this._map.keys()},E.prototype.values=function(){return this._map.values()},E.prototype.entries=function(){return this._map.entries()},E.prototype["@@iterator"]=function(){return this.keys()},E.prototype[s]=function(){return this.keys()},E}()}function Ue(){var E=16,I=u.create(),N=M();return function(){function X(){this._key=M()}return X.prototype.has=function(_e){var ye=W(_e,!1);return ye!==void 0?u.has(ye,this._key):!1},X.prototype.get=function(_e){var ye=W(_e,!1);return ye!==void 0?u.get(ye,this._key):void 0},X.prototype.set=function(_e,ye){var gr=W(_e,!0);return gr[this._key]=ye,this},X.prototype.delete=function(_e){var ye=W(_e,!1);return ye!==void 0?delete ye[this._key]:!1},X.prototype.clear=function(){this._key=M()},X}();function M(){var X;do X="@@WeakMap@@"+ce();while(u.has(I,X));return I[X]=!0,X}function W(X,_e){if(!n.call(X,N)){if(!_e)return;Object.defineProperty(X,N,{value:u.create()})}return X[N]}function tt(X,_e){for(var ye=0;ye<_e;++ye)X[ye]=Math.random()*255|0;return X}function oe(X){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(X)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(X)):tt(new Uint8Array(X),X):tt(new Array(X),X)}function ce(){var X=oe(E);X[6]=X[6]&79|64,X[8]=X[8]&191|128;for(var _e="",ye=0;ye<E;++ye){var gr=X[ye];(ye===4||ye===6||ye===8)&&(_e+="-"),gr<16&&(_e+="0"),_e+=gr.toString(16).toLowerCase()}return _e}}function Ye(E){return E.__=void 0,delete E.__,E}})})(vE||(vE={}));var Gj=un(_t()),zi=un(l0()),a_=un(NM());var o_=un(BM());function iz(e){return typeof e>"u"||e===null}function Vde(e){return typeof e=="object"&&e!==null}function Kde(e){return Array.isArray(e)?e:iz(e)?[]:[e]}function Wde(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 Hde(e,t){var n="",r;for(r=0;r<t;r+=1)n+=e;return n}function Yde(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Jde=iz,Qde=Vde,Xde=Kde,Zde=Hde,efe=Yde,tfe=Wde,Je={isNothing:Jde,isObject:Qde,toArray:Xde,repeat:Zde,isNegativeZero:efe,extend:tfe};function sz(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+=`
|
|
34
|
+
see https://github.com/jprichardson/node-fs-extra/issues/269`),bl.checkPaths(e,t,"copy",(i,s)=>{if(i)return n(i);let{srcStat:o,destStat:a}=s;bl.checkParentPaths(e,o,t,"copy",c=>c?n(c):r.filter?dU(aU,a,e,t,r,n):aU(a,e,t,r,n))})}function aU(e,t,r,n,i){let s=El.dirname(r);USe(s,(o,a)=>{if(o)return i(o);if(a)return _T(e,t,r,n,i);FSe(s,c=>c?i(c):_T(e,t,r,n,i))})}function dU(e,t,r,n,i,s){Promise.resolve(i.filter(r,n)).then(o=>o?e(t,r,n,i,s):s(),o=>s(o))}function _T(e,t,r,n,i){return n.filter?dU(cU,e,t,r,n,i):cU(e,t,r,n,i)}function cU(e,t,r,n,i){(n.dereference?Mt.stat:Mt.lstat)(t,(o,a)=>{if(o)return i(o);if(a.isDirectory())return YSe(a,e,t,r,n,i);if(a.isFile()||a.isCharacterDevice()||a.isBlockDevice())return $Se(a,e,t,r,n,i);if(a.isSymbolicLink())return ZSe(e,t,r,n,i)})}function $Se(e,t,r,n,i,s){return t?VSe(e,r,n,i,s):uU(e,r,n,i,s)}function VSe(e,t,r,n,i){if(n.overwrite)Mt.unlink(r,s=>s?i(s):uU(e,t,r,n,i));else return n.errorOnExist?i(new Error(`'${r}' already exists`)):i()}function uU(e,t,r,n,i){Mt.copyFile(t,r,s=>s?i(s):n.preserveTimestamps?KSe(e.mode,t,r,i):Ng(r,e.mode,i))}function KSe(e,t,r,n){return HSe(e)?WSe(r,e,i=>i?n(i):lU(e,t,r,n)):lU(e,t,r,n)}function HSe(e){return(e&128)===0}function WSe(e,t,r){return Ng(e,t|128,r)}function lU(e,t,r,n){JSe(t,r,i=>i?n(i):Ng(r,e,n))}function Ng(e,t,r){return Mt.chmod(e,t,r)}function JSe(e,t,r){Mt.stat(e,(n,i)=>n?r(n):BSe(t,i.atime,i.mtime,r))}function YSe(e,t,r,n,i,s){return t?t&&!t.isDirectory()?s(new Error(`Cannot overwrite non-directory '${n}' with directory '${r}'.`)):fU(r,n,i,s):QSe(e.mode,r,n,i,s)}function QSe(e,t,r,n,i){Mt.mkdir(r,s=>{if(s)return i(s);fU(t,r,n,o=>o?i(o):Ng(r,e,i))})}function fU(e,t,r,n){Mt.readdir(e,(i,s)=>i?n(i):mU(s,e,t,r,n))}function mU(e,t,r,n,i){let s=e.pop();return s?XSe(e,s,t,r,n,i):i()}function XSe(e,t,r,n,i,s){let o=El.join(r,t),a=El.join(n,t);bl.checkPaths(o,a,"copy",(c,d)=>{if(c)return s(c);let{destStat:f}=d;_T(f,o,a,i,_=>_?s(_):mU(e,r,n,i,s))})}function ZSe(e,t,r,n,i){Mt.readlink(t,(s,o)=>{if(s)return i(s);if(n.dereference&&(o=El.resolve(process.cwd(),o)),e)Mt.readlink(r,(a,c)=>a?a.code==="EINVAL"||a.code==="UNKNOWN"?Mt.symlink(o,r,i):i(a):(n.dereference&&(c=El.resolve(process.cwd(),c)),bl.isSrcSubdir(o,c)?i(new Error(`Cannot copy '${o}' to a subdirectory of itself, '${c}'.`)):e.isDirectory()&&bl.isSrcSubdir(c,o)?i(new Error(`Cannot overwrite '${c}' with '${o}'.`)):ewe(o,r,i)));else return Mt.symlink(o,r,i)})}function ewe(e,t,r){Mt.unlink(t,n=>n?r(n):Mt.symlink(e,t,r))}pU.exports=GSe});var hT=u((cMe,hU)=>{"use strict";var twe=Lt().fromCallback;hU.exports={copy:twe(_U())}});var TU=u((lMe,AU)=>{"use strict";var yU=yt(),wU=require("path"),Ne=require("assert"),Al=process.platform==="win32";function EU(e){["unlink","chmod","stat","lstat","rmdir","readdir"].forEach(r=>{e[r]=e[r]||yU[r],r=r+"Sync",e[r]=e[r]||yU[r]}),e.maxBusyTries=e.maxBusyTries||3}function yT(e,t,r){let n=0;typeof t=="function"&&(r=t,t={}),Ne(e,"rimraf: missing path"),Ne.strictEqual(typeof e,"string","rimraf: path should be a string"),Ne.strictEqual(typeof r,"function","rimraf: callback function required"),Ne(t,"rimraf: invalid options argument provided"),Ne.strictEqual(typeof t,"object","rimraf: options should be object"),EU(t),gU(e,t,function i(s){if(s){if((s.code==="EBUSY"||s.code==="ENOTEMPTY"||s.code==="EPERM")&&n<t.maxBusyTries){n++;let o=n*100;return setTimeout(()=>gU(e,t,i),o)}s.code==="ENOENT"&&(s=null)}r(s)})}function gU(e,t,r){Ne(e),Ne(t),Ne(typeof r=="function"),t.lstat(e,(n,i)=>{if(n&&n.code==="ENOENT")return r(null);if(n&&n.code==="EPERM"&&Al)return vU(e,t,n,r);if(i&&i.isDirectory())return Pg(e,t,n,r);t.unlink(e,s=>{if(s){if(s.code==="ENOENT")return r(null);if(s.code==="EPERM")return Al?vU(e,t,s,r):Pg(e,t,s,r);if(s.code==="EISDIR")return Pg(e,t,s,r)}return r(s)})})}function vU(e,t,r,n){Ne(e),Ne(t),Ne(typeof n=="function"),t.chmod(e,438,i=>{i?n(i.code==="ENOENT"?null:r):t.stat(e,(s,o)=>{s?n(s.code==="ENOENT"?null:r):o.isDirectory()?Pg(e,t,r,n):t.unlink(e,n)})})}function SU(e,t,r){let n;Ne(e),Ne(t);try{t.chmodSync(e,438)}catch(i){if(i.code==="ENOENT")return;throw r}try{n=t.statSync(e)}catch(i){if(i.code==="ENOENT")return;throw r}n.isDirectory()?Dg(e,t,r):t.unlinkSync(e)}function Pg(e,t,r,n){Ne(e),Ne(t),Ne(typeof n=="function"),t.rmdir(e,i=>{i&&(i.code==="ENOTEMPTY"||i.code==="EEXIST"||i.code==="EPERM")?rwe(e,t,n):i&&i.code==="ENOTDIR"?n(r):n(i)})}function rwe(e,t,r){Ne(e),Ne(t),Ne(typeof r=="function"),t.readdir(e,(n,i)=>{if(n)return r(n);let s=i.length,o;if(s===0)return t.rmdir(e,r);i.forEach(a=>{yT(wU.join(e,a),t,c=>{if(!o){if(c)return r(o=c);--s===0&&t.rmdir(e,r)}})})})}function bU(e,t){let r;t=t||{},EU(t),Ne(e,"rimraf: missing path"),Ne.strictEqual(typeof e,"string","rimraf: path should be a string"),Ne(t,"rimraf: missing options"),Ne.strictEqual(typeof t,"object","rimraf: options should be object");try{r=t.lstatSync(e)}catch(n){if(n.code==="ENOENT")return;n.code==="EPERM"&&Al&&SU(e,t,n)}try{r&&r.isDirectory()?Dg(e,t,null):t.unlinkSync(e)}catch(n){if(n.code==="ENOENT")return;if(n.code==="EPERM")return Al?SU(e,t,n):Dg(e,t,n);if(n.code!=="EISDIR")throw n;Dg(e,t,n)}}function Dg(e,t,r){Ne(e),Ne(t);try{t.rmdirSync(e)}catch(n){if(n.code==="ENOTDIR")throw r;if(n.code==="ENOTEMPTY"||n.code==="EEXIST"||n.code==="EPERM")nwe(e,t);else if(n.code!=="ENOENT")throw n}}function nwe(e,t){if(Ne(e),Ne(t),t.readdirSync(e).forEach(r=>bU(wU.join(e,r),t)),Al){let r=Date.now();do try{return t.rmdirSync(e,t)}catch{}while(Date.now()-r<500)}else return t.rmdirSync(e,t)}AU.exports=yT;yT.sync=bU});var Tl=u((dMe,xU)=>{"use strict";var iwe=Lt().fromCallback,CU=TU();xU.exports={remove:iwe(CU),removeSync:CU.sync}});var qU=u((uMe,LU)=>{"use strict";var swe=Lt().fromCallback,NU=yt(),PU=require("path"),DU=pr(),OU=Tl(),IU=swe(function(t,r){r=r||function(){},NU.readdir(t,(n,i)=>{if(n)return DU.mkdirs(t,r);i=i.map(o=>PU.join(t,o)),s();function s(){let o=i.pop();if(!o)return r();OU.remove(o,a=>{if(a)return r(a);s()})}})});function RU(e){let t;try{t=NU.readdirSync(e)}catch{return DU.mkdirsSync(e)}t.forEach(r=>{r=PU.join(e,r),OU.removeSync(r)})}LU.exports={emptyDirSync:RU,emptydirSync:RU,emptyDir:IU,emptydir:IU}});var kU=u((fMe,jU)=>{"use strict";var owe=Lt().fromCallback,MU=require("path"),hi=yt(),zU=pr();function awe(e,t){function r(){hi.writeFile(e,"",n=>{if(n)return t(n);t()})}hi.stat(e,(n,i)=>{if(!n&&i.isFile())return t();let s=MU.dirname(e);hi.stat(s,(o,a)=>{if(o)return o.code==="ENOENT"?zU.mkdirs(s,c=>{if(c)return t(c);r()}):t(o);a.isDirectory()?r():hi.readdir(s,c=>{if(c)return t(c)})})})}function cwe(e){let t;try{t=hi.statSync(e)}catch{}if(t&&t.isFile())return;let r=MU.dirname(e);try{hi.statSync(r).isDirectory()||hi.readdirSync(r)}catch(n){if(n&&n.code==="ENOENT")zU.mkdirsSync(r);else throw n}hi.writeFileSync(e,"")}jU.exports={createFile:owe(awe),createFileSync:cwe}});var $U=u((mMe,GU)=>{"use strict";var lwe=Lt().fromCallback,UU=require("path"),os=yt(),BU=pr(),FU=_i().pathExists;function dwe(e,t,r){function n(i,s){os.link(i,s,o=>{if(o)return r(o);r(null)})}FU(t,(i,s)=>{if(i)return r(i);if(s)return r(null);os.lstat(e,o=>{if(o)return o.message=o.message.replace("lstat","ensureLink"),r(o);let a=UU.dirname(t);FU(a,(c,d)=>{if(c)return r(c);if(d)return n(e,t);BU.mkdirs(a,f=>{if(f)return r(f);n(e,t)})})})})}function uwe(e,t){if(os.existsSync(t))return;try{os.lstatSync(e)}catch(s){throw s.message=s.message.replace("lstat","ensureLink"),s}let n=UU.dirname(t);return os.existsSync(n)||BU.mkdirsSync(n),os.linkSync(e,t)}GU.exports={createLink:lwe(dwe),createLinkSync:uwe}});var KU=u((pMe,VU)=>{"use strict";var yi=require("path"),Cl=yt(),fwe=_i().pathExists;function mwe(e,t,r){if(yi.isAbsolute(e))return Cl.lstat(e,n=>n?(n.message=n.message.replace("lstat","ensureSymlink"),r(n)):r(null,{toCwd:e,toDst:e}));{let n=yi.dirname(t),i=yi.join(n,e);return fwe(i,(s,o)=>s?r(s):o?r(null,{toCwd:i,toDst:e}):Cl.lstat(e,a=>a?(a.message=a.message.replace("lstat","ensureSymlink"),r(a)):r(null,{toCwd:e,toDst:yi.relative(n,e)})))}}function pwe(e,t){let r;if(yi.isAbsolute(e)){if(r=Cl.existsSync(e),!r)throw new Error("absolute srcpath does not exist");return{toCwd:e,toDst:e}}else{let n=yi.dirname(t),i=yi.join(n,e);if(r=Cl.existsSync(i),r)return{toCwd:i,toDst:e};if(r=Cl.existsSync(e),!r)throw new Error("relative srcpath does not exist");return{toCwd:e,toDst:yi.relative(n,e)}}}VU.exports={symlinkPaths:mwe,symlinkPathsSync:pwe}});var JU=u((_Me,WU)=>{"use strict";var HU=yt();function _we(e,t,r){if(r=typeof t=="function"?t:r,t=typeof t=="function"?!1:t,t)return r(null,t);HU.lstat(e,(n,i)=>{if(n)return r(null,"file");t=i&&i.isDirectory()?"dir":"file",r(null,t)})}function hwe(e,t){let r;if(t)return t;try{r=HU.lstatSync(e)}catch{return"file"}return r&&r.isDirectory()?"dir":"file"}WU.exports={symlinkType:_we,symlinkTypeSync:hwe}});var rB=u((hMe,tB)=>{"use strict";var ywe=Lt().fromCallback,QU=require("path"),Eo=yt(),XU=pr(),gwe=XU.mkdirs,vwe=XU.mkdirsSync,ZU=KU(),Swe=ZU.symlinkPaths,wwe=ZU.symlinkPathsSync,eB=JU(),Ewe=eB.symlinkType,bwe=eB.symlinkTypeSync,YU=_i().pathExists;function Awe(e,t,r,n){n=typeof r=="function"?r:n,r=typeof r=="function"?!1:r,YU(t,(i,s)=>{if(i)return n(i);if(s)return n(null);Swe(e,t,(o,a)=>{if(o)return n(o);e=a.toDst,Ewe(a.toCwd,r,(c,d)=>{if(c)return n(c);let f=QU.dirname(t);YU(f,(_,m)=>{if(_)return n(_);if(m)return Eo.symlink(e,t,d,n);gwe(f,h=>{if(h)return n(h);Eo.symlink(e,t,d,n)})})})})})}function Twe(e,t,r){if(Eo.existsSync(t))return;let i=wwe(e,t);e=i.toDst,r=bwe(i.toCwd,r);let s=QU.dirname(t);return Eo.existsSync(s)||vwe(s),Eo.symlinkSync(e,t,r)}tB.exports={createSymlink:ywe(Awe),createSymlinkSync:Twe}});var iB=u((yMe,nB)=>{"use strict";var Og=kU(),Lg=$U(),qg=rB();nB.exports={createFile:Og.createFile,createFileSync:Og.createFileSync,ensureFile:Og.createFile,ensureFileSync:Og.createFileSync,createLink:Lg.createLink,createLinkSync:Lg.createLinkSync,ensureLink:Lg.createLink,ensureLinkSync:Lg.createLinkSync,createSymlink:qg.createSymlink,createSymlinkSync:qg.createSymlinkSync,ensureSymlink:qg.createSymlink,ensureSymlinkSync:qg.createSymlinkSync}});var Mg=u((gMe,sB)=>{function Cwe(e,{EOL:t=`
|
|
35
|
+
`,finalEOL:r=!0,replacer:n=null,spaces:i}={}){let s=r?t:"";return JSON.stringify(e,n,i).replace(/\n/g,t)+s}function xwe(e){return Buffer.isBuffer(e)&&(e=e.toString("utf8")),e.replace(/^\uFEFF/,"")}sB.exports={stringify:Cwe,stripBom:xwe}});var lB=u((vMe,cB)=>{var bo;try{bo=yt()}catch{bo=require("fs")}var zg=Lt(),{stringify:oB,stripBom:aB}=Mg();async function Iwe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||bo,n="throws"in t?t.throws:!0,i=await zg.fromCallback(r.readFile)(e,t);i=aB(i);let s;try{s=JSON.parse(i,t?t.reviver:null)}catch(o){if(n)throw o.message=`${e}: ${o.message}`,o;return null}return s}var Rwe=zg.fromPromise(Iwe);function Nwe(e,t={}){typeof t=="string"&&(t={encoding:t});let r=t.fs||bo,n="throws"in t?t.throws:!0;try{let i=r.readFileSync(e,t);return i=aB(i),JSON.parse(i,t.reviver)}catch(i){if(n)throw i.message=`${e}: ${i.message}`,i;return null}}async function Pwe(e,t,r={}){let n=r.fs||bo,i=oB(t,r);await zg.fromCallback(n.writeFile)(e,i,r)}var Dwe=zg.fromPromise(Pwe);function Owe(e,t,r={}){let n=r.fs||bo,i=oB(t,r);return n.writeFileSync(e,i,r)}var Lwe={readFile:Rwe,readFileSync:Nwe,writeFile:Dwe,writeFileSync:Owe};cB.exports=Lwe});var uB=u((SMe,dB)=>{"use strict";var jg=lB();dB.exports={readJson:jg.readFile,readJsonSync:jg.readFileSync,writeJson:jg.writeFile,writeJsonSync:jg.writeFileSync}});var kg=u((wMe,pB)=>{"use strict";var qwe=Lt().fromCallback,xl=yt(),fB=require("path"),mB=pr(),Mwe=_i().pathExists;function zwe(e,t,r,n){typeof r=="function"&&(n=r,r="utf8");let i=fB.dirname(e);Mwe(i,(s,o)=>{if(s)return n(s);if(o)return xl.writeFile(e,t,r,n);mB.mkdirs(i,a=>{if(a)return n(a);xl.writeFile(e,t,r,n)})})}function jwe(e,...t){let r=fB.dirname(e);if(xl.existsSync(r))return xl.writeFileSync(e,...t);mB.mkdirsSync(r),xl.writeFileSync(e,...t)}pB.exports={outputFile:qwe(zwe),outputFileSync:jwe}});var hB=u((EMe,_B)=>{"use strict";var{stringify:kwe}=Mg(),{outputFile:Fwe}=kg();async function Uwe(e,t,r={}){let n=kwe(t,r);await Fwe(e,n,r)}_B.exports=Uwe});var gB=u((bMe,yB)=>{"use strict";var{stringify:Bwe}=Mg(),{outputFileSync:Gwe}=kg();function $we(e,t,r){let n=Bwe(t,r);Gwe(e,n,r)}yB.exports=$we});var SB=u((AMe,vB)=>{"use strict";var Vwe=Lt().fromPromise,At=uB();At.outputJson=Vwe(hB());At.outputJsonSync=gB();At.outputJSON=At.outputJson;At.outputJSONSync=At.outputJsonSync;At.writeJSON=At.writeJson;At.writeJSONSync=At.writeJsonSync;At.readJSON=At.readJson;At.readJSONSync=At.readJsonSync;vB.exports=At});var CB=u((TMe,TB)=>{"use strict";var bB=yt(),Kwe=require("path"),Hwe=pT().copySync,AB=Tl().removeSync,Wwe=pr().mkdirpSync,wB=vl();function Jwe(e,t,r){r=r||{};let n=r.overwrite||r.clobber||!1,{srcStat:i}=wB.checkPathsSync(e,t,"move");return wB.checkParentPathsSync(e,i,t,"move"),Wwe(Kwe.dirname(t)),Ywe(e,t,n)}function Ywe(e,t,r){if(r)return AB(t),EB(e,t,r);if(bB.existsSync(t))throw new Error("dest already exists.");return EB(e,t,r)}function EB(e,t,r){try{bB.renameSync(e,t)}catch(n){if(n.code!=="EXDEV")throw n;return Qwe(e,t,r)}}function Qwe(e,t,r){return Hwe(e,t,{overwrite:r,errorOnExist:!0}),AB(e)}TB.exports=Jwe});var IB=u((CMe,xB)=>{"use strict";xB.exports={moveSync:CB()}});var OB=u((xMe,DB)=>{"use strict";var Xwe=yt(),Zwe=require("path"),e0e=hT().copy,PB=Tl().remove,t0e=pr().mkdirp,r0e=_i().pathExists,RB=vl();function n0e(e,t,r,n){typeof r=="function"&&(n=r,r={});let i=r.overwrite||r.clobber||!1;RB.checkPaths(e,t,"move",(s,o)=>{if(s)return n(s);let{srcStat:a}=o;RB.checkParentPaths(e,a,t,"move",c=>{if(c)return n(c);t0e(Zwe.dirname(t),d=>d?n(d):i0e(e,t,i,n))})})}function i0e(e,t,r,n){if(r)return PB(t,i=>i?n(i):NB(e,t,r,n));r0e(t,(i,s)=>i?n(i):s?n(new Error("dest already exists.")):NB(e,t,r,n))}function NB(e,t,r,n){Xwe.rename(e,t,i=>i?i.code!=="EXDEV"?n(i):s0e(e,t,r,n):n())}function s0e(e,t,r,n){e0e(e,t,{overwrite:r,errorOnExist:!0},s=>s?n(s):PB(e,n))}DB.exports=n0e});var qB=u((IMe,LB)=>{"use strict";var o0e=Lt().fromCallback;LB.exports={move:o0e(OB())}});var vT=u((RMe,gT)=>{"use strict";gT.exports={...gl(),...pT(),...hT(),...qU(),...iB(),...SB(),...pr(),...IB(),...qB(),...kg(),..._i(),...Tl()};var MB=require("fs");Object.getOwnPropertyDescriptor(MB,"promises")&&Object.defineProperty(gT.exports,"promises",{get(){return MB.promises}})});var BB=u((NMe,UB)=>{UB.exports=Il;Il.default=Il;Il.stable=kB;Il.stableStringify=kB;var Fg="[...]",zB="[Circular]",cs=[],as=[];function jB(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function Il(e,t,r,n){typeof n>"u"&&(n=jB()),ST(e,"",0,[],void 0,0,n);var i;try{as.length===0?i=JSON.stringify(e,t,r):i=JSON.stringify(e,FB(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;cs.length!==0;){var s=cs.pop();s.length===4?Object.defineProperty(s[0],s[1],s[3]):s[0][s[1]]=s[2]}}return i}function Ao(e,t,r,n){var i=Object.getOwnPropertyDescriptor(n,r);i.get!==void 0?i.configurable?(Object.defineProperty(n,r,{value:e}),cs.push([n,r,t,i])):as.push([t,r,e]):(n[r]=e,cs.push([n,r,t]))}function ST(e,t,r,n,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){Ao(zB,e,t,i);return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){Ao(Fg,e,t,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Ao(Fg,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)ST(e[a],a,a,n,e,s,o);else{var c=Object.keys(e);for(a=0;a<c.length;a++){var d=c[a];ST(e[d],d,a,n,e,s,o)}}n.pop()}}function a0e(e,t){return e<t?-1:e>t?1:0}function kB(e,t,r,n){typeof n>"u"&&(n=jB());var i=wT(e,"",0,[],void 0,0,n)||e,s;try{as.length===0?s=JSON.stringify(i,t,r):s=JSON.stringify(i,FB(t),r)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;cs.length!==0;){var o=cs.pop();o.length===4?Object.defineProperty(o[0],o[1],o[3]):o[0][o[1]]=o[2]}}return s}function wT(e,t,r,n,i,s,o){s+=1;var a;if(typeof e=="object"&&e!==null){for(a=0;a<n.length;a++)if(n[a]===e){Ao(zB,e,t,i);return}try{if(typeof e.toJSON=="function")return}catch{return}if(typeof o.depthLimit<"u"&&s>o.depthLimit){Ao(Fg,e,t,i);return}if(typeof o.edgesLimit<"u"&&r+1>o.edgesLimit){Ao(Fg,e,t,i);return}if(n.push(e),Array.isArray(e))for(a=0;a<e.length;a++)wT(e[a],a,a,n,e,s,o);else{var c={},d=Object.keys(e).sort(a0e);for(a=0;a<d.length;a++){var f=d[a];wT(e[f],f,a,n,e,s,o),c[f]=e[f]}if(typeof i<"u")cs.push([i,t,e]),i[t]=c;else return c}n.pop()}}function FB(e){return e=typeof e<"u"?e:function(t,r){return r},function(t,r){if(as.length>0)for(var n=0;n<as.length;n++){var i=as[n];if(i[1]===t&&i[0]===r){r=i[2],as.splice(n,1);break}}return e.call(this,t,r)}}});var $B=u((PMe,GB)=>{var c0e=BB(),Re={LOG:Symbol("log"),META:Symbol("meta"),ERROR:Symbol("error"),OPTS:Symbol("opts")},gi=class{constructor(t,r){this[Re.LOG]=t,this[Re.META]={},this[Re.ERROR]=null,this[Re.OPTS]=r;let{meta:n,tags:i}=this[Re.LOG];if(n&&(typeof n!="object"||Array.isArray(n))&&(this[Re.LOG].meta={meta:n}),n||(this[Re.LOG].meta={}),i||(this[Re.LOG].tags=[]),gi.isError(t.msg)){let s=t.msg;this[Re.ERROR]=s,this[Re.META].stack=s.stack,this[Re.LOG].msg=s.message}}get level(){return this[Re.LOG].level}get msg(){return this[Re.LOG].msg}set msg(t){this[Re.LOG].msg=t}get message(){return this.msg}set message(t){this.msg=t}get meta(){let t=this[Re.OPTS],r={...this[Re.META],...this[Re.OPTS].meta,...this[Re.LOG].meta};if(t.dynamicMeta&&typeof t.dynamicMeta=="function"){let n=t.dynamicMeta.call(this,this,t);typeof n=="object"&&(r=Object.assign(r,n))}for(let[n,i]of Object.entries(r))typeof i=="object"&&gi.isError(i)&&(r[n]=gi.stubError(i));return r}set meta(t){this[Re.LOG].meta={...this[Re.LOG].meta,...t}}get tags(){let t=this[Re.OPTS];return[].concat(t.tags,this[Re.LOG].tags).map(n=>{if(typeof n=="function")return n.call(this,{level:this.level,meta:this.meta,options:t});let i=n.match(/(<<(.*)>>)/);return i&&i[2]==="level"?n.replace(i[1],this.level):n}).filter(n=>n!=null&&n!=="")}set tags(t){this[Re.LOG].tags=this[Re.LOG].tags.concat(t)}get value(){let t=this[Re.OPTS];return{[t.levelKey]:t.levelKey?this.level:void 0,[t.messageKey]:this.msg,...this.meta,[t.tagsKey]:t.tagsKey?this.tags:void 0}}get log(){return this.value}get throw(){let t=this[Re.ERROR]||new Error(this.msg);throw t.log=this,t}toJSON(t){return c0e(this.value,this[Re.OPTS].replacer||null,t?4:0)}static isError(t){return Boolean(t)&&typeof t=="object"&&(t instanceof Error||Object.prototype.hasOwnProperty.call(t,"message")&&Object.prototype.hasOwnProperty.call(t,"stack"))}static stubError(t){return typeof t.toJSON=="function"||(t.toJSON=function(){return["name","message","stack"].concat(Object.keys(t)).reduce((n,i)=>{if(i in t){let s=t[i];if(typeof s=="function")return n;n[i]=s}return n},{})}),t}};gi.symbols=Re;GB.exports=gi});var KB=u((DMe,VB)=>{var l0e=require("events"),d0e=$B(),To={LEVELS:Symbol("levels")},Co=class extends l0e{constructor(t={},r={}){super(),this.LambdaLog=Co,this.LogMessage=d0e,this.options={meta:{},tags:[],dynamicMeta:null,debug:!1,dev:!1,silent:["true","yes","y","1"].includes(process.env.LAMBDALOG_SILENT),replacer:null,logHandler:console,levelKey:"_logLevel",messageKey:"msg",tagsKey:"_tags",...t},this[To.LEVELS]={info:"info",warn:"warn",error:"error",debug(){return this.options.debug?"debug":!1},...r},this.console=this.options.logHandler;let n=this[To.LEVELS];for(let i in n)Object.prototype.hasOwnProperty.call(n,i)&&this.addLevel(i,n[i])}addLevel(t,r){return this[To.LEVELS][t]=r,this[t]=(n,i={},s=[])=>this.log(t,n,i,s),this}log(t,r,n={},i=[]){if(!Object.prototype.hasOwnProperty.call(this[To.LEVELS],t))throw new Error(`"${t}" is not a valid log level`);let s=new this.LogMessage({level:t,msg:r,meta:n,tags:i},this.options),o=this[To.LEVELS][t];return typeof o=="function"&&(o=o.call(this,s)),o?(this.options.silent||this.console[o](s.toJSON(this.options.dev)),this.emit("log",s),s):!1}assert(t,r,n={},i=[]){return t?!1:this.log("error",r,n,i)}result(t,r={},n=[]){if(!t||typeof t.then!="function")throw new Error("A promise must be provided as the first argument");return new Promise(s=>{t.then(o=>s(this.log("info",o,r,n))).catch(o=>s(this.log("error",o,r,n)))})}};Co.symbols=To;VB.exports=Co});var ET=u((OMe,HB)=>{var u0e=KB(),f0e=new u0e;HB.exports=f0e});var WB=u(bT=>{"use strict";Object.defineProperty(bT,"__esModule",{value:!0});var m0e=ET(),Ug=class{};bT.default=Ug;Ug.Instance=new m0e.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0})});var XB=u(an=>{"use strict";Object.defineProperty(an,"__esModule",{value:!0});an.GetAppInfo=an.GetRoute=an.normalizePathPrefix=an.loadAppFrame=void 0;var YB=q();Fv();var AT=YB.__importDefault(require("path")),JB=vT(),TT=eT(),p0e=YB.__importDefault(WB()),Dn=p0e.default.Instance;function _0e({basePath:e="."}){let t=[e,AT.default.join(e,".."),AT.default.join(e,"templates"),e,"/opt","/opt/templates"];for(let r of t){let n=AT.default.join(r,"appFrame.html");try{if((0,JB.pathExistsSync)(n))return Dn.info("found html file",{fullPath:n}),(0,JB.readFileSync)(n,"utf-8")}catch{}}throw Dn.error("appFrame.html not found"),new Error("appFrame.html not found")}an.loadAppFrame=_0e;function h0e(e){let t=e;return t!==""&&!t.startsWith("/")&&(t="/"+e),t.endsWith("/")&&t.substring(0,t.length-1),t}an.normalizePathPrefix=h0e;async function y0e(e){let{dbManager:t,normalizedPathPrefix:r="",queryStringParameters:n}=e;try{if(r&&!e.rawPath.startsWith(r))return{statusCode:404,errorMessage:"Request not routable"};let i=r&&e.rawPath.startsWith(r)?e.rawPath.slice(r.length-1):e.rawPath,s=i.split("/"),{versionsAndRules:o,appName:a}=await QB({dbManager:t,appName:s.length>=2?s[1]:"[root]"}),c=a==="[root]",d=c?"":`${a}/`,_=(c?i:i.slice(a.length+1)).split("/"),m="";if(_.length>=2&&_[1]!==""&&(m=_.slice(1).join("/")),_.length===2||_.length===3&&!_[2]){let A=await v0e({dbManager:t,appName:a,normalizedPathPrefix:r,semVer:_[1],appNameOrRootTrailingSlash:d});if(A)return A}let h=_.length>=4?_[3]:"",g=_.length>=2?_[1]:"",y=g0e({dbManager:t,normalizedPathPrefix:r,event:e,appName:a,possibleSemVerPathNextData:h,possibleSemVerPathAfterApp:g,possibleSemVerQuery:(n==null?void 0:n.get("appver"))||"",additionalParts:m,versionsAndRules:o,appNameOrRootTrailingSlash:d});return y||{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, no matching route`}}catch(i){return Dn.error("unexpected exception - returning 599",{statusCode:599,error:i}),{statusCode:599,errorMessage:`Router - Could not route: ${e.rawPath}, ${i.message}`}}}an.GetRoute=y0e;async function QB(e){let{dbManager:t,appName:r}=e,n;return n=await TT.Application.GetVersionsAndRules({dbManager:t,key:{AppName:r}}),n.Versions.length>0?{appName:r,versionsAndRules:n}:(n=await TT.Application.GetVersionsAndRules({dbManager:t,key:{AppName:"[root]"}}),{appName:"[root]",versionsAndRules:n})}an.GetAppInfo=QB;function g0e(e){var t,r;let{event:n,normalizedPathPrefix:i="",appName:s,possibleSemVerPathNextData:o,possibleSemVerPathAfterApp:a,possibleSemVerQuery:c,additionalParts:d,versionsAndRules:f,appNameOrRootTrailingSlash:_}=e,m,h=a?f.Versions.find(R=>R.SemVer===a):void 0,g=o?f.Versions.find(R=>R.SemVer===o):void 0,y=c?f.Versions.find(R=>R.SemVer===c):void 0,A=h||g;if(A)return{appName:s,semVer:A.SemVer,...A!=null&&A.URL?{url:A==null?void 0:A.URL}:{},...A!=null&&A.Type?{type:(A==null?void 0:A.Type)==="lambda"?"apigwy":A==null?void 0:A.Type}:{}};if(y)m=y;else{if(c)return Dn.error(`could not find app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${n.rawPath}, ${s}`};{let R=(r=(t=f.Rules)===null||t===void 0?void 0:t.RuleSet.default)===null||r===void 0?void 0:r.SemVer;if(R==null)return Dn.error(`could not find app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find app: ${n.rawPath}, ${s}`};m=f.Versions.find($=>$.SemVer===R)}}if(!m)return Dn.error(`could not find version info for app ${s}, for path ${n.rawPath} - returning 404`,{statusCode:404}),{statusCode:404,errorMessage:`Router - Could not find version info for app: ${n.rawPath}, ${s}`};if((m==null?void 0:m.StartupType)==="iframe"||!(m!=null&&m.StartupType)){let R;return(m==null?void 0:m.Type)!=="static"&&((m==null?void 0:m.DefaultFile)===void 0||(m==null?void 0:m.DefaultFile)===""||d!=="")?(R=`${i}/${_}${m.SemVer}`,d!==""&&(R+=`/${d}`)):R=`${i}/${_}${m.SemVer}/${m.DefaultFile}`,{statusCode:200,appName:s,semVer:m.SemVer,startupType:"iframe",...m!=null&&m.URL?{url:m==null?void 0:m.URL}:{},...m!=null&&m.Type?{type:(m==null?void 0:m.Type)==="lambda"?"apigwy":m==null?void 0:m.Type}:{},iFrameAppVersionPath:R}}else{if((m==null?void 0:m.Type)==="lambda")throw new Error("Invalid type for direct app version");if(["apigwy","static"].includes((m==null?void 0:m.Type)||""))throw new Error("Invalid type for direct app version");return{appName:s,semVer:m.SemVer,startupType:"direct",...m!=null&&m.URL?{url:m==null?void 0:m.URL}:{},...m!=null&&m.Type?{type:m==null?void 0:m.Type}:{}}}}async function v0e(e){let{dbManager:t,normalizedPathPrefix:r="",appName:n,appNameOrRootTrailingSlash:i,semVer:s}=e,o;try{o=await TT.Version.LoadVersion({dbManager:t,key:{AppName:n,SemVer:s}})}catch(a){Dn.info(`LoadVersion threw for '${r}/${i}${s}' - falling through to app routing'`,{appName:n,semVer:s,error:a});return}if(o===void 0){Dn.info(`LoadVersion returned undefined for '${r}/${i}${s}', assuming not found - falling through to app routing'`,{appName:n,semVer:s});return}if(!!o.DefaultFile)return Dn.info(`found '${r}/${i}${s}' - returning 302 to ${r}/${i}${s}/${o.DefaultFile}`,{statusCode:302,routedPath:`${r}/${i}${s}/${o.DefaultFile}`}),{statusCode:302,redirectLocation:`${r}/${i}${s}/${o.DefaultFile}`}}});var xo=u((Rl,CT)=>{"use strict";Object.defineProperty(Rl,"__esModule",{value:!0});Rl.default=S0e;function Bg(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Bg=function(r){return typeof r}:Bg=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Bg(e)}function S0e(e){var t=typeof e=="string"||e instanceof String;if(!t){var r=Bg(e);throw e===null?r="null":r==="object"&&(r=e.constructor.name),new TypeError("Expected a string but received a ".concat(r))}}CT.exports=Rl.default;CT.exports.default=Rl.default});var Gg=u((Nl,xT)=>{"use strict";Object.defineProperty(Nl,"__esModule",{value:!0});Nl.default=w0e;function w0e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in t)typeof e[r]>"u"&&(e[r]=t[r]);return e}xT.exports=Nl.default;xT.exports.default=Nl.default});var ZB=u((Pl,IT)=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.default=A0e;var E0e=b0e(xo());function b0e(e){return e&&e.__esModule?e:{default:e}}function $g(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?$g=function(r){return typeof r}:$g=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},$g(e)}function A0e(e,t){(0,E0e.default)(e);var r,n;$g(t)==="object"?(r=t.min||0,n=t.max):(r=arguments[1],n=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=r&&(typeof n>"u"||i<=n)}IT.exports=Pl.default;IT.exports.default=Pl.default});var NT=u((Dl,RT)=>{"use strict";Object.defineProperty(Dl,"__esModule",{value:!0});Dl.default=I0e;var T0e=eG(xo()),C0e=eG(Gg());function eG(e){return e&&e.__esModule?e:{default:e}}var x0e={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1};function I0e(e,t){(0,T0e.default)(e),t=(0,C0e.default)(t,x0e),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 r=e.split("."),n=r[r.length-1];return t.require_tld&&(r.length<2||!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(n)||/\s/.test(n))||!t.allow_numeric_tld&&/^\d+$/.test(n)?!1:r.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))})}RT.exports=Dl.default;RT.exports.default=Dl.default});var Vg=u((Ol,DT)=>{"use strict";Object.defineProperty(Ol,"__esModule",{value:!0});Ol.default=PT;var R0e=N0e(xo());function N0e(e){return e&&e.__esModule?e:{default:e}}var tG="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",vi="(".concat(tG,"[.]){3}").concat(tG),P0e=new RegExp("^".concat(vi,"$")),We="(?:[0-9a-fA-F]{1,4})",D0e=new RegExp("^("+"(?:".concat(We,":){7}(?:").concat(We,"|:)|")+"(?:".concat(We,":){6}(?:").concat(vi,"|:").concat(We,"|:)|")+"(?:".concat(We,":){5}(?::").concat(vi,"|(:").concat(We,"){1,2}|:)|")+"(?:".concat(We,":){4}(?:(:").concat(We,"){0,1}:").concat(vi,"|(:").concat(We,"){1,3}|:)|")+"(?:".concat(We,":){3}(?:(:").concat(We,"){0,2}:").concat(vi,"|(:").concat(We,"){1,4}|:)|")+"(?:".concat(We,":){2}(?:(:").concat(We,"){0,3}:").concat(vi,"|(:").concat(We,"){1,5}|:)|")+"(?:".concat(We,":){1}(?:(:").concat(We,"){0,4}:").concat(vi,"|(:").concat(We,"){1,6}|:)|")+"(?::((?::".concat(We,"){0,5}:").concat(vi,"|(?::").concat(We,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");function PT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";if((0,R0e.default)(e),t=String(t),!t)return PT(e,4)||PT(e,6);if(t==="4"){if(!P0e.test(e))return!1;var r=e.split(".").sort(function(n,i){return n-i});return r[3]<=255}return t==="6"?!!D0e.test(e):!1}DT.exports=Ol.default;DT.exports.default=Ol.default});var nG=u((ql,LT)=>{"use strict";Object.defineProperty(ql,"__esModule",{value:!0});ql.default=V0e;var O0e=Ll(xo()),L0e=Ll(Gg()),OT=Ll(ZB()),q0e=Ll(NT()),rG=Ll(Vg());function Ll(e){return e&&e.__esModule?e:{default:e}}var M0e={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[]},z0e=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,j0e=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,k0e=/^[a-z\d]+$/,F0e=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,U0e=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,B0e=/^([\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,G0e=254;function $0e(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;var r=/[\.";<>]/.test(t);if(r){if(t===e)return!1;var n=t.split('"').length===t.split('\\"').length;if(!n)return!1}return!0}function V0e(e,t){if((0,O0e.default)(e),t=(0,L0e.default)(t,M0e),t.require_display_name||t.allow_display_name){var r=e.match(z0e);if(r){var n=r[1];if(e=e.replace(n,"").replace(/(^<|>$)/g,""),n.endsWith(" ")&&(n=n.substr(0,n.length-1)),!$0e(n))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>G0e)return!1;var i=e.split("@"),s=i.pop(),o=s.toLowerCase();if(t.host_blacklist.includes(o))return!1;var a=i.join("@");if(t.domain_specific_validation&&(o==="gmail.com"||o==="googlemail.com")){a=a.toLowerCase();var c=a.split("+")[0];if(!(0,OT.default)(c.replace(/\./g,""),{min:6,max:30}))return!1;for(var d=c.split("."),f=0;f<d.length;f++)if(!k0e.test(d[f]))return!1}if(t.ignore_max_length===!1&&(!(0,OT.default)(a,{max:64})||!(0,OT.default)(s,{max:254})))return!1;if(!(0,q0e.default)(s,{require_tld:t.require_tld})){if(!t.allow_ip_domain)return!1;if(!(0,rG.default)(s)){if(!s.startsWith("[")||!s.endsWith("]"))return!1;var _=s.substr(1,s.length-2);if(_.length===0||!(0,rG.default)(_))return!1}}if(a[0]==='"')return a=a.slice(1,a.length-1),t.allow_utf8_local_part?B0e.test(a):F0e.test(a);for(var m=t.allow_utf8_local_part?U0e:j0e,h=a.split("."),g=0;g<h.length;g++)if(!m.test(h[g]))return!1;return!(t.blacklisted_chars&&a.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g"))!==-1)}LT.exports=ql.default;LT.exports.default=ql.default});var aG=u((Ml,qT)=>{"use strict";Object.defineProperty(Ml,"__esModule",{value:!0});Ml.default=nEe;var K0e=Kg(xo()),H0e=Kg(NT()),iG=Kg(Vg()),W0e=Kg(Gg());function Kg(e){return e&&e.__esModule?e:{default:e}}function J0e(e,t){return Z0e(e)||X0e(e,t)||Q0e(e,t)||Y0e()}function Y0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
36
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Q0e(e,t){if(!!e){if(typeof e=="string")return sG(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return sG(e,t)}}function sG(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function X0e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var r=[],n=!0,i=!1,s=void 0;try{for(var o=e[Symbol.iterator](),a;!(n=(a=o.next()).done)&&(r.push(a.value),!(t&&r.length===t));n=!0);}catch(c){i=!0,s=c}finally{try{!n&&o.return!=null&&o.return()}finally{if(i)throw s}}return r}}function Z0e(e){if(Array.isArray(e))return e}var eEe={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},tEe=/^\[([^\]]+)\](?::([0-9]+))?$/;function rEe(e){return Object.prototype.toString.call(e)==="[object RegExp]"}function oG(e,t){for(var r=0;r<t.length;r++){var n=t[r];if(e===n||rEe(n)&&n.test(e))return!0}return!1}function nEe(e,t){if((0,K0e.default)(e),!e||/[\s<>]/.test(e)||e.indexOf("mailto:")===0||(t=(0,W0e.default)(t,eEe),t.validate_length&&e.length>=2083)||!t.allow_fragments&&e.includes("#")||!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var r,n,i,s,o,a,c,d;if(c=e.split("#"),e=c.shift(),c=e.split("?"),e=c.shift(),c=e.split("://"),c.length>1){if(r=c.shift().toLowerCase(),t.require_valid_protocol&&t.protocols.indexOf(r)===-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]===""||(n=c.shift(),n.indexOf(":")>=0&&n.split(":").length>2))return!1;var f=n.split(":"),_=J0e(f,2),m=_[0],h=_[1];if(m===""&&h==="")return!1}s=c.join("@"),a=null,d=null;var g=s.match(tEe);if(g?(i="",d=g[1],a=g[2]||null):(c=s.split(":"),i=c.shift(),c.length&&(a=c.join(":"))),a!==null&&a.length>0){if(o=parseInt(a,10),!/^[0-9]+$/.test(a)||o<=0||o>65535)return!1}else if(t.require_port)return!1;return t.host_whitelist?oG(i,t.host_whitelist):!(!(0,iG.default)(i)&&!(0,H0e.default)(i,t)&&(!d||!(0,iG.default)(d,6))||(i=i||d,t.host_blacklist&&oG(i,t.host_blacklist)))}qT.exports=Ml.default;qT.exports.default=Ml.default});var lG=u((MMe,cG)=>{"use strict";var iEe=nG(),sEe=aG(),oEe=Vg();function MT(e,t){if(!e)throw new Error(t)}var aEe={name:"email",coerce:e=>e.toString(),validate:function(e){MT(iEe(e),"must be an email address")}},cEe={name:"ipaddress",coerce:e=>e.toString(),validate:function(e){MT(oEe(e),"must be an IP address")}},lEe={name:"url",coerce:e=>e.toString(),validate:function(e){MT(sEe(e,{require_tld:!1}),"must be a URL")}};cG.exports={email:aEe,ipaddress:cEe,url:lEe}});var XG=u(QG=>{"use strict";Object.defineProperty(QG,"__esModule",{value:!0})});var XT=u(QT=>{"use strict";Object.defineProperty(QT,"__esModule",{value:!0});var YT=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 r=this._reflect.hasMetadata("tsconvict:properties",t),n=this._reflect.hasMetadata("tsconvict:schema",t);return r||n}getTsType(t,r){return this._reflect.getMetadata("design:type",t,r)}getConvictMetaForProperty(t,r){return this._reflect.getMetadata("tsconvict:property",t,r)}setConvictMetaForProperty(t,r,n){return this._reflect.defineMetadata("tsconvict:property",t,r,n)}setConvictMetaForClass(t,r){return this._reflect.defineMetadata("tsconvict:schema",t,r)}getConvictMetaForClass(t){return this._reflect.getMetadata("tsconvict:schema",t)||null}setPropertyForClass(t,r){let n=this.getClassProperties(t);return n.length===0&&(this._reflect.defineMetadata("tsconvict:properties",[],t.constructor),n=this.getClassProperties(t)),n.push(r)}getClassProperties(t){return this._reflect.getMetadata("tsconvict:properties",t.constructor)||[]}};QT.default=new YT});var ZG=u(Ei=>{"use strict";var OAe=Ei&&Ei.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Ei,"__esModule",{value:!0});Ei.Property=Ei.Config=void 0;var Zg=OAe(XT());function LAe(e={}){return t=>{Zg.default.setConvictMetaForClass(e,t)}}Ei.Config=LAe;function qAe(e){return(t,r)=>{if(typeof e=="object"&&typeof e.format>"u"){let n=Zg.default.getTsType(t,r);n&&(e.format=n)}Zg.default.setConvictMetaForProperty(e,t,r),Zg.default.setPropertyForClass(t,r)}}Ei.Property=qAe});var a$=u((VMe,o$)=>{"use strict";var MAe=require("util"),zAe=require("fs"),e$=require("path");function Bl(e){if(e!==e.toLowerCase()&&e!==e.toUpperCase()||(e=e.toLowerCase()),e.indexOf("-")===-1&&e.indexOf("_")===-1)return e;{let r="",n=!1,i=e.match(/^-+/);for(let s=i?i[0].length:0;s<e.length;s++){let o=e.charAt(s);n&&(n=!1,o=o.toUpperCase()),s!==0&&(o==="-"||o==="_")?n=!0:o!=="-"&&o!=="_"&&(r+=o)}return r}}function n$(e,t){let r=e.toLowerCase();t=t||"-";let n="";for(let i=0;i<e.length;i++){let s=r.charAt(i),o=e.charAt(i);s!==o&&i>0?n+=`${t}${r.charAt(i)}`:n+=o}return n}function i$(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 jAe(e){if(Array.isArray(e))return e.map(o=>typeof o!="string"?o+"":o);e=e.trim();let t=0,r=null,n=null,i=null,s=[];for(let o=0;o<e.length;o++){if(r=n,n=e.charAt(o),n===" "&&!i){r!==" "&&t++;continue}n===i?i=null:(n==="'"||n==='"')&&!i&&(i=n),s[t]||(s[t]=""),s[t]+=n}return s}var _r;(function(e){e.BOOLEAN="boolean",e.STRING="string",e.NUMBER="number",e.ARRAY="array"})(_r||(_r={}));var Ln,eC=class{constructor(t){Ln=t}parse(t,r){let n=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},r),i=jAe(t),s=kAe(Object.assign(Object.create(null),n.alias)),o=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},n.configuration),a=Object.assign(Object.create(null),n.default),c=n.configObjects||[],d=n.envPrefix,f=o["populate--"],_=f?"--":"_",m=Object.create(null),h=Object.create(null),g=n.__||Ln.format,y={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:[]},A=/^-([0-9]+(\.[0-9]+)?|\.[0-9]+)$/,R=new RegExp("^--"+o["negation-prefix"]+"(.+)");[].concat(n.array||[]).filter(Boolean).forEach(function(S){let w=typeof S=="object"?S.key:S,O=Object.keys(S).map(function(x){return{boolean:"bools",string:"strings",number:"numbers"}[x]}).filter(Boolean).pop();O&&(y[O][w]=!0),y.arrays[w]=!0,y.keys.push(w)}),[].concat(n.boolean||[]).filter(Boolean).forEach(function(S){y.bools[S]=!0,y.keys.push(S)}),[].concat(n.string||[]).filter(Boolean).forEach(function(S){y.strings[S]=!0,y.keys.push(S)}),[].concat(n.number||[]).filter(Boolean).forEach(function(S){y.numbers[S]=!0,y.keys.push(S)}),[].concat(n.count||[]).filter(Boolean).forEach(function(S){y.counts[S]=!0,y.keys.push(S)}),[].concat(n.normalize||[]).filter(Boolean).forEach(function(S){y.normalize[S]=!0,y.keys.push(S)}),typeof n.narg=="object"&&Object.entries(n.narg).forEach(([S,w])=>{typeof w=="number"&&(y.nargs[S]=w,y.keys.push(S))}),typeof n.coerce=="object"&&Object.entries(n.coerce).forEach(([S,w])=>{typeof w=="function"&&(y.coercions[S]=w,y.keys.push(S))}),typeof n.config<"u"&&(Array.isArray(n.config)||typeof n.config=="string"?[].concat(n.config).filter(Boolean).forEach(function(S){y.configs[S]=!0}):typeof n.config=="object"&&Object.entries(n.config).forEach(([S,w])=>{(typeof w=="boolean"||typeof w=="function")&&(y.configs[S]=w)})),Un(n.key,s,n.default,y.arrays),Object.keys(a).forEach(function(S){(y.aliases[S]||[]).forEach(function(w){a[w]=a[S]})});let T=null;yv();let $=[],he=Object.assign(Object.create(null),{_:[]}),sr={};for(let S=0;S<i.length;S++){let w=i[S],O=w.replace(/^-{3,}/,"---"),x,E,k,F,Y,Be;if(w!=="--"&&_s(w))kn(w);else if(O.match(/---+(=|$)/)){kn(w);continue}else if(w.match(/^--.+=/)||!o["short-option-groups"]&&w.match(/^-.+=/))F=w.match(/^--?([^=]+)=([\s\S]*)$/),F!==null&&Array.isArray(F)&&F.length>=3&&(ie(F[1],y.arrays)?S=hr(S,F[1],i,F[2]):ie(F[1],y.nargs)!==!1?S=Fn(S,F[1],i,F[2]):j(F[1],F[2]));else if(w.match(R)&&o["boolean-negation"])F=w.match(R),F!==null&&Array.isArray(F)&&F.length>=2&&(E=F[1],j(E,ie(E,y.arrays)?[!1]:!1));else if(w.match(/^--.+/)||!o["short-option-groups"]&&w.match(/^-[^-]+/))F=w.match(/^--?(.+)/),F!==null&&Array.isArray(F)&&F.length>=2&&(E=F[1],ie(E,y.arrays)?S=hr(S,E,i):ie(E,y.nargs)!==!1?S=Fn(S,E,i):(Y=i[S+1],Y!==void 0&&(!Y.match(/^-/)||Y.match(A))&&!ie(E,y.bools)&&!ie(E,y.counts)||/^(true|false)$/.test(Y)?(j(E,Y),S++):j(E,ut(E))));else if(w.match(/^-.\..+=/))F=w.match(/^-([^=]+)=([\s\S]*)$/),F!==null&&Array.isArray(F)&&F.length>=3&&j(F[1],F[2]);else if(w.match(/^-.\..+/)&&!w.match(A))Y=i[S+1],F=w.match(/^-(.\..+)/),F!==null&&Array.isArray(F)&&F.length>=2&&(E=F[1],Y!==void 0&&!Y.match(/^-/)&&!ie(E,y.bools)&&!ie(E,y.counts)?(j(E,Y),S++):j(E,ut(E)));else if(w.match(/^-[^-]+/)&&!w.match(A)){k=w.slice(1,-1).split(""),x=!1;for(let Ye=0;Ye<k.length;Ye++){if(Y=w.slice(Ye+2),k[Ye+1]&&k[Ye+1]==="="){Be=w.slice(Ye+3),E=k[Ye],ie(E,y.arrays)?S=hr(S,E,i,Be):ie(E,y.nargs)!==!1?S=Fn(S,E,i,Be):j(E,Be),x=!0;break}if(Y==="-"){j(k[Ye],Y);continue}if(/[A-Za-z]/.test(k[Ye])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(Y)&&ie(Y,y.bools)===!1){j(k[Ye],Y),x=!0;break}if(k[Ye+1]&&k[Ye+1].match(/\W/)){j(k[Ye],Y),x=!0;break}else j(k[Ye],ut(k[Ye]))}E=w.slice(-1)[0],!x&&E!=="-"&&(ie(E,y.arrays)?S=hr(S,E,i):ie(E,y.nargs)!==!1?S=Fn(S,E,i):(Y=i[S+1],Y!==void 0&&(!/^(-|--)[^-]/.test(Y)||Y.match(A))&&!ie(E,y.bools)&&!ie(E,y.counts)||/^(true|false)$/.test(Y)?(j(E,Y),S++):j(E,ut(E))))}else if(w.match(/^-[0-9]$/)&&w.match(A)&&ie(w.slice(1),y.bools))E=w.slice(1),j(E,ut(E));else if(w==="--"){$=i.slice(S+1);break}else if(o["halt-at-non-option"]){$=i.slice(S);break}else kn(w)}xe(he,!0),xe(he,!1),ze(he),Ce(),we(he,y.aliases,a,!0),ve(he),o["set-placeholder-key"]&&je(he),Object.keys(y.counts).forEach(function(S){dn(he,S.split("."))||j(S,0)}),f&&$.length&&(he[_]=[]),$.forEach(function(S){he[_].push(S)}),o["camel-case-expansion"]&&o["strip-dashed"]&&Object.keys(he).filter(S=>S!=="--"&&S.includes("-")).forEach(S=>{delete he[S]}),o["strip-aliased"]&&[].concat(...Object.keys(s).map(S=>s[S])).forEach(S=>{o["camel-case-expansion"]&&S.includes("-")&&delete he[S.split(".").map(w=>Bl(w)).join(".")],delete he[S]});function kn(S){let w=Te("_",S);(typeof w=="string"||typeof w=="number")&&he._.push(w)}function Fn(S,w,O,x){let E,k=ie(w,y.nargs);if(k=typeof k!="number"||isNaN(k)?1:k,k===0)return Wt(x)||(T=Error(g("Argument unexpected for: %s",w))),j(w,ut(w)),S;let F=Wt(x)?0:1;if(o["nargs-eats-options"])O.length-(S+1)+F<k&&(T=Error(g("Not enough arguments following: %s",w))),F=k;else{for(E=S+1;E<O.length&&(!O[E].match(/^-[^0-9]/)||O[E].match(A)||_s(O[E]));E++)F++;F<k&&(T=Error(g("Not enough arguments following: %s",w)))}let Y=Math.min(F,k);for(!Wt(x)&&Y>0&&(j(w,x),Y--),E=S+1;E<Y+S+1;E++)j(w,O[E]);return S+Y}function hr(S,w,O,x){let E=[],k=x||O[S+1],F=ie(w,y.nargs);if(ie(w,y.bools)&&!/^(true|false)$/.test(k))E.push(!0);else if(Wt(k)||Wt(x)&&/^-/.test(k)&&!A.test(k)&&!_s(k)){if(a[w]!==void 0){let Y=a[w];E=Array.isArray(Y)?Y:[Y]}}else{Wt(x)||E.push(fe(w,x));for(let Y=S+1;Y<O.length&&!(!o["greedy-arrays"]&&E.length>0||F&&typeof F=="number"&&E.length>=F||(k=O[Y],/^-/.test(k)&&!A.test(k)&&!_s(k)));Y++)S=Y,E.push(fe(w,k))}return typeof F=="number"&&(F&&E.length<F||isNaN(F)&&E.length===0)&&(T=Error(g("Not enough arguments following: %s",w))),j(w,E),S}function j(S,w){if(/-/.test(S)&&o["camel-case-expansion"]){let E=S.split(".").map(function(k){return Bl(k)}).join(".");me(S,E)}let O=fe(S,w),x=S.split(".");Oe(he,x,O),y.aliases[S]&&y.aliases[S].forEach(function(E){let k=E.split(".");Oe(he,k,O)}),x.length>1&&o["dot-notation"]&&(y.aliases[x[0]]||[]).forEach(function(E){let k=E.split("."),F=[].concat(x);F.shift(),k=k.concat(F),(y.aliases[S]||[]).includes(k.join("."))||Oe(he,k,O)}),ie(S,y.normalize)&&!ie(S,y.arrays)&&[S].concat(y.aliases[S]||[]).forEach(function(k){Object.defineProperty(sr,k,{enumerable:!0,get(){return w},set(F){w=typeof F=="string"?Ln.normalize(F):F}})})}function me(S,w){y.aliases[S]&&y.aliases[S].length||(y.aliases[S]=[w],m[w]=!0),y.aliases[w]&&y.aliases[w].length||me(w,S)}function fe(S,w){typeof w=="string"&&(w[0]==="'"||w[0]==='"')&&w[w.length-1]===w[0]&&(w=w.substring(1,w.length-1)),(ie(S,y.bools)||ie(S,y.counts))&&typeof w=="string"&&(w=w==="true");let O=Array.isArray(w)?w.map(function(x){return Te(S,x)}):Te(S,w);return ie(S,y.counts)&&(Wt(O)||typeof O=="boolean")&&(O=ZT()),ie(S,y.normalize)&&ie(S,y.arrays)&&(Array.isArray(w)?O=w.map(x=>Ln.normalize(x)):O=Ln.normalize(w)),O}function Te(S,w){return!o["parse-positional-numbers"]&&S==="_"||!ie(S,y.strings)&&!ie(S,y.bools)&&!Array.isArray(w)&&(i$(w)&&o["parse-numbers"]&&Number.isSafeInteger(Math.floor(parseFloat(`${w}`)))||!Wt(w)&&ie(S,y.numbers))&&(w=Number(w)),w}function ze(S){let w=Object.create(null);we(w,y.aliases,a),Object.keys(y.configs).forEach(function(O){let x=S[O]||w[O];if(x)try{let E=null,k=Ln.resolve(Ln.cwd(),x),F=y.configs[O];if(typeof F=="function"){try{E=F(k)}catch(Y){E=Y}if(E instanceof Error){T=E;return}}else E=Ln.require(k);Pe(E)}catch(E){E.name==="PermissionDenied"?T=E:S[O]&&(T=Error(g("Invalid JSON config file: %s",x)))}})}function Pe(S,w){Object.keys(S).forEach(function(O){let x=S[O],E=w?w+"."+O:O;typeof x=="object"&&x!==null&&!Array.isArray(x)&&o["dot-notation"]?Pe(x,E):(!dn(he,E.split("."))||ie(E,y.arrays)&&o["combine-arrays"])&&j(E,x)})}function Ce(){typeof c<"u"&&c.forEach(function(S){Pe(S)})}function xe(S,w){if(typeof d>"u")return;let O=typeof d=="string"?d:"",x=Ln.env();Object.keys(x).forEach(function(E){if(O===""||E.lastIndexOf(O,0)===0){let k=E.split("__").map(function(F,Y){return Y===0&&(F=F.substring(O.length)),Bl(F)});(w&&y.configs[k.join(".")]||!w)&&!dn(S,k)&&j(k.join("."),x[E])}})}function ve(S){let w,O=new Set;Object.keys(S).forEach(function(x){if(!O.has(x)&&(w=ie(x,y.coercions),typeof w=="function"))try{let E=Te(x,w(S[x]));[].concat(y.aliases[x]||[],x).forEach(k=>{O.add(k),S[k]=E})}catch(E){T=E}})}function je(S){return y.keys.forEach(w=>{~w.indexOf(".")||typeof S[w]>"u"&&(S[w]=void 0)}),S}function we(S,w,O,x=!1){Object.keys(O).forEach(function(E){dn(S,E.split("."))||(Oe(S,E.split("."),O[E]),x&&(h[E]=!0),(w[E]||[]).forEach(function(k){dn(S,k.split("."))||Oe(S,k.split("."),O[E])}))})}function dn(S,w){let O=S;o["dot-notation"]||(w=[w.join(".")]),w.slice(0,-1).forEach(function(E){O=O[E]||{}});let x=w[w.length-1];return typeof O!="object"?!1:x in O}function Oe(S,w,O){let x=S;o["dot-notation"]||(w=[w.join(".")]),w.slice(0,-1).forEach(function(Be){Be=t$(Be),typeof x=="object"&&x[Be]===void 0&&(x[Be]={}),typeof x[Be]!="object"||Array.isArray(x[Be])?(Array.isArray(x[Be])?x[Be].push({}):x[Be]=[x[Be],{}],x=x[Be][x[Be].length-1]):x=x[Be]});let E=t$(w[w.length-1]),k=ie(w.join("."),y.arrays),F=Array.isArray(O),Y=o["duplicate-arguments-array"];!Y&&ie(E,y.nargs)&&(Y=!0,(!Wt(x[E])&&y.nargs[E]===1||Array.isArray(x[E])&&x[E].length===y.nargs[E])&&(x[E]=void 0)),O===ZT()?x[E]=ZT(x[E]):Array.isArray(x[E])?Y&&k&&F?x[E]=o["flatten-duplicate-arrays"]?x[E].concat(O):(Array.isArray(x[E][0])?x[E]:[x[E]]).concat([O]):!Y&&Boolean(k)===Boolean(F)?x[E]=O:x[E]=x[E].concat([O]):x[E]===void 0&&k?x[E]=F?O:[O]:Y&&!(x[E]===void 0||ie(E,y.counts)||ie(E,y.bools))?x[E]=[x[E],O]:x[E]=O}function Un(...S){S.forEach(function(w){Object.keys(w||{}).forEach(function(O){y.aliases[O]||(y.aliases[O]=[].concat(s[O]||[]),y.aliases[O].concat(O).forEach(function(x){if(/-/.test(x)&&o["camel-case-expansion"]){let E=Bl(x);E!==O&&y.aliases[O].indexOf(E)===-1&&(y.aliases[O].push(E),m[E]=!0)}}),y.aliases[O].concat(O).forEach(function(x){if(x.length>1&&/[A-Z]/.test(x)&&o["camel-case-expansion"]){let E=n$(x,"-");E!==O&&y.aliases[O].indexOf(E)===-1&&(y.aliases[O].push(E),m[E]=!0)}}),y.aliases[O].forEach(function(x){y.aliases[x]=[O].concat(y.aliases[O].filter(function(E){return x!==E}))}))})})}function ie(S,w){let O=[].concat(y.aliases[S]||[],S),x=Object.keys(w),E=O.find(k=>x.includes(k));return E?w[E]:!1}function Fe(S){let w=Object.keys(y);return[].concat(w.map(x=>y[x])).some(function(x){return Array.isArray(x)?x.includes(S):x[S]})}function pv(S,...w){return[].concat(...w).some(function(x){let E=S.match(x);return E&&Fe(E[1])})}function _v(S){if(S.match(A)||!S.match(/^-[^-]+/))return!1;let w=!0,O,x=S.slice(1).split("");for(let E=0;E<x.length;E++){if(O=S.slice(E+2),!Fe(x[E])){w=!1;break}if(x[E+1]&&x[E+1]==="="||O==="-"||/[A-Za-z]/.test(x[E])&&/^-?\d+(\.\d*)?(e-?\d+)?$/.test(O)||x[E+1]&&x[E+1].match(/\W/))break}return w}function _s(S){return o["unknown-options-as-args"]&&hv(S)}function hv(S){return S=S.replace(/^-{3,}/,"--"),S.match(A)||_v(S)?!1:!pv(S,/^-+([^=]+?)=[\s\S]*$/,R,/^-+([^=]+?)$/,/^-+([^=]+?)-$/,/^-+([^=]+?\d+)$/,/^-+([^=]+?)\W+.*$/)}function ut(S){return!ie(S,y.bools)&&!ie(S,y.counts)&&`${S}`in a?a[S]:Ql(Bn(S))}function Ql(S){return{[_r.BOOLEAN]:!0,[_r.STRING]:"",[_r.NUMBER]:void 0,[_r.ARRAY]:[]}[S]}function Bn(S){let w=_r.BOOLEAN;return ie(S,y.strings)?w=_r.STRING:ie(S,y.numbers)?w=_r.NUMBER:ie(S,y.bools)?w=_r.BOOLEAN:ie(S,y.arrays)&&(w=_r.ARRAY),w}function Wt(S){return S===void 0}function yv(){Object.keys(y.counts).find(S=>ie(S,y.arrays)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.array.",S)),!0):ie(S,y.nargs)?(T=Error(g("Invalid configuration: %s, opts.count excludes opts.narg.",S)),!0):!1)}return{aliases:Object.assign({},y.aliases),argv:Object.assign(sr,he),configuration:o,defaulted:Object.assign({},h),error:T,newAliases:Object.assign({},m)}}};function kAe(e){let t=[],r=Object.create(null),n=!0;for(Object.keys(e).forEach(function(i){t.push([].concat(e[i],i))});n;){n=!1;for(let i=0;i<t.length;i++)for(let s=i+1;s<t.length;s++)if(t[i].filter(function(a){return t[s].indexOf(a)!==-1}).length){t[i]=t[i].concat(t[s]),t.splice(s,1),n=!0;break}}return t.forEach(function(i){i=i.filter(function(o,a,c){return c.indexOf(o)===a});let s=i.pop();s!==void 0&&typeof s=="string"&&(r[s]=i)}),r}function ZT(e){return e!==void 0?e+1:1}function t$(e){return e==="__proto__"?"___proto___":e}var r$=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])<r$)throw Error(`yargs parser supports a minimum Node.js version of ${r$}. Read our version support policy: https://github.com/yargs/yargs-parser#supported-nodejs-versions`);var FAe=process?process.env:{},s$=new eC({cwd:process.cwd,env:()=>FAe,format:MAe.format,normalize:e$.normalize,resolve:e$.resolve,require:e=>{if(typeof require<"u")return require(e);if(e.match(/\.json$/))return zAe.readFileSync(e,"utf8");throw Error("only .json config files are supported in ESM")}}),Gl=function(t,r){return s$.parse(t.slice(),r).argv};Gl.detailed=function(e,t){return s$.parse(e.slice(),t)};Gl.camelCase=Bl;Gl.decamelize=n$;Gl.looksLikeNumber=i$;o$.exports=Gl});var J$=u(($l,Do)=>{var UAe=200,v$="__lodash_hash_undefined__",S$=9007199254740991,cC="[object Arguments]",BAe="[object Array]",w$="[object Boolean]",E$="[object Date]",GAe="[object Error]",lC="[object Function]",b$="[object GeneratorFunction]",ev="[object Map]",A$="[object Number]",dC="[object Object]",c$="[object Promise]",T$="[object RegExp]",tv="[object Set]",C$="[object String]",x$="[object Symbol]",rC="[object WeakMap]",I$="[object ArrayBuffer]",rv="[object DataView]",R$="[object Float32Array]",N$="[object Float64Array]",P$="[object Int8Array]",D$="[object Int16Array]",O$="[object Int32Array]",L$="[object Uint8Array]",q$="[object Uint8ClampedArray]",M$="[object Uint16Array]",z$="[object Uint32Array]",$Ae=/[\\^$.*+?()[\]{}|]/g,VAe=/\w*$/,KAe=/^\[object .+?Constructor\]$/,HAe=/^(?:0|[1-9]\d*)$/,De={};De[cC]=De[BAe]=De[I$]=De[rv]=De[w$]=De[E$]=De[R$]=De[N$]=De[P$]=De[D$]=De[O$]=De[ev]=De[A$]=De[dC]=De[T$]=De[tv]=De[C$]=De[x$]=De[L$]=De[q$]=De[M$]=De[z$]=!0;De[GAe]=De[lC]=De[rC]=!1;var WAe=typeof global=="object"&&global&&global.Object===Object&&global,JAe=typeof self=="object"&&self&&self.Object===Object&&self,qn=WAe||JAe||Function("return this")(),j$=typeof $l=="object"&&$l&&!$l.nodeType&&$l,l$=j$&&typeof Do=="object"&&Do&&!Do.nodeType&&Do,YAe=l$&&l$.exports===j$;function QAe(e,t){return e.set(t[0],t[1]),e}function XAe(e,t){return e.add(t),e}function ZAe(e,t){for(var r=-1,n=e?e.length:0;++r<n&&t(e[r],r,e)!==!1;);return e}function eTe(e,t){for(var r=-1,n=t.length,i=e.length;++r<n;)e[i+r]=t[r];return e}function k$(e,t,r,n){var i=-1,s=e?e.length:0;for(n&&s&&(r=e[++i]);++i<s;)r=t(r,e[i],i,e);return r}function tTe(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}function rTe(e,t){return e==null?void 0:e[t]}function F$(e){var t=!1;if(e!=null&&typeof e.toString!="function")try{t=!!(e+"")}catch{}return t}function d$(e){var t=-1,r=Array(e.size);return e.forEach(function(n,i){r[++t]=[i,n]}),r}function uC(e,t){return function(r){return e(t(r))}}function u$(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var nTe=Array.prototype,iTe=Function.prototype,nv=Object.prototype,tC=qn["__core-js_shared__"],f$=function(){var e=/[^.]+$/.exec(tC&&tC.keys&&tC.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),U$=iTe.toString,bi=nv.hasOwnProperty,iv=nv.toString,sTe=RegExp("^"+U$.call(bi).replace($Ae,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),m$=YAe?qn.Buffer:void 0,p$=qn.Symbol,_$=qn.Uint8Array,oTe=uC(Object.getPrototypeOf,Object),aTe=Object.create,cTe=nv.propertyIsEnumerable,lTe=nTe.splice,h$=Object.getOwnPropertySymbols,dTe=m$?m$.isBuffer:void 0,uTe=uC(Object.keys,Object),nC=qo(qn,"DataView"),Vl=qo(qn,"Map"),iC=qo(qn,"Promise"),sC=qo(qn,"Set"),oC=qo(qn,"WeakMap"),Kl=qo(Object,"create"),fTe=ms(nC),mTe=ms(Vl),pTe=ms(iC),_Te=ms(sC),hTe=ms(oC),y$=p$?p$.prototype:void 0,g$=y$?y$.valueOf:void 0;function fs(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function yTe(){this.__data__=Kl?Kl(null):{}}function gTe(e){return this.has(e)&&delete this.__data__[e]}function vTe(e){var t=this.__data__;if(Kl){var r=t[e];return r===v$?void 0:r}return bi.call(t,e)?t[e]:void 0}function STe(e){var t=this.__data__;return Kl?t[e]!==void 0:bi.call(t,e)}function wTe(e,t){var r=this.__data__;return r[e]=Kl&&t===void 0?v$:t,this}fs.prototype.clear=yTe;fs.prototype.delete=gTe;fs.prototype.get=vTe;fs.prototype.has=STe;fs.prototype.set=wTe;function Mn(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function ETe(){this.__data__=[]}function bTe(e){var t=this.__data__,r=sv(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():lTe.call(t,r,1),!0}function ATe(e){var t=this.__data__,r=sv(t,e);return r<0?void 0:t[r][1]}function TTe(e){return sv(this.__data__,e)>-1}function CTe(e,t){var r=this.__data__,n=sv(r,e);return n<0?r.push([e,t]):r[n][1]=t,this}Mn.prototype.clear=ETe;Mn.prototype.delete=bTe;Mn.prototype.get=ATe;Mn.prototype.has=TTe;Mn.prototype.set=CTe;function Oo(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xTe(){this.__data__={hash:new fs,map:new(Vl||Mn),string:new fs}}function ITe(e){return ov(this,e).delete(e)}function RTe(e){return ov(this,e).get(e)}function NTe(e){return ov(this,e).has(e)}function PTe(e,t){return ov(this,e).set(e,t),this}Oo.prototype.clear=xTe;Oo.prototype.delete=ITe;Oo.prototype.get=RTe;Oo.prototype.has=NTe;Oo.prototype.set=PTe;function Lo(e){this.__data__=new Mn(e)}function DTe(){this.__data__=new Mn}function OTe(e){return this.__data__.delete(e)}function LTe(e){return this.__data__.get(e)}function qTe(e){return this.__data__.has(e)}function MTe(e,t){var r=this.__data__;if(r instanceof Mn){var n=r.__data__;if(!Vl||n.length<UAe-1)return n.push([e,t]),this;r=this.__data__=new Oo(n)}return r.set(e,t),this}Lo.prototype.clear=DTe;Lo.prototype.delete=OTe;Lo.prototype.get=LTe;Lo.prototype.has=qTe;Lo.prototype.set=MTe;function zTe(e,t){var r=mC(e)||aCe(e)?tTe(e.length,String):[],n=r.length,i=!!n;for(var s in e)(t||bi.call(e,s))&&!(i&&(s=="length"||nCe(s,n)))&&r.push(s);return r}function B$(e,t,r){var n=e[t];(!(bi.call(e,t)&&K$(n,r))||r===void 0&&!(t in e))&&(e[t]=r)}function sv(e,t){for(var r=e.length;r--;)if(K$(e[r][0],t))return r;return-1}function jTe(e,t){return e&&G$(t,pC(t),e)}function aC(e,t,r,n,i,s,o){var a;if(n&&(a=s?n(e,i,s,o):n(e)),a!==void 0)return a;if(!av(e))return e;var c=mC(e);if(c){if(a=eCe(e),!t)return QTe(e,a)}else{var d=us(e),f=d==lC||d==b$;if(lCe(e))return $Te(e,t);if(d==dC||d==cC||f&&!s){if(F$(e))return s?e:{};if(a=tCe(f?{}:e),!t)return XTe(e,jTe(a,e))}else{if(!De[d])return s?e:{};a=rCe(e,d,aC,t)}}o||(o=new Lo);var _=o.get(e);if(_)return _;if(o.set(e,a),!c)var m=r?ZTe(e):pC(e);return ZAe(m||e,function(h,g){m&&(g=h,h=e[g]),B$(a,g,aC(h,t,r,n,g,e,o))}),a}function kTe(e){return av(e)?aTe(e):{}}function FTe(e,t,r){var n=t(e);return mC(e)?n:eTe(n,r(e))}function UTe(e){return iv.call(e)}function BTe(e){if(!av(e)||sCe(e))return!1;var t=W$(e)||F$(e)?sTe:KAe;return t.test(ms(e))}function GTe(e){if(!V$(e))return uTe(e);var t=[];for(var r in Object(e))bi.call(e,r)&&r!="constructor"&&t.push(r);return t}function $Te(e,t){if(t)return e.slice();var r=new e.constructor(e.length);return e.copy(r),r}function fC(e){var t=new e.constructor(e.byteLength);return new _$(t).set(new _$(e)),t}function VTe(e,t){var r=t?fC(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}function KTe(e,t,r){var n=t?r(d$(e),!0):d$(e);return k$(n,QAe,new e.constructor)}function HTe(e){var t=new e.constructor(e.source,VAe.exec(e));return t.lastIndex=e.lastIndex,t}function WTe(e,t,r){var n=t?r(u$(e),!0):u$(e);return k$(n,XAe,new e.constructor)}function JTe(e){return g$?Object(g$.call(e)):{}}function YTe(e,t){var r=t?fC(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function QTe(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}function G$(e,t,r,n){r||(r={});for(var i=-1,s=t.length;++i<s;){var o=t[i],a=n?n(r[o],e[o],o,r,e):void 0;B$(r,o,a===void 0?e[o]:a)}return r}function XTe(e,t){return G$(e,$$(e),t)}function ZTe(e){return FTe(e,pC,$$)}function ov(e,t){var r=e.__data__;return iCe(t)?r[typeof t=="string"?"string":"hash"]:r.map}function qo(e,t){var r=rTe(e,t);return BTe(r)?r:void 0}var $$=h$?uC(h$,Object):fCe,us=UTe;(nC&&us(new nC(new ArrayBuffer(1)))!=rv||Vl&&us(new Vl)!=ev||iC&&us(iC.resolve())!=c$||sC&&us(new sC)!=tv||oC&&us(new oC)!=rC)&&(us=function(e){var t=iv.call(e),r=t==dC?e.constructor:void 0,n=r?ms(r):void 0;if(n)switch(n){case fTe:return rv;case mTe:return ev;case pTe:return c$;case _Te:return tv;case hTe:return rC}return t});function eCe(e){var t=e.length,r=e.constructor(t);return t&&typeof e[0]=="string"&&bi.call(e,"index")&&(r.index=e.index,r.input=e.input),r}function tCe(e){return typeof e.constructor=="function"&&!V$(e)?kTe(oTe(e)):{}}function rCe(e,t,r,n){var i=e.constructor;switch(t){case I$:return fC(e);case w$:case E$:return new i(+e);case rv:return VTe(e,n);case R$:case N$:case P$:case D$:case O$:case L$:case q$:case M$:case z$:return YTe(e,n);case ev:return KTe(e,n,r);case A$:case C$:return new i(e);case T$:return HTe(e);case tv:return WTe(e,n,r);case x$:return JTe(e)}}function nCe(e,t){return t=t??S$,!!t&&(typeof e=="number"||HAe.test(e))&&e>-1&&e%1==0&&e<t}function iCe(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function sCe(e){return!!f$&&f$ in e}function V$(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||nv;return e===r}function ms(e){if(e!=null){try{return U$.call(e)}catch{}try{return e+""}catch{}}return""}function oCe(e){return aC(e,!0,!0)}function K$(e,t){return e===t||e!==e&&t!==t}function aCe(e){return cCe(e)&&bi.call(e,"callee")&&(!cTe.call(e,"callee")||iv.call(e)==cC)}var mC=Array.isArray;function H$(e){return e!=null&&dCe(e.length)&&!W$(e)}function cCe(e){return uCe(e)&&H$(e)}var lCe=dTe||mCe;function W$(e){var t=av(e)?iv.call(e):"";return t==lC||t==b$}function dCe(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=S$}function av(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function uCe(e){return!!e&&typeof e=="object"}function pC(e){return H$(e)?zTe(e):GTe(e)}function fCe(){return[]}function mCe(){return!1}Do.exports=oCe});var sV=u((KMe,iV)=>{"use strict";var pCe=require("fs"),_Ce=a$(),Mo=J$(),hCe=["__proto__.","constructor.prototype."],yCe="strict",Y$="warn";function Ai(e,t){if(!e)throw new Error(t)}function Q$(e){return Number.isInteger(e)&&e>=0&&e<=65535}function yC(e){return String(e).includes("\\\\.\\pipe\\")}var Hl={"*":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(Q$(e),"ports must be within range 0 - 65535")},windows_named_pipe:function(e){Ai(yC(e),"must be a valid pipe")},port_or_windows_named_pipe:function(e){yC(e)||Ai(Q$(e),"must be a windows named pipe or a number within range 0 - 65535")}};Hl.integer=Hl.int;var gC=new Map,vC={"*":JSON.parse};function X$(e,t){let r=Object.keys(e),n,i=[];for(;r.length;){n=r.shift();let o=zo(e,n);if(typeof o=="object"&&!Array.isArray(o)&&o!=null){if(t)if("_cvtProperties"in o)o=o._cvtProperties,n=`${n}._cvtProperties`;else{i.push([n,o]);continue}let a=Object.keys(o);if(a.length>0){a.forEach(function(c){r.push(`${n}.${c}`)});continue}}i.push([n,o])}let s={};return i.forEach(function(o){let a=o[0];t&&(a=a.replace(/\._cvtProperties/g,""));let c=o[1];s[a]=c}),s}function gCe(e,t,r){let n={undeclared:[],invalid_type:[],missing:[]},i=X$(e),s=X$(t._cvtProperties,!0);return Object.keys(s).forEach(function(o){let a=s[o],c=i[o];if(!(o in i))try{if(typeof a.default=="object"&&!Array.isArray(a.default))c=zo(e,o);else throw new Error("missing")}catch{let f=new Error(`configuration param '${o}' missing from config, did you override its parent?`);n.missing.push(f);return}if(delete i[o],(a.format==="object"||typeof a.default=="object")&&Object.keys(i).filter(function(d){return d.lastIndexOf(`${o}.`,0)===0}).forEach(function(d){delete i[d]}),!(typeof a.default>"u"&&c===a.default))try{a._format(c)}catch(d){n.invalid_type.push(d)}}),r&&Object.keys(i).forEach(function(o){let a=new Error(`configuration param '${o}' not declared in the schema`);n.undeclared.push(a)}),n}function vCe(e,t){Ai(e.indexOf(t)!==-1,`must be one of the possible values: ${JSON.stringify(e)}`)}var wC={Object,Array,String,Number,Boolean,RegExp},tV=Object.keys(wC),SCe=tV.map(function(e){return wC[e]});function rV(e,t,r,n,i,s,o){if(e==="_cvtProperties")throw new Error(`'${n}': '_cvtProperties' is reserved word of convict.`);if(typeof t=="object"&&t!==null&&!Array.isArray(t)&&Object.keys(t).length>0&&!("default"in t)){r[e]={_cvtProperties:{}},Object.keys(t).forEach(function(f){rV(f,t[f],r[e]._cvtProperties,`${n}.${f}`,i,s,o)});return}else(typeof t!="object"||Array.isArray(t)||t===null||Object.keys(t).length==0)&&(t={default:t});let a=Mo(t);if(r[e]=a,a.env&&(i[a.env]||(i[a.env]=[]),i[a.env].push(n)),a.arg){if(s[a.arg])throw new Error(`'${n}' reuses a command-line argument: ${a.arg}`);s[a.arg]=n}a.sensitive===!0&&o.add(n);let c=a.format,d;if(SCe.indexOf(c)>=0||tV.indexOf(c)>=0){let f=typeof c=="string"?wC[c]:c;d=function(_){Ai(Object.prototype.toString.call(_)==Object.prototype.toString.call(new f),`must be of type ${f.name}`)},a.format=f.name.toLowerCase()}else if(typeof c=="string"){if(!Hl[c])throw new Error(`'${n}' uses an unknown format type: ${c}`);d=Hl[c]}else if(Array.isArray(c))d=vCe.bind(null,c);else if(typeof c=="function")d=c;else if(c&&typeof c!="function")throw new Error(`'${n}': "format" must be a function or a known format type.`);if(!d&&!c){let f=Object.prototype.toString.call(a.default);d=function(_){Ai(Object.prototype.toString.call(_)==f," should be of type "+f.replace(/\[.* |]/g,""))}}a._format=function(f){if(!(this.nullable&&f===null))try{d(f,this)}catch(_){throw _.fullName=n,_.value=f,_}}}function _C(e){let t=e.getEnv();Object.keys(e._env).forEach(function(r){t[r]!==void 0&&e._env[r].forEach(function(i){e.set(i,t[r])})})}function hC(e){let t=_Ce(e.getArgs(),{configuration:{"dot-notation":!1}});Object.keys(e._argv).forEach(function(r){let n=e._argv[r];t[r]!==void 0&&e.set(n,String(t[r]))})}function nV(e,t,r){Object.keys(e._cvtProperties).forEach(function(n){let i=e._cvtProperties[n];if(i._cvtProperties){let s=t[n]||{};nV(i,s,r),t[n]=s}else t[n]=EC(n,Mo(i.default),e,r)})}function Z$(e){return typeof e=="object"&&e!==null}function SC(e,t,r){Object.keys(e).forEach(function(n){Array.isArray(e[n])||!Z$(e[n])||!r||r.format==="object"?t[n]=EC(n,e[n],r):(Z$(t[n])||(t[n]={}),SC(e[n],t[n],r._cvtProperties[n]))})}function wCe(e,t){let r=t.split("."),n=e;for(;r.length>0;){let i=r.shift();if(n&&n._cvtProperties&&n._cvtProperties[i])n=n._cvtProperties[i];else{n=null;break}}return n}function ECe(e,t){let r=wCe(e,t);return r==null?null:typeof r.format=="string"?r.format:r.default!=null?typeof r.default:null}function EC(e,t,r,n){let i=ECe(r,e);if(typeof t=="string"){if(gC.has(i))return gC.get(i)(t,n,e);switch(i){case"port":case"nat":case"integer":case"int":t=parseInt(t,10);break;case"port_or_windows_named_pipe":t=yC(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 eV(e){let t=e.split("."),r=t.length>1?t.pop():"";return(vC[r]||vC["*"])(pCe.readFileSync(e,"utf-8"))}function zo(e,t,r){if(t){let n=t.split(".");for(;n.length;){let i=n.shift();if(r&&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 Wl=function(t,r){let n={getArgs:function(){return r&&r.args||process.argv.slice(2)},getEnv:function(){return r&&r.env||process.env},getProperties:function(){return Mo(this._instance)},toString:function(){let i=Mo(this._instance);return this._sensitive.forEach(function(s){let o=s.split("."),a=o.pop(),c=o.join("."),d=zo(i,c);d[a]="[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=zo(this._instance,i);return Mo(s)},default:function(i){i=i.split(".").join("._cvtProperties.")+".default";let s=zo(this._schema._cvtProperties,i);return Mo(s)},reset:function(i){this.set(i,this.default(i))},has:function(i){try{return typeof this.get(i)<"u"}catch{return!1}},set:function(i,s){for(let f of hCe)if(i.startsWith(f)||i.includes(`.${f}`))return this;s=EC(i,s,this._schema,this);let o=i.split("."),a=o.pop(),c=o.join("."),d=zo(this._instance,c,!0);return d[a]=s,this},load:function(i){return SC(i,this._instance,this._schema),_C(n),hC(n),this},loadFile:function(i){let s=this;return Array.isArray(i)||(i=[i]),i.forEach(function(o){let a=eV(o);a&&SC(a,s._instance,s._schema)}),_C(n),hC(n),this},validate:function(i){if(i=i||{},i.allowed=i.allowed||Y$,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,o=gCe(this._instance,this._schema,i.allowed);if(o.invalid_type.length+o.undeclared.length+o.missing.length){let a=this._sensitive,c=function(g){let y="";for(let A=0;A<g.length;A++){y.length&&(y+=`
|
|
37
|
+
`);let R=g[A];R.fullName&&(y+=R.fullName+": "),R.message&&(y+=R.message),R.value&&!a.has(R.fullName)&&(y+=": value was "+JSON.stringify(R.value))}return y},d=c(o.invalid_type),f=c(o.undeclared),_=c(o.missing),m=[d,_];if(i.allowed===Y$&&f.length){let g="Warning:";if(process.stdout.isTTY){let y="\x1B[33;1m",A="\x1B[0m";g=y+g+A}s(g+" "+f)}else i.allowed===yCe&&m.push(f);let h=m.filter(function(g){return g.length}).join(`
|
|
38
|
+
`);if(h.length)throw new Error(h)}return this}};return typeof t=="string"?n._def=eV(t):n._def=t,n._schema={_cvtProperties:{}},n._env={},n._argv={},n._sensitive=new Set,Object.keys(n._def).forEach(function(i){rV(i,n._def[i],n._schema._cvtProperties,i,n._env,n._argv,n._sensitive)}),n._instance={},nV(n._schema,n._instance,n),_C(n),hC(n),n};Wl.addFormat=function(e,t,r){if(typeof e=="object"&&(t=e.validate,r=e.coerce,e=e.name),typeof t!="function")throw new Error(`Validation function for '${e}' must be a function.`);if(r&&typeof r!="function")throw new Error(`Coerce function for '${e}' must be a function.`);Hl[e]=t,r&&gC.set(e,r)};Wl.addFormats=function(e){Object.keys(e).forEach(function(t){Wl.addFormat(t,e[t].validate,e[t].coerce)})};Wl.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(n){if(typeof n!="string")throw new Error("Invalid parser.extension");vC[n]=t.parse})})};iV.exports=Wl});var oV=u(jo=>{"use strict";var cv=jo&&jo.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(jo,"__esModule",{value:!0});jo.TSConvict=void 0;var ln=cv(XT()),bC=cv(sV()),bCe=cv(require("fs")),ACe=cv(require("path")),AC=class{constructor(t){if(this.opts={},!ln.default.isConfigClass)throw new Error("A class must be decorated with Config or at least one Property");let r=ln.default.getConvictMetaForClass(t);r!==null&&(typeof r.parser<"u"&&bC.default.addParser(r.parser),typeof r.formats<"u"&&bC.default.addFormats(r.formats),this.opts=r),this.baseModel=new t,this.schema=this.getSchemaFor(this.baseModel),this.client=bC.default(this.schema)}load(t=null){let r=null;if(typeof this.opts.file<"u"&&bCe.default.existsSync(ACe.default.resolve(this.opts.file))&&(r=this.opts.file),typeof t=="string"||Array.isArray(t)){let s;Array.isArray(t)?s=t:s=[t],r!==null&&s.unshift(r),this.client.loadFile(s)}else if(t===null)r!==null?this.client.loadFile(r):this.client.load({});else if(typeof t=="object")r!==null&&this.client.loadFile(r),this.client.load(t);else throw new Error(`Could not load the config given: ${t}`);let n=this.opts.validationMethod===void 0?"strict":this.opts.validationMethod;this.client.validate({allowed:n});let i=this.client.getProperties();return this.applyDataToModel(this.baseModel,i)}getSchemaFor(t){let r={};for(let n of ln.default.getClassProperties(t)){let i=ln.default.getConvictMetaForProperty(t,n);if(ln.default.isConstructor(i)&&ln.default.isConfigClass(i))try{t[n]=new i,r[n]=this.getSchemaFor(t[n])}catch(s){throw console.error(s),new Error("Could not make a new class of "+i)}else r[n]=i}return r}applyDataToModel(t,r){for(let n of ln.default.getClassProperties(t)){let i=ln.default.getConvictMetaForProperty(t,n);ln.default.isConstructor(i)&&ln.default.isConfigClass(i)?this.applyDataToModel(t[n],r[n]||{}):n in r&&(t[n]=r[n])}return t}};jo.TSConvict=AC});var lv=u(zn=>{"use strict";var TCe=zn&&zn.__createBinding||(Object.create?function(e,t,r,n){n===void 0&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}),TC=zn&&zn.__exportStar||function(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&TCe(t,e,r)};Object.defineProperty(zn,"__esModule",{value:!0});TC(XG(),zn);TC(ZG(),zn);TC(oV(),zn)});var PCe={};_V(PCe,{handler:()=>ICe,overrideDBManager:()=>CCe});module.exports=hV(PCe);var rze=yr(Fv());var dx;(function(e){(function(t){var r=typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:Function("return this;")(),n=i(e);typeof r.Reflect>"u"?r.Reflect=e:n=i(r.Reflect,n),t(n);function i(s,o){return function(a,c){typeof s[a]!="function"&&Object.defineProperty(s,a,{configurable:!0,writable:!0,value:c}),o&&o(a,c)}}})(function(t){var r=Object.prototype.hasOwnProperty,n=typeof Symbol=="function",i=n&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=n&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",o=typeof Object.create=="function",a={__proto__:[]}instanceof Array,c=!o&&!a,d={create:o?function(){return Ye(Object.create(null))}:a?function(){return Ye({__proto__:null})}:function(){return Ye({})},has:c?function(b,I){return r.call(b,I)}:function(b,I){return I in b},get:c?function(b,I){return r.call(b,I)?b[I]:void 0}:function(b,I){return b[I]}},f=Object.getPrototypeOf(Function),_=typeof process=="object"&&process.env&&process.env.REFLECT_METADATA_USE_MAP_POLYFILL==="true",m=!_&&typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:F(),h=!_&&typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Y(),g=!_&&typeof WeakMap=="function"?WeakMap:Be(),y=new g;function A(b,I,D,z){if(Oe(D)){if(!Ql(b))throw new TypeError;if(!Wt(I))throw new TypeError;return me(b,I)}else{if(!Ql(b))throw new TypeError;if(!Fe(I))throw new TypeError;if(!Fe(z)&&!Oe(z)&&!Un(z))throw new TypeError;return Un(z)&&(z=void 0),D=ut(D),fe(b,I,D,z)}}t("decorate",A);function R(b,I){function D(z,H){if(!Fe(z))throw new TypeError;if(!Oe(H)&&!yv(H))throw new TypeError;ve(b,I,z,H)}return D}t("metadata",R);function T(b,I,D,z){if(!Fe(D))throw new TypeError;return Oe(z)||(z=ut(z)),ve(b,I,D,z)}t("defineMetadata",T);function $(b,I,D){if(!Fe(I))throw new TypeError;return Oe(D)||(D=ut(D)),ze(b,I,D)}t("hasMetadata",$);function he(b,I,D){if(!Fe(I))throw new TypeError;return Oe(D)||(D=ut(D)),Pe(b,I,D)}t("hasOwnMetadata",he);function sr(b,I,D){if(!Fe(I))throw new TypeError;return Oe(D)||(D=ut(D)),Ce(b,I,D)}t("getMetadata",sr);function kn(b,I,D){if(!Fe(I))throw new TypeError;return Oe(D)||(D=ut(D)),xe(b,I,D)}t("getOwnMetadata",kn);function Fn(b,I){if(!Fe(b))throw new TypeError;return Oe(I)||(I=ut(I)),je(b,I)}t("getMetadataKeys",Fn);function hr(b,I){if(!Fe(b))throw new TypeError;return Oe(I)||(I=ut(I)),we(b,I)}t("getOwnMetadataKeys",hr);function j(b,I,D){if(!Fe(I))throw new TypeError;Oe(D)||(D=ut(D));var z=Te(I,D,!1);if(Oe(z)||!z.delete(b))return!1;if(z.size>0)return!0;var H=y.get(I);return H.delete(D),H.size>0||y.delete(I),!0}t("deleteMetadata",j);function me(b,I){for(var D=b.length-1;D>=0;--D){var z=b[D],H=z(I);if(!Oe(H)&&!Un(H)){if(!Wt(H))throw new TypeError;I=H}}return I}function fe(b,I,D,z){for(var H=b.length-1;H>=0;--H){var st=b[H],oe=st(I,D,z);if(!Oe(oe)&&!Un(oe)){if(!Fe(oe))throw new TypeError;z=oe}}return z}function Te(b,I,D){var z=y.get(b);if(Oe(z)){if(!D)return;z=new m,y.set(b,z)}var H=z.get(I);if(Oe(H)){if(!D)return;H=new m,z.set(I,H)}return H}function ze(b,I,D){var z=Pe(b,I,D);if(z)return!0;var H=k(I);return Un(H)?!1:ze(b,H,D)}function Pe(b,I,D){var z=Te(I,D,!1);return Oe(z)?!1:_s(z.has(b))}function Ce(b,I,D){var z=Pe(b,I,D);if(z)return xe(b,I,D);var H=k(I);if(!Un(H))return Ce(b,H,D)}function xe(b,I,D){var z=Te(I,D,!1);if(!Oe(z))return z.get(b)}function ve(b,I,D,z){var H=Te(D,z,!0);H.set(b,I)}function je(b,I){var D=we(b,I),z=k(b);if(z===null)return D;var H=je(z,I);if(H.length<=0)return D;if(D.length<=0)return H;for(var st=new h,oe=[],le=0,X=D;le<X.length;le++){var ye=X[le],ge=st.has(ye);ge||(st.add(ye),oe.push(ye))}for(var Gn=0,xC=H;Gn<xC.length;Gn++){var ye=xC[Gn],ge=st.has(ye);ge||(st.add(ye),oe.push(ye))}return oe}function we(b,I){var D=[],z=Te(b,I,!1);if(Oe(z))return D;for(var H=z.keys(),st=w(H),oe=0;;){var le=x(st);if(!le)return D.length=oe,D;var X=O(le);try{D[oe]=X}catch(ye){try{E(st)}finally{throw ye}}oe++}}function dn(b){if(b===null)return 1;switch(typeof b){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return b===null?1:6;default:return 6}}function Oe(b){return b===void 0}function Un(b){return b===null}function ie(b){return typeof b=="symbol"}function Fe(b){return typeof b=="object"?b!==null:typeof b=="function"}function pv(b,I){switch(dn(b)){case 0:return b;case 1:return b;case 2:return b;case 3:return b;case 4:return b;case 5:return b}var D=I===3?"string":I===5?"number":"default",z=S(b,i);if(z!==void 0){var H=z.call(b,D);if(Fe(H))throw new TypeError;return H}return _v(b,D==="default"?"number":D)}function _v(b,I){if(I==="string"){var D=b.toString;if(Bn(D)){var z=D.call(b);if(!Fe(z))return z}var H=b.valueOf;if(Bn(H)){var z=H.call(b);if(!Fe(z))return z}}else{var H=b.valueOf;if(Bn(H)){var z=H.call(b);if(!Fe(z))return z}var st=b.toString;if(Bn(st)){var z=st.call(b);if(!Fe(z))return z}}throw new TypeError}function _s(b){return!!b}function hv(b){return""+b}function ut(b){var I=pv(b,3);return ie(I)?I:hv(I)}function Ql(b){return Array.isArray?Array.isArray(b):b instanceof Object?b instanceof Array:Object.prototype.toString.call(b)==="[object Array]"}function Bn(b){return typeof b=="function"}function Wt(b){return typeof b=="function"}function yv(b){switch(dn(b)){case 3:return!0;case 4:return!0;default:return!1}}function S(b,I){var D=b[I];if(D!=null){if(!Bn(D))throw new TypeError;return D}}function w(b){var I=S(b,s);if(!Bn(I))throw new TypeError;var D=I.call(b);if(!Fe(D))throw new TypeError;return D}function O(b){return b.value}function x(b){var I=b.next();return I.done?!1:I}function E(b){var I=b.return;I&&I.call(b)}function k(b){var I=Object.getPrototypeOf(b);if(typeof b!="function"||b===f||I!==f)return I;var D=b.prototype,z=D&&Object.getPrototypeOf(D);if(z==null||z===Object.prototype)return I;var H=z.constructor;return typeof H!="function"||H===b?I:H}function F(){var b={},I=[],D=function(){function oe(le,X,ye){this._index=0,this._keys=le,this._values=X,this._selector=ye}return oe.prototype["@@iterator"]=function(){return this},oe.prototype[s]=function(){return this},oe.prototype.next=function(){var le=this._index;if(le>=0&&le<this._keys.length){var X=this._selector(this._keys[le],this._values[le]);return le+1>=this._keys.length?(this._index=-1,this._keys=I,this._values=I):this._index++,{value:X,done:!1}}return{value:void 0,done:!0}},oe.prototype.throw=function(le){throw this._index>=0&&(this._index=-1,this._keys=I,this._values=I),le},oe.prototype.return=function(le){return this._index>=0&&(this._index=-1,this._keys=I,this._values=I),{value:le,done:!0}},oe}();return function(){function oe(){this._keys=[],this._values=[],this._cacheKey=b,this._cacheIndex=-2}return Object.defineProperty(oe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),oe.prototype.has=function(le){return this._find(le,!1)>=0},oe.prototype.get=function(le){var X=this._find(le,!1);return X>=0?this._values[X]:void 0},oe.prototype.set=function(le,X){var ye=this._find(le,!0);return this._values[ye]=X,this},oe.prototype.delete=function(le){var X=this._find(le,!1);if(X>=0){for(var ye=this._keys.length,ge=X+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--,le===this._cacheKey&&(this._cacheKey=b,this._cacheIndex=-2),!0}return!1},oe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=b,this._cacheIndex=-2},oe.prototype.keys=function(){return new D(this._keys,this._values,z)},oe.prototype.values=function(){return new D(this._keys,this._values,H)},oe.prototype.entries=function(){return new D(this._keys,this._values,st)},oe.prototype["@@iterator"]=function(){return this.entries()},oe.prototype[s]=function(){return this.entries()},oe.prototype._find=function(le,X){return this._cacheKey!==le&&(this._cacheIndex=this._keys.indexOf(this._cacheKey=le)),this._cacheIndex<0&&X&&(this._cacheIndex=this._keys.length,this._keys.push(le),this._values.push(void 0)),this._cacheIndex},oe}();function z(oe,le){return oe}function H(oe,le){return le}function st(oe,le){return[oe,le]}}function Y(){return function(){function b(){this._map=new m}return Object.defineProperty(b.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),b.prototype.has=function(I){return this._map.has(I)},b.prototype.add=function(I){return this._map.set(I,I),this},b.prototype.delete=function(I){return this._map.delete(I)},b.prototype.clear=function(){this._map.clear()},b.prototype.keys=function(){return this._map.keys()},b.prototype.values=function(){return this._map.values()},b.prototype.entries=function(){return this._map.entries()},b.prototype["@@iterator"]=function(){return this.keys()},b.prototype[s]=function(){return this.keys()},b}()}function Be(){var b=16,I=d.create(),D=z();return function(){function X(){this._key=z()}return X.prototype.has=function(ye){var ge=H(ye,!1);return ge!==void 0?d.has(ge,this._key):!1},X.prototype.get=function(ye){var ge=H(ye,!1);return ge!==void 0?d.get(ge,this._key):void 0},X.prototype.set=function(ye,ge){var Gn=H(ye,!0);return Gn[this._key]=ge,this},X.prototype.delete=function(ye){var ge=H(ye,!1);return ge!==void 0?delete ge[this._key]:!1},X.prototype.clear=function(){this._key=z()},X}();function z(){var X;do X="@@WeakMap@@"+le();while(d.has(I,X));return I[X]=!0,X}function H(X,ye){if(!r.call(X,D)){if(!ye)return;Object.defineProperty(X,D,{value:d.create()})}return X[D]}function st(X,ye){for(var ge=0;ge<ye;++ge)X[ge]=Math.random()*255|0;return X}function oe(X){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(X)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(X)):st(new Uint8Array(X),X):st(new Array(X),X)}function le(){var X=oe(b);X[6]=X[6]&79|64,X[8]=X[8]&191|128;for(var ye="",ge=0;ge<b;++ge){var Gn=X[ge];(ge===4||ge===6||ge===8)&&(ye+="-"),Gn<16&&(ye+="0"),ye+=Gn.toString(16).toLowerCase()}return ye}}function Ye(b){return b.__=void 0,delete b.__,b}})})(dx||(dx={}));var dV=yr(wt()),ps=yr(eT()),mv=yr(XB());var fv=yr(lG());function TG(e){return typeof e>"u"||e===null}function dEe(e){return typeof e=="object"&&e!==null}function uEe(e){return Array.isArray(e)?e:TG(e)?[]:[e]}function fEe(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function mEe(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function pEe(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var _Ee=TG,hEe=dEe,yEe=uEe,gEe=mEe,vEe=pEe,SEe=fEe,Qe={isNothing:_Ee,isObject:hEe,toArray:yEe,repeat:gEe,isNegativeZero:vEe,extend:SEe};function CG(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
|
|
38
39
|
|
|
39
|
-
`+e.mark.snippet),
|
|
40
|
-
`+a;for(
|
|
41
|
-
`,a+=
|
|
42
|
-
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)
|
|
43
|
-
`;return a.replace(/\n$/,"")}var
|
|
44
|
-
\r`;function
|
|
45
|
-
`: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
|
|
46
|
-
`,t-1))}function
|
|
47
|
-
`,s?1+c:c):i===
|
|
48
|
-
`);break}for(
|
|
49
|
-
`,s?1+c:c)):
|
|
50
|
-
`,c+1)):c===0?s&&(e.result+=" "):e.result+=
|
|
51
|
-
`,c):e.result+=
|
|
52
|
-
`,s?1+c:c),s=!0,o=!0,c=0,
|
|
53
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var
|
|
54
|
-
`,
|
|
55
|
-
`&&(s+=
|
|
56
|
-
`+
|
|
57
|
-
`,i=
|
|
40
|
+
`+e.mark.snippet),n+" "+r):n}function jl(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=CG(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}jl.prototype=Object.create(Error.prototype);jl.prototype.constructor=jl;jl.prototype.toString=function(t){return this.name+": "+CG(this,t)};var zt=jl;function zT(e,t,r,n,i){var s="",o="",a=Math.floor(i/2)-1;return n-t>a&&(s=" ... ",t=n-a+s.length),r-n>a&&(o=" ...",r=n+a-o.length),{str:s+e.slice(t,r).replace(/\t/g,"\u2192")+o,pos:n-t+s.length}}function jT(e,t){return Qe.repeat(" ",t-e.length)+e}function wEe(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 r=/\r?\n|\r|\0/g,n=[0],i=[],s,o=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&o<0&&(o=n.length-2);o<0&&(o=n.length-1);var a="",c,d,f=Math.min(e.line+t.linesAfter,i.length).toString().length,_=t.maxLength-(t.indent+f+3);for(c=1;c<=t.linesBefore&&!(o-c<0);c++)d=zT(e.buffer,n[o-c],i[o-c],e.position-(n[o]-n[o-c]),_),a=Qe.repeat(" ",t.indent)+jT((e.line-c+1).toString(),f)+" | "+d.str+`
|
|
41
|
+
`+a;for(d=zT(e.buffer,n[o],i[o],e.position,_),a+=Qe.repeat(" ",t.indent)+jT((e.line+1).toString(),f)+" | "+d.str+`
|
|
42
|
+
`,a+=Qe.repeat("-",t.indent+f+3+d.pos)+`^
|
|
43
|
+
`,c=1;c<=t.linesAfter&&!(o+c>=i.length);c++)d=zT(e.buffer,n[o+c],i[o+c],e.position-(n[o]-n[o+c]),_),a+=Qe.repeat(" ",t.indent)+jT((e.line+c+1).toString(),f)+" | "+d.str+`
|
|
44
|
+
`;return a.replace(/\n$/,"")}var EEe=wEe,bEe=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],AEe=["scalar","sequence","mapping"];function TEe(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function CEe(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(bEe.indexOf(r)===-1)throw new zt('Unknown option "'+r+'" 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(r){return r},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=TEe(t.styleAliases||null),AEe.indexOf(this.kind)===-1)throw new zt('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var vt=CEe;function dG(e,t){var r=[];return e[t].forEach(function(n){var i=r.length;r.forEach(function(s,o){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=o)}),r[i]=n}),r}function xEe(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(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,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function FT(e){return this.extend(e)}FT.prototype.extend=function(t){var r=[],n=[];if(t instanceof vt)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new zt("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof vt))throw new zt("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new zt("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 zt("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof vt))throw new zt("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(FT.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=dG(i,"implicit"),i.compiledExplicit=dG(i,"explicit"),i.compiledTypeMap=xEe(i.compiledImplicit,i.compiledExplicit),i};var IEe=FT,REe=new vt("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),NEe=new vt("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),PEe=new vt("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),DEe=new IEe({explicit:[REe,NEe,PEe]});function OEe(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function LEe(){return null}function qEe(e){return e===null}var MEe=new vt("tag:yaml.org,2002:null",{kind:"scalar",resolve:OEe,construct:LEe,predicate:qEe,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function zEe(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 jEe(e){return e==="true"||e==="True"||e==="TRUE"}function kEe(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var FEe=new vt("tag:yaml.org,2002:bool",{kind:"scalar",resolve:zEe,construct:jEe,predicate:kEe,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 UEe(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function BEe(e){return 48<=e&&e<=55}function GEe(e){return 48<=e&&e<=57}function $Ee(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!UEe(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!BEe(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!GEe(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function VEe(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function KEe(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Qe.isNegativeZero(e)}var HEe=new vt("tag:yaml.org,2002:int",{kind:"scalar",resolve:$Ee,construct:VEe,predicate:KEe,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"]}}),WEe=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function JEe(e){return!(e===null||!WEe.test(e)||e[e.length-1]==="_")}function YEe(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var QEe=/^[-+]?[0-9]+e/;function XEe(e,t){var r;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(Qe.isNegativeZero(e))return"-0.0";return r=e.toString(10),QEe.test(r)?r.replace("e",".e"):r}function ZEe(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Qe.isNegativeZero(e))}var ebe=new vt("tag:yaml.org,2002:float",{kind:"scalar",resolve:JEe,construct:YEe,predicate:ZEe,represent:XEe,defaultStyle:"lowercase"}),tbe=DEe.extend({implicit:[MEe,FEe,HEe,ebe]}),rbe=tbe,xG=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),IG=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 nbe(e){return e===null?!1:xG.exec(e)!==null||IG.exec(e)!==null}function ibe(e){var t,r,n,i,s,o,a,c=0,d=null,f,_,m;if(t=xG.exec(e),t===null&&(t=IG.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],o=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c+="0";c=+c}return t[9]&&(f=+t[10],_=+(t[11]||0),d=(f*60+_)*6e4,t[9]==="-"&&(d=-d)),m=new Date(Date.UTC(r,n,i,s,o,a,c)),d&&m.setTime(m.getTime()-d),m}function sbe(e){return e.toISOString()}var obe=new vt("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:nbe,construct:ibe,instanceOf:Date,represent:sbe});function abe(e){return e==="<<"||e===null}var cbe=new vt("tag:yaml.org,2002:merge",{kind:"scalar",resolve:abe}),VT=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
45
|
+
\r`;function lbe(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=VT;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function dbe(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=VT,o=0,a=[];for(t=0;t<i;t++)t%4===0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)),o=o<<6|s.indexOf(n.charAt(t));return r=i%4*6,r===0?(a.push(o>>16&255),a.push(o>>8&255),a.push(o&255)):r===18?(a.push(o>>10&255),a.push(o>>2&255)):r===12&&a.push(o>>4&255),new Uint8Array(a)}function ube(e){var t="",r=0,n,i,s=e.length,o=VT;for(n=0;n<s;n++)n%3===0&&n&&(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=o[r>>18&63],t+=o[r>>12&63],t+=o[r>>6&63],t+=o[r&63]):i===2?(t+=o[r>>10&63],t+=o[r>>4&63],t+=o[r<<2&63],t+=o[64]):i===1&&(t+=o[r>>2&63],t+=o[r<<4&63],t+=o[64],t+=o[64]),t}function fbe(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var mbe=new vt("tag:yaml.org,2002:binary",{kind:"scalar",resolve:lbe,construct:dbe,predicate:fbe,represent:ube}),pbe=Object.prototype.hasOwnProperty,_be=Object.prototype.toString;function hbe(e){if(e===null)return!0;var t=[],r,n,i,s,o,a=e;for(r=0,n=a.length;r<n;r+=1){if(i=a[r],o=!1,_be.call(i)!=="[object Object]")return!1;for(s in i)if(pbe.call(i,s))if(!o)o=!0;else return!1;if(!o)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function ybe(e){return e!==null?e:[]}var gbe=new vt("tag:yaml.org,2002:omap",{kind:"sequence",resolve:hbe,construct:ybe}),vbe=Object.prototype.toString;function Sbe(e){if(e===null)return!0;var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],vbe.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function wbe(e){if(e===null)return[];var t,r,n,i,s,o=e;for(s=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var Ebe=new vt("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Sbe,construct:wbe}),bbe=Object.prototype.hasOwnProperty;function Abe(e){if(e===null)return!0;var t,r=e;for(t in r)if(bbe.call(r,t)&&r[t]!==null)return!1;return!0}function Tbe(e){return e!==null?e:{}}var Cbe=new vt("tag:yaml.org,2002:set",{kind:"mapping",resolve:Abe,construct:Tbe}),RG=rbe.extend({implicit:[obe,cbe],explicit:[mbe,gbe,Ebe,Cbe]}),wi=Object.prototype.hasOwnProperty,Hg=1,NG=2,PG=3,Wg=4,kT=1,xbe=2,uG=3,Ibe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Rbe=/[\x85\u2028\u2029]/,Nbe=/[,\[\]\{\}]/,DG=/^(?:!|!!|![a-z\-]+!)$/i,OG=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function fG(e){return Object.prototype.toString.call(e)}function cn(e){return e===10||e===13}function ds(e){return e===9||e===32}function jt(e){return e===9||e===32||e===10||e===13}function Ro(e){return e===44||e===91||e===93||e===123||e===125}function Pbe(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function Dbe(e){return e===120?2:e===117?4:e===85?8:0}function Obe(e){return 48<=e&&e<=57?e-48:-1}function mG(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
46
|
+
`: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 Lbe(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var LG=new Array(256),qG=new Array(256);for(ls=0;ls<256;ls++)LG[ls]=mG(ls)?1:0,qG[ls]=mG(ls);var ls;function qbe(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||RG,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 MG(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=EEe(r),new zt(t,r)}function K(e,t){throw MG(e,t)}function Jg(e,t){e.onWarning&&e.onWarning.call(null,MG(e,t))}var pG={YAML:function(t,r,n){var i,s,o;t.version!==null&&K(t,"duplication of %YAML directive"),n.length!==1&&K(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&K(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),o=parseInt(i[2],10),s!==1&&K(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=o<2,o!==1&&o!==2&&Jg(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&K(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],DG.test(i)||K(t,"ill-formed tag handle (first argument) of the TAG directive"),wi.call(t.tagMap,i)&&K(t,'there is a previously declared suffix for "'+i+'" tag handle'),OG.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 Si(e,t,r,n){var i,s,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(i=0,s=a.length;i<s;i+=1)o=a.charCodeAt(i),o===9||32<=o&&o<=1114111||K(e,"expected valid JSON character");else Ibe.test(a)&&K(e,"the stream contains non-printable characters");e.result+=a}}function _G(e,t,r,n){var i,s,o,a;for(Qe.isObject(r)||K(e,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),o=0,a=i.length;o<a;o+=1)s=i[o],wi.call(t,s)||(t[s]=r[s],n[s]=!0)}function No(e,t,r,n,i,s,o,a,c){var d,f;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),d=0,f=i.length;d<f;d+=1)Array.isArray(i[d])&&K(e,"nested arrays are not supported inside keys"),typeof i=="object"&&fG(i[d])==="[object Object]"&&(i[d]="[object Object]");if(typeof i=="object"&&fG(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(d=0,f=s.length;d<f;d+=1)_G(e,t,s[d],r);else _G(e,t,s,r);else!e.json&&!wi.call(r,i)&&wi.call(t,i)&&(e.line=o||e.line,e.lineStart=a||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 r[i];return t}function KT(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,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;ds(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(cn(i))for(KT(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Jg(e,"deficient indentation"),n}function Xg(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||jt(r)))}function HT(e,t){t===1?e.result+=" ":t>1&&(e.result+=Qe.repeat(`
|
|
47
|
+
`,t-1))}function Mbe(e,t,r){var n,i,s,o,a,c,d,f,_=e.kind,m=e.result,h;if(h=e.input.charCodeAt(e.position),jt(h)||Ro(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96||(h===63||h===45)&&(i=e.input.charCodeAt(e.position+1),jt(i)||r&&Ro(i)))return!1;for(e.kind="scalar",e.result="",s=o=e.position,a=!1;h!==0;){if(h===58){if(i=e.input.charCodeAt(e.position+1),jt(i)||r&&Ro(i))break}else if(h===35){if(n=e.input.charCodeAt(e.position-1),jt(n))break}else{if(e.position===e.lineStart&&Xg(e)||r&&Ro(h))break;if(cn(h))if(c=e.line,d=e.lineStart,f=e.lineIndent,Je(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}else{e.position=o,e.line=c,e.lineStart=d,e.lineIndent=f;break}}a&&(Si(e,s,o,!1),HT(e,e.line-c),s=o=e.position,a=!1),ds(h)||(o=e.position+1),h=e.input.charCodeAt(++e.position)}return Si(e,s,o,!1),e.result?!0:(e.kind=_,e.result=m,!1)}function zbe(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Si(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else cn(r)?(Si(e,n,i,!0),HT(e,Je(e,!1,t)),n=i=e.position):e.position===e.lineStart&&Xg(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 jbe(e,t){var r,n,i,s,o,a;if(a=e.input.charCodeAt(e.position),a!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(a=e.input.charCodeAt(e.position))!==0;){if(a===34)return Si(e,r,e.position,!0),e.position++,!0;if(a===92){if(Si(e,r,e.position,!0),a=e.input.charCodeAt(++e.position),cn(a))Je(e,!1,t);else if(a<256&&LG[a])e.result+=qG[a],e.position++;else if((o=Dbe(a))>0){for(i=o,s=0;i>0;i--)a=e.input.charCodeAt(++e.position),(o=Pbe(a))>=0?s=(s<<4)+o:K(e,"expected hexadecimal character");e.result+=Lbe(s),e.position++}else K(e,"unknown escape sequence");r=n=e.position}else cn(a)?(Si(e,r,n,!0),HT(e,Je(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Xg(e)?K(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}K(e,"unexpected end of the stream within a double quoted scalar")}function kbe(e,t){var r=!0,n,i,s,o=e.tag,a,c=e.anchor,d,f,_,m,h,g=Object.create(null),y,A,R,T;if(T=e.input.charCodeAt(e.position),T===91)f=93,h=!1,a=[];else if(T===123)f=125,h=!0,a={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=a),T=e.input.charCodeAt(++e.position);T!==0;){if(Je(e,!0,t),T=e.input.charCodeAt(e.position),T===f)return e.position++,e.tag=o,e.anchor=c,e.kind=h?"mapping":"sequence",e.result=a,!0;r?T===44&&K(e,"expected the node content, but found ','"):K(e,"missed comma between flow collection entries"),A=y=R=null,_=m=!1,T===63&&(d=e.input.charCodeAt(e.position+1),jt(d)&&(_=m=!0,e.position++,Je(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Po(e,t,Hg,!1,!0),A=e.tag,y=e.result,Je(e,!0,t),T=e.input.charCodeAt(e.position),(m||e.line===n)&&T===58&&(_=!0,T=e.input.charCodeAt(++e.position),Je(e,!0,t),Po(e,t,Hg,!1,!0),R=e.result),h?No(e,a,g,A,y,R,n,i,s):_?a.push(No(e,null,g,A,y,R,n,i,s)):a.push(y),Je(e,!0,t),T=e.input.charCodeAt(e.position),T===44?(r=!0,T=e.input.charCodeAt(++e.position)):r=!1}K(e,"unexpected end of the stream within a flow collection")}function Fbe(e,t){var r,n,i=kT,s=!1,o=!1,a=t,c=0,d=!1,f,_;if(_=e.input.charCodeAt(e.position),_===124)n=!1;else if(_===62)n=!0;else return!1;for(e.kind="scalar",e.result="";_!==0;)if(_=e.input.charCodeAt(++e.position),_===43||_===45)kT===i?i=_===43?uG:xbe:K(e,"repeat of a chomping mode identifier");else if((f=Obe(_))>=0)f===0?K(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):o?K(e,"repeat of an indentation width identifier"):(a=t+f-1,o=!0);else break;if(ds(_)){do _=e.input.charCodeAt(++e.position);while(ds(_));if(_===35)do _=e.input.charCodeAt(++e.position);while(!cn(_)&&_!==0)}for(;_!==0;){for(KT(e),e.lineIndent=0,_=e.input.charCodeAt(e.position);(!o||e.lineIndent<a)&&_===32;)e.lineIndent++,_=e.input.charCodeAt(++e.position);if(!o&&e.lineIndent>a&&(a=e.lineIndent),cn(_)){c++;continue}if(e.lineIndent<a){i===uG?e.result+=Qe.repeat(`
|
|
48
|
+
`,s?1+c:c):i===kT&&s&&(e.result+=`
|
|
49
|
+
`);break}for(n?ds(_)?(d=!0,e.result+=Qe.repeat(`
|
|
50
|
+
`,s?1+c:c)):d?(d=!1,e.result+=Qe.repeat(`
|
|
51
|
+
`,c+1)):c===0?s&&(e.result+=" "):e.result+=Qe.repeat(`
|
|
52
|
+
`,c):e.result+=Qe.repeat(`
|
|
53
|
+
`,s?1+c:c),s=!0,o=!0,c=0,r=e.position;!cn(_)&&_!==0;)_=e.input.charCodeAt(++e.position);Si(e,r,e.position,!1)}return!0}function hG(e,t){var r,n=e.tag,i=e.anchor,s=[],o,a=!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||(o=e.input.charCodeAt(e.position+1),!jt(o))));){if(a=!0,e.position++,Je(e,!0,-1)&&e.lineIndent<=t){s.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,Po(e,t,PG,!1,!0),s.push(e.result),Je(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)K(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function Ube(e,t,r){var n,i,s,o,a,c,d=e.tag,f=e.anchor,_={},m=Object.create(null),h=null,g=null,y=null,A=!1,R=!1,T;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=_),T=e.input.charCodeAt(e.position);T!==0;){if(!A&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,K(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(T===63||T===58)&&jt(n))T===63?(A&&(No(e,_,m,h,g,null,o,a,c),h=g=y=null),R=!0,A=!0,i=!0):A?(A=!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,T=n;else{if(o=e.line,a=e.lineStart,c=e.position,!Po(e,r,NG,!1,!0))break;if(e.line===s){for(T=e.input.charCodeAt(e.position);ds(T);)T=e.input.charCodeAt(++e.position);if(T===58)T=e.input.charCodeAt(++e.position),jt(T)||K(e,"a whitespace character is expected after the key-value separator within a block mapping"),A&&(No(e,_,m,h,g,null,o,a,c),h=g=y=null),R=!0,A=!1,i=!1,h=e.tag,g=e.result;else if(R)K(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=d,e.anchor=f,!0}else if(R)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=f,!0}if((e.line===s||e.lineIndent>t)&&(A&&(o=e.line,a=e.lineStart,c=e.position),Po(e,t,Wg,!0,i)&&(A?g=e.result:y=e.result),A||(No(e,_,m,h,g,y,o,a,c),h=g=y=null),Je(e,!0,-1),T=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&T!==0)K(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return A&&No(e,_,m,h,g,null,o,a,c),R&&(e.tag=d,e.anchor=f,e.kind="mapping",e.result=_),R}function Bbe(e){var t,r=!1,n=!1,i,s,o;if(o=e.input.charCodeAt(e.position),o!==33)return!1;if(e.tag!==null&&K(e,"duplication of a tag property"),o=e.input.charCodeAt(++e.position),o===60?(r=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,i="!!",o=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(s=e.input.slice(t,e.position),o=e.input.charCodeAt(++e.position)):K(e,"unexpected end of the stream within a verbatim tag")}else{for(;o!==0&&!jt(o);)o===33&&(n?K(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),DG.test(i)||K(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),o=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),Nbe.test(s)&&K(e,"tag suffix cannot contain flow indicator characters")}s&&!OG.test(s)&&K(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{K(e,"tag name is malformed: "+s)}return r?e.tag=s:wi.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 Gbe(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&K(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!jt(r)&&!Ro(r);)r=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 $be(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!jt(n)&&!Ro(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&K(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),wi.call(e.anchorMap,r)||K(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Je(e,!0,-1),!0}function Po(e,t,r,n,i){var s,o,a,c=1,d=!1,f=!1,_,m,h,g,y,A;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=o=a=Wg===r||PG===r,n&&Je(e,!0,-1)&&(d=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;Bbe(e)||Gbe(e);)Je(e,!0,-1)?(d=!0,a=s,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=d||i),(c===1||Wg===r)&&(Hg===r||NG===r?y=t:y=t+1,A=e.position-e.lineStart,c===1?a&&(hG(e,A)||Ube(e,A,y))||kbe(e,y)?f=!0:(o&&Fbe(e,y)||zbe(e,y)||jbe(e,y)?f=!0:$be(e)?(f=!0,(e.tag!==null||e.anchor!==null)&&K(e,"alias node should not have any properties")):Mbe(e,y,Hg===r)&&(f=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):c===0&&(f=a&&hG(e,A))),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,m=e.implicitTypes.length;_<m;_+=1)if(g=e.implicitTypes[_],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(wi.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,h=e.typeMap.multi[e.kind||"fallback"],_=0,m=h.length;_<m;_+=1)if(e.tag.slice(0,h[_].tag.length)===h[_].tag){g=h[_];break}g||K(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&K(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.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||f}function Vbe(e){var t=e.position,r,n,i,s=!1,o;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(o=e.input.charCodeAt(e.position))!==0&&(Je(e,!0,-1),o=e.input.charCodeAt(e.position),!(e.lineIndent>0||o!==37));){for(s=!0,o=e.input.charCodeAt(++e.position),r=e.position;o!==0&&!jt(o);)o=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&K(e,"directive name must not be less than one character in length");o!==0;){for(;ds(o);)o=e.input.charCodeAt(++e.position);if(o===35){do o=e.input.charCodeAt(++e.position);while(o!==0&&!cn(o));break}if(cn(o))break;for(r=e.position;o!==0&&!jt(o);)o=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}o!==0&&KT(e),wi.call(pG,n)?pG[n](e,n,i):Jg(e,'unknown document directive "'+n+'"')}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"),Po(e,e.lineIndent-1,Wg,!1,!0),Je(e,!0,-1),e.checkLineBreaks&&Rbe.test(e.input.slice(t,e.position))&&Jg(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Xg(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 zG(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
54
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new qbe(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,K(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)Vbe(r);return r.documents}function Kbe(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=zG(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function Hbe(e,t){var r=zG(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new zt("expected a single document in the stream, but found more")}}var Wbe=Kbe,Jbe=Hbe,jG={loadAll:Wbe,load:Jbe},kG=Object.prototype.toString,FG=Object.prototype.hasOwnProperty,WT=65279,Ybe=9,kl=10,Qbe=13,Xbe=32,Zbe=33,eAe=34,UT=35,tAe=37,rAe=38,nAe=39,iAe=42,UG=44,sAe=45,Yg=58,oAe=61,aAe=62,cAe=63,lAe=64,BG=91,GG=93,dAe=96,$G=123,uAe=124,VG=125,St={};St[0]="\\0";St[7]="\\a";St[8]="\\b";St[9]="\\t";St[10]="\\n";St[11]="\\v";St[12]="\\f";St[13]="\\r";St[27]="\\e";St[34]='\\"';St[92]="\\\\";St[133]="\\N";St[160]="\\_";St[8232]="\\L";St[8233]="\\P";var fAe=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],mAe=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function pAe(e,t){var r,n,i,s,o,a,c;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o=n[i],a=String(t[o]),o.slice(0,2)==="!!"&&(o="tag:yaml.org,2002:"+o.slice(2)),c=e.compiledTypeMap.fallback[o],c&&FG.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}function _Ae(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new zt("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Qe.repeat("0",n-t.length)+t}var hAe=1,Fl=2;function yAe(e){this.schema=e.schema||RG,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Qe.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=pAe(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==='"'?Fl: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 yG(e,t){for(var r=Qe.repeat(" ",t),n=0,i=-1,s="",o,a=e.length;n<a;)i=e.indexOf(`
|
|
55
|
+
`,n),i===-1?(o=e.slice(n),n=a):(o=e.slice(n,i+1),n=i+1),o.length&&o!==`
|
|
56
|
+
`&&(s+=r),s+=o;return s}function BT(e,t){return`
|
|
57
|
+
`+Qe.repeat(" ",e.indent*t)}function gAe(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function Qg(e){return e===Xbe||e===Ybe}function Ul(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==WT||65536<=e&&e<=1114111}function gG(e){return Ul(e)&&e!==WT&&e!==Qbe&&e!==kl}function vG(e,t,r){var n=gG(e),i=n&&!Qg(e);return(r?n:n&&e!==UG&&e!==BG&&e!==GG&&e!==$G&&e!==VG)&&e!==UT&&!(t===Yg&&!i)||gG(t)&&!Qg(t)&&e===UT||t===Yg&&i}function vAe(e){return Ul(e)&&e!==WT&&!Qg(e)&&e!==sAe&&e!==cAe&&e!==Yg&&e!==UG&&e!==BG&&e!==GG&&e!==$G&&e!==VG&&e!==UT&&e!==rAe&&e!==iAe&&e!==Zbe&&e!==uAe&&e!==oAe&&e!==aAe&&e!==nAe&&e!==eAe&&e!==tAe&&e!==lAe&&e!==dAe}function SAe(e){return!Qg(e)&&e!==Yg}function zl(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function KG(e){var t=/^\n* /;return t.test(e)}var HG=1,GT=2,WG=3,JG=4,Io=5;function wAe(e,t,r,n,i,s,o,a){var c,d=0,f=null,_=!1,m=!1,h=n!==-1,g=-1,y=vAe(zl(e,0))&&SAe(zl(e,e.length-1));if(t||o)for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=zl(e,c),!Ul(d))return Io;y=y&&vG(d,f,a),f=d}else{for(c=0;c<e.length;d>=65536?c+=2:c++){if(d=zl(e,c),d===kl)_=!0,h&&(m=m||c-g-1>n&&e[g+1]!==" ",g=c);else if(!Ul(d))return Io;y=y&&vG(d,f,a),f=d}m=m||h&&c-g-1>n&&e[g+1]!==" "}return!_&&!m?y&&!o&&!i(e)?HG:s===Fl?Io:GT:r>9&&KG(e)?Io:o?s===Fl?Io:GT:m?JG:WG}function EAe(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===Fl?'""':"''";if(!e.noCompatMode&&(fAe.indexOf(t)!==-1||mAe.test(t)))return e.quotingType===Fl?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),o=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),a=n||e.flowLevel>-1&&r>=e.flowLevel;function c(d){return gAe(e,d)}switch(wAe(t,a,e.indent,o,c,e.quotingType,e.forceQuotes&&!n,i)){case HG:return t;case GT:return"'"+t.replace(/'/g,"''")+"'";case WG:return"|"+SG(t,e.indent)+wG(yG(t,s));case JG:return">"+SG(t,e.indent)+wG(yG(bAe(t,o),s));case Io:return'"'+AAe(t)+'"';default:throw new zt("impossible error: invalid scalar style")}}()}function SG(e,t){var r=KG(e)?String(t):"",n=e[e.length-1]===`
|
|
58
|
+
`,i=n&&(e[e.length-2]===`
|
|
58
59
|
`||e===`
|
|
59
|
-
`),s=i?"+":
|
|
60
|
-
`}function
|
|
61
|
-
`?e.slice(0,-1):e}function
|
|
62
|
-
`);return
|
|
63
|
-
`||e[0]===" ",s,o;o=
|
|
64
|
-
`:"")+
|
|
60
|
+
`),s=i?"+":n?"":"-";return r+s+`
|
|
61
|
+
`}function wG(e){return e[e.length-1]===`
|
|
62
|
+
`?e.slice(0,-1):e}function bAe(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var d=e.indexOf(`
|
|
63
|
+
`);return d=d!==-1?d:e.length,r.lastIndex=d,EG(e.slice(0,d),t)}(),i=e[0]===`
|
|
64
|
+
`||e[0]===" ",s,o;o=r.exec(e);){var a=o[1],c=o[2];s=c[0]===" ",n+=a+(!i&&!s&&c!==""?`
|
|
65
|
+
`:"")+EG(c,t),i=s}return n}function EG(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,o=0,a=0,c="";n=r.exec(e);)a=n.index,a-i>t&&(s=o>i?o:a,c+=`
|
|
65
66
|
`+e.slice(i,s),i=s+1),o=a;return c+=`
|
|
66
67
|
`,e.length-i>t&&o>i?c+=e.slice(i,o)+`
|
|
67
|
-
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function
|
|
68
|
-
`:""}var
|
|
68
|
+
`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function AAe(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=zl(e,i),n=St[r],!n&&Ul(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||_Ae(r);return t}function TAe(e,t,r){var n="",i=e.tag,s,o,a;for(s=0,o=r.length;s<o;s+=1)a=r[s],e.replacer&&(a=e.replacer.call(r,String(s),a)),(On(e,t,a,!1,!1)||typeof a>"u"&&On(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function bG(e,t,r,n){var i="",s=e.tag,o,a,c;for(o=0,a=r.length;o<a;o+=1)c=r[o],e.replacer&&(c=e.replacer.call(r,String(o),c)),(On(e,t+1,c,!0,!0,!1,!0)||typeof c>"u"&&On(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=BT(e,t)),e.dump&&kl===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function CAe(e,t,r){var n="",i=e.tag,s=Object.keys(r),o,a,c,d,f;for(o=0,a=s.length;o<a;o+=1)f="",n!==""&&(f+=", "),e.condenseFlow&&(f+='"'),c=s[o],d=r[c],e.replacer&&(d=e.replacer.call(r,c,d)),On(e,t,c,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),On(e,t,d,!1,!1)&&(f+=e.dump,n+=f));e.tag=i,e.dump="{"+n+"}"}function xAe(e,t,r,n){var i="",s=e.tag,o=Object.keys(r),a,c,d,f,_,m;if(e.sortKeys===!0)o.sort();else if(typeof e.sortKeys=="function")o.sort(e.sortKeys);else if(e.sortKeys)throw new zt("sortKeys must be a boolean or a function");for(a=0,c=o.length;a<c;a+=1)m="",(!n||i!=="")&&(m+=BT(e,t)),d=o[a],f=r[d],e.replacer&&(f=e.replacer.call(r,d,f)),On(e,t+1,d,!0,!0,!0)&&(_=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,_&&(e.dump&&kl===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,_&&(m+=BT(e,t)),On(e,t+1,f,!0,_)&&(e.dump&&kl===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,i+=m));e.tag=s,e.dump=i||"{}"}function AG(e,t,r){var n,i,s,o,a,c;for(i=r?e.explicitTypes:e.implicitTypes,s=0,o=i.length;s<o;s+=1)if(a=i[s],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,kG.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(FG.call(a.represent,c))n=a.represent[c](t,c);else throw new zt("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function On(e,t,r,n,i,s,o){e.tag=null,e.dump=r,AG(e,r,!1)||AG(e,r,!0);var a=kG.call(e.dump),c=n,d;n&&(n=e.flowLevel<0||e.flowLevel>t);var f=a==="[object Object]"||a==="[object Array]",_,m;if(f&&(_=e.duplicates.indexOf(r),m=_!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&t>0)&&(i=!1),m&&e.usedDuplicates[_])e.dump="*ref_"+_;else{if(f&&m&&!e.usedDuplicates[_]&&(e.usedDuplicates[_]=!0),a==="[object Object]")n&&Object.keys(e.dump).length!==0?(xAe(e,t,e.dump,i),m&&(e.dump="&ref_"+_+e.dump)):(CAe(e,t,e.dump),m&&(e.dump="&ref_"+_+" "+e.dump));else if(a==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!o&&t>0?bG(e,t-1,e.dump,i):bG(e,t,e.dump,i),m&&(e.dump="&ref_"+_+e.dump)):(TAe(e,t,e.dump),m&&(e.dump="&ref_"+_+" "+e.dump));else if(a==="[object String]")e.tag!=="?"&&EAe(e,e.dump,t,s,c);else{if(a==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new zt("unacceptable kind of an object to dump "+a)}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 IAe(e,t){var r=[],n=[],i,s;for($T(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function $T(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)$T(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)$T(e[n[i]],t,r)}function RAe(e,t){t=t||{};var r=new yAe(t);r.noRefs||IAe(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),On(r,0,n,!0,!0)?r.dump+`
|
|
69
|
+
`:""}var NAe=RAe,PAe={dump:NAe};function JT(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 YG=jG.load,zMe=jG.loadAll,jMe=PAe.dump;var kMe=JT("safeLoad","load"),FMe=JT("safeLoadAll","loadAll"),UMe=JT("safeDump","dump");var Yl=yr(lv()),cV=yr(lv());var uv=yr(vT()),dv=class{static async getExistingFiles(t){let r=[];for(let n of t)await(0,uv.pathExists)(n)&&r.push(n);return r}static getExistingFilesSync(t){let r=[];for(let n of t)(0,uv.pathExistsSync)(n)&&r.push(n);return r}};var aV=yr(lv());var Jl=class{};hs([(0,aV.Property)({doc:"DynamoDB Table Name",default:"MicroApps",env:"DATABASE_TABLE_NAME"})],Jl.prototype,"tableName",2);var it=class{static configFiles(){let t=["./configs/config.yaml","./configs/config.yml",`./configs/config-${it.envLevel}.yaml`,`./configs/config-${it.envLevel}.yml`];return dv.getExistingFilesSync(t)}static get instance(){if(it._instance===void 0){let t=new cV.TSConvict(it);it._instance=t.load(it.configFiles())}return it._instance}static get envLevel(){let t=process.env.NODE_ENV||"dev";return t.startsWith("prod")?"prod":t==="qa"?"qa":t==="local"?"local":"dev"}};hs([Yl.Property(Jl)],it.prototype,"db",2),hs([Yl.Property({doc:"Path prefix for this deployment",default:"",env:"ROOT_PATH_PREFIX"})],it.prototype,"rootPathPrefix",2),it=hs([Yl.Config({file:"config.yml",validationMethod:"strict",parser:{extension:["yml","yaml"],parse:YG},formats:{url:fv.url,ipaddress:fv.ipaddress}})],it);var lV=yr(ET()),ko=class{};ko.Instance=new lV.LambdaLog({silent:process.env.JEST_WORKER_ID!==void 0});var jn=ko.Instance,Fo,CC=new dV.DynamoDBClient({maxAttempts:8});function CCe(e){Fo=e.dbManager,CC=e.dynamoClient}Fo=new ps.DBManager({dynamoClient:CC,tableName:it.instance.db.tableName});var xCe=(0,mv.loadAppFrame)({basePath:__dirname}),Ht=(0,mv.normalizePathPrefix)(it.instance.rootPathPrefix);async function ICe(e,t){jn.options.meta={source:"microapps-router",awsRequestId:t.awsRequestId,rawPath:e.rawPath},jn.info("received request",{event:e}),Fo===void 0&&(Fo=new ps.DBManager({dynamoClient:CC,tableName:it.instance.db.tableName}));let r={statusCode:200,headers:{},isBase64Encoded:!1};try{if(Ht!==""&&!e.rawPath.startsWith(Ht))return r.statusCode=404,r;let i=(Ht!==""&&e.rawPath.startsWith(Ht)?e.rawPath.slice(Ht.length-1):e.rawPath).split("/"),s="";if(i.length>=3&&i[2]!==""&&(s=i.slice(2).join("/")),(i.length===3||i.length===4)&&await NCe({response:r,appName:i[1],semVer:i[2]}))return r;if(i.length>=2)await RCe({event:e,response:r,appName:i[1],additionalParts:s});else throw new Error("Unmatched route")}catch(n){jn.error("unexpected exception - returning 599",{statusCode:599,error:n}),r.statusCode=599,r.headers={},r.headers["Content-Type"]="text/plain",r.body=`Router - Could not route: ${e.rawPath}, ${n.message}`}return r}async function RCe(e){var f,_;let{event:t,response:r,appName:n,additionalParts:i}=e,s;if(r.headers===void 0)throw new Error("do not call me with undefined headers");try{s=await ps.Application.GetVersionsAndRules({dbManager:Fo,key:{AppName:n}})}catch(m){jn.info(`GetVersionsAndRules threw for '${n}', assuming not found - returning 404`,{appName:n,statusCode:404,error:m}),r.statusCode=404,r.headers["Cache-Control"]="private",r.headers["Content-Type"]="text/plain; charset=UTF-8",r.body=`Router - Could not find app: ${t.rawPath}, ${n}`;return}let o=(_=(f=s.Rules)==null?void 0:f.RuleSet.default)==null?void 0:_.SemVer;if(o==null){jn.error(`could not find app ${n}, for path ${t.rawPath} - returning 404`,{statusCode:404}),r.statusCode=404,r.headers["Cache-Control"]="private",r.headers["Content-Type"]="text/plain; charset=UTF-8",r.body=`Router - Could not find app: ${t.rawPath}, ${n}`;return}let a=s.Versions.find(m=>m.SemVer===o),c;(a==null?void 0:a.Type)!=="static"&&((a==null?void 0:a.DefaultFile)===void 0||(a==null?void 0:a.DefaultFile)===""||i!=="")?(c=`${Ht}/${n}/${o}`,i!==""&&(c+=`/${i}`)):c=`${Ht}/${n}/${o}/${a.DefaultFile}`;let d=xCe.replace("{{iframeSrc}}",c);r.headers["Cache-Control"]="private",r.headers["Content-Type"]="text/html; charset=UTF-8",r.statusCode=200,r.body=d,jn.info(`found app ${n}, for path ${t.rawPath} - returning 200`,{statusCode:200,routedPath:c})}async function NCe(e){let{response:t,appName:r,semVer:n}=e,i;if(t.headers===void 0)throw new Error("do not call me with undefined headers");try{i=await ps.Version.LoadVersion({dbManager:Fo,key:{AppName:r,SemVer:n}})}catch(s){return jn.info(`LoadVersion threw for '${Ht}/${r}/${n}' - falling through to app routing'`,{appName:r,semVer:n,error:s}),!1}return i===void 0?(jn.info(`LoadVersion returned undefined for '${Ht}/${r}/${n}', assuming not found - falling through to app routing'`,{appName:r,semVer:n}),!1):i.DefaultFile?(t.statusCode=302,t.headers["Cache-Control"]="private",t.headers.Location=`${Ht}/${r}/${n}/${i.DefaultFile}`,jn.info(`found '${Ht}/${r}/${n}' - returning 302 to ${Ht}/${r}/${n}/${i.DefaultFile}`,{statusCode:302,routedPath:`${Ht}/${r}/${n}/${i.DefaultFile}`}),!0):!1}0&&(module.exports={handler,overrideDBManager});
|
|
69
70
|
/*! *****************************************************************************
|
|
70
71
|
Copyright (C) Microsoft. All rights reserved.
|
|
71
72
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
|