@pwrdrvr/microapps-cdk
Version:
MicroApps framework, by PwrDrvr LLC, delivered as an AWS CDK construct that provides the DynamoDB, Router service, Deploy service, API Gateway, and CloudFront distribution.
4 lines • 825 kB
JavaScript
"use strict";var H6=Object.create;var nc=Object.defineProperty;var vb=Object.getOwnPropertyDescriptor;var W6=Object.getOwnPropertyNames;var K6=Object.getPrototypeOf,J6=Object.prototype.hasOwnProperty;var et=(e,t)=>()=>(e&&(t=e(e=0)),t);var v=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Fo=(e,t)=>{for(var r in t)nc(e,r,{get:t[r],enumerable:!0})},gb=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of W6(t))!J6.call(e,i)&&i!==r&&nc(e,i,{get:()=>t[i],enumerable:!(n=vb(t,i))||n.enumerable});return e};var dr=(e,t,r)=>(r=e!=null?H6(K6(e)):{},gb(t||!e||!e.__esModule?nc(r,"default",{value:e,enumerable:!0}):r,e)),$t=e=>gb(nc({},"__esModule",{value:!0}),e),fs=(e,t,r,n)=>{for(var i=n>1?void 0:n?vb(t,r):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(n?s(t,r,i):s(i))||i);return n&&i&&nc(t,r,i),i};var Eb=v(gh=>{var Sb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");gh.encode=function(e){if(0<=e&&e<Sb.length)return Sb[e];throw new TypeError("Must be between 0 and 63: "+e)};gh.decode=function(e){var t=65,r=90,n=97,i=122,o=48,s=57,a=43,c=47,l=26,u=52;return t<=e&&e<=r?e-t:n<=e&&e<=i?e-n+l:o<=e&&e<=s?e-o+u:e==a?62:e==c?63:-1}});var bh=v(Eh=>{var bb=Eb(),Sh=5,Cb=1<<Sh,wb=Cb-1,xb=Cb;function Y6(e){return e<0?(-e<<1)+1:(e<<1)+0}function X6(e){var t=(e&1)===1,r=e>>1;return t?-r:r}Eh.encode=function(t){var r="",n,i=Y6(t);do n=i&wb,i>>>=Sh,i>0&&(n|=xb),r+=bb.encode(n);while(i>0);return r};Eh.decode=function(t,r,n){var i=t.length,o=0,s=0,a,c;do{if(r>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=bb.decode(t.charCodeAt(r++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));a=!!(c&xb),c&=wb,o=o+(c<<s),s+=Sh}while(a);n.value=X6(o),n.rest=r}});var _s=v(Dt=>{function Q6(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}Dt.getArg=Q6;var Pb=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,Z6=/^data:.+\,.+$/;function ic(e){var t=e.match(Pb);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Dt.urlParse=ic;function ms(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}Dt.urlGenerate=ms;function Ch(e){var t=e,r=ic(e);if(r){if(!r.path)return e;t=r.path}for(var n=Dt.isAbsolute(t),i=t.split(/\/+/),o,s=0,a=i.length-1;a>=0;a--)o=i[a],o==="."?i.splice(a,1):o===".."?s++:s>0&&(o===""?(i.splice(a+1,s),s=0):(i.splice(a,2),s--));return t=i.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,ms(r)):t}Dt.normalize=Ch;function Tb(e,t){e===""&&(e="."),t===""&&(t=".");var r=ic(t),n=ic(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),ms(r);if(r||t.match(Z6))return t;if(n&&!n.host&&!n.path)return n.host=t,ms(n);var i=t.charAt(0)==="/"?t:Ch(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=i,ms(n)):i}Dt.join=Tb;Dt.isAbsolute=function(e){return e.charAt(0)==="/"||Pb.test(e)};function e8(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)}Dt.relative=e8;var Ab=(function(){var e=Object.create(null);return!("__proto__"in e)})();function Ib(e){return e}function t8(e){return Ob(e)?"$"+e:e}Dt.toSetString=Ab?Ib:t8;function r8(e){return Ob(e)?e.slice(1):e}Dt.fromSetString=Ab?Ib:r8;function Ob(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 n8(e,t,r){var n=hs(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:hs(e.name,t.name)}Dt.compareByOriginalPositions=n8;function i8(e,t,r){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0||r)||(n=hs(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:hs(e.name,t.name)}Dt.compareByGeneratedPositionsDeflated=i8;function hs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function o8(e,t){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=hs(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:hs(e.name,t.name)}Dt.compareByGeneratedPositionsInflated=o8;function s8(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Dt.parseSourceMapInput=s8;function a8(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=ic(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=Tb(ms(n),t)}return Ch(t)}Dt.computeSourceURL=a8});var Ph=v(Rb=>{var wh=_s(),xh=Object.prototype.hasOwnProperty,jo=typeof Map<"u";function Mn(){this._array=[],this._set=jo?new Map:Object.create(null)}Mn.fromArray=function(t,r){for(var n=new Mn,i=0,o=t.length;i<o;i++)n.add(t[i],r);return n};Mn.prototype.size=function(){return jo?this._set.size:Object.getOwnPropertyNames(this._set).length};Mn.prototype.add=function(t,r){var n=jo?t:wh.toSetString(t),i=jo?this.has(t):xh.call(this._set,n),o=this._array.length;(!i||r)&&this._array.push(t),i||(jo?this._set.set(t,o):this._set[n]=o)};Mn.prototype.has=function(t){if(jo)return this._set.has(t);var r=wh.toSetString(t);return xh.call(this._set,r)};Mn.prototype.indexOf=function(t){if(jo){var r=this._set.get(t);if(r>=0)return r}else{var n=wh.toSetString(t);if(xh.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};Mn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Mn.prototype.toArray=function(){return this._array.slice()};Rb.ArraySet=Mn});var kb=v(Nb=>{var Db=_s();function c8(e,t){var r=e.generatedLine,n=t.generatedLine,i=e.generatedColumn,o=t.generatedColumn;return n>r||n==r&&o>=i||Db.compareByGeneratedPositionsInflated(e,t)<=0}function Ql(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Ql.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Ql.prototype.add=function(t){c8(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Ql.prototype.toArray=function(){return this._sorted||(this._array.sort(Db.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};Nb.MappingList=Ql});var Th=v(Lb=>{var oc=bh(),it=_s(),Zl=Ph().ArraySet,l8=kb().MappingList;function Cr(e){e||(e={}),this._file=it.getArg(e,"file",null),this._sourceRoot=it.getArg(e,"sourceRoot",null),this._skipValidation=it.getArg(e,"skipValidation",!1),this._sources=new Zl,this._names=new Zl,this._mappings=new l8,this._sourcesContents=null}Cr.prototype._version=3;Cr.fromSourceMap=function(t){var r=t.sourceRoot,n=new Cr({file:t.file,sourceRoot:r});return t.eachMapping(function(i){var o={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(o.source=i.source,r!=null&&(o.source=it.relative(r,o.source)),o.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(o.name=i.name)),n.addMapping(o)}),t.sources.forEach(function(i){var o=i;r!==null&&(o=it.relative(r,i)),n._sources.has(o)||n._sources.add(o);var s=t.sourceContentFor(i);s!=null&&n.setSourceContent(i,s)}),n};Cr.prototype.addMapping=function(t){var r=it.getArg(t,"generated"),n=it.getArg(t,"original",null),i=it.getArg(t,"source",null),o=it.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,i,o),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),o!=null&&(o=String(o),this._names.has(o)||this._names.add(o)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:i,name:o})};Cr.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=it.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[it.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[it.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Cr.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 o=this._sourceRoot;o!=null&&(i=it.relative(o,i));var s=new Zl,a=new Zl;this._mappings.unsortedForEach(function(c){if(c.source===i&&c.originalLine!=null){var l=t.originalPositionFor({line:c.originalLine,column:c.originalColumn});l.source!=null&&(c.source=l.source,n!=null&&(c.source=it.join(n,c.source)),o!=null&&(c.source=it.relative(o,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var u=c.source;u!=null&&!s.has(u)&&s.add(u);var p=c.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=s,this._names=a,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(n!=null&&(c=it.join(n,c)),o!=null&&(c=it.relative(o,c)),this.setSourceContent(c,l))},this)};Cr.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}))}};Cr.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,i=0,o=0,s=0,a="",c,l,u,p,f=this._mappings.toArray(),h=0,y=f.length;h<y;h++){if(l=f[h],c="",l.generatedLine!==r)for(t=0;l.generatedLine!==r;)c+=";",r++;else if(h>0){if(!it.compareByGeneratedPositionsInflated(l,f[h-1]))continue;c+=","}c+=oc.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),c+=oc.encode(p-s),s=p,c+=oc.encode(l.originalLine-1-i),i=l.originalLine-1,c+=oc.encode(l.originalColumn-n),n=l.originalColumn,l.name!=null&&(u=this._names.indexOf(l.name),c+=oc.encode(u-o),o=u)),a+=c}return a};Cr.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=it.relative(r,n));var i=it.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Cr.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};Cr.prototype.toString=function(){return JSON.stringify(this.toJSON())};Lb.SourceMapGenerator=Cr});var Mb=v(qo=>{qo.GREATEST_LOWER_BOUND=1;qo.LEAST_UPPER_BOUND=2;function Ah(e,t,r,n,i,o){var s=Math.floor((t-e)/2)+e,a=i(r,n[s],!0);return a===0?s:a>0?t-s>1?Ah(s,t,r,n,i,o):o==qo.LEAST_UPPER_BOUND?t<n.length?t:-1:s:s-e>1?Ah(e,s,r,n,i,o):o==qo.LEAST_UPPER_BOUND?s:e<0?-1:e}qo.search=function(t,r,n,i){if(r.length===0)return-1;var o=Ah(-1,r.length,t,r,n,i||qo.GREATEST_LOWER_BOUND);if(o<0)return-1;for(;o-1>=0&&n(r[o],r[o-1],!0)===0;)--o;return o}});var jb=v(Fb=>{function Ih(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function u8(e,t){return Math.round(e+Math.random()*(t-e))}function Oh(e,t,r,n){if(r<n){var i=u8(r,n),o=r-1;Ih(e,i,n);for(var s=e[n],a=r;a<n;a++)t(e[a],s)<=0&&(o+=1,Ih(e,o,a));Ih(e,o+1,a);var c=o+1;Oh(e,t,r,c-1),Oh(e,t,c+1,n)}}Fb.quickSort=function(e,t){Oh(e,t,0,e.length-1)}});var Bb=v(eu=>{var G=_s(),Rh=Mb(),ys=Ph().ArraySet,d8=bh(),sc=jb().quickSort;function Be(e,t){var r=e;return typeof e=="string"&&(r=G.parseSourceMapInput(e)),r.sections!=null?new Kr(r,t):new Et(r,t)}Be.fromSourceMap=function(e,t){return Et.fromSourceMap(e,t)};Be.prototype._version=3;Be.prototype.__generatedMappings=null;Object.defineProperty(Be.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Be.prototype.__originalMappings=null;Object.defineProperty(Be.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Be.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};Be.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};Be.GENERATED_ORDER=1;Be.ORIGINAL_ORDER=2;Be.GREATEST_LOWER_BOUND=1;Be.LEAST_UPPER_BOUND=2;Be.prototype.eachMapping=function(t,r,n){var i=r||null,o=n||Be.GENERATED_ORDER,s;switch(o){case Be.GENERATED_ORDER:s=this._generatedMappings;break;case Be.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;s.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=G.computeSourceURL(a,l,this._sourceMapURL),{source:l,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)};Be.prototype.allGeneratedPositionsFor=function(t){var r=G.getArg(t,"line"),n={source:G.getArg(t,"source"),originalLine:r,originalColumn:G.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",G.compareByOriginalPositions,Rh.LEAST_UPPER_BOUND);if(o>=0){var s=this._originalMappings[o];if(t.column===void 0)for(var a=s.originalLine;s&&s.originalLine===a;)i.push({line:G.getArg(s,"generatedLine",null),column:G.getArg(s,"generatedColumn",null),lastColumn:G.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o];else for(var c=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==c;)i.push({line:G.getArg(s,"generatedLine",null),column:G.getArg(s,"generatedColumn",null),lastColumn:G.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++o]}return i};eu.SourceMapConsumer=Be;function Et(e,t){var r=e;typeof e=="string"&&(r=G.parseSourceMapInput(e));var n=G.getArg(r,"version"),i=G.getArg(r,"sources"),o=G.getArg(r,"names",[]),s=G.getArg(r,"sourceRoot",null),a=G.getArg(r,"sourcesContent",null),c=G.getArg(r,"mappings"),l=G.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);s&&(s=G.normalize(s)),i=i.map(String).map(G.normalize).map(function(u){return s&&G.isAbsolute(s)&&G.isAbsolute(u)?G.relative(s,u):u}),this._names=ys.fromArray(o.map(String),!0),this._sources=ys.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(u){return G.computeSourceURL(s,u,t)}),this.sourceRoot=s,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=t,this.file=l}Et.prototype=Object.create(Be.prototype);Et.prototype.consumer=Be;Et.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=G.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};Et.fromSourceMap=function(t,r){var n=Object.create(Et.prototype),i=n._names=ys.fromArray(t._names.toArray(),!0),o=n._sources=ys.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 G.computeSourceURL(n.sourceRoot,h,r)});for(var s=t._mappings.toArray().slice(),a=n.__generatedMappings=[],c=n.__originalMappings=[],l=0,u=s.length;l<u;l++){var p=s[l],f=new qb;f.generatedLine=p.generatedLine,f.generatedColumn=p.generatedColumn,p.source&&(f.source=o.indexOf(p.source),f.originalLine=p.originalLine,f.originalColumn=p.originalColumn,p.name&&(f.name=i.indexOf(p.name)),c.push(f)),a.push(f)}return sc(n.__originalMappings,G.compareByOriginalPositions),n};Et.prototype._version=3;Object.defineProperty(Et.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function qb(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Et.prototype._parseMappings=function(t,r){for(var n=1,i=0,o=0,s=0,a=0,c=0,l=t.length,u=0,p={},f={},h=[],y=[],_,g,b,E,M;u<l;)if(t.charAt(u)===";")n++,u++,i=0;else if(t.charAt(u)===",")u++;else{for(_=new qb,_.generatedLine=n,E=u;E<l&&!this._charIsMappingSeparator(t,E);E++);if(g=t.slice(u,E),b=p[g],b)u+=g.length;else{for(b=[];u<E;)d8.decode(t,u,f),M=f.value,u=f.rest,b.push(M);if(b.length===2)throw new Error("Found a source, but no line and column");if(b.length===3)throw new Error("Found a source and line, but no column");p[g]=b}_.generatedColumn=i+b[0],i=_.generatedColumn,b.length>1&&(_.source=a+b[1],a+=b[1],_.originalLine=o+b[2],o=_.originalLine,_.originalLine+=1,_.originalColumn=s+b[3],s=_.originalColumn,b.length>4&&(_.name=c+b[4],c+=b[4])),y.push(_),typeof _.originalLine=="number"&&h.push(_)}sc(y,G.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,sc(h,G.compareByOriginalPositions),this.__originalMappings=h};Et.prototype._findMapping=function(t,r,n,i,o,s){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 Rh.search(t,r,o,s)};Et.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}};Et.prototype.originalPositionFor=function(t){var r={generatedLine:G.getArg(t,"line"),generatedColumn:G.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",G.compareByGeneratedPositionsDeflated,G.getArg(t,"bias",Be.GREATEST_LOWER_BOUND));if(n>=0){var i=this._generatedMappings[n];if(i.generatedLine===r.generatedLine){var o=G.getArg(i,"source",null);o!==null&&(o=this._sources.at(o),o=G.computeSourceURL(this.sourceRoot,o,this._sourceMapURL));var s=G.getArg(i,"name",null);return s!==null&&(s=this._names.at(s)),{source:o,line:G.getArg(i,"originalLine",null),column:G.getArg(i,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};Et.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};Et.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=G.relative(this.sourceRoot,i));var o;if(this.sourceRoot!=null&&(o=G.urlParse(this.sourceRoot))){var s=i.replace(/^file:\/\//,"");if(o.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!o.path||o.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.')};Et.prototype.generatedPositionFor=function(t){var r=G.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:G.getArg(t,"line"),originalColumn:G.getArg(t,"column")},i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",G.compareByOriginalPositions,G.getArg(t,"bias",Be.GREATEST_LOWER_BOUND));if(i>=0){var o=this._originalMappings[i];if(o.source===n.source)return{line:G.getArg(o,"generatedLine",null),column:G.getArg(o,"generatedColumn",null),lastColumn:G.getArg(o,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};eu.BasicSourceMapConsumer=Et;function Kr(e,t){var r=e;typeof e=="string"&&(r=G.parseSourceMapInput(e));var n=G.getArg(r,"version"),i=G.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new ys,this._names=new ys;var o={line:-1,column:0};this._sections=i.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var a=G.getArg(s,"offset"),c=G.getArg(a,"line"),l=G.getArg(a,"column");if(c<o.line||c===o.line&&l<o.column)throw new Error("Section offsets must be ordered and non-overlapping.");return o=a,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new Be(G.getArg(s,"map"),t)}})}Kr.prototype=Object.create(Be.prototype);Kr.prototype.constructor=Be;Kr.prototype._version=3;Object.defineProperty(Kr.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}});Kr.prototype.originalPositionFor=function(t){var r={generatedLine:G.getArg(t,"line"),generatedColumn:G.getArg(t,"column")},n=Rh.search(r,this._sections,function(o,s){var a=o.generatedLine-s.generatedOffset.generatedLine;return a||o.generatedColumn-s.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}};Kr.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};Kr.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var i=this._sections[n],o=i.consumer.sourceContentFor(t,!0);if(o)return o}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};Kr.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex(G.getArg(t,"source"))!==-1){var i=n.consumer.generatedPositionFor(t);if(i){var o={line:i.line+(n.generatedOffset.generatedLine-1),column:i.column+(n.generatedOffset.generatedLine===i.line?n.generatedOffset.generatedColumn-1:0)};return o}}}return{line:null,column:null}};Kr.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var i=this._sections[n],o=i.consumer._generatedMappings,s=0;s<o.length;s++){var a=o[s],c=i.consumer._sources.at(a.source);c=G.computeSourceURL(i.consumer.sourceRoot,c,this._sourceMapURL),this._sources.add(c),c=this._sources.indexOf(c);var l=null;a.name&&(l=i.consumer._names.at(a.name),this._names.add(l),l=this._names.indexOf(l));var u={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:l};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}sc(this.__generatedMappings,G.compareByGeneratedPositionsDeflated),sc(this.__originalMappings,G.compareByOriginalPositions)};eu.IndexedSourceMapConsumer=Kr});var Gb=v(Ub=>{var p8=Th().SourceMapGenerator,tu=_s(),f8=/(\r?\n)/,m8=10,vs="$$$isSourceNode$$$";function pr(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[vs]=!0,n!=null&&this.add(n)}pr.fromStringWithSourceMap=function(t,r,n){var i=new pr,o=t.split(f8),s=0,a=function(){var f=y(),h=y()||"";return f+h;function y(){return s<o.length?o[s++]:void 0}},c=1,l=0,u=null;return r.eachMapping(function(f){if(u!==null)if(c<f.generatedLine)p(u,a()),c++,l=0;else{var h=o[s]||"",y=h.substr(0,f.generatedColumn-l);o[s]=h.substr(f.generatedColumn-l),l=f.generatedColumn,p(u,y),u=f;return}for(;c<f.generatedLine;)i.add(a()),c++;if(l<f.generatedColumn){var h=o[s]||"";i.add(h.substr(0,f.generatedColumn)),o[s]=h.substr(f.generatedColumn),l=f.generatedColumn}u=f},this),s<o.length&&(u&&p(u,a()),i.add(o.splice(s).join(""))),r.sources.forEach(function(f){var h=r.sourceContentFor(f);h!=null&&(n!=null&&(f=tu.join(n,f)),i.setSourceContent(f,h))}),i;function p(f,h){if(f===null||f.source===void 0)i.add(h);else{var y=n?tu.join(n,f.source):f.source;i.add(new pr(f.originalLine,f.originalColumn,y,h,f.name))}}};pr.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(r){this.add(r)},this);else if(t[vs]||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};pr.prototype.prepend=function(t){if(Array.isArray(t))for(var r=t.length-1;r>=0;r--)this.prepend(t[r]);else if(t[vs]||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};pr.prototype.walk=function(t){for(var r,n=0,i=this.children.length;n<i;n++)r=this.children[n],r[vs]?r.walk(t):r!==""&&t(r,{source:this.source,line:this.line,column:this.column,name:this.name})};pr.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};pr.prototype.replaceRight=function(t,r){var n=this.children[this.children.length-1];return n[vs]?n.replaceRight(t,r):typeof n=="string"?this.children[this.children.length-1]=n.replace(t,r):this.children.push("".replace(t,r)),this};pr.prototype.setSourceContent=function(t,r){this.sourceContents[tu.toSetString(t)]=r};pr.prototype.walkSourceContents=function(t){for(var r=0,n=this.children.length;r<n;r++)this.children[r][vs]&&this.children[r].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),r=0,n=i.length;r<n;r++)t(tu.fromSetString(i[r]),this.sourceContents[i[r]])};pr.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};pr.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new p8(t),i=!1,o=null,s=null,a=null,c=null;return this.walk(function(l,u){r.code+=l,u.source!==null&&u.line!==null&&u.column!==null?((o!==u.source||s!==u.line||a!==u.column||c!==u.name)&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name}),o=u.source,s=u.line,a=u.column,c=u.name,i=!0):i&&(n.addMapping({generated:{line:r.line,column:r.column}}),o=null,i=!1);for(var p=0,f=l.length;p<f;p++)l.charCodeAt(p)===m8?(r.line++,r.column=0,p+1===f?(o=null,i=!1):i&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name})):r.column++}),this.walkSourceContents(function(l,u){n.setSourceContent(l,u)}),{code:r.code,map:n}};Ub.SourceNode=pr});var $b=v(ru=>{ru.SourceMapGenerator=Th().SourceMapGenerator;ru.SourceMapConsumer=Bb().SourceMapConsumer;ru.SourceNode=Gb().SourceNode});var Vb=v((mMe,zb)=>{var h8=Object.prototype.toString,Dh=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function _8(e){return h8.call(e).slice(8,-1)==="ArrayBuffer"}function y8(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 Dh?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function v8(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return Dh?Buffer.from(e,t):new Buffer(e,t)}function g8(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return _8(e)?y8(e,t,r):typeof e=="string"?v8(e,t):Dh?Buffer.from(e):new Buffer(e)}zb.exports=g8});var Zb=v((Uo,Mh)=>{var S8=$b().SourceMapConsumer,Nh=require("path"),mn;try{mn=require("fs"),(!mn.existsSync||!mn.readFileSync)&&(mn=null)}catch{}var E8=Vb();function Hb(e,t){return e.require(t)}var Wb=!1,Kb=!1,kh=!1,ac="auto",Bo={},cc={},b8=/^data:application\/json[^,]+base64,/,Ei=[],bi=[];function Fh(){return ac==="browser"?!0:ac==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function C8(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function w8(){return typeof process=="object"&&process!==null?process.version:""}function x8(){if(typeof process=="object"&&process!==null)return process.stderr}function P8(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function nu(e){return function(t){for(var r=0;r<e.length;r++){var n=e[r](t);if(n)return n}return null}}var jh=nu(Ei);Ei.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(n,i){return i?"":"/"})),e in Bo)return Bo[e];var t="";try{if(mn)mn.existsSync(e)&&(t=mn.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 Bo[e]=t});function Lh(e,t){if(!e)return t;var r=Nh.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),i=n?n[0]:"",o=r.slice(i.length);return i&&/^\/\w\:/.test(o)?(i+="/",i+Nh.resolve(r.slice(i.length),t).replace(/\\/g,"/")):i+Nh.resolve(r.slice(i.length),t)}function T8(e){var t;if(Fh())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=jh(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,o,s;s=i.exec(t);)o=s;return o?o[1]:null}var qh=nu(bi);bi.push(function(e){var t=T8(e);if(!t)return null;var r;if(b8.test(t)){var n=t.slice(t.indexOf(",")+1);r=E8(n,"base64").toString(),t=e}else t=Lh(e,t),r=jh(t);return r?{url:t,map:r}:null});function Bh(e){var t=cc[e.source];if(!t){var r=qh(e.source);r?(t=cc[e.source]={url:r.url,map:new S8(r.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,o){var s=t.map.sourcesContent[o];if(s){var a=Lh(t.url,i);Bo[a]=s}})):t=cc[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=Lh(t.url,n.source),n}return e}function Yb(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=Bh({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]+" ("+Yb(t[2])+")":e}function A8(){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="",o=this.getFunctionName(),s=!0,a=this.isConstructor(),c=!(this.isToplevel()||a);if(c){var l=this.getTypeName();l==="[object Object]"&&(l="null");var u=this.getMethodName();o?(l&&o.indexOf(l)!=0&&(i+=l+"."),i+=o,u&&o.indexOf("."+u)!=o.length-u.length-1&&(i+=" [as "+u+"]")):i+=l+"."+(u||"<anonymous>")}else a?i+="new "+(o||"<anonymous>"):o?i+=o:(i+=t,s=!1);return s&&(i+=" ("+t+")"),i}function Jb(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=A8,t}function Xb(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,o=/^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)/,s=o.test(w8())?0:62;n===1&&i>s&&!Fh()&&!e.isEval()&&(i-=s);var a=Bh({source:r,line:n,column:i});t.curPosition=a,e=Jb(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 l=e.isEval()&&e.getEvalOrigin();return l&&(l=Yb(l),e=Jb(e),e.getEvalOrigin=function(){return l}),e}function I8(e,t){kh&&(Bo={},cc={});for(var r=e.name||"Error",n=e.message||"",i=r+": "+n,o={nextPosition:null,curPosition:null},s=[],a=t.length-1;a>=0;a--)s.push(`
at `+Xb(t[a],o)),o.nextPosition=o.curPosition;return o.curPosition=o.nextPosition=null,i+s.reverse().join("")}function Qb(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],n=+t[2],i=+t[3],o=Bo[r];if(!o&&mn&&mn.existsSync(r))try{o=mn.readFileSync(r,"utf8")}catch{o=""}if(o){var s=o.split(/(?:\r\n|\r|\n)/)[n-1];if(s)return r+":"+n+`
`+s+`
`+new Array(i).join(" ")+"^"}}return null}function O8(e){var t=Qb(e),r=x8();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),P8(1)}function R8(){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 O8(arguments[1])}return e.apply(this,arguments)}}var D8=Ei.slice(0),N8=bi.slice(0);Uo.wrapCallSite=Xb;Uo.getErrorSource=Qb;Uo.mapSourcePosition=Bh;Uo.retrieveSourceMap=qh;Uo.install=function(e){if(e=e||{},e.environment&&(ac=e.environment,["node","browser","auto"].indexOf(ac)===-1))throw new Error("environment "+ac+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Ei.length=0),Ei.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(bi.length=0),bi.unshift(e.retrieveSourceMap)),e.hookRequire&&!Fh()){var t=Hb(Mh,"module"),r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(o,s){return Bo[s]=o,cc[s]=void 0,r.call(this,o,s)},t.prototype._compile.__sourceMapSupport=!0)}if(kh||(kh="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),Wb||(Wb=!0,Error.prepareStackTrace=I8),!Kb){var n="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=Hb(Mh,"worker_threads");i.isMainThread===!1&&(n=!1)}catch{}n&&C8()&&(Kb=!0,R8())}};Uo.resetRetrieveHandlers=function(){Ei.length=0,bi.length=0,Ei=D8.slice(0),bi=N8.slice(0),qh=nu(bi),jh=nu(Ei)}});var zt=v((hMe,l0)=>{var iu=Object.defineProperty,k8=Object.getOwnPropertyDescriptor,L8=Object.getOwnPropertyNames,M8=Object.prototype.hasOwnProperty,ou=(e,t)=>iu(e,"name",{value:t,configurable:!0}),F8=(e,t)=>{for(var r in t)iu(e,r,{get:t[r],enumerable:!0})},j8=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of L8(t))!M8.call(e,i)&&i!==r&&iu(e,i,{get:()=>t[i],enumerable:!(n=k8(t,i))||n.enumerable});return e},q8=e=>j8(iu({},"__esModule",{value:!0}),e),t0={};F8(t0,{AlgorithmId:()=>o0,EndpointURLScheme:()=>i0,FieldPosition:()=>s0,HttpApiKeyAuthLocation:()=>n0,HttpAuthLocation:()=>r0,IniSectionType:()=>a0,RequestHandlerProtocol:()=>c0,SMITHY_CONTEXT_KEY:()=>z8,getDefaultClientConfiguration:()=>G8,resolveDefaultRuntimeConfig:()=>$8});l0.exports=q8(t0);var r0=(e=>(e.HEADER="header",e.QUERY="query",e))(r0||{}),n0=(e=>(e.HEADER="header",e.QUERY="query",e))(n0||{}),i0=(e=>(e.HTTP="http",e.HTTPS="https",e))(i0||{}),o0=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(o0||{}),B8=ou(e=>{let t=[];return e.sha256!==void 0&&t.push({algorithmId:()=>"sha256",checksumConstructor:()=>e.sha256}),e.md5!=null&&t.push({algorithmId:()=>"md5",checksumConstructor:()=>e.md5}),{_checksumAlgorithms:t,addChecksumAlgorithm(r){this._checksumAlgorithms.push(r)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),U8=ou(e=>{let t={};return e.checksumAlgorithms().forEach(r=>{t[r.algorithmId()]=r.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),G8=ou(e=>({...B8(e)}),"getDefaultClientConfiguration"),$8=ou(e=>({...U8(e)}),"resolveDefaultRuntimeConfig"),s0=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(s0||{}),z8="__smithy_context",a0=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(a0||{}),c0=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(c0||{})});var ot=v((gMe,v0)=>{var su=Object.defineProperty,V8=Object.getOwnPropertyDescriptor,H8=Object.getOwnPropertyNames,W8=Object.prototype.hasOwnProperty,Ci=(e,t)=>su(e,"name",{value:t,configurable:!0}),K8=(e,t)=>{for(var r in t)su(e,r,{get:t[r],enumerable:!0})},J8=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of H8(t))!W8.call(e,i)&&i!==r&&su(e,i,{get:()=>t[i],enumerable:!(n=V8(t,i))||n.enumerable});return e},Y8=e=>J8(su({},"__esModule",{value:!0}),e),u0={};K8(u0,{Field:()=>eJ,Fields:()=>tJ,HttpRequest:()=>rJ,HttpResponse:()=>nJ,getHttpHandlerExtensionConfiguration:()=>X8,isValidHostname:()=>y0,resolveHttpHandlerRuntimeConfig:()=>Q8});v0.exports=Y8(u0);var X8=Ci(e=>{let t=e.httpHandler;return{setHttpHandler(r){t=r},httpHandler(){return t},updateHttpClientConfig(r,n){t.updateHttpClientConfig(r,n)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),Q8=Ci(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),Z8=zt(),d0=class{constructor({name:t,kind:r=Z8.FieldPosition.HEADER,values:n=[]}){this.name=t,this.kind=r,this.values=n}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter(r=>r!==t)}toString(){return this.values.map(t=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}};Ci(d0,"Field");var eJ=d0,p0=class{constructor({fields:t=[],encoding:r="utf-8"}){this.entries={},t.forEach(this.setField.bind(this)),this.encoding=r}setField(t){this.entries[t.name.toLowerCase()]=t}getField(t){return this.entries[t.toLowerCase()]}removeField(t){delete this.entries[t.toLowerCase()]}getByType(t){return Object.values(this.entries).filter(r=>r.kind===t)}};Ci(p0,"Fields");var tJ=p0,f0=class m0{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:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}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 m0({...this,headers:{...this.headers}});return t.query&&(t.query=h0(t.query)),t}};Ci(f0,"HttpRequest");var rJ=f0;function h0(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}Ci(h0,"cloneQuery");var _0=class{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,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"}};Ci(_0,"HttpResponse");var nJ=_0;function y0(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}Ci(y0,"isValidHostname")});var S0=v((SMe,g0)=>{function Fn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}Fn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(Fn.prototype[Symbol.iterator]=function(){return this});Fn.of=function(){var e=arguments,t=e.length,r=0;return new Fn(function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}})};Fn.empty=function(){var e=new Fn(null);return e.done=!0,e};Fn.is=function(e){return e instanceof Fn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};g0.exports=Fn});var Uh=v((EMe,w0)=>{var E0=typeof ArrayBuffer<"u",b0=typeof Symbol<"u";function C0(e,t){var r,n,i,o,s;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)||E0&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,o=e.length;i<o;i++)t(e[i],i);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(b0&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;s=r.next(),s.done!==!0;)t(s.value,i),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)}C0.forEachWithNullKeys=function(e,t){var r,n,i,o,s;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)||E0&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,o=e.length;i<o;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(b0&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,i=0;s=r.next(),s.done!==!0;)t(s.value,null),i++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)};w0.exports=C0});var Gh=v(hn=>{var iJ=Math.pow(2,8)-1,oJ=Math.pow(2,16)-1,sJ=Math.pow(2,32)-1,aJ=Math.pow(2,7)-1,cJ=Math.pow(2,15)-1,lJ=Math.pow(2,31)-1;hn.getPointerArray=function(e){var t=e-1;return t<=iJ?Uint8Array:t<=oJ?Uint16Array:t<=sJ?Uint32Array:Float64Array};hn.getSignedPointerArray=function(e){var t=e-1;return t<=aJ?Int8Array:t<=cJ?Int16Array:t<=lJ?Int32Array:Float64Array};hn.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 uJ={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};hn.getMinimalRepresentation=function(e,t){var r=null,n=0,i,o,s,a,c;for(a=0,c=e.length;a<c;a++)s=t?t(e[a]):e[a],o=hn.getNumberType(s),i=uJ[o.name],i>n&&(n=i,r=o);return r};hn.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};hn.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};hn.indices=function(e){for(var t=hn.getPointerArray(e),r=new t(e),n=0;n<e;n++)r[n]=n;return r}});var T0=v(lc=>{var x0=Uh(),P0=Gh();function dJ(e){return Array.isArray(e)||P0.isTypedArray(e)}function $h(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function pJ(e){var t=$h(e),r=typeof t=="number"?new Array(t):[],n=0;return x0(e,function(i){r[n++]=i}),r}function fJ(e){var t=$h(e),r=typeof t=="number"?P0.getPointerArray(t):Array,n=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new r(t):[],o=0;return x0(e,function(s){n[o]=s,i[o]=o++}),[n,i]}lc.isArrayLike=dJ;lc.guessLength=$h;lc.toArray=pJ;lc.toArrayWithIndices=fJ});var I0=v((wMe,A0)=>{var zh=S0(),mJ=Uh(),hJ=Gh(),_J=T0();function st(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=hJ.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={}}st.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};st.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};st.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};st.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)};st.prototype.has=function(e){return e in this.items};st.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};st.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};st.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var r=0,n=this.size,i=this.head,o=this.K,s=this.V,a=this.forward;r<n;)e.call(t,s[i],o[i],this),i=a[i],r++};st.prototype.keys=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.forward;return new zh(function(){if(e>=t)return{done:!0};var o=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:o}})};st.prototype.values=function(){var e=0,t=this.size,r=this.head,n=this.V,i=this.forward;return new zh(function(){if(e>=t)return{done:!0};var o=n[r];return e++,e<t&&(r=i[r]),{done:!1,value:o}})};st.prototype.entries=function(){var e=0,t=this.size,r=this.head,n=this.K,i=this.V,o=this.forward;return new zh(function(){if(e>=t)return{done:!0};var s=n[r],a=i[r];return e++,e<t&&(r=o[r]),{done:!1,value:[s,a]}})};typeof Symbol<"u"&&(st.prototype[Symbol.iterator]=st.prototype.entries);st.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:st,enumerable:!1}),e};typeof Symbol<"u"&&(st.prototype[Symbol.for("nodejs.util.inspect.custom")]=st.prototype.inspect);st.from=function(e,t,r,n){if(arguments.length<2){if(n=_J.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 st(t,r,n);return mJ(e,function(o,s){i.set(s,o)}),i};A0.exports=st});var k0=v((PMe,N0)=>{var yJ=Object.create,uc=Object.defineProperty,vJ=Object.getOwnPropertyDescriptor,gJ=Object.getOwnPropertyNames,SJ=Object.getPrototypeOf,EJ=Object.prototype.hasOwnProperty,bJ=(e,t)=>uc(e,"name",{value:t,configurable:!0}),CJ=(e,t)=>{for(var r in t)uc(e,r,{get:t[r],enumerable:!0})},O0=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of gJ(t))!EJ.call(e,i)&&i!==r&&uc(e,i,{get:()=>t[i],enumerable:!(n=vJ(t,i))||n.enumerable});return e},wJ=(e,t,r)=>(r=e!=null?yJ(SJ(e)):{},O0(t||!e||!e.__esModule?uc(r,"default",{value:e,enumerable:!0}):r,e)),xJ=e=>O0(uc({},"__esModule",{value:!0}),e),R0={};CJ(R0,{EndpointCache:()=>TJ});N0.exports=xJ(R0);var PJ=wJ(I0()),D0=class{constructor(t){this.cache=new PJ.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(o=>n<o.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:o})=>({Address:i,Expires:n+o*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()}};bJ(D0,"EndpointCache");var TJ=D0});var Wh=v((TMe,q0)=>{var au=Object.defineProperty,AJ=Object.getOwnPropertyDescriptor,IJ=Object.getOwnPropertyNames,OJ=Object.prototype.hasOwnProperty,wi=(e,t)=>au(e,"name",{value:t,configurable:!0}),RJ=(e,t)=>{for(var r in t)au(e,r,{get:t[r],enumerable:!0})},DJ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of IJ(t))!OJ.call(e,i)&&i!==r&&au(e,i,{get:()=>t[i],enumerable:!(n=AJ(t,i))||n.enumerable});return e},NJ=e=>DJ(au({},"__esModule",{value:!0}),e),j0={};RJ(j0,{NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS:()=>kJ,endpointDiscoveryMiddlewareOptions:()=>cu,getEndpointDiscoveryOptionalPlugin:()=>qJ,getEndpointDiscoveryPlugin:()=>FJ,getEndpointDiscoveryRequiredPlugin:()=>jJ,resolveEndpointDiscoveryConfig:()=>UJ});q0.exports=NJ(j0);var L0=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],Vh="endpoint_discovery_enabled",M0=wi(e=>["false","0"].indexOf(e)>=0,"isFalsy"),kJ={environmentVariableSelector:e=>{for(let t=0;t<L0.length;t++){let r=L0[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!M0(n)}}},configFileSelector:e=>{if(Vh in e){let t=e[Vh];if(t===void 0)throw Error(`Shared config entry ${Vh} can't be undefined, got "${t}"`);return!M0(t)}},default:void 0},LJ=ot(),MJ=wi(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((o,[s,a])=>({...o,[s]:a}),{}