@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 • 939 kB
JavaScript
"use strict";var GQ=Object.create;var Uc=Object.defineProperty;var Jw=Object.getOwnPropertyDescriptor;var $Q=Object.getOwnPropertyNames;var HQ=Object.getPrototypeOf,zQ=Object.prototype.hasOwnProperty;var Le=(e,t)=>()=>(e&&(t=e(e=0)),t);var y=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),sr=(e,t)=>{for(var r in t)Uc(e,r,{get:t[r],enumerable:!0})},Yw=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of $Q(t))!zQ.call(e,o)&&o!==r&&Uc(e,o,{get:()=>t[o],enumerable:!(n=Jw(t,o))||n.enumerable});return e};var Kt=(e,t,r)=>(r=e!=null?GQ(HQ(e)):{},Yw(t||!e||!e.__esModule?Uc(r,"default",{value:e,enumerable:!0}):r,e)),ve=e=>Yw(Uc({},"__esModule",{value:!0}),e),nn=(e,t,r,n)=>{for(var o=n>1?void 0:n?Jw(t,r):t,i=e.length-1,s;i>=0;i--)(s=e[i])&&(o=(n?s(t,r,o):s(o))||o);return n&&o&&Uc(t,r,o),o};var Qw=y(C_=>{var Xw="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");C_.encode=function(e){if(0<=e&&e<Xw.length)return Xw[e];throw new TypeError("Must be between 0 and 63: "+e)};C_.decode=function(e){var t=65,r=90,n=97,o=122,i=48,s=57,a=43,l=47,c=26,u=52;return t<=e&&e<=r?e-t:n<=e&&e<=o?e-n+c:i<=e&&e<=s?e-i+u:e==a?62:e==l?63:-1}});var P_=y(x_=>{var Zw=Qw(),w_=5,ex=1<<w_,tx=ex-1,rx=ex;function VQ(e){return e<0?(-e<<1)+1:(e<<1)+0}function WQ(e){var t=(e&1)===1,r=e>>1;return t?-r:r}x_.encode=function(t){var r="",n,o=VQ(t);do n=o&tx,o>>>=w_,o>0&&(n|=rx),r+=Zw.encode(n);while(o>0);return r};x_.decode=function(t,r,n){var o=t.length,i=0,s=0,a,l;do{if(r>=o)throw new Error("Expected more digits in base 64 VLQ value.");if(l=Zw.decode(t.charCodeAt(r++)),l===-1)throw new Error("Invalid base64 digit: "+t.charAt(r-1));a=!!(l&rx),l&=tx,i=i+(l<<s),s+=w_}while(a);n.value=WQ(i),n.rest=r}});var zs=y(jt=>{function KQ(e,t,r){if(t in e)return e[t];if(arguments.length===3)return r;throw new Error('"'+t+'" is a required argument.')}jt.getArg=KQ;var nx=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,JQ=/^data:.+\,.+$/;function Gc(e){var t=e.match(nx);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}jt.urlParse=Gc;function $s(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}jt.urlGenerate=$s;function A_(e){var t=e,r=Gc(e);if(r){if(!r.path)return e;t=r.path}for(var n=jt.isAbsolute(t),o=t.split(/\/+/),i,s=0,a=o.length-1;a>=0;a--)i=o[a],i==="."?o.splice(a,1):i===".."?s++:s>0&&(i===""?(o.splice(a+1,s),s=0):(o.splice(a,2),s--));return t=o.join("/"),t===""&&(t=n?"/":"."),r?(r.path=t,$s(r)):t}jt.normalize=A_;function ox(e,t){e===""&&(e="."),t===""&&(t=".");var r=Gc(t),n=Gc(e);if(n&&(e=n.path||"/"),r&&!r.scheme)return n&&(r.scheme=n.scheme),$s(r);if(r||t.match(JQ))return t;if(n&&!n.host&&!n.path)return n.host=t,$s(n);var o=t.charAt(0)==="/"?t:A_(e.replace(/\/+$/,"")+"/"+t);return n?(n.path=o,$s(n)):o}jt.join=ox;jt.isAbsolute=function(e){return e.charAt(0)==="/"||nx.test(e)};function YQ(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)}jt.relative=YQ;var ix=function(){var e=Object.create(null);return!("__proto__"in e)}();function sx(e){return e}function XQ(e){return ax(e)?"$"+e:e}jt.toSetString=ix?sx:XQ;function QQ(e){return ax(e)?e.slice(1):e}jt.fromSetString=ix?sx:QQ;function ax(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 ZQ(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)}jt.compareByOriginalPositions=ZQ;function eZ(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)}jt.compareByGeneratedPositionsDeflated=eZ;function Hs(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function tZ(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)}jt.compareByGeneratedPositionsInflated=tZ;function rZ(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}jt.parseSourceMapInput=rZ;function nZ(e,t,r){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),r){var n=Gc(r);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var o=n.path.lastIndexOf("/");o>=0&&(n.path=n.path.substring(0,o+1))}t=ox($s(n),t)}return A_(t)}jt.computeSourceURL=nZ});var I_=y(cx=>{var T_=zs(),O_=Object.prototype.hasOwnProperty,os=typeof Map<"u";function Xn(){this._array=[],this._set=os?new Map:Object.create(null)}Xn.fromArray=function(t,r){for(var n=new Xn,o=0,i=t.length;o<i;o++)n.add(t[o],r);return n};Xn.prototype.size=function(){return os?this._set.size:Object.getOwnPropertyNames(this._set).length};Xn.prototype.add=function(t,r){var n=os?t:T_.toSetString(t),o=os?this.has(t):O_.call(this._set,n),i=this._array.length;(!o||r)&&this._array.push(t),o||(os?this._set.set(t,i):this._set[n]=i)};Xn.prototype.has=function(t){if(os)return this._set.has(t);var r=T_.toSetString(t);return O_.call(this._set,r)};Xn.prototype.indexOf=function(t){if(os){var r=this._set.get(t);if(r>=0)return r}else{var n=T_.toSetString(t);if(O_.call(this._set,n))return this._set[n]}throw new Error('"'+t+'" is not in the set.')};Xn.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Xn.prototype.toArray=function(){return this._array.slice()};cx.ArraySet=Xn});var dx=y(ux=>{var lx=zs();function oZ(e,t){var r=e.generatedLine,n=t.generatedLine,o=e.generatedColumn,i=t.generatedColumn;return n>r||n==r&&i>=o||lx.compareByGeneratedPositionsInflated(e,t)<=0}function Qu(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Qu.prototype.unsortedForEach=function(t,r){this._array.forEach(t,r)};Qu.prototype.add=function(t){oZ(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};Qu.prototype.toArray=function(){return this._sorted||(this._array.sort(lx.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};ux.MappingList=Qu});var R_=y(px=>{var $c=P_(),dt=zs(),Zu=I_().ArraySet,iZ=dx().MappingList;function Or(e){e||(e={}),this._file=dt.getArg(e,"file",null),this._sourceRoot=dt.getArg(e,"sourceRoot",null),this._skipValidation=dt.getArg(e,"skipValidation",!1),this._sources=new Zu,this._names=new Zu,this._mappings=new iZ,this._sourcesContents=null}Or.prototype._version=3;Or.fromSourceMap=function(t){var r=t.sourceRoot,n=new Or({file:t.file,sourceRoot:r});return t.eachMapping(function(o){var i={generated:{line:o.generatedLine,column:o.generatedColumn}};o.source!=null&&(i.source=o.source,r!=null&&(i.source=dt.relative(r,i.source)),i.original={line:o.originalLine,column:o.originalColumn},o.name!=null&&(i.name=o.name)),n.addMapping(i)}),t.sources.forEach(function(o){var i=o;r!==null&&(i=dt.relative(r,o)),n._sources.has(i)||n._sources.add(i);var s=t.sourceContentFor(o);s!=null&&n.setSourceContent(o,s)}),n};Or.prototype.addMapping=function(t){var r=dt.getArg(t,"generated"),n=dt.getArg(t,"original",null),o=dt.getArg(t,"source",null),i=dt.getArg(t,"name",null);this._skipValidation||this._validateMapping(r,n,o,i),o!=null&&(o=String(o),this._sources.has(o)||this._sources.add(o)),i!=null&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:o,name:i})};Or.prototype.setSourceContent=function(t,r){var n=t;this._sourceRoot!=null&&(n=dt.relative(this._sourceRoot,n)),r!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[dt.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[dt.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Or.prototype.applySourceMap=function(t,r,n){var o=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.`);o=t.file}var i=this._sourceRoot;i!=null&&(o=dt.relative(i,o));var s=new Zu,a=new Zu;this._mappings.unsortedForEach(function(l){if(l.source===o&&l.originalLine!=null){var c=t.originalPositionFor({line:l.originalLine,column:l.originalColumn});c.source!=null&&(l.source=c.source,n!=null&&(l.source=dt.join(n,l.source)),i!=null&&(l.source=dt.relative(i,l.source)),l.originalLine=c.line,l.originalColumn=c.column,c.name!=null&&(l.name=c.name))}var u=l.source;u!=null&&!s.has(u)&&s.add(u);var d=l.name;d!=null&&!a.has(d)&&a.add(d)},this),this._sources=s,this._names=a,t.sources.forEach(function(l){var c=t.sourceContentFor(l);c!=null&&(n!=null&&(l=dt.join(n,l)),i!=null&&(l=dt.relative(i,l)),this.setSourceContent(l,c))},this)};Or.prototype._validateMapping=function(t,r,n,o){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&&!o)){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:o}))}};Or.prototype._serializeMappings=function(){for(var t=0,r=1,n=0,o=0,i=0,s=0,a="",l,c,u,d,p=this._mappings.toArray(),m=0,v=p.length;m<v;m++){if(c=p[m],l="",c.generatedLine!==r)for(t=0;c.generatedLine!==r;)l+=";",r++;else if(m>0){if(!dt.compareByGeneratedPositionsInflated(c,p[m-1]))continue;l+=","}l+=$c.encode(c.generatedColumn-t),t=c.generatedColumn,c.source!=null&&(d=this._sources.indexOf(c.source),l+=$c.encode(d-s),s=d,l+=$c.encode(c.originalLine-1-o),o=c.originalLine-1,l+=$c.encode(c.originalColumn-n),n=c.originalColumn,c.name!=null&&(u=this._names.indexOf(c.name),l+=$c.encode(u-i),i=u)),a+=l}return a};Or.prototype._generateSourcesContent=function(t,r){return t.map(function(n){if(!this._sourcesContents)return null;r!=null&&(n=dt.relative(r,n));var o=dt.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,o)?this._sourcesContents[o]:null},this)};Or.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};Or.prototype.toString=function(){return JSON.stringify(this.toJSON())};px.SourceMapGenerator=Or});var fx=y(is=>{is.GREATEST_LOWER_BOUND=1;is.LEAST_UPPER_BOUND=2;function D_(e,t,r,n,o,i){var s=Math.floor((t-e)/2)+e,a=o(r,n[s],!0);return a===0?s:a>0?t-s>1?D_(s,t,r,n,o,i):i==is.LEAST_UPPER_BOUND?t<n.length?t:-1:s:s-e>1?D_(e,s,r,n,o,i):i==is.LEAST_UPPER_BOUND?s:e<0?-1:e}is.search=function(t,r,n,o){if(r.length===0)return-1;var i=D_(-1,r.length,t,r,n,o||is.GREATEST_LOWER_BOUND);if(i<0)return-1;for(;i-1>=0&&n(r[i],r[i-1],!0)===0;)--i;return i}});var hx=y(mx=>{function N_(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function sZ(e,t){return Math.round(e+Math.random()*(t-e))}function M_(e,t,r,n){if(r<n){var o=sZ(r,n),i=r-1;N_(e,o,n);for(var s=e[n],a=r;a<n;a++)t(e[a],s)<=0&&(i+=1,N_(e,i,a));N_(e,i+1,a);var l=i+1;M_(e,t,r,l-1),M_(e,t,l+1,n)}}mx.quickSort=function(e,t){M_(e,t,0,e.length-1)}});var _x=y(ed=>{var $=zs(),k_=fx(),Vs=I_().ArraySet,aZ=P_(),Hc=hx().quickSort;function We(e,t){var r=e;return typeof e=="string"&&(r=$.parseSourceMapInput(e)),r.sections!=null?new on(r,t):new Pt(r,t)}We.fromSourceMap=function(e,t){return Pt.fromSourceMap(e,t)};We.prototype._version=3;We.prototype.__generatedMappings=null;Object.defineProperty(We.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});We.prototype.__originalMappings=null;Object.defineProperty(We.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});We.prototype._charIsMappingSeparator=function(t,r){var n=t.charAt(r);return n===";"||n===","};We.prototype._parseMappings=function(t,r){throw new Error("Subclasses must implement _parseMappings")};We.GENERATED_ORDER=1;We.ORIGINAL_ORDER=2;We.GREATEST_LOWER_BOUND=1;We.LEAST_UPPER_BOUND=2;We.prototype.eachMapping=function(t,r,n){var o=r||null,i=n||We.GENERATED_ORDER,s;switch(i){case We.GENERATED_ORDER:s=this._generatedMappings;break;case We.ORIGINAL_ORDER:s=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;s.map(function(l){var c=l.source===null?null:this._sources.at(l.source);return c=$.computeSourceURL(a,c,this._sourceMapURL),{source:c,generatedLine:l.generatedLine,generatedColumn:l.generatedColumn,originalLine:l.originalLine,originalColumn:l.originalColumn,name:l.name===null?null:this._names.at(l.name)}},this).forEach(t,o)};We.prototype.allGeneratedPositionsFor=function(t){var r=$.getArg(t,"line"),n={source:$.getArg(t,"source"),originalLine:r,originalColumn:$.getArg(t,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var o=[],i=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,k_.LEAST_UPPER_BOUND);if(i>=0){var s=this._originalMappings[i];if(t.column===void 0)for(var a=s.originalLine;s&&s.originalLine===a;)o.push({line:$.getArg(s,"generatedLine",null),column:$.getArg(s,"generatedColumn",null),lastColumn:$.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)o.push({line:$.getArg(s,"generatedLine",null),column:$.getArg(s,"generatedColumn",null),lastColumn:$.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++i]}return o};ed.SourceMapConsumer=We;function Pt(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),o=$.getArg(r,"sources"),i=$.getArg(r,"names",[]),s=$.getArg(r,"sourceRoot",null),a=$.getArg(r,"sourcesContent",null),l=$.getArg(r,"mappings"),c=$.getArg(r,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);s&&(s=$.normalize(s)),o=o.map(String).map($.normalize).map(function(u){return s&&$.isAbsolute(s)&&$.isAbsolute(u)?$.relative(s,u):u}),this._names=Vs.fromArray(i.map(String),!0),this._sources=Vs.fromArray(o,!0),this._absoluteSources=this._sources.toArray().map(function(u){return $.computeSourceURL(s,u,t)}),this.sourceRoot=s,this.sourcesContent=a,this._mappings=l,this._sourceMapURL=t,this.file=c}Pt.prototype=Object.create(We.prototype);Pt.prototype.consumer=We;Pt.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=$.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};Pt.fromSourceMap=function(t,r){var n=Object.create(Pt.prototype),o=n._names=Vs.fromArray(t._names.toArray(),!0),i=n._sources=Vs.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(m){return $.computeSourceURL(n.sourceRoot,m,r)});for(var s=t._mappings.toArray().slice(),a=n.__generatedMappings=[],l=n.__originalMappings=[],c=0,u=s.length;c<u;c++){var d=s[c],p=new yx;p.generatedLine=d.generatedLine,p.generatedColumn=d.generatedColumn,d.source&&(p.source=i.indexOf(d.source),p.originalLine=d.originalLine,p.originalColumn=d.originalColumn,d.name&&(p.name=o.indexOf(d.name)),l.push(p)),a.push(p)}return Hc(n.__originalMappings,$.compareByOriginalPositions),n};Pt.prototype._version=3;Object.defineProperty(Pt.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function yx(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Pt.prototype._parseMappings=function(t,r){for(var n=1,o=0,i=0,s=0,a=0,l=0,c=t.length,u=0,d={},p={},m=[],v=[],_,g,S,b,L;u<c;)if(t.charAt(u)===";")n++,u++,o=0;else if(t.charAt(u)===",")u++;else{for(_=new yx,_.generatedLine=n,b=u;b<c&&!this._charIsMappingSeparator(t,b);b++);if(g=t.slice(u,b),S=d[g],S)u+=g.length;else{for(S=[];u<b;)aZ.decode(t,u,p),L=p.value,u=p.rest,S.push(L);if(S.length===2)throw new Error("Found a source, but no line and column");if(S.length===3)throw new Error("Found a source and line, but no column");d[g]=S}_.generatedColumn=o+S[0],o=_.generatedColumn,S.length>1&&(_.source=a+S[1],a+=S[1],_.originalLine=i+S[2],i=_.originalLine,_.originalLine+=1,_.originalColumn=s+S[3],s=_.originalColumn,S.length>4&&(_.name=l+S[4],l+=S[4])),v.push(_),typeof _.originalLine=="number"&&m.push(_)}Hc(v,$.compareByGeneratedPositionsDeflated),this.__generatedMappings=v,Hc(m,$.compareByOriginalPositions),this.__originalMappings=m};Pt.prototype._findMapping=function(t,r,n,o,i,s){if(t[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[n]);if(t[o]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[o]);return k_.search(t,r,i,s)};Pt.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}};Pt.prototype.originalPositionFor=function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",$.compareByGeneratedPositionsDeflated,$.getArg(t,"bias",We.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===r.generatedLine){var i=$.getArg(o,"source",null);i!==null&&(i=this._sources.at(i),i=$.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var s=$.getArg(o,"name",null);return s!==null&&(s=this._names.at(s)),{source:i,line:$.getArg(o,"originalLine",null),column:$.getArg(o,"originalColumn",null),name:s}}}return{source:null,line:null,column:null,name:null}};Pt.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};Pt.prototype.sourceContentFor=function(t,r){if(!this.sourcesContent)return null;var n=this._findSourceIndex(t);if(n>=0)return this.sourcesContent[n];var o=t;this.sourceRoot!=null&&(o=$.relative(this.sourceRoot,o));var i;if(this.sourceRoot!=null&&(i=$.urlParse(this.sourceRoot))){var s=o.replace(/^file:\/\//,"");if(i.scheme=="file"&&this._sources.has(s))return this.sourcesContent[this._sources.indexOf(s)];if((!i.path||i.path=="/")&&this._sources.has("/"+o))return this.sourcesContent[this._sources.indexOf("/"+o)]}if(r)return null;throw new Error('"'+o+'" is not in the SourceMap.')};Pt.prototype.generatedPositionFor=function(t){var r=$.getArg(t,"source");if(r=this._findSourceIndex(r),r<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:$.getArg(t,"line"),originalColumn:$.getArg(t,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",$.compareByOriginalPositions,$.getArg(t,"bias",We.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:$.getArg(i,"generatedLine",null),column:$.getArg(i,"generatedColumn",null),lastColumn:$.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};ed.BasicSourceMapConsumer=Pt;function on(e,t){var r=e;typeof e=="string"&&(r=$.parseSourceMapInput(e));var n=$.getArg(r,"version"),o=$.getArg(r,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new Vs,this._names=new Vs;var i={line:-1,column:0};this._sections=o.map(function(s){if(s.url)throw new Error("Support for url field in sections not implemented.");var a=$.getArg(s,"offset"),l=$.getArg(a,"line"),c=$.getArg(a,"column");if(l<i.line||l===i.line&&c<i.column)throw new Error("Section offsets must be ordered and non-overlapping.");return i=a,{generatedOffset:{generatedLine:l+1,generatedColumn:c+1},consumer:new We($.getArg(s,"map"),t)}})}on.prototype=Object.create(We.prototype);on.prototype.constructor=We;on.prototype._version=3;Object.defineProperty(on.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}});on.prototype.originalPositionFor=function(t){var r={generatedLine:$.getArg(t,"line"),generatedColumn:$.getArg(t,"column")},n=k_.search(r,this._sections,function(i,s){var a=i.generatedLine-s.generatedOffset.generatedLine;return a||i.generatedColumn-s.generatedOffset.generatedColumn}),o=this._sections[n];return o?o.consumer.originalPositionFor({line:r.generatedLine-(o.generatedOffset.generatedLine-1),column:r.generatedColumn-(o.generatedOffset.generatedLine===r.generatedLine?o.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};on.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};on.prototype.sourceContentFor=function(t,r){for(var n=0;n<this._sections.length;n++){var o=this._sections[n],i=o.consumer.sourceContentFor(t,!0);if(i)return i}if(r)return null;throw new Error('"'+t+'" is not in the SourceMap.')};on.prototype.generatedPositionFor=function(t){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(n.consumer._findSourceIndex($.getArg(t,"source"))!==-1){var o=n.consumer.generatedPositionFor(t);if(o){var i={line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)};return i}}}return{line:null,column:null}};on.prototype._parseMappings=function(t,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,s=0;s<i.length;s++){var a=i[s],l=o.consumer._sources.at(a.source);l=$.computeSourceURL(o.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;a.name&&(c=o.consumer._names.at(a.name),this._names.add(c),c=this._names.indexOf(c));var u={source:l,generatedLine:a.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(o.generatedOffset.generatedLine===a.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:c};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}Hc(this.__generatedMappings,$.compareByGeneratedPositionsDeflated),Hc(this.__originalMappings,$.compareByOriginalPositions)};ed.IndexedSourceMapConsumer=on});var gx=y(vx=>{var cZ=R_().SourceMapGenerator,td=zs(),lZ=/(\r?\n)/,uZ=10,Ws="$$$isSourceNode$$$";function gr(e,t,r,n,o){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=r??null,this.name=o??null,this[Ws]=!0,n!=null&&this.add(n)}gr.fromStringWithSourceMap=function(t,r,n){var o=new gr,i=t.split(lZ),s=0,a=function(){var p=v(),m=v()||"";return p+m;function v(){return s<i.length?i[s++]:void 0}},l=1,c=0,u=null;return r.eachMapping(function(p){if(u!==null)if(l<p.generatedLine)d(u,a()),l++,c=0;else{var m=i[s]||"",v=m.substr(0,p.generatedColumn-c);i[s]=m.substr(p.generatedColumn-c),c=p.generatedColumn,d(u,v),u=p;return}for(;l<p.generatedLine;)o.add(a()),l++;if(c<p.generatedColumn){var m=i[s]||"";o.add(m.substr(0,p.generatedColumn)),i[s]=m.substr(p.generatedColumn),c=p.generatedColumn}u=p},this),s<i.length&&(u&&d(u,a()),o.add(i.splice(s).join(""))),r.sources.forEach(function(p){var m=r.sourceContentFor(p);m!=null&&(n!=null&&(p=td.join(n,p)),o.setSourceContent(p,m))}),o;function d(p,m){if(p===null||p.source===void 0)o.add(m);else{var v=n?td.join(n,p.source):p.source;o.add(new gr(p.originalLine,p.originalColumn,v,m,p.name))}}};gr.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};gr.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};gr.prototype.walk=function(t){for(var r,n=0,o=this.children.length;n<o;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})};gr.prototype.join=function(t){var r,n,o=this.children.length;if(o>0){for(r=[],n=0;n<o-1;n++)r.push(this.children[n]),r.push(t);r.push(this.children[n]),this.children=r}return this};gr.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};gr.prototype.setSourceContent=function(t,r){this.sourceContents[td.toSetString(t)]=r};gr.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 o=Object.keys(this.sourceContents),r=0,n=o.length;r<n;r++)t(td.fromSetString(o[r]),this.sourceContents[o[r]])};gr.prototype.toString=function(){var t="";return this.walk(function(r){t+=r}),t};gr.prototype.toStringWithSourceMap=function(t){var r={code:"",line:1,column:0},n=new cZ(t),o=!1,i=null,s=null,a=null,l=null;return this.walk(function(c,u){r.code+=c,u.source!==null&&u.line!==null&&u.column!==null?((i!==u.source||s!==u.line||a!==u.column||l!==u.name)&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:r.line,column:r.column},name:u.name}),i=u.source,s=u.line,a=u.column,l=u.name,o=!0):o&&(n.addMapping({generated:{line:r.line,column:r.column}}),i=null,o=!1);for(var d=0,p=c.length;d<p;d++)c.charCodeAt(d)===uZ?(r.line++,r.column=0,d+1===p?(i=null,o=!1):o&&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(c,u){n.setSourceContent(c,u)}),{code:r.code,map:n}};vx.SourceNode=gr});var Sx=y(rd=>{rd.SourceMapGenerator=R_().SourceMapGenerator;rd.SourceMapConsumer=_x().SourceMapConsumer;rd.SourceNode=gx().SourceNode});var bx=y((zze,Ex)=>{var dZ=Object.prototype.toString,L_=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function pZ(e){return dZ.call(e).slice(8,-1)==="ArrayBuffer"}function fZ(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 L_?Buffer.from(e.slice(t,t+r)):new Buffer(new Uint8Array(e.slice(t,t+r)))}function mZ(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return L_?Buffer.from(e,t):new Buffer(e,t)}function hZ(e,t,r){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return pZ(e)?fZ(e,t,r):typeof e=="string"?mZ(e,t):L_?Buffer.from(e):new Buffer(e)}Ex.exports=hZ});var Ix=y((as,B_)=>{var yZ=Sx().SourceMapConsumer,j_=require("path"),xn;try{xn=require("fs"),(!xn.existsSync||!xn.readFileSync)&&(xn=null)}catch{}var _Z=bx();function Cx(e,t){return e.require(t)}var wx=!1,xx=!1,F_=!1,zc="auto",ss={},Vc={},vZ=/^data:application\/json[^,]+base64,/,Fo=[],qo=[];function U_(){return zc==="browser"?!0:zc==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function gZ(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function SZ(){return typeof process=="object"&&process!==null?process.version:""}function EZ(){if(typeof process=="object"&&process!==null)return process.stderr}function bZ(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 G_=nd(Fo);Fo.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(n,o){return o?"":"/"})),e in ss)return ss[e];var t="";try{if(xn)xn.existsSync(e)&&(t=xn.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 ss[e]=t});function q_(e,t){if(!e)return t;var r=j_.dirname(e),n=/^\w+:\/\/[^\/]*/.exec(r),o=n?n[0]:"",i=r.slice(o.length);return o&&/^\/\w\:/.test(i)?(o+="/",o+j_.resolve(r.slice(o.length),t).replace(/\\/g,"/")):o+j_.resolve(r.slice(o.length),t)}function CZ(e){var t;if(U_())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=G_(e);for(var o=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,i,s;s=o.exec(t);)i=s;return i?i[1]:null}var $_=nd(qo);qo.push(function(e){var t=CZ(e);if(!t)return null;var r;if(vZ.test(t)){var n=t.slice(t.indexOf(",")+1);r=_Z(n,"base64").toString(),t=e}else t=q_(e,t),r=G_(t);return r?{url:t,map:r}:null});function H_(e){var t=Vc[e.source];if(!t){var r=$_(e.source);r?(t=Vc[e.source]={url:r.url,map:new yZ(r.map)},t.map.sourcesContent&&t.map.sources.forEach(function(o,i){var s=t.map.sourcesContent[i];if(s){var a=q_(t.url,o);ss[a]=s}})):t=Vc[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=q_(t.url,n.source),n}return e}function Ax(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var r=H_({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]+" ("+Ax(t[2])+")":e}function wZ(){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 o="",i=this.getFunctionName(),s=!0,a=this.isConstructor(),l=!(this.isToplevel()||a);if(l){var c=this.getTypeName();c==="[object Object]"&&(c="null");var u=this.getMethodName();i?(c&&i.indexOf(c)!=0&&(o+=c+"."),o+=i,u&&i.indexOf("."+u)!=i.length-u.length-1&&(o+=" [as "+u+"]")):o+=c+"."+(u||"<anonymous>")}else a?o+="new "+(i||"<anonymous>"):i?o+=i:(o+=t,s=!1);return s&&(o+=" ("+t+")"),o}function Px(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=wZ,t}function Tx(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(),o=e.getColumnNumber()-1,i=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,s=i.test(SZ())?0:62;n===1&&o>s&&!U_()&&!e.isEval()&&(o-=s);var a=H_({source:r,line:n,column:o});t.curPosition=a,e=Px(e);var l=e.getFunctionName;return e.getFunctionName=function(){return t.nextPosition==null?l():t.nextPosition.name||l()},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 c=e.isEval()&&e.getEvalOrigin();return c&&(c=Ax(c),e=Px(e),e.getEvalOrigin=function(){return c}),e}function xZ(e,t){F_&&(ss={},Vc={});for(var r=e.name||"Error",n=e.message||"",o=r+": "+n,i={nextPosition:null,curPosition:null},s=[],a=t.length-1;a>=0;a--)s.push(`
at `+Tx(t[a],i)),i.nextPosition=i.curPosition;return i.curPosition=i.nextPosition=null,o+s.reverse().join("")}function Ox(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var r=t[1],n=+t[2],o=+t[3],i=ss[r];if(!i&&xn&&xn.existsSync(r))try{i=xn.readFileSync(r,"utf8")}catch{i=""}if(i){var s=i.split(/(?:\r\n|\r|\n)/)[n-1];if(s)return r+":"+n+`
`+s+`
`+new Array(o).join(" ")+"^"}}return null}function PZ(e){var t=Ox(e),r=EZ();r&&r._handle&&r._handle.setBlocking&&r._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),bZ(1)}function AZ(){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 PZ(arguments[1])}return e.apply(this,arguments)}}var TZ=Fo.slice(0),OZ=qo.slice(0);as.wrapCallSite=Tx;as.getErrorSource=Ox;as.mapSourcePosition=H_;as.retrieveSourceMap=$_;as.install=function(e){if(e=e||{},e.environment&&(zc=e.environment,["node","browser","auto"].indexOf(zc)===-1))throw new Error("environment "+zc+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Fo.length=0),Fo.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(qo.length=0),qo.unshift(e.retrieveSourceMap)),e.hookRequire&&!U_()){var t=Cx(B_,"module"),r=t.prototype._compile;r.__sourceMapSupport||(t.prototype._compile=function(i,s){return ss[s]=i,Vc[s]=void 0,r.call(this,i,s)},t.prototype._compile.__sourceMapSupport=!0)}if(F_||(F_="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),wx||(wx=!0,Error.prepareStackTrace=xZ),!xx){var n="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var o=Cx(B_,"worker_threads");o.isMainThread===!1&&(n=!1)}catch{}n&&gZ()&&(xx=!0,AZ())}};as.resetRetrieveHandlers=function(){Fo.length=0,qo.length=0,Fo=TZ.slice(0),qo=OZ.slice(0),$_=nd(qo),G_=nd(Fo)}});var Jt=y((Vze,Bx)=>{var od=Object.defineProperty,IZ=Object.getOwnPropertyDescriptor,RZ=Object.getOwnPropertyNames,DZ=Object.prototype.hasOwnProperty,id=(e,t)=>od(e,"name",{value:t,configurable:!0}),NZ=(e,t)=>{for(var r in t)od(e,r,{get:t[r],enumerable:!0})},MZ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of RZ(t))!DZ.call(e,o)&&o!==r&&od(e,o,{get:()=>t[o],enumerable:!(n=IZ(t,o))||n.enumerable});return e},kZ=e=>MZ(od({},"__esModule",{value:!0}),e),Dx={};NZ(Dx,{AlgorithmId:()=>Lx,EndpointURLScheme:()=>kx,FieldPosition:()=>jx,HttpApiKeyAuthLocation:()=>Mx,HttpAuthLocation:()=>Nx,IniSectionType:()=>Fx,RequestHandlerProtocol:()=>qx,SMITHY_CONTEXT_KEY:()=>BZ,getDefaultClientConfiguration:()=>FZ,resolveDefaultRuntimeConfig:()=>qZ});Bx.exports=kZ(Dx);var Nx=(e=>(e.HEADER="header",e.QUERY="query",e))(Nx||{}),Mx=(e=>(e.HEADER="header",e.QUERY="query",e))(Mx||{}),kx=(e=>(e.HTTP="http",e.HTTPS="https",e))(kx||{}),Lx=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(Lx||{}),LZ=id(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"),jZ=id(e=>{let t={};return e.checksumAlgorithms().forEach(r=>{t[r.algorithmId()]=r.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),FZ=id(e=>({...LZ(e)}),"getDefaultClientConfiguration"),qZ=id(e=>({...jZ(e)}),"resolveDefaultRuntimeConfig"),jx=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(jx||{}),BZ="__smithy_context",Fx=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(Fx||{}),qx=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(qx||{})});var pt=y((Yze,Jx)=>{var sd=Object.defineProperty,UZ=Object.getOwnPropertyDescriptor,GZ=Object.getOwnPropertyNames,$Z=Object.prototype.hasOwnProperty,Bo=(e,t)=>sd(e,"name",{value:t,configurable:!0}),HZ=(e,t)=>{for(var r in t)sd(e,r,{get:t[r],enumerable:!0})},zZ=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of GZ(t))!$Z.call(e,o)&&o!==r&&sd(e,o,{get:()=>t[o],enumerable:!(n=UZ(t,o))||n.enumerable});return e},VZ=e=>zZ(sd({},"__esModule",{value:!0}),e),Ux={};HZ(Ux,{Field:()=>YZ,Fields:()=>XZ,HttpRequest:()=>QZ,HttpResponse:()=>ZZ,getHttpHandlerExtensionConfiguration:()=>WZ,isValidHostname:()=>Kx,resolveHttpHandlerRuntimeConfig:()=>KZ});Jx.exports=VZ(Ux);var WZ=Bo(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"),KZ=Bo(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),JZ=Jt(),Gx=class{constructor({name:t,kind:r=JZ.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}};Bo(Gx,"Field");var YZ=Gx,$x=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)}};Bo($x,"Fields");var XZ=$x,Hx=class zx{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 zx({...this,headers:{...this.headers}});return t.query&&(t.query=Vx(t.query)),t}};Bo(Hx,"HttpRequest");var QZ=Hx;function Vx(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return{...t,[r]:Array.isArray(n)?[...n]:n}},{})}Bo(Vx,"cloneQuery");var Wx=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"}};Bo(Wx,"HttpResponse");var ZZ=Wx;function Kx(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}Bo(Kx,"isValidHostname")});var Xx=y((Xze,Yx)=>{function Qn(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}Qn.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(Qn.prototype[Symbol.iterator]=function(){return this});Qn.of=function(){var e=arguments,t=e.length,r=0;return new Qn(function(){return r>=t?{done:!0}:{done:!1,value:e[r++]}})};Qn.empty=function(){var e=new Qn(null);return e.done=!0,e};Qn.is=function(e){return e instanceof Qn?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};Yx.exports=Qn});var z_=y((Qze,tP)=>{var Qx=typeof ArrayBuffer<"u",Zx=typeof Symbol<"u";function eP(e,t){var r,n,o,i,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)||Qx&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(o=0,i=e.length;o<i;o++)t(e[o],o);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(Zx&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,o=0;s=r.next(),s.done!==!0;)t(s.value,o),o++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)}eP.forEachWithNullKeys=function(e,t){var r,n,o,i,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)||Qx&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(o=0,i=e.length;o<i;o++)t(e[o],null);return}if(e instanceof Set){e.forEach(function(a){t(a,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(Zx&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(r=e,o=0;s=r.next(),s.done!==!0;)t(s.value,null),o++;return}for(n in e)e.hasOwnProperty(n)&&t(e[n],n)};tP.exports=eP});var V_=y(Pn=>{var eee=Math.pow(2,8)-1,tee=Math.pow(2,16)-1,ree=Math.pow(2,32)-1,nee=Math.pow(2,7)-1,oee=Math.pow(2,15)-1,iee=Math.pow(2,31)-1;Pn.getPointerArray=function(e){var t=e-1;return t<=eee?Uint8Array:t<=tee?Uint16Array:t<=ree?Uint32Array:Float64Array};Pn.getSignedPointerArray=function(e){var t=e-1;return t<=nee?Int8Array:t<=oee?Int16Array:t<=iee?Int32Array:Float64Array};Pn.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 see={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};Pn.getMinimalRepresentation=function(e,t){var r=null,n=0,o,i,s,a,l;for(a=0,l=e.length;a<l;a++)s=t?t(e[a]):e[a],i=Pn.getNumberType(s),o=see[i.name],o>n&&(n=o,r=i);return r};Pn.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};Pn.concat=function(){var e=0,t,r,n;for(t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var o=new arguments[0].constructor(e);for(t=0,r=0;t<n;t++)o.set(arguments[t],r),r+=arguments[t].length;return o};Pn.indices=function(e){for(var t=Pn.getPointerArray(e),r=new t(e),n=0;n<e;n++)r[n]=n;return r}});var oP=y(Wc=>{var rP=z_(),nP=V_();function aee(e){return Array.isArray(e)||nP.isTypedArray(e)}function W_(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function cee(e){var t=W_(e),r=typeof t=="number"?new Array(t):[],n=0;return rP(e,function(o){r[n++]=o}),r}function lee(e){var t=W_(e),r=typeof t=="number"?nP.getPointerArray(t):Array,n=typeof t=="number"?new Array(t):[],o=typeof t=="number"?new r(t):[],i=0;return rP(e,function(s){n[i]=s,o[i]=i++}),[n,o]}Wc.isArrayLike=aee;Wc.guessLength=W_;Wc.toArray=cee;Wc.toArrayWithIndices=lee});var sP=y((t6e,iP)=>{var K_=Xx(),uee=z_(),dee=V_(),pee=oP();function ft(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=dee.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={}}ft.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};ft.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};ft.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};ft.prototype.setpop=function(e,t){var r=null,n=null,o=this.items[e];return typeof o<"u"?(this.splayOnTop(o),r=this.V[o],this.V[o]=t,{evicted:!1,key:e,value:r}):(this.size<this.capacity?o=this.size++:(o=this.tail,this.tail=this.backward[o],r=this.V[o],n=this.K[o],delete this.items[this.K[o]]),this.items[e]=o,this.K[o]=e,this.V[o]=t,this.forward[o]=this.head,this.backward[this.head]=o,this.head=o,n?{evicted:!0,key:n,value:r}:null)};ft.prototype.has=function(e){return e in this.items};ft.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};ft.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};ft.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var r=0,n=this.size,o=this.head,i=this.K,s=this.V,a=this.forward;r<n;)e.call(t,s[o],i[o],this),o=a[o],r++};ft.prototype.keys=function(){var e=0,t=this.size,r=this.head,n=this.K,o=this.forward;return new K_(function(){if(e>=t)return{done:!0};var i=n[r];return e++,e<t&&(r=o[r]),{done:!1,value:i}})};ft.prototype.values=function(){var e=0,t=this.size,r=this.head,n=this.V,o=this.forward;return new K_(function(){if(e>=t)return{done:!0};var i=n[r];return e++,e<t&&(r=o[r]),{done:!1,value:i}})};ft.prototype.entries=function(){var e=0,t=this.size,r=this.head,n=this.K,o=this.V,i=this.forward;return new K_(function(){if(e>=t)return{done:!0};var s=n[r],a=o[r];return e++,e<t&&(r=i[r]),{done:!1,value:[s,a]}})};typeof Symbol<"u"&&(ft.prototype[Symbol.iterator]=ft.prototype.entries);ft.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:ft,enumerable:!1}),e};typeof Symbol<"u"&&(ft.prototype[Symbol.for("nodejs.util.inspect.custom")]=ft.prototype.inspect);ft.from=function(e,t,r,n){if(arguments.length<2){if(n=pee.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 o=new ft(t,r,n);return uee(e,function(i,s){o.set(s,i)}),o};iP.exports=ft});var dP=y((n6e,uP)=>{var fee=Object.create,Kc=Object.defineProperty,mee=Object.getOwnPropertyDescriptor,hee=Object.getOwnPropertyNames,yee=Object.getPrototypeOf,_ee=Object.prototype.hasOwnProperty,vee=(e,t)=>Kc(e,"name",{value:t,configurable:!0}),gee=(e,t)=>{for(var r in t)Kc(e,r,{get:t[r],enumerable:!0})},aP=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of hee(t))!_ee.call(e,o)&&o!==r&&Kc(e,o,{get:()=>t[o],enumerable:!(n=mee(t,o))||n.enumerable});return e},See=(e,t,r)=>(r=e!=null?fee(yee(e)):{},aP(t||!e||!e.__esModule?Kc(r,"default",{value:e,enumerable:!0}):r,e)),Eee=e=>aP(Kc({},"__esModule",{value:!0}),e),cP={};gee(cP,{EndpointCache:()=>Cee});uP.exports=Eee(cP);var bee=See(sP()),lP=class{constructor(t){this.cache=new bee.default(t)}getEndpoint(t){let r=this.get(t);if(!r||r.length===0)return;let n=r.map(o=>o.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(),o=r.filter(i=>n<i.Expires);if(o.length===0){this.delete(t);return}return o}set(t,r){let n=Date.now();this.cache.set(t,r.map(({Address:o,CachePeriodInMinutes:i})=>({Address:o,Expires:n+i*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()}};vee(lP,"EndpointCache");var Cee=lP});var X_=y((o6e,yP)=>{var ad=Object.defineProperty,wee=Object.getOwnPropertyDescriptor,xee=Object.getOwnPropertyNames,Pee=Object.prototype.hasOwnProperty,Uo=(e,t)=>ad(e,"name",{value:t,configurable:!0}),Aee=(e,t)=>{for(var r in t)ad(e,r,{get:t[r],enumerable:!0})},Tee=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of xee(t))!Pee.call(e,o)&&o!==r&&ad(e,o,{get:()=>t[o],enumerable:!(n=wee(t,o))||n.enumerable});return e},Oee=e=>Tee(ad({},"__esModule",{value:!0}),e),hP={};Aee(hP,{NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS:()=>Iee,endpointDiscoveryMiddlewareOptions:()=>cd,getEndpointDiscoveryOptionalPlugin:()=>kee,getEndpointDiscoveryPlugin:()=>Nee,getEndpointDiscoveryRequiredPlugin:()=>Mee,resolveEndpointDiscoveryConfig:()=>jee});yP.exports=Oee(hP);var pP=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],J_="endpoint_discovery_enabled",fP=Uo(e=>["false","0"].indexOf(e)>=0,"isFalsy"),Iee={environmentVariableSelector:e=>{for(let t=0;t<pP.length;t++){let r=pP[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!fP(n)}}},configFileSelector:e=>{if(J_ in e){let t=e[J_];if(t===void 0)throw Error(`Shared config entry ${J_} can't be undefined, got "${t}"`);return!fP(t)}},default:void 0},Ree=pt(),Dee=Uo(async(e,t,r)=>{let{accessKeyId:n}=await t.credentials(),{identifiers:o}=r;return JSON.stringify({...n&&{accessKeyId:n},...o&&{commandName:e,identi