UNPKG

@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 2.22 MB
"use strict";var z8e=Object.create;var Xy=Object.defineProperty;var NY=Object.getOwnPropertyDescriptor;var B8e=Object.getOwnPropertyNames;var j8e=Object.getPrototypeOf,U8e=Object.prototype.hasOwnProperty;var Lt=(e,t)=>()=>(e&&(t=e(e=0)),t);var u=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),_o=(e,t)=>{for(var n in t)Xy(e,n,{get:t[n],enumerable:!0})},kY=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of B8e(t))!U8e.call(e,i)&&i!==n&&Xy(e,i,{get:()=>t[i],enumerable:!(r=NY(t,i))||r.enumerable});return e};var $t=(e,t,n)=>(n=e!=null?z8e(j8e(e)):{},kY(t||!e||!e.__esModule?Xy(n,"default",{value:e,enumerable:!0}):n,e)),H=e=>kY(Xy({},"__esModule",{value:!0}),e),Er=(e,t,n,r)=>{for(var i=r>1?void 0:r?NY(t,n):t,s=e.length-1,o;s>=0;s--)(o=e[s])&&(i=(r?o(t,n,i):o(i))||i);return r&&i&&Xy(t,n,i),i};var DY=u(SF=>{var OY="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");SF.encode=function(e){if(0<=e&&e<OY.length)return OY[e];throw new TypeError("Must be between 0 and 63: "+e)};SF.decode=function(e){var t=65,n=90,r=97,i=122,s=48,o=57,a=43,c=47,l=26,d=52;return t<=e&&e<=n?e-t:r<=e&&e<=i?e-r+l:s<=e&&e<=o?e-s+d:e==a?62:e==c?63:-1}});var EF=u(CF=>{var MY=DY(),vF=5,qY=1<<vF,FY=qY-1,LY=qY;function G8e(e){return e<0?(-e<<1)+1:(e<<1)+0}function V8e(e){var t=(e&1)===1,n=e>>1;return t?-n:n}CF.encode=function(t){var n="",r,i=G8e(t);do r=i&FY,i>>>=vF,i>0&&(r|=LY),n+=MY.encode(r);while(i>0);return n};CF.decode=function(t,n,r){var i=t.length,s=0,o=0,a,c;do{if(n>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(c=MY.decode(t.charCodeAt(n++)),c===-1)throw new Error("Invalid base64 digit: "+t.charAt(n-1));a=!!(c&LY),c&=FY,s=s+(c<<o),o+=vF}while(a);r.value=V8e(s),r.rest=n}});var lp=u(Jr=>{function $8e(e,t,n){if(t in e)return e[t];if(arguments.length===3)return n;throw new Error('"'+t+'" is a required argument.')}Jr.getArg=$8e;var zY=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,H8e=/^data:.+\,.+$/;function Wy(e){var t=e.match(zY);return t?{scheme:t[1],auth:t[2],host:t[3],port:t[4],path:t[5]}:null}Jr.urlParse=Wy;function cp(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}Jr.urlGenerate=cp;function wF(e){var t=e,n=Wy(e);if(n){if(!n.path)return e;t=n.path}for(var r=Jr.isAbsolute(t),i=t.split(/\/+/),s,o=0,a=i.length-1;a>=0;a--)s=i[a],s==="."?i.splice(a,1):s===".."?o++:o>0&&(s===""?(i.splice(a+1,o),o=0):(i.splice(a,2),o--));return t=i.join("/"),t===""&&(t=r?"/":"."),n?(n.path=t,cp(n)):t}Jr.normalize=wF;function BY(e,t){e===""&&(e="."),t===""&&(t=".");var n=Wy(t),r=Wy(e);if(r&&(e=r.path||"/"),n&&!n.scheme)return r&&(n.scheme=r.scheme),cp(n);if(n||t.match(H8e))return t;if(r&&!r.host&&!r.path)return r.host=t,cp(r);var i=t.charAt(0)==="/"?t:wF(e.replace(/\/+$/,"")+"/"+t);return r?(r.path=i,cp(r)):i}Jr.join=BY;Jr.isAbsolute=function(e){return e.charAt(0)==="/"||zY.test(e)};function X8e(e,t){e===""&&(e="."),e=e.replace(/\/$/,"");for(var n=0;t.indexOf(e+"/")!==0;){var r=e.lastIndexOf("/");if(r<0||(e=e.slice(0,r),e.match(/^([^\/]+:\/)?\/*$/)))return t;++n}return Array(n+1).join("../")+t.substr(e.length+1)}Jr.relative=X8e;var jY=(function(){var e=Object.create(null);return!("__proto__"in e)})();function UY(e){return e}function W8e(e){return GY(e)?"$"+e:e}Jr.toSetString=jY?UY:W8e;function K8e(e){return GY(e)?e.slice(1):e}Jr.fromSetString=jY?UY:K8e;function GY(e){if(!e)return!1;var t=e.length;if(t<9||e.charCodeAt(t-1)!==95||e.charCodeAt(t-2)!==95||e.charCodeAt(t-3)!==111||e.charCodeAt(t-4)!==116||e.charCodeAt(t-5)!==111||e.charCodeAt(t-6)!==114||e.charCodeAt(t-7)!==112||e.charCodeAt(t-8)!==95||e.charCodeAt(t-9)!==95)return!1;for(var n=t-10;n>=0;n--)if(e.charCodeAt(n)!==36)return!1;return!0}function J8e(e,t,n){var r=dp(e.source,t.source);return r!==0||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0||n)||(r=e.generatedColumn-t.generatedColumn,r!==0)||(r=e.generatedLine-t.generatedLine,r!==0)?r:dp(e.name,t.name)}Jr.compareByOriginalPositions=J8e;function Y8e(e,t,n){var r=e.generatedLine-t.generatedLine;return r!==0||(r=e.generatedColumn-t.generatedColumn,r!==0||n)||(r=dp(e.source,t.source),r!==0)||(r=e.originalLine-t.originalLine,r!==0)||(r=e.originalColumn-t.originalColumn,r!==0)?r:dp(e.name,t.name)}Jr.compareByGeneratedPositionsDeflated=Y8e;function dp(e,t){return e===t?0:e===null?1:t===null?-1:e>t?1:-1}function Q8e(e,t){var n=e.generatedLine-t.generatedLine;return n!==0||(n=e.generatedColumn-t.generatedColumn,n!==0)||(n=dp(e.source,t.source),n!==0)||(n=e.originalLine-t.originalLine,n!==0)||(n=e.originalColumn-t.originalColumn,n!==0)?n:dp(e.name,t.name)}Jr.compareByGeneratedPositionsInflated=Q8e;function Z8e(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))}Jr.parseSourceMapInput=Z8e;function e9e(e,t,n){if(t=t||"",e&&(e[e.length-1]!=="/"&&t[0]!=="/"&&(e+="/"),t=e+t),n){var r=Wy(n);if(!r)throw new Error("sourceMapURL could not be parsed");if(r.path){var i=r.path.lastIndexOf("/");i>=0&&(r.path=r.path.substring(0,i+1))}t=BY(cp(r),t)}return wF(t)}Jr.computeSourceURL=e9e});var xF=u(VY=>{var bF=lp(),AF=Object.prototype.hasOwnProperty,$u=typeof Map<"u";function Ic(){this._array=[],this._set=$u?new Map:Object.create(null)}Ic.fromArray=function(t,n){for(var r=new Ic,i=0,s=t.length;i<s;i++)r.add(t[i],n);return r};Ic.prototype.size=function(){return $u?this._set.size:Object.getOwnPropertyNames(this._set).length};Ic.prototype.add=function(t,n){var r=$u?t:bF.toSetString(t),i=$u?this.has(t):AF.call(this._set,r),s=this._array.length;(!i||n)&&this._array.push(t),i||($u?this._set.set(t,s):this._set[r]=s)};Ic.prototype.has=function(t){if($u)return this._set.has(t);var n=bF.toSetString(t);return AF.call(this._set,n)};Ic.prototype.indexOf=function(t){if($u){var n=this._set.get(t);if(n>=0)return n}else{var r=bF.toSetString(t);if(AF.call(this._set,r))return this._set[r]}throw new Error('"'+t+'" is not in the set.')};Ic.prototype.at=function(t){if(t>=0&&t<this._array.length)return this._array[t];throw new Error("No element indexed by "+t)};Ic.prototype.toArray=function(){return this._array.slice()};VY.ArraySet=Ic});var XY=u(HY=>{var $Y=lp();function t9e(e,t){var n=e.generatedLine,r=t.generatedLine,i=e.generatedColumn,s=t.generatedColumn;return r>n||r==n&&s>=i||$Y.compareByGeneratedPositionsInflated(e,t)<=0}function rC(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}rC.prototype.unsortedForEach=function(t,n){this._array.forEach(t,n)};rC.prototype.add=function(t){t9e(this._last,t)?(this._last=t,this._array.push(t)):(this._sorted=!1,this._array.push(t))};rC.prototype.toArray=function(){return this._sorted||(this._array.sort($Y.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};HY.MappingList=rC});var PF=u(WY=>{var Ky=EF(),cr=lp(),iC=xF().ArraySet,n9e=XY().MappingList;function Ss(e){e||(e={}),this._file=cr.getArg(e,"file",null),this._sourceRoot=cr.getArg(e,"sourceRoot",null),this._skipValidation=cr.getArg(e,"skipValidation",!1),this._sources=new iC,this._names=new iC,this._mappings=new n9e,this._sourcesContents=null}Ss.prototype._version=3;Ss.fromSourceMap=function(t){var n=t.sourceRoot,r=new Ss({file:t.file,sourceRoot:n});return t.eachMapping(function(i){var s={generated:{line:i.generatedLine,column:i.generatedColumn}};i.source!=null&&(s.source=i.source,n!=null&&(s.source=cr.relative(n,s.source)),s.original={line:i.originalLine,column:i.originalColumn},i.name!=null&&(s.name=i.name)),r.addMapping(s)}),t.sources.forEach(function(i){var s=i;n!==null&&(s=cr.relative(n,i)),r._sources.has(s)||r._sources.add(s);var o=t.sourceContentFor(i);o!=null&&r.setSourceContent(i,o)}),r};Ss.prototype.addMapping=function(t){var n=cr.getArg(t,"generated"),r=cr.getArg(t,"original",null),i=cr.getArg(t,"source",null),s=cr.getArg(t,"name",null);this._skipValidation||this._validateMapping(n,r,i,s),i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:n.line,generatedColumn:n.column,originalLine:r!=null&&r.line,originalColumn:r!=null&&r.column,source:i,name:s})};Ss.prototype.setSourceContent=function(t,n){var r=t;this._sourceRoot!=null&&(r=cr.relative(this._sourceRoot,r)),n!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[cr.toSetString(r)]=n):this._sourcesContents&&(delete this._sourcesContents[cr.toSetString(r)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Ss.prototype.applySourceMap=function(t,n,r){var i=n;if(n==null){if(t.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=t.file}var s=this._sourceRoot;s!=null&&(i=cr.relative(s,i));var o=new iC,a=new iC;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,r!=null&&(c.source=cr.join(r,c.source)),s!=null&&(c.source=cr.relative(s,c.source)),c.originalLine=l.line,c.originalColumn=l.column,l.name!=null&&(c.name=l.name))}var d=c.source;d!=null&&!o.has(d)&&o.add(d);var p=c.name;p!=null&&!a.has(p)&&a.add(p)},this),this._sources=o,this._names=a,t.sources.forEach(function(c){var l=t.sourceContentFor(c);l!=null&&(r!=null&&(c=cr.join(r,c)),s!=null&&(c=cr.relative(s,c)),this.setSourceContent(c,l))},this)};Ss.prototype._validateMapping=function(t,n,r,i){if(n&&typeof n.line!="number"&&typeof n.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(t&&"line"in t&&"column"in t&&t.line>0&&t.column>=0&&!n&&!r&&!i)){if(t&&"line"in t&&"column"in t&&n&&"line"in n&&"column"in n&&t.line>0&&t.column>=0&&n.line>0&&n.column>=0&&r)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:t,source:r,original:n,name:i}))}};Ss.prototype._serializeMappings=function(){for(var t=0,n=1,r=0,i=0,s=0,o=0,a="",c,l,d,p,g=this._mappings.toArray(),h=0,v=g.length;h<v;h++){if(l=g[h],c="",l.generatedLine!==n)for(t=0;l.generatedLine!==n;)c+=";",n++;else if(h>0){if(!cr.compareByGeneratedPositionsInflated(l,g[h-1]))continue;c+=","}c+=Ky.encode(l.generatedColumn-t),t=l.generatedColumn,l.source!=null&&(p=this._sources.indexOf(l.source),c+=Ky.encode(p-o),o=p,c+=Ky.encode(l.originalLine-1-i),i=l.originalLine-1,c+=Ky.encode(l.originalColumn-r),r=l.originalColumn,l.name!=null&&(d=this._names.indexOf(l.name),c+=Ky.encode(d-s),s=d)),a+=c}return a};Ss.prototype._generateSourcesContent=function(t,n){return t.map(function(r){if(!this._sourcesContents)return null;n!=null&&(r=cr.relative(n,r));var i=cr.toSetString(r);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Ss.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};Ss.prototype.toString=function(){return JSON.stringify(this.toJSON())};WY.SourceMapGenerator=Ss});var KY=u(Hu=>{Hu.GREATEST_LOWER_BOUND=1;Hu.LEAST_UPPER_BOUND=2;function IF(e,t,n,r,i,s){var o=Math.floor((t-e)/2)+e,a=i(n,r[o],!0);return a===0?o:a>0?t-o>1?IF(o,t,n,r,i,s):s==Hu.LEAST_UPPER_BOUND?t<r.length?t:-1:o:o-e>1?IF(e,o,n,r,i,s):s==Hu.LEAST_UPPER_BOUND?o:e<0?-1:e}Hu.search=function(t,n,r,i){if(n.length===0)return-1;var s=IF(-1,n.length,t,n,r,i||Hu.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&r(n[s],n[s-1],!0)===0;)--s;return s}});var YY=u(JY=>{function RF(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function r9e(e,t){return Math.round(e+Math.random()*(t-e))}function TF(e,t,n,r){if(n<r){var i=r9e(n,r),s=n-1;RF(e,i,r);for(var o=e[r],a=n;a<r;a++)t(e[a],o)<=0&&(s+=1,RF(e,s,a));RF(e,s+1,a);var c=s+1;TF(e,t,n,c-1),TF(e,t,c+1,r)}}JY.quickSort=function(e,t){TF(e,t,0,e.length-1)}});var ZY=u(sC=>{var $e=lp(),NF=KY(),up=xF().ArraySet,i9e=EF(),Jy=YY().quickSort;function qn(e,t){var n=e;return typeof e=="string"&&(n=$e.parseSourceMapInput(e)),n.sections!=null?new So(n,t):new Mr(n,t)}qn.fromSourceMap=function(e,t){return Mr.fromSourceMap(e,t)};qn.prototype._version=3;qn.prototype.__generatedMappings=null;Object.defineProperty(qn.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});qn.prototype.__originalMappings=null;Object.defineProperty(qn.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});qn.prototype._charIsMappingSeparator=function(t,n){var r=t.charAt(n);return r===";"||r===","};qn.prototype._parseMappings=function(t,n){throw new Error("Subclasses must implement _parseMappings")};qn.GENERATED_ORDER=1;qn.ORIGINAL_ORDER=2;qn.GREATEST_LOWER_BOUND=1;qn.LEAST_UPPER_BOUND=2;qn.prototype.eachMapping=function(t,n,r){var i=n||null,s=r||qn.GENERATED_ORDER,o;switch(s){case qn.GENERATED_ORDER:o=this._generatedMappings;break;case qn.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}var a=this.sourceRoot;o.map(function(c){var l=c.source===null?null:this._sources.at(c.source);return l=$e.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)};qn.prototype.allGeneratedPositionsFor=function(t){var n=$e.getArg(t,"line"),r={source:$e.getArg(t,"source"),originalLine:n,originalColumn:$e.getArg(t,"column",0)};if(r.source=this._findSourceIndex(r.source),r.source<0)return[];var i=[],s=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",$e.compareByOriginalPositions,NF.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(t.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)i.push({line:$e.getArg(o,"generatedLine",null),column:$e.getArg(o,"generatedColumn",null),lastColumn:$e.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var c=o.originalColumn;o&&o.originalLine===n&&o.originalColumn==c;)i.push({line:$e.getArg(o,"generatedLine",null),column:$e.getArg(o,"generatedColumn",null),lastColumn:$e.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return i};sC.SourceMapConsumer=qn;function Mr(e,t){var n=e;typeof e=="string"&&(n=$e.parseSourceMapInput(e));var r=$e.getArg(n,"version"),i=$e.getArg(n,"sources"),s=$e.getArg(n,"names",[]),o=$e.getArg(n,"sourceRoot",null),a=$e.getArg(n,"sourcesContent",null),c=$e.getArg(n,"mappings"),l=$e.getArg(n,"file",null);if(r!=this._version)throw new Error("Unsupported version: "+r);o&&(o=$e.normalize(o)),i=i.map(String).map($e.normalize).map(function(d){return o&&$e.isAbsolute(o)&&$e.isAbsolute(d)?$e.relative(o,d):d}),this._names=up.fromArray(s.map(String),!0),this._sources=up.fromArray(i,!0),this._absoluteSources=this._sources.toArray().map(function(d){return $e.computeSourceURL(o,d,t)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=c,this._sourceMapURL=t,this.file=l}Mr.prototype=Object.create(qn.prototype);Mr.prototype.consumer=qn;Mr.prototype._findSourceIndex=function(e){var t=e;if(this.sourceRoot!=null&&(t=$e.relative(this.sourceRoot,t)),this._sources.has(t))return this._sources.indexOf(t);var n;for(n=0;n<this._absoluteSources.length;++n)if(this._absoluteSources[n]==e)return n;return-1};Mr.fromSourceMap=function(t,n){var r=Object.create(Mr.prototype),i=r._names=up.fromArray(t._names.toArray(),!0),s=r._sources=up.fromArray(t._sources.toArray(),!0);r.sourceRoot=t._sourceRoot,r.sourcesContent=t._generateSourcesContent(r._sources.toArray(),r.sourceRoot),r.file=t._file,r._sourceMapURL=n,r._absoluteSources=r._sources.toArray().map(function(h){return $e.computeSourceURL(r.sourceRoot,h,n)});for(var o=t._mappings.toArray().slice(),a=r.__generatedMappings=[],c=r.__originalMappings=[],l=0,d=o.length;l<d;l++){var p=o[l],g=new QY;g.generatedLine=p.generatedLine,g.generatedColumn=p.generatedColumn,p.source&&(g.source=s.indexOf(p.source),g.originalLine=p.originalLine,g.originalColumn=p.originalColumn,p.name&&(g.name=i.indexOf(p.name)),c.push(g)),a.push(g)}return Jy(r.__originalMappings,$e.compareByOriginalPositions),r};Mr.prototype._version=3;Object.defineProperty(Mr.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function QY(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}Mr.prototype._parseMappings=function(t,n){for(var r=1,i=0,s=0,o=0,a=0,c=0,l=t.length,d=0,p={},g={},h=[],v=[],S,w,R,O,ge;d<l;)if(t.charAt(d)===";")r++,d++,i=0;else if(t.charAt(d)===",")d++;else{for(S=new QY,S.generatedLine=r,O=d;O<l&&!this._charIsMappingSeparator(t,O);O++);if(w=t.slice(d,O),R=p[w],R)d+=w.length;else{for(R=[];d<O;)i9e.decode(t,d,g),ge=g.value,d=g.rest,R.push(ge);if(R.length===2)throw new Error("Found a source, but no line and column");if(R.length===3)throw new Error("Found a source and line, but no column");p[w]=R}S.generatedColumn=i+R[0],i=S.generatedColumn,R.length>1&&(S.source=a+R[1],a+=R[1],S.originalLine=s+R[2],s=S.originalLine,S.originalLine+=1,S.originalColumn=o+R[3],o=S.originalColumn,R.length>4&&(S.name=c+R[4],c+=R[4])),v.push(S),typeof S.originalLine=="number"&&h.push(S)}Jy(v,$e.compareByGeneratedPositionsDeflated),this.__generatedMappings=v,Jy(h,$e.compareByOriginalPositions),this.__originalMappings=h};Mr.prototype._findMapping=function(t,n,r,i,s,o){if(t[r]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+t[r]);if(t[i]<0)throw new TypeError("Column must be greater than or equal to 0, got "+t[i]);return NF.search(t,n,s,o)};Mr.prototype.computeColumnSpans=function(){for(var t=0;t<this._generatedMappings.length;++t){var n=this._generatedMappings[t];if(t+1<this._generatedMappings.length){var r=this._generatedMappings[t+1];if(n.generatedLine===r.generatedLine){n.lastGeneratedColumn=r.generatedColumn-1;continue}}n.lastGeneratedColumn=1/0}};Mr.prototype.originalPositionFor=function(t){var n={generatedLine:$e.getArg(t,"line"),generatedColumn:$e.getArg(t,"column")},r=this._findMapping(n,this._generatedMappings,"generatedLine","generatedColumn",$e.compareByGeneratedPositionsDeflated,$e.getArg(t,"bias",qn.GREATEST_LOWER_BOUND));if(r>=0){var i=this._generatedMappings[r];if(i.generatedLine===n.generatedLine){var s=$e.getArg(i,"source",null);s!==null&&(s=this._sources.at(s),s=$e.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=$e.getArg(i,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:$e.getArg(i,"originalLine",null),column:$e.getArg(i,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};Mr.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(t){return t==null}):!1};Mr.prototype.sourceContentFor=function(t,n){if(!this.sourcesContent)return null;var r=this._findSourceIndex(t);if(r>=0)return this.sourcesContent[r];var i=t;this.sourceRoot!=null&&(i=$e.relative(this.sourceRoot,i));var s;if(this.sourceRoot!=null&&(s=$e.urlParse(this.sourceRoot))){var o=i.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(n)return null;throw new Error('"'+i+'" is not in the SourceMap.')};Mr.prototype.generatedPositionFor=function(t){var n=$e.getArg(t,"source");if(n=this._findSourceIndex(n),n<0)return{line:null,column:null,lastColumn:null};var r={source:n,originalLine:$e.getArg(t,"line"),originalColumn:$e.getArg(t,"column")},i=this._findMapping(r,this._originalMappings,"originalLine","originalColumn",$e.compareByOriginalPositions,$e.getArg(t,"bias",qn.GREATEST_LOWER_BOUND));if(i>=0){var s=this._originalMappings[i];if(s.source===r.source)return{line:$e.getArg(s,"generatedLine",null),column:$e.getArg(s,"generatedColumn",null),lastColumn:$e.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};sC.BasicSourceMapConsumer=Mr;function So(e,t){var n=e;typeof e=="string"&&(n=$e.parseSourceMapInput(e));var r=$e.getArg(n,"version"),i=$e.getArg(n,"sections");if(r!=this._version)throw new Error("Unsupported version: "+r);this._sources=new up,this._names=new up;var s={line:-1,column:0};this._sections=i.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=$e.getArg(o,"offset"),c=$e.getArg(a,"line"),l=$e.getArg(a,"column");if(c<s.line||c===s.line&&l<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:c+1,generatedColumn:l+1},consumer:new qn($e.getArg(o,"map"),t)}})}So.prototype=Object.create(qn.prototype);So.prototype.constructor=qn;So.prototype._version=3;Object.defineProperty(So.prototype,"sources",{get:function(){for(var e=[],t=0;t<this._sections.length;t++)for(var n=0;n<this._sections[t].consumer.sources.length;n++)e.push(this._sections[t].consumer.sources[n]);return e}});So.prototype.originalPositionFor=function(t){var n={generatedLine:$e.getArg(t,"line"),generatedColumn:$e.getArg(t,"column")},r=NF.search(n,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),i=this._sections[r];return i?i.consumer.originalPositionFor({line:n.generatedLine-(i.generatedOffset.generatedLine-1),column:n.generatedColumn-(i.generatedOffset.generatedLine===n.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:t.bias}):{source:null,line:null,column:null,name:null}};So.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(t){return t.consumer.hasContentsOfAllSources()})};So.prototype.sourceContentFor=function(t,n){for(var r=0;r<this._sections.length;r++){var i=this._sections[r],s=i.consumer.sourceContentFor(t,!0);if(s)return s}if(n)return null;throw new Error('"'+t+'" is not in the SourceMap.')};So.prototype.generatedPositionFor=function(t){for(var n=0;n<this._sections.length;n++){var r=this._sections[n];if(r.consumer._findSourceIndex($e.getArg(t,"source"))!==-1){var i=r.consumer.generatedPositionFor(t);if(i){var s={line:i.line+(r.generatedOffset.generatedLine-1),column:i.column+(r.generatedOffset.generatedLine===i.line?r.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};So.prototype._parseMappings=function(t,n){this.__generatedMappings=[],this.__originalMappings=[];for(var r=0;r<this._sections.length;r++)for(var i=this._sections[r],s=i.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],c=i.consumer._sources.at(a.source);c=$e.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 d={source:c,generatedLine:a.generatedLine+(i.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(i.generatedOffset.generatedLine===a.generatedLine?i.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:l};this.__generatedMappings.push(d),typeof d.originalLine=="number"&&this.__originalMappings.push(d)}Jy(this.__generatedMappings,$e.compareByGeneratedPositionsDeflated),Jy(this.__originalMappings,$e.compareByOriginalPositions)};sC.IndexedSourceMapConsumer=So});var t7=u(e7=>{var s9e=PF().SourceMapGenerator,oC=lp(),o9e=/(\r?\n)/,a9e=10,mp="$$$isSourceNode$$$";function Ji(e,t,n,r,i){this.children=[],this.sourceContents={},this.line=e??null,this.column=t??null,this.source=n??null,this.name=i??null,this[mp]=!0,r!=null&&this.add(r)}Ji.fromStringWithSourceMap=function(t,n,r){var i=new Ji,s=t.split(o9e),o=0,a=function(){var g=v(),h=v()||"";return g+h;function v(){return o<s.length?s[o++]:void 0}},c=1,l=0,d=null;return n.eachMapping(function(g){if(d!==null)if(c<g.generatedLine)p(d,a()),c++,l=0;else{var h=s[o]||"",v=h.substr(0,g.generatedColumn-l);s[o]=h.substr(g.generatedColumn-l),l=g.generatedColumn,p(d,v),d=g;return}for(;c<g.generatedLine;)i.add(a()),c++;if(l<g.generatedColumn){var h=s[o]||"";i.add(h.substr(0,g.generatedColumn)),s[o]=h.substr(g.generatedColumn),l=g.generatedColumn}d=g},this),o<s.length&&(d&&p(d,a()),i.add(s.splice(o).join(""))),n.sources.forEach(function(g){var h=n.sourceContentFor(g);h!=null&&(r!=null&&(g=oC.join(r,g)),i.setSourceContent(g,h))}),i;function p(g,h){if(g===null||g.source===void 0)i.add(h);else{var v=r?oC.join(r,g.source):g.source;i.add(new Ji(g.originalLine,g.originalColumn,v,h,g.name))}}};Ji.prototype.add=function(t){if(Array.isArray(t))t.forEach(function(n){this.add(n)},this);else if(t[mp]||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};Ji.prototype.prepend=function(t){if(Array.isArray(t))for(var n=t.length-1;n>=0;n--)this.prepend(t[n]);else if(t[mp]||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};Ji.prototype.walk=function(t){for(var n,r=0,i=this.children.length;r<i;r++)n=this.children[r],n[mp]?n.walk(t):n!==""&&t(n,{source:this.source,line:this.line,column:this.column,name:this.name})};Ji.prototype.join=function(t){var n,r,i=this.children.length;if(i>0){for(n=[],r=0;r<i-1;r++)n.push(this.children[r]),n.push(t);n.push(this.children[r]),this.children=n}return this};Ji.prototype.replaceRight=function(t,n){var r=this.children[this.children.length-1];return r[mp]?r.replaceRight(t,n):typeof r=="string"?this.children[this.children.length-1]=r.replace(t,n):this.children.push("".replace(t,n)),this};Ji.prototype.setSourceContent=function(t,n){this.sourceContents[oC.toSetString(t)]=n};Ji.prototype.walkSourceContents=function(t){for(var n=0,r=this.children.length;n<r;n++)this.children[n][mp]&&this.children[n].walkSourceContents(t);for(var i=Object.keys(this.sourceContents),n=0,r=i.length;n<r;n++)t(oC.fromSetString(i[n]),this.sourceContents[i[n]])};Ji.prototype.toString=function(){var t="";return this.walk(function(n){t+=n}),t};Ji.prototype.toStringWithSourceMap=function(t){var n={code:"",line:1,column:0},r=new s9e(t),i=!1,s=null,o=null,a=null,c=null;return this.walk(function(l,d){n.code+=l,d.source!==null&&d.line!==null&&d.column!==null?((s!==d.source||o!==d.line||a!==d.column||c!==d.name)&&r.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:n.line,column:n.column},name:d.name}),s=d.source,o=d.line,a=d.column,c=d.name,i=!0):i&&(r.addMapping({generated:{line:n.line,column:n.column}}),s=null,i=!1);for(var p=0,g=l.length;p<g;p++)l.charCodeAt(p)===a9e?(n.line++,n.column=0,p+1===g?(s=null,i=!1):i&&r.addMapping({source:d.source,original:{line:d.line,column:d.column},generated:{line:n.line,column:n.column},name:d.name})):n.column++}),this.walkSourceContents(function(l,d){r.setSourceContent(l,d)}),{code:n.code,map:r}};e7.SourceNode=Ji});var n7=u(aC=>{aC.SourceMapGenerator=PF().SourceMapGenerator;aC.SourceMapConsumer=ZY().SourceMapConsumer;aC.SourceNode=t7().SourceNode});var i7=u((hzn,r7)=>{var c9e=Object.prototype.toString,kF=typeof Buffer<"u"&&typeof Buffer.alloc=="function"&&typeof Buffer.allocUnsafe=="function"&&typeof Buffer.from=="function";function d9e(e){return c9e.call(e).slice(8,-1)==="ArrayBuffer"}function l9e(e,t,n){t>>>=0;var r=e.byteLength-t;if(r<0)throw new RangeError("'offset' is out of bounds");if(n===void 0)n=r;else if(n>>>=0,n>r)throw new RangeError("'length' is out of bounds");return kF?Buffer.from(e.slice(t,t+n)):new Buffer(new Uint8Array(e.slice(t,t+n)))}function u9e(e,t){if((typeof t!="string"||t==="")&&(t="utf8"),!Buffer.isEncoding(t))throw new TypeError('"encoding" must be a valid string encoding');return kF?Buffer.from(e,t):new Buffer(e,t)}function m9e(e,t,n){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return d9e(e)?l9e(e,t,n):typeof e=="string"?u9e(e,t):kF?Buffer.from(e):new Buffer(e)}r7.exports=m9e});var m7=u((Wu,qF)=>{var p9e=n7().SourceMapConsumer,OF=require("path"),Ko;try{Ko=require("fs"),(!Ko.existsSync||!Ko.readFileSync)&&(Ko=null)}catch{}var f9e=i7();function s7(e,t){return e.require(t)}var o7=!1,a7=!1,DF=!1,Yy="auto",Xu={},Qy={},g9e=/^data:application\/json[^,]+base64,/,Gd=[],Vd=[];function FF(){return Yy==="browser"?!0:Yy==="node"?!1:typeof window<"u"&&typeof XMLHttpRequest=="function"&&!(window.require&&window.module&&window.process&&window.process.type==="renderer")}function y9e(){return typeof process=="object"&&process!==null&&typeof process.on=="function"}function h9e(){return typeof process=="object"&&process!==null?process.version:""}function _9e(){if(typeof process=="object"&&process!==null)return process.stderr}function S9e(e){if(typeof process=="object"&&process!==null&&typeof process.exit=="function")return process.exit(e)}function cC(e){return function(t){for(var n=0;n<e.length;n++){var r=e[n](t);if(r)return r}return null}}var LF=cC(Gd);Gd.push(function(e){if(e=e.trim(),/^file:/.test(e)&&(e=e.replace(/file:\/\/\/(\w:)?/,function(r,i){return i?"":"/"})),e in Xu)return Xu[e];var t="";try{if(Ko)Ko.existsSync(e)&&(t=Ko.readFileSync(e,"utf8"));else{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),n.readyState===4&&n.status===200&&(t=n.responseText)}}catch{}return Xu[e]=t});function MF(e,t){if(!e)return t;var n=OF.dirname(e),r=/^\w+:\/\/[^\/]*/.exec(n),i=r?r[0]:"",s=n.slice(i.length);return i&&/^\/\w\:/.test(s)?(i+="/",i+OF.resolve(n.slice(i.length),t).replace(/\\/g,"/")):i+OF.resolve(n.slice(i.length),t)}function v9e(e){var t;if(FF())try{var n=new XMLHttpRequest;n.open("GET",e,!1),n.send(null),t=n.readyState===4?n.responseText:null;var r=n.getResponseHeader("SourceMap")||n.getResponseHeader("X-SourceMap");if(r)return r}catch{}t=LF(e);for(var i=/(?:\/\/[@#][\s]*sourceMappingURL=([^\s'"]+)[\s]*$)|(?:\/\*[@#][\s]*sourceMappingURL=([^\s*'"]+)[\s]*(?:\*\/)[\s]*$)/mg,s,o;o=i.exec(t);)s=o;return s?s[1]:null}var zF=cC(Vd);Vd.push(function(e){var t=v9e(e);if(!t)return null;var n;if(g9e.test(t)){var r=t.slice(t.indexOf(",")+1);n=f9e(r,"base64").toString(),t=e}else t=MF(e,t),n=LF(t);return n?{url:t,map:n}:null});function BF(e){var t=Qy[e.source];if(!t){var n=zF(e.source);n?(t=Qy[e.source]={url:n.url,map:new p9e(n.map)},t.map.sourcesContent&&t.map.sources.forEach(function(i,s){var o=t.map.sourcesContent[s];if(o){var a=MF(t.url,i);Xu[a]=o}})):t=Qy[e.source]={url:null,map:null}}if(t&&t.map&&typeof t.map.originalPositionFor=="function"){var r=t.map.originalPositionFor(e);if(r.source!==null)return r.source=MF(t.url,r.source),r}return e}function d7(e){var t=/^eval at ([^(]+) \((.+):(\d+):(\d+)\)$/.exec(e);if(t){var n=BF({source:t[2],line:+t[3],column:t[4]-1});return"eval at "+t[1]+" ("+n.source+":"+n.line+":"+(n.column+1)+")"}return t=/^eval at ([^(]+) \((.+)\)$/.exec(e),t?"eval at "+t[1]+" ("+d7(t[2])+")":e}function C9e(){var e,t="";if(this.isNative())t="native";else{e=this.getScriptNameOrSourceURL(),!e&&this.isEval()&&(t=this.getEvalOrigin(),t+=", "),e?t+=e:t+="<anonymous>";var n=this.getLineNumber();if(n!=null){t+=":"+n;var r=this.getColumnNumber();r&&(t+=":"+r)}}var i="",s=this.getFunctionName(),o=!0,a=this.isConstructor(),c=!(this.isToplevel()||a);if(c){var l=this.getTypeName();l==="[object Object]"&&(l="null");var d=this.getMethodName();s?(l&&s.indexOf(l)!=0&&(i+=l+"."),i+=s,d&&s.indexOf("."+d)!=s.length-d.length-1&&(i+=" [as "+d+"]")):i+=l+"."+(d||"<anonymous>")}else a?i+="new "+(s||"<anonymous>"):s?i+=s:(i+=t,o=!1);return o&&(i+=" ("+t+")"),i}function c7(e){var t={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(function(n){t[n]=/^(?:is|get)/.test(n)?function(){return e[n].call(e)}:e[n]}),t.toString=C9e,t}function l7(e,t){if(t===void 0&&(t={nextPosition:null,curPosition:null}),e.isNative())return t.curPosition=null,e;var n=e.getFileName()||e.getScriptNameOrSourceURL();if(n){var r=e.getLineNumber(),i=e.getColumnNumber()-1,s=/^v(10\.1[6-9]|10\.[2-9][0-9]|10\.[0-9]{3,}|1[2-9]\d*|[2-9]\d|\d{3,}|11\.11)/,o=s.test(h9e())?0:62;r===1&&i>o&&!FF()&&!e.isEval()&&(i-=o);var a=BF({source:n,line:r,column:i});t.curPosition=a,e=c7(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=d7(l),e=c7(e),e.getEvalOrigin=function(){return l}),e}function E9e(e,t){DF&&(Xu={},Qy={});for(var n=e.name||"Error",r=e.message||"",i=n+": "+r,s={nextPosition:null,curPosition:null},o=[],a=t.length-1;a>=0;a--)o.push(` at `+l7(t[a],s)),s.nextPosition=s.curPosition;return s.curPosition=s.nextPosition=null,i+o.reverse().join("")}function u7(e){var t=/\n at [^(]+ \((.*):(\d+):(\d+)\)/.exec(e.stack);if(t){var n=t[1],r=+t[2],i=+t[3],s=Xu[n];if(!s&&Ko&&Ko.existsSync(n))try{s=Ko.readFileSync(n,"utf8")}catch{s=""}if(s){var o=s.split(/(?:\r\n|\r|\n)/)[r-1];if(o)return n+":"+r+` `+o+` `+new Array(i).join(" ")+"^"}}return null}function w9e(e){var t=u7(e),n=_9e();n&&n._handle&&n._handle.setBlocking&&n._handle.setBlocking(!0),t&&(console.error(),console.error(t)),console.error(e.stack),S9e(1)}function b9e(){var e=process.emit;process.emit=function(t){if(t==="uncaughtException"){var n=arguments[1]&&arguments[1].stack,r=this.listeners(t).length>0;if(n&&!r)return w9e(arguments[1])}return e.apply(this,arguments)}}var A9e=Gd.slice(0),x9e=Vd.slice(0);Wu.wrapCallSite=l7;Wu.getErrorSource=u7;Wu.mapSourcePosition=BF;Wu.retrieveSourceMap=zF;Wu.install=function(e){if(e=e||{},e.environment&&(Yy=e.environment,["node","browser","auto"].indexOf(Yy)===-1))throw new Error("environment "+Yy+" was unknown. Available options are {auto, browser, node}");if(e.retrieveFile&&(e.overrideRetrieveFile&&(Gd.length=0),Gd.unshift(e.retrieveFile)),e.retrieveSourceMap&&(e.overrideRetrieveSourceMap&&(Vd.length=0),Vd.unshift(e.retrieveSourceMap)),e.hookRequire&&!FF()){var t=s7(qF,"module"),n=t.prototype._compile;n.__sourceMapSupport||(t.prototype._compile=function(s,o){return Xu[o]=s,Qy[o]=void 0,n.call(this,s,o)},t.prototype._compile.__sourceMapSupport=!0)}if(DF||(DF="emptyCacheBetweenOperations"in e?e.emptyCacheBetweenOperations:!1),o7||(o7=!0,Error.prepareStackTrace=E9e),!a7){var r="handleUncaughtExceptions"in e?e.handleUncaughtExceptions:!0;try{var i=s7(qF,"worker_threads");i.isMainThread===!1&&(r=!1)}catch{}r&&y9e()&&(a7=!0,b9e())}};Wu.resetRetrieveHandlers=function(){Gd.length=0,Vd.length=0,Gd=A9e.slice(0),Vd=x9e.slice(0),zF=cC(Vd),LF=cC(Gd)}});var Yr=u((_zn,E7)=>{var dC=Object.defineProperty,P9e=Object.getOwnPropertyDescriptor,I9e=Object.getOwnPropertyNames,R9e=Object.prototype.hasOwnProperty,lC=(e,t)=>dC(e,"name",{value:t,configurable:!0}),T9e=(e,t)=>{for(var n in t)dC(e,n,{get:t[n],enumerable:!0})},N9e=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of I9e(t))!R9e.call(e,i)&&i!==n&&dC(e,i,{get:()=>t[i],enumerable:!(r=P9e(t,i))||r.enumerable});return e},k9e=e=>N9e(dC({},"__esModule",{value:!0}),e),f7={};T9e(f7,{AlgorithmId:()=>_7,EndpointURLScheme:()=>h7,FieldPosition:()=>S7,HttpApiKeyAuthLocation:()=>y7,HttpAuthLocation:()=>g7,IniSectionType:()=>v7,RequestHandlerProtocol:()=>C7,SMITHY_CONTEXT_KEY:()=>F9e,getDefaultClientConfiguration:()=>M9e,resolveDefaultRuntimeConfig:()=>q9e});E7.exports=k9e(f7);var g7=(e=>(e.HEADER="header",e.QUERY="query",e))(g7||{}),y7=(e=>(e.HEADER="header",e.QUERY="query",e))(y7||{}),h7=(e=>(e.HTTP="http",e.HTTPS="https",e))(h7||{}),_7=(e=>(e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256",e))(_7||{}),O9e=lC(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(n){this._checksumAlgorithms.push(n)},checksumAlgorithms(){return this._checksumAlgorithms}}},"getChecksumConfiguration"),D9e=lC(e=>{let t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),M9e=lC(e=>({...O9e(e)}),"getDefaultClientConfiguration"),q9e=lC(e=>({...D9e(e)}),"resolveDefaultRuntimeConfig"),S7=(e=>(e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER",e))(S7||{}),F9e="__smithy_context",v7=(e=>(e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services",e))(v7||{}),C7=(e=>(e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0",e))(C7||{})});var ir=u((Ezn,N7)=>{var uC=Object.defineProperty,L9e=Object.getOwnPropertyDescriptor,z9e=Object.getOwnPropertyNames,B9e=Object.prototype.hasOwnProperty,$d=(e,t)=>uC(e,"name",{value:t,configurable:!0}),j9e=(e,t)=>{for(var n in t)uC(e,n,{get:t[n],enumerable:!0})},U9e=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of z9e(t))!B9e.call(e,i)&&i!==n&&uC(e,i,{get:()=>t[i],enumerable:!(r=L9e(t,i))||r.enumerable});return e},G9e=e=>U9e(uC({},"__esModule",{value:!0}),e),w7={};j9e(w7,{Field:()=>X9e,Fields:()=>W9e,HttpRequest:()=>K9e,HttpResponse:()=>J9e,getHttpHandlerExtensionConfiguration:()=>V9e,isValidHostname:()=>T7,resolveHttpHandlerRuntimeConfig:()=>$9e});N7.exports=G9e(w7);var V9e=$d(e=>{let t=e.httpHandler;return{setHttpHandler(n){t=n},httpHandler(){return t},updateHttpClientConfig(n,r){t.updateHttpClientConfig(n,r)},httpHandlerConfigs(){return t.httpHandlerConfigs()}}},"getHttpHandlerExtensionConfiguration"),$9e=$d(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),H9e=Yr(),b7=class{constructor({name:t,kind:n=H9e.FieldPosition.HEADER,values:r=[]}){this.name=t,this.kind=n,this.values=r}add(t){this.values.push(t)}set(t){this.values=t}remove(t){this.values=this.values.filter(n=>n!==t)}toString(){return this.values.map(t=>t.includes(",")||t.includes(" ")?`"${t}"`:t).join(", ")}get(){return this.values}};$d(b7,"Field");var X9e=b7,A7=class{constructor({fields:t=[],encoding:n="utf-8"}){this.entries={},t.forEach(this.setField.bind(this)),this.encoding=n}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(n=>n.kind===t)}};$d(A7,"Fields");var W9e=A7,x7=class P7{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 n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){let t=new P7({...this,headers:{...this.headers}});return t.query&&(t.query=I7(t.query)),t}};$d(x7,"HttpRequest");var K9e=x7;function I7(e){return Object.keys(e).reduce((t,n)=>{let r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}$d(I7,"cloneQuery");var R7=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 n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}};$d(R7,"HttpResponse");var J9e=R7;function T7(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}$d(T7,"isValidHostname")});var O7=u((wzn,k7)=>{function Rc(e){Object.defineProperty(this,"_next",{writable:!1,enumerable:!1,value:e}),this.done=!1}Rc.prototype.next=function(){if(this.done)return{done:!0};var e=this._next();return e.done&&(this.done=!0),e};typeof Symbol<"u"&&(Rc.prototype[Symbol.iterator]=function(){return this});Rc.of=function(){var e=arguments,t=e.length,n=0;return new Rc(function(){return n>=t?{done:!0}:{done:!1,value:e[n++]}})};Rc.empty=function(){var e=new Rc(null);return e.done=!0,e};Rc.is=function(e){return e instanceof Rc?!0:typeof e=="object"&&e!==null&&typeof e.next=="function"};k7.exports=Rc});var jF=u((bzn,F7)=>{var D7=typeof ArrayBuffer<"u",M7=typeof Symbol<"u";function q7(e,t){var n,r,i,s,o;if(!e)throw new Error("obliterator/forEach: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEach: expecting a callback.");if(Array.isArray(e)||D7&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],i);return}if(typeof e.forEach=="function"){e.forEach(t);return}if(M7&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;o=n.next(),o.done!==!0;)t(o.value,i),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)}q7.forEachWithNullKeys=function(e,t){var n,r,i,s,o;if(!e)throw new Error("obliterator/forEachWithNullKeys: invalid iterable.");if(typeof t!="function")throw new Error("obliterator/forEachWithNullKeys: expecting a callback.");if(Array.isArray(e)||D7&&ArrayBuffer.isView(e)||typeof e=="string"||e.toString()==="[object Arguments]"){for(i=0,s=e.length;i<s;i++)t(e[i],null);return}if(e instanceof Set){e.forEach(function(a){t(a,null)});return}if(typeof e.forEach=="function"){e.forEach(t);return}if(M7&&Symbol.iterator in e&&typeof e.next!="function"&&(e=e[Symbol.iterator]()),typeof e.next=="function"){for(n=e,i=0;o=n.next(),o.done!==!0;)t(o.value,null),i++;return}for(r in e)e.hasOwnProperty(r)&&t(e[r],r)};F7.exports=q7});var UF=u(Jo=>{var Y9e=Math.pow(2,8)-1,Q9e=Math.pow(2,16)-1,Z9e=Math.pow(2,32)-1,eYe=Math.pow(2,7)-1,tYe=Math.pow(2,15)-1,nYe=Math.pow(2,31)-1;Jo.getPointerArray=function(e){var t=e-1;return t<=Y9e?Uint8Array:t<=Q9e?Uint16Array:t<=Z9e?Uint32Array:Float64Array};Jo.getSignedPointerArray=function(e){var t=e-1;return t<=eYe?Int8Array:t<=tYe?Int16Array:t<=nYe?Int32Array:Float64Array};Jo.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 rYe={Uint8Array:1,Int8Array:2,Uint16Array:3,Int16Array:4,Uint32Array:5,Int32Array:6,Float32Array:7,Float64Array:8};Jo.getMinimalRepresentation=function(e,t){var n=null,r=0,i,s,o,a,c;for(a=0,c=e.length;a<c;a++)o=t?t(e[a]):e[a],s=Jo.getNumberType(o),i=rYe[s.name],i>r&&(r=i,n=s);return n};Jo.isTypedArray=function(e){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView(e)};Jo.concat=function(){var e=0,t,n,r;for(t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var i=new arguments[0].constructor(e);for(t=0,n=0;t<r;t++)i.set(arguments[t],n),n+=arguments[t].length;return i};Jo.indices=function(e){for(var t=Jo.getPointerArray(e),n=new t(e),r=0;r<e;r++)n[r]=r;return n}});var B7=u(Zy=>{var L7=jF(),z7=UF();function iYe(e){return Array.isArray(e)||z7.isTypedArray(e)}function GF(e){if(typeof e.length=="number")return e.length;if(typeof e.size=="number")return e.size}function sYe(e){var t=GF(e),n=typeof t=="number"?new Array(t):[],r=0;return L7(e,function(i){n[r++]=i}),n}function oYe(e){var t=GF(e),n=typeof t=="number"?z7.getPointerArray(t):Array,r=typeof t=="number"?new Array(t):[],i=typeof t=="number"?new n(t):[],s=0;return L7(e,function(o){r[s]=o,i[s]=s++}),[r,i]}Zy.isArrayLike=iYe;Zy.guessLength=GF;Zy.toArray=sYe;Zy.toArrayWithIndices=oYe});var U7=u((Pzn,j7)=>{var VF=O7(),aYe=jF(),cYe=UF(),dYe=B7();function dr(e,t,n){if(arguments.length<2&&(n=e,e=null,t=null),this.capacity=n,typeof this.capacity!="number"||this.capacity<=0)throw new Error("mnemonist/lru-cache: capacity should be positive number.");var r=cYe.getPointerArray(n);this.forward=new r(n),this.backward=new r(n),this.K=typeof e=="function"?new e(n):new Array(n),this.V=typeof t=="function"?new t(n):new Array(n),this.size=0,this.head=0,this.tail=0,this.items={}}dr.prototype.clear=function(){this.size=0,this.head=0,this.tail=0,this.items={}};dr.prototype.splayOnTop=function(e){var t=this.head;if(this.head===e)return this;var n=this.backward[e],r=this.forward[e];return this.tail===e?this.tail=n:this.backward[r]=n,this.forward[n]=r,this.backward[t]=e,this.head=e,this.forward[e]=t,this};dr.prototype.set=function(e,t){var n=this.items[e];if(typeof n<"u"){this.splayOnTop(n),this.V[n]=t;return}this.size<this.capacity?n=this.size++:(n=this.tail,this.tail=this.backward[n],delete this.items[this.K[n]]),this.items[e]=n,this.K[n]=e,this.V[n]=t,this.forward[n]=this.head,this.backward[this.head]=n,this.head=n};dr.prototype.setpop=function(e,t){var n=null,r=null,i=this.items[e];return typeof i<"u"?(this.splayOnTop(i),n=this.V[i],this.V[i]=t,{evicted:!1,key:e,value:n}):(this.size<this.capacity?i=this.size++:(i=this.tail,this.tail=this.backward[i],n=this.V[i],r=this.K[i],delete this.items[this.K[i]]),this.items[e]=i,this.K[i]=e,this.V[i]=t,this.forward[i]=this.head,this.backward[this.head]=i,this.head=i,r?{evicted:!0,key:r,value:n}:null)};dr.prototype.has=function(e){return e in this.items};dr.prototype.get=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.splayOnTop(t),this.V[t]};dr.prototype.peek=function(e){var t=this.items[e];if(!(typeof t>"u"))return this.V[t]};dr.prototype.forEach=function(e,t){t=arguments.length>1?t:this;for(var n=0,r=this.size,i=this.head,s=this.K,o=this.V,a=this.forward;n<r;)e.call(t,o[i],s[i],this),i=a[i],n++};dr.prototype.keys=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.forward;return new VF(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};dr.prototype.values=function(){var e=0,t=this.size,n=this.head,r=this.V,i=this.forward;return new VF(function(){if(e>=t)return{done:!0};var s=r[n];return e++,e<t&&(n=i[n]),{done:!1,value:s}})};dr.prototype.entries=function(){var e=0,t=this.size,n=this.head,r=this.K,i=this.V,s=this.forward;return new VF(function(){if(e>=t)return{done:!0};var o=r[n],a=i[n];return e++,e<t&&(n=s[n]),{done:!1,value:[o,a]}})};typeof Symbol<"u"&&(dr.prototype[Symbol.iterator]=dr.prototype.entries);dr.prototype.inspect=function(){for(var e=new Map,t=this.entries(),n;n=t.next(),!n.done;)e.set(n.value[0],n.value[1]);return Object.defineProperty(e,"constructor",{value:dr,enumerable:!1}),e};typeof Symbol<"u"&&(dr.prototype[Symbol.for("nodejs.util.inspect.custom")]=dr.prototype.inspect);dr.from=function(e,t,n,r){if(arguments.length<2){if(r=dYe.guessLength(e),typeof r!="number")throw new Error("mnemonist/lru-cache.from: could not guess iterable length. Please provide desired capacity as last argument.")}else arguments.length===2&&(r=t,t=null,n=null);var i=new dr(t,n,r);return aYe(e,function(s,o){i.set(o,s)}),i};j7.exports=dr});var X7=u((Rzn,H7)=>{var lYe=Object.create,eh=Object.defineProperty,uYe=Object.getOwnPropertyDescriptor,mYe=Object.getOwnPropertyNames,pYe=Object.getPrototypeOf,fYe=Object.prototype.hasOwnProperty,gYe=(e,t)=>eh(e,"name",{value:t,configurable:!0}),yYe=(e,t)=>{for(var n in t)eh(e,n,{get:t[n],enumerable:!0})},G7=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mYe(t))!fYe.call(e,i)&&i!==n&&eh(e,i,{get:()=>t[i],enumerable:!(r=uYe(t,i))||r.enumerable});return e},hYe=(e,t,n)=>(n=e!=null?lYe(pYe(e)):{},G7(t||!e||!e.__esModule?eh(n,"default",{value:e,enumerable:!0}):n,e)),_Ye=e=>G7(eh({},"__esModule",{value:!0}),e),V7={};yYe(V7,{EndpointCache:()=>vYe});H7.exports=_Ye(V7);var SYe=hYe(U7()),$7=class{constructor(t){this.cache=new SYe.default(t)}getEndpoint(t){let n=this.get(t);if(!n||n.length===0)return;let r=n.map(i=>i.Address);return r[Math.floor(Math.random()*r.length)]}get(t){if(!this.has(t))return;let n=this.cache.get(t);if(!n)return;let r=Date.now(),i=n.filter(s=>r<s.Expires);if(i.length===0){this.delete(t);return}return i}set(t,n){let r=Date.now();this.cache.set(t,n.map(({Address:i,CachePeriodInMinutes:s})=>({Address:i,Expires:r+s*60*1e3})))}delete(t){this.cache.set(t,[])}has(t){if(!this.cache.has(t))return!1;let n=this.cache.peek(t);return n?n.length>0:!1}clear(){this.cache.clear()}};gYe($7,"EndpointCache");var vYe=$7});var XF=u((Tzn,Q7)=>{var mC=Object.defineProperty,CYe=Object.getOwnPropertyDescriptor,EYe=Object.getOwnPropertyNames,wYe=Object.prototype.hasOwnProperty,Hd=(e,t)=>mC(e,"name",{value:t,configurable:!0}),bYe=(e,t)=>{for(var n in t)mC(e,n,{get:t[n],enumerable:!0})},AYe=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of EYe(t))!wYe.call(e,i)&&i!==n&&mC(e,i,{get:()=>t[i],enumerable:!(r=CYe(t,i))||r.enumerable});return e},xYe=e=>AYe(mC({},"__esModule",{value:!0}),e),Y7={};bYe(Y7,{NODE_ENDPOINT_DISCOVERY_CONFIG_OPTIONS:()=>PYe,endpointDiscoveryMiddlewareOptions:()=>pC,getEndpointDiscoveryOptionalPlugin:()=>kYe,getEndpointDiscoveryPlugin:()=>TYe,getEndpointDiscoveryRequiredPlugin:()=>NYe,resolveEndpointDiscoveryConfig:()=>DYe});Q7.exports=xYe(Y7);var W7=["AWS_ENABLE_ENDPOINT_DISCOVERY","AWS_ENDPOINT_DISCOVERY_ENABLED"],$F="endpoint_discovery_enabled",K7=Hd(e=>["false","0"].indexOf(e)>=0,"isFalsy"),PYe={environmentVariableSelector:e=>{for(let t=0;t<W7.length;t++){let n=W7[t];if(n in e){let r=e[n];if(r==="")throw Error(`Environment variable ${n} can't be empty of undefined, got "${r}"`);return!K7(r)}}},configFileSelector:e=>{if($F in e){let t=e[$F];if(t===void 0)throw Error(`Shared config entry ${$F} can't be undefined, got "$