@activepieces/piece-amazon-lambda 0.0.0-stage → 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/index.js ADDED
@@ -0,0 +1,158 @@
1
+ "use strict";var Ade=Object.create;var Tl=Object.defineProperty;var Tde=Object.getOwnPropertyDescriptor;var Ide=Object.getOwnPropertyNames;var wde=Object.getPrototypeOf,Rde=Object.prototype.hasOwnProperty;var i=(e,t)=>Tl(e,"name",{value:t,configurable:!0});var v=(e,t,r)=>()=>{if(r)throw r[0];try{return e&&(t=e(e=0)),t}catch(o){throw r=[o],o}};var z=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}},We=(e,t)=>{for(var r in t)Tl(e,r,{get:t[r],enumerable:!0})},Dz=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Ide(t))!Rde.call(e,n)&&n!==r&&Tl(e,n,{get:()=>t[n],enumerable:!(o=Tde(t,n))||o.enumerable});return e};var w=(e,t,r)=>(r=e!=null?Ade(wde(e)):{},Dz(t||!e||!e.__esModule?Tl(r,"default",{value:e,enumerable:!0}):r,e)),pe=e=>Dz(Tl({},"__esModule",{value:!0}),e);var $2=z((R2,ky)=>{(function(e){"use strict";let t="(0?\\d+|0x[a-f0-9]+)",r={fourOctet:new RegExp(`^${t}\\.${t}\\.${t}\\.${t}$`,"i"),threeOctet:new RegExp(`^${t}\\.${t}\\.${t}$`,"i"),twoOctet:new RegExp(`^${t}\\.${t}$`,"i"),longValue:new RegExp(`^${t}$`,"i")},o=new RegExp("^0[0-7]+$","i"),n=new RegExp("^0x[a-f0-9]+$","i"),s="%[0-9a-z]{1,}",a="(?:[0-9a-f]+::?)+",c={zoneIndex:new RegExp(s,"i"),native:new RegExp(`^(::)?(${a})?([0-9a-f]+)?(::)?(${s})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${t}\\.${t}\\.${t}\\.${t}(${s})?)$`,"i"),transitional:new RegExp(`^((?:${a})|(?:::)(?:${a})?)${t}\\.${t}\\.${t}\\.${t}(${s})?$`,"i")};function u(m,_){if(m.indexOf("::")!==m.lastIndexOf("::"))return null;let b=0,A=-1,I=(m.match(c.zoneIndex)||[])[0],R,j;for(I&&(I=I.substring(1),m=m.replace(/%.+$/,""));(A=m.indexOf(":",A+1))>=0;)b++;if(m.substr(0,2)==="::"&&b--,m.substr(-2,2)==="::"&&b--,b>_)return null;for(j=_-b,R=":";j--;)R+="0:";return m=m.replace("::",R),m[0]===":"&&(m=m.slice(1)),m[m.length-1]===":"&&(m=m.slice(0,-1)),_=(function(){let ee=m.split(":"),ae=[];for(let fe=0;fe<ee.length;fe++)ae.push(parseInt(ee[fe],16));return ae})(),{parts:_,zoneId:I}}i(u,"expandIPv6");function l(m,_,b,A){if(m.length!==_.length)throw new Error("ipaddr: cannot match CIDR for objects with different lengths");let I=0,R;for(;A>0;){if(R=b-A,R<0&&(R=0),m[I]>>R!==_[I]>>R)return!1;A-=b,I+=1}return!0}i(l,"matchCIDR");function p(m){if(n.test(m))return parseInt(m,16);if(m[0]==="0"&&!isNaN(parseInt(m[1],10))){if(o.test(m))return parseInt(m,8);throw new Error(`ipaddr: cannot parse ${m} as octal`)}return parseInt(m,10)}i(p,"parseIntAuto");function f(m,_){for(;m.length<_;)m=`0${m}`;return m}i(f,"padPart");let y={};y.IPv4=(function(){function m(_){if(_.length!==4)throw new Error("ipaddr: ipv4 octet count should be 4");let b,A;for(b=0;b<_.length;b++)if(A=_[b],!(0<=A&&A<=255))throw new Error("ipaddr: ipv4 octet should fit in 8 bits");this.octets=_}return i(m,"IPv4"),m.prototype.SpecialRanges={unspecified:[[new m([0,0,0,0]),8]],broadcast:[[new m([255,255,255,255]),32]],multicast:[[new m([224,0,0,0]),4]],linkLocal:[[new m([169,254,0,0]),16]],loopback:[[new m([127,0,0,0]),8]],carrierGradeNat:[[new m([100,64,0,0]),10]],private:[[new m([10,0,0,0]),8],[new m([172,16,0,0]),12],[new m([192,168,0,0]),16]],reserved:[[new m([192,0,0,0]),24],[new m([192,0,2,0]),24],[new m([192,88,99,0]),24],[new m([198,18,0,0]),15],[new m([198,51,100,0]),24],[new m([203,0,113,0]),24],[new m([240,0,0,0]),4]],as112:[[new m([192,175,48,0]),24],[new m([192,31,196,0]),24]],amt:[[new m([192,52,193,0]),24]]},m.prototype.kind=function(){return"ipv4"},m.prototype.match=function(_,b){let A;if(b===void 0&&(A=_,_=A[0],b=A[1]),_.kind()!=="ipv4")throw new Error("ipaddr: cannot match ipv4 address with non-ipv4 one");return l(this.octets,_.octets,8,b)},m.prototype.prefixLengthFromSubnetMask=function(){let _=0,b=!1,A={0:8,128:7,192:6,224:5,240:4,248:3,252:2,254:1,255:0},I,R,j;for(I=3;I>=0;I-=1)if(R=this.octets[I],R in A){if(j=A[R],b&&j!==0)return null;j!==8&&(b=!0),_+=j}else return null;return 32-_},m.prototype.range=function(){return y.subnetMatch(this,this.SpecialRanges)},m.prototype.toByteArray=function(){return this.octets.slice(0)},m.prototype.toIPv4MappedAddress=function(){return y.IPv6.parse(`::ffff:${this.toString()}`)},m.prototype.toNormalizedString=function(){return this.toString()},m.prototype.toString=function(){return this.octets.join(".")},m})(),y.IPv4.broadcastAddressFromCIDR=function(m){try{let _=this.parseCIDR(m),b=_[0].toByteArray(),A=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),I=[],R=0;for(;R<4;)I.push(parseInt(b[R],10)|parseInt(A[R],10)^255),R++;return new this(I)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},y.IPv4.isIPv4=function(m){return this.parser(m)!==null},y.IPv4.isValid=function(m){try{return new this(this.parser(m)),!0}catch{return!1}},y.IPv4.isValidCIDR=function(m){try{return this.parseCIDR(m),!0}catch{return!1}},y.IPv4.isValidFourPartDecimal=function(m){return!!(y.IPv4.isValid(m)&&m.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},y.IPv4.isValidCIDRFourPartDecimal=function(m){let _=m.match(/^(.+)\/(\d+)$/);return!y.IPv4.isValidCIDR(m)||!_?!1:y.IPv4.isValidFourPartDecimal(_[1])},y.IPv4.networkAddressFromCIDR=function(m){let _,b,A,I,R;try{for(_=this.parseCIDR(m),A=_[0].toByteArray(),R=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),I=[],b=0;b<4;)I.push(parseInt(A[b],10)&parseInt(R[b],10)),b++;return new this(I)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},y.IPv4.parse=function(m){let _=this.parser(m);if(_===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(_)},y.IPv4.parseCIDR=function(m){let _;if(_=m.match(/^(.+)\/(\d+)$/)){let b=parseInt(_[2]);if(b>=0&&b<=32){let A=[this.parse(_[1]),b];return Object.defineProperty(A,"toString",{value:i(function(){return this.join("/")},"value")}),A}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},y.IPv4.parser=function(m){let _,b,A;if(_=m.match(r.fourOctet))return(function(){let I=_.slice(1,6),R=[];for(let j=0;j<I.length;j++)b=I[j],R.push(p(b));return R})();if(_=m.match(r.longValue)){if(A=p(_[1]),A>4294967295||A<0)throw new Error("ipaddr: address outside defined range");return(function(){let I=[],R;for(R=0;R<=24;R+=8)I.push(A>>R&255);return I})().reverse()}else return(_=m.match(r.twoOctet))?(function(){let I=_.slice(1,4),R=[];if(A=p(I[1]),A>16777215||A<0)throw new Error("ipaddr: address outside defined range");return R.push(p(I[0])),R.push(A>>16&255),R.push(A>>8&255),R.push(A&255),R})():(_=m.match(r.threeOctet))?(function(){let I=_.slice(1,5),R=[];if(A=p(I[2]),A>65535||A<0)throw new Error("ipaddr: address outside defined range");return R.push(p(I[0])),R.push(p(I[1])),R.push(A>>8&255),R.push(A&255),R})():null},y.IPv4.subnetMaskFromPrefixLength=function(m){if(m=parseInt(m),m<0||m>32)throw new Error("ipaddr: invalid IPv4 prefix length");let _=[0,0,0,0],b=0,A=Math.floor(m/8);for(;b<A;)_[b]=255,b++;return A<4&&(_[A]=Math.pow(2,m%8)-1<<8-m%8),new this(_)},y.IPv6=(function(){function m(_,b){let A,I;if(_.length===16)for(this.parts=[],A=0;A<=14;A+=2)this.parts.push(_[A]<<8|_[A+1]);else if(_.length===8)this.parts=_;else throw new Error("ipaddr: ipv6 part count should be 8 or 16");for(A=0;A<this.parts.length;A++)if(I=this.parts[A],!(0<=I&&I<=65535))throw new Error("ipaddr: ipv6 part should fit in 16 bits");b&&(this.zoneId=b)}return i(m,"IPv6"),m.prototype.SpecialRanges={unspecified:[new m([0,0,0,0,0,0,0,0]),128],linkLocal:[new m([65152,0,0,0,0,0,0,0]),10],multicast:[new m([65280,0,0,0,0,0,0,0]),8],loopback:[new m([0,0,0,0,0,0,0,1]),128],uniqueLocal:[new m([64512,0,0,0,0,0,0,0]),7],ipv4Mapped:[new m([0,0,0,0,0,65535,0,0]),96],discard:[new m([256,0,0,0,0,0,0,0]),64],rfc6145:[new m([0,0,0,0,65535,0,0,0]),96],rfc6052:[new m([100,65435,0,0,0,0,0,0]),96],"6to4":[new m([8194,0,0,0,0,0,0,0]),16],teredo:[new m([8193,0,0,0,0,0,0,0]),32],benchmarking:[new m([8193,2,0,0,0,0,0,0]),48],amt:[new m([8193,3,0,0,0,0,0,0]),32],as112v6:[[new m([8193,4,274,0,0,0,0,0]),48],[new m([9760,79,32768,0,0,0,0,0]),48]],deprecated:[new m([8193,16,0,0,0,0,0,0]),28],orchid2:[new m([8193,32,0,0,0,0,0,0]),28],droneRemoteIdProtocolEntityTags:[new m([8193,48,0,0,0,0,0,0]),28],reserved:[[new m([8193,0,0,0,0,0,0,0]),23],[new m([8193,3512,0,0,0,0,0,0]),32]]},m.prototype.isIPv4MappedAddress=function(){return this.range()==="ipv4Mapped"},m.prototype.kind=function(){return"ipv6"},m.prototype.match=function(_,b){let A;if(b===void 0&&(A=_,_=A[0],b=A[1]),_.kind()!=="ipv6")throw new Error("ipaddr: cannot match ipv6 address with non-ipv6 one");return l(this.parts,_.parts,16,b)},m.prototype.prefixLengthFromSubnetMask=function(){let _=0,b=!1,A={0:16,32768:15,49152:14,57344:13,61440:12,63488:11,64512:10,65024:9,65280:8,65408:7,65472:6,65504:5,65520:4,65528:3,65532:2,65534:1,65535:0},I,R;for(let j=7;j>=0;j-=1)if(I=this.parts[j],I in A){if(R=A[I],b&&R!==0)return null;R!==16&&(b=!0),_+=R}else return null;return 128-_},m.prototype.range=function(){return y.subnetMatch(this,this.SpecialRanges)},m.prototype.toByteArray=function(){let _,b=[],A=this.parts;for(let I=0;I<A.length;I++)_=A[I],b.push(_>>8),b.push(_&255);return b},m.prototype.toFixedLengthString=function(){let _=(function(){let A=[];for(let I=0;I<this.parts.length;I++)A.push(f(this.parts[I].toString(16),4));return A}).call(this).join(":"),b="";return this.zoneId&&(b=`%${this.zoneId}`),_+b},m.prototype.toIPv4Address=function(){if(!this.isIPv4MappedAddress())throw new Error("ipaddr: trying to convert a generic ipv6 address to ipv4");let _=this.parts.slice(-2),b=_[0],A=_[1];return new y.IPv4([b>>8,b&255,A>>8,A&255])},m.prototype.toNormalizedString=function(){let _=(function(){let A=[];for(let I=0;I<this.parts.length;I++)A.push(this.parts[I].toString(16));return A}).call(this).join(":"),b="";return this.zoneId&&(b=`%${this.zoneId}`),_+b},m.prototype.toRFC5952String=function(){let _=/((^|:)(0(:|$)){2,})/g,b=this.toNormalizedString(),A=0,I=-1,R;for(;R=_.exec(b);)R[0].length>I&&(A=R.index,I=R[0].length);return I<0?b:`${b.substring(0,A)}::${b.substring(A+I)}`},m.prototype.toString=function(){return this.toRFC5952String()},m})(),y.IPv6.broadcastAddressFromCIDR=function(m){try{let _=this.parseCIDR(m),b=_[0].toByteArray(),A=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),I=[],R=0;for(;R<16;)I.push(parseInt(b[R],10)|parseInt(A[R],10)^255),R++;return new this(I)}catch(_){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${_})`)}},y.IPv6.isIPv6=function(m){return this.parser(m)!==null},y.IPv6.isValid=function(m){if(typeof m=="string"&&m.indexOf(":")===-1)return!1;try{let _=this.parser(m);return new this(_.parts,_.zoneId),!0}catch{return!1}},y.IPv6.isValidCIDR=function(m){if(typeof m=="string"&&m.indexOf(":")===-1)return!1;try{return this.parseCIDR(m),!0}catch{return!1}},y.IPv6.networkAddressFromCIDR=function(m){let _,b,A,I,R;try{for(_=this.parseCIDR(m),A=_[0].toByteArray(),R=this.subnetMaskFromPrefixLength(_[1]).toByteArray(),I=[],b=0;b<16;)I.push(parseInt(A[b],10)&parseInt(R[b],10)),b++;return new this(I)}catch(j){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${j})`)}},y.IPv6.parse=function(m){let _=this.parser(m);if(_.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(_.parts,_.zoneId)},y.IPv6.parseCIDR=function(m){let _,b,A;if((b=m.match(/^(.+)\/(\d+)$/))&&(_=parseInt(b[2]),_>=0&&_<=128))return A=[this.parse(b[1]),_],Object.defineProperty(A,"toString",{value:i(function(){return this.join("/")},"value")}),A;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},y.IPv6.parser=function(m){let _,b,A,I,R,j;if(A=m.match(c.deprecatedTransitional))return this.parser(`::ffff:${A[1]}`);if(c.native.test(m))return u(m,8);if((A=m.match(c.transitional))&&(j=A[6]||"",_=A[1],A[1].endsWith("::")||(_=_.slice(0,-1)),_=u(_+j,6),_.parts)){for(R=[parseInt(A[2]),parseInt(A[3]),parseInt(A[4]),parseInt(A[5])],b=0;b<R.length;b++)if(I=R[b],!(0<=I&&I<=255))return null;return _.parts.push(R[0]<<8|R[1]),_.parts.push(R[2]<<8|R[3]),{parts:_.parts,zoneId:_.zoneId}}return null},y.IPv6.subnetMaskFromPrefixLength=function(m){if(m=parseInt(m),m<0||m>128)throw new Error("ipaddr: invalid IPv6 prefix length");let _=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],b=0,A=Math.floor(m/8);for(;b<A;)_[b]=255,b++;return A<16&&(_[A]=Math.pow(2,m%8)-1<<8-m%8),new this(_)},y.fromByteArray=function(m){let _=m.length;if(_===4)return new y.IPv4(m);if(_===16)return new y.IPv6(m);throw new Error("ipaddr: the binary input is neither an IPv6 nor IPv4 address")},y.isValid=function(m){return y.IPv6.isValid(m)||y.IPv4.isValid(m)},y.isValidCIDR=function(m){return y.IPv6.isValidCIDR(m)||y.IPv4.isValidCIDR(m)},y.parse=function(m){if(y.IPv6.isValid(m))return y.IPv6.parse(m);if(y.IPv4.isValid(m))return y.IPv4.parse(m);throw new Error("ipaddr: the address has neither IPv6 nor IPv4 format")},y.parseCIDR=function(m){try{return y.IPv6.parseCIDR(m)}catch{try{return y.IPv4.parseCIDR(m)}catch{throw new Error("ipaddr: the address has neither IPv6 nor IPv4 CIDR format")}}},y.process=function(m){let _=this.parse(m);return _.kind()==="ipv6"&&_.isIPv4MappedAddress()?_.toIPv4Address():_},y.subnetMatch=function(m,_,b){let A,I,R,j;b==null&&(b="unicast");for(I in _)if(Object.prototype.hasOwnProperty.call(_,I)){for(R=_[I],R[0]&&!(R[0]instanceof Array)&&(R=[R]),A=0;A<R.length;A++)if(j=R[A],m.kind()===j[0].kind()&&m.match.apply(m,j))return I}return b},typeof ky<"u"&&ky.exports?ky.exports=y:e.ipaddr=y})(R2)});var zo=z(it=>{"use strict";it.HttpAuthLocation=void 0;(function(e){e.HEADER="header",e.QUERY="query"})(it.HttpAuthLocation||(it.HttpAuthLocation={}));it.HttpApiKeyAuthLocation=void 0;(function(e){e.HEADER="header",e.QUERY="query"})(it.HttpApiKeyAuthLocation||(it.HttpApiKeyAuthLocation={}));it.EndpointURLScheme=void 0;(function(e){e.HTTP="http",e.HTTPS="https"})(it.EndpointURLScheme||(it.EndpointURLScheme={}));it.AlgorithmId=void 0;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(it.AlgorithmId||(it.AlgorithmId={}));var vhe=i(e=>{let t=[];return e.sha256!==void 0&&t.push({algorithmId:i(()=>it.AlgorithmId.SHA256,"algorithmId"),checksumConstructor:i(()=>e.sha256,"checksumConstructor")}),e.md5!=null&&t.push({algorithmId:i(()=>it.AlgorithmId.MD5,"algorithmId"),checksumConstructor:i(()=>e.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){t.push(r)},checksumAlgorithms(){return t}}},"getChecksumConfiguration"),xhe=i(e=>{let t={};return e.checksumAlgorithms().forEach(r=>{t[r.algorithmId()]=r.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),bhe=i(e=>vhe(e),"getDefaultClientConfiguration"),Phe=i(e=>xhe(e),"resolveDefaultRuntimeConfig");it.FieldPosition=void 0;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(it.FieldPosition||(it.FieldPosition={}));var Che="__smithy_context";it.IniSectionType=void 0;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(it.IniSectionType||(it.IniSectionType={}));it.RequestHandlerProtocol=void 0;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(it.RequestHandlerProtocol||(it.RequestHandlerProtocol={}));it.SMITHY_CONTEXT_KEY=Che;it.getDefaultClientConfiguration=bhe;it.resolveDefaultRuntimeConfig=Phe});var Ze=z(Mi=>{"use strict";var Ahe=zo(),The=i(e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),Ihe=i(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),PR=class{static{i(this,"Field")}name;kind;values;constructor({name:t,kind:r=Ahe.FieldPosition.HEADER,values:o=[]}){this.name=t,this.kind=r,this.values=o}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}},CR=class{static{i(this,"Fields")}entries={};encoding;constructor({fields:t=[],encoding:r="utf-8"}){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)}},AR=class e{static{i(this,"HttpRequest")}method;protocol;hostname;port;path;query;headers;username;password;fragment;body;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 clone(t){let r=new e({...t,headers:{...t.headers}});return r.query&&(r.query=whe(r.query)),r}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(){return e.clone(this)}};function whe(e){return Object.keys(e).reduce((t,r)=>{let o=e[r];return{...t,[r]:Array.isArray(o)?[...o]:o}},{})}i(whe,"cloneQuery");var TR=class{static{i(this,"HttpResponse")}statusCode;reason;headers;body;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"}};function Rhe(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}i(Rhe,"isValidHostname");Mi.Field=PR;Mi.Fields=CR;Mi.HttpRequest=AR;Mi.HttpResponse=TR;Mi.getHttpHandlerExtensionConfiguration=The;Mi.isValidHostname=Rhe;Mi.resolveHttpHandlerRuntimeConfig=Ihe});var ua=z(Tp=>{"use strict";var $he=Ze();function Ohe(e){return e}i(Ohe,"resolveHostHeaderConfig");var z4=i(e=>t=>async r=>{if(!$he.HttpRequest.isInstance(r.request))return t(r);let{request:o}=r,{handlerProtocol:n=""}=e.requestHandler.metadata||{};if(n.indexOf("h2")>=0&&!o.headers[":authority"])delete o.headers.host,o.headers[":authority"]=o.hostname+(o.port?":"+o.port:"");else if(!o.headers.host){let s=o.hostname;o.port!=null&&(s+=`:${o.port}`),o.headers.host=s}return t(r)},"hostHeaderMiddleware"),F4={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},Dhe=i(e=>({applyToStack:i(t=>{t.add(z4(e),F4)},"applyToStack")}),"getHostHeaderPlugin");Tp.getHostHeaderPlugin=Dhe;Tp.hostHeaderMiddleware=z4;Tp.hostHeaderMiddlewareOptions=F4;Tp.resolveHostHeaderConfig=Ohe});var la=z(zy=>{"use strict";var U4=i(()=>(e,t)=>async r=>{try{let o=await e(r),{clientName:n,commandName:s,logger:a,dynamoDbDocumentClientOptions:c={}}=t,{overrideInputFilterSensitiveLog:u,overrideOutputFilterSensitiveLog:l}=c,p=u??t.inputFilterSensitiveLog,f=l??t.outputFilterSensitiveLog,{$metadata:y,...m}=o.output;return a?.info?.({clientName:n,commandName:s,input:p(r.input),output:f(m),metadata:y}),o}catch(o){let{clientName:n,commandName:s,logger:a,dynamoDbDocumentClientOptions:c={}}=t,{overrideInputFilterSensitiveLog:u}=c,l=u??t.inputFilterSensitiveLog;throw a?.error?.({clientName:n,commandName:s,input:l(r.input),error:o,metadata:o.$metadata}),o}},"loggerMiddleware"),j4={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},Nhe=i(e=>({applyToStack:i(t=>{t.add(U4(),j4)},"applyToStack")}),"getLoggerPlugin");zy.getLoggerPlugin=Nhe;zy.loggerMiddleware=U4;zy.loggerMiddlewareOptions=j4});var B4={};We(B4,{InvokeStore:()=>$R,InvokeStoreBase:()=>wp});var Ip,IR,wp,wR,RR,$R,V4=v(()=>{Ip={REQUEST_ID:Symbol.for("_AWS_LAMBDA_REQUEST_ID"),X_RAY_TRACE_ID:Symbol.for("_AWS_LAMBDA_X_RAY_TRACE_ID"),TENANT_ID:Symbol.for("_AWS_LAMBDA_TENANT_ID")},IR=["true","1"].includes(process.env?.AWS_LAMBDA_NODEJS_NO_GLOBAL_AWSLAMBDA??"");IR||(globalThis.awslambda=globalThis.awslambda||{});wp=class{static{i(this,"InvokeStoreBase")}static PROTECTED_KEYS=Ip;isProtectedKey(t){return Object.values(Ip).includes(t)}getRequestId(){return this.get(Ip.REQUEST_ID)??"-"}getXRayTraceId(){return this.get(Ip.X_RAY_TRACE_ID)}getTenantId(){return this.get(Ip.TENANT_ID)}},wR=class extends wp{static{i(this,"InvokeStoreSingle")}currentContext;getContext(){return this.currentContext}hasContext(){return this.currentContext!==void 0}get(t){return this.currentContext?.[t]}set(t,r){if(this.isProtectedKey(t))throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`);this.currentContext=this.currentContext||{},this.currentContext[t]=r}run(t,r){return this.currentContext=t,r()}},RR=class e extends wp{static{i(this,"InvokeStoreMulti")}als;static async create(){let t=new e,r=await import("node:async_hooks");return t.als=new r.AsyncLocalStorage,t}getContext(){return this.als.getStore()}hasContext(){return this.als.getStore()!==void 0}get(t){return this.als.getStore()?.[t]}set(t,r){if(this.isProtectedKey(t))throw new Error(`Cannot modify protected Lambda context field: ${String(t)}`);let o=this.als.getStore();if(!o)throw new Error("No context available");o[t]=r}run(t,r){return this.als.run(t,r)}};(function(e){let t=null;async function r(o){return t||(t=(async()=>{let s=o===!0||"AWS_LAMBDA_MAX_CONCURRENCY"in process.env?await RR.create():new wR;return!IR&&globalThis.awslambda?.InvokeStore?globalThis.awslambda.InvokeStore:(!IR&&globalThis.awslambda&&(globalThis.awslambda.InvokeStore=s),s)})()),t}i(r,"getInstanceAsync"),e.getInstanceAsync=r,e._testing=process.env.AWS_LAMBDA_BENCHMARK_MODE==="1"?{reset:i(()=>{t=null,globalThis.awslambda?.InvokeStore&&delete globalThis.awslambda.InvokeStore,globalThis.awslambda={InvokeStore:void 0}},"reset")}:void 0})($R||($R={}))});var H4=z(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});Fy.recursionDetectionMiddleware=void 0;var khe=(V4(),pe(B4)),Mhe=Ze(),OR="X-Amzn-Trace-Id",Lhe="AWS_LAMBDA_FUNCTION_NAME",zhe="_X_AMZN_TRACE_ID",Fhe=i(()=>e=>async t=>{let{request:r}=t;if(!Mhe.HttpRequest.isInstance(r))return e(t);let o=Object.keys(r.headers??{}).find(p=>p.toLowerCase()===OR.toLowerCase())??OR;if(r.headers.hasOwnProperty(o))return e(t);let n=process.env[Lhe],s=process.env[zhe],u=(await khe.InvokeStore.getInstanceAsync())?.getXRayTraceId()??s,l=i(p=>typeof p=="string"&&p.length>0,"nonEmptyString");return l(n)&&l(u)&&(r.headers[OR]=u),e({...t,request:r})},"recursionDetectionMiddleware");Fy.recursionDetectionMiddleware=Fhe});var da=z(Yc=>{"use strict";var Rp=H4(),Uhe={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},jhe=i(e=>({applyToStack:i(t=>{t.add(Rp.recursionDetectionMiddleware(),Uhe)},"applyToStack")}),"getRecursionDetectionPlugin");Yc.getRecursionDetectionPlugin=jhe;Object.prototype.hasOwnProperty.call(Rp,"__proto__")&&!Object.prototype.hasOwnProperty.call(Yc,"__proto__")&&Object.defineProperty(Yc,"__proto__",{enumerable:!0,value:Rp.__proto__});Object.keys(Rp).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Yc,e)&&(Yc[e]=Rp[e])})});var DR,Bhe,G4=v(()=>{DR=w(zo()),Bhe=i(e=>e[DR.SMITHY_CONTEXT_KEY]||(e[DR.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});var Ft=z(NR=>{"use strict";var q4=zo(),Vhe=i(e=>e[q4.SMITHY_CONTEXT_KEY]||(e[q4.SMITHY_CONTEXT_KEY]={}),"getSmithyContext"),Hhe=i(e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t},"normalizeProvider");NR.getSmithyContext=Vhe;NR.normalizeProvider=Hhe});var W4,Z4=v(()=>{W4=i((e,t)=>{if(!t||t.length===0)return e;let r=[];for(let o of t)for(let n of e)n.schemeId.split("#")[1]===o&&r.push(n);for(let o of e)r.find(({schemeId:n})=>n===o.schemeId)||r.push(o);return r},"resolveAuthOptions")});function Ghe(e){let t=new Map;for(let r of e)t.set(r.schemeId,r);return t}var K4,$p,Uy=v(()=>{K4=w(Ft());Z4();i(Ghe,"convertHttpAuthSchemesToMap");$p=i((e,t)=>(r,o)=>async n=>{let s=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,n.input)),a=e.authSchemePreference?await e.authSchemePreference():[],c=W4(s,a),u=Ghe(e.httpAuthSchemes),l=(0,K4.getSmithyContext)(o),p=[];for(let f of c){let y=u.get(f.schemeId);if(!y){p.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}let m=y.identityProvider(await t.identityProviderConfigProvider(e));if(!m){p.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:_={},signingProperties:b={}}=f.propertiesExtractor?.(e,o)||{};f.identityProperties=Object.assign(f.identityProperties||{},_),f.signingProperties=Object.assign(f.signingProperties||{},b),l.selectedHttpAuthScheme={httpAuthOption:f,identity:await m(f.identityProperties),signer:y.signer};break}if(!l.selectedHttpAuthScheme)throw new Error(p.join(`
2
+ `));return r(n)},"httpAuthSchemeMiddleware")});var X4,Fo,J4=v(()=>{Uy();X4={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},Fo=i((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:i(o=>{o.addRelativeTo($p(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),X4)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var Y4,qhe,Q4=v(()=>{Uy();Y4={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},qhe=i((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:i(o=>{o.addRelativeTo($p(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),Y4)},"applyToStack")}),"getHttpAuthSchemePlugin")});var ej=v(()=>{Uy();J4();Q4()});var tj,rj,Whe,Zhe,kR,MR=v(()=>{tj=w(Ze()),rj=w(Ft()),Whe=i(e=>t=>{throw t},"defaultErrorHandler"),Zhe=i((e,t)=>{},"defaultSuccessHandler"),kR=i(e=>(t,r)=>async o=>{if(!tj.HttpRequest.isInstance(o.request))return t(o);let s=(0,rj.getSmithyContext)(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:u}=s,l=await t({...o,request:await u.sign(o.request,c,a)}).catch((u.errorHandler||Whe)(a));return(u.successHandler||Zhe)(l.response,a),l},"httpSigningMiddleware")});var nj,Uo,oj=v(()=>{MR();nj={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},Uo=i(e=>({applyToStack:i(t=>{t.addRelativeTo(kR(e),nj)},"applyToStack")}),"getHttpSigningPlugin")});var ij=v(()=>{MR();oj()});var Li,sj=v(()=>{Li=i(e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t},"normalizeProvider")});function aj(e,t,r,o,n){return i(async function*(a,c,...u){let l=c,p=a.startingToken??l[r],f=!0,y;for(;f;){if(l[r]=p,n&&(l[n]=l[n]??a.pageSize),a.client instanceof e)y=await Khe(t,a.client,c,a.withCommand,...u);else throw new Error(`Invalid client, expected instance of ${e.name}`);yield y;let m=p;p=Xhe(y,o),f=!!(p&&(!a.stopOnSameToken||p!==m))}return void 0},"paginateOperation")}var Khe,Xhe,cj=v(()=>{Khe=i(async(e,t,r,o=s=>s,...n)=>{let s=new e(r);return s=o(s)??s,await t.send(s,...n)},"makePagedClientRequest");i(aj,"createPaginator");Xhe=i((e,t)=>{let r=e,o=t.split(".");for(let n of o){if(!r||typeof r!="object")return;r=r[n]}return r},"get")});var jy=z(uj=>{"use strict";var Jhe=i(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer");uj.isArrayBuffer=Jhe});var Qc=z(zR=>{"use strict";var Yhe=jy(),LR=require("buffer"),Qhe=i((e,t=0,r=e.byteLength-t)=>{if(!Yhe.isArrayBuffer(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return LR.Buffer.from(e,t,r)},"fromArrayBuffer"),eye=i((e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?LR.Buffer.from(e,t):LR.Buffer.from(e)},"fromString");zR.fromArrayBuffer=Qhe;zR.fromString=eye});var lj=z(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});By.fromBase64=void 0;var tye=Qc(),rye=/^[A-Za-z0-9+/]*={0,2}$/,nye=i(e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!rye.exec(e))throw new TypeError("Invalid base64 string.");let t=(0,tye.fromString)(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},"fromBase64");By.fromBase64=nye});var It=z(Vy=>{"use strict";var dj=Qc(),pj=i(e=>{let t=dj.fromString(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),oye=i(e=>typeof e=="string"?pj(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array"),iye=i(e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return dj.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength).toString("utf8")},"toUtf8");Vy.fromUtf8=pj;Vy.toUint8Array=oye;Vy.toUtf8=iye});var fj=z(Hy=>{"use strict";Object.defineProperty(Hy,"__esModule",{value:!0});Hy.toBase64=void 0;var sye=Qc(),aye=It(),cye=i(e=>{let t;if(typeof e=="string"?t=(0,aye.fromUtf8)(e):t=e,typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return(0,sye.fromArrayBuffer)(t.buffer,t.byteOffset,t.byteLength).toString("base64")},"toBase64");Hy.toBase64=cye});var wt=z(jo=>{"use strict";var Gy=lj(),qy=fj();Object.prototype.hasOwnProperty.call(Gy,"__proto__")&&!Object.prototype.hasOwnProperty.call(jo,"__proto__")&&Object.defineProperty(jo,"__proto__",{enumerable:!0,value:Gy.__proto__});Object.keys(Gy).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(jo,e)&&(jo[e]=Gy[e])});Object.prototype.hasOwnProperty.call(qy,"__proto__")&&!Object.prototype.hasOwnProperty.call(jo,"__proto__")&&Object.defineProperty(jo,"__proto__",{enumerable:!0,value:qy.__proto__});Object.keys(qy).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(jo,e)&&(jo[e]=qy[e])})});var UR=z(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});Wy.ChecksumStream=void 0;var uye=wt(),lye=require("stream"),FR=class extends lye.Duplex{static{i(this,"ChecksumStream")}expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;pendingCallback=null;constructor({expectedChecksum:t,checksum:r,source:o,checksumSourceLocation:n,base64Encoder:s}){if(super(),typeof o.pipe=="function")this.source=o;else throw new Error(`@smithy/util-stream: unsupported source type ${o?.constructor?.name??o} in ChecksumStream.`);this.base64Encoder=s??uye.toBase64,this.expectedChecksum=t,this.checksum=r,this.checksumSourceLocation=n,this.source.pipe(this)}_read(t){if(this.pendingCallback){let r=this.pendingCallback;this.pendingCallback=null,r()}}_write(t,r,o){try{if(this.checksum.update(t),!this.push(t)){this.pendingCallback=o;return}}catch(n){return o(n)}return o()}async _final(t){try{let r=await this.checksum.digest(),o=this.base64Encoder(r);if(this.expectedChecksum!==o)return t(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${o}" in response header "${this.checksumSourceLocation}".`))}catch(r){return t(r)}return this.push(null),t()}};Wy.ChecksumStream=FR});var Bo=z(eu=>{"use strict";Object.defineProperty(eu,"__esModule",{value:!0});eu.isBlob=eu.isReadableStream=void 0;var dye=i(e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),"isReadableStream");eu.isReadableStream=dye;var pye=i(e=>typeof Blob=="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob),"isBlob");eu.isBlob=pye});var mj=z(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});Zy.ChecksumStream=void 0;var fye=typeof ReadableStream=="function"?ReadableStream:function(){},jR=class extends fye{static{i(this,"ChecksumStream")}};Zy.ChecksumStream=jR});var gj=z(Ky=>{"use strict";Object.defineProperty(Ky,"__esModule",{value:!0});Ky.createChecksumStream=void 0;var mye=wt(),gye=Bo(),hye=mj(),yye=i(({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:o,base64Encoder:n})=>{if(!(0,gye.isReadableStream)(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=n??mye.toBase64;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let a=new TransformStream({start(){},async transform(u,l){t.update(u),l.enqueue(u)},async flush(u){let l=await t.digest(),p=s(l);if(e!==p){let f=new Error(`Checksum mismatch: expected "${e}" but received "${p}" in response header "${o}".`);u.error(f)}else u.terminate()}});r.pipeThrough(a);let c=a.readable;return Object.setPrototypeOf(c,hye.ChecksumStream.prototype),c},"createChecksumStream");Ky.createChecksumStream=yye});var hj=z(BR=>{"use strict";Object.defineProperty(BR,"__esModule",{value:!0});BR.createChecksumStream=vye;var Eye=Bo(),Sye=UR(),_ye=gj();function vye(e){return typeof ReadableStream=="function"&&(0,Eye.isReadableStream)(e.source)?(0,_ye.createChecksumStream)(e):new Sye.ChecksumStream(e)}i(vye,"createChecksumStream")});var HR=z(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});Xy.ByteArrayCollector=void 0;var VR=class{static{i(this,"ByteArrayCollector")}allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){let o=this.byteArrays[0];return this.reset(),o}let t=this.allocByteArray(this.byteLength),r=0;for(let o=0;o<this.byteArrays.length;++o){let n=this.byteArrays[o];t.set(n,r),r+=n.byteLength}return this.reset(),t}reset(){this.byteArrays=[],this.byteLength=0}};Xy.ByteArrayCollector=VR});var _j=z(Vo=>{"use strict";Object.defineProperty(Vo,"__esModule",{value:!0});Vo.createBufferedReadable=void 0;Vo.createBufferedReadableStream=yj;Vo.merge=Ej;Vo.flush=Jy;Vo.sizeOf=tu;Vo.modeOf=Sj;var xye=HR();function yj(e,t,r){let o=e.getReader(),n=!1,s=0,a=["",new xye.ByteArrayCollector(l=>new Uint8Array(l))],c=-1,u=i(async l=>{let{value:p,done:f}=await o.read(),y=p;if(f){if(c!==-1){let m=Jy(a,c);tu(m)>0&&l.enqueue(m)}l.close()}else{let m=Sj(y,!1);if(c!==m&&(c>=0&&l.enqueue(Jy(a,c)),c=m),c===-1){l.enqueue(y);return}let _=tu(y);s+=_;let b=tu(a[c]);if(_>=t&&b===0)l.enqueue(y);else{let A=Ej(a,c,y);!n&&s>t*2&&(n=!0,r?.warn(`@smithy/util-stream - stream chunk size ${_} is below threshold of ${t}, automatically buffering.`)),A>=t?l.enqueue(Jy(a,c)):await u(l)}}},"pull");return new ReadableStream({pull:u})}i(yj,"createBufferedReadableStream");Vo.createBufferedReadable=yj;function Ej(e,t,r){switch(t){case 0:return e[0]+=r,tu(e[0]);case 1:case 2:return e[t].push(r),tu(e[t])}}i(Ej,"merge");function Jy(e,t){switch(t){case 0:let r=e[0];return e[0]="",r;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}i(Jy,"flush");function tu(e){return e?.byteLength??e?.length??0}i(tu,"sizeOf");function Sj(e,t=!0){return t&&typeof Buffer<"u"&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e=="string"?0:-1}i(Sj,"modeOf")});var xj=z(GR=>{"use strict";Object.defineProperty(GR,"__esModule",{value:!0});GR.createBufferedReadable=Cye;var bye=require("node:stream"),vj=HR(),Ho=_j(),Pye=Bo();function Cye(e,t,r){if((0,Pye.isReadableStream)(e))return(0,Ho.createBufferedReadableStream)(e,t,r);let o=new bye.Readable({read(){}}),n=!1,s=0,a=["",new vj.ByteArrayCollector(u=>new Uint8Array(u)),new vj.ByteArrayCollector(u=>Buffer.from(new Uint8Array(u)))],c=-1;return e.on("data",u=>{let l=(0,Ho.modeOf)(u,!0);if(c!==l&&(c>=0&&o.push((0,Ho.flush)(a,c)),c=l),c===-1){o.push(u);return}let p=(0,Ho.sizeOf)(u);s+=p;let f=(0,Ho.sizeOf)(a[c]);if(p>=t&&f===0)o.push(u);else{let y=(0,Ho.merge)(a,c,u);!n&&s>t*2&&(n=!0,r?.warn(`@smithy/util-stream - stream chunk size ${p} is below threshold of ${t}, automatically buffering.`)),y>=t&&o.push((0,Ho.flush)(a,c))}}),e.on("end",()=>{if(c!==-1){let u=(0,Ho.flush)(a,c);(0,Ho.sizeOf)(u)>0&&o.push(u)}o.push(null)}),o}i(Cye,"createBufferedReadable")});var bj=z(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});Yy.getAwsChunkedEncodingStream=void 0;var Aye=i((e,t)=>{let{base64Encoder:r,bodyLengthChecker:o,checksumAlgorithmFn:n,checksumLocationName:s,streamHasher:a}=t,c=r!==void 0&&o!==void 0&&n!==void 0&&s!==void 0&&a!==void 0,u=c?a(n,e):void 0,l=e.getReader();return new ReadableStream({async pull(p){let{value:f,done:y}=await l.read();if(y){if(p.enqueue(`0\r
3
+ `),c){let m=r(await u);p.enqueue(`${s}:${m}\r
4
+ `),p.enqueue(`\r
5
+ `)}p.close()}else p.enqueue(`${(o(f)||0).toString(16)}\r
6
+ ${f}\r
7
+ `)}})},"getAwsChunkedEncodingStream");Yy.getAwsChunkedEncodingStream=Aye});var Pj=z(qR=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});qR.getAwsChunkedEncodingStream=Rye;var Tye=require("node:stream"),Iye=bj(),wye=Bo();function Rye(e,t){let r=e,o=e;if((0,wye.isReadableStream)(o))return(0,Iye.getAwsChunkedEncodingStream)(o,t);let{base64Encoder:n,bodyLengthChecker:s,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:u}=t,l=n!==void 0&&a!==void 0&&c!==void 0&&u!==void 0,p=l?u(a,r):void 0,f=new Tye.Readable({read:i(()=>{},"read")});return r.on("data",y=>{let m=s(y)||0;m!==0&&(f.push(`${m.toString(16)}\r
8
+ `),f.push(y),f.push(`\r
9
+ `))}),r.on("end",async()=>{if(f.push(`0\r
10
+ `),l){let y=n(await p);f.push(`${c}:${y}\r
11
+ `),f.push(`\r
12
+ `)}f.push(null)}),f}i(Rye,"getAwsChunkedEncodingStream")});var Cj=z(WR=>{"use strict";Object.defineProperty(WR,"__esModule",{value:!0});WR.headStream=$ye;async function $ye(e,t){let r=0,o=[],n=e.getReader(),s=!1;for(;!s;){let{done:u,value:l}=await n.read();if(l&&(o.push(l),r+=l?.byteLength??0),r>=t)break;s=u}n.releaseLock();let a=new Uint8Array(Math.min(t,r)),c=0;for(let u of o){if(u.byteLength>a.byteLength-c){a.set(u.subarray(0,a.byteLength-c),c);break}else a.set(u,c);c+=u.length}return a}i($ye,"headStream")});var Aj=z(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});Qy.headStream=void 0;var Oye=require("stream"),Dye=Cj(),Nye=Bo(),kye=i((e,t)=>(0,Nye.isReadableStream)(e)?(0,Dye.headStream)(e,t):new Promise((r,o)=>{let n=new ZR;n.limit=t,e.pipe(n),e.on("error",s=>{n.end(),o(s)}),n.on("error",o),n.on("finish",function(){let s=new Uint8Array(Buffer.concat(this.buffers));r(s)})}),"headStream");Qy.headStream=kye;var ZR=class extends Oye.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(t,r,o){if(this.buffers.push(t),this.bytesBuffered+=t.byteLength??0,this.bytesBuffered>=this.limit){let n=this.bytesBuffered-this.limit,s=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=s.subarray(0,s.byteLength-n),this.emit("finish")}o()}}});var eE=z(KR=>{"use strict";var Tj=i(e=>encodeURIComponent(e).replace(/[!'()*]/g,Mye),"escapeUri"),Mye=i(e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`,"hexEncode"),Lye=i(e=>e.split("/").map(Tj).join("/"),"escapeUriPath");KR.escapeUri=Tj;KR.escapeUriPath=Lye});var JR=z(Ij=>{"use strict";var XR=eE();function zye(e){let t=[];for(let r of Object.keys(e).sort()){let o=e[r];if(r=XR.escapeUri(r),Array.isArray(o))for(let n=0,s=o.length;n<s;n++)t.push(`${r}=${XR.escapeUri(o[n])}`);else{let n=r;(o||typeof o=="string")&&(n+=`=${XR.escapeUri(o)}`),t.push(n)}}return t.join("&")}i(zye,"buildQueryString");Ij.buildQueryString=zye});var Go=z(Dp=>{"use strict";var Dj=Ze(),Nj=JR(),tE=require("node:https"),kj=require("node:stream"),nE=require("node:http2");function oE(e){let t=e&&typeof e=="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let n=new Error("Request aborted");return n.name="AbortError",n.cause=t,n}let o=new Error(String(t));return o.name="AbortError",o}let r=new Error("Request aborted");return r.name="AbortError",r}i(oE,"buildAbortError");var Fye=["ECONNRESET","EPIPE","ETIMEDOUT"],Mj=i(e=>{let t={};for(let r of Object.keys(e)){let o=e[r];t[r]=Array.isArray(o)?o.join(","):o}return t},"getTransformedHeaders"),yr={setTimeout:i((e,t)=>setTimeout(e,t),"setTimeout"),clearTimeout:i(e=>clearTimeout(e),"clearTimeout")},wj=1e3,Uye=i((e,t,r=0)=>{if(!r)return-1;let o=i(n=>{let s=yr.setTimeout(()=>{e.destroy(),t(Object.assign(new Error(`@smithy/node-http-handler - the request socket did not establish a connection with the server within the configured timeout of ${r} ms.`),{name:"TimeoutError"}))},r-n),a=i(c=>{c?.connecting?c.on("connect",()=>{yr.clearTimeout(s)}):yr.clearTimeout(s)},"doWithSocket");e.socket?a(e.socket):e.on("socket",a)},"registerTimeout");return r<2e3?(o(0),0):yr.setTimeout(o.bind(null,wj),wj)},"setConnectionTimeout"),jye=i((e,t,r=0,o,n)=>r?yr.setTimeout(()=>{let s=`@smithy/node-http-handler - [${o?"ERROR":"WARN"}] a request has exceeded the configured ${r} ms requestTimeout.`;if(o){let a=Object.assign(new Error(s),{name:"TimeoutError",code:"ETIMEDOUT"});e.destroy(a),t(a)}else s+=" Init client requestHandler with throwOnRequestTimeout=true to turn this into an error.",n?.warn?.(s)},r):-1,"setRequestTimeout"),Bye=3e3,Vye=i((e,{keepAlive:t,keepAliveMsecs:r},o=Bye)=>{if(t!==!0)return-1;let n=i(()=>{e.socket?e.socket.setKeepAlive(t,r||0):e.on("socket",s=>{s.setKeepAlive(t,r||0)})},"registerListener");return o===0?(n(),0):yr.setTimeout(n,o)},"setSocketKeepAlive"),Rj=3e3,Hye=i((e,t,r=0)=>{let o=i(n=>{let s=r-n,a=i(()=>{e.destroy(),t(Object.assign(new Error(`@smithy/node-http-handler - the request socket timed out after ${r} ms of inactivity (configured by client requestHandler).`),{name:"TimeoutError"}))},"onTimeout");e.socket?(e.socket.setTimeout(s,a),e.on("close",()=>e.socket?.removeListener("timeout",a))):e.setTimeout(s,a)},"registerTimeout");return 0<r&&r<6e3?(o(0),0):yr.setTimeout(o.bind(null,r===0?0:Rj),Rj)},"setSocketTimeout"),$j=6e3;async function Lj(e,t,r=$j,o=!1){let n=t.headers??{},s=n.Expect||n.expect,a=-1,c=!0;!o&&s==="100-continue"&&(c=await Promise.race([new Promise(u=>{a=Number(yr.setTimeout(()=>u(!0),Math.max($j,r)))}),new Promise(u=>{e.on("continue",()=>{yr.clearTimeout(a),u(!0)}),e.on("response",()=>{yr.clearTimeout(a),u(!1)}),e.on("error",()=>{yr.clearTimeout(a),u(!1)})})])),c&&Gye(e,t.body)}i(Lj,"writeRequestBody");function Gye(e,t){if(t instanceof kj.Readable){t.pipe(e);return}if(t){let r=Buffer.isBuffer(t);if(r||typeof t=="string"){r&&t.byteLength===0?e.end():e.end(t);return}let n=t;if(typeof n=="object"&&n.buffer&&typeof n.byteOffset=="number"&&typeof n.byteLength=="number"){e.end(Buffer.from(n.buffer,n.byteOffset,n.byteLength));return}e.end(Buffer.from(t));return}e.end()}i(Gye,"writeBody");var qye=0,rE,Oj,YR=class e{static{i(this,"NodeHttpHandler")}config;configProvider;socketWarningTimestamp=0;externalAgent=!1;metadata={handlerProtocol:"http/1.1"};static create(t){return typeof t?.handle=="function"?t:new e(t)}static checkSocketUsage(t,r,o=console){let{sockets:n,requests:s,maxSockets:a}=t;if(typeof a!="number"||a===1/0||Date.now()-15e3<r)return r;if(n&&s)for(let u in n){let l=n[u]?.length??0,p=s[u]?.length??0;if(l>=a&&p>=2*a)return o?.warn?.(`@smithy/node-http-handler:WARN - socket usage at capacity=${l} and ${p} additional requests are enqueued.
13
+ See https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/node-configuring-maxsockets.html
14
+ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler config.`),Date.now()}return r}constructor(t){this.configProvider=new Promise((r,o)=>{typeof t=="function"?t().then(n=>{r(this.resolveDefaultConfig(n))}).catch(o):r(this.resolveDefaultConfig(t))})}destroy(){this.config?.httpAgent?.destroy(),this.config?.httpsAgent?.destroy()}async handle(t,{abortSignal:r,requestTimeout:o}={}){this.config||(this.config=await this.configProvider);let n=this.config,s=t.protocol==="https:";return!s&&!this.config.httpAgent&&(this.config.httpAgent=await this.config.httpAgentProvider()),new Promise((a,c)=>{let u,l=[],p=i(async Me=>{await u,l.forEach(yr.clearTimeout),a(Me)},"resolve"),f=i(async Me=>{await u,l.forEach(yr.clearTimeout),c(Me)},"reject");if(r?.aborted){let Me=oE(r);f(Me);return}let y=t.headers??{},m=(y.Expect??y.expect)==="100-continue",_=s?n.httpsAgent:n.httpAgent;m&&!this.externalAgent&&(_=new(s?tE.Agent:rE)({keepAlive:!1,maxSockets:1/0})),l.push(yr.setTimeout(()=>{this.socketWarningTimestamp=e.checkSocketUsage(_,this.socketWarningTimestamp,n.logger)},n.socketAcquisitionWarningTimeout??(n.requestTimeout??2e3)+(n.connectionTimeout??1e3)));let b=Nj.buildQueryString(t.query||{}),A;if(t.username!=null||t.password!=null){let Me=t.username??"",Jt=t.password??"";A=`${Me}:${Jt}`}let I=t.path;b&&(I+=`?${b}`),t.fragment&&(I+=`#${t.fragment}`);let R=t.hostname??"";R[0]==="["&&R.endsWith("]")?R=t.hostname.slice(1,-1):R=t.hostname;let j={headers:t.headers,host:R,method:t.method,path:I,port:t.port,agent:_,auth:A},ae=(s?tE.request:Oj)(j,Me=>{let Jt=new Dj.HttpResponse({statusCode:Me.statusCode||-1,reason:Me.statusMessage,headers:Mj(Me.headers),body:Me});p({response:Jt})});if(ae.on("error",Me=>{Fye.includes(Me.code)?f(Object.assign(Me,{name:"TimeoutError"})):f(Me)}),r){let Me=i(()=>{ae.destroy();let Jt=oE(r);f(Jt)},"onAbort");if(typeof r.addEventListener=="function"){let Jt=r;Jt.addEventListener("abort",Me,{once:!0}),ae.once("close",()=>Jt.removeEventListener("abort",Me))}else r.onabort=Me}let fe=o??n.requestTimeout;l.push(Uye(ae,f,n.connectionTimeout)),l.push(jye(ae,f,fe,n.throwOnRequestTimeout,n.logger??console)),l.push(Hye(ae,f,n.socketTimeout));let _t=j.agent;typeof _t=="object"&&"keepAlive"in _t&&l.push(Vye(ae,{keepAlive:_t.keepAlive,keepAliveMsecs:_t.keepAliveMsecs})),u=Lj(ae,t,fe,this.externalAgent).catch(Me=>(l.forEach(yr.clearTimeout),c(Me)))})}updateHttpClientConfig(t,r){this.config=void 0,this.configProvider=this.configProvider.then(o=>({...o,[t]:r}))}httpHandlerConfigs(){return this.config??{}}resolveDefaultConfig(t){let{requestTimeout:r,connectionTimeout:o,socketTimeout:n,socketAcquisitionWarningTimeout:s,httpAgent:a,httpsAgent:c,throwOnRequestTimeout:u,logger:l}=t||{},p=!0,f=50;return{connectionTimeout:o,requestTimeout:r,socketTimeout:n,socketAcquisitionWarningTimeout:s,throwOnRequestTimeout:u,httpAgentProvider:i(async()=>{let{Agent:y,request:m}=await import("node:http");return Oj=m,rE=y,a instanceof rE||typeof a?.destroy=="function"?(this.externalAgent=!0,a):new rE({keepAlive:p,maxSockets:f,...a})},"httpAgentProvider"),httpsAgent:c instanceof tE.Agent||typeof c?.destroy=="function"?(this.externalAgent=!0,c):new tE.Agent({keepAlive:p,maxSockets:f,...c}),logger:l}}},Wye=new Uint16Array(1),Op=class{static{i(this,"ClientHttp2SessionRef")}id=Wye[0]++;total=0;max=0;session;refs=0;constructor(t){t.unref(),this.session=t}retain(){if(this.session.destroyed)throw new Error("@smithy/node-http-handler - cannot acquire reference to destroyed session.");this.refs+=1,this.total+=1,this.max=Math.max(this.refs,this.max),this.session.ref()}free(){if(!this.session.destroyed&&(this.refs-=1,this.refs===0&&this.session.unref(),this.refs<0))throw new Error("@smithy/node-http-handler - ClientHttp2Session refcount at zero, cannot decrement.")}deref(){return this.session}close(){this.session.closed||this.session.close()}destroy(){this.refs=0,this.session.destroyed||this.session.destroy()}useCount(){return this.refs}},QR=class{static{i(this,"NodeHttp2ConnectionPool")}sessions=[];maxConcurrency=0;constructor(t){this.sessions=(t??[]).map(r=>new Op(r))}poll(){let t=!1;for(let r of this.sessions){if(r.deref().destroyed){t=!0;continue}if(!this.maxConcurrency||r.useCount()<this.maxConcurrency)return r}if(t)for(let r of this.sessions)r.deref().destroyed&&this.remove(r)}offerLast(t){this.sessions.push(t)}remove(t){let r=this.sessions.indexOf(t);r>-1&&this.sessions.splice(r,1)}[Symbol.iterator](){return this.sessions[Symbol.iterator]()}setMaxConcurrency(t){this.maxConcurrency=t}destroy(t){this.remove(t),t.destroy()}},e$=class{static{i(this,"NodeHttp2ConnectionManager")}config;connectionPools=new Map;constructor(t){if(this.config=t,this.config.maxConcurrency&&this.config.maxConcurrency<=0)throw new RangeError("maxConcurrency must be greater than zero.")}lease(t,r){let o=this.getUrlString(t),n=this.getPool(o);if(!this.config.disableConcurrency&&!r.isEventStream){let l=n.poll();if(l)return l.retain(),l}let s=new Op(nE.connect(o)),a=s.deref();this.config.maxConcurrency&&a.settings({maxConcurrentStreams:this.config.maxConcurrency},l=>{if(l)throw new Error("Fail to set maxConcurrentStreams to "+this.config.maxConcurrency+"when creating new session for "+t.destination.toString())});let c=i(()=>{this.removeFromPoolAndClose(o,s)},"graceful"),u=i(()=>{this.removeFromPoolAndCheckedDestroy(o,s)},"ensureDestroyed");return a.on("goaway",c),a.on("error",u),a.on("frameError",u),a.on("close",u),r.requestTimeout&&a.setTimeout(r.requestTimeout,u),n.offerLast(s),s.retain(),s}release(t,r){r.free()}createIsolatedSession(t,r){let o=this.getUrlString(t),n=new Op(nE.connect(o)),s=n.deref();s.settings({maxConcurrentStreams:1});let a=i(()=>{n.destroy()},"ensureDestroyed");return s.on("error",a),s.on("frameError",a),s.on("close",a),r.requestTimeout&&s.setTimeout(r.requestTimeout,a),n.retain(),n}destroy(){for(let[t,r]of this.connectionPools){for(let o of[...r])o.destroy();this.connectionPools.delete(t)}}setMaxConcurrentStreams(t){if(t&&t<=0)throw new RangeError("maxConcurrentStreams must be greater than zero.");this.config.maxConcurrency=t;for(let r of this.connectionPools.values())r.setMaxConcurrency(t)}setDisableConcurrentStreams(t){this.config.disableConcurrency=t}debug(){let t={};for(let[r,o]of this.connectionPools){let n=[];for(let s of o)n.push({id:s.id,active:s.useCount(),maxConcurrent:s.max,totalRequests:s.total});t[r]={sessions:n}}return t}removeFromPoolAndClose(t,r){this.connectionPools.get(t)?.remove(r),r.close()}removeFromPoolAndCheckedDestroy(t,r){this.connectionPools.get(t)?.remove(r),r.destroy()}getPool(t){if(!this.connectionPools.has(t)){let r=new QR;this.config.maxConcurrency&&r.setMaxConcurrency(this.config.maxConcurrency),this.connectionPools.set(t,r)}return this.connectionPools.get(t)}getUrlString(t){return t.destination.toString()}},t$=class e{static{i(this,"NodeHttp2Handler")}config;configProvider;metadata={handlerProtocol:"h2"};connectionManager=new e$({});static create(t){return typeof t?.handle=="function"?t:new e(t)}constructor(t){this.configProvider=new Promise((r,o)=>{typeof t=="function"?t().then(n=>{r(n||{})}).catch(o):r(t||{})})}destroy(){this.connectionManager.destroy()}async handle(t,{abortSignal:r,requestTimeout:o,isEventStream:n}={}){if(!this.config){this.config=await this.configProvider;let{disableConcurrentStreams:l,maxConcurrentStreams:p}=this.config;this.connectionManager.setDisableConcurrentStreams(l??!1),p&&this.connectionManager.setMaxConcurrentStreams(p)}let{requestTimeout:s,disableConcurrentStreams:a}=this.config,c=a||n,u=o??s;return new Promise((l,p)=>{let f=!1,y,m=i(async Ye=>{await y,l(Ye)},"resolve"),_=i(async Ye=>{await y,p(Ye)},"reject");if(r?.aborted){f=!0;let Ye=oE(r);_(Ye);return}let{hostname:b,method:A,port:I,protocol:R,query:j}=t,ee="";if(t.username!=null||t.password!=null){let Ye=t.username??"",an=t.password??"";ee=`${Ye}:${an}@`}let ae=`${R}//${ee}${b}${I?`:${I}`:""}`,fe={destination:new URL(ae)},_t={requestTimeout:this.config?.sessionTimeout,isEventStream:n},Me=c?this.connectionManager.createIsolatedSession(fe,_t):this.connectionManager.lease(fe,_t),Jt=Me.deref(),$n=i(Ye=>{c&&Me.destroy(),f=!0,_(Ye)},"rejectWithDestroy"),Io=Nj.buildQueryString(j??{}),Br=t.path;Io&&(Br+=`?${Io}`),t.fragment&&(Br+=`#${t.fragment}`);let Yt=Jt.request({...t.headers,[nE.constants.HTTP2_HEADER_PATH]:Br,[nE.constants.HTTP2_HEADER_METHOD]:A});if(u&&Yt.setTimeout(u,()=>{Yt.close();let Ye=new Error(`Stream timed out because of no activity for ${u} ms`);Ye.name="TimeoutError",$n(Ye)}),r){let Ye=i(()=>{Yt.close();let an=oE(r);$n(an)},"onAbort");if(typeof r.addEventListener=="function"){let an=r;an.addEventListener("abort",Ye,{once:!0}),Yt.once("close",()=>an.removeEventListener("abort",Ye))}else r.onabort=Ye}Yt.on("frameError",(Ye,an,Qt)=>{$n(new Error(`Frame type id ${Ye} in stream id ${Qt} has failed with code ${an}.`))}),Yt.on("error",$n),Yt.on("aborted",()=>{$n(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${Yt.rstCode}.`))}),Yt.on("response",Ye=>{let an=new Dj.HttpResponse({statusCode:Ye[":status"]??-1,headers:Mj(Ye),body:Yt});f=!0,m({response:an}),c&&Jt.close()}),Yt.on("close",()=>{c?Me.destroy():this.connectionManager.release(fe,Me),f||$n(new Error("Unexpected error: http2 request did not get a response"))}),y=Lj(Yt,t,u)})}updateHttpClientConfig(t,r){this.config=void 0,this.configProvider=this.configProvider.then(o=>({...o,[t]:r}))}httpHandlerConfigs(){return this.config??{}}},r$=class extends kj.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(t,r,o){this.bufferedBytes.push(t),o()}},Zye=i(e=>Kye(e)?Xye(e):new Promise((t,r)=>{let o=new r$;e.pipe(o),e.on("error",n=>{o.end(),r(n)}),o.on("error",r),o.on("finish",function(){let n=new Uint8Array(Buffer.concat(this.bufferedBytes));t(n)})}),"streamCollector"),Kye=i(e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,"isReadableStreamInstance");async function Xye(e){let t=[],r=e.getReader(),o=!1,n=0;for(;!o;){let{done:c,value:u}=await r.read();u&&(t.push(u),n+=u.length),o=c}let s=new Uint8Array(n),a=0;for(let c of t)s.set(c,a),a+=c.length;return s}i(Xye,"collectReadableStream");Dp.DEFAULT_REQUEST_TIMEOUT=qye;Dp.NodeHttp2Handler=t$;Dp.NodeHttpHandler=YR;Dp.streamCollector=Zye});var jj=z(sE=>{"use strict";var zj=Ze(),Jye=JR(),Yye=wt();function Fj(e,t){return new Request(e,t)}i(Fj,"createRequest");function Qye(e=0){return new Promise((t,r)=>{e&&setTimeout(()=>{let o=new Error(`Request did not complete within ${e} ms`);o.name="TimeoutError",r(o)},e)})}i(Qye,"requestTimeout");var iE={supported:void 0},n$=class e{static{i(this,"FetchHttpHandler")}config;configProvider;static create(t){return typeof t?.handle=="function"?t:new e(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(r=>r||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),iE.supported===void 0&&(iE.supported=typeof Request<"u"&&"keepalive"in Fj("https://[::1]"))}destroy(){}async handle(t,{abortSignal:r,requestTimeout:o}={}){this.config||(this.config=await this.configProvider);let n=o??this.config.requestTimeout,s=this.config.keepAlive===!0,a=this.config.credentials;if(r?.aborted){let R=Uj(r);return Promise.reject(R)}let c=t.path,u=Jye.buildQueryString(t.query||{});u&&(c+=`?${u}`),t.fragment&&(c+=`#${t.fragment}`);let l="";if(t.username!=null||t.password!=null){let R=t.username??"",j=t.password??"";l=`${R}:${j}@`}let{port:p,method:f}=t,y=`${t.protocol}//${l}${t.hostname}${p?`:${p}`:""}${c}`,m=f==="GET"||f==="HEAD"?void 0:t.body,_={body:m,headers:new Headers(t.headers),method:f,credentials:a};this.config?.cache&&(_.cache=this.config.cache),m&&(_.duplex="half"),typeof AbortController<"u"&&(_.signal=r),iE.supported&&(_.keepalive=s),typeof this.config.requestInit=="function"&&Object.assign(_,this.config.requestInit(t));let b=i(()=>{},"removeSignalEventListener"),A=Fj(y,_),I=[fetch(A).then(R=>{let j=R.headers,ee={};for(let fe of j.entries())ee[fe[0]]=fe[1];return R.body!=null?{response:new zj.HttpResponse({headers:ee,reason:R.statusText,statusCode:R.status,body:R.body})}:R.blob().then(fe=>({response:new zj.HttpResponse({headers:ee,reason:R.statusText,statusCode:R.status,body:fe})}))}),Qye(n)];return r&&I.push(new Promise((R,j)=>{let ee=i(()=>{let ae=Uj(r);j(ae)},"onAbort");if(typeof r.addEventListener=="function"){let ae=r;ae.addEventListener("abort",ee,{once:!0}),b=i(()=>ae.removeEventListener("abort",ee),"removeSignalEventListener")}else r.onabort=ee})),Promise.race(I).finally(b)}updateHttpClientConfig(t,r){this.config=void 0,this.configProvider=this.configProvider.then(o=>(o[t]=r,o))}httpHandlerConfigs(){return this.config??{}}};function Uj(e){let t=e&&typeof e=="object"&&"reason"in e?e.reason:void 0;if(t){if(t instanceof Error){let n=new Error("Request aborted");return n.name="AbortError",n.cause=t,n}let o=new Error(String(t));return o.name="AbortError",o}let r=new Error("Request aborted");return r.name="AbortError",r}i(Uj,"buildAbortError");var eEe=i(async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):tEe(e):rEe(e),"streamCollector");async function tEe(e){let t=await nEe(e),r=Yye.fromBase64(t);return new Uint8Array(r)}i(tEe,"collectBlob");async function rEe(e){let t=[],r=e.getReader(),o=!1,n=0;for(;!o;){let{done:c,value:u}=await r.read();u&&(t.push(u),n+=u.length),o=c}let s=new Uint8Array(n),a=0;for(let c of t)s.set(c,a),a+=c.length;return s}i(rEe,"collectStream");function nEe(e){return new Promise((t,r)=>{let o=new FileReader;o.onloadend=()=>{if(o.readyState!==2)return r(new Error("Reader aborted too early"));let n=o.result??"",s=n.indexOf(","),a=s>-1?s+1:n.length;t(n.substring(a))},o.onabort=()=>r(new Error("Read aborted")),o.onerror=()=>r(o.error),o.readAsDataURL(e)})}i(nEe,"readToBase64");sE.FetchHttpHandler=n$;sE.keepAliveSupport=iE;sE.streamCollector=eEe});var Np=z(i$=>{"use strict";var Bj={},o$={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),Bj[e]=t,o$[t]=e}function oEe(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let o=e.slice(r,r+2).toLowerCase();if(o in o$)t[r/2]=o$[o];else throw new Error(`Cannot decode unrecognized sequence ${o} as hexadecimal`)}return t}i(oEe,"fromHex");function iEe(e){let t="";for(let r=0;r<e.byteLength;r++)t+=Bj[e[r]];return t}i(iEe,"toHex");i$.fromHex=oEe;i$.toHex=iEe});var qj=z(aE=>{"use strict";Object.defineProperty(aE,"__esModule",{value:!0});aE.sdkStreamMixin=void 0;var sEe=jj(),aEe=wt(),cEe=Np(),uEe=It(),Vj=Bo(),Hj="The stream has already been transformed.",lEe=i(e=>{if(!Gj(e)&&!(0,Vj.isReadableStream)(e)){let n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let t=!1,r=i(async()=>{if(t)throw new Error(Hj);return t=!0,await(0,sEe.streamCollector)(e)},"transformToByteArray"),o=i(n=>{if(typeof n.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
15
+ If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return n.stream()},"blobToWebStream");return Object.assign(e,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();if(n==="base64")return(0,aEe.toBase64)(s);if(n==="hex")return(0,cEe.toHex)(s);if(n===void 0||n==="utf8"||n==="utf-8")return(0,uEe.toUtf8)(s);if(typeof TextDecoder=="function")return new TextDecoder(n).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(t)throw new Error(Hj);if(t=!0,Gj(e))return o(e);if((0,Vj.isReadableStream)(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)},"transformToWebStream")})},"sdkStreamMixin");aE.sdkStreamMixin=lEe;var Gj=i(e=>typeof Blob=="function"&&e instanceof Blob,"isBlobInstance")});var Zj=z(cE=>{"use strict";Object.defineProperty(cE,"__esModule",{value:!0});cE.sdkStreamMixin=void 0;var dEe=Go(),pEe=Qc(),s$=require("stream"),fEe=qj(),Wj="The stream has already been transformed.",mEe=i(e=>{if(!(e instanceof s$.Readable))try{return(0,fEe.sdkStreamMixin)(e)}catch{let n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${n}`)}let t=!1,r=i(async()=>{if(t)throw new Error(Wj);return t=!0,await(0,dEe.streamCollector)(e)},"transformToByteArray");return Object.assign(e,{transformToByteArray:r,transformToString:i(async o=>{let n=await r();return o===void 0||Buffer.isEncoding(o)?(0,pEe.fromArrayBuffer)(n.buffer,n.byteOffset,n.byteLength).toString(o):new TextDecoder(o).decode(n)},"transformToString"),transformToWebStream:i(()=>{if(t)throw new Error(Wj);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof s$.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return t=!0,s$.Readable.toWeb(e)},"transformToWebStream")})},"sdkStreamMixin");cE.sdkStreamMixin=mEe});var Kj=z(a$=>{"use strict";Object.defineProperty(a$,"__esModule",{value:!0});a$.splitStream=gEe;async function gEe(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}i(gEe,"splitStream")});var Yj=z(c$=>{"use strict";Object.defineProperty(c$,"__esModule",{value:!0});c$.splitStream=yEe;var Xj=require("stream"),hEe=Kj(),Jj=Bo();async function yEe(e){if((0,Jj.isReadableStream)(e)||(0,Jj.isBlob)(e))return(0,hEe.splitStream)(e);let t=new Xj.PassThrough,r=new Xj.PassThrough;return e.pipe(t),e.pipe(r),[t,r]}i(yEe,"splitStream")});var hE=z(Be=>{"use strict";var Qj=wt(),eB=It(),uE=UR(),lE=hj(),dE=xj(),pE=Pj(),fE=Aj(),mE=Zj(),gE=Yj(),tB=Bo(),u$=class e extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(t,r="utf-8"){if(typeof t=="string")return r==="base64"?e.mutate(Qj.fromBase64(t)):e.mutate(eB.fromUtf8(t));throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}static mutate(t){return Object.setPrototypeOf(t,e.prototype),t}transformToString(t="utf-8"){return t==="base64"?Qj.toBase64(this):eB.toUtf8(this)}};Be.isBlob=tB.isBlob;Be.isReadableStream=tB.isReadableStream;Be.Uint8ArrayBlobAdapter=u$;Object.prototype.hasOwnProperty.call(uE,"__proto__")&&!Object.prototype.hasOwnProperty.call(Be,"__proto__")&&Object.defineProperty(Be,"__proto__",{enumerable:!0,value:uE.__proto__});Object.keys(uE).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Be,e)&&(Be[e]=uE[e])});Object.prototype.hasOwnProperty.call(lE,"__proto__")&&!Object.prototype.hasOwnProperty.call(Be,"__proto__")&&Object.defineProperty(Be,"__proto__",{enumerable:!0,value:lE.__proto__});Object.keys(lE).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Be,e)&&(Be[e]=lE[e])});Object.prototype.hasOwnProperty.call(dE,"__proto__")&&!Object.prototype.hasOwnProperty.call(Be,"__proto__")&&Object.defineProperty(Be,"__proto__",{enumerable:!0,value:dE.__proto__});Object.keys(dE).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Be,e)&&(Be[e]=dE[e])});Object.prototype.hasOwnProperty.call(pE,"__proto__")&&!Object.prototype.hasOwnProperty.call(Be,"__proto__")&&Object.defineProperty(Be,"__proto__",{enumerable:!0,value:pE.__proto__});Object.keys(pE).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Be,e)&&(Be[e]=pE[e])});Object.prototype.hasOwnProperty.call(fE,"__proto__")&&!Object.prototype.hasOwnProperty.call(Be,"__proto__")&&Object.defineProperty(Be,"__proto__",{enumerable:!0,value:fE.__proto__});Object.keys(fE).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Be,e)&&(Be[e]=fE[e])});Object.prototype.hasOwnProperty.call(mE,"__proto__")&&!Object.prototype.hasOwnProperty.call(Be,"__proto__")&&Object.defineProperty(Be,"__proto__",{enumerable:!0,value:mE.__proto__});Object.keys(mE).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Be,e)&&(Be[e]=mE[e])});Object.prototype.hasOwnProperty.call(gE,"__proto__")&&!Object.prototype.hasOwnProperty.call(Be,"__proto__")&&Object.defineProperty(Be,"__proto__",{enumerable:!0,value:gE.__proto__});Object.keys(gE).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Be,e)&&(Be[e]=gE[e])})});var yE,mn,EE=v(()=>{yE=w(hE()),mn=i(async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return yE.Uint8ArrayBlobAdapter.mutate(e);if(!e)return yE.Uint8ArrayBlobAdapter.mutate(new Uint8Array);let r=t.streamCollector(e);return yE.Uint8ArrayBlobAdapter.mutate(await r)},"collectBody")});function io(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}var SE=v(()=>{i(io,"extendedEncodeURIComponent")});var Mn,l$=v(()=>{Mn=i(e=>typeof e=="function"?e():e,"deref")});var kp,_E=v(()=>{kp=i((e,t,r,o,n)=>({name:t,namespace:e,traits:r,input:o,output:n}),"operation")});var rB,nB,oB,d$,iB=v(()=>{rB=w(Ze()),nB=w(Ft());_E();oB=i(e=>(t,r)=>async o=>{let{response:n}=await t(o),{operationSchema:s}=(0,nB.getSmithyContext)(r),[,a,c,u,l,p]=s??[];try{let f=await e.protocol.deserializeResponse(kp(a,c,u,l,p),{...e,...r},n);return{response:n,output:f}}catch(f){if(Object.defineProperty(f,"$response",{value:n,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in f)){let y="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{f.message+=`
16
+ `+y}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(y):r.logger?.warn?.(y)}typeof f.$responseBodyText<"u"&&f.$response&&(f.$response.body=f.$responseBodyText);try{if(rB.HttpResponse.isInstance(n)){let{headers:m={}}=n,_=Object.entries(m);f.$metadata={httpStatusCode:n.statusCode,requestId:d$(/^x-[\w-]+-request-?id$/,_),extendedRequestId:d$(/^x-[\w-]+-id-2$/,_),cfId:d$(/^x-[\w-]+-cf-id$/,_)}}}catch{}}throw f}},"schemaDeserializationMiddleware"),d$=i((e,t)=>(t.find(([r])=>r.match(e))||[void 0,void 0])[1],"findHeader")});var aB=z(sB=>{"use strict";function EEe(e){let t={};if(e=e.replace(/^\?/,""),e)for(let r of e.split("&")){let[o,n=null]=r.split("=");o=decodeURIComponent(o),n&&(n=decodeURIComponent(n)),o in t?Array.isArray(t[o])?t[o].push(n):t[o]=[t[o],n]:t[o]=n}return t}i(EEe,"parseQueryString");sB.parseQueryString=EEe});var gn=z(uB=>{"use strict";var SEe=aB(),cB=i(e=>{if(typeof e=="string")return cB(new URL(e));let{hostname:t,pathname:r,port:o,protocol:n,search:s}=e,a;return s&&(a=SEe.parseQueryString(s)),{hostname:t,port:o?parseInt(o):void 0,protocol:n,path:r,query:a}},"parseUrl");uB.parseUrl=cB});var p$,f$,lB=v(()=>{p$=w(gn()),f$=i(e=>{if(typeof e=="object"){if("url"in e){let t=(0,p$.parseUrl)(e.url);if(e.headers){t.headers={};for(let r in e.headers)t.headers[r.toLowerCase()]=e.headers[r].join(", ")}return t}return e}return(0,p$.parseUrl)(e)},"toEndpointV1")});var dB={};We(dB,{toEndpointV1:()=>f$});var m$=v(()=>{lB()});var pB,fB,mB=v(()=>{m$();pB=w(Ft());_E();fB=i(e=>(t,r)=>async o=>{let{operationSchema:n}=(0,pB.getSmithyContext)(r),[,s,a,c,u,l]=n??[],p=r.endpointV2?async()=>f$(r.endpointV2):e.endpoint,f=await e.protocol.serializeRequest(kp(s,a,c,u,l),o.input,{...e,...r,endpoint:p});return t({...o,request:f})},"schemaSerializationMiddleware")});function qo(e){return{applyToStack:i(t=>{t.add(fB(e),hB),t.add(oB(e),gB),e.protocol.setSerdeContext(e)},"applyToStack")}}var gB,hB,yB=v(()=>{iB();mB();gB={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},hB={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(qo,"getSchemaSerdePlugin")});var xt,zi=v(()=>{xt=class{static{i(this,"Schema")}name;namespace;traits;static assign(t,r){return Object.assign(t,r)}static[Symbol.hasInstance](t){let r=this.prototype.isPrototypeOf(t);return!r&&typeof t=="object"&&t!==null?t.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var vE,_Ee,EB=v(()=>{zi();vE=class e extends xt{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=e.symbol},_Ee=i((e,t,r,o)=>xt.assign(new vE,{name:t,namespace:e,traits:r,valueSchema:o}),"list")});var xE,vEe,SB=v(()=>{zi();xE=class e extends xt{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=e.symbol},vEe=i((e,t,r,o,n)=>xt.assign(new xE,{name:t,namespace:e,traits:r,keySchema:o,valueSchema:n}),"map")});var bE,xEe,_B=v(()=>{zi();bE=class e extends xt{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=e.symbol},xEe=i((e,t,r,o,n)=>xt.assign(new bE,{name:t,namespace:e,traits:r,input:o,output:n}),"op")});var ru,bEe,g$=v(()=>{zi();ru=class e extends xt{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=e.symbol},bEe=i((e,t,r,o,n)=>xt.assign(new ru,{name:t,namespace:e,traits:r,memberNames:o,memberList:n}),"struct")});var PE,PEe,vB=v(()=>{zi();g$();PE=class e extends ru{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=e.symbol},PEe=i((e,t,r,o,n,s)=>xt.assign(new PE,{name:t,namespace:e,traits:r,memberNames:o,memberList:n,ctor:null}),"error")});function so(e){if(typeof e=="object")return e;if(e=e|0,CE[e])return CE[e];let t={},r=0;for(let o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)===1&&(t[o]=1);return CE[e]=t}var CE,h$=v(()=>{CE=[];i(so,"translateTraits")});function Lp(e,t){if(e instanceof oe)return Object.assign(e,{memberName:t,_isMemberSchema:!0});let r=oe;return new r(e,t)}var Mp,AE,TE,oe,y$,xB,bB=v(()=>{l$();h$();Mp={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},AE=[],TE={},oe=class e{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,r){this.ref=t,this.memberName=r;let o=[],n=t,s=t;for(this._isMemberSchema=!1;y$(n);)o.push(n[1]),n=n[0],s=Mn(n),this._isMemberSchema=!0;if(o.length>0){this.memberTraits={};for(let a=o.length-1;a>=0;--a){let c=o[a];Object.assign(this.memberTraits,so(c))}}else this.memberTraits=0;if(s instanceof e){let a=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},a,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=Mn(s),xB(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){let r=this.prototype.isPrototypeOf(t);return!r&&typeof t=="object"&&t!==null?t.symbol===this.symbol:r}static of(t){let r=typeof t=="function"||typeof t=="object"&&t!==null;if(typeof t=="number"){if(AE[t])return AE[t]}else if(typeof t=="string"){if(TE[t])return TE[t]}else if(r&&t[Mp.ns])return t[Mp.ns];let o=Mn(t);if(o instanceof e)return o;if(y$(o)){let[s,a]=o;if(s instanceof e)return Object.assign(s.getMergedTraits(),so(a)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let n=new e(o);return r?t[Mp.ns]=n:typeof o=="string"?TE[o]=n:typeof o=="number"?AE[o]=n:n}getSchema(){let t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){let{name:r}=this;return!t&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){let t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){let t=this.getSchema();if(typeof t!="object")return!1;let r=t[0];return r===3||r===-3||r===4}isUnionSchema(){let t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){let t=this.getSchema();return t===21||t===42}isTimestampSchema(){let t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return so(this.memberTraits)}getOwnTraits(){return so(this.traits)}getKeySchema(){let[t,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let o=this.getSchema(),n=t?15:o[4]??0;return Lp([n,0],"key")}getValueSchema(){let t=this.getSchema(),[r,o,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof t=="number"?63&t:t&&typeof t=="object"&&(o||n)?t[3+t[0]]:r?15:void 0;if(s!=null)return Lp([s,0],o?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(t)){let o=r[4].indexOf(t),n=r[5][o];return Lp(y$(n)?n:[n,0],t)}if(this.isDocumentSchema())return Lp([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${t}.`)}getMemberSchemas(){let t={};try{for(let[r,o]of this.structIterator())t[r]=o}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(let[t,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let t=this.getSchema(),r=t[4].length,o=t[Mp.it];if(o&&r===o.length){yield*o;return}o=Array(r);for(let n=0;n<r;++n){let s=t[4][n],a=Lp([t[5][n],0],s);yield o[n]=[s,a]}t[Mp.it]=o}};i(Lp,"member");y$=i(e=>Array.isArray(e)&&e.length===2,"isMemberSchema"),xB=i(e=>Array.isArray(e)&&e.length>=5,"isStaticSchema")});var zp,CEe,AEe,PB=v(()=>{zi();zp=class e extends xt{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=e.symbol},CEe=i((e,t,r,o)=>xt.assign(new zp,{name:t,namespace:e,traits:o,schemaRef:r}),"sim"),AEe=i((e,t,r,o)=>xt.assign(new zp,{name:t,namespace:e,traits:r,schemaRef:o}),"simAdapter")});var TEe,CB=v(()=>{TEe={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var pt,AB=v(()=>{pt=class e{static{i(this,"TypeRegistry")}namespace;schemas;exceptions;static registries=new Map;constructor(t,r=new Map,o=new Map){this.namespace=t,this.schemas=r,this.exceptions=o}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(t){let{schemas:r,exceptions:o}=this;for(let[n,s]of t.schemas)r.has(n)||r.set(n,s);for(let[n,s]of t.exceptions)o.has(n)||o.set(n,s)}register(t,r){let o=this.normalizeShapeId(t);for(let n of[this,e.for(o.split("#")[0])])n.schemas.set(o,r)}getSchema(t){let r=this.normalizeShapeId(t);if(!this.schemas.has(r))throw new Error(`@smithy/core/schema - schema not found for ${r}`);return this.schemas.get(r)}registerError(t,r){let o=t,n=o[1];for(let s of[this,e.for(n)])s.schemas.set(n+"#"+o[2],o),s.exceptions.set(o,r)}getErrorCtor(t){let r=t;return this.exceptions.has(r)?this.exceptions.get(r):e.for(r[1]).exceptions.get(r)}getBaseException(){for(let t of this.exceptions.keys())if(Array.isArray(t)){let[,r,o]=t,n=r+"#"+o;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return t}}find(t){for(let r of this.schemas.values())if(t(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}});var Fp={};We(Fp,{ErrorSchema:()=>PE,ListSchema:()=>vE,MapSchema:()=>xE,NormalizedSchema:()=>oe,OperationSchema:()=>bE,SCHEMA:()=>TEe,Schema:()=>xt,SimpleSchema:()=>zp,StructureSchema:()=>ru,TypeRegistry:()=>pt,deref:()=>Mn,deserializerMiddlewareOption:()=>gB,error:()=>PEe,getSchemaSerdePlugin:()=>qo,isStaticSchema:()=>xB,list:()=>_Ee,map:()=>vEe,op:()=>xEe,operation:()=>kp,serializerMiddlewareOption:()=>hB,sim:()=>CEe,simAdapter:()=>AEe,simpleSchemaCacheN:()=>AE,simpleSchemaCacheS:()=>TE,struct:()=>bEe,traitsCache:()=>CE,translateTraits:()=>so});var je=v(()=>{l$();yB();EB();SB();_B();_E();vB();bB();zi();PB();g$();CB();h$();AB()});var IEe,TB=v(()=>{IEe=i((e,t,r=o=>o)=>e,"copyDocumentWithTransform")});var wEe,REe,Up,$Ee,IE,jp,OEe,E$,S$,_$,v$,DEe,NEe,IB,kEe,MEe,RE,LEe,x$,zEe,nu,b$,FEe,UEe,jEe,wB,RB,BEe,VEe,pa,P$,wE,Bp,C$=v(()=>{wEe=i(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),REe=i(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&Bp.warn(wE(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let t=e.toLowerCase();if((t==="false"||t==="true")&&Bp.warn(wE(`Expected boolean, got ${typeof e}: ${e}`)),t==="false")return!1;if(t==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},"expectBoolean"),Up=i(e=>{if(e!=null){if(typeof e=="string"){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&Bp.warn(wE(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},"expectNumber"),$Ee=Math.ceil(2**127*(2-2**-23)),IE=i(e=>{let t=Up(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>$Ee)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},"expectFloat32"),jp=i(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),OEe=jp,E$=i(e=>v$(e,32),"expectInt32"),S$=i(e=>v$(e,16),"expectShort"),_$=i(e=>v$(e,8),"expectByte"),v$=i((e,t)=>{let r=jp(e);if(r!==void 0&&DEe(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},"expectSizedInt"),DEe=i((e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},"castInt"),NEe=i((e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e},"expectNonNull"),IB=i(e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},"expectObject"),kEe=i(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return Bp.warn(wE(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),MEe=i(e=>{if(e==null)return;let t=IB(e),r=[];for(let o in t)t[o]!=null&&r.push(o);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t},"expectUnion"),RE=i(e=>Up(typeof e=="string"?nu(e):e),"strictParseDouble"),LEe=RE,x$=i(e=>IE(typeof e=="string"?nu(e):e),"strictParseFloat32"),zEe=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,nu=i(e=>{let t=e.match(zEe);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),b$=i(e=>typeof e=="string"?wB(e):Up(e),"limitedParseDouble"),FEe=b$,UEe=b$,jEe=i(e=>typeof e=="string"?wB(e):IE(e),"limitedParseFloat32"),wB=i(e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},"parseFloatString"),RB=i(e=>jp(typeof e=="string"?nu(e):e),"strictParseLong"),BEe=RB,VEe=i(e=>E$(typeof e=="string"?nu(e):e),"strictParseInt32"),pa=i(e=>S$(typeof e=="string"?nu(e):e),"strictParseShort"),P$=i(e=>_$(typeof e=="string"?nu(e):e),"strictParseByte"),wE=i(e=>String(new TypeError(e).stack||e).split(`
17
+ `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
18
+ `),"stackTraceWarning"),Bp={warn:console.warn}});function Hp(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDay(),n=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),u=n<10?`0${n}`:`${n}`,l=s<10?`0${s}`:`${s}`,p=a<10?`0${a}`:`${a}`,f=c<10?`0${c}`:`${c}`;return`${HEe[o]}, ${u} ${T$[r]} ${t} ${l}:${p}:${f} GMT`}var HEe,T$,GEe,qEe,WEe,I$,ZEe,KEe,XEe,w$,R$,Vp,JEe,YEe,QEe,A$,eSe,tSe,rSe,ao,nSe,oSe,ou,$B=v(()=>{C$();HEe=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],T$=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(Hp,"dateToUtcString");GEe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),qEe=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=GEe.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,o,n,s,a,c,u,l]=t,p=pa(ou(o)),f=ao(n,"month",1,12),y=ao(s,"day",1,31);return Vp(p,f,y,{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),WEe=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),I$=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=WEe.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,o,n,s,a,c,u,l,p]=t,f=pa(ou(o)),y=ao(n,"month",1,12),m=ao(s,"day",1,31),_=Vp(f,y,m,{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l});return p.toUpperCase()!="Z"&&_.setTime(_.getTime()-oSe(p)),_},"parseRfc3339DateTimeWithOffset"),ZEe=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),KEe=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),XEe=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),w$=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=ZEe.exec(e);if(t){let[r,o,n,s,a,c,u,l]=t;return Vp(pa(ou(s)),A$(n),ao(o,"day",1,31),{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l})}if(t=KEe.exec(e),t){let[r,o,n,s,a,c,u,l]=t;return QEe(Vp(JEe(s),A$(n),ao(o,"day",1,31),{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l}))}if(t=XEe.exec(e),t){let[r,o,n,s,a,c,u,l]=t;return Vp(pa(ou(l)),A$(o),ao(n.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:c,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),R$=i(e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=RE(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},"parseEpochTimestamp"),Vp=i((e,t,r,o)=>{let n=t-1;return tSe(e,n,r),new Date(Date.UTC(e,n,r,ao(o.hours,"hour",0,23),ao(o.minutes,"minute",0,59),ao(o.seconds,"seconds",0,60),nSe(o.fractionalMilliseconds)))},"buildDate"),JEe=i(e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+pa(ou(e));return r<t?r+100:r},"parseTwoDigitYear"),YEe=50*365*24*60*60*1e3,QEe=i(e=>e.getTime()-new Date().getTime()>YEe?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),A$=i(e=>{let t=T$.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},"parseMonthByShortName"),eSe=[31,28,31,30,31,30,31,31,30,31,30,31],tSe=i((e,t,r)=>{let o=eSe[t];if(t===1&&rSe(e)&&(o=29),r>o)throw new TypeError(`Invalid day for ${T$[t]} in ${e}: ${r}`)},"validateDayOfMonth"),rSe=i(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),ao=i((e,t,r,o)=>{let n=P$(ou(e));if(n<r||n>o)throw new TypeError(`${t} must be between ${r} and ${o}, inclusive`);return n},"parseDateValue"),nSe=i(e=>e==null?0:x$("0."+e)*1e3,"parseMilliseconds"),oSe=i(e=>{let t=e[0],r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);let o=Number(e.substring(1,3)),n=Number(e.substring(4,6));return r*(o*60+n)*60*1e3},"parseOffsetToMilliseconds"),ou=i(e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)},"stripLeadingZeroes")});var Wo={};We(Wo,{__addDisposableResource:()=>r6,__assign:()=>$E,__asyncDelegator:()=>ZB,__asyncGenerator:()=>WB,__asyncValues:()=>KB,__await:()=>iu,__awaiter:()=>jB,__classPrivateFieldGet:()=>QB,__classPrivateFieldIn:()=>t6,__classPrivateFieldSet:()=>e6,__createBinding:()=>DE,__decorate:()=>NB,__disposeResources:()=>n6,__esDecorate:()=>MB,__exportStar:()=>VB,__extends:()=>OB,__generator:()=>BB,__importDefault:()=>YB,__importStar:()=>JB,__makeTemplateObject:()=>XB,__metadata:()=>UB,__param:()=>kB,__propKey:()=>zB,__read:()=>D$,__rest:()=>DB,__rewriteRelativeImportExtension:()=>o6,__runInitializers:()=>LB,__setFunctionName:()=>FB,__spread:()=>HB,__spreadArray:()=>qB,__spreadArrays:()=>GB,__values:()=>OE,default:()=>aSe});function OB(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");$$(e,t);function r(){this.constructor=e}i(r,"__"),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}function DB(e,t){var r={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(r[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)t.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(r[o[n]]=e[o[n]]);return r}function NB(e,t,r,o){var n=arguments.length,s=n<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(a=e[c])&&(s=(n<3?a(s):n>3?a(t,r,s):a(t,r))||s);return n>3&&s&&Object.defineProperty(t,r,s),s}function kB(e,t){return function(r,o){t(r,o,e)}}function MB(e,t,r,o,n,s){function a(I){if(I!==void 0&&typeof I!="function")throw new TypeError("Function expected");return I}i(a,"accept");for(var c=o.kind,u=c==="getter"?"get":c==="setter"?"set":"value",l=!t&&e?o.static?e:e.prototype:null,p=t||(l?Object.getOwnPropertyDescriptor(l,o.name):{}),f,y=!1,m=r.length-1;m>=0;m--){var _={};for(var b in o)_[b]=b==="access"?{}:o[b];for(var b in o.access)_.access[b]=o.access[b];_.addInitializer=function(I){if(y)throw new TypeError("Cannot add initializers after decoration has completed");s.push(a(I||null))};var A=(0,r[m])(c==="accessor"?{get:p.get,set:p.set}:p[u],_);if(c==="accessor"){if(A===void 0)continue;if(A===null||typeof A!="object")throw new TypeError("Object expected");(f=a(A.get))&&(p.get=f),(f=a(A.set))&&(p.set=f),(f=a(A.init))&&n.unshift(f)}else(f=a(A))&&(c==="field"?n.unshift(f):p[u]=f)}l&&Object.defineProperty(l,o.name,p),y=!0}function LB(e,t,r){for(var o=arguments.length>2,n=0;n<t.length;n++)r=o?t[n].call(e,r):t[n].call(e);return o?r:void 0}function zB(e){return typeof e=="symbol"?e:"".concat(e)}function FB(e,t,r){return typeof t=="symbol"&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:r?"".concat(r," ",t):t})}function UB(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function jB(e,t,r,o){function n(s){return s instanceof r?s:new r(function(a){a(s)})}return i(n,"adopt"),new(r||(r=Promise))(function(s,a){function c(p){try{l(o.next(p))}catch(f){a(f)}}i(c,"fulfilled");function u(p){try{l(o.throw(p))}catch(f){a(f)}}i(u,"rejected");function l(p){p.done?s(p.value):n(p.value).then(c,u)}i(l,"step"),l((o=o.apply(e,t||[])).next())})}function BB(e,t){var r={label:0,sent:i(function(){if(s[0]&1)throw s[1];return s[1]},"sent"),trys:[],ops:[]},o,n,s,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=c(0),a.throw=c(1),a.return=c(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function c(l){return function(p){return u([l,p])}}function u(l){if(o)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(r=0)),r;)try{if(o=1,n&&(s=l[0]&2?n.return:l[0]?n.throw||((s=n.return)&&s.call(n),0):n.next)&&!(s=s.call(n,l[1])).done)return s;switch(n=0,s&&(l=[l[0]&2,s.value]),l[0]){case 0:case 1:s=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,n=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){r.label=l[1];break}if(l[0]===6&&r.label<s[1]){r.label=s[1],s=l;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(l);break}s[2]&&r.ops.pop(),r.trys.pop();continue}l=t.call(e,r)}catch(p){l=[6,p],n=0}finally{o=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function VB(e,t){for(var r in e)r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r)&&DE(t,e,r)}function OE(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],o=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:i(function(){return e&&o>=e.length&&(e=void 0),{value:e&&e[o++],done:!e}},"next")};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function D$(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var o=r.call(e),n,s=[],a;try{for(;(t===void 0||t-- >0)&&!(n=o.next()).done;)s.push(n.value)}catch(c){a={error:c}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return s}function HB(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(D$(arguments[t]));return e}function GB(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var o=Array(e),n=0,t=0;t<r;t++)for(var s=arguments[t],a=0,c=s.length;a<c;a++,n++)o[n]=s[a];return o}function qB(e,t,r){if(r||arguments.length===2)for(var o=0,n=t.length,s;o<n;o++)(s||!(o in t))&&(s||(s=Array.prototype.slice.call(t,0,o)),s[o]=t[o]);return e.concat(s||Array.prototype.slice.call(t))}function iu(e){return this instanceof iu?(this.v=e,this):new iu(e)}function WB(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o=r.apply(e,t||[]),n,s=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),c("next"),c("throw"),c("return",a),n[Symbol.asyncIterator]=function(){return this},n;function a(m){return function(_){return Promise.resolve(_).then(m,f)}}function c(m,_){o[m]&&(n[m]=function(b){return new Promise(function(A,I){s.push([m,b,A,I])>1||u(m,b)})},_&&(n[m]=_(n[m])))}function u(m,_){try{l(o[m](_))}catch(b){y(s[0][3],b)}}function l(m){m.value instanceof iu?Promise.resolve(m.value.v).then(p,f):y(s[0][2],m)}function p(m){u("next",m)}function f(m){u("throw",m)}function y(m,_){m(_),s.shift(),s.length&&u(s[0][0],s[0][1])}}function ZB(e){var t,r;return t={},o("next"),o("throw",function(n){throw n}),o("return"),t[Symbol.iterator]=function(){return this},t;function o(n,s){t[n]=e[n]?function(a){return(r=!r)?{value:iu(e[n](a)),done:!1}:s?s(a):a}:s}}function KB(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof OE=="function"?OE(e):e[Symbol.iterator](),r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r);function o(s){r[s]=e[s]&&function(a){return new Promise(function(c,u){a=e[s](a),n(c,u,a.done,a.value)})}}function n(s,a,c,u){Promise.resolve(u).then(function(l){s({value:l,done:c})},a)}}function XB(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function JB(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r=O$(e),o=0;o<r.length;o++)r[o]!=="default"&&DE(t,e,r[o]);return iSe(t,e),t}function YB(e){return e&&e.__esModule?e:{default:e}}function QB(e,t,r,o){if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?o:r==="a"?o.call(e):o?o.value:t.get(e)}function e6(e,t,r,o,n){if(o==="m")throw new TypeError("Private method is not writable");if(o==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return o==="a"?n.call(e,r):n?n.value=r:t.set(e,r),r}function t6(e,t){if(t===null||typeof t!="object"&&typeof t!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?t===e:e.has(t)}function r6(e,t,r){if(t!=null){if(typeof t!="object"&&typeof t!="function")throw new TypeError("Object expected.");var o,n;if(r){if(!Symbol.asyncDispose)throw new TypeError("Symbol.asyncDispose is not defined.");o=t[Symbol.asyncDispose]}if(o===void 0){if(!Symbol.dispose)throw new TypeError("Symbol.dispose is not defined.");o=t[Symbol.dispose],r&&(n=o)}if(typeof o!="function")throw new TypeError("Object not disposable.");n&&(o=i(function(){try{n.call(this)}catch(s){return Promise.reject(s)}},"dispose")),e.stack.push({value:t,dispose:o,async:r})}else r&&e.stack.push({async:!0});return t}function n6(e){function t(s){e.error=e.hasError?new sSe(s,e.error,"An error was suppressed during disposal."):s,e.hasError=!0}i(t,"fail");var r,o=0;function n(){for(;r=e.stack.pop();)try{if(!r.async&&o===1)return o=0,e.stack.push(r),Promise.resolve().then(n);if(r.dispose){var s=r.dispose.call(r.value);if(r.async)return o|=2,Promise.resolve(s).then(n,function(a){return t(a),n()})}else o|=1}catch(a){t(a)}if(o===1)return e.hasError?Promise.reject(e.error):Promise.resolve();if(e.hasError)throw e.error}return i(n,"next"),n()}function o6(e,t){return typeof e=="string"&&/^\.\.?\//.test(e)?e.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i,function(r,o,n,s,a){return o?t?".jsx":".js":n&&(!s||!a)?r:n+s+"."+a.toLowerCase()+"js"}):e}var $$,$E,DE,iSe,O$,sSe,aSe,Zo=v(()=>{$$=i(function(e,t){return $$=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,o){r.__proto__=o}||function(r,o){for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(r[n]=o[n])},$$(e,t)},"extendStatics");i(OB,"__extends");$E=i(function(){return $E=Object.assign||i(function(t){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},"__assign"),$E.apply(this,arguments)},"__assign");i(DB,"__rest");i(NB,"__decorate");i(kB,"__param");i(MB,"__esDecorate");i(LB,"__runInitializers");i(zB,"__propKey");i(FB,"__setFunctionName");i(UB,"__metadata");i(jB,"__awaiter");i(BB,"__generator");DE=Object.create?(function(e,t,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,o,n)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]});i(VB,"__exportStar");i(OE,"__values");i(D$,"__read");i(HB,"__spread");i(GB,"__spreadArrays");i(qB,"__spreadArray");i(iu,"__await");i(WB,"__asyncGenerator");i(ZB,"__asyncDelegator");i(KB,"__asyncValues");i(XB,"__makeTemplateObject");iSe=Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t},O$=i(function(e){return O$=Object.getOwnPropertyNames||function(t){var r=[];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[r.length]=o);return r},O$(e)},"ownKeys");i(JB,"__importStar");i(YB,"__importDefault");i(QB,"__classPrivateFieldGet");i(e6,"__classPrivateFieldSet");i(t6,"__classPrivateFieldIn");i(r6,"__addDisposableResource");sSe=typeof SuppressedError=="function"?SuppressedError:function(e,t,r){var o=new Error(r);return o.name="SuppressedError",o.error=e,o.suppressed=t,o};i(n6,"__disposeResources");i(o6,"__rewriteRelativeImportExtension");aSe={__extends:OB,__assign:$E,__rest:DB,__decorate:NB,__param:kB,__esDecorate:MB,__runInitializers:LB,__propKey:zB,__setFunctionName:FB,__metadata:UB,__awaiter:jB,__generator:BB,__createBinding:DE,__exportStar:VB,__values:OE,__read:D$,__spread:HB,__spreadArrays:GB,__spreadArray:qB,__await:iu,__asyncGenerator:WB,__asyncDelegator:ZB,__asyncValues:KB,__makeTemplateObject:XB,__importStar:JB,__importDefault:YB,__classPrivateFieldGet:QB,__classPrivateFieldSet:e6,__classPrivateFieldIn:t6,__addDisposableResource:r6,__disposeResources:n6,__rewriteRelativeImportExtension:o6}});var s6=z(NE=>{"use strict";Object.defineProperty(NE,"__esModule",{value:!0});NE.randomUUID=void 0;var cSe=(Zo(),pe(Wo)),i6=cSe.__importDefault(require("crypto"));NE.randomUUID=i6.default.randomUUID.bind(i6.default)});var N$=z(c6=>{"use strict";var a6=s6(),tr=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0")),uSe=i(()=>{if(a6.randomUUID)return a6.randomUUID();let e=new Uint8Array(16);return crypto.getRandomValues(e),e[6]=e[6]&15|64,e[8]=e[8]&63|128,tr[e[0]]+tr[e[1]]+tr[e[2]]+tr[e[3]]+"-"+tr[e[4]]+tr[e[5]]+"-"+tr[e[6]]+tr[e[7]]+"-"+tr[e[8]]+tr[e[9]]+"-"+tr[e[10]]+tr[e[11]]+tr[e[12]]+tr[e[13]]+tr[e[14]]+tr[e[15]]},"v4");c6.v4=uSe});var hn,u6=v(()=>{hn=w(N$())});var Er,l6=v(()=>{Er=i(function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})},"LazyJsonString");Er.from=e=>e&&typeof e=="object"&&(e instanceof Er||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Er(String(e)):Er(JSON.stringify(e));Er.fromObject=Er.from});function k$(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}var d6=v(()=>{i(k$,"quoteHeader")});function Ko(e,t,r){let o=Number(e);if(o<t||o>r)throw new Error(`Value ${o} out of range [${t}, ${r}]`)}var M$,L$,z$,p6,f6,lSe,dSe,pSe,fSe,mSe,su,F$,U$,m6=v(()=>{M$="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",L$="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",z$="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",p6="(\\d?\\d)",f6="(\\d{4})",lSe=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),dSe=new RegExp(`^${M$}, ${p6} ${L$} ${f6} ${z$} GMT$`),pSe=new RegExp(`^${M$}, ${p6}-${L$}-(\\d\\d) ${z$} GMT$`),fSe=new RegExp(`^${M$} ${L$} ( [1-9]|\\d\\d) ${z$} ${f6}$`),mSe=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],su=i(e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},"_parseEpochTimestamp"),F$=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");let t=lSe.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,r,o,n,s,a,c,,u,l]=t;Ko(o,1,12),Ko(n,1,31),Ko(s,0,23),Ko(a,0,59),Ko(c,0,60);let p=new Date(Date.UTC(Number(r),Number(o)-1,Number(n),Number(s),Number(a),Number(c),Number(u)?Math.round(parseFloat(`0.${u}`)*1e3):0));if(p.setUTCFullYear(Number(r)),l.toUpperCase()!="Z"){let[,f,y,m]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,"+",0,0],_=f==="-"?1:-1;p.setTime(p.getTime()+_*(Number(y)*60*60*1e3+Number(m)*60*1e3))}return p},"_parseRfc3339DateTimeWithOffset"),U$=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,r,o,n,s,a,c,u;if((u=dSe.exec(e))?[,t,r,o,n,s,a,c]=u:(u=pSe.exec(e))?([,t,r,o,n,s,a,c]=u,o=(Number(o)+1900).toString()):(u=fSe.exec(e))&&([,r,t,n,s,a,c,o]=u),o&&a){let l=Date.UTC(Number(o),mSe.indexOf(r),Number(t),Number(n),Number(s),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);Ko(t,1,31),Ko(n,0,23),Ko(s,0,59),Ko(a,0,60);let p=new Date(l);return p.setUTCFullYear(Number(o)),p}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)},"_parseRfc7231DateTime");i(Ko,"range")});function j$(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let o=e.split(t);if(r===1)return o;let n=[],s="";for(let a=0;a<o.length;a++)s===""?s=o[a]:s+=t+o[a],(a+1)%r===0&&(n.push(s),s="");return s!==""&&n.push(s),n}var g6=v(()=>{i(j$,"splitEvery")});var Gp,h6=v(()=>{Gp=i(e=>{let t=e.length,r=[],o=!1,n,s=0;for(let a=0;a<t;++a){let c=e[a];switch(c){case'"':n!=="\\"&&(o=!o);break;case",":o||(r.push(e.slice(s,a)),s=a+1);break;default:}n=c}return r.push(e.slice(s)),r.map(a=>{a=a.trim();let c=a.length;return c<2?a:(a[0]==='"'&&a[c-1]==='"'&&(a=a.slice(1,c-1)),a.replace(/\\"/g,'"'))})},"splitHeader")});function B$(e){return new st(String(e),"bigDecimal")}var y6,st,E6=v(()=>{y6=/^-?\d*(\.\d+)?$/,st=class e{static{i(this,"NumericValue")}string;type;constructor(t,r){if(this.string=t,this.type=r,!y6.test(t))throw new Error('@smithy/core/serde - NumericValue must only contain [0-9], at most one decimal point ".", and an optional negation prefix "-".')}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;let r=t;return e.prototype.isPrototypeOf(t)||r.type==="bigDecimal"&&y6.test(r.string)}};i(B$,"nv")});var V$={};We(V$,{LazyJsonString:()=>Er,NumericValue:()=>st,_parseEpochTimestamp:()=>su,_parseRfc3339DateTimeWithOffset:()=>F$,_parseRfc7231DateTime:()=>U$,copyDocumentWithTransform:()=>IEe,dateToUtcString:()=>Hp,expectBoolean:()=>REe,expectByte:()=>_$,expectFloat32:()=>IE,expectInt:()=>OEe,expectInt32:()=>E$,expectLong:()=>jp,expectNonNull:()=>NEe,expectNumber:()=>Up,expectObject:()=>IB,expectShort:()=>S$,expectString:()=>kEe,expectUnion:()=>MEe,generateIdempotencyToken:()=>hn.v4,handleFloat:()=>FEe,limitedParseDouble:()=>b$,limitedParseFloat:()=>UEe,limitedParseFloat32:()=>jEe,logger:()=>Bp,nv:()=>B$,parseBoolean:()=>wEe,parseEpochTimestamp:()=>R$,parseRfc3339DateTime:()=>qEe,parseRfc3339DateTimeWithOffset:()=>I$,parseRfc7231DateTime:()=>w$,quoteHeader:()=>k$,splitEvery:()=>j$,splitHeader:()=>Gp,strictParseByte:()=>P$,strictParseDouble:()=>RE,strictParseFloat:()=>LEe,strictParseFloat32:()=>x$,strictParseInt:()=>BEe,strictParseInt32:()=>VEe,strictParseLong:()=>RB,strictParseShort:()=>pa});var rr=v(()=>{TB();$B();u6();l6();C$();d6();m6();g6();h6();E6()});var Sr,au=v(()=>{Sr=class{static{i(this,"SerdeContext")}serdeContext;setSerdeContext(t){this.serdeContext=t}}});var kE,H$,S6=v(()=>{kE=w(It()),H$=class{static{i(this,"EventStreamSerde")}marshaller;serializer;deserializer;serdeContext;defaultContentType;constructor({marshaller:t,serializer:r,deserializer:o,serdeContext:n,defaultContentType:s}){this.marshaller=t,this.serializer=r,this.deserializer=o,this.serdeContext=n,this.defaultContentType=s}async serializeEventStream({eventStream:t,requestSchema:r,initialRequest:o}){let n=this.marshaller,s=r.getEventStreamMember(),a=r.getMemberSchema(s),c=this.serializer,u=this.defaultContentType,l=Symbol("initialRequestMarker"),p={async*[Symbol.asyncIterator](){if(o){let f={":event-type":{type:"string",value:"initial-request"},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:u}};c.write(r,o);let y=c.flush();yield{[l]:!0,headers:f,body:y}}for await(let f of t)yield f}};return n.serialize(p,f=>{if(f[l])return{headers:f.headers,body:f.body};let y="";for(let R in f)if(R!=="__type"){y=R;break}let{additionalHeaders:m,body:_,eventType:b,explicitPayloadContentType:A}=this.writeEventBody(y,a,f);return{headers:{":event-type":{type:"string",value:b},":message-type":{type:"string",value:"event"},":content-type":{type:"string",value:A??u},...m},body:_}})}async deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:o}){let n=this.marshaller,s=r.getEventStreamMember(),c=r.getMemberSchema(s).getMemberSchemas(),u=Symbol("initialResponseMarker"),l=n.deserialize(t.body,async y=>{let m="";for(let b in y)if(b!=="__type"){m=b;break}let _=y[m].body;if(m==="initial-response"){let b=await this.deserializer.read(r,_);return delete b[s],{[u]:!0,...b}}else if(m in c){let b=c[m];if(b.isStructSchema()){let A={},I=!1;for(let[R,j]of b.structIterator()){let{eventHeader:ee,eventPayload:ae}=j.getMergedTraits();if(I=I||!!(ee||ae),ae)j.isBlobSchema()?A[R]=_:j.isStringSchema()?A[R]=(this.serdeContext?.utf8Encoder??kE.toUtf8)(_):j.isStructSchema()&&(A[R]=await this.deserializer.read(j,_));else if(ee){let fe=y[m].headers[R]?.value;fe!=null&&(j.isNumericSchema()?fe&&typeof fe=="object"&&"bytes"in fe?A[R]=BigInt(fe.toString()):A[R]=Number(fe):A[R]=fe)}}if(I)return{[m]:A};if(_.byteLength===0)return{[m]:{}}}return{[m]:await this.deserializer.read(b,_)}}else return{$unknown:y}}),p=l[Symbol.asyncIterator](),f=await p.next();if(f.done)return l;if(f.value?.[u]){if(!r)throw new Error("@smithy::core/protocols - initial-response event encountered in event stream but no response schema given.");for(let y in f.value)o[y]=f.value[y]}return{async*[Symbol.asyncIterator](){for(f?.value?.[u]||(yield f.value);;){let{done:y,value:m}=await p.next();if(y)break;yield m}}}}writeEventBody(t,r,o){let n=this.serializer,s=t,a=null,c,u=r.getSchema()[4].includes(t),l={};if(u){let y=r.getMemberSchema(t);if(y.isStructSchema()){for(let[m,_]of y.structIterator()){let{eventHeader:b,eventPayload:A}=_.getMergedTraits();if(A)a=m;else if(b){let I=o[t][m],R="binary";_.isNumericSchema()?(-2)**31<=I&&I<=2**31-1?R="integer":R="long":_.isTimestampSchema()?R="timestamp":_.isStringSchema()?R="string":_.isBooleanSchema()&&(R="boolean"),I!=null&&(l[m]={type:R,value:I},delete o[t][m])}}if(a!==null){let m=y.getMemberSchema(a);m.isBlobSchema()?c="application/octet-stream":m.isStringSchema()&&(c="text/plain"),n.write(m,o[t][a])}else n.write(y,o[t])}else if(y.isUnitSchema())n.write(y,{});else throw new Error("@smithy/core/event-streams - non-struct member not supported in event stream union.")}else{let[y,m]=o[t];s=y,n.write(15,m)}let p=n.flush()??new Uint8Array;return{body:typeof p=="string"?(this.serdeContext?.utf8Decoder??kE.fromUtf8)(p):p,eventType:s,explicitPayloadContentType:c,additionalHeaders:l}}}});var _6={};We(_6,{EventStreamSerde:()=>H$});var v6=v(()=>{S6()});var ME,fa,LE=v(()=>{je();ME=w(Ze());au();fa=class extends Sr{static{i(this,"HttpProtocol")}options;compositeErrorRegistry;constructor(t){super(),this.options=t,this.compositeErrorRegistry=pt.for(t.defaultNamespace);for(let r of t.errorTypeRegistries??[])this.compositeErrorRegistry.copyFrom(r)}getRequestType(){return ME.HttpRequest}getResponseType(){return ME.HttpResponse}setSerdeContext(t){this.serdeContext=t,this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t),this.getPayloadCodec()&&this.getPayloadCodec().setSerdeContext(t)}updateServiceEndpoint(t,r){if("url"in r){t.protocol=r.url.protocol,t.hostname=r.url.hostname,t.port=r.url.port?Number(r.url.port):void 0,t.path=r.url.pathname,t.fragment=r.url.hash||void 0,t.username=r.url.username||void 0,t.password=r.url.password||void 0,t.query||(t.query={});for(let[o,n]of r.url.searchParams.entries())t.query[o]=n;if(r.headers)for(let o in r.headers)t.headers[o]=r.headers[o].join(", ");return t}else{if(t.protocol=r.protocol,t.hostname=r.hostname,t.port=r.port?Number(r.port):void 0,t.path=r.path,t.query={...r.query},r.headers)for(let o in r.headers)t.headers[o]=r.headers[o];return t}}setHostPrefix(t,r,o){if(this.serdeContext?.disableHostPrefix)return;let n=oe.of(r.input),s=so(r.traits??{});if(s.endpoint){let a=s.endpoint?.[0];if(typeof a=="string"){for(let[c,u]of n.structIterator()){if(!u.getMergedTraits().hostLabel)continue;let l=o[c];if(typeof l!="string")throw new Error(`@smithy/core/schema - ${c} in input must be a string as hostLabel.`);a=a.replace(`{${c}}`,l)}t.hostname=a+t.hostname}}}deserializeMetadata(t){return{httpStatusCode:t.statusCode,requestId:t.headers["x-amzn-requestid"]??t.headers["x-amzn-request-id"]??t.headers["x-amz-request-id"],extendedRequestId:t.headers["x-amz-id-2"],cfId:t.headers["x-amz-cf-id"]}}async serializeEventStream({eventStream:t,requestSchema:r,initialRequest:o}){return(await this.loadEventStreamCapability()).serializeEventStream({eventStream:t,requestSchema:r,initialRequest:o})}async deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:o}){return(await this.loadEventStreamCapability()).deserializeEventStream({response:t,responseSchema:r,initialResponseContainer:o})}async loadEventStreamCapability(){let{EventStreamSerde:t}=await Promise.resolve().then(()=>(v6(),_6));return new t({marshaller:this.getEventStreamMarshaller(),serializer:this.serializer,deserializer:this.deserializer,serdeContext:this.serdeContext,defaultContentType:this.getDefaultContentType()})}getDefaultContentType(){throw new Error(`@smithy/core/protocols - ${this.constructor.name} getDefaultContentType() implementation missing.`)}async deserializeHttpMessage(t,r,o,n,s){return[]}getEventStreamMarshaller(){let t=this.serdeContext;if(!t.eventStreamMarshaller)throw new Error("@smithy/core - HttpProtocol: eventStreamMarshaller missing in serdeContext.");return t.eventStreamMarshaller}}});var x6,b6,ma,P6=v(()=>{je();rr();x6=w(Ze()),b6=w(hE());EE();SE();LE();ma=class extends fa{static{i(this,"HttpBindingProtocol")}async serializeRequest(t,r,o){let n=r&&typeof r=="object"?r:{},s=this.serializer,a={},c={},u=await o.endpoint(),l=oe.of(t?.input),p=[],f=[],y=!1,m,_=new x6.HttpRequest({protocol:"",hostname:"",port:void 0,path:"",fragment:void 0,query:a,headers:c,body:void 0});if(u){this.updateServiceEndpoint(_,u),this.setHostPrefix(_,t,n);let b=so(t.traits);if(b.http){_.method=b.http[0];let[A,I]=b.http[1].split("?");_.path=="/"?_.path=A:_.path+=A;let R=new URLSearchParams(I??"");for(let[j,ee]of R)a[j]=ee}}for(let[b,A]of l.structIterator()){let I=A.getMergedTraits()??{},R=n[b];if(R==null&&!A.isIdempotencyToken()){if(I.httpLabel&&(_.path.includes(`{${b}+}`)||_.path.includes(`{${b}}`)))throw new Error(`No value provided for input HTTP label: ${b}.`);continue}if(I.httpPayload)A.isStreaming()?A.isStructSchema()?n[b]&&(m=await this.serializeEventStream({eventStream:n[b],requestSchema:l})):m=R:(s.write(A,R),m=s.flush());else if(I.httpLabel){s.write(A,R);let j=s.flush();_.path.includes(`{${b}+}`)?_.path=_.path.replace(`{${b}+}`,j.split("/").map(io).join("/")):_.path.includes(`{${b}}`)&&(_.path=_.path.replace(`{${b}}`,io(j)))}else if(I.httpHeader)s.write(A,R),c[I.httpHeader.toLowerCase()]=String(s.flush());else if(typeof I.httpPrefixHeaders=="string")for(let j in R){let ee=R[j],ae=I.httpPrefixHeaders+j;s.write([A.getValueSchema(),{httpHeader:ae}],ee),c[ae.toLowerCase()]=s.flush()}else I.httpQuery||I.httpQueryParams?this.serializeQuery(A,R,a):(y=!0,p.push(b),f.push(A))}if(y&&n){let[b,A]=(l.getName(!0)??"#Unknown").split("#"),I=l.getSchema()[6],R=[3,b,A,l.getMergedTraits(),p,f,void 0];I?R[6]=I:R.pop(),s.write(R,n),m=s.flush()}return _.headers=c,_.query=a,_.body=m,_}serializeQuery(t,r,o){let n=this.serializer,s=t.getMergedTraits();if(s.httpQueryParams){for(let a in r)if(!(a in o)){let c=r[a],u=t.getValueSchema();Object.assign(u.getMergedTraits(),{...s,httpQuery:a,httpQueryParams:void 0}),this.serializeQuery(u,c,o)}return}if(t.isListSchema()){let a=!!t.getMergedTraits().sparse,c=[];for(let u of r){n.write([t.getValueSchema(),s],u);let l=n.flush();(a||l!==void 0)&&c.push(l)}o[s.httpQuery]=c}else n.write([t,s],r),o[s.httpQuery]=n.flush()}async deserializeResponse(t,r,o){let n=this.deserializer,s=oe.of(t.output),a={};if(o.statusCode>=300){let u=await mn(o.body,r);throw u.byteLength>0&&Object.assign(a,await n.read(15,u)),await this.handleError(t,r,o,a,this.deserializeMetadata(o)),new Error("@smithy/core/protocols - HTTP Protocol error handler failed to throw.")}for(let u in o.headers){let l=o.headers[u];delete o.headers[u],o.headers[u.toLowerCase()]=l}let c=await this.deserializeHttpMessage(s,r,o,a);if(c.length){let u=await mn(o.body,r);if(u.byteLength>0){let l=await n.read(s,u);for(let p of c)l[p]!=null&&(a[p]=l[p])}}else c.discardResponseBody&&await mn(o.body,r);return a.$metadata=this.deserializeMetadata(o),a}async deserializeHttpMessage(t,r,o,n,s){let a;n instanceof Set?a=s:a=n;let c=!0,u=this.deserializer,l=oe.of(t),p=[];for(let[f,y]of l.structIterator()){let m=y.getMemberTraits();if(m.httpPayload){if(c=!1,y.isStreaming())y.isStructSchema()?a[f]=await this.deserializeEventStream({response:o,responseSchema:l}):a[f]=(0,b6.sdkStreamMixin)(o.body);else if(o.body){let b=await mn(o.body,r);b.byteLength>0&&(a[f]=await u.read(y,b))}}else if(m.httpHeader){let _=String(m.httpHeader).toLowerCase(),b=o.headers[_];if(b!=null)if(y.isListSchema()){let A=y.getValueSchema();A.getMergedTraits().httpHeader=_;let I;A.isTimestampSchema()&&A.getSchema()===4?I=j$(b,",",2):I=Gp(b);let R=[];for(let j of I)R.push(await u.read(A,j.trim()));a[f]=R}else a[f]=await u.read(y,b)}else if(m.httpPrefixHeaders!==void 0){a[f]={};for(let _ in o.headers)if(_.startsWith(m.httpPrefixHeaders)){let b=o.headers[_],A=y.getValueSchema();A.getMergedTraits().httpHeader=_,a[f][_.slice(m.httpPrefixHeaders.length)]=await u.read(A,b)}}else m.httpResponseCode?a[f]=o.statusCode:p.push(f)}return p.discardResponseBody=c,p}}});var C6,Xo,A6=v(()=>{je();C6=w(Ze());EE();LE();Xo=class extends fa{static{i(this,"RpcProtocol")}async serializeRequest(t,r,o){let n=this.serializer,s={},a={},c=await o.endpoint(),u=oe.of(t?.input),l=u.getSchema(),p,f=r&&typeof r=="object"?r:{},y=new C6.HttpRequest({protocol:"",hostname:"",port:void 0,path:"/",fragment:void 0,query:s,headers:a,body:void 0});if(c&&(this.updateServiceEndpoint(y,c),this.setHostPrefix(y,t,f)),f){let m=u.getEventStreamMember();if(m){if(f[m]){let _={};for(let[b,A]of u.structIterator())b!==m&&f[b]&&(n.write(A,f[b]),_[b]=n.flush());p=await this.serializeEventStream({eventStream:f[m],requestSchema:u,initialRequest:_})}}else n.write(l,f),p=n.flush()}return y.headers=Object.assign(y.headers,a),y.query=s,y.body=p,y.method="POST",y}async deserializeResponse(t,r,o){let n=this.deserializer,s=oe.of(t.output),a={};if(o.statusCode>=300){let u=await mn(o.body,r);throw u.byteLength>0&&Object.assign(a,await n.read(15,u)),await this.handleError(t,r,o,a,this.deserializeMetadata(o)),new Error("@smithy/core/protocols - RPC Protocol error handler failed to throw.")}for(let u in o.headers){let l=o.headers[u];delete o.headers[u],o.headers[u.toLowerCase()]=l}let c=s.getEventStreamMember();if(c)a[c]=await this.deserializeEventStream({response:o,responseSchema:s,initialResponseContainer:a});else{let u=await mn(o.body,r);u.byteLength>0&&Object.assign(a,await n.read(s,u))}return a.$metadata=this.deserializeMetadata(o),a}}});var G$,q$=v(()=>{SE();G$=i((e,t,r,o,n,s)=>{if(t!=null&&t[r]!==void 0){let a=o();if(a==null||a.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(n,s?a.split("/").map(c=>io(c)).join("/"):io(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return e},"resolvedPath")});function W$(e,t){return new zE(e,t)}var T6,zE,I6=v(()=>{T6=w(Ze());q$();i(W$,"requestBuilder");zE=class{static{i(this,"RequestBuilder")}input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(t,r){this.input=t,this.context=r}async build(){let{hostname:t,protocol:r="https",port:o,path:n}=await this.context.endpoint();this.path=n;for(let s of this.resolvePathStack)s(this.path);return new T6.HttpRequest({protocol:r,hostname:this.hostname||t,port:o,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(t){return this.hostname=t,this}bp(t){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+t}),this}p(t,r,o,n){return this.resolvePathStack.push(s=>{this.path=G$(s,this.input,t,r,o,n)}),this}h(t){return this.headers=t,this}q(t){return this.query=t,this}b(t){return this.body=t,this}m(t){return this.method=t,this}}});function Zr(e,t){if(t.timestampFormat.useTrait&&e.isTimestampSchema()&&(e.getSchema()===5||e.getSchema()===6||e.getSchema()===7))return e.getSchema();let{httpLabel:r,httpPrefixHeaders:o,httpHeader:n,httpQuery:s}=e.getMergedTraits();return(t.httpBindings?typeof o=="string"||n?6:s||r?5:void 0:void 0)??t.timestampFormat.default}var FE=v(()=>{i(Zr,"determineTimestampFormat")});var Z$,w6,ga,K$=v(()=>{je();rr();Z$=w(wt()),w6=w(It());au();FE();ga=class extends Sr{static{i(this,"FromStringShapeDeserializer")}settings;constructor(t){super(),this.settings=t}read(t,r){let o=oe.of(t);if(o.isListSchema())return Gp(r).map(n=>this.read(o.getValueSchema(),n));if(o.isBlobSchema())return(this.serdeContext?.base64Decoder??Z$.fromBase64)(r);if(o.isTimestampSchema())switch(Zr(o,this.settings)){case 5:return F$(r);case 6:return U$(r);case 7:return su(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(o.isStringSchema()){let n=o.getMergedTraits().mediaType,s=r;if(n)return o.getMergedTraits().httpHeader&&(s=this.base64ToUtf8(s)),(n==="application/json"||n.endsWith("+json"))&&(s=Er.from(s)),s}return o.isNumericSchema()?Number(r):o.isBigIntegerSchema()?BigInt(r):o.isBigDecimalSchema()?new st(r,"bigDecimal"):o.isBooleanSchema()?String(r).toLowerCase()==="true":r}base64ToUtf8(t){return(this.serdeContext?.utf8Encoder??w6.toUtf8)((this.serdeContext?.base64Decoder??Z$.fromBase64)(t))}}});var UE,ha,R6=v(()=>{je();UE=w(It());au();K$();ha=class extends Sr{static{i(this,"HttpInterceptingShapeDeserializer")}codecDeserializer;stringDeserializer;constructor(t,r){super(),this.codecDeserializer=t,this.stringDeserializer=new ga(r)}setSerdeContext(t){this.stringDeserializer.setSerdeContext(t),this.codecDeserializer.setSerdeContext(t),this.serdeContext=t}read(t,r){let o=oe.of(t),n=o.getMergedTraits(),s=this.serdeContext?.utf8Encoder??UE.toUtf8;if(n.httpHeader||n.httpResponseCode)return this.stringDeserializer.read(o,s(r));if(n.httpPayload){if(o.isBlobSchema()){let a=this.serdeContext?.utf8Decoder??UE.fromUtf8;return typeof r=="string"?a(r):r}else if(o.isStringSchema())return"byteLength"in r?s(r):r}return this.codecDeserializer.read(o,r)}}});var X$,qp,J$=v(()=>{je();rr();X$=w(wt());au();FE();qp=class extends Sr{static{i(this,"ToStringShapeSerializer")}settings;stringBuffer="";constructor(t){super(),this.settings=t}write(t,r){let o=oe.of(t);switch(typeof r){case"object":if(r===null){this.stringBuffer="null";return}if(o.isTimestampSchema()){if(!(r instanceof Date))throw new Error(`@smithy/core/protocols - received non-Date value ${r} when schema expected Date in ${o.getName(!0)}`);switch(Zr(o,this.settings)){case 5:this.stringBuffer=r.toISOString().replace(".000Z","Z");break;case 6:this.stringBuffer=Hp(r);break;case 7:this.stringBuffer=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using epoch seconds",r),this.stringBuffer=String(r.getTime()/1e3)}return}if(o.isBlobSchema()&&"byteLength"in r){this.stringBuffer=(this.serdeContext?.base64Encoder??X$.toBase64)(r);return}if(o.isListSchema()&&Array.isArray(r)){let a="";for(let c of r){this.write([o.getValueSchema(),o.getMergedTraits()],c);let u=this.flush(),l=o.getValueSchema().isTimestampSchema()?u:k$(u);a!==""&&(a+=", "),a+=l}this.stringBuffer=a;return}this.stringBuffer=JSON.stringify(r,null,2);break;case"string":let n=o.getMergedTraits().mediaType,s=r;if(n&&((n==="application/json"||n.endsWith("+json"))&&(s=Er.from(s)),o.getMergedTraits().httpHeader)){this.stringBuffer=(this.serdeContext?.base64Encoder??X$.toBase64)(s.toString());return}this.stringBuffer=r;break;default:o.isIdempotencyToken()?this.stringBuffer=(0,hn.v4)():this.stringBuffer=String(r)}}flush(){let t=this.stringBuffer;return this.stringBuffer="",t}}});var ya,$6=v(()=>{je();J$();ya=class{static{i(this,"HttpInterceptingShapeSerializer")}codecSerializer;stringSerializer;buffer;constructor(t,r,o=new qp(r)){this.codecSerializer=t,this.stringSerializer=o}setSerdeContext(t){this.codecSerializer.setSerdeContext(t),this.stringSerializer.setSerdeContext(t)}write(t,r){let o=oe.of(t),n=o.getMergedTraits();if(n.httpHeader||n.httpLabel||n.httpQuery){this.stringSerializer.write(o,r),this.buffer=this.stringSerializer.flush();return}return this.codecSerializer.write(o,r)}flush(){if(this.buffer!==void 0){let t=this.buffer;return this.buffer=void 0,t}return this.codecSerializer.flush()}}});var O6={};We(O6,{FromStringShapeDeserializer:()=>ga,HttpBindingProtocol:()=>ma,HttpInterceptingShapeDeserializer:()=>ha,HttpInterceptingShapeSerializer:()=>ya,HttpProtocol:()=>fa,RequestBuilder:()=>zE,RpcProtocol:()=>Xo,SerdeContext:()=>Sr,ToStringShapeSerializer:()=>qp,collectBody:()=>mn,determineTimestampFormat:()=>Zr,extendedEncodeURIComponent:()=>io,requestBuilder:()=>W$,resolvedPath:()=>G$});var Rr=v(()=>{EE();SE();P6();LE();A6();I6();q$();K$();R6();$6();J$();FE();au()});var D6=v(()=>{Rr()});function gSe(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}var N6=v(()=>{i(gSe,"setFeature")});var Ln,k6=v(()=>{Ln=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(t){for(let r in t){let o=t[r];o!==void 0&&this.authSchemes.set(r,o)}}getIdentityProvider(t){return this.authSchemes.get(t)}}});var M6,Y$,Q$,L6=v(()=>{M6=w(Ze()),Y$=w(zo()),Q$=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(t,r,o){if(!o)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!o.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!o.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let n=M6.HttpRequest.clone(t);if(o.in===Y$.HttpApiKeyAuthLocation.QUERY)n.query[o.name]=r.apiKey;else if(o.in===Y$.HttpApiKeyAuthLocation.HEADER)n.headers[o.name]=o.scheme?`${o.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+o.in+"`");return n}}});var z6,eO,F6=v(()=>{z6=w(Ze()),eO=class{static{i(this,"HttpBearerAuthSigner")}async sign(t,r,o){let n=z6.HttpRequest.clone(t);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return n.headers.Authorization=`Bearer ${r.token}`,n}}});var Kr,U6=v(()=>{Kr=class{static{i(this,"NoAuthSigner")}async sign(t,r,o){return t}}});var j6=v(()=>{L6();F6();U6()});var B6,V6,tO,jE,rO,H6=v(()=>{B6=i(e=>i(function(r){return jE(r)&&r.expiration.getTime()-Date.now()<e},"isIdentityExpired"),"createIsIdentityExpiredFunction"),V6=3e5,tO=B6(V6),jE=i(e=>e.expiration!==void 0,"doesIdentityRequireRefresh"),rO=i((e,t,r)=>{if(e===void 0)return;let o=typeof e!="function"?async()=>Promise.resolve(e):e,n,s,a,c=!1,u=i(async l=>{s||(s=o(l));try{n=await s,a=!0,c=!1}finally{s=void 0}return n},"coalesceProvider");return t===void 0?async l=>((!a||l?.forceRefresh)&&(n=await u(l)),n):async l=>((!a||l?.forceRefresh)&&(n=await u(l)),c?n:r(n)?(t(n)&&await u(l),n):(c=!0,n))},"memoizeIdentityProvider")});var G6=v(()=>{k6();j6();H6()});var Ea={};We(Ea,{DefaultIdentityProviderConfig:()=>Ln,EXPIRATION_MS:()=>V6,HttpApiKeyAuthSigner:()=>Q$,HttpBearerAuthSigner:()=>eO,NoAuthSigner:()=>Kr,createIsIdentityExpiredFunction:()=>B6,createPaginator:()=>aj,doesIdentityRequireRefresh:()=>jE,getHttpAuthSchemeEndpointRuleSetPlugin:()=>Fo,getHttpAuthSchemePlugin:()=>qhe,getHttpSigningPlugin:()=>Uo,getSmithyContext:()=>Bhe,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>X4,httpAuthSchemeMiddleware:()=>$p,httpAuthSchemeMiddlewareOptions:()=>Y4,httpSigningMiddleware:()=>kR,httpSigningMiddlewareOptions:()=>nj,isIdentityExpired:()=>tO,memoizeIdentityProvider:()=>rO,normalizeProvider:()=>Li,requestBuilder:()=>W$,setFeature:()=>gSe});var Ut=v(()=>{G4();ej();ij();sj();cj();D6();N6();G6()});var $r=z(Jo=>{"use strict";var iO=zo(),sO=class e{static{i(this,"BinaryDecisionDiagram")}nodes;root;conditions;results;constructor(t,r,o,n){this.nodes=t,this.root=r,this.conditions=o,this.results=n}static from(t,r,o,n){return new e(t,r,o,n)}},aO=class{static{i(this,"EndpointCache")}capacity;data=new Map;parameters=[];constructor({size:t,params:r}){this.capacity=t??50,r&&(this.parameters=r)}get(t,r){let o=this.hash(t);if(o===!1)return r();if(!this.data.has(o)){if(this.data.size>this.capacity+10){let n=this.data.keys(),s=0;for(;;){let{value:a,done:c}=n.next();if(this.data.delete(a),c||++s>10)break}}this.data.set(o,r())}return this.data.get(o)}size(){return this.data.size}hash(t){let r="",{parameters:o}=this;if(o.length===0)return!1;for(let n of o){let s=String(t[n]??"");if(s.includes("|;"))return!1;r+=s+"|;"}return r}},jt=class extends Error{static{i(this,"EndpointError")}constructor(t){super(t),this.name="EndpointError"}},Wp="endpoints";function Fi(e){return typeof e!="object"||e==null?e:"ref"in e?`$${Fi(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(Fi).join(", ")})`:JSON.stringify(e,null,2)}i(Fi,"toDebugString");var q6={},hSe=i((e,t)=>e===t,"booleanEquals");function ySe(...e){for(let t of e)if(t!=null)return t}i(ySe,"coalesce");var ESe=i(e=>{let t=e.split("."),r=[];for(let o of t){let n=o.indexOf("[");if(n!==-1){if(o.indexOf("]")!==o.length-1)throw new jt(`Path: '${e}' does not end with ']'`);let s=o.slice(n+1,-1);if(Number.isNaN(parseInt(s)))throw new jt(`Invalid array index: '${s}' in path: '${e}'`);n!==0&&r.push(o.slice(0,n)),r.push(s)}else r.push(o)}return r},"getAttrPathList"),W6=i((e,t)=>ESe(t).reduce((r,o)=>{if(typeof r!="object")throw new jt(`Index '${o}' in '${t}' not found in '${JSON.stringify(e)}'`);if(Array.isArray(r)){let n=parseInt(o);return r[n<0?r.length+n:n]}return r[o]},e),"getAttr"),SSe=i(e=>e!=null,"isSet"),_Se=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),cO=i((e,t=!1)=>{if(!t)return _Se.test(e);let r=e.split(".");for(let o of r)if(!cO(o))return!1;return!0},"isValidHostLabel");function vSe(e,t,r){return e?t:r}i(vSe,"ite");var xSe=i(e=>!e,"not"),bSe=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),Z6=i(e=>bSe.test(e)||e.startsWith("[")&&e.endsWith("]"),"isIpAddress"),nO={[iO.EndpointURLScheme.HTTP]:80,[iO.EndpointURLScheme.HTTPS]:443},PSe=i(e=>{let t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){let{hostname:y,port:m,protocol:_="",path:b="",query:A={}}=e,I=new URL(`${_}//${y}${m?`:${m}`:""}${b}`);return I.search=Object.entries(A).map(([R,j])=>`${R}=${j}`).join("&"),I}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;let r=t.href,{host:o,hostname:n,pathname:s,protocol:a,search:c}=t;if(c)return null;let u=a.slice(0,-1);if(!Object.values(iO.EndpointURLScheme).includes(u))return null;let l=Z6(n),p=r.includes(`${o}:${nO[u]}`)||typeof e=="string"&&e.includes(`${o}:${nO[u]}`),f=`${o}${p?`:${nO[u]}`:""}`;return{scheme:u,authority:f,path:s,normalizedPath:s.endsWith("/")?s:`${s}/`,isIp:l}},"parseURL");function CSe(e,t,r){if(r===1)return[e];if(e==="")return[""];let o=e.split(t);return r===0?o:o.slice(0,r-1).concat(o.slice(1).join(t))}i(CSe,"split");var ASe=i((e,t)=>e===t,"stringEquals"),TSe=i((e,t,r,o)=>e==null||t>=r||e.length<r||/[^\u0000-\u007f]/.test(e)?null:o?e.substring(e.length-r,e.length-t):e.substring(t,r),"substring"),ISe=i(e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),"uriEncode"),wSe={booleanEquals:hSe,coalesce:ySe,getAttr:W6,isSet:SSe,isValidHostLabel:cO,ite:vSe,not:xSe,parseURL:PSe,split:CSe,stringEquals:ASe,substring:TSe,uriEncode:ISe},K6=i((e,t)=>{let r=[],{referenceRecord:o,endpointParams:n}=t,s=0;for(;s<e.length;){let a=e.indexOf("{",s);if(a===-1){r.push(e.slice(s));break}r.push(e.slice(s,a));let c=e.indexOf("}",a);if(c===-1){r.push(e.slice(a));break}e[a+1]==="{"&&e[c+1]==="}"&&(r.push(e.slice(a+1,c)),s=c+2);let u=e.substring(a+1,c);if(u.includes("#")){let[l,p]=u.split("#");r.push(W6(o[l]??n[l],p))}else r.push(o[u]??n[u]);s=c+1}return r.join("")},"evaluateTemplate"),RSe=i(({ref:e},t)=>t.referenceRecord[e]??t.endpointParams[e],"getReferenceValue"),Zp=i((e,t,r)=>{if(typeof e=="string")return K6(e,r);if(e.fn)return J6.callFunction(e,r);if(e.ref)return RSe(e,r);throw new jt(`'${t}': ${String(e)} is not a string, function or reference.`)},"evaluateExpression"),X6=i(({fn:e,argv:t},r)=>{let o=Array(t.length);for(let a=0;a<o.length;++a){let c=t[a];typeof c=="boolean"||typeof c=="number"?o[a]=c:o[a]=J6.evaluateExpression(c,"arg",r)}let n=e.indexOf(".");if(n!==-1){let c=q6[e.slice(0,n)]?.[e.slice(n+1)];if(typeof c=="function")return c(...o)}let s=wSe[e];if(typeof s=="function")return s(...o);throw new Error(`function ${e} not loaded in endpointFunctions.`)},"callFunction"),J6={evaluateExpression:Zp,callFunction:X6},Y6=i((e,t)=>{let{assign:r}=e;if(r&&r in t.referenceRecord)throw new jt(`'${r}' is already defined in Reference Record.`);let o=X6(e,t);t.logger?.debug?.(`${Wp} evaluateCondition: ${Fi(e)} = ${Fi(o)}`);let n=o===""?!0:!!o;return r!=null?{result:n,toAssign:{name:r,value:o}}:{result:n}},"evaluateCondition"),Q6=i((e,t)=>Object.entries(e??{}).reduce((r,[o,n])=>(r[o]=n.map(s=>{let a=Zp(s,"Header value entry",t);if(typeof a!="string")throw new jt(`Header '${o}' value '${a}' is not a string`);return a}),r),{}),"getEndpointHeaders"),uO=i((e,t)=>Object.entries(e).reduce((r,[o,n])=>(r[o]=tV.getEndpointProperty(n,t),r),{}),"getEndpointProperties"),eV=i((e,t)=>{if(Array.isArray(e))return e.map(r=>eV(r,t));switch(typeof e){case"string":return K6(e,t);case"object":if(e===null)throw new jt(`Unexpected endpoint property: ${e}`);return tV.getEndpointProperties(e,t);case"boolean":return e;default:throw new jt(`Unexpected endpoint property type: ${typeof e}`)}},"getEndpointProperty"),tV={getEndpointProperty:eV,getEndpointProperties:uO},rV=i((e,t)=>{let r=Zp(e,"Endpoint URL",t);if(typeof r=="string")try{return new URL(r)}catch(o){throw console.error(`Failed to construct URL with ${r}`,o),o}throw new jt(`Endpoint URL must be a string, got ${typeof r}`)},"getEndpointUrl"),oO=1e8,$Se=i((e,t)=>{let{nodes:r,root:o,results:n,conditions:s}=e,a=o,c={},u={referenceRecord:c,endpointParams:t.endpointParams,logger:t.logger};for(;a!==1&&a!==-1&&a<oO;){let l=3*(Math.abs(a)-1),[p,f,y]=[r[l],r[l+1],r[l+2]],[m,_,b]=s[p],A=Y6({fn:m,assign:b,argv:_},u);if(A.toAssign){let{name:I,value:R}=A.toAssign;c[I]=R}a=a>=0===A.result?f:y}if(a>=oO){let l=n[a-oO];if(l[0]===-1){let[,m]=l;throw new jt(Zp(m,"Error",u))}let[p,f,y]=l;return{url:rV(p,u),properties:uO(f,u),headers:Q6(y??{},u)}}throw new jt("No matching endpoint.")},"decideEndpoint"),lO=i((e=[],t)=>{let r={},o={...t,referenceRecord:{...t.referenceRecord}},n=!1;for(let s of e){let{result:a,toAssign:c}=Y6(s,o);if(!a)return{result:a};c&&(n=!0,r[c.name]=c.value,o.referenceRecord[c.name]=c.value,t.logger?.debug?.(`${Wp} assign: ${c.name} := ${Fi(c.value)}`))}return n?{result:!0,referenceRecord:r}:{result:!0}},"evaluateConditions"),OSe=i((e,t)=>{let{conditions:r,endpoint:o}=e,{result:n,referenceRecord:s}=lO(r,t);if(!n)return;let a=s?{...t,referenceRecord:{...t.referenceRecord,...s}}:t,{url:c,properties:u,headers:l}=o;t.logger?.debug?.(`${Wp} Resolving endpoint from template: ${Fi(o)}`);let p={url:rV(c,a)};return l!=null&&(p.headers=Q6(l,a)),u!=null&&(p.properties=uO(u,a)),p},"evaluateEndpointRule"),DSe=i((e,t)=>{let{conditions:r,error:o}=e,{result:n,referenceRecord:s}=lO(r,t);if(!n)return;let a=s?{...t,referenceRecord:{...t.referenceRecord,...s}}:t;throw new jt(Zp(o,"Error",a))},"evaluateErrorRule"),nV=i((e,t)=>{for(let r of e)if(r.type==="endpoint"){let o=OSe(r,t);if(o)return o}else if(r.type==="error")DSe(r,t);else if(r.type==="tree"){let o=oV.evaluateTreeRule(r,t);if(o)return o}else throw new jt(`Unknown endpoint rule: ${r}`);throw new jt("Rules evaluation failed")},"evaluateRules"),NSe=i((e,t)=>{let{conditions:r,rules:o}=e,{result:n,referenceRecord:s}=lO(r,t);if(!n)return;let a=s?{...t,referenceRecord:{...t.referenceRecord,...s}}:t;return oV.evaluateRules(o,a)},"evaluateTreeRule"),oV={evaluateRules:nV,evaluateTreeRule:NSe},kSe=i((e,t)=>{let{endpointParams:r,logger:o}=t,{parameters:n,rules:s}=e;t.logger?.debug?.(`${Wp} Initial EndpointParams: ${Fi(r)}`);for(let c in n){let u=n[c],l=r[c];if(l==null&&u.default!=null){r[c]=u.default;continue}if(u.required&&l==null)throw new jt(`Missing required parameter: '${c}'`)}let a=nV(s,{endpointParams:r,logger:o,referenceRecord:{}});return t.logger?.debug?.(`${Wp} Resolved endpoint: ${Fi(a)}`),a},"resolveEndpoint");Jo.BinaryDecisionDiagram=sO;Jo.EndpointCache=aO;Jo.EndpointError=jt;Jo.customEndpointFunctions=q6;Jo.decideEndpoint=$Se;Jo.isIpAddress=Z6;Jo.isValidHostLabel=cO;Jo.resolveEndpoint=kSe});var uu=z(zn=>{"use strict";var cu=$r(),MSe=gn(),sV=i((e,t=!1)=>{if(t){for(let r of e.split("."))if(!sV(r))return!1;return!0}return!(!cu.isValidHostLabel(e)||e.length<3||e.length>63||e!==e.toLowerCase()||cu.isIpAddress(e))},"isVirtualHostableS3Bucket"),iV=":",LSe="/",zSe=i(e=>{let t=e.split(iV);if(t.length<6)return null;let[r,o,n,s,a,...c]=t;if(r!=="arn"||o===""||n===""||c.join(iV)==="")return null;let u=c.map(l=>l.split(LSe)).flat();return{partition:o,service:n,region:s,accountId:a,resourceId:u}},"parseArn"),FSe=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],USe="1.1",aV={partitions:FSe,version:USe},cV=aV,uV="",lV=i(e=>{let{partitions:t}=cV;for(let o of t){let{regions:n,outputs:s}=o;for(let[a,c]of Object.entries(n))if(a===e)return{...s,...c}}for(let o of t){let{regionRegex:n,outputs:s}=o;if(new RegExp(n).test(e))return{...s}}let r=t.find(o=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},"partition"),dV=i((e,t="")=>{cV=e,uV=t},"setPartitionInfo"),jSe=i(()=>{dV(aV,"")},"useDefaultPartitionInfo"),BSe=i(()=>uV,"getUserAgentPrefix"),pV={isVirtualHostableS3Bucket:sV,parseArn:zSe,partition:lV};cu.customEndpointFunctions.aws=pV;var VSe=i(e=>{if(typeof e.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:t}=e;return t===void 0&&(e.endpoint=async()=>fV(e.endpointProvider({Region:typeof e.region=="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint=="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint=="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:void 0},{logger:e.logger}))),e},"resolveDefaultAwsRegionalEndpointsConfig"),fV=i(e=>MSe.parseUrl(e.url),"toEndpointV1");zn.EndpointError=cu.EndpointError;zn.isIpAddress=cu.isIpAddress;zn.resolveEndpoint=cu.resolveEndpoint;zn.awsEndpointFunctions=pV;zn.getUserAgentPrefix=BSe;zn.partition=lV;zn.resolveDefaultAwsRegionalEndpointsConfig=VSe;zn.setPartitionInfo=dV;zn.toEndpointV1=fV;zn.useDefaultPartitionInfo=jSe});var BE,co,mV=v(()=>{BE={warningEmitted:!1},co=i(e=>{e&&!BE.warningEmitted&&parseInt(e.substring(1,e.indexOf(".")))<20&&(BE.warningEmitted=!0,process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will
19
+ no longer support Node.js ${e} in January 2026.
20
+
21
+ To continue receiving updates to AWS services, bug fixes, and security
22
+ updates please upgrade to a supported Node.js LTS version.
23
+
24
+ More information can be found at: https://a.co/c895JFp`))},"emitWarningIfUnsupportedVersion")});var HSe,GSe,dO,gV=v(()=>{HSe=i(()=>(e,t)=>async r=>(t.__retryLongPoll=!0,e(r)),"longPollMiddleware"),GSe={name:"longPollMiddleware",tags:["RETRY"],step:"initialize",override:!0},dO=i(e=>({applyToStack:i(t=>{t.add(HSe(),GSe)},"applyToStack")}),"getLongPollPlugin")});function Ui(e,t,r){return e.$source||(e.$source={}),e.$source[t]=r,e}var hV=v(()=>{i(Ui,"setCredentialFeature")});var fO=z(Yo=>{"use strict";var qSe=["AuthFailure","InvalidSignatureException","RequestExpired","RequestInTheFuture","RequestTimeTooSkewed","SignatureDoesNotMatch"],WSe=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],ZSe=["TimeoutError","RequestTimeout","RequestTimeoutException"],KSe=[500,502,503,504],XSe=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],JSe=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],yV=i(e=>e?.$retryable!==void 0,"isRetryableByTrait"),YSe=i(e=>qSe.includes(e.name),"isClockSkewError"),EV=i(e=>e.$metadata?.clockSkewCorrected,"isClockSkewCorrectedError"),SV=i(e=>{let t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},"isBrowserNetworkError"),QSe=i(e=>e.$metadata?.httpStatusCode===429||WSe.includes(e.name)||e.$retryable?.throttling==!0,"isThrottlingError"),pO=i((e,t=0)=>yV(e)||EV(e)||e.name==="InvalidSignatureException"&&e.message?.includes("Signature expired")||ZSe.includes(e.name)||XSe.includes(e?.code||"")||JSe.includes(e?.code||"")||KSe.includes(e.$metadata?.httpStatusCode||0)||SV(e)||_V(e)||e.cause!==void 0&&t<=10&&pO(e.cause,t+1),"isTransientError"),e_e=i(e=>{if(e.$metadata?.httpStatusCode!==void 0){let t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!pO(e)}return!1},"isServerError");function _V(e){return e.code==="ERR_HTTP2_STREAM_ERROR"&&e.message.includes("NGHTTP2_REFUSED_STREAM")}i(_V,"isNodeJsHttp2TransientError");Yo.isBrowserNetworkError=SV;Yo.isClockSkewCorrectedError=EV;Yo.isClockSkewError=YSe;Yo.isNodeJsHttp2TransientError=_V;Yo.isRetryableByTrait=yV;Yo.isServerError=e_e;Yo.isThrottlingError=QSe;Yo.isTransientError=pO});var uo=z(ft=>{"use strict";var t_e=fO();ft.RETRY_MODES=void 0;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(ft.RETRY_MODES||(ft.RETRY_MODES={}));var HE=3,r_e=ft.RETRY_MODES.STANDARD,GE=class e{static{i(this,"DefaultRateLimiter")}static setTimeoutFn=setTimeout;beta;minCapacity;minFillRate;scaleConstant;smooth;enabled=!1;availableTokens=0;lastMaxRate=0;measuredTxRate=0;requestCount=0;fillRate;lastThrottleTime;lastTimestamp=0;lastTxRateBucket;maxCapacity;timeWindow=0;constructor(t){this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8,this.lastThrottleTime=this.getCurrentTimeInSeconds(),this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}async getSendToken(){return this.acquireTokenBucket(1)}updateClientSendingRate(t){let r;this.updateMeasuredRate();let o=t;if(o?.errorType==="THROTTLING"||t_e.isThrottlingError(o?.error??t)){let a=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=a,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),r=this.cubicThrottle(a),this.enableTokenBucket()}else this.calculateTimeWindow(),r=this.cubicSuccess(this.getCurrentTimeInSeconds());let s=Math.min(r,2*this.measuredTxRate);this.updateTokenBucketRate(s)}getCurrentTimeInSeconds(){return Date.now()/1e3}async acquireTokenBucket(t){if(this.enabled){for(this.refillTokenBucket();t>this.availableTokens;){let r=(t-this.availableTokens)/this.fillRate*1e3;await new Promise(o=>e.setTimeoutFn(o,r)),this.refillTokenBucket()}this.availableTokens=this.availableTokens-t}}refillTokenBucket(){let t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}let r=(t-this.lastTimestamp)*this.fillRate;this.availableTokens=Math.min(this.maxCapacity,this.availableTokens+r),this.lastTimestamp=t}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.availableTokens=Math.min(this.availableTokens,this.maxCapacity)}updateMeasuredRate(){let t=this.getCurrentTimeInSeconds(),r=Math.floor(t*2)/2;if(this.requestCount++,r>this.lastTxRateBucket){let o=this.requestCount/(r-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(o*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=r}}getPrecise(t){return parseFloat(t.toFixed(8))}},n_e=100,EO=20*1e3,o_e=500,mO=500,i_e=5,s_e=10,vV=1,a_e="amz-sdk-invocation-id",c_e="amz-sdk-request",Xr=class e{static{i(this,"Retry")}static v2026=typeof process<"u"&&process.env?.SMITHY_NEW_RETRIES_2026==="true";static delay(){return e.v2026?50:100}static throttlingDelay(){return e.v2026?1e3:500}static cost(){return e.v2026?14:5}static throttlingCost(){return e.v2026?5:10}static modifiedCostType(){return e.v2026?"THROTTLING":"TRANSIENT"}},gO=class{static{i(this,"DefaultRetryBackoffStrategy")}x=Xr.delay();computeNextBackoffDelay(t){let n=Math.random()*Math.min(this.x*2**t,EO);return Math.floor(n)}setDelayBase(t){this.x=t}},qE=class{static{i(this,"DefaultRetryToken")}delay;count;cost;longPoll;constructor(t,r,o,n){this.delay=t,this.count=r,this.cost=o,this.longPoll=n}getRetryCount(){return this.count}getRetryDelay(){return Math.min(EO,this.delay)}getRetryCost(){return this.cost}isLongPoll(){return this.longPoll}},VE={incompatible:1,attempts:2,capacity:3},lu=class{static{i(this,"StandardRetryStrategy")}mode=ft.RETRY_MODES.STANDARD;capacity=mO;retryBackoffStrategy;maxAttemptsProvider;baseDelay;constructor(t){typeof t=="number"?this.maxAttemptsProvider=async()=>t:typeof t=="function"?this.maxAttemptsProvider=t:t&&typeof t=="object"&&(this.maxAttemptsProvider=async()=>t.maxAttempts,this.baseDelay=t.baseDelay,this.retryBackoffStrategy=t.backoff),this.maxAttemptsProvider??=async()=>HE,this.baseDelay??=Xr.delay(),this.retryBackoffStrategy??=new gO}async acquireInitialRetryToken(t){return new qE(Xr.delay(),0,void 0,Xr.v2026&&t.includes(":longpoll"))}async refreshRetryTokenForRetry(t,r){let o=await this.getMaxAttempts(),n=this.retryCode(t,r,o),s=n===0,a=t.isLongPoll?.();if(s||a){let c=r.errorType;this.retryBackoffStrategy.setDelayBase(c==="THROTTLING"?Xr.throttlingDelay():this.baseDelay);let u=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),l=u;if(r.retryAfterHint instanceof Date&&(l=Math.max(u,Math.min(r.retryAfterHint.getTime()-Date.now(),u+5e3))),s){let p=this.getCapacityCost(c);return this.capacity-=p,new qE(l,t.getRetryCount()+1,p,t.isLongPoll?.()??!1)}else throw Object.assign(new Error("No retry token available"),{$backoff:Xr.v2026&&n===VE.capacity&&a?l:0})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.min(mO,this.capacity+(t.getRetryCost()??vV))}getCapacity(){return this.capacity}async maxAttempts(){return this.maxAttemptsProvider()}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${HE}`),HE}}retryCode(t,r,o){let n=t.getRetryCount()+1,s=this.isRetryableError(r.errorType)?0:VE.incompatible,a=n<o?0:VE.attempts,c=this.capacity>=this.getCapacityCost(r.errorType)?0:VE.capacity;return s||a||c}getCapacityCost(t){return t===Xr.modifiedCostType()?Xr.throttlingCost():Xr.cost()}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}},hO=class{static{i(this,"AdaptiveRetryStrategy")}mode=ft.RETRY_MODES.ADAPTIVE;rateLimiter;standardRetryStrategy;constructor(t,r){let{rateLimiter:o}=r??{};this.rateLimiter=o??new GE,this.standardRetryStrategy=r?new lu({maxAttempts:typeof t=="number"?t:3,...r}):new lu(t)}async acquireInitialRetryToken(t){let r=this.standardRetryStrategy.acquireInitialRetryToken(t);return await this.rateLimiter.getSendToken(),r}async refreshRetryTokenForRetry(t,r){this.rateLimiter.updateClientSendingRate(r);let o=this.standardRetryStrategy.refreshRetryTokenForRetry(t,r);return await this.rateLimiter.getSendToken(),o}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}async maxAttemptsProvider(){return this.standardRetryStrategy.maxAttempts()}},yO=class extends lu{static{i(this,"ConfiguredRetryStrategy")}computeNextBackoffDelay;constructor(t,r=Xr.delay()){super(typeof t=="function"?t:async()=>t),typeof r=="number"?this.computeNextBackoffDelay=()=>r:this.computeNextBackoffDelay=r}async refreshRetryTokenForRetry(t,r){let o=await super.refreshRetryTokenForRetry(t,r);return o.getRetryDelay=()=>this.computeNextBackoffDelay(o.getRetryCount()),o}};ft.AdaptiveRetryStrategy=hO;ft.ConfiguredRetryStrategy=yO;ft.DEFAULT_MAX_ATTEMPTS=HE;ft.DEFAULT_RETRY_DELAY_BASE=n_e;ft.DEFAULT_RETRY_MODE=r_e;ft.DefaultRateLimiter=GE;ft.INITIAL_RETRY_TOKENS=mO;ft.INVOCATION_ID_HEADER=a_e;ft.MAXIMUM_RETRY_DELAY=EO;ft.NO_RETRY_INCREMENT=vV;ft.REQUEST_HEADER=c_e;ft.RETRY_COST=i_e;ft.Retry=Xr;ft.StandardRetryStrategy=lu;ft.THROTTLING_RETRY_DELAY_BASE=o_e;ft.TIMEOUT_RETRY_COST=s_e});function bV(e,t,r){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=r}var xV,PV=v(()=>{xV=w(uo());xV.Retry.v2026||=typeof process=="object"&&process.env?.AWS_NEW_RETRIES_2026==="true";i(bV,"setFeature")});function CV(e,t,r){return e.$source||(e.$source={}),e.$source[t]=r,e}var AV=v(()=>{i(CV,"setTokenFeature")});var yn={};We(yn,{emitWarningIfUnsupportedVersion:()=>co,getLongPollPlugin:()=>dO,setCredentialFeature:()=>Ui,setFeature:()=>bV,setTokenFeature:()=>CV,state:()=>BE});var Rt=v(()=>{mV();gV();hV();PV();AV()});var ji=z(du=>{"use strict";var u_e=(Ut(),pe(Ea)),l_e=uu(),d_e=Ze(),Qo=(Rt(),pe(yn)),TV=uo(),$V=void 0;function p_e(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}i(p_e,"isValidUserAgentAppId");function f_e(e){let t=u_e.normalizeProvider(e.userAgentAppId??$V),{customUserAgent:r}=e;return Object.assign(e,{customUserAgent:typeof r=="string"?[[r]]:r,userAgentAppId:i(async()=>{let o=await t();if(!p_e(o)){let n=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof o!="string"?n?.warn("userAgentAppId must be a string or undefined."):o.length>50&&n?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return o},"userAgentAppId")})}i(f_e,"resolveUserAgentConfig");var m_e=/\d{12}\.ddb/;async function g_e(e,t,r){if(r.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Qo.setFeature(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){let s=await t.retryStrategy();if(typeof s.mode=="string")switch(s.mode){case TV.RETRY_MODES.ADAPTIVE:Qo.setFeature(e,"RETRY_MODE_ADAPTIVE","F");break;case TV.RETRY_MODES.STANDARD:Qo.setFeature(e,"RETRY_MODE_STANDARD","E");break}}if(typeof t.accountIdEndpointMode=="function"){let s=e.endpointV2;switch(String(s?.url?.hostname).match(m_e)&&Qo.setFeature(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":Qo.setFeature(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Qo.setFeature(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Qo.setFeature(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}let n=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(n?.$source){let s=n;s.accountId&&Qo.setFeature(e,"RESOLVED_ACCOUNT_ID","T");for(let[a,c]of Object.entries(s.$source??{}))Qo.setFeature(e,a,c)}}i(g_e,"checkFeatures");var IV="user-agent",SO="x-amz-user-agent",wV=" ",_O="/",h_e=/[^!$%&'*+\-.^_`|~\w]/g,y_e=/[^!$%&'*+\-.^_`|~\w#]/g,RV="-",E_e=1024;function S_e(e){let t="";for(let r in e){let o=e[r];if(t.length+o.length+1<=E_e){t.length?t+=","+o:t+=o;continue}break}return t}i(S_e,"encodeFeatures");var OV=i(e=>(t,r)=>async o=>{let{request:n}=o;if(!d_e.HttpRequest.isInstance(n))return t(o);let{headers:s}=n,a=r?.userAgent?.map(WE)||[],c=(await e.defaultUserAgentProvider()).map(WE);await g_e(r,e,o);let u=r;c.push(`m/${S_e(Object.assign({},r.__smithy_context?.features,u.__aws_sdk_context?.features))}`);let l=e?.customUserAgent?.map(WE)||[],p=await e.userAgentAppId();p&&c.push(WE(["app",`${p}`]));let f=l_e.getUserAgentPrefix(),y=(f?[f]:[]).concat([...c,...a,...l]).join(wV),m=[...c.filter(_=>_.startsWith("aws-sdk-")),...l].join(wV);return e.runtime!=="browser"?(m&&(s[SO]=s[SO]?`${s[IV]} ${m}`:m),s[IV]=y):s[SO]=y,t({...o,request:n})},"userAgentMiddleware"),WE=i(e=>{let t=e[0].split(_O).map(a=>a.replace(h_e,RV)).join(_O),r=e[1]?.replace(y_e,RV),o=t.indexOf(_O),n=t.substring(0,o),s=t.substring(o+1);return n==="api"&&(s=s.toLowerCase()),[n,s,r].filter(a=>a&&a.length>0).reduce((a,c,u)=>{switch(u){case 0:return c;case 1:return`${a}/${c}`;default:return`${a}#${c}`}},"")},"escapeUserAgent"),DV={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},__e=i(e=>({applyToStack:i(t=>{t.add(OV(e),DV)},"applyToStack")}),"getUserAgentPlugin");du.DEFAULT_UA_APP_ID=$V;du.getUserAgentMiddlewareOptions=DV;du.getUserAgentPlugin=__e;du.resolveUserAgentConfig=f_e;du.userAgentMiddleware=OV});var ZE=z(pu=>{"use strict";var v_e=i((e,t,r)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}},"booleanSelector"),x_e=i((e,t,r)=>{if(!(t in e))return;let o=parseInt(e[t],10);if(Number.isNaN(o))throw new TypeError(`Cannot load ${r} '${t}'. Expected number, got '${e[t]}'.`);return o},"numberSelector");pu.SelectorType=void 0;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(pu.SelectorType||(pu.SelectorType={}));pu.booleanSelector=v_e;pu.numberSelector=x_e});var or=z($t=>{"use strict";var nr=ZE(),KE=Ft(),b_e=$r(),vO="AWS_USE_DUALSTACK_ENDPOINT",xO="use_dualstack_endpoint",P_e=!1,C_e={environmentVariableSelector:i(e=>nr.booleanSelector(e,vO,nr.SelectorType.ENV),"environmentVariableSelector"),configFileSelector:i(e=>nr.booleanSelector(e,xO,nr.SelectorType.CONFIG),"configFileSelector"),default:!1},A_e={environmentVariableSelector:i(e=>nr.booleanSelector(e,vO,nr.SelectorType.ENV),"environmentVariableSelector"),configFileSelector:i(e=>nr.booleanSelector(e,xO,nr.SelectorType.CONFIG),"configFileSelector"),default:void 0},bO="AWS_USE_FIPS_ENDPOINT",PO="use_fips_endpoint",T_e=!1,I_e={environmentVariableSelector:i(e=>nr.booleanSelector(e,bO,nr.SelectorType.ENV),"environmentVariableSelector"),configFileSelector:i(e=>nr.booleanSelector(e,PO,nr.SelectorType.CONFIG),"configFileSelector"),default:!1},w_e={environmentVariableSelector:i(e=>nr.booleanSelector(e,bO,nr.SelectorType.ENV),"environmentVariableSelector"),configFileSelector:i(e=>nr.booleanSelector(e,PO,nr.SelectorType.CONFIG),"configFileSelector"),default:void 0},R_e=i(e=>{let{tls:t,endpoint:r,urlParser:o,useDualstackEndpoint:n}=e;return Object.assign(e,{tls:t??!0,endpoint:KE.normalizeProvider(typeof r=="string"?o(r):r),isCustomEndpoint:!0,useDualstackEndpoint:KE.normalizeProvider(n??!1)})},"resolveCustomEndpointsConfig"),$_e=i(async e=>{let{tls:t=!0}=e,r=await e.region();if(!new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/).test(r))throw new Error("Invalid region in client config");let n=await e.useDualstackEndpoint(),s=await e.useFipsEndpoint(),{hostname:a}=await e.regionInfoProvider(r,{useDualstackEndpoint:n,useFipsEndpoint:s})??{};if(!a)throw new Error("Cannot resolve hostname from client config");return e.urlParser(`${t?"https:":"http:"}//${a}`)},"getEndpointFromRegion"),O_e=i(e=>{let t=KE.normalizeProvider(e.useDualstackEndpoint??!1),{endpoint:r,useFipsEndpoint:o,urlParser:n,tls:s}=e;return Object.assign(e,{tls:s??!0,endpoint:r?KE.normalizeProvider(typeof r=="string"?n(r):r):()=>$_e({...e,useDualstackEndpoint:t,useFipsEndpoint:o}),isCustomEndpoint:!!r,useDualstackEndpoint:t})},"resolveEndpointsConfig"),MV="AWS_REGION",LV="region",D_e={environmentVariableSelector:i(e=>e[MV],"environmentVariableSelector"),configFileSelector:i(e=>e[LV],"configFileSelector"),default:i(()=>{throw new Error("Region is missing")},"default")},N_e={preferredFile:"credentials"},NV=new Set,k_e=i((e,t=b_e.isValidHostLabel)=>{if(!NV.has(e)&&!t(e))if(e==="*")console.warn('@smithy/config-resolver WARN - Please use the caller region instead of "*". See "sigv4a" in https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md.');else throw new Error(`Region not accepted: region="${e}" is not a valid hostname component.`);else NV.add(e)},"checkRegion"),zV=i(e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),"isFipsRegion"),M_e=i(e=>zV(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,"getRealRegion"),L_e=i(e=>{let{region:t,useFipsEndpoint:r}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:i(async()=>{let o=typeof t=="function"?await t():t,n=M_e(o);return k_e(n),n},"region"),useFipsEndpoint:i(async()=>{let o=typeof t=="string"?t:await t();return zV(o)?!0:typeof r!="function"?Promise.resolve(!!r):r()},"useFipsEndpoint")})},"resolveRegionConfig"),kV=i((e=[],{useFipsEndpoint:t,useDualstackEndpoint:r})=>e.find(({tags:o})=>t===o.includes("fips")&&r===o.includes("dualstack"))?.hostname,"getHostnameFromVariants"),z_e=i((e,{regionHostname:t,partitionHostname:r})=>t||(r?r.replace("{region}",e):void 0),"getResolvedHostname"),F_e=i((e,{partitionHash:t})=>Object.keys(t||{}).find(r=>t[r].regions.includes(e))??"aws","getResolvedPartition"),U_e=i((e,{signingRegion:t,regionRegex:r,useFipsEndpoint:o})=>{if(t)return t;if(o){let n=r.replace("\\\\","\\").replace(/^\^/g,"\\.").replace(/\$$/g,"\\."),s=e.match(n);if(s)return s[0].slice(1,-1)}},"getResolvedSigningRegion"),j_e=i((e,{useFipsEndpoint:t=!1,useDualstackEndpoint:r=!1,signingService:o,regionHash:n,partitionHash:s})=>{let a=F_e(e,{partitionHash:s}),c=e in n?e:s[a]?.endpoint??e,u={useFipsEndpoint:t,useDualstackEndpoint:r},l=kV(n[c]?.variants,u),p=kV(s[a]?.variants,u),f=z_e(c,{regionHostname:l,partitionHostname:p});if(f===void 0)throw new Error(`Endpoint resolution failed for: ${{resolvedRegion:c,useFipsEndpoint:t,useDualstackEndpoint:r}}`);let y=U_e(f,{signingRegion:n[c]?.signingRegion,regionRegex:s[a].regionRegex,useFipsEndpoint:t});return{partition:a,signingService:o,hostname:f,...y&&{signingRegion:y},...n[c]?.signingService&&{signingService:n[c].signingService}}},"getRegionInfo");$t.CONFIG_USE_DUALSTACK_ENDPOINT=xO;$t.CONFIG_USE_FIPS_ENDPOINT=PO;$t.DEFAULT_USE_DUALSTACK_ENDPOINT=P_e;$t.DEFAULT_USE_FIPS_ENDPOINT=T_e;$t.ENV_USE_DUALSTACK_ENDPOINT=vO;$t.ENV_USE_FIPS_ENDPOINT=bO;$t.NODE_REGION_CONFIG_FILE_OPTIONS=N_e;$t.NODE_REGION_CONFIG_OPTIONS=D_e;$t.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS=C_e;$t.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS=I_e;$t.REGION_ENV_NAME=MV;$t.REGION_INI_NAME=LV;$t.getRegionInfo=j_e;$t.nodeDualstackConfigSelectors=A_e;$t.nodeFipsConfigSelectors=w_e;$t.resolveCustomEndpointsConfig=R_e;$t.resolveEndpointsConfig=O_e;$t.resolveRegionConfig=L_e});var Xp=z(Fn=>{var CO;(function(e){e.HEADER="header",e.QUERY="query"})(CO||(CO={}));var AO;(function(e){e.HEADER="header",e.QUERY="query"})(AO||(AO={}));var TO;(function(e){e.HTTP="http",e.HTTPS="https"})(TO||(TO={}));var Kp;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Kp||(Kp={}));var B_e=i(e=>{let t=[];return e.sha256!==void 0&&t.push({algorithmId:i(()=>Kp.SHA256,"algorithmId"),checksumConstructor:i(()=>e.sha256,"checksumConstructor")}),e.md5!=null&&t.push({algorithmId:i(()=>Kp.MD5,"algorithmId"),checksumConstructor:i(()=>e.md5,"checksumConstructor")}),{addChecksumAlgorithm(r){t.push(r)},checksumAlgorithms(){return t}}},"getChecksumConfiguration"),V_e=i(e=>{let t={};return e.checksumAlgorithms().forEach(r=>{t[r.algorithmId()]=r.checksumConstructor()}),t},"resolveChecksumRuntimeConfig"),H_e=i(e=>B_e(e),"getDefaultClientConfiguration"),G_e=i(e=>V_e(e),"resolveDefaultRuntimeConfig"),IO;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(IO||(IO={}));var q_e="__smithy_context",wO;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(wO||(wO={}));var RO;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(RO||(RO={}));Fn.AlgorithmId=Kp;Fn.EndpointURLScheme=TO;Fn.FieldPosition=IO;Fn.HttpApiKeyAuthLocation=AO;Fn.HttpAuthLocation=CO;Fn.IniSectionType=wO;Fn.RequestHandlerProtocol=RO;Fn.SMITHY_CONTEXT_KEY=q_e;Fn.getDefaultClientConfiguration=H_e;Fn.resolveDefaultRuntimeConfig=G_e});var $O,Jr,FV=v(()=>{$O=w(Xp()),Jr=i(e=>e[$O.SMITHY_CONTEXT_KEY]||(e[$O.SMITHY_CONTEXT_KEY]={}),"getSmithyContext")});function W_e(e){return Object.keys(e).reduce((t,r)=>{let o=e[r];return{...t,[r]:Array.isArray(o)?[...o]:o}},{})}var En,UV=v(()=>{En=class e{static{i(this,"HttpRequest")}method;protocol;hostname;port;path;query;headers;username;password;fragment;body;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 clone(t){let r=new e({...t,headers:{...t.headers}});return r.query&&(r.query=W_e(r.query)),r}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(){return e.clone(this)}};i(W_e,"cloneQuery")});var Sa,jV=v(()=>{Sa=class{static{i(this,"HttpResponse")}statusCode;reason;headers;body;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"}}});var Jp,BV=v(()=>{Jp=i(e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t},"normalizeProvider")});function VV(e){let t={};if(e=e.replace(/^\?/,""),e)for(let r of e.split("&")){let[o,n=null]=r.split("=");o=decodeURIComponent(o),n&&(n=decodeURIComponent(n)),o in t?Array.isArray(t[o])?t[o].push(n):t[o]=[t[o],n]:t[o]=n}return t}var HV=v(()=>{i(VV,"parseQueryString")});var XE,GV=v(()=>{HV();XE=i(e=>{if(typeof e=="string")return XE(new URL(e));let{hostname:t,pathname:r,port:o,protocol:n,search:s}=e,a;return s&&(a=VV(s)),{hostname:t,port:o?parseInt(o):void 0,protocol:n,path:r,query:a}},"parseUrl")});var Un,qV=v(()=>{GV();Un=i(e=>{if(typeof e=="object"){if("url"in e){let t=XE(e.url);if(e.headers){t.headers={};for(let r in e.headers)t.headers[r.toLowerCase()]=e.headers[r].join(", ")}return t}return e}return XE(e)},"toEndpointV1")});var Yr=v(()=>{FV();UV();jV();BV();qV()});var WV,ZV=v(()=>{WV=i((e,t)=>{if(!t||t.length===0)return e;let r=[];for(let o of t)for(let n of e)n.schemeId.split("#")[1]===o&&r.push(n);for(let o of e)r.find(({schemeId:n})=>n===o.schemeId)||r.push(o);return r},"resolveAuthOptions")});function Z_e(e){let t=new Map;for(let r of e)t.set(r.schemeId,r);return t}var _a,JE=v(()=>{Yr();ZV();i(Z_e,"convertHttpAuthSchemesToMap");_a=i((e,t)=>(r,o)=>async n=>{let s=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,o,n.input)),a=e.authSchemePreference?await e.authSchemePreference():[],c=WV(s,a),u=Z_e(e.httpAuthSchemes),l=Jr(o),p=[];for(let f of c){let y=u.get(f.schemeId);if(!y){p.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}let m=y.identityProvider(await t.identityProviderConfigProvider(e));if(!m){p.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}let{identityProperties:_={},signingProperties:b={}}=f.propertiesExtractor?.(e,o)||{};f.identityProperties=Object.assign(f.identityProperties||{},_),f.signingProperties=Object.assign(f.signingProperties||{},b),l.selectedHttpAuthScheme={httpAuthOption:f,identity:await m(f.identityProperties),signer:y.signer};break}if(!l.selectedHttpAuthScheme)throw new Error(p.join(`
25
+ `));return r(n)},"httpAuthSchemeMiddleware")});var YE,OO,KV=v(()=>{JE();YE={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},OO=i((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:i(o=>{o.addRelativeTo(_a(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),YE)},"applyToStack")}),"getHttpAuthSchemeEndpointRuleSetPlugin")});var QE,DO,XV=v(()=>{JE();QE={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"serializerMiddleware"},DO=i((e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r})=>({applyToStack:i(o=>{o.addRelativeTo(_a(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:r}),QE)},"applyToStack")}),"getHttpAuthSchemePlugin")});var JV=v(()=>{JE();KV();XV()});var eS,NO=v(()=>{eS=i(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var jn,Bi,Vi=v(()=>{NO();jn=i((e,t=0,r=e.byteLength-t)=>{if(!eS(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Buffer.from(e,t,r)},"fromArrayBuffer"),Bi=i((e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Buffer.from(e,t):Buffer.from(e)},"fromString")});var K_e,kO,YV=v(()=>{Vi();K_e=/^[A-Za-z0-9+/]*={0,2}$/,kO=i(e=>{if(e.length*3%4!==0)throw new TypeError("Incorrect padding on base64 string.");if(!K_e.exec(e))throw new TypeError("Invalid base64 string.");let t=Bi(e,"base64");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)},"fromBase64")});var va,tS=v(()=>{Vi();va=i(e=>{let t=Bi(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8")});var Yp,MO=v(()=>{Vi();tS();Yp=i(e=>{let t;if(typeof e=="string"?t=va(e):t=e,typeof t!="object"||typeof t.byteOffset!="number"||typeof t.byteLength!="number")throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");return jn(t.buffer,t.byteOffset,t.byteLength).toString("base64")},"toBase64")});function QV(e,t,r,o){return class rS extends Uint8Array{static{i(this,"Uint8ArrayBlobAdapter")}static fromString(s,a="utf-8"){if(typeof s=="string")return a==="base64"?rS.mutate(o(s)):rS.mutate(t(s));throw new Error(`Unsupported conversion from ${typeof s} to Uint8ArrayBlobAdapter.`)}static mutate(s){return Object.setPrototypeOf(s,rS.prototype),s}transformToString(s="utf-8"){return s==="base64"?r(this):e(this)}}}var e3=v(()=>{i(QV,"bindUint8ArrayBlobAdapter")});var LO,t3=v(()=>{Vi();LO=i(e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return jn(e.buffer,e.byteOffset,e.byteLength).toString("utf8")},"toUtf8")});function r3(e){return typeof crypto<"u"&&typeof crypto.randomUUID=="function"?()=>crypto.randomUUID():()=>{let t=new Uint8Array(16);return e(t),t[6]=t[6]&15|64,t[8]=t[8]&63|128,ir[t[0]]+ir[t[1]]+ir[t[2]]+ir[t[3]]+"-"+ir[t[4]]+ir[t[5]]+"-"+ir[t[6]]+ir[t[7]]+"-"+ir[t[8]]+ir[t[9]]+"-"+ir[t[10]]+ir[t[11]]+ir[t[12]]+ir[t[13]]+ir[t[14]]+ir[t[15]]}}var ir,n3=v(()=>{ir=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));i(r3,"bindV4")});var o3,i3=v(()=>{o3=i((e,t,r=o=>o)=>e,"copyDocumentWithTransform")});var s3,a3,fu,X_e,Qp,mu,c3,nS,oS,iS,zO,J_e,u3,FO,l3,d3,ef,p3,aS,Y_e,hu,cS,f3,m3,g3,h3,UO,y3,E3,Hi,uS,sS,gu,jO=v(()=>{s3=i(e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},"parseBoolean"),a3=i(e=>{if(e!=null){if(typeof e=="number"){if((e===0||e===1)&&gu.warn(sS(`Expected boolean, got ${typeof e}: ${e}`)),e===0)return!1;if(e===1)return!0}if(typeof e=="string"){let t=e.toLowerCase();if((t==="false"||t==="true")&&gu.warn(sS(`Expected boolean, got ${typeof e}: ${e}`)),t==="false")return!1;if(t==="true")return!0}if(typeof e=="boolean")return e;throw new TypeError(`Expected boolean, got ${typeof e}: ${e}`)}},"expectBoolean"),fu=i(e=>{if(e!=null){if(typeof e=="string"){let t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&gu.warn(sS(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},"expectNumber"),X_e=Math.ceil(2**127*(2-2**-23)),Qp=i(e=>{let t=fu(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>X_e)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},"expectFloat32"),mu=i(e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},"expectLong"),c3=mu,nS=i(e=>zO(e,32),"expectInt32"),oS=i(e=>zO(e,16),"expectShort"),iS=i(e=>zO(e,8),"expectByte"),zO=i((e,t)=>{let r=mu(e);if(r!==void 0&&J_e(r,t)!==r)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return r},"expectSizedInt"),J_e=i((e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},"castInt"),u3=i((e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e},"expectNonNull"),FO=i(e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;let t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},"expectObject"),l3=i(e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return gu.warn(sS(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},"expectString"),d3=i(e=>{if(e==null)return;let t=FO(e),r=[];for(let o in t)t[o]!=null&&r.push(o);if(r.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(r.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${r} were not null.`);return t},"expectUnion"),ef=i(e=>fu(typeof e=="string"?hu(e):e),"strictParseDouble"),p3=ef,aS=i(e=>Qp(typeof e=="string"?hu(e):e),"strictParseFloat32"),Y_e=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,hu=i(e=>{let t=e.match(Y_e);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},"parseNumber"),cS=i(e=>typeof e=="string"?h3(e):fu(e),"limitedParseDouble"),f3=cS,m3=cS,g3=i(e=>typeof e=="string"?h3(e):Qp(e),"limitedParseFloat32"),h3=i(e=>{switch(e){case"NaN":return NaN;case"Infinity":return 1/0;case"-Infinity":return-1/0;default:throw new Error(`Unable to parse float value: ${e}`)}},"parseFloatString"),UO=i(e=>mu(typeof e=="string"?hu(e):e),"strictParseLong"),y3=UO,E3=i(e=>nS(typeof e=="string"?hu(e):e),"strictParseInt32"),Hi=i(e=>oS(typeof e=="string"?hu(e):e),"strictParseShort"),uS=i(e=>iS(typeof e=="string"?hu(e):e),"strictParseByte"),sS=i(e=>String(new TypeError(e).stack||e).split(`
26
+ `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
27
+ `),"stackTraceWarning"),gu={warn:console.warn}});function S3(e){let t=e.getUTCFullYear(),r=e.getUTCMonth(),o=e.getUTCDay(),n=e.getUTCDate(),s=e.getUTCHours(),a=e.getUTCMinutes(),c=e.getUTCSeconds(),u=n<10?`0${n}`:`${n}`,l=s<10?`0${s}`:`${s}`,p=a<10?`0${a}`:`${a}`,f=c<10?`0${c}`:`${c}`;return`${Q_e[o]}, ${u} ${VO[r]} ${t} ${l}:${p}:${f} GMT`}var Q_e,VO,eve,_3,tve,v3,rve,nve,ove,x3,b3,tf,ive,sve,ave,BO,cve,uve,lve,lo,dve,pve,yu,P3=v(()=>{jO();Q_e=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],VO=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];i(S3,"dateToUtcString");eve=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/),_3=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=eve.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,o,n,s,a,c,u,l]=t,p=Hi(yu(o)),f=lo(n,"month",1,12),y=lo(s,"day",1,31);return tf(p,f,y,{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l})},"parseRfc3339DateTime"),tve=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}:\d{2})|[zZ])$/),v3=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");let t=tve.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");let[r,o,n,s,a,c,u,l,p]=t,f=Hi(yu(o)),y=lo(n,"month",1,12),m=lo(s,"day",1,31),_=tf(f,y,m,{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l});return p.toUpperCase()!="Z"&&_.setTime(_.getTime()-pve(p)),_},"parseRfc3339DateTimeWithOffset"),rve=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),nve=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),ove=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),x3=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=rve.exec(e);if(t){let[r,o,n,s,a,c,u,l]=t;return tf(Hi(yu(s)),BO(n),lo(o,"day",1,31),{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l})}if(t=nve.exec(e),t){let[r,o,n,s,a,c,u,l]=t;return ave(tf(ive(s),BO(n),lo(o,"day",1,31),{hours:a,minutes:c,seconds:u,fractionalMilliseconds:l}))}if(t=ove.exec(e),t){let[r,o,n,s,a,c,u,l]=t;return tf(Hi(yu(l)),BO(o),lo(n.trimLeft(),"day",1,31),{hours:s,minutes:a,seconds:c,fractionalMilliseconds:u})}throw new TypeError("Invalid RFC-7231 date-time value")},"parseRfc7231DateTime"),b3=i(e=>{if(e==null)return;let t;if(typeof e=="number")t=e;else if(typeof e=="string")t=ef(e);else if(typeof e=="object"&&e.tag===1)t=e.value;else throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation");if(Number.isNaN(t)||t===1/0||t===-1/0)throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics");return new Date(Math.round(t*1e3))},"parseEpochTimestamp"),tf=i((e,t,r,o)=>{let n=t-1;return uve(e,n,r),new Date(Date.UTC(e,n,r,lo(o.hours,"hour",0,23),lo(o.minutes,"minute",0,59),lo(o.seconds,"seconds",0,60),dve(o.fractionalMilliseconds)))},"buildDate"),ive=i(e=>{let t=new Date().getUTCFullYear(),r=Math.floor(t/100)*100+Hi(yu(e));return r<t?r+100:r},"parseTwoDigitYear"),sve=50*365*24*60*60*1e3,ave=i(e=>e.getTime()-new Date().getTime()>sve?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,"adjustRfc850Year"),BO=i(e=>{let t=VO.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},"parseMonthByShortName"),cve=[31,28,31,30,31,30,31,31,30,31,30,31],uve=i((e,t,r)=>{let o=cve[t];if(t===1&&lve(e)&&(o=29),r>o)throw new TypeError(`Invalid day for ${VO[t]} in ${e}: ${r}`)},"validateDayOfMonth"),lve=i(e=>e%4===0&&(e%100!==0||e%400===0),"isLeapYear"),lo=i((e,t,r,o)=>{let n=uS(yu(e));if(n<r||n>o)throw new TypeError(`${t} must be between ${r} and ${o}, inclusive`);return n},"parseDateValue"),dve=i(e=>e==null?0:aS("0."+e)*1e3,"parseMilliseconds"),pve=i(e=>{let t=e[0],r=1;if(t=="+")r=1;else if(t=="-")r=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);let o=Number(e.substring(1,3)),n=Number(e.substring(4,6));return r*(o*60+n)*60*1e3},"parseOffsetToMilliseconds"),yu=i(e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)},"stripLeadingZeroes")});var Gi,C3=v(()=>{Gi=i(function(t){return Object.assign(new String(t),{deserializeJSON(){return JSON.parse(String(t))},toString(){return String(t)},toJSON(){return String(t)}})},"LazyJsonString");Gi.from=e=>e&&typeof e=="object"&&(e instanceof Gi||"deserializeJSON"in e)?e:typeof e=="string"||Object.getPrototypeOf(e)===String.prototype?Gi(String(e)):Gi(JSON.stringify(e));Gi.fromObject=Gi.from});function A3(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}var T3=v(()=>{i(A3,"quoteHeader")});function ei(e,t,r){let o=Number(e);if(o<t||o>r)throw new Error(`Value ${o} out of range [${t}, ${r}]`)}var HO,GO,qO,I3,w3,fve,mve,gve,hve,yve,R3,$3,O3,D3=v(()=>{HO="(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)(?:[ne|u?r]?s?day)?",GO="(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)",qO="(\\d?\\d):(\\d{2}):(\\d{2})(?:\\.(\\d+))?",I3="(\\d?\\d)",w3="(\\d{4})",fve=new RegExp(/^(\d{4})-(\d\d)-(\d\d)[tT](\d\d):(\d\d):(\d\d)(\.(\d+))?(([-+]\d\d:\d\d)|[zZ])$/),mve=new RegExp(`^${HO}, ${I3} ${GO} ${w3} ${qO} GMT$`),gve=new RegExp(`^${HO}, ${I3}-${GO}-(\\d\\d) ${qO} GMT$`),hve=new RegExp(`^${HO} ${GO} ( [1-9]|\\d\\d) ${qO} ${w3}$`),yve=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],R3=i(e=>{if(e==null)return;let t=NaN;if(typeof e=="number")t=e;else if(typeof e=="string"){if(!/^-?\d*\.?\d+$/.test(e))throw new TypeError("parseEpochTimestamp - numeric string invalid.");t=Number.parseFloat(e)}else typeof e=="object"&&e.tag===1&&(t=e.value);if(isNaN(t)||Math.abs(t)===1/0)throw new TypeError("Epoch timestamps must be valid finite numbers.");return new Date(Math.round(t*1e3))},"_parseEpochTimestamp"),$3=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC3339 timestamps must be strings");let t=fve.exec(e);if(!t)throw new TypeError(`Invalid RFC3339 timestamp format ${e}`);let[,r,o,n,s,a,c,,u,l]=t;ei(o,1,12),ei(n,1,31),ei(s,0,23),ei(a,0,59),ei(c,0,60);let p=new Date(Date.UTC(Number(r),Number(o)-1,Number(n),Number(s),Number(a),Number(c),Number(u)?Math.round(parseFloat(`0.${u}`)*1e3):0));if(p.setUTCFullYear(Number(r)),l.toUpperCase()!="Z"){let[,f,y,m]=/([+-])(\d\d):(\d\d)/.exec(l)||[void 0,"+",0,0],_=f==="-"?1:-1;p.setTime(p.getTime()+_*(Number(y)*60*60*1e3+Number(m)*60*1e3))}return p},"_parseRfc3339DateTimeWithOffset"),O3=i(e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC7231 timestamps must be strings.");let t,r,o,n,s,a,c,u;if((u=mve.exec(e))?[,t,r,o,n,s,a,c]=u:(u=gve.exec(e))?([,t,r,o,n,s,a,c]=u,o=(Number(o)+1900).toString()):(u=hve.exec(e))&&([,r,t,n,s,a,c,o]=u),o&&a){let l=Date.UTC(Number(o),yve.indexOf(r),Number(t),Number(n),Number(s),Number(a),c?Math.round(parseFloat(`0.${c}`)*1e3):0);ei(t,1,31),ei(n,0,23),ei(s,0,59),ei(a,0,60);let p=new Date(l);return p.setUTCFullYear(Number(o)),p}throw new TypeError(`Invalid RFC7231 date-time value ${e}.`)},"_parseRfc7231DateTime");i(ei,"range")});function N3(e,t,r){if(r<=0||!Number.isInteger(r))throw new Error("Invalid number of delimiters ("+r+") for splitEvery.");let o=e.split(t);if(r===1)return o;let n=[],s="";for(let a=0;a<o.length;a++)s===""?s=o[a]:s+=t+o[a],(a+1)%r===0&&(n.push(s),s="");return s!==""&&n.push(s),n}var k3=v(()=>{i(N3,"splitEvery")});var M3,L3=v(()=>{M3=i(e=>{let t=e.length,r=[],o=!1,n,s=0;for(let a=0;a<t;++a){let c=e[a];switch(c){case'"':n!=="\\"&&(o=!o);break;case",":o||(r.push(e.slice(s,a)),s=a+1);break;default:}n=c}return r.push(e.slice(s)),r.map(a=>{a=a.trim();let c=a.length;return c<2?a:(a[0]==='"'&&a[c-1]==='"'&&(a=a.slice(1,c-1)),a.replace(/\\"/g,'"'))})},"splitHeader")});function F3(e){return new rf(String(e),"bigDecimal")}var z3,rf,U3=v(()=>{z3=/^-?((0|[1-9]\d*)(\.\d+)?|\.\d+)([eE][+-]?\d+)?$/,rf=class e{static{i(this,"NumericValue")}string;type;constructor(t,r){if(this.string=t,this.type=r,!z3.test(t))throw new Error(`@smithy/core/serde - NumericValue string must conform to the Smithy bigDecimal format. Received: "${t}"`)}toString(){return this.string}static[Symbol.hasInstance](t){if(!t||typeof t!="object")return!1;let r=t;return e.prototype.isPrototypeOf(t)||r.type==="bigDecimal"&&z3.test(r.string)}};i(F3,"nv")});function B3(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2){let o=e.slice(r,r+2).toLowerCase();if(o in WO)t[r/2]=WO[o];else throw new Error(`Cannot decode unrecognized sequence ${o} as hexadecimal`)}return t}function lS(e){let t="";for(let r=0;r<e.byteLength;r++)t+=j3[e[r]];return t}var j3,WO,ZO=v(()=>{j3={},WO={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),j3[e]=t,WO[t]=e}i(B3,"fromHex");i(lS,"toHex")});var Eu,V3,H3=v(()=>{Eu=require("node:fs"),V3=i(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.byteLength(e);if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(e instanceof Eu.ReadStream){if(e.path!=null)return(0,Eu.lstatSync)(e.path).size;if(typeof e.fd=="number")return(0,Eu.fstatSync)(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength")});var dS,KO=v(()=>{tS();dS=i(e=>e instanceof Uint8Array?e:typeof e=="string"?va(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array")});function qi(e,t){if(t===void 0){t=0;for(let n of e)t+=n.byteLength}let r=new Uint8Array(t),o=0;for(let n of e)r.set(n,o),o+=n.byteLength;return r}var nf=v(()=>{i(qi,"concatBytes")});var pS,XO,JO=v(()=>{Yr();pS=i((e,t)=>(r,o)=>async n=>{let{response:s}=await r(n);try{let a=await t(s,e);return{response:s,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in a)){let c="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{a.message+=`
28
+ `+c}catch{!o.logger||o.logger?.constructor?.name==="NoOpLogger"?console.warn(c):o.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(Sa.isInstance(s)){let{headers:u={}}=s,l=Object.entries(u);a.$metadata={httpStatusCode:s.statusCode,requestId:XO(/^x-[\w-]+-request-?id$/,l),extendedRequestId:XO(/^x-[\w-]+-id-2$/,l),cfId:XO(/^x-[\w-]+-cf-id$/,l)}}}catch{}}throw a}},"deserializerMiddleware"),XO=i((e,t)=>(t.find(([r])=>r.match(e))||[void 0,void 0])[1],"findHeader")});var Su,YO=v(()=>{Su=class e extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(t,r=!0){let o,n=!0;typeof r=="boolean"?(o=void 0,n=r):r!=null&&typeof r=="object"&&(o=r.logger,n=r.tryNextLink??!0),super(t),this.tryNextLink=n,Object.setPrototypeOf(this,e.prototype),o?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${t}`)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}}});var _u,QO=v(()=>{YO();_u=class e extends Su{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(t,r=!0){super(t,r),Object.setPrototypeOf(this,e.prototype)}}});var G3,q3=v(()=>{YO();G3=i((...e)=>async()=>{if(e.length===0)throw new Su("No providers in chain");let t;for(let r of e)try{return await r()}catch(o){if(t=o,o?.tryNextLink)continue;throw o}throw t},"chain")});var W3,Z3=v(()=>{W3=i(e=>()=>Promise.resolve(e),"fromValue")});var K3,X3=v(()=>{K3=i((e,t,r)=>{let o,n,s,a=!1,c=i(async()=>{n||(n=e());try{o=await n,s=!0,a=!1}finally{n=void 0}return o},"coalesceProvider");return t===void 0?async u=>((!s||u?.forceRefresh)&&(o=await c()),o):async u=>((!s||u?.forceRefresh)&&(o=await c()),a?o:r&&!r(o)?(a=!0,o):(t(o)&&await c(),o))},"memoize")});var fS,J3=v(()=>{fS=i((e,t,r)=>{if(t in e){if(e[t]==="true")return!0;if(e[t]==="false")return!1;throw new Error(`Cannot load ${r} "${t}". Expected "true" or "false", got ${e[t]}.`)}},"booleanSelector")});var vu,Y3=v(()=>{(function(e){e.ENV="env",e.CONFIG="shared config entry"})(vu||(vu={}))});var Q3,eH,eD,Eve,xu,mS=v(()=>{Q3=require("node:os"),eH=require("node:path"),eD={},Eve=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),xu=i(()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:o=`C:${eH.sep}`}=process.env;if(e)return e;if(t)return t;if(r)return`${o}${r}`;let n=Eve();return eD[n]||(eD[n]=(0,Q3.homedir)()),eD[n]},"getHomeDir")});var Sve,_ve,tH,rH=v(()=>{Sve="AWS_PROFILE",_ve="default",tH=i(e=>e.profile||process.env[Sve]||_ve,"getProfileName")});var tD,nH,oH=v(()=>{tD=w(Xp()),nH=i(e=>Object.entries(e).filter(([t])=>{let r=t.indexOf(".");return r===-1?!1:Object.values(tD.IniSectionType).includes(t.substring(0,r))}).reduce((t,[r,o])=>{let n=r.indexOf("."),s=r.substring(0,n)===tD.IniSectionType.PROFILE?r.substring(n+1):r;return t[s]=o,t},{...e.default&&{default:e.default}}),"getConfigData")});var iH,vve,sH,aH=v(()=>{iH=require("node:path");mS();vve="AWS_CONFIG_FILE",sH=i(()=>process.env[vve]||(0,iH.join)(xu(),".aws","config"),"getConfigFilepath")});var cH,xve,uH,lH=v(()=>{cH=require("node:path");mS();xve="AWS_SHARED_CREDENTIALS_FILE",uH=i(()=>process.env[xve]||(0,cH.join)(xu(),".aws","credentials"),"getCredentialsFilepath")});var dH,bve,Pve,rD,pH=v(()=>{dH=w(Xp()),bve=/^([\w-]+)\s(["'])?([\w-@+.%:/]+)\2$/,Pve=["__proto__","profile __proto__"],rD=i(e=>{let t={},r,o;for(let n of e.split(/\r?\n/)){let s=n.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,o=void 0;let c=s.substring(1,s.length-1),u=bve.exec(c);if(u){let[,l,,p]=u;Object.values(dH.IniSectionType).includes(l)&&(r=[l,p].join("."))}else r=c;if(Pve.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=s.indexOf("=");if(![0,-1].includes(c)){let[u,l]=[s.substring(0,c).trim(),s.substring(c+1).trim()];if(l==="")o=u;else{o&&n.trimStart()===n&&(o=void 0),t[r]=t[r]||{};let p=o?[o,u].join("."):u;t[r][p]=l}}}}return t},"parseIni")});var mH,nD,fH,oD,gH=v(()=>{mH=require("node:fs/promises"),nD={},fH={},oD=i((e,t)=>fH[e]!==void 0?fH[e]:((!nD[e]||t?.ignoreCache)&&(nD[e]=(0,mH.readFile)(e,"utf8")),nD[e]),"readFile")});var iD,hH,yH,EH=v(()=>{iD=require("node:path");oH();aH();lH();mS();pH();gH();hH=i(()=>({}),"swallowError"),yH=i(async(e={})=>{let{filepath:t=uH(),configFilepath:r=sH()}=e,o=xu(),n="~/",s=t;t.startsWith(n)&&(s=(0,iD.join)(o,t.slice(2)));let a=r;r.startsWith(n)&&(a=(0,iD.join)(o,r.slice(2)));let c=await Promise.all([oD(a,{ignoreCache:e.ignoreCache}).then(rD).then(nH).catch(hH),oD(s,{ignoreCache:e.ignoreCache}).then(rD).catch(hH)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles")});function gS(e){try{let t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return t.delete("CONFIG"),t.delete("CONFIG_PREFIX_SEPARATOR"),t.delete("ENV"),[...t].join(", ")}catch{return e}}var sD=v(()=>{i(gS,"getSelectorName")});var SH,_H=v(()=>{QO();sD();SH=i((e,t)=>async()=>{try{let r=e(process.env,t);if(r===void 0)throw new Error;return r}catch(r){throw new _u(r.message||`Not found in ENV: ${gS(e.toString())}`,{logger:t?.logger})}},"fromEnv")});var vH,xH=v(()=>{QO();rH();EH();sD();vH=i((e,{preferredFile:t="config",...r}={})=>async()=>{let o=tH(r),{configFile:n,credentialsFile:s}=await yH(r),a=s[o]||{},c=n[o]||{},u=t==="config"?{...a,...c}:{...c,...a};try{let p=e(u,t==="config"?n:s);if(p===void 0)throw new Error;return p}catch(l){throw new _u(l.message||`Not found in config files w/ profile [${o}]: ${gS(e.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles")});var Cve,bH,PH=v(()=>{Z3();Cve=i(e=>typeof e=="function","isFunction"),bH=i(e=>Cve(e)?async()=>await e():W3(e),"fromStatic")});var hS,CH=v(()=>{q3();X3();_H();xH();PH();hS=i(({environmentVariableSelector:e,configFileSelector:t,default:r},o={})=>{let{signingName:n,logger:s}=o;return K3(G3(SH(e,{signingName:n,logger:s}),vH(t,o),bH(r)))},"loadConfig")});var bu,aD=v(()=>{bu=i(e=>typeof e=="function"?e():e,"deref")});var Pu,yS=v(()=>{Pu=i((e,t,r,o,n)=>({name:t,namespace:e,traits:r,input:o,output:n}),"operation")});var AH,cD,TH=v(()=>{Yr();yS();AH=i(e=>(t,r)=>async o=>{let{response:n}=await t(o),{operationSchema:s}=Jr(r),[,a,c,u,l,p]=s??[];try{let f=await e.protocol.deserializeResponse(Pu(a,c,u,l,p),{...e,...r},n);return{response:n,output:f}}catch(f){if(Object.defineProperty(f,"$response",{value:n,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in f)){let y="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{f.message+=`
29
+ `+y}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(y):r.logger?.warn?.(y)}typeof f.$responseBodyText<"u"&&f.$response&&(f.$response.body=f.$responseBodyText);try{if(Sa.isInstance(n)){let{headers:m={},statusCode:_}=n,b=Object.entries(m);f.$metadata={httpStatusCode:_,requestId:cD(/^x-[\w-]+-request-?id$/,b),extendedRequestId:cD(/^x-[\w-]+-id-2$/,b),cfId:cD(/^x-[\w-]+-cf-id$/,b)}}}catch{}}throw f}},"schemaDeserializationMiddleware"),cD=i((e,t)=>(t.find(([r])=>r.match(e))||[void 0,void 0])[1],"findHeader")});var IH,wH=v(()=>{Yr();yS();IH=i(e=>(t,r)=>async o=>{let{operationSchema:n}=Jr(r),[,s,a,c,u,l]=n??[],p=r.endpointV2?async()=>Un(r.endpointV2):e.endpoint,f=await e.protocol.serializeRequest(Pu(s,a,c,u,l),o.input,{...e,...r,endpoint:p});return t({...o,request:f})},"schemaSerializationMiddleware")});function RH(e){return{applyToStack:i(t=>{t.add(IH(e),lD),t.add(AH(e),uD),e.protocol.setSerdeContext(e)},"applyToStack")}}var uD,lD,$H=v(()=>{TH();wH();uD={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},lD={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(RH,"getSchemaSerdePlugin")});var Et,Wi=v(()=>{Et=class{static{i(this,"Schema")}name;namespace;traits;static assign(t,r){return Object.assign(t,r)}static[Symbol.hasInstance](t){let r=this.prototype.isPrototypeOf(t);return!r&&typeof t=="object"&&t!==null?t.symbol===this.symbol:r}getName(){return this.namespace+"#"+this.name}}});var sf,OH,DH=v(()=>{Wi();sf=class e extends Et{static{i(this,"ListSchema")}static symbol=Symbol.for("@smithy/lis");name;traits;valueSchema;symbol=e.symbol},OH=i((e,t,r,o)=>Et.assign(new sf,{name:t,namespace:e,traits:r,valueSchema:o}),"list")});var af,NH,kH=v(()=>{Wi();af=class e extends Et{static{i(this,"MapSchema")}static symbol=Symbol.for("@smithy/map");name;traits;keySchema;valueSchema;symbol=e.symbol},NH=i((e,t,r,o,n)=>Et.assign(new af,{name:t,namespace:e,traits:r,keySchema:o,valueSchema:n}),"map")});var cf,MH,LH=v(()=>{Wi();cf=class e extends Et{static{i(this,"OperationSchema")}static symbol=Symbol.for("@smithy/ope");name;traits;input;output;symbol=e.symbol},MH=i((e,t,r,o,n)=>Et.assign(new cf,{name:t,namespace:e,traits:r,input:o,output:n}),"op")});var xa,zH,dD=v(()=>{Wi();xa=class e extends Et{static{i(this,"StructureSchema")}static symbol=Symbol.for("@smithy/str");name;traits;memberNames;memberList;symbol=e.symbol},zH=i((e,t,r,o,n)=>Et.assign(new xa,{name:t,namespace:e,traits:r,memberNames:o,memberList:n}),"struct")});var uf,FH,UH=v(()=>{Wi();dD();uf=class e extends xa{static{i(this,"ErrorSchema")}static symbol=Symbol.for("@smithy/err");ctor;symbol=e.symbol},FH=i((e,t,r,o,n,s)=>Et.assign(new uf,{name:t,namespace:e,traits:r,memberNames:o,memberList:n,ctor:null}),"error")});function ba(e){if(typeof e=="object")return e;if(e=e|0,lf[e])return lf[e];let t={},r=0;for(let o of["httpLabel","idempotent","idempotencyToken","sensitive","httpPayload","httpResponseCode","httpQueryParams"])(e>>r++&1)===1&&(t[o]=1);return lf[e]=t}var lf,pD=v(()=>{lf=[];i(ba,"translateTraits")});function pf(e,t){if(e instanceof Cu)return Object.assign(e,{memberName:t,_isMemberSchema:!0});let r=Cu;return new r(e,t)}var df,ff,mf,Cu,fD,mD,jH=v(()=>{aD();pD();df={it:Symbol.for("@smithy/nor-struct-it"),ns:Symbol.for("@smithy/ns")},ff=[],mf={},Cu=class e{static{i(this,"NormalizedSchema")}ref;memberName;static symbol=Symbol.for("@smithy/nor");symbol=e.symbol;name;schema;_isMemberSchema;traits;memberTraits;normalizedTraits;constructor(t,r){this.ref=t,this.memberName=r;let o=[],n=t,s=t;for(this._isMemberSchema=!1;fD(n);)o.push(n[1]),n=n[0],s=bu(n),this._isMemberSchema=!0;if(o.length>0){this.memberTraits={};for(let a=o.length-1;a>=0;--a){let c=o[a];Object.assign(this.memberTraits,ba(c))}}else this.memberTraits=0;if(s instanceof e){let a=this.memberTraits;Object.assign(this,s),this.memberTraits=Object.assign({},a,s.getMemberTraits(),this.getMemberTraits()),this.normalizedTraits=void 0,this.memberName=r??s.memberName;return}if(this.schema=bu(s),mD(this.schema)?(this.name=`${this.schema[1]}#${this.schema[2]}`,this.traits=this.schema[3]):(this.name=this.memberName??String(s),this.traits=0),this._isMemberSchema&&!r)throw new Error(`@smithy/core/schema - NormalizedSchema member init ${this.getName(!0)} missing member name.`)}static[Symbol.hasInstance](t){let r=this.prototype.isPrototypeOf(t);return!r&&typeof t=="object"&&t!==null?t.symbol===this.symbol:r}static of(t){let r=typeof t=="function"||typeof t=="object"&&t!==null;if(typeof t=="number"){if(ff[t])return ff[t]}else if(typeof t=="string"){if(mf[t])return mf[t]}else if(r&&t[df.ns])return t[df.ns];let o=bu(t);if(o instanceof e)return o;if(fD(o)){let[s,a]=o;if(s instanceof e)return Object.assign(s.getMergedTraits(),ba(a)),s;throw new Error(`@smithy/core/schema - may not init unwrapped member schema=${JSON.stringify(t,null,2)}.`)}let n=new e(o);return r?t[df.ns]=n:typeof o=="string"?mf[o]=n:typeof o=="number"?ff[o]=n:n}getSchema(){let t=this.schema;return Array.isArray(t)&&t[0]===0?t[4]:t}getName(t=!1){let{name:r}=this;return!t&&r&&r.includes("#")?r.split("#")[1]:r||void 0}getMemberName(){return this.memberName}isMemberSchema(){return this._isMemberSchema}isListSchema(){let t=this.getSchema();return typeof t=="number"?t>=64&&t<128:t[0]===1}isMapSchema(){let t=this.getSchema();return typeof t=="number"?t>=128&&t<=255:t[0]===2}isStructSchema(){let t=this.getSchema();if(typeof t!="object")return!1;let r=t[0];return r===3||r===-3||r===4}isUnionSchema(){let t=this.getSchema();return typeof t!="object"?!1:t[0]===4}isBlobSchema(){let t=this.getSchema();return t===21||t===42}isTimestampSchema(){let t=this.getSchema();return typeof t=="number"&&t>=4&&t<=7}isUnitSchema(){return this.getSchema()==="unit"}isDocumentSchema(){return this.getSchema()===15}isStringSchema(){return this.getSchema()===0}isBooleanSchema(){return this.getSchema()===2}isNumericSchema(){return this.getSchema()===1}isBigIntegerSchema(){return this.getSchema()===17}isBigDecimalSchema(){return this.getSchema()===19}isStreaming(){let{streaming:t}=this.getMergedTraits();return!!t||this.getSchema()===42}isIdempotencyToken(){return!!this.getMergedTraits().idempotencyToken}getMergedTraits(){return this.normalizedTraits??(this.normalizedTraits={...this.getOwnTraits(),...this.getMemberTraits()})}getMemberTraits(){return ba(this.memberTraits)}getOwnTraits(){return ba(this.traits)}getKeySchema(){let[t,r]=[this.isDocumentSchema(),this.isMapSchema()];if(!t&&!r)throw new Error(`@smithy/core/schema - cannot get key for non-map: ${this.getName(!0)}`);let o=this.getSchema(),n=t?15:o[4]??0;return pf([n,0],"key")}getValueSchema(){let t=this.getSchema(),[r,o,n]=[this.isDocumentSchema(),this.isMapSchema(),this.isListSchema()],s=typeof t=="number"?63&t:t&&typeof t=="object"&&(o||n)?t[3+t[0]]:r?15:void 0;if(s!=null)return pf([s,0],o?"value":"member");throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no value member.`)}getMemberSchema(t){let r=this.getSchema();if(this.isStructSchema()&&r[4].includes(t)){let o=r[4].indexOf(t),n=r[5][o];return pf(fD(n)?n:[n,0],t)}if(this.isDocumentSchema())return pf([15,0],t);throw new Error(`@smithy/core/schema - ${this.getName(!0)} has no member=${t}.`)}getMemberSchemas(){let t={};try{for(let[r,o]of this.structIterator())t[r]=o}catch{}return t}getEventStreamMember(){if(this.isStructSchema()){for(let[t,r]of this.structIterator())if(r.isStreaming()&&r.isStructSchema())return t}return""}*structIterator(){if(this.isUnitSchema())return;if(!this.isStructSchema())throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");let t=this.getSchema(),r=t[4].length,o=t[df.it];if(o&&r===o.length){yield*o;return}o=Array(r);for(let n=0;n<r;++n){let s=t[4][n],a=pf([t[5][n],0],s);yield o[n]=[s,a]}t[df.it]=o}};i(pf,"member");fD=i(e=>Array.isArray(e)&&e.length===2,"isMemberSchema"),mD=i(e=>Array.isArray(e)&&e.length>=5,"isStaticSchema")});var Au,BH,VH,HH=v(()=>{Wi();Au=class e extends Et{static{i(this,"SimpleSchema")}static symbol=Symbol.for("@smithy/sim");name;schemaRef;traits;symbol=e.symbol},BH=i((e,t,r,o)=>Et.assign(new Au,{name:t,namespace:e,traits:o,schemaRef:r}),"sim"),VH=i((e,t,r,o)=>Et.assign(new Au,{name:t,namespace:e,traits:r,schemaRef:o}),"simAdapter")});var GH,qH=v(()=>{GH={BLOB:21,STREAMING_BLOB:42,BOOLEAN:2,STRING:0,NUMERIC:1,BIG_INTEGER:17,BIG_DECIMAL:19,DOCUMENT:15,TIMESTAMP_DEFAULT:4,TIMESTAMP_DATE_TIME:5,TIMESTAMP_HTTP_DATE:6,TIMESTAMP_EPOCH_SECONDS:7,LIST_MODIFIER:64,MAP_MODIFIER:128}});var ES,WH=v(()=>{ES=class e{static{i(this,"TypeRegistry")}namespace;schemas;exceptions;static registries=new Map;constructor(t,r=new Map,o=new Map){this.namespace=t,this.schemas=r,this.exceptions=o}static for(t){return e.registries.has(t)||e.registries.set(t,new e(t)),e.registries.get(t)}copyFrom(t){let{schemas:r,exceptions:o}=this;for(let[n,s]of t.schemas)r.has(n)||r.set(n,s);for(let[n,s]of t.exceptions)o.has(n)||o.set(n,s)}register(t,r){let o=this.normalizeShapeId(t);for(let n of[this,e.for(o.split("#")[0])])n.schemas.set(o,r)}getSchema(t){let r=this.normalizeShapeId(t);if(!this.schemas.has(r)){if(!t.includes("#")){let o="#"+t,n=[];for(let[s,a]of this.schemas.entries())s.endsWith(o)&&n.push(a);if(n.length===1)return n[0]}throw new Error(`@smithy/core/schema - schema not found for ${r}`)}return this.schemas.get(r)}registerError(t,r){let o=t,n=o[1];for(let s of[this,e.for(n)])s.schemas.set(n+"#"+o[2],o),s.exceptions.set(o,r)}getErrorCtor(t){let r=t;return this.exceptions.has(r)?this.exceptions.get(r):e.for(r[1]).exceptions.get(r)}getBaseException(){for(let t of this.exceptions.keys())if(Array.isArray(t)){let[,r,o]=t,n=r+"#"+o;if(n.startsWith("smithy.ts.sdk.synthetic.")&&n.endsWith("ServiceException"))return t}}find(t){for(let r of this.schemas.values())if(t(r))return r}clear(){this.schemas.clear(),this.exceptions.clear()}normalizeShapeId(t){return t.includes("#")?t:this.namespace+"#"+t}}});var ZH={};We(ZH,{ErrorSchema:()=>uf,ListSchema:()=>sf,MapSchema:()=>af,NormalizedSchema:()=>Cu,OperationSchema:()=>cf,SCHEMA:()=>GH,Schema:()=>Et,SimpleSchema:()=>Au,StructureSchema:()=>xa,TypeRegistry:()=>ES,deref:()=>bu,deserializerMiddlewareOption:()=>uD,error:()=>FH,getSchemaSerdePlugin:()=>RH,isStaticSchema:()=>mD,list:()=>OH,map:()=>NH,op:()=>MH,operation:()=>Pu,serializerMiddlewareOption:()=>lD,sim:()=>BH,simAdapter:()=>VH,simpleSchemaCacheN:()=>ff,simpleSchemaCacheS:()=>mf,struct:()=>zH,traitsCache:()=>lf,translateTraits:()=>ba});var KH=v(()=>{aD();$H();DH();kH();LH();yS();UH();jH();Wi();HH();dD();qH();pD();WH()});var gD=v(()=>{J3();Y3();CH()});var XH,JH,YH,QH=v(()=>{XH="AWS_ENDPOINT_URL",JH="endpoint_url",YH=i(e=>({environmentVariableSelector:i(t=>{let r=e.split(" ").map(s=>s.toUpperCase()),o=t[[XH,...r].join("_")];if(o)return o;let n=t[XH];if(n)return n},"environmentVariableSelector"),configFileSelector:i((t,r)=>{if(t.services){let n=["services",t.services].join(".");if(!r||!r[n])throw new Error(`The services section "${t.services}" specified in the profile is not present in the shared configuration file.`);let s=r[n],a=e.split(" ").map(u=>u.toLowerCase()),c=s[[a.join("_"),JH].join(".")];if(c)return c}let o=t[JH];if(o)return o},"configFileSelector"),default:void 0}),"getEndpointUrlConfig")});var Ave,Tve,eG,tG=v(()=>{gD();Ave="AWS_IGNORE_CONFIGURED_ENDPOINT_URLS",Tve="ignore_configured_endpoint_urls",eG={environmentVariableSelector:i(e=>fS(e,Ave,vu.ENV),"environmentVariableSelector"),configFileSelector:i(e=>fS(e,Tve,vu.CONFIG),"configFileSelector"),default:!1}});var gf,rG=v(()=>{gD();QH();tG();gf=i(async e=>{if(!await hS(eG)())return hS(YH(e??""))()},"getEndpointFromConfig")});var hD,Ive,wve,Rve,nG,oG,iG=v(()=>{hD=i(async e=>{let t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),oG(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!nG(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},"resolveParamsForS3"),Ive=/^[a-z0-9][a-z0-9.-]{1,61}[a-z0-9]$/,wve=/(\d+\.){3}\d+/,Rve=/\.\./,nG=i(e=>Ive.test(e)&&!wve.test(e)&&!Rve.test(e),"isDnsCompatibleBucketName"),oG=i(e=>{let[t,r,o,,,n]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,a=!!(s&&r&&o&&n);if(s&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},"isArnBucketName")});var sG=v(()=>{iG()});var aG,cG=v(()=>{aG=i((e,t,r,o=!1)=>{let n=i(async()=>{let s;return o?s=r.clientContextParams?.[e]??r[e]??r[t]:s=r[e]??r[t],typeof s=="function"?s():s},"configProvider");return e==="credentialScope"||t==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await n();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:a,hostname:c,port:u,path:l}=s;return`${a}//${c}${u?":"+u:""}${l}`}}return s}:n},"createConfigValueProvider")});var yD=v(()=>{Yr()});function SS(e){return async(t,r,o,n)=>{if(!o.isCustomEndpoint&&!o.ignoreConfiguredEndpointUrls){let c;o.serviceConfiguredEndpoint?c=await o.serviceConfiguredEndpoint():c=await e(o.serviceId),c&&(o.endpoint=()=>Promise.resolve(Un(c)),o.isCustomEndpoint=!0,n?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${c}`))}let s=await $ve(t,r,o);if(typeof o.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let a=o.endpointProvider(s,n);if(o.isCustomEndpoint&&o.endpoint){let c=await o.endpoint();if(c?.headers){a.headers??={};for(let[u,l]of Object.entries(c.headers))a.headers[u]=Array.isArray(l)?l:[l]}}return a}}var $ve,ED=v(()=>{sG();cG();yD();i(SS,"bindGetEndpointFromInstructions");$ve=i(async(e,t,r)=>{let o={},n=t?.getEndpointParameterInstructions?.()||{};for(let[s,a]of Object.entries(n))switch(a.type){case"staticContextParams":o[s]=a.value;break;case"contextParams":o[s]=e[a.name];break;case"clientContextParams":case"builtInParams":o[s]=await aG(a.name,s,r,a.type!=="builtInParams")();break;case"operationContextParams":o[s]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(n).length===0&&Object.assign(o,r),String(r.serviceId).toLowerCase()==="s3"&&await hD(o),o},"resolveParams")});function Ove(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}function _S(e){let t=SS(e);return({config:r,instructions:o})=>(n,s)=>async a=>{r.isCustomEndpoint&&Ove(s,"ENDPOINT_OVERRIDE","N");let c=await t(a.input,{getEndpointParameterInstructions(){return o}},{...r},s);s.endpointV2=c,s.authSchemes=c.properties?.authSchemes;let u=s.authSchemes?.[0];if(u){s.signing_region=u.signingRegion,s.signing_service=u.signingName;let p=Jr(s)?.selectedHttpAuthScheme?.httpAuthOption;p&&(p.signingProperties=Object.assign(p.signingProperties||{},{signing_region:u.signingRegion,signingRegion:u.signingRegion,signing_service:u.signingName,signingName:u.signingName,signingRegionSet:u.signingRegionSet},u.properties))}return n({...a})}}var SD=v(()=>{Yr();ED();i(Ove,"setFeature");i(_S,"bindEndpointMiddleware")});function uG(e){let t=_S(e);return(r,o)=>({applyToStack:i(n=>{n.addRelativeTo(t({config:r,instructions:o}),Nve)},"applyToStack")})}var Dve,Nve,lG=v(()=>{SD();Dve={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0},Nve={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Dve.name};i(uG,"bindGetEndpointPlugin")});function dG(e){return t=>{let r=t.tls??!0,{endpoint:o,useDualstackEndpoint:n,useFipsEndpoint:s}=t,a=o!=null?async()=>Un(await Jp(o)()):void 0,u=Object.assign(t,{endpoint:a,tls:r,isCustomEndpoint:!!o,useDualstackEndpoint:Jp(n??!1),useFipsEndpoint:Jp(s??!1),ignoreConfiguredEndpointUrls:!!t.ignoreConfiguredEndpointUrls}),l;return u.serviceConfiguredEndpoint=async()=>(t.serviceId&&!l&&(l=e(t.serviceId)),l),u}}var pG=v(()=>{Yr();yD();i(dG,"bindResolveEndpointConfig")});var _st,vst,xst,bst,fG=v(()=>{rG();ED();SD();lG();pG();Yr();_st=SS(gf),vst=dG(gf),xst=_S(gf),bst=uG(gf)});var vS,_D=v(()=>{fG();vS=i((e,t)=>(r,o)=>async n=>{let s=e,a=o.endpointV2?async()=>Un(o.endpointV2):s.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let c=await t(n.input,{...e,endpoint:a});return r({...n,request:c})},"serializerMiddleware")});function mG(e,t,r){return{applyToStack:i(o=>{o.add(pS(e,r),vD),o.add(vS(e,t),xD)},"applyToStack")}}var vD,xD,gG=v(()=>{JO();_D();vD={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},xD={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};i(mG,"getSerdePlugin")});function hG(e,t){return Buffer.isBuffer(e)?e:typeof e=="string"?Bi(e,t):ArrayBuffer.isView(e)?jn(e.buffer,e.byteOffset,e.byteLength):jn(e)}var bS,xS,yG=v(()=>{bS=require("node:crypto");Vi();KO();xS=class{static{i(this,"Hash")}algorithmIdentifier;secret;hash;constructor(t,r){this.algorithmIdentifier=t,this.secret=r,this.reset()}update(t,r){this.hash.update(dS(hG(t,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?(0,bS.createHmac)(this.algorithmIdentifier,hG(this.secret)):(0,bS.createHash)(this.algorithmIdentifier)}};i(hG,"castSourceData")});var EG,Tu,bD=v(()=>{EG=require("node:stream");MO();Tu=class extends EG.Readable{static{i(this,"ChecksumStream")}expectedChecksum;checksumSourceLocation;checksum;source;base64Encoder;constructor({expectedChecksum:t,checksum:r,source:o,checksumSourceLocation:n,base64Encoder:s}){if(super(),typeof o.pipe!="function")throw new Error(`@smithy/util-stream: unsupported source type ${o?.constructor?.name??o} in ChecksumStream.`);this.source=o,this.base64Encoder=s??Yp,this.expectedChecksum=t,this.checksum=r,this.checksumSourceLocation=n,this.source.on("data",this.onSourceData),this.source.on("end",this.onSourceEnd),this.source.on("error",this.onSourceError),this.source.on("close",this.onSourceClose),this.source.pause()}onSourceData=i(t=>{if(!this.destroyed){try{this.checksum.update(t)}catch(r){this.destroy(r);return}this.push(t)||this.source.pause()}},"onSourceData");onSourceEnd=i(async()=>{if(!this.destroyed){try{let t=await this.checksum.digest(),r=this.base64Encoder(t);if(this.expectedChecksum!==r){this.destroy(new Error(`Checksum mismatch: expected "${this.expectedChecksum}" but received "${r}" in response header "${this.checksumSourceLocation}".`));return}}catch(t){this.destroy(t);return}this.push(null)}},"onSourceEnd");onSourceError=i(t=>{this.destroy(t)},"onSourceError");onSourceClose=i(()=>{!this.destroyed&&!this.source.readableEnded&&this.destroy(new Error("Connection lost or stream closed before all data was received."))},"onSourceClose");_read(t){this.source.resume()}_destroy(t,r){this.source?.removeListener("data",this.onSourceData),this.source?.removeListener("end",this.onSourceEnd),this.source?.removeListener("error",this.onSourceError),this.source?.removeListener("close",this.onSourceClose),this.source?.destroy(),r(t)}}});var Ot,Zi,Bn=v(()=>{Ot=i(e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),"isReadableStream"),Zi=i(e=>typeof Blob=="function"&&(e?.constructor?.name===Blob.name||e instanceof Blob),"isBlob")});var SG,_G=v(()=>{SG=i(e=>new TextEncoder().encode(e),"fromUtf8")});var vG,Hst,xG,PS,PD,bG,PG=v(()=>{vG="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Hst=Object.entries(vG).reduce((e,[t,r])=>(e[r]=Number(t),e),{}),xG=vG.split(""),PS=6,PD=8,bG=63});function CS(e){let t;typeof e=="string"?t=SG(e):t=e;let r=typeof t=="object"&&typeof t.length=="number",o=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!r&&!o)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let n="";for(let s=0;s<t.length;s+=3){let a=0,c=0;for(let l=s,p=Math.min(s+3,t.length);l<p;l++)a|=t[l]<<(p-l-1)*PD,c+=PD;let u=Math.ceil(c/PS);a<<=u*PS-c;for(let l=1;l<=u;l++){let p=(u-l)*PS;n+=xG[(a&bG<<p)>>p]}n+="==".slice(0,4-u)}return n}var CD=v(()=>{_G();PG();i(CS,"toBase64")});var kve,AS,CG=v(()=>{kve=typeof ReadableStream=="function"?ReadableStream:function(){},AS=class extends kve{static{i(this,"ChecksumStream")}}});var AG,TG=v(()=>{CD();Bn();CG();AG=i(({expectedChecksum:e,checksum:t,source:r,checksumSourceLocation:o,base64Encoder:n})=>{if(!Ot(r))throw new Error(`@smithy/util-stream: unsupported source type ${r?.constructor?.name??r} in ChecksumStream.`);let s=n??CS;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");let a=new TransformStream({start(){},async transform(u,l){t.update(u),l.enqueue(u)},async flush(u){let l=await t.digest(),p=s(l);if(e!==p){let f=new Error(`Checksum mismatch: expected "${e}" but received "${p}" in response header "${o}".`);u.error(f)}else u.terminate()}});r.pipeThrough(a);let c=a.readable;return Object.setPrototypeOf(c,AS.prototype),c},"createChecksumStream")});function IG(e){return typeof ReadableStream=="function"&&Ot(e.source)?AG(e):new Tu(e)}var wG=v(()=>{Bn();bD();TG();i(IG,"createChecksumStream")});var Pa,AD=v(()=>{Pa=class{static{i(this,"ByteArrayCollector")}allocByteArray;byteLength=0;byteArrays=[];constructor(t){this.allocByteArray=t}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){let o=this.byteArrays[0];return this.reset(),o}let t=this.allocByteArray(this.byteLength),r=0;for(let o=0;o<this.byteArrays.length;++o){let n=this.byteArrays[o];t.set(n,r),r+=n.byteLength}return this.reset(),t}reset(){this.byteArrays=[],this.byteLength=0}}});function RG(e,t,r){let o=e.getReader(),n=!1,s=0,a=["",new Pa(l=>new Uint8Array(l))],c=-1,u=i(async l=>{let{value:p,done:f}=await o.read(),y=p;if(f){if(c!==-1){let m=Ca(a,c);ti(m)>0&&l.enqueue(m)}l.close()}else{let m=ID(y,!1);if(c!==m&&(c>=0&&l.enqueue(Ca(a,c)),c=m),c===-1){l.enqueue(y);return}let _=ti(y);s+=_;let b=ti(a[c]);if(_>=t&&b===0)l.enqueue(y);else{let A=TD(a,c,y);!n&&s>t*2&&(n=!0,r?.warn(`@smithy/util-stream - stream chunk size ${_} is below threshold of ${t}, automatically buffering.`)),A>=t?l.enqueue(Ca(a,c)):await u(l)}}},"pull");return new ReadableStream({pull:u})}function TD(e,t,r){switch(t){case 0:return e[0]+=r,ti(e[0]);case 1:case 2:return e[t].push(r),ti(e[t])}}function Ca(e,t){switch(t){case 0:let r=e[0];return e[0]="",r;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function ti(e){return e?.byteLength??e?.length??0}function ID(e,t=!0){return t&&typeof Buffer<"u"&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e=="string"?0:-1}var $G=v(()=>{AD();i(RG,"createBufferedReadableStream");i(TD,"merge");i(Ca,"flush");i(ti,"sizeOf");i(ID,"modeOf")});function DG(e,t,r){if(Ot(e))return RG(e,t,r);let o=new OG.Readable({read(){}}),n=!1,s=0,a=["",new Pa(u=>new Uint8Array(u)),new Pa(u=>Buffer.from(new Uint8Array(u)))],c=-1;return e.on("data",u=>{let l=ID(u,!0);if(c!==l&&(c>=0&&o.push(Ca(a,c)),c=l),c===-1){o.push(u);return}let p=ti(u);s+=p;let f=ti(a[c]);if(p>=t&&f===0)o.push(u);else{let y=TD(a,c,u);!n&&s>t*2&&(n=!0,r?.warn(`@smithy/util-stream - stream chunk size ${p} is below threshold of ${t}, automatically buffering.`)),y>=t&&o.push(Ca(a,c))}}),e.on("end",()=>{if(c!==-1){let u=Ca(a,c);ti(u)>0&&o.push(u)}o.push(null)}),o}var OG,NG=v(()=>{OG=require("node:stream");AD();$G();Bn();i(DG,"createBufferedReadable")});var kG,MG=v(()=>{kG=i((e,t)=>{let{base64Encoder:r,bodyLengthChecker:o,checksumAlgorithmFn:n,checksumLocationName:s,streamHasher:a}=t,c=r!==void 0&&o!==void 0&&n!==void 0&&s!==void 0&&a!==void 0,u=c?a(n,e):void 0,l=e.getReader();return new ReadableStream({async pull(p){let{value:f,done:y}=await l.read();if(y){if(p.enqueue(`0\r
30
+ `),c){let m=r(await u);p.enqueue(`${s}:${m}\r
31
+ `),p.enqueue(`\r
32
+ `)}p.close()}else p.enqueue(`${(o(f)||0).toString(16)}\r
33
+ ${f}\r
34
+ `)}})},"getAwsChunkedEncodingStream")});function zG(e,t){let r=e,o=e;if(Ot(o))return kG(o,t);let{base64Encoder:n,bodyLengthChecker:s,checksumAlgorithmFn:a,checksumLocationName:c,streamHasher:u}=t,l=n!==void 0&&a!==void 0&&c!==void 0&&u!==void 0,p=l?u(a,r):void 0,f=new LG.Readable({read:i(()=>{},"read")});return r.on("data",y=>{let m=s(y)||0;m!==0&&(f.push(`${m.toString(16)}\r
35
+ `),f.push(y),f.push(`\r
36
+ `))}),r.on("end",async()=>{if(f.push(`0\r
37
+ `),l){let y=n(await p);f.push(`${c}:${y}\r
38
+ `),f.push(`\r
39
+ `)}f.push(null)}),f}var LG,FG=v(()=>{LG=require("node:stream");MG();Bn();i(zG,"getAwsChunkedEncodingStream")});async function UG(e,t){let r=0,o=[],n=e.getReader(),s=!1;for(;!s;){let{done:u,value:l}=await n.read();if(l&&(o.push(l),r+=l?.byteLength??0),r>=t)break;s=u}n.releaseLock();let a=new Uint8Array(Math.min(t,r)),c=0;for(let u of o){if(u.byteLength>a.byteLength-c){a.set(u.subarray(0,a.byteLength-c),c);break}else a.set(u,c);c+=u.length}return a}var jG=v(()=>{i(UG,"headStream")});var BG,VG,wD,HG=v(()=>{BG=require("node:stream");nf();jG();Bn();VG=i((e,t)=>Ot(e)?UG(e,t):new Promise((r,o)=>{let n=new wD;n.limit=t,e.pipe(n),e.on("error",s=>{n.end(),o(s)}),n.on("error",o),n.on("finish",function(){let s=qi(this.buffers);r(s)})}),"headStream"),wD=class extends BG.Writable{static{i(this,"Collector")}buffers=[];limit=1/0;bytesBuffered=0;_write(t,r,o){if(this.buffers.push(t),this.bytesBuffered+=t.byteLength??0,this.bytesBuffered>=this.limit){let n=this.bytesBuffered-this.limit,s=this.buffers[this.buffers.length-1];this.buffers[this.buffers.length-1]=s.subarray(0,s.byteLength-n),this.emit("finish")}o()}}});var GG,qG=v(()=>{GG=i(e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)},"toUtf8")});async function RD(e){return e.arrayBuffer().then(t=>new Uint8Array(t))}async function $D(e){let t=[],r=e.getReader(),o=0;for(;;){let{done:n,value:s}=await r.read();if(s&&(t.push(s),o+=s.length),n)break}return qi(t,o)}var WG,OD=v(()=>{nf();Bn();WG=i(async e=>Zi(e)?RD(e):$D(e),"streamCollector");i(RD,"collectBlob");i($D,"collectReadableStream")});var ZG,XG,KG,JG=v(()=>{CD();ZO();qG();OD();Bn();ZG="The stream has already been transformed.",XG=i(e=>{if(!KG(e)&&!Ot(e)){let n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${n}`)}let t=!1,r=i(async()=>{if(t)throw new Error(ZG);return t=!0,await WG(e)},"transformToByteArray"),o=i(n=>{if(typeof n.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
40
+ If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return n.stream()},"blobToWebStream");return Object.assign(e,{transformToByteArray:r,transformToString:i(async n=>{let s=await r();if(n==="base64")return CS(s);if(n==="hex")return lS(s);if(n===void 0||n==="utf8"||n==="utf-8")return GG(s);if(typeof TextDecoder=="function")return new TextDecoder(n).decode(s);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},"transformToString"),transformToWebStream:i(()=>{if(t)throw new Error(ZG);if(t=!0,KG(e))return o(e);if(Ot(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)},"transformToWebStream")})},"sdkStreamMixin"),KG=i(e=>typeof Blob=="function"&&e instanceof Blob,"isBlobInstance")});var YG,TS,DD,ND=v(()=>{YG=require("node:stream");nf();OD();Bn();TS=i(e=>Zi(e)?RD(e):Ot(e)?$D(e):new Promise((t,r)=>{let o=new DD,n=e;n.pipe(o),n.on("error",s=>{o.end(),r(s)}),o.on("error",r),o.on("finish",function(){let s=qi(this.bufferedBytes);t(s)})}),"streamCollector"),DD=class extends YG.Writable{static{i(this,"Collector")}bufferedBytes=[];_write(t,r,o){this.bufferedBytes.push(t),o()}}});var IS,QG,eq,tq=v(()=>{IS=require("node:stream");Vi();JG();ND();QG="The stream has already been transformed.",eq=i(e=>{if(!(e instanceof IS.Readable))try{return XG(e)}catch{let n=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${n}`)}let t=!1,r=i(async()=>{if(t)throw new Error(QG);return t=!0,await TS(e)},"transformToByteArray");return Object.assign(e,{transformToByteArray:r,transformToString:i(async o=>{let n=await r();return o===void 0||Buffer.isEncoding(o)?jn(n.buffer,n.byteOffset,n.byteLength).toString(o):new TextDecoder(o).decode(n)},"transformToString"),transformToWebStream:i(()=>{if(t)throw new Error(QG);if(e.readableFlowing!==null)throw new Error("The stream has been consumed by other callbacks.");if(typeof IS.Readable.toWeb!="function")throw new Error("Readable.toWeb() is not supported. Please ensure a polyfill is available.");return t=!0,IS.Readable.toWeb(e)},"transformToWebStream")})},"sdkStreamMixin")});async function rq(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}var nq=v(()=>{i(rq,"splitStream")});async function oq(e){if(Ot(e)||Zi(e))return rq(e);let t=new kD.PassThrough,r=new kD.PassThrough;return e.pipe(t),e.pipe(r),[t,r]}var kD,iq=v(()=>{kD=require("node:stream");nq();Bn();i(oq,"splitStream")});var cq={};We(cq,{ChecksumStream:()=>Tu,Hash:()=>xS,LazyJsonString:()=>Gi,NumericValue:()=>rf,Uint8ArrayBlobAdapter:()=>MD,_parseEpochTimestamp:()=>R3,_parseRfc3339DateTimeWithOffset:()=>$3,_parseRfc7231DateTime:()=>O3,calculateBodyLength:()=>V3,concatBytes:()=>qi,copyDocumentWithTransform:()=>o3,createBufferedReadable:()=>DG,createChecksumStream:()=>IG,dateToUtcString:()=>S3,deserializerMiddleware:()=>pS,deserializerMiddlewareOption:()=>vD,expectBoolean:()=>a3,expectByte:()=>iS,expectFloat32:()=>Qp,expectInt:()=>c3,expectInt32:()=>nS,expectLong:()=>mu,expectNonNull:()=>u3,expectNumber:()=>fu,expectObject:()=>FO,expectShort:()=>oS,expectString:()=>l3,expectUnion:()=>d3,fromArrayBuffer:()=>jn,fromBase64:()=>kO,fromHex:()=>B3,fromString:()=>Bi,fromUtf8:()=>va,generateIdempotencyToken:()=>Lve,getAwsChunkedEncodingStream:()=>zG,getSerdePlugin:()=>mG,handleFloat:()=>f3,headStream:()=>VG,isArrayBuffer:()=>eS,isBlob:()=>Zi,isReadableStream:()=>Ot,limitedParseDouble:()=>cS,limitedParseFloat:()=>m3,limitedParseFloat32:()=>g3,logger:()=>gu,nv:()=>F3,parseBoolean:()=>s3,parseEpochTimestamp:()=>b3,parseRfc3339DateTime:()=>_3,parseRfc3339DateTimeWithOffset:()=>v3,parseRfc7231DateTime:()=>x3,quoteHeader:()=>A3,sdkStreamMixin:()=>eq,serializerMiddleware:()=>vS,serializerMiddlewareOption:()=>xD,splitEvery:()=>N3,splitHeader:()=>M3,splitStream:()=>oq,streamCollector:()=>TS,strictParseByte:()=>uS,strictParseDouble:()=>ef,strictParseFloat:()=>p3,strictParseFloat32:()=>aS,strictParseInt:()=>y3,strictParseInt32:()=>E3,strictParseLong:()=>UO,strictParseShort:()=>Hi,toBase64:()=>Yp,toHex:()=>lS,toUint8Array:()=>dS,toUtf8:()=>LO,v4:()=>aq});var sq,MD,Mve,aq,Lve,uq=v(()=>{sq=require("node:crypto");YV();MO();e3();tS();t3();n3();i3();P3();C3();jO();T3();D3();k3();L3();U3();ZO();H3();KO();nf();Vi();NO();JO();gG();_D();yG();bD();wG();NG();FG();HG();tq();iq();Bn();ND();MD=class extends QV(LO,va,Yp,kO){static{i(this,"Uint8ArrayBlobAdapter")}},Mve=sq.getRandomValues,aq=r3(Mve),Lve=aq});function LD(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}var lq=v(()=>{i(LD,"extendedEncodeURIComponent")});var dq,pq=v(()=>{lq();dq=i((e,t,r,o,n,s)=>{if(t!=null&&t[r]!==void 0){let a=o();if(a==null||a.length<=0)throw new Error("Empty value provided for input HTTP label: "+r+".");e=e.replace(n,s?a.split("/").map(c=>LD(c)).join("/"):LD(a))}else throw new Error("No value provided for input HTTP label: "+r+".");return e},"resolvedPath")});function zD(e,t){return new wS(e,t)}var wS,fq=v(()=>{Yr();pq();i(zD,"requestBuilder");wS=class{static{i(this,"RequestBuilder")}input;context;query={};method="";headers={};path="";body=null;hostname="";resolvePathStack=[];constructor(t,r){this.input=t,this.context=r}async build(){let{hostname:t,protocol:r="https",port:o,path:n}=await this.context.endpoint();this.path=n;for(let s of this.resolvePathStack)s(this.path);return new En({protocol:r,hostname:this.hostname||t,port:o,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(t){return this.hostname=t,this}bp(t){return this.resolvePathStack.push(r=>{this.path=`${r?.endsWith("/")?r.slice(0,-1):r||""}`+t}),this}p(t,r,o,n){return this.resolvePathStack.push(s=>{this.path=dq(s,this.input,t,r,o,n)}),this}h(t){return this.headers=t,this}q(t){return this.query=t,this}b(t){return this.body=t,this}m(t){return this.method=t,this}}});var hf=v(()=>{fq();Yr()});var zve,Fve,yf,FD=v(()=>{hf();Yr();zve=i(e=>t=>{throw t},"defaultErrorHandler"),Fve=i((e,t)=>{},"defaultSuccessHandler"),yf=i(e=>(t,r)=>async o=>{if(!En.isInstance(o.request))return t(o);let s=Jr(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:u}=s,l=await t({...o,request:await u.sign(o.request,c,a)}).catch((u.errorHandler||zve)(a));return(u.successHandler||Fve)(l.response,a),l},"httpSigningMiddleware")});var RS,UD,mq=v(()=>{FD();RS={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},UD=i(e=>({applyToStack:i(t=>{t.addRelativeTo(yf(e),RS)},"applyToStack")}),"getHttpSigningPlugin")});var gq=v(()=>{FD();mq()});var hq,yq=v(()=>{hq=i(e=>{if(typeof e=="function")return e;let t=Promise.resolve(e);return()=>t},"normalizeProvider")});function Eq(e,t,r,o,n){return i(async function*(a,c,...u){let l=c,p=a.startingToken??l[r],f=!0,y;for(;f;){if(l[r]=p,n&&(l[n]=l[n]??a.pageSize),a.client instanceof e)y=await Uve(t,a.client,c,a.withCommand,...u);else throw new Error(`Invalid client, expected instance of ${e.name}`);yield y;let m=p;p=jve(y,o),f=!!(p&&(!a.stopOnSameToken||p!==m))}return void 0},"paginateOperation")}var Uve,jve,Sq=v(()=>{Uve=i(async(e,t,r,o=s=>s,...n)=>{let s=new e(r);return s=o(s)??s,await t.send(s,...n)},"makePagedClientRequest");i(Eq,"createPaginator");jve=i((e,t)=>{let r=e,o=t.split(".");for(let n of o){if(!r||typeof r!="object")return;r=r[n]}return r},"get")});function _q(e,t,r){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=r}var vq=v(()=>{i(_q,"setFeature")});var Ef,xq=v(()=>{Ef=class{static{i(this,"DefaultIdentityProviderConfig")}authSchemes=new Map;constructor(t){for(let r in t){let o=t[r];o!==void 0&&this.authSchemes.set(r,o)}}getIdentityProvider(t){return this.authSchemes.get(t)}}});var jD,Iu,bq=v(()=>{hf();jD=w(Xp()),Iu=class{static{i(this,"HttpApiKeyAuthSigner")}async sign(t,r,o){if(!o)throw new Error("request could not be signed with `apiKey` since the `name` and `in` signer properties are missing");if(!o.name)throw new Error("request could not be signed with `apiKey` since the `name` signer property is missing");if(!o.in)throw new Error("request could not be signed with `apiKey` since the `in` signer property is missing");if(!r.apiKey)throw new Error("request could not be signed with `apiKey` since the `apiKey` is not defined");let n=En.clone(t);if(o.in===jD.HttpApiKeyAuthLocation.QUERY)n.query[o.name]=r.apiKey;else if(o.in===jD.HttpApiKeyAuthLocation.HEADER)n.headers[o.name]=o.scheme?`${o.scheme} ${r.apiKey}`:r.apiKey;else throw new Error("request can only be signed with `apiKey` locations `query` or `header`, but found: `"+o.in+"`");return n}}});var wu,Pq=v(()=>{hf();wu=class{static{i(this,"HttpBearerAuthSigner")}async sign(t,r,o){let n=En.clone(t);if(!r.token)throw new Error("request could not be signed with `token` since the `token` is not defined");return n.headers.Authorization=`Bearer ${r.token}`,n}}});var Ru,Cq=v(()=>{Ru=class{static{i(this,"NoAuthSigner")}async sign(t,r,o){return t}}});var Aq=v(()=>{bq();Pq();Cq()});var $S,OS,BD,DS,VD,Tq=v(()=>{$S=i(e=>i(function(r){return DS(r)&&r.expiration.getTime()-Date.now()<e},"isIdentityExpired"),"createIsIdentityExpiredFunction"),OS=3e5,BD=$S(OS),DS=i(e=>e.expiration!==void 0,"doesIdentityRequireRefresh"),VD=i((e,t,r)=>{if(e===void 0)return;let o=typeof e!="function"?async()=>Promise.resolve(e):e,n,s,a,c=!1,u=i(async l=>{s||(s=o(l));try{n=await s,a=!0,c=!1}finally{s=void 0}return n},"coalesceProvider");return t===void 0?async l=>((!a||l?.forceRefresh)&&(n=await u(l)),n):async l=>((!a||l?.forceRefresh)&&(n=await u(l)),c?n:r(n)?(t(n)&&await u(l),n):(c=!0,n))},"memoizeIdentityProvider")});var Iq=v(()=>{xq();Aq();Tq()});var wq={};We(wq,{DefaultIdentityProviderConfig:()=>Ef,EXPIRATION_MS:()=>OS,HttpApiKeyAuthSigner:()=>Iu,HttpBearerAuthSigner:()=>wu,NoAuthSigner:()=>Ru,createIsIdentityExpiredFunction:()=>$S,createPaginator:()=>Eq,doesIdentityRequireRefresh:()=>DS,getHttpAuthSchemeEndpointRuleSetPlugin:()=>OO,getHttpAuthSchemePlugin:()=>DO,getHttpSigningPlugin:()=>UD,getSmithyContext:()=>Jr,httpAuthSchemeEndpointRuleSetMiddlewareOptions:()=>YE,httpAuthSchemeMiddleware:()=>_a,httpAuthSchemeMiddlewareOptions:()=>QE,httpSigningMiddleware:()=>yf,httpSigningMiddlewareOptions:()=>RS,isIdentityExpired:()=>BD,memoizeIdentityProvider:()=>VD,normalizeProvider:()=>hq,requestBuilder:()=>zD,setFeature:()=>_q});var Rq=v(()=>{Yr();JV();gq();yq();Sq();hf();vq();Iq()});var Oq=z($q=>{"use strict";var Bve=i(e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),"resolveEventStreamSerdeConfig");$q.resolveEventStreamSerdeConfig=Bve});var Aa=z(NS=>{"use strict";var Vve=Ze(),Dq="content-length";function Nq(e){return t=>async r=>{let o=r.request;if(Vve.HttpRequest.isInstance(o)){let{body:n,headers:s}=o;if(n&&Object.keys(s).map(a=>a.toLowerCase()).indexOf(Dq)===-1)try{let a=e(n);o.headers={...o.headers,[Dq]:String(a)}}catch{}}return t({...r,request:o})}}i(Nq,"contentLengthMiddleware");var kq={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},Hve=i(e=>({applyToStack:i(t=>{t.add(Nq(e.bodyLengthChecker),kq)},"applyToStack")}),"getContentLengthPlugin");NS.contentLengthMiddleware=Nq;NS.contentLengthMiddlewareOptions=kq;NS.getContentLengthPlugin=Hve});var sr=z(Ta=>{"use strict";var $u=class e extends Error{static{i(this,"ProviderError")}name="ProviderError";tryNextLink;constructor(t,r=!0){let o,n=!0;typeof r=="boolean"?(o=void 0,n=r):r!=null&&typeof r=="object"&&(o=r.logger,n=r.tryNextLink??!0),super(t),this.tryNextLink=n,Object.setPrototypeOf(this,e.prototype),o?.debug?.(`@smithy/property-provider ${n?"->":"(!)"} ${t}`)}static from(t,r=!0){return Object.assign(new this(t.message,r),t)}},HD=class e extends $u{static{i(this,"CredentialsProviderError")}name="CredentialsProviderError";constructor(t,r=!0){super(t,r),Object.setPrototypeOf(this,e.prototype)}},GD=class e extends $u{static{i(this,"TokenProviderError")}name="TokenProviderError";constructor(t,r=!0){super(t,r),Object.setPrototypeOf(this,e.prototype)}},Gve=i((...e)=>async()=>{if(e.length===0)throw new $u("No providers in chain");let t;for(let r of e)try{return await r()}catch(o){if(t=o,o?.tryNextLink)continue;throw o}throw t},"chain"),qve=i(e=>()=>Promise.resolve(e),"fromStatic"),Wve=i((e,t,r)=>{let o,n,s,a=!1,c=i(async()=>{n||(n=e());try{o=await n,s=!0,a=!1}finally{n=void 0}return o},"coalesceProvider");return t===void 0?async u=>((!s||u?.forceRefresh)&&(o=await c()),o):async u=>((!s||u?.forceRefresh)&&(o=await c()),a?o:r&&!r(o)?(a=!0,o):(t(o)&&await c(),o))},"memoize");Ta.CredentialsProviderError=HD;Ta.ProviderError=$u;Ta.TokenProviderError=GD;Ta.chain=Gve;Ta.fromStatic=qve;Ta.memoize=Wve});var WD=z(kS=>{"use strict";Object.defineProperty(kS,"__esModule",{value:!0});kS.getHomeDir=void 0;var Zve=require("os"),Kve=require("path"),qD={},Xve=i(()=>process&&process.geteuid?`${process.geteuid()}`:"DEFAULT","getHomeDirCacheKey"),Jve=i(()=>{let{HOME:e,USERPROFILE:t,HOMEPATH:r,HOMEDRIVE:o=`C:${Kve.sep}`}=process.env;if(e)return e;if(t)return t;if(r)return`${o}${r}`;let n=Xve();return qD[n]||(qD[n]=(0,Zve.homedir)()),qD[n]},"getHomeDir");kS.getHomeDir=Jve});var ZD=z(MS=>{"use strict";Object.defineProperty(MS,"__esModule",{value:!0});MS.getSSOTokenFilepath=void 0;var Yve=require("crypto"),Qve=require("path"),exe=WD(),txe=i(e=>{let r=(0,Yve.createHash)("sha1").update(e).digest("hex");return(0,Qve.join)((0,exe.getHomeDir)(),".aws","sso","cache",`${r}.json`)},"getSSOTokenFilepath");MS.getSSOTokenFilepath=txe});var Mq=z(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.getSSOTokenFromFile=Ki.tokenIntercept=void 0;var rxe=require("fs/promises"),nxe=ZD();Ki.tokenIntercept={};var oxe=i(async e=>{if(Ki.tokenIntercept[e])return Ki.tokenIntercept[e];let t=(0,nxe.getSSOTokenFilepath)(e),r=await(0,rxe.readFile)(t,"utf8");return JSON.parse(r)},"getSSOTokenFromFile");Ki.getSSOTokenFromFile=oxe});var Lq=z(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.readFile=Qr.fileIntercept=Qr.filePromises=void 0;var ixe=require("node:fs/promises");Qr.filePromises={};Qr.fileIntercept={};var sxe=i((e,t)=>Qr.fileIntercept[e]!==void 0?Qr.fileIntercept[e]:((!Qr.filePromises[e]||t?.ignoreCache)&&(Qr.filePromises[e]=(0,ixe.readFile)(e,"utf8")),Qr.filePromises[e]),"readFile");Qr.readFile=sxe});var po=z(Dt=>{"use strict";var Ia=WD(),LS=ZD(),KD=Mq(),zS=require("path"),FS=zo(),Ou=Lq(),Fq="AWS_PROFILE",Uq="default",axe=i(e=>e.profile||process.env[Fq]||Uq,"getProfileName"),wa=".",cxe=i(e=>Object.entries(e).filter(([t])=>{let r=t.indexOf(wa);return r===-1?!1:Object.values(FS.IniSectionType).includes(t.substring(0,r))}).reduce((t,[r,o])=>{let n=r.indexOf(wa),s=r.substring(0,n)===FS.IniSectionType.PROFILE?r.substring(n+1):r;return t[s]=o,t},{...e.default&&{default:e.default}}),"getConfigData"),uxe="AWS_CONFIG_FILE",jq=i(()=>process.env[uxe]||zS.join(Ia.getHomeDir(),".aws","config"),"getConfigFilepath"),lxe="AWS_SHARED_CREDENTIALS_FILE",dxe=i(()=>process.env[lxe]||zS.join(Ia.getHomeDir(),".aws","credentials"),"getCredentialsFilepath"),pxe=/^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/,fxe=["__proto__","profile __proto__"],XD=i(e=>{let t={},r,o;for(let n of e.split(/\r?\n/)){let s=n.split(/(^|\s)[;#]/)[0].trim();if(s[0]==="["&&s[s.length-1]==="]"){r=void 0,o=void 0;let c=s.substring(1,s.length-1),u=pxe.exec(c);if(u){let[,l,,p]=u;Object.values(FS.IniSectionType).includes(l)&&(r=[l,p].join(wa))}else r=c;if(fxe.includes(c))throw new Error(`Found invalid profile name "${c}"`)}else if(r){let c=s.indexOf("=");if(![0,-1].includes(c)){let[u,l]=[s.substring(0,c).trim(),s.substring(c+1).trim()];if(l==="")o=u;else{o&&n.trimStart()===n&&(o=void 0),t[r]=t[r]||{};let p=o?[o,u].join(wa):u;t[r][p]=l}}}}return t},"parseIni"),zq=i(()=>({}),"swallowError$1"),Bq=i(async(e={})=>{let{filepath:t=dxe(),configFilepath:r=jq()}=e,o=Ia.getHomeDir(),n="~/",s=t;t.startsWith(n)&&(s=zS.join(o,t.slice(2)));let a=r;r.startsWith(n)&&(a=zS.join(o,r.slice(2)));let c=await Promise.all([Ou.readFile(a,{ignoreCache:e.ignoreCache}).then(XD).then(cxe).catch(zq),Ou.readFile(s,{ignoreCache:e.ignoreCache}).then(XD).catch(zq)]);return{configFile:c[0],credentialsFile:c[1]}},"loadSharedConfigFiles"),mxe=i(e=>Object.entries(e).filter(([t])=>t.startsWith(FS.IniSectionType.SSO_SESSION+wa)).reduce((t,[r,o])=>({...t,[r.substring(r.indexOf(wa)+1)]:o}),{}),"getSsoSessionData"),gxe=i(()=>({}),"swallowError"),hxe=i(async(e={})=>Ou.readFile(e.configFilepath??jq()).then(XD).then(mxe).catch(gxe),"loadSsoSessionData"),yxe=i((...e)=>{let t={};for(let r of e)for(let[o,n]of Object.entries(r))t[o]!==void 0?Object.assign(t[o],n):t[o]=n;return t},"mergeConfigFiles"),Exe=i(async e=>{let t=await Bq(e);return yxe(t.configFile,t.credentialsFile)},"parseKnownFiles"),Sxe={getFileRecord(){return Ou.fileIntercept},interceptFile(e,t){Ou.fileIntercept[e]=Promise.resolve(t)},getTokenRecord(){return KD.tokenIntercept},interceptToken(e,t){KD.tokenIntercept[e]=t}};Dt.getSSOTokenFromFile=KD.getSSOTokenFromFile;Dt.readFile=Ou.readFile;Dt.CONFIG_PREFIX_SEPARATOR=wa;Dt.DEFAULT_PROFILE=Uq;Dt.ENV_PROFILE=Fq;Dt.externalDataInterceptor=Sxe;Dt.getProfileName=axe;Dt.loadSharedConfigFiles=Bq;Dt.loadSsoSessionData=hxe;Dt.parseKnownFiles=Exe;Object.prototype.hasOwnProperty.call(Ia,"__proto__")&&!Object.prototype.hasOwnProperty.call(Dt,"__proto__")&&Object.defineProperty(Dt,"__proto__",{enumerable:!0,value:Ia.__proto__});Object.keys(Ia).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Dt,e)&&(Dt[e]=Ia[e])});Object.prototype.hasOwnProperty.call(LS,"__proto__")&&!Object.prototype.hasOwnProperty.call(Dt,"__proto__")&&Object.defineProperty(Dt,"__proto__",{enumerable:!0,value:LS.__proto__});Object.keys(LS).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Dt,e)&&(Dt[e]=LS[e])})});var Vn=z(Gq=>{"use strict";var Sf=sr(),Vq=po();function Hq(e){try{let t=new Set(Array.from(e.match(/([A-Z_]){3,}/g)??[]));return t.delete("CONFIG"),t.delete("CONFIG_PREFIX_SEPARATOR"),t.delete("ENV"),[...t].join(", ")}catch{return e}}i(Hq,"getSelectorName");var _xe=i((e,t)=>async()=>{try{let r=e(process.env,t);if(r===void 0)throw new Error;return r}catch(r){throw new Sf.CredentialsProviderError(r.message||`Not found in ENV: ${Hq(e.toString())}`,{logger:t?.logger})}},"fromEnv"),vxe=i((e,{preferredFile:t="config",...r}={})=>async()=>{let o=Vq.getProfileName(r),{configFile:n,credentialsFile:s}=await Vq.loadSharedConfigFiles(r),a=s[o]||{},c=n[o]||{},u=t==="config"?{...a,...c}:{...c,...a};try{let p=e(u,t==="config"?n:s);if(p===void 0)throw new Error;return p}catch(l){throw new Sf.CredentialsProviderError(l.message||`Not found in config files w/ profile [${o}]: ${Hq(e.toString())}`,{logger:r.logger})}},"fromSharedConfigFiles"),xxe=i(e=>typeof e=="function","isFunction"),bxe=i(e=>xxe(e)?async()=>await e():Sf.fromStatic(e),"fromStatic"),Pxe=i(({environmentVariableSelector:e,configFileSelector:t,default:r},o={})=>{let{signingName:n,logger:s}=o,a={signingName:n,logger:s};return Sf.memoize(Sf.chain(_xe(e,a),vxe(t,o),bxe(r)))},"loadConfig");Gq.loadConfig=Pxe});var Kq=z(US=>{"use strict";Object.defineProperty(US,"__esModule",{value:!0});US.getEndpointUrlConfig=void 0;var qq=po(),Wq="AWS_ENDPOINT_URL",Zq="endpoint_url",Cxe=i(e=>({environmentVariableSelector:i(t=>{let r=e.split(" ").map(s=>s.toUpperCase()),o=t[[Wq,...r].join("_")];if(o)return o;let n=t[Wq];if(n)return n},"environmentVariableSelector"),configFileSelector:i((t,r)=>{if(r&&t.services){let n=r[["services",t.services].join(qq.CONFIG_PREFIX_SEPARATOR)];if(n){let s=e.split(" ").map(c=>c.toLowerCase()),a=n[[s.join("_"),Zq].join(qq.CONFIG_PREFIX_SEPARATOR)];if(a)return a}}let o=t[Zq];if(o)return o},"configFileSelector"),default:void 0}),"getEndpointUrlConfig");US.getEndpointUrlConfig=Cxe});var Xq=z(jS=>{"use strict";Object.defineProperty(jS,"__esModule",{value:!0});jS.getEndpointFromConfig=void 0;var Axe=Vn(),Txe=Kq(),Ixe=i(async e=>(0,Axe.loadConfig)((0,Txe.getEndpointUrlConfig)(e??""))(),"getEndpointFromConfig");jS.getEndpointFromConfig=Ixe});var tW=z(Du=>{"use strict";var wxe=Ze(),Rxe=(m$(),pe(dB)),Jq=i((e,t)=>(r,o)=>async n=>{let{response:s}=await r(n);try{let a=await t(s,e);return{response:s,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:s,enumerable:!1,writable:!1,configurable:!1}),!("$metadata"in a)){let c="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{a.message+=`
41
+ `+c}catch{!o.logger||o.logger?.constructor?.name==="NoOpLogger"?console.warn(c):o.logger?.warn?.(c)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(wxe.HttpResponse.isInstance(s)){let{headers:u={}}=s,l=Object.entries(u);a.$metadata={httpStatusCode:s.statusCode,requestId:JD(/^x-[\w-]+-request-?id$/,l),extendedRequestId:JD(/^x-[\w-]+-id-2$/,l),cfId:JD(/^x-[\w-]+-cf-id$/,l)}}}catch{}}throw a}},"deserializerMiddleware"),JD=i((e,t)=>(t.find(([r])=>r.match(e))||[void 0,void 0])[1],"findHeader"),Yq=i((e,t)=>(r,o)=>async n=>{let s=e,a=o.endpointV2?async()=>Rxe.toEndpointV1(o.endpointV2):s.endpoint;if(!a)throw new Error("No valid endpoint provider available.");let c=await t(n.input,{...e,endpoint:a});return r({...n,request:c})},"serializerMiddleware"),Qq={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},eW={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function $xe(e,t,r){return{applyToStack:i(o=>{o.add(Jq(e,r),Qq),o.add(Yq(e,t),eW)},"applyToStack")}}i($xe,"getSerdePlugin");Du.deserializerMiddleware=Jq;Du.deserializerMiddlewareOption=Qq;Du.getSerdePlugin=$xe;Du.serializerMiddleware=Yq;Du.serializerMiddlewareOption=eW});var Or=z(ri=>{"use strict";var Oxe=(Ut(),pe(Ea)),BS=Ft(),nW=Xq(),rW=gn(),Dxe=tW(),Nxe=i(async e=>{let t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),Fxe(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!zxe(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},"resolveParamsForS3"),kxe=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,Mxe=/(\d+\.){3}\d+/,Lxe=/\.\./,zxe=i(e=>kxe.test(e)&&!Mxe.test(e)&&!Lxe.test(e),"isDnsCompatibleBucketName"),Fxe=i(e=>{let[t,r,o,,,n]=e.split(":"),s=t==="arn"&&e.split(":").length>=6,a=!!(s&&r&&o&&n);if(s&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},"isArnBucketName"),Uxe=i((e,t,r,o=!1)=>{let n=i(async()=>{let s;return o?s=r.clientContextParams?.[e]??r[e]??r[t]:s=r[e]??r[t],typeof s=="function"?s():s},"configProvider");return e==="credentialScope"||t==="CredentialScope"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.credentialScope??s?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{let s=typeof r.credentials=="function"?await r.credentials():r.credentials;return s?.accountId??s?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(r.isCustomEndpoint===!1)return;let s=await n();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){let{protocol:a,hostname:c,port:u,path:l}=s;return`${a}//${c}${u?":"+u:""}${l}`}}return s}:n},"createConfigValueProvider"),YD=i(e=>{if(typeof e=="object"){if("url"in e){let t=rW.parseUrl(e.url);if(e.headers){t.headers={};for(let[r,o]of Object.entries(e.headers))t.headers[r.toLowerCase()]=o.join(", ")}return t}return e}return rW.parseUrl(e)},"toEndpointV1"),oW=i(async(e,t,r,o)=>{if(!r.isCustomEndpoint){let a;r.serviceConfiguredEndpoint?a=await r.serviceConfiguredEndpoint():a=await nW.getEndpointFromConfig(r.serviceId),a&&(r.endpoint=()=>Promise.resolve(YD(a)),r.isCustomEndpoint=!0)}let n=await iW(e,t,r);if(typeof r.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");let s=r.endpointProvider(n,o);if(r.isCustomEndpoint&&r.endpoint){let a=await r.endpoint();if(a?.headers){s.headers??={};for(let[c,u]of Object.entries(a.headers))s.headers[c]=Array.isArray(u)?u:[u]}}return s},"getEndpointFromInstructions"),iW=i(async(e,t,r)=>{let o={},n=t?.getEndpointParameterInstructions?.()||{};for(let[s,a]of Object.entries(n))switch(a.type){case"staticContextParams":o[s]=a.value;break;case"contextParams":o[s]=e[a.name];break;case"clientContextParams":case"builtInParams":o[s]=await Uxe(a.name,s,r,a.type!=="builtInParams")();break;case"operationContextParams":o[s]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(n).length===0&&Object.assign(o,r),String(r.serviceId).toLowerCase()==="s3"&&await Nxe(o),o},"resolveParams"),sW=i(({config:e,instructions:t})=>(r,o)=>async n=>{e.isCustomEndpoint&&Oxe.setFeature(o,"ENDPOINT_OVERRIDE","N");let s=await oW(n.input,{getEndpointParameterInstructions(){return t}},{...e},o);o.endpointV2=s,o.authSchemes=s.properties?.authSchemes;let a=o.authSchemes?.[0];if(a){o.signing_region=a.signingRegion,o.signing_service=a.signingName;let u=BS.getSmithyContext(o)?.selectedHttpAuthScheme?.httpAuthOption;u&&(u.signingProperties=Object.assign(u.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return r({...n})},"endpointMiddleware"),aW={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:Dxe.serializerMiddlewareOption.name},jxe=i((e,t)=>({applyToStack:i(r=>{r.addRelativeTo(sW({config:e,instructions:t}),aW)},"applyToStack")}),"getEndpointPlugin"),Bxe=i(e=>{let t=e.tls??!0,{endpoint:r,useDualstackEndpoint:o,useFipsEndpoint:n}=e,s=r!=null?async()=>YD(await BS.normalizeProvider(r)()):void 0,c=Object.assign(e,{endpoint:s,tls:t,isCustomEndpoint:!!r,useDualstackEndpoint:BS.normalizeProvider(o??!1),useFipsEndpoint:BS.normalizeProvider(n??!1)}),u;return c.serviceConfiguredEndpoint=async()=>(e.serviceId&&!u&&(u=nW.getEndpointFromConfig(e.serviceId)),u),c},"resolveEndpointConfig"),Vxe=i(e=>{let{endpoint:t}=e;return t===void 0&&(e.endpoint=async()=>{throw new Error("@smithy/middleware-endpoint: (default endpointRuleSet) endpoint is not set - you must configure an endpoint.")}),e},"resolveEndpointRequiredConfig");ri.endpointMiddleware=sW;ri.endpointMiddlewareOptions=aW;ri.getEndpointFromInstructions=oW;ri.getEndpointPlugin=jxe;ri.resolveEndpointConfig=Bxe;ri.resolveEndpointRequiredConfig=Vxe;ri.resolveParams=iW;ri.toEndpointV1=YD});var dW=z(lW=>{"use strict";var Ra=i((e,t)=>{let r=[];if(e&&r.push(e),t)for(let o of t)r.push(o);return r},"getAllAliases"),Xi=i((e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,"getMiddlewareNameWithAliases"),QD=i(()=>{let e=[],t=[],r=!1,o=new Set,n=i(f=>f.sort((y,m)=>cW[m.step]-cW[y.step]||uW[m.priority||"normal"]-uW[y.priority||"normal"]),"sort"),s=i(f=>{let y=!1,m=i(_=>{let b=Ra(_.name,_.aliases);if(b.includes(f)){y=!0;for(let A of b)o.delete(A);return!1}return!0},"filterCb");return e=e.filter(m),t=t.filter(m),y},"removeByName"),a=i(f=>{let y=!1,m=i(_=>{if(_.middleware===f){y=!0;for(let b of Ra(_.name,_.aliases))o.delete(b);return!1}return!0},"filterCb");return e=e.filter(m),t=t.filter(m),y},"removeByReference"),c=i(f=>(e.forEach(y=>{f.add(y.middleware,{...y})}),t.forEach(y=>{f.addRelativeTo(y.middleware,{...y})}),f.identifyOnResolve?.(p.identifyOnResolve()),f),"cloneTo"),u=i(f=>{let y=[];return f.before.forEach(m=>{m.before.length===0&&m.after.length===0?y.push(m):y.push(...u(m))}),y.push(f),f.after.reverse().forEach(m=>{m.before.length===0&&m.after.length===0?y.push(m):y.push(...u(m))}),y},"expandRelativeMiddlewareList"),l=i((f=!1)=>{let y=[],m=[],_={};return e.forEach(A=>{let I={...A,before:[],after:[]};for(let R of Ra(I.name,I.aliases))_[R]=I;y.push(I)}),t.forEach(A=>{let I={...A,before:[],after:[]};for(let R of Ra(I.name,I.aliases))_[R]=I;m.push(I)}),m.forEach(A=>{if(A.toMiddleware){let I=_[A.toMiddleware];if(I===void 0){if(f)return;throw new Error(`${A.toMiddleware} is not found when adding ${Xi(A.name,A.aliases)} middleware ${A.relation} ${A.toMiddleware}`)}A.relation==="after"&&I.after.push(A),A.relation==="before"&&I.before.push(A)}}),n(y).map(u).reduce((A,I)=>(A.push(...I),A),[])},"getMiddlewareList"),p={add:i((f,y={})=>{let{name:m,override:_,aliases:b}=y,A={step:"initialize",priority:"normal",middleware:f,...y},I=Ra(m,b);if(I.length>0){if(I.some(R=>o.has(R))){if(!_)throw new Error(`Duplicate middleware name '${Xi(m,b)}'`);for(let R of I){let j=e.findIndex(ae=>ae.name===R||ae.aliases?.some(fe=>fe===R));if(j===-1)continue;let ee=e[j];if(ee.step!==A.step||A.priority!==ee.priority)throw new Error(`"${Xi(ee.name,ee.aliases)}" middleware with ${ee.priority} priority in ${ee.step} step cannot be overridden by "${Xi(m,b)}" middleware with ${A.priority} priority in ${A.step} step.`);e.splice(j,1)}}for(let R of I)o.add(R)}e.push(A)},"add"),addRelativeTo:i((f,y)=>{let{name:m,override:_,aliases:b}=y,A={middleware:f,...y},I=Ra(m,b);if(I.length>0){if(I.some(R=>o.has(R))){if(!_)throw new Error(`Duplicate middleware name '${Xi(m,b)}'`);for(let R of I){let j=t.findIndex(ae=>ae.name===R||ae.aliases?.some(fe=>fe===R));if(j===-1)continue;let ee=t[j];if(ee.toMiddleware!==A.toMiddleware||ee.relation!==A.relation)throw new Error(`"${Xi(ee.name,ee.aliases)}" middleware ${ee.relation} "${ee.toMiddleware}" middleware cannot be overridden by "${Xi(m,b)}" middleware ${A.relation} "${A.toMiddleware}" middleware.`);t.splice(j,1)}}for(let R of I)o.add(R)}t.push(A)},"addRelativeTo"),clone:i(()=>c(QD()),"clone"),use:i(f=>{f.applyToStack(p)},"use"),remove:i(f=>typeof f=="string"?s(f):a(f),"remove"),removeByTag:i(f=>{let y=!1,m=i(_=>{let{tags:b,name:A,aliases:I}=_;if(b&&b.includes(f)){let R=Ra(A,I);for(let j of R)o.delete(j);return y=!0,!1}return!0},"filterCb");return e=e.filter(m),t=t.filter(m),y},"removeByTag"),concat:i(f=>{let y=c(QD());return y.use(f),y.identifyOnResolve(r||y.identifyOnResolve()||(f.identifyOnResolve?.()??!1)),y},"concat"),applyToStack:c,identify:i(()=>l(!0).map(f=>{let y=f.step??f.relation+" "+f.toMiddleware;return Xi(f.name,f.aliases)+" - "+y}),"identify"),identifyOnResolve(f){return typeof f=="boolean"&&(r=f),r},resolve:i((f,y)=>{for(let m of l().map(_=>_.middleware).reverse())f=m(f,y);return r&&console.log(p.identify()),f},"resolve")};return p},"constructStack"),cW={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},uW={high:3,normal:2,low:1};lW.constructStack=QD});var ye=z(Ke=>{"use strict";var fW=dW(),VS=zo(),Hxe=(je(),pe(Fp)),HS=(rr(),pe(V$)),aN=(Rr(),pe(O6)),tN=class{static{i(this,"Client")}config;middlewareStack=fW.constructStack();initConfig;handlers;constructor(t){this.config=t;let{protocol:r,protocolSettings:o}=t;o&&typeof r=="function"&&(t.protocol=new r(o))}send(t,r,o){let n=typeof r!="function"?r:void 0,s=typeof r=="function"?r:o,a=n===void 0&&this.config.cacheMiddleware===!0,c;if(a){this.handlers||(this.handlers=new WeakMap);let u=this.handlers;u.has(t.constructor)?c=u.get(t.constructor):(c=t.resolveMiddleware(this.middlewareStack,this.config,n),u.set(t.constructor,c))}else delete this.handlers,c=t.resolveMiddleware(this.middlewareStack,this.config,n);if(s)c(t).then(u=>s(null,u.output),u=>s(u)).catch(()=>{});else return c(t).then(u=>u.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}},eN="***SensitiveInformation***";function rN(e,t){if(t==null)return t;let r=Hxe.NormalizedSchema.of(e);if(r.getMergedTraits().sensitive)return eN;if(r.isListSchema()){if(!!r.getValueSchema().getMergedTraits().sensitive)return eN}else if(r.isMapSchema()){if(!!r.getKeySchema().getMergedTraits().sensitive||!!r.getValueSchema().getMergedTraits().sensitive)return eN}else if(r.isStructSchema()&&typeof t=="object"){let o=t,n={};for(let[s,a]of r.structIterator())o[s]!=null&&(n[s]=rN(a,o[s]));return n}return t}i(rN,"schemaLogFilter");var GS=class{static{i(this,"Command")}middlewareStack=fW.constructStack();schema;static classBuilder(){return new nN}resolveMiddlewareWithContext(t,r,o,{middlewareFn:n,clientName:s,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:u,smithyContext:l,additionalContext:p,CommandCtor:f}){for(let I of n.bind(this)(f,t,r,o))this.middlewareStack.use(I);let y=t.concat(this.middlewareStack),{logger:m}=r,_={logger:m,clientName:s,commandName:a,inputFilterSensitiveLog:c,outputFilterSensitiveLog:u,[VS.SMITHY_CONTEXT_KEY]:{commandInstance:this,...l},...p},{requestHandler:b}=r,A=o??{};return l.eventStream&&(A={isEventStream:!0,...A}),y.resolve(I=>b.handle(I.request,A),_)}},nN=class{static{i(this,"ClassBuilder")}_init=i(()=>{},"_init");_ep={};_middlewareFn=i(()=>[],"_middlewareFn");_commandName="";_clientName="";_additionalContext={};_smithyContext={};_inputFilterSensitiveLog=void 0;_outputFilterSensitiveLog=void 0;_serializer=null;_deserializer=null;_operationSchema;init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,r,o={}){return this._smithyContext={service:t,operation:r,...o},this}c(t={}){return this._additionalContext=t,this}n(t,r){return this._clientName=t,this._commandName=r,this}f(t=o=>o,r=o=>o){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=r,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){let t=this,r;return r=class extends GS{static{i(this,"CommandRef")}input;static getEndpointParameterInstructions(){return t._ep}constructor(...[o]){super(),this.input=o??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(o,n,s){let a=t._operationSchema,c=a?.[4]??a?.input,u=a?.[5]??a?.output;return this.resolveMiddlewareWithContext(o,n,s,{CommandCtor:r,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog??(a?rN.bind(null,c):l=>l),outputFilterSensitiveLog:t._outputFilterSensitiveLog??(a?rN.bind(null,u):l=>l),smithyContext:t._smithyContext,additionalContext:t._additionalContext})}serialize=t._serializer;deserialize=t._deserializer}}},Gxe="***SensitiveInformation***",qxe=i((e,t,r)=>{for(let[s,a]of Object.entries(e)){let c=i(async function(l,p,f){let y=new a(l);if(typeof p=="function")this.send(y,p);else if(typeof f=="function"){if(typeof p!="object")throw new Error(`Expected http options but got ${typeof p}`);this.send(y,p||{},f)}else return this.send(y,p)},"methodImpl"),u=(s[0].toLowerCase()+s.slice(1)).replace(/Command$/,"");t.prototype[u]=c}let{paginators:o={},waiters:n={}}=r??{};for(let[s,a]of Object.entries(o))t.prototype[s]===void 0&&(t.prototype[s]=function(c={},u,...l){return a({...u,client:this},c,...l)});for(let[s,a]of Object.entries(n))t.prototype[s]===void 0&&(t.prototype[s]=async function(c={},u,...l){let p=u;return typeof u=="number"&&(p={maxWaitTime:u}),a({...p,client:this},c,...l)})},"createAggregatedClient"),oN=class e extends Error{static{i(this,"ServiceException")}$fault;$response;$retryable;$metadata;constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;let r=t;return e.prototype.isPrototypeOf(r)||!!r.$fault&&!!r.$metadata&&(r.$fault==="client"||r.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;let r=t;return this===e?e.isInstance(t):e.isInstance(t)?r.name&&this.name?this.prototype.isPrototypeOf(t)||r.name===this.name:this.prototype.isPrototypeOf(t):!1}},mW=i((e,t={})=>{Object.entries(t).filter(([,o])=>o!==void 0).forEach(([o,n])=>{(e[o]==null||e[o]==="")&&(e[o]=n)});let r=e.message||e.Message||"UnknownError";return e.message=r,delete e.Message,e},"decorateServiceException"),gW=i(({output:e,parsedBody:t,exceptionCtor:r,errorCode:o})=>{let n=Zxe(e),s=n.httpStatusCode?n.httpStatusCode+"":void 0,a=new r({name:t?.code||t?.Code||o||s||"UnknownError",$fault:"client",$metadata:n});throw mW(a,t)},"throwDefaultError"),Wxe=i(e=>({output:t,parsedBody:r,errorCode:o})=>{gW({output:t,parsedBody:r,exceptionCtor:e,errorCode:o})},"withBaseException"),Zxe=i(e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),"deserializeMetadata"),Kxe=i(e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},"loadConfigsForDefaultMode"),pW=!1,Xxe=i(e=>{e&&!pW&&parseInt(e.substring(1,e.indexOf(".")))<16&&(pW=!0)},"emitWarningIfUnsupportedVersion"),hW=Object.values(VS.AlgorithmId),Jxe=i(e=>{let t=[];for(let r in VS.AlgorithmId){let o=VS.AlgorithmId[r];e[o]!==void 0&&t.push({algorithmId:i(()=>o,"algorithmId"),checksumConstructor:i(()=>e[o],"checksumConstructor")})}for(let[r,o]of Object.entries(e.checksumAlgorithms??{}))t.push({algorithmId:i(()=>r,"algorithmId"),checksumConstructor:i(()=>o,"checksumConstructor")});return{addChecksumAlgorithm(r){e.checksumAlgorithms=e.checksumAlgorithms??{};let o=r.algorithmId(),n=r.checksumConstructor();hW.includes(o)?e.checksumAlgorithms[o.toUpperCase()]=n:e.checksumAlgorithms[o]=n,t.push(r)},checksumAlgorithms(){return t}}},"getChecksumConfiguration"),Yxe=i(e=>{let t={};return e.checksumAlgorithms().forEach(r=>{let o=r.algorithmId();hW.includes(o)&&(t[o]=r.checksumConstructor())}),t},"resolveChecksumRuntimeConfig"),Qxe=i(e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),"getRetryConfiguration"),ebe=i(e=>{let t={};return t.retryStrategy=e.retryStrategy(),t},"resolveRetryRuntimeConfig"),yW=i(e=>Object.assign(Jxe(e),Qxe(e)),"getDefaultExtensionConfiguration"),tbe=yW,rbe=i(e=>Object.assign(Yxe(e),ebe(e)),"resolveDefaultRuntimeConfig"),nbe=i(e=>Array.isArray(e)?e:[e],"getArrayIfSingleItem"),EW=i(e=>{let t="#text";for(let r in e)e.hasOwnProperty(r)&&e[r][t]!==void 0?e[r]=e[r][t]:typeof e[r]=="object"&&e[r]!==null&&(e[r]=EW(e[r]));return e},"getValueFromTextNode"),obe=i(e=>e!=null,"isSerializableHeaderValue"),iN=class{static{i(this,"NoOpLogger")}trace(){}debug(){}info(){}warn(){}error(){}};function SW(e,t,r){let o,n,s;if(typeof t>"u"&&typeof r>"u")o={},s=e;else{if(o=e,typeof t=="function")return n=t,s=r,abe(o,n,s);s=t}for(let a of Object.keys(s)){if(!Array.isArray(s[a])){o[a]=s[a];continue}_W(o,null,s,a)}return o}i(SW,"map");var ibe=i(e=>{let t={};for(let[r,o]of Object.entries(e||{}))t[r]=[,o];return t},"convertMap"),sbe=i((e,t)=>{let r={};for(let o in t)_W(r,e,t,o);return r},"take"),abe=i((e,t,r)=>SW(e,Object.entries(r).reduce((o,[n,s])=>(Array.isArray(s)?o[n]=s:typeof s=="function"?o[n]=[t,s()]:o[n]=[t,s],o),{})),"mapWithFilter"),_W=i((e,t,r,o)=>{if(t!==null){let a=r[o];typeof a=="function"&&(a=[,a]);let[c=cbe,u=ube,l=o]=a;(typeof c=="function"&&c(t[l])||typeof c!="function"&&c)&&(e[o]=u(t[l]));return}let[n,s]=r[o];if(typeof s=="function"){let a,c=n===void 0&&(a=s())!=null,u=typeof n=="function"&&!!n(void 0)||typeof n!="function"&&!!n;c?e[o]=a:u&&(e[o]=s())}else{let a=n===void 0&&s!=null,c=typeof n=="function"&&!!n(s)||typeof n!="function"&&!!n;(a||c)&&(e[o]=s)}},"applyInstruction"),cbe=i(e=>e!=null,"nonNullish"),ube=i(e=>e,"pass"),lbe=i(e=>{if(e!==e)return"NaN";switch(e){case 1/0:return"Infinity";case-1/0:return"-Infinity";default:return e}},"serializeFloat"),dbe=i(e=>e.toISOString().replace(".000Z","Z"),"serializeDateTime"),sN=i(e=>{if(e==null)return{};if(Array.isArray(e))return e.filter(t=>t!=null).map(sN);if(typeof e=="object"){let t={};for(let r of Object.keys(e))e[r]!=null&&(t[r]=sN(e[r]));return t}return e},"_json");Ke.collectBody=aN.collectBody;Ke.extendedEncodeURIComponent=aN.extendedEncodeURIComponent;Ke.resolvedPath=aN.resolvedPath;Ke.Client=tN;Ke.Command=GS;Ke.NoOpLogger=iN;Ke.SENSITIVE_STRING=Gxe;Ke.ServiceException=oN;Ke._json=sN;Ke.convertMap=ibe;Ke.createAggregatedClient=qxe;Ke.decorateServiceException=mW;Ke.emitWarningIfUnsupportedVersion=Xxe;Ke.getArrayIfSingleItem=nbe;Ke.getDefaultClientConfiguration=tbe;Ke.getDefaultExtensionConfiguration=yW;Ke.getValueFromTextNode=EW;Ke.isSerializableHeaderValue=obe;Ke.loadConfigsForDefaultMode=Kxe;Ke.map=SW;Ke.resolveDefaultRuntimeConfig=rbe;Ke.serializeDateTime=dbe;Ke.serializeFloat=lbe;Ke.take=sbe;Ke.throwDefaultError=gW;Ke.withBaseException=Wxe;Object.prototype.hasOwnProperty.call(HS,"__proto__")&&!Object.prototype.hasOwnProperty.call(Ke,"__proto__")&&Object.defineProperty(Ke,"__proto__",{enumerable:!0,value:HS.__proto__});Object.keys(HS).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(Ke,e)&&(Ke[e]=HS[e])})});var vW=z(qS=>{"use strict";Object.defineProperty(qS,"__esModule",{value:!0});qS.isStreamingPayload=void 0;var pbe=require("stream"),fbe=i(e=>e?.body instanceof pbe.Readable||typeof ReadableStream<"u"&&e?.body instanceof ReadableStream,"isStreamingPayload");qS.isStreamingPayload=fbe});var en=z(Nt=>{"use strict";var mt=uo(),Nu=Ze(),Ji=fO(),PW=N$(),xW=Ft(),mbe=ye(),gbe=vW(),hbe=(rr(),pe(V$)),CW=i(e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),"asSdkError"),ybe=i((e,t)=>{let r=e,o=mt.NO_RETRY_INCREMENT,n=mt.RETRY_COST,s=mt.TIMEOUT_RETRY_COST,a=e,c=i(f=>f.name==="TimeoutError"?s:n,"getCapacityAmount"),u=i(f=>c(f)<=a,"hasRetryTokens");return Object.freeze({hasRetryTokens:u,retrieveRetryTokens:i(f=>{if(!u(f))throw new Error("No retry token available");let y=c(f);return a-=y,y},"retrieveRetryTokens"),releaseRetryTokens:i(f=>{a+=f??o,a=Math.min(a,r)},"releaseRetryTokens")})},"getDefaultRetryQuota"),AW=i((e,t)=>Math.floor(Math.min(mt.MAXIMUM_RETRY_DELAY,Math.random()*2**t*e)),"defaultDelayDecider"),TW=i(e=>e?Ji.isRetryableByTrait(e)||Ji.isClockSkewError(e)||Ji.isThrottlingError(e)||Ji.isTransientError(e):!1,"defaultRetryDecider"),WS=class{static{i(this,"StandardRetryStrategy")}maxAttemptsProvider;retryDecider;delayDecider;retryQuota;mode=mt.RETRY_MODES.STANDARD;constructor(t,r){this.maxAttemptsProvider=t,this.retryDecider=r?.retryDecider??TW,this.delayDecider=r?.delayDecider??AW,this.retryQuota=r?.retryQuota??ybe(mt.INITIAL_RETRY_TOKENS)}shouldRetry(t,r,o){return r<o&&this.retryDecider(t)&&this.retryQuota.hasRetryTokens(t)}async getMaxAttempts(){let t;try{t=await this.maxAttemptsProvider()}catch{t=mt.DEFAULT_MAX_ATTEMPTS}return t}async retry(t,r,o){let n,s=0,a=0,c=await this.getMaxAttempts(),{request:u}=r;for(Nu.HttpRequest.isInstance(u)&&(u.headers[mt.INVOCATION_ID_HEADER]=PW.v4());;)try{Nu.HttpRequest.isInstance(u)&&(u.headers[mt.REQUEST_HEADER]=`attempt=${s+1}; max=${c}`),o?.beforeRequest&&await o.beforeRequest();let{response:l,output:p}=await t(r);return o?.afterRequest&&o.afterRequest(l),this.retryQuota.releaseRetryTokens(n),p.$metadata.attempts=s+1,p.$metadata.totalRetryDelay=a,{response:l,output:p}}catch(l){let p=CW(l);if(s++,this.shouldRetry(p,s,c)){n=this.retryQuota.retrieveRetryTokens(p);let f=this.delayDecider(Ji.isThrottlingError(p)?mt.THROTTLING_RETRY_DELAY_BASE:mt.DEFAULT_RETRY_DELAY_BASE,s),y=Ebe(p.$response),m=Math.max(y||0,f);a+=m,await new Promise(_=>setTimeout(_,m));continue}throw p.$metadata||(p.$metadata={}),p.$metadata.attempts=s,p.$metadata.totalRetryDelay=a,p}}},Ebe=i(e=>{if(!Nu.HttpResponse.isInstance(e))return;let t=Object.keys(e.headers).find(s=>s.toLowerCase()==="retry-after");if(!t)return;let r=e.headers[t],o=Number(r);return Number.isNaN(o)?new Date(r).getTime()-Date.now():o*1e3},"getDelayFromRetryAfterHeader"),cN=class extends WS{static{i(this,"AdaptiveRetryStrategy")}rateLimiter;constructor(t,r){let{rateLimiter:o,...n}=r??{};super(t,n),this.rateLimiter=o??new mt.DefaultRateLimiter,this.mode=mt.RETRY_MODES.ADAPTIVE}async retry(t,r){return super.retry(t,r,{beforeRequest:i(async()=>this.rateLimiter.getSendToken(),"beforeRequest"),afterRequest:i(o=>{this.rateLimiter.updateClientSendingRate(o)},"afterRequest")})}},uN="AWS_MAX_ATTEMPTS",lN="max_attempts",Sbe={environmentVariableSelector:i(e=>{let t=e[uN];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Environment variable ${uN} mast be a number, got "${t}"`);return r},"environmentVariableSelector"),configFileSelector:i(e=>{let t=e[lN];if(!t)return;let r=parseInt(t);if(Number.isNaN(r))throw new Error(`Shared config file entry ${lN} mast be a number, got "${t}"`);return r},"configFileSelector"),default:mt.DEFAULT_MAX_ATTEMPTS},_be=i(e=>{let{retryStrategy:t,retryMode:r}=e,o=xW.normalizeProvider(e.maxAttempts??mt.DEFAULT_MAX_ATTEMPTS),n=t?Promise.resolve(t):void 0,s=i(async()=>await xW.normalizeProvider(r)()===mt.RETRY_MODES.ADAPTIVE?new mt.AdaptiveRetryStrategy(o):new mt.StandardRetryStrategy(o),"getDefault");return Object.assign(e,{maxAttempts:o,retryStrategy:i(()=>n??=s(),"retryStrategy")})},"resolveRetryConfig"),IW="AWS_RETRY_MODE",wW="retry_mode",vbe={environmentVariableSelector:i(e=>e[IW],"environmentVariableSelector"),configFileSelector:i(e=>e[wW],"configFileSelector"),default:mt.DEFAULT_RETRY_MODE},RW=i(()=>e=>async t=>{let{request:r}=t;return Nu.HttpRequest.isInstance(r)&&(delete r.headers[mt.INVOCATION_ID_HEADER],delete r.headers[mt.REQUEST_HEADER]),e(t)},"omitRetryHeadersMiddleware"),$W={name:"omitRetryHeadersMiddleware",tags:["RETRY","HEADERS","OMIT_RETRY_HEADERS"],relation:"before",toMiddleware:"awsAuthMiddleware",override:!0},xbe=i(e=>({applyToStack:i(t=>{t.addRelativeTo(RW(),$W)},"applyToStack")}),"getOmitRetryHeadersPlugin");function OW(e,t){if(Nu.HttpResponse.isInstance(e))for(let r of Object.keys(e.headers)){let o=r.toLowerCase();if(o==="retry-after"){let n=e.headers[r],s=NaN;if(n.endsWith("GMT"))try{s=(hbe.parseRfc7231DateTime(n).getTime()-Date.now())/1e3}catch(a){t?.trace?.("Failed to parse retry-after header"),t?.trace?.(a)}else n.match(/ GMT, ((\d+)|(\d+\.\d+))$/)?s=Number(n.match(/ GMT, ([\d.]+)$/)?.[1]):n.match(/^((\d+)|(\d+\.\d+))$/)?s=Number(n):Date.parse(n)>=Date.now()&&(s=(Date.parse(n)-Date.now())/1e3);return isNaN(s)?void 0:new Date(Date.now()+s*1e3)}else if(o==="x-amz-retry-after"){let n=e.headers[r],s=Number(n);if(isNaN(s)){t?.trace?.(`Failed to parse x-amz-retry-after=${n}`);return}return new Date(Date.now()+s)}}}i(OW,"parseRetryAfterHeader");function bbe(e,t){return OW(e,t)}i(bbe,"getRetryAfterHint");var DW=i(e=>(t,r)=>async o=>{let n=await e.retryStrategy(),s=await e.maxAttempts();if(Pbe(n)){n=n;let a=await n.acquireInitialRetryToken((r.partition_id??"")+(r.__retryLongPoll?":longpoll":"")),c=new Error,u=0,l=0,{request:p}=o,f=Nu.HttpRequest.isInstance(p);for(f&&(p.headers[mt.INVOCATION_ID_HEADER]=PW.v4());;)try{f&&(p.headers[mt.REQUEST_HEADER]=`attempt=${u+1}; max=${s}`);let{response:y,output:m}=await t(o);return n.recordSuccess(a),m.$metadata.attempts=u+1,m.$metadata.totalRetryDelay=l,{response:y,output:m}}catch(y){let m=Cbe(y,e.logger);if(c=CW(y),f&&gbe.isStreamingPayload(p))throw(r.logger instanceof mbe.NoOpLogger?console:r.logger)?.warn("An error was encountered in a non-retryable streaming request."),c;try{a=await n.refreshRetryTokenForRetry(a,m)}catch(b){throw typeof b.$backoff=="number"&&await bW(b.$backoff),c.$metadata||(c.$metadata={}),c.$metadata.attempts=u+1,c.$metadata.totalRetryDelay=l,c}u=a.getRetryCount();let _=a.getRetryDelay();l+=_,await bW(_)}}else return n=n,n?.mode&&(r.userAgent=[...r.userAgent||[],["cfg/retry-mode",n.mode]]),n.retry(t,o)},"retryMiddleware"),bW=i(e=>new Promise(t=>setTimeout(t,e)),"cooldown"),Pbe=i(e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u","isRetryStrategyV2"),Cbe=i((e,t)=>{let r={error:e,errorType:Abe(e)},o=OW(e.$response,t);return o&&(r.retryAfterHint=o),r},"getRetryErrorInfo"),Abe=i(e=>Ji.isThrottlingError(e)?"THROTTLING":Ji.isTransientError(e)?"TRANSIENT":Ji.isServerError(e)?"SERVER_ERROR":"CLIENT_ERROR","getRetryErrorType"),NW={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Tbe=i(e=>({applyToStack:i(t=>{t.add(DW(e),NW)},"applyToStack")}),"getRetryPlugin");Nt.AdaptiveRetryStrategy=cN;Nt.CONFIG_MAX_ATTEMPTS=lN;Nt.CONFIG_RETRY_MODE=wW;Nt.ENV_MAX_ATTEMPTS=uN;Nt.ENV_RETRY_MODE=IW;Nt.NODE_MAX_ATTEMPT_CONFIG_OPTIONS=Sbe;Nt.NODE_RETRY_MODE_CONFIG_OPTIONS=vbe;Nt.StandardRetryStrategy=WS;Nt.defaultDelayDecider=AW;Nt.defaultRetryDecider=TW;Nt.getOmitRetryHeadersPlugin=xbe;Nt.getRetryAfterHint=bbe;Nt.getRetryPlugin=Tbe;Nt.omitRetryHeadersMiddleware=RW;Nt.omitRetryHeadersMiddlewareOptions=$W;Nt.resolveRetryConfig=_be;Nt.retryMiddleware=DW;Nt.retryMiddlewareOptions=NW});var kW,dN,MW=v(()=>{kW=w(Ze()),dN=i(e=>kW.HttpResponse.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,"getDateHeader")});var ku,pN=v(()=>{ku=i(e=>new Date(Date.now()+e),"getSkewCorrectedDate")});var LW,zW=v(()=>{pN();LW=i((e,t)=>Math.abs(ku(t).getTime()-e)>=3e5,"isClockSkewed")});var fN,FW=v(()=>{zW();fN=i((e,t)=>{let r=Date.parse(e);return LW(r,t)?r-Date.now():t},"getUpdatedSystemClockOffset")});var mN=v(()=>{MW();pN();FW()});var UW,_f,Mu,Bt,gN,hN=v(()=>{UW=w(Ze());mN();_f=i((e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},"throwSigningPropertyError"),Mu=i(async e=>{let t=_f("context",e.context),r=_f("config",e.config),o=t.endpointV2?.properties?.authSchemes?.[0],s=await _f("signer",r.signer)(o),a=e?.signingRegion,c=e?.signingRegionSet,u=e?.signingName;return{config:r,signer:s,signingRegion:a,signingRegionSet:c,signingName:u}},"validateSigningProperties"),Bt=class{static{i(this,"AwsSdkSigV4Signer")}async sign(t,r,o){if(!UW.HttpRequest.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let n=await Mu(o),{config:s,signer:a}=n,{signingRegion:c,signingName:u}=n,l=o.context;if(l?.authSchemes?.length??!1){let[f,y]=l.authSchemes;f?.name==="sigv4a"&&y?.name==="sigv4"&&(c=y?.signingRegion??c,u=y?.signingName??u)}return await a.sign(t,{signingDate:ku(s.systemClockOffset),signingRegion:c,signingService:u})}errorHandler(t){return r=>{let o=r.ServerTime??dN(r.$response);if(o){let n=_f("config",t.config),s=n.systemClockOffset;n.systemClockOffset=fN(o,n.systemClockOffset),n.systemClockOffset!==s&&r.$metadata&&(r.$metadata.clockSkewCorrected=!0)}throw r}}successHandler(t,r){let o=dN(t);if(o){let n=_f("config",r.config);n.systemClockOffset=fN(o,n.systemClockOffset)}}},gN=Bt});var jW,ni,BW=v(()=>{jW=w(Ze());mN();hN();ni=class extends Bt{static{i(this,"AwsSdkSigV4ASigner")}async sign(t,r,o){if(!jW.HttpRequest.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");let{config:n,signer:s,signingRegion:a,signingRegionSet:c,signingName:u}=await Mu(o),p=(await n.sigv4aSigningRegionSet?.()??c??[a]).join(",");return await s.sign(t,{signingDate:ku(n.systemClockOffset),signingRegion:p,signingService:u})}}});var yN,VW=v(()=>{yN=i(e=>typeof e=="string"&&e.length>0?e.split(",").map(t=>t.trim()):[],"getArrayForCommaSeparatedString")});var ZS,EN=v(()=>{ZS=i(e=>`AWS_BEARER_TOKEN_${e.replace(/[\s-]/g,"_").toUpperCase()}`,"getBearerTokenEnvKey")});var HW,GW,fo,qW=v(()=>{VW();EN();HW="AWS_AUTH_SCHEME_PREFERENCE",GW="auth_scheme_preference",fo={environmentVariableSelector:i((e,t)=>{if(t?.signingName&&ZS(t.signingName)in e)return["httpBearerAuth"];if(HW in e)return yN(e[HW])},"environmentVariableSelector"),configFileSelector:i(e=>{if(GW in e)return yN(e[GW])},"configFileSelector"),default:[]}});var SN,KS,XS,WW=v(()=>{Ut();SN=w(sr()),KS=i(e=>(e.sigv4aSigningRegionSet=Li(e.sigv4aSigningRegionSet),e),"resolveAwsSdkSigV4AConfig"),XS={environmentVariableSelector(e){if(e.AWS_SIGV4A_SIGNING_REGION_SET)return e.AWS_SIGV4A_SIGNING_REGION_SET.split(",").map(t=>t.trim());throw new SN.ProviderError("AWS_SIGV4A_SIGNING_REGION_SET not set in env.",{tryNextLink:!0})},configFileSelector(e){if(e.sigv4a_signing_region_set)return(e.sigv4a_signing_region_set??"").split(",").map(t=>t.trim());throw new SN.ProviderError("sigv4a_signing_region_set not set in profile.",{tryNextLink:!0})},default:void 0}});var o_=z(Ne=>{"use strict";var Yi=Np(),$a=It(),Ibe=jy(),YW=Ze(),ZW=Ft(),JS=eE(),QW="X-Amz-Algorithm",eZ="X-Amz-Credential",CN="X-Amz-Date",tZ="X-Amz-SignedHeaders",rZ="X-Amz-Expires",AN="X-Amz-Signature",TN="X-Amz-Security-Token",wbe="X-Amz-Region-Set",IN="authorization",wN=CN.toLowerCase(),nZ="date",oZ=[IN,wN,nZ],iZ=AN.toLowerCase(),r_="x-amz-content-sha256",sZ=TN.toLowerCase(),Rbe="host",aZ={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},cZ=/^proxy-/,uZ=/^sec-/,$be=[/^proxy-/i,/^sec-/i],YS="AWS4-HMAC-SHA256",Obe="AWS4-ECDSA-P256-SHA256",lZ="AWS4-HMAC-SHA256-PAYLOAD",dZ="UNSIGNED-PAYLOAD",pZ=50,RN="aws4_request",fZ=3600*24*7,Lu={},QS=[],e_=i((e,t,r)=>`${e}/${t}/${r}/${RN}`,"createScope"),mZ=i(async(e,t,r,o,n)=>{let s=await KW(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${o}:${n}:${Yi.toHex(s)}:${t.sessionToken}`;if(a in Lu)return Lu[a];for(QS.push(a);QS.length>pZ;)delete Lu[QS.shift()];let c=`AWS4${t.secretAccessKey}`;for(let u of[r,o,n,RN])c=await KW(e,c,u);return Lu[a]=c},"getSigningKey"),Dbe=i(()=>{QS.length=0,Object.keys(Lu).forEach(e=>{delete Lu[e]})},"clearCredentialCache"),KW=i((e,t,r)=>{let o=new e(t);return o.update($a.toUint8Array(r)),o.digest()},"hmac"),_N=i(({headers:e},t,r)=>{let o={};for(let n of Object.keys(e).sort()){if(e[n]==null)continue;let s=n.toLowerCase();(s in aZ||t?.has(s)||cZ.test(s)||uZ.test(s))&&(!r||r&&!r.has(s))||(o[s]=e[n].trim().replace(/\s+/g," "))}return o},"getCanonicalHeaders"),t_=i(async({headers:e,body:t},r)=>{for(let o of Object.keys(e))if(o.toLowerCase()===r_)return e[o];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||Ibe.isArrayBuffer(t)){let o=new r;return o.update($a.toUint8Array(t)),Yi.toHex(await o.digest())}return dZ},"getPayloadHash"),vN=class{static{i(this,"HeaderFormatter")}format(t){let r=[];for(let s of Object.keys(t)){let a=$a.fromUtf8(s);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}let o=new Uint8Array(r.reduce((s,a)=>s+a.byteLength,0)),n=0;for(let s of r)o.set(s,n),n+=s.byteLength;return o}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":let o=new DataView(new ArrayBuffer(5));return o.setUint8(0,4),o.setInt32(1,t.value,!1),new Uint8Array(o.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(t.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":let c=$a.fromUtf8(t.value),u=new DataView(new ArrayBuffer(3+c.byteLength));u.setUint8(0,7),u.setUint16(1,c.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(c,3),l;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(xN.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!Nbe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let f=new Uint8Array(17);return f[0]=9,f.set(Yi.fromHex(t.value.replace(/\-/g,"")),1),f}}},XW;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(XW||(XW={}));var Nbe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,xN=class e{static{i(this,"Int64")}bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let o=7,n=Math.abs(Math.round(t));o>-1&&n>0;o--,n/=256)r[o]=n;return t<0&&JW(r),new e(r)}valueOf(){let t=this.bytes.slice(0),r=t[0]&128;return r&&JW(t),parseInt(Yi.toHex(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function JW(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}i(JW,"negate");var gZ=i((e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},"hasHeader"),hZ=i((e,t={})=>{let{headers:r,query:o={}}=YW.HttpRequest.clone(e);for(let n of Object.keys(r)){let s=n.toLowerCase();(s.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(o[n]=r[n],delete r[n])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),bN=i(e=>{e=YW.HttpRequest.clone(e);for(let t of Object.keys(e.headers))oZ.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},"prepareRequest"),yZ=i(({query:e={}})=>{let t=[],r={};for(let o of Object.keys(e)){if(o.toLowerCase()===iZ)continue;let n=JS.escapeUri(o);t.push(n);let s=e[o];typeof s=="string"?r[n]=`${n}=${JS.escapeUri(s)}`:Array.isArray(s)&&(r[n]=s.slice(0).reduce((a,c)=>a.concat([`${n}=${JS.escapeUri(c)}`]),[]).sort().join("&"))}return t.sort().map(o=>r[o]).filter(o=>o).join("&")},"getCanonicalQuery"),kbe=i(e=>Mbe(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),Mbe=i(e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e,"toDate"),n_=class{static{i(this,"SignatureV4Base")}service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:r,region:o,service:n,sha256:s,uriEscapePath:a=!0}){this.service=n,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=ZW.normalizeProvider(o),this.credentialProvider=ZW.normalizeProvider(r)}createCanonicalRequest(t,r,o){let n=Object.keys(r).sort();return`${t.method}
42
+ ${this.getCanonicalPath(t)}
43
+ ${yZ(t)}
44
+ ${n.map(s=>`${s}:${r[s]}`).join(`
45
+ `)}
46
+
47
+ ${n.join(";")}
48
+ ${o}`}async createStringToSign(t,r,o,n){let s=new this.sha256;s.update($a.toUint8Array(o));let a=await s.digest();return`${n}
49
+ ${t}
50
+ ${r}
51
+ ${Yi.toHex(a)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let r=[];for(let s of t.split("/"))s?.length!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let o=`${t?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&t?.endsWith("/")?"/":""}`;return JS.escapeUri(o).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){let r=kbe(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}},PN=class extends n_{static{i(this,"SignatureV4")}headerFormatter=new vN;constructor({applyChecksum:t,credentials:r,region:o,service:n,sha256:s,uriEscapePath:a=!0}){super({applyChecksum:t,credentials:r,region:o,service:n,sha256:s,uriEscapePath:a})}async presign(t,r={}){let{signingDate:o=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:u,signingRegion:l,signingService:p}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);let y=l??await this.regionProvider(),{longDate:m,shortDate:_}=this.formatDate(o);if(n>fZ)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let b=e_(_,y,p??this.service),A=hZ(bN(t),{unhoistableHeaders:a,hoistableHeaders:u});f.sessionToken&&(A.query[TN]=f.sessionToken),A.query[QW]=YS,A.query[eZ]=`${f.accessKeyId}/${b}`,A.query[CN]=m,A.query[rZ]=n.toString(10);let I=_N(A,s,c);return A.query[tZ]=this.getCanonicalHeaderList(I),A.query[AN]=await this.getSignature(m,b,this.getSigningKey(f,y,_,p),this.createCanonicalRequest(A,I,await t_(t,this.sha256))),A}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):t.message?this.signMessage(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:o=new Date,priorSignature:n,signingRegion:s,signingService:a,eventStreamCredentials:c}){let u=s??await this.regionProvider(),{shortDate:l,longDate:p}=this.formatDate(o),f=e_(l,u,a??this.service),y=await t_({headers:{},body:r},this.sha256),m=new this.sha256;m.update(t);let _=Yi.toHex(await m.digest()),b=[lZ,p,f,n,_,y].join(`
52
+ `);return this.signString(b,{signingDate:o,signingRegion:u,signingService:a,eventStreamCredentials:c})}async signMessage(t,{signingDate:r=new Date,signingRegion:o,signingService:n,eventStreamCredentials:s}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:r,signingRegion:o,signingService:n,priorSignature:t.priorSignature,eventStreamCredentials:s}).then(c=>({message:t.message,signature:c}))}async signString(t,{signingDate:r=new Date,signingRegion:o,signingService:n,eventStreamCredentials:s}={}){let a=s??await this.credentialProvider();this.validateResolvedCredentials(a);let c=o??await this.regionProvider(),{shortDate:u}=this.formatDate(r),l=new this.sha256(await this.getSigningKey(a,c,u,n));return l.update($a.toUint8Array(t)),Yi.toHex(await l.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:o,unsignableHeaders:n,signingRegion:s,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let u=s??await this.regionProvider(),l=bN(t),{longDate:p,shortDate:f}=this.formatDate(r),y=e_(f,u,a??this.service);l.headers[wN]=p,c.sessionToken&&(l.headers[sZ]=c.sessionToken);let m=await t_(l,this.sha256);!gZ(r_,l.headers)&&this.applyChecksum&&(l.headers[r_]=m);let _=_N(l,n,o),b=await this.getSignature(p,y,this.getSigningKey(c,u,f,a),this.createCanonicalRequest(l,_,m));return l.headers[IN]=`${YS} Credential=${c.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(_)}, Signature=${b}`,l}async getSignature(t,r,o,n){let s=await this.createStringToSign(t,r,n,YS),a=new this.sha256(await o);return a.update($a.toUint8Array(s)),Yi.toHex(await a.digest())}getSigningKey(t,r,o,n){return mZ(this.sha256,t,o,r,n||this.service)}},Lbe={SignatureV4a:null};Ne.ALGORITHM_IDENTIFIER=YS;Ne.ALGORITHM_IDENTIFIER_V4A=Obe;Ne.ALGORITHM_QUERY_PARAM=QW;Ne.ALWAYS_UNSIGNABLE_HEADERS=aZ;Ne.AMZ_DATE_HEADER=wN;Ne.AMZ_DATE_QUERY_PARAM=CN;Ne.AUTH_HEADER=IN;Ne.CREDENTIAL_QUERY_PARAM=eZ;Ne.DATE_HEADER=nZ;Ne.EVENT_ALGORITHM_IDENTIFIER=lZ;Ne.EXPIRES_QUERY_PARAM=rZ;Ne.GENERATED_HEADERS=oZ;Ne.HOST_HEADER=Rbe;Ne.KEY_TYPE_IDENTIFIER=RN;Ne.MAX_CACHE_SIZE=pZ;Ne.MAX_PRESIGNED_TTL=fZ;Ne.PROXY_HEADER_PATTERN=cZ;Ne.REGION_SET_PARAM=wbe;Ne.SEC_HEADER_PATTERN=uZ;Ne.SHA256_HEADER=r_;Ne.SIGNATURE_HEADER=iZ;Ne.SIGNATURE_QUERY_PARAM=AN;Ne.SIGNED_HEADERS_QUERY_PARAM=tZ;Ne.SignatureV4=PN;Ne.SignatureV4Base=n_;Ne.TOKEN_HEADER=sZ;Ne.TOKEN_QUERY_PARAM=TN;Ne.UNSIGNABLE_PATTERNS=$be;Ne.UNSIGNED_PAYLOAD=dZ;Ne.clearCredentialCache=Dbe;Ne.createScope=e_;Ne.getCanonicalHeaders=_N;Ne.getCanonicalQuery=yZ;Ne.getPayloadHash=t_;Ne.getSigningKey=mZ;Ne.hasHeader=gZ;Ne.moveHeadersToQuery=hZ;Ne.prepareRequest=bN;Ne.signatureV4aContainer=Lbe});function zbe(e,{credentials:t,credentialDefaultProvider:r}){let o;return t?t?.memoized?o=t:o=rO(t,tO,jE):r?o=Li(r(Object.assign({},e,{parentClientConfig:e}))):o=i(async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},"credentialsProvider"),o.memoized=!0,o}function Fbe(e,t){if(t.configBound)return t;let r=i(async o=>t({...o,callerClientConfig:e}),"fn");return r.memoized=t.memoized,r.configBound=!0,r}var $N,Hn,EZ,SZ=v(()=>{Rt();Ut();$N=w(o_()),Hn=i(e=>{let t=e.credentials,r=!!e.credentials,o;Object.defineProperty(e,"credentials",{set(l){l&&l!==t&&l!==o&&(r=!0),t=l;let p=zbe(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),f=Fbe(e,p);if(r&&!f.attributed){let y=typeof t=="object"&&t!==null;o=i(async m=>{let b=await f(m);return y&&(!b.$source||Object.keys(b.$source).length===0)?Ui(b,"CREDENTIALS_CODE","e"):b},"resolvedCredentials"),o.memoized=f.memoized,o.configBound=f.configBound,o.attributed=!0}else o=f},get(){return o},enumerable:!0,configurable:!0}),e.credentials=t;let{signingEscapePath:n=!0,systemClockOffset:s=e.systemClockOffset||0,sha256:a}=e,c;return e.signer?c=Li(e.signer):e.regionInfoProvider?c=i(()=>Li(e.region)().then(async l=>[await e.regionInfoProvider(l,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},l]).then(([l,p])=>{let{signingRegion:f,signingService:y}=l;e.signingRegion=e.signingRegion||f||p,e.signingName=e.signingName||y||e.serviceId;let m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:n},_=e.signerConstructor||$N.SignatureV4;return new _(m)}),"signer"):c=i(async l=>{l=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await Li(e.region)(),properties:{}},l);let p=l.signingRegion,f=l.signingName;e.signingRegion=e.signingRegion||p,e.signingName=e.signingName||f||e.serviceId;let y={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:n},m=e.signerConstructor||$N.SignatureV4;return new m(y)},"signer"),Object.assign(e,{systemClockOffset:s,signingEscapePath:n,signer:c})},"resolveAwsSdkSigV4Config"),EZ=Hn;i(zbe,"normalizeCredentialProvider");i(Fbe,"bindCallerConfig")});var _Z=v(()=>{hN();BW();qW();WW();SZ()});var vZ={};We(vZ,{AWSSDKSigV4Signer:()=>gN,AwsSdkSigV4ASigner:()=>ni,AwsSdkSigV4Signer:()=>Bt,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>fo,NODE_SIGV4A_CONFIG_OPTIONS:()=>XS,getBearerTokenEnvKey:()=>ZS,resolveAWSSDKSigV4Config:()=>EZ,resolveAwsSdkSigV4AConfig:()=>KS,resolveAwsSdkSigV4Config:()=>Hn,validateSigningProperties:()=>Mu});var _r=v(()=>{_Z();EN()});function Qi(e){return typeof Buffer<"u"?Buffer.alloc(e):new Uint8Array(e)}function i_(e){return e[ON]=!0,e}var ON,s_=v(()=>{i(Qi,"alloc");ON=Symbol("@smithy/core/cbor::tagSymbol");i(i_,"tag")});function PZ(e){ot=e,ii=new DataView(ot.buffer,ot.byteOffset,ot.byteLength)}function mo(e,t){if(e>=t)throw new Error("unexpected end of (decode) payload.");let r=(ot[e]&224)>>5,o=ot[e]&31;switch(r){case 0:case 1:case 6:let n,s;if(o<24)n=o,s=1;else switch(o){case 24:case 25:case 26:case 27:let a=AZ[o],c=a+1;if(s=c,t-e<c)throw new Error(`countLength ${a} greater than remaining buf len.`);let u=e+1;a===1?n=ot[u]:a===2?n=ii.getUint16(u):a===4?n=ii.getUint32(u):n=ii.getBigUint64(u);break;default:throw new Error(`unexpected minor value ${o}.`)}if(r===0)return Le=s,DN(n);if(r===1){let a;return typeof n=="bigint"?a=BigInt(-1)-n:a=-1-n,Le=s,DN(a)}else if(o===2||o===3){let a=Pf(e+s,t),c=BigInt(0),u=e+s+Le;for(let l=u;l<u+a;++l)c=c<<BigInt(8)|BigInt(ot[l]);return Le=s+Le+a,o===3?-c-BigInt(1):c}else if(o===4){let a=mo(e+s,t),[c,u]=a,l=u<0?-1:1,p="0".repeat(Math.abs(c)+1)+String(BigInt(l)*BigInt(u)),f,y=u<0?"-":"";return f=c===0?p:p.slice(0,p.length+c)+"."+p.slice(c),f=f.replace(/^0+/g,""),f===""&&(f="0"),f[0]==="."&&(f="0"+f),f=y+f,Le=s+Le,B$(f)}else{let a=mo(e+s,t);return Le=s+Le,i_({tag:DN(n),value:a})}case 3:case 5:case 4:case 2:if(o===31)switch(r){case 3:return qbe(e,t);case 5:return Jbe(e,t);case 4:return Kbe(e,t);case 2:return Wbe(e,t)}else switch(r){case 3:return Gbe(e,t);case 5:return Xbe(e,t);case 4:return Zbe(e,t);case 2:return FN(e,t)}default:return Ybe(e,t)}}function CZ(e,t,r){return Bbe&&e.constructor?.name==="Buffer"?e.toString("utf-8",t,r):xZ?xZ.decode(e.subarray(t,r)):(0,bZ.toUtf8)(e.subarray(t,r))}function Vbe(e){let t=Number(e);return(t<Number.MIN_SAFE_INTEGER||Number.MAX_SAFE_INTEGER<t)&&console.warn(new Error(`@smithy/core/cbor - truncating BigInt(${e}) to ${t} with loss of precision.`)),t}function Hbe(e,t){let r=e>>7,o=(e&124)>>2,n=(e&3)<<8|t,s=r===0?1:-1,a,c;if(o===0){if(n===0)return 0;a=Math.pow(2,-14),c=0}else{if(o===31)return n===0?s*(1/0):NaN;a=Math.pow(2,o-15),c=1}return c+=n/1024,s*(a*c)}function Pf(e,t){let r=ot[e]&31;if(r<24)return Le=1,r;if(r===24||r===25||r===26||r===27){let o=AZ[r];if(Le=o+1,t-e<Le)throw new Error(`countLength ${o} greater than remaining buf len.`);let n=e+1;return o===1?ot[n]:o===2?ii.getUint16(n):o===4?ii.getUint32(n):Vbe(ii.getBigUint64(n))}throw new Error(`unexpected minor value ${r}.`)}function Gbe(e,t){let r=Pf(e,t),o=Le;if(e+=o,t-e<r)throw new Error(`string len ${r} greater than remaining buf len.`);let n=CZ(ot,e,e+r);return Le=o+r,n}function qbe(e,t){e+=1;let r=[];for(let o=e;e<t;){if(ot[e]===255){let u=Qi(r.length);return u.set(r,0),Le=e-o+2,CZ(u,0,u.length)}let n=(ot[e]&224)>>5,s=ot[e]&31;if(n!==3)throw new Error(`unexpected major type ${n} in indefinite string.`);if(s===31)throw new Error("nested indefinite string.");let a=FN(e,t);e+=Le;for(let u=0;u<a.length;++u)r.push(a[u])}throw new Error("expected break marker.")}function FN(e,t){let r=Pf(e,t),o=Le;if(e+=o,t-e<r)throw new Error(`unstructured byte string len ${r} greater than remaining buf len.`);let n=ot.subarray(e,e+r);return Le=o+r,n}function Wbe(e,t){e+=1;let r=[];for(let o=e;e<t;){if(ot[e]===255){let u=Qi(r.length);return u.set(r,0),Le=e-o+2,u}let n=(ot[e]&224)>>5,s=ot[e]&31;if(n!==2)throw new Error(`unexpected major type ${n} in indefinite string.`);if(s===31)throw new Error("nested indefinite string.");let a=FN(e,t);e+=Le;for(let u=0;u<a.length;++u)r.push(a[u])}throw new Error("expected break marker.")}function Zbe(e,t){let r=Pf(e,t),o=Le;e+=o;let n=e,s=Array(r);for(let a=0;a<r;++a){let c=mo(e,t),u=Le;s[a]=c,e+=u}return Le=o+(e-n),s}function Kbe(e,t){e+=1;let r=[];for(let o=e;e<t;){if(ot[e]===255)return Le=e-o+2,r;let n=mo(e,t);e+=Le,r.push(n)}throw new Error("expected break marker.")}function Xbe(e,t){let r=Pf(e,t),o=Le;e+=o;let n=e,s={};for(let a=0;a<r;++a){if(e>=t)throw new Error("unexpected end of map payload.");let c=(ot[e]&224)>>5;if(c!==3)throw new Error(`unexpected major type ${c} for map key at index ${e}.`);let u=mo(e,t);e+=Le;let l=mo(e,t);e+=Le,s[u]=l}return Le=o+(e-n),s}function Jbe(e,t){e+=1;let r=e,o={};for(;e<t;){if(e>=t)throw new Error("unexpected end of map payload.");if(ot[e]===255)return Le=e-r+2,o;let n=(ot[e]&224)>>5;if(n!==3)throw new Error(`unexpected major type ${n} for map key.`);let s=mo(e,t);e+=Le;let a=mo(e,t);e+=Le,o[s]=a}throw new Error("expected break marker.")}function Ybe(e,t){let r=ot[e]&31;switch(r){case 21:case 20:return Le=1,r===21;case 22:return Le=1,null;case 23:return Le=1,null;case 25:if(t-e<3)throw new Error("incomplete float16 at end of buf.");return Le=3,Hbe(ot[e+1],ot[e+2]);case 26:if(t-e<5)throw new Error("incomplete float32 at end of buf.");return Le=5,ii.getFloat32(e+1);case 27:if(t-e<9)throw new Error("incomplete float64 at end of buf.");return Le=9,ii.getFloat64(e+1);default:throw new Error(`unexpected minor value ${r}.`)}}function DN(e){if(typeof e=="number")return e;let t=Number(e);return Number.MIN_SAFE_INTEGER<=t&&t<=Number.MAX_SAFE_INTEGER?t:e}var bZ,jbe,Bbe,ot,ii,xZ,Le,AZ,TZ=v(()=>{rr();bZ=w(It());s_();jbe=typeof TextDecoder<"u",Bbe=typeof Buffer<"u",ot=Qi(0),ii=new DataView(ot.buffer,ot.byteOffset,ot.byteLength),xZ=jbe?new TextDecoder:null,Le=0;i(PZ,"setPayload");i(mo,"decode");i(CZ,"bytesToUtf8");i(Vbe,"demote");AZ={24:1,25:2,26:4,27:8};i(Hbe,"bytesToFloat16");i(Pf,"decodeCount");i(Gbe,"decodeUtf8String");i(qbe,"decodeUtf8StringIndefinite");i(FN,"decodeUnstructuredByteString");i(Wbe,"decodeUnstructuredByteStringIndefinite");i(Zbe,"decodeList");i(Kbe,"decodeListIndefinite");i(Xbe,"decodeMap");i(Jbe,"decodeMapIndefinite");i(Ybe,"decodeSpecial");i(DN,"castBigInt")});function jN(e){Pe.byteLength-se<e&&(se<16e6?c_(Math.max(Pe.byteLength*4,Pe.byteLength+e)):c_(Pe.byteLength+e+16e6))}function BN(){let e=Qi(se);return e.set(Pe.subarray(0,se),0),se=0,e}function c_(e){let t=Pe;Pe=Qi(e),t&&(t.copy?t.copy(Pe,0,0,t.byteLength):Pe.set(t,0)),ci=new DataView(Pe.buffer,Pe.byteOffset,Pe.byteLength)}function ai(e,t){t<24?Pe[se++]=e<<5|t:t<256?(Pe[se++]=e<<5|24,Pe[se++]=t):t<65536?(Pe[se++]=e<<5|25,ci.setUint16(se,t),se+=2):t<2**32?(Pe[se++]=e<<5|26,ci.setUint32(se,t),se+=4):(Pe[se++]=e<<5|27,ci.setBigUint64(se,typeof t=="bigint"?t:BigInt(t)),se+=8)}function RZ(e){let t=[e];for(;t.length;){let r=t.pop();if(jN(typeof r=="string"?r.length*4:64),typeof r=="string"){if(IZ)ai(3,Buffer.byteLength(r)),se+=Pe.write(r,se);else{let o=(0,wZ.fromUtf8)(r);ai(3,o.byteLength),Pe.set(o,se),se+=o.byteLength}continue}else if(typeof r=="number"){if(Number.isInteger(r)){let o=r>=0,n=o?0:1,s=o?r:-r-1;s<24?Pe[se++]=n<<5|s:s<256?(Pe[se++]=n<<5|24,Pe[se++]=s):s<65536?(Pe[se++]=n<<5|25,Pe[se++]=s>>8,Pe[se++]=s):s<4294967296?(Pe[se++]=n<<5|26,ci.setUint32(se,s),se+=4):(Pe[se++]=n<<5|27,ci.setBigUint64(se,BigInt(s)),se+=8);continue}Pe[se++]=251,ci.setFloat64(se,r),se+=8;continue}else if(typeof r=="bigint"){let o=r>=0,n=o?0:1,s=o?r:-r-BigInt(1),a=Number(s);if(a<24)Pe[se++]=n<<5|a;else if(a<256)Pe[se++]=n<<5|24,Pe[se++]=a;else if(a<65536)Pe[se++]=n<<5|25,Pe[se++]=a>>8,Pe[se++]=a&255;else if(a<4294967296)Pe[se++]=n<<5|26,ci.setUint32(se,a),se+=4;else if(s<BigInt("18446744073709551616"))Pe[se++]=n<<5|27,ci.setBigUint64(se,s),se+=8;else{let c=s.toString(2),u=new Uint8Array(Math.ceil(c.length/8)),l=s,p=0;for(;u.byteLength-++p>=0;)u[u.byteLength-p]=Number(l&BigInt(255)),l>>=BigInt(8);jN(u.byteLength*2),Pe[se++]=o?194:195,IZ?ai(2,Buffer.byteLength(u)):ai(2,u.byteLength),Pe.set(u,se),se+=u.byteLength}continue}else if(r===null){Pe[se++]=246;continue}else if(typeof r=="boolean"){Pe[se++]=224|(r?21:20);continue}else{if(typeof r>"u")throw new Error("@smithy/core/cbor: client may not serialize undefined value.");if(Array.isArray(r)){for(let o=r.length-1;o>=0;--o)t.push(r[o]);ai(4,r.length);continue}else if(typeof r.byteLength=="number"){jN(r.length*2),ai(2,r.length),Pe.set(r,se),se+=r.byteLength;continue}else if(typeof r=="object"){if(r instanceof st){let n=r.string.indexOf("."),s=n===-1?0:n-r.string.length+1,a=BigInt(r.string.replace(".",""));Pe[se++]=196,t.push(a),t.push(s),ai(4,2);continue}if(r[ON])if("tag"in r&&"value"in r){t.push(r.value),ai(6,r.tag);continue}else throw new Error("tag encountered with missing fields, need 'tag' and 'value', found: "+JSON.stringify(r));let o=Object.keys(r);for(let n=o.length-1;n>=0;--n){let s=o[n];t.push(r[s]),t.push(s)}ai(5,o.length);continue}}throw new Error(`data type ${r?.constructor?.name??typeof r} not compatible for encoding.`)}}var wZ,IZ,Qbe,Pe,ci,se,$Z=v(()=>{rr();wZ=w(It());s_();IZ=typeof Buffer<"u",Qbe=2048,Pe=Qi(Qbe),ci=new DataView(Pe.buffer,Pe.byteOffset,Pe.byteLength),se=0;i(jN,"ensureSpace");i(BN,"toUint8Array");i(c_,"resize");i(ai,"encodeHeader");i(RZ,"encode")});var VN,OZ=v(()=>{TZ();$Z();VN={deserialize(e){return PZ(e),mo(0,e.length)},serialize(e){try{return RZ(e),BN()}catch(t){throw BN(),t}},resizeEncodingBuffer(e){c_(e)}}});var u_,l_,d_=v(()=>{s_();u_=i(e=>i_({tag:1,value:e.getTime()/1e3}),"dateToTag"),l_=i((e,t)=>{let r=i(n=>{let s=n;return typeof s=="number"&&(s=s.toString()),s.indexOf(",")>=0&&(s=s.split(",")[0]),s.indexOf(":")>=0&&(s=s.split(":")[0]),s.indexOf("#")>=0&&(s=s.split("#")[1]),s},"sanitizeErrorCode");if(t.__type!==void 0)return r(t.__type);let o;for(let n in t)if(n.toLowerCase()==="code"){o=n;break}if(o&&t[o]!==void 0)return r(t[o])},"loadSmithyRpcV2CborErrorCode")});var qN,p_,HN,GN,WN=v(()=>{Rr();je();rr();rr();qN=w(wt());OZ();d_();p_=class extends Sr{static{i(this,"CborCodec")}createSerializer(){let t=new HN;return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new GN;return t.setSerdeContext(this.serdeContext),t}},HN=class extends Sr{static{i(this,"CborShapeSerializer")}value;write(t,r){this.value=this.serialize(t,r)}serialize(t,r){let o=oe.of(t);if(r==null)return o.isIdempotencyToken()?(0,hn.v4)():r;if(o.isBlobSchema())return typeof r=="string"?(this.serdeContext?.base64Decoder??qN.fromBase64)(r):r;if(o.isTimestampSchema())return typeof r=="number"||typeof r=="bigint"?u_(new Date(Number(r)/1e3|0)):u_(r);if(typeof r=="function"||typeof r=="object"){let n=r;if(o.isListSchema()&&Array.isArray(n)){let a=!!o.getMergedTraits().sparse,c=[],u=0;for(let l of n){let p=this.serialize(o.getValueSchema(),l);(p!=null||a)&&(c[u++]=p)}return c}if(n instanceof Date)return u_(n);let s={};if(o.isMapSchema()){let a=!!o.getMergedTraits().sparse;for(let c in n){let u=this.serialize(o.getValueSchema(),n[c]);(u!=null||a)&&(s[c]=u)}}else if(o.isStructSchema()){for(let[c,u]of o.structIterator()){let l=this.serialize(u,n[c]);l!=null&&(s[c]=l)}if(o.isUnionSchema()&&Array.isArray(n.$unknown)){let[c,u]=n.$unknown;s[c]=u}else if(typeof n.__type=="string")for(let c in n)c in s||(s[c]=this.serialize(15,n[c]))}else if(o.isDocumentSchema())for(let a in n)s[a]=this.serialize(o.getValueSchema(),n[a]);else if(o.isBigDecimalSchema())return n;return s}return r}flush(){let t=VN.serialize(this.value);return this.value=void 0,t}},GN=class extends Sr{static{i(this,"CborShapeDeserializer")}read(t,r){let o=VN.deserialize(r);return this.readValue(t,o)}readValue(t,r){let o=oe.of(t);if(o.isTimestampSchema()){if(typeof r=="number")return su(r);if(typeof r=="object"&&r.tag===1&&"value"in r)return su(r.value)}if(o.isBlobSchema())return typeof r=="string"?(this.serdeContext?.base64Decoder??qN.fromBase64)(r):r;if(typeof r>"u"||typeof r=="boolean"||typeof r=="number"||typeof r=="string"||typeof r=="bigint"||typeof r=="symbol")return r;if(typeof r=="object"){if(r===null)return null;if("byteLength"in r||r instanceof Date||o.isDocumentSchema())return r;if(o.isListSchema()){let s=[],a=o.getValueSchema();for(let c of r){let u=this.readValue(a,c);s.push(u)}return s}let n={};if(o.isMapSchema()){let s=o.getValueSchema();for(let a in r){let c=this.readValue(s,r[a]);n[a]=c}}else if(o.isStructSchema()){let s=o.isUnionSchema(),a;if(s){a=new Set;for(let c in r)c!=="__type"&&a.add(c)}for(let[c,u]of o.structIterator())s&&a.delete(c),r[c]!=null&&(n[c]=this.readValue(u,r[c]));if(s&&a?.size===1){let c=!0;for(let u in n){c=!1;break}if(c){let u=a.values().next().value;n.$unknown=[u,r[u]]}}else if(typeof r.__type=="string")for(let c in r)c in n||(n[c]=r[c])}else if(r instanceof st)return r;return n}else return r}}});var DZ,f_,NZ=v(()=>{Rr();je();je();DZ=w(Ft());WN();d_();f_=class extends Xo{static{i(this,"SmithyRpcV2CborProtocol")}codec=new p_;serializer=this.codec.createSerializer();deserializer=this.codec.createDeserializer();constructor({defaultNamespace:t,errorTypeRegistries:r}){super({defaultNamespace:t,errorTypeRegistries:r})}getShapeId(){return"smithy.protocols#rpcv2Cbor"}getPayloadCodec(){return this.codec}async serializeRequest(t,r,o){let n=await super.serializeRequest(t,r,o);if(Object.assign(n.headers,{"content-type":this.getDefaultContentType(),"smithy-protocol":"rpc-v2-cbor",accept:this.getDefaultContentType()}),Mn(t.input)==="unit")delete n.body,delete n.headers["content-type"];else{n.body||(this.serializer.write(15,{}),n.body=this.serializer.flush());try{n.headers["content-length"]=String(n.body.byteLength)}catch{}}let{service:s,operation:a}=(0,DZ.getSmithyContext)(o),c=`/service/${s}/operation/${a}`;return n.path.endsWith("/")?n.path+=c.slice(1):n.path+=c,n}async deserializeResponse(t,r,o){return super.deserializeResponse(t,r,o)}async handleError(t,r,o,n,s){let a=l_(o,n)??"Unknown",c={$metadata:s,$fault:o.statusCode<=500?"client":"server"},u=this.options.defaultNamespace;a.includes("#")&&([u]=a.split("#"));let l=this.compositeErrorRegistry,p=pt.for(u);l.copyFrom(p);let f;try{f=l.getSchema(a)}catch{n.Message&&(n.message=n.Message);let R=pt.for("smithy.ts.sdk.synthetic."+u);l.copyFrom(R);let j=l.getBaseException();if(j){let ee=l.getErrorCtor(j);throw Object.assign(new ee({name:a}),c,n)}throw Object.assign(new Error(a),c,n)}let y=oe.of(f),m=l.getErrorCtor(f),_=n.message??n.Message??"Unknown",b=new m(_),A={};for(let[I,R]of y.structIterator())A[I]=this.deserializer.readValue(R,n[I]);throw Object.assign(b,c,{$fault:y.getMergedTraits().error,message:_},A)}getDefaultContentType(){return"application/cbor"}}});var kZ=v(()=>{d_();NZ();WN()});var ZN,Sn,Fu=v(()=>{je();ZN=w(ye()),Sn=class{static{i(this,"ProtocolLib")}queryCompat;errorRegistry;constructor(t=!1){this.queryCompat=t}resolveRestContentType(t,r){let o=r.getMemberSchemas(),n=Object.values(o).find(s=>!!s.getMergedTraits().httpPayload);if(n){let s=n.getMergedTraits().mediaType;return s||(n.isStringSchema()?"text/plain":n.isBlobSchema()?"application/octet-stream":t)}else if(!r.isUnitSchema()&&Object.values(o).find(a=>{let{httpQuery:c,httpQueryParams:u,httpHeader:l,httpLabel:p,httpPrefixHeaders:f}=a.getMergedTraits();return!c&&!u&&!l&&!p&&f===void 0}))return t}async getErrorSchemaOrThrowBaseException(t,r,o,n,s,a){let c=t;t.includes("#")&&([,c]=t.split("#"));let u={$metadata:s,$fault:o.statusCode<500?"client":"server"};if(!this.errorRegistry)throw new Error("@aws-sdk/core/protocols - error handler not initialized.");try{return{errorSchema:a?.(this.errorRegistry,c)??this.errorRegistry.getSchema(t),errorMetadata:u}}catch{n.message=n.message??n.Message??"UnknownError";let p=this.errorRegistry,f=p.getBaseException();if(f){let _=p.getErrorCtor(f)??Error;throw this.decorateServiceException(Object.assign(new _({name:c}),u),n)}let y=n,m=y?.message??y?.Message??y?.Error?.Message??y?.Error?.message;throw this.decorateServiceException(Object.assign(new Error(m),{name:c},u),n)}}compose(t,r,o){let n=o;r.includes("#")&&([n]=r.split("#"));let s=pt.for(n),a=pt.for("smithy.ts.sdk.synthetic."+o);t.copyFrom(s),t.copyFrom(a),this.errorRegistry=t}decorateServiceException(t,r={}){if(this.queryCompat){let o=t.Message??r.Message,n=(0,ZN.decorateServiceException)(t,r);o&&(n.message=o);let s=n.Error??{};s.Type=n.Error?.Type,s.Code=n.Error?.Code,s.Message=n.Error?.message??n.Error?.Message??o,n.Error=s;let a=n.$metadata.requestId;return a&&(n.RequestId=a),n}return(0,ZN.decorateServiceException)(t,r)}setQueryCompatError(t,r){let o=r.headers?.["x-amzn-query-error"];if(t!==void 0&&o!=null){let[n,s]=o.split(";"),a=Object.keys(t),c={Code:n,Type:s};t.Code=n,t.Type=s;for(let u=0;u<a.length;u++){let l=a[u];c[l==="message"?"Message":l]=t[l]}delete c.__type,t.Error=c}}queryCompatOutput(t,r){t.Error&&(r.Error=t.Error),t.Type&&(r.Type=t.Type),t.Code&&(r.Code=t.Code)}findQueryCompatibleError(t,r){try{return t.getSchema(r)}catch{return t.find(n=>oe.of(n).getMergedTraits().awsQueryError?.[0]===r)}}}});var m_,MZ=v(()=>{kZ();je();Fu();m_=class extends f_{static{i(this,"AwsSmithyRpcV2CborProtocol")}awsQueryCompatible;mixin;constructor({defaultNamespace:t,errorTypeRegistries:r,awsQueryCompatible:o}){super({defaultNamespace:t,errorTypeRegistries:r}),this.awsQueryCompatible=!!o,this.mixin=new Sn(this.awsQueryCompatible)}async serializeRequest(t,r,o){let n=await super.serializeRequest(t,r,o);return this.awsQueryCompatible&&(n.headers["x-amzn-query-mode"]="true"),n}async handleError(t,r,o,n,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(n,o);let a=(()=>{let _=o.headers["x-amzn-query-error"];return _&&this.awsQueryCompatible?_.split(";")[0]:l_(o,n)??"Unknown"})();this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,o,n,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),l=oe.of(c),p=n.message??n.Message??"UnknownError",f=this.compositeErrorRegistry.getErrorCtor(c)??Error,y=new f(p),m={};for(let[_,b]of l.structIterator())n[_]!=null&&(m[_]=this.deserializer.readValue(b,n[_]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(n,m),this.mixin.decorateServiceException(Object.assign(y,u,{$fault:l.getMergedTraits().error,message:p},m),n)}}});var LZ,zZ,FZ,UZ=v(()=>{LZ=i(e=>{if(e==null)return e;if(typeof e=="number"||typeof e=="bigint"){let t=new Error(`Received number ${e} where a string was expected.`);return t.name="Warning",console.warn(t),String(e)}if(typeof e=="boolean"){let t=new Error(`Received boolean ${e} where a string was expected.`);return t.name="Warning",console.warn(t),String(e)}return e},"_toStr"),zZ=i(e=>{if(e==null)return e;if(typeof e=="string"){let t=e.toLowerCase();if(e!==""&&t!=="false"&&t!=="true"){let r=new Error(`Received string "${e}" where a boolean was expected.`);r.name="Warning",console.warn(r)}return e!==""&&t!=="false"}return e},"_toBool"),FZ=i(e=>{if(e==null)return e;if(typeof e=="string"){let t=Number(e);if(t.toString()!==e){let r=new Error(`Received string "${e}" where a number was expected.`);return r.name="Warning",console.warn(r),e}return t}return e},"_toNum")});var ar,ns=v(()=>{ar=class{static{i(this,"SerdeContextConfig")}serdeContext;setSerdeContext(t){this.serdeContext=t}}});var Uu,KN=v(()=>{Uu=class{static{i(this,"UnionSerde")}from;to;keys;constructor(t,r){this.from=t,this.to=r;let o=Object.keys(this.from),n=new Set(o);n.delete("__type"),this.keys=n}mark(t){this.keys.delete(t)}hasUnknown(){return this.keys.size===1&&Object.keys(this.to).length===0}writeUnknown(){if(this.hasUnknown()){let t=this.keys.values().next().value,r=this.from[t];this.to.$unknown=[t,r]}}}});function jZ(e,t,r){if(r?.source){let o=r.source;if(typeof t=="number"&&(t>Number.MAX_SAFE_INTEGER||t<Number.MIN_SAFE_INTEGER||o!==String(t)))return o.includes(".")?new st(o,"bigDecimal"):BigInt(o)}return t}var BZ=v(()=>{rr();i(jZ,"jsonReviver")});var VZ,HZ,g_,XN=v(()=>{VZ=w(ye()),HZ=w(It()),g_=i((e,t)=>(0,VZ.collectBody)(e,t).then(r=>(t?.utf8Encoder??HZ.toUtf8)(r)),"collectBodyString")});var Cf,qZ,GZ,JN,ju,Af=v(()=>{XN();Cf=i((e,t)=>g_(e,t).then(r=>{if(r.length)try{return JSON.parse(r)}catch(o){throw o?.name==="SyntaxError"&&Object.defineProperty(o,"$responseBodyText",{value:r}),o}return{}}),"parseJsonBody"),qZ=i(async(e,t)=>{let r=await Cf(e,t);return r.message=r.message??r.Message,r},"parseJsonErrorBody"),GZ=i((e,t)=>Object.keys(e).find(r=>r.toLowerCase()===t.toLowerCase()),"findKey"),JN=i(e=>{let t=e;return typeof t=="number"&&(t=t.toString()),t.indexOf(",")>=0&&(t=t.split(",")[0]),t.indexOf(":")>=0&&(t=t.split(":")[0]),t.indexOf("#")>=0&&(t=t.split("#")[1]),t},"sanitizeErrorCode"),ju=i((e,t)=>{let r=GZ(e.headers,"x-amzn-errortype");if(r!==void 0)return JN(e.headers[r]);if(t&&typeof t=="object"){let o=GZ(t,"code");if(o&&t[o]!==void 0)return JN(t[o]);if(t.__type!==void 0)return JN(t.__type)}},"loadRestJsonErrorCode")});var WZ,Bu,YN=v(()=>{Rr();je();rr();WZ=w(wt());ns();KN();BZ();Af();Bu=class extends ar{static{i(this,"JsonShapeDeserializer")}settings;constructor(t){super(),this.settings=t}async read(t,r){return this._read(t,typeof r=="string"?JSON.parse(r,jZ):await Cf(r,this.serdeContext))}readObject(t,r){return this._read(t,r)}_read(t,r){let o=r!==null&&typeof r=="object",n=oe.of(t);if(o){if(n.isStructSchema()){let a=r,c=n.isUnionSchema(),u={},l,{jsonName:p}=this.settings;p&&(l={});let f;c&&(f=new Uu(a,u));for(let[y,m]of n.structIterator()){let _=y;p&&(_=m.getMergedTraits().jsonName??_,l[_]=y),c&&f.mark(_),a[_]!=null&&(u[y]=this._read(m,a[_]))}if(c)f.writeUnknown();else if(typeof a.__type=="string")for(let y in a){let m=a[y],_=p?l[y]??y:y;_ in u||(u[_]=m)}return u}if(Array.isArray(r)&&n.isListSchema()){let a=n.getValueSchema(),c=[];for(let u of r)c.push(this._read(a,u));return c}if(n.isMapSchema()){let a=n.getValueSchema(),c={};for(let u in r)c[u]=this._read(a,r[u]);return c}}if(n.isBlobSchema()&&typeof r=="string")return(0,WZ.fromBase64)(r);let s=n.getMergedTraits().mediaType;if(n.isStringSchema()&&typeof r=="string"&&s)return s==="application/json"||s.endsWith("+json")?Er.from(r):r;if(n.isTimestampSchema()&&r!=null)switch(Zr(n,this.settings)){case 5:return I$(r);case 6:return w$(r);case 7:return R$(r);default:return console.warn("Missing timestamp format, parsing value with Date constructor:",r),new Date(r)}if(n.isBigIntegerSchema()&&(typeof r=="number"||typeof r=="string"))return BigInt(r);if(n.isBigDecimalSchema()&&r!=null){if(r instanceof st)return r;let a=r;return a.type==="bigDecimal"&&"string"in a?new st(a.string,a.type):new st(String(r),"bigDecimal")}if(n.isNumericSchema()&&typeof r=="string"){switch(r){case"Infinity":return 1/0;case"-Infinity":return-1/0;case"NaN":return NaN}return r}if(n.isDocumentSchema())if(o){let a=Array.isArray(r)?[]:{};for(let c in r){let u=r[c];u instanceof st?a[c]=u:a[c]=this._read(n,u)}return a}else return structuredClone(r);return r}}});var ZZ,h_,KZ=v(()=>{rr();ZZ="\u039D",h_=class{static{i(this,"JsonReplacer")}values=new Map;counter=0;stage=0;createReplacer(){if(this.stage===1)throw new Error("@aws-sdk/core/protocols - JsonReplacer already created.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");return this.stage=1,(t,r)=>{if(r instanceof st){let o=`${ZZ+"nv"+this.counter++}_`+r.string;return this.values.set(`"${o}"`,r.string),o}if(typeof r=="bigint"){let o=r.toString(),n=`${ZZ+"b"+this.counter++}_`+o;return this.values.set(`"${n}"`,o),n}return r}}replaceInJson(t){if(this.stage===0)throw new Error("@aws-sdk/core/protocols - JsonReplacer not created yet.");if(this.stage===2)throw new Error("@aws-sdk/core/protocols - JsonReplacer exhausted.");if(this.stage=2,this.counter===0)return t;for(let[r,o]of this.values)t=t.replace(r,o);return t}}});var QN,Vu,ek=v(()=>{Rr();je();rr();QN=w(wt());ns();KZ();Vu=class extends ar{static{i(this,"JsonShapeSerializer")}settings;buffer;useReplacer=!1;rootSchema;constructor(t){super(),this.settings=t}write(t,r){this.rootSchema=oe.of(t),this.buffer=this._write(this.rootSchema,r)}flush(){let{rootSchema:t,useReplacer:r}=this;if(this.rootSchema=void 0,this.useReplacer=!1,t?.isStructSchema()||t?.isDocumentSchema()){if(!r)return JSON.stringify(this.buffer);let o=new h_;return o.replaceInJson(JSON.stringify(this.buffer,o.createReplacer(),0))}return this.buffer}writeDiscriminatedDocument(t,r){this.write(t,r),typeof this.buffer=="object"&&(this.buffer.__type=oe.of(t).getName(!0))}_write(t,r,o){let n=r!==null&&typeof r=="object",s=oe.of(t);if(n){if(s.isStructSchema()){let a=r,c={},{jsonName:u}=this.settings,l;u&&(l={});let p=0;for(let[f,y]of s.structIterator()){let m=this._write(y,a[f],s);if(m!==void 0){let _=f;u&&(_=y.getMergedTraits().jsonName??f,l[f]=_),c[_]=m,p++}}if(s.isUnionSchema()&&p===0){let{$unknown:f}=a;if(Array.isArray(f)){let[y,m]=f;c[y]=this._write(15,m)}}else if(typeof a.__type=="string")for(let f in a){let y=a[f],m=u?l[f]??f:f;m in c||(c[m]=this._write(15,y))}return c}if(Array.isArray(r)&&s.isListSchema()){let a=s.getValueSchema(),c=[],u=!!s.getMergedTraits().sparse;for(let l of r)(u||l!=null)&&c.push(this._write(a,l));return c}if(s.isMapSchema()){let a=s.getValueSchema(),c={},u=!!s.getMergedTraits().sparse;for(let l in r){let p=r[l];(u||p!=null)&&(c[l]=this._write(a,p))}return c}if(r instanceof Uint8Array&&(s.isBlobSchema()||s.isDocumentSchema()))return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??QN.toBase64)(r);if(r instanceof Date&&(s.isTimestampSchema()||s.isDocumentSchema()))switch(Zr(s,this.settings)){case 5:return r.toISOString().replace(".000Z","Z");case 6:return Hp(r);case 7:return r.getTime()/1e3;default:return console.warn("Missing timestamp format, using epoch seconds",r),r.getTime()/1e3}r instanceof st&&(this.useReplacer=!0)}if(!(r===null&&o?.isStructSchema())){if(s.isStringSchema()){if(typeof r>"u"&&s.isIdempotencyToken())return(0,hn.v4)();let a=s.getMergedTraits().mediaType;return r!=null&&a&&(a==="application/json"||a.endsWith("+json"))?Er.from(r):r}if(typeof r=="number"&&s.isNumericSchema())return Math.abs(r)===1/0||isNaN(r)?String(r):r;if(typeof r=="string"&&s.isBlobSchema())return s===this.rootSchema?r:(this.serdeContext?.base64Encoder??QN.toBase64)(r);if(typeof r=="bigint"&&(this.useReplacer=!0),s.isDocumentSchema())if(n){let a=Array.isArray(r)?[]:{};for(let c in r){let u=r[c];u instanceof st?(this.useReplacer=!0,a[c]=u):a[c]=this._write(s,u)}return a}else return structuredClone(r);return r}}}});var os,y_=v(()=>{ns();YN();ek();os=class extends ar{static{i(this,"JsonCodec")}settings;constructor(t){super(),this.settings=t}createSerializer(){let t=new Vu(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new Bu(this.settings);return t.setSerdeContext(this.serdeContext),t}}});var is,E_=v(()=>{Rr();je();Fu();y_();Af();is=class extends Xo{static{i(this,"AwsJsonRpcProtocol")}serializer;deserializer;serviceTarget;codec;mixin;awsQueryCompatible;constructor({defaultNamespace:t,errorTypeRegistries:r,serviceTarget:o,awsQueryCompatible:n,jsonCodec:s}){super({defaultNamespace:t,errorTypeRegistries:r}),this.serviceTarget=o,this.codec=s??new os({timestampFormat:{useTrait:!0,default:7},jsonName:!1}),this.serializer=this.codec.createSerializer(),this.deserializer=this.codec.createDeserializer(),this.awsQueryCompatible=!!n,this.mixin=new Sn(this.awsQueryCompatible)}async serializeRequest(t,r,o){let n=await super.serializeRequest(t,r,o);return n.path.endsWith("/")||(n.path+="/"),n.headers["content-type"]=`application/x-amz-json-${this.getJsonRpcVersion()}`,n.headers["x-amz-target"]=`${this.serviceTarget}.${t.name}`,this.awsQueryCompatible&&(n.headers["x-amzn-query-mode"]="true"),(Mn(t.input)==="unit"||!n.body)&&(n.body="{}"),n}getPayloadCodec(){return this.codec}async handleError(t,r,o,n,s){this.awsQueryCompatible&&this.mixin.setQueryCompatError(n,o);let a=ju(o,n)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,o,n,s,this.awsQueryCompatible?this.mixin.findQueryCompatibleError:void 0),l=oe.of(c),p=n.message??n.Message??"UnknownError",f=this.compositeErrorRegistry.getErrorCtor(c)??Error,y=new f(p),m={},_=this.codec.createDeserializer();for(let[b,A]of l.structIterator())n[b]!=null&&(m[b]=_.readObject(A,n[b]));throw this.awsQueryCompatible&&this.mixin.queryCompatOutput(n,m),this.mixin.decorateServiceException(Object.assign(y,u,{$fault:l.getMergedTraits().error,message:p},m),n)}}});var S_,XZ=v(()=>{E_();S_=class extends is{static{i(this,"AwsJson1_0Protocol")}constructor({defaultNamespace:t,errorTypeRegistries:r,serviceTarget:o,awsQueryCompatible:n,jsonCodec:s}){super({defaultNamespace:t,errorTypeRegistries:r,serviceTarget:o,awsQueryCompatible:n,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_0"}getJsonRpcVersion(){return"1.0"}getDefaultContentType(){return"application/x-amz-json-1.0"}}});var __,JZ=v(()=>{E_();__=class extends is{static{i(this,"AwsJson1_1Protocol")}constructor({defaultNamespace:t,errorTypeRegistries:r,serviceTarget:o,awsQueryCompatible:n,jsonCodec:s}){super({defaultNamespace:t,errorTypeRegistries:r,serviceTarget:o,awsQueryCompatible:n,jsonCodec:s})}getShapeId(){return"aws.protocols#awsJson1_1"}getJsonRpcVersion(){return"1.1"}getDefaultContentType(){return"application/x-amz-json-1.1"}}});var go,YZ=v(()=>{Rr();je();Fu();y_();Af();go=class extends ma{static{i(this,"AwsRestJsonProtocol")}serializer;deserializer;codec;mixin=new Sn;constructor({defaultNamespace:t,errorTypeRegistries:r}){super({defaultNamespace:t,errorTypeRegistries:r});let o={timestampFormat:{useTrait:!0,default:7},httpBindings:!0,jsonName:!0};this.codec=new os(o),this.serializer=new ya(this.codec.createSerializer(),o),this.deserializer=new ha(this.codec.createDeserializer(),o)}getShapeId(){return"aws.protocols#restJson1"}getPayloadCodec(){return this.codec}setSerdeContext(t){this.codec.setSerdeContext(t),super.setSerdeContext(t)}async serializeRequest(t,r,o){let n=await super.serializeRequest(t,r,o),s=oe.of(t.input);if(!n.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);a&&(n.headers["content-type"]=a)}return n.body==null&&n.headers["content-type"]===this.getDefaultContentType()&&(n.body="{}"),n}async deserializeResponse(t,r,o){let n=await super.deserializeResponse(t,r,o),s=oe.of(t.output);for(let[a,c]of s.structIterator())c.getMemberTraits().httpPayload&&!(a in n)&&(n[a]=null);return n}async handleError(t,r,o,n,s){let a=ju(o,n)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,o,n,s),l=oe.of(c),p=n.message??n.Message??"UnknownError",f=this.compositeErrorRegistry.getErrorCtor(c)??Error,y=new f(p);await this.deserializeHttpMessage(c,r,o,n);let m={},_=this.codec.createDeserializer();for(let[b,A]of l.structIterator()){let I=A.getMergedTraits().jsonName??b;m[b]=_.readObject(A,n[I])}throw this.mixin.decorateServiceException(Object.assign(y,u,{$fault:l.getMergedTraits().error,message:p},m),n)}getDefaultContentType(){return"application/json"}}});var QZ,e8,t8=v(()=>{QZ=w(ye()),e8=i(e=>{if(e!=null)return typeof e=="object"&&"__type"in e&&delete e.__type,(0,QZ.expectUnion)(e)},"awsExpectUnion")});var n8=z((dft,r8)=>{(()=>{"use strict";var e={d:i((S,d)=>{for(var h in d)e.o(d,h)&&!e.o(S,h)&&Object.defineProperty(S,h,{enumerable:!0,get:d[h]})},"d"),o:i((S,d)=>Object.prototype.hasOwnProperty.call(S,d),"o"),r:i(S=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(S,"__esModule",{value:!0})},"r")},t={};e.r(t),e.d(t,{XMLBuilder:i(()=>Pde,"XMLBuilder"),XMLParser:i(()=>gde,"XMLParser"),XMLValidator:i(()=>Cde,"XMLValidator")});let r=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",o=new RegExp("^["+r+"]["+r+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function n(S,d){let h=[],P=d.exec(S);for(;P;){let x=[];x.startIndex=d.lastIndex-P[0].length;let T=P.length;for(let M=0;M<T;M++)x.push(P[M]);h.push(x),P=d.exec(S)}return h}i(n,"s");let s=i(function(S){return o.exec(S)!=null},"r"),a=["hasOwnProperty","toString","valueOf","__defineGetter__","__defineSetter__","__lookupGetter__","__lookupSetter__"],c=["__proto__","constructor","prototype"],u={allowBooleanAttributes:!1,unpairedTags:[]};function l(S,d){d=Object.assign({},u,d);let h=[],P=!1,x=!1;S[0]==="\uFEFF"&&(S=S.substr(1));for(let T=0;T<S.length;T++)if(S[T]==="<"&&S[T+1]==="?"){if(T+=2,T=f(S,T),T.err)return T}else{if(S[T]!=="<"){if(p(S[T]))continue;return j("InvalidChar","char '"+S[T]+"' is not expected.",fe(S,T))}{let M=T;if(T++,S[T]==="!"){T=y(S,T);continue}{let O=!1;S[T]==="/"&&(O=!0,T++);let F="";for(;T<S.length&&S[T]!==">"&&S[T]!==" "&&S[T]!==" "&&S[T]!==`
53
+ `&&S[T]!=="\r";T++)F+=S[T];if(F=F.trim(),F[F.length-1]==="/"&&(F=F.substring(0,F.length-1),T--),!ae(F)){let Y;return Y=F.trim().length===0?"Invalid space after '<'.":"Tag '"+F+"' is an invalid name.",j("InvalidTag",Y,fe(S,T))}let L=b(S,T);if(L===!1)return j("InvalidAttr","Attributes for '"+F+"' have open quote.",fe(S,T));let U=L.value;if(T=L.index,U[U.length-1]==="/"){let Y=T-U.length;U=U.substring(0,U.length-1);let ne=I(U,d);if(ne!==!0)return j(ne.err.code,ne.err.msg,fe(S,Y+ne.err.line));P=!0}else if(O){if(!L.tagClosed)return j("InvalidTag","Closing tag '"+F+"' doesn't have proper closing.",fe(S,T));if(U.trim().length>0)return j("InvalidTag","Closing tag '"+F+"' can't have attributes or invalid starting.",fe(S,M));if(h.length===0)return j("InvalidTag","Closing tag '"+F+"' has not been opened.",fe(S,M));{let Y=h.pop();if(F!==Y.tagName){let ne=fe(S,Y.tagStartPos);return j("InvalidTag","Expected closing tag '"+Y.tagName+"' (opened in line "+ne.line+", col "+ne.col+") instead of closing tag '"+F+"'.",fe(S,M))}h.length==0&&(x=!0)}}else{let Y=I(U,d);if(Y!==!0)return j(Y.err.code,Y.err.msg,fe(S,T-U.length+Y.err.line));if(x===!0)return j("InvalidXml","Multiple possible root nodes found.",fe(S,T));d.unpairedTags.indexOf(F)!==-1||h.push({tagName:F,tagStartPos:M}),P=!0}for(T++;T<S.length;T++)if(S[T]==="<"){if(S[T+1]==="!"){T++,T=y(S,T);continue}if(S[T+1]!=="?")break;if(T=f(S,++T),T.err)return T}else if(S[T]==="&"){let Y=R(S,T);if(Y==-1)return j("InvalidChar","char '&' is not expected.",fe(S,T));T=Y}else if(x===!0&&!p(S[T]))return j("InvalidXml","Extra text at the end",fe(S,T));S[T]==="<"&&T--}}}return P?h.length==1?j("InvalidTag","Unclosed tag '"+h[0].tagName+"'.",fe(S,h[0].tagStartPos)):!(h.length>0)||j("InvalidXml","Invalid '"+JSON.stringify(h.map(T=>T.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):j("InvalidXml","Start tag expected.",1)}i(l,"l");function p(S){return S===" "||S===" "||S===`
54
+ `||S==="\r"}i(p,"u");function f(S,d){let h=d;for(;d<S.length;d++)if(S[d]=="?"||S[d]==" "){let P=S.substr(h,d-h);if(d>5&&P==="xml")return j("InvalidXml","XML declaration allowed only at the start of the document.",fe(S,d));if(S[d]=="?"&&S[d+1]==">"){d++;break}continue}return d}i(f,"p");function y(S,d){if(S.length>d+5&&S[d+1]==="-"&&S[d+2]==="-"){for(d+=3;d<S.length;d++)if(S[d]==="-"&&S[d+1]==="-"&&S[d+2]===">"){d+=2;break}}else if(S.length>d+8&&S[d+1]==="D"&&S[d+2]==="O"&&S[d+3]==="C"&&S[d+4]==="T"&&S[d+5]==="Y"&&S[d+6]==="P"&&S[d+7]==="E"){let h=1;for(d+=8;d<S.length;d++)if(S[d]==="<")h++;else if(S[d]===">"&&(h--,h===0))break}else if(S.length>d+9&&S[d+1]==="["&&S[d+2]==="C"&&S[d+3]==="D"&&S[d+4]==="A"&&S[d+5]==="T"&&S[d+6]==="A"&&S[d+7]==="["){for(d+=8;d<S.length;d++)if(S[d]==="]"&&S[d+1]==="]"&&S[d+2]===">"){d+=2;break}}return d}i(y,"c");let m='"',_="'";function b(S,d){let h="",P="",x=!1;for(;d<S.length;d++){if(S[d]===m||S[d]===_)P===""?P=S[d]:P!==S[d]||(P="");else if(S[d]===">"&&P===""){x=!0;break}h+=S[d]}return P===""&&{value:h,index:d,tagClosed:x}}i(b,"g");let A=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function I(S,d){let h=n(S,A),P={};for(let x=0;x<h.length;x++){if(h[x][1].length===0)return j("InvalidAttr","Attribute '"+h[x][2]+"' has no space in starting.",_t(h[x]));if(h[x][3]!==void 0&&h[x][4]===void 0)return j("InvalidAttr","Attribute '"+h[x][2]+"' is without value.",_t(h[x]));if(h[x][3]===void 0&&!d.allowBooleanAttributes)return j("InvalidAttr","boolean attribute '"+h[x][2]+"' is not allowed.",_t(h[x]));let T=h[x][2];if(!ee(T))return j("InvalidAttr","Attribute '"+T+"' is an invalid name.",_t(h[x]));if(Object.prototype.hasOwnProperty.call(P,T))return j("InvalidAttr","Attribute '"+T+"' is repeated.",_t(h[x]));P[T]=1}return!0}i(I,"x");function R(S,d){if(S[++d]===";")return-1;if(S[d]==="#")return(function(P,x){let T=/\d/;for(P[x]==="x"&&(x++,T=/[\da-fA-F]/);x<P.length;x++){if(P[x]===";")return x;if(!P[x].match(T))break}return-1})(S,++d);let h=0;for(;d<S.length;d++,h++)if(!(S[d].match(/\w/)&&h<20)){if(S[d]===";")break;return-1}return d}i(R,"N");function j(S,d,h){return{err:{code:S,msg:d,line:h.line||h,col:h.col}}}i(j,"b");function ee(S){return s(S)}i(ee,"y");function ae(S){return s(S)}i(ae,"E");function fe(S,d){let h=S.substring(0,d).split(/\r?\n/);return{line:h.length,col:h[h.length-1].length+1}}i(fe,"w");function _t(S){return S.startIndex+S[1].length}i(_t,"v");let Me=i(S=>a.includes(S)?"__"+S:S,"S"),Jt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:i(function(S,d){return d},"tagValueProcessor"),attributeValueProcessor:i(function(S,d){return d},"attributeValueProcessor"),stopNodes:[],alwaysCreateTextNode:!1,isArray:i(()=>!1,"isArray"),commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,entityDecoder:null,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:i(function(S,d,h){return S},"updateTag"),captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Me};function $n(S,d){if(typeof S!="string")return;let h=S.toLowerCase();if(a.some(P=>h===P.toLowerCase()))throw new Error(`[SECURITY] Invalid ${d}: "${S}" is a reserved JavaScript keyword that could cause prototype pollution`);if(c.some(P=>h===P.toLowerCase()))throw new Error(`[SECURITY] Invalid ${d}: "${S}" is a reserved JavaScript keyword that could cause prototype pollution`)}i($n,"A");function Io(S,d){return typeof S=="boolean"?{enabled:S,maxEntitySize:1e4,maxExpansionDepth:1e4,maxTotalExpansions:1/0,maxExpandedLength:1e5,maxEntityCount:1e3,allowedTags:null,tagFilter:null,appliesTo:"all"}:typeof S=="object"&&S!==null?{enabled:S.enabled!==!1,maxEntitySize:Math.max(1,S.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,S.maxExpansionDepth??1e4),maxTotalExpansions:Math.max(1,S.maxTotalExpansions??1/0),maxExpandedLength:Math.max(1,S.maxExpandedLength??1e5),maxEntityCount:Math.max(1,S.maxEntityCount??1e3),allowedTags:S.allowedTags??null,tagFilter:S.tagFilter??null,appliesTo:S.appliesTo??"all"}:Io(!0)}i(Io,"T");let Br=i(function(S){let d=Object.assign({},Jt,S),h=[{value:d.attributeNamePrefix,name:"attributeNamePrefix"},{value:d.attributesGroupName,name:"attributesGroupName"},{value:d.textNodeName,name:"textNodeName"},{value:d.cdataPropName,name:"cdataPropName"},{value:d.commentPropName,name:"commentPropName"}];for(let{value:P,name:x}of h)P&&$n(P,x);return d.onDangerousProperty===null&&(d.onDangerousProperty=Me),d.processEntities=Io(d.processEntities,d.htmlEntities),d.unpairedTagsSet=new Set(d.unpairedTags),d.stopNodes&&Array.isArray(d.stopNodes)&&(d.stopNodes=d.stopNodes.map(P=>typeof P=="string"&&P.startsWith("*.")?".."+P.substring(2):P)),d},"C"),Yt;Yt=typeof Symbol!="function"?"@@xmlMetadata":Symbol("XML Node Metadata");class Ye{static{i(this,"O")}constructor(d){this.tagname=d,this.child=[],this[":@"]=Object.create(null)}add(d,h){d==="__proto__"&&(d="#__proto__"),this.child.push({[d]:h})}addChild(d,h){d.tagname==="__proto__"&&(d.tagname="#__proto__"),d[":@"]&&Object.keys(d[":@"]).length>0?this.child.push({[d.tagname]:d.child,":@":d[":@"]}):this.child.push({[d.tagname]:d.child}),h!==void 0&&(this.child[this.child.length-1][Yt]={startIndex:h})}static getMetaDataSymbol(){return Yt}}class an{static{i(this,"$")}constructor(d){this.suppressValidationErr=!d,this.options=d}readDocType(d,h){let P=Object.create(null),x=0;if(d[h+3]!=="O"||d[h+4]!=="C"||d[h+5]!=="T"||d[h+6]!=="Y"||d[h+7]!=="P"||d[h+8]!=="E")throw new Error("Invalid Tag instead of DOCTYPE");{h+=9;let T=1,M=!1,O=!1,F="";for(;h<d.length;h++)if(d[h]!=="<"||O)if(d[h]===">"){if(O?d[h-1]==="-"&&d[h-2]==="-"&&(O=!1,T--):T--,T===0)break}else d[h]==="["?M=!0:F+=d[h];else{if(M&&zs(d,"!ENTITY",h)){let L,U;if(h+=7,[L,U,h]=this.readEntityExp(d,h+1,this.suppressValidationErr),U.indexOf("&")===-1){if(this.options.enabled!==!1&&this.options.maxEntityCount!=null&&x>=this.options.maxEntityCount)throw new Error(`Entity count (${x+1}) exceeds maximum allowed (${this.options.maxEntityCount})`);P[L]=U,x++}}else if(M&&zs(d,"!ELEMENT",h)){h+=8;let{index:L}=this.readElementExp(d,h+1);h=L}else if(M&&zs(d,"!ATTLIST",h))h+=8;else if(M&&zs(d,"!NOTATION",h)){h+=9;let{index:L}=this.readNotationExp(d,h+1,this.suppressValidationErr);h=L}else{if(!zs(d,"!--",h))throw new Error("Invalid DOCTYPE");O=!0}T++,F=""}if(T!==0)throw new Error("Unclosed DOCTYPE")}return{entities:P,i:h}}readEntityExp(d,h){let P=h=Qt(d,h);for(;h<d.length&&!/\s/.test(d[h])&&d[h]!=='"'&&d[h]!=="'";)h++;let x=d.substring(P,h);if(Al(x),h=Qt(d,h),!this.suppressValidationErr){if(d.substring(h,h+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(d[h]==="%")throw new Error("Parameter entities are not supported")}let T="";if([h,T]=this.readIdentifierVal(d,h,"entity"),this.options.enabled!==!1&&this.options.maxEntitySize!=null&&T.length>this.options.maxEntitySize)throw new Error(`Entity "${x}" size (${T.length}) exceeds maximum allowed size (${this.options.maxEntitySize})`);return[x,T,--h]}readNotationExp(d,h){let P=h=Qt(d,h);for(;h<d.length&&!/\s/.test(d[h]);)h++;let x=d.substring(P,h);!this.suppressValidationErr&&Al(x),h=Qt(d,h);let T=d.substring(h,h+6).toUpperCase();if(!this.suppressValidationErr&&T!=="SYSTEM"&&T!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${T}"`);h+=T.length,h=Qt(d,h);let M=null,O=null;if(T==="PUBLIC")[h,M]=this.readIdentifierVal(d,h,"publicIdentifier"),d[h=Qt(d,h)]!=='"'&&d[h]!=="'"||([h,O]=this.readIdentifierVal(d,h,"systemIdentifier"));else if(T==="SYSTEM"&&([h,O]=this.readIdentifierVal(d,h,"systemIdentifier"),!this.suppressValidationErr&&!O))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:x,publicIdentifier:M,systemIdentifier:O,index:--h}}readIdentifierVal(d,h,P){let x="",T=d[h];if(T!=='"'&&T!=="'")throw new Error(`Expected quoted string, found "${T}"`);let M=++h;for(;h<d.length&&d[h]!==T;)h++;if(x=d.substring(M,h),d[h]!==T)throw new Error(`Unterminated ${P} value`);return[++h,x]}readElementExp(d,h){let P=h=Qt(d,h);for(;h<d.length&&!/\s/.test(d[h]);)h++;let x=d.substring(P,h);if(!this.suppressValidationErr&&!s(x))throw new Error(`Invalid element name: "${x}"`);let T="";if(d[h=Qt(d,h)]==="E"&&zs(d,"MPTY",h))h+=4;else if(d[h]==="A"&&zs(d,"NY",h))h+=2;else if(d[h]==="("){let M=++h;for(;h<d.length&&d[h]!==")";)h++;if(T=d.substring(M,h),d[h]!==")")throw new Error("Unterminated content model")}else if(!this.suppressValidationErr)throw new Error(`Invalid Element Expression, found "${d[h]}"`);return{elementName:x,contentModel:T.trim(),index:h}}readAttlistExp(d,h){let P=h=Qt(d,h);for(;h<d.length&&!/\s/.test(d[h]);)h++;let x=d.substring(P,h);for(Al(x),P=h=Qt(d,h);h<d.length&&!/\s/.test(d[h]);)h++;let T=d.substring(P,h);if(!Al(T))throw new Error(`Invalid attribute name: "${T}"`);h=Qt(d,h);let M="";if(d.substring(h,h+8).toUpperCase()==="NOTATION"){if(M="NOTATION",d[h=Qt(d,h+=8)]!=="(")throw new Error(`Expected '(', found "${d[h]}"`);h++;let F=[];for(;h<d.length&&d[h]!==")";){let L=h;for(;h<d.length&&d[h]!=="|"&&d[h]!==")";)h++;let U=d.substring(L,h);if(U=U.trim(),!Al(U))throw new Error(`Invalid notation name: "${U}"`);F.push(U),d[h]==="|"&&(h++,h=Qt(d,h))}if(d[h]!==")")throw new Error("Unterminated list of notations");h++,M+=" ("+F.join("|")+")"}else{let F=h;for(;h<d.length&&!/\s/.test(d[h]);)h++;M+=d.substring(F,h);let L=["CDATA","ID","IDREF","IDREFS","ENTITY","ENTITIES","NMTOKEN","NMTOKENS"];if(!this.suppressValidationErr&&!L.includes(M.toUpperCase()))throw new Error(`Invalid attribute type: "${M}"`)}h=Qt(d,h);let O="";return d.substring(h,h+8).toUpperCase()==="#REQUIRED"?(O="#REQUIRED",h+=8):d.substring(h,h+7).toUpperCase()==="#IMPLIED"?(O="#IMPLIED",h+=7):[h,O]=this.readIdentifierVal(d,h,"ATTLIST"),{elementName:x,attributeName:T,attributeType:M,defaultValue:O,index:h}}}let Qt=i((S,d)=>{for(;d<S.length&&/\s/.test(S[d]);)d++;return d},"I");function zs(S,d,h){for(let P=0;P<d.length;P++)if(d[P]!==S[h+P+1])return!1;return!0}i(zs,"D");function Al(S){if(s(S))return S;throw new Error(`Invalid entity name ${S}`)}i(Al,"M");let Fle=/^[-+]?0x[a-fA-F0-9]+$/,Ule=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,jle={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0,infinity:"original"},Ble=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class Vle{static{i(this,"F")}constructor(d){this._matcher=d}get separator(){return this._matcher.separator}getCurrentTag(){let d=this._matcher.path;return d.length>0?d[d.length-1].tag:void 0}getCurrentNamespace(){let d=this._matcher.path;return d.length>0?d[d.length-1].namespace:void 0}getAttrValue(d){let h=this._matcher.path;if(h.length!==0)return h[h.length-1].values?.[d]}hasAttr(d){let h=this._matcher.path;if(h.length===0)return!1;let P=h[h.length-1];return P.values!==void 0&&d in P.values}getPosition(){let d=this._matcher.path;return d.length===0?-1:d[d.length-1].position??0}getCounter(){let d=this._matcher.path;return d.length===0?-1:d[d.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this._matcher.path.length}toString(d,h=!0){return this._matcher.toString(d,h)}toArray(){return this._matcher.path.map(d=>d.tag)}matches(d){return this._matcher.matches(d)}matchesAny(d){return d.matchesAny(this._matcher)}}class FA{static{i(this,"R")}constructor(d={}){this.separator=d.separator||".",this.path=[],this.siblingStacks=[],this._pathStringCache=null,this._view=new Vle(this)}push(d,h=null,P=null){this._pathStringCache=null,this.path.length>0&&(this.path[this.path.length-1].values=void 0);let x=this.path.length;this.siblingStacks[x]||(this.siblingStacks[x]=new Map);let T=this.siblingStacks[x],M=P?`${P}:${d}`:d,O=T.get(M)||0,F=0;for(let U of T.values())F+=U;T.set(M,O+1);let L={tag:d,position:F,counter:O};P!=null&&(L.namespace=P),h!=null&&(L.values=h),this.path.push(L)}pop(){if(this.path.length===0)return;this._pathStringCache=null;let d=this.path.pop();return this.siblingStacks.length>this.path.length+1&&(this.siblingStacks.length=this.path.length+1),d}updateCurrent(d){if(this.path.length>0){let h=this.path[this.path.length-1];d!=null&&(h.values=d)}}getCurrentTag(){return this.path.length>0?this.path[this.path.length-1].tag:void 0}getCurrentNamespace(){return this.path.length>0?this.path[this.path.length-1].namespace:void 0}getAttrValue(d){if(this.path.length!==0)return this.path[this.path.length-1].values?.[d]}hasAttr(d){if(this.path.length===0)return!1;let h=this.path[this.path.length-1];return h.values!==void 0&&d in h.values}getPosition(){return this.path.length===0?-1:this.path[this.path.length-1].position??0}getCounter(){return this.path.length===0?-1:this.path[this.path.length-1].counter??0}getIndex(){return this.getPosition()}getDepth(){return this.path.length}toString(d,h=!0){let P=d||this.separator;if(P===this.separator&&h===!0){if(this._pathStringCache!==null)return this._pathStringCache;let x=this.path.map(T=>T.namespace?`${T.namespace}:${T.tag}`:T.tag).join(P);return this._pathStringCache=x,x}return this.path.map(x=>h&&x.namespace?`${x.namespace}:${x.tag}`:x.tag).join(P)}toArray(){return this.path.map(d=>d.tag)}reset(){this._pathStringCache=null,this.path=[],this.siblingStacks=[]}matches(d){let h=d.segments;return h.length!==0&&(d.hasDeepWildcard()?this._matchWithDeepWildcard(h):this._matchSimple(h))}_matchSimple(d){if(this.path.length!==d.length)return!1;for(let h=0;h<d.length;h++)if(!this._matchSegment(d[h],this.path[h],h===this.path.length-1))return!1;return!0}_matchWithDeepWildcard(d){let h=this.path.length-1,P=d.length-1;for(;P>=0&&h>=0;){let x=d[P];if(x.type==="deep-wildcard"){if(P--,P<0)return!0;let T=d[P],M=!1;for(let O=h;O>=0;O--)if(this._matchSegment(T,this.path[O],O===this.path.length-1)){h=O-1,P--,M=!0;break}if(!M)return!1}else{if(!this._matchSegment(x,this.path[h],h===this.path.length-1))return!1;h--,P--}}return P<0}_matchSegment(d,h,P){if(d.tag!=="*"&&d.tag!==h.tag||d.namespace!==void 0&&d.namespace!=="*"&&d.namespace!==h.namespace||d.attrName!==void 0&&(!P||!h.values||!(d.attrName in h.values)||d.attrValue!==void 0&&String(h.values[d.attrName])!==String(d.attrValue)))return!1;if(d.position!==void 0){if(!P)return!1;let x=h.counter??0;if(d.position==="first"&&x!==0||d.position==="odd"&&x%2!=1||d.position==="even"&&x%2!=0||d.position==="nth"&&x!==d.positionValue)return!1}return!0}matchesAny(d){return d.matchesAny(this)}snapshot(){return{path:this.path.map(d=>({...d})),siblingStacks:this.siblingStacks.map(d=>new Map(d))}}restore(d){this._pathStringCache=null,this.path=d.path.map(h=>({...h})),this.siblingStacks=d.siblingStacks.map(h=>new Map(h))}readOnly(){return this._view}}class mc{static{i(this,"G")}constructor(d,h={},P){this.pattern=d,this.separator=h.separator||".",this.segments=this._parse(d),this.data=P,this._hasDeepWildcard=this.segments.some(x=>x.type==="deep-wildcard"),this._hasAttributeCondition=this.segments.some(x=>x.attrName!==void 0),this._hasPositionSelector=this.segments.some(x=>x.position!==void 0)}_parse(d){let h=[],P=0,x="";for(;P<d.length;)d[P]===this.separator?P+1<d.length&&d[P+1]===this.separator?(x.trim()&&(h.push(this._parseSegment(x.trim())),x=""),h.push({type:"deep-wildcard"}),P+=2):(x.trim()&&h.push(this._parseSegment(x.trim())),x="",P++):(x+=d[P],P++);return x.trim()&&h.push(this._parseSegment(x.trim())),h}_parseSegment(d){let h={type:"tag"},P=null,x=d,T=d.match(/^([^\[]+)(\[[^\]]*\])(.*)$/);if(T&&(x=T[1]+T[3],T[2])){let U=T[2].slice(1,-1);U&&(P=U)}let M,O,F=x;if(x.includes("::")){let U=x.indexOf("::");if(M=x.substring(0,U).trim(),F=x.substring(U+2).trim(),!M)throw new Error(`Invalid namespace in pattern: ${d}`)}let L=null;if(F.includes(":")){let U=F.lastIndexOf(":"),Y=F.substring(0,U).trim(),ne=F.substring(U+1).trim();["first","last","odd","even"].includes(ne)||/^nth\(\d+\)$/.test(ne)?(O=Y,L=ne):O=F}else O=F;if(!O)throw new Error(`Invalid segment pattern: ${d}`);if(h.tag=O,M&&(h.namespace=M),P)if(P.includes("=")){let U=P.indexOf("=");h.attrName=P.substring(0,U).trim(),h.attrValue=P.substring(U+1).trim()}else h.attrName=P.trim();if(L){let U=L.match(/^nth\((\d+)\)$/);U?(h.position="nth",h.positionValue=parseInt(U[1],10)):h.position=L}return h}get length(){return this.segments.length}hasDeepWildcard(){return this._hasDeepWildcard}hasAttributeCondition(){return this._hasAttributeCondition}hasPositionSelector(){return this._hasPositionSelector}toString(){return this.pattern}}class Hle{static{i(this,"B")}constructor(){this._byDepthAndTag=new Map,this._wildcardByDepth=new Map,this._deepWildcards=[],this._patterns=new Set,this._sealed=!1}add(d){if(this._sealed)throw new TypeError("ExpressionSet is sealed. Create a new ExpressionSet to add more expressions.");if(this._patterns.has(d.pattern))return this;if(this._patterns.add(d.pattern),d.hasDeepWildcard())return this._deepWildcards.push(d),this;let h=d.length,P=d.segments[d.segments.length-1],x=P?.tag;if(x&&x!=="*"){let T=`${h}:${x}`;this._byDepthAndTag.has(T)||this._byDepthAndTag.set(T,[]),this._byDepthAndTag.get(T).push(d)}else this._wildcardByDepth.has(h)||this._wildcardByDepth.set(h,[]),this._wildcardByDepth.get(h).push(d);return this}addAll(d){for(let h of d)this.add(h);return this}has(d){return this._patterns.has(d.pattern)}get size(){return this._patterns.size}seal(){return this._sealed=!0,this}get isSealed(){return this._sealed}matchesAny(d){return this.findMatch(d)!==null}findMatch(d){let h=d.getDepth(),P=`${h}:${d.getCurrentTag()}`,x=this._byDepthAndTag.get(P);if(x){for(let M=0;M<x.length;M++)if(d.matches(x[M]))return x[M]}let T=this._wildcardByDepth.get(h);if(T){for(let M=0;M<T.length;M++)if(d.matches(T[M]))return T[M]}for(let M=0;M<this._deepWildcards.length;M++)if(d.matches(this._deepWildcards[M]))return this._deepWildcards[M];return null}}let Gle={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",euro:"\u20AC",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"},Pz={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},qle={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"},Wle=new Set("!?\\\\/[]$%{}^&*()<>|+");function Cz(S){if(S[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${S}"`);for(let d of S)if(Wle.has(d))throw new Error(`[EntityReplacer] Invalid character '${d}' in entity name: "${S}"`);return S}i(Cz,"z");function UA(...S){let d=Object.create(null);for(let h of S)if(h)for(let P of Object.keys(h)){let x=h[P];if(typeof x=="string")d[P]=x;else if(x&&typeof x=="object"&&x.val!==void 0){let T=x.val;typeof T=="string"&&(d[P]=T)}}return d}i(UA,"q");let Fs="external",cg="base",jA="all",Vr=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Zle=new Set([9,10,13]);class Kle{static{i(this,"tt")}constructor(d={}){var h;this._limit=d.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof d.postCheck=="function"?d.postCheck:x=>x,this._limitTiers=(h=this._limit.applyLimitsTo??Fs)&&h!==Fs?h===jA?new Set([jA]):h===cg?new Set([cg]):Array.isArray(h)?new Set(h):new Set([Fs]):new Set([Fs]),this._numericAllowed=d.numericAllowed??!0,this._baseMap=UA(Pz,d.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(d.remove&&Array.isArray(d.remove)?d.remove:[]),this._leaveSet=new Set(d.leave&&Array.isArray(d.leave)?d.leave:[]);let P=(function(x){if(!x)return{xmlVersion:1,onLevel:Vr.allow,nullLevel:Vr.remove};let T=x.xmlVersion===1.1?1.1:1,M=Vr[x.onNCR]??Vr.allow,O=Vr[x.nullNCR]??Vr.remove;return{xmlVersion:T,onLevel:M,nullLevel:Math.max(O,Vr.remove)}})(d.ncr);this._ncrXmlVersion=P.xmlVersion,this._ncrOnLevel=P.onLevel,this._ncrNullLevel=P.nullLevel}setExternalEntities(d){if(d)for(let h of Object.keys(d))Cz(h);this._externalMap=UA(d)}addExternalEntity(d,h){Cz(d),typeof h=="string"&&h.indexOf("&")===-1&&(this._externalMap[d]=h)}addInputEntities(d){this._totalExpansions=0,this._expandedLength=0,this._inputMap=UA(d)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(d){this._ncrXmlVersion=d===1.1?1.1:1}decode(d){if(typeof d!="string"||d.length===0)return d;let h=d,P=[],x=d.length,T=0,M=0,O=this._maxTotalExpansions>0,F=this._maxExpandedLength>0,L=O||F;for(;M<x;){if(d.charCodeAt(M)!==38){M++;continue}let Y=M+1;for(;Y<x&&d.charCodeAt(Y)!==59&&Y-M<=32;)Y++;if(Y>=x||d.charCodeAt(Y)!==59){M++;continue}let ne=d.slice(M+1,Y);if(ne.length===0){M++;continue}let ie,le;if(this._removeSet.has(ne))ie="",le===void 0&&(le=Fs);else{if(this._leaveSet.has(ne)){M++;continue}if(ne.charCodeAt(0)===35){let ve=this._resolveNCR(ne);if(ve===void 0){M++;continue}ie=ve,le=cg}else{let ve=this._resolveName(ne);ie=ve?.value,le=ve?.tier}}if(ie!==void 0){if(M>T&&P.push(d.slice(T,M)),P.push(ie),T=Y+1,M=T,L&&this._tierCounts(le)){if(O&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(F){let ve=ie.length-(ne.length+2);if(ve>0&&(this._expandedLength+=ve,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}else M++}T<x&&P.push(d.slice(T));let U=P.length===0?d:P.join("");return this._postCheck(U,h)}_tierCounts(d){return!!this._limitTiers.has(jA)||this._limitTiers.has(d)}_resolveName(d){return d in this._inputMap?{value:this._inputMap[d],tier:Fs}:d in this._externalMap?{value:this._externalMap[d],tier:Fs}:d in this._baseMap?{value:this._baseMap[d],tier:cg}:void 0}_classifyNCR(d){return d===0?this._ncrNullLevel:d>=55296&&d<=57343||this._ncrXmlVersion===1&&d>=1&&d<=31&&!Zle.has(d)?Vr.remove:-1}_applyNCRAction(d,h,P){switch(d){case Vr.allow:return String.fromCodePoint(P);case Vr.remove:return"";case Vr.leave:return;case Vr.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${h}; (U+${P.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(P)}}_resolveNCR(d){let h=d.charCodeAt(1),P;if(P=h===120||h===88?parseInt(d.slice(2),16):parseInt(d.slice(1),10),Number.isNaN(P)||P<0||P>1114111)return;let x=this._classifyNCR(P);if(!this._numericAllowed&&x<Vr.remove)return;let T=x===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,x);return this._applyNCRAction(T,d,P)}}function Xle(S,d){if(!S)return{};let h=d.attributesGroupName?S[d.attributesGroupName]:S;if(!h)return{};let P={};for(let x in h)x.startsWith(d.attributeNamePrefix)?P[x.substring(d.attributeNamePrefix.length)]=h[x]:P[x]=h[x];return P}i(Xle,"et");function Jle(S){if(!S||typeof S!="string")return;let d=S.indexOf(":");if(d!==-1&&d>0){let h=S.substring(0,d);if(h!=="xmlns")return h}}i(Jle,"nt");class Yle{static{i(this,"it")}constructor(d){var h;this.options=d,this.currentNode=null,this.tagsNodeStack=[],this.parseXml=nde,this.parseTextData=Qle,this.resolveNameSpace=ede,this.buildAttributesMap=rde,this.isItStopNode=ade,this.replaceEntitiesValue=ide,this.readStopNodeData=ude,this.saveTextToParentTag=sde,this.addChild=ode,this.ignoreAttributesFn=typeof(h=this.options.ignoreAttributes)=="function"?h:Array.isArray(h)?T=>{for(let M of h)if(typeof M=="string"&&T===M||M instanceof RegExp&&M.test(T))return!0}:()=>!1,this.entityExpansionCount=0,this.currentExpandedLength=0;let P={...Pz};this.options.entityDecoder?this.entityDecoder=this.options.entityDecoder:(typeof this.options.htmlEntities=="object"?P=this.options.htmlEntities:this.options.htmlEntities===!0&&(P={...qle,...Gle}),this.entityDecoder=new Kle({namedEntities:P,numericAllowed:this.options.htmlEntities,limit:{maxTotalExpansions:this.options.processEntities.maxTotalExpansions,maxExpandedLength:this.options.processEntities.maxExpandedLength,applyLimitsTo:this.options.processEntities.appliesTo}})),this.matcher=new FA,this.readonlyMatcher=this.matcher.readOnly(),this.isCurrentNodeStopNode=!1,this.stopNodeExpressionsSet=new Hle;let x=this.options.stopNodes;if(x&&x.length>0){for(let T=0;T<x.length;T++){let M=x[T];typeof M=="string"?this.stopNodeExpressionsSet.add(new mc(M)):M instanceof mc&&this.stopNodeExpressionsSet.add(M)}this.stopNodeExpressionsSet.seal()}}}function Qle(S,d,h,P,x,T,M){let O=this.options;if(S!==void 0&&(O.trimValues&&!P&&(S=S.trim()),S.length>0)){M||(S=this.replaceEntitiesValue(S,d,h));let F=O.jPath?h.toString():h,L=O.tagValueProcessor(d,S,F,x,T);return L==null?S:typeof L!=typeof S||L!==S?L:O.trimValues||S.trim()===S?Az(S,O.parseTagValue,O.numberParseOptions):S}}i(Qle,"st");function ede(S){if(this.options.removeNSPrefix){let d=S.split(":"),h=S.charAt(0)==="/"?"/":"";if(d[0]==="xmlns")return"";d.length===2&&(S=h+d[1])}return S}i(ede,"rt");let tde=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function rde(S,d,h,P=!1){let x=this.options;if(P===!0||x.ignoreAttributes!==!0&&typeof S=="string"){let T=n(S,tde),M=T.length,O={},F=new Array(M),L=!1,U={};for(let ie=0;ie<M;ie++){let le=this.resolveNameSpace(T[ie][1]),ve=T[ie][4];if(le.length&&ve!==void 0){let bt=ve;x.trimValues&&(bt=bt.trim()),bt=this.replaceEntitiesValue(bt,h,this.readonlyMatcher),F[ie]=bt,U[le]=bt,L=!0}}L&&typeof d=="object"&&d.updateCurrent&&d.updateCurrent(U);let Y=x.jPath?d.toString():this.readonlyMatcher,ne=!1;for(let ie=0;ie<M;ie++){let le=this.resolveNameSpace(T[ie][1]);if(this.ignoreAttributesFn(le,Y))continue;let ve=x.attributeNamePrefix+le;if(le.length)if(x.transformAttributeName&&(ve=x.transformAttributeName(ve)),ve=Tz(ve,x),T[ie][4]!==void 0){let bt=F[ie],br=x.attributeValueProcessor(le,bt,Y);O[ve]=br==null?bt:typeof br!=typeof bt||br!==bt?br:Az(bt,x.parseAttributeValue,x.numberParseOptions),ne=!0}else x.allowBooleanAttributes&&(O[ve]=!0,ne=!0)}if(!ne)return;if(x.attributesGroupName){let ie={};return ie[x.attributesGroupName]=O,ie}return O}}i(rde,"at");let nde=i(function(S){S=S.replace(/\r\n?/g,`
55
+ `);let d=new Ye("!xml"),h=d,P="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let x=this.options,T=new an(x.processEntities),M=S.length;for(let O=0;O<M;O++)if(S[O]==="<"){let F=S.charCodeAt(O+1);if(F===47){let L=gc(S,">",O,"Closing Tag is not closed."),U=S.substring(O+2,L).trim();if(x.removeNSPrefix){let ne=U.indexOf(":");ne!==-1&&(U=U.substr(ne+1))}U=VA(x.transformTagName,U,"",x).tagName,h&&(P=this.saveTextToParentTag(P,h,this.readonlyMatcher));let Y=this.matcher.getCurrentTag();if(U&&x.unpairedTagsSet.has(U))throw new Error(`Unpaired tag can not be used as closing tag: </${U}>`);Y&&x.unpairedTagsSet.has(Y)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,h=this.tagsNodeStack.pop(),P="",O=L}else if(F===63){let L=BA(S,O,!1,"?>");if(!L)throw new Error("Pi Tag is not closed.");P=this.saveTextToParentTag(P,h,this.readonlyMatcher);let U=this.buildAttributesMap(L.tagExp,this.matcher,L.tagName,!0);if(U){let Y=U[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(Y)||1)}if(!(x.ignoreDeclaration&&L.tagName==="?xml"||x.ignorePiTags)){let Y=new Ye(L.tagName);Y.add(x.textNodeName,""),L.tagName!==L.tagExp&&L.attrExpPresent&&x.ignoreAttributes!==!0&&(Y[":@"]=U),this.addChild(h,Y,this.readonlyMatcher,O)}O=L.closeIndex+1}else if(F===33&&S.charCodeAt(O+2)===45&&S.charCodeAt(O+3)===45){let L=gc(S,"-->",O+4,"Comment is not closed.");if(x.commentPropName){let U=S.substring(O+4,L-2);P=this.saveTextToParentTag(P,h,this.readonlyMatcher),h.add(x.commentPropName,[{[x.textNodeName]:U}])}O=L}else if(F===33&&S.charCodeAt(O+2)===68){let L=T.readDocType(S,O);this.entityDecoder.addInputEntities(L.entities),O=L.i}else if(F===33&&S.charCodeAt(O+2)===91){let L=gc(S,"]]>",O,"CDATA is not closed.")-2,U=S.substring(O+9,L);P=this.saveTextToParentTag(P,h,this.readonlyMatcher);let Y=this.parseTextData(U,h.tagname,this.readonlyMatcher,!0,!1,!0,!0);Y==null&&(Y=""),x.cdataPropName?h.add(x.cdataPropName,[{[x.textNodeName]:U}]):h.add(x.textNodeName,Y),O=L+2}else{let L=BA(S,O,x.removeNSPrefix);if(!L){let Cr=S.substring(Math.max(0,O-50),Math.min(M,O+50));throw new Error(`readTagExp returned undefined at position ${O}. Context: "${Cr}"`)}let U=L.tagName,Y=L.rawTagName,ne=L.tagExp,ie=L.attrExpPresent,le=L.closeIndex;if({tagName:U,tagExp:ne}=VA(x.transformTagName,U,ne,x),x.strictReservedNames&&(U===x.commentPropName||U===x.cdataPropName||U===x.textNodeName||U===x.attributesGroupName))throw new Error(`Invalid tag name: ${U}`);h&&P&&h.tagname!=="!xml"&&(P=this.saveTextToParentTag(P,h,this.readonlyMatcher,!1));let ve=h;ve&&x.unpairedTagsSet.has(ve.tagname)&&(h=this.tagsNodeStack.pop(),this.matcher.pop());let bt=!1;ne.length>0&&ne.lastIndexOf("/")===ne.length-1&&(bt=!0,U[U.length-1]==="/"?(U=U.substr(0,U.length-1),ne=U):ne=ne.substr(0,ne.length-1),ie=U!==ne);let br,Pr=null,yi={};br=Jle(Y),U!==d.tagname&&this.matcher.push(U,{},br),U!==ne&&ie&&(Pr=this.buildAttributesMap(ne,this.matcher,U),Pr&&(yi=Xle(Pr,x))),U!==d.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let un=O;if(this.isCurrentNodeStopNode){let Cr="";if(bt)O=L.closeIndex;else if(x.unpairedTagsSet.has(U))O=L.closeIndex;else{let WA=this.readStopNodeData(S,Y,le+1);if(!WA)throw new Error(`Unexpected end of ${Y}`);O=WA.i,Cr=WA.tagContent}let qA=new Ye(U);Pr&&(qA[":@"]=Pr),qA.add(x.textNodeName,Cr),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(h,qA,this.readonlyMatcher,un)}else{if(bt){({tagName:U,tagExp:ne}=VA(x.transformTagName,U,ne,x));let Cr=new Ye(U);Pr&&(Cr[":@"]=Pr),this.addChild(h,Cr,this.readonlyMatcher,un),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else{if(x.unpairedTagsSet.has(U)){let Cr=new Ye(U);Pr&&(Cr[":@"]=Pr),this.addChild(h,Cr,this.readonlyMatcher,un),this.matcher.pop(),this.isCurrentNodeStopNode=!1,O=L.closeIndex;continue}{let Cr=new Ye(U);if(this.tagsNodeStack.length>x.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(h),Pr&&(Cr[":@"]=Pr),this.addChild(h,Cr,this.readonlyMatcher,un),h=Cr}}P="",O=le}}}else P+=S[O];return d.child},"ht");function ode(S,d,h,P){this.options.captureMetaData||(P=void 0);let x=this.options.jPath?h.toString():h,T=this.options.updateTag(d.tagname,x,d[":@"]);T===!1||(typeof T=="string"&&(d.tagname=T),S.addChild(d,P))}i(ode,"lt");function ide(S,d,h){let P=this.options.processEntities;if(!P||!P.enabled)return S;if(P.allowedTags){let x=this.options.jPath?h.toString():h;if(!(Array.isArray(P.allowedTags)?P.allowedTags.includes(d):P.allowedTags(d,x)))return S}if(P.tagFilter){let x=this.options.jPath?h.toString():h;if(!P.tagFilter(d,x))return S}return this.entityDecoder.decode(S)}i(ide,"ut");function sde(S,d,h,P){return S&&(P===void 0&&(P=d.child.length===0),(S=this.parseTextData(S,d.tagname,h,!1,!!d[":@"]&&Object.keys(d[":@"]).length!==0,P))!==void 0&&S!==""&&d.add(this.options.textNodeName,S),S=""),S}i(sde,"pt");function ade(){return this.stopNodeExpressionsSet.size!==0&&this.matcher.matchesAny(this.stopNodeExpressionsSet)}i(ade,"ct");function gc(S,d,h,P){let x=S.indexOf(d,h);if(x===-1)throw new Error(P);return x+d.length-1}i(gc,"dt");function cde(S,d,h,P){let x=S.indexOf(d,h);if(x===-1)throw new Error(P);return x}i(cde,"ft");function BA(S,d,h,P=">"){let x=(function(Y,ne,ie=">"){let le=0,ve=[],bt=Y.length,br=ie.charCodeAt(0),Pr=ie.length>1?ie.charCodeAt(1):-1;for(let yi=ne;yi<bt;yi++){let un=Y.charCodeAt(yi);if(le)un===le&&(le=0);else if(un===34||un===39)le=un;else if(un===br){if(Pr===-1)return{data:String.fromCharCode(...ve),index:yi};if(Y.charCodeAt(yi+1)===Pr)return{data:String.fromCharCode(...ve),index:yi}}else if(un===9){ve.push(32);continue}ve.push(un)}})(S,d+1,P);if(!x)return;let T=x.data,M=x.index,O=T.search(/\s/),F=T,L=!0;O!==-1&&(F=T.substring(0,O),T=T.substring(O+1).trimStart());let U=F;if(h){let Y=F.indexOf(":");Y!==-1&&(F=F.substr(Y+1),L=F!==x.data.substr(Y+1))}return{tagName:F,tagExp:T,closeIndex:M,attrExpPresent:L,rawTagName:U}}i(BA,"gt");function ude(S,d,h){let P=h,x=1,T=S.length;for(;h<T;h++)if(S[h]==="<"){let M=S.charCodeAt(h+1);if(M===47){let O=cde(S,">",h,`${d} is not closed`);if(S.substring(h+2,O).trim()===d&&(x--,x===0))return{tagContent:S.substring(P,h),i:O};h=O}else if(M===63)h=gc(S,"?>",h+1,"StopNode is not closed.");else if(M===33&&S.charCodeAt(h+2)===45&&S.charCodeAt(h+3)===45)h=gc(S,"-->",h+3,"StopNode is not closed.");else if(M===33&&S.charCodeAt(h+2)===91)h=gc(S,"]]>",h,"StopNode is not closed.")-2;else{let O=BA(S,h,">");O&&((O&&O.tagName)===d&&O.tagExp[O.tagExp.length-1]!=="/"&&x++,h=O.closeIndex)}}}i(ude,"mt");function Az(S,d,h){if(d&&typeof S=="string"){let P=S.trim();return P==="true"||P!=="false"&&(function(x,T={}){if(T=Object.assign({},jle,T),!x||typeof x!="string")return x;let M=x.trim();if(M.length===0||T.skipLike!==void 0&&T.skipLike.test(M))return x;if(M==="0")return 0;if(T.hex&&Fle.test(M))return(function(F){if(parseInt)return parseInt(F,16);if(Number.parseInt)return Number.parseInt(F,16);if(window&&window.parseInt)return window.parseInt(F,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")})(M);if(isFinite(M)){if(M.includes("e")||M.includes("E"))return(function(F,L,U){if(!U.eNotation)return F;let Y=L.match(Ble);if(Y){let ne=Y[1]||"",ie=Y[3].indexOf("e")===-1?"E":"e",le=Y[2],ve=ne?F[le.length+1]===ie:F[le.length]===ie;return le.length>1&&ve?F:(le.length!==1||!Y[3].startsWith(`.${ie}`)&&Y[3][0]!==ie)&&le.length>0?U.leadingZeros&&!ve?(L=(Y[1]||"")+Y[3],Number(L)):F:Number(L)}return F})(x,M,T);{let F=Ule.exec(M);if(F){let L=F[1]||"",U=F[2],Y=((O=F[3])&&O.indexOf(".")!==-1&&((O=O.replace(/0+$/,""))==="."?O="0":O[0]==="."?O="0"+O:O[O.length-1]==="."&&(O=O.substring(0,O.length-1))),O),ne=L?x[U.length+1]===".":x[U.length]===".";if(!T.leadingZeros&&(U.length>1||U.length===1&&!ne))return x;{let ie=Number(M),le=String(ie);if(ie===0)return ie;if(le.search(/[eE]/)!==-1)return T.eNotation?ie:x;if(M.indexOf(".")!==-1)return le==="0"||le===Y||le===`${L}${Y}`?ie:x;let ve=U?Y:M;return U?ve===le||L+ve===le?ie:x:ve===le||ve===L+le?ie:x}}return x}}var O;return(function(F,L,U){let Y=L===1/0;switch(U.infinity.toLowerCase()){case"null":return null;case"infinity":return L;case"string":return Y?"Infinity":"-Infinity";default:return F}})(x,Number(M),T)})(S,h)}return S!==void 0?S:""}i(Az,"xt");function VA(S,d,h,P){if(S){let x=S(d);h===d&&(h=x),d=x}return{tagName:d=Tz(d,P),tagExp:h}}i(VA,"Nt");function Tz(S,d){if(c.includes(S))throw new Error(`[SECURITY] Invalid name: "${S}" is a reserved JavaScript keyword that could cause prototype pollution`);return a.includes(S)?d.onDangerousProperty(S):S}i(Tz,"bt");let HA=Ye.getMetaDataSymbol();function lde(S,d){if(!S||typeof S!="object")return{};if(!d)return S;let h={};for(let P in S)P.startsWith(d)?h[P.substring(d.length)]=S[P]:h[P]=S[P];return h}i(lde,"Et");function dde(S,d,h,P){return Iz(S,d,h,P)}i(dde,"wt");function Iz(S,d,h,P){let x,T={};for(let M=0;M<S.length;M++){let O=S[M],F=pde(O);if(F!==void 0&&F!==d.textNodeName){let L=lde(O[":@"]||{},d.attributeNamePrefix);h.push(F,L)}if(F===d.textNodeName)x===void 0?x=O[F]:x+=""+O[F];else{if(F===void 0)continue;if(O[F]){let L=Iz(O[F],d,h,P),U=mde(L,d);if(O[":@"]?fde(L,O[":@"],P,d):Object.keys(L).length!==1||L[d.textNodeName]===void 0||d.alwaysCreateTextNode?Object.keys(L).length===0&&(d.alwaysCreateTextNode?L[d.textNodeName]="":L=""):L=L[d.textNodeName],O[HA]!==void 0&&typeof L=="object"&&L!==null&&(L[HA]=O[HA]),T[F]!==void 0&&Object.prototype.hasOwnProperty.call(T,F))Array.isArray(T[F])||(T[F]=[T[F]]),T[F].push(L);else{let Y=d.jPath?P.toString():P;d.isArray(F,Y,U)?T[F]=[L]:T[F]=L}F!==void 0&&F!==d.textNodeName&&h.pop()}}}return typeof x=="string"?x.length>0&&(T[d.textNodeName]=x):x!==void 0&&(T[d.textNodeName]=x),T}i(Iz,"vt");function pde(S){let d=Object.keys(S);for(let h=0;h<d.length;h++){let P=d[h];if(P!==":@")return P}}i(pde,"St");function fde(S,d,h,P){if(d){let x=Object.keys(d),T=x.length;for(let M=0;M<T;M++){let O=x[M],F=O.startsWith(P.attributeNamePrefix)?O.substring(P.attributeNamePrefix.length):O,L=P.jPath?h.toString()+"."+F:h;P.isArray(O,L,!0,!0)?S[O]=[d[O]]:S[O]=d[O]}}}i(fde,"_t");function mde(S,d){let{textNodeName:h}=d,P=Object.keys(S).length;return P===0||!(P!==1||!S[h]&&typeof S[h]!="boolean"&&S[h]!==0)}i(mde,"At");class gde{static{i(this,"Tt")}constructor(d){this.externalEntities={},this.options=Br(d)}parse(d,h){if(typeof d!="string"&&d.toString)d=d.toString();else if(typeof d!="string")throw new Error("XML data is accepted in String or Bytes[] form.");if(h){h===!0&&(h={});let T=l(d,h);if(T!==!0)throw Error(`${T.err.msg}:${T.err.line}:${T.err.col}`)}let P=new Yle(this.options);P.entityDecoder.setExternalEntities(this.externalEntities);let x=P.parseXml(d);return this.options.preserveOrder||x===void 0?x:dde(x,this.options,P.matcher,P.readonlyMatcher)}addEntity(d,h){if(h.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(d.indexOf("&")!==-1||d.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(h==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[d]=h}static getMetaDataSymbol(){return Ye.getMetaDataSymbol()}}function hde(S,d){let h="";d.format&&d.indentBy.length>0&&(h=`
56
+ `);let P=[];if(d.stopNodes&&Array.isArray(d.stopNodes))for(let x=0;x<d.stopNodes.length;x++){let T=d.stopNodes[x];typeof T=="string"?P.push(new mc(T)):T instanceof mc&&P.push(T)}return wz(S,d,h,new FA,P)}i(hde,"Ct");function wz(S,d,h,P,x){let T="",M=!1;if(d.maxNestedTags&&P.getDepth()>d.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(S)){if(S!=null){let O=S.toString();return O=GA(O,d),O}return""}for(let O=0;O<S.length;O++){let F=S[O],L=$z(F);if(L===void 0)continue;let U=yde(F[":@"],d);P.push(L,U);let Y=Sde(P,x);if(L===d.textNodeName){let ve=F[L];Y||(ve=d.tagValueProcessor(L,ve),ve=GA(ve,d)),M&&(T+=h),T+=ve,M=!1,P.pop();continue}if(L===d.cdataPropName){M&&(T+=h);let ve=F[L][0][d.textNodeName];T+=`<![CDATA[${String(ve).replace(/\]\]>/g,"]]]]><![CDATA[>")}]]>`,M=!1,P.pop();continue}if(L===d.commentPropName){let ve=F[L][0][d.textNodeName];T+=h+`<!--${String(ve).replace(/--/g,"- -").replace(/-$/,"- ")}-->`,M=!0,P.pop();continue}if(L[0]==="?"){let ve=Oz(F[":@"],d,Y),bt=L==="?xml"?"":h,br=F[L][0][d.textNodeName];br=br.length!==0?" "+br:"",T+=bt+`<${L}${br}${ve}?>`,M=!0,P.pop();continue}let ne=h;ne!==""&&(ne+=d.indentBy);let ie=h+`<${L}${Oz(F[":@"],d,Y)}`,le;le=Y?Rz(F[L],d):wz(F[L],d,ne,P,x),d.unpairedTags.indexOf(L)!==-1?d.suppressUnpairedNode?T+=ie+">":T+=ie+"/>":le&&le.length!==0||!d.suppressEmptyNode?le&&le.endsWith(">")?T+=ie+`>${le}${h}</${L}>`:(T+=ie+">",le&&h!==""&&(le.includes("/>")||le.includes("</"))?T+=h+d.indentBy+le+h:T+=le,T+=`</${L}>`):T+=ie+"/>",M=!0,P.pop()}return T}i(wz,"Pt");function yde(S,d){if(!S||d.ignoreAttributes)return null;let h={},P=!1;for(let x in S)Object.prototype.hasOwnProperty.call(S,x)&&(h[x.startsWith(d.attributeNamePrefix)?x.substr(d.attributeNamePrefix.length):x]=S[x],P=!0);return P?h:null}i(yde,"Ot");function Rz(S,d){if(!Array.isArray(S))return S!=null?S.toString():"";let h="";for(let P=0;P<S.length;P++){let x=S[P],T=$z(x);if(T===d.textNodeName)h+=x[T];else if(T===d.cdataPropName)h+=x[T][0][d.textNodeName];else if(T===d.commentPropName)h+=x[T][0][d.textNodeName];else{if(T&&T[0]==="?")continue;if(T){let M=Ede(x[":@"],d),O=Rz(x[T],d);O&&O.length!==0?h+=`<${T}${M}>${O}</${T}>`:h+=`<${T}${M}/>`}}}return h}i(Rz,"$t");function Ede(S,d){let h="";if(S&&!d.ignoreAttributes)for(let P in S){if(!Object.prototype.hasOwnProperty.call(S,P))continue;let x=S[P];x===!0&&d.suppressBooleanAttributes?h+=` ${P.substr(d.attributeNamePrefix.length)}`:h+=` ${P.substr(d.attributeNamePrefix.length)}="${x}"`}return h}i(Ede,"It");function $z(S){let d=Object.keys(S);for(let h=0;h<d.length;h++){let P=d[h];if(Object.prototype.hasOwnProperty.call(S,P)&&P!==":@")return P}}i($z,"Dt");function Oz(S,d,h){let P="";if(S&&!d.ignoreAttributes)for(let x in S){if(!Object.prototype.hasOwnProperty.call(S,x))continue;let T;h?T=S[x]:(T=d.attributeValueProcessor(x,S[x]),T=GA(T,d)),T===!0&&d.suppressBooleanAttributes?P+=` ${x.substr(d.attributeNamePrefix.length)}`:P+=` ${x.substr(d.attributeNamePrefix.length)}="${T}"`}return P}i(Oz,"Mt");function Sde(S,d){if(!d||d.length===0)return!1;for(let h=0;h<d.length;h++)if(S.matches(d[h]))return!0;return!1}i(Sde,"jt");function GA(S,d){if(S&&S.length>0&&d.processEntities)for(let h=0;h<d.entities.length;h++){let P=d.entities[h];S=S.replace(P.regex,P.val)}return S}i(GA,"Vt");let _de={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(S,d){return d},"tagValueProcessor"),attributeValueProcessor:i(function(S,d){return d},"attributeValueProcessor"),preserveOrder:!1,commentPropName:!1,unpairedTags:[],entities:[{regex:new RegExp("&","g"),val:"&amp;"},{regex:new RegExp(">","g"),val:"&gt;"},{regex:new RegExp("<","g"),val:"&lt;"},{regex:new RegExp("'","g"),val:"&apos;"},{regex:new RegExp('"',"g"),val:"&quot;"}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function cn(S){if(this.options=Object.assign({},_de,S),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(h=>typeof h=="string"&&h.startsWith("*.")?".."+h.substring(2):h)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let h=0;h<this.options.stopNodes.length;h++){let P=this.options.stopNodes[h];typeof P=="string"?this.stopNodeExpressions.push(new mc(P)):P instanceof mc&&this.stopNodeExpressions.push(P)}var d;this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=typeof(d=this.options.ignoreAttributes)=="function"?d:Array.isArray(d)?h=>{for(let P of d)if(typeof P=="string"&&h===P||P instanceof RegExp&&P.test(h))return!0}:()=>!1,this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=bde),this.processTextOrObjNode=vde,this.options.format?(this.indentate=xde,this.tagEndChar=`>
57
+ `,this.newLine=`
58
+ `):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}i(cn,"kt");function vde(S,d,h,P){let x=this.extractAttributes(S);if(P.push(d,x),this.checkStopNode(P)){let M=this.buildRawContent(S),O=this.buildAttributesForStopNode(S);return P.pop(),this.buildObjectNode(M,d,O,h)}let T=this.j2x(S,h+1,P);return P.pop(),S[this.options.textNodeName]!==void 0&&Object.keys(S).length===1?this.buildTextValNode(S[this.options.textNodeName],d,T.attrStr,h,P):this.buildObjectNode(T.val,d,T.attrStr,h)}i(vde,"Ft");function xde(S){return this.options.indentBy.repeat(S)}i(xde,"Rt");function bde(S){return!(!S.startsWith(this.options.attributeNamePrefix)||S===this.options.textNodeName)&&S.substr(this.attrPrefixLen)}i(bde,"Gt"),cn.prototype.build=function(S){if(this.options.preserveOrder)return hde(S,this.options);{Array.isArray(S)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(S={[this.options.arrayNodeName]:S});let d=new FA;return this.j2x(S,0,d).val}},cn.prototype.j2x=function(S,d,h){let P="",x="";if(this.options.maxNestedTags&&h.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let T=this.options.jPath?h.toString():h,M=this.checkStopNode(h);for(let O in S)if(Object.prototype.hasOwnProperty.call(S,O))if(S[O]===void 0)this.isAttribute(O)&&(x+="");else if(S[O]===null)this.isAttribute(O)||O===this.options.cdataPropName?x+="":O[0]==="?"?x+=this.indentate(d)+"<"+O+"?"+this.tagEndChar:x+=this.indentate(d)+"<"+O+"/"+this.tagEndChar;else if(S[O]instanceof Date)x+=this.buildTextValNode(S[O],O,"",d,h);else if(typeof S[O]!="object"){let F=this.isAttribute(O);if(F&&!this.ignoreAttributesFn(F,T))P+=this.buildAttrPairStr(F,""+S[O],M);else if(!F)if(O===this.options.textNodeName){let L=this.options.tagValueProcessor(O,""+S[O]);x+=this.replaceEntitiesValue(L)}else{h.push(O);let L=this.checkStopNode(h);if(h.pop(),L){let U=""+S[O];x+=U===""?this.indentate(d)+"<"+O+this.closeTag(O)+this.tagEndChar:this.indentate(d)+"<"+O+">"+U+"</"+O+this.tagEndChar}else x+=this.buildTextValNode(S[O],O,"",d,h)}}else if(Array.isArray(S[O])){let F=S[O].length,L="",U="";for(let Y=0;Y<F;Y++){let ne=S[O][Y];if(ne!==void 0)if(ne===null)O[0]==="?"?x+=this.indentate(d)+"<"+O+"?"+this.tagEndChar:x+=this.indentate(d)+"<"+O+"/"+this.tagEndChar;else if(typeof ne=="object")if(this.options.oneListGroup){h.push(O);let ie=this.j2x(ne,d+1,h);h.pop(),L+=ie.val,this.options.attributesGroupName&&ne.hasOwnProperty(this.options.attributesGroupName)&&(U+=ie.attrStr)}else L+=this.processTextOrObjNode(ne,O,d,h);else if(this.options.oneListGroup){let ie=this.options.tagValueProcessor(O,ne);ie=this.replaceEntitiesValue(ie),L+=ie}else{h.push(O);let ie=this.checkStopNode(h);if(h.pop(),ie){let le=""+ne;L+=le===""?this.indentate(d)+"<"+O+this.closeTag(O)+this.tagEndChar:this.indentate(d)+"<"+O+">"+le+"</"+O+this.tagEndChar}else L+=this.buildTextValNode(ne,O,"",d,h)}}this.options.oneListGroup&&(L=this.buildObjectNode(L,O,U,d)),x+=L}else if(this.options.attributesGroupName&&O===this.options.attributesGroupName){let F=Object.keys(S[O]),L=F.length;for(let U=0;U<L;U++)P+=this.buildAttrPairStr(F[U],""+S[O][F[U]],M)}else x+=this.processTextOrObjNode(S[O],O,d,h);return{attrStr:P,val:x}},cn.prototype.buildAttrPairStr=function(S,d,h){return h||(d=this.options.attributeValueProcessor(S,""+d),d=this.replaceEntitiesValue(d)),this.options.suppressBooleanAttributes&&d==="true"?" "+S:" "+S+'="'+d+'"'},cn.prototype.extractAttributes=function(S){if(!S||typeof S!="object")return null;let d={},h=!1;if(this.options.attributesGroupName&&S[this.options.attributesGroupName]){let P=S[this.options.attributesGroupName];for(let x in P)Object.prototype.hasOwnProperty.call(P,x)&&(d[x.startsWith(this.options.attributeNamePrefix)?x.substring(this.options.attributeNamePrefix.length):x]=P[x],h=!0)}else for(let P in S){if(!Object.prototype.hasOwnProperty.call(S,P))continue;let x=this.isAttribute(P);x&&(d[x]=S[P],h=!0)}return h?d:null},cn.prototype.buildRawContent=function(S){if(typeof S=="string")return S;if(typeof S!="object"||S===null)return String(S);if(S[this.options.textNodeName]!==void 0)return S[this.options.textNodeName];let d="";for(let h in S){if(!Object.prototype.hasOwnProperty.call(S,h)||this.isAttribute(h)||this.options.attributesGroupName&&h===this.options.attributesGroupName)continue;let P=S[h];if(h===this.options.textNodeName)d+=P;else if(Array.isArray(P)){for(let x of P)if(typeof x=="string"||typeof x=="number")d+=`<${h}>${x}</${h}>`;else if(typeof x=="object"&&x!==null){let T=this.buildRawContent(x),M=this.buildAttributesForStopNode(x);d+=T===""?`<${h}${M}/>`:`<${h}${M}>${T}</${h}>`}}else if(typeof P=="object"&&P!==null){let x=this.buildRawContent(P),T=this.buildAttributesForStopNode(P);d+=x===""?`<${h}${T}/>`:`<${h}${T}>${x}</${h}>`}else d+=`<${h}>${P}</${h}>`}return d},cn.prototype.buildAttributesForStopNode=function(S){if(!S||typeof S!="object")return"";let d="";if(this.options.attributesGroupName&&S[this.options.attributesGroupName]){let h=S[this.options.attributesGroupName];for(let P in h){if(!Object.prototype.hasOwnProperty.call(h,P))continue;let x=P.startsWith(this.options.attributeNamePrefix)?P.substring(this.options.attributeNamePrefix.length):P,T=h[P];T===!0&&this.options.suppressBooleanAttributes?d+=" "+x:d+=" "+x+'="'+T+'"'}}else for(let h in S){if(!Object.prototype.hasOwnProperty.call(S,h))continue;let P=this.isAttribute(h);if(P){let x=S[h];x===!0&&this.options.suppressBooleanAttributes?d+=" "+P:d+=" "+P+'="'+x+'"'}}return d},cn.prototype.buildObjectNode=function(S,d,h,P){if(S==="")return d[0]==="?"?this.indentate(P)+"<"+d+h+"?"+this.tagEndChar:this.indentate(P)+"<"+d+h+this.closeTag(d)+this.tagEndChar;{let x="</"+d+this.tagEndChar,T="";return d[0]==="?"&&(T="?",x=""),!h&&h!==""||S.indexOf("<")!==-1?this.options.commentPropName!==!1&&d===this.options.commentPropName&&T.length===0?this.indentate(P)+`<!--${S}-->`+this.newLine:this.indentate(P)+"<"+d+h+T+this.tagEndChar+S+this.indentate(P)+x:this.indentate(P)+"<"+d+h+T+">"+S+x}},cn.prototype.closeTag=function(S){let d="";return this.options.unpairedTags.indexOf(S)!==-1?this.options.suppressUnpairedNode||(d="/"):d=this.options.suppressEmptyNode?"/":`></${S}`,d},cn.prototype.checkStopNode=function(S){if(!this.stopNodeExpressions||this.stopNodeExpressions.length===0)return!1;for(let d=0;d<this.stopNodeExpressions.length;d++)if(S.matches(this.stopNodeExpressions[d]))return!0;return!1},cn.prototype.buildTextValNode=function(S,d,h,P,x){if(this.options.cdataPropName!==!1&&d===this.options.cdataPropName){let T=String(S).replace(/\]\]>/g,"]]]]><![CDATA[>");return this.indentate(P)+`<![CDATA[${T}]]>`+this.newLine}if(this.options.commentPropName!==!1&&d===this.options.commentPropName){let T=String(S).replace(/--/g,"- -").replace(/-$/,"- ");return this.indentate(P)+`<!--${T}-->`+this.newLine}if(d[0]==="?")return this.indentate(P)+"<"+d+h+"?"+this.tagEndChar;{let T=this.options.tagValueProcessor(d,S);return T=this.replaceEntitiesValue(T),T===""?this.indentate(P)+"<"+d+h+this.closeTag(d)+this.tagEndChar:this.indentate(P)+"<"+d+h+">"+T+"</"+d+this.tagEndChar}},cn.prototype.replaceEntitiesValue=function(S){if(S&&S.length>0&&this.options.processEntities)for(let d=0;d<this.options.entities.length;d++){let h=this.options.entities[d];S=S.replace(h.regex,h.val)}return S};let Pde=cn,Cde={validate:l};r8.exports=t})()});var i8=z(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.EntityDecoderImpl=Gn.CURRENCY=Gn.COMMON_HTML=Gn.XML=void 0;Gn.XML={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};Gn.COMMON_HTML={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};Gn.CURRENCY={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var ePe=new Set("!?\\/[]$%{}^&*()<>|+");function o8(e){if(e[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${e}"`);for(let t of e)if(ePe.has(t))throw new Error(`[EntityReplacer] Invalid character '${t}' in entity name: "${e}"`);return e}i(o8,"validateEntityName");function tk(...e){let t=Object.create(null);for(let r of e)if(r)for(let o of Object.keys(r)){let n=r[o];if(typeof n=="string")t[o]=n;else if(n&&typeof n=="object"&&n.val!==void 0){let s=n.val;typeof s=="string"&&(t[o]=s)}}return t}i(tk,"mergeEntityMaps");var Oa="external",v_="base",rk="all";function tPe(e){return!e||e===Oa?new Set([Oa]):e===rk?new Set([rk]):e===v_?new Set([v_]):Array.isArray(e)?new Set(e):new Set([Oa])}i(tPe,"parseLimitTiers");var Dr=Object.freeze({allow:0,leave:1,remove:2,throw:3}),rPe=new Set([9,10,13]);function nPe(e){if(!e)return{xmlVersion:1,onLevel:Dr.allow,nullLevel:Dr.remove};let t=e.xmlVersion===1.1?1.1:1,r=Dr[e.onNCR??"allow"]??Dr.allow,o=Dr[e.nullNCR??"remove"]??Dr.remove,n=Math.max(o,Dr.remove);return{xmlVersion:t,onLevel:r,nullLevel:n}}i(nPe,"parseNCRConfig");var oPe=class{static{i(this,"EntityDecoderImpl")}_limit;_maxTotalExpansions;_maxExpandedLength;_postCheck;_limitTiers;_numericAllowed;_baseMap;_externalMap;_inputMap;_totalExpansions;_expandedLength;_removeSet;_leaveSet;_ncrXmlVersion;_ncrOnLevel;_ncrNullLevel;constructor(t={}){this._limit=t.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof t.postCheck=="function"?t.postCheck:o=>o,this._limitTiers=tPe(this._limit.applyLimitsTo??Oa),this._numericAllowed=t.numericAllowed??!0,this._baseMap=tk(Gn.XML,t.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(t.remove&&Array.isArray(t.remove)?t.remove:[]),this._leaveSet=new Set(t.leave&&Array.isArray(t.leave)?t.leave:[]);let r=nPe(t.ncr);this._ncrXmlVersion=r.xmlVersion,this._ncrOnLevel=r.onLevel,this._ncrNullLevel=r.nullLevel}setExternalEntities(t){if(t)for(let r of Object.keys(t))o8(r);this._externalMap=tk(t)}addExternalEntity(t,r){o8(t),typeof r=="string"&&r.indexOf("&")===-1&&(this._externalMap[t]=r)}addInputEntities(t){this._totalExpansions=0,this._expandedLength=0,this._inputMap=tk(t)}reset(){return this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this}setXmlVersion(t){this._ncrXmlVersion=t==="1.1"||t===1.1?1.1:1}decode(t){if(typeof t!="string"||t.length===0)return t;let r=t,o=[],n=t.length,s=0,a=0,c=this._maxTotalExpansions>0,u=this._maxExpandedLength>0,l=c||u;for(;a<n;){if(t.charCodeAt(a)!==38){a++;continue}let f=a+1;for(;f<n&&t.charCodeAt(f)!==59&&f-a<=32;)f++;if(f>=n||t.charCodeAt(f)!==59){a++;continue}let y=t.slice(a+1,f);if(y.length===0){a++;continue}let m,_;if(this._removeSet.has(y))m="",_===void 0&&(_=Oa);else if(this._leaveSet.has(y)){a++;continue}else if(y.charCodeAt(0)===35){let b=this._resolveNCR(y);if(b===void 0){a++;continue}m=b,_=v_}else{let b=this._resolveName(y);m=b?.value,_=b?.tier}if(m===void 0){a++;continue}if(a>s&&o.push(t.slice(s,a)),o.push(m),s=f+1,a=s,l&&this._tierCounts(_)){if(c&&(this._totalExpansions++,this._totalExpansions>this._maxTotalExpansions))throw new Error(`[EntityReplacer] Entity expansion count limit exceeded: ${this._totalExpansions} > ${this._maxTotalExpansions}`);if(u){let b=m.length-(y.length+2);if(b>0&&(this._expandedLength+=b,this._expandedLength>this._maxExpandedLength))throw new Error(`[EntityReplacer] Expanded content length limit exceeded: ${this._expandedLength} > ${this._maxExpandedLength}`)}}}s<n&&o.push(t.slice(s));let p=o.length===0?t:o.join("");return this._postCheck(p,r)}_tierCounts(t){return this._limitTiers.has(rk)?!0:this._limitTiers.has(t)}_resolveName(t){if(t in this._inputMap)return{value:this._inputMap[t],tier:Oa};if(t in this._externalMap)return{value:this._externalMap[t],tier:Oa};if(t in this._baseMap)return{value:this._baseMap[t],tier:v_}}_classifyNCR(t){return t===0?this._ncrNullLevel:t>=55296&&t<=57343||this._ncrXmlVersion===1&&t>=1&&t<=31&&!rPe.has(t)?Dr.remove:-1}_applyNCRAction(t,r,o){switch(t){case Dr.allow:return String.fromCodePoint(o);case Dr.remove:return"";case Dr.leave:return;case Dr.throw:throw new Error(`[EntityDecoder] Prohibited numeric character reference &${r}; (U+${o.toString(16).toUpperCase().padStart(4,"0")})`);default:return String.fromCodePoint(o)}}_resolveNCR(t){let r=t.charCodeAt(1),o;if(r===120||r===88?o=parseInt(t.slice(2),16):o=parseInt(t.slice(1),10),Number.isNaN(o)||o<0||o>1114111)return;let n=this._classifyNCR(o);if(!this._numericAllowed&&n<Dr.remove)return;let s=n===-1?this._ncrOnLevel:Math.max(this._ncrOnLevel,n);return this._applyNCRAction(s,t,o)}};Gn.EntityDecoderImpl=oPe});var s8=z(nk=>{"use strict";Object.defineProperty(nk,"__esModule",{value:!0});nk.parseXML=aPe;var iPe=n8(),x_=i8(),b_=new x_.EntityDecoderImpl({namedEntities:{...x_.XML,...x_.COMMON_HTML,...x_.CURRENCY},numericAllowed:!0,limit:{maxTotalExpansions:1/0},ncr:{xmlVersion:1.1}}),sPe=new iPe.XMLParser({attributeNamePrefix:"",processEntities:{enabled:!0,maxTotalExpansions:1/0},htmlEntities:!0,entityDecoder:{setExternalEntities:i(e=>{b_.setExternalEntities(e)},"setExternalEntities"),addInputEntities:i(e=>{b_.addInputEntities(e)},"addInputEntities"),reset:i(()=>{b_.reset()},"reset"),decode:i(e=>b_.decode(e),"decode"),setXmlVersion:i(e=>{},"setXmlVersion")},ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:i((e,t)=>t.trim()===""&&t.includes(`
59
+ `)?"":void 0,"tagValueProcessor"),maxNestedTags:1/0});function aPe(e){return sPe.parse(e,!0)}i(aPe,"parseXML")});var A_=z(C_=>{"use strict";var cPe=s8(),uPe=/[&<>"]/g,lPe={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function dPe(e){return e.replace(uPe,t=>lPe[t])}i(dPe,"escapeAttribute");var pPe=/[&"'<>\r\n\u0085\u2028]/g,fPe={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;","\r":"&#x0D;","\n":"&#x0A;","\x85":"&#x85;","\u2028":"&#x2028;"};function mPe(e){return e.replace(pPe,t=>fPe[t])}i(mPe,"escapeElement");var P_=class{static{i(this,"XmlText")}value;constructor(t){this.value=t}toString(){return mPe(""+this.value)}},ok=class e{static{i(this,"XmlNode")}name;children;attributes={};static of(t,r,o){let n=new e(t);return r!==void 0&&n.addChildNode(new P_(r)),o!==void 0&&n.withName(o),n}constructor(t,r=[]){this.name=t,this.children=r}withName(t){return this.name=t,this}addAttribute(t,r){return this.attributes[t]=r,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,r){return r!=null&&(this.attributes[t]=r),this}cc(t,r,o=r){if(t[r]!=null){let n=e.of(r,t[r]).withName(o);this.c(n)}}l(t,r,o,n){t[r]!=null&&n().map(a=>{a.withName(o),this.c(a)})}lc(t,r,o,n){if(t[r]!=null){let s=n(),a=new e(o);s.map(c=>{a.c(c)}),this.c(a)}}toString(){let t=!!this.children.length,r=`<${this.name}`,o=this.attributes;for(let n of Object.keys(o)){let s=o[n];s!=null&&(r+=` ${n}="${dPe(""+s)}"`)}return r+=t?`>${this.children.map(n=>n.toString()).join("")}</${this.name}>`:"/>"}};C_.parseXML=cPe.parseXML;C_.XmlNode=ok;C_.XmlText=P_});var a8,c8,u8,ss,T_=v(()=>{a8=w(A_());Rr();je();c8=w(ye()),u8=w(It());ns();KN();ss=class extends ar{static{i(this,"XmlShapeDeserializer")}settings;stringDeserializer;constructor(t){super(),this.settings=t,this.stringDeserializer=new ga(t)}setSerdeContext(t){this.serdeContext=t,this.stringDeserializer.setSerdeContext(t)}read(t,r,o){let n=oe.of(t),s=n.getMemberSchemas();if(n.isStructSchema()&&n.isMemberSchema()&&!!Object.values(s).find(l=>!!l.getMemberTraits().eventPayload)){let l={},p=Object.keys(s)[0];return s[p].isBlobSchema()?l[p]=r:l[p]=this.read(s[p],r),l}let c=(this.serdeContext?.utf8Encoder??u8.toUtf8)(r),u=this.parseXml(c);return this.readSchema(t,o?u[o]:u)}readSchema(t,r){let o=oe.of(t);if(o.isUnitSchema())return;let n=o.getMergedTraits();if(o.isListSchema()&&!Array.isArray(r))return this.readSchema(o,[r]);if(r==null)return r;if(typeof r=="object"){let s=!!n.xmlFlattened;if(o.isListSchema()){let c=o.getValueSchema(),u=[],l=c.getMergedTraits().xmlName??"member",p=s?r:(r[0]??r)[l];if(p==null)return u;let f=Array.isArray(p)?p:[p];for(let y of f)u.push(this.readSchema(c,y));return u}let a={};if(o.isMapSchema()){let c=o.getKeySchema(),u=o.getValueSchema(),l;s?l=Array.isArray(r)?r:[r]:l=Array.isArray(r.entry)?r.entry:[r.entry];let p=c.getMergedTraits().xmlName??"key",f=u.getMergedTraits().xmlName??"value";for(let y of l){let m=y[p],_=y[f];a[m]=this.readSchema(u,_)}return a}if(o.isStructSchema()){let c=o.isUnionSchema(),u;c&&(u=new Uu(r,a));for(let[l,p]of o.structIterator()){let f=p.getMergedTraits(),y=f.httpPayload?f.xmlName??p.getName():p.getMemberTraits().xmlName??l;c&&u.mark(y),r[y]!=null&&(a[l]=this.readSchema(p,r[y]))}return c&&u.writeUnknown(),a}if(o.isDocumentSchema())return r;throw new Error(`@aws-sdk/core/protocols - xml deserializer unhandled schema type for ${o.getName(!0)}`)}return o.isListSchema()?[]:o.isMapSchema()||o.isStructSchema()?{}:this.stringDeserializer.read(o,r)}parseXml(t){if(t.length){let r;try{r=(0,a8.parseXML)(t)}catch(a){throw a&&typeof a=="object"&&Object.defineProperty(a,"$responseBodyText",{value:t}),a}let o="#text",n=Object.keys(r)[0],s=r[n];return s[o]&&(s[n]=s[o],delete s[o]),(0,c8.getValueFromTextNode)(s)}return{}}}});var l8,d8,Hu,ik=v(()=>{Rr();je();rr();l8=w(ye()),d8=w(wt());ns();Hu=class extends ar{static{i(this,"QueryShapeSerializer")}settings;buffer;constructor(t){super(),this.settings=t}write(t,r,o=""){this.buffer===void 0&&(this.buffer="");let n=oe.of(t);if(o&&!o.endsWith(".")&&(o+="."),n.isBlobSchema())(typeof r=="string"||r instanceof Uint8Array)&&(this.writeKey(o),this.writeValue((this.serdeContext?.base64Encoder??d8.toBase64)(r)));else if(n.isBooleanSchema()||n.isNumericSchema()||n.isStringSchema())r!=null?(this.writeKey(o),this.writeValue(String(r))):n.isIdempotencyToken()&&(this.writeKey(o),this.writeValue((0,hn.v4)()));else if(n.isBigIntegerSchema())r!=null&&(this.writeKey(o),this.writeValue(String(r)));else if(n.isBigDecimalSchema())r!=null&&(this.writeKey(o),this.writeValue(r instanceof st?r.string:String(r)));else if(n.isTimestampSchema()){if(r instanceof Date)switch(this.writeKey(o),Zr(n,this.settings)){case 5:this.writeValue(r.toISOString().replace(".000Z","Z"));break;case 6:this.writeValue((0,l8.dateToUtcString)(r));break;case 7:this.writeValue(String(r.getTime()/1e3));break}}else if(n.isDocumentSchema())Array.isArray(r)?this.write(79,r,o):r instanceof Date?this.write(4,r,o):r instanceof Uint8Array?this.write(21,r,o):r&&typeof r=="object"?this.write(143,r,o):(this.writeKey(o),this.writeValue(String(r)));else if(n.isListSchema()){if(Array.isArray(r))if(r.length===0)this.settings.serializeEmptyLists&&(this.writeKey(o),this.writeValue(""));else{let s=n.getValueSchema(),a=this.settings.flattenLists||n.getMergedTraits().xmlFlattened,c=1;for(let u of r){if(u==null)continue;let l=s.getMergedTraits(),p=this.getKey("member",l.xmlName,l.ec2QueryName),f=a?`${o}${c}`:`${o}${p}.${c}`;this.write(s,u,f),++c}}}else if(n.isMapSchema()){if(r&&typeof r=="object"){let s=n.getKeySchema(),a=n.getValueSchema(),c=n.getMergedTraits().xmlFlattened,u=1;for(let l in r){let p=r[l];if(p==null)continue;let f=s.getMergedTraits(),y=this.getKey("key",f.xmlName,f.ec2QueryName),m=c?`${o}${u}.${y}`:`${o}entry.${u}.${y}`,_=a.getMergedTraits(),b=this.getKey("value",_.xmlName,_.ec2QueryName),A=c?`${o}${u}.${b}`:`${o}entry.${u}.${b}`;this.write(s,l,m),this.write(a,p,A),++u}}}else if(n.isStructSchema()){if(r&&typeof r=="object"){let s=!1;for(let[a,c]of n.structIterator()){if(r[a]==null&&!c.isIdempotencyToken())continue;let u=c.getMergedTraits(),l=this.getKey(a,u.xmlName,u.ec2QueryName,"struct"),p=`${o}${l}`;this.write(c,r[a],p),s=!0}if(!s&&n.isUnionSchema()){let{$unknown:a}=r;if(Array.isArray(a)){let[c,u]=a,l=`${o}${c}`;this.write(15,u,l)}}}}else if(!n.isUnitSchema())throw new Error(`@aws-sdk/core/protocols - QuerySerializer unrecognized schema type ${n.getName(!0)}`)}flush(){if(this.buffer===void 0)throw new Error("@aws-sdk/core/protocols - QuerySerializer cannot flush with nothing written to buffer.");let t=this.buffer;return delete this.buffer,t}getKey(t,r,o,n){let{ec2:s,capitalizeKeys:a}=this.settings;if(s&&o)return o;let c=r??t;return a&&n==="struct"?c[0].toUpperCase()+c.slice(1):c}writeKey(t){t.endsWith(".")&&(t=t.slice(0,t.length-1)),this.buffer+=`&${io(t)}=`}writeValue(t){this.buffer+=io(t)}}});var as,sk=v(()=>{Rr();je();Fu();T_();ik();as=class extends Xo{static{i(this,"AwsQueryProtocol")}options;serializer;deserializer;mixin=new Sn;constructor(t){super({defaultNamespace:t.defaultNamespace,errorTypeRegistries:t.errorTypeRegistries}),this.options=t;let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!1,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace,serializeEmptyLists:!0};this.serializer=new Hu(r),this.deserializer=new ss(r)}getShapeId(){return"aws.protocols#awsQuery"}setSerdeContext(t){this.serializer.setSerdeContext(t),this.deserializer.setSerdeContext(t)}getPayloadCodec(){throw new Error("AWSQuery protocol has no payload codec.")}async serializeRequest(t,r,o){let n=await super.serializeRequest(t,r,o);n.path.endsWith("/")||(n.path+="/"),n.headers["content-type"]="application/x-www-form-urlencoded",(Mn(t.input)==="unit"||!n.body)&&(n.body="");let s=t.name.split("#")[1]??t.name;return n.body=`Action=${s}&Version=${this.options.version}`+n.body,n.body.endsWith("&")&&(n.body=n.body.slice(-1)),n}async deserializeResponse(t,r,o){let n=this.deserializer,s=oe.of(t.output),a={};if(o.statusCode>=300){let p=await mn(o.body,r);p.byteLength>0&&Object.assign(a,await n.read(15,p)),await this.handleError(t,r,o,a,this.deserializeMetadata(o))}for(let p in o.headers){let f=o.headers[p];delete o.headers[p],o.headers[p.toLowerCase()]=f}let c=t.name.split("#")[1]??t.name,u=s.isStructSchema()&&this.useNestedResult()?c+"Result":void 0,l=await mn(o.body,r);return l.byteLength>0&&Object.assign(a,await n.read(s,l,u)),a.$metadata=this.deserializeMetadata(o),a}useNestedResult(){return!0}async handleError(t,r,o,n,s){let a=this.loadQueryErrorCode(o,n)??"Unknown";this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace);let c=this.loadQueryError(n)??{},u=this.loadQueryErrorMessage(n);c.message=u,c.Error={Type:c.Type,Code:c.Code,Message:u};let{errorSchema:l,errorMetadata:p}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,o,c,s,this.mixin.findQueryCompatibleError),f=oe.of(l),y=this.compositeErrorRegistry.getErrorCtor(l)??Error,m=new y(u),_={Type:c.Error.Type,Code:c.Error.Code,Error:c.Error};for(let[b,A]of f.structIterator()){let I=A.getMergedTraits().xmlName??b,R=c[I]??n[I];_[b]=this.deserializer.readSchema(A,R)}throw this.mixin.decorateServiceException(Object.assign(m,p,{$fault:f.getMergedTraits().error,message:u},_),n)}loadQueryErrorCode(t,r){let o=(r.Errors?.[0]?.Error??r.Errors?.Error??r.Error)?.Code;if(o!==void 0)return o;if(t.statusCode==404)return"NotFound"}loadQueryError(t){return t.Errors?.[0]?.Error??t.Errors?.Error??t.Error}loadQueryErrorMessage(t){let r=this.loadQueryError(t);return r?.message??r?.Message??t.message??t.Message??"Unknown"}getDefaultContentType(){return"application/x-www-form-urlencoded"}}});var I_,p8=v(()=>{sk();I_=class extends as{static{i(this,"AwsEc2QueryProtocol")}options;constructor(t){super(t),this.options=t;let r={capitalizeKeys:!0,flattenLists:!0,serializeEmptyLists:!1,ec2:!0};Object.assign(this.serializer.settings,r)}getShapeId(){return"aws.protocols#ec2Query"}useNestedResult(){return!1}}});var f8=v(()=>{});var m8,g8,ak,h8,w_,ck=v(()=>{m8=w(A_()),g8=w(ye());XN();ak=i((e,t)=>g_(e,t).then(r=>{if(r.length){let o;try{o=(0,m8.parseXML)(r)}catch(c){throw c&&typeof c=="object"&&Object.defineProperty(c,"$responseBodyText",{value:r}),c}let n="#text",s=Object.keys(o)[0],a=o[s];return a[n]&&(a[s]=a[n],delete a[n]),(0,g8.getValueFromTextNode)(a)}return{}}),"parseXmlBody"),h8=i(async(e,t)=>{let r=await ak(e,t);return r.Error&&(r.Error.message=r.Error.message??r.Error.Message),r},"parseXmlErrorBody"),w_=i((e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"},"loadRestXmlErrorCode")});var vr,uk,R_,Gu,lk=v(()=>{vr=w(A_());Rr();je();rr();uk=w(ye()),R_=w(wt());ns();Gu=class extends ar{static{i(this,"XmlShapeSerializer")}settings;stringBuffer;byteBuffer;buffer;constructor(t){super(),this.settings=t}write(t,r){let o=oe.of(t);if(o.isStringSchema()&&typeof r=="string")this.stringBuffer=r;else if(o.isBlobSchema())this.byteBuffer="byteLength"in r?r:(this.serdeContext?.base64Decoder??R_.fromBase64)(r);else{this.buffer=this.writeStruct(o,r,void 0);let n=o.getMergedTraits();n.httpPayload&&!n.xmlName&&this.buffer.withName(o.getName())}}flush(){if(this.byteBuffer!==void 0){let r=this.byteBuffer;return delete this.byteBuffer,r}if(this.stringBuffer!==void 0){let r=this.stringBuffer;return delete this.stringBuffer,r}let t=this.buffer;return this.settings.xmlNamespace&&(t?.attributes?.xmlns||t.addAttribute("xmlns",this.settings.xmlNamespace)),delete this.buffer,t.toString()}writeStruct(t,r,o){let n=t.getMergedTraits(),s=t.isMemberSchema()&&!n.httpPayload?t.getMemberTraits().xmlName??t.getMemberName():n.xmlName??t.getName();if(!s||!t.isStructSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write struct with empty name or non-struct, schema=${t.getName(!0)}.`);let a=vr.XmlNode.of(s),[c,u]=this.getXmlnsAttribute(t,o);for(let[p,f]of t.structIterator()){let y=r[p];if(y!=null||f.isIdempotencyToken()){if(f.getMergedTraits().xmlAttribute){a.addAttribute(f.getMergedTraits().xmlName??p,this.writeSimple(f,y));continue}if(f.isListSchema())this.writeList(f,y,a,u);else if(f.isMapSchema())this.writeMap(f,y,a,u);else if(f.isStructSchema())a.addChildNode(this.writeStruct(f,y,u));else{let m=vr.XmlNode.of(f.getMergedTraits().xmlName??f.getMemberName());this.writeSimpleInto(f,y,m,u),a.addChildNode(m)}}}let{$unknown:l}=r;if(l&&t.isUnionSchema()&&Array.isArray(l)&&Object.keys(r).length===1){let[p,f]=l,y=vr.XmlNode.of(p);if(typeof f!="string")if(r instanceof vr.XmlNode||r instanceof vr.XmlText)a.addChildNode(r);else throw new Error("@aws-sdk - $unknown union member in XML requires value of type string, @aws-sdk/xml-builder::XmlNode or XmlText.");this.writeSimpleInto(0,f,y,u),a.addChildNode(y)}return u&&a.addAttribute(c,u),a}writeList(t,r,o,n){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member list: ${t.getName(!0)}`);let s=t.getMergedTraits(),a=t.getValueSchema(),c=a.getMergedTraits(),u=!!c.sparse,l=!!s.xmlFlattened,[p,f]=this.getXmlnsAttribute(t,n),y=i((m,_)=>{if(a.isListSchema())this.writeList(a,Array.isArray(_)?_:[_],m,f);else if(a.isMapSchema())this.writeMap(a,_,m,f);else if(a.isStructSchema()){let b=this.writeStruct(a,_,f);m.addChildNode(b.withName(l?s.xmlName??t.getMemberName():c.xmlName??"member"))}else{let b=vr.XmlNode.of(l?s.xmlName??t.getMemberName():c.xmlName??"member");this.writeSimpleInto(a,_,b,f),m.addChildNode(b)}},"writeItem");if(l)for(let m of r)(u||m!=null)&&y(o,m);else{let m=vr.XmlNode.of(s.xmlName??t.getMemberName());f&&m.addAttribute(p,f);for(let _ of r)(u||_!=null)&&y(m,_);o.addChildNode(m)}}writeMap(t,r,o,n,s=!1){if(!t.isMemberSchema())throw new Error(`@aws-sdk/core/protocols - xml serializer, cannot write non-member map: ${t.getName(!0)}`);let a=t.getMergedTraits(),c=t.getKeySchema(),l=c.getMergedTraits().xmlName??"key",p=t.getValueSchema(),f=p.getMergedTraits(),y=f.xmlName??"value",m=!!f.sparse,_=!!a.xmlFlattened,[b,A]=this.getXmlnsAttribute(t,n),I=i((R,j,ee)=>{let ae=vr.XmlNode.of(l,j),[fe,_t]=this.getXmlnsAttribute(c,A);_t&&ae.addAttribute(fe,_t),R.addChildNode(ae);let Me=vr.XmlNode.of(y);p.isListSchema()?this.writeList(p,ee,Me,A):p.isMapSchema()?this.writeMap(p,ee,Me,A,!0):p.isStructSchema()?Me=this.writeStruct(p,ee,A):this.writeSimpleInto(p,ee,Me,A),R.addChildNode(Me)},"addKeyValue");if(_)for(let R in r){let j=r[R];if(m||j!=null){let ee=vr.XmlNode.of(a.xmlName??t.getMemberName());I(ee,R,j),o.addChildNode(ee)}}else{let R;s||(R=vr.XmlNode.of(a.xmlName??t.getMemberName()),A&&R.addAttribute(b,A),o.addChildNode(R));for(let j in r){let ee=r[j];if(m||ee!=null){let ae=vr.XmlNode.of("entry");I(ae,j,ee),(s?o:R).addChildNode(ae)}}}}writeSimple(t,r){if(r===null)throw new Error("@aws-sdk/core/protocols - (XML serializer) cannot write null value.");let o=oe.of(t),n=null;if(r&&typeof r=="object")if(o.isBlobSchema())n=(this.serdeContext?.base64Encoder??R_.toBase64)(r);else if(o.isTimestampSchema()&&r instanceof Date)switch(Zr(o,this.settings)){case 5:n=r.toISOString().replace(".000Z","Z");break;case 6:n=(0,uk.dateToUtcString)(r);break;case 7:n=String(r.getTime()/1e3);break;default:console.warn("Missing timestamp format, using http date",r),n=(0,uk.dateToUtcString)(r);break}else{if(o.isBigDecimalSchema()&&r)return r instanceof st?r.string:String(r);throw o.isMapSchema()||o.isListSchema()?new Error("@aws-sdk/core/protocols - xml serializer, cannot call _write() on List/Map schema, call writeList or writeMap() instead."):new Error(`@aws-sdk/core/protocols - xml serializer, unhandled schema type for object value and schema: ${o.getName(!0)}`)}if((o.isBooleanSchema()||o.isNumericSchema()||o.isBigIntegerSchema()||o.isBigDecimalSchema())&&(n=String(r)),o.isStringSchema()&&(r===void 0&&o.isIdempotencyToken()?n=(0,hn.v4)():n=String(r)),n===null)throw new Error(`Unhandled schema-value pair ${o.getName(!0)}=${r}`);return n}writeSimpleInto(t,r,o,n){let s=this.writeSimple(t,r),a=oe.of(t),c=new vr.XmlText(s),[u,l]=this.getXmlnsAttribute(a,n);l&&o.addAttribute(u,l),o.addChildNode(c)}getXmlnsAttribute(t,r){let o=t.getMergedTraits(),[n,s]=o.xmlNamespace??[];return s&&s!==r?[n?`xmlns:${n}`:"xmlns",s]:[void 0,void 0]}}});var qu,dk=v(()=>{ns();T_();lk();qu=class extends ar{static{i(this,"XmlCodec")}settings;constructor(t){super(),this.settings=t}createSerializer(){let t=new Gu(this.settings);return t.setSerdeContext(this.serdeContext),t}createDeserializer(){let t=new ss(this.settings);return t.setSerdeContext(this.serdeContext),t}}});var $_,y8=v(()=>{Rr();je();Fu();ck();dk();$_=class extends ma{static{i(this,"AwsRestXmlProtocol")}codec;serializer;deserializer;mixin=new Sn;constructor(t){super(t);let r={timestampFormat:{useTrait:!0,default:5},httpBindings:!0,xmlNamespace:t.xmlNamespace,serviceNamespace:t.defaultNamespace};this.codec=new qu(r),this.serializer=new ya(this.codec.createSerializer(),r),this.deserializer=new ha(this.codec.createDeserializer(),r)}getPayloadCodec(){return this.codec}getShapeId(){return"aws.protocols#restXml"}async serializeRequest(t,r,o){let n=await super.serializeRequest(t,r,o),s=oe.of(t.input);if(!n.headers["content-type"]){let a=this.mixin.resolveRestContentType(this.getDefaultContentType(),s);a&&(n.headers["content-type"]=a)}return typeof n.body=="string"&&n.headers["content-type"]===this.getDefaultContentType()&&!n.body.startsWith("<?xml ")&&!this.hasUnstructuredPayloadBinding(s)&&(n.body='<?xml version="1.0" encoding="UTF-8"?>'+n.body),n}async deserializeResponse(t,r,o){return super.deserializeResponse(t,r,o)}async handleError(t,r,o,n,s){let a=w_(o,n)??"Unknown";if(this.mixin.compose(this.compositeErrorRegistry,a,this.options.defaultNamespace),n.Error&&typeof n.Error=="object")for(let b of Object.keys(n.Error))n[b]=n.Error[b],b.toLowerCase()==="message"&&(n.message=n.Error[b]);n.RequestId&&!s.requestId&&(s.requestId=n.RequestId);let{errorSchema:c,errorMetadata:u}=await this.mixin.getErrorSchemaOrThrowBaseException(a,this.options.defaultNamespace,o,n,s),l=oe.of(c),p=n.Error?.message??n.Error?.Message??n.message??n.Message??"UnknownError",f=this.compositeErrorRegistry.getErrorCtor(c)??Error,y=new f(p);await this.deserializeHttpMessage(c,r,o,n);let m={},_=this.codec.createDeserializer();for(let[b,A]of l.structIterator()){let I=A.getMergedTraits().xmlName??b,R=n.Error?.[I]??n[I];m[b]=_.readSchema(A,R)}throw this.mixin.decorateServiceException(Object.assign(y,u,{$fault:l.getMergedTraits().error,message:p},m),n)}getDefaultContentType(){return"application/xml"}hasUnstructuredPayloadBinding(t){for(let[,r]of t.structIterator())if(r.getMergedTraits().httpPayload)return!(r.isStructSchema()||r.isMapSchema()||r.isListSchema());return!1}}});var O_={};We(O_,{AwsEc2QueryProtocol:()=>I_,AwsJson1_0Protocol:()=>S_,AwsJson1_1Protocol:()=>__,AwsJsonRpcProtocol:()=>is,AwsQueryProtocol:()=>as,AwsRestJsonProtocol:()=>go,AwsRestXmlProtocol:()=>$_,AwsSmithyRpcV2CborProtocol:()=>m_,JsonCodec:()=>os,JsonShapeDeserializer:()=>Bu,JsonShapeSerializer:()=>Vu,QueryShapeSerializer:()=>Hu,XmlCodec:()=>qu,XmlShapeDeserializer:()=>ss,XmlShapeSerializer:()=>Gu,_toBool:()=>zZ,_toNum:()=>FZ,_toStr:()=>LZ,awsExpectUnion:()=>e8,loadRestJsonErrorCode:()=>ju,loadRestXmlErrorCode:()=>w_,parseJsonBody:()=>Cf,parseJsonErrorBody:()=>qZ,parseXmlBody:()=>ak,parseXmlErrorBody:()=>h8});var ui=v(()=>{MZ();UZ();XZ();JZ();E_();YZ();y_();YN();ek();t8();Af();p8();sk();f8();ik();y8();dk();T_();lk();ck()});var Da={};We(Da,{AWSSDKSigV4Signer:()=>gN,AwsEc2QueryProtocol:()=>I_,AwsJson1_0Protocol:()=>S_,AwsJson1_1Protocol:()=>__,AwsJsonRpcProtocol:()=>is,AwsQueryProtocol:()=>as,AwsRestJsonProtocol:()=>go,AwsRestXmlProtocol:()=>$_,AwsSdkSigV4ASigner:()=>ni,AwsSdkSigV4Signer:()=>Bt,AwsSmithyRpcV2CborProtocol:()=>m_,JsonCodec:()=>os,JsonShapeDeserializer:()=>Bu,JsonShapeSerializer:()=>Vu,NODE_AUTH_SCHEME_PREFERENCE_OPTIONS:()=>fo,NODE_SIGV4A_CONFIG_OPTIONS:()=>XS,QueryShapeSerializer:()=>Hu,XmlCodec:()=>qu,XmlShapeDeserializer:()=>ss,XmlShapeSerializer:()=>Gu,_toBool:()=>zZ,_toNum:()=>FZ,_toStr:()=>LZ,awsExpectUnion:()=>e8,emitWarningIfUnsupportedVersion:()=>co,getBearerTokenEnvKey:()=>ZS,getLongPollPlugin:()=>dO,loadRestJsonErrorCode:()=>ju,loadRestXmlErrorCode:()=>w_,parseJsonBody:()=>Cf,parseJsonErrorBody:()=>qZ,parseXmlBody:()=>ak,parseXmlErrorBody:()=>h8,resolveAWSSDKSigV4Config:()=>EZ,resolveAwsSdkSigV4AConfig:()=>KS,resolveAwsSdkSigV4Config:()=>Hn,setCredentialFeature:()=>Ui,setFeature:()=>bV,setTokenFeature:()=>CV,state:()=>BE,validateSigningProperties:()=>Mu});var Na=v(()=>{Rt();_r();ui()});var fk=z(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});cs.resolveHttpAuthSchemeConfig=cs.defaultLambdaHttpAuthSchemeProvider=cs.defaultLambdaHttpAuthSchemeParametersProvider=void 0;var gPe=(Na(),pe(Da)),pk=Ft(),hPe=i(async(e,t,r)=>({operation:(0,pk.getSmithyContext)(t).operation,region:await(0,pk.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultLambdaHttpAuthSchemeParametersProvider");cs.defaultLambdaHttpAuthSchemeParametersProvider=hPe;function yPe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"lambda",region:e.region},propertiesExtractor:i((t,r)=>({signingProperties:{config:t,context:r}}),"propertiesExtractor")}}i(yPe,"createAwsAuthSigv4HttpAuthOption");var EPe=i(e=>{let t=[];switch(e.operation){default:t.push(yPe(e))}return t},"defaultLambdaHttpAuthSchemeProvider");cs.defaultLambdaHttpAuthSchemeProvider=EPe;var SPe=i(e=>{let t=(0,gPe.resolveAwsSdkSigV4Config)(e);return Object.assign(t,{authSchemePreference:(0,pk.normalizeProvider)(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");cs.resolveHttpAuthSchemeConfig=SPe});var E8=z((Nmt,_Pe)=>{_Pe.exports={name:"@aws-sdk/client-lambda",description:"AWS SDK for JavaScript Lambda Client for Node.js, Browser and React Native",version:"3.974.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-lambda","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo lambda","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.0","@aws-sdk/credential-provider-node":"^3.972.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.1","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.0","@smithy/eventstream-serde-browser":"^4.2.8","@smithy/eventstream-serde-config-resolver":"^4.3.8","@smithy/eventstream-serde-node":"^4.2.8","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.10","@smithy/middleware-retry":"^4.4.26","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.11","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.25","@smithy/util-defaults-mode-node":"^4.2.28","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-stream":"^4.5.10","@smithy/util-utf8":"^4.2.0","@smithy/util-waiter":"^4.2.8",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-lambda",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-lambda"}}});var mk=z(us=>{"use strict";var vPe=(Rt(),pe(yn)),xPe=sr(),S8="AWS_ACCESS_KEY_ID",_8="AWS_SECRET_ACCESS_KEY",v8="AWS_SESSION_TOKEN",x8="AWS_CREDENTIAL_EXPIRATION",b8="AWS_CREDENTIAL_SCOPE",P8="AWS_ACCOUNT_ID",bPe=i(e=>async()=>{e?.logger?.debug("@aws-sdk/credential-provider-env - fromEnv");let t=process.env[S8],r=process.env[_8],o=process.env[v8],n=process.env[x8],s=process.env[b8],a=process.env[P8];if(t&&r){let c={accessKeyId:t,secretAccessKey:r,...o&&{sessionToken:o},...n&&{expiration:new Date(n)},...s&&{credentialScope:s},...a&&{accountId:a}};return vPe.setCredentialFeature(c,"CREDENTIALS_ENV_VARS","g"),c}throw new xPe.CredentialsProviderError("Unable to find environment variable credentials.",{logger:e?.logger})},"fromEnv");us.ENV_ACCOUNT_ID=P8;us.ENV_CREDENTIAL_SCOPE=b8;us.ENV_EXPIRATION=x8;us.ENV_KEY=S8;us.ENV_SECRET=_8;us.ENV_SESSION=v8;us.fromEnv=bPe});var If=z(cr=>{"use strict";var ho=sr(),PPe=require("url"),CPe=require("buffer"),APe=require("http"),Sk=Vn(),TPe=gn();function Tf(e){return new Promise((t,r)=>{let o=APe.request({method:"GET",...e,hostname:e.hostname?.replace(/^\[(.+)\]$/,"$1")});o.on("error",n=>{r(Object.assign(new ho.ProviderError("Unable to connect to instance metadata service"),n)),o.destroy()}),o.on("timeout",()=>{r(new ho.ProviderError("TimeoutError from instance metadata service")),o.destroy()}),o.on("response",n=>{let{statusCode:s=400}=n;(s<200||300<=s)&&(r(Object.assign(new ho.ProviderError("Error response received from instance metadata service"),{statusCode:s})),o.destroy());let a=[];n.on("data",c=>{a.push(c)}),n.on("end",()=>{t(CPe.Buffer.concat(a)),o.destroy()})}),o.end()})}i(Tf,"httpRequest");var I8=i(e=>!!e&&typeof e=="object"&&typeof e.AccessKeyId=="string"&&typeof e.SecretAccessKey=="string"&&typeof e.Token=="string"&&typeof e.Expiration=="string","isImdsCredentials"),w8=i(e=>({accessKeyId:e.AccessKeyId,secretAccessKey:e.SecretAccessKey,sessionToken:e.Token,expiration:new Date(e.Expiration),...e.AccountId&&{accountId:e.AccountId}}),"fromImdsCredentials"),R8=1e3,$8=0,_k=i(({maxRetries:e=$8,timeout:t=R8})=>({maxRetries:e,timeout:t}),"providerConfigFromInit"),hk=i((e,t)=>{let r=e();for(let o=0;o<t;o++)r=r.catch(e);return r},"retry"),D_="AWS_CONTAINER_CREDENTIALS_FULL_URI",N_="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",yk="AWS_CONTAINER_AUTHORIZATION_TOKEN",IPe=i((e={})=>{let{timeout:t,maxRetries:r}=_k(e);return()=>hk(async()=>{let o=await DPe({logger:e.logger}),n=JSON.parse(await wPe(t,o));if(!I8(n))throw new ho.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:e.logger});return w8(n)},r)},"fromContainerMetadata"),wPe=i(async(e,t)=>(process.env[yk]&&(t.headers={...t.headers,Authorization:process.env[yk]}),(await Tf({...t,timeout:e})).toString()),"requestFromEcsImds"),RPe="169.254.170.2",$Pe={localhost:!0,"127.0.0.1":!0},OPe={"http:":!0,"https:":!0},DPe=i(async({logger:e})=>{if(process.env[N_])return{hostname:RPe,path:process.env[N_]};if(process.env[D_]){let t=PPe.parse(process.env[D_]);if(!t.hostname||!(t.hostname in $Pe))throw new ho.CredentialsProviderError(`${t.hostname} is not a valid container metadata service hostname`,{tryNextLink:!1,logger:e});if(!t.protocol||!(t.protocol in OPe))throw new ho.CredentialsProviderError(`${t.protocol} is not a valid container metadata service protocol`,{tryNextLink:!1,logger:e});return{...t,port:t.port?parseInt(t.port,10):void 0}}throw new ho.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${N_} or ${D_} environment variable is set`,{tryNextLink:!1,logger:e})},"getCmdsUri"),Ek=class e extends ho.CredentialsProviderError{static{i(this,"InstanceMetadataV1FallbackError")}tryNextLink;name="InstanceMetadataV1FallbackError";constructor(t,r=!0){super(t,r),this.tryNextLink=r,Object.setPrototypeOf(this,e.prototype)}};cr.Endpoint=void 0;(function(e){e.IPv4="http://169.254.169.254",e.IPv6="http://[fd00:ec2::254]"})(cr.Endpoint||(cr.Endpoint={}));var NPe="AWS_EC2_METADATA_SERVICE_ENDPOINT",kPe="ec2_metadata_service_endpoint",MPe={environmentVariableSelector:i(e=>e[NPe],"environmentVariableSelector"),configFileSelector:i(e=>e[kPe],"configFileSelector"),default:void 0},Wu;(function(e){e.IPv4="IPv4",e.IPv6="IPv6"})(Wu||(Wu={}));var LPe="AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE",zPe="ec2_metadata_service_endpoint_mode",FPe={environmentVariableSelector:i(e=>e[LPe],"environmentVariableSelector"),configFileSelector:i(e=>e[zPe],"configFileSelector"),default:Wu.IPv4},O8=i(async()=>TPe.parseUrl(await UPe()||await jPe()),"getInstanceMetadataEndpoint"),UPe=i(async()=>Sk.loadConfig(MPe)(),"getFromEndpointConfig"),jPe=i(async()=>{let e=await Sk.loadConfig(FPe)();switch(e){case Wu.IPv4:return cr.Endpoint.IPv4;case Wu.IPv6:return cr.Endpoint.IPv6;default:throw new Error(`Unsupported endpoint mode: ${e}. Select from ${Object.values(Wu)}`)}},"getFromEndpointModeConfig"),BPe=300,VPe=300,HPe="https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html",C8=i((e,t)=>{let r=BPe+Math.floor(Math.random()*VPe),o=new Date(Date.now()+r*1e3);t.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(o)}.
60
+ For more information, please visit: `+HPe);let n=e.originalExpiration??e.expiration;return{...e,...n?{originalExpiration:n}:{},expiration:o}},"getExtendedInstanceMetadataCredentials"),GPe=i((e,t={})=>{let r=t?.logger||console,o;return async()=>{let n;try{n=await e(),n.expiration&&n.expiration.getTime()<Date.now()&&(n=C8(n,r))}catch(s){if(o)r.warn("Credential renew failed: ",s),n=C8(o,r);else throw s}return o=n,n}},"staticStabilityProvider"),D8="/latest/meta-data/iam/security-credentials/",qPe="/latest/api/token",gk="AWS_EC2_METADATA_V1_DISABLED",A8="ec2_metadata_v1_disabled",T8="x-aws-ec2-metadata-token",WPe=i((e={})=>GPe(ZPe(e),{logger:e.logger}),"fromInstanceMetadata"),ZPe=i((e={})=>{let t=!1,{logger:r,profile:o}=e,{timeout:n,maxRetries:s}=_k(e),a=i(async(c,u)=>{if(t||u.headers?.[T8]==null){let f=!1,y=!1,m=await Sk.loadConfig({environmentVariableSelector:i(_=>{let b=_[gk];if(y=!!b&&b!=="false",b===void 0)throw new ho.CredentialsProviderError(`${gk} not set in env, checking config file next.`,{logger:e.logger});return y},"environmentVariableSelector"),configFileSelector:i(_=>{let b=_[A8];return f=!!b&&b!=="false",f},"configFileSelector"),default:!1},{profile:o})();if(e.ec2MetadataV1Disabled||m){let _=[];throw e.ec2MetadataV1Disabled&&_.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"),f&&_.push(`config file profile (${A8})`),y&&_.push(`process environment variable (${gk})`),new Ek(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${_.join(", ")}].`)}}let p=(await hk(async()=>{let f;try{f=await XPe(u)}catch(y){throw y.statusCode===401&&(t=!1),y}return f},c)).trim();return hk(async()=>{let f;try{f=await JPe(p,u,e)}catch(y){throw y.statusCode===401&&(t=!1),y}return f},c)},"getCredentials");return async()=>{let c=await O8();if(t)return r?.debug("AWS SDK Instance Metadata","using v1 fallback (no token fetch)"),a(s,{...c,timeout:n});{let u;try{u=(await KPe({...c,timeout:n})).toString()}catch(l){if(l?.statusCode===400)throw Object.assign(l,{message:"EC2 Metadata token request returned error"});return(l.message==="TimeoutError"||[403,404,405].includes(l.statusCode))&&(t=!0),r?.debug("AWS SDK Instance Metadata","using v1 fallback (initial)"),a(s,{...c,timeout:n})}return a(s,{...c,headers:{[T8]:u},timeout:n})}}},"getInstanceMetadataProvider"),KPe=i(async e=>Tf({...e,path:qPe,method:"PUT",headers:{"x-aws-ec2-metadata-token-ttl-seconds":"21600"}}),"getMetadataToken"),XPe=i(async e=>(await Tf({...e,path:D8})).toString(),"getProfile"),JPe=i(async(e,t,r)=>{let o=JSON.parse((await Tf({...t,path:D8+e})).toString());if(!I8(o))throw new ho.CredentialsProviderError("Invalid response received from instance metadata service.",{logger:r.logger});return w8(o)},"getCredentialsFromProfile");cr.DEFAULT_MAX_RETRIES=$8;cr.DEFAULT_TIMEOUT=R8;cr.ENV_CMDS_AUTH_TOKEN=yk;cr.ENV_CMDS_FULL_URI=D_;cr.ENV_CMDS_RELATIVE_URI=N_;cr.fromContainerMetadata=IPe;cr.fromInstanceMetadata=WPe;cr.getInstanceMetadataEndpoint=O8;cr.httpRequest=Tf;cr.providerConfigFromInit=_k});var N8=z(k_=>{"use strict";Object.defineProperty(k_,"__esModule",{value:!0});k_.checkUrl=void 0;var YPe=sr(),QPe="169.254.170.2",eCe="169.254.170.23",tCe="[fd00:ec2::23]",rCe=i((e,t)=>{if(e.protocol!=="https:"&&!(e.hostname===QPe||e.hostname===eCe||e.hostname===tCe)){if(e.hostname.includes("[")){if(e.hostname==="[::1]"||e.hostname==="[0000:0000:0000:0000:0000:0000:0000:0001]")return}else{if(e.hostname==="localhost")return;let r=e.hostname.split("."),o=i(n=>{let s=parseInt(n,10);return 0<=s&&s<=255},"inRange");if(r[0]==="127"&&o(r[1])&&o(r[2])&&o(r[3])&&r.length===4)return}throw new YPe.CredentialsProviderError(`URL not accepted. It must either be HTTPS or match one of the following:
61
+ - loopback CIDR 127.0.0.0/8 or [::1/128]
62
+ - ECS container host 169.254.170.2
63
+ - EKS container host 169.254.170.23 or [fd00:ec2::23]`,{logger:t})}},"checkUrl");k_.checkUrl=rCe});var k8=z(M_=>{"use strict";Object.defineProperty(M_,"__esModule",{value:!0});M_.createGetRequest=sCe;M_.getCredentials=aCe;var vk=sr(),nCe=Ze(),oCe=ye(),iCe=hE();function sCe(e){return new nCe.HttpRequest({protocol:e.protocol,hostname:e.hostname,port:Number(e.port),path:e.pathname,query:Array.from(e.searchParams.entries()).reduce((t,[r,o])=>(t[r]=o,t),{}),fragment:e.hash})}i(sCe,"createGetRequest");async function aCe(e,t){let o=await(0,iCe.sdkStreamMixin)(e.body).transformToString();if(e.statusCode===200){let n=JSON.parse(o);if(typeof n.AccessKeyId!="string"||typeof n.SecretAccessKey!="string"||typeof n.Token!="string"||typeof n.Expiration!="string")throw new vk.CredentialsProviderError("HTTP credential provider response not of the required format, an object matching: { AccessKeyId: string, SecretAccessKey: string, Token: string, Expiration: string(rfc3339) }",{logger:t});return{accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.Token,expiration:(0,oCe.parseRfc3339DateTime)(n.Expiration)}}if(e.statusCode>=400&&e.statusCode<500){let n={};try{n=JSON.parse(o)}catch{}throw Object.assign(new vk.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:t}),{Code:n.Code,Message:n.Message})}throw new vk.CredentialsProviderError(`Server responded with status: ${e.statusCode}`,{logger:t})}i(aCe,"getCredentials")});var M8=z(L_=>{"use strict";Object.defineProperty(L_,"__esModule",{value:!0});L_.retryWrapper=void 0;var cCe=i((e,t,r)=>async()=>{for(let o=0;o<t;++o)try{return await e()}catch{await new Promise(s=>setTimeout(s,r))}return await e()},"retryWrapper");L_.retryWrapper=cCe});var F8=z(z_=>{"use strict";Object.defineProperty(z_,"__esModule",{value:!0});z_.fromHttp=void 0;var uCe=(Zo(),pe(Wo)),lCe=(Rt(),pe(yn)),dCe=Go(),L8=sr(),pCe=uCe.__importDefault(require("node:fs/promises")),fCe=N8(),z8=k8(),mCe=M8(),gCe="AWS_CONTAINER_CREDENTIALS_RELATIVE_URI",hCe="http://169.254.170.2",yCe="AWS_CONTAINER_CREDENTIALS_FULL_URI",ECe="AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE",SCe="AWS_CONTAINER_AUTHORIZATION_TOKEN",_Ce=i((e={})=>{e.logger?.debug("@aws-sdk/credential-provider-http - fromHttp");let t,r=e.awsContainerCredentialsRelativeUri??process.env[gCe],o=e.awsContainerCredentialsFullUri??process.env[yCe],n=e.awsContainerAuthorizationToken??process.env[SCe],s=e.awsContainerAuthorizationTokenFile??process.env[ECe],a=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?.warn?console.warn:e.logger.warn.bind(e.logger);if(r&&o&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerCredentialsRelativeUri and awsContainerCredentialsFullUri."),a("awsContainerCredentialsFullUri will take precedence.")),n&&s&&(a("@aws-sdk/credential-provider-http: you have set both awsContainerAuthorizationToken and awsContainerAuthorizationTokenFile."),a("awsContainerAuthorizationToken will take precedence.")),o)t=o;else if(r)t=`${hCe}${r}`;else throw new L8.CredentialsProviderError(`No HTTP credential provider host provided.
64
+ Set AWS_CONTAINER_CREDENTIALS_FULL_URI or AWS_CONTAINER_CREDENTIALS_RELATIVE_URI.`,{logger:e.logger});let c=new URL(t);(0,fCe.checkUrl)(c,e.logger);let u=dCe.NodeHttpHandler.create({requestTimeout:e.timeout??1e3,connectionTimeout:e.timeout??1e3});return(0,mCe.retryWrapper)(async()=>{let l=(0,z8.createGetRequest)(c);n?l.headers.Authorization=n:s&&(l.headers.Authorization=(await pCe.default.readFile(s)).toString());try{let p=await u.handle(l);return(0,z8.getCredentials)(p.response).then(f=>(0,lCe.setCredentialFeature)(f,"CREDENTIALS_HTTP","z"))}catch(p){throw new L8.CredentialsProviderError(String(p),{logger:e.logger})}},e.maxRetries??3,e.timeout??1e3)},"fromHttp");z_.fromHttp=_Ce});var xk=z(F_=>{"use strict";Object.defineProperty(F_,"__esModule",{value:!0});F_.fromHttp=void 0;var vCe=F8();Object.defineProperty(F_,"fromHttp",{enumerable:!0,get:i(function(){return vCe.fromHttp},"get")})});function xCe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sso-oauth",region:e.region},propertiesExtractor:i((t,r)=>({signingProperties:{config:t,context:r}}),"propertiesExtractor")}}function bCe(e){return{schemeId:"smithy.api#noAuth"}}var wf,U8,j8,B8,bk=v(()=>{_r();wf=w(Ft()),U8=i(async(e,t,r)=>({operation:(0,wf.getSmithyContext)(t).operation,region:await(0,wf.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOOIDCHttpAuthSchemeParametersProvider");i(xCe,"createAwsAuthSigv4HttpAuthOption");i(bCe,"createSmithyApiNoAuthHttpAuthOption");j8=i(e=>{let t=[];return e.operation==="CreateToken"?t.push(bCe(e)):t.push(xCe(e)),t},"defaultSSOOIDCHttpAuthSchemeProvider"),B8=i(e=>{let t=Hn(e);return Object.assign(t,{authSchemePreference:(0,wf.normalizeProvider)(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var V8,H8,Pk=v(()=>{V8=i(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"sso-oauth"}),"resolveClientEndpointParameters"),H8={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var ls,Rf=v(()=>{ls={name:"@aws-sdk/nested-clients",version:"3.997.5",description:"Nested clients for AWS SDK packages.",main:"./dist-cjs/index.js",module:"./dist-es/index.js",types:"./dist-types/index.d.ts",scripts:{build:"yarn lint && concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline nested-clients","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo",lint:"node ../../scripts/validation/submodules-linter.js --pkg nested-clients",test:"yarn g:vitest run","test:watch":"yarn g:vitest watch"},engines:{node:">=20.0.0"},sideEffects:!1,author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.974.7","@aws-sdk/middleware-host-header":"^3.972.10","@aws-sdk/middleware-logger":"^3.972.10","@aws-sdk/middleware-recursion-detection":"^3.972.11","@aws-sdk/middleware-user-agent":"^3.972.37","@aws-sdk/region-config-resolver":"^3.972.13","@aws-sdk/signature-v4-multi-region":"^3.996.24","@aws-sdk/types":"^3.973.8","@aws-sdk/util-endpoints":"^3.996.8","@aws-sdk/util-user-agent-browser":"^3.972.10","@aws-sdk/util-user-agent-node":"^3.973.23","@smithy/config-resolver":"^4.4.17","@smithy/core":"^3.23.17","@smithy/fetch-http-handler":"^5.3.17","@smithy/hash-node":"^4.2.14","@smithy/invalid-dependency":"^4.2.14","@smithy/middleware-content-length":"^4.2.14","@smithy/middleware-endpoint":"^4.4.32","@smithy/middleware-retry":"^4.5.7","@smithy/middleware-serde":"^4.2.20","@smithy/middleware-stack":"^4.2.14","@smithy/node-config-provider":"^4.3.14","@smithy/node-http-handler":"^4.6.1","@smithy/protocol-http":"^5.3.14","@smithy/smithy-client":"^4.12.13","@smithy/types":"^4.14.1","@smithy/url-parser":"^4.2.14","@smithy/util-base64":"^4.3.2","@smithy/util-body-length-browser":"^4.2.2","@smithy/util-body-length-node":"^4.2.3","@smithy/util-defaults-mode-browser":"^4.3.49","@smithy/util-defaults-mode-node":"^4.2.54","@smithy/util-endpoints":"^3.4.2","@smithy/util-middleware":"^4.2.14","@smithy/util-retry":"^4.3.6","@smithy/util-utf8":"^4.2.2",tslib:"^2.6.2"},devDependencies:{concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},typesVersions:{"<4.5":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["./cognito-identity.d.ts","./cognito-identity.js","./signin.d.ts","./signin.js","./sso-oidc.d.ts","./sso-oidc.js","./sso.d.ts","./sso.js","./sts.d.ts","./sts.js","dist-*/**"],browser:{"./dist-es/submodules/cognito-identity/runtimeConfig":"./dist-es/submodules/cognito-identity/runtimeConfig.browser","./dist-es/submodules/signin/runtimeConfig":"./dist-es/submodules/signin/runtimeConfig.browser","./dist-es/submodules/sso-oidc/runtimeConfig":"./dist-es/submodules/sso-oidc/runtimeConfig.browser","./dist-es/submodules/sso/runtimeConfig":"./dist-es/submodules/sso/runtimeConfig.browser","./dist-es/submodules/sts/runtimeConfig":"./dist-es/submodules/sts/runtimeConfig.browser"},"react-native":{},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/packages/nested-clients",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"packages/nested-clients"},exports:{"./package.json":"./package.json","./sso-oidc":{types:"./dist-types/submodules/sso-oidc/index.d.ts",module:"./dist-es/submodules/sso-oidc/index.js",node:"./dist-cjs/submodules/sso-oidc/index.js",import:"./dist-es/submodules/sso-oidc/index.js",require:"./dist-cjs/submodules/sso-oidc/index.js"},"./sts":{types:"./dist-types/submodules/sts/index.d.ts",module:"./dist-es/submodules/sts/index.js",node:"./dist-cjs/submodules/sts/index.js",import:"./dist-es/submodules/sts/index.js",require:"./dist-cjs/submodules/sts/index.js"},"./signin":{types:"./dist-types/submodules/signin/index.d.ts",module:"./dist-es/submodules/signin/index.js",node:"./dist-cjs/submodules/signin/index.js",import:"./dist-es/submodules/signin/index.js",require:"./dist-cjs/submodules/signin/index.js"},"./cognito-identity":{types:"./dist-types/submodules/cognito-identity/index.d.ts",module:"./dist-es/submodules/cognito-identity/index.js",node:"./dist-cjs/submodules/cognito-identity/index.js",import:"./dist-es/submodules/cognito-identity/index.js",require:"./dist-cjs/submodules/cognito-identity/index.js"},"./sso":{types:"./dist-types/submodules/sso/index.d.ts",module:"./dist-es/submodules/sso/index.js",node:"./dist-cjs/submodules/sso/index.js",import:"./dist-es/submodules/sso/index.js",require:"./dist-cjs/submodules/sso/index.js"}}}});var Ma=z(ka=>{"use strict";var G8=require("node:os"),$f=require("node:process"),q8=ZE(),W8=require("node:fs/promises"),Zu=require("node:path"),CCe=ji(),ACe=i(()=>{let e=["deno","bun","llrt"];for(let t of e)if($f.versions[t])return[`md/${t}`,$f.versions[t]];return["md/nodejs",$f.versions.node]},"getRuntimeUserAgentPair"),TCe=i(e=>{let t=process.cwd();if(!e)return[t];let r=Zu.normalize(e),o=r.split(Zu.sep),n=o.indexOf("node_modules"),s=n!==-1?o.slice(0,n).join(Zu.sep):r;return t===s?[t]:[s,t]},"getNodeModulesParentDirs"),ICe=/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/,Z8=i((e="")=>{let t=e.match(ICe);if(!t)return;let[r,o,n,s]=[t[1],t[2],t[3],t[4]];return s?`${r}.${o}.${n}-${s}`:`${r}.${o}.${n}`},"getSanitizedTypeScriptVersion"),wCe=["^","~",">=","<=",">","<"],RCe=["latest","beta","dev","rc","insiders","next"],$Ce=i((e="")=>{if(RCe.includes(e))return e;let t=wCe.find(o=>e.startsWith(o))??"",r=Z8(e.slice(t.length));if(r)return`${t}${r}`},"getSanitizedDevTypeScriptVersion"),yo,OCe=Zu.join("node_modules","typescript","package.json"),DCe=i(async()=>{if(yo===null)return;if(typeof yo=="string")return["md/tsc",yo];let e=!1;try{e=q8.booleanSelector(process.env,"AWS_SDK_JS_TYPESCRIPT_DETECTION_DISABLED",q8.SelectorType.ENV)||!1}catch{}if(e){yo=null;return}let r=TCe(typeof __dirname<"u"?__dirname:void 0),o;for(let a of r)try{let c=Zu.join(a,"package.json"),u=await W8.readFile(c,"utf-8"),{dependencies:l,devDependencies:p}=JSON.parse(u),f=p?.typescript??l?.typescript;if(typeof f!="string")continue;o=f;break}catch{}if(!o){yo=null;return}let n;for(let a of r)try{let c=Zu.join(a,OCe),u=await W8.readFile(c,"utf-8"),{version:l}=JSON.parse(u),p=Z8(l);if(typeof p!="string")continue;n=p;break}catch{}if(n)return yo=n,["md/tsc",yo];let s=$Ce(o);if(typeof s!="string"){yo=null;return}return yo=`dev_${s}`,["md/tsc",yo]},"getTypeScriptUserAgentPair"),K8={isCrtAvailable:!1},NCe=i(()=>K8.isCrtAvailable?["md/crt-avail"]:null,"isCrtAvailable"),X8=i(({serviceId:e,clientVersion:t})=>{let r=ACe();return async o=>{let n=[["aws-sdk-js",t],["ua","2.1"],[`os/${G8.platform()}`,G8.release()],["lang/js"],r],s=await DCe();s&&n.push(s);let a=NCe();a&&n.push(a),e&&n.push([`api/${e}`,t]),$f.env.AWS_EXECUTION_ENV&&n.push([`exec-env/${$f.env.AWS_EXECUTION_ENV}`]);let c=await o?.userAgentAppId?.();return c?[...n,[`app/${c}`]]:[...n]}},"createDefaultUserAgentProvider"),kCe=X8,J8="AWS_SDK_UA_APP_ID",Y8="sdk_ua_app_id",MCe="sdk-ua-app-id",LCe={environmentVariableSelector:i(e=>e[J8],"environmentVariableSelector"),configFileSelector:i(e=>e[Y8]??e[MCe],"configFileSelector"),default:CCe.DEFAULT_UA_APP_ID};ka.NODE_APP_ID_CONFIG_OPTIONS=LCe;ka.UA_APP_ID_ENV_NAME=J8;ka.UA_APP_ID_INI_NAME=Y8;ka.createDefaultUserAgentProvider=X8;ka.crtAvailability=K8;ka.defaultUserAgent=kCe});var La=z(tK=>{"use strict";var Ck=Qc(),zCe=It(),FCe=require("buffer"),Q8=require("crypto"),Ak=class{static{i(this,"Hash")}algorithmIdentifier;secret;hash;constructor(t,r){this.algorithmIdentifier=t,this.secret=r,this.reset()}update(t,r){this.hash.update(zCe.toUint8Array(eK(t,r)))}digest(){return Promise.resolve(this.hash.digest())}reset(){this.hash=this.secret?Q8.createHmac(this.algorithmIdentifier,eK(this.secret)):Q8.createHash(this.algorithmIdentifier)}};function eK(e,t){return FCe.Buffer.isBuffer(e)?e:typeof e=="string"?Ck.fromString(e,t):ArrayBuffer.isView(e)?Ck.fromArrayBuffer(e.buffer,e.byteOffset,e.byteLength):Ck.fromArrayBuffer(e)}i(eK,"castSourceData");tK.Hash=Ak});var za=z(rK=>{"use strict";var Tk=require("node:fs"),UCe=i(e=>{if(!e)return 0;if(typeof e=="string")return Buffer.byteLength(e);if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size;if(typeof e.start=="number"&&typeof e.end=="number")return e.end+1-e.start;if(e instanceof Tk.ReadStream){if(e.path!=null)return Tk.lstatSync(e.path).size;if(typeof e.fd=="number")return Tk.fstatSync(e.fd).size}throw new Error(`Body Length computation failed for ${e}`)},"calculateBodyLength");rK.calculateBodyLength=UCe});var Fa=z(sK=>{"use strict";var jCe=or(),nK=Vn(),BCe=sr(),VCe="AWS_EXECUTION_ENV",oK="AWS_REGION",iK="AWS_DEFAULT_REGION",HCe="AWS_EC2_METADATA_DISABLED",GCe=["in-region","cross-region","mobile","standard","legacy"],qCe="/latest/meta-data/placement/region",WCe="AWS_DEFAULTS_MODE",ZCe="defaults_mode",KCe={environmentVariableSelector:i(e=>e[WCe],"environmentVariableSelector"),configFileSelector:i(e=>e[ZCe],"configFileSelector"),default:"legacy"},XCe=i(({region:e=nK.loadConfig(jCe.NODE_REGION_CONFIG_OPTIONS),defaultsMode:t=nK.loadConfig(KCe)}={})=>BCe.memoize(async()=>{let r=typeof t=="function"?await t():t;switch(r?.toLowerCase()){case"auto":return JCe(e);case"in-region":case"cross-region":case"mobile":case"standard":case"legacy":return Promise.resolve(r?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${GCe.join(", ")}, got ${r}`)}}),"resolveDefaultsModeConfig"),JCe=i(async e=>{if(e){let t=typeof e=="function"?await e():e,r=await YCe();return r?t===r?"in-region":"cross-region":"standard"}return"standard"},"resolveNodeDefaultsModeAuto"),YCe=i(async()=>{if(process.env[VCe]&&(process.env[oK]||process.env[iK]))return process.env[oK]??process.env[iK];if(!process.env[HCe])try{let{getInstanceMetadataEndpoint:e,httpRequest:t}=await Promise.resolve().then(()=>w(If())),r=await e();return(await t({...r,path:qCe})).toString()}catch{}},"inferPhysicalRegion");sK.resolveDefaultsModeConfig=XCe});var dK,Of,Ua,U_,aK,pK,j_,Ik,cK,wk,Ku,uK,lK,QCe,Nr,eAe,fK,mK=v(()=>{dK=w($r()),Of="ref",Ua=-1,U_=!0,aK="isSet",pK="PartitionResult",j_="booleanEquals",Ik="getAttr",cK={[Of]:"Endpoint"},wk={[Of]:pK},Ku={},uK=[{[Of]:"Region"}],lK={conditions:[[aK,[cK]],[aK,uK],["aws.partition",uK,pK],[j_,[{[Of]:"UseFIPS"},U_]],[j_,[{[Of]:"UseDualStack"},U_]],[j_,[{fn:Ik,argv:[wk,"supportsDualStack"]},U_]],[j_,[{fn:Ik,argv:[wk,"supportsFIPS"]},U_]],["stringEquals",[{fn:Ik,argv:[wk,"name"]},"aws-us-gov"]]],results:[[Ua],[Ua,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Ua,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[cK,Ku],["https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Ku],[Ua,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://oidc.{Region}.amazonaws.com",Ku],["https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}",Ku],[Ua,"FIPS is enabled but this partition does not support FIPS"],["https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}",Ku],[Ua,"DualStack is enabled but this partition does not support DualStack"],["https://oidc.{Region}.{PartitionResult#dnsSuffix}",Ku],[Ua,"Invalid Configuration: Missing Region"]]},QCe=2,Nr=1e8,eAe=new Int32Array([-1,1,-1,0,13,3,1,4,Nr+12,2,5,Nr+12,3,8,6,4,7,Nr+11,5,Nr+9,Nr+10,4,11,9,6,10,Nr+8,7,Nr+6,Nr+7,5,12,Nr+5,6,Nr+4,Nr+5,3,Nr+1,14,4,Nr+2,Nr+3]),fK=dK.BinaryDecisionDiagram.from(eAe,QCe,lK.conditions,lK.results)});var gK,Xu,tAe,hK,yK=v(()=>{gK=w(uu()),Xu=w($r());mK();tAe=new Xu.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),hK=i((e,t={})=>tAe.get(e,()=>(0,Xu.decideEndpoint)(fK,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");Xu.customEndpointFunctions.aws=gK.awsEndpointFunctions});var EK,Vt,B_=v(()=>{EK=w(ye()),Vt=class e extends EK.ServiceException{static{i(this,"SSOOIDCServiceException")}constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}});var Df,Nf,kf,Mf,Lf,zf,Ff,Uf,jf,Bf,Vf,Rk=v(()=>{B_();Df=class e extends Vt{static{i(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;reason;error_description;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},Nf=class e extends Vt{static{i(this,"AuthorizationPendingException")}name="AuthorizationPendingException";$fault="client";error;error_description;constructor(t){super({name:"AuthorizationPendingException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},kf=class e extends Vt{static{i(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";error;error_description;constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Mf=class e extends Vt{static{i(this,"InternalServerException")}name="InternalServerException";$fault="server";error;error_description;constructor(t){super({name:"InternalServerException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Lf=class e extends Vt{static{i(this,"InvalidClientException")}name="InvalidClientException";$fault="client";error;error_description;constructor(t){super({name:"InvalidClientException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},zf=class e extends Vt{static{i(this,"InvalidGrantException")}name="InvalidGrantException";$fault="client";error;error_description;constructor(t){super({name:"InvalidGrantException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Ff=class e extends Vt{static{i(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";error;reason;error_description;constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.reason=t.reason,this.error_description=t.error_description}},Uf=class e extends Vt{static{i(this,"InvalidScopeException")}name="InvalidScopeException";$fault="client";error;error_description;constructor(t){super({name:"InvalidScopeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},jf=class e extends Vt{static{i(this,"SlowDownException")}name="SlowDownException";$fault="client";error;error_description;constructor(t){super({name:"SlowDownException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Bf=class e extends Vt{static{i(this,"UnauthorizedClientException")}name="UnauthorizedClientException";$fault="client";error;error_description;constructor(t){super({name:"UnauthorizedClientException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}},Vf=class e extends Vt{static{i(this,"UnsupportedGrantTypeException")}name="UnsupportedGrantTypeException";$fault="client";error;error_description;constructor(t){super({name:"UnsupportedGrantTypeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error,this.error_description=t.error_description}}});var rAe,nAe,oAe,iAe,sAe,aAe,cAe,uAe,lAe,dAe,pAe,fAe,mAe,gAe,hAe,yAe,EAe,SAe,_Ae,vAe,Eo,xAe,bAe,PAe,CAe,AAe,St,TAe,qn,IAe,wAe,Wn,RAe,SK,_K,$Ae,vK,OAe,DAe,NAe,Ct,xK,bK,_n,PK,CK,AK,TK,IK,wK,RK,$K,OK,DK,NK,$k,kAe,MAe,LAe,zAe,kK,MK,LK,Ok,V_=v(()=>{je();Rk();B_();rAe="AccessDeniedException",nAe="AuthorizationPendingException",oAe="AccessToken",iAe="ClientSecret",sAe="CreateToken",aAe="CreateTokenRequest",cAe="CreateTokenResponse",uAe="CodeVerifier",lAe="ExpiredTokenException",dAe="InvalidClientException",pAe="InvalidGrantException",fAe="InvalidRequestException",mAe="InternalServerException",gAe="InvalidScopeException",hAe="IdToken",yAe="RefreshToken",EAe="SlowDownException",SAe="UnauthorizedClientException",_Ae="UnsupportedGrantTypeException",vAe="accessToken",Eo="client",xAe="clientId",bAe="clientSecret",PAe="codeVerifier",CAe="code",AAe="deviceCode",St="error",TAe="expiresIn",qn="error_description",IAe="grantType",wAe="http",Wn="httpError",RAe="idToken",SK="reason",_K="refreshToken",$Ae="redirectUri",vK="smithy.ts.sdk.synthetic.com.amazonaws.ssooidc",OAe="scope",DAe="server",NAe="tokenType",Ct="com.amazonaws.ssooidc",xK=pt.for(vK),bK=[-3,vK,"SSOOIDCServiceException",0,[],[]];xK.registerError(bK,Vt);_n=pt.for(Ct),PK=[-3,Ct,rAe,{[St]:Eo,[Wn]:400},[St,SK,qn],[0,0,0]];_n.registerError(PK,Df);CK=[-3,Ct,nAe,{[St]:Eo,[Wn]:400},[St,qn],[0,0]];_n.registerError(CK,Nf);AK=[-3,Ct,lAe,{[St]:Eo,[Wn]:400},[St,qn],[0,0]];_n.registerError(AK,kf);TK=[-3,Ct,mAe,{[St]:DAe,[Wn]:500},[St,qn],[0,0]];_n.registerError(TK,Mf);IK=[-3,Ct,dAe,{[St]:Eo,[Wn]:401},[St,qn],[0,0]];_n.registerError(IK,Lf);wK=[-3,Ct,pAe,{[St]:Eo,[Wn]:400},[St,qn],[0,0]];_n.registerError(wK,zf);RK=[-3,Ct,fAe,{[St]:Eo,[Wn]:400},[St,SK,qn],[0,0,0]];_n.registerError(RK,Ff);$K=[-3,Ct,gAe,{[St]:Eo,[Wn]:400},[St,qn],[0,0]];_n.registerError($K,Uf);OK=[-3,Ct,EAe,{[St]:Eo,[Wn]:400},[St,qn],[0,0]];_n.registerError(OK,jf);DK=[-3,Ct,SAe,{[St]:Eo,[Wn]:400},[St,qn],[0,0]];_n.registerError(DK,Bf);NK=[-3,Ct,_Ae,{[St]:Eo,[Wn]:400},[St,qn],[0,0]];_n.registerError(NK,Vf);$k=[xK,_n],kAe=[0,Ct,oAe,8,0],MAe=[0,Ct,iAe,8,0],LAe=[0,Ct,uAe,8,0],zAe=[0,Ct,hAe,8,0],kK=[0,Ct,yAe,8,0],MK=[3,Ct,aAe,0,[xAe,bAe,IAe,AAe,CAe,_K,OAe,$Ae,PAe],[0,[()=>MAe,0],0,0,0,[()=>kK,0],64,0,[()=>LAe,0]],3],LK=[3,Ct,cAe,0,[vAe,NAe,TAe,_K,RAe],[[()=>kAe,0],0,1,[()=>kK,0],[()=>zAe,0]]],Ok=[9,Ct,sAe,{[wAe]:["POST","/token",200]},()=>MK,()=>LK]});var zK,FK,H_,G_,UK,jK=v(()=>{_r();ui();Ut();zK=w(ye()),FK=w(gn()),H_=w(wt()),G_=w(It());bk();yK();V_();UK=i(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??H_.fromBase64,base64Encoder:e?.base64Encoder??H_.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??hK,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??j8,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Bt},{schemeId:"smithy.api#noAuth",identityProvider:i(t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Kr}],logger:e?.logger??new zK.NoOpLogger,protocol:e?.protocol??go,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.ssooidc",errorTypeRegistries:$k,version:"2019-06-10",serviceTarget:"AWSSSOOIDCService"},serviceId:e?.serviceId??"SSO OIDC",urlParser:e?.urlParser??FK.parseUrl,utf8Decoder:e?.utf8Decoder??G_.fromUtf8,utf8Encoder:e?.utf8Encoder??G_.toUtf8}),"getRuntimeConfig")});var q_,ps,BK,W_,ds,Z_,K_,VK,HK,GK,qK,WK=v(()=>{Rf();Rt();_r();q_=w(Ma()),ps=w(or()),BK=w(La()),W_=w(en()),ds=w(Vn()),Z_=w(Go()),K_=w(ye()),VK=w(za()),HK=w(Fa()),GK=w(uo());jK();qK=i(e=>{(0,K_.emitWarningIfUnsupportedVersion)(process.version);let t=(0,HK.resolveDefaultsModeConfig)(e),r=i(()=>t().then(K_.loadConfigsForDefaultMode),"defaultConfigProvider"),o=UK(e);co(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,ds.loadConfig)(fo,n),bodyLengthChecker:e?.bodyLengthChecker??VK.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,q_.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:ls.version}),maxAttempts:e?.maxAttempts??(0,ds.loadConfig)(W_.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,ds.loadConfig)(ps.NODE_REGION_CONFIG_OPTIONS,{...ps.NODE_REGION_CONFIG_FILE_OPTIONS,...n}),requestHandler:Z_.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,ds.loadConfig)({...W_.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||GK.DEFAULT_RETRY_MODE,"default")},e),sha256:e?.sha256??BK.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Z_.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,ds.loadConfig)(ps.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,n),useFipsEndpoint:e?.useFipsEndpoint??(0,ds.loadConfig)(ps.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,n),userAgentAppId:e?.userAgentAppId??(0,ds.loadConfig)(q_.NODE_APP_ID_CONFIG_OPTIONS,n)}},"getRuntimeConfig")});var KK=z(Ju=>{"use strict";Object.defineProperty(Ju,"__esModule",{value:!0});Ju.warning=void 0;Ju.stsRegionDefaultResolver=UAe;var ZK=or(),FAe=Vn();function UAe(e={}){return(0,FAe.loadConfig)({...ZK.NODE_REGION_CONFIG_OPTIONS,async default(){return Ju.warning.silence||console.warn("@aws-sdk - WARN - default STS region of us-east-1 used. See @aws-sdk/credential-providers README and set a region explicitly."),"us-east-1"}},{...ZK.NODE_REGION_CONFIG_FILE_OPTIONS,...e})}i(UAe,"stsRegionDefaultResolver");Ju.warning={silence:!1}});var li=z(vn=>{"use strict";var X_=KK(),Hf=or(),jAe=i(e=>({setRegion(t){e.region=t},region(){return e.region}}),"getAwsRegionExtensionConfiguration"),BAe=i(e=>({region:e.region()}),"resolveAwsRegionExtensionConfiguration");vn.NODE_REGION_CONFIG_FILE_OPTIONS=Hf.NODE_REGION_CONFIG_FILE_OPTIONS;vn.NODE_REGION_CONFIG_OPTIONS=Hf.NODE_REGION_CONFIG_OPTIONS;vn.REGION_ENV_NAME=Hf.REGION_ENV_NAME;vn.REGION_INI_NAME=Hf.REGION_INI_NAME;vn.resolveRegionConfig=Hf.resolveRegionConfig;vn.getAwsRegionExtensionConfiguration=jAe;vn.resolveAwsRegionExtensionConfiguration=BAe;Object.prototype.hasOwnProperty.call(X_,"__proto__")&&!Object.prototype.hasOwnProperty.call(vn,"__proto__")&&Object.defineProperty(vn,"__proto__",{enumerable:!0,value:X_.__proto__});Object.keys(X_).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(vn,e)&&(vn[e]=X_[e])})});var XK,JK,YK=v(()=>{XK=i(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(n){let s=t.findIndex(a=>a.schemeId===n.schemeId);s===-1?t.push(n):t.splice(s,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){r=n},httpAuthSchemeProvider(){return r},setCredentials(n){o=n},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),JK=i(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig")});var J_,Y_,Q_,QK,e5=v(()=>{J_=w(li()),Y_=w(Ze()),Q_=w(ye());YK();QK=i((e,t)=>{let r=Object.assign((0,J_.getAwsRegionExtensionConfiguration)(e),(0,Q_.getDefaultExtensionConfiguration)(e),(0,Y_.getHttpHandlerExtensionConfiguration)(e),XK(e));return t.forEach(o=>o.configure(r)),Object.assign(e,(0,J_.resolveAwsRegionExtensionConfiguration)(r),(0,Q_.resolveDefaultRuntimeConfig)(r),(0,Y_.resolveHttpHandlerRuntimeConfig)(r),JK(r))},"resolveRuntimeExtensions")});var ev,t5,r5,tv,n5,o5,i5,rv,Dk,Gf,Nk=v(()=>{ev=w(ua()),t5=w(la()),r5=w(da()),tv=w(ji()),n5=w(or());Ut();je();o5=w(Aa()),i5=w(Or()),rv=w(en()),Dk=w(ye());bk();Pk();WK();e5();Gf=class extends Dk.Client{static{i(this,"SSOOIDCClient")}config;constructor(...[t]){let r=qK(t||{});super(r),this.initConfig=r;let o=V8(r),n=(0,tv.resolveUserAgentConfig)(o),s=(0,rv.resolveRetryConfig)(n),a=(0,n5.resolveRegionConfig)(s),c=(0,ev.resolveHostHeaderConfig)(a),u=(0,i5.resolveEndpointConfig)(c),l=B8(u),p=QK(l,t?.extensions||[]);this.config=p,this.middlewareStack.use(qo(this.config)),this.middlewareStack.use((0,tv.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,rv.getRetryPlugin)(this.config)),this.middlewareStack.use((0,o5.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,ev.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,t5.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,r5.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use(Fo(this.config,{httpAuthSchemeParametersProvider:U8,identityProviderConfigProvider:i(async f=>new Ln({"aws.auth#sigv4":f.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Uo(this.config))}destroy(){super.destroy()}}});var s5,kk,qf,Mk=v(()=>{s5=w(Or()),kk=w(ye());Pk();V_();qf=class extends kk.Command.classBuilder().ep(H8).m(function(t,r,o,n){return[(0,s5.getEndpointPlugin)(o,t.getEndpointParameterInstructions())]}).s("AWSSSOOIDCService","CreateToken",{}).n("SSOOIDCClient","CreateTokenCommand").sc(Ok).build(){static{i(this,"CreateTokenCommand")}}});var a5,VAe,nv,c5=v(()=>{a5=w(ye());Mk();Nk();VAe={CreateTokenCommand:qf},nv=class extends Gf{static{i(this,"SSOOIDC")}};(0,a5.createAggregatedClient)(VAe,nv)});var u5=v(()=>{Mk()});var HAe,GAe,l5=v(()=>{HAe={KMS_ACCESS_DENIED:"KMS_AccessDeniedException"},GAe={KMS_DISABLED_KEY:"KMS_DisabledException",KMS_INVALID_KEY_USAGE:"KMS_InvalidKeyUsageException",KMS_INVALID_STATE:"KMS_InvalidStateException",KMS_KEY_NOT_FOUND:"KMS_NotFoundException"}});var d5=v(()=>{});var Lk={};We(Lk,{$Command:()=>kk.Command,AccessDeniedException:()=>Df,AccessDeniedException$:()=>PK,AccessDeniedExceptionReason:()=>HAe,AuthorizationPendingException:()=>Nf,AuthorizationPendingException$:()=>CK,CreateToken$:()=>Ok,CreateTokenCommand:()=>qf,CreateTokenRequest$:()=>MK,CreateTokenResponse$:()=>LK,ExpiredTokenException:()=>kf,ExpiredTokenException$:()=>AK,InternalServerException:()=>Mf,InternalServerException$:()=>TK,InvalidClientException:()=>Lf,InvalidClientException$:()=>IK,InvalidGrantException:()=>zf,InvalidGrantException$:()=>wK,InvalidRequestException:()=>Ff,InvalidRequestException$:()=>RK,InvalidRequestExceptionReason:()=>GAe,InvalidScopeException:()=>Uf,InvalidScopeException$:()=>$K,SSOOIDC:()=>nv,SSOOIDCClient:()=>Gf,SSOOIDCServiceException:()=>Vt,SSOOIDCServiceException$:()=>bK,SlowDownException:()=>jf,SlowDownException$:()=>OK,UnauthorizedClientException:()=>Bf,UnauthorizedClientException$:()=>DK,UnsupportedGrantTypeException:()=>Vf,UnsupportedGrantTypeException$:()=>NK,__Client:()=>Dk.Client,errorTypeRegistries:()=>$k});var zk=v(()=>{Nk();c5();u5();V_();l5();Rk();d5();B_()});var g5=z(Zf=>{"use strict";var qAe=(Rt(),pe(yn)),WAe=(_r(),pe(vZ)),tn=sr(),Wf=po(),ZAe=require("node:fs"),KAe=i(({logger:e,signingName:t}={})=>async()=>{if(e?.debug?.("@aws-sdk/token-providers - fromEnvSigningName"),!t)throw new tn.TokenProviderError("Please pass 'signingName' to compute environment variable key",{logger:e});let r=WAe.getBearerTokenEnvKey(t);if(!(r in process.env))throw new tn.TokenProviderError(`Token not present in '${r}' environment variable`,{logger:e});let o={token:process.env[r]};return qAe.setTokenFeature(o,"BEARER_SERVICE_ENV_VARS","3"),o},"fromEnvSigningName"),XAe=300*1e3,Fk="To refresh this SSO session run 'aws sso login' with the corresponding profile.",JAe=i(async(e,t={},r)=>{let{SSOOIDCClient:o}=await Promise.resolve().then(()=>(zk(),Lk)),n=i(a=>t.clientConfig?.[a]??t.parentClientConfig?.[a]??r?.[a],"coalesce");return new o(Object.assign({},t.clientConfig??{},{region:e??t.clientConfig?.region,logger:n("logger"),userAgentAppId:n("userAgentAppId")}))},"getSsoOidcClient"),YAe=i(async(e,t,r={},o)=>{let{CreateTokenCommand:n}=await Promise.resolve().then(()=>(zk(),Lk));return(await JAe(t,r,o)).send(new n({clientId:e.clientId,clientSecret:e.clientSecret,refreshToken:e.refreshToken,grantType:"refresh_token"}))},"getNewSsoOidcToken"),p5=i(e=>{if(e.expiration&&e.expiration.getTime()<Date.now())throw new tn.TokenProviderError(`Token is expired. ${Fk}`,!1)},"validateTokenExpiry"),ja=i((e,t,r=!1)=>{if(typeof t>"u")throw new tn.TokenProviderError(`Value not present for '${e}' in SSO Token${r?". Cannot refresh":""}. ${Fk}`,!1)},"validateTokenKey"),{writeFile:QAe}=ZAe.promises,eTe=i((e,t)=>{let r=Wf.getSSOTokenFilepath(e),o=JSON.stringify(t,null,2);return QAe(r,o)},"writeSSOTokenToFile"),f5=new Date(0),m5=i((e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/token-providers - fromSso");let r=await Wf.parseKnownFiles(e),o=Wf.getProfileName({profile:e.profile??t?.profile}),n=r[o];if(n){if(!n.sso_session)throw new tn.TokenProviderError(`Profile '${o}' is missing required property 'sso_session'.`)}else throw new tn.TokenProviderError(`Profile '${o}' could not be found in shared credentials file.`,!1);let s=n.sso_session,c=(await Wf.loadSsoSessionData(e))[s];if(!c)throw new tn.TokenProviderError(`Sso session '${s}' could not be found in shared credentials file.`,!1);for(let m of["sso_start_url","sso_region"])if(!c[m])throw new tn.TokenProviderError(`Sso session '${s}' is missing required property '${m}'.`,!1);c.sso_start_url;let u=c.sso_region,l;try{l=await Wf.getSSOTokenFromFile(s)}catch{throw new tn.TokenProviderError(`The SSO session token associated with profile=${o} was not found or is invalid. ${Fk}`,!1)}ja("accessToken",l.accessToken),ja("expiresAt",l.expiresAt);let{accessToken:p,expiresAt:f}=l,y={token:p,expiration:new Date(f)};if(y.expiration.getTime()-Date.now()>XAe)return y;if(Date.now()-f5.getTime()<30*1e3)return p5(y),y;ja("clientId",l.clientId,!0),ja("clientSecret",l.clientSecret,!0),ja("refreshToken",l.refreshToken,!0);try{f5.setTime(Date.now());let m=await YAe(l,u,e,t);ja("accessToken",m.accessToken),ja("expiresIn",m.expiresIn);let _=new Date(Date.now()+m.expiresIn*1e3);try{await eTe(s,{...l,accessToken:m.accessToken,expiresAt:_.toISOString(),refreshToken:m.refreshToken})}catch{}return{token:m.accessToken,expiration:_}}catch{return p5(y),y}},"fromSso"),tTe=i(({token:e,logger:t})=>async()=>{if(t?.debug("@aws-sdk/token-providers - fromStatic"),!e||!e.token)throw new tn.TokenProviderError("Please pass a valid token to fromStatic",!1);return e},"fromStatic"),rTe=i((e={})=>tn.memoize(tn.chain(m5(e),async()=>{throw new tn.TokenProviderError("Could not load token from any providers",!1)}),t=>t.expiration!==void 0&&t.expiration.getTime()-Date.now()<3e5,t=>t.expiration!==void 0),"nodeProvider");Zf.fromEnvSigningName=KAe;Zf.fromSso=m5;Zf.fromStatic=tTe;Zf.nodeProvider=rTe});function nTe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"awsssoportal",region:e.region},propertiesExtractor:i((t,r)=>({signingProperties:{config:t,context:r}}),"propertiesExtractor")}}function oTe(e){return{schemeId:"smithy.api#noAuth"}}var Kf,h5,y5,E5,Uk=v(()=>{_r();Kf=w(Ft()),h5=i(async(e,t,r)=>({operation:(0,Kf.getSmithyContext)(t).operation,region:await(0,Kf.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSSOHttpAuthSchemeParametersProvider");i(nTe,"createAwsAuthSigv4HttpAuthOption");i(oTe,"createSmithyApiNoAuthHttpAuthOption");y5=i(e=>{let t=[];return e.operation==="GetRoleCredentials"?t.push(oTe(e)):t.push(nTe(e)),t},"defaultSSOHttpAuthSchemeProvider"),E5=i(e=>{let t=Hn(e);return Object.assign(t,{authSchemePreference:(0,Kf.normalizeProvider)(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var S5,_5,jk=v(()=>{S5=i(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"awsssoportal"}),"resolveClientEndpointParameters"),_5={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var C5,Xf,Ba,ov,v5,A5,iv,Bk,x5,Vk,Yu,b5,P5,iTe,kr,sTe,T5,I5=v(()=>{C5=w($r()),Xf="ref",Ba=-1,ov=!0,v5="isSet",A5="PartitionResult",iv="booleanEquals",Bk="getAttr",x5={[Xf]:"Endpoint"},Vk={[Xf]:A5},Yu={},b5=[{[Xf]:"Region"}],P5={conditions:[[v5,[x5]],[v5,b5],["aws.partition",b5,A5],[iv,[{[Xf]:"UseFIPS"},ov]],[iv,[{[Xf]:"UseDualStack"},ov]],[iv,[{fn:Bk,argv:[Vk,"supportsDualStack"]},ov]],[iv,[{fn:Bk,argv:[Vk,"supportsFIPS"]},ov]],["stringEquals",[{fn:Bk,argv:[Vk,"name"]},"aws-us-gov"]]],results:[[Ba],[Ba,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Ba,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[x5,Yu],["https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",Yu],[Ba,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://portal.sso.{Region}.amazonaws.com",Yu],["https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}",Yu],[Ba,"FIPS is enabled but this partition does not support FIPS"],["https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}",Yu],[Ba,"DualStack is enabled but this partition does not support DualStack"],["https://portal.sso.{Region}.{PartitionResult#dnsSuffix}",Yu],[Ba,"Invalid Configuration: Missing Region"]]},iTe=2,kr=1e8,sTe=new Int32Array([-1,1,-1,0,13,3,1,4,kr+12,2,5,kr+12,3,8,6,4,7,kr+11,5,kr+9,kr+10,4,11,9,6,10,kr+8,7,kr+6,kr+7,5,12,kr+5,6,kr+4,kr+5,3,kr+1,14,4,kr+2,kr+3]),T5=C5.BinaryDecisionDiagram.from(sTe,iTe,P5.conditions,P5.results)});var w5,Qu,aTe,R5,$5=v(()=>{w5=w(uu()),Qu=w($r());I5();aTe=new Qu.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),R5=i((e,t={})=>aTe.get(e,()=>(0,Qu.decideEndpoint)(T5,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");Qu.customEndpointFunctions.aws=w5.awsEndpointFunctions});var O5,Zn,sv=v(()=>{O5=w(ye()),Zn=class e extends O5.ServiceException{static{i(this,"SSOServiceException")}constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}});var Jf,Yf,Qf,em,Hk=v(()=>{sv();Jf=class e extends Zn{static{i(this,"InvalidRequestException")}name="InvalidRequestException";$fault="client";constructor(t){super({name:"InvalidRequestException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Yf=class e extends Zn{static{i(this,"ResourceNotFoundException")}name="ResourceNotFoundException";$fault="client";constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Qf=class e extends Zn{static{i(this,"TooManyRequestsException")}name="TooManyRequestsException";$fault="client";constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},em=class e extends Zn{static{i(this,"UnauthorizedException")}name="UnauthorizedException";$fault="client";constructor(t){super({name:"UnauthorizedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}}});var cTe,uTe,lTe,dTe,pTe,fTe,mTe,gTe,hTe,yTe,ETe,STe,_Te,vTe,xTe,av,cv,bTe,PTe,uv,CTe,D5,lv,ATe,TTe,ITe,N5,wTe,RTe,$Te,xn,k5,M5,tm,L5,z5,F5,U5,Gk,OTe,DTe,NTe,j5,B5,V5,qk,dv=v(()=>{je();Hk();sv();cTe="AccessTokenType",uTe="GetRoleCredentials",lTe="GetRoleCredentialsRequest",dTe="GetRoleCredentialsResponse",pTe="InvalidRequestException",fTe="RoleCredentials",mTe="ResourceNotFoundException",gTe="SecretAccessKeyType",hTe="SessionTokenType",yTe="TooManyRequestsException",ETe="UnauthorizedException",STe="accountId",_Te="accessKeyId",vTe="accessToken",xTe="account_id",av="client",cv="error",bTe="expiration",PTe="http",uv="httpError",CTe="httpHeader",D5="httpQuery",lv="message",ATe="roleCredentials",TTe="roleName",ITe="role_name",N5="smithy.ts.sdk.synthetic.com.amazonaws.sso",wTe="secretAccessKey",RTe="sessionToken",$Te="x-amz-sso_bearer_token",xn="com.amazonaws.sso",k5=pt.for(N5),M5=[-3,N5,"SSOServiceException",0,[],[]];k5.registerError(M5,Zn);tm=pt.for(xn),L5=[-3,xn,pTe,{[cv]:av,[uv]:400},[lv],[0]];tm.registerError(L5,Jf);z5=[-3,xn,mTe,{[cv]:av,[uv]:404},[lv],[0]];tm.registerError(z5,Yf);F5=[-3,xn,yTe,{[cv]:av,[uv]:429},[lv],[0]];tm.registerError(F5,Qf);U5=[-3,xn,ETe,{[cv]:av,[uv]:401},[lv],[0]];tm.registerError(U5,em);Gk=[k5,tm],OTe=[0,xn,cTe,8,0],DTe=[0,xn,gTe,8,0],NTe=[0,xn,hTe,8,0],j5=[3,xn,lTe,0,[TTe,STe,vTe],[[0,{[D5]:ITe}],[0,{[D5]:xTe}],[()=>OTe,{[CTe]:$Te}]],3],B5=[3,xn,dTe,0,[ATe],[[()=>V5,0]]],V5=[3,xn,fTe,0,[_Te,wTe,RTe,bTe],[0,[()=>DTe,0],[()=>NTe,0],1]],qk=[9,xn,uTe,{[PTe]:["GET","/federation/credentials",200]},()=>j5,()=>B5]});var H5,G5,pv,fv,q5,W5=v(()=>{_r();ui();Ut();H5=w(ye()),G5=w(gn()),pv=w(wt()),fv=w(It());Uk();$5();dv();q5=i(e=>({apiVersion:"2019-06-10",base64Decoder:e?.base64Decoder??pv.fromBase64,base64Encoder:e?.base64Encoder??pv.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??R5,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??y5,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Bt},{schemeId:"smithy.api#noAuth",identityProvider:i(t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Kr}],logger:e?.logger??new H5.NoOpLogger,protocol:e?.protocol??go,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sso",errorTypeRegistries:Gk,version:"2019-06-10",serviceTarget:"SWBPortalService"},serviceId:e?.serviceId??"SSO",urlParser:e?.urlParser??G5.parseUrl,utf8Decoder:e?.utf8Decoder??fv.fromUtf8,utf8Encoder:e?.utf8Encoder??fv.toUtf8}),"getRuntimeConfig")});var mv,ms,Z5,gv,fs,hv,yv,K5,X5,J5,Y5,Q5=v(()=>{Rf();Rt();_r();mv=w(Ma()),ms=w(or()),Z5=w(La()),gv=w(en()),fs=w(Vn()),hv=w(Go()),yv=w(ye()),K5=w(za()),X5=w(Fa()),J5=w(uo());W5();Y5=i(e=>{(0,yv.emitWarningIfUnsupportedVersion)(process.version);let t=(0,X5.resolveDefaultsModeConfig)(e),r=i(()=>t().then(yv.loadConfigsForDefaultMode),"defaultConfigProvider"),o=q5(e);co(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,fs.loadConfig)(fo,n),bodyLengthChecker:e?.bodyLengthChecker??K5.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,mv.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:ls.version}),maxAttempts:e?.maxAttempts??(0,fs.loadConfig)(gv.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,fs.loadConfig)(ms.NODE_REGION_CONFIG_OPTIONS,{...ms.NODE_REGION_CONFIG_FILE_OPTIONS,...n}),requestHandler:hv.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,fs.loadConfig)({...gv.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||J5.DEFAULT_RETRY_MODE,"default")},e),sha256:e?.sha256??Z5.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??hv.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,fs.loadConfig)(ms.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,n),useFipsEndpoint:e?.useFipsEndpoint??(0,fs.loadConfig)(ms.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,n),userAgentAppId:e?.userAgentAppId??(0,fs.loadConfig)(mv.NODE_APP_ID_CONFIG_OPTIONS,n)}},"getRuntimeConfig")});var e9,t9,r9=v(()=>{e9=i(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(n){let s=t.findIndex(a=>a.schemeId===n.schemeId);s===-1?t.push(n):t.splice(s,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){r=n},httpAuthSchemeProvider(){return r},setCredentials(n){o=n},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),t9=i(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig")});var Ev,Sv,_v,n9,o9=v(()=>{Ev=w(li()),Sv=w(Ze()),_v=w(ye());r9();n9=i((e,t)=>{let r=Object.assign((0,Ev.getAwsRegionExtensionConfiguration)(e),(0,_v.getDefaultExtensionConfiguration)(e),(0,Sv.getHttpHandlerExtensionConfiguration)(e),e9(e));return t.forEach(o=>o.configure(r)),Object.assign(e,(0,Ev.resolveAwsRegionExtensionConfiguration)(r),(0,_v.resolveDefaultRuntimeConfig)(r),(0,Sv.resolveHttpHandlerRuntimeConfig)(r),t9(r))},"resolveRuntimeExtensions")});var vv,i9,s9,xv,a9,c9,u9,bv,Wk,rm,Zk=v(()=>{vv=w(ua()),i9=w(la()),s9=w(da()),xv=w(ji()),a9=w(or());Ut();je();c9=w(Aa()),u9=w(Or()),bv=w(en()),Wk=w(ye());Uk();jk();Q5();o9();rm=class extends Wk.Client{static{i(this,"SSOClient")}config;constructor(...[t]){let r=Y5(t||{});super(r),this.initConfig=r;let o=S5(r),n=(0,xv.resolveUserAgentConfig)(o),s=(0,bv.resolveRetryConfig)(n),a=(0,a9.resolveRegionConfig)(s),c=(0,vv.resolveHostHeaderConfig)(a),u=(0,u9.resolveEndpointConfig)(c),l=E5(u),p=n9(l,t?.extensions||[]);this.config=p,this.middlewareStack.use(qo(this.config)),this.middlewareStack.use((0,xv.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,bv.getRetryPlugin)(this.config)),this.middlewareStack.use((0,c9.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,vv.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,i9.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,s9.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use(Fo(this.config,{httpAuthSchemeParametersProvider:h5,identityProviderConfigProvider:i(async f=>new Ln({"aws.auth#sigv4":f.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Uo(this.config))}destroy(){super.destroy()}}});var l9,Kk,nm,Xk=v(()=>{l9=w(Or()),Kk=w(ye());jk();dv();nm=class extends Kk.Command.classBuilder().ep(_5).m(function(t,r,o,n){return[(0,l9.getEndpointPlugin)(o,t.getEndpointParameterInstructions())]}).s("SWBPortalService","GetRoleCredentials",{}).n("SSOClient","GetRoleCredentialsCommand").sc(qk).build(){static{i(this,"GetRoleCredentialsCommand")}}});var d9,kTe,Pv,p9=v(()=>{d9=w(ye());Xk();Zk();kTe={GetRoleCredentialsCommand:nm},Pv=class extends rm{static{i(this,"SSO")}};(0,d9.createAggregatedClient)(kTe,Pv)});var f9=v(()=>{Xk()});var m9=v(()=>{});var g9={};We(g9,{$Command:()=>Kk.Command,GetRoleCredentials$:()=>qk,GetRoleCredentialsCommand:()=>nm,GetRoleCredentialsRequest$:()=>j5,GetRoleCredentialsResponse$:()=>B5,InvalidRequestException:()=>Jf,InvalidRequestException$:()=>L5,ResourceNotFoundException:()=>Yf,ResourceNotFoundException$:()=>z5,RoleCredentials$:()=>V5,SSO:()=>Pv,SSOClient:()=>rm,SSOServiceException:()=>Zn,SSOServiceException$:()=>M5,TooManyRequestsException:()=>Qf,TooManyRequestsException$:()=>F5,UnauthorizedException:()=>em,UnauthorizedException$:()=>U5,__Client:()=>Wk.Client,errorTypeRegistries:()=>Gk});var h9=v(()=>{Zk();p9();f9();dv();Hk();m9();sv()});var E9=z(Jk=>{"use strict";var y9=(h9(),pe(g9));Jk.GetRoleCredentialsCommand=y9.GetRoleCredentialsCommand;Jk.SSOClient=y9.SSOClient});var Yk=z(Av=>{"use strict";var Kn=sr(),Cv=po(),S9=(Rt(),pe(yn)),MTe=g5(),v9=i(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile"),om=!1,_9=i(async({ssoStartUrl:e,ssoSession:t,ssoAccountId:r,ssoRegion:o,ssoRoleName:n,ssoClient:s,clientConfig:a,parentClientConfig:c,callerClientConfig:u,profile:l,filepath:p,configFilepath:f,ignoreCache:y,logger:m})=>{let _,b="To refresh this SSO session run aws sso login with the corresponding profile.";if(t)try{let Br=await MTe.fromSso({profile:l,filepath:p,configFilepath:f,ignoreCache:y})();_={accessToken:Br.token,expiresAt:new Date(Br.expiration).toISOString()}}catch(Br){throw new Kn.CredentialsProviderError(Br.message,{tryNextLink:om,logger:m})}else try{_=await Cv.getSSOTokenFromFile(e)}catch{throw new Kn.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${b}`,{tryNextLink:om,logger:m})}if(new Date(_.expiresAt).getTime()-Date.now()<=0)throw new Kn.CredentialsProviderError(`The SSO session associated with this profile has expired. ${b}`,{tryNextLink:om,logger:m});let{accessToken:A}=_,{SSOClient:I,GetRoleCredentialsCommand:R}=await Promise.resolve().then(function(){return E9()}),j=s||new I(Object.assign({},a??{},{logger:a?.logger??u?.logger??c?.logger,region:a?.region??o,userAgentAppId:a?.userAgentAppId??u?.userAgentAppId??c?.userAgentAppId})),ee;try{ee=await j.send(new R({accountId:r,roleName:n,accessToken:A}))}catch(Br){throw new Kn.CredentialsProviderError(Br,{tryNextLink:om,logger:m})}let{roleCredentials:{accessKeyId:ae,secretAccessKey:fe,sessionToken:_t,expiration:Me,credentialScope:Jt,accountId:$n}={}}=ee;if(!ae||!fe||!_t||!Me)throw new Kn.CredentialsProviderError("SSO returns an invalid temporary credential.",{tryNextLink:om,logger:m});let Io={accessKeyId:ae,secretAccessKey:fe,sessionToken:_t,expiration:new Date(Me),...Jt&&{credentialScope:Jt},...$n&&{accountId:$n}};return t?S9.setCredentialFeature(Io,"CREDENTIALS_SSO","s"):S9.setCredentialFeature(Io,"CREDENTIALS_SSO_LEGACY","u"),Io},"resolveSSOCredentials"),x9=i((e,t)=>{let{sso_start_url:r,sso_account_id:o,sso_region:n,sso_role_name:s}=e;if(!r||!o||!n||!s)throw new Kn.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", "sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(e).join(", ")}
65
+ Reference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`,{tryNextLink:!1,logger:t});return e},"validateSsoProfile"),LTe=i((e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-sso - fromSSO");let{ssoStartUrl:r,ssoAccountId:o,ssoRegion:n,ssoRoleName:s,ssoSession:a}=e,{ssoClient:c}=e,u=Cv.getProfileName({profile:e.profile??t?.profile});if(!r&&!o&&!n&&!s&&!a){let p=(await Cv.parseKnownFiles(e))[u];if(!p)throw new Kn.CredentialsProviderError(`Profile ${u} was not found.`,{logger:e.logger});if(!v9(p))throw new Kn.CredentialsProviderError(`Profile ${u} is not configured with SSO credentials.`,{logger:e.logger});if(p?.sso_session){let I=(await Cv.loadSsoSessionData(e))[p.sso_session],R=` configurations in profile ${u} and sso-session ${p.sso_session}`;if(n&&n!==I.sso_region)throw new Kn.CredentialsProviderError("Conflicting SSO region"+R,{tryNextLink:!1,logger:e.logger});if(r&&r!==I.sso_start_url)throw new Kn.CredentialsProviderError("Conflicting SSO start_url"+R,{tryNextLink:!1,logger:e.logger});p.sso_region=I.sso_region,p.sso_start_url=I.sso_start_url}let{sso_start_url:f,sso_account_id:y,sso_region:m,sso_role_name:_,sso_session:b}=x9(p,e.logger);return _9({ssoStartUrl:f,ssoSession:b,ssoAccountId:y,ssoRegion:m,ssoRoleName:_,ssoClient:c,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:u,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}else{if(!r||!o||!n||!s)throw new Kn.CredentialsProviderError('Incomplete configuration. The fromSSO() argument hash must include "ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"',{tryNextLink:!1,logger:e.logger});return _9({ssoStartUrl:r,ssoSession:a,ssoAccountId:o,ssoRegion:n,ssoRoleName:s,ssoClient:c,clientConfig:e.clientConfig,parentClientConfig:e.parentClientConfig,callerClientConfig:e.callerClientConfig,profile:u,filepath:e.filepath,configFilepath:e.configFilepath,ignoreCache:e.ignoreCache,logger:e.logger})}},"fromSSO");Av.fromSSO=LTe;Av.isSsoProfile=v9;Av.validateSsoProfile=x9});function zTe(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"signin",region:e.region},propertiesExtractor:i((t,r)=>({signingProperties:{config:t,context:r}}),"propertiesExtractor")}}function FTe(e){return{schemeId:"smithy.api#noAuth"}}var im,b9,P9,C9,Qk=v(()=>{_r();im=w(Ft()),b9=i(async(e,t,r)=>({operation:(0,im.getSmithyContext)(t).operation,region:await(0,im.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSigninHttpAuthSchemeParametersProvider");i(zTe,"createAwsAuthSigv4HttpAuthOption");i(FTe,"createSmithyApiNoAuthHttpAuthOption");P9=i(e=>{let t=[];return e.operation==="CreateOAuth2Token"?t.push(FTe(e)):t.push(zTe(e)),t},"defaultSigninHttpAuthSchemeProvider"),C9=i(e=>{let t=Hn(e);return Object.assign(t,{authSchemePreference:(0,im.normalizeProvider)(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var A9,T9,e1=v(()=>{A9=i(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"signin"}),"resolveClientEndpointParameters"),T9={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var O9,sm,Va,Tv,I9,D9,Iv,n1,t1,w9,o1,r1,gs,R9,$9,UTe,ur,jTe,N9,k9=v(()=>{O9=w($r()),sm="ref",Va=-1,Tv=!0,I9="isSet",D9="PartitionResult",Iv="booleanEquals",n1="getAttr",t1="stringEquals",w9={[sm]:"Endpoint"},o1={[sm]:D9},r1={fn:n1,argv:[o1,"name"]},gs={},R9=[{[sm]:"Region"}],$9={conditions:[[I9,[w9]],[I9,R9],["aws.partition",R9,D9],[Iv,[{[sm]:"UseFIPS"},Tv]],[Iv,[{[sm]:"UseDualStack"},Tv]],[Iv,[{fn:n1,argv:[o1,"supportsDualStack"]},Tv]],[Iv,[{fn:n1,argv:[o1,"supportsFIPS"]},Tv]],[t1,[r1,"aws"]],[t1,[r1,"aws-cn"]],[t1,[r1,"aws-us-gov"]]],results:[[Va],[Va,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Va,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[w9,gs],["https://{Region}.signin.aws.amazon.com",gs],["https://{Region}.signin.amazonaws.cn",gs],["https://{Region}.signin.amazonaws-us-gov.com",gs],["https://signin-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",gs],[Va,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://signin-fips.{Region}.{PartitionResult#dnsSuffix}",gs],[Va,"FIPS is enabled but this partition does not support FIPS"],["https://signin.{Region}.{PartitionResult#dualStackDnsSuffix}",gs],[Va,"DualStack is enabled but this partition does not support DualStack"],["https://signin.{Region}.{PartitionResult#dnsSuffix}",gs],[Va,"Invalid Configuration: Missing Region"]]},UTe=2,ur=1e8,jTe=new Int32Array([-1,1,-1,0,15,3,1,4,ur+14,2,5,ur+14,3,11,6,4,10,7,7,ur+4,8,8,ur+5,9,9,ur+6,ur+13,5,ur+11,ur+12,4,13,12,6,ur+9,ur+10,5,14,ur+8,6,ur+7,ur+8,3,ur+1,16,4,ur+2,ur+3]),N9=O9.BinaryDecisionDiagram.from(jTe,UTe,$9.conditions,$9.results)});var M9,el,BTe,L9,z9=v(()=>{M9=w(uu()),el=w($r());k9();BTe=new el.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),L9=i((e,t={})=>BTe.get(e,()=>(0,el.decideEndpoint)(N9,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");el.customEndpointFunctions.aws=M9.awsEndpointFunctions});var F9,Xn,wv=v(()=>{F9=w(ye()),Xn=class e extends F9.ServiceException{static{i(this,"SigninServiceException")}constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}});var am,cm,um,lm,i1=v(()=>{wv();am=class e extends Xn{static{i(this,"AccessDeniedException")}name="AccessDeniedException";$fault="client";error;constructor(t){super({name:"AccessDeniedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},cm=class e extends Xn{static{i(this,"InternalServerException")}name="InternalServerException";$fault="server";error;constructor(t){super({name:"InternalServerException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},um=class e extends Xn{static{i(this,"TooManyRequestsError")}name="TooManyRequestsError";$fault="client";error;constructor(t){super({name:"TooManyRequestsError",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}},lm=class e extends Xn{static{i(this,"ValidationException")}name="ValidationException";$fault="client";error;constructor(t){super({name:"ValidationException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.error=t.error}}});var VTe,HTe,GTe,qTe,WTe,ZTe,KTe,XTe,JTe,YTe,QTe,U9,j9,s1,B9,V9,eIe,hs,H9,G9,tIe,a1,q9,rn,$v,Rv,W9,J9,Z9,K9,rIe,nIe,oIe,X9,bn,Y9,Q9,dm,eX,tX,rX,nX,c1,oX,iX,sX,aX,cX,uX,u1,Ov=v(()=>{je();i1();wv();VTe="AccessDeniedException",HTe="AccessToken",GTe="CreateOAuth2Token",qTe="CreateOAuth2TokenRequest",WTe="CreateOAuth2TokenRequestBody",ZTe="CreateOAuth2TokenResponseBody",KTe="CreateOAuth2TokenResponse",XTe="InternalServerException",JTe="RefreshToken",YTe="TooManyRequestsError",QTe="ValidationException",U9="accessKeyId",j9="accessToken",s1="client",B9="clientId",V9="codeVerifier",eIe="code",hs="error",H9="expiresIn",G9="grantType",tIe="http",a1="httpError",q9="idToken",rn="jsonName",$v="message",Rv="refreshToken",W9="redirectUri",J9="smithy.ts.sdk.synthetic.com.amazonaws.signin",Z9="secretAccessKey",K9="sessionToken",rIe="server",nIe="tokenInput",oIe="tokenOutput",X9="tokenType",bn="com.amazonaws.signin",Y9=pt.for(J9),Q9=[-3,J9,"SigninServiceException",0,[],[]];Y9.registerError(Q9,Xn);dm=pt.for(bn),eX=[-3,bn,VTe,{[hs]:s1},[hs,$v],[0,0],2];dm.registerError(eX,am);tX=[-3,bn,XTe,{[hs]:rIe,[a1]:500},[hs,$v],[0,0],2];dm.registerError(tX,cm);rX=[-3,bn,YTe,{[hs]:s1,[a1]:429},[hs,$v],[0,0],2];dm.registerError(rX,um);nX=[-3,bn,QTe,{[hs]:s1,[a1]:400},[hs,$v],[0,0],2];dm.registerError(nX,lm);c1=[Y9,dm],oX=[0,bn,JTe,8,0],iX=[3,bn,HTe,8,[U9,Z9,K9],[[0,{[rn]:U9}],[0,{[rn]:Z9}],[0,{[rn]:K9}]],3],sX=[3,bn,qTe,0,[nIe],[[()=>aX,16]],1],aX=[3,bn,WTe,0,[B9,G9,eIe,W9,V9,Rv],[[0,{[rn]:B9}],[0,{[rn]:G9}],0,[0,{[rn]:W9}],[0,{[rn]:V9}],[()=>oX,{[rn]:Rv}]],2],cX=[3,bn,KTe,0,[oIe],[[()=>uX,16]],1],uX=[3,bn,ZTe,0,[j9,X9,H9,Rv,q9],[[()=>iX,{[rn]:j9}],[0,{[rn]:X9}],[1,{[rn]:H9}],[()=>oX,{[rn]:Rv}],[0,{[rn]:q9}]],4],u1=[9,bn,GTe,{[tIe]:["POST","/v1/token",200]},()=>sX,()=>cX]});var lX,dX,Dv,Nv,pX,fX=v(()=>{_r();ui();Ut();lX=w(ye()),dX=w(gn()),Dv=w(wt()),Nv=w(It());Qk();z9();Ov();pX=i(e=>({apiVersion:"2023-01-01",base64Decoder:e?.base64Decoder??Dv.fromBase64,base64Encoder:e?.base64Encoder??Dv.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??L9,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??P9,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Bt},{schemeId:"smithy.api#noAuth",identityProvider:i(t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Kr}],logger:e?.logger??new lX.NoOpLogger,protocol:e?.protocol??go,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.signin",errorTypeRegistries:c1,version:"2023-01-01",serviceTarget:"Signin"},serviceId:e?.serviceId??"Signin",urlParser:e?.urlParser??dX.parseUrl,utf8Decoder:e?.utf8Decoder??Nv.fromUtf8,utf8Encoder:e?.utf8Encoder??Nv.toUtf8}),"getRuntimeConfig")});var kv,Es,mX,Mv,ys,Lv,zv,gX,hX,yX,EX,SX=v(()=>{Rf();Rt();_r();kv=w(Ma()),Es=w(or()),mX=w(La()),Mv=w(en()),ys=w(Vn()),Lv=w(Go()),zv=w(ye()),gX=w(za()),hX=w(Fa()),yX=w(uo());fX();EX=i(e=>{(0,zv.emitWarningIfUnsupportedVersion)(process.version);let t=(0,hX.resolveDefaultsModeConfig)(e),r=i(()=>t().then(zv.loadConfigsForDefaultMode),"defaultConfigProvider"),o=pX(e);co(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,ys.loadConfig)(fo,n),bodyLengthChecker:e?.bodyLengthChecker??gX.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,kv.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:ls.version}),maxAttempts:e?.maxAttempts??(0,ys.loadConfig)(Mv.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,ys.loadConfig)(Es.NODE_REGION_CONFIG_OPTIONS,{...Es.NODE_REGION_CONFIG_FILE_OPTIONS,...n}),requestHandler:Lv.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,ys.loadConfig)({...Mv.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||yX.DEFAULT_RETRY_MODE,"default")},e),sha256:e?.sha256??mX.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??Lv.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,ys.loadConfig)(Es.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,n),useFipsEndpoint:e?.useFipsEndpoint??(0,ys.loadConfig)(Es.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,n),userAgentAppId:e?.userAgentAppId??(0,ys.loadConfig)(kv.NODE_APP_ID_CONFIG_OPTIONS,n)}},"getRuntimeConfig")});var _X,vX,xX=v(()=>{_X=i(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(n){let s=t.findIndex(a=>a.schemeId===n.schemeId);s===-1?t.push(n):t.splice(s,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){r=n},httpAuthSchemeProvider(){return r},setCredentials(n){o=n},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),vX=i(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig")});var Fv,Uv,jv,bX,PX=v(()=>{Fv=w(li()),Uv=w(Ze()),jv=w(ye());xX();bX=i((e,t)=>{let r=Object.assign((0,Fv.getAwsRegionExtensionConfiguration)(e),(0,jv.getDefaultExtensionConfiguration)(e),(0,Uv.getHttpHandlerExtensionConfiguration)(e),_X(e));return t.forEach(o=>o.configure(r)),Object.assign(e,(0,Fv.resolveAwsRegionExtensionConfiguration)(r),(0,jv.resolveDefaultRuntimeConfig)(r),(0,Uv.resolveHttpHandlerRuntimeConfig)(r),vX(r))},"resolveRuntimeExtensions")});var Bv,CX,AX,Vv,TX,IX,wX,Hv,l1,pm,d1=v(()=>{Bv=w(ua()),CX=w(la()),AX=w(da()),Vv=w(ji()),TX=w(or());Ut();je();IX=w(Aa()),wX=w(Or()),Hv=w(en()),l1=w(ye());Qk();e1();SX();PX();pm=class extends l1.Client{static{i(this,"SigninClient")}config;constructor(...[t]){let r=EX(t||{});super(r),this.initConfig=r;let o=A9(r),n=(0,Vv.resolveUserAgentConfig)(o),s=(0,Hv.resolveRetryConfig)(n),a=(0,TX.resolveRegionConfig)(s),c=(0,Bv.resolveHostHeaderConfig)(a),u=(0,wX.resolveEndpointConfig)(c),l=C9(u),p=bX(l,t?.extensions||[]);this.config=p,this.middlewareStack.use(qo(this.config)),this.middlewareStack.use((0,Vv.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,Hv.getRetryPlugin)(this.config)),this.middlewareStack.use((0,IX.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,Bv.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,CX.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,AX.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use(Fo(this.config,{httpAuthSchemeParametersProvider:b9,identityProviderConfigProvider:i(async f=>new Ln({"aws.auth#sigv4":f.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Uo(this.config))}destroy(){super.destroy()}}});var RX,p1,fm,f1=v(()=>{RX=w(Or()),p1=w(ye());e1();Ov();fm=class extends p1.Command.classBuilder().ep(T9).m(function(t,r,o,n){return[(0,RX.getEndpointPlugin)(o,t.getEndpointParameterInstructions())]}).s("Signin","CreateOAuth2Token",{}).n("SigninClient","CreateOAuth2TokenCommand").sc(u1).build(){static{i(this,"CreateOAuth2TokenCommand")}}});var $X,iIe,Gv,OX=v(()=>{$X=w(ye());f1();d1();iIe={CreateOAuth2TokenCommand:fm},Gv=class extends pm{static{i(this,"Signin")}};(0,$X.createAggregatedClient)(iIe,Gv)});var DX=v(()=>{f1()});var sIe,NX=v(()=>{sIe={AUTHCODE_EXPIRED:"AUTHCODE_EXPIRED",INSUFFICIENT_PERMISSIONS:"INSUFFICIENT_PERMISSIONS",INVALID_REQUEST:"INVALID_REQUEST",SERVER_ERROR:"server_error",TOKEN_EXPIRED:"TOKEN_EXPIRED",USER_CREDENTIALS_CHANGED:"USER_CREDENTIALS_CHANGED"}});var kX=v(()=>{});var MX={};We(MX,{$Command:()=>p1.Command,AccessDeniedException:()=>am,AccessDeniedException$:()=>eX,AccessToken$:()=>iX,CreateOAuth2Token$:()=>u1,CreateOAuth2TokenCommand:()=>fm,CreateOAuth2TokenRequest$:()=>sX,CreateOAuth2TokenRequestBody$:()=>aX,CreateOAuth2TokenResponse$:()=>cX,CreateOAuth2TokenResponseBody$:()=>uX,InternalServerException:()=>cm,InternalServerException$:()=>tX,OAuth2ErrorCode:()=>sIe,Signin:()=>Gv,SigninClient:()=>pm,SigninServiceException:()=>Xn,SigninServiceException$:()=>Q9,TooManyRequestsError:()=>um,TooManyRequestsError$:()=>rX,ValidationException:()=>lm,ValidationException$:()=>nX,__Client:()=>l1.Client,errorTypeRegistries:()=>c1});var LX=v(()=>{d1();OX();DX();Ov();NX();i1();kX();wv()});var FX=z(zX=>{"use strict";var aIe=(Rt(),pe(yn)),Ss=sr(),h1=po(),cIe=Ze(),qv=require("node:crypto"),m1=require("node:fs"),uIe=require("node:os"),g1=require("node:path"),y1=class e{static{i(this,"LoginCredentialsFetcher")}profileData;init;callerClientConfig;static REFRESH_THRESHOLD=300*1e3;constructor(t,r,o){this.profileData=t,this.init=r,this.callerClientConfig=o}async loadCredentials(){let t=await this.loadToken();if(!t)throw new Ss.CredentialsProviderError(`Failed to load a token for session ${this.loginSession}, please re-authenticate using aws login`,{tryNextLink:!1,logger:this.logger});let r=t.accessToken,o=Date.now();return new Date(r.expiresAt).getTime()-o<=e.REFRESH_THRESHOLD?this.refresh(t):{accessKeyId:r.accessKeyId,secretAccessKey:r.secretAccessKey,sessionToken:r.sessionToken,accountId:r.accountId,expiration:new Date(r.expiresAt)}}get logger(){return this.init?.logger}get loginSession(){return this.profileData.login_session}async refresh(t){let{SigninClient:r,CreateOAuth2TokenCommand:o}=await Promise.resolve().then(()=>(LX(),MX)),{logger:n,userAgentAppId:s}=this.callerClientConfig??{},c=i(f=>f?.metadata?.handlerProtocol==="h2","isH2")(this.callerClientConfig?.requestHandler)?void 0:this.callerClientConfig?.requestHandler,u=this.profileData.region??await this.callerClientConfig?.region?.()??process.env.AWS_REGION,l=new r({credentials:{accessKeyId:"",secretAccessKey:""},region:u,requestHandler:c,logger:n,userAgentAppId:s,...this.init?.clientConfig});this.createDPoPInterceptor(l.middlewareStack);let p={tokenInput:{clientId:t.clientId,refreshToken:t.refreshToken,grantType:"refresh_token"}};try{let f=await l.send(new o(p)),{accessKeyId:y,secretAccessKey:m,sessionToken:_}=f.tokenOutput?.accessToken??{},{refreshToken:b,expiresIn:A}=f.tokenOutput??{};if(!y||!m||!_||!b)throw new Ss.CredentialsProviderError("Token refresh response missing required fields",{logger:this.logger,tryNextLink:!1});let I=(A??900)*1e3,R=new Date(Date.now()+I),j={...t,accessToken:{...t.accessToken,accessKeyId:y,secretAccessKey:m,sessionToken:_,expiresAt:R.toISOString()},refreshToken:b};await this.saveToken(j);let ee=j.accessToken;return{accessKeyId:ee.accessKeyId,secretAccessKey:ee.secretAccessKey,sessionToken:ee.sessionToken,accountId:ee.accountId,expiration:R}}catch(f){if(f.name==="AccessDeniedException"){let y=f.error,m;switch(y){case"TOKEN_EXPIRED":m="Your session has expired. Please reauthenticate.";break;case"USER_CREDENTIALS_CHANGED":m="Unable to refresh credentials because of a change in your password. Please reauthenticate with your new password.";break;case"INSUFFICIENT_PERMISSIONS":m="Unable to refresh credentials due to insufficient permissions. You may be missing permission for the 'CreateOAuth2Token' action.";break;default:m=`Failed to refresh token: ${String(f)}. Please re-authenticate using \`aws login\``}throw new Ss.CredentialsProviderError(m,{logger:this.logger,tryNextLink:!1})}throw new Ss.CredentialsProviderError(`Failed to refresh token: ${String(f)}. Please re-authenticate using aws login`,{logger:this.logger})}}async loadToken(){let t=this.getTokenFilePath();try{let r;try{r=await h1.readFile(t,{ignoreCache:this.init?.ignoreCache})}catch{r=await m1.promises.readFile(t,"utf8")}let o=JSON.parse(r),n=["accessToken","clientId","refreshToken","dpopKey"].filter(s=>!o[s]);if(o.accessToken?.accountId||n.push("accountId"),n.length>0)throw new Ss.CredentialsProviderError(`Token validation failed, missing fields: ${n.join(", ")}`,{logger:this.logger,tryNextLink:!1});return o}catch(r){throw new Ss.CredentialsProviderError(`Failed to load token from ${t}: ${String(r)}`,{logger:this.logger,tryNextLink:!1})}}async saveToken(t){let r=this.getTokenFilePath(),o=g1.dirname(r);try{await m1.promises.mkdir(o,{recursive:!0})}catch{}await m1.promises.writeFile(r,JSON.stringify(t,null,2),"utf8")}getTokenFilePath(){let t=process.env.AWS_LOGIN_CACHE_DIRECTORY??g1.join(uIe.homedir(),".aws","login","cache"),r=Buffer.from(this.loginSession,"utf8"),o=qv.createHash("sha256").update(r).digest("hex");return g1.join(t,`${o}.json`)}derToRawSignature(t){let r=2;if(t[r]!==2)throw new Error("Invalid DER signature");r++;let o=t[r++],n=t.subarray(r,r+o);if(r+=o,t[r]!==2)throw new Error("Invalid DER signature");r++;let s=t[r++],a=t.subarray(r,r+s);n=n[0]===0?n.subarray(1):n,a=a[0]===0?a.subarray(1):a;let c=Buffer.concat([Buffer.alloc(32-n.length),n]),u=Buffer.concat([Buffer.alloc(32-a.length),a]);return Buffer.concat([c,u])}createDPoPInterceptor(t){t.add(r=>async o=>{if(cIe.HttpRequest.isInstance(o.request)){let n=o.request,s=`${n.protocol}//${n.hostname}${n.port?`:${n.port}`:""}${n.path}`,a=await this.generateDpop(n.method,s);n.headers={...n.headers,DPoP:a}}return r(o)},{step:"finalizeRequest",name:"dpopInterceptor",override:!0})}async generateDpop(t="POST",r){let o=await this.loadToken();try{let n=qv.createPrivateKey({key:o.dpopKey,format:"pem",type:"sec1"}),a=qv.createPublicKey(n).export({format:"der",type:"spki"}),c=-1;for(let R=0;R<a.length;R++)if(a[R]===4){c=R;break}let u=a.slice(c+1,c+33),l=a.slice(c+33,c+65),p={alg:"ES256",typ:"dpop+jwt",jwk:{kty:"EC",crv:"P-256",x:u.toString("base64url"),y:l.toString("base64url")}},f={jti:crypto.randomUUID(),htm:t,htu:r,iat:Math.floor(Date.now()/1e3)},y=Buffer.from(JSON.stringify(p)).toString("base64url"),m=Buffer.from(JSON.stringify(f)).toString("base64url"),_=`${y}.${m}`,b=qv.sign("sha256",Buffer.from(_),n),I=this.derToRawSignature(b).toString("base64url");return`${_}.${I}`}catch(n){throw new Ss.CredentialsProviderError(`Failed to generate Dpop proof: ${n instanceof Error?n.message:String(n)}`,{logger:this.logger,tryNextLink:!1})}}},lIe=i(e=>async({callerClientConfig:t}={})=>{e?.logger?.debug?.("@aws-sdk/credential-providers - fromLoginCredentials");let r=await h1.parseKnownFiles(e||{}),o=h1.getProfileName({profile:e?.profile??t?.profile}),n=r[o];if(!n?.login_session)throw new Ss.CredentialsProviderError(`Profile ${o} does not contain login_session.`,{tryNextLink:!0,logger:e?.logger});let a=await new y1(n,e,t).loadCredentials();return aIe.setCredentialFeature(a,"CREDENTIALS_LOGIN","AD")},"fromLoginCredentials");zX.fromLoginCredentials=lIe});var UX=z(E1=>{"use strict";Object.defineProperty(E1,"__esModule",{value:!0});E1.toStream=pIe;var dIe=require("node:stream");function pIe(e){return dIe.Readable.from(Buffer.from(e))}i(pIe,"toStream")});var jX=z(Wv=>{"use strict";var fIe=i(e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6,"validate"),mIe=i(e=>{let t=e.split(":");if(t.length<6||t[0]!=="arn")throw new Error("Malformed ARN");let[,r,o,n,s,...a]=t;return{partition:r,service:o,region:n,accountId:s,resource:a.join(":")}},"parse"),gIe=i(e=>{let{partition:t="aws",service:r,region:o,accountId:n,resource:s}=e;if([r,o,n,s].some(a=>typeof a!="string"))throw new Error("Input ARN object is invalid");return`arn:${t}:${r}:${o}:${n}:${s}`},"build");Wv.build=gIe;Wv.parse=mIe;Wv.validate=fIe});var aJ=z(Xe=>{"use strict";var mm=Ze(),HX=ye(),hIe=UX(),yIe=jX(),EIe=(ui(),pe(O_)),SIe=(je(),pe(Fp)),_Ie=o_(),Zv=ZE(),vIe=(Rt(),pe(yn)),GX=(Ut(),pe(Ea)),xIe=Ft(),bIe="content-length",PIe="x-amz-decoded-content-length";function qX(){return(e,t)=>async r=>{let{request:o}=r;if(mm.HttpRequest.isInstance(o)&&!(bIe in o.headers)&&!(PIe in o.headers)){let n="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof t?.logger?.warn=="function"&&!(t.logger instanceof HX.NoOpLogger)?t.logger.warn(n):console.warn(n)}return e({...r})}}i(qX,"checkContentLengthHeader");var WX={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},CIe=i(e=>({applyToStack:i(t=>{t.add(qX(),WX)},"applyToStack")}),"getCheckContentLengthHeaderPlugin"),ZX=i(e=>(t,r)=>async o=>{let n=await e.region(),s=e.region,a=i(()=>{},"unlock");r.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:i(async()=>r.__s3RegionRedirect,"value")}),a=i(()=>Object.defineProperty(e,"region",{writable:!0,value:s}),"unlock"));try{let c=await t(o);if(r.__s3RegionRedirect){a();let u=await e.region();if(n!==u)throw new Error("Region was not restored following S3 region redirect.")}return c}catch(c){throw a(),c}},"regionRedirectEndpointMiddleware"),KX={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function XX(e){return(t,r)=>async o=>{try{return await t(o)}catch(n){if(e.followRegionRedirects){let s=n?.$metadata?.httpStatusCode,a=r.commandName==="HeadBucketCommand",c=n?.$response?.headers?.["x-amz-bucket-region"];if(c&&(s===301||s===400&&(n?.name==="IllegalLocationConstraintException"||a))){try{let u=c;r.logger?.debug(`Redirecting from ${await e.region()} to ${u}`),r.__s3RegionRedirect=u}catch(u){throw new Error("Region redirect failed: "+u)}return t(o)}}throw n}}}i(XX,"regionRedirectMiddleware");var JX={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},AIe=i(e=>({applyToStack:i(t=>{t.add(XX(e),JX),t.addRelativeTo(ZX(e),KX)},"applyToStack")}),"getRegionRedirectMiddlewarePlugin"),YX=i(e=>(t,r)=>async o=>{let n=await t(o),{response:s}=n;if(mm.HttpResponse.isInstance(s)&&s.headers.expires){s.headers.expiresstring=s.headers.expires;try{HX.parseRfc7231DateTime(s.headers.expires)}catch(a){r.logger?.warn(`AWS SDK Warning for ${r.clientName}::${r.commandName} response parsing (${s.headers.expires}): ${a}`),delete s.headers.expires}}return n},"s3ExpiresMiddleware"),QX={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},TIe=i(e=>({applyToStack:i(t=>{t.addRelativeTo(YX(),QX)},"applyToStack")}),"getS3ExpiresMiddlewarePlugin"),Kv=class e{static{i(this,"S3ExpressIdentityCache")}data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){let r=this.data[t];if(r)return r}set(t,r){return this.data[t]=r,r}delete(t){delete this.data[t]}async purgeExpired(){let t=Date.now();if(!(this.lastPurgeTime+e.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(let r in this.data){let o=this.data[r];if(!o.isRefreshing){let n=await o.identity;n.expiration&&n.expiration.getTime()<t&&delete this.data[r]}}}},tl=class{static{i(this,"S3ExpressIdentityCacheEntry")}_identity;isRefreshing;accessed;constructor(t,r=!1,o=Date.now()){this._identity=t,this.isRefreshing=r,this.accessed=o}get identity(){return this.accessed=Date.now(),this._identity}},Xv=class e{static{i(this,"S3ExpressIdentityProviderImpl")}createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(t,r=new Kv){this.createSessionFn=t,this.cache=r}async getS3ExpressIdentity(t,r){let o=r.Bucket,{cache:n}=this,s=n.get(o);return s?s.identity.then(a=>(a.expiration?.getTime()??0)<Date.now()?n.set(o,new tl(this.getIdentity(o))).identity:((a.expiration?.getTime()??0)<Date.now()+e.REFRESH_WINDOW_MS&&!s.isRefreshing&&(s.isRefreshing=!0,this.getIdentity(o).then(l=>{n.set(o,new tl(Promise.resolve(l)))})),a)):n.set(o,new tl(this.getIdentity(o))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(n=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
66
+ `+n)});let r=await this.createSessionFn(t);if(!r.Credentials?.AccessKeyId||!r.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:r.Credentials.AccessKeyId,secretAccessKey:r.Credentials.SecretAccessKey,sessionToken:r.Credentials.SessionToken,expiration:r.Credentials.Expiration?new Date(r.Credentials.Expiration):void 0}}},IIe="Directory",wIe="S3Express",RIe="sigv4-s3express",S1="X-Amz-S3session-Token",_1=S1.toLowerCase(),$Ie="AWS_S3_DISABLE_EXPRESS_SESSION_AUTH",OIe="s3_disable_express_session_auth",DIe={environmentVariableSelector:i(e=>Zv.booleanSelector(e,$Ie,Zv.SelectorType.ENV),"environmentVariableSelector"),configFileSelector:i(e=>Zv.booleanSelector(e,OIe,Zv.SelectorType.CONFIG),"configFileSelector"),default:!1},v1=class extends _Ie.SignatureV4{static{i(this,"SignatureV4S3Express")}async signWithCredentials(t,r,o){let n=BX(r);t.headers[_1]=r.sessionToken;let s=this;return VX(s,n),s.signRequest(t,o??{})}async presignWithCredentials(t,r,o){let n=BX(r);return delete t.headers[_1],t.headers[S1]=r.sessionToken,t.query=t.query??{},t.query[S1]=r.sessionToken,VX(this,n),this.presign(t,o)}};function BX(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}i(BX,"getCredentialsWithoutSessionToken");function VX(e,t){let r=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),o=e.credentialProvider,n=i(()=>(clearTimeout(r),e.credentialProvider=o,Promise.resolve(t)),"overrideCredentialsProviderOnce");e.credentialProvider=n}i(VX,"setSingleOverride");var eJ=i(e=>(t,r)=>async o=>{if(r.endpointV2){let n=r.endpointV2,s=n.properties?.authSchemes?.[0]?.name===RIe;if((n.properties?.backend===wIe||n.properties?.bucketType===IIe)&&(vIe.setFeature(r,"S3_EXPRESS_BUCKET","J"),r.isS3ExpressBucket=!0),s){let c=o.input.Bucket;if(c){let u=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:c});r.s3ExpressIdentity=u,mm.HttpRequest.isInstance(o.request)&&u.sessionToken&&(o.request.headers[_1]=u.sessionToken)}}}return t(o)},"s3ExpressMiddleware"),tJ={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},NIe=i(e=>({applyToStack:i(t=>{t.add(eJ(e),tJ)},"applyToStack")}),"getS3ExpressPlugin"),kIe=i(async(e,t,r,o)=>{let n=await o.signWithCredentials(r,e,{});if(n.headers["X-Amz-Security-Token"]||n.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return n},"signS3Express"),MIe=i(e=>t=>{throw t},"defaultErrorHandler"),LIe=i((e,t)=>{},"defaultSuccessHandler"),zIe=GX.httpSigningMiddlewareOptions,rJ=i(e=>(t,r)=>async o=>{if(!mm.HttpRequest.isInstance(o.request))return t(o);let s=xIe.getSmithyContext(r).selectedHttpAuthScheme;if(!s)throw new Error("No HttpAuthScheme was selected: unable to sign request");let{httpAuthOption:{signingProperties:a={}},identity:c,signer:u}=s,l;r.s3ExpressIdentity?l=await kIe(r.s3ExpressIdentity,a,o.request,await e.signer()):l=await u.sign(o.request,c,a);let p=await t({...o,request:l}).catch((u.errorHandler||MIe)(a));return(u.successHandler||LIe)(p.response,a),p},"s3ExpressHttpSigningMiddleware"),FIe=i(e=>({applyToStack:i(t=>{t.addRelativeTo(rJ(e),GX.httpSigningMiddlewareOptions)},"applyToStack")}),"getS3ExpressHttpSigningPlugin"),UIe=i((e,{session:t})=>{let[r,o]=t,{forcePathStyle:n,useAccelerateEndpoint:s,disableMultiregionAccessPoints:a,followRegionRedirects:c,s3ExpressIdentityProvider:u,bucketEndpoint:l,expectContinueHeader:p}=e;return Object.assign(e,{forcePathStyle:n??!1,useAccelerateEndpoint:s??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:c??!1,s3ExpressIdentityProvider:u??new Xv(async f=>r().send(new o({Bucket:f}))),bucketEndpoint:l??!1,expectContinueHeader:p??2097152})},"resolveS3Config"),jIe={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},nJ=i(e=>(t,r)=>async o=>{let n=await t(o),{response:s}=n;if(!mm.HttpResponse.isInstance(s))return n;let{statusCode:a,body:c}=s;if(a<200||a>=300)return n;let u=await BIe(c,e);if(s.body=hIe.toStream(u),u.length===0&&jIe[r.commandName]){let p=new Error("S3 aborted request");throw p.$metadata={httpStatusCode:503},p.name="InternalError",p}let l=e.utf8Encoder(u.subarray(u.length-16));return l&&l.endsWith("</Error>")&&(s.statusCode=503),n},"throw200ExceptionsMiddleware"),BIe=i((e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),"collectBody"),oJ={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},VIe=i(e=>({applyToStack:i(t=>{t.addRelativeTo(nJ(e),oJ)},"applyToStack")}),"getThrow200ExceptionsPlugin");function HIe(e){return(t,r)=>async o=>{if(e.bucketEndpoint){let n=r.endpointV2;if(n){let s=o.input.Bucket;if(typeof s=="string")try{let a=new URL(s);r.endpointV2={...n,url:a}}catch(a){let c=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${s} could not be parsed as URL.`;throw r.logger?.constructor?.name==="NoOpLogger"?console.warn(c):r.logger?.warn?.(c),a}}}return t(o)}}i(HIe,"bucketEndpointMiddleware");var GIe={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function iJ({bucketEndpoint:e}){return t=>async r=>{let{input:{Bucket:o}}=r;if(!e&&typeof o=="string"&&!yIe.validate(o)&&o.indexOf("/")>=0){let n=new Error(`Bucket name shouldn't contain '/', received '${o}'`);throw n.name="InvalidBucketName",n}return t({...r})}}i(iJ,"validateBucketNameMiddleware");var sJ={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},qIe=i(e=>({applyToStack:i(t=>{t.add(iJ(e),sJ),t.addRelativeTo(HIe(e),GIe)},"applyToStack")}),"getValidateBucketNamePlugin"),x1=class extends EIe.AwsRestXmlProtocol{static{i(this,"S3RestXmlProtocol")}async serializeRequest(t,r,o){let n=await super.serializeRequest(t,r,o),s=SIe.NormalizedSchema.of(t.input),a=s.getSchema(),c=0,u=a[6]??0;if(r&&typeof r=="object")for(let[l,p]of s.structIterator()){if(++c>u)break;if(l==="Bucket"){if(!r.Bucket&&p.getMergedTraits().httpLabel)throw new Error("No value provided for input HTTP label: Bucket.");break}}return n}};Xe.NODE_DISABLE_S3_EXPRESS_SESSION_AUTH_OPTIONS=DIe;Xe.S3ExpressIdentityCache=Kv;Xe.S3ExpressIdentityCacheEntry=tl;Xe.S3ExpressIdentityProviderImpl=Xv;Xe.S3RestXmlProtocol=x1;Xe.SignatureV4S3Express=v1;Xe.checkContentLengthHeader=qX;Xe.checkContentLengthHeaderMiddlewareOptions=WX;Xe.getCheckContentLengthHeaderPlugin=CIe;Xe.getRegionRedirectMiddlewarePlugin=AIe;Xe.getS3ExpiresMiddlewarePlugin=TIe;Xe.getS3ExpressHttpSigningPlugin=FIe;Xe.getS3ExpressPlugin=NIe;Xe.getThrow200ExceptionsPlugin=VIe;Xe.getValidateBucketNamePlugin=qIe;Xe.regionRedirectEndpointMiddleware=ZX;Xe.regionRedirectEndpointMiddlewareOptions=KX;Xe.regionRedirectMiddleware=XX;Xe.regionRedirectMiddlewareOptions=JX;Xe.resolveS3Config=UIe;Xe.s3ExpiresMiddleware=YX;Xe.s3ExpiresMiddlewareOptions=QX;Xe.s3ExpressHttpSigningMiddleware=rJ;Xe.s3ExpressHttpSigningMiddlewareOptions=zIe;Xe.s3ExpressMiddleware=eJ;Xe.s3ExpressMiddlewareOptions=tJ;Xe.throw200ExceptionsMiddleware=nJ;Xe.throw200ExceptionsMiddlewareOptions=oJ;Xe.validateBucketNameMiddleware=iJ;Xe.validateBucketNameMiddlewareOptions=sJ});var C1=z(P1=>{"use strict";var WIe=aJ(),cJ=o_(),gm={CrtSignerV4:null},b1=class{static{i(this,"SignatureV4MultiRegion")}sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return typeof gm.CrtSignerV4=="function"?"crt":typeof cJ.signatureV4aContainer.SignatureV4a=="function"?"js":"none"}constructor(t){this.sigv4Signer=new WIe.SignatureV4S3Express(t),this.signerOptions=t}async sign(t,r={}){return r.signingRegion==="*"?this.getSigv4aSigner().sign(t,r):this.sigv4Signer.sign(t,r)}async signWithCredentials(t,r,o={}){if(o.signingRegion==="*"){let n=this.getSigv4aSigner(),s=gm.CrtSignerV4;if(s&&n instanceof s)return n.signWithCredentials(t,r,o);throw new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.signWithCredentials(t,r,o)}async presign(t,r={}){if(r.signingRegion==="*"){let o=this.getSigv4aSigner(),n=gm.CrtSignerV4;if(n&&o instanceof n)return o.presign(t,r);throw new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`)}return this.sigv4Signer.presign(t,r)}async presignWithCredentials(t,r,o={}){if(o.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,r,o)}getSigv4aSigner(){if(!this.sigv4aSigner){let t=gm.CrtSignerV4,r=cJ.signatureV4aContainer.SignatureV4a;if(this.signerOptions.runtime==="node"){if(!t&&!r)throw new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt");if(t&&typeof t=="function")this.sigv4aSigner=new t({...this.signerOptions,signingAlgorithm:1});else if(r&&typeof r=="function")this.sigv4aSigner=new r({...this.signerOptions});else throw new Error("Available SigV4a implementation is not a valid constructor. Please ensure you've properly imported @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a.For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt")}else{if(!r||typeof r!="function")throw new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");this.sigv4aSigner=new r({...this.signerOptions})}}return this.sigv4aSigner}};P1.SignatureV4MultiRegion=b1;P1.signatureV4CrtContainer=gm});var yJ,nl,Ha,hm,uJ,EJ,ym,qt,A1,lJ,dJ,pJ,fJ,mJ,Wt,T1,rl,gJ,hJ,ZIe,Je,KIe,SJ,_J=v(()=>{yJ=w($r()),nl="ref",Ha=-1,hm=!0,uJ="isSet",EJ="PartitionResult",ym="booleanEquals",qt="stringEquals",A1="getAttr",lJ="us-east-1",dJ="sigv4",pJ="sts",fJ="https://sts.{Region}.{PartitionResult#dnsSuffix}",mJ={[nl]:"Endpoint"},Wt={[nl]:"Region"},T1={[nl]:EJ},rl={},gJ=[Wt],hJ={conditions:[[uJ,[mJ]],[uJ,gJ],["aws.partition",gJ,EJ],[ym,[{[nl]:"UseFIPS"},hm]],[ym,[{[nl]:"UseDualStack"},hm]],[qt,[Wt,"aws-global"]],[ym,[{[nl]:"UseGlobalEndpoint"},hm]],[qt,[Wt,"eu-central-1"]],[ym,[{fn:A1,argv:[T1,"supportsDualStack"]},hm]],[ym,[{fn:A1,argv:[T1,"supportsFIPS"]},hm]],[qt,[Wt,"ap-south-1"]],[qt,[Wt,"eu-north-1"]],[qt,[Wt,"eu-west-1"]],[qt,[Wt,"eu-west-2"]],[qt,[Wt,"eu-west-3"]],[qt,[Wt,"sa-east-1"]],[qt,[Wt,lJ]],[qt,[Wt,"us-east-2"]],[qt,[Wt,"us-west-2"]],[qt,[Wt,"us-west-1"]],[qt,[Wt,"ca-central-1"]],[qt,[Wt,"ap-southeast-1"]],[qt,[Wt,"ap-northeast-1"]],[qt,[Wt,"ap-southeast-2"]],[qt,[{fn:A1,argv:[T1,"name"]},"aws-us-gov"]]],results:[[Ha],["https://sts.amazonaws.com",{authSchemes:[{name:dJ,signingName:pJ,signingRegion:lJ}]}],[fJ,{authSchemes:[{name:dJ,signingName:pJ,signingRegion:"{Region}"}]}],[Ha,"Invalid Configuration: FIPS and custom endpoint are not supported"],[Ha,"Invalid Configuration: Dualstack and custom endpoint are not supported"],[mJ,rl],["https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",rl],[Ha,"FIPS and DualStack are enabled, but this partition does not support one or both"],["https://sts.{Region}.amazonaws.com",rl],["https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",rl],[Ha,"FIPS is enabled but this partition does not support FIPS"],["https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",rl],[Ha,"DualStack is enabled but this partition does not support DualStack"],[fJ,rl],[Ha,"Invalid Configuration: Missing Region"]]},ZIe=2,Je=1e8,KIe=new Int32Array([-1,1,-1,0,30,3,1,4,Je+14,2,5,Je+14,3,25,6,4,24,7,5,Je+1,8,6,9,Je+13,7,Je+1,10,10,Je+1,11,11,Je+1,12,12,Je+1,13,13,Je+1,14,14,Je+1,15,15,Je+1,16,16,Je+1,17,17,Je+1,18,18,Je+1,19,19,Je+1,20,20,Je+1,21,21,Je+1,22,22,Je+1,23,23,Je+1,Je+2,8,Je+11,Je+12,4,28,26,9,27,Je+10,24,Je+8,Je+9,8,29,Je+7,9,Je+6,Je+7,3,Je+3,31,4,Je+4,Je+5]),SJ=yJ.BinaryDecisionDiagram.from(KIe,ZIe,hJ.conditions,hJ.results)});var vJ,ol,XIe,Jv,I1=v(()=>{vJ=w(uu()),ol=w($r());_J();XIe=new ol.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),Jv=i((e,t={})=>XIe.get(e,()=>(0,ol.decideEndpoint)(SJ,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");ol.customEndpointFunctions.aws=vJ.awsEndpointFunctions});function CJ(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:i((t,r)=>({signingProperties:{config:t,context:r}}),"propertiesExtractor")}}function w1(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"sts",region:e.region},propertiesExtractor:i((t,r)=>({signingProperties:{config:t,context:r}}),"propertiesExtractor")}}function AJ(e){return{schemeId:"smithy.api#noAuth"}}var xJ,bJ,il,JIe,YIe,PJ,QIe,e0e,TJ,t0e,IJ,R1=v(()=>{_r();xJ=w(C1()),bJ=w(Or()),il=w(Ft());I1();Em();JIe=i(e=>async(t,r,o)=>{if(!o)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");let n=await e(t,r,o),s=(0,il.getSmithyContext)(r)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!s)throw new Error(`getEndpointParameterInstructions() is not defined on '${r.commandName}'`);let a=await(0,bJ.resolveParams)(o,{getEndpointParameterInstructions:s},t);return Object.assign(n,a)},"createEndpointRuleSetHttpAuthSchemeParametersProvider"),YIe=i(async(e,t,r)=>({operation:(0,il.getSmithyContext)(t).operation,region:await(0,il.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"_defaultSTSHttpAuthSchemeParametersProvider"),PJ=JIe(YIe);i(CJ,"createAwsAuthSigv4HttpAuthOption");i(w1,"createAwsAuthSigv4aHttpAuthOption");i(AJ,"createSmithyApiNoAuthHttpAuthOption");QIe=i((e,t,r)=>i(n=>{let a=e(n).properties?.authSchemes;if(!a)return t(n);let c=[];for(let u of a){let{name:l,properties:p={},...f}=u,y=l.toLowerCase();l!==y&&console.warn(`HttpAuthScheme has been normalized with lowercasing: '${l}' to '${y}'`);let m;if(y==="sigv4a"){m="aws.auth#sigv4a";let A=a.find(I=>{let R=I.name.toLowerCase();return R!=="sigv4a"&&R.startsWith("sigv4")});if(xJ.SignatureV4MultiRegion.sigv4aDependency()==="none"&&A)continue}else if(y.startsWith("sigv4"))m="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in '@smithy.rules#endpointRuleSet': '${y}'`);let _=r[m];if(!_)throw new Error(`Could not find HttpAuthOption create function for '${m}'`);let b=_(n);b.schemeId=m,b.signingProperties={...b.signingProperties||{},...f,...p},c.push(b)}return c},"endpointRuleSetHttpAuthSchemeProvider"),"createEndpointRuleSetHttpAuthSchemeProvider"),e0e=i(e=>{let t=[];return e.operation==="AssumeRoleWithWebIdentity"?(t.push(AJ(e)),t.push(w1(e))):(t.push(CJ(e)),t.push(w1(e))),t},"_defaultSTSHttpAuthSchemeProvider"),TJ=QIe(Jv,e0e,{"aws.auth#sigv4":CJ,"aws.auth#sigv4a":w1,"smithy.api#noAuth":AJ}),t0e=i(e=>Object.assign(e,{stsClientCtor:So}),"resolveStsAuthConfig"),IJ=i(e=>{let t=t0e(e),r=Hn(t),o=KS(r);return Object.assign(o,{authSchemePreference:(0,il.normalizeProvider)(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig")});var wJ,Yv,Qv=v(()=>{wJ=i(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters"),Yv={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var RJ,Mr,ex=v(()=>{RJ=w(ye()),Mr=class e extends RJ.ServiceException{static{i(this,"STSServiceException")}constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}}});var Sm,_m,vm,xm,bm,Pm,Cm,$1=v(()=>{ex();Sm=class e extends Mr{static{i(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},_m=class e extends Mr{static{i(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},vm=class e extends Mr{static{i(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},xm=class e extends Mr{static{i(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},bm=class e extends Mr{static{i(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Pm=class e extends Mr{static{i(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},Cm=class e extends Mr{static{i(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";$retryable={};constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}}});var r0e,n0e,o0e,i0e,s0e,a0e,O1,c0e,u0e,l0e,d0e,D1,p0e,$J,f0e,m0e,g0e,h0e,y0e,E0e,S0e,_0e,OJ,DJ,v0e,x0e,b0e,P0e,C0e,A0e,NJ,T0e,I0e,kJ,w0e,MJ,R0e,$0e,N1,O0e,D0e,N0e,k0e,M0e,L0e,z0e,F0e,U0e,j0e,Ga,qa,B0e,Wa,Za,Ka,V0e,LJ,H0e,ct,zJ,FJ,_s,UJ,jJ,BJ,VJ,HJ,GJ,qJ,k1,G0e,q0e,M1,WJ,ZJ,KJ,XJ,L1,JJ,YJ,QJ,e7,W0e,Z0e,z1,F1,Am=v(()=>{je();$1();ex();r0e="Arn",n0e="AccessKeyId",o0e="AssumeRole",i0e="AssumedRoleId",s0e="AssumeRoleRequest",a0e="AssumeRoleResponse",O1="AssumedRoleUser",c0e="AssumeRoleWithWebIdentity",u0e="AssumeRoleWithWebIdentityRequest",l0e="AssumeRoleWithWebIdentityResponse",d0e="Audience",D1="Credentials",p0e="ContextAssertion",$J="DurationSeconds",f0e="Expiration",m0e="ExternalId",g0e="ExpiredTokenException",h0e="IDPCommunicationErrorException",y0e="IDPRejectedClaimException",E0e="InvalidIdentityTokenException",S0e="Key",_0e="MalformedPolicyDocumentException",OJ="Policy",DJ="PolicyArns",v0e="ProviderArn",x0e="ProvidedContexts",b0e="ProvidedContextsListType",P0e="ProvidedContext",C0e="PolicyDescriptorType",A0e="ProviderId",NJ="PackedPolicySize",T0e="PackedPolicyTooLargeException",I0e="Provider",kJ="RoleArn",w0e="RegionDisabledException",MJ="RoleSessionName",R0e="SecretAccessKey",$0e="SubjectFromWebIdentityToken",N1="SourceIdentity",O0e="SerialNumber",D0e="SessionToken",N0e="Tags",k0e="TokenCode",M0e="TransitiveTagKeys",L0e="Tag",z0e="Value",F0e="WebIdentityToken",U0e="arn",j0e="accessKeySecretType",Ga="awsQueryError",qa="client",B0e="clientTokenType",Wa="error",Za="httpError",Ka="message",V0e="policyDescriptorListType",LJ="smithy.ts.sdk.synthetic.com.amazonaws.sts",H0e="tagListType",ct="com.amazonaws.sts",zJ=pt.for(LJ),FJ=[-3,LJ,"STSServiceException",0,[],[]];zJ.registerError(FJ,Mr);_s=pt.for(ct),UJ=[-3,ct,g0e,{[Ga]:["ExpiredTokenException",400],[Wa]:qa,[Za]:400},[Ka],[0]];_s.registerError(UJ,Sm);jJ=[-3,ct,h0e,{[Ga]:["IDPCommunicationError",400],[Wa]:qa,[Za]:400},[Ka],[0]];_s.registerError(jJ,Cm);BJ=[-3,ct,y0e,{[Ga]:["IDPRejectedClaim",403],[Wa]:qa,[Za]:403},[Ka],[0]];_s.registerError(BJ,bm);VJ=[-3,ct,E0e,{[Ga]:["InvalidIdentityToken",400],[Wa]:qa,[Za]:400},[Ka],[0]];_s.registerError(VJ,Pm);HJ=[-3,ct,_0e,{[Ga]:["MalformedPolicyDocument",400],[Wa]:qa,[Za]:400},[Ka],[0]];_s.registerError(HJ,_m);GJ=[-3,ct,T0e,{[Ga]:["PackedPolicyTooLarge",400],[Wa]:qa,[Za]:400},[Ka],[0]];_s.registerError(GJ,vm);qJ=[-3,ct,w0e,{[Ga]:["RegionDisabledException",403],[Wa]:qa,[Za]:403},[Ka],[0]];_s.registerError(qJ,xm);k1=[zJ,_s],G0e=[0,ct,j0e,8,0],q0e=[0,ct,B0e,8,0],M1=[3,ct,O1,0,[i0e,r0e],[0,0],2],WJ=[3,ct,s0e,0,[kJ,MJ,DJ,OJ,$J,N0e,M0e,m0e,O0e,k0e,N1,x0e],[0,0,()=>e7,0,1,()=>Z0e,64,0,0,0,0,()=>W0e],2],ZJ=[3,ct,a0e,0,[D1,O1,NJ,N1],[[()=>L1,0],()=>M1,1,0]],KJ=[3,ct,u0e,0,[kJ,MJ,F0e,A0e,DJ,OJ,$J],[0,0,[()=>q0e,0],0,()=>e7,0,1],3],XJ=[3,ct,l0e,0,[D1,$0e,O1,NJ,I0e,d0e,N1],[[()=>L1,0],0,()=>M1,1,0,0,0]],L1=[3,ct,D1,0,[n0e,R0e,D0e,f0e],[0,[()=>G0e,0],0,4],4],JJ=[3,ct,C0e,0,[U0e],[0]],YJ=[3,ct,P0e,0,[v0e,p0e],[0,0]],QJ=[3,ct,L0e,0,[S0e,z0e],[0,0],2],e7=[1,ct,V0e,0,()=>JJ],W0e=[1,ct,b0e,0,()=>YJ],Z0e=[1,ct,H0e,0,()=>QJ],z1=[9,ct,o0e,0,()=>WJ,()=>ZJ],F1=[9,ct,c0e,0,()=>KJ,()=>XJ]});var t7,r7,n7,tx,rx,o7,i7=v(()=>{_r();ui();t7=w(C1());Ut();r7=w(ye()),n7=w(gn()),tx=w(wt()),rx=w(It());R1();I1();Am();o7=i(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??tx.fromBase64,base64Encoder:e?.base64Encoder??tx.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Jv,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??TJ,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new Bt},{schemeId:"aws.auth#sigv4a",identityProvider:i(t=>t.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new ni},{schemeId:"smithy.api#noAuth",identityProvider:i(t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Kr}],logger:e?.logger??new r7.NoOpLogger,protocol:e?.protocol??as,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",errorTypeRegistries:k1,xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",signerConstructor:e?.signerConstructor??t7.SignatureV4MultiRegion,urlParser:e?.urlParser??n7.parseUrl,utf8Decoder:e?.utf8Decoder??rx.fromUtf8,utf8Encoder:e?.utf8Encoder??rx.toUtf8}),"getRuntimeConfig")});var nx,vs,s7,ox,di,ix,sx,a7,c7,u7,l7,d7=v(()=>{Rf();Rt();_r();nx=w(Ma()),vs=w(or());Ut();s7=w(La()),ox=w(en()),di=w(Vn()),ix=w(Go()),sx=w(ye()),a7=w(za()),c7=w(Fa()),u7=w(uo());i7();l7=i(e=>{(0,sx.emitWarningIfUnsupportedVersion)(process.version);let t=(0,c7.resolveDefaultsModeConfig)(e),r=i(()=>t().then(sx.loadConfigsForDefaultMode),"defaultConfigProvider"),o=o7(e);co(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,di.loadConfig)(fo,n),bodyLengthChecker:e?.bodyLengthChecker??a7.calculateBodyLength,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,nx.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:ls.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(s=>s.getIdentityProvider("aws.auth#sigv4")||(async a=>await e.credentialDefaultProvider(a?.__config||{})()),"identityProvider"),signer:new Bt},{schemeId:"aws.auth#sigv4a",identityProvider:i(s=>s.getIdentityProvider("aws.auth#sigv4a"),"identityProvider"),signer:new ni},{schemeId:"smithy.api#noAuth",identityProvider:i(s=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Kr}],maxAttempts:e?.maxAttempts??(0,di.loadConfig)(ox.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,di.loadConfig)(vs.NODE_REGION_CONFIG_OPTIONS,{...vs.NODE_REGION_CONFIG_FILE_OPTIONS,...n}),requestHandler:ix.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,di.loadConfig)({...ox.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||u7.DEFAULT_RETRY_MODE,"default")},e),sha256:e?.sha256??s7.Hash.bind(null,"sha256"),sigv4aSigningRegionSet:e?.sigv4aSigningRegionSet??(0,di.loadConfig)(XS,n),streamCollector:e?.streamCollector??ix.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,di.loadConfig)(vs.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,n),useFipsEndpoint:e?.useFipsEndpoint??(0,di.loadConfig)(vs.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,n),userAgentAppId:e?.userAgentAppId??(0,di.loadConfig)(nx.NODE_APP_ID_CONFIG_OPTIONS,n)}},"getRuntimeConfig")});var p7,f7,m7=v(()=>{p7=i(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(n){let s=t.findIndex(a=>a.schemeId===n.schemeId);s===-1?t.push(n):t.splice(s,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){r=n},httpAuthSchemeProvider(){return r},setCredentials(n){o=n},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),f7=i(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig")});var ax,cx,ux,g7,h7=v(()=>{ax=w(li()),cx=w(Ze()),ux=w(ye());m7();g7=i((e,t)=>{let r=Object.assign((0,ax.getAwsRegionExtensionConfiguration)(e),(0,ux.getDefaultExtensionConfiguration)(e),(0,cx.getHttpHandlerExtensionConfiguration)(e),p7(e));return t.forEach(o=>o.configure(r)),Object.assign(e,(0,ax.resolveAwsRegionExtensionConfiguration)(r),(0,ux.resolveDefaultRuntimeConfig)(r),(0,cx.resolveHttpHandlerRuntimeConfig)(r),f7(r))},"resolveRuntimeExtensions")});var lx,y7,E7,dx,S7,_7,v7,px,U1,So,Em=v(()=>{lx=w(ua()),y7=w(la()),E7=w(da()),dx=w(ji()),S7=w(or());Ut();je();_7=w(Aa()),v7=w(Or()),px=w(en()),U1=w(ye());R1();Qv();d7();h7();So=class extends U1.Client{static{i(this,"STSClient")}config;constructor(...[t]){let r=l7(t||{});super(r),this.initConfig=r;let o=wJ(r),n=(0,dx.resolveUserAgentConfig)(o),s=(0,px.resolveRetryConfig)(n),a=(0,S7.resolveRegionConfig)(s),c=(0,lx.resolveHostHeaderConfig)(a),u=(0,v7.resolveEndpointConfig)(c),l=IJ(u),p=g7(l,t?.extensions||[]);this.config=p,this.middlewareStack.use(qo(this.config)),this.middlewareStack.use((0,dx.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,px.getRetryPlugin)(this.config)),this.middlewareStack.use((0,_7.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,lx.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,y7.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,E7.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use(Fo(this.config,{httpAuthSchemeParametersProvider:PJ,identityProviderConfigProvider:i(async f=>new Ln({"aws.auth#sigv4":f.credentials,"aws.auth#sigv4a":f.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(Uo(this.config))}destroy(){super.destroy()}}});var x7,b7,Xa,fx=v(()=>{x7=w(Or()),b7=w(ye());Qv();Am();Xa=class extends b7.Command.classBuilder().ep(Yv).m(function(t,r,o,n){return[(0,x7.getEndpointPlugin)(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(z1).build(){static{i(this,"AssumeRoleCommand")}}});var P7,C7,Ja,mx=v(()=>{P7=w(Or()),C7=w(ye());Qv();Am();Ja=class extends C7.Command.classBuilder().ep(Yv).m(function(t,r,o,n){return[(0,P7.getEndpointPlugin)(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc(F1).build(){static{i(this,"AssumeRoleWithWebIdentityCommand")}}});var A7,K0e,gx,T7=v(()=>{A7=w(ye());fx();mx();Em();K0e={AssumeRoleCommand:Xa,AssumeRoleWithWebIdentityCommand:Ja},gx=class extends So{static{i(this,"STS")}};(0,A7.createAggregatedClient)(K0e,gx)});var I7=v(()=>{fx();mx()});var w7=v(()=>{});var R7,$7,O7,D7,N7,k7,M7=v(()=>{Rt();R7=w(li());fx();mx();$7=i(e=>{if(typeof e?.Arn=="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}},"getAccountIdFromAssumedRoleUser"),O7=i(async(e,t,r,o={})=>{let n=typeof e=="function"?await e():e,s=typeof t=="function"?await t():t,a="",c=n??s??(a=await(0,R7.stsRegionDefaultResolver)(o)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${s} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),c},"resolveRegion"),D7=i((e,t)=>{let r,o;return async(n,s)=>{if(o=n,!r){let{logger:p=e?.parentClientConfig?.logger,profile:f=e?.parentClientConfig?.profile,region:y,requestHandler:m=e?.parentClientConfig?.requestHandler,credentialProviderLogger:_,userAgentAppId:b=e?.parentClientConfig?.userAgentAppId}=e,A=await O7(y,e?.parentClientConfig?.region,_,{logger:p,profile:f}),I=!k7(m);r=new t({...e,userAgentAppId:b,profile:f,credentialDefaultProvider:i(()=>async()=>o,"credentialDefaultProvider"),region:A,requestHandler:I?m:void 0,logger:p})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new Xa(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);let u=$7(c),l={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...u&&{accountId:u}};return Ui(l,"CREDENTIALS_STS_ASSUME_ROLE","i"),l}},"getDefaultRoleAssumer"),N7=i((e,t)=>{let r;return async o=>{if(!r){let{logger:u=e?.parentClientConfig?.logger,profile:l=e?.parentClientConfig?.profile,region:p,requestHandler:f=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:m=e?.parentClientConfig?.userAgentAppId}=e,_=await O7(p,e?.parentClientConfig?.region,y,{logger:u,profile:l}),b=!k7(f);r=new t({...e,userAgentAppId:m,profile:l,region:_,requestHandler:b?f:void 0,logger:u})}let{Credentials:n,AssumedRoleUser:s}=await r.send(new Ja(o));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`);let a=$7(s),c={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...a&&{accountId:a}};return a&&Ui(c,"RESOLVED_ACCOUNT_ID","T"),Ui(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity"),k7=i(e=>e?.metadata?.handlerProtocol==="h2","isH2")});var L7,z7,F7,X0e,U7=v(()=>{M7();Em();L7=i((e,t)=>t?class extends e{static{i(this,"CustomizableSTSClient")}constructor(o){super(o);for(let n of t)this.middlewareStack.use(n)}}:e,"getCustomizableStsClientCtor"),z7=i((e={},t)=>D7(e,L7(So,t)),"getDefaultRoleAssumer"),F7=i((e={},t)=>N7(e,L7(So,t)),"getDefaultRoleAssumerWithWebIdentity"),X0e=i(e=>t=>e({roleAssumer:z7(t),roleAssumerWithWebIdentity:F7(t),...t}),"decorateDefaultCredentialProvider")});var j1={};We(j1,{AssumeRole$:()=>z1,AssumeRoleCommand:()=>Xa,AssumeRoleRequest$:()=>WJ,AssumeRoleResponse$:()=>ZJ,AssumeRoleWithWebIdentity$:()=>F1,AssumeRoleWithWebIdentityCommand:()=>Ja,AssumeRoleWithWebIdentityRequest$:()=>KJ,AssumeRoleWithWebIdentityResponse$:()=>XJ,AssumedRoleUser$:()=>M1,Credentials$:()=>L1,ExpiredTokenException:()=>Sm,ExpiredTokenException$:()=>UJ,IDPCommunicationErrorException:()=>Cm,IDPCommunicationErrorException$:()=>jJ,IDPRejectedClaimException:()=>bm,IDPRejectedClaimException$:()=>BJ,InvalidIdentityTokenException:()=>Pm,InvalidIdentityTokenException$:()=>VJ,MalformedPolicyDocumentException:()=>_m,MalformedPolicyDocumentException$:()=>HJ,PackedPolicyTooLargeException:()=>vm,PackedPolicyTooLargeException$:()=>GJ,PolicyDescriptorType$:()=>JJ,ProvidedContext$:()=>YJ,RegionDisabledException:()=>xm,RegionDisabledException$:()=>qJ,STS:()=>gx,STSClient:()=>So,STSServiceException:()=>Mr,STSServiceException$:()=>FJ,Tag$:()=>QJ,__Client:()=>U1.Client,decorateDefaultCredentialProvider:()=>X0e,errorTypeRegistries:()=>k1,getDefaultRoleAssumer:()=>z7,getDefaultRoleAssumerWithWebIdentity:()=>F7});var B1=v(()=>{Em();T7();I7();Am();$1();w7();U7();ex()});var G1=z(j7=>{"use strict";var H1=po(),V1=sr(),J0e=require("node:child_process"),Y0e=require("node:util"),Q0e=(Rt(),pe(yn)),ewe=i((e,t,r)=>{if(t.Version!==1)throw Error(`Profile ${e} credential_process did not return Version 1.`);if(t.AccessKeyId===void 0||t.SecretAccessKey===void 0)throw Error(`Profile ${e} credential_process returned invalid credentials.`);if(t.Expiration){let s=new Date;if(new Date(t.Expiration)<s)throw Error(`Profile ${e} credential_process returned expired credentials.`)}let o=t.AccountId;!o&&r?.[e]?.aws_account_id&&(o=r[e].aws_account_id);let n={accessKeyId:t.AccessKeyId,secretAccessKey:t.SecretAccessKey,...t.SessionToken&&{sessionToken:t.SessionToken},...t.Expiration&&{expiration:new Date(t.Expiration)},...t.CredentialScope&&{credentialScope:t.CredentialScope},...o&&{accountId:o}};return Q0e.setCredentialFeature(n,"CREDENTIALS_PROCESS","w"),n},"getValidatedProcessCredentials"),twe=i(async(e,t,r)=>{let o=t[e];if(t[e]){let n=o.credential_process;if(n!==void 0){let s=Y0e.promisify(H1.externalDataInterceptor?.getTokenRecord?.().exec??J0e.exec);try{let{stdout:a}=await s(n),c;try{c=JSON.parse(a.trim())}catch{throw Error(`Profile ${e} credential_process returned invalid JSON.`)}return ewe(e,c,t)}catch(a){throw new V1.CredentialsProviderError(a.message,{logger:r})}}else throw new V1.CredentialsProviderError(`Profile ${e} did not contain credential_process.`,{logger:r})}else throw new V1.CredentialsProviderError(`Profile ${e} could not be found in shared credentials file.`,{logger:r})},"resolveProcessCredentials"),rwe=i((e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-process - fromProcess");let r=await H1.parseKnownFiles(e);return twe(H1.getProfileName({profile:e.profile??t?.profile}),r,e.logger)},"fromProcess");j7.fromProcess=rwe});var q1=z(_o=>{"use strict";var nwe=_o&&_o.__createBinding||(Object.create?(function(e,t,r,o){o===void 0&&(o=r);var n=Object.getOwnPropertyDescriptor(t,r);(!n||("get"in n?!t.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:i(function(){return t[r]},"get")}),Object.defineProperty(e,o,n)}):(function(e,t,r,o){o===void 0&&(o=r),e[o]=t[r]})),owe=_o&&_o.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),iwe=_o&&_o.__importStar||(function(){var e=i(function(t){return e=Object.getOwnPropertyNames||function(r){var o=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(o[o.length]=n);return o},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var r={};if(t!=null)for(var o=e(t),n=0;n<o.length;n++)o[n]!=="default"&&nwe(r,t,o[n]);return owe(r,t),r}})();Object.defineProperty(_o,"__esModule",{value:!0});_o.fromWebToken=void 0;var swe=i(e=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromWebToken");let{roleArn:r,roleSessionName:o,webIdentityToken:n,providerId:s,policyArns:a,policy:c,durationSeconds:u}=e,{roleAssumerWithWebIdentity:l}=e;if(!l){let{getDefaultRoleAssumerWithWebIdentity:p}=await Promise.resolve().then(()=>iwe((B1(),pe(j1))));l=p({...e.clientConfig,credentialProviderLogger:e.logger,parentClientConfig:{...t?.callerClientConfig,...e.parentClientConfig}},e.clientPlugins)}return l({RoleArn:r,RoleSessionName:o??`aws-sdk-js-session-${Date.now()}`,WebIdentityToken:n,ProviderId:s,PolicyArns:a,Policy:c,DurationSeconds:u})},"fromWebToken");_o.fromWebToken=swe});var V7=z(hx=>{"use strict";Object.defineProperty(hx,"__esModule",{value:!0});hx.fromTokenFile=void 0;var awe=(Rt(),pe(yn)),cwe=sr(),uwe=po(),lwe=require("node:fs"),dwe=q1(),B7="AWS_WEB_IDENTITY_TOKEN_FILE",pwe="AWS_ROLE_ARN",fwe="AWS_ROLE_SESSION_NAME",mwe=i((e={})=>async t=>{e.logger?.debug("@aws-sdk/credential-provider-web-identity - fromTokenFile");let r=e?.webIdentityTokenFile??process.env[B7],o=e?.roleArn??process.env[pwe],n=e?.roleSessionName??process.env[fwe];if(!r||!o)throw new cwe.CredentialsProviderError("Web identity configuration not specified",{logger:e.logger});let s=await(0,dwe.fromWebToken)({...e,webIdentityToken:uwe.externalDataInterceptor?.getTokenRecord?.()[r]??(0,lwe.readFileSync)(r,{encoding:"ascii"}),roleArn:o,roleSessionName:n})(t);return r===process.env[B7]&&(0,awe.setCredentialFeature)(s,"CREDENTIALS_ENV_VARS_STS_WEB_ID_TOKEN","h"),s},"fromTokenFile");hx.fromTokenFile=mwe});var W1=z(pi=>{"use strict";var yx=V7(),Ex=q1();Object.prototype.hasOwnProperty.call(yx,"__proto__")&&!Object.prototype.hasOwnProperty.call(pi,"__proto__")&&Object.defineProperty(pi,"__proto__",{enumerable:!0,value:yx.__proto__});Object.keys(yx).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(pi,e)&&(pi[e]=yx[e])});Object.prototype.hasOwnProperty.call(Ex,"__proto__")&&!Object.prototype.hasOwnProperty.call(pi,"__proto__")&&Object.defineProperty(pi,"__proto__",{enumerable:!0,value:Ex.__proto__});Object.keys(Ex).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(pi,e)&&(pi[e]=Ex[e])})});var K7=z(Z7=>{"use strict";var K1=po(),Tm=sr(),fi=(Rt(),pe(yn)),gwe=FX(),hwe=i((e,t,r)=>{let o={EcsContainer:i(async n=>{let{fromHttp:s}=await Promise.resolve().then(()=>w(xk())),{fromContainerMetadata:a}=await Promise.resolve().then(()=>w(If()));return r?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer"),async()=>Tm.chain(s(n??{}),a(n))().then(Z1)},"EcsContainer"),Ec2InstanceMetadata:i(async n=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");let{fromInstanceMetadata:s}=await Promise.resolve().then(()=>w(If()));return async()=>s(n)().then(Z1)},"Ec2InstanceMetadata"),Environment:i(async n=>{r?.debug("@aws-sdk/credential-provider-ini - credential_source is Environment");let{fromEnv:s}=await Promise.resolve().then(()=>w(mk()));return async()=>s(n)().then(Z1)},"Environment")};if(e in o)return o[e];throw new Tm.CredentialsProviderError(`Unsupported credential source in profile ${t}. Got ${e}, expected EcsContainer or Ec2InstanceMetadata or Environment.`,{logger:r})},"resolveCredentialSource"),Z1=i(e=>fi.setCredentialFeature(e,"CREDENTIALS_PROFILE_NAMED_PROVIDER","p"),"setNamedProvider"),ywe=i((e,{profile:t="default",logger:r}={})=>!!e&&typeof e=="object"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1&&["undefined","string"].indexOf(typeof e.external_id)>-1&&["undefined","string"].indexOf(typeof e.mfa_serial)>-1&&(Ewe(e,{profile:t,logger:r})||Swe(e,{profile:t,logger:r})),"isAssumeRoleProfile"),Ewe=i((e,{profile:t,logger:r})=>{let o=typeof e.source_profile=="string"&&typeof e.credential_source>"u";return o&&r?.debug?.(` ${t} isAssumeRoleWithSourceProfile source_profile=${e.source_profile}`),o},"isAssumeRoleWithSourceProfile"),Swe=i((e,{profile:t,logger:r})=>{let o=typeof e.credential_source=="string"&&typeof e.source_profile>"u";return o&&r?.debug?.(` ${t} isCredentialSourceProfile credential_source=${e.credential_source}`),o},"isCredentialSourceProfile"),_we=i(async(e,t,r,o,n={},s)=>{r.logger?.debug("@aws-sdk/credential-provider-ini - resolveAssumeRoleCredentials (STS)");let a=t[e],{source_profile:c,region:u}=a;if(!r.roleAssumer){let{getDefaultRoleAssumer:p}=await Promise.resolve().then(()=>(B1(),j1));r.roleAssumer=p({...r.clientConfig,credentialProviderLogger:r.logger,parentClientConfig:{...o,...r?.parentClientConfig,region:u??r?.parentClientConfig?.region??o?.region}},r.clientPlugins)}if(c&&c in n)throw new Tm.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile ${K1.getProfileName(r)}. Profiles visited: `+Object.keys(n).join(", "),{logger:r.logger});r.logger?.debug(`@aws-sdk/credential-provider-ini - finding credential resolver using ${c?`source_profile=[${c}]`:`profile=[${e}]`}`);let l=c?s(c,t,r,o,{...n,[c]:!0},H7(t[c]??{})):(await hwe(a.credential_source,e,r.logger)(r))();if(H7(a))return l.then(p=>fi.setCredentialFeature(p,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"));{let p={RoleArn:a.role_arn,RoleSessionName:a.role_session_name||`aws-sdk-js-${Date.now()}`,ExternalId:a.external_id,DurationSeconds:parseInt(a.duration_seconds||"3600",10)},{mfa_serial:f}=a;if(f){if(!r.mfaCodeProvider)throw new Tm.CredentialsProviderError(`Profile ${e} requires multi-factor authentication, but no MFA code callback was provided.`,{logger:r.logger,tryNextLink:!1});p.SerialNumber=f,p.TokenCode=await r.mfaCodeProvider(f)}let y=await l;return r.roleAssumer(y,p).then(m=>fi.setCredentialFeature(m,"CREDENTIALS_PROFILE_SOURCE_PROFILE","o"))}},"resolveAssumeRoleCredentials"),H7=i(e=>!e.role_arn&&!!e.credential_source,"isCredentialSourceWithoutRoleArn"),vwe=i(e=>!!(e&&e.login_session),"isLoginProfile"),xwe=i(async(e,t,r)=>{let o=await gwe.fromLoginCredentials({...t,profile:e})({callerClientConfig:r});return fi.setCredentialFeature(o,"CREDENTIALS_PROFILE_LOGIN","AC")},"resolveLoginCredentials"),bwe=i(e=>!!e&&typeof e=="object"&&typeof e.credential_process=="string","isProcessProfile"),Pwe=i(async(e,t)=>Promise.resolve().then(()=>w(G1())).then(({fromProcess:r})=>r({...e,profile:t})().then(o=>fi.setCredentialFeature(o,"CREDENTIALS_PROFILE_PROCESS","v"))),"resolveProcessCredentials"),Cwe=i(async(e,t,r={},o)=>{let{fromSSO:n}=await Promise.resolve().then(()=>w(Yk()));return n({profile:e,logger:r.logger,parentClientConfig:r.parentClientConfig,clientConfig:r.clientConfig})({callerClientConfig:o}).then(s=>t.sso_session?fi.setCredentialFeature(s,"CREDENTIALS_PROFILE_SSO","r"):fi.setCredentialFeature(s,"CREDENTIALS_PROFILE_SSO_LEGACY","t"))},"resolveSsoCredentials"),Awe=i(e=>e&&(typeof e.sso_start_url=="string"||typeof e.sso_account_id=="string"||typeof e.sso_session=="string"||typeof e.sso_region=="string"||typeof e.sso_role_name=="string"),"isSsoProfile"),G7=i(e=>!!e&&typeof e=="object"&&typeof e.aws_access_key_id=="string"&&typeof e.aws_secret_access_key=="string"&&["undefined","string"].indexOf(typeof e.aws_session_token)>-1&&["undefined","string"].indexOf(typeof e.aws_account_id)>-1,"isStaticCredsProfile"),q7=i(async(e,t)=>{t?.logger?.debug("@aws-sdk/credential-provider-ini - resolveStaticCredentials");let r={accessKeyId:e.aws_access_key_id,secretAccessKey:e.aws_secret_access_key,sessionToken:e.aws_session_token,...e.aws_credential_scope&&{credentialScope:e.aws_credential_scope},...e.aws_account_id&&{accountId:e.aws_account_id}};return fi.setCredentialFeature(r,"CREDENTIALS_PROFILE","n")},"resolveStaticCredentials"),Twe=i(e=>!!e&&typeof e=="object"&&typeof e.web_identity_token_file=="string"&&typeof e.role_arn=="string"&&["undefined","string"].indexOf(typeof e.role_session_name)>-1,"isWebIdentityProfile"),Iwe=i(async(e,t,r)=>Promise.resolve().then(()=>w(W1())).then(({fromTokenFile:o})=>o({webIdentityTokenFile:e.web_identity_token_file,roleArn:e.role_arn,roleSessionName:e.role_session_name,roleAssumerWithWebIdentity:t.roleAssumerWithWebIdentity,logger:t.logger,parentClientConfig:t.parentClientConfig})({callerClientConfig:r}).then(n=>fi.setCredentialFeature(n,"CREDENTIALS_PROFILE_STS_WEB_ID_TOKEN","q"))),"resolveWebIdentityCredentials"),W7=i(async(e,t,r,o,n={},s=!1)=>{let a=t[e];if(Object.keys(n).length>0&&G7(a))return q7(a,r);if(s||ywe(a,{profile:e,logger:r.logger}))return _we(e,t,r,o,n,W7);if(G7(a))return q7(a,r);if(Twe(a))return Iwe(a,r,o);if(bwe(a))return Pwe(r,e);if(Awe(a))return await Cwe(e,a,r,o);if(vwe(a))return xwe(e,r,o);throw new Tm.CredentialsProviderError(`Could not resolve credentials using profile: [${e}] in configuration/credentials file(s).`,{logger:r.logger})},"resolveProfileData"),wwe=i((e={})=>async({callerClientConfig:t}={})=>{e.logger?.debug("@aws-sdk/credential-provider-ini - fromIni");let r=await K1.parseKnownFiles(e);return W7(K1.getProfileName({profile:e.profile??t?.profile}),r,e,t)},"fromIni");Z7.fromIni=wwe});var J1=z(Sx=>{"use strict";var X1=mk(),Im=sr(),Rwe=po(),X7="AWS_EC2_METADATA_DISABLED",$we=i(async e=>{let{ENV_CMDS_FULL_URI:t,ENV_CMDS_RELATIVE_URI:r,fromContainerMetadata:o,fromInstanceMetadata:n}=await Promise.resolve().then(()=>w(If()));if(process.env[r]||process.env[t]){e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromHttp/fromContainerMetadata");let{fromHttp:s}=await Promise.resolve().then(()=>w(xk()));return Im.chain(s(e),o(e))}return process.env[X7]&&process.env[X7]!=="false"?async()=>{throw new Im.CredentialsProviderError("EC2 Instance Metadata Service access disabled",{logger:e.logger})}:(e.logger?.debug("@aws-sdk/credential-provider-node - remoteProvider::fromInstanceMetadata"),n(e))},"remoteProvider");function Owe(e,t){let r=Dwe(e),o,n,s,a=i(async c=>{if(c?.forceRefresh)return await r(c);if(s?.expiration&&s?.expiration?.getTime()<Date.now()&&(s=void 0),o)await o;else if(!s||t?.(s))if(s)n||(n=r(c).then(u=>{s=u}).finally(()=>{n=void 0}));else return o=r(c).then(u=>{s=u}).finally(()=>{o=void 0}),a(c);return s},"provider");return a}i(Owe,"memoizeChain");var Dwe=i(e=>async t=>{let r;for(let o of e)try{return await o(t)}catch(n){if(r=n,n?.tryNextLink)continue;throw n}throw r},"internalCreateChain"),J7=!1,Nwe=i((e={})=>Owe([async()=>{if(e.profile??process.env[Rwe.ENV_PROFILE])throw process.env[X1.ENV_KEY]&&process.env[X1.ENV_SECRET]&&(J7||((e.logger?.warn&&e.logger?.constructor?.name!=="NoOpLogger"?e.logger.warn.bind(e.logger):console.warn)(`@aws-sdk/credential-provider-node - defaultProvider::fromEnv WARNING:
67
+ Multiple credential sources detected:
68
+ Both AWS_PROFILE and the pair AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY static credentials are set.
69
+ This SDK will proceed with the AWS_PROFILE value.
70
+
71
+ However, a future version may change this behavior to prefer the ENV static credentials.
72
+ Please ensure that your environment only sets either the AWS_PROFILE or the
73
+ AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY pair.
74
+ `),J7=!0)),new Im.CredentialsProviderError("AWS_PROFILE is set, skipping fromEnv provider.",{logger:e.logger,tryNextLink:!0});return e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromEnv"),X1.fromEnv(e)()},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromSSO");let{ssoStartUrl:r,ssoAccountId:o,ssoRegion:n,ssoRoleName:s,ssoSession:a}=e;if(!r&&!o&&!n&&!s&&!a)throw new Im.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).",{logger:e.logger});let{fromSSO:c}=await Promise.resolve().then(()=>w(Yk()));return c(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");let{fromIni:r}=await Promise.resolve().then(()=>w(K7()));return r(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");let{fromProcess:r}=await Promise.resolve().then(()=>w(G1()));return r(e)(t)},async t=>{e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");let{fromTokenFile:r}=await Promise.resolve().then(()=>w(W1()));return r(e)(t)},async()=>(e.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::remoteProvider"),(await $we(e))()),async()=>{throw new Im.CredentialsProviderError("Could not load credentials from any providers",{tryNextLink:!1,logger:e.logger})}],Y7),"defaultProvider"),kwe=i(e=>e?.expiration!==void 0,"credentialsWillNeedRefresh"),Y7=i(e=>e?.expiration!==void 0&&e.expiration.getTime()-Date.now()<3e5,"credentialsTreatedAsExpired");Sx.credentialsTreatedAsExpired=Y7;Sx.credentialsWillNeedRefresh=kwe;Sx.defaultProvider=Nwe});var tY=z((M_t,eY)=>{var _x=Object.defineProperty,Mwe=Object.getOwnPropertyDescriptor,Lwe=Object.getOwnPropertyNames,zwe=Object.prototype.hasOwnProperty,Fwe=i((e,t)=>_x(e,"name",{value:t,configurable:!0}),"__name"),Uwe=i((e,t)=>{for(var r in t)_x(e,r,{get:t[r],enumerable:!0})},"__export"),jwe=i((e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Lwe(t))!zwe.call(e,n)&&n!==r&&_x(e,n,{get:i(()=>t[n],"get"),enumerable:!(o=Mwe(t,n))||o.enumerable});return e},"__copyProps"),Bwe=i(e=>jwe(_x({},"__esModule",{value:!0}),e),"__toCommonJS"),Q7={};Uwe(Q7,{isArrayBuffer:i(()=>Vwe,"isArrayBuffer")});eY.exports=Bwe(Q7);var Vwe=Fwe(e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]","isArrayBuffer")});var iY=z((z_t,oY)=>{var vx=Object.defineProperty,Hwe=Object.getOwnPropertyDescriptor,Gwe=Object.getOwnPropertyNames,qwe=Object.prototype.hasOwnProperty,rY=i((e,t)=>vx(e,"name",{value:t,configurable:!0}),"__name"),Wwe=i((e,t)=>{for(var r in t)vx(e,r,{get:t[r],enumerable:!0})},"__export"),Zwe=i((e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Gwe(t))!qwe.call(e,n)&&n!==r&&vx(e,n,{get:i(()=>t[n],"get"),enumerable:!(o=Hwe(t,n))||o.enumerable});return e},"__copyProps"),Kwe=i(e=>Zwe(vx({},"__esModule",{value:!0}),e),"__toCommonJS"),nY={};Wwe(nY,{fromArrayBuffer:i(()=>Jwe,"fromArrayBuffer"),fromString:i(()=>Ywe,"fromString")});oY.exports=Kwe(nY);var Xwe=tY(),Y1=require("buffer"),Jwe=rY((e,t=0,r=e.byteLength-t)=>{if(!(0,Xwe.isArrayBuffer)(e))throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof e} (${e})`);return Y1.Buffer.from(e,t,r)},"fromArrayBuffer"),Ywe=rY((e,t)=>{if(typeof e!="string")throw new TypeError(`The "input" argument must be of type string. Received type ${typeof e} (${e})`);return t?Y1.Buffer.from(e,t):Y1.Buffer.from(e)},"fromString")});var lY=z((U_t,uY)=>{var xx=Object.defineProperty,Qwe=Object.getOwnPropertyDescriptor,eRe=Object.getOwnPropertyNames,tRe=Object.prototype.hasOwnProperty,Q1=i((e,t)=>xx(e,"name",{value:t,configurable:!0}),"__name"),rRe=i((e,t)=>{for(var r in t)xx(e,r,{get:t[r],enumerable:!0})},"__export"),nRe=i((e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of eRe(t))!tRe.call(e,n)&&n!==r&&xx(e,n,{get:i(()=>t[n],"get"),enumerable:!(o=Qwe(t,n))||o.enumerable});return e},"__copyProps"),oRe=i(e=>nRe(xx({},"__esModule",{value:!0}),e),"__toCommonJS"),sY={};rRe(sY,{fromUtf8:i(()=>cY,"fromUtf8"),toUint8Array:i(()=>iRe,"toUint8Array"),toUtf8:i(()=>sRe,"toUtf8")});uY.exports=oRe(sY);var aY=iY(),cY=Q1(e=>{let t=(0,aY.fromString)(e,"utf8");return new Uint8Array(t.buffer,t.byteOffset,t.byteLength/Uint8Array.BYTES_PER_ELEMENT)},"fromUtf8"),iRe=Q1(e=>typeof e=="string"?cY(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),"toUint8Array"),sRe=Q1(e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return(0,aY.fromArrayBuffer)(e.buffer,e.byteOffset,e.byteLength).toString("utf8")},"toUtf8")});var dY=z(bx=>{"use strict";Object.defineProperty(bx,"__esModule",{value:!0});bx.convertToBuffer=void 0;var aRe=lY(),cRe=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:aRe.fromUtf8;function uRe(e){return e instanceof Uint8Array?e:typeof e=="string"?cRe(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}i(uRe,"convertToBuffer");bx.convertToBuffer=uRe});var pY=z(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0});Px.isEmptyData=void 0;function lRe(e){return typeof e=="string"?e.length===0:e.byteLength===0}i(lRe,"isEmptyData");Px.isEmptyData=lRe});var fY=z(Cx=>{"use strict";Object.defineProperty(Cx,"__esModule",{value:!0});Cx.numToUint8=void 0;function dRe(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}i(dRe,"numToUint8");Cx.numToUint8=dRe});var mY=z(Ax=>{"use strict";Object.defineProperty(Ax,"__esModule",{value:!0});Ax.uint32ArrayFrom=void 0;function pRe(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),r=0;r<e.length;)t[r]=e[r],r+=1;return t}return Uint32Array.from(e)}i(pRe,"uint32ArrayFrom");Ax.uint32ArrayFrom=pRe});var Tx=z(vo=>{"use strict";Object.defineProperty(vo,"__esModule",{value:!0});vo.uint32ArrayFrom=vo.numToUint8=vo.isEmptyData=vo.convertToBuffer=void 0;var fRe=dY();Object.defineProperty(vo,"convertToBuffer",{enumerable:!0,get:i(function(){return fRe.convertToBuffer},"get")});var mRe=pY();Object.defineProperty(vo,"isEmptyData",{enumerable:!0,get:i(function(){return mRe.isEmptyData},"get")});var gRe=fY();Object.defineProperty(vo,"numToUint8",{enumerable:!0,get:i(function(){return gRe.numToUint8},"get")});var hRe=mY();Object.defineProperty(vo,"uint32ArrayFrom",{enumerable:!0,get:i(function(){return hRe.uint32ArrayFrom},"get")})});var yY=z(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.AwsCrc32=void 0;var gY=(Zo(),pe(Wo)),eM=Tx(),hY=tM(),yRe=(function(){function e(){this.crc32=new hY.Crc32}return i(e,"AwsCrc32"),e.prototype.update=function(t){(0,eM.isEmptyData)(t)||this.crc32.update((0,eM.convertToBuffer)(t))},e.prototype.digest=function(){return gY.__awaiter(this,void 0,void 0,function(){return gY.__generator(this,function(t){return[2,(0,eM.numToUint8)(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new hY.Crc32},e})();Ix.AwsCrc32=yRe});var tM=z(xs=>{"use strict";Object.defineProperty(xs,"__esModule",{value:!0});xs.AwsCrc32=xs.Crc32=xs.crc32=void 0;var ERe=(Zo(),pe(Wo)),SRe=Tx();function _Re(e){return new EY().update(e).digest()}i(_Re,"crc32");xs.crc32=_Re;var EY=(function(){function e(){this.checksum=4294967295}return i(e,"Crc32"),e.prototype.update=function(t){var r,o;try{for(var n=ERe.__values(t),s=n.next();!s.done;s=n.next()){var a=s.value;this.checksum=this.checksum>>>8^xRe[(this.checksum^a)&255]}}catch(c){r={error:c}}finally{try{s&&!s.done&&(o=n.return)&&o.call(n)}finally{if(r)throw r.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e})();xs.Crc32=EY;var vRe=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],xRe=(0,SRe.uint32ArrayFrom)(vRe),bRe=yY();Object.defineProperty(xs,"AwsCrc32",{enumerable:!0,get:i(function(){return bRe.AwsCrc32},"get")})});var PY=z(Ps=>{"use strict";var xY=tM(),Ya=Np(),sl=class e{static{i(this,"Int64")}bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let o=7,n=Math.abs(Math.round(t));o>-1&&n>0;o--,n/=256)r[o]=n;return t<0&&SY(r),new e(r)}valueOf(){let t=this.bytes.slice(0),r=t[0]&128;return r&&SY(t),parseInt(Ya.toHex(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function SY(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}i(SY,"negate");var wx=class{static{i(this,"HeaderMarshaller")}toUtf8;fromUtf8;constructor(t,r){this.toUtf8=t,this.fromUtf8=r}format(t){let r=[];for(let s of Object.keys(t)){let a=this.fromUtf8(s);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}let o=new Uint8Array(r.reduce((s,a)=>s+a.byteLength,0)),n=0;for(let s of r)o.set(s,n),n+=s.byteLength;return o}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":let o=new DataView(new ArrayBuffer(5));return o.setUint8(0,4),o.setInt32(1,t.value,!1),new Uint8Array(o.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(t.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":let c=this.fromUtf8(t.value),u=new DataView(new ArrayBuffer(3+c.byteLength));u.setUint8(0,7),u.setUint16(1,c.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(c,3),l;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(sl.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!ORe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let f=new Uint8Array(17);return f[0]=9,f.set(Ya.fromHex(t.value.replace(/\-/g,"")),1),f}}parse(t){let r={},o=0;for(;o<t.byteLength;){let n=t.getUint8(o++),s=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+o,n));switch(o+=n,t.getUint8(o++)){case 0:r[s]={type:vY,value:!0};break;case 1:r[s]={type:vY,value:!1};break;case 2:r[s]={type:PRe,value:t.getInt8(o++)};break;case 3:r[s]={type:CRe,value:t.getInt16(o,!1)},o+=2;break;case 4:r[s]={type:ARe,value:t.getInt32(o,!1)},o+=4;break;case 5:r[s]={type:TRe,value:new sl(new Uint8Array(t.buffer,t.byteOffset+o,8))},o+=8;break;case 6:let a=t.getUint16(o,!1);o+=2,r[s]={type:IRe,value:new Uint8Array(t.buffer,t.byteOffset+o,a)},o+=a;break;case 7:let c=t.getUint16(o,!1);o+=2,r[s]={type:wRe,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+o,c))},o+=c;break;case 8:r[s]={type:RRe,value:new Date(new sl(new Uint8Array(t.buffer,t.byteOffset+o,8)).valueOf())},o+=8;break;case 9:let u=new Uint8Array(t.buffer,t.byteOffset+o,16);o+=16,r[s]={type:$Re,value:`${Ya.toHex(u.subarray(0,4))}-${Ya.toHex(u.subarray(4,6))}-${Ya.toHex(u.subarray(6,8))}-${Ya.toHex(u.subarray(8,10))}-${Ya.toHex(u.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return r}},_Y;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(_Y||(_Y={}));var vY="boolean",PRe="byte",CRe="short",ARe="integer",TRe="long",IRe="binary",wRe="string",RRe="timestamp",$Re="uuid",ORe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,bY=4,bs=bY*2,Qa=4,DRe=bs+Qa*2;function NRe({byteLength:e,byteOffset:t,buffer:r}){if(e<DRe)throw new Error("Provided message too short to accommodate event stream message overhead");let o=new DataView(r,t,e),n=o.getUint32(0,!1);if(e!==n)throw new Error("Reported message length does not match received message length");let s=o.getUint32(bY,!1),a=o.getUint32(bs,!1),c=o.getUint32(e-Qa,!1),u=new xY.Crc32().update(new Uint8Array(r,t,bs));if(a!==u.digest())throw new Error(`The prelude checksum specified in the message (${a}) does not match the calculated CRC32 checksum (${u.digest()})`);if(u.update(new Uint8Array(r,t+bs,e-(bs+Qa))),c!==u.digest())throw new Error(`The message checksum (${u.digest()}) did not match the expected value of ${c}`);return{headers:new DataView(r,t+bs+Qa,s),body:new Uint8Array(r,t+bs+Qa+s,n-s-(bs+Qa+Qa))}}i(NRe,"splitMessage");var rM=class{static{i(this,"EventStreamCodec")}headerMarshaller;messageBuffer;isEndOfStream;constructor(t,r){this.headerMarshaller=new wx(t,r),this.messageBuffer=[],this.isEndOfStream=!1}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=!0}getMessage(){let t=this.messageBuffer.pop(),r=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return r}}}getAvailableMessages(){let t=this.messageBuffer;this.messageBuffer=[];let r=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return r}}}encode({headers:t,body:r}){let o=this.headerMarshaller.format(t),n=o.byteLength+r.byteLength+16,s=new Uint8Array(n),a=new DataView(s.buffer,s.byteOffset,s.byteLength),c=new xY.Crc32;return a.setUint32(0,n,!1),a.setUint32(4,o.byteLength,!1),a.setUint32(8,c.update(s.subarray(0,8)).digest(),!1),s.set(o,12),s.set(r,o.byteLength+12),a.setUint32(n-4,c.update(s.subarray(8,n-4)).digest(),!1),s}decode(t){let{headers:r,body:o}=NRe(t);return{headers:this.headerMarshaller.parse(r),body:o}}formatHeaders(t){return this.headerMarshaller.format(t)}},nM=class{static{i(this,"MessageDecoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.inputStream)yield this.options.decoder.decode(t)}},oM=class{static{i(this,"MessageEncoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.messageStream)yield this.options.encoder.encode(t);this.options.includeEndFrame&&(yield new Uint8Array(0))}},iM=class{static{i(this,"SmithyMessageDecoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.messageStream){let r=await this.options.deserializer(t);r!==void 0&&(yield r)}}},sM=class{static{i(this,"SmithyMessageEncoderStream")}options;constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(let t of this.options.inputStream)yield this.options.serializer(t)}};Ps.EventStreamCodec=rM;Ps.HeaderMarshaller=wx;Ps.Int64=sl;Ps.MessageDecoderStream=nM;Ps.MessageEncoderStream=oM;Ps.SmithyMessageDecoderStream=iM;Ps.SmithyMessageEncoderStream=sM});var CY=z(aM=>{"use strict";var wm=PY();function kRe(e){let t=0,r=0,o=null,n=null,s=i(c=>{if(typeof c!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+c);t=c,r=4,o=new Uint8Array(c),new DataView(o.buffer).setUint32(0,c,!1)},"allocateMessage"),a=i(async function*(){let c=e[Symbol.asyncIterator]();for(;;){let{value:u,done:l}=await c.next();if(l){if(t)if(t===r)yield o;else throw new Error("Truncated event message received.");else return;return}let p=u.length,f=0;for(;f<p;){if(!o){let m=p-f;n||(n=new Uint8Array(4));let _=Math.min(4-r,m);if(n.set(u.slice(f,f+_),r),r+=_,f+=_,r<4)break;s(new DataView(n.buffer).getUint32(0,!1)),n=null}let y=Math.min(t-r,p-f);o.set(u.slice(f,f+y),r),r+=y,f+=y,t&&t===r&&(yield o,o=null,t=0,r=0)}}},"iterator");return{[Symbol.asyncIterator]:a}}i(kRe,"getChunkedStream");function MRe(e,t){return async function(r){let{value:o}=r.headers[":message-type"];if(o==="error"){let n=new Error(r.headers[":error-message"].value||"UnknownError");throw n.name=r.headers[":error-code"].value,n}else if(o==="exception"){let n=r.headers[":exception-type"].value,s={[n]:r},a=await e(s);if(a.$unknown){let c=new Error(t(r.body));throw c.name=n,c}throw a[n]}else if(o==="event"){let n={[r.headers[":event-type"].value]:r},s=await e(n);return s.$unknown?void 0:s}else throw Error(`Unrecognizable event type: ${r.headers[":event-type"].value}`)}}i(MRe,"getMessageUnmarshaller");var Rx=class{static{i(this,"EventStreamMarshaller")}eventStreamCodec;utfEncoder;constructor({utf8Encoder:t,utf8Decoder:r}){this.eventStreamCodec=new wm.EventStreamCodec(t,r),this.utfEncoder=t}deserialize(t,r){let o=kRe(t);return new wm.SmithyMessageDecoderStream({messageStream:new wm.MessageDecoderStream({inputStream:o,decoder:this.eventStreamCodec}),deserializer:MRe(r,this.utfEncoder)})}serialize(t,r){return new wm.MessageEncoderStream({messageStream:new wm.SmithyMessageEncoderStream({inputStream:t,serializer:r}),encoder:this.eventStreamCodec,includeEndFrame:!0})}},LRe=i(e=>new Rx(e),"eventStreamSerdeProvider");aM.EventStreamMarshaller=Rx;aM.eventStreamSerdeProvider=LRe});var AY=z(cM=>{"use strict";var zRe=CY(),FRe=require("stream");async function*URe(e){let t=!1,r=!1,o=new Array;for(e.on("error",n=>{if(t||(t=!0),n)throw n}),e.on("data",n=>{o.push(n)}),e.on("end",()=>{t=!0});!r;){let n=await new Promise(s=>setTimeout(()=>s(o.shift()),0));n&&(yield n),r=t&&o.length===0}}i(URe,"readabletoIterable");var $x=class{static{i(this,"EventStreamMarshaller")}universalMarshaller;constructor({utf8Encoder:t,utf8Decoder:r}){this.universalMarshaller=new zRe.EventStreamMarshaller({utf8Decoder:r,utf8Encoder:t})}deserialize(t,r){let o=typeof t[Symbol.asyncIterator]=="function"?t:URe(t);return this.universalMarshaller.deserialize(o,r)}serialize(t,r){return FRe.Readable.from(this.universalMarshaller.serialize(t,r))}},jRe=i(e=>new $x(e),"eventStreamSerdeProvider");cM.EventStreamMarshaller=$x;cM.eventStreamSerdeProvider=jRe});var TY=z(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});Cs.toUtf8=Cs.toUint8Array=Cs.fromUtf8=void 0;var uM=(uq(),pe(cq));Object.defineProperty(Cs,"fromUtf8",{enumerable:!0,get:i(function(){return uM.fromUtf8},"get")});Object.defineProperty(Cs,"toUint8Array",{enumerable:!0,get:i(function(){return uM.toUint8Array},"get")});Object.defineProperty(Cs,"toUtf8",{enumerable:!0,get:i(function(){return uM.toUtf8},"get")})});var lM=z(Jn=>{"use strict";var al=$r(),BRe=gn(),wY=i((e,t=!1)=>{if(t){for(let r of e.split("."))if(!wY(r))return!1;return!0}return!(!al.isValidHostLabel(e)||e.length<3||e.length>63||e!==e.toLowerCase()||al.isIpAddress(e))},"isVirtualHostableS3Bucket"),IY=":",VRe="/",HRe=i(e=>{let t=e.split(IY);if(t.length<6)return null;let[r,o,n,s,a,...c]=t;if(r!=="arn"||o===""||n===""||c.join(IY)==="")return null;let u=c.map(l=>l.split(VRe)).flat();return{partition:o,service:n,region:s,accountId:a,resourceId:u}},"parseArn"),GRe=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-6":{description:"Asia Pacific (New Zealand)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"aws global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"aws-cn global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"api.amazonwebservices.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"AWS European Sovereign Cloud (Germany)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"api.aws.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"aws-iso global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"api.aws.scloud",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"aws-iso-b global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"},"us-isob-west-1":{description:"US ISOB West"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"api.cloud-aws.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"aws-iso-e global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"api.aws.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"aws-iso-f global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"aws-us-gov global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}}],qRe="1.1",RY={partitions:GRe,version:qRe},$Y=RY,OY="",DY=i(e=>{let{partitions:t}=$Y;for(let o of t){let{regions:n,outputs:s}=o;for(let[a,c]of Object.entries(n))if(a===e)return{...s,...c}}for(let o of t){let{regionRegex:n,outputs:s}=o;if(new RegExp(n).test(e))return{...s}}let r=t.find(o=>o.id==="aws");if(!r)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...r.outputs}},"partition"),NY=i((e,t="")=>{$Y=e,OY=t},"setPartitionInfo"),WRe=i(()=>{NY(RY,"")},"useDefaultPartitionInfo"),ZRe=i(()=>OY,"getUserAgentPrefix"),kY={isVirtualHostableS3Bucket:wY,parseArn:HRe,partition:DY};al.customEndpointFunctions.aws=kY;var KRe=i(e=>{if(typeof e.endpointProvider!="function")throw new Error("@aws-sdk/util-endpoint - endpointProvider and endpoint missing in config for this client.");let{endpoint:t}=e;return t===void 0&&(e.endpoint=async()=>MY(e.endpointProvider({Region:typeof e.region=="function"?await e.region():e.region,UseDualStack:typeof e.useDualstackEndpoint=="function"?await e.useDualstackEndpoint():e.useDualstackEndpoint,UseFIPS:typeof e.useFipsEndpoint=="function"?await e.useFipsEndpoint():e.useFipsEndpoint,Endpoint:void 0},{logger:e.logger}))),e},"resolveDefaultAwsRegionalEndpointsConfig"),MY=i(e=>BRe.parseUrl(e.url),"toEndpointV1");Object.defineProperty(Jn,"EndpointError",{enumerable:!0,get:i(function(){return al.EndpointError},"get")});Object.defineProperty(Jn,"isIpAddress",{enumerable:!0,get:i(function(){return al.isIpAddress},"get")});Object.defineProperty(Jn,"resolveEndpoint",{enumerable:!0,get:i(function(){return al.resolveEndpoint},"get")});Jn.awsEndpointFunctions=kY;Jn.getUserAgentPrefix=ZRe;Jn.partition=DY;Jn.resolveDefaultAwsRegionalEndpointsConfig=KRe;Jn.setPartitionInfo=NY;Jn.toEndpointV1=MY;Jn.useDefaultPartitionInfo=WRe});var XY=z(Ox=>{"use strict";Object.defineProperty(Ox,"__esModule",{value:!0});Ox.ruleSet=void 0;var WY="required",bo="fn",Po="argv",ul="ref",LY=!0,zY="isSet",$m="booleanEquals",cl="error",Rm="endpoint",mi="tree",dM="PartitionResult",FY={[WY]:!1,type:"string"},UY={[WY]:!0,default:!1,type:"boolean"},jY={[ul]:"Endpoint"},ZY={[bo]:$m,[Po]:[{[ul]:"UseFIPS"},!0]},KY={[bo]:$m,[Po]:[{[ul]:"UseDualStack"},!0]},xo={},BY={[bo]:"getAttr",[Po]:[{[ul]:dM},"supportsFIPS"]},VY={[bo]:$m,[Po]:[!0,{[bo]:"getAttr",[Po]:[{[ul]:dM},"supportsDualStack"]}]},HY=[ZY],GY=[KY],qY=[{[ul]:"Region"}],XRe={version:"1.0",parameters:{Region:FY,UseDualStack:UY,UseFIPS:UY,Endpoint:FY},rules:[{conditions:[{[bo]:zY,[Po]:[jY]}],rules:[{conditions:HY,error:"Invalid Configuration: FIPS and custom endpoint are not supported",type:cl},{conditions:GY,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",type:cl},{endpoint:{url:jY,properties:xo,headers:xo},type:Rm}],type:mi},{conditions:[{[bo]:zY,[Po]:qY}],rules:[{conditions:[{[bo]:"aws.partition",[Po]:qY,assign:dM}],rules:[{conditions:[ZY,KY],rules:[{conditions:[{[bo]:$m,[Po]:[LY,BY]},VY],rules:[{endpoint:{url:"https://lambda-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:xo,headers:xo},type:Rm}],type:mi},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",type:cl}],type:mi},{conditions:HY,rules:[{conditions:[{[bo]:$m,[Po]:[BY,LY]}],rules:[{endpoint:{url:"https://lambda-fips.{Region}.{PartitionResult#dnsSuffix}",properties:xo,headers:xo},type:Rm}],type:mi},{error:"FIPS is enabled but this partition does not support FIPS",type:cl}],type:mi},{conditions:GY,rules:[{conditions:[VY],rules:[{endpoint:{url:"https://lambda.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:xo,headers:xo},type:Rm}],type:mi},{error:"DualStack is enabled but this partition does not support DualStack",type:cl}],type:mi},{endpoint:{url:"https://lambda.{Region}.{PartitionResult#dnsSuffix}",properties:xo,headers:xo},type:Rm}],type:mi}],type:mi},{error:"Invalid Configuration: Missing Region",type:cl}]};Ox.ruleSet=XRe});var JY=z(Dx=>{"use strict";Object.defineProperty(Dx,"__esModule",{value:!0});Dx.defaultEndpointResolver=void 0;var JRe=lM(),pM=$r(),YRe=XY(),QRe=new pM.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS"]}),e$e=i((e,t={})=>QRe.get(e,()=>(0,pM.resolveEndpoint)(YRe.ruleSet,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");Dx.defaultEndpointResolver=e$e;pM.customEndpointFunctions.aws=JRe.awsEndpointFunctions});var eQ=z(Nx=>{"use strict";Object.defineProperty(Nx,"__esModule",{value:!0});Nx.getRuntimeConfig=void 0;var t$e=(Na(),pe(Da)),r$e=(ui(),pe(O_)),n$e=ye(),o$e=gn(),YY=wt(),QY=TY(),i$e=fk(),s$e=JY(),a$e=i(e=>({apiVersion:"2015-03-31",base64Decoder:e?.base64Decoder??YY.fromBase64,base64Encoder:e?.base64Encoder??YY.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??s$e.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??i$e.defaultLambdaHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new t$e.AwsSdkSigV4Signer}],logger:e?.logger??new n$e.NoOpLogger,protocol:e?.protocol??r$e.AwsRestJsonProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.lambda",version:"2015-03-31",serviceTarget:"AWSGirApiService"},serviceId:e?.serviceId??"Lambda",urlParser:e?.urlParser??o$e.parseUrl,utf8Decoder:e?.utf8Decoder??QY.fromUtf8,utf8Encoder:e?.utf8Encoder??QY.toUtf8}),"getRuntimeConfig");Nx.getRuntimeConfig=a$e});var sQ=z(Mx=>{"use strict";Object.defineProperty(Mx,"__esModule",{value:!0});Mx.getRuntimeConfig=void 0;var c$e=(Zo(),pe(Wo)),u$e=c$e.__importDefault(E8()),tQ=(Na(),pe(Da)),l$e=J1(),rQ=Ma(),kx=or(),d$e=AY(),p$e=La(),nQ=en(),ec=Vn(),oQ=Go(),iQ=ye(),f$e=za(),m$e=Fa(),g$e=uo(),h$e=eQ(),y$e=i(e=>{(0,iQ.emitWarningIfUnsupportedVersion)(process.version);let t=(0,m$e.resolveDefaultsModeConfig)(e),r=i(()=>t().then(iQ.loadConfigsForDefaultMode),"defaultConfigProvider"),o=(0,h$e.getRuntimeConfig)(e);(0,tQ.emitWarningIfUnsupportedVersion)(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,ec.loadConfig)(tQ.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,n),bodyLengthChecker:e?.bodyLengthChecker??f$e.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??l$e.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,rQ.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:u$e.default.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??d$e.eventStreamSerdeProvider,maxAttempts:e?.maxAttempts??(0,ec.loadConfig)(nQ.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,ec.loadConfig)(kx.NODE_REGION_CONFIG_OPTIONS,{...kx.NODE_REGION_CONFIG_FILE_OPTIONS,...n}),requestHandler:oQ.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,ec.loadConfig)({...nQ.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||g$e.DEFAULT_RETRY_MODE,"default")},e),sha256:e?.sha256??p$e.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??oQ.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,ec.loadConfig)(kx.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,n),useFipsEndpoint:e?.useFipsEndpoint??(0,ec.loadConfig)(kx.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,n),userAgentAppId:e?.userAgentAppId??(0,ec.loadConfig)(rQ.NODE_APP_ID_CONFIG_OPTIONS,n)}},"getRuntimeConfig");Mx.getRuntimeConfig=y$e});var uQ=z(Lr=>{"use strict";var Lx=i(()=>{let e=new WeakSet;return(t,r)=>{if(typeof r=="object"&&r!==null){if(e.has(r))return"[Circular]";e.add(r)}return r}},"getCircularReplacer"),E$e=i(e=>new Promise(t=>setTimeout(t,e*1e3)),"sleep"),cQ={minDelay:2,maxDelay:120};Lr.WaiterState=void 0;(function(e){e.ABORTED="ABORTED",e.FAILURE="FAILURE",e.SUCCESS="SUCCESS",e.RETRY="RETRY",e.TIMEOUT="TIMEOUT"})(Lr.WaiterState||(Lr.WaiterState={}));var S$e=i(e=>{if(e.state===Lr.WaiterState.ABORTED){let t=new Error(`${JSON.stringify({...e,reason:"Request was aborted"},Lx())}`);throw t.name="AbortError",t}else if(e.state===Lr.WaiterState.TIMEOUT){let t=new Error(`${JSON.stringify({...e,reason:"Waiter has timed out"},Lx())}`);throw t.name="TimeoutError",t}else if(e.state!==Lr.WaiterState.SUCCESS)throw new Error(`${JSON.stringify(e,Lx())}`);return e},"checkExceptions"),_$e=i(async({minDelay:e,maxDelay:t,maxWaitTime:r,abortController:o,client:n,abortSignal:s},a,c)=>{let u={},[l,p]=[e*1e3,t*1e3],f=0,y=Date.now()+r*1e3,m=Date.now()+6e4,_=!1;for(;;){if(f>0){let I=b$e(l,p,f,y);if(o?.signal?.aborted||s?.aborted){let R="AbortController signal aborted.";return u[R]|=0,u[R]+=1,{state:Lr.WaiterState.ABORTED,observedResponses:u}}if(Date.now()+I>y)return{state:Lr.WaiterState.TIMEOUT,observedResponses:u};await E$e(I/1e3)}let{state:b,reason:A}=await c(n,a);if(A){let I=x$e(A);u[I]|=0,u[I]+=1}if(b!==Lr.WaiterState.RETRY)return{state:b,reason:A,final:A,observedResponses:u};f+=1,!_&&Date.now()>=m&&(v$e(u,n),_=!0)}},"runPolling"),v$e=i((e={},t)=>{let r=Object.keys(e),o=0;for(let a of r){let c=e[a]|0;a.startsWith("403:")&&(o+=c)}let n=t?.config?.logger,s=typeof n?.warn=="function"&&!n.constructor?.name?.includes?.("NoOpLogger")?n:console;(o>=3||r[r.length-1].startsWith("403:"))&&s.warn("@smithy/util-waiter WARN - 403 status code encountered during waiter polling.")},"checkWarn403"),x$e=i(e=>{let t=e?.$response?.statusCode??e?.$metadata?.httpStatusCode;return e?.$responseBodyText?`${t?t+": ":""}Deserialization error for body: ${e.$responseBodyText}`:t?e?.$response||e?.message?`${t??"Unknown"}: ${e?.message}`:`${t}: OK`:String(e?.message??JSON.stringify(e,Lx())??"Unknown")},"createMessageFromResponse"),b$e=i((e,t,r,o)=>{let n=Math.log(t/e)/Math.log(2)+1;if(r>n)return t;let s=e*2**(r-1),a=Math.min(s,t),c=P$e(e,a);if(Date.now()+c>o){let u=o-Date.now();return Math.max(0,u-500)}return c},"exponentialBackoffWithJitter"),P$e=i((e,t)=>e+Math.random()*(t-e),"randomInRange"),C$e=i(e=>{if(e.maxWaitTime<=0)throw new Error("WaiterConfiguration.maxWaitTime must be greater than 0");if(e.minDelay<=0)throw new Error("WaiterConfiguration.minDelay must be greater than 0");if(e.maxDelay<=0)throw new Error("WaiterConfiguration.maxDelay must be greater than 0");if(e.maxWaitTime<=e.minDelay)throw new Error(`WaiterConfiguration.maxWaitTime [${e.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`);if(e.maxDelay<e.minDelay)throw new Error(`WaiterConfiguration.maxDelay [${e.maxDelay}] must be greater than WaiterConfiguration.minDelay [${e.minDelay}] for this waiter`)},"validateWaiterOptions"),aQ=i(e=>{let t,r=new Promise(o=>{t=i(()=>o({state:Lr.WaiterState.ABORTED}),"onAbort"),typeof e.addEventListener=="function"?e.addEventListener("abort",t):e.onabort=t});return{clearListener(){typeof e.removeEventListener=="function"&&e.removeEventListener("abort",t)},aborted:r}},"abortTimeout"),A$e=i(async(e,t,r)=>{let o={...cQ,...e};C$e(o);let n=[_$e(o,t,r)],s=[];if(e.abortSignal){let{aborted:a,clearListener:c}=aQ(e.abortSignal);s.push(c),n.push(a)}if(e.abortController?.signal){let{aborted:a,clearListener:c}=aQ(e.abortController.signal);s.push(c),n.push(a)}return Promise.race(n).then(a=>{for(let c of s)c();return a})},"createWaiter");Lr.checkExceptions=S$e;Lr.createWaiter=A$e;Lr.waiterServiceDefaults=cQ});var NL=z(g=>{"use strict";var lQ=ua(),T$e=la(),I$e=da(),dQ=ji(),w$e=or(),kt=(Rq(),pe(wq)),Ce=(KH(),pe(ZH)),R$e=Oq(),$$e=Aa(),Z=Or(),pQ=en(),q=ye(),fQ=fk(),O$e=sQ(),mQ=li(),gQ=Ze(),Oe=uQ(),D$e=i(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,defaultSigningName:"lambda"}),"resolveClientEndpointParameters"),K={UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}},N$e=i(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(n){let s=t.findIndex(a=>a.schemeId===n.schemeId);s===-1?t.push(n):t.splice(s,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){r=n},httpAuthSchemeProvider(){return r},setCredentials(n){o=n},credentials(){return o}}},"getHttpAuthExtensionConfiguration"),k$e=i(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig"),M$e=i((e,t)=>{let r=Object.assign(mQ.getAwsRegionExtensionConfiguration(e),q.getDefaultExtensionConfiguration(e),gQ.getHttpHandlerExtensionConfiguration(e),N$e(e));return t.forEach(o=>o.configure(r)),Object.assign(e,mQ.resolveAwsRegionExtensionConfiguration(r),q.resolveDefaultRuntimeConfig(r),gQ.resolveHttpHandlerRuntimeConfig(r),k$e(r))},"resolveRuntimeExtensions"),At=class extends q.Client{static{i(this,"LambdaClient")}config;constructor(...[t]){let r=O$e.getRuntimeConfig(t||{});super(r),this.initConfig=r;let o=D$e(r),n=dQ.resolveUserAgentConfig(o),s=pQ.resolveRetryConfig(n),a=w$e.resolveRegionConfig(s),c=lQ.resolveHostHeaderConfig(a),u=Z.resolveEndpointConfig(c),l=R$e.resolveEventStreamSerdeConfig(u),p=fQ.resolveHttpAuthSchemeConfig(l),f=M$e(p,t?.extensions||[]);this.config=f,this.middlewareStack.use(Ce.getSchemaSerdePlugin(this.config)),this.middlewareStack.use(dQ.getUserAgentPlugin(this.config)),this.middlewareStack.use(pQ.getRetryPlugin(this.config)),this.middlewareStack.use($$e.getContentLengthPlugin(this.config)),this.middlewareStack.use(lQ.getHostHeaderPlugin(this.config)),this.middlewareStack.use(T$e.getLoggerPlugin(this.config)),this.middlewareStack.use(I$e.getRecursionDetectionPlugin(this.config)),this.middlewareStack.use(kt.getHttpAuthSchemeEndpointRuleSetPlugin(this.config,{httpAuthSchemeParametersProvider:fQ.defaultLambdaHttpAuthSchemeParametersProvider,identityProviderConfigProvider:i(async y=>new kt.DefaultIdentityProviderConfig({"aws.auth#sigv4":y.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use(kt.getHttpSigningPlugin(this.config))}destroy(){super.destroy()}},Ee=class e extends q.ServiceException{static{i(this,"LambdaServiceException")}constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},zx=class e extends Ee{static{i(this,"InvalidParameterValueException")}name="InvalidParameterValueException";$fault="client";Type;constructor(t){super({name:"InvalidParameterValueException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},Fx=class e extends Ee{static{i(this,"PolicyLengthExceededException")}name="PolicyLengthExceededException";$fault="client";Type;constructor(t){super({name:"PolicyLengthExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},Ux=class e extends Ee{static{i(this,"PreconditionFailedException")}name="PreconditionFailedException";$fault="client";Type;constructor(t){super({name:"PreconditionFailedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},jx=class e extends Ee{static{i(this,"ResourceConflictException")}name="ResourceConflictException";$fault="client";Type;constructor(t){super({name:"ResourceConflictException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},Bx=class e extends Ee{static{i(this,"ResourceNotFoundException")}name="ResourceNotFoundException";$fault="client";Type;Message;constructor(t){super({name:"ResourceNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Vx=class e extends Ee{static{i(this,"ServiceException")}name="ServiceException";$fault="server";Type;Message;constructor(t){super({name:"ServiceException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Hx=class e extends Ee{static{i(this,"TooManyRequestsException")}name="TooManyRequestsException";$fault="client";retryAfterSeconds;Type;Reason;constructor(t){super({name:"TooManyRequestsException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.retryAfterSeconds=t.retryAfterSeconds,this.Type=t.Type,this.Reason=t.Reason}},Gx=class e extends Ee{static{i(this,"CapacityProviderLimitExceededException")}name="CapacityProviderLimitExceededException";$fault="client";Type;constructor(t){super({name:"CapacityProviderLimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},qx=class e extends Ee{static{i(this,"ResourceInUseException")}name="ResourceInUseException";$fault="client";Type;Message;constructor(t){super({name:"ResourceInUseException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Wx=class e extends Ee{static{i(this,"CodeSigningConfigNotFoundException")}name="CodeSigningConfigNotFoundException";$fault="client";Type;Message;constructor(t){super({name:"CodeSigningConfigNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Zx=class e extends Ee{static{i(this,"CodeStorageExceededException")}name="CodeStorageExceededException";$fault="client";Type;constructor(t){super({name:"CodeStorageExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},Kx=class e extends Ee{static{i(this,"CodeVerificationFailedException")}name="CodeVerificationFailedException";$fault="client";Type;Message;constructor(t){super({name:"CodeVerificationFailedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Xx=class e extends Ee{static{i(this,"FunctionVersionsPerCapacityProviderLimitExceededException")}name="FunctionVersionsPerCapacityProviderLimitExceededException";$fault="client";Type;constructor(t){super({name:"FunctionVersionsPerCapacityProviderLimitExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},Jx=class e extends Ee{static{i(this,"InvalidCodeSignatureException")}name="InvalidCodeSignatureException";$fault="client";Type;Message;constructor(t){super({name:"InvalidCodeSignatureException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Yx=class e extends Ee{static{i(this,"DurableExecutionAlreadyStartedException")}name="DurableExecutionAlreadyStartedException";$fault="client";Type;Message;constructor(t){super({name:"DurableExecutionAlreadyStartedException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Qx=class e extends Ee{static{i(this,"EC2AccessDeniedException")}name="EC2AccessDeniedException";$fault="server";Type;Message;constructor(t){super({name:"EC2AccessDeniedException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},eb=class e extends Ee{static{i(this,"EC2ThrottledException")}name="EC2ThrottledException";$fault="server";Type;Message;constructor(t){super({name:"EC2ThrottledException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},tb=class e extends Ee{static{i(this,"EC2UnexpectedException")}name="EC2UnexpectedException";$fault="server";Type;Message;EC2ErrorCode;constructor(t){super({name:"EC2UnexpectedException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message,this.EC2ErrorCode=t.EC2ErrorCode}},rb=class e extends Ee{static{i(this,"EFSIOException")}name="EFSIOException";$fault="client";Type;Message;constructor(t){super({name:"EFSIOException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},nb=class e extends Ee{static{i(this,"EFSMountConnectivityException")}name="EFSMountConnectivityException";$fault="client";Type;Message;constructor(t){super({name:"EFSMountConnectivityException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},ob=class e extends Ee{static{i(this,"EFSMountFailureException")}name="EFSMountFailureException";$fault="client";Type;Message;constructor(t){super({name:"EFSMountFailureException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},ib=class e extends Ee{static{i(this,"EFSMountTimeoutException")}name="EFSMountTimeoutException";$fault="client";Type;Message;constructor(t){super({name:"EFSMountTimeoutException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},sb=class e extends Ee{static{i(this,"ENILimitReachedException")}name="ENILimitReachedException";$fault="server";Type;Message;constructor(t){super({name:"ENILimitReachedException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},ab=class e extends Ee{static{i(this,"InvalidRequestContentException")}name="InvalidRequestContentException";$fault="client";Type;constructor(t){super({name:"InvalidRequestContentException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},cb=class e extends Ee{static{i(this,"InvalidRuntimeException")}name="InvalidRuntimeException";$fault="server";Type;Message;constructor(t){super({name:"InvalidRuntimeException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},ub=class e extends Ee{static{i(this,"InvalidSecurityGroupIDException")}name="InvalidSecurityGroupIDException";$fault="server";Type;Message;constructor(t){super({name:"InvalidSecurityGroupIDException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},lb=class e extends Ee{static{i(this,"InvalidSubnetIDException")}name="InvalidSubnetIDException";$fault="server";Type;Message;constructor(t){super({name:"InvalidSubnetIDException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},db=class e extends Ee{static{i(this,"InvalidZipFileException")}name="InvalidZipFileException";$fault="server";Type;Message;constructor(t){super({name:"InvalidZipFileException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},pb=class e extends Ee{static{i(this,"KMSAccessDeniedException")}name="KMSAccessDeniedException";$fault="server";Type;Message;constructor(t){super({name:"KMSAccessDeniedException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},fb=class e extends Ee{static{i(this,"KMSDisabledException")}name="KMSDisabledException";$fault="server";Type;Message;constructor(t){super({name:"KMSDisabledException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},mb=class e extends Ee{static{i(this,"KMSInvalidStateException")}name="KMSInvalidStateException";$fault="server";Type;Message;constructor(t){super({name:"KMSInvalidStateException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},gb=class e extends Ee{static{i(this,"KMSNotFoundException")}name="KMSNotFoundException";$fault="server";Type;Message;constructor(t){super({name:"KMSNotFoundException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},hb=class e extends Ee{static{i(this,"NoPublishedVersionException")}name="NoPublishedVersionException";$fault="client";Type;Message;constructor(t){super({name:"NoPublishedVersionException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},yb=class e extends Ee{static{i(this,"RecursiveInvocationException")}name="RecursiveInvocationException";$fault="client";Type;Message;constructor(t){super({name:"RecursiveInvocationException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Eb=class e extends Ee{static{i(this,"RequestTooLargeException")}name="RequestTooLargeException";$fault="client";Type;constructor(t){super({name:"RequestTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},Sb=class e extends Ee{static{i(this,"ResourceNotReadyException")}name="ResourceNotReadyException";$fault="server";Type;constructor(t){super({name:"ResourceNotReadyException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},_b=class e extends Ee{static{i(this,"SerializedRequestEntityTooLargeException")}name="SerializedRequestEntityTooLargeException";$fault="client";Type;constructor(t){super({name:"SerializedRequestEntityTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},vb=class e extends Ee{static{i(this,"SnapStartException")}name="SnapStartException";$fault="client";Type;Message;constructor(t){super({name:"SnapStartException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},xb=class e extends Ee{static{i(this,"SnapStartNotReadyException")}name="SnapStartNotReadyException";$fault="client";Type;Message;constructor(t){super({name:"SnapStartNotReadyException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},bb=class e extends Ee{static{i(this,"SnapStartTimeoutException")}name="SnapStartTimeoutException";$fault="client";Type;Message;constructor(t){super({name:"SnapStartTimeoutException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Pb=class e extends Ee{static{i(this,"SubnetIPAddressLimitReachedException")}name="SubnetIPAddressLimitReachedException";$fault="server";Type;Message;constructor(t){super({name:"SubnetIPAddressLimitReachedException",$fault:"server",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},Cb=class e extends Ee{static{i(this,"UnsupportedMediaTypeException")}name="UnsupportedMediaTypeException";$fault="client";Type;constructor(t){super({name:"UnsupportedMediaTypeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},Ab=class e extends Ee{static{i(this,"ProvisionedConcurrencyConfigNotFoundException")}name="ProvisionedConcurrencyConfigNotFoundException";$fault="client";Type;constructor(t){super({name:"ProvisionedConcurrencyConfigNotFoundException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type}},Tb=class e extends Ee{static{i(this,"CallbackTimeoutException")}name="CallbackTimeoutException";$fault="client";Type;Message;constructor(t){super({name:"CallbackTimeoutException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype),this.Type=t.Type,this.Message=t.Message}},fM="Action",L$e="AliasArn",z$e="AliasConfiguration",F$e="AccessConfigs",U$e="AllowCredentials",j$e="AppliedFunctionScalingConfig",B$e="AllowHeaders",V$e="AllowedInstanceTypes",xQ="AccountLimit",H$e="ApplicationLogLevel",G$e="AddLayerVersionPermission",q$e="AddLayerVersionPermissionRequest",W$e="AddLayerVersionPermissionResponse",Z$e="AliasList",K$e="AllowMethods",KP="AmazonManagedKafkaEventSourceConfig",X$e="AllowOrigins",bQ="ApplyOn",XP="AllowedPublishers",mM="AvailableProvisionedConcurrentExecutions",gM="AllocatedProvisionedConcurrentExecutions",J$e="AddPermissionRequest",Y$e="AddPermissionResponse",Q$e="AddPermission",eOe="AliasRoutingConfiguration",dl="AuthType",PQ="AccountUsage",tOe="AdditionalVersionWeights",rOe="Aliases",JP="Architectures",Ib="Arn",nOe="Attribute",oOe="Attempt",iOe="Blob",hM="BisectBatchOnFunctionError",sOe="BinaryOperationPayload",aOe="BlobStream",yM="BatchSize",CQ="Concurrency",YP="CompatibleArchitectures",cOe="CreateAliasRequest",wb="CompatibleArchitecture",uOe="CreateAlias",lOe="CurrentAttempt",AQ="ClientContext",dOe="CreateCapacityProvider",pOe="CreateCapacityProviderRequest",fOe="CreateCapacityProviderResponse",mOe="CreateCodeSigningConfig",gOe="CreateCodeSigningConfigRequest",hOe="CreateCodeSigningConfigResponse",TQ="CallbackDetails",yOe="CheckpointDurableExecution",EOe="CheckpointDurableExecutionRequest",SOe="CheckpointDurableExecutionResponse",IQ="ContextDetails",EM="CreatedDate",_Oe="ConcurrentExecutions",vOe="CreateEventSourceMapping",xOe="CreateEventSourceMappingRequest",bOe="CreateFunction",wQ="CallbackFailedDetails",RQ="ContextFailedDetails",POe="CreateFunctionRequest",COe="CreateFunctionUrlConfig",AOe="CreateFunctionUrlConfigRequest",TOe="CreateFunctionUrlConfigResponse",$Q="ConsumerGroupId",Km="CallbackId",OQ="ChainedInvokeDetails",DQ="ChainedInvokeFailedDetails",NQ="ChainedInvokeOptions",kQ="ChainedInvokeStartedDetails",MQ="ChainedInvokeStoppedDetails",LQ="ChainedInvokeSucceededDetails",zQ="ChainedInvokeTimedOutDetails",IOe="CollectionName",FQ="CallbackOptions",UQ="ContextOptions",Xm="CapacityProvider",SM="CapacityProviderArn",QP="CapacityProviderConfig",wOe="CapacityProvidersList",ROe="CapacityProviderLimitExceededException",Jm="CapacityProviderName",$Oe="CapacityProviderOperatorRoleArn",OOe="CapacityProviderPermissionsConfig",eC="CapacityProviderScalingConfig",DOe="CapacityProviderScalingPoliciesList",NOe="CapacityProviderVpcConfig",kOe="CapacityProviders",tC="CompatibleRuntimes",Rb="CompatibleRuntime",_M="CodeSize",rC="CodeSigningConfig",gi="CodeSigningConfigArn",MOe="CodeSigningConfigId",LOe="CodeSigningConfigList",zOe="CodeSigningConfigNotFoundException",FOe="CodeSigningConfigs",jQ="CallbackStartedDetails",BQ="CallbackSucceededDetails",VQ="ContextStartedDetails",HQ="ContextSucceededDetails",UOe="CodeStorageExceededException",nC="CodeSigningPolicies",jOe="CodeSizeUnzipped",BOe="CodeSizeZipped",vM="CodeSha256",VOe="ConfigSha256",$b="CheckpointToken",HOe="CallbackTimeoutException",GQ="CallbackTimedOutDetails",GOe="Content-Type",qOe="ClientToken",oC="CreationTime",WOe="CheckpointUpdatedExecutionState",ZOe="CodeVerificationFailedException",oc="Cors",qQ="Code",KOe="Command",XOe="Configuration",xM="Content",zr="Description",JOe="DeleteAlias",YOe="DeleteAliasRequest",ic="DestinationConfig",QOe="DeleteCapacityProvider",eDe="DeleteCapacityProviderRequest",tDe="DeleteCapacityProviderResponse",rDe="DeleteCodeSigningConfig",nDe="DeleteCodeSigningConfigRequest",oDe="DeleteCodeSigningConfigResponse",iC="DurableConfig",sC="DocumentDBEventSourceConfig",WQ="DurableExecutions",hi="DurableExecutionArn",iDe="DurableExecutionAlreadyStartedException",Om="DurableExecutionName",sDe="DeleteEventSourceMapping",aDe="DeleteEventSourceMappingRequest",cDe="DeleteFunction",uDe="DeleteFunctionConcurrency",lDe="DeleteFunctionConcurrencyRequest",dDe="DeleteFunctionCodeSigningConfig",pDe="DeleteFunctionCodeSigningConfigRequest",fDe="DeleteFunctionEventInvokeConfig",mDe="DeleteFunctionEventInvokeConfigRequest",gDe="DeleteFunctionRequest",hDe="DeleteFunctionResponse",yDe="DeleteFunctionUrlConfig",EDe="DeleteFunctionUrlConfigRequest",aC="DeadLetterConfig",SDe="DeleteLayerVersion",_De="DeleteLayerVersionRequest",vDe="DatabaseName",xDe="DeleteProvisionedConcurrencyConfig",bDe="DeleteProvisionedConcurrencyConfigRequest",PDe="DryRun",ZQ="Destination",KQ="Duration",gt="Error",pl="ErrorCode",CDe="EC2AccessDeniedException",ADe="EC2ErrorCode",TDe="EC2ThrottledException",IDe="EC2UnexpectedException",XQ="ErrorData",wDe="ErrorDetails",JQ="ExecutionDetails",RDe="EnvironmentError",$De="ExecutionEnvironmentMemoryGiBPerVCpu",ODe="EventError",YQ="ExecutionFailedDetails",DDe="EFSIOException",NDe="EFSMountConnectivityException",kDe="EFSMountFailureException",MDe="EFSMountTimeoutException",LDe="ExposeHeaders",zDe="EventId",FDe="ExcludedInstanceTypes",UDe="EventInput",QQ="ErrorMessage",jDe="ENILimitReachedException",BDe="ErrorObject",VDe="EntryPoint",HDe="EnvironmentResponse",GDe="EventRecordFormat",qDe="EventResult",cC="EphemeralStorage",Ob="EventSourceArn",eee="ExecutionStartedDetails",tee="ExecutionSucceededDetails",ree="ExecutionStoppedDetails",WDe="EventSourceMappings",ZDe="EventSourceMappingArn",KDe="EventSourceMappingConfiguration",XDe="EventSourceMappingsList",JDe="EventSourceMappingMetricsConfig",YDe="EventSourceToken",QDe="EventStream",nee="ErrorType",oee="ExecutionTimedOutDetails",uC="EndTimestamp",eNe="EventType",tNe="EventTimestamp",iee="ExecutionTimeout",bM="ExecutedVersion",rNe="EnvironmentVariableName",nNe="EnvironmentVariableValue",oNe="EnvironmentVariables",see="Enabled",hQ="Endpoints",lC="Environment",iNe="Event",aee="Events",sNe="Execution",aNe="Filter",Fr="FunctionArn",cNe="FunctionArns",uNe="FunctionCount",cee="FilterCriteriaError",lNe="FunctionCodeLocation",dC="FilterCriteria",dNe="FunctionCode",pNe="FunctionConfiguration",fNe="FullDocument",mNe="FunctionError",gNe="FunctionEventInvokeConfig",hNe="FunctionEventInvokeConfigList",yNe="FunctionEventInvokeConfigs",ENe="FilterList",SNe="FunctionList",ce="FunctionName",PM="FunctionResponseTypes",_Ne="FunctionState",CM="FileSystemConfigs",vNe="FileSystemConfigList",xNe="FileSystemConfig",uee="FunctionScalingConfig",pC="FunctionUrl",bNe="FunctionUrlAuthType",PNe="FunctionUrlConfig",CNe="FunctionUrlConfigList",ANe="FunctionUrlConfigs",tc="FunctionVersion",TNe="FunctionVersionsByCapacityProviderList",INe="FunctionVersionsByCapacityProviderListItem",wNe="FunctionVersionsPerCapacityProviderLimitExceededException",RNe="FunctionVersions",$Ne="Filters",ONe="Functions",DNe="GetAlias",NNe="GetAliasRequest",kNe="GetAccountSettings",MNe="GetAccountSettingsRequest",LNe="GetAccountSettingsResponse",zNe="GetCapacityProvider",FNe="GetCapacityProviderRequest",UNe="GetCapacityProviderResponse",jNe="GetCodeSigningConfig",BNe="GetCodeSigningConfigRequest",VNe="GetCodeSigningConfigResponse",HNe="GetDurableExecution",GNe="GetDurableExecutionHistory",qNe="GetDurableExecutionHistoryRequest",WNe="GetDurableExecutionHistoryResponse",ZNe="GetDurableExecutionRequest",KNe="GetDurableExecutionResponse",XNe="GetDurableExecutionState",JNe="GetDurableExecutionStateRequest",YNe="GetDurableExecutionStateResponse",QNe="GetEventSourceMapping",eke="GetEventSourceMappingRequest",tke="GetFunction",rke="GetFunctionConcurrency",nke="GetFunctionConcurrencyRequest",oke="GetFunctionConcurrencyResponse",ike="GetFunctionConfigurationRequest",ske="GetFunctionCodeSigningConfig",ake="GetFunctionCodeSigningConfigRequest",cke="GetFunctionCodeSigningConfigResponse",uke="GetFunctionConfiguration",lke="GetFunctionEventInvokeConfig",dke="GetFunctionEventInvokeConfigRequest",pke="GetFunctionRequest",fke="GetFunctionRecursionConfig",mke="GetFunctionRecursionConfigRequest",gke="GetFunctionRecursionConfigResponse",hke="GetFunctionResponse",yke="GetFunctionScalingConfig",Eke="GetFunctionScalingConfigRequest",Ske="GetFunctionScalingConfigResponse",_ke="GetFunctionUrlConfig",vke="GetFunctionUrlConfigRequest",xke="GetFunctionUrlConfigResponse",bke="GetLayerVersion",Pke="GetLayerVersionByArn",Cke="GetLayerVersionByArnRequest",Ake="GetLayerVersionPolicy",Tke="GetLayerVersionPolicyRequest",Ike="GetLayerVersionPolicyResponse",wke="GetLayerVersionRequest",Rke="GetLayerVersionResponse",$ke="GetPolicy",Oke="GetProvisionedConcurrencyConfig",Dke="GetProvisionedConcurrencyConfigRequest",Nke="GetProvisionedConcurrencyConfigResponse",kke="GetPolicyRequest",Mke="GetPolicyResponse",Lke="GetRuntimeManagementConfig",zke="GetRuntimeManagementConfigRequest",Fke="GetRuntimeManagementConfigResponse",AM="Handler",Uke="HeartbeatTimeout",jke="HeartbeatTimeoutSeconds",lee="Input",Bke="InvokeArgs",dee="Ipv6AllowedForDualStack",Vke="InvokeAsyncRequest",Hke="InvokeAsyncResponse",Gke="InvokeAsync",fC="ImageConfig",pee="InvocationCompletedDetails",qke="ImageConfigError",fee="ImageConfigResponse",Wke="InvalidCodeSignatureException",Zke="InvokeComplete",yQ="IncludeExecutionData",fl="InvokeMode",TM="InputPayload",Kke="InvalidParameterValueException",IM="InstanceRequirements",Xke="InvalidRequestContentException",Jke="InvalidRuntimeException",Yke="InvokeResponseStreamUpdate",Qke="InvocationRequest",e1e="InvocationResponse",t1e="InvalidSecurityGroupIDException",r1e="InvalidSubnetIDException",mee="InvocationType",wM="ImageUri",n1e="InvokedViaFunctionUrl",o1e="InvokeWithResponseStream",i1e="InvokeWithResponseStreamCompleteEvent",s1e="InvokeWithResponseStreamRequest",a1e="InvokeWithResponseStreamResponseEvent",c1e="InvokeWithResponseStreamResponse",u1e="InvalidZipFileException",RM="Id",l1e="Invoke",gee="KmsKeyArn",d1e="KMSAccessDeniedException",p1e="KMSDisabledException",f1e="KMSInvalidStateException",ml="KMSKeyArn",m1e="KMSNotFoundException",g1e="KafkaSchemaRegistryAccessConfig",h1e="KafkaSchemaRegistryAccessConfigList",y1e="KafkaSchemaRegistryConfig",E1e="KafkaSchemaValidationConfig",S1e="KafkaSchemaValidationConfigList",mC="Layers",$M="LayerArn",_1e="ListAliasesRequest",v1e="ListAliasesResponse",x1e="ListAliases",gC="LoggingConfig",b1e="ListCapacityProviders",P1e="ListCapacityProvidersRequest",C1e="ListCapacityProvidersResponse",A1e="ListCodeSigningConfigs",T1e="ListCodeSigningConfigsRequest",I1e="ListCodeSigningConfigsResponse",w1e="ListDurableExecutionsByFunction",R1e="ListDurableExecutionsByFunctionRequest",$1e="ListDurableExecutionsByFunctionResponse",O1e="ListEventSourceMappings",D1e="ListEventSourceMappingsRequest",N1e="ListEventSourceMappingsResponse",k1e="LogFormat",M1e="ListFunctionsByCodeSigningConfig",L1e="ListFunctionsByCodeSigningConfigRequest",z1e="ListFunctionsByCodeSigningConfigResponse",F1e="ListFunctionEventInvokeConfigs",U1e="ListFunctionEventInvokeConfigsRequest",j1e="ListFunctionEventInvokeConfigsResponse",B1e="ListFunctionsRequest",V1e="ListFunctionsResponse",H1e="ListFunctionUrlConfigs",G1e="ListFunctionUrlConfigsRequest",q1e="ListFunctionUrlConfigsResponse",W1e="ListFunctionVersionsByCapacityProvider",Z1e="ListFunctionVersionsByCapacityProviderRequest",K1e="ListFunctionVersionsByCapacityProviderResponse",X1e="ListFunctions",J1e="LogGroup",hC="LicenseInfo",Y1e="LayersList",Q1e="LayersListItem",eMe="ListLayersRequest",tMe="ListLayersResponse",rMe="ListLayerVersions",nMe="ListLayerVersionsRequest",oMe="ListLayerVersionsResponse",iMe="ListLayers",As="LastModified",hee="LambdaManagedInstancesCapacityProviderConfig",sMe="LocalMountPath",OM="LastModifiedTime",aMe="LatestMatchingVersion",Ts="LayerName",cMe="ListProvisionedConcurrencyConfigs",uMe="ListProvisionedConcurrencyConfigsRequest",lMe="ListProvisionedConcurrencyConfigsResponse",dMe="LastProcessingResult",yee="LogResult",pMe="LayersReferenceList",Eee="LogType",fMe="ListTagsRequest",mMe="ListTagsResponse",gMe="ListTags",hMe="LastUpdateStatus",yMe="LastUpdateStatusReason",EMe="LastUpdateStatusReasonCode",SMe="LayerVersions",DM="LayerVersionArn",_Me="ListVersionsByFunction",vMe="ListVersionsByFunctionRequest",xMe="ListVersionsByFunctionResponse",bMe="LayerVersionContentInput",PMe="LayerVersionContentOutput",CMe="LayerVersionsList",AMe="LayerVersionsListItem",TMe="Layer",See="Location",Ue="Message",IMe="MaxAge",wMe="MasterArn",NM="MaximumBatchingWindowInSeconds",kM="MetricsConfig",RMe="MaximumConcurrency",MM="MaximumEventAgeInSeconds",$Me="MinExecutionEnvironments",OMe="MaxExecutionEnvironments",Ve="MaxItems",DMe="MinimumPollers",NMe="MaximumPollers",EQ="MasterRegion",gl="MaximumRetryAttempts",LM="MaximumRecordAgeInSeconds",zM="MemorySize",kMe="MaxVCpuCount",He="Marker",MMe="Metrics",_ee="Mode",Is="Name",vee="NextAttemptDelaySeconds",LMe="NextAttemptTimestamp",zMe="NewExecutionState",Zt="NextMarker",FMe="NoPublishedVersionException",FM="Operations",xee="OnFailure",UMe="OrganizationId",jMe="OperationPayload",BMe="OutputPayload",bee="OnSuccess",VMe="OptimizationStatus",HMe="OperationUpdate",GMe="OperationUpdates",qMe="Operation",Pee="Principal",Cee="PermissionsConfig",WMe="ProvisionedConcurrencyConfigs",ZMe="ProvisionedConcurrencyConfigList",KMe="ProvisionedConcurrencyConfigListItem",XMe="ProvisionedConcurrencyConfigNotFoundException",JMe="ProvisionedConcurrentExecutions",YMe="PayloadChunk",QMe="PerExecutionEnvironmentMaxConcurrency",UM="ParallelizationFactor",eLe="PutFunctionConcurrency",tLe="PutFunctionConcurrencyRequest",rLe="PutFunctionCodeSigningConfig",nLe="PutFunctionCodeSigningConfigRequest",oLe="PutFunctionCodeSigningConfigResponse",iLe="PreconditionFailedException",sLe="PutFunctionEventInvokeConfig",aLe="PutFunctionEventInvokeConfigRequest",cLe="PutFunctionRecursionConfig",uLe="PutFunctionRecursionConfigRequest",lLe="PutFunctionRecursionConfigResponse",dLe="PutFunctionScalingConfig",pLe="PutFunctionScalingConfigRequest",fLe="PutFunctionScalingConfigResponse",mLe="PollerGroupName",jM="ParentId",gLe="PolicyLengthExceededException",hLe="PublishLayerVersion",yLe="PublishLayerVersionRequest",ELe="PublishLayerVersionResponse",SLe="PredefinedMetricType",_Le="PrincipalOrgID",yC="ProvisionedPollerConfig",vLe="PutProvisionedConcurrencyConfig",xLe="PutProvisionedConcurrencyConfigRequest",bLe="PutProvisionedConcurrencyConfigResponse",PLe="PutRuntimeManagementConfig",CLe="PutRuntimeManagementConfigRequest",ALe="PutRuntimeManagementConfigResponse",Aee="PackageType",BM="PublishTo",TLe="PublishVersion",ILe="PublishVersionRequest",ws="Payload",wLe="Pattern",Tee="Policy",Iee="Publish",Se="Qualifier",wee="Queues",Yn="Result",RLe="Retry-After",VM="RoutingConfig",HM="ReservedConcurrentExecutions",$Le="ResourceConflictException",Ree="ReplayChildren",GM="RetryDetails",OLe="RequestedFunctionScalingConfig",dr="RevisionId",DLe="RecursiveInvocationException",NLe="ResolvedImageUri",kLe="ResourceInUseException",MLe="RequestId",qM="RecursiveLoop",LLe="RemoveLayerVersionPermission",zLe="RemoveLayerVersionPermissionRequest",FLe="ResourceNotFoundException",ULe="ResourceNotReadyException",Db="ReverseOrder",jLe="RemovePermission",WM="RequestedProvisionedConcurrentExecutions",BLe="RetentionPeriodInDays",VLe="RemovePermissionRequest",HLe="ResponseStreamContentType",GLe="RepositoryType",qLe="RequestTooLargeException",EC="RuntimeVersionArn",$ee="RuntimeVersionConfig",WLe="RuntimeVersionError",ZM="Resource",ZLe="Reason",KM="Role",XM="Runtime",Oee="Statement",KLe="SourceArn",SC="SourceAccessConfigurations",XLe="SourceAccessConfiguration",JLe="SourceAccount",SQ="StartedAfter",JM="S3Bucket",_Q="StartedBefore",_C="ScalingConfig",YM="StatusCode",Dee="StepDetails",YLe="StopDurableExecution",QLe="SendDurableExecutionCallbackFailure",eze="SendDurableExecutionCallbackFailureRequest",tze="SendDurableExecutionCallbackFailureResponse",rze="SendDurableExecutionCallbackHeartbeat",nze="SendDurableExecutionCallbackHeartbeatRequest",oze="SendDurableExecutionCallbackHeartbeatResponse",ize="SendDurableExecutionCallbackSuccess",sze="SendDurableExecutionCallbackSuccessRequest",aze="SendDurableExecutionCallbackSuccessResponse",cze="StopDurableExecutionRequest",uze="StopDurableExecutionResponse",lze="ServiceException",Nee="ScheduledEndTimestamp",kee="StepFailedDetails",QM="SecurityGroupIds",vC="StatementId",dze="SubnetIPAddressLimitReachedException",eL="SubnetIds",tL="SigningJobArn",rL="S3Key",nL="SourceKMSKeyArn",pze="SystemLogLevel",fze="ScalingMode",oL="SelfManagedEventSource",xC="SelfManagedKafkaEventSourceConfig",Mee="StepOptions",iL="S3ObjectVersion",mze="ScalingPolicies",Lee="StartingPositionTimestamp",gze="SigningProfileVersionArns",sL="SigningProfileVersionArn",zee="StartingPosition",hze="StateReason",Fee="SchemaRegistryConfig",yze="StateReasonCode",Eze="SerializedRequestEntityTooLargeException",Sze="SchemaRegistryURI",aL="StatusReason",_ze="SensitiveString",Uee="StepStartedDetails",jee="StepSucceededDetails",vze="SnapStartException",xze="SnapStartNotReadyException",bze="SnapStartResponse",Pze="SnapStartTimeoutException",bC="SnapStart",Cze="StackTrace",Aze="StackTraceEntry",Tze="StackTraceEntries",Ize="StateTransitionReason",PC="StartTimestamp",wze="StopTimestamp",cL="SubType",Rze="SchemaValidationConfigs",$ze="Size",ll="State",sc="Status",vQ="Statuses",CC="Timeout",Oze="TargetArn",AC="TracingConfig",Dze="TracingConfigResponse",Bee="TotalCodeSize",uL="TenancyConfig",Vee="TagsError",Hee="TraceHeader",TC="TenantId",Nze="TenantIsolationMode",kze="TagKeys",Mze="TooManyRequestsException",Lze="TagResource",zze="TagResourceRequest",Fze="TimeoutSeconds",Uze="TargetTrackingScalingPolicy",jze="TargetValue",lL="TumblingWindowInSeconds",ac="Tags",Gee="Topics",dL="Truncated",_e="Type",Bze="Updates",Vze="UpdateAlias",Hze="UntrustedArtifactOnDeployment",Gze="UpdateAliasRequest",qze="UnreservedConcurrentExecutions",Wze="UpdateCapacityProvider",Zze="UpdateCapacityProviderRequest",Kze="UpdateCapacityProviderResponse",Xze="UpdateCodeSigningConfig",Jze="UpdateCodeSigningConfigRequest",Yze="UpdateCodeSigningConfigResponse",Qze="UpdateEventSourceMapping",eFe="UpdateEventSourceMappingRequest",tFe="UpdateFunctionCode",rFe="UpdateFunctionCodeRequest",nFe="UpdateFunctionConfigurationRequest",oFe="UpdateFunctionConfiguration",iFe="UpdateFunctionEventInvokeConfig",sFe="UpdateFunctionEventInvokeConfigRequest",aFe="UpdateFunctionUrlConfig",cFe="UpdateFunctionUrlConfigRequest",uFe="UpdateFunctionUrlConfigResponse",lFe="UnsupportedMediaTypeException",dFe="UntagResource",qee="URI",pL="UpdateRuntimeOn",pFe="UntagResourceRequest",IC="UUID",Wee="Variables",hl="VpcConfig",fFe="VpcConfigResponse",mFe="VpcId",Ym="VersionNumber",Qm="Version",gFe="Versions",Zee="WaitCancelledDetails",hFe="WorkingDirectory",Kee="WaitDetails",Xee="WaitOptions",yFe="WaitSeconds",Jee="WaitStartedDetails",Yee="WaitSucceededDetails",Qee="X-Amz-Client-Context",EFe="X-Amz-Durable-Execution-Arn",SFe="X-Amz-Durable-Execution-Name",ete="X-Amz-Executed-Version",_Fe="X-Amz-Function-Error",tte="X-Amz-Invocation-Type",vFe="X-Amz-Log-Result",rte="X-Amz-Log-Type",nte="X-Amz-Tenant-Id",xFe="XAmznTraceId",fL="ZipFile",tt="client",Te="error",bFe="eventPayload",X="http",Ie="httpError",lr="httpHeader",Q="httpQuery",Ur="message",PFe="retryAfterSeconds",ote="streaming",xr="server",ite="smithy.ts.sdk.synthetic.com.amazonaws.lambda",CFe="tagKeys",E="com.amazonaws.lambda",AFe=[0,E,sOe,8,21],cc=[0,E,iOe,8,21],TFe=[0,E,aOe,{[ote]:1},42],IFe=[0,E,rNe,8,0],wFe=[0,E,nNe,8,0],RFe=[0,E,XQ,8,0],$Fe=[0,E,QQ,8,0],OFe=[0,E,nee,8,0],mL=[0,E,TM,8,0],yl=[0,E,jMe,8,0],DFe=[0,E,BMe,8,0],gL=[0,E,_ze,8,0],NFe=[0,E,Aze,8,0],ste=[3,E,xQ,0,[Bee,jOe,BOe,_Oe,qze],[1,1,1,1,1]],ate=[3,E,PQ,0,[Bee,uNe],[1,1]],cte=[3,E,q$e,0,[Ts,Ym,vC,fM,Pee,UMe,dr],[[0,1],[1,1],0,0,0,0,[0,{[Q]:dr}]],5],ute=[3,E,W$e,0,[Oee,dr],[0,0]],lte=[3,E,J$e,0,[ce,vC,fM,Pee,KLe,JLe,YDe,Se,dr,_Le,bNe,n1e],[[0,1],0,0,0,0,0,0,[0,{[Q]:Se}],0,0,0,2],4],dte=[3,E,Y$e,0,[Oee],[0]],eg=[3,E,z$e,0,[L$e,Is,tc,zr,VM,dr],[0,0,0,0,()=>wC,0]],wC=[3,E,eOe,0,[tOe],[129]],RC=[3,E,XP,0,[gze],[64],1],$C=[3,E,KP,0,[$Q,Fee],[0,()=>bL]],pte=[3,E,TQ,0,[Km,Yn,gt],[0,[()=>yl,0],[()=>Co,0]]],fte=[3,E,wQ,0,[gt],[[()=>nn,0]],1],mte=[3,E,FQ,0,[Fze,jke],[1,1]],gte=[3,E,jQ,0,[Km,Uke,CC],[0,1,1],1],hte=[3,E,BQ,0,[Yn],[[()=>Sl,0]],1],yte=[3,E,GQ,0,[gt],[[()=>nn,0]],1],Ete=[-3,E,HOe,{[Te]:tt,[Ie]:400},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Ete,Tb);var El=[3,E,Xm,0,[SM,ll,hl,Cee,IM,eC,gee,As],[0,0,()=>yL,()=>hL,()=>xL,()=>DC,0,0],4],OC=[3,E,QP,0,[hee],[()=>Bne],1],Ste=[-3,E,ROe,{[Te]:tt,[Ie]:400},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(Ste,Gx);var hL=[3,E,OOe,0,[$Oe],[0],1],DC=[3,E,eC,0,[kMe,fze,mze],[1,0,()=>MFe]],yL=[3,E,NOe,0,[eL,QM],[64,64],2],_te=[3,E,OQ,0,[Yn,gt],[[()=>yl,0],[()=>Co,0]]],vte=[3,E,DQ,0,[gt],[[()=>nn,0]],1],xte=[3,E,NQ,0,[ce,TC],[0,0],1],bte=[3,E,kQ,0,[ce,TC,lee,bM,hi],[0,0,[()=>_L,0],0,0],1],Pte=[3,E,MQ,0,[gt],[[()=>nn,0]],1],Cte=[3,E,LQ,0,[Yn],[[()=>Sl,0]],1],Ate=[3,E,zQ,0,[gt],[[()=>nn,0]],1],Tte=[3,E,EOe,0,[hi,$b,Bze,qOe],[[0,1],0,[()=>JFe,0],[0,4]],2],Ite=[3,E,SOe,0,[zMe,$b],[[()=>wte,0],0],1],wte=[3,E,WOe,0,[FM,Zt],[[()=>Xie,0],0]],tg=[3,E,rC,0,[MOe,gi,XP,nC,As,zr],[0,0,()=>RC,()=>NC,0,0],5],Rte=[-3,E,zOe,{[Te]:tt,[Ie]:404},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Rte,Wx);var NC=[3,E,nC,0,[Hze],[0]],$te=[-3,E,UOe,{[Te]:tt,[Ie]:400},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError($te,Zx);var Ote=[-3,E,ZOe,{[Te]:tt,[Ie]:400},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Ote,Kx);var EL=[3,E,CQ,0,[HM],[1]],Dte=[3,E,IQ,0,[Ree,Yn,gt],[2,[()=>yl,0],[()=>Co,0]]],Nte=[3,E,RQ,0,[gt],[[()=>nn,0]],1],kte=[3,E,UQ,0,[Ree],[2]],Mte=[3,E,VQ,0,[],[]],Lte=[3,E,HQ,0,[Yn],[[()=>Sl,0]],1],uc=[3,E,oc,0,[U$e,B$e,K$e,X$e,LDe,IMe],[2,64,64,64,64,1]],zte=[3,E,cOe,0,[ce,Is,tc,zr,VM],[[0,1],0,0,0,()=>wC],3],Fte=[3,E,pOe,0,[Jm,hl,Cee,IM,eC,gee,ac],[0,()=>yL,()=>hL,()=>xL,()=>DC,0,128],3],Ute=[3,E,fOe,0,[Xm],[()=>El],1],jte=[3,E,gOe,0,[XP,zr,nC,ac],[()=>RC,0,()=>NC,128],1],Bte=[3,E,hOe,0,[rC],[()=>tg],1],Vte=[3,E,xOe,0,[ce,Ob,see,yM,dC,NM,UM,zee,Lee,ic,LM,hM,gl,ac,lL,Gee,wee,SC,oL,PM,KP,xC,_C,sC,ml,kM,yC],[0,0,2,1,()=>UC,1,1,0,4,()=>lc,1,2,1,128,1,64,64,()=>DL,()=>TL,64,()=>$C,()=>GC,()=>HC,()=>MC,0,()=>FC,()=>VC],1],Hte=[3,E,POe,0,[ce,KM,qQ,XM,AM,zr,CC,zM,Iee,hl,Aee,aC,lC,ml,AC,ac,mC,CM,fC,gi,JP,cC,bC,gC,QP,BM,iC,uL],[0,0,[()=>wre,0],0,0,0,1,1,2,()=>$L,0,()=>kC,[()=>SL,0],0,()=>RL,128,64,()=>OL,()=>jC,0,64,()=>zC,()=>IL,()=>BC,()=>OC,0,()=>LC,()=>wL],3],Gte=[3,E,AOe,0,[ce,dl,Se,oc,fl],[[0,1],0,[0,{[Q]:Se}],()=>uc,0],2],qte=[3,E,TOe,0,[pC,Fr,dl,oC,oc,fl],[0,0,0,0,()=>uc,0],4],kC=[3,E,aC,0,[Oze],[0]],Wte=[3,E,YOe,0,[ce,Is],[[0,1],[0,1]],2],Zte=[3,E,eDe,0,[Jm],[[0,1]],1],Kte=[3,E,tDe,0,[Xm],[()=>El],1],Xte=[3,E,nDe,0,[gi],[[0,1]],1],Jte=[3,E,oDe,0,[],[]],Yte=[3,E,aDe,0,[IC],[[0,1]],1],Qte=[3,E,pDe,0,[ce],[[0,1]],1],ere=[3,E,lDe,0,[ce],[[0,1]],1],tre=[3,E,mDe,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],rre=[3,E,gDe,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],nre=[3,E,hDe,0,[YM],[[1,32]]],ore=[3,E,EDe,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],ire=[3,E,_De,0,[Ts,Ym],[[0,1],[1,1]],2],sre=[3,E,bDe,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],2],lc=[3,E,ic,0,[bee,xee],[()=>Poe,()=>boe]],MC=[3,E,sC,0,[vDe,IOe,fNe],[0,0,0]],LC=[3,E,iC,0,[BLe,iee],[1,1]],are=[-3,E,iDe,{[Te]:tt,[Ie]:409},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(are,Yx);var cre=[-3,E,CDe,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(cre,Qx);var ure=[-3,E,TDe,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(ure,eb);var lre=[-3,E,IDe,{[Te]:xr,[Ie]:502},[_e,Ue,ADe],[0,0,0]];Ce.TypeRegistry.for(E).registerError(lre,tb);var dre=[-3,E,DDe,{[Te]:tt,[Ie]:410},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(dre,rb);var pre=[-3,E,NDe,{[Te]:tt,[Ie]:408},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(pre,nb);var fre=[-3,E,kDe,{[Te]:tt,[Ie]:403},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(fre,ob);var mre=[-3,E,MDe,{[Te]:tt,[Ie]:408},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(mre,ib);var gre=[-3,E,jDe,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(gre,sb);var SL=[3,E,lC,0,[Wee],[[()=>Jie,0]]],hre=[3,E,RDe,0,[pl,Ue],[0,[()=>gL,0]]],yre=[3,E,HDe,0,[Wee,gt],[[()=>Jie,0],[()=>hre,0]]],zC=[3,E,cC,0,[$ze],[1],1],Co=[3,E,BDe,0,[QQ,nee,XQ,Cze],[[()=>$Fe,0],[()=>OFe,0],[()=>RFe,0],[()=>QFe,0]]],Ere=[3,E,iNe,0,[eNe,cL,zDe,RM,Is,tNe,jM,eee,tee,YQ,oee,ree,VQ,HQ,RQ,Jee,Yee,Zee,Uee,jee,kee,kQ,LQ,DQ,zQ,MQ,jQ,BQ,wQ,GQ,pee],[0,0,1,0,0,4,0,[()=>xre,0],[()=>Pre,0],[()=>vre,0],[()=>Cre,0],[()=>bre,0],()=>Mte,[()=>Lte,0],[()=>Nte,0],()=>qie,()=>Wie,[()=>Vie,0],()=>Eie,[()=>Sie,0],[()=>hie,0],[()=>bte,0],[()=>Cte,0],[()=>vte,0],[()=>Ate,0],[()=>Pte,0],()=>gte,[()=>hte,0],[()=>fte,0],[()=>yte,0],[()=>Tne,0]]],nn=[3,E,ODe,0,[ws,dL],[[()=>Co,0],2]],_L=[3,E,UDe,0,[ws,dL],[[()=>mL,0],2]],Sl=[3,E,qDe,0,[ws,dL],[[()=>yl,0],2]],_l=[3,E,KDe,0,[IC,zee,Lee,yM,NM,UM,Ob,dC,Fr,As,dMe,ll,Ize,ic,Gee,wee,SC,oL,LM,hM,gl,lL,PM,KP,xC,_C,sC,ml,cee,ZDe,kM,yC],[0,0,4,1,1,1,0,()=>UC,0,4,0,0,0,()=>lc,64,64,()=>DL,()=>TL,1,2,1,1,64,()=>$C,()=>GC,()=>HC,()=>MC,0,()=>Ire,0,()=>FC,()=>VC]],FC=[3,E,JDe,0,[MMe],[64]],Sre=[3,E,sNe,0,[hi,Om,Fr,sc,PC,uC],[0,0,0,0,4,4],5],_re=[3,E,JQ,0,[TM],[[()=>mL,0]]],vre=[3,E,YQ,0,[gt],[[()=>nn,0]],1],xre=[3,E,eee,0,[lee,iee],[[()=>_L,0],1],2],bre=[3,E,ree,0,[gt],[[()=>nn,0]],1],Pre=[3,E,tee,0,[Yn],[[()=>Sl,0]],1],Cre=[3,E,oee,0,[gt],[[()=>nn,0]]],Are=[3,E,xNe,0,[Ib,sMe],[0,0],2],Tre=[3,E,aNe,0,[wLe],[0]],UC=[3,E,dC,0,[$Ne],[()=>BFe]],Ire=[3,E,cee,0,[pl,Ue],[0,0]],wre=[3,E,dNe,0,[fL,JM,rL,iL,wM,nL],[[()=>cc,0],0,0,0,0,0]],Rre=[3,E,lNe,0,[GLe,See,wM,NLe,nL],[0,0,0,0,0]],Rs=[3,E,pNe,0,[ce,Fr,XM,KM,AM,_M,zr,CC,zM,As,vM,Qm,hl,aC,lC,ml,AC,wMe,dr,mC,ll,hze,yze,hMe,yMe,EMe,CM,Aee,fee,sL,tL,JP,cC,bC,$ee,gC,QP,VOe,iC,uL],[0,0,0,0,0,1,0,1,1,0,0,0,()=>Bie,()=>kC,[()=>yre,0],0,()=>Iie,0,0,()=>KFe,0,0,0,0,0,0,()=>OL,0,[()=>Sne,0],0,0,64,()=>zC,()=>pie,[()=>eie,0],()=>BC,()=>OC,0,()=>LC,()=>wL]],rg=[3,E,gNe,0,[As,Fr,gl,MM,ic],[4,0,1,1,()=>lc]],Nb=[3,E,uee,0,[$Me,OMe],[1,1]],$re=[3,E,PNe,0,[pC,Fr,oC,OM,dl,oc,fl],[0,0,0,0,0,()=>uc,0],5],Ore=[3,E,INe,0,[Fr,ll],[0,0],2],Dre=[-3,E,wNe,{[Te]:tt,[Ie]:400},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(Dre,Xx);var Nre=[3,E,MNe,0,[],[]],kre=[3,E,LNe,0,[xQ,PQ],[()=>ste,()=>ate]],Mre=[3,E,NNe,0,[ce,Is],[[0,1],[0,1]],2],Lre=[3,E,FNe,0,[Jm],[[0,1]],1],zre=[3,E,UNe,0,[Xm],[()=>El],1],Fre=[3,E,BNe,0,[gi],[[0,1]],1],Ure=[3,E,VNe,0,[rC],[()=>tg],1],jre=[3,E,qNe,0,[hi,yQ,Ve,He,Db],[[0,1],[2,{[Q]:yQ}],[1,{[Q]:Ve}],[0,{[Q]:He}],[2,{[Q]:Db}]],1],Bre=[3,E,WNe,0,[aee,Zt],[[()=>UFe,0],0],1],Vre=[3,E,ZNe,0,[hi],[[0,1]],1],Hre=[3,E,KNe,0,[hi,Om,Fr,PC,sc,TM,Yn,gt,uC,Qm,Hee],[0,0,0,4,0,[()=>mL,0],[()=>DFe,0],[()=>Co,0],4,0,()=>Tie],5],Gre=[3,E,JNe,0,[hi,$b,He,Ve],[[0,1],[0,{[Q]:$b}],[0,{[Q]:He}],[1,{[Q]:Ve}]],2],qre=[3,E,YNe,0,[FM,Zt],[[()=>Xie,0],0],1],Wre=[3,E,eke,0,[IC],[[0,1]],1],Zre=[3,E,ake,0,[ce],[[0,1]],1],Kre=[3,E,cke,0,[gi,ce],[0,0],2],Xre=[3,E,nke,0,[ce],[[0,1]],1],Jre=[3,E,oke,0,[HM],[1]],Yre=[3,E,ike,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],Qre=[3,E,dke,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],ene=[3,E,mke,0,[ce],[[0,1]],1],tne=[3,E,gke,0,[qM],[0]],rne=[3,E,pke,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],nne=[3,E,hke,0,[XOe,qQ,ac,Vee,CQ],[[()=>Rs,0],()=>Rre,128,()=>Pie,()=>EL]],one=[3,E,Eke,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],2],ine=[3,E,Ske,0,[Fr,j$e,OLe],[0,()=>Nb,()=>Nb]],sne=[3,E,vke,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],ane=[3,E,xke,0,[pC,Fr,dl,oC,OM,oc,fl],[0,0,0,0,0,()=>uc,0],5],cne=[3,E,Cke,0,[Ib],[[0,{[Q]:Ib}]],1],une=[3,E,Tke,0,[Ts,Ym],[[0,1],[1,1]],2],lne=[3,E,Ike,0,[Tee,dr],[0,0]],dne=[3,E,wke,0,[Ts,Ym],[[0,1],[1,1]],2],vL=[3,E,Rke,0,[xM,$M,DM,zr,EM,Qm,tC,hC,YP],[()=>PL,0,0,0,0,1,64,0,64]],pne=[3,E,kke,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],fne=[3,E,Mke,0,[Tee,dr],[0,0]],mne=[3,E,Dke,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],2],gne=[3,E,Nke,0,[WM,mM,gM,sc,aL,As],[1,1,1,0,0,0]],hne=[3,E,zke,0,[ce,Se],[[0,1],[0,{[Q]:Se}]],1],yne=[3,E,Fke,0,[pL,EC,Fr],[0,0,0]],jC=[3,E,fC,0,[VDe,KOe,hFe],[64,64,0]],Ene=[3,E,qke,0,[pl,Ue],[0,[()=>gL,0]]],Sne=[3,E,fee,0,[fC,gt],[()=>jC,[()=>Ene,0]]],xL=[3,E,IM,0,[JP,V$e,FDe],[64,64,64]],_ne=[-3,E,Wke,{[Te]:tt,[Ie]:400},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(_ne,Jx);var vne=[-3,E,Kke,{[Te]:tt,[Ie]:400},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(vne,zx);var xne=[-3,E,Xke,{[Te]:tt,[Ie]:400},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(xne,ab);var bne=[-3,E,Jke,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(bne,cb);var Pne=[-3,E,t1e,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Pne,ub);var Cne=[-3,E,r1e,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Cne,lb);var Ane=[-3,E,u1e,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Ane,db);var Tne=[3,E,pee,0,[PC,uC,MLe,gt],[4,4,0,[()=>nn,0]],3],Ine=[3,E,Qke,0,[ce,mee,Eee,AQ,Om,ws,Se,TC],[[0,1],[0,{[lr]:tte}],[0,{[lr]:rte}],[0,{[lr]:Qee}],[0,{[lr]:SFe}],[()=>cc,16],[0,{[Q]:Se}],[0,{[lr]:nte}]],1],wne=[3,E,e1e,0,[YM,mNe,yee,ws,bM,hi],[[1,32],[0,{[lr]:_Fe}],[0,{[lr]:vFe}],[()=>cc,16],[0,{[lr]:ete}],[0,{[lr]:EFe}]]],Rne=[3,E,Vke,0,[ce,Bke],[[0,1],[()=>TFe,16]],2],$ne=[3,E,Hke,0,[sc],[[1,32]]],One=[3,E,Yke,0,[ws],[[()=>cc,{[bFe]:1}]]],Dne=[3,E,i1e,0,[pl,wDe,yee],[0,0,0]],Nne=[3,E,s1e,0,[ce,mee,Eee,AQ,Se,ws,TC],[[0,1],[0,{[lr]:tte}],[0,{[lr]:rte}],[0,{[lr]:Qee}],[0,{[Q]:Se}],[()=>cc,16],[0,{[lr]:nte}]],1],kne=[3,E,c1e,0,[YM,bM,QDe,HLe],[[1,32],[0,{[lr]:ete}],[()=>Yie,16],[0,{[lr]:GOe}]]],Mne=[3,E,g1e,0,[_e,qee],[0,0]],bL=[3,E,y1e,0,[Sze,GDe,F$e,Rze],[0,0,()=>qFe,()=>WFe]],Lne=[3,E,E1e,0,[nOe],[0]],zne=[-3,E,d1e,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(zne,pb);var Fne=[-3,E,p1e,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Fne,fb);var Une=[-3,E,f1e,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Une,mb);var jne=[-3,E,m1e,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(jne,gb);var Bne=[3,E,hee,0,[SM,QMe,$De],[0,1,1],1],Vne=[3,E,TMe,0,[Ib,_M,sL,tL],[0,1,0,0]],Hne=[3,E,Q1e,0,[Ts,$M,aMe],[0,0,()=>CL]],Gne=[3,E,bMe,0,[JM,rL,iL,fL],[0,0,0,[()=>cc,0]]],PL=[3,E,PMe,0,[See,vM,_M,sL,tL],[0,0,1,0,0]],CL=[3,E,AMe,0,[DM,Qm,zr,EM,tC,hC,YP],[0,1,0,0,64,0,64]],qne=[3,E,_1e,0,[ce,tc,He,Ve],[[0,1],[0,{[Q]:tc}],[0,{[Q]:He}],[1,{[Q]:Ve}]],1],Wne=[3,E,v1e,0,[Zt,rOe],[0,()=>kFe]],Zne=[3,E,P1e,0,[ll,He,Ve],[[0,{[Q]:ll}],[0,{[Q]:He}],[1,{[Q]:Ve}]]],Kne=[3,E,C1e,0,[kOe,Zt],[()=>LFe,0],1],Xne=[3,E,T1e,0,[He,Ve],[[0,{[Q]:He}],[1,{[Q]:Ve}]]],Jne=[3,E,I1e,0,[Zt,FOe],[0,()=>zFe]],Yne=[3,E,R1e,0,[ce,Se,Om,vQ,SQ,_Q,Db,He,Ve],[[0,1],[0,{[Q]:Se}],[0,{[Q]:Om}],[64,{[Q]:vQ}],[4,{[Q]:SQ}],[4,{[Q]:_Q}],[2,{[Q]:Db}],[0,{[Q]:He}],[1,{[Q]:Ve}]],1],Qne=[3,E,$1e,0,[WQ,Zt],[()=>FFe,0]],eoe=[3,E,D1e,0,[Ob,ce,He,Ve],[[0,{[Q]:Ob}],[0,{[Q]:ce}],[0,{[Q]:He}],[1,{[Q]:Ve}]]],toe=[3,E,N1e,0,[Zt,WDe],[0,()=>jFe]],roe=[3,E,U1e,0,[ce,He,Ve],[[0,1],[0,{[Q]:He}],[1,{[Q]:Ve}]],1],noe=[3,E,j1e,0,[yNe,Zt],[()=>VFe,0]],ooe=[3,E,L1e,0,[gi,He,Ve],[[0,1],[0,{[Q]:He}],[1,{[Q]:Ve}]],1],ioe=[3,E,z1e,0,[Zt,cNe],[0,64]],soe=[3,E,B1e,0,[EQ,tc,He,Ve],[[0,{[Q]:EQ}],[0,{[Q]:tc}],[0,{[Q]:He}],[1,{[Q]:Ve}]]],aoe=[3,E,V1e,0,[Zt,ONe],[0,[()=>Kie,0]]],coe=[3,E,G1e,0,[ce,He,Ve],[[0,1],[0,{[Q]:He}],[1,{[Q]:Ve}]],1],uoe=[3,E,q1e,0,[ANe,Zt],[()=>HFe,0],1],loe=[3,E,Z1e,0,[Jm,He,Ve],[[0,1],[0,{[Q]:He}],[1,{[Q]:Ve}]],1],doe=[3,E,K1e,0,[SM,RNe,Zt],[0,()=>GFe,0],2],poe=[3,E,eMe,0,[Rb,He,Ve,wb],[[0,{[Q]:Rb}],[0,{[Q]:He}],[1,{[Q]:Ve}],[0,{[Q]:wb}]]],foe=[3,E,tMe,0,[Zt,mC],[0,()=>ZFe]],moe=[3,E,nMe,0,[Ts,Rb,He,Ve,wb],[[0,1],[0,{[Q]:Rb}],[0,{[Q]:He}],[1,{[Q]:Ve}],[0,{[Q]:wb}]],1],goe=[3,E,oMe,0,[Zt,SMe],[0,()=>XFe]],hoe=[3,E,uMe,0,[ce,He,Ve],[[0,1],[0,{[Q]:He}],[1,{[Q]:Ve}]],1],yoe=[3,E,lMe,0,[WMe,Zt],[()=>YFe,0]],Eoe=[3,E,fMe,0,[ZM],[[0,1]],1],Soe=[3,E,mMe,0,[ac],[128]],_oe=[3,E,vMe,0,[ce,He,Ve],[[0,1],[0,{[Q]:He}],[1,{[Q]:Ve}]],1],voe=[3,E,xMe,0,[Zt,gFe],[0,[()=>Kie,0]]],BC=[3,E,gC,0,[k1e,H$e,pze,J1e],[0,0,0,0]],xoe=[-3,E,FMe,{[Te]:tt,[Ie]:400},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(xoe,hb);var boe=[3,E,xee,0,[ZQ],[0]],Poe=[3,E,bee,0,[ZQ],[0]],Coe=[3,E,qMe,0,[RM,_e,PC,sc,jM,Is,cL,uC,JQ,IQ,Dee,Kee,TQ,OQ],[0,0,4,0,0,0,0,4,[()=>_re,0],[()=>Dte,0],[()=>gie,0],()=>Hie,[()=>pte,0],[()=>_te,0]],4],Aoe=[3,E,HMe,0,[RM,_e,fM,jM,Is,cL,ws,gt,UQ,Mee,Xee,FQ,NQ],[0,0,0,0,0,0,[()=>yl,0],[()=>Co,0],()=>kte,()=>yie,()=>Gie,()=>mte,()=>xte],3],Toe=[-3,E,gLe,{[Te]:tt,[Ie]:400},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(Toe,Fx);var Ioe=[-3,E,iLe,{[Te]:tt,[Ie]:412},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(Ioe,Ux);var woe=[3,E,KMe,0,[Fr,WM,mM,gM,sc,aL,As],[0,1,1,1,0,0,0]],Roe=[-3,E,XMe,{[Te]:tt,[Ie]:404},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(Roe,Ab);var VC=[3,E,yC,0,[DMe,NMe,mLe],[1,1,0]],$oe=[3,E,yLe,0,[Ts,xM,zr,tC,hC,YP],[[0,1],[()=>Gne,0],0,64,0,64],2],Ooe=[3,E,ELe,0,[xM,$M,DM,zr,EM,Qm,tC,hC,YP],[()=>PL,0,0,0,0,1,64,0,64]],Doe=[3,E,ILe,0,[ce,vM,zr,dr,BM],[[0,1],0,0,0,0],1],Noe=[3,E,nLe,0,[gi,ce],[0,[0,1]],2],koe=[3,E,oLe,0,[gi,ce],[0,0],2],Moe=[3,E,tLe,0,[ce,HM],[[0,1],1],2],Loe=[3,E,aLe,0,[ce,Se,gl,MM,ic],[[0,1],[0,{[Q]:Se}],1,1,()=>lc],1],zoe=[3,E,uLe,0,[ce,qM],[[0,1],0],2],Foe=[3,E,lLe,0,[qM],[0]],Uoe=[3,E,pLe,0,[ce,Se,uee],[[0,1],[0,{[Q]:Se}],()=>Nb],2],joe=[3,E,fLe,0,[_Ne],[0]],Boe=[3,E,xLe,0,[ce,Se,JMe],[[0,1],[0,{[Q]:Se}],1],3],Voe=[3,E,bLe,0,[WM,mM,gM,sc,aL,As],[1,1,1,0,0,0]],Hoe=[3,E,CLe,0,[ce,pL,Se,EC],[[0,1],0,[0,{[Q]:Se}],0],2],Goe=[3,E,ALe,0,[pL,Fr,EC],[0,0,0],2],qoe=[-3,E,DLe,{[Te]:tt,[Ie]:400},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(qoe,yb);var Woe=[3,E,zLe,0,[Ts,Ym,vC,dr],[[0,1],[1,1],[0,1],[0,{[Q]:dr}]],3],Zoe=[3,E,VLe,0,[ce,vC,Se,dr],[[0,1],[0,1],[0,{[Q]:Se}],[0,{[Q]:dr}]],2],Koe=[-3,E,qLe,{[Te]:tt,[Ie]:413},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(Koe,Eb);var Xoe=[-3,E,$Le,{[Te]:tt,[Ie]:409},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(Xoe,jx);var Joe=[-3,E,kLe,{[Te]:tt,[Ie]:400},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Joe,qx);var Yoe=[-3,E,FLe,{[Te]:tt,[Ie]:404},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(Yoe,Bx);var Qoe=[-3,E,ULe,{[Te]:xr,[Ie]:502},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(Qoe,Sb);var AL=[3,E,GM,0,[lOe,vee],[1,1]],eie=[3,E,$ee,0,[EC,gt],[0,[()=>tie,0]]],tie=[3,E,WLe,0,[pl,Ue],[0,[()=>gL,0]]],HC=[3,E,_C,0,[RMe],[1]],TL=[3,E,oL,0,[hQ],[[2,E,hQ,0,0,64]]],GC=[3,E,xC,0,[$Q,Fee],[0,()=>bL]],rie=[3,E,eze,0,[Km,gt],[[0,1],[()=>Co,16]],1],nie=[3,E,tze,0,[],[]],oie=[3,E,nze,0,[Km],[[0,1]],1],iie=[3,E,oze,0,[],[]],sie=[3,E,sze,0,[Km,Yn],[[0,1],[()=>AFe,16]],1],aie=[3,E,aze,0,[],[]],cie=[-3,E,Eze,{[Te]:tt,[Ie]:413},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(cie,_b);var uie=[-3,E,lze,{[Te]:xr,[Ie]:500},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(uie,Vx);var IL=[3,E,bC,0,[bQ],[0]],lie=[-3,E,vze,{[Te]:tt,[Ie]:400},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(lie,vb);var die=[-3,E,xze,{[Te]:tt,[Ie]:409},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(die,xb);var pie=[3,E,bze,0,[bQ,VMe],[0,0]],fie=[-3,E,Pze,{[Te]:tt,[Ie]:408},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(fie,bb);var mie=[3,E,XLe,0,[_e,qee],[0,0]],gie=[3,E,Dee,0,[oOe,LMe,Yn,gt],[1,4,[()=>yl,0],[()=>Co,0]]],hie=[3,E,kee,0,[gt,GM],[[()=>nn,0],()=>AL],2],yie=[3,E,Mee,0,[vee],[1]],Eie=[3,E,Uee,0,[],[]],Sie=[3,E,jee,0,[Yn,GM],[[()=>Sl,0],()=>AL],2],_ie=[3,E,cze,0,[hi,gt],[[0,1],[()=>Co,16]],1],vie=[3,E,uze,0,[wze],[4],1],xie=[-3,E,dze,{[Te]:xr,[Ie]:502},[_e,Ue],[0,0]];Ce.TypeRegistry.for(E).registerError(xie,Pb);var bie=[3,E,zze,0,[ZM,ac],[[0,1],128],2],Pie=[3,E,Vee,0,[pl,Ue],[0,0],2],Cie=[3,E,Uze,0,[SLe,jze],[0,1],2],wL=[3,E,uL,0,[Nze],[0],1],Aie=[-3,E,Mze,{[Te]:tt,[Ie]:429},[PFe,_e,Ur,ZLe],[[0,{[lr]:RLe}],0,0,0]];Ce.TypeRegistry.for(E).registerError(Aie,Hx);var Tie=[3,E,Hee,0,[xFe],[0]],RL=[3,E,AC,0,[_ee],[0]],Iie=[3,E,Dze,0,[_ee],[0]],wie=[-3,E,lFe,{[Te]:tt,[Ie]:415},[_e,Ur],[0,0]];Ce.TypeRegistry.for(E).registerError(wie,Cb);var Rie=[3,E,pFe,0,[ZM,kze],[[0,1],[64,{[Q]:CFe}]],2],$ie=[3,E,Gze,0,[ce,Is,tc,zr,VM,dr],[[0,1],[0,1],0,0,()=>wC,0],2],Oie=[3,E,Zze,0,[Jm,eC],[[0,1],()=>DC],1],Die=[3,E,Kze,0,[Xm],[()=>El],1],Nie=[3,E,Jze,0,[gi,zr,XP,nC],[[0,1],0,()=>RC,()=>NC],1],kie=[3,E,Yze,0,[rC],[()=>tg],1],Mie=[3,E,eFe,0,[IC,ce,see,yM,dC,NM,ic,LM,hM,gl,UM,SC,lL,PM,_C,KP,xC,sC,ml,kM,yC],[[0,1],0,2,1,()=>UC,1,()=>lc,1,2,1,1,()=>DL,1,64,()=>HC,()=>$C,()=>GC,()=>MC,0,()=>FC,()=>VC],1],Lie=[3,E,rFe,0,[ce,fL,JM,rL,iL,wM,Iee,PDe,dr,JP,nL,BM],[[0,1],[()=>cc,0],0,0,0,0,2,2,0,64,0,0],1],zie=[3,E,nFe,0,[ce,KM,AM,zr,CC,zM,hl,lC,XM,aC,ml,AC,dr,mC,CM,fC,cC,bC,gC,QP,iC],[[0,1],0,0,0,1,1,()=>$L,[()=>SL,0],0,()=>kC,0,()=>RL,0,64,()=>OL,()=>jC,()=>zC,()=>IL,()=>BC,()=>OC,()=>LC],1],Fie=[3,E,sFe,0,[ce,Se,gl,MM,ic],[[0,1],[0,{[Q]:Se}],1,1,()=>lc],1],Uie=[3,E,cFe,0,[ce,Se,dl,oc,fl],[[0,1],[0,{[Q]:Se}],0,()=>uc,0],1],jie=[3,E,uFe,0,[pC,Fr,dl,oC,OM,oc,fl],[0,0,0,0,0,()=>uc,0],5],$L=[3,E,hl,0,[eL,QM,dee],[64,64,2]],Bie=[3,E,fFe,0,[eL,QM,mFe,dee],[64,64,0,2]],Vie=[3,E,Zee,0,[gt],[[()=>nn,0]]],Hie=[3,E,Kee,0,[Nee],[4]],Gie=[3,E,Xee,0,[yFe],[1]],qie=[3,E,Jee,0,[KQ,Nee],[1,4],2],Wie=[3,E,Yee,0,[KQ],[1]],Qn="unit",Zie=[-3,ite,"LambdaServiceException",0,[],[]];Ce.TypeRegistry.for(ite).registerError(Zie,Ee);var kFe=[1,E,Z$e,0,()=>eg],MFe=[1,E,DOe,0,()=>Cie],LFe=[1,E,wOe,0,()=>El],zFe=[1,E,LOe,0,()=>tg],FFe=[1,E,WQ,0,()=>Sre],UFe=[1,E,aee,0,[()=>Ere,0]],jFe=[1,E,XDe,0,()=>_l],OL=[1,E,vNe,0,()=>Are],BFe=[1,E,ENe,0,()=>Tre],VFe=[1,E,hNe,0,()=>rg],Kie=[1,E,SNe,0,[()=>Rs,0]],HFe=[1,E,CNe,0,()=>$re],GFe=[1,E,TNe,0,()=>Ore],qFe=[1,E,h1e,0,()=>Mne],WFe=[1,E,S1e,0,()=>Lne],ZFe=[1,E,Y1e,0,()=>Hne],KFe=[1,E,pMe,0,()=>Vne],XFe=[1,E,CMe,0,()=>CL],Xie=[1,E,FM,0,[()=>Coe,0]],JFe=[1,E,GMe,0,[()=>Aoe,0]],YFe=[1,E,ZMe,0,()=>woe],DL=[1,E,SC,0,()=>mie],QFe=[1,E,Tze,0,[()=>NFe,0]],Jie=[2,E,oNe,8,[()=>IFe,0],[()=>wFe,0]],Yie=[4,E,a1e,{[ote]:1},[YMe,Zke],[[()=>One,0],()=>Dne]],Qie=[9,E,G$e,{[X]:["POST","/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy",201]},()=>cte,()=>ute],ese=[9,E,Q$e,{[X]:["POST","/2015-03-31/functions/{FunctionName}/policy",201]},()=>lte,()=>dte],tse=[9,E,yOe,{[X]:["POST","/2025-12-01/durable-executions/{DurableExecutionArn}/checkpoint",200]},()=>Tte,()=>Ite],rse=[9,E,uOe,{[X]:["POST","/2015-03-31/functions/{FunctionName}/aliases",201]},()=>zte,()=>eg],nse=[9,E,dOe,{[X]:["POST","/2025-11-30/capacity-providers",202]},()=>Fte,()=>Ute],ose=[9,E,mOe,{[X]:["POST","/2020-04-22/code-signing-configs",201]},()=>jte,()=>Bte],ise=[9,E,vOe,{[X]:["POST","/2015-03-31/event-source-mappings",202]},()=>Vte,()=>_l],sse=[9,E,bOe,{[X]:["POST","/2015-03-31/functions",201]},()=>Hte,()=>Rs],ase=[9,E,COe,{[X]:["POST","/2021-10-31/functions/{FunctionName}/url",201]},()=>Gte,()=>qte],cse=[9,E,JOe,{[X]:["DELETE","/2015-03-31/functions/{FunctionName}/aliases/{Name}",204]},()=>Wte,()=>Qn],use=[9,E,QOe,{[X]:["DELETE","/2025-11-30/capacity-providers/{CapacityProviderName}",202]},()=>Zte,()=>Kte],lse=[9,E,rDe,{[X]:["DELETE","/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",204]},()=>Xte,()=>Jte],dse=[9,E,sDe,{[X]:["DELETE","/2015-03-31/event-source-mappings/{UUID}",202]},()=>Yte,()=>_l],pse=[9,E,cDe,{[X]:["DELETE","/2015-03-31/functions/{FunctionName}",200]},()=>rre,()=>nre],fse=[9,E,dDe,{[X]:["DELETE","/2020-06-30/functions/{FunctionName}/code-signing-config",204]},()=>Qte,()=>Qn],mse=[9,E,uDe,{[X]:["DELETE","/2017-10-31/functions/{FunctionName}/concurrency",204]},()=>ere,()=>Qn],gse=[9,E,fDe,{[X]:["DELETE","/2019-09-25/functions/{FunctionName}/event-invoke-config",204]},()=>tre,()=>Qn],hse=[9,E,yDe,{[X]:["DELETE","/2021-10-31/functions/{FunctionName}/url",204]},()=>ore,()=>Qn],yse=[9,E,SDe,{[X]:["DELETE","/2018-10-31/layers/{LayerName}/versions/{VersionNumber}",204]},()=>ire,()=>Qn],Ese=[9,E,xDe,{[X]:["DELETE","/2019-09-30/functions/{FunctionName}/provisioned-concurrency",204]},()=>sre,()=>Qn],Sse=[9,E,kNe,{[X]:["GET","/2016-08-19/account-settings",200]},()=>Nre,()=>kre],_se=[9,E,DNe,{[X]:["GET","/2015-03-31/functions/{FunctionName}/aliases/{Name}",200]},()=>Mre,()=>eg],vse=[9,E,zNe,{[X]:["GET","/2025-11-30/capacity-providers/{CapacityProviderName}",200]},()=>Lre,()=>zre],xse=[9,E,jNe,{[X]:["GET","/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",200]},()=>Fre,()=>Ure],bse=[9,E,HNe,{[X]:["GET","/2025-12-01/durable-executions/{DurableExecutionArn}",200]},()=>Vre,()=>Hre],Pse=[9,E,GNe,{[X]:["GET","/2025-12-01/durable-executions/{DurableExecutionArn}/history",200]},()=>jre,()=>Bre],Cse=[9,E,XNe,{[X]:["GET","/2025-12-01/durable-executions/{DurableExecutionArn}/state",200]},()=>Gre,()=>qre],Ase=[9,E,QNe,{[X]:["GET","/2015-03-31/event-source-mappings/{UUID}",200]},()=>Wre,()=>_l],Tse=[9,E,tke,{[X]:["GET","/2015-03-31/functions/{FunctionName}",200]},()=>rne,()=>nne],Ise=[9,E,ske,{[X]:["GET","/2020-06-30/functions/{FunctionName}/code-signing-config",200]},()=>Zre,()=>Kre],wse=[9,E,rke,{[X]:["GET","/2019-09-30/functions/{FunctionName}/concurrency",200]},()=>Xre,()=>Jre],Rse=[9,E,uke,{[X]:["GET","/2015-03-31/functions/{FunctionName}/configuration",200]},()=>Yre,()=>Rs],$se=[9,E,lke,{[X]:["GET","/2019-09-25/functions/{FunctionName}/event-invoke-config",200]},()=>Qre,()=>rg],Ose=[9,E,fke,{[X]:["GET","/2024-08-31/functions/{FunctionName}/recursion-config",200]},()=>ene,()=>tne],Dse=[9,E,yke,{[X]:["GET","/2025-11-30/functions/{FunctionName}/function-scaling-config",200]},()=>one,()=>ine],Nse=[9,E,_ke,{[X]:["GET","/2021-10-31/functions/{FunctionName}/url",200]},()=>sne,()=>ane],kse=[9,E,bke,{[X]:["GET","/2018-10-31/layers/{LayerName}/versions/{VersionNumber}",200]},()=>dne,()=>vL],Mse=[9,E,Pke,{[X]:["GET","/2018-10-31/layers?find=LayerVersion",200]},()=>cne,()=>vL],Lse=[9,E,Ake,{[X]:["GET","/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy",200]},()=>une,()=>lne],zse=[9,E,$ke,{[X]:["GET","/2015-03-31/functions/{FunctionName}/policy",200]},()=>pne,()=>fne],Fse=[9,E,Oke,{[X]:["GET","/2019-09-30/functions/{FunctionName}/provisioned-concurrency",200]},()=>mne,()=>gne],Use=[9,E,Lke,{[X]:["GET","/2021-07-20/functions/{FunctionName}/runtime-management-config",200]},()=>hne,()=>yne],jse=[9,E,l1e,{[X]:["POST","/2015-03-31/functions/{FunctionName}/invocations",200]},()=>Ine,()=>wne],Bse=[9,E,Gke,{[X]:["POST","/2014-11-13/functions/{FunctionName}/invoke-async",202]},()=>Rne,()=>$ne],Vse=[9,E,o1e,{[X]:["POST","/2021-11-15/functions/{FunctionName}/response-streaming-invocations",200]},()=>Nne,()=>kne],Hse=[9,E,x1e,{[X]:["GET","/2015-03-31/functions/{FunctionName}/aliases",200]},()=>qne,()=>Wne],Gse=[9,E,b1e,{[X]:["GET","/2025-11-30/capacity-providers",200]},()=>Zne,()=>Kne],qse=[9,E,A1e,{[X]:["GET","/2020-04-22/code-signing-configs",200]},()=>Xne,()=>Jne],Wse=[9,E,w1e,{[X]:["GET","/2025-12-01/functions/{FunctionName}/durable-executions",200]},()=>Yne,()=>Qne],Zse=[9,E,O1e,{[X]:["GET","/2015-03-31/event-source-mappings",200]},()=>eoe,()=>toe],Kse=[9,E,F1e,{[X]:["GET","/2019-09-25/functions/{FunctionName}/event-invoke-config/list",200]},()=>roe,()=>noe],Xse=[9,E,X1e,{[X]:["GET","/2015-03-31/functions",200]},()=>soe,()=>aoe],Jse=[9,E,M1e,{[X]:["GET","/2020-04-22/code-signing-configs/{CodeSigningConfigArn}/functions",200]},()=>ooe,()=>ioe],Yse=[9,E,H1e,{[X]:["GET","/2021-10-31/functions/{FunctionName}/urls",200]},()=>coe,()=>uoe],Qse=[9,E,W1e,{[X]:["GET","/2025-11-30/capacity-providers/{CapacityProviderName}/function-versions",200]},()=>loe,()=>doe],eae=[9,E,iMe,{[X]:["GET","/2018-10-31/layers",200]},()=>poe,()=>foe],tae=[9,E,rMe,{[X]:["GET","/2018-10-31/layers/{LayerName}/versions",200]},()=>moe,()=>goe],rae=[9,E,cMe,{[X]:["GET","/2019-09-30/functions/{FunctionName}/provisioned-concurrency?List=ALL",200]},()=>hoe,()=>yoe],nae=[9,E,gMe,{[X]:["GET","/2017-03-31/tags/{Resource}",200]},()=>Eoe,()=>Soe],oae=[9,E,_Me,{[X]:["GET","/2015-03-31/functions/{FunctionName}/versions",200]},()=>_oe,()=>voe],iae=[9,E,hLe,{[X]:["POST","/2018-10-31/layers/{LayerName}/versions",201]},()=>$oe,()=>Ooe],sae=[9,E,TLe,{[X]:["POST","/2015-03-31/functions/{FunctionName}/versions",201]},()=>Doe,()=>Rs],aae=[9,E,rLe,{[X]:["PUT","/2020-06-30/functions/{FunctionName}/code-signing-config",200]},()=>Noe,()=>koe],cae=[9,E,eLe,{[X]:["PUT","/2017-10-31/functions/{FunctionName}/concurrency",200]},()=>Moe,()=>EL],uae=[9,E,sLe,{[X]:["PUT","/2019-09-25/functions/{FunctionName}/event-invoke-config",200]},()=>Loe,()=>rg],lae=[9,E,cLe,{[X]:["PUT","/2024-08-31/functions/{FunctionName}/recursion-config",200]},()=>zoe,()=>Foe],dae=[9,E,dLe,{[X]:["PUT","/2025-11-30/functions/{FunctionName}/function-scaling-config",202]},()=>Uoe,()=>joe],pae=[9,E,vLe,{[X]:["PUT","/2019-09-30/functions/{FunctionName}/provisioned-concurrency",202]},()=>Boe,()=>Voe],fae=[9,E,PLe,{[X]:["PUT","/2021-07-20/functions/{FunctionName}/runtime-management-config",200]},()=>Hoe,()=>Goe],mae=[9,E,LLe,{[X]:["DELETE","/2018-10-31/layers/{LayerName}/versions/{VersionNumber}/policy/{StatementId}",204]},()=>Woe,()=>Qn],gae=[9,E,jLe,{[X]:["DELETE","/2015-03-31/functions/{FunctionName}/policy/{StatementId}",204]},()=>Zoe,()=>Qn],hae=[9,E,QLe,{[X]:["POST","/2025-12-01/durable-execution-callbacks/{CallbackId}/fail",200]},()=>rie,()=>nie],yae=[9,E,rze,{[X]:["POST","/2025-12-01/durable-execution-callbacks/{CallbackId}/heartbeat",200]},()=>oie,()=>iie],Eae=[9,E,ize,{[X]:["POST","/2025-12-01/durable-execution-callbacks/{CallbackId}/succeed",200]},()=>sie,()=>aie],Sae=[9,E,YLe,{[X]:["POST","/2025-12-01/durable-executions/{DurableExecutionArn}/stop",200]},()=>_ie,()=>vie],_ae=[9,E,Lze,{[X]:["POST","/2017-03-31/tags/{Resource}",204]},()=>bie,()=>Qn],vae=[9,E,dFe,{[X]:["DELETE","/2017-03-31/tags/{Resource}",204]},()=>Rie,()=>Qn],xae=[9,E,Vze,{[X]:["PUT","/2015-03-31/functions/{FunctionName}/aliases/{Name}",200]},()=>$ie,()=>eg],bae=[9,E,Wze,{[X]:["PUT","/2025-11-30/capacity-providers/{CapacityProviderName}",202]},()=>Oie,()=>Die],Pae=[9,E,Xze,{[X]:["PUT","/2020-04-22/code-signing-configs/{CodeSigningConfigArn}",200]},()=>Nie,()=>kie],Cae=[9,E,Qze,{[X]:["PUT","/2015-03-31/event-source-mappings/{UUID}",202]},()=>Mie,()=>_l],Aae=[9,E,tFe,{[X]:["PUT","/2015-03-31/functions/{FunctionName}/code",200]},()=>Lie,()=>Rs],Tae=[9,E,oFe,{[X]:["PUT","/2015-03-31/functions/{FunctionName}/configuration",200]},()=>zie,()=>Rs],Iae=[9,E,iFe,{[X]:["POST","/2019-09-25/functions/{FunctionName}/event-invoke-config",200]},()=>Fie,()=>rg],wae=[9,E,aFe,{[X]:["PUT","/2021-10-31/functions/{FunctionName}/url",200]},()=>Uie,()=>jie],kb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","AddLayerVersionPermission",{}).n("LambdaClient","AddLayerVersionPermissionCommand").sc(Qie).build(){static{i(this,"AddLayerVersionPermissionCommand")}},Mb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","AddPermission",{}).n("LambdaClient","AddPermissionCommand").sc(ese).build(){static{i(this,"AddPermissionCommand")}},Lb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","CheckpointDurableExecution",{}).n("LambdaClient","CheckpointDurableExecutionCommand").sc(tse).build(){static{i(this,"CheckpointDurableExecutionCommand")}},zb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","CreateAlias",{}).n("LambdaClient","CreateAliasCommand").sc(rse).build(){static{i(this,"CreateAliasCommand")}},Fb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","CreateCapacityProvider",{}).n("LambdaClient","CreateCapacityProviderCommand").sc(nse).build(){static{i(this,"CreateCapacityProviderCommand")}},Ub=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","CreateCodeSigningConfig",{}).n("LambdaClient","CreateCodeSigningConfigCommand").sc(ose).build(){static{i(this,"CreateCodeSigningConfigCommand")}},jb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","CreateEventSourceMapping",{}).n("LambdaClient","CreateEventSourceMappingCommand").sc(ise).build(){static{i(this,"CreateEventSourceMappingCommand")}},Bb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","CreateFunction",{}).n("LambdaClient","CreateFunctionCommand").sc(sse).build(){static{i(this,"CreateFunctionCommand")}},Vb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","CreateFunctionUrlConfig",{}).n("LambdaClient","CreateFunctionUrlConfigCommand").sc(ase).build(){static{i(this,"CreateFunctionUrlConfigCommand")}},Hb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteAlias",{}).n("LambdaClient","DeleteAliasCommand").sc(cse).build(){static{i(this,"DeleteAliasCommand")}},Gb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteCapacityProvider",{}).n("LambdaClient","DeleteCapacityProviderCommand").sc(use).build(){static{i(this,"DeleteCapacityProviderCommand")}},qb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteCodeSigningConfig",{}).n("LambdaClient","DeleteCodeSigningConfigCommand").sc(lse).build(){static{i(this,"DeleteCodeSigningConfigCommand")}},Wb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteEventSourceMapping",{}).n("LambdaClient","DeleteEventSourceMappingCommand").sc(dse).build(){static{i(this,"DeleteEventSourceMappingCommand")}},Zb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteFunctionCodeSigningConfig",{}).n("LambdaClient","DeleteFunctionCodeSigningConfigCommand").sc(fse).build(){static{i(this,"DeleteFunctionCodeSigningConfigCommand")}},Kb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteFunction",{}).n("LambdaClient","DeleteFunctionCommand").sc(pse).build(){static{i(this,"DeleteFunctionCommand")}},Xb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteFunctionConcurrency",{}).n("LambdaClient","DeleteFunctionConcurrencyCommand").sc(mse).build(){static{i(this,"DeleteFunctionConcurrencyCommand")}},Jb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteFunctionEventInvokeConfig",{}).n("LambdaClient","DeleteFunctionEventInvokeConfigCommand").sc(gse).build(){static{i(this,"DeleteFunctionEventInvokeConfigCommand")}},Yb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteFunctionUrlConfig",{}).n("LambdaClient","DeleteFunctionUrlConfigCommand").sc(hse).build(){static{i(this,"DeleteFunctionUrlConfigCommand")}},Qb=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteLayerVersion",{}).n("LambdaClient","DeleteLayerVersionCommand").sc(yse).build(){static{i(this,"DeleteLayerVersionCommand")}},eP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","DeleteProvisionedConcurrencyConfig",{}).n("LambdaClient","DeleteProvisionedConcurrencyConfigCommand").sc(Ese).build(){static{i(this,"DeleteProvisionedConcurrencyConfigCommand")}},tP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetAccountSettings",{}).n("LambdaClient","GetAccountSettingsCommand").sc(Sse).build(){static{i(this,"GetAccountSettingsCommand")}},rP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetAlias",{}).n("LambdaClient","GetAliasCommand").sc(_se).build(){static{i(this,"GetAliasCommand")}},nP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetCapacityProvider",{}).n("LambdaClient","GetCapacityProviderCommand").sc(vse).build(){static{i(this,"GetCapacityProviderCommand")}},oP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetCodeSigningConfig",{}).n("LambdaClient","GetCodeSigningConfigCommand").sc(xse).build(){static{i(this,"GetCodeSigningConfigCommand")}},iP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetDurableExecution",{}).n("LambdaClient","GetDurableExecutionCommand").sc(bse).build(){static{i(this,"GetDurableExecutionCommand")}},Dm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetDurableExecutionHistory",{}).n("LambdaClient","GetDurableExecutionHistoryCommand").sc(Pse).build(){static{i(this,"GetDurableExecutionHistoryCommand")}},Nm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetDurableExecutionState",{}).n("LambdaClient","GetDurableExecutionStateCommand").sc(Cse).build(){static{i(this,"GetDurableExecutionStateCommand")}},sP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetEventSourceMapping",{}).n("LambdaClient","GetEventSourceMappingCommand").sc(Ase).build(){static{i(this,"GetEventSourceMappingCommand")}},aP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetFunctionCodeSigningConfig",{}).n("LambdaClient","GetFunctionCodeSigningConfigCommand").sc(Ise).build(){static{i(this,"GetFunctionCodeSigningConfigCommand")}},rc=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetFunction",{}).n("LambdaClient","GetFunctionCommand").sc(Tse).build(){static{i(this,"GetFunctionCommand")}},cP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetFunctionConcurrency",{}).n("LambdaClient","GetFunctionConcurrencyCommand").sc(wse).build(){static{i(this,"GetFunctionConcurrencyCommand")}},nc=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetFunctionConfiguration",{}).n("LambdaClient","GetFunctionConfigurationCommand").sc(Rse).build(){static{i(this,"GetFunctionConfigurationCommand")}},uP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetFunctionEventInvokeConfig",{}).n("LambdaClient","GetFunctionEventInvokeConfigCommand").sc($se).build(){static{i(this,"GetFunctionEventInvokeConfigCommand")}},lP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetFunctionRecursionConfig",{}).n("LambdaClient","GetFunctionRecursionConfigCommand").sc(Ose).build(){static{i(this,"GetFunctionRecursionConfigCommand")}},dP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetFunctionScalingConfig",{}).n("LambdaClient","GetFunctionScalingConfigCommand").sc(Dse).build(){static{i(this,"GetFunctionScalingConfigCommand")}},pP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetFunctionUrlConfig",{}).n("LambdaClient","GetFunctionUrlConfigCommand").sc(Nse).build(){static{i(this,"GetFunctionUrlConfigCommand")}},fP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetLayerVersionByArn",{}).n("LambdaClient","GetLayerVersionByArnCommand").sc(Mse).build(){static{i(this,"GetLayerVersionByArnCommand")}},mP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetLayerVersion",{}).n("LambdaClient","GetLayerVersionCommand").sc(kse).build(){static{i(this,"GetLayerVersionCommand")}},gP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetLayerVersionPolicy",{}).n("LambdaClient","GetLayerVersionPolicyCommand").sc(Lse).build(){static{i(this,"GetLayerVersionPolicyCommand")}},hP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetPolicy",{}).n("LambdaClient","GetPolicyCommand").sc(zse).build(){static{i(this,"GetPolicyCommand")}},yP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetProvisionedConcurrencyConfig",{}).n("LambdaClient","GetProvisionedConcurrencyConfigCommand").sc(Fse).build(){static{i(this,"GetProvisionedConcurrencyConfigCommand")}},EP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","GetRuntimeManagementConfig",{}).n("LambdaClient","GetRuntimeManagementConfigCommand").sc(Use).build(){static{i(this,"GetRuntimeManagementConfigCommand")}},SP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","InvokeAsync",{}).n("LambdaClient","InvokeAsyncCommand").sc(Bse).build(){static{i(this,"InvokeAsyncCommand")}},_P=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","Invoke",{}).n("LambdaClient","InvokeCommand").sc(jse).build(){static{i(this,"InvokeCommand")}},vP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","InvokeWithResponseStream",{eventStream:{output:!0}}).n("LambdaClient","InvokeWithResponseStreamCommand").sc(Vse).build(){static{i(this,"InvokeWithResponseStreamCommand")}},km=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListAliases",{}).n("LambdaClient","ListAliasesCommand").sc(Hse).build(){static{i(this,"ListAliasesCommand")}},Mm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListCapacityProviders",{}).n("LambdaClient","ListCapacityProvidersCommand").sc(Gse).build(){static{i(this,"ListCapacityProvidersCommand")}},Lm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListCodeSigningConfigs",{}).n("LambdaClient","ListCodeSigningConfigsCommand").sc(qse).build(){static{i(this,"ListCodeSigningConfigsCommand")}},zm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListDurableExecutionsByFunction",{}).n("LambdaClient","ListDurableExecutionsByFunctionCommand").sc(Wse).build(){static{i(this,"ListDurableExecutionsByFunctionCommand")}},Fm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListEventSourceMappings",{}).n("LambdaClient","ListEventSourceMappingsCommand").sc(Zse).build(){static{i(this,"ListEventSourceMappingsCommand")}},Um=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListFunctionEventInvokeConfigs",{}).n("LambdaClient","ListFunctionEventInvokeConfigsCommand").sc(Kse).build(){static{i(this,"ListFunctionEventInvokeConfigsCommand")}},jm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListFunctionsByCodeSigningConfig",{}).n("LambdaClient","ListFunctionsByCodeSigningConfigCommand").sc(Jse).build(){static{i(this,"ListFunctionsByCodeSigningConfigCommand")}},Bm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListFunctions",{}).n("LambdaClient","ListFunctionsCommand").sc(Xse).build(){static{i(this,"ListFunctionsCommand")}},Vm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListFunctionUrlConfigs",{}).n("LambdaClient","ListFunctionUrlConfigsCommand").sc(Yse).build(){static{i(this,"ListFunctionUrlConfigsCommand")}},Hm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListFunctionVersionsByCapacityProvider",{}).n("LambdaClient","ListFunctionVersionsByCapacityProviderCommand").sc(Qse).build(){static{i(this,"ListFunctionVersionsByCapacityProviderCommand")}},Gm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListLayers",{}).n("LambdaClient","ListLayersCommand").sc(eae).build(){static{i(this,"ListLayersCommand")}},qm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListLayerVersions",{}).n("LambdaClient","ListLayerVersionsCommand").sc(tae).build(){static{i(this,"ListLayerVersionsCommand")}},Wm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListProvisionedConcurrencyConfigs",{}).n("LambdaClient","ListProvisionedConcurrencyConfigsCommand").sc(rae).build(){static{i(this,"ListProvisionedConcurrencyConfigsCommand")}},xP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListTags",{}).n("LambdaClient","ListTagsCommand").sc(nae).build(){static{i(this,"ListTagsCommand")}},Zm=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","ListVersionsByFunction",{}).n("LambdaClient","ListVersionsByFunctionCommand").sc(oae).build(){static{i(this,"ListVersionsByFunctionCommand")}},bP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PublishLayerVersion",{}).n("LambdaClient","PublishLayerVersionCommand").sc(iae).build(){static{i(this,"PublishLayerVersionCommand")}},PP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PublishVersion",{}).n("LambdaClient","PublishVersionCommand").sc(sae).build(){static{i(this,"PublishVersionCommand")}},CP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PutFunctionCodeSigningConfig",{}).n("LambdaClient","PutFunctionCodeSigningConfigCommand").sc(aae).build(){static{i(this,"PutFunctionCodeSigningConfigCommand")}},AP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PutFunctionConcurrency",{}).n("LambdaClient","PutFunctionConcurrencyCommand").sc(cae).build(){static{i(this,"PutFunctionConcurrencyCommand")}},TP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PutFunctionEventInvokeConfig",{}).n("LambdaClient","PutFunctionEventInvokeConfigCommand").sc(uae).build(){static{i(this,"PutFunctionEventInvokeConfigCommand")}},IP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PutFunctionRecursionConfig",{}).n("LambdaClient","PutFunctionRecursionConfigCommand").sc(lae).build(){static{i(this,"PutFunctionRecursionConfigCommand")}},wP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PutFunctionScalingConfig",{}).n("LambdaClient","PutFunctionScalingConfigCommand").sc(dae).build(){static{i(this,"PutFunctionScalingConfigCommand")}},RP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PutProvisionedConcurrencyConfig",{}).n("LambdaClient","PutProvisionedConcurrencyConfigCommand").sc(pae).build(){static{i(this,"PutProvisionedConcurrencyConfigCommand")}},$P=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","PutRuntimeManagementConfig",{}).n("LambdaClient","PutRuntimeManagementConfigCommand").sc(fae).build(){static{i(this,"PutRuntimeManagementConfigCommand")}},OP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","RemoveLayerVersionPermission",{}).n("LambdaClient","RemoveLayerVersionPermissionCommand").sc(mae).build(){static{i(this,"RemoveLayerVersionPermissionCommand")}},DP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","RemovePermission",{}).n("LambdaClient","RemovePermissionCommand").sc(gae).build(){static{i(this,"RemovePermissionCommand")}},NP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","SendDurableExecutionCallbackFailure",{}).n("LambdaClient","SendDurableExecutionCallbackFailureCommand").sc(hae).build(){static{i(this,"SendDurableExecutionCallbackFailureCommand")}},kP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","SendDurableExecutionCallbackHeartbeat",{}).n("LambdaClient","SendDurableExecutionCallbackHeartbeatCommand").sc(yae).build(){static{i(this,"SendDurableExecutionCallbackHeartbeatCommand")}},MP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","SendDurableExecutionCallbackSuccess",{}).n("LambdaClient","SendDurableExecutionCallbackSuccessCommand").sc(Eae).build(){static{i(this,"SendDurableExecutionCallbackSuccessCommand")}},LP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","StopDurableExecution",{}).n("LambdaClient","StopDurableExecutionCommand").sc(Sae).build(){static{i(this,"StopDurableExecutionCommand")}},zP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","TagResource",{}).n("LambdaClient","TagResourceCommand").sc(_ae).build(){static{i(this,"TagResourceCommand")}},FP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UntagResource",{}).n("LambdaClient","UntagResourceCommand").sc(vae).build(){static{i(this,"UntagResourceCommand")}},UP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UpdateAlias",{}).n("LambdaClient","UpdateAliasCommand").sc(xae).build(){static{i(this,"UpdateAliasCommand")}},jP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UpdateCapacityProvider",{}).n("LambdaClient","UpdateCapacityProviderCommand").sc(bae).build(){static{i(this,"UpdateCapacityProviderCommand")}},BP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UpdateCodeSigningConfig",{}).n("LambdaClient","UpdateCodeSigningConfigCommand").sc(Pae).build(){static{i(this,"UpdateCodeSigningConfigCommand")}},VP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UpdateEventSourceMapping",{}).n("LambdaClient","UpdateEventSourceMappingCommand").sc(Cae).build(){static{i(this,"UpdateEventSourceMappingCommand")}},HP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UpdateFunctionCode",{}).n("LambdaClient","UpdateFunctionCodeCommand").sc(Aae).build(){static{i(this,"UpdateFunctionCodeCommand")}},GP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UpdateFunctionConfiguration",{}).n("LambdaClient","UpdateFunctionConfigurationCommand").sc(Tae).build(){static{i(this,"UpdateFunctionConfigurationCommand")}},qP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UpdateFunctionEventInvokeConfig",{}).n("LambdaClient","UpdateFunctionEventInvokeConfigCommand").sc(Iae).build(){static{i(this,"UpdateFunctionEventInvokeConfigCommand")}},WP=class extends q.Command.classBuilder().ep(K).m(function(t,r,o,n){return[Z.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSGirApiService","UpdateFunctionUrlConfig",{}).n("LambdaClient","UpdateFunctionUrlConfigCommand").sc(wae).build(){static{i(this,"UpdateFunctionUrlConfigCommand")}},eUe={AddLayerVersionPermissionCommand:kb,AddPermissionCommand:Mb,CheckpointDurableExecutionCommand:Lb,CreateAliasCommand:zb,CreateCapacityProviderCommand:Fb,CreateCodeSigningConfigCommand:Ub,CreateEventSourceMappingCommand:jb,CreateFunctionCommand:Bb,CreateFunctionUrlConfigCommand:Vb,DeleteAliasCommand:Hb,DeleteCapacityProviderCommand:Gb,DeleteCodeSigningConfigCommand:qb,DeleteEventSourceMappingCommand:Wb,DeleteFunctionCommand:Kb,DeleteFunctionCodeSigningConfigCommand:Zb,DeleteFunctionConcurrencyCommand:Xb,DeleteFunctionEventInvokeConfigCommand:Jb,DeleteFunctionUrlConfigCommand:Yb,DeleteLayerVersionCommand:Qb,DeleteProvisionedConcurrencyConfigCommand:eP,GetAccountSettingsCommand:tP,GetAliasCommand:rP,GetCapacityProviderCommand:nP,GetCodeSigningConfigCommand:oP,GetDurableExecutionCommand:iP,GetDurableExecutionHistoryCommand:Dm,GetDurableExecutionStateCommand:Nm,GetEventSourceMappingCommand:sP,GetFunctionCommand:rc,GetFunctionCodeSigningConfigCommand:aP,GetFunctionConcurrencyCommand:cP,GetFunctionConfigurationCommand:nc,GetFunctionEventInvokeConfigCommand:uP,GetFunctionRecursionConfigCommand:lP,GetFunctionScalingConfigCommand:dP,GetFunctionUrlConfigCommand:pP,GetLayerVersionCommand:mP,GetLayerVersionByArnCommand:fP,GetLayerVersionPolicyCommand:gP,GetPolicyCommand:hP,GetProvisionedConcurrencyConfigCommand:yP,GetRuntimeManagementConfigCommand:EP,InvokeCommand:_P,InvokeAsyncCommand:SP,InvokeWithResponseStreamCommand:vP,ListAliasesCommand:km,ListCapacityProvidersCommand:Mm,ListCodeSigningConfigsCommand:Lm,ListDurableExecutionsByFunctionCommand:zm,ListEventSourceMappingsCommand:Fm,ListFunctionEventInvokeConfigsCommand:Um,ListFunctionsCommand:Bm,ListFunctionsByCodeSigningConfigCommand:jm,ListFunctionUrlConfigsCommand:Vm,ListFunctionVersionsByCapacityProviderCommand:Hm,ListLayersCommand:Gm,ListLayerVersionsCommand:qm,ListProvisionedConcurrencyConfigsCommand:Wm,ListTagsCommand:xP,ListVersionsByFunctionCommand:Zm,PublishLayerVersionCommand:bP,PublishVersionCommand:PP,PutFunctionCodeSigningConfigCommand:CP,PutFunctionConcurrencyCommand:AP,PutFunctionEventInvokeConfigCommand:TP,PutFunctionRecursionConfigCommand:IP,PutFunctionScalingConfigCommand:wP,PutProvisionedConcurrencyConfigCommand:RP,PutRuntimeManagementConfigCommand:$P,RemoveLayerVersionPermissionCommand:OP,RemovePermissionCommand:DP,SendDurableExecutionCallbackFailureCommand:NP,SendDurableExecutionCallbackHeartbeatCommand:kP,SendDurableExecutionCallbackSuccessCommand:MP,StopDurableExecutionCommand:LP,TagResourceCommand:zP,UntagResourceCommand:FP,UpdateAliasCommand:UP,UpdateCapacityProviderCommand:jP,UpdateCodeSigningConfigCommand:BP,UpdateEventSourceMappingCommand:VP,UpdateFunctionCodeCommand:HP,UpdateFunctionConfigurationCommand:GP,UpdateFunctionEventInvokeConfigCommand:qP,UpdateFunctionUrlConfigCommand:WP},ZP=class extends At{static{i(this,"Lambda")}};q.createAggregatedClient(eUe,ZP);var tUe=kt.createPaginator(At,Dm,"Marker","NextMarker","MaxItems"),rUe=kt.createPaginator(At,Nm,"Marker","NextMarker","MaxItems"),nUe=kt.createPaginator(At,km,"Marker","NextMarker","MaxItems"),oUe=kt.createPaginator(At,Mm,"Marker","NextMarker","MaxItems"),iUe=kt.createPaginator(At,Lm,"Marker","NextMarker","MaxItems"),sUe=kt.createPaginator(At,zm,"Marker","NextMarker","MaxItems"),aUe=kt.createPaginator(At,Fm,"Marker","NextMarker","MaxItems"),cUe=kt.createPaginator(At,Um,"Marker","NextMarker","MaxItems"),uUe=kt.createPaginator(At,Bm,"Marker","NextMarker","MaxItems"),lUe=kt.createPaginator(At,jm,"Marker","NextMarker","MaxItems"),dUe=kt.createPaginator(At,Vm,"Marker","NextMarker","MaxItems"),pUe=kt.createPaginator(At,Hm,"Marker","NextMarker","MaxItems"),fUe=kt.createPaginator(At,Gm,"Marker","NextMarker","MaxItems"),mUe=kt.createPaginator(At,qm,"Marker","NextMarker","MaxItems"),gUe=kt.createPaginator(At,Wm,"Marker","NextMarker","MaxItems"),hUe=kt.createPaginator(At,Zm,"Marker","NextMarker","MaxItems"),Rae=i(async(e,t)=>{let r;try{let o=await e.send(new rc(t));r=o;try{if(i(()=>o.Configuration.State,"returnComparator")()==="Active")return{state:Oe.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>o.Configuration.State,"returnComparator")()==="Failed")return{state:Oe.WaiterState.FAILURE,reason:r}}catch{}try{if(i(()=>o.Configuration.State,"returnComparator")()==="Pending")return{state:Oe.WaiterState.RETRY,reason:r}}catch{}}catch(o){r=o}return{state:Oe.WaiterState.RETRY,reason:r}},"checkState$5"),yUe=i(async(e,t)=>{let r={minDelay:1,maxDelay:300};return Oe.createWaiter({...r,...e},t,Rae)},"waitForFunctionActiveV2"),EUe=i(async(e,t)=>{let r={minDelay:1,maxDelay:300},o=await Oe.createWaiter({...r,...e},t,Rae);return Oe.checkExceptions(o)},"waitUntilFunctionActiveV2"),$ae=i(async(e,t)=>{let r;try{return r=await e.send(new rc(t)),{state:Oe.WaiterState.SUCCESS,reason:r}}catch(o){if(r=o,o.name&&o.name=="ResourceNotFoundException")return{state:Oe.WaiterState.RETRY,reason:r}}return{state:Oe.WaiterState.RETRY,reason:r}},"checkState$4"),SUe=i(async(e,t)=>{let r={minDelay:1,maxDelay:20};return Oe.createWaiter({...r,...e},t,$ae)},"waitForFunctionExists"),_Ue=i(async(e,t)=>{let r={minDelay:1,maxDelay:20},o=await Oe.createWaiter({...r,...e},t,$ae);return Oe.checkExceptions(o)},"waitUntilFunctionExists"),Oae=i(async(e,t)=>{let r;try{let o=await e.send(new rc(t));r=o;try{if(i(()=>o.Configuration.LastUpdateStatus,"returnComparator")()==="Successful")return{state:Oe.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>o.Configuration.LastUpdateStatus,"returnComparator")()==="Failed")return{state:Oe.WaiterState.FAILURE,reason:r}}catch{}try{if(i(()=>o.Configuration.LastUpdateStatus,"returnComparator")()==="InProgress")return{state:Oe.WaiterState.RETRY,reason:r}}catch{}}catch(o){r=o}return{state:Oe.WaiterState.RETRY,reason:r}},"checkState$3"),vUe=i(async(e,t)=>{let r={minDelay:1,maxDelay:300};return Oe.createWaiter({...r,...e},t,Oae)},"waitForFunctionUpdatedV2"),xUe=i(async(e,t)=>{let r={minDelay:1,maxDelay:300},o=await Oe.createWaiter({...r,...e},t,Oae);return Oe.checkExceptions(o)},"waitUntilFunctionUpdatedV2"),Dae=i(async(e,t)=>{let r;try{let o=await e.send(new nc(t));r=o;try{if(i(()=>o.State,"returnComparator")()==="Active")return{state:Oe.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>o.State,"returnComparator")()==="Failed")return{state:Oe.WaiterState.FAILURE,reason:r}}catch{}try{if(i(()=>o.State,"returnComparator")()==="Pending")return{state:Oe.WaiterState.RETRY,reason:r}}catch{}}catch(o){r=o}return{state:Oe.WaiterState.RETRY,reason:r}},"checkState$2"),bUe=i(async(e,t)=>{let r={minDelay:5,maxDelay:300};return Oe.createWaiter({...r,...e},t,Dae)},"waitForFunctionActive"),PUe=i(async(e,t)=>{let r={minDelay:5,maxDelay:300},o=await Oe.createWaiter({...r,...e},t,Dae);return Oe.checkExceptions(o)},"waitUntilFunctionActive"),Nae=i(async(e,t)=>{let r;try{let o=await e.send(new nc(t));r=o;try{if(i(()=>o.LastUpdateStatus,"returnComparator")()==="Successful")return{state:Oe.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>o.LastUpdateStatus,"returnComparator")()==="Failed")return{state:Oe.WaiterState.FAILURE,reason:r}}catch{}try{if(i(()=>o.LastUpdateStatus,"returnComparator")()==="InProgress")return{state:Oe.WaiterState.RETRY,reason:r}}catch{}}catch(o){r=o}return{state:Oe.WaiterState.RETRY,reason:r}},"checkState$1"),CUe=i(async(e,t)=>{let r={minDelay:5,maxDelay:300};return Oe.createWaiter({...r,...e},t,Nae)},"waitForFunctionUpdated"),AUe=i(async(e,t)=>{let r={minDelay:5,maxDelay:300},o=await Oe.createWaiter({...r,...e},t,Nae);return Oe.checkExceptions(o)},"waitUntilFunctionUpdated"),kae=i(async(e,t)=>{let r;try{let o=await e.send(new nc(t));r=o;try{if(i(()=>o.State,"returnComparator")()==="Active")return{state:Oe.WaiterState.SUCCESS,reason:r}}catch{}try{if(i(()=>o.State,"returnComparator")()==="Failed")return{state:Oe.WaiterState.FAILURE,reason:r}}catch{}try{if(i(()=>o.State,"returnComparator")()==="Pending")return{state:Oe.WaiterState.RETRY,reason:r}}catch{}}catch(o){r=o}return{state:Oe.WaiterState.RETRY,reason:r}},"checkState"),TUe=i(async(e,t)=>{let r={minDelay:5,maxDelay:1560};return Oe.createWaiter({...r,...e},t,kae)},"waitForPublishedVersionActive"),IUe=i(async(e,t)=>{let r={minDelay:5,maxDelay:1560},o=await Oe.createWaiter({...r,...e},t,kae);return Oe.checkExceptions(o)},"waitUntilPublishedVersionActive"),wUe={CallerRateLimitExceeded:"CallerRateLimitExceeded",ConcurrentInvocationLimitExceeded:"ConcurrentInvocationLimitExceeded",ConcurrentSnapshotCreateLimitExceeded:"ConcurrentSnapshotCreateLimitExceeded",FunctionInvocationRateLimitExceeded:"FunctionInvocationRateLimitExceeded",ReservedFunctionConcurrentInvocationLimitExceeded:"ReservedFunctionConcurrentInvocationLimitExceeded",ReservedFunctionInvocationRateLimitExceeded:"ReservedFunctionInvocationRateLimitExceeded"},RUe={AWS_IAM:"AWS_IAM",NONE:"NONE"},$Ue={BASIC_AUTH:"BASIC_AUTH",CLIENT_CERTIFICATE_TLS_AUTH:"CLIENT_CERTIFICATE_TLS_AUTH",SERVER_ROOT_CA_CERTIFICATE:"SERVER_ROOT_CA_CERTIFICATE"},OUe={JSON:"JSON",SOURCE:"SOURCE"},DUe={KEY:"KEY",VALUE:"VALUE"},NUe={Debug:"DEBUG",Error:"ERROR",Fatal:"FATAL",Info:"INFO",Trace:"TRACE",Warn:"WARN"},kUe={arm64:"arm64",x86_64:"x86_64"},MUe={Auto:"Auto",Manual:"Manual"},LUe={LambdaCapacityProviderAverageCPUUtilization:"LambdaCapacityProviderAverageCPUUtilization"},zUe={Active:"Active",Deleting:"Deleting",Failed:"Failed",Pending:"Pending"},FUe={Active:"Active",ActiveNonInvocable:"ActiveNonInvocable",Deactivated:"Deactivated",Deactivating:"Deactivating",Deleting:"Deleting",Failed:"Failed",Inactive:"Inactive",Pending:"Pending"},UUe={CANCEL:"CANCEL",FAIL:"FAIL",RETRY:"RETRY",START:"START",SUCCEED:"SUCCEED"},jUe={CALLBACK:"CALLBACK",CHAINED_INVOKE:"CHAINED_INVOKE",CONTEXT:"CONTEXT",EXECUTION:"EXECUTION",STEP:"STEP",WAIT:"WAIT"},BUe={CANCELLED:"CANCELLED",FAILED:"FAILED",PENDING:"PENDING",READY:"READY",STARTED:"STARTED",STOPPED:"STOPPED",SUCCEEDED:"SUCCEEDED",TIMED_OUT:"TIMED_OUT"},VUe={Enforce:"Enforce",Warn:"Warn"},HUe={Default:"Default",UpdateLookup:"UpdateLookup"},GUe={ReportBatchItemFailures:"ReportBatchItemFailures"},qUe={EventCount:"EventCount"},WUe={KAFKA_BOOTSTRAP_SERVERS:"KAFKA_BOOTSTRAP_SERVERS"},ZUe={BASIC_AUTH:"BASIC_AUTH",CLIENT_CERTIFICATE_TLS_AUTH:"CLIENT_CERTIFICATE_TLS_AUTH",SASL_SCRAM_256_AUTH:"SASL_SCRAM_256_AUTH",SASL_SCRAM_512_AUTH:"SASL_SCRAM_512_AUTH",SERVER_ROOT_CA_CERTIFICATE:"SERVER_ROOT_CA_CERTIFICATE",VIRTUAL_HOST:"VIRTUAL_HOST",VPC_SECURITY_GROUP:"VPC_SECURITY_GROUP",VPC_SUBNET:"VPC_SUBNET"},KUe={AT_TIMESTAMP:"AT_TIMESTAMP",LATEST:"LATEST",TRIM_HORIZON:"TRIM_HORIZON"},XUe={Json:"JSON",Text:"Text"},JUe={Debug:"DEBUG",Info:"INFO",Warn:"WARN"},YUe={Image:"Image",Zip:"Zip"},QUe={LATEST_PUBLISHED:"LATEST_PUBLISHED"},e2e={dotnet10:"dotnet10",dotnet6:"dotnet6",dotnet8:"dotnet8",dotnetcore10:"dotnetcore1.0",dotnetcore20:"dotnetcore2.0",dotnetcore21:"dotnetcore2.1",dotnetcore31:"dotnetcore3.1",go1x:"go1.x",java11:"java11",java17:"java17",java21:"java21",java25:"java25",java8:"java8",java8al2:"java8.al2",nodejs:"nodejs",nodejs10x:"nodejs10.x",nodejs12x:"nodejs12.x",nodejs14x:"nodejs14.x",nodejs16x:"nodejs16.x",nodejs18x:"nodejs18.x",nodejs20x:"nodejs20.x",nodejs22x:"nodejs22.x",nodejs24x:"nodejs24.x",nodejs43:"nodejs4.3",nodejs43edge:"nodejs4.3-edge",nodejs610:"nodejs6.10",nodejs810:"nodejs8.10",provided:"provided",providedal2:"provided.al2",providedal2023:"provided.al2023",python27:"python2.7",python310:"python3.10",python311:"python3.11",python312:"python3.12",python313:"python3.13",python314:"python3.14",python36:"python3.6",python37:"python3.7",python38:"python3.8",python39:"python3.9",ruby25:"ruby2.5",ruby27:"ruby2.7",ruby32:"ruby3.2",ruby33:"ruby3.3",ruby34:"ruby3.4"},t2e={None:"None",PublishedVersions:"PublishedVersions"},r2e={PER_TENANT:"PER_TENANT"},n2e={Active:"Active",PassThrough:"PassThrough"},o2e={Failed:"Failed",InProgress:"InProgress",Successful:"Successful"},i2e={CapacityProviderScalingLimitExceeded:"CapacityProviderScalingLimitExceeded",DisabledKMSKey:"DisabledKMSKey",DisallowedByVpcEncryptionControl:"DisallowedByVpcEncryptionControl",EC2RequestLimitExceeded:"EC2RequestLimitExceeded",EFSIOError:"EFSIOError",EFSMountConnectivityError:"EFSMountConnectivityError",EFSMountFailure:"EFSMountFailure",EFSMountTimeout:"EFSMountTimeout",EniLimitExceeded:"EniLimitExceeded",FunctionError:"FunctionError",FunctionErrorExtensionInitError:"FunctionError.ExtensionInitError",FunctionErrorInitResourceExhausted:"FunctionError.InitResourceExhausted",FunctionErrorInitTimeout:"FunctionError.InitTimeout",FunctionErrorInvalidEntryPoint:"FunctionError.InvalidEntryPoint",FunctionErrorInvalidWorkingDirectory:"FunctionError.InvalidWorkingDirectory",FunctionErrorPermissionDenied:"FunctionError.PermissionDenied",FunctionErrorRuntimeInitError:"FunctionError.RuntimeInitError",FunctionErrorTooManyExtensions:"FunctionError.TooManyExtensions",ImageAccessDenied:"ImageAccessDenied",ImageDeleted:"ImageDeleted",InsufficientCapacity:"InsufficientCapacity",InsufficientRolePermissions:"InsufficientRolePermissions",InternalError:"InternalError",InvalidConfiguration:"InvalidConfiguration",InvalidImage:"InvalidImage",InvalidRuntime:"InvalidRuntime",InvalidSecurityGroup:"InvalidSecurityGroup",InvalidStateKMSKey:"InvalidStateKMSKey",InvalidSubnet:"InvalidSubnet",InvalidZipFileException:"InvalidZipFileException",KMSKeyAccessDenied:"KMSKeyAccessDenied",KMSKeyNotFound:"KMSKeyNotFound",SubnetOutOfIPAddresses:"SubnetOutOfIPAddresses",VcpuLimitExceeded:"VcpuLimitExceeded"},s2e={Off:"Off",On:"On"},a2e={CapacityProviderScalingLimitExceeded:"CapacityProviderScalingLimitExceeded",Creating:"Creating",DisabledKMSKey:"DisabledKMSKey",DisallowedByVpcEncryptionControl:"DisallowedByVpcEncryptionControl",DrainingDurableExecutions:"DrainingDurableExecutions",EC2RequestLimitExceeded:"EC2RequestLimitExceeded",EFSIOError:"EFSIOError",EFSMountConnectivityError:"EFSMountConnectivityError",EFSMountFailure:"EFSMountFailure",EFSMountTimeout:"EFSMountTimeout",EniLimitExceeded:"EniLimitExceeded",FunctionError:"FunctionError",FunctionErrorExtensionInitError:"FunctionError.ExtensionInitError",FunctionErrorInitResourceExhausted:"FunctionError.InitResourceExhausted",FunctionErrorInitTimeout:"FunctionError.InitTimeout",FunctionErrorInvalidEntryPoint:"FunctionError.InvalidEntryPoint",FunctionErrorInvalidWorkingDirectory:"FunctionError.InvalidWorkingDirectory",FunctionErrorPermissionDenied:"FunctionError.PermissionDenied",FunctionErrorRuntimeInitError:"FunctionError.RuntimeInitError",FunctionErrorTooManyExtensions:"FunctionError.TooManyExtensions",Idle:"Idle",ImageAccessDenied:"ImageAccessDenied",ImageDeleted:"ImageDeleted",InsufficientCapacity:"InsufficientCapacity",InsufficientRolePermissions:"InsufficientRolePermissions",InternalError:"InternalError",InvalidConfiguration:"InvalidConfiguration",InvalidImage:"InvalidImage",InvalidRuntime:"InvalidRuntime",InvalidSecurityGroup:"InvalidSecurityGroup",InvalidStateKMSKey:"InvalidStateKMSKey",InvalidSubnet:"InvalidSubnet",InvalidZipFileException:"InvalidZipFileException",KMSKeyAccessDenied:"KMSKeyAccessDenied",KMSKeyNotFound:"KMSKeyNotFound",Restoring:"Restoring",SubnetOutOfIPAddresses:"SubnetOutOfIPAddresses",VcpuLimitExceeded:"VcpuLimitExceeded"},c2e={BUFFERED:"BUFFERED",RESPONSE_STREAM:"RESPONSE_STREAM"},u2e={Allow:"Allow",Terminate:"Terminate"},l2e={Auto:"Auto",FunctionUpdate:"FunctionUpdate",Manual:"Manual"},d2e={DryRun:"DryRun",Event:"Event",RequestResponse:"RequestResponse"},p2e={None:"None",Tail:"Tail"},f2e={DryRun:"DryRun",RequestResponse:"RequestResponse"},m2e={ALL:"ALL"},g2e={FAILED:"FAILED",IN_PROGRESS:"IN_PROGRESS",READY:"READY"},h2e={FAILED:"FAILED",RUNNING:"RUNNING",STOPPED:"STOPPED",SUCCEEDED:"SUCCEEDED",TIMED_OUT:"TIMED_OUT"},y2e={CallbackFailed:"CallbackFailed",CallbackStarted:"CallbackStarted",CallbackSucceeded:"CallbackSucceeded",CallbackTimedOut:"CallbackTimedOut",ChainedInvokeFailed:"ChainedInvokeFailed",ChainedInvokeStarted:"ChainedInvokeStarted",ChainedInvokeStopped:"ChainedInvokeStopped",ChainedInvokeSucceeded:"ChainedInvokeSucceeded",ChainedInvokeTimedOut:"ChainedInvokeTimedOut",ContextFailed:"ContextFailed",ContextStarted:"ContextStarted",ContextSucceeded:"ContextSucceeded",ExecutionFailed:"ExecutionFailed",ExecutionStarted:"ExecutionStarted",ExecutionStopped:"ExecutionStopped",ExecutionSucceeded:"ExecutionSucceeded",ExecutionTimedOut:"ExecutionTimedOut",InvocationCompleted:"InvocationCompleted",StepFailed:"StepFailed",StepStarted:"StepStarted",StepSucceeded:"StepSucceeded",WaitCancelled:"WaitCancelled",WaitStarted:"WaitStarted",WaitSucceeded:"WaitSucceeded"};Object.defineProperty(g,"$Command",{enumerable:!0,get:i(function(){return q.Command},"get")});Object.defineProperty(g,"__Client",{enumerable:!0,get:i(function(){return q.Client},"get")});g.AccountLimit$=ste;g.AccountUsage$=ate;g.AddLayerVersionPermission$=Qie;g.AddLayerVersionPermissionCommand=kb;g.AddLayerVersionPermissionRequest$=cte;g.AddLayerVersionPermissionResponse$=ute;g.AddPermission$=ese;g.AddPermissionCommand=Mb;g.AddPermissionRequest$=lte;g.AddPermissionResponse$=dte;g.AliasConfiguration$=eg;g.AliasRoutingConfiguration$=wC;g.AllowedPublishers$=RC;g.AmazonManagedKafkaEventSourceConfig$=$C;g.ApplicationLogLevel=NUe;g.Architecture=kUe;g.CallbackDetails$=pte;g.CallbackFailedDetails$=fte;g.CallbackOptions$=mte;g.CallbackStartedDetails$=gte;g.CallbackSucceededDetails$=hte;g.CallbackTimedOutDetails$=yte;g.CallbackTimeoutException=Tb;g.CallbackTimeoutException$=Ete;g.CapacityProvider$=El;g.CapacityProviderConfig$=OC;g.CapacityProviderLimitExceededException=Gx;g.CapacityProviderLimitExceededException$=Ste;g.CapacityProviderPermissionsConfig$=hL;g.CapacityProviderPredefinedMetricType=LUe;g.CapacityProviderScalingConfig$=DC;g.CapacityProviderScalingMode=MUe;g.CapacityProviderState=zUe;g.CapacityProviderVpcConfig$=yL;g.ChainedInvokeDetails$=_te;g.ChainedInvokeFailedDetails$=vte;g.ChainedInvokeOptions$=xte;g.ChainedInvokeStartedDetails$=bte;g.ChainedInvokeStoppedDetails$=Pte;g.ChainedInvokeSucceededDetails$=Cte;g.ChainedInvokeTimedOutDetails$=Ate;g.CheckpointDurableExecution$=tse;g.CheckpointDurableExecutionCommand=Lb;g.CheckpointDurableExecutionRequest$=Tte;g.CheckpointDurableExecutionResponse$=Ite;g.CheckpointUpdatedExecutionState$=wte;g.CodeSigningConfig$=tg;g.CodeSigningConfigNotFoundException=Wx;g.CodeSigningConfigNotFoundException$=Rte;g.CodeSigningPolicies$=NC;g.CodeSigningPolicy=VUe;g.CodeStorageExceededException=Zx;g.CodeStorageExceededException$=$te;g.CodeVerificationFailedException=Kx;g.CodeVerificationFailedException$=Ote;g.Concurrency$=EL;g.ContextDetails$=Dte;g.ContextFailedDetails$=Nte;g.ContextOptions$=kte;g.ContextStartedDetails$=Mte;g.ContextSucceededDetails$=Lte;g.Cors$=uc;g.CreateAlias$=rse;g.CreateAliasCommand=zb;g.CreateAliasRequest$=zte;g.CreateCapacityProvider$=nse;g.CreateCapacityProviderCommand=Fb;g.CreateCapacityProviderRequest$=Fte;g.CreateCapacityProviderResponse$=Ute;g.CreateCodeSigningConfig$=ose;g.CreateCodeSigningConfigCommand=Ub;g.CreateCodeSigningConfigRequest$=jte;g.CreateCodeSigningConfigResponse$=Bte;g.CreateEventSourceMapping$=ise;g.CreateEventSourceMappingCommand=jb;g.CreateEventSourceMappingRequest$=Vte;g.CreateFunction$=sse;g.CreateFunctionCommand=Bb;g.CreateFunctionRequest$=Hte;g.CreateFunctionUrlConfig$=ase;g.CreateFunctionUrlConfigCommand=Vb;g.CreateFunctionUrlConfigRequest$=Gte;g.CreateFunctionUrlConfigResponse$=qte;g.DeadLetterConfig$=kC;g.DeleteAlias$=cse;g.DeleteAliasCommand=Hb;g.DeleteAliasRequest$=Wte;g.DeleteCapacityProvider$=use;g.DeleteCapacityProviderCommand=Gb;g.DeleteCapacityProviderRequest$=Zte;g.DeleteCapacityProviderResponse$=Kte;g.DeleteCodeSigningConfig$=lse;g.DeleteCodeSigningConfigCommand=qb;g.DeleteCodeSigningConfigRequest$=Xte;g.DeleteCodeSigningConfigResponse$=Jte;g.DeleteEventSourceMapping$=dse;g.DeleteEventSourceMappingCommand=Wb;g.DeleteEventSourceMappingRequest$=Yte;g.DeleteFunction$=pse;g.DeleteFunctionCodeSigningConfig$=fse;g.DeleteFunctionCodeSigningConfigCommand=Zb;g.DeleteFunctionCodeSigningConfigRequest$=Qte;g.DeleteFunctionCommand=Kb;g.DeleteFunctionConcurrency$=mse;g.DeleteFunctionConcurrencyCommand=Xb;g.DeleteFunctionConcurrencyRequest$=ere;g.DeleteFunctionEventInvokeConfig$=gse;g.DeleteFunctionEventInvokeConfigCommand=Jb;g.DeleteFunctionEventInvokeConfigRequest$=tre;g.DeleteFunctionRequest$=rre;g.DeleteFunctionResponse$=nre;g.DeleteFunctionUrlConfig$=hse;g.DeleteFunctionUrlConfigCommand=Yb;g.DeleteFunctionUrlConfigRequest$=ore;g.DeleteLayerVersion$=yse;g.DeleteLayerVersionCommand=Qb;g.DeleteLayerVersionRequest$=ire;g.DeleteProvisionedConcurrencyConfig$=Ese;g.DeleteProvisionedConcurrencyConfigCommand=eP;g.DeleteProvisionedConcurrencyConfigRequest$=sre;g.DestinationConfig$=lc;g.DocumentDBEventSourceConfig$=MC;g.DurableConfig$=LC;g.DurableExecutionAlreadyStartedException=Yx;g.DurableExecutionAlreadyStartedException$=are;g.EC2AccessDeniedException=Qx;g.EC2AccessDeniedException$=cre;g.EC2ThrottledException=eb;g.EC2ThrottledException$=ure;g.EC2UnexpectedException=tb;g.EC2UnexpectedException$=lre;g.EFSIOException=rb;g.EFSIOException$=dre;g.EFSMountConnectivityException=nb;g.EFSMountConnectivityException$=pre;g.EFSMountFailureException=ob;g.EFSMountFailureException$=fre;g.EFSMountTimeoutException=ib;g.EFSMountTimeoutException$=mre;g.ENILimitReachedException=sb;g.ENILimitReachedException$=gre;g.EndPointType=WUe;g.Environment$=SL;g.EnvironmentError$=hre;g.EnvironmentResponse$=yre;g.EphemeralStorage$=zC;g.ErrorObject$=Co;g.Event$=Ere;g.EventError$=nn;g.EventInput$=_L;g.EventResult$=Sl;g.EventSourceMappingConfiguration$=_l;g.EventSourceMappingMetric=qUe;g.EventSourceMappingMetricsConfig$=FC;g.EventSourcePosition=KUe;g.EventType=y2e;g.Execution$=Sre;g.ExecutionDetails$=_re;g.ExecutionFailedDetails$=vre;g.ExecutionStartedDetails$=xre;g.ExecutionStatus=h2e;g.ExecutionStoppedDetails$=bre;g.ExecutionSucceededDetails$=Pre;g.ExecutionTimedOutDetails$=Cre;g.FileSystemConfig$=Are;g.Filter$=Tre;g.FilterCriteria$=UC;g.FilterCriteriaError$=Ire;g.FullDocument=HUe;g.FunctionCode$=wre;g.FunctionCodeLocation$=Rre;g.FunctionConfiguration$=Rs;g.FunctionEventInvokeConfig$=rg;g.FunctionResponseType=GUe;g.FunctionScalingConfig$=Nb;g.FunctionUrlAuthType=RUe;g.FunctionUrlConfig$=$re;g.FunctionVersion=m2e;g.FunctionVersionLatestPublished=QUe;g.FunctionVersionsByCapacityProviderListItem$=Ore;g.FunctionVersionsPerCapacityProviderLimitExceededException=Xx;g.FunctionVersionsPerCapacityProviderLimitExceededException$=Dre;g.GetAccountSettings$=Sse;g.GetAccountSettingsCommand=tP;g.GetAccountSettingsRequest$=Nre;g.GetAccountSettingsResponse$=kre;g.GetAlias$=_se;g.GetAliasCommand=rP;g.GetAliasRequest$=Mre;g.GetCapacityProvider$=vse;g.GetCapacityProviderCommand=nP;g.GetCapacityProviderRequest$=Lre;g.GetCapacityProviderResponse$=zre;g.GetCodeSigningConfig$=xse;g.GetCodeSigningConfigCommand=oP;g.GetCodeSigningConfigRequest$=Fre;g.GetCodeSigningConfigResponse$=Ure;g.GetDurableExecution$=bse;g.GetDurableExecutionCommand=iP;g.GetDurableExecutionHistory$=Pse;g.GetDurableExecutionHistoryCommand=Dm;g.GetDurableExecutionHistoryRequest$=jre;g.GetDurableExecutionHistoryResponse$=Bre;g.GetDurableExecutionRequest$=Vre;g.GetDurableExecutionResponse$=Hre;g.GetDurableExecutionState$=Cse;g.GetDurableExecutionStateCommand=Nm;g.GetDurableExecutionStateRequest$=Gre;g.GetDurableExecutionStateResponse$=qre;g.GetEventSourceMapping$=Ase;g.GetEventSourceMappingCommand=sP;g.GetEventSourceMappingRequest$=Wre;g.GetFunction$=Tse;g.GetFunctionCodeSigningConfig$=Ise;g.GetFunctionCodeSigningConfigCommand=aP;g.GetFunctionCodeSigningConfigRequest$=Zre;g.GetFunctionCodeSigningConfigResponse$=Kre;g.GetFunctionCommand=rc;g.GetFunctionConcurrency$=wse;g.GetFunctionConcurrencyCommand=cP;g.GetFunctionConcurrencyRequest$=Xre;g.GetFunctionConcurrencyResponse$=Jre;g.GetFunctionConfiguration$=Rse;g.GetFunctionConfigurationCommand=nc;g.GetFunctionConfigurationRequest$=Yre;g.GetFunctionEventInvokeConfig$=$se;g.GetFunctionEventInvokeConfigCommand=uP;g.GetFunctionEventInvokeConfigRequest$=Qre;g.GetFunctionRecursionConfig$=Ose;g.GetFunctionRecursionConfigCommand=lP;g.GetFunctionRecursionConfigRequest$=ene;g.GetFunctionRecursionConfigResponse$=tne;g.GetFunctionRequest$=rne;g.GetFunctionResponse$=nne;g.GetFunctionScalingConfig$=Dse;g.GetFunctionScalingConfigCommand=dP;g.GetFunctionScalingConfigRequest$=one;g.GetFunctionScalingConfigResponse$=ine;g.GetFunctionUrlConfig$=Nse;g.GetFunctionUrlConfigCommand=pP;g.GetFunctionUrlConfigRequest$=sne;g.GetFunctionUrlConfigResponse$=ane;g.GetLayerVersion$=kse;g.GetLayerVersionByArn$=Mse;g.GetLayerVersionByArnCommand=fP;g.GetLayerVersionByArnRequest$=cne;g.GetLayerVersionCommand=mP;g.GetLayerVersionPolicy$=Lse;g.GetLayerVersionPolicyCommand=gP;g.GetLayerVersionPolicyRequest$=une;g.GetLayerVersionPolicyResponse$=lne;g.GetLayerVersionRequest$=dne;g.GetLayerVersionResponse$=vL;g.GetPolicy$=zse;g.GetPolicyCommand=hP;g.GetPolicyRequest$=pne;g.GetPolicyResponse$=fne;g.GetProvisionedConcurrencyConfig$=Fse;g.GetProvisionedConcurrencyConfigCommand=yP;g.GetProvisionedConcurrencyConfigRequest$=mne;g.GetProvisionedConcurrencyConfigResponse$=gne;g.GetRuntimeManagementConfig$=Use;g.GetRuntimeManagementConfigCommand=EP;g.GetRuntimeManagementConfigRequest$=hne;g.GetRuntimeManagementConfigResponse$=yne;g.ImageConfig$=jC;g.ImageConfigError$=Ene;g.ImageConfigResponse$=Sne;g.InstanceRequirements$=xL;g.InvalidCodeSignatureException=Jx;g.InvalidCodeSignatureException$=_ne;g.InvalidParameterValueException=zx;g.InvalidParameterValueException$=vne;g.InvalidRequestContentException=ab;g.InvalidRequestContentException$=xne;g.InvalidRuntimeException=cb;g.InvalidRuntimeException$=bne;g.InvalidSecurityGroupIDException=ub;g.InvalidSecurityGroupIDException$=Pne;g.InvalidSubnetIDException=lb;g.InvalidSubnetIDException$=Cne;g.InvalidZipFileException=db;g.InvalidZipFileException$=Ane;g.InvocationCompletedDetails$=Tne;g.InvocationRequest$=Ine;g.InvocationResponse$=wne;g.InvocationType=d2e;g.Invoke$=jse;g.InvokeAsync$=Bse;g.InvokeAsyncCommand=SP;g.InvokeAsyncRequest$=Rne;g.InvokeAsyncResponse$=$ne;g.InvokeCommand=_P;g.InvokeMode=c2e;g.InvokeResponseStreamUpdate$=One;g.InvokeWithResponseStream$=Vse;g.InvokeWithResponseStreamCommand=vP;g.InvokeWithResponseStreamCompleteEvent$=Dne;g.InvokeWithResponseStreamRequest$=Nne;g.InvokeWithResponseStreamResponse$=kne;g.InvokeWithResponseStreamResponseEvent$=Yie;g.KMSAccessDeniedException=pb;g.KMSAccessDeniedException$=zne;g.KMSDisabledException=fb;g.KMSDisabledException$=Fne;g.KMSInvalidStateException=mb;g.KMSInvalidStateException$=Une;g.KMSNotFoundException=gb;g.KMSNotFoundException$=jne;g.KafkaSchemaRegistryAccessConfig$=Mne;g.KafkaSchemaRegistryAuthType=$Ue;g.KafkaSchemaRegistryConfig$=bL;g.KafkaSchemaValidationAttribute=DUe;g.KafkaSchemaValidationConfig$=Lne;g.Lambda=ZP;g.LambdaClient=At;g.LambdaManagedInstancesCapacityProviderConfig$=Bne;g.LambdaServiceException=Ee;g.LambdaServiceException$=Zie;g.LastUpdateStatus=o2e;g.LastUpdateStatusReasonCode=i2e;g.Layer$=Vne;g.LayerVersionContentInput$=Gne;g.LayerVersionContentOutput$=PL;g.LayerVersionsListItem$=CL;g.LayersListItem$=Hne;g.ListAliases$=Hse;g.ListAliasesCommand=km;g.ListAliasesRequest$=qne;g.ListAliasesResponse$=Wne;g.ListCapacityProviders$=Gse;g.ListCapacityProvidersCommand=Mm;g.ListCapacityProvidersRequest$=Zne;g.ListCapacityProvidersResponse$=Kne;g.ListCodeSigningConfigs$=qse;g.ListCodeSigningConfigsCommand=Lm;g.ListCodeSigningConfigsRequest$=Xne;g.ListCodeSigningConfigsResponse$=Jne;g.ListDurableExecutionsByFunction$=Wse;g.ListDurableExecutionsByFunctionCommand=zm;g.ListDurableExecutionsByFunctionRequest$=Yne;g.ListDurableExecutionsByFunctionResponse$=Qne;g.ListEventSourceMappings$=Zse;g.ListEventSourceMappingsCommand=Fm;g.ListEventSourceMappingsRequest$=eoe;g.ListEventSourceMappingsResponse$=toe;g.ListFunctionEventInvokeConfigs$=Kse;g.ListFunctionEventInvokeConfigsCommand=Um;g.ListFunctionEventInvokeConfigsRequest$=roe;g.ListFunctionEventInvokeConfigsResponse$=noe;g.ListFunctionUrlConfigs$=Yse;g.ListFunctionUrlConfigsCommand=Vm;g.ListFunctionUrlConfigsRequest$=coe;g.ListFunctionUrlConfigsResponse$=uoe;g.ListFunctionVersionsByCapacityProvider$=Qse;g.ListFunctionVersionsByCapacityProviderCommand=Hm;g.ListFunctionVersionsByCapacityProviderRequest$=loe;g.ListFunctionVersionsByCapacityProviderResponse$=doe;g.ListFunctions$=Xse;g.ListFunctionsByCodeSigningConfig$=Jse;g.ListFunctionsByCodeSigningConfigCommand=jm;g.ListFunctionsByCodeSigningConfigRequest$=ooe;g.ListFunctionsByCodeSigningConfigResponse$=ioe;g.ListFunctionsCommand=Bm;g.ListFunctionsRequest$=soe;g.ListFunctionsResponse$=aoe;g.ListLayerVersions$=tae;g.ListLayerVersionsCommand=qm;g.ListLayerVersionsRequest$=moe;g.ListLayerVersionsResponse$=goe;g.ListLayers$=eae;g.ListLayersCommand=Gm;g.ListLayersRequest$=poe;g.ListLayersResponse$=foe;g.ListProvisionedConcurrencyConfigs$=rae;g.ListProvisionedConcurrencyConfigsCommand=Wm;g.ListProvisionedConcurrencyConfigsRequest$=hoe;g.ListProvisionedConcurrencyConfigsResponse$=yoe;g.ListTags$=nae;g.ListTagsCommand=xP;g.ListTagsRequest$=Eoe;g.ListTagsResponse$=Soe;g.ListVersionsByFunction$=oae;g.ListVersionsByFunctionCommand=Zm;g.ListVersionsByFunctionRequest$=_oe;g.ListVersionsByFunctionResponse$=voe;g.LogFormat=XUe;g.LogType=p2e;g.LoggingConfig$=BC;g.NoPublishedVersionException=hb;g.NoPublishedVersionException$=xoe;g.OnFailure$=boe;g.OnSuccess$=Poe;g.Operation$=Coe;g.OperationAction=UUe;g.OperationStatus=BUe;g.OperationType=jUe;g.OperationUpdate$=Aoe;g.PackageType=YUe;g.PolicyLengthExceededException=Fx;g.PolicyLengthExceededException$=Toe;g.PreconditionFailedException=Ux;g.PreconditionFailedException$=Ioe;g.ProvisionedConcurrencyConfigListItem$=woe;g.ProvisionedConcurrencyConfigNotFoundException=Ab;g.ProvisionedConcurrencyConfigNotFoundException$=Roe;g.ProvisionedConcurrencyStatusEnum=g2e;g.ProvisionedPollerConfig$=VC;g.PublishLayerVersion$=iae;g.PublishLayerVersionCommand=bP;g.PublishLayerVersionRequest$=$oe;g.PublishLayerVersionResponse$=Ooe;g.PublishVersion$=sae;g.PublishVersionCommand=PP;g.PublishVersionRequest$=Doe;g.PutFunctionCodeSigningConfig$=aae;g.PutFunctionCodeSigningConfigCommand=CP;g.PutFunctionCodeSigningConfigRequest$=Noe;g.PutFunctionCodeSigningConfigResponse$=koe;g.PutFunctionConcurrency$=cae;g.PutFunctionConcurrencyCommand=AP;g.PutFunctionConcurrencyRequest$=Moe;g.PutFunctionEventInvokeConfig$=uae;g.PutFunctionEventInvokeConfigCommand=TP;g.PutFunctionEventInvokeConfigRequest$=Loe;g.PutFunctionRecursionConfig$=lae;g.PutFunctionRecursionConfigCommand=IP;g.PutFunctionRecursionConfigRequest$=zoe;g.PutFunctionRecursionConfigResponse$=Foe;g.PutFunctionScalingConfig$=dae;g.PutFunctionScalingConfigCommand=wP;g.PutFunctionScalingConfigRequest$=Uoe;g.PutFunctionScalingConfigResponse$=joe;g.PutProvisionedConcurrencyConfig$=pae;g.PutProvisionedConcurrencyConfigCommand=RP;g.PutProvisionedConcurrencyConfigRequest$=Boe;g.PutProvisionedConcurrencyConfigResponse$=Voe;g.PutRuntimeManagementConfig$=fae;g.PutRuntimeManagementConfigCommand=$P;g.PutRuntimeManagementConfigRequest$=Hoe;g.PutRuntimeManagementConfigResponse$=Goe;g.RecursiveInvocationException=yb;g.RecursiveInvocationException$=qoe;g.RecursiveLoop=u2e;g.RemoveLayerVersionPermission$=mae;g.RemoveLayerVersionPermissionCommand=OP;g.RemoveLayerVersionPermissionRequest$=Woe;g.RemovePermission$=gae;g.RemovePermissionCommand=DP;g.RemovePermissionRequest$=Zoe;g.RequestTooLargeException=Eb;g.RequestTooLargeException$=Koe;g.ResourceConflictException=jx;g.ResourceConflictException$=Xoe;g.ResourceInUseException=qx;g.ResourceInUseException$=Joe;g.ResourceNotFoundException=Bx;g.ResourceNotFoundException$=Yoe;g.ResourceNotReadyException=Sb;g.ResourceNotReadyException$=Qoe;g.ResponseStreamingInvocationType=f2e;g.RetryDetails$=AL;g.Runtime=e2e;g.RuntimeVersionConfig$=eie;g.RuntimeVersionError$=tie;g.ScalingConfig$=HC;g.SchemaRegistryEventRecordFormat=OUe;g.SelfManagedEventSource$=TL;g.SelfManagedKafkaEventSourceConfig$=GC;g.SendDurableExecutionCallbackFailure$=hae;g.SendDurableExecutionCallbackFailureCommand=NP;g.SendDurableExecutionCallbackFailureRequest$=rie;g.SendDurableExecutionCallbackFailureResponse$=nie;g.SendDurableExecutionCallbackHeartbeat$=yae;g.SendDurableExecutionCallbackHeartbeatCommand=kP;g.SendDurableExecutionCallbackHeartbeatRequest$=oie;g.SendDurableExecutionCallbackHeartbeatResponse$=iie;g.SendDurableExecutionCallbackSuccess$=Eae;g.SendDurableExecutionCallbackSuccessCommand=MP;g.SendDurableExecutionCallbackSuccessRequest$=sie;g.SendDurableExecutionCallbackSuccessResponse$=aie;g.SerializedRequestEntityTooLargeException=_b;g.SerializedRequestEntityTooLargeException$=cie;g.ServiceException=Vx;g.ServiceException$=uie;g.SnapStart$=IL;g.SnapStartApplyOn=t2e;g.SnapStartException=vb;g.SnapStartException$=lie;g.SnapStartNotReadyException=xb;g.SnapStartNotReadyException$=die;g.SnapStartOptimizationStatus=s2e;g.SnapStartResponse$=pie;g.SnapStartTimeoutException=bb;g.SnapStartTimeoutException$=fie;g.SourceAccessConfiguration$=mie;g.SourceAccessType=ZUe;g.State=FUe;g.StateReasonCode=a2e;g.StepDetails$=gie;g.StepFailedDetails$=hie;g.StepOptions$=yie;g.StepStartedDetails$=Eie;g.StepSucceededDetails$=Sie;g.StopDurableExecution$=Sae;g.StopDurableExecutionCommand=LP;g.StopDurableExecutionRequest$=_ie;g.StopDurableExecutionResponse$=vie;g.SubnetIPAddressLimitReachedException=Pb;g.SubnetIPAddressLimitReachedException$=xie;g.SystemLogLevel=JUe;g.TagResource$=_ae;g.TagResourceCommand=zP;g.TagResourceRequest$=bie;g.TagsError$=Pie;g.TargetTrackingScalingPolicy$=Cie;g.TenancyConfig$=wL;g.TenantIsolationMode=r2e;g.ThrottleReason=wUe;g.TooManyRequestsException=Hx;g.TooManyRequestsException$=Aie;g.TraceHeader$=Tie;g.TracingConfig$=RL;g.TracingConfigResponse$=Iie;g.TracingMode=n2e;g.UnsupportedMediaTypeException=Cb;g.UnsupportedMediaTypeException$=wie;g.UntagResource$=vae;g.UntagResourceCommand=FP;g.UntagResourceRequest$=Rie;g.UpdateAlias$=xae;g.UpdateAliasCommand=UP;g.UpdateAliasRequest$=$ie;g.UpdateCapacityProvider$=bae;g.UpdateCapacityProviderCommand=jP;g.UpdateCapacityProviderRequest$=Oie;g.UpdateCapacityProviderResponse$=Die;g.UpdateCodeSigningConfig$=Pae;g.UpdateCodeSigningConfigCommand=BP;g.UpdateCodeSigningConfigRequest$=Nie;g.UpdateCodeSigningConfigResponse$=kie;g.UpdateEventSourceMapping$=Cae;g.UpdateEventSourceMappingCommand=VP;g.UpdateEventSourceMappingRequest$=Mie;g.UpdateFunctionCode$=Aae;g.UpdateFunctionCodeCommand=HP;g.UpdateFunctionCodeRequest$=Lie;g.UpdateFunctionConfiguration$=Tae;g.UpdateFunctionConfigurationCommand=GP;g.UpdateFunctionConfigurationRequest$=zie;g.UpdateFunctionEventInvokeConfig$=Iae;g.UpdateFunctionEventInvokeConfigCommand=qP;g.UpdateFunctionEventInvokeConfigRequest$=Fie;g.UpdateFunctionUrlConfig$=wae;g.UpdateFunctionUrlConfigCommand=WP;g.UpdateFunctionUrlConfigRequest$=Uie;g.UpdateFunctionUrlConfigResponse$=jie;g.UpdateRuntimeOn=l2e;g.VpcConfig$=$L;g.VpcConfigResponse$=Bie;g.WaitCancelledDetails$=Vie;g.WaitDetails$=Hie;g.WaitOptions$=Gie;g.WaitStartedDetails$=qie;g.WaitSucceededDetails$=Wie;g.paginateGetDurableExecutionHistory=tUe;g.paginateGetDurableExecutionState=rUe;g.paginateListAliases=nUe;g.paginateListCapacityProviders=oUe;g.paginateListCodeSigningConfigs=iUe;g.paginateListDurableExecutionsByFunction=sUe;g.paginateListEventSourceMappings=aUe;g.paginateListFunctionEventInvokeConfigs=cUe;g.paginateListFunctionUrlConfigs=dUe;g.paginateListFunctionVersionsByCapacityProvider=pUe;g.paginateListFunctions=uUe;g.paginateListFunctionsByCodeSigningConfig=lUe;g.paginateListLayerVersions=mUe;g.paginateListLayers=fUe;g.paginateListProvisionedConcurrencyConfigs=gUe;g.paginateListVersionsByFunction=hUe;g.waitForFunctionActive=bUe;g.waitForFunctionActiveV2=yUe;g.waitForFunctionExists=SUe;g.waitForFunctionUpdated=CUe;g.waitForFunctionUpdatedV2=vUe;g.waitForPublishedVersionActive=TUe;g.waitUntilFunctionActive=PUe;g.waitUntilFunctionActiveV2=EUe;g.waitUntilFunctionExists=_Ue;g.waitUntilFunctionUpdated=AUe;g.waitUntilFunctionUpdatedV2=xUe;g.waitUntilPublishedVersionActive=IUe});var ML=z(Pn=>{"use strict";Object.defineProperty(Pn,"__esModule",{value:!0});Pn.MAX_HASHABLE_LENGTH=Pn.INIT=Pn.KEY=Pn.DIGEST_LENGTH=Pn.BLOCK_SIZE=void 0;Pn.BLOCK_SIZE=64;Pn.DIGEST_LENGTH=32;Pn.KEY=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);Pn.INIT=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];Pn.MAX_HASHABLE_LENGTH=Math.pow(2,53)-1});var jae=z(WC=>{"use strict";Object.defineProperty(WC,"__esModule",{value:!0});WC.RawSha256=void 0;var Cn=ML(),P2e=(function(){function e(){this.state=Int32Array.from(Cn.INIT),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return i(e,"RawSha256"),e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var r=0,o=t.byteLength;if(this.bytesHashed+=o,this.bytesHashed*8>Cn.MAX_HASHABLE_LENGTH)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;o>0;)this.buffer[this.bufferLength++]=t[r++],o--,this.bufferLength===Cn.BLOCK_SIZE&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,r=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),o=this.bufferLength;if(r.setUint8(this.bufferLength++,128),o%Cn.BLOCK_SIZE>=Cn.BLOCK_SIZE-8){for(var n=this.bufferLength;n<Cn.BLOCK_SIZE;n++)r.setUint8(n,0);this.hashBuffer(),this.bufferLength=0}for(var n=this.bufferLength;n<Cn.BLOCK_SIZE-8;n++)r.setUint8(n,0);r.setUint32(Cn.BLOCK_SIZE-8,Math.floor(t/4294967296),!0),r.setUint32(Cn.BLOCK_SIZE-4,t),this.hashBuffer(),this.finished=!0}for(var s=new Uint8Array(Cn.DIGEST_LENGTH),n=0;n<8;n++)s[n*4]=this.state[n]>>>24&255,s[n*4+1]=this.state[n]>>>16&255,s[n*4+2]=this.state[n]>>>8&255,s[n*4+3]=this.state[n]>>>0&255;return s},e.prototype.hashBuffer=function(){for(var t=this,r=t.buffer,o=t.state,n=o[0],s=o[1],a=o[2],c=o[3],u=o[4],l=o[5],p=o[6],f=o[7],y=0;y<Cn.BLOCK_SIZE;y++){if(y<16)this.temp[y]=(r[y*4]&255)<<24|(r[y*4+1]&255)<<16|(r[y*4+2]&255)<<8|r[y*4+3]&255;else{var m=this.temp[y-2],_=(m>>>17|m<<15)^(m>>>19|m<<13)^m>>>10;m=this.temp[y-15];var b=(m>>>7|m<<25)^(m>>>18|m<<14)^m>>>3;this.temp[y]=(_+this.temp[y-7]|0)+(b+this.temp[y-16]|0)}var A=(((u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7))+(u&l^~u&p)|0)+(f+(Cn.KEY[y]+this.temp[y]|0)|0)|0,I=((n>>>2|n<<30)^(n>>>13|n<<19)^(n>>>22|n<<10))+(n&s^n&a^s&a)|0;f=p,p=l,l=u,u=c+A|0,c=a,a=s,s=n,n=A+I|0}o[0]+=n,o[1]+=s,o[2]+=a,o[3]+=c,o[4]+=u,o[5]+=l,o[6]+=p,o[7]+=f},e})();WC.RawSha256=P2e});var Vae=z(XC=>{"use strict";Object.defineProperty(XC,"__esModule",{value:!0});XC.Sha256=void 0;var Bae=(Zo(),pe(Wo)),KC=ML(),ZC=jae(),LL=Tx(),C2e=(function(){function e(t){this.secret=t,this.hash=new ZC.RawSha256,this.reset()}return i(e,"Sha256"),e.prototype.update=function(t){if(!((0,LL.isEmptyData)(t)||this.error))try{this.hash.update((0,LL.convertToBuffer)(t))}catch(r){this.error=r}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return Bae.__awaiter(this,void 0,void 0,function(){return Bae.__generator(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new ZC.RawSha256,this.secret){this.outer=new ZC.RawSha256;var t=A2e(this.secret),r=new Uint8Array(KC.BLOCK_SIZE);r.set(t);for(var o=0;o<KC.BLOCK_SIZE;o++)t[o]^=54,r[o]^=92;this.hash.update(t),this.outer.update(r);for(var o=0;o<t.byteLength;o++)t[o]=0}},e})();XC.Sha256=C2e;function A2e(e){var t=(0,LL.convertToBuffer)(e);if(t.byteLength>KC.BLOCK_SIZE){var r=new ZC.RawSha256;r.update(t),t=r.digest()}var o=new Uint8Array(KC.BLOCK_SIZE);return o.set(t),o}i(A2e,"bufferFromSecret")});var Hae=z(zL=>{"use strict";Object.defineProperty(zL,"__esModule",{value:!0});var T2e=(Zo(),pe(Wo));T2e.__exportStar(Vae(),zL)});var UL=z(eo=>{"use strict";Object.defineProperty(eo,"__esModule",{value:!0});eo.resolveHttpAuthSchemeConfig=eo.resolveStsAuthConfig=eo.defaultSTSHttpAuthSchemeProvider=eo.defaultSTSHttpAuthSchemeParametersProvider=void 0;var I2e=(Na(),pe(Da)),FL=Ft(),w2e=jL(),R2e=i(async(e,t,r)=>({operation:(0,FL.getSmithyContext)(t).operation,region:await(0,FL.normalizeProvider)(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),"defaultSTSHttpAuthSchemeParametersProvider");eo.defaultSTSHttpAuthSchemeParametersProvider=R2e;function $2e(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"sts",region:e.region},propertiesExtractor:i((t,r)=>({signingProperties:{config:t,context:r}}),"propertiesExtractor")}}i($2e,"createAwsAuthSigv4HttpAuthOption");function Gae(e){return{schemeId:"smithy.api#noAuth"}}i(Gae,"createSmithyApiNoAuthHttpAuthOption");var O2e=i(e=>{let t=[];switch(e.operation){case"AssumeRoleWithSAML":{t.push(Gae(e));break}case"AssumeRoleWithWebIdentity":{t.push(Gae(e));break}default:t.push($2e(e))}return t},"defaultSTSHttpAuthSchemeProvider");eo.defaultSTSHttpAuthSchemeProvider=O2e;var D2e=i(e=>Object.assign(e,{stsClientCtor:w2e.STSClient}),"resolveStsAuthConfig");eo.resolveStsAuthConfig=D2e;var N2e=i(e=>{let t=(0,eo.resolveStsAuthConfig)(e),r=(0,I2e.resolveAwsSdkSigV4Config)(t);return Object.assign(r,{authSchemePreference:(0,FL.normalizeProvider)(e.authSchemePreference??[])})},"resolveHttpAuthSchemeConfig");eo.resolveHttpAuthSchemeConfig=N2e});var BL=z(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.commonParams=vl.resolveClientEndpointParameters=void 0;var k2e=i(e=>Object.assign(e,{useDualstackEndpoint:e.useDualstackEndpoint??!1,useFipsEndpoint:e.useFipsEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,defaultSigningName:"sts"}),"resolveClientEndpointParameters");vl.resolveClientEndpointParameters=k2e;vl.commonParams={UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}}});var qae=z((Vvt,M2e)=>{M2e.exports={name:"@aws-sdk/client-sts",description:"AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native",version:"3.974.0",scripts:{build:"concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs","build:cjs":"node ../../scripts/compilation/inline client-sts","build:es":"tsc -p tsconfig.es.json","build:include:deps":'yarn g:turbo run build -F="$npm_package_name"',"build:types":"premove ./dist-types tsconfig.types.tsbuildinfo && tsc -p tsconfig.types.json","build:types:downlevel":"downlevel-dts dist-types dist-types/ts3.4",clean:"premove dist-cjs dist-es dist-types tsconfig.cjs.tsbuildinfo tsconfig.es.tsbuildinfo tsconfig.types.tsbuildinfo","extract:docs":"api-extractor run --local","generate:client":"node ../../scripts/generate-clients/single-service --solo sts",test:"yarn g:vitest run","test:e2e":"yarn g:vitest run -c vitest.config.e2e.mts --mode development","test:e2e:watch":"yarn g:vitest watch -c vitest.config.e2e.mts","test:index":"tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs","test:watch":"yarn g:vitest watch"},main:"./dist-cjs/index.js",types:"./dist-types/index.d.ts",module:"./dist-es/index.js",sideEffects:!1,dependencies:{"@aws-crypto/sha256-browser":"5.2.0","@aws-crypto/sha256-js":"5.2.0","@aws-sdk/core":"^3.973.0","@aws-sdk/credential-provider-node":"^3.972.1","@aws-sdk/middleware-host-header":"^3.972.1","@aws-sdk/middleware-logger":"^3.972.1","@aws-sdk/middleware-recursion-detection":"^3.972.1","@aws-sdk/middleware-user-agent":"^3.972.1","@aws-sdk/region-config-resolver":"^3.972.1","@aws-sdk/types":"^3.973.0","@aws-sdk/util-endpoints":"3.972.0","@aws-sdk/util-user-agent-browser":"^3.972.1","@aws-sdk/util-user-agent-node":"^3.972.1","@smithy/config-resolver":"^4.4.6","@smithy/core":"^3.21.0","@smithy/fetch-http-handler":"^5.3.9","@smithy/hash-node":"^4.2.8","@smithy/invalid-dependency":"^4.2.8","@smithy/middleware-content-length":"^4.2.8","@smithy/middleware-endpoint":"^4.4.10","@smithy/middleware-retry":"^4.4.26","@smithy/middleware-serde":"^4.2.9","@smithy/middleware-stack":"^4.2.8","@smithy/node-config-provider":"^4.3.8","@smithy/node-http-handler":"^4.4.8","@smithy/protocol-http":"^5.3.8","@smithy/smithy-client":"^4.10.11","@smithy/types":"^4.12.0","@smithy/url-parser":"^4.2.8","@smithy/util-base64":"^4.3.0","@smithy/util-body-length-browser":"^4.2.0","@smithy/util-body-length-node":"^4.2.1","@smithy/util-defaults-mode-browser":"^4.3.25","@smithy/util-defaults-mode-node":"^4.2.28","@smithy/util-endpoints":"^3.2.8","@smithy/util-middleware":"^4.2.8","@smithy/util-retry":"^4.2.8","@smithy/util-utf8":"^4.2.0",tslib:"^2.6.2"},devDependencies:{"@tsconfig/node20":"20.1.8","@types/node":"^20.14.8",concurrently:"7.0.0","downlevel-dts":"0.10.1",premove:"4.0.0",typescript:"~5.8.3"},engines:{node:">=20.0.0"},typesVersions:{"<4.0":{"dist-types/*":["dist-types/ts3.4/*"]}},files:["dist-*/**"],author:{name:"AWS SDK for JavaScript Team",url:"https://aws.amazon.com/javascript/"},license:"Apache-2.0",browser:{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.browser"},"react-native":{"./dist-es/runtimeConfig":"./dist-es/runtimeConfig.native"},homepage:"https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts",repository:{type:"git",url:"https://github.com/aws/aws-sdk-js-v3.git",directory:"clients/client-sts"}}});var mce=z(JC=>{"use strict";Object.defineProperty(JC,"__esModule",{value:!0});JC.ruleSet=void 0;var oce="required",De="type",Ge="fn",qe="argv",Os="ref",Wae=!1,VL=!0,$s="booleanEquals",Kt="stringEquals",ice="sigv4",sce="sts",ace="us-east-1",ut="endpoint",Zae="https://sts.{Region}.{PartitionResult#dnsSuffix}",To="tree",xl="error",GL="getAttr",Kae={[oce]:!1,[De]:"string"},HL={[oce]:!0,default:!1,[De]:"boolean"},cce={[Os]:"Endpoint"},Xae={[Ge]:"isSet",[qe]:[{[Os]:"Region"}]},Xt={[Os]:"Region"},Jae={[Ge]:"aws.partition",[qe]:[Xt],assign:"PartitionResult"},uce={[Os]:"UseFIPS"},lce={[Os]:"UseDualStack"},pr={url:"https://sts.amazonaws.com",properties:{authSchemes:[{name:ice,signingName:sce,signingRegion:ace}]},headers:{}},on={},Yae={conditions:[{[Ge]:Kt,[qe]:[Xt,"aws-global"]}],[ut]:pr,[De]:ut},dce={[Ge]:$s,[qe]:[uce,!0]},pce={[Ge]:$s,[qe]:[lce,!0]},Qae={[Ge]:GL,[qe]:[{[Os]:"PartitionResult"},"supportsFIPS"]},fce={[Os]:"PartitionResult"},ece={[Ge]:$s,[qe]:[!0,{[Ge]:GL,[qe]:[fce,"supportsDualStack"]}]},tce=[{[Ge]:"isSet",[qe]:[cce]}],rce=[dce],nce=[pce],L2e={version:"1.0",parameters:{Region:Kae,UseDualStack:HL,UseFIPS:HL,Endpoint:Kae,UseGlobalEndpoint:HL},rules:[{conditions:[{[Ge]:$s,[qe]:[{[Os]:"UseGlobalEndpoint"},VL]},{[Ge]:"not",[qe]:tce},Xae,Jae,{[Ge]:$s,[qe]:[uce,Wae]},{[Ge]:$s,[qe]:[lce,Wae]}],rules:[{conditions:[{[Ge]:Kt,[qe]:[Xt,"ap-northeast-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"ap-south-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"ap-southeast-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"ap-southeast-2"]}],endpoint:pr,[De]:ut},Yae,{conditions:[{[Ge]:Kt,[qe]:[Xt,"ca-central-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"eu-central-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"eu-north-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"eu-west-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"eu-west-2"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"eu-west-3"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"sa-east-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,ace]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"us-east-2"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"us-west-1"]}],endpoint:pr,[De]:ut},{conditions:[{[Ge]:Kt,[qe]:[Xt,"us-west-2"]}],endpoint:pr,[De]:ut},{endpoint:{url:Zae,properties:{authSchemes:[{name:ice,signingName:sce,signingRegion:"{Region}"}]},headers:on},[De]:ut}],[De]:To},{conditions:tce,rules:[{conditions:rce,error:"Invalid Configuration: FIPS and custom endpoint are not supported",[De]:xl},{conditions:nce,error:"Invalid Configuration: Dualstack and custom endpoint are not supported",[De]:xl},{endpoint:{url:cce,properties:on,headers:on},[De]:ut}],[De]:To},{conditions:[Xae],rules:[{conditions:[Jae],rules:[{conditions:[dce,pce],rules:[{conditions:[{[Ge]:$s,[qe]:[VL,Qae]},ece],rules:[{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:on,headers:on},[De]:ut}],[De]:To},{error:"FIPS and DualStack are enabled, but this partition does not support one or both",[De]:xl}],[De]:To},{conditions:rce,rules:[{conditions:[{[Ge]:$s,[qe]:[Qae,VL]}],rules:[{conditions:[{[Ge]:Kt,[qe]:[{[Ge]:GL,[qe]:[fce,"name"]},"aws-us-gov"]}],endpoint:{url:"https://sts.{Region}.amazonaws.com",properties:on,headers:on},[De]:ut},{endpoint:{url:"https://sts-fips.{Region}.{PartitionResult#dnsSuffix}",properties:on,headers:on},[De]:ut}],[De]:To},{error:"FIPS is enabled but this partition does not support FIPS",[De]:xl}],[De]:To},{conditions:nce,rules:[{conditions:[ece],rules:[{endpoint:{url:"https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}",properties:on,headers:on},[De]:ut}],[De]:To},{error:"DualStack is enabled but this partition does not support DualStack",[De]:xl}],[De]:To},Yae,{endpoint:{url:Zae,properties:on,headers:on},[De]:ut}],[De]:To}],[De]:To},{error:"Invalid Configuration: Missing Region",[De]:xl}]};JC.ruleSet=L2e});var gce=z(YC=>{"use strict";Object.defineProperty(YC,"__esModule",{value:!0});YC.defaultEndpointResolver=void 0;var z2e=lM(),qL=$r(),F2e=mce(),U2e=new qL.EndpointCache({size:50,params:["Endpoint","Region","UseDualStack","UseFIPS","UseGlobalEndpoint"]}),j2e=i((e,t={})=>U2e.get(e,()=>(0,qL.resolveEndpoint)(F2e.ruleSet,{endpointParams:e,logger:t.logger})),"defaultEndpointResolver");YC.defaultEndpointResolver=j2e;qL.customEndpointFunctions.aws=z2e.awsEndpointFunctions});var Ece=z(QC=>{"use strict";Object.defineProperty(QC,"__esModule",{value:!0});QC.getRuntimeConfig=void 0;var B2e=(Na(),pe(Da)),V2e=(ui(),pe(O_)),H2e=(Ut(),pe(Ea)),G2e=ye(),q2e=gn(),hce=wt(),yce=It(),W2e=UL(),Z2e=gce(),K2e=i(e=>({apiVersion:"2011-06-15",base64Decoder:e?.base64Decoder??hce.fromBase64,base64Encoder:e?.base64Encoder??hce.toBase64,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??Z2e.defaultEndpointResolver,extensions:e?.extensions??[],httpAuthSchemeProvider:e?.httpAuthSchemeProvider??W2e.defaultSTSHttpAuthSchemeProvider,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(t=>t.getIdentityProvider("aws.auth#sigv4"),"identityProvider"),signer:new B2e.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:i(t=>t.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new H2e.NoAuthSigner}],logger:e?.logger??new G2e.NoOpLogger,protocol:e?.protocol??V2e.AwsQueryProtocol,protocolSettings:e?.protocolSettings??{defaultNamespace:"com.amazonaws.sts",xmlNamespace:"https://sts.amazonaws.com/doc/2011-06-15/",version:"2011-06-15",serviceTarget:"AWSSecurityTokenServiceV20110615"},serviceId:e?.serviceId??"STS",urlParser:e?.urlParser??q2e.parseUrl,utf8Decoder:e?.utf8Decoder??yce.fromUtf8,utf8Encoder:e?.utf8Encoder??yce.toUtf8}),"getRuntimeConfig");QC.getRuntimeConfig=K2e});var Pce=z(tA=>{"use strict";Object.defineProperty(tA,"__esModule",{value:!0});tA.getRuntimeConfig=void 0;var X2e=(Zo(),pe(Wo)),J2e=X2e.__importDefault(qae()),WL=(Na(),pe(Da)),Sce=J1(),_ce=Ma(),eA=or(),Y2e=(Ut(),pe(Ea)),Q2e=La(),vce=en(),dc=Vn(),xce=Go(),bce=ye(),e4e=za(),t4e=Fa(),r4e=uo(),n4e=Ece(),o4e=i(e=>{(0,bce.emitWarningIfUnsupportedVersion)(process.version);let t=(0,t4e.resolveDefaultsModeConfig)(e),r=i(()=>t().then(bce.loadConfigsForDefaultMode),"defaultConfigProvider"),o=(0,n4e.getRuntimeConfig)(e);(0,WL.emitWarningIfUnsupportedVersion)(process.version);let n={profile:e?.profile,logger:o.logger};return{...o,...e,runtime:"node",defaultsMode:t,authSchemePreference:e?.authSchemePreference??(0,dc.loadConfig)(WL.NODE_AUTH_SCHEME_PREFERENCE_OPTIONS,n),bodyLengthChecker:e?.bodyLengthChecker??e4e.calculateBodyLength,credentialDefaultProvider:e?.credentialDefaultProvider??Sce.defaultProvider,defaultUserAgentProvider:e?.defaultUserAgentProvider??(0,_ce.createDefaultUserAgentProvider)({serviceId:o.serviceId,clientVersion:J2e.default.version}),httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:i(s=>s.getIdentityProvider("aws.auth#sigv4")||(async a=>await(0,Sce.defaultProvider)(a?.__config||{})()),"identityProvider"),signer:new WL.AwsSdkSigV4Signer},{schemeId:"smithy.api#noAuth",identityProvider:i(s=>s.getIdentityProvider("smithy.api#noAuth")||(async()=>({})),"identityProvider"),signer:new Y2e.NoAuthSigner}],maxAttempts:e?.maxAttempts??(0,dc.loadConfig)(vce.NODE_MAX_ATTEMPT_CONFIG_OPTIONS,e),region:e?.region??(0,dc.loadConfig)(eA.NODE_REGION_CONFIG_OPTIONS,{...eA.NODE_REGION_CONFIG_FILE_OPTIONS,...n}),requestHandler:xce.NodeHttpHandler.create(e?.requestHandler??r),retryMode:e?.retryMode??(0,dc.loadConfig)({...vce.NODE_RETRY_MODE_CONFIG_OPTIONS,default:i(async()=>(await r()).retryMode||r4e.DEFAULT_RETRY_MODE,"default")},e),sha256:e?.sha256??Q2e.Hash.bind(null,"sha256"),streamCollector:e?.streamCollector??xce.streamCollector,useDualstackEndpoint:e?.useDualstackEndpoint??(0,dc.loadConfig)(eA.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS,n),useFipsEndpoint:e?.useFipsEndpoint??(0,dc.loadConfig)(eA.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS,n),userAgentAppId:e?.userAgentAppId??(0,dc.loadConfig)(_ce.NODE_APP_ID_CONFIG_OPTIONS,n)}},"getRuntimeConfig");tA.getRuntimeConfig=o4e});var Cce=z(bl=>{"use strict";Object.defineProperty(bl,"__esModule",{value:!0});bl.resolveHttpAuthRuntimeConfig=bl.getHttpAuthExtensionConfiguration=void 0;var i4e=i(e=>{let t=e.httpAuthSchemes,r=e.httpAuthSchemeProvider,o=e.credentials;return{setHttpAuthScheme(n){let s=t.findIndex(a=>a.schemeId===n.schemeId);s===-1?t.push(n):t.splice(s,1,n)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(n){r=n},httpAuthSchemeProvider(){return r},setCredentials(n){o=n},credentials(){return o}}},"getHttpAuthExtensionConfiguration");bl.getHttpAuthExtensionConfiguration=i4e;var s4e=i(e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),"resolveHttpAuthRuntimeConfig");bl.resolveHttpAuthRuntimeConfig=s4e});var Rce=z(rA=>{"use strict";Object.defineProperty(rA,"__esModule",{value:!0});rA.resolveRuntimeExtensions=void 0;var Ace=li(),Tce=Ze(),Ice=ye(),wce=Cce(),a4e=i((e,t)=>{let r=Object.assign((0,Ace.getAwsRegionExtensionConfiguration)(e),(0,Ice.getDefaultExtensionConfiguration)(e),(0,Tce.getHttpHandlerExtensionConfiguration)(e),(0,wce.getHttpAuthExtensionConfiguration)(e));return t.forEach(o=>o.configure(r)),Object.assign(e,(0,Ace.resolveAwsRegionExtensionConfiguration)(r),(0,Ice.resolveDefaultRuntimeConfig)(r),(0,Tce.resolveHttpHandlerRuntimeConfig)(r),(0,wce.resolveHttpAuthRuntimeConfig)(r))},"resolveRuntimeExtensions");rA.resolveRuntimeExtensions=a4e});var jL=z(Pl=>{"use strict";Object.defineProperty(Pl,"__esModule",{value:!0});Pl.STSClient=Pl.__Client=void 0;var $ce=ua(),c4e=la(),u4e=da(),Oce=ji(),l4e=or(),ZL=(Ut(),pe(Ea)),d4e=(je(),pe(Fp)),p4e=Aa(),f4e=Or(),Dce=en(),kce=ye();Object.defineProperty(Pl,"__Client",{enumerable:!0,get:i(function(){return kce.Client},"get")});var Nce=UL(),m4e=BL(),g4e=Pce(),h4e=Rce(),KL=class extends kce.Client{static{i(this,"STSClient")}config;constructor(...[t]){let r=(0,g4e.getRuntimeConfig)(t||{});super(r),this.initConfig=r;let o=(0,m4e.resolveClientEndpointParameters)(r),n=(0,Oce.resolveUserAgentConfig)(o),s=(0,Dce.resolveRetryConfig)(n),a=(0,l4e.resolveRegionConfig)(s),c=(0,$ce.resolveHostHeaderConfig)(a),u=(0,f4e.resolveEndpointConfig)(c),l=(0,Nce.resolveHttpAuthSchemeConfig)(u),p=(0,h4e.resolveRuntimeExtensions)(l,t?.extensions||[]);this.config=p,this.middlewareStack.use((0,d4e.getSchemaSerdePlugin)(this.config)),this.middlewareStack.use((0,Oce.getUserAgentPlugin)(this.config)),this.middlewareStack.use((0,Dce.getRetryPlugin)(this.config)),this.middlewareStack.use((0,p4e.getContentLengthPlugin)(this.config)),this.middlewareStack.use((0,$ce.getHostHeaderPlugin)(this.config)),this.middlewareStack.use((0,c4e.getLoggerPlugin)(this.config)),this.middlewareStack.use((0,u4e.getRecursionDetectionPlugin)(this.config)),this.middlewareStack.use((0,ZL.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config,{httpAuthSchemeParametersProvider:Nce.defaultSTSHttpAuthSchemeParametersProvider,identityProviderConfigProvider:i(async f=>new ZL.DefaultIdentityProviderConfig({"aws.auth#sigv4":f.credentials}),"identityProviderConfigProvider")})),this.middlewareStack.use((0,ZL.getHttpSigningPlugin)(this.config))}destroy(){super.destroy()}};Pl.STSClient=KL});var que=z(J=>{"use strict";var ng=jL(),jr=ye(),to=Or(),ro=BL(),sn=(je(),pe(Fp)),XL=(Rt(),pe(yn)),y4e=li(),fr=class e extends jr.ServiceException{static{i(this,"STSServiceException")}constructor(t){super(t),Object.setPrototypeOf(this,e.prototype)}},nA=class e extends fr{static{i(this,"ExpiredTokenException")}name="ExpiredTokenException";$fault="client";constructor(t){super({name:"ExpiredTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},oA=class e extends fr{static{i(this,"MalformedPolicyDocumentException")}name="MalformedPolicyDocumentException";$fault="client";constructor(t){super({name:"MalformedPolicyDocumentException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},iA=class e extends fr{static{i(this,"PackedPolicyTooLargeException")}name="PackedPolicyTooLargeException";$fault="client";constructor(t){super({name:"PackedPolicyTooLargeException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},sA=class e extends fr{static{i(this,"RegionDisabledException")}name="RegionDisabledException";$fault="client";constructor(t){super({name:"RegionDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},aA=class e extends fr{static{i(this,"IDPRejectedClaimException")}name="IDPRejectedClaimException";$fault="client";constructor(t){super({name:"IDPRejectedClaimException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},cA=class e extends fr{static{i(this,"InvalidIdentityTokenException")}name="InvalidIdentityTokenException";$fault="client";constructor(t){super({name:"InvalidIdentityTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},uA=class e extends fr{static{i(this,"IDPCommunicationErrorException")}name="IDPCommunicationErrorException";$fault="client";constructor(t){super({name:"IDPCommunicationErrorException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},lA=class e extends fr{static{i(this,"InvalidAuthorizationMessageException")}name="InvalidAuthorizationMessageException";$fault="client";constructor(t){super({name:"InvalidAuthorizationMessageException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},dA=class e extends fr{static{i(this,"ExpiredTradeInTokenException")}name="ExpiredTradeInTokenException";$fault="client";constructor(t){super({name:"ExpiredTradeInTokenException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},pA=class e extends fr{static{i(this,"JWTPayloadSizeExceededException")}name="JWTPayloadSizeExceededException";$fault="client";constructor(t){super({name:"JWTPayloadSizeExceededException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},fA=class e extends fr{static{i(this,"OutboundWebIdentityFederationDisabledException")}name="OutboundWebIdentityFederationDisabledException";$fault="client";constructor(t){super({name:"OutboundWebIdentityFederationDisabledException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},mA=class e extends fr{static{i(this,"SessionDurationEscalationException")}name="SessionDurationEscalationException";$fault="client";constructor(t){super({name:"SessionDurationEscalationException",$fault:"client",...t}),Object.setPrototypeOf(this,e.prototype)}},JL="Arn",Mce="AccessKeyId",E4e="AssumedPrincipal",S4e="AssumeRole",_4e="AssumedRoleId",v4e="AssumeRoleRequest",x4e="AssumeRoleResponse",b4e="AssumeRootRequest",P4e="AssumeRootResponse",CA="AssumedRoleUser",C4e="AssumeRoleWithSAML",A4e="AssumeRoleWithSAMLRequest",T4e="AssumeRoleWithSAMLResponse",I4e="AssumeRoleWithWebIdentity",w4e="AssumeRoleWithWebIdentityRequest",R4e="AssumeRoleWithWebIdentityResponse",$4e="AssumeRoot",Lce="Account",YL="Audience",Ds="Credentials",O4e="ContextAssertion",D4e="DecodeAuthorizationMessage",N4e="DecodeAuthorizationMessageRequest",k4e="DecodeAuthorizationMessageResponse",M4e="DecodedMessage",pc="DurationSeconds",zce="Expiration",L4e="ExternalId",z4e="EncodedMessage",F4e="ExpiredTokenException",U4e="ExpiredTradeInTokenException",Fce="FederatedUser",j4e="FederatedUserId",B4e="GetAccessKeyInfo",V4e="GetAccessKeyInfoRequest",H4e="GetAccessKeyInfoResponse",G4e="GetCallerIdentity",q4e="GetCallerIdentityRequest",W4e="GetCallerIdentityResponse",Z4e="GetDelegatedAccessToken",K4e="GetDelegatedAccessTokenRequest",X4e="GetDelegatedAccessTokenResponse",J4e="GetFederationToken",Y4e="GetFederationTokenRequest",Q4e="GetFederationTokenResponse",eje="GetSessionToken",tje="GetSessionTokenRequest",rje="GetSessionTokenResponse",nje="GetWebIdentityToken",oje="GetWebIdentityTokenRequest",ije="GetWebIdentityTokenResponse",sje="Issuer",aje="InvalidAuthorizationMessageException",cje="IDPCommunicationErrorException",uje="IDPRejectedClaimException",lje="InvalidIdentityTokenException",dje="JWTPayloadSizeExceededException",pje="Key",fje="MalformedPolicyDocumentException",mje="Name",gje="NameQualifier",hje="OutboundWebIdentityFederationDisabledException",AA="Policy",TA="PolicyArns",yje="PrincipalArn",Eje="ProviderArn",Sje="ProvidedContexts",_je="ProvidedContextsListType",vje="ProvidedContext",xje="PolicyDescriptorType",bje="ProviderId",sg="PackedPolicySize",Pje="PackedPolicyTooLargeException",Cje="Provider",QL="RoleArn",Aje="RegionDisabledException",Uce="RoleSessionName",Tje="Subject",Ije="SigningAlgorithm",wje="SecretAccessKey",Rje="SAMLAssertion",$je="SAMLAssertionType",Oje="SessionDurationEscalationException",Dje="SubjectFromWebIdentityToken",ag="SourceIdentity",jce="SerialNumber",Nje="SubjectType",kje="SessionToken",ez="Tags",Bce="TokenCode",Mje="TradeInToken",Lje="TargetPrincipal",zje="TaskPolicyArn",Fje="TransitiveTagKeys",Uje="Tag",jje="UserId",Bje="Value",Vce="WebIdentityToken",Vje="arn",Hje="accessKeySecretType",An="awsQueryError",Tn="client",Gje="clientTokenType",In="error",wn="httpError",Rn="message",qje="policyDescriptorListType",Hce="smithy.ts.sdk.synthetic.com.amazonaws.sts",Wje="tradeInTokenType",Zje="tagListType",Kje="webIdentityTokenType",re="com.amazonaws.sts",Xje=[0,re,Hje,8,0],Jje=[0,re,Gje,8,0],Yje=[0,re,$je,8,0],Qje=[0,re,Wje,8,0],eBe=[0,re,Kje,8,0],IA=[3,re,CA,0,[_4e,JL],[0,0],2],Gce=[3,re,v4e,0,[QL,Uce,TA,AA,pc,ez,Fje,L4e,jce,Bce,ag,Sje],[0,0,()=>wA,0,1,()=>rz,64,0,0,0,0,()=>tBe],2],qce=[3,re,x4e,0,[Ds,CA,sg,ag],[[()=>Ns,0],()=>IA,1,0]],Wce=[3,re,A4e,0,[QL,yje,Rje,TA,AA,pc],[0,0,[()=>Yje,0],()=>wA,0,1],3],Zce=[3,re,T4e,0,[Ds,CA,sg,Tje,Nje,sje,YL,gje,ag],[[()=>Ns,0],()=>IA,1,0,0,0,0,0,0]],Kce=[3,re,w4e,0,[QL,Uce,Vce,bje,TA,AA,pc],[0,0,[()=>Jje,0],0,()=>wA,0,1],3],Xce=[3,re,R4e,0,[Ds,Dje,CA,sg,Cje,YL,ag],[[()=>Ns,0],0,()=>IA,1,0,0,0]],Jce=[3,re,b4e,0,[Lje,zje,pc],[0,()=>tz,1],2],Yce=[3,re,P4e,0,[Ds,ag],[[()=>Ns,0],0]],Ns=[3,re,Ds,0,[Mce,wje,kje,zce],[0,[()=>Xje,0],0,4],4],Qce=[3,re,N4e,0,[z4e],[0],1],eue=[3,re,k4e,0,[M4e],[0]],tue=[-3,re,F4e,{[An]:["ExpiredTokenException",400],[In]:Tn,[wn]:400},[Rn],[0]];sn.TypeRegistry.for(re).registerError(tue,nA);var rue=[-3,re,U4e,{[An]:["ExpiredTradeInTokenException",400],[In]:Tn,[wn]:400},[Rn],[0]];sn.TypeRegistry.for(re).registerError(rue,dA);var nue=[3,re,Fce,0,[j4e,JL],[0,0],2],oue=[3,re,V4e,0,[Mce],[0],1],iue=[3,re,H4e,0,[Lce],[0]],sue=[3,re,q4e,0,[],[]],aue=[3,re,W4e,0,[jje,Lce,JL],[0,0,0]],cue=[3,re,K4e,0,[Mje],[[()=>Qje,0]],1],uue=[3,re,X4e,0,[Ds,sg,E4e],[[()=>Ns,0],1,0]],lue=[3,re,Y4e,0,[mje,AA,TA,pc,ez],[0,0,()=>wA,1,()=>rz],1],due=[3,re,Q4e,0,[Ds,Fce,sg],[[()=>Ns,0],()=>nue,1]],pue=[3,re,tje,0,[pc,jce,Bce],[1,0,0]],fue=[3,re,rje,0,[Ds],[[()=>Ns,0]]],mue=[3,re,oje,0,[YL,Ije,pc,ez],[64,0,1,()=>rz],2],gue=[3,re,ije,0,[Vce,zce],[[()=>eBe,0],4]],hue=[-3,re,cje,{[An]:["IDPCommunicationError",400],[In]:Tn,[wn]:400},[Rn],[0]];sn.TypeRegistry.for(re).registerError(hue,uA);var yue=[-3,re,uje,{[An]:["IDPRejectedClaim",403],[In]:Tn,[wn]:403},[Rn],[0]];sn.TypeRegistry.for(re).registerError(yue,aA);var Eue=[-3,re,aje,{[An]:["InvalidAuthorizationMessageException",400],[In]:Tn,[wn]:400},[Rn],[0]];sn.TypeRegistry.for(re).registerError(Eue,lA);var Sue=[-3,re,lje,{[An]:["InvalidIdentityToken",400],[In]:Tn,[wn]:400},[Rn],[0]];sn.TypeRegistry.for(re).registerError(Sue,cA);var _ue=[-3,re,dje,{[An]:["JWTPayloadSizeExceededException",400],[In]:Tn,[wn]:400},[Rn],[0]];sn.TypeRegistry.for(re).registerError(_ue,pA);var vue=[-3,re,fje,{[An]:["MalformedPolicyDocument",400],[In]:Tn,[wn]:400},[Rn],[0]];sn.TypeRegistry.for(re).registerError(vue,oA);var xue=[-3,re,hje,{[An]:["OutboundWebIdentityFederationDisabledException",403],[In]:Tn,[wn]:403},[Rn],[0]];sn.TypeRegistry.for(re).registerError(xue,fA);var bue=[-3,re,Pje,{[An]:["PackedPolicyTooLarge",400],[In]:Tn,[wn]:400},[Rn],[0]];sn.TypeRegistry.for(re).registerError(bue,iA);var tz=[3,re,xje,0,[Vje],[0]],Pue=[3,re,vje,0,[Eje,O4e],[0,0]],Cue=[-3,re,Aje,{[An]:["RegionDisabledException",403],[In]:Tn,[wn]:403},[Rn],[0]];sn.TypeRegistry.for(re).registerError(Cue,sA);var Aue=[-3,re,Oje,{[An]:["SessionDurationEscalationException",403],[In]:Tn,[wn]:403},[Rn],[0]];sn.TypeRegistry.for(re).registerError(Aue,mA);var Tue=[3,re,Uje,0,[pje,Bje],[0,0],2],Iue=[-3,Hce,"STSServiceException",0,[],[]];sn.TypeRegistry.for(Hce).registerError(Iue,fr);var wA=[1,re,qje,0,()=>tz],tBe=[1,re,_je,0,()=>Pue],rz=[1,re,Zje,0,()=>Tue],wue=[9,re,S4e,0,()=>Gce,()=>qce],Rue=[9,re,C4e,0,()=>Wce,()=>Zce],$ue=[9,re,I4e,0,()=>Kce,()=>Xce],Oue=[9,re,$4e,0,()=>Jce,()=>Yce],Due=[9,re,D4e,0,()=>Qce,()=>eue],Nue=[9,re,B4e,0,()=>oue,()=>iue],kue=[9,re,G4e,0,()=>sue,()=>aue],Mue=[9,re,Z4e,0,()=>cue,()=>uue],Lue=[9,re,J4e,0,()=>lue,()=>due],zue=[9,re,eje,0,()=>pue,()=>fue],Fue=[9,re,nje,0,()=>mue,()=>gue],og=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRole",{}).n("STSClient","AssumeRoleCommand").sc(wue).build(){static{i(this,"AssumeRoleCommand")}},gA=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithSAML",{}).n("STSClient","AssumeRoleWithSAMLCommand").sc(Rue).build(){static{i(this,"AssumeRoleWithSAMLCommand")}},ig=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoleWithWebIdentity",{}).n("STSClient","AssumeRoleWithWebIdentityCommand").sc($ue).build(){static{i(this,"AssumeRoleWithWebIdentityCommand")}},hA=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","AssumeRoot",{}).n("STSClient","AssumeRootCommand").sc(Oue).build(){static{i(this,"AssumeRootCommand")}},yA=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","DecodeAuthorizationMessage",{}).n("STSClient","DecodeAuthorizationMessageCommand").sc(Due).build(){static{i(this,"DecodeAuthorizationMessageCommand")}},EA=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetAccessKeyInfo",{}).n("STSClient","GetAccessKeyInfoCommand").sc(Nue).build(){static{i(this,"GetAccessKeyInfoCommand")}},SA=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetCallerIdentity",{}).n("STSClient","GetCallerIdentityCommand").sc(kue).build(){static{i(this,"GetCallerIdentityCommand")}},_A=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetDelegatedAccessToken",{}).n("STSClient","GetDelegatedAccessTokenCommand").sc(Mue).build(){static{i(this,"GetDelegatedAccessTokenCommand")}},vA=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetFederationToken",{}).n("STSClient","GetFederationTokenCommand").sc(Lue).build(){static{i(this,"GetFederationTokenCommand")}},xA=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetSessionToken",{}).n("STSClient","GetSessionTokenCommand").sc(zue).build(){static{i(this,"GetSessionTokenCommand")}},bA=class extends jr.Command.classBuilder().ep(ro.commonParams).m(function(t,r,o,n){return[to.getEndpointPlugin(o,t.getEndpointParameterInstructions())]}).s("AWSSecurityTokenServiceV20110615","GetWebIdentityToken",{}).n("STSClient","GetWebIdentityTokenCommand").sc(Fue).build(){static{i(this,"GetWebIdentityTokenCommand")}},rBe={AssumeRoleCommand:og,AssumeRoleWithSAMLCommand:gA,AssumeRoleWithWebIdentityCommand:ig,AssumeRootCommand:hA,DecodeAuthorizationMessageCommand:yA,GetAccessKeyInfoCommand:EA,GetCallerIdentityCommand:SA,GetDelegatedAccessTokenCommand:_A,GetFederationTokenCommand:vA,GetSessionTokenCommand:xA,GetWebIdentityTokenCommand:bA},PA=class extends ng.STSClient{static{i(this,"STS")}};jr.createAggregatedClient(rBe,PA);var Uue=i(e=>{if(typeof e?.Arn=="string"){let t=e.Arn.split(":");if(t.length>4&&t[4]!=="")return t[4]}},"getAccountIdFromAssumedRoleUser"),jue=i(async(e,t,r,o={})=>{let n=typeof e=="function"?await e():e,s=typeof t=="function"?await t():t,a="",c=n??s??(a=await y4e.stsRegionDefaultResolver(o)());return r?.debug?.("@aws-sdk/client-sts::resolveRegion","accepting first of:",`${n} (credential provider clientConfig)`,`${s} (contextual client)`,`${a} (STS default: AWS_REGION, profile region, or us-east-1)`),c},"resolveRegion"),nBe=i((e,t)=>{let r,o;return async(n,s)=>{if(o=n,!r){let{logger:p=e?.parentClientConfig?.logger,profile:f=e?.parentClientConfig?.profile,region:y,requestHandler:m=e?.parentClientConfig?.requestHandler,credentialProviderLogger:_,userAgentAppId:b=e?.parentClientConfig?.userAgentAppId}=e,A=await jue(y,e?.parentClientConfig?.region,_,{logger:p,profile:f}),I=!Bue(m);r=new t({...e,userAgentAppId:b,profile:f,credentialDefaultProvider:i(()=>async()=>o,"credentialDefaultProvider"),region:A,requestHandler:I?m:void 0,logger:p})}let{Credentials:a,AssumedRoleUser:c}=await r.send(new og(s));if(!a||!a.AccessKeyId||!a.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRole call with role ${s.RoleArn}`);let u=Uue(c),l={accessKeyId:a.AccessKeyId,secretAccessKey:a.SecretAccessKey,sessionToken:a.SessionToken,expiration:a.Expiration,...a.CredentialScope&&{credentialScope:a.CredentialScope},...u&&{accountId:u}};return XL.setCredentialFeature(l,"CREDENTIALS_STS_ASSUME_ROLE","i"),l}},"getDefaultRoleAssumer$1"),oBe=i((e,t)=>{let r;return async o=>{if(!r){let{logger:u=e?.parentClientConfig?.logger,profile:l=e?.parentClientConfig?.profile,region:p,requestHandler:f=e?.parentClientConfig?.requestHandler,credentialProviderLogger:y,userAgentAppId:m=e?.parentClientConfig?.userAgentAppId}=e,_=await jue(p,e?.parentClientConfig?.region,y,{logger:u,profile:l}),b=!Bue(f);r=new t({...e,userAgentAppId:m,profile:l,region:_,requestHandler:b?f:void 0,logger:u})}let{Credentials:n,AssumedRoleUser:s}=await r.send(new ig(o));if(!n||!n.AccessKeyId||!n.SecretAccessKey)throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${o.RoleArn}`);let a=Uue(s),c={accessKeyId:n.AccessKeyId,secretAccessKey:n.SecretAccessKey,sessionToken:n.SessionToken,expiration:n.Expiration,...n.CredentialScope&&{credentialScope:n.CredentialScope},...a&&{accountId:a}};return a&&XL.setCredentialFeature(c,"RESOLVED_ACCOUNT_ID","T"),XL.setCredentialFeature(c,"CREDENTIALS_STS_ASSUME_ROLE_WEB_ID","k"),c}},"getDefaultRoleAssumerWithWebIdentity$1"),Bue=i(e=>e?.metadata?.handlerProtocol==="h2","isH2"),Vue=i((e,t)=>t?class extends e{static{i(this,"CustomizableSTSClient")}constructor(o){super(o);for(let n of t)this.middlewareStack.use(n)}}:e,"getCustomizableStsClientCtor"),Hue=i((e={},t)=>nBe(e,Vue(ng.STSClient,t)),"getDefaultRoleAssumer"),Gue=i((e={},t)=>oBe(e,Vue(ng.STSClient,t)),"getDefaultRoleAssumerWithWebIdentity"),iBe=i(e=>t=>e({roleAssumer:Hue(t),roleAssumerWithWebIdentity:Gue(t),...t}),"decorateDefaultCredentialProvider");Object.defineProperty(J,"$Command",{enumerable:!0,get:i(function(){return jr.Command},"get")});J.AssumeRole$=wue;J.AssumeRoleCommand=og;J.AssumeRoleRequest$=Gce;J.AssumeRoleResponse$=qce;J.AssumeRoleWithSAML$=Rue;J.AssumeRoleWithSAMLCommand=gA;J.AssumeRoleWithSAMLRequest$=Wce;J.AssumeRoleWithSAMLResponse$=Zce;J.AssumeRoleWithWebIdentity$=$ue;J.AssumeRoleWithWebIdentityCommand=ig;J.AssumeRoleWithWebIdentityRequest$=Kce;J.AssumeRoleWithWebIdentityResponse$=Xce;J.AssumeRoot$=Oue;J.AssumeRootCommand=hA;J.AssumeRootRequest$=Jce;J.AssumeRootResponse$=Yce;J.AssumedRoleUser$=IA;J.Credentials$=Ns;J.DecodeAuthorizationMessage$=Due;J.DecodeAuthorizationMessageCommand=yA;J.DecodeAuthorizationMessageRequest$=Qce;J.DecodeAuthorizationMessageResponse$=eue;J.ExpiredTokenException=nA;J.ExpiredTokenException$=tue;J.ExpiredTradeInTokenException=dA;J.ExpiredTradeInTokenException$=rue;J.FederatedUser$=nue;J.GetAccessKeyInfo$=Nue;J.GetAccessKeyInfoCommand=EA;J.GetAccessKeyInfoRequest$=oue;J.GetAccessKeyInfoResponse$=iue;J.GetCallerIdentity$=kue;J.GetCallerIdentityCommand=SA;J.GetCallerIdentityRequest$=sue;J.GetCallerIdentityResponse$=aue;J.GetDelegatedAccessToken$=Mue;J.GetDelegatedAccessTokenCommand=_A;J.GetDelegatedAccessTokenRequest$=cue;J.GetDelegatedAccessTokenResponse$=uue;J.GetFederationToken$=Lue;J.GetFederationTokenCommand=vA;J.GetFederationTokenRequest$=lue;J.GetFederationTokenResponse$=due;J.GetSessionToken$=zue;J.GetSessionTokenCommand=xA;J.GetSessionTokenRequest$=pue;J.GetSessionTokenResponse$=fue;J.GetWebIdentityToken$=Fue;J.GetWebIdentityTokenCommand=bA;J.GetWebIdentityTokenRequest$=mue;J.GetWebIdentityTokenResponse$=gue;J.IDPCommunicationErrorException=uA;J.IDPCommunicationErrorException$=hue;J.IDPRejectedClaimException=aA;J.IDPRejectedClaimException$=yue;J.InvalidAuthorizationMessageException=lA;J.InvalidAuthorizationMessageException$=Eue;J.InvalidIdentityTokenException=cA;J.InvalidIdentityTokenException$=Sue;J.JWTPayloadSizeExceededException=pA;J.JWTPayloadSizeExceededException$=_ue;J.MalformedPolicyDocumentException=oA;J.MalformedPolicyDocumentException$=vue;J.OutboundWebIdentityFederationDisabledException=fA;J.OutboundWebIdentityFederationDisabledException$=xue;J.PackedPolicyTooLargeException=iA;J.PackedPolicyTooLargeException$=bue;J.PolicyDescriptorType$=tz;J.ProvidedContext$=Pue;J.RegionDisabledException=sA;J.RegionDisabledException$=Cue;J.STS=PA;J.STSServiceException=fr;J.STSServiceException$=Iue;J.SessionDurationEscalationException=mA;J.SessionDurationEscalationException$=Aue;J.Tag$=Tue;J.decorateDefaultCredentialProvider=iBe;J.getDefaultRoleAssumer=Hue;J.getDefaultRoleAssumerWithWebIdentity=Gue;Object.keys(ng).forEach(function(e){e!=="default"&&!Object.prototype.hasOwnProperty.call(J,e)&&Object.defineProperty(J,e,{enumerable:!0,get:i(function(){return ng[e]},"get")})})});var Wue=z(ks=>{"use strict";var sBe=zo(),aBe=i(e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,r){e.httpHandler?.updateHttpClientConfig(t,r)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),"getHttpHandlerExtensionConfiguration"),cBe=i(e=>({httpHandler:e.httpHandler()}),"resolveHttpHandlerRuntimeConfig"),nz=class{static{i(this,"Field")}name;kind;values;constructor({name:t,kind:r=sBe.FieldPosition.HEADER,values:o=[]}){this.name=t,this.kind=r,this.values=o}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}},oz=class{static{i(this,"Fields")}entries={};encoding;constructor({fields:t=[],encoding:r="utf-8"}){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)}},iz=class e{static{i(this,"HttpRequest")}method;protocol;hostname;port;path;query;headers;username;password;fragment;body;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 clone(t){let r=new e({...t,headers:{...t.headers}});return r.query&&(r.query=uBe(r.query)),r}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(){return e.clone(this)}};function uBe(e){return Object.keys(e).reduce((t,r)=>{let o=e[r];return{...t,[r]:Array.isArray(o)?[...o]:o}},{})}i(uBe,"cloneQuery");var sz=class{static{i(this,"HttpResponse")}statusCode;reason;headers;body;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"}};function lBe(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}i(lBe,"isValidHostname");ks.Field=nz;ks.Fields=oz;ks.HttpRequest=iz;ks.HttpResponse=sz;ks.getHttpHandlerExtensionConfiguration=aBe;ks.isValidHostname=lBe;ks.resolveHttpHandlerRuntimeConfig=cBe});var yle=z(ke=>{"use strict";var Ms=Np(),fc=It(),dBe=jy(),Jue=Ze(),Zue=Ft(),RA=eE(),Yue="X-Amz-Algorithm",Que="X-Amz-Credential",pz="X-Amz-Date",ele="X-Amz-SignedHeaders",tle="X-Amz-Expires",fz="X-Amz-Signature",mz="X-Amz-Security-Token",pBe="X-Amz-Region-Set",gz="authorization",hz=pz.toLowerCase(),rle="date",nle=[gz,hz,rle],ole=fz.toLowerCase(),kA="x-amz-content-sha256",ile=mz.toLowerCase(),fBe="host",sle={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},ale=/^proxy-/,cle=/^sec-/,mBe=[/^proxy-/i,/^sec-/i],$A="AWS4-HMAC-SHA256",gBe="AWS4-ECDSA-P256-SHA256",ule="AWS4-HMAC-SHA256-PAYLOAD",lle="UNSIGNED-PAYLOAD",dle=50,yz="aws4_request",ple=3600*24*7,Cl={},OA=[],DA=i((e,t,r)=>`${e}/${t}/${r}/${yz}`,"createScope"),fle=i(async(e,t,r,o,n)=>{let s=await Kue(e,t.secretAccessKey,t.accessKeyId),a=`${r}:${o}:${n}:${Ms.toHex(s)}:${t.sessionToken}`;if(a in Cl)return Cl[a];for(OA.push(a);OA.length>dle;)delete Cl[OA.shift()];let c=`AWS4${t.secretAccessKey}`;for(let u of[r,o,n,yz])c=await Kue(e,c,u);return Cl[a]=c},"getSigningKey"),hBe=i(()=>{OA.length=0,Object.keys(Cl).forEach(e=>{delete Cl[e]})},"clearCredentialCache"),Kue=i((e,t,r)=>{let o=new e(t);return o.update(fc.toUint8Array(r)),o.digest()},"hmac"),az=i(({headers:e},t,r)=>{let o={};for(let n of Object.keys(e).sort()){if(e[n]==null)continue;let s=n.toLowerCase();(s in sle||t?.has(s)||ale.test(s)||cle.test(s))&&(!r||r&&!r.has(s))||(o[s]=e[n].trim().replace(/\s+/g," "))}return o},"getCanonicalHeaders"),NA=i(async({headers:e,body:t},r)=>{for(let o of Object.keys(e))if(o.toLowerCase()===kA)return e[o];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||dBe.isArrayBuffer(t)){let o=new r;return o.update(fc.toUint8Array(t)),Ms.toHex(await o.digest())}return lle},"getPayloadHash"),cz=class{static{i(this,"HeaderFormatter")}format(t){let r=[];for(let s of Object.keys(t)){let a=fc.fromUtf8(s);r.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[s]))}let o=new Uint8Array(r.reduce((s,a)=>s+a.byteLength,0)),n=0;for(let s of r)o.set(s,n),n+=s.byteLength;return o}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":let r=new DataView(new ArrayBuffer(3));return r.setUint8(0,3),r.setInt16(1,t.value,!1),new Uint8Array(r.buffer);case"integer":let o=new DataView(new ArrayBuffer(5));return o.setUint8(0,4),o.setInt32(1,t.value,!1),new Uint8Array(o.buffer);case"long":let n=new Uint8Array(9);return n[0]=5,n.set(t.value.bytes,1),n;case"binary":let s=new DataView(new ArrayBuffer(3+t.value.byteLength));s.setUint8(0,6),s.setUint16(1,t.value.byteLength,!1);let a=new Uint8Array(s.buffer);return a.set(t.value,3),a;case"string":let c=fc.fromUtf8(t.value),u=new DataView(new ArrayBuffer(3+c.byteLength));u.setUint8(0,7),u.setUint16(1,c.byteLength,!1);let l=new Uint8Array(u.buffer);return l.set(c,3),l;case"timestamp":let p=new Uint8Array(9);return p[0]=8,p.set(uz.fromNumber(t.value.valueOf()).bytes,1),p;case"uuid":if(!yBe.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);let f=new Uint8Array(17);return f[0]=9,f.set(Ms.fromHex(t.value.replace(/\-/g,"")),1),f}}},yBe=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,uz=class e{static{i(this,"Int64")}bytes;constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);let r=new Uint8Array(8);for(let o=7,n=Math.abs(Math.round(t));o>-1&&n>0;o--,n/=256)r[o]=n;return t<0&&Xue(r),new e(r)}valueOf(){let t=this.bytes.slice(0),r=t[0]&128;return r&&Xue(t),parseInt(Ms.toHex(t),16)*(r?-1:1)}toString(){return String(this.valueOf())}};function Xue(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}i(Xue,"negate");var mle=i((e,t)=>{e=e.toLowerCase();for(let r of Object.keys(t))if(e===r.toLowerCase())return!0;return!1},"hasHeader"),gle=i((e,t={})=>{let{headers:r,query:o={}}=Jue.HttpRequest.clone(e);for(let n of Object.keys(r)){let s=n.toLowerCase();(s.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(s)||t.hoistableHeaders?.has(s))&&(o[n]=r[n],delete r[n])}return{...e,headers:r,query:o}},"moveHeadersToQuery"),lz=i(e=>{e=Jue.HttpRequest.clone(e);for(let t of Object.keys(e.headers))nle.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},"prepareRequest"),hle=i(({query:e={}})=>{let t=[],r={};for(let o of Object.keys(e)){if(o.toLowerCase()===ole)continue;let n=RA.escapeUri(o);t.push(n);let s=e[o];typeof s=="string"?r[n]=`${n}=${RA.escapeUri(s)}`:Array.isArray(s)&&(r[n]=s.slice(0).reduce((a,c)=>a.concat([`${n}=${RA.escapeUri(c)}`]),[]).sort().join("&"))}return t.sort().map(o=>r[o]).filter(o=>o).join("&")},"getCanonicalQuery"),EBe=i(e=>SBe(e).toISOString().replace(/\.\d{3}Z$/,"Z"),"iso8601"),SBe=i(e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e,"toDate"),MA=class{static{i(this,"SignatureV4Base")}service;regionProvider;credentialProvider;sha256;uriEscapePath;applyChecksum;constructor({applyChecksum:t,credentials:r,region:o,service:n,sha256:s,uriEscapePath:a=!0}){this.service=n,this.sha256=s,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Zue.normalizeProvider(o),this.credentialProvider=Zue.normalizeProvider(r)}createCanonicalRequest(t,r,o){let n=Object.keys(r).sort();return`${t.method}
75
+ ${this.getCanonicalPath(t)}
76
+ ${hle(t)}
77
+ ${n.map(s=>`${s}:${r[s]}`).join(`
78
+ `)}
79
+
80
+ ${n.join(";")}
81
+ ${o}`}async createStringToSign(t,r,o,n){let s=new this.sha256;s.update(fc.toUint8Array(o));let a=await s.digest();return`${n}
82
+ ${t}
83
+ ${r}
84
+ ${Ms.toHex(a)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){let r=[];for(let s of t.split("/"))s?.length!==0&&s!=="."&&(s===".."?r.pop():r.push(s));let o=`${t?.startsWith("/")?"/":""}${r.join("/")}${r.length>0&&t?.endsWith("/")?"/":""}`;return RA.escapeUri(o).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){let r=EBe(t).replace(/[\-:]/g,"");return{longDate:r,shortDate:r.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}},dz=class extends MA{static{i(this,"SignatureV4")}headerFormatter=new cz;constructor({applyChecksum:t,credentials:r,region:o,service:n,sha256:s,uriEscapePath:a=!0}){super({applyChecksum:t,credentials:r,region:o,service:n,sha256:s,uriEscapePath:a})}async presign(t,r={}){let{signingDate:o=new Date,expiresIn:n=3600,unsignableHeaders:s,unhoistableHeaders:a,signableHeaders:c,hoistableHeaders:u,signingRegion:l,signingService:p}=r,f=await this.credentialProvider();this.validateResolvedCredentials(f);let y=l??await this.regionProvider(),{longDate:m,shortDate:_}=this.formatDate(o);if(n>ple)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");let b=DA(_,y,p??this.service),A=gle(lz(t),{unhoistableHeaders:a,hoistableHeaders:u});f.sessionToken&&(A.query[mz]=f.sessionToken),A.query[Yue]=$A,A.query[Que]=`${f.accessKeyId}/${b}`,A.query[pz]=m,A.query[tle]=n.toString(10);let I=az(A,s,c);return A.query[ele]=this.getCanonicalHeaderList(I),A.query[fz]=await this.getSignature(m,b,this.getSigningKey(f,y,_,p),this.createCanonicalRequest(A,I,await NA(t,this.sha256))),A}async sign(t,r){return typeof t=="string"?this.signString(t,r):t.headers&&t.payload?this.signEvent(t,r):t.message?this.signMessage(t,r):this.signRequest(t,r)}async signEvent({headers:t,payload:r},{signingDate:o=new Date,priorSignature:n,signingRegion:s,signingService:a}){let c=s??await this.regionProvider(),{shortDate:u,longDate:l}=this.formatDate(o),p=DA(u,c,a??this.service),f=await NA({headers:{},body:r},this.sha256),y=new this.sha256;y.update(t);let m=Ms.toHex(await y.digest()),_=[ule,l,p,n,m,f].join(`
85
+ `);return this.signString(_,{signingDate:o,signingRegion:c,signingService:a})}async signMessage(t,{signingDate:r=new Date,signingRegion:o,signingService:n}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:r,signingRegion:o,signingService:n,priorSignature:t.priorSignature}).then(a=>({message:t.message,signature:a}))}async signString(t,{signingDate:r=new Date,signingRegion:o,signingService:n}={}){let s=await this.credentialProvider();this.validateResolvedCredentials(s);let a=o??await this.regionProvider(),{shortDate:c}=this.formatDate(r),u=new this.sha256(await this.getSigningKey(s,a,c,n));return u.update(fc.toUint8Array(t)),Ms.toHex(await u.digest())}async signRequest(t,{signingDate:r=new Date,signableHeaders:o,unsignableHeaders:n,signingRegion:s,signingService:a}={}){let c=await this.credentialProvider();this.validateResolvedCredentials(c);let u=s??await this.regionProvider(),l=lz(t),{longDate:p,shortDate:f}=this.formatDate(r),y=DA(f,u,a??this.service);l.headers[hz]=p,c.sessionToken&&(l.headers[ile]=c.sessionToken);let m=await NA(l,this.sha256);!mle(kA,l.headers)&&this.applyChecksum&&(l.headers[kA]=m);let _=az(l,n,o),b=await this.getSignature(p,y,this.getSigningKey(c,u,f,a),this.createCanonicalRequest(l,_,m));return l.headers[gz]=`${$A} Credential=${c.accessKeyId}/${y}, SignedHeaders=${this.getCanonicalHeaderList(_)}, Signature=${b}`,l}async getSignature(t,r,o,n){let s=await this.createStringToSign(t,r,n,$A),a=new this.sha256(await o);return a.update(fc.toUint8Array(s)),Ms.toHex(await a.digest())}getSigningKey(t,r,o,n){return fle(this.sha256,t,o,r,n||this.service)}},_Be={SignatureV4a:null};ke.ALGORITHM_IDENTIFIER=$A;ke.ALGORITHM_IDENTIFIER_V4A=gBe;ke.ALGORITHM_QUERY_PARAM=Yue;ke.ALWAYS_UNSIGNABLE_HEADERS=sle;ke.AMZ_DATE_HEADER=hz;ke.AMZ_DATE_QUERY_PARAM=pz;ke.AUTH_HEADER=gz;ke.CREDENTIAL_QUERY_PARAM=Que;ke.DATE_HEADER=rle;ke.EVENT_ALGORITHM_IDENTIFIER=ule;ke.EXPIRES_QUERY_PARAM=tle;ke.GENERATED_HEADERS=nle;ke.HOST_HEADER=fBe;ke.KEY_TYPE_IDENTIFIER=yz;ke.MAX_CACHE_SIZE=dle;ke.MAX_PRESIGNED_TTL=ple;ke.PROXY_HEADER_PATTERN=ale;ke.REGION_SET_PARAM=pBe;ke.SEC_HEADER_PATTERN=cle;ke.SHA256_HEADER=kA;ke.SIGNATURE_HEADER=ole;ke.SIGNATURE_QUERY_PARAM=fz;ke.SIGNED_HEADERS_QUERY_PARAM=ele;ke.SignatureV4=dz;ke.SignatureV4Base=MA;ke.TOKEN_HEADER=ile;ke.TOKEN_QUERY_PARAM=mz;ke.UNSIGNABLE_PATTERNS=mBe;ke.UNSIGNED_PAYLOAD=lle;ke.clearCredentialCache=hBe;ke.createScope=DA;ke.getCanonicalHeaders=az;ke.getCanonicalQuery=hle;ke.getPayloadHash=NA;ke.getSigningKey=fle;ke.hasHeader=mle;ke.moveHeadersToQuery=gle;ke.prepareRequest=lz;ke.signatureV4aContainer=_Be});var JBe={};We(JBe,{amazonLambda:()=>XBe});module.exports=pe(JBe);var Gr={};We(Gr,{$ZodAny:()=>ql,$ZodArray:()=>Xl,$ZodAsyncError:()=>On,$ZodBase64:()=>Wg,$ZodBase64URL:()=>Zg,$ZodBigInt:()=>wc,$ZodBigIntFormat:()=>Yg,$ZodBoolean:()=>Hs,$ZodCIDRv4:()=>Gg,$ZodCIDRv6:()=>qg,$ZodCUID:()=>Lg,$ZodCUID2:()=>zg,$ZodCatch:()=>mh,$ZodCheck:()=>rt,$ZodCheckBigIntFormat:()=>DT,$ZodCheckEndsWith:()=>GT,$ZodCheckGreaterThan:()=>Ag,$ZodCheckIncludes:()=>VT,$ZodCheckLengthEquals:()=>FT,$ZodCheckLessThan:()=>Cg,$ZodCheckLowerCase:()=>jT,$ZodCheckMaxLength:()=>LT,$ZodCheckMaxSize:()=>NT,$ZodCheckMimeType:()=>WT,$ZodCheckMinLength:()=>zT,$ZodCheckMinSize:()=>kT,$ZodCheckMultipleOf:()=>$T,$ZodCheckNumberFormat:()=>OT,$ZodCheckOverwrite:()=>ZT,$ZodCheckProperty:()=>qT,$ZodCheckRegex:()=>UT,$ZodCheckSizeEquals:()=>MT,$ZodCheckStartsWith:()=>HT,$ZodCheckStringFormat:()=>Tc,$ZodCheckUpperCase:()=>BT,$ZodCodec:()=>$c,$ZodCustom:()=>id,$ZodCustomStringFormat:()=>Jg,$ZodDate:()=>Kl,$ZodDefault:()=>lh,$ZodDiscriminatedUnion:()=>Jl,$ZodE164:()=>Kg,$ZodEmail:()=>Ng,$ZodEmoji:()=>kg,$ZodEncodeError:()=>Ei,$ZodEnum:()=>ed,$ZodError:()=>Ml,$ZodExactOptional:()=>uh,$ZodFile:()=>ch,$ZodFunction:()=>Eh,$ZodGUID:()=>Og,$ZodIPv4:()=>Bg,$ZodIPv6:()=>Vg,$ZodISODate:()=>Bl,$ZodISODateTime:()=>jl,$ZodISODuration:()=>Hl,$ZodISOTime:()=>Vl,$ZodIntersection:()=>ih,$ZodJWT:()=>Xg,$ZodKSUID:()=>jg,$ZodLazy:()=>_h,$ZodLiteral:()=>td,$ZodMAC:()=>Hg,$ZodMap:()=>sh,$ZodNaN:()=>gh,$ZodNanoID:()=>Mg,$ZodNever:()=>rh,$ZodNonOptional:()=>ph,$ZodNull:()=>th,$ZodNullable:()=>nd,$ZodNumber:()=>Ic,$ZodNumberFormat:()=>Gl,$ZodObject:()=>nh,$ZodObjectJIT:()=>YT,$ZodOptional:()=>Rc,$ZodPipe:()=>od,$ZodPrefault:()=>dh,$ZodPromise:()=>Sh,$ZodReadonly:()=>hh,$ZodRealError:()=>Tr,$ZodRecord:()=>Ql,$ZodRegistry:()=>vh,$ZodSet:()=>ah,$ZodString:()=>Ro,$ZodStringFormat:()=>Qe,$ZodSuccess:()=>fh,$ZodSymbol:()=>Qg,$ZodTemplateLiteral:()=>yh,$ZodTransform:()=>rd,$ZodTuple:()=>Yl,$ZodType:()=>ge,$ZodULID:()=>Fg,$ZodURL:()=>Ul,$ZodUUID:()=>Dg,$ZodUndefined:()=>eh,$ZodUnion:()=>Gs,$ZodUnknown:()=>Wl,$ZodVoid:()=>Zl,$ZodXID:()=>Ug,$ZodXor:()=>oh,$brand:()=>wl,$constructor:()=>$,$input:()=>bh,$output:()=>xh,Doc:()=>Fl,JSONSchema:()=>AF,JSONSchemaGenerator:()=>Wh,NEVER:()=>ug,TimePrecision:()=>Ch,_any:()=>Vd,_array:()=>GI,_base64:()=>wd,_base64url:()=>Rd,_bigint:()=>Rh,_boolean:()=>Ud,_catch:()=>Mfe,_check:()=>CF,_cidrv4:()=>Td,_cidrv6:()=>Id,_coercedBigint:()=>Bd,_coercedBoolean:()=>jd,_coercedDate:()=>qd,_coercedNumber:()=>zd,_coercedString:()=>pd,_cuid:()=>_d,_cuid2:()=>vd,_custom:()=>Yd,_date:()=>Lh,_decode:()=>hg,_decodeAsync:()=>Eg,_default:()=>Dfe,_discriminatedUnion:()=>vfe,_e164:()=>$d,_email:()=>fd,_emoji:()=>Ed,_encode:()=>gg,_encodeAsync:()=>yg,_endsWith:()=>Js,_enum:()=>Tfe,_file:()=>Fh,_float32:()=>Ah,_float64:()=>Th,_gt:()=>Nn,_gte:()=>Tt,_guid:()=>Nc,_includes:()=>Ks,_int:()=>Fd,_int32:()=>Ih,_int64:()=>$h,_intersection:()=>xfe,_ipv4:()=>Cd,_ipv6:()=>Ad,_isoDate:()=>Nd,_isoDateTime:()=>Dd,_isoDuration:()=>Md,_isoTime:()=>kd,_jwt:()=>Od,_ksuid:()=>Pd,_lazy:()=>Ufe,_length:()=>Ci,_literal:()=>wfe,_lowercase:()=>Ws,_lt:()=>Dn,_lte:()=>mr,_mac:()=>Ph,_map:()=>Cfe,_max:()=>mr,_maxLength:()=>Pi,_maxSize:()=>Oo,_mime:()=>Ys,_min:()=>Tt,_minLength:()=>vt,_minSize:()=>kn,_multipleOf:()=>$o,_nan:()=>zh,_nanoid:()=>Sd,_nativeEnum:()=>Ife,_negative:()=>Zd,_never:()=>Mh,_nonnegative:()=>Xd,_nonoptional:()=>Nfe,_nonpositive:()=>Kd,_normalize:()=>Qs,_null:()=>kh,_nullable:()=>Ofe,_number:()=>Ld,_optional:()=>$fe,_overwrite:()=>dn,_parse:()=>vc,_parseAsync:()=>xc,_pipe:()=>Lfe,_positive:()=>Wd,_promise:()=>jfe,_property:()=>Jd,_readonly:()=>zfe,_record:()=>Pfe,_refine:()=>Qd,_regex:()=>Ht,_safeDecode:()=>_g,_safeDecodeAsync:()=>xg,_safeEncode:()=>Sg,_safeEncodeAsync:()=>vg,_safeParse:()=>bc,_safeParseAsync:()=>Cc,_set:()=>Afe,_size:()=>bi,_slugify:()=>kc,_startsWith:()=>Xs,_string:()=>dd,_stringFormat:()=>na,_stringbool:()=>Vh,_success:()=>kfe,_superRefine:()=>Uh,_symbol:()=>Dh,_templateLiteral:()=>Ffe,_toLowerCase:()=>ta,_toUpperCase:()=>ra,_transform:()=>Rfe,_trim:()=>ea,_tuple:()=>bfe,_uint32:()=>wh,_uint64:()=>Oh,_ulid:()=>xd,_undefined:()=>Nh,_union:()=>Sfe,_unknown:()=>Hd,_uppercase:()=>Zs,_url:()=>qs,_uuid:()=>md,_uuidv4:()=>gd,_uuidv6:()=>hd,_uuidv7:()=>yd,_void:()=>Gd,_xid:()=>bd,_xor:()=>_fe,clone:()=>Mt,config:()=>lt,createStandardJSONSchemaMethod:()=>Mc,createToJSONSchemaMethod:()=>qI,decode:()=>qz,decodeAsync:()=>Zz,describe:()=>jh,encode:()=>Gz,encodeAsync:()=>Wz,extractDefs:()=>Ti,finalize:()=>Ii,flattenError:()=>Sc,formatError:()=>_c,globalConfig:()=>Il,globalRegistry:()=>Lt,initializeContext:()=>Ai,isValidBase64:()=>JT,isValidBase64URL:()=>hF,isValidJWT:()=>yF,locales:()=>Dc,meta:()=>Bh,parse:()=>js,parseAsync:()=>Bs,prettifyError:()=>mg,process:()=>et,regexes:()=>Ir,registry:()=>ld,safeDecode:()=>Xz,safeDecodeAsync:()=>Yz,safeEncode:()=>Kz,safeEncodeAsync:()=>Jz,safeParse:()=>Pc,safeParseAsync:()=>Ac,toDotPath:()=>Hz,toJSONSchema:()=>ep,treeifyError:()=>fg,util:()=>H,version:()=>KT});var ug=Object.freeze({status:"aborted"});function $(e,t,r){function o(c,u){if(c._zod||Object.defineProperty(c,"_zod",{value:{def:u,constr:a,traits:new Set},enumerable:!1}),c._zod.traits.has(e))return;c._zod.traits.add(e),t(c,u);let l=a.prototype,p=Object.keys(l);for(let f=0;f<p.length;f++){let y=p[f];y in c||(c[y]=l[y].bind(c))}}i(o,"init");let n=r?.Parent??Object;class s extends n{static{i(this,"Definition")}}Object.defineProperty(s,"name",{value:e});function a(c){var u;let l=r?.Parent?new s:this;o(l,c),(u=l._zod).deferred??(u.deferred=[]);for(let p of l._zod.deferred)p();return l}return i(a,"_"),Object.defineProperty(a,"init",{value:o}),Object.defineProperty(a,Symbol.hasInstance,{value:i(c=>r?.Parent&&c instanceof r.Parent?!0:c?._zod?.traits?.has(e),"value")}),Object.defineProperty(a,"name",{value:e}),a}i($,"$constructor");var wl=Symbol("zod_brand"),On=class extends Error{static{i(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},Ei=class extends Error{static{i(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}},Il={};function lt(e){return e&&Object.assign(Il,e),Il}i(lt,"config");var H={};We(H,{BIGINT_FORMAT_RANGES:()=>rT,Class:()=>KA,NUMBER_FORMAT_RANGES:()=>tT,aborted:()=>xi,allowsEval:()=>YA,assert:()=>kde,assertEqual:()=>$de,assertIs:()=>Dde,assertNever:()=>Nde,assertNotEqual:()=>Ode,assignProp:()=>_i,base64ToUint8Array:()=>jz,base64urlToUint8Array:()=>qde,cached:()=>yc,captureStackTrace:()=>dg,cleanEnum:()=>Gde,cleanRegex:()=>Ol,clone:()=>Mt,cloneDef:()=>Lde,createTransparentProxy:()=>Vde,defineLazy:()=>we,esc:()=>lg,escapeRegex:()=>ln,extend:()=>Lz,finalizeIssue:()=>Ar,floatSafeRemainder:()=>XA,getElementAtPath:()=>zde,getEnumValues:()=>$l,getLengthableOrigin:()=>kl,getParsedType:()=>Bde,getSizableOrigin:()=>Nl,hexToUint8Array:()=>Zde,isObject:()=>Us,isPlainObject:()=>vi,issue:()=>Ec,joinValues:()=>k,jsonStringifyReplacer:()=>hc,merge:()=>Hde,mergeDefs:()=>wo,normalizeParams:()=>B,nullish:()=>Si,numKeys:()=>jde,objectClone:()=>Mde,omit:()=>Mz,optionalKeys:()=>eT,parsedType:()=>G,partial:()=>Fz,pick:()=>kz,prefixIssues:()=>Hr,primitiveTypes:()=>QA,promiseAllObject:()=>Fde,propertyKeyTypes:()=>Dl,randomString:()=>Ude,required:()=>Uz,safeExtend:()=>zz,shallowClone:()=>pg,slugify:()=>JA,stringifyPrimitive:()=>V,uint8ArrayToBase64:()=>Bz,uint8ArrayToBase64url:()=>Wde,uint8ArrayToHex:()=>Kde,unwrapMessage:()=>Rl});function $de(e){return e}i($de,"assertEqual");function Ode(e){return e}i(Ode,"assertNotEqual");function Dde(e){}i(Dde,"assertIs");function Nde(e){throw new Error("Unexpected value in exhaustive check")}i(Nde,"assertNever");function kde(e){}i(kde,"assert");function $l(e){let t=Object.values(e).filter(o=>typeof o=="number");return Object.entries(e).filter(([o,n])=>t.indexOf(+o)===-1).map(([o,n])=>n)}i($l,"getEnumValues");function k(e,t="|"){return e.map(r=>V(r)).join(t)}i(k,"joinValues");function hc(e,t){return typeof t=="bigint"?t.toString():t}i(hc,"jsonStringifyReplacer");function yc(e){return{get value(){{let r=e();return Object.defineProperty(this,"value",{value:r}),r}throw new Error("cached value already set")}}}i(yc,"cached");function Si(e){return e==null}i(Si,"nullish");function Ol(e){let t=e.startsWith("^")?1:0,r=e.endsWith("$")?e.length-1:e.length;return e.slice(t,r)}i(Ol,"cleanRegex");function XA(e,t){let r=(e.toString().split(".")[1]||"").length,o=t.toString(),n=(o.split(".")[1]||"").length;if(n===0&&/\d?e-\d?/.test(o)){let u=o.match(/\d?e-(\d?)/);u?.[1]&&(n=Number.parseInt(u[1]))}let s=r>n?r:n,a=Number.parseInt(e.toFixed(s).replace(".","")),c=Number.parseInt(t.toFixed(s).replace(".",""));return a%c/10**s}i(XA,"floatSafeRemainder");var Nz=Symbol("evaluating");function we(e,t,r){let o;Object.defineProperty(e,t,{get(){if(o!==Nz)return o===void 0&&(o=Nz,o=r()),o},set(n){Object.defineProperty(e,t,{value:n})},configurable:!0})}i(we,"defineLazy");function Mde(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}i(Mde,"objectClone");function _i(e,t,r){Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0})}i(_i,"assignProp");function wo(...e){let t={};for(let r of e){let o=Object.getOwnPropertyDescriptors(r);Object.assign(t,o)}return Object.defineProperties({},t)}i(wo,"mergeDefs");function Lde(e){return wo(e._zod.def)}i(Lde,"cloneDef");function zde(e,t){return t?t.reduce((r,o)=>r?.[o],e):e}i(zde,"getElementAtPath");function Fde(e){let t=Object.keys(e),r=t.map(o=>e[o]);return Promise.all(r).then(o=>{let n={};for(let s=0;s<t.length;s++)n[t[s]]=o[s];return n})}i(Fde,"promiseAllObject");function Ude(e=10){let t="abcdefghijklmnopqrstuvwxyz",r="";for(let o=0;o<e;o++)r+=t[Math.floor(Math.random()*t.length)];return r}i(Ude,"randomString");function lg(e){return JSON.stringify(e)}i(lg,"esc");function JA(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}i(JA,"slugify");var dg="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Us(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(Us,"isObject");var YA=yc(()=>{if(typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function vi(e){if(Us(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let r=t.prototype;return!(Us(r)===!1||Object.prototype.hasOwnProperty.call(r,"isPrototypeOf")===!1)}i(vi,"isPlainObject");function pg(e){return vi(e)?{...e}:Array.isArray(e)?[...e]:e}i(pg,"shallowClone");function jde(e){let t=0;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&t++;return t}i(jde,"numKeys");var Bde=i(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),Dl=new Set(["string","number","symbol"]),QA=new Set(["string","number","bigint","boolean","symbol","undefined"]);function ln(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}i(ln,"escapeRegex");function Mt(e,t,r){let o=new e._zod.constr(t??e._zod.def);return(!t||r?.parent)&&(o._zod.parent=e),o}i(Mt,"clone");function B(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:i(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:i(()=>t.error,"error")}:t}i(B,"normalizeParams");function Vde(e){let t;return new Proxy({},{get(r,o,n){return t??(t=e()),Reflect.get(t,o,n)},set(r,o,n,s){return t??(t=e()),Reflect.set(t,o,n,s)},has(r,o){return t??(t=e()),Reflect.has(t,o)},deleteProperty(r,o){return t??(t=e()),Reflect.deleteProperty(t,o)},ownKeys(r){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(r,o){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,o)},defineProperty(r,o,n){return t??(t=e()),Reflect.defineProperty(t,o,n)}})}i(Vde,"createTransparentProxy");function V(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}i(V,"stringifyPrimitive");function eT(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}i(eT,"optionalKeys");var tT={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},rT={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function kz(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let s=wo(e._zod.def,{get shape(){let a={};for(let c in t){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&(a[c]=r.shape[c])}return _i(this,"shape",a),a},checks:[]});return Mt(e,s)}i(kz,"pick");function Mz(e,t){let r=e._zod.def,o=r.checks;if(o&&o.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let s=wo(e._zod.def,{get shape(){let a={...e._zod.def.shape};for(let c in t){if(!(c in r.shape))throw new Error(`Unrecognized key: "${c}"`);t[c]&&delete a[c]}return _i(this,"shape",a),a},checks:[]});return Mt(e,s)}i(Mz,"omit");function Lz(e,t){if(!vi(t))throw new Error("Invalid input to extend: expected a plain object");let r=e._zod.def.checks;if(r&&r.length>0){let s=e._zod.def.shape;for(let a in t)if(Object.getOwnPropertyDescriptor(s,a)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}let n=wo(e._zod.def,{get shape(){let s={...e._zod.def.shape,...t};return _i(this,"shape",s),s}});return Mt(e,n)}i(Lz,"extend");function zz(e,t){if(!vi(t))throw new Error("Invalid input to safeExtend: expected a plain object");let r=wo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t};return _i(this,"shape",o),o}});return Mt(e,r)}i(zz,"safeExtend");function Hde(e,t){let r=wo(e._zod.def,{get shape(){let o={...e._zod.def.shape,...t._zod.def.shape};return _i(this,"shape",o),o},get catchall(){return t._zod.def.catchall},checks:[]});return Mt(e,r)}i(Hde,"merge");function Fz(e,t,r){let n=t._zod.def.checks;if(n&&n.length>0)throw new Error(".partial() cannot be used on object schemas containing refinements");let a=wo(t._zod.def,{get shape(){let c=t._zod.def.shape,u={...c};if(r)for(let l in r){if(!(l in c))throw new Error(`Unrecognized key: "${l}"`);r[l]&&(u[l]=e?new e({type:"optional",innerType:c[l]}):c[l])}else for(let l in c)u[l]=e?new e({type:"optional",innerType:c[l]}):c[l];return _i(this,"shape",u),u},checks:[]});return Mt(t,a)}i(Fz,"partial");function Uz(e,t,r){let o=wo(t._zod.def,{get shape(){let n=t._zod.def.shape,s={...n};if(r)for(let a in r){if(!(a in s))throw new Error(`Unrecognized key: "${a}"`);r[a]&&(s[a]=new e({type:"nonoptional",innerType:n[a]}))}else for(let a in n)s[a]=new e({type:"nonoptional",innerType:n[a]});return _i(this,"shape",s),s}});return Mt(t,o)}i(Uz,"required");function xi(e,t=0){if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(e.issues[r]?.continue!==!0)return!0;return!1}i(xi,"aborted");function Hr(e,t){return t.map(r=>{var o;return(o=r).path??(o.path=[]),r.path.unshift(e),r})}i(Hr,"prefixIssues");function Rl(e){return typeof e=="string"?e:e?.message}i(Rl,"unwrapMessage");function Ar(e,t,r){let o={...e,path:e.path??[]};if(!e.message){let n=Rl(e.inst?._zod.def?.error?.(e))??Rl(t?.error?.(e))??Rl(r.customError?.(e))??Rl(r.localeError?.(e))??"Invalid input";o.message=n}return delete o.inst,delete o.continue,t?.reportInput||delete o.input,o}i(Ar,"finalizeIssue");function Nl(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}i(Nl,"getSizableOrigin");function kl(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}i(kl,"getLengthableOrigin");function G(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let r=e;if(r&&Object.getPrototypeOf(r)!==Object.prototype&&"constructor"in r&&r.constructor)return r.constructor.name}}return t}i(G,"parsedType");function Ec(...e){let[t,r,o]=e;return typeof t=="string"?{message:t,code:"custom",input:r,inst:o}:{...t}}i(Ec,"issue");function Gde(e){return Object.entries(e).filter(([t,r])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}i(Gde,"cleanEnum");function jz(e){let t=atob(e),r=new Uint8Array(t.length);for(let o=0;o<t.length;o++)r[o]=t.charCodeAt(o);return r}i(jz,"base64ToUint8Array");function Bz(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}i(Bz,"uint8ArrayToBase64");function qde(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r="=".repeat((4-t.length%4)%4);return jz(t+r)}i(qde,"base64urlToUint8Array");function Wde(e){return Bz(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}i(Wde,"uint8ArrayToBase64url");function Zde(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let r=new Uint8Array(t.length/2);for(let o=0;o<t.length;o+=2)r[o/2]=Number.parseInt(t.slice(o,o+2),16);return r}i(Zde,"hexToUint8Array");function Kde(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}i(Kde,"uint8ArrayToHex");var KA=class{static{i(this,"Class")}constructor(...t){}};var Vz=i((e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,hc,2),Object.defineProperty(e,"toString",{value:i(()=>e.message,"value"),enumerable:!1})},"initializer"),Ml=$("$ZodError",Vz),Tr=$("$ZodError",Vz,{Parent:Error});function Sc(e,t=r=>r.message){let r={},o=[];for(let n of e.issues)n.path.length>0?(r[n.path[0]]=r[n.path[0]]||[],r[n.path[0]].push(t(n))):o.push(t(n));return{formErrors:o,fieldErrors:r}}i(Sc,"flattenError");function _c(e,t=r=>r.message){let r={_errors:[]},o=i(n=>{for(let s of n.issues)if(s.code==="invalid_union"&&s.errors.length)s.errors.map(a=>o({issues:a}));else if(s.code==="invalid_key")o({issues:s.issues});else if(s.code==="invalid_element")o({issues:s.issues});else if(s.path.length===0)r._errors.push(t(s));else{let a=r,c=0;for(;c<s.path.length;){let u=s.path[c];c===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(t(s))):a[u]=a[u]||{_errors:[]},a=a[u],c++}}},"processError");return o(e),r}i(_c,"formatError");function fg(e,t=r=>r.message){let r={errors:[]},o=i((n,s=[])=>{var a,c;for(let u of n.issues)if(u.code==="invalid_union"&&u.errors.length)u.errors.map(l=>o({issues:l},u.path));else if(u.code==="invalid_key")o({issues:u.issues},u.path);else if(u.code==="invalid_element")o({issues:u.issues},u.path);else{let l=[...s,...u.path];if(l.length===0){r.errors.push(t(u));continue}let p=r,f=0;for(;f<l.length;){let y=l[f],m=f===l.length-1;typeof y=="string"?(p.properties??(p.properties={}),(a=p.properties)[y]??(a[y]={errors:[]}),p=p.properties[y]):(p.items??(p.items=[]),(c=p.items)[y]??(c[y]={errors:[]}),p=p.items[y]),m&&p.errors.push(t(u)),f++}}},"processError");return o(e),r}i(fg,"treeifyError");function Hz(e){let t=[],r=e.map(o=>typeof o=="object"?o.key:o);for(let o of r)typeof o=="number"?t.push(`[${o}]`):typeof o=="symbol"?t.push(`[${JSON.stringify(String(o))}]`):/[^\w$]/.test(o)?t.push(`[${JSON.stringify(o)}]`):(t.length&&t.push("."),t.push(o));return t.join("")}i(Hz,"toDotPath");function mg(e){let t=[],r=[...e.issues].sort((o,n)=>(o.path??[]).length-(n.path??[]).length);for(let o of r)t.push(`\u2716 ${o.message}`),o.path?.length&&t.push(` \u2192 at ${Hz(o.path)}`);return t.join(`
86
+ `)}i(mg,"prettifyError");var vc=i(e=>(t,r,o,n)=>{let s=o?Object.assign(o,{async:!1}):{async:!1},a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise)throw new On;if(a.issues.length){let c=new(n?.Err??e)(a.issues.map(u=>Ar(u,s,lt())));throw dg(c,n?.callee),c}return a.value},"_parse"),js=vc(Tr),xc=i(e=>async(t,r,o,n)=>{let s=o?Object.assign(o,{async:!0}):{async:!0},a=t._zod.run({value:r,issues:[]},s);if(a instanceof Promise&&(a=await a),a.issues.length){let c=new(n?.Err??e)(a.issues.map(u=>Ar(u,s,lt())));throw dg(c,n?.callee),c}return a.value},"_parseAsync"),Bs=xc(Tr),bc=i(e=>(t,r,o)=>{let n=o?{...o,async:!1}:{async:!1},s=t._zod.run({value:r,issues:[]},n);if(s instanceof Promise)throw new On;return s.issues.length?{success:!1,error:new(e??Ml)(s.issues.map(a=>Ar(a,n,lt())))}:{success:!0,data:s.value}},"_safeParse"),Pc=bc(Tr),Cc=i(e=>async(t,r,o)=>{let n=o?Object.assign(o,{async:!0}):{async:!0},s=t._zod.run({value:r,issues:[]},n);return s instanceof Promise&&(s=await s),s.issues.length?{success:!1,error:new e(s.issues.map(a=>Ar(a,n,lt())))}:{success:!0,data:s.value}},"_safeParseAsync"),Ac=Cc(Tr),gg=i(e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return vc(e)(t,r,n)},"_encode"),Gz=gg(Tr),hg=i(e=>(t,r,o)=>vc(e)(t,r,o),"_decode"),qz=hg(Tr),yg=i(e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return xc(e)(t,r,n)},"_encodeAsync"),Wz=yg(Tr),Eg=i(e=>async(t,r,o)=>xc(e)(t,r,o),"_decodeAsync"),Zz=Eg(Tr),Sg=i(e=>(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return bc(e)(t,r,n)},"_safeEncode"),Kz=Sg(Tr),_g=i(e=>(t,r,o)=>bc(e)(t,r,o),"_safeDecode"),Xz=_g(Tr),vg=i(e=>async(t,r,o)=>{let n=o?Object.assign(o,{direction:"backward"}):{direction:"backward"};return Cc(e)(t,r,n)},"_safeEncodeAsync"),Jz=vg(Tr),xg=i(e=>async(t,r,o)=>Cc(e)(t,r,o),"_safeDecodeAsync"),Yz=xg(Tr);var Ir={};We(Ir,{base64:()=>ET,base64url:()=>bg,bigint:()=>PT,boolean:()=>AT,browserEmail:()=>ope,cidrv4:()=>hT,cidrv6:()=>yT,cuid:()=>nT,cuid2:()=>oT,date:()=>_T,datetime:()=>xT,domain:()=>ape,duration:()=>uT,e164:()=>ST,email:()=>dT,emoji:()=>pT,extendedDuration:()=>Jde,guid:()=>lT,hex:()=>cpe,hostname:()=>spe,html5Email:()=>tpe,idnEmail:()=>npe,integer:()=>CT,ipv4:()=>fT,ipv6:()=>mT,ksuid:()=>aT,lowercase:()=>wT,mac:()=>gT,md5_base64:()=>lpe,md5_base64url:()=>dpe,md5_hex:()=>upe,nanoid:()=>cT,null:()=>TT,number:()=>Pg,rfc5322Email:()=>rpe,sha1_base64:()=>fpe,sha1_base64url:()=>mpe,sha1_hex:()=>ppe,sha256_base64:()=>hpe,sha256_base64url:()=>ype,sha256_hex:()=>gpe,sha384_base64:()=>Spe,sha384_base64url:()=>_pe,sha384_hex:()=>Epe,sha512_base64:()=>xpe,sha512_base64url:()=>bpe,sha512_hex:()=>vpe,string:()=>bT,time:()=>vT,ulid:()=>iT,undefined:()=>IT,unicodeEmail:()=>Qz,uppercase:()=>RT,uuid:()=>Vs,uuid4:()=>Yde,uuid6:()=>Qde,uuid7:()=>epe,xid:()=>sT});var nT=/^[cC][^\s-]{8,}$/,oT=/^[0-9a-z]+$/,iT=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,sT=/^[0-9a-vA-V]{20}$/,aT=/^[A-Za-z0-9]{27}$/,cT=/^[a-zA-Z0-9_-]{21}$/,uT=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Jde=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,lT=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Vs=i(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),Yde=Vs(4),Qde=Vs(6),epe=Vs(7),dT=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,tpe=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rpe=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,Qz=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,npe=Qz,ope=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ipe="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function pT(){return new RegExp(ipe,"u")}i(pT,"emoji");var fT=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,mT=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,gT=i(e=>{let t=ln(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"mac"),hT=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,yT=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,ET=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,bg=/^[A-Za-z0-9_-]*$/,spe=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,ape=/^([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,}$/,ST=/^\+[1-9]\d{6,14}$/,eF="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",_T=new RegExp(`^${eF}$`);function tF(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}i(tF,"timeSource");function vT(e){return new RegExp(`^${tF(e)}$`)}i(vT,"time");function xT(e){let t=tF({precision:e.precision}),r=["Z"];e.local&&r.push(""),e.offset&&r.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let o=`${t}(?:${r.join("|")})`;return new RegExp(`^${eF}T(?:${o})$`)}i(xT,"datetime");var bT=i(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),PT=/^-?\d+n?$/,CT=/^-?\d+$/,Pg=/^-?\d+(?:\.\d+)?$/,AT=/^(?:true|false)$/i,TT=/^null$/i;var IT=/^undefined$/i;var wT=/^[^A-Z]*$/,RT=/^[^a-z]*$/,cpe=/^[0-9a-fA-F]*$/;function Ll(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}i(Ll,"fixedBase64");function zl(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}i(zl,"fixedBase64url");var upe=/^[0-9a-fA-F]{32}$/,lpe=Ll(22,"=="),dpe=zl(22),ppe=/^[0-9a-fA-F]{40}$/,fpe=Ll(27,"="),mpe=zl(27),gpe=/^[0-9a-fA-F]{64}$/,hpe=Ll(43,"="),ype=zl(43),Epe=/^[0-9a-fA-F]{96}$/,Spe=Ll(64,""),_pe=zl(64),vpe=/^[0-9a-fA-F]{128}$/,xpe=Ll(86,"=="),bpe=zl(86);var rt=$("$ZodCheck",(e,t)=>{var r;e._zod??(e._zod={}),e._zod.def=t,(r=e._zod).onattach??(r.onattach=[])}),nF={number:"number",bigint:"bigint",object:"date"},Cg=$("$ZodCheckLessThan",(e,t)=>{rt.init(e,t);let r=nF[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,s=(t.inclusive?n.maximum:n.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<s&&(t.inclusive?n.maximum=t.value:n.exclusiveMaximum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value<=t.value:o.value<t.value)||o.issues.push({origin:r,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Ag=$("$ZodCheckGreaterThan",(e,t)=>{rt.init(e,t);let r=nF[typeof t.value];e._zod.onattach.push(o=>{let n=o._zod.bag,s=(t.inclusive?n.minimum:n.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>s&&(t.inclusive?n.minimum=t.value:n.exclusiveMinimum=t.value)}),e._zod.check=o=>{(t.inclusive?o.value>=t.value:o.value>t.value)||o.issues.push({origin:r,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:o.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),$T=$("$ZodCheckMultipleOf",(e,t)=>{rt.init(e,t),e._zod.onattach.push(r=>{var o;(o=r._zod.bag).multipleOf??(o.multipleOf=t.value)}),e._zod.check=r=>{if(typeof r.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof r.value=="bigint"?r.value%t.value===BigInt(0):XA(r.value,t.value)===0)||r.issues.push({origin:typeof r.value,code:"not_multiple_of",divisor:t.value,input:r.value,inst:e,continue:!t.abort})}}),OT=$("$ZodCheckNumberFormat",(e,t)=>{rt.init(e,t),t.format=t.format||"float64";let r=t.format?.includes("int"),o=r?"int":"number",[n,s]=tT[t.format];e._zod.onattach.push(a=>{let c=a._zod.bag;c.format=t.format,c.minimum=n,c.maximum=s,r&&(c.pattern=CT)}),e._zod.check=a=>{let c=a.value;if(r){if(!Number.isInteger(c)){a.issues.push({expected:o,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:o,inclusive:!0,continue:!t.abort});return}}c<n&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),c>s&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),DT=$("$ZodCheckBigIntFormat",(e,t)=>{rt.init(e,t);let[r,o]=rT[t.format];e._zod.onattach.push(n=>{let s=n._zod.bag;s.format=t.format,s.minimum=r,s.maximum=o}),e._zod.check=n=>{let s=n.value;s<r&&n.issues.push({origin:"bigint",input:s,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),s>o&&n.issues.push({origin:"bigint",input:s,code:"too_big",maximum:o,inclusive:!0,inst:e,continue:!t.abort})}}),NT=$("$ZodCheckMaxSize",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Si(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;n.size<=t.maximum||o.issues.push({origin:Nl(n),code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),kT=$("$ZodCheckMinSize",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Si(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;n.size>=t.minimum||o.issues.push({origin:Nl(n),code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),MT=$("$ZodCheckSizeEquals",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Si(n)&&n.size!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.size,n.maximum=t.size,n.size=t.size}),e._zod.check=o=>{let n=o.value,s=n.size;if(s===t.size)return;let a=s>t.size;o.issues.push({origin:Nl(n),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),LT=$("$ZodCheckMaxLength",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Si(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<n&&(o._zod.bag.maximum=t.maximum)}),e._zod.check=o=>{let n=o.value;if(n.length<=t.maximum)return;let a=kl(n);o.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),zT=$("$ZodCheckMinLength",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Si(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>n&&(o._zod.bag.minimum=t.minimum)}),e._zod.check=o=>{let n=o.value;if(n.length>=t.minimum)return;let a=kl(n);o.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:n,inst:e,continue:!t.abort})}}),FT=$("$ZodCheckLengthEquals",(e,t)=>{var r;rt.init(e,t),(r=e._zod.def).when??(r.when=o=>{let n=o.value;return!Si(n)&&n.length!==void 0}),e._zod.onattach.push(o=>{let n=o._zod.bag;n.minimum=t.length,n.maximum=t.length,n.length=t.length}),e._zod.check=o=>{let n=o.value,s=n.length;if(s===t.length)return;let a=kl(n),c=s>t.length;o.issues.push({origin:a,...c?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:o.value,inst:e,continue:!t.abort})}}),Tc=$("$ZodCheckStringFormat",(e,t)=>{var r,o;rt.init(e,t),e._zod.onattach.push(n=>{let s=n._zod.bag;s.format=t.format,t.pattern&&(s.patterns??(s.patterns=new Set),s.patterns.add(t.pattern))}),t.pattern?(r=e._zod).check??(r.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:t.format,input:n.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(o=e._zod).check??(o.check=()=>{})}),UT=$("$ZodCheckRegex",(e,t)=>{Tc.init(e,t),e._zod.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:"regex",input:r.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),jT=$("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=wT),Tc.init(e,t)}),BT=$("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=RT),Tc.init(e,t)}),VT=$("$ZodCheckIncludes",(e,t)=>{rt.init(e,t);let r=ln(t.includes),o=new RegExp(typeof t.position=="number"?`^.{${t.position}}${r}`:r);t.pattern=o,e._zod.onattach.push(n=>{let s=n._zod.bag;s.patterns??(s.patterns=new Set),s.patterns.add(o)}),e._zod.check=n=>{n.value.includes(t.includes,t.position)||n.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:n.value,inst:e,continue:!t.abort})}}),HT=$("$ZodCheckStartsWith",(e,t)=>{rt.init(e,t);let r=new RegExp(`^${ln(t.prefix)}.*`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.startsWith(t.prefix)||o.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:o.value,inst:e,continue:!t.abort})}}),GT=$("$ZodCheckEndsWith",(e,t)=>{rt.init(e,t);let r=new RegExp(`.*${ln(t.suffix)}$`);t.pattern??(t.pattern=r),e._zod.onattach.push(o=>{let n=o._zod.bag;n.patterns??(n.patterns=new Set),n.patterns.add(r)}),e._zod.check=o=>{o.value.endsWith(t.suffix)||o.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:o.value,inst:e,continue:!t.abort})}});function rF(e,t,r){e.issues.length&&t.issues.push(...Hr(r,e.issues))}i(rF,"handleCheckPropertyResult");var qT=$("$ZodCheckProperty",(e,t)=>{rt.init(e,t),e._zod.check=r=>{let o=t.schema._zod.run({value:r.value[t.property],issues:[]},{});if(o instanceof Promise)return o.then(n=>rF(n,r,t.property));rF(o,r,t.property)}}),WT=$("$ZodCheckMimeType",(e,t)=>{rt.init(e,t);let r=new Set(t.mime);e._zod.onattach.push(o=>{o._zod.bag.mime=t.mime}),e._zod.check=o=>{r.has(o.value.type)||o.issues.push({code:"invalid_value",values:t.mime,input:o.value.type,inst:e,continue:!t.abort})}}),ZT=$("$ZodCheckOverwrite",(e,t)=>{rt.init(e,t),e._zod.check=r=>{r.value=t.tx(r.value)}});var Fl=class{static{i(this,"Doc")}constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let o=t.split(`
87
+ `).filter(a=>a),n=Math.min(...o.map(a=>a.length-a.trimStart().length)),s=o.map(a=>a.slice(n)).map(a=>" ".repeat(this.indent*2)+a);for(let a of s)this.content.push(a)}compile(){let t=Function,r=this?.args,n=[...(this?.content??[""]).map(s=>` ${s}`)];return new t(...r,n.join(`
88
+ `))}};var KT={major:4,minor:3,patch:6};var ge=$("$ZodType",(e,t)=>{var r;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=KT;let o=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&o.unshift(e);for(let n of o)for(let s of n._zod.onattach)s(e);if(o.length===0)(r=e._zod).deferred??(r.deferred=[]),e._zod.deferred?.push(()=>{e._zod.run=e._zod.parse});else{let n=i((a,c,u)=>{let l=xi(a),p;for(let f of c){if(f._zod.def.when){if(!f._zod.def.when(a))continue}else if(l)continue;let y=a.issues.length,m=f._zod.check(a);if(m instanceof Promise&&u?.async===!1)throw new On;if(p||m instanceof Promise)p=(p??Promise.resolve()).then(async()=>{await m,a.issues.length!==y&&(l||(l=xi(a,y)))});else{if(a.issues.length===y)continue;l||(l=xi(a,y))}}return p?p.then(()=>a):a},"runChecks"),s=i((a,c,u)=>{if(xi(a))return a.aborted=!0,a;let l=n(c,o,u);if(l instanceof Promise){if(u.async===!1)throw new On;return l.then(p=>e._zod.parse(p,u))}return e._zod.parse(l,u)},"handleCanaryResult");e._zod.run=(a,c)=>{if(c.skipChecks)return e._zod.parse(a,c);if(c.direction==="backward"){let l=e._zod.parse({value:a.value,issues:[]},{...c,skipChecks:!0});return l instanceof Promise?l.then(p=>s(p,a,c)):s(l,a,c)}let u=e._zod.parse(a,c);if(u instanceof Promise){if(c.async===!1)throw new On;return u.then(l=>n(l,o,c))}return n(u,o,c)}}we(e,"~standard",()=>({validate:i(n=>{try{let s=Pc(e,n);return s.success?{value:s.data}:{issues:s.error?.issues}}catch{return Ac(e,n).then(a=>a.success?{value:a.data}:{issues:a.error?.issues})}},"validate"),vendor:"zod",version:1}))}),Ro=$("$ZodString",(e,t)=>{ge.init(e,t),e._zod.pattern=[...e?._zod.bag?.patterns??[]].pop()??bT(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),Qe=$("$ZodStringFormat",(e,t)=>{Tc.init(e,t),Ro.init(e,t)}),Og=$("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=lT),Qe.init(e,t)}),Dg=$("$ZodUUID",(e,t)=>{if(t.version){let o={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(o===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=Vs(o))}else t.pattern??(t.pattern=Vs());Qe.init(e,t)}),Ng=$("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=dT),Qe.init(e,t)}),Ul=$("$ZodURL",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{try{let o=r.value.trim(),n=new URL(o);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(n.hostname)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:r.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(n.protocol.endsWith(":")?n.protocol.slice(0,-1):n.protocol)||r.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:r.value,inst:e,continue:!t.abort})),t.normalize?r.value=n.href:r.value=o;return}catch{r.issues.push({code:"invalid_format",format:"url",input:r.value,inst:e,continue:!t.abort})}}}),kg=$("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=pT()),Qe.init(e,t)}),Mg=$("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=cT),Qe.init(e,t)}),Lg=$("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=nT),Qe.init(e,t)}),zg=$("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=oT),Qe.init(e,t)}),Fg=$("$ZodULID",(e,t)=>{t.pattern??(t.pattern=iT),Qe.init(e,t)}),Ug=$("$ZodXID",(e,t)=>{t.pattern??(t.pattern=sT),Qe.init(e,t)}),jg=$("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=aT),Qe.init(e,t)}),jl=$("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=xT(t)),Qe.init(e,t)}),Bl=$("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=_T),Qe.init(e,t)}),Vl=$("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=vT(t)),Qe.init(e,t)}),Hl=$("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=uT),Qe.init(e,t)}),Bg=$("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=fT),Qe.init(e,t),e._zod.bag.format="ipv4"}),Vg=$("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=mT),Qe.init(e,t),e._zod.bag.format="ipv6",e._zod.check=r=>{try{new URL(`http://[${r.value}]`)}catch{r.issues.push({code:"invalid_format",format:"ipv6",input:r.value,inst:e,continue:!t.abort})}}}),Hg=$("$ZodMAC",(e,t)=>{t.pattern??(t.pattern=gT(t.delimiter)),Qe.init(e,t),e._zod.bag.format="mac"}),Gg=$("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=hT),Qe.init(e,t)}),qg=$("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=yT),Qe.init(e,t),e._zod.check=r=>{let o=r.value.split("/");try{if(o.length!==2)throw new Error;let[n,s]=o;if(!s)throw new Error;let a=Number(s);if(`${a}`!==s)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${n}]`)}catch{r.issues.push({code:"invalid_format",format:"cidrv6",input:r.value,inst:e,continue:!t.abort})}}});function JT(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}i(JT,"isValidBase64");var Wg=$("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=ET),Qe.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=r=>{JT(r.value)||r.issues.push({code:"invalid_format",format:"base64",input:r.value,inst:e,continue:!t.abort})}});function hF(e){if(!bg.test(e))return!1;let t=e.replace(/[-_]/g,o=>o==="-"?"+":"/"),r=t.padEnd(Math.ceil(t.length/4)*4,"=");return JT(r)}i(hF,"isValidBase64URL");var Zg=$("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=bg),Qe.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=r=>{hF(r.value)||r.issues.push({code:"invalid_format",format:"base64url",input:r.value,inst:e,continue:!t.abort})}}),Kg=$("$ZodE164",(e,t)=>{t.pattern??(t.pattern=ST),Qe.init(e,t)});function yF(e,t=null){try{let r=e.split(".");if(r.length!==3)return!1;let[o]=r;if(!o)return!1;let n=JSON.parse(atob(o));return!("typ"in n&&n?.typ!=="JWT"||!n.alg||t&&(!("alg"in n)||n.alg!==t))}catch{return!1}}i(yF,"isValidJWT");var Xg=$("$ZodJWT",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{yF(r.value,t.alg)||r.issues.push({code:"invalid_format",format:"jwt",input:r.value,inst:e,continue:!t.abort})}}),Jg=$("$ZodCustomStringFormat",(e,t)=>{Qe.init(e,t),e._zod.check=r=>{t.fn(r.value)||r.issues.push({code:"invalid_format",format:t.format,input:r.value,inst:e,continue:!t.abort})}}),Ic=$("$ZodNumber",(e,t)=>{ge.init(e,t),e._zod.pattern=e._zod.bag.pattern??Pg,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=Number(r.value)}catch{}let n=r.value;if(typeof n=="number"&&!Number.isNaN(n)&&Number.isFinite(n))return r;let s=typeof n=="number"?Number.isNaN(n)?"NaN":Number.isFinite(n)?void 0:"Infinity":void 0;return r.issues.push({expected:"number",code:"invalid_type",input:n,inst:e,...s?{received:s}:{}}),r}}),Gl=$("$ZodNumberFormat",(e,t)=>{OT.init(e,t),Ic.init(e,t)}),Hs=$("$ZodBoolean",(e,t)=>{ge.init(e,t),e._zod.pattern=AT,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=!!r.value}catch{}let n=r.value;return typeof n=="boolean"||r.issues.push({expected:"boolean",code:"invalid_type",input:n,inst:e}),r}}),wc=$("$ZodBigInt",(e,t)=>{ge.init(e,t),e._zod.pattern=PT,e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=BigInt(r.value)}catch{}return typeof r.value=="bigint"||r.issues.push({expected:"bigint",code:"invalid_type",input:r.value,inst:e}),r}}),Yg=$("$ZodBigIntFormat",(e,t)=>{DT.init(e,t),wc.init(e,t)}),Qg=$("$ZodSymbol",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n=="symbol"||r.issues.push({expected:"symbol",code:"invalid_type",input:n,inst:e}),r}}),eh=$("$ZodUndefined",(e,t)=>{ge.init(e,t),e._zod.pattern=IT,e._zod.values=new Set([void 0]),e._zod.optin="optional",e._zod.optout="optional",e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"undefined",code:"invalid_type",input:n,inst:e}),r}}),th=$("$ZodNull",(e,t)=>{ge.init(e,t),e._zod.pattern=TT,e._zod.values=new Set([null]),e._zod.parse=(r,o)=>{let n=r.value;return n===null||r.issues.push({expected:"null",code:"invalid_type",input:n,inst:e}),r}}),ql=$("$ZodAny",(e,t)=>{ge.init(e,t),e._zod.parse=r=>r}),Wl=$("$ZodUnknown",(e,t)=>{ge.init(e,t),e._zod.parse=r=>r}),rh=$("$ZodNever",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>(r.issues.push({expected:"never",code:"invalid_type",input:r.value,inst:e}),r)}),Zl=$("$ZodVoid",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return typeof n>"u"||r.issues.push({expected:"void",code:"invalid_type",input:n,inst:e}),r}}),Kl=$("$ZodDate",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=new Date(r.value)}catch{}let n=r.value,s=n instanceof Date;return s&&!Number.isNaN(n.getTime())||r.issues.push({expected:"date",code:"invalid_type",input:n,...s?{received:"Invalid Date"}:{},inst:e}),r}});function iF(e,t,r){e.issues.length&&t.issues.push(...Hr(r,e.issues)),t.value[r]=e.value}i(iF,"handleArrayResult");var Xl=$("$ZodArray",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!Array.isArray(n))return r.issues.push({expected:"array",code:"invalid_type",input:n,inst:e}),r;r.value=Array(n.length);let s=[];for(let a=0;a<n.length;a++){let c=n[a],u=t.element._zod.run({value:c,issues:[]},o);u instanceof Promise?s.push(u.then(l=>iF(l,r,a))):iF(u,r,a)}return s.length?Promise.all(s).then(()=>r):r}});function $g(e,t,r,o,n){if(e.issues.length){if(n&&!(r in o))return;t.issues.push(...Hr(r,e.issues))}e.value===void 0?r in o&&(t.value[r]=void 0):t.value[r]=e.value}i($g,"handlePropertyResult");function EF(e){let t=Object.keys(e.shape);for(let o of t)if(!e.shape?.[o]?._zod?.traits?.has("$ZodType"))throw new Error(`Invalid element at key "${o}": expected a Zod schema`);let r=eT(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(r)}}i(EF,"normalizeDef");function SF(e,t,r,o,n,s){let a=[],c=n.keySet,u=n.catchall._zod,l=u.def.type,p=u.optout==="optional";for(let f in t){if(c.has(f))continue;if(l==="never"){a.push(f);continue}let y=u.run({value:t[f],issues:[]},o);y instanceof Promise?e.push(y.then(m=>$g(m,r,f,t,p))):$g(y,r,f,t,p)}return a.length&&r.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:s}),e.length?Promise.all(e).then(()=>r):r}i(SF,"handleCatchall");var nh=$("$ZodObject",(e,t)=>{if(ge.init(e,t),!Object.getOwnPropertyDescriptor(t,"shape")?.get){let c=t.shape;Object.defineProperty(t,"shape",{get:i(()=>{let u={...c};return Object.defineProperty(t,"shape",{value:u}),u},"get")})}let o=yc(()=>EF(t));we(e._zod,"propValues",()=>{let c=t.shape,u={};for(let l in c){let p=c[l]._zod;if(p.values){u[l]??(u[l]=new Set);for(let f of p.values)u[l].add(f)}}return u});let n=Us,s=t.catchall,a;e._zod.parse=(c,u)=>{a??(a=o.value);let l=c.value;if(!n(l))return c.issues.push({expected:"object",code:"invalid_type",input:l,inst:e}),c;c.value={};let p=[],f=a.shape;for(let y of a.keys){let m=f[y],_=m._zod.optout==="optional",b=m._zod.run({value:l[y],issues:[]},u);b instanceof Promise?p.push(b.then(A=>$g(A,c,y,l,_))):$g(b,c,y,l,_)}return s?SF(p,l,c,u,o.value,e):p.length?Promise.all(p).then(()=>c):c}}),YT=$("$ZodObjectJIT",(e,t)=>{nh.init(e,t);let r=e._zod.parse,o=yc(()=>EF(t)),n=i(y=>{let m=new Fl(["shape","payload","ctx"]),_=o.value,b=i(j=>{let ee=lg(j);return`shape[${ee}]._zod.run({ value: input[${ee}], issues: [] }, ctx)`},"parseStr");m.write("const input = payload.value;");let A=Object.create(null),I=0;for(let j of _.keys)A[j]=`key_${I++}`;m.write("const newResult = {};");for(let j of _.keys){let ee=A[j],ae=lg(j),_t=y[j]?._zod?.optout==="optional";m.write(`const ${ee} = ${b(j)};`),_t?m.write(`
89
+ if (${ee}.issues.length) {
90
+ if (${ae} in input) {
91
+ payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({
92
+ ...iss,
93
+ path: iss.path ? [${ae}, ...iss.path] : [${ae}]
94
+ })));
95
+ }
96
+ }
97
+
98
+ if (${ee}.value === undefined) {
99
+ if (${ae} in input) {
100
+ newResult[${ae}] = undefined;
101
+ }
102
+ } else {
103
+ newResult[${ae}] = ${ee}.value;
104
+ }
105
+
106
+ `):m.write(`
107
+ if (${ee}.issues.length) {
108
+ payload.issues = payload.issues.concat(${ee}.issues.map(iss => ({
109
+ ...iss,
110
+ path: iss.path ? [${ae}, ...iss.path] : [${ae}]
111
+ })));
112
+ }
113
+
114
+ if (${ee}.value === undefined) {
115
+ if (${ae} in input) {
116
+ newResult[${ae}] = undefined;
117
+ }
118
+ } else {
119
+ newResult[${ae}] = ${ee}.value;
120
+ }
121
+
122
+ `)}m.write("payload.value = newResult;"),m.write("return payload;");let R=m.compile();return(j,ee)=>R(y,j,ee)},"generateFastpass"),s,a=Us,c=!Il.jitless,l=c&&YA.value,p=t.catchall,f;e._zod.parse=(y,m)=>{f??(f=o.value);let _=y.value;return a(_)?c&&l&&m?.async===!1&&m.jitless!==!0?(s||(s=n(t.shape)),y=s(y,m),p?SF([],_,y,m,f,e):y):r(y,m):(y.issues.push({expected:"object",code:"invalid_type",input:_,inst:e}),y)}});function sF(e,t,r,o){for(let s of e)if(s.issues.length===0)return t.value=s.value,t;let n=e.filter(s=>!xi(s));return n.length===1?(t.value=n[0].value,n[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(a=>Ar(a,o,lt())))}),t)}i(sF,"handleUnionResults");var Gs=$("$ZodUnion",(e,t)=>{ge.init(e,t),we(e._zod,"optin",()=>t.options.some(n=>n._zod.optin==="optional")?"optional":void 0),we(e._zod,"optout",()=>t.options.some(n=>n._zod.optout==="optional")?"optional":void 0),we(e._zod,"values",()=>{if(t.options.every(n=>n._zod.values))return new Set(t.options.flatMap(n=>Array.from(n._zod.values)))}),we(e._zod,"pattern",()=>{if(t.options.every(n=>n._zod.pattern)){let n=t.options.map(s=>s._zod.pattern);return new RegExp(`^(${n.map(s=>Ol(s.source)).join("|")})$`)}});let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,s)=>{if(r)return o(n,s);let a=!1,c=[];for(let u of t.options){let l=u._zod.run({value:n.value,issues:[]},s);if(l instanceof Promise)c.push(l),a=!0;else{if(l.issues.length===0)return l;c.push(l)}}return a?Promise.all(c).then(u=>sF(u,n,e,s)):sF(c,n,e,s)}});function aF(e,t,r,o){let n=e.filter(s=>s.issues.length===0);return n.length===1?(t.value=n[0].value,t):(n.length===0?t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:e.map(s=>s.issues.map(a=>Ar(a,o,lt())))}):t.issues.push({code:"invalid_union",input:t.value,inst:r,errors:[],inclusive:!1}),t)}i(aF,"handleExclusiveUnionResults");var oh=$("$ZodXor",(e,t)=>{Gs.init(e,t),t.inclusive=!1;let r=t.options.length===1,o=t.options[0]._zod.run;e._zod.parse=(n,s)=>{if(r)return o(n,s);let a=!1,c=[];for(let u of t.options){let l=u._zod.run({value:n.value,issues:[]},s);l instanceof Promise?(c.push(l),a=!0):c.push(l)}return a?Promise.all(c).then(u=>aF(u,n,e,s)):aF(c,n,e,s)}}),Jl=$("$ZodDiscriminatedUnion",(e,t)=>{t.inclusive=!1,Gs.init(e,t);let r=e._zod.parse;we(e._zod,"propValues",()=>{let n={};for(let s of t.options){let a=s._zod.propValues;if(!a||Object.keys(a).length===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(s)}"`);for(let[c,u]of Object.entries(a)){n[c]||(n[c]=new Set);for(let l of u)n[c].add(l)}}return n});let o=yc(()=>{let n=t.options,s=new Map;for(let a of n){let c=a._zod.propValues?.[t.discriminator];if(!c||c.size===0)throw new Error(`Invalid discriminated union option at index "${t.options.indexOf(a)}"`);for(let u of c){if(s.has(u))throw new Error(`Duplicate discriminator value "${String(u)}"`);s.set(u,a)}}return s});e._zod.parse=(n,s)=>{let a=n.value;if(!Us(a))return n.issues.push({code:"invalid_type",expected:"object",input:a,inst:e}),n;let c=o.value.get(a?.[t.discriminator]);return c?c._zod.run(n,s):t.unionFallback?r(n,s):(n.issues.push({code:"invalid_union",errors:[],note:"No matching discriminator",discriminator:t.discriminator,input:a,path:[t.discriminator],inst:e}),n)}}),ih=$("$ZodIntersection",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{let n=r.value,s=t.left._zod.run({value:n,issues:[]},o),a=t.right._zod.run({value:n,issues:[]},o);return s instanceof Promise||a instanceof Promise?Promise.all([s,a]).then(([u,l])=>cF(r,u,l)):cF(r,s,a)}});function XT(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(vi(e)&&vi(t)){let r=Object.keys(t),o=Object.keys(e).filter(s=>r.indexOf(s)!==-1),n={...e,...t};for(let s of o){let a=XT(e[s],t[s]);if(!a.valid)return{valid:!1,mergeErrorPath:[s,...a.mergeErrorPath]};n[s]=a.data}return{valid:!0,data:n}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let r=[];for(let o=0;o<e.length;o++){let n=e[o],s=t[o],a=XT(n,s);if(!a.valid)return{valid:!1,mergeErrorPath:[o,...a.mergeErrorPath]};r.push(a.data)}return{valid:!0,data:r}}return{valid:!1,mergeErrorPath:[]}}i(XT,"mergeValues");function cF(e,t,r){let o=new Map,n;for(let c of t.issues)if(c.code==="unrecognized_keys"){n??(n=c);for(let u of c.keys)o.has(u)||o.set(u,{}),o.get(u).l=!0}else e.issues.push(c);for(let c of r.issues)if(c.code==="unrecognized_keys")for(let u of c.keys)o.has(u)||o.set(u,{}),o.get(u).r=!0;else e.issues.push(c);let s=[...o].filter(([,c])=>c.l&&c.r).map(([c])=>c);if(s.length&&n&&e.issues.push({...n,keys:s}),xi(e))return e;let a=XT(t.value,r.value);if(!a.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(a.mergeErrorPath)}`);return e.value=a.data,e}i(cF,"handleIntersectionResults");var Yl=$("$ZodTuple",(e,t)=>{ge.init(e,t);let r=t.items;e._zod.parse=(o,n)=>{let s=o.value;if(!Array.isArray(s))return o.issues.push({input:s,inst:e,expected:"tuple",code:"invalid_type"}),o;o.value=[];let a=[],c=[...r].reverse().findIndex(p=>p._zod.optin!=="optional"),u=c===-1?0:r.length-c;if(!t.rest){let p=s.length>r.length,f=s.length<u-1;if(p||f)return o.issues.push({...p?{code:"too_big",maximum:r.length,inclusive:!0}:{code:"too_small",minimum:r.length},input:s,inst:e,origin:"array"}),o}let l=-1;for(let p of r){if(l++,l>=s.length&&l>=u)continue;let f=p._zod.run({value:s[l],issues:[]},n);f instanceof Promise?a.push(f.then(y=>Tg(y,o,l))):Tg(f,o,l)}if(t.rest){let p=s.slice(r.length);for(let f of p){l++;let y=t.rest._zod.run({value:f,issues:[]},n);y instanceof Promise?a.push(y.then(m=>Tg(m,o,l))):Tg(y,o,l)}}return a.length?Promise.all(a).then(()=>o):o}});function Tg(e,t,r){e.issues.length&&t.issues.push(...Hr(r,e.issues)),t.value[r]=e.value}i(Tg,"handleTupleResult");var Ql=$("$ZodRecord",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!vi(n))return r.issues.push({expected:"record",code:"invalid_type",input:n,inst:e}),r;let s=[],a=t.keyType._zod.values;if(a){r.value={};let c=new Set;for(let l of a)if(typeof l=="string"||typeof l=="number"||typeof l=="symbol"){c.add(typeof l=="number"?l.toString():l);let p=t.valueType._zod.run({value:n[l],issues:[]},o);p instanceof Promise?s.push(p.then(f=>{f.issues.length&&r.issues.push(...Hr(l,f.issues)),r.value[l]=f.value})):(p.issues.length&&r.issues.push(...Hr(l,p.issues)),r.value[l]=p.value)}let u;for(let l in n)c.has(l)||(u=u??[],u.push(l));u&&u.length>0&&r.issues.push({code:"unrecognized_keys",input:n,inst:e,keys:u})}else{r.value={};for(let c of Reflect.ownKeys(n)){if(c==="__proto__")continue;let u=t.keyType._zod.run({value:c,issues:[]},o);if(u instanceof Promise)throw new Error("Async schemas not supported in object keys currently");if(typeof c=="string"&&Pg.test(c)&&u.issues.length){let f=t.keyType._zod.run({value:Number(c),issues:[]},o);if(f instanceof Promise)throw new Error("Async schemas not supported in object keys currently");f.issues.length===0&&(u=f)}if(u.issues.length){t.mode==="loose"?r.value[c]=n[c]:r.issues.push({code:"invalid_key",origin:"record",issues:u.issues.map(f=>Ar(f,o,lt())),input:c,path:[c],inst:e});continue}let p=t.valueType._zod.run({value:n[c],issues:[]},o);p instanceof Promise?s.push(p.then(f=>{f.issues.length&&r.issues.push(...Hr(c,f.issues)),r.value[u.value]=f.value})):(p.issues.length&&r.issues.push(...Hr(c,p.issues)),r.value[u.value]=p.value)}}return s.length?Promise.all(s).then(()=>r):r}}),sh=$("$ZodMap",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Map))return r.issues.push({expected:"map",code:"invalid_type",input:n,inst:e}),r;let s=[];r.value=new Map;for(let[a,c]of n){let u=t.keyType._zod.run({value:a,issues:[]},o),l=t.valueType._zod.run({value:c,issues:[]},o);u instanceof Promise||l instanceof Promise?s.push(Promise.all([u,l]).then(([p,f])=>{uF(p,f,r,a,n,e,o)})):uF(u,l,r,a,n,e,o)}return s.length?Promise.all(s).then(()=>r):r}});function uF(e,t,r,o,n,s,a){e.issues.length&&(Dl.has(typeof o)?r.issues.push(...Hr(o,e.issues)):r.issues.push({code:"invalid_key",origin:"map",input:n,inst:s,issues:e.issues.map(c=>Ar(c,a,lt()))})),t.issues.length&&(Dl.has(typeof o)?r.issues.push(...Hr(o,t.issues)):r.issues.push({origin:"map",code:"invalid_element",input:n,inst:s,key:o,issues:t.issues.map(c=>Ar(c,a,lt()))})),r.value.set(e.value,t.value)}i(uF,"handleMapResult");var ah=$("$ZodSet",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;if(!(n instanceof Set))return r.issues.push({input:n,inst:e,expected:"set",code:"invalid_type"}),r;let s=[];r.value=new Set;for(let a of n){let c=t.valueType._zod.run({value:a,issues:[]},o);c instanceof Promise?s.push(c.then(u=>lF(u,r))):lF(c,r)}return s.length?Promise.all(s).then(()=>r):r}});function lF(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}i(lF,"handleSetResult");var ed=$("$ZodEnum",(e,t)=>{ge.init(e,t);let r=$l(t.entries),o=new Set(r);e._zod.values=o,e._zod.pattern=new RegExp(`^(${r.filter(n=>Dl.has(typeof n)).map(n=>typeof n=="string"?ln(n):n.toString()).join("|")})$`),e._zod.parse=(n,s)=>{let a=n.value;return o.has(a)||n.issues.push({code:"invalid_value",values:r,input:a,inst:e}),n}}),td=$("$ZodLiteral",(e,t)=>{if(ge.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");let r=new Set(t.values);e._zod.values=r,e._zod.pattern=new RegExp(`^(${t.values.map(o=>typeof o=="string"?ln(o):o?ln(o.toString()):String(o)).join("|")})$`),e._zod.parse=(o,n)=>{let s=o.value;return r.has(s)||o.issues.push({code:"invalid_value",values:t.values,input:s,inst:e}),o}}),ch=$("$ZodFile",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{let n=r.value;return n instanceof File||r.issues.push({expected:"file",code:"invalid_type",input:n,inst:e}),r}}),rd=$("$ZodTransform",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ei(e.constructor.name);let n=t.transform(r.value,r);if(o.async)return(n instanceof Promise?n:Promise.resolve(n)).then(a=>(r.value=a,r));if(n instanceof Promise)throw new On;return r.value=n,r}});function dF(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}i(dF,"handleOptionalResult");var Rc=$("$ZodOptional",(e,t)=>{ge.init(e,t),e._zod.optin="optional",e._zod.optout="optional",we(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),we(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ol(r.source)})?$`):void 0}),e._zod.parse=(r,o)=>{if(t.innerType._zod.optin==="optional"){let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(s=>dF(s,r.value)):dF(n,r.value)}return r.value===void 0?r:t.innerType._zod.run(r,o)}}),uh=$("$ZodExactOptional",(e,t)=>{Rc.init(e,t),we(e._zod,"values",()=>t.innerType._zod.values),we(e._zod,"pattern",()=>t.innerType._zod.pattern),e._zod.parse=(r,o)=>t.innerType._zod.run(r,o)}),nd=$("$ZodNullable",(e,t)=>{ge.init(e,t),we(e._zod,"optin",()=>t.innerType._zod.optin),we(e._zod,"optout",()=>t.innerType._zod.optout),we(e._zod,"pattern",()=>{let r=t.innerType._zod.pattern;return r?new RegExp(`^(${Ol(r.source)}|null)$`):void 0}),we(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(r,o)=>r.value===null?r:t.innerType._zod.run(r,o)}),lh=$("$ZodDefault",(e,t)=>{ge.init(e,t),e._zod.optin="optional",we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);if(r.value===void 0)return r.value=t.defaultValue,r;let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(s=>pF(s,t)):pF(n,t)}});function pF(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}i(pF,"handleDefaultResult");var dh=$("$ZodPrefault",(e,t)=>{ge.init(e,t),e._zod.optin="optional",we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>(o.direction==="backward"||r.value===void 0&&(r.value=t.defaultValue),t.innerType._zod.run(r,o))}),ph=$("$ZodNonOptional",(e,t)=>{ge.init(e,t),we(e._zod,"values",()=>{let r=t.innerType._zod.values;return r?new Set([...r].filter(o=>o!==void 0)):void 0}),e._zod.parse=(r,o)=>{let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(s=>fF(s,e)):fF(n,e)}});function fF(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}i(fF,"handleNonOptionalResult");var fh=$("$ZodSuccess",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ei("ZodSuccess");let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(s=>(r.value=s.issues.length===0,r)):(r.value=n.issues.length===0,r)}}),mh=$("$ZodCatch",(e,t)=>{ge.init(e,t),we(e._zod,"optin",()=>t.innerType._zod.optin),we(e._zod,"optout",()=>t.innerType._zod.optout),we(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(s=>(r.value=s.value,s.issues.length&&(r.value=t.catchValue({...r,error:{issues:s.issues.map(a=>Ar(a,o,lt()))},input:r.value}),r.issues=[]),r)):(r.value=n.value,n.issues.length&&(r.value=t.catchValue({...r,error:{issues:n.issues.map(s=>Ar(s,o,lt()))},input:r.value}),r.issues=[]),r)}}),gh=$("$ZodNaN",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>((typeof r.value!="number"||!Number.isNaN(r.value))&&r.issues.push({input:r.value,inst:e,expected:"nan",code:"invalid_type"}),r)}),od=$("$ZodPipe",(e,t)=>{ge.init(e,t),we(e._zod,"values",()=>t.in._zod.values),we(e._zod,"optin",()=>t.in._zod.optin),we(e._zod,"optout",()=>t.out._zod.optout),we(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if(o.direction==="backward"){let s=t.out._zod.run(r,o);return s instanceof Promise?s.then(a=>Ig(a,t.in,o)):Ig(s,t.in,o)}let n=t.in._zod.run(r,o);return n instanceof Promise?n.then(s=>Ig(s,t.out,o)):Ig(n,t.out,o)}});function Ig(e,t,r){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},r)}i(Ig,"handlePipeResult");var $c=$("$ZodCodec",(e,t)=>{ge.init(e,t),we(e._zod,"values",()=>t.in._zod.values),we(e._zod,"optin",()=>t.in._zod.optin),we(e._zod,"optout",()=>t.out._zod.optout),we(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(r,o)=>{if((o.direction||"forward")==="forward"){let s=t.in._zod.run(r,o);return s instanceof Promise?s.then(a=>wg(a,t,o)):wg(s,t,o)}else{let s=t.out._zod.run(r,o);return s instanceof Promise?s.then(a=>wg(a,t,o)):wg(s,t,o)}}});function wg(e,t,r){if(e.issues.length)return e.aborted=!0,e;if((r.direction||"forward")==="forward"){let n=t.transform(e.value,e);return n instanceof Promise?n.then(s=>Rg(e,s,t.out,r)):Rg(e,n,t.out,r)}else{let n=t.reverseTransform(e.value,e);return n instanceof Promise?n.then(s=>Rg(e,s,t.in,r)):Rg(e,n,t.in,r)}}i(wg,"handleCodecAResult");function Rg(e,t,r,o){return e.issues.length?(e.aborted=!0,e):r._zod.run({value:t,issues:e.issues},o)}i(Rg,"handleCodecTxResult");var hh=$("$ZodReadonly",(e,t)=>{ge.init(e,t),we(e._zod,"propValues",()=>t.innerType._zod.propValues),we(e._zod,"values",()=>t.innerType._zod.values),we(e._zod,"optin",()=>t.innerType?._zod?.optin),we(e._zod,"optout",()=>t.innerType?._zod?.optout),e._zod.parse=(r,o)=>{if(o.direction==="backward")return t.innerType._zod.run(r,o);let n=t.innerType._zod.run(r,o);return n instanceof Promise?n.then(mF):mF(n)}});function mF(e){return e.value=Object.freeze(e.value),e}i(mF,"handleReadonlyResult");var yh=$("$ZodTemplateLiteral",(e,t)=>{ge.init(e,t);let r=[];for(let o of t.parts)if(typeof o=="object"&&o!==null){if(!o._zod.pattern)throw new Error(`Invalid template literal part, no pattern found: ${[...o._zod.traits].shift()}`);let n=o._zod.pattern instanceof RegExp?o._zod.pattern.source:o._zod.pattern;if(!n)throw new Error(`Invalid template literal part: ${o._zod.traits}`);let s=n.startsWith("^")?1:0,a=n.endsWith("$")?n.length-1:n.length;r.push(n.slice(s,a))}else if(o===null||QA.has(typeof o))r.push(ln(`${o}`));else throw new Error(`Invalid template literal part: ${o}`);e._zod.pattern=new RegExp(`^${r.join("")}$`),e._zod.parse=(o,n)=>typeof o.value!="string"?(o.issues.push({input:o.value,inst:e,expected:"string",code:"invalid_type"}),o):(e._zod.pattern.lastIndex=0,e._zod.pattern.test(o.value)||o.issues.push({input:o.value,inst:e,code:"invalid_format",format:t.format??"template_literal",pattern:e._zod.pattern.source}),o)}),Eh=$("$ZodFunction",(e,t)=>(ge.init(e,t),e._def=t,e._zod.def=t,e.implement=r=>{if(typeof r!="function")throw new Error("implement() must be called with a function");return function(...o){let n=e._def.input?js(e._def.input,o):o,s=Reflect.apply(r,this,n);return e._def.output?js(e._def.output,s):s}},e.implementAsync=r=>{if(typeof r!="function")throw new Error("implementAsync() must be called with a function");return async function(...o){let n=e._def.input?await Bs(e._def.input,o):o,s=await Reflect.apply(r,this,n);return e._def.output?await Bs(e._def.output,s):s}},e._zod.parse=(r,o)=>typeof r.value!="function"?(r.issues.push({code:"invalid_type",expected:"function",input:r.value,inst:e}),r):(e._def.output&&e._def.output._zod.def.type==="promise"?r.value=e.implementAsync(r.value):r.value=e.implement(r.value),r),e.input=(...r)=>{let o=e.constructor;return Array.isArray(r[0])?new o({type:"function",input:new Yl({type:"tuple",items:r[0],rest:r[1]}),output:e._def.output}):new o({type:"function",input:r[0],output:e._def.output})},e.output=r=>{let o=e.constructor;return new o({type:"function",input:e._def.input,output:r})},e)),Sh=$("$ZodPromise",(e,t)=>{ge.init(e,t),e._zod.parse=(r,o)=>Promise.resolve(r.value).then(n=>t.innerType._zod.run({value:n,issues:[]},o))}),_h=$("$ZodLazy",(e,t)=>{ge.init(e,t),we(e._zod,"innerType",()=>t.getter()),we(e._zod,"pattern",()=>e._zod.innerType?._zod?.pattern),we(e._zod,"propValues",()=>e._zod.innerType?._zod?.propValues),we(e._zod,"optin",()=>e._zod.innerType?._zod?.optin??void 0),we(e._zod,"optout",()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(r,o)=>e._zod.innerType._zod.run(r,o)}),id=$("$ZodCustom",(e,t)=>{rt.init(e,t),ge.init(e,t),e._zod.parse=(r,o)=>r,e._zod.check=r=>{let o=r.value,n=t.fn(o);if(n instanceof Promise)return n.then(s=>gF(s,r,o,e));gF(n,r,o,e)}});function gF(e,t,r,o){if(!e){let n={code:"custom",input:r,inst:o,path:[...o._zod.def.path??[]],continue:!o._zod.def.abort};o._zod.def.params&&(n.params=o._zod.def.params),t.issues.push(Ec(n))}}i(gF,"handleRefineResult");var Dc={};We(Dc,{ar:()=>QT,az:()=>eI,be:()=>tI,bg:()=>rI,ca:()=>nI,cs:()=>oI,da:()=>iI,de:()=>sI,en:()=>sd,eo:()=>aI,es:()=>cI,fa:()=>uI,fi:()=>lI,fr:()=>dI,frCA:()=>pI,he:()=>fI,hu:()=>mI,hy:()=>gI,id:()=>hI,is:()=>yI,it:()=>EI,ja:()=>SI,ka:()=>_I,kh:()=>vI,km:()=>ad,ko:()=>xI,lt:()=>bI,mk:()=>PI,ms:()=>CI,nl:()=>AI,no:()=>TI,ota:()=>II,pl:()=>RI,ps:()=>wI,pt:()=>$I,ru:()=>OI,sl:()=>DI,sv:()=>NI,ta:()=>kI,th:()=>MI,tr:()=>LI,ua:()=>zI,uk:()=>ud,ur:()=>FI,uz:()=>UI,vi:()=>jI,yo:()=>HI,zhCN:()=>BI,zhTW:()=>VI});var Cpe=i(()=>{let e={string:{unit:"\u062D\u0631\u0641",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},file:{unit:"\u0628\u0627\u064A\u062A",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},array:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"},set:{unit:"\u0639\u0646\u0635\u0631",verb:"\u0623\u0646 \u064A\u062D\u0648\u064A"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0645\u062F\u062E\u0644",email:"\u0628\u0631\u064A\u062F \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A",url:"\u0631\u0627\u0628\u0637",emoji:"\u0625\u064A\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u064A\u062E \u0648\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",date:"\u062A\u0627\u0631\u064A\u062E \u0628\u0645\u0639\u064A\u0627\u0631 ISO",time:"\u0648\u0642\u062A \u0628\u0645\u0639\u064A\u0627\u0631 ISO",duration:"\u0645\u062F\u0629 \u0628\u0645\u0639\u064A\u0627\u0631 ISO",ipv4:"\u0639\u0646\u0648\u0627\u0646 IPv4",ipv6:"\u0639\u0646\u0648\u0627\u0646 IPv6",cidrv4:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv4",cidrv6:"\u0645\u062F\u0649 \u0639\u0646\u0627\u0648\u064A\u0646 \u0628\u0635\u064A\u063A\u0629 IPv6",base64:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64-encoded",base64url:"\u0646\u064E\u0635 \u0628\u062A\u0631\u0645\u064A\u0632 base64url-encoded",json_string:"\u0646\u064E\u0635 \u0639\u0644\u0649 \u0647\u064A\u0626\u0629 JSON",e164:"\u0631\u0642\u0645 \u0647\u0627\u062A\u0641 \u0628\u0645\u0639\u064A\u0627\u0631 E.164",jwt:"JWT",template_literal:"\u0645\u062F\u062E\u0644"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 instanceof ${n.expected}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`:`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${s}\u060C \u0648\u0644\u0643\u0646 \u062A\u0645 \u0625\u062F\u062E\u0627\u0644 ${c}`}case"invalid_value":return n.values.length===1?`\u0645\u062F\u062E\u0644\u0627\u062A \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644\u0629: \u064A\u0641\u062A\u0631\u0636 \u0625\u062F\u062E\u0627\u0644 ${V(n.values[0])}`:`\u0627\u062E\u062A\u064A\u0627\u0631 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062A\u0648\u0642\u0639 \u0627\u0646\u062A\u0642\u0627\u0621 \u0623\u062D\u062F \u0647\u0630\u0647 \u0627\u0644\u062E\u064A\u0627\u0631\u0627\u062A: ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?` \u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${s} ${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"}`:`\u0623\u0643\u0628\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0623\u0646 \u062A\u0643\u0648\u0646 ${n.origin??"\u0627\u0644\u0642\u064A\u0645\u0629"} ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${s} ${n.minimum.toString()} ${a.unit}`:`\u0623\u0635\u063A\u0631 \u0645\u0646 \u0627\u0644\u0644\u0627\u0632\u0645: \u064A\u0641\u062A\u0631\u0636 \u0644\u0640 ${n.origin} \u0623\u0646 \u064A\u0643\u0648\u0646 ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0628\u062F\u0623 \u0628\u0640 "${n.prefix}"`:s.format==="ends_with"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0646\u062A\u0647\u064A \u0628\u0640 "${s.suffix}"`:s.format==="includes"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u062A\u0636\u0645\u0651\u064E\u0646 "${s.includes}"`:s.format==="regex"?`\u0646\u064E\u0635 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0637\u0627\u0628\u0642 \u0627\u0644\u0646\u0645\u0637 ${s.pattern}`:`${r[s.format]??n.format} \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644`}case"not_multiple_of":return`\u0631\u0642\u0645 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644: \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0645\u0646 \u0645\u0636\u0627\u0639\u0641\u0627\u062A ${n.divisor}`;case"unrecognized_keys":return`\u0645\u0639\u0631\u0641${n.keys.length>1?"\u0627\u062A":""} \u063A\u0631\u064A\u0628${n.keys.length>1?"\u0629":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`\u0645\u0639\u0631\u0641 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;case"invalid_union":return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644";case"invalid_element":return`\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644 \u0641\u064A ${n.origin}`;default:return"\u0645\u062F\u062E\u0644 \u063A\u064A\u0631 \u0645\u0642\u0628\u0648\u0644"}}},"error");function QT(){return{localeError:Cpe()}}i(QT,"default");var Ape=i(()=>{let e={string:{unit:"simvol",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"element",verb:"olmal\u0131d\u0131r"},set:{unit:"element",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n instanceof ${n.expected}, daxil olan ${c}`:`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${s}, daxil olan ${c}`}case"invalid_value":return n.values.length===1?`Yanl\u0131\u015F d\u0259y\u0259r: g\xF6zl\u0259nil\u0259n ${V(n.values[0])}`:`Yanl\u0131\u015F se\xE7im: a\u015Fa\u011F\u0131dak\u0131lardan biri olmal\u0131d\u0131r: ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${s}${n.maximum.toString()} ${a.unit??"element"}`:`\xC7ox b\xF6y\xFCk: g\xF6zl\u0259nil\u0259n ${n.origin??"d\u0259y\u0259r"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${s}${n.minimum.toString()} ${a.unit}`:`\xC7ox ki\xE7ik: g\xF6zl\u0259nil\u0259n ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Yanl\u0131\u015F m\u0259tn: "${s.prefix}" il\u0259 ba\u015Flamal\u0131d\u0131r`:s.format==="ends_with"?`Yanl\u0131\u015F m\u0259tn: "${s.suffix}" il\u0259 bitm\u0259lidir`:s.format==="includes"?`Yanl\u0131\u015F m\u0259tn: "${s.includes}" daxil olmal\u0131d\u0131r`:s.format==="regex"?`Yanl\u0131\u015F m\u0259tn: ${s.pattern} \u015Fablonuna uy\u011Fun olmal\u0131d\u0131r`:`Yanl\u0131\u015F ${r[s.format]??n.format}`}case"not_multiple_of":return`Yanl\u0131\u015F \u0259d\u0259d: ${n.divisor} il\u0259 b\xF6l\xFCn\u0259 bil\u0259n olmal\u0131d\u0131r`;case"unrecognized_keys":return`Tan\u0131nmayan a\xE7ar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} daxilind\u0259 yanl\u0131\u015F a\xE7ar`;case"invalid_union":return"Yanl\u0131\u015F d\u0259y\u0259r";case"invalid_element":return`${n.origin} daxilind\u0259 yanl\u0131\u015F d\u0259y\u0259r`;default:return"Yanl\u0131\u015F d\u0259y\u0259r"}}},"error");function eI(){return{localeError:Ape()}}i(eI,"default");function _F(e,t,r,o){let n=Math.abs(e),s=n%10,a=n%100;return a>=11&&a<=19?o:s===1?t:s>=2&&s<=4?r:o}i(_F,"getBelarusianPlural");var Tpe=i(()=>{let e={string:{unit:{one:"\u0441\u0456\u043C\u0432\u0430\u043B",few:"\u0441\u0456\u043C\u0432\u0430\u043B\u044B",many:"\u0441\u0456\u043C\u0432\u0430\u043B\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u044B",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u044B",many:"\u0431\u0430\u0439\u0442\u0430\u045E"},verb:"\u043C\u0435\u0446\u044C"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0443\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0430\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0456 \u0447\u0430\u0441",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0447\u0430\u0441",duration:"ISO \u043F\u0440\u0430\u0446\u044F\u0433\u043B\u0430\u0441\u0446\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0430\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0430\u0441",cidrv4:"IPv4 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u044B\u044F\u043F\u0430\u0437\u043E\u043D",base64:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64",base64url:"\u0440\u0430\u0434\u043E\u043A \u0443 \u0444\u0430\u0440\u043C\u0430\u0446\u0435 base64url",json_string:"JSON \u0440\u0430\u0434\u043E\u043A",e164:"\u043D\u0443\u043C\u0430\u0440 E.164",jwt:"JWT",template_literal:"\u0443\u0432\u043E\u0434"},o={nan:"NaN",number:"\u043B\u0456\u043A",array:"\u043C\u0430\u0441\u0456\u045E"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F instanceof ${n.expected}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u045E\u0441\u044F ${s}, \u0430\u0442\u0440\u044B\u043C\u0430\u043D\u0430 ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F ${V(n.values[0])}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0432\u0430\u0440\u044B\u044F\u043D\u0442: \u0447\u0430\u043A\u0430\u045E\u0441\u044F \u0430\u0434\u0437\u0456\u043D \u0437 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);if(a){let c=Number(n.maximum),u=_F(c,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${s}${n.maximum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u0432\u044F\u043B\u0456\u043A\u0456: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435"} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);if(a){let c=Number(n.minimum),u=_F(c,a.unit.one,a.unit.few,a.unit.many);return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 ${a.verb} ${s}${n.minimum.toString()} ${u}`}return`\u0417\u0430\u043D\u0430\u0434\u0442\u0430 \u043C\u0430\u043B\u044B: \u0447\u0430\u043A\u0430\u043B\u0430\u0441\u044F, \u0448\u0442\u043E ${n.origin} \u043F\u0430\u0432\u0456\u043D\u043D\u0430 \u0431\u044B\u0446\u044C ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u043F\u0430\u0447\u044B\u043D\u0430\u0446\u0446\u0430 \u0437 "${s.prefix}"`:s.format==="ends_with"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u0430\u043A\u0430\u043D\u0447\u0432\u0430\u0446\u0446\u0430 \u043D\u0430 "${s.suffix}"`:s.format==="includes"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0437\u043C\u044F\u0448\u0447\u0430\u0446\u044C "${s.includes}"`:s.format==="regex"?`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u0440\u0430\u0434\u043E\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0430\u0434\u043F\u0430\u0432\u044F\u0434\u0430\u0446\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${s.pattern}`:`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B ${r[s.format]??n.format}`}case"not_multiple_of":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043B\u0456\u043A: \u043F\u0430\u0432\u0456\u043D\u0435\u043D \u0431\u044B\u0446\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u0430\u0437\u043D\u0430\u043D\u044B ${n.keys.length>1?"\u043A\u043B\u044E\u0447\u044B":"\u043A\u043B\u044E\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434";case"invalid_element":return`\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u0430\u0435 \u0437\u043D\u0430\u0447\u044D\u043D\u043D\u0435 \u045E ${n.origin}`;default:return"\u041D\u044F\u043F\u0440\u0430\u0432\u0456\u043B\u044C\u043D\u044B \u045E\u0432\u043E\u0434"}}},"error");function tI(){return{localeError:Tpe()}}i(tI,"default");var Ipe=i(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},file:{unit:"\u0431\u0430\u0439\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430",verb:"\u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0432\u0445\u043E\u0434",email:"\u0438\u043C\u0435\u0439\u043B \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0436\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u043F\u0440\u043E\u0434\u044A\u043B\u0436\u0438\u0442\u0435\u043B\u043D\u043E\u0441\u0442",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"base64-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",base64url:"base64url-\u043A\u043E\u0434\u0438\u0440\u0430\u043D \u043D\u0438\u0437",json_string:"JSON \u043D\u0438\u0437",e164:"E.164 \u043D\u043E\u043C\u0435\u0440",jwt:"JWT",template_literal:"\u0432\u0445\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${s}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434: \u043E\u0447\u0430\u043A\u0432\u0430\u043D ${V(n.values[0])}`:`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u043E\u043F\u0446\u0438\u044F: \u043E\u0447\u0430\u043A\u0432\u0430\u043D\u043E \u0435\u0434\u043D\u043E \u043E\u0442 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${s}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0430"}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u0433\u043E\u043B\u044F\u043C\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin??"\u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442"} \u0434\u0430 \u0431\u044A\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0441\u044A\u0434\u044A\u0440\u0436\u0430 ${s}${n.minimum.toString()} ${a.unit}`:`\u0422\u0432\u044A\u0440\u0434\u0435 \u043C\u0430\u043B\u043A\u043E: \u043E\u0447\u0430\u043A\u0432\u0430 \u0441\u0435 ${n.origin} \u0434\u0430 \u0431\u044A\u0434\u0435 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;if(s.format==="starts_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u0432\u0430 \u0441 "${s.prefix}"`;if(s.format==="ends_with")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0437\u0430\u0432\u044A\u0440\u0448\u0432\u0430 \u0441 "${s.suffix}"`;if(s.format==="includes")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0432\u043A\u043B\u044E\u0447\u0432\u0430 "${s.includes}"`;if(s.format==="regex")return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043D\u0438\u0437: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0441\u044A\u0432\u043F\u0430\u0434\u0430 \u0441 ${s.pattern}`;let a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D";return s.format==="emoji"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="datetime"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="date"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),s.format==="time"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E"),s.format==="duration"&&(a="\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430"),`${a} ${r[s.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u043E \u0447\u0438\u0441\u043B\u043E: \u0442\u0440\u044F\u0431\u0432\u0430 \u0434\u0430 \u0431\u044A\u0434\u0435 \u043A\u0440\u0430\u0442\u043D\u043E \u043D\u0430 ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0437\u043F\u043E\u0437\u043D\u0430\u0442${n.keys.length>1?"\u0438":""} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u043E\u0432\u0435":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434";case"invalid_element":return`\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u043D\u0430 \u0441\u0442\u043E\u0439\u043D\u043E\u0441\u0442 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0430\u043B\u0438\u0434\u0435\u043D \u0432\u0445\u043E\u0434"}}},"error");function rI(){return{localeError:Ipe()}}i(rI,"default");var wpe=i(()=>{let e={string:{unit:"car\xE0cters",verb:"contenir"},file:{unit:"bytes",verb:"contenir"},array:{unit:"elements",verb:"contenir"},set:{unit:"elements",verb:"contenir"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"entrada",email:"adre\xE7a electr\xF2nica",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i hora ISO",date:"data ISO",time:"hora ISO",duration:"durada ISO",ipv4:"adre\xE7a IPv4",ipv6:"adre\xE7a IPv6",cidrv4:"rang IPv4",cidrv6:"rang IPv6",base64:"cadena codificada en base64",base64url:"cadena codificada en base64url",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipus inv\xE0lid: s'esperava instanceof ${n.expected}, s'ha rebut ${c}`:`Tipus inv\xE0lid: s'esperava ${s}, s'ha rebut ${c}`}case"invalid_value":return n.values.length===1?`Valor inv\xE0lid: s'esperava ${V(n.values[0])}`:`Opci\xF3 inv\xE0lida: s'esperava una de ${k(n.values," o ")}`;case"too_big":{let s=n.inclusive?"com a m\xE0xim":"menys de",a=t(n.origin);return a?`Massa gran: s'esperava que ${n.origin??"el valor"} contingu\xE9s ${s} ${n.maximum.toString()} ${a.unit??"elements"}`:`Massa gran: s'esperava que ${n.origin??"el valor"} fos ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?"com a m\xEDnim":"m\xE9s de",a=t(n.origin);return a?`Massa petit: s'esperava que ${n.origin} contingu\xE9s ${s} ${n.minimum.toString()} ${a.unit}`:`Massa petit: s'esperava que ${n.origin} fos ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Format inv\xE0lid: ha de comen\xE7ar amb "${s.prefix}"`:s.format==="ends_with"?`Format inv\xE0lid: ha d'acabar amb "${s.suffix}"`:s.format==="includes"?`Format inv\xE0lid: ha d'incloure "${s.includes}"`:s.format==="regex"?`Format inv\xE0lid: ha de coincidir amb el patr\xF3 ${s.pattern}`:`Format inv\xE0lid per a ${r[s.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE0lid: ha de ser m\xFAltiple de ${n.divisor}`;case"unrecognized_keys":return`Clau${n.keys.length>1?"s":""} no reconeguda${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Clau inv\xE0lida a ${n.origin}`;case"invalid_union":return"Entrada inv\xE0lida";case"invalid_element":return`Element inv\xE0lid a ${n.origin}`;default:return"Entrada inv\xE0lida"}}},"error");function nI(){return{localeError:wpe()}}i(nI,"default");var Rpe=i(()=>{let e={string:{unit:"znak\u016F",verb:"m\xEDt"},file:{unit:"bajt\u016F",verb:"m\xEDt"},array:{unit:"prvk\u016F",verb:"m\xEDt"},set:{unit:"prvk\u016F",verb:"m\xEDt"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"regul\xE1rn\xED v\xFDraz",email:"e-mailov\xE1 adresa",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"datum a \u010Das ve form\xE1tu ISO",date:"datum ve form\xE1tu ISO",time:"\u010Das ve form\xE1tu ISO",duration:"doba trv\xE1n\xED ISO",ipv4:"IPv4 adresa",ipv6:"IPv6 adresa",cidrv4:"rozsah IPv4",cidrv6:"rozsah IPv6",base64:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64",base64url:"\u0159et\u011Bzec zak\xF3dovan\xFD ve form\xE1tu base64url",json_string:"\u0159et\u011Bzec ve form\xE1tu JSON",e164:"\u010D\xEDslo E.164",jwt:"JWT",template_literal:"vstup"},o={nan:"NaN",number:"\u010D\xEDslo",string:"\u0159et\u011Bzec",function:"funkce",array:"pole"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no instanceof ${n.expected}, obdr\u017Eeno ${c}`:`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${s}, obdr\u017Eeno ${c}`}case"invalid_value":return n.values.length===1?`Neplatn\xFD vstup: o\u010Dek\xE1v\xE1no ${V(n.values[0])}`:`Neplatn\xE1 mo\u017Enost: o\u010Dek\xE1v\xE1na jedna z hodnot ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${s}${n.maximum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 velk\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED m\xEDt ${s}${n.minimum.toString()} ${a.unit??"prvk\u016F"}`:`Hodnota je p\u0159\xEDli\u0161 mal\xE1: ${n.origin??"hodnota"} mus\xED b\xFDt ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED za\u010D\xEDnat na "${s.prefix}"`:s.format==="ends_with"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED kon\u010Dit na "${s.suffix}"`:s.format==="includes"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED obsahovat "${s.includes}"`:s.format==="regex"?`Neplatn\xFD \u0159et\u011Bzec: mus\xED odpov\xEDdat vzoru ${s.pattern}`:`Neplatn\xFD form\xE1t ${r[s.format]??n.format}`}case"not_multiple_of":return`Neplatn\xE9 \u010D\xEDslo: mus\xED b\xFDt n\xE1sobkem ${n.divisor}`;case"unrecognized_keys":return`Nezn\xE1m\xE9 kl\xED\u010De: ${k(n.keys,", ")}`;case"invalid_key":return`Neplatn\xFD kl\xED\u010D v ${n.origin}`;case"invalid_union":return"Neplatn\xFD vstup";case"invalid_element":return`Neplatn\xE1 hodnota v ${n.origin}`;default:return"Neplatn\xFD vstup"}}},"error");function oI(){return{localeError:Rpe()}}i(oI,"default");var $pe=i(()=>{let e={string:{unit:"tegn",verb:"havde"},file:{unit:"bytes",verb:"havde"},array:{unit:"elementer",verb:"indeholdt"},set:{unit:"elementer",verb:"indeholdt"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"input",email:"e-mailadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkesl\xE6t",date:"ISO-dato",time:"ISO-klokkesl\xE6t",duration:"ISO-varighed",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodet streng",base64url:"base64url-kodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",string:"streng",number:"tal",boolean:"boolean",array:"liste",object:"objekt",set:"s\xE6t",file:"fil"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldigt input: forventede instanceof ${n.expected}, fik ${c}`:`Ugyldigt input: forventede ${s}, fik ${c}`}case"invalid_value":return n.values.length===1?`Ugyldig v\xE6rdi: forventede ${V(n.values[0])}`:`Ugyldigt valg: forventede en af f\xF8lgende ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin),c=o[n.origin]??n.origin;return a?`For stor: forventede ${c??"value"} ${a.verb} ${s} ${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor: forventede ${c??"value"} havde ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin),c=o[n.origin]??n.origin;return a?`For lille: forventede ${c} ${a.verb} ${s} ${n.minimum.toString()} ${a.unit}`:`For lille: forventede ${c} havde ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ugyldig streng: skal starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: skal ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: skal indeholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: skal matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${r[s.format]??n.format}`}case"not_multiple_of":return`Ugyldigt tal: skal v\xE6re deleligt med ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukendte n\xF8gler":"Ukendt n\xF8gle"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8gle i ${n.origin}`;case"invalid_union":return"Ugyldigt input: matcher ingen af de tilladte typer";case"invalid_element":return`Ugyldig v\xE6rdi i ${n.origin}`;default:return"Ugyldigt input"}}},"error");function iI(){return{localeError:$pe()}}i(iI,"default");var Ope=i(()=>{let e={string:{unit:"Zeichen",verb:"zu haben"},file:{unit:"Bytes",verb:"zu haben"},array:{unit:"Elemente",verb:"zu haben"},set:{unit:"Elemente",verb:"zu haben"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"Eingabe",email:"E-Mail-Adresse",url:"URL",emoji:"Emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-Datum und -Uhrzeit",date:"ISO-Datum",time:"ISO-Uhrzeit",duration:"ISO-Dauer",ipv4:"IPv4-Adresse",ipv6:"IPv6-Adresse",cidrv4:"IPv4-Bereich",cidrv6:"IPv6-Bereich",base64:"Base64-codierter String",base64url:"Base64-URL-codierter String",json_string:"JSON-String",e164:"E.164-Nummer",jwt:"JWT",template_literal:"Eingabe"},o={nan:"NaN",number:"Zahl",array:"Array"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ung\xFCltige Eingabe: erwartet instanceof ${n.expected}, erhalten ${c}`:`Ung\xFCltige Eingabe: erwartet ${s}, erhalten ${c}`}case"invalid_value":return n.values.length===1?`Ung\xFCltige Eingabe: erwartet ${V(n.values[0])}`:`Ung\xFCltige Option: erwartet eine von ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${s}${n.maximum.toString()} ${a.unit??"Elemente"} hat`:`Zu gro\xDF: erwartet, dass ${n.origin??"Wert"} ${s}${n.maximum.toString()} ist`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Zu klein: erwartet, dass ${n.origin} ${s}${n.minimum.toString()} ${a.unit} hat`:`Zu klein: erwartet, dass ${n.origin} ${s}${n.minimum.toString()} ist`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ung\xFCltiger String: muss mit "${s.prefix}" beginnen`:s.format==="ends_with"?`Ung\xFCltiger String: muss mit "${s.suffix}" enden`:s.format==="includes"?`Ung\xFCltiger String: muss "${s.includes}" enthalten`:s.format==="regex"?`Ung\xFCltiger String: muss dem Muster ${s.pattern} entsprechen`:`Ung\xFCltig: ${r[s.format]??n.format}`}case"not_multiple_of":return`Ung\xFCltige Zahl: muss ein Vielfaches von ${n.divisor} sein`;case"unrecognized_keys":return`${n.keys.length>1?"Unbekannte Schl\xFCssel":"Unbekannter Schl\xFCssel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ung\xFCltiger Schl\xFCssel in ${n.origin}`;case"invalid_union":return"Ung\xFCltige Eingabe";case"invalid_element":return`Ung\xFCltiger Wert in ${n.origin}`;default:return"Ung\xFCltige Eingabe"}}},"error");function sI(){return{localeError:Ope()}}i(sI,"default");var Dpe=i(()=>{let e={string:{unit:"characters",verb:"to have"},file:{unit:"bytes",verb:"to have"},array:{unit:"items",verb:"to have"},set:{unit:"items",verb:"to have"},map:{unit:"entries",verb:"to have"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"input",email:"email address",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datetime",date:"ISO date",time:"ISO time",duration:"ISO duration",ipv4:"IPv4 address",ipv6:"IPv6 address",mac:"MAC address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded string",base64url:"base64url-encoded string",json_string:"JSON string",e164:"E.164 number",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return`Invalid input: expected ${s}, received ${c}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${V(n.values[0])}`:`Invalid option: expected one of ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Too big: expected ${n.origin??"value"} to have ${s}${n.maximum.toString()} ${a.unit??"elements"}`:`Too big: expected ${n.origin??"value"} to be ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Too small: expected ${n.origin} to have ${s}${n.minimum.toString()} ${a.unit}`:`Too small: expected ${n.origin} to be ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Invalid string: must start with "${s.prefix}"`:s.format==="ends_with"?`Invalid string: must end with "${s.suffix}"`:s.format==="includes"?`Invalid string: must include "${s.includes}"`:s.format==="regex"?`Invalid string: must match pattern ${s.pattern}`:`Invalid ${r[s.format]??n.format}`}case"not_multiple_of":return`Invalid number: must be a multiple of ${n.divisor}`;case"unrecognized_keys":return`Unrecognized key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Invalid key in ${n.origin}`;case"invalid_union":return"Invalid input";case"invalid_element":return`Invalid value in ${n.origin}`;default:return"Invalid input"}}},"error");function sd(){return{localeError:Dpe()}}i(sd,"default");var Npe=i(()=>{let e={string:{unit:"karaktrojn",verb:"havi"},file:{unit:"bajtojn",verb:"havi"},array:{unit:"elementojn",verb:"havi"},set:{unit:"elementojn",verb:"havi"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"enigo",email:"retadreso",url:"URL",emoji:"emo\u011Dio",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datotempo",date:"ISO-dato",time:"ISO-tempo",duration:"ISO-da\u016Dro",ipv4:"IPv4-adreso",ipv6:"IPv6-adreso",cidrv4:"IPv4-rango",cidrv6:"IPv6-rango",base64:"64-ume kodita karaktraro",base64url:"URL-64-ume kodita karaktraro",json_string:"JSON-karaktraro",e164:"E.164-nombro",jwt:"JWT",template_literal:"enigo"},o={nan:"NaN",number:"nombro",array:"tabelo",null:"senvalora"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nevalida enigo: atendi\u011Dis instanceof ${n.expected}, ricevi\u011Dis ${c}`:`Nevalida enigo: atendi\u011Dis ${s}, ricevi\u011Dis ${c}`}case"invalid_value":return n.values.length===1?`Nevalida enigo: atendi\u011Dis ${V(n.values[0])}`:`Nevalida opcio: atendi\u011Dis unu el ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${s}${n.maximum.toString()} ${a.unit??"elementojn"}`:`Tro granda: atendi\u011Dis ke ${n.origin??"valoro"} havu ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Tro malgranda: atendi\u011Dis ke ${n.origin} havu ${s}${n.minimum.toString()} ${a.unit}`:`Tro malgranda: atendi\u011Dis ke ${n.origin} estu ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Nevalida karaktraro: devas komenci\u011Di per "${s.prefix}"`:s.format==="ends_with"?`Nevalida karaktraro: devas fini\u011Di per "${s.suffix}"`:s.format==="includes"?`Nevalida karaktraro: devas inkluzivi "${s.includes}"`:s.format==="regex"?`Nevalida karaktraro: devas kongrui kun la modelo ${s.pattern}`:`Nevalida ${r[s.format]??n.format}`}case"not_multiple_of":return`Nevalida nombro: devas esti oblo de ${n.divisor}`;case"unrecognized_keys":return`Nekonata${n.keys.length>1?"j":""} \u015Dlosilo${n.keys.length>1?"j":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nevalida \u015Dlosilo en ${n.origin}`;case"invalid_union":return"Nevalida enigo";case"invalid_element":return`Nevalida valoro en ${n.origin}`;default:return"Nevalida enigo"}}},"error");function aI(){return{localeError:Npe()}}i(aI,"default");var kpe=i(()=>{let e={string:{unit:"caracteres",verb:"tener"},file:{unit:"bytes",verb:"tener"},array:{unit:"elementos",verb:"tener"},set:{unit:"elementos",verb:"tener"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"entrada",email:"direcci\xF3n de correo electr\xF3nico",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"fecha y hora ISO",date:"fecha ISO",time:"hora ISO",duration:"duraci\xF3n ISO",ipv4:"direcci\xF3n IPv4",ipv6:"direcci\xF3n IPv6",cidrv4:"rango IPv4",cidrv6:"rango IPv6",base64:"cadena codificada en base64",base64url:"URL codificada en base64",json_string:"cadena JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",string:"texto",number:"n\xFAmero",boolean:"booleano",array:"arreglo",object:"objeto",set:"conjunto",file:"archivo",date:"fecha",bigint:"n\xFAmero grande",symbol:"s\xEDmbolo",undefined:"indefinido",null:"nulo",function:"funci\xF3n",map:"mapa",record:"registro",tuple:"tupla",enum:"enumeraci\xF3n",union:"uni\xF3n",literal:"literal",promise:"promesa",void:"vac\xEDo",never:"nunca",unknown:"desconocido",any:"cualquiera"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entrada inv\xE1lida: se esperaba instanceof ${n.expected}, recibido ${c}`:`Entrada inv\xE1lida: se esperaba ${s}, recibido ${c}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: se esperaba ${V(n.values[0])}`:`Opci\xF3n inv\xE1lida: se esperaba una de ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin),c=o[n.origin]??n.origin;return a?`Demasiado grande: se esperaba que ${c??"valor"} tuviera ${s}${n.maximum.toString()} ${a.unit??"elementos"}`:`Demasiado grande: se esperaba que ${c??"valor"} fuera ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin),c=o[n.origin]??n.origin;return a?`Demasiado peque\xF1o: se esperaba que ${c} tuviera ${s}${n.minimum.toString()} ${a.unit}`:`Demasiado peque\xF1o: se esperaba que ${c} fuera ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Cadena inv\xE1lida: debe comenzar con "${s.prefix}"`:s.format==="ends_with"?`Cadena inv\xE1lida: debe terminar en "${s.suffix}"`:s.format==="includes"?`Cadena inv\xE1lida: debe incluir "${s.includes}"`:s.format==="regex"?`Cadena inv\xE1lida: debe coincidir con el patr\xF3n ${s.pattern}`:`Inv\xE1lido ${r[s.format]??n.format}`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: debe ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Llave${n.keys.length>1?"s":""} desconocida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Llave inv\xE1lida en ${o[n.origin]??n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido en ${o[n.origin]??n.origin}`;default:return"Entrada inv\xE1lida"}}},"error");function cI(){return{localeError:kpe()}}i(cI,"default");var Mpe=i(()=>{let e={string:{unit:"\u06A9\u0627\u0631\u0627\u06A9\u062A\u0631",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},file:{unit:"\u0628\u0627\u06CC\u062A",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},array:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"},set:{unit:"\u0622\u06CC\u062A\u0645",verb:"\u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0648\u0631\u0648\u062F\u06CC",email:"\u0622\u062F\u0631\u0633 \u0627\u06CC\u0645\u06CC\u0644",url:"URL",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u062A\u0627\u0631\u06CC\u062E \u0648 \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",date:"\u062A\u0627\u0631\u06CC\u062E \u0627\u06CC\u0632\u0648",time:"\u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",duration:"\u0645\u062F\u062A \u0632\u0645\u0627\u0646 \u0627\u06CC\u0632\u0648",ipv4:"IPv4 \u0622\u062F\u0631\u0633",ipv6:"IPv6 \u0622\u062F\u0631\u0633",cidrv4:"IPv4 \u062F\u0627\u0645\u0646\u0647",cidrv6:"IPv6 \u062F\u0627\u0645\u0646\u0647",base64:"base64-encoded \u0631\u0634\u062A\u0647",base64url:"base64url-encoded \u0631\u0634\u062A\u0647",json_string:"JSON \u0631\u0634\u062A\u0647",e164:"E.164 \u0639\u062F\u062F",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u06CC"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0622\u0631\u0627\u06CC\u0647"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A instanceof ${n.expected} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`:`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${s} \u0645\u06CC\u200C\u0628\u0648\u062F\u060C ${c} \u062F\u0631\u06CC\u0627\u0641\u062A \u0634\u062F`}case"invalid_value":return n.values.length===1?`\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A ${V(n.values[0])} \u0645\u06CC\u200C\u0628\u0648\u062F`:`\u06AF\u0632\u06CC\u0646\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0645\u06CC\u200C\u0628\u0627\u06CC\u0633\u062A \u06CC\u06A9\u06CC \u0627\u0632 ${k(n.values,"|")} \u0645\u06CC\u200C\u0628\u0648\u062F`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631"} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u0628\u0632\u0631\u06AF: ${n.origin??"\u0645\u0642\u062F\u0627\u0631"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} \u0628\u0627\u0634\u062F`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} ${a.unit} \u0628\u0627\u0634\u062F`:`\u062E\u06CC\u0644\u06CC \u06A9\u0648\u0686\u06A9: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} \u0628\u0627\u0634\u062F`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${s.prefix}" \u0634\u0631\u0648\u0639 \u0634\u0648\u062F`:s.format==="ends_with"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 "${s.suffix}" \u062A\u0645\u0627\u0645 \u0634\u0648\u062F`:s.format==="includes"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0634\u0627\u0645\u0644 "${s.includes}" \u0628\u0627\u0634\u062F`:s.format==="regex"?`\u0631\u0634\u062A\u0647 \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0628\u0627 \u0627\u0644\u06AF\u0648\u06CC ${s.pattern} \u0645\u0637\u0627\u0628\u0642\u062A \u062F\u0627\u0634\u062A\u0647 \u0628\u0627\u0634\u062F`:`${r[s.format]??n.format} \u0646\u0627\u0645\u0639\u062A\u0628\u0631`}case"not_multiple_of":return`\u0639\u062F\u062F \u0646\u0627\u0645\u0639\u062A\u0628\u0631: \u0628\u0627\u06CC\u062F \u0645\u0636\u0631\u0628 ${n.divisor} \u0628\u0627\u0634\u062F`;case"unrecognized_keys":return`\u06A9\u0644\u06CC\u062F${n.keys.length>1?"\u0647\u0627\u06CC":""} \u0646\u0627\u0634\u0646\u0627\u0633: ${k(n.keys,", ")}`;case"invalid_key":return`\u06A9\u0644\u06CC\u062F \u0646\u0627\u0634\u0646\u0627\u0633 \u062F\u0631 ${n.origin}`;case"invalid_union":return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631";case"invalid_element":return`\u0645\u0642\u062F\u0627\u0631 \u0646\u0627\u0645\u0639\u062A\u0628\u0631 \u062F\u0631 ${n.origin}`;default:return"\u0648\u0631\u0648\u062F\u06CC \u0646\u0627\u0645\u0639\u062A\u0628\u0631"}}},"error");function uI(){return{localeError:Mpe()}}i(uI,"default");var Lpe=i(()=>{let e={string:{unit:"merkki\xE4",subject:"merkkijonon"},file:{unit:"tavua",subject:"tiedoston"},array:{unit:"alkiota",subject:"listan"},set:{unit:"alkiota",subject:"joukon"},number:{unit:"",subject:"luvun"},bigint:{unit:"",subject:"suuren kokonaisluvun"},int:{unit:"",subject:"kokonaisluvun"},date:{unit:"",subject:"p\xE4iv\xE4m\xE4\xE4r\xE4n"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"s\xE4\xE4nn\xF6llinen lauseke",email:"s\xE4hk\xF6postiosoite",url:"URL-osoite",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-aikaleima",date:"ISO-p\xE4iv\xE4m\xE4\xE4r\xE4",time:"ISO-aika",duration:"ISO-kesto",ipv4:"IPv4-osoite",ipv6:"IPv6-osoite",cidrv4:"IPv4-alue",cidrv6:"IPv6-alue",base64:"base64-koodattu merkkijono",base64url:"base64url-koodattu merkkijono",json_string:"JSON-merkkijono",e164:"E.164-luku",jwt:"JWT",template_literal:"templaattimerkkijono"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Virheellinen tyyppi: odotettiin instanceof ${n.expected}, oli ${c}`:`Virheellinen tyyppi: odotettiin ${s}, oli ${c}`}case"invalid_value":return n.values.length===1?`Virheellinen sy\xF6te: t\xE4ytyy olla ${V(n.values[0])}`:`Virheellinen valinta: t\xE4ytyy olla yksi seuraavista: ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Liian suuri: ${a.subject} t\xE4ytyy olla ${s}${n.maximum.toString()} ${a.unit}`.trim():`Liian suuri: arvon t\xE4ytyy olla ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Liian pieni: ${a.subject} t\xE4ytyy olla ${s}${n.minimum.toString()} ${a.unit}`.trim():`Liian pieni: arvon t\xE4ytyy olla ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Virheellinen sy\xF6te: t\xE4ytyy alkaa "${s.prefix}"`:s.format==="ends_with"?`Virheellinen sy\xF6te: t\xE4ytyy loppua "${s.suffix}"`:s.format==="includes"?`Virheellinen sy\xF6te: t\xE4ytyy sis\xE4lt\xE4\xE4 "${s.includes}"`:s.format==="regex"?`Virheellinen sy\xF6te: t\xE4ytyy vastata s\xE4\xE4nn\xF6llist\xE4 lauseketta ${s.pattern}`:`Virheellinen ${r[s.format]??n.format}`}case"not_multiple_of":return`Virheellinen luku: t\xE4ytyy olla luvun ${n.divisor} monikerta`;case"unrecognized_keys":return`${n.keys.length>1?"Tuntemattomat avaimet":"Tuntematon avain"}: ${k(n.keys,", ")}`;case"invalid_key":return"Virheellinen avain tietueessa";case"invalid_union":return"Virheellinen unioni";case"invalid_element":return"Virheellinen arvo joukossa";default:return"Virheellinen sy\xF6te"}}},"error");function lI(){return{localeError:Lpe()}}i(lI,"default");var zpe=i(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"entr\xE9e",email:"adresse e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date et heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN",number:"nombre",array:"tableau"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : instanceof ${n.expected} attendu, ${c} re\xE7u`:`Entr\xE9e invalide : ${s} attendu, ${c} re\xE7u`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : ${V(n.values[0])} attendu`:`Option invalide : une valeur parmi ${k(n.values,"|")} attendue`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Trop grand : ${n.origin??"valeur"} doit ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"\xE9l\xE9ment(s)"}`:`Trop grand : ${n.origin??"valeur"} doit \xEAtre ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Trop petit : ${n.origin} doit ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`Trop petit : ${n.origin} doit \xEAtre ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Cha\xEEne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Cha\xEEne invalide : doit correspondre au mod\xE8le ${s.pattern}`:`${r[s.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function dI(){return{localeError:zpe()}}i(dI,"default");var Fpe=i(()=>{let e={string:{unit:"caract\xE8res",verb:"avoir"},file:{unit:"octets",verb:"avoir"},array:{unit:"\xE9l\xE9ments",verb:"avoir"},set:{unit:"\xE9l\xE9ments",verb:"avoir"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"entr\xE9e",email:"adresse courriel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"date-heure ISO",date:"date ISO",time:"heure ISO",duration:"dur\xE9e ISO",ipv4:"adresse IPv4",ipv6:"adresse IPv6",cidrv4:"plage IPv4",cidrv6:"plage IPv6",base64:"cha\xEEne encod\xE9e en base64",base64url:"cha\xEEne encod\xE9e en base64url",json_string:"cha\xEEne JSON",e164:"num\xE9ro E.164",jwt:"JWT",template_literal:"entr\xE9e"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Entr\xE9e invalide : attendu instanceof ${n.expected}, re\xE7u ${c}`:`Entr\xE9e invalide : attendu ${s}, re\xE7u ${c}`}case"invalid_value":return n.values.length===1?`Entr\xE9e invalide : attendu ${V(n.values[0])}`:`Option invalide : attendu l'une des valeurs suivantes ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"\u2264":"<",a=t(n.origin);return a?`Trop grand : attendu que ${n.origin??"la valeur"} ait ${s}${n.maximum.toString()} ${a.unit}`:`Trop grand : attendu que ${n.origin??"la valeur"} soit ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?"\u2265":">",a=t(n.origin);return a?`Trop petit : attendu que ${n.origin} ait ${s}${n.minimum.toString()} ${a.unit}`:`Trop petit : attendu que ${n.origin} soit ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Cha\xEEne invalide : doit commencer par "${s.prefix}"`:s.format==="ends_with"?`Cha\xEEne invalide : doit se terminer par "${s.suffix}"`:s.format==="includes"?`Cha\xEEne invalide : doit inclure "${s.includes}"`:s.format==="regex"?`Cha\xEEne invalide : doit correspondre au motif ${s.pattern}`:`${r[s.format]??n.format} invalide`}case"not_multiple_of":return`Nombre invalide : doit \xEAtre un multiple de ${n.divisor}`;case"unrecognized_keys":return`Cl\xE9${n.keys.length>1?"s":""} non reconnue${n.keys.length>1?"s":""} : ${k(n.keys,", ")}`;case"invalid_key":return`Cl\xE9 invalide dans ${n.origin}`;case"invalid_union":return"Entr\xE9e invalide";case"invalid_element":return`Valeur invalide dans ${n.origin}`;default:return"Entr\xE9e invalide"}}},"error");function pI(){return{localeError:Fpe()}}i(pI,"default");var Upe=i(()=>{let e={string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA",gender:"f"},number:{label:"\u05DE\u05E1\u05E4\u05E8",gender:"m"},boolean:{label:"\u05E2\u05E8\u05DA \u05D1\u05D5\u05DC\u05D9\u05D0\u05E0\u05D9",gender:"m"},bigint:{label:"BigInt",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA",gender:"m"},array:{label:"\u05DE\u05E2\u05E8\u05DA",gender:"m"},object:{label:"\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8",gender:"m"},null:{label:"\u05E2\u05E8\u05DA \u05E8\u05D9\u05E7 (null)",gender:"m"},undefined:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05DE\u05D5\u05D2\u05D3\u05E8 (undefined)",gender:"m"},symbol:{label:"\u05E1\u05D9\u05DE\u05D1\u05D5\u05DC (Symbol)",gender:"m"},function:{label:"\u05E4\u05D5\u05E0\u05E7\u05E6\u05D9\u05D4",gender:"f"},map:{label:"\u05DE\u05E4\u05D4 (Map)",gender:"f"},set:{label:"\u05E7\u05D1\u05D5\u05E6\u05D4 (Set)",gender:"f"},file:{label:"\u05E7\u05D5\u05D1\u05E5",gender:"m"},promise:{label:"Promise",gender:"m"},NaN:{label:"NaN",gender:"m"},unknown:{label:"\u05E2\u05E8\u05DA \u05DC\u05D0 \u05D9\u05D3\u05D5\u05E2",gender:"m"},value:{label:"\u05E2\u05E8\u05DA",gender:"m"}},t={string:{unit:"\u05EA\u05D5\u05D5\u05D9\u05DD",shortLabel:"\u05E7\u05E6\u05E8",longLabel:"\u05D0\u05E8\u05D5\u05DA"},file:{unit:"\u05D1\u05D9\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},array:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},set:{unit:"\u05E4\u05E8\u05D9\u05D8\u05D9\u05DD",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"},number:{unit:"",shortLabel:"\u05E7\u05D8\u05DF",longLabel:"\u05D2\u05D3\u05D5\u05DC"}},r=i(l=>l?e[l]:void 0,"typeEntry"),o=i(l=>{let p=r(l);return p?p.label:l??e.unknown.label},"typeLabel"),n=i(l=>`\u05D4${o(l)}`,"withDefinite"),s=i(l=>(r(l)?.gender??"m")==="f"?"\u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05D9\u05D5\u05EA":"\u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA","verbFor"),a=i(l=>l?t[l]??null:null,"getSizing"),c={regex:{label:"\u05E7\u05DC\u05D8",gender:"m"},email:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05D0\u05D9\u05DE\u05D9\u05D9\u05DC",gender:"f"},url:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA \u05E8\u05E9\u05EA",gender:"f"},emoji:{label:"\u05D0\u05D9\u05DE\u05D5\u05D2'\u05D9",gender:"m"},uuid:{label:"UUID",gender:"m"},nanoid:{label:"nanoid",gender:"m"},guid:{label:"GUID",gender:"m"},cuid:{label:"cuid",gender:"m"},cuid2:{label:"cuid2",gender:"m"},ulid:{label:"ULID",gender:"m"},xid:{label:"XID",gender:"m"},ksuid:{label:"KSUID",gender:"m"},datetime:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA \u05D5\u05D6\u05DE\u05DF ISO",gender:"m"},date:{label:"\u05EA\u05D0\u05E8\u05D9\u05DA ISO",gender:"m"},time:{label:"\u05D6\u05DE\u05DF ISO",gender:"m"},duration:{label:"\u05DE\u05E9\u05DA \u05D6\u05DE\u05DF ISO",gender:"m"},ipv4:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv4",gender:"f"},ipv6:{label:"\u05DB\u05EA\u05D5\u05D1\u05EA IPv6",gender:"f"},cidrv4:{label:"\u05D8\u05D5\u05D5\u05D7 IPv4",gender:"m"},cidrv6:{label:"\u05D8\u05D5\u05D5\u05D7 IPv6",gender:"m"},base64:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64",gender:"f"},base64url:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D1\u05D1\u05E1\u05D9\u05E1 64 \u05DC\u05DB\u05EA\u05D5\u05D1\u05D5\u05EA \u05E8\u05E9\u05EA",gender:"f"},json_string:{label:"\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA JSON",gender:"f"},e164:{label:"\u05DE\u05E1\u05E4\u05E8 E.164",gender:"m"},jwt:{label:"JWT",gender:"m"},ends_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},includes:{label:"\u05E7\u05DC\u05D8",gender:"m"},lowercase:{label:"\u05E7\u05DC\u05D8",gender:"m"},starts_with:{label:"\u05E7\u05DC\u05D8",gender:"m"},uppercase:{label:"\u05E7\u05DC\u05D8",gender:"m"}},u={nan:"NaN"};return l=>{switch(l.code){case"invalid_type":{let p=l.expected,f=u[p??""]??o(p),y=G(l.input),m=u[y]??e[y]?.label??y;return/^[A-Z]/.test(l.expected)?`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA instanceof ${l.expected}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`:`\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${f}, \u05D4\u05EA\u05E7\u05D1\u05DC ${m}`}case"invalid_value":{if(l.values.length===1)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05E2\u05E8\u05DA \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA ${V(l.values[0])}`;let p=l.values.map(m=>V(m));if(l.values.length===2)return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p[0]} \u05D0\u05D5 ${p[1]}`;let f=p[p.length-1];return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D4\u05D0\u05E4\u05E9\u05E8\u05D5\u05D9\u05D5\u05EA \u05D4\u05DE\u05EA\u05D0\u05D9\u05DE\u05D5\u05EA \u05D4\u05DF ${p.slice(0,-1).join(", ")} \u05D0\u05D5 ${f}`}case"too_big":{let p=a(l.origin),f=n(l.origin??"value");if(l.origin==="string")return`${p?.longLabel??"\u05D0\u05E8\u05D5\u05DA"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.maximum.toString()} ${p?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA":"\u05DC\u05DB\u05DC \u05D4\u05D9\u05D5\u05EA\u05E8"}`.trim();if(l.origin==="number"){let _=l.inclusive?`\u05E7\u05D8\u05DF \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.maximum}`:`\u05E7\u05D8\u05DF \u05DE-${l.maximum}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(l.origin==="array"||l.origin==="set"){let _=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA",b=l.inclusive?`${l.maximum} ${p?.unit??""} \u05D0\u05D5 \u05E4\u05D7\u05D5\u05EA`:`\u05E4\u05D7\u05D5\u05EA \u05DE-${l.maximum} ${p?.unit??""}`;return`\u05D2\u05D3\u05D5\u05DC \u05DE\u05D3\u05D9: ${f} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let y=l.inclusive?"<=":"<",m=s(l.origin??"value");return p?.unit?`${p.longLabel} \u05DE\u05D3\u05D9: ${f} ${m} ${y}${l.maximum.toString()} ${p.unit}`:`${p?.longLabel??"\u05D2\u05D3\u05D5\u05DC"} \u05DE\u05D3\u05D9: ${f} ${m} ${y}${l.maximum.toString()}`}case"too_small":{let p=a(l.origin),f=n(l.origin??"value");if(l.origin==="string")return`${p?.shortLabel??"\u05E7\u05E6\u05E8"} \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DB\u05D4 \u05DC\u05D4\u05DB\u05D9\u05DC ${l.minimum.toString()} ${p?.unit??""} ${l.inclusive?"\u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8":"\u05DC\u05E4\u05D7\u05D5\u05EA"}`.trim();if(l.origin==="number"){let _=l.inclusive?`\u05D2\u05D3\u05D5\u05DC \u05D0\u05D5 \u05E9\u05D5\u05D5\u05D4 \u05DC-${l.minimum}`:`\u05D2\u05D3\u05D5\u05DC \u05DE-${l.minimum}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} \u05E6\u05E8\u05D9\u05DA \u05DC\u05D4\u05D9\u05D5\u05EA ${_}`}if(l.origin==="array"||l.origin==="set"){let _=l.origin==="set"?"\u05E6\u05E8\u05D9\u05DB\u05D4":"\u05E6\u05E8\u05D9\u05DA";if(l.minimum===1&&l.inclusive){let A=(l.origin==="set","\u05DC\u05E4\u05D7\u05D5\u05EA \u05E4\u05E8\u05D9\u05D8 \u05D0\u05D7\u05D3");return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${A}`}let b=l.inclusive?`${l.minimum} ${p?.unit??""} \u05D0\u05D5 \u05D9\u05D5\u05EA\u05E8`:`\u05D9\u05D5\u05EA\u05E8 \u05DE-${l.minimum} ${p?.unit??""}`;return`\u05E7\u05D8\u05DF \u05DE\u05D3\u05D9: ${f} ${_} \u05DC\u05D4\u05DB\u05D9\u05DC ${b}`.trim()}let y=l.inclusive?">=":">",m=s(l.origin??"value");return p?.unit?`${p.shortLabel} \u05DE\u05D3\u05D9: ${f} ${m} ${y}${l.minimum.toString()} ${p.unit}`:`${p?.shortLabel??"\u05E7\u05D8\u05DF"} \u05DE\u05D3\u05D9: ${f} ${m} ${y}${l.minimum.toString()}`}case"invalid_format":{let p=l;if(p.format==="starts_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D7\u05D9\u05DC \u05D1 "${p.prefix}"`;if(p.format==="ends_with")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05E1\u05EA\u05D9\u05D9\u05DD \u05D1 "${p.suffix}"`;if(p.format==="includes")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05DB\u05DC\u05D5\u05DC "${p.includes}"`;if(p.format==="regex")return`\u05D4\u05DE\u05D7\u05E8\u05D5\u05D6\u05EA \u05D7\u05D9\u05D9\u05D1\u05EA \u05DC\u05D4\u05EA\u05D0\u05D9\u05DD \u05DC\u05EA\u05D1\u05E0\u05D9\u05EA ${p.pattern}`;let f=c[p.format],y=f?.label??p.format,_=(f?.gender??"m")==="f"?"\u05EA\u05E7\u05D9\u05E0\u05D4":"\u05EA\u05E7\u05D9\u05DF";return`${y} \u05DC\u05D0 ${_}`}case"not_multiple_of":return`\u05DE\u05E1\u05E4\u05E8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF: \u05D7\u05D9\u05D9\u05D1 \u05DC\u05D4\u05D9\u05D5\u05EA \u05DE\u05DB\u05E4\u05DC\u05D4 \u05E9\u05DC ${l.divisor}`;case"unrecognized_keys":return`\u05DE\u05E4\u05EA\u05D7${l.keys.length>1?"\u05D5\u05EA":""} \u05DC\u05D0 \u05DE\u05D6\u05D5\u05D4${l.keys.length>1?"\u05D9\u05DD":"\u05D4"}: ${k(l.keys,", ")}`;case"invalid_key":return"\u05E9\u05D3\u05D4 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1\u05D0\u05D5\u05D1\u05D9\u05D9\u05E7\u05D8";case"invalid_union":return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF";case"invalid_element":return`\u05E2\u05E8\u05DA \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF \u05D1${n(l.origin??"array")}`;default:return"\u05E7\u05DC\u05D8 \u05DC\u05D0 \u05EA\u05E7\u05D9\u05DF"}}},"error");function fI(){return{localeError:Upe()}}i(fI,"default");var jpe=i(()=>{let e={string:{unit:"karakter",verb:"legyen"},file:{unit:"byte",verb:"legyen"},array:{unit:"elem",verb:"legyen"},set:{unit:"elem",verb:"legyen"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"bemenet",email:"email c\xEDm",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO id\u0151b\xE9lyeg",date:"ISO d\xE1tum",time:"ISO id\u0151",duration:"ISO id\u0151intervallum",ipv4:"IPv4 c\xEDm",ipv6:"IPv6 c\xEDm",cidrv4:"IPv4 tartom\xE1ny",cidrv6:"IPv6 tartom\xE1ny",base64:"base64-k\xF3dolt string",base64url:"base64url-k\xF3dolt string",json_string:"JSON string",e164:"E.164 sz\xE1m",jwt:"JWT",template_literal:"bemenet"},o={nan:"NaN",number:"sz\xE1m",array:"t\xF6mb"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k instanceof ${n.expected}, a kapott \xE9rt\xE9k ${c}`:`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${s}, a kapott \xE9rt\xE9k ${c}`}case"invalid_value":return n.values.length===1?`\xC9rv\xE9nytelen bemenet: a v\xE1rt \xE9rt\xE9k ${V(n.values[0])}`:`\xC9rv\xE9nytelen opci\xF3: valamelyik \xE9rt\xE9k v\xE1rt ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xFAl nagy: ${n.origin??"\xE9rt\xE9k"} m\xE9rete t\xFAl nagy ${s}${n.maximum.toString()} ${a.unit??"elem"}`:`T\xFAl nagy: a bemeneti \xE9rt\xE9k ${n.origin??"\xE9rt\xE9k"} t\xFAl nagy: ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} m\xE9rete t\xFAl kicsi ${s}${n.minimum.toString()} ${a.unit}`:`T\xFAl kicsi: a bemeneti \xE9rt\xE9k ${n.origin} t\xFAl kicsi ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\xC9rv\xE9nytelen string: "${s.prefix}" \xE9rt\xE9kkel kell kezd\u0151dnie`:s.format==="ends_with"?`\xC9rv\xE9nytelen string: "${s.suffix}" \xE9rt\xE9kkel kell v\xE9gz\u0151dnie`:s.format==="includes"?`\xC9rv\xE9nytelen string: "${s.includes}" \xE9rt\xE9ket kell tartalmaznia`:s.format==="regex"?`\xC9rv\xE9nytelen string: ${s.pattern} mint\xE1nak kell megfelelnie`:`\xC9rv\xE9nytelen ${r[s.format]??n.format}`}case"not_multiple_of":return`\xC9rv\xE9nytelen sz\xE1m: ${n.divisor} t\xF6bbsz\xF6r\xF6s\xE9nek kell lennie`;case"unrecognized_keys":return`Ismeretlen kulcs${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\xC9rv\xE9nytelen kulcs ${n.origin}`;case"invalid_union":return"\xC9rv\xE9nytelen bemenet";case"invalid_element":return`\xC9rv\xE9nytelen \xE9rt\xE9k: ${n.origin}`;default:return"\xC9rv\xE9nytelen bemenet"}}},"error");function mI(){return{localeError:jpe()}}i(mI,"default");function vF(e,t,r){return Math.abs(e)===1?t:r}i(vF,"getArmenianPlural");function Oc(e){if(!e)return"";let t=["\u0561","\u0565","\u0568","\u056B","\u0578","\u0578\u0582","\u0585"],r=e[e.length-1];return e+(t.includes(r)?"\u0576":"\u0568")}i(Oc,"withDefiniteArticle");var Bpe=i(()=>{let e={string:{unit:{one:"\u0576\u0577\u0561\u0576",many:"\u0576\u0577\u0561\u0576\u0576\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},file:{unit:{one:"\u0562\u0561\u0575\u0569",many:"\u0562\u0561\u0575\u0569\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},array:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"},set:{unit:{one:"\u057F\u0561\u0580\u0580",many:"\u057F\u0561\u0580\u0580\u0565\u0580"},verb:"\u0578\u0582\u0576\u0565\u0576\u0561\u056C"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0574\u0578\u0582\u057F\u0584",email:"\u0567\u056C. \u0570\u0561\u057D\u0581\u0565",url:"URL",emoji:"\u0567\u0574\u0578\u057B\u056B",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E \u0587 \u056A\u0561\u0574",date:"ISO \u0561\u0574\u057D\u0561\u0569\u056B\u057E",time:"ISO \u056A\u0561\u0574",duration:"ISO \u057F\u0587\u0578\u0572\u0578\u0582\u0569\u0575\u0578\u0582\u0576",ipv4:"IPv4 \u0570\u0561\u057D\u0581\u0565",ipv6:"IPv6 \u0570\u0561\u057D\u0581\u0565",cidrv4:"IPv4 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",cidrv6:"IPv6 \u0574\u056B\u057B\u0561\u056F\u0561\u0575\u0584",base64:"base64 \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",base64url:"base64url \u0571\u0587\u0561\u0579\u0561\u0583\u0578\u057E \u057F\u0578\u0572",json_string:"JSON \u057F\u0578\u0572",e164:"E.164 \u0570\u0561\u0574\u0561\u0580",jwt:"JWT",template_literal:"\u0574\u0578\u0582\u057F\u0584"},o={nan:"NaN",number:"\u0569\u056B\u057E",array:"\u0566\u0561\u0576\u0563\u057E\u0561\u056E"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 instanceof ${n.expected}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`:`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${s}, \u057D\u057F\u0561\u0581\u057E\u0565\u056C \u0567 ${c}`}case"invalid_value":return n.values.length===1?`\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 ${V(n.values[1])}`:`\u054D\u056D\u0561\u056C \u057F\u0561\u0580\u0562\u0565\u0580\u0561\u056F\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567\u0580 \u0570\u0565\u057F\u0587\u0575\u0561\u056C\u0576\u0565\u0580\u056B\u0581 \u0574\u0565\u056F\u0568\u055D ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);if(a){let c=Number(n.maximum),u=vF(c,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Oc(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${s}${n.maximum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0574\u0565\u056E \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Oc(n.origin??"\u0561\u0580\u056A\u0565\u0584")} \u056C\u056B\u0576\u056B ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);if(a){let c=Number(n.minimum),u=vF(c,a.unit.one,a.unit.many);return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Oc(n.origin)} \u056F\u0578\u0582\u0576\u0565\u0576\u0561 ${s}${n.minimum.toString()} ${u}`}return`\u0549\u0561\u0583\u0561\u0566\u0561\u0576\u0581 \u0583\u0578\u0584\u0580 \u0561\u0580\u056A\u0565\u0584\u2024 \u057D\u057A\u0561\u057D\u057E\u0578\u0582\u0574 \u0567, \u0578\u0580 ${Oc(n.origin)} \u056C\u056B\u0576\u056B ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057D\u056F\u057D\u057E\u056B "${s.prefix}"-\u0578\u057E`:s.format==="ends_with"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0561\u057E\u0561\u0580\u057F\u057E\u056B "${s.suffix}"-\u0578\u057E`:s.format==="includes"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u057A\u0561\u0580\u0578\u0582\u0576\u0561\u056F\u056B "${s.includes}"`:s.format==="regex"?`\u054D\u056D\u0561\u056C \u057F\u0578\u0572\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0570\u0561\u0574\u0561\u057A\u0561\u057F\u0561\u057D\u056D\u0561\u0576\u056B ${s.pattern} \u0571\u0587\u0561\u0579\u0561\u0583\u056B\u0576`:`\u054D\u056D\u0561\u056C ${r[s.format]??n.format}`}case"not_multiple_of":return`\u054D\u056D\u0561\u056C \u0569\u056B\u057E\u2024 \u057A\u0565\u057F\u0584 \u0567 \u0562\u0561\u0566\u0574\u0561\u057A\u0561\u057F\u056B\u056F \u056C\u056B\u0576\u056B ${n.divisor}-\u056B`;case"unrecognized_keys":return`\u0549\u0573\u0561\u0576\u0561\u0579\u057E\u0561\u056E \u0562\u0561\u0576\u0561\u056C\u056B${n.keys.length>1?"\u0576\u0565\u0580":""}. ${k(n.keys,", ")}`;case"invalid_key":return`\u054D\u056D\u0561\u056C \u0562\u0561\u0576\u0561\u056C\u056B ${Oc(n.origin)}-\u0578\u0582\u0574`;case"invalid_union":return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574";case"invalid_element":return`\u054D\u056D\u0561\u056C \u0561\u0580\u056A\u0565\u0584 ${Oc(n.origin)}-\u0578\u0582\u0574`;default:return"\u054D\u056D\u0561\u056C \u0574\u0578\u0582\u057F\u0584\u0561\u0563\u0580\u0578\u0582\u0574"}}},"error");function gI(){return{localeError:Bpe()}}i(gI,"default");var Vpe=i(()=>{let e={string:{unit:"karakter",verb:"memiliki"},file:{unit:"byte",verb:"memiliki"},array:{unit:"item",verb:"memiliki"},set:{unit:"item",verb:"memiliki"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"input",email:"alamat email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tanggal dan waktu format ISO",date:"tanggal format ISO",time:"jam format ISO",duration:"durasi format ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"rentang alamat IPv4",cidrv6:"rentang alamat IPv6",base64:"string dengan enkode base64",base64url:"string dengan enkode base64url",json_string:"string JSON",e164:"angka E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak valid: diharapkan instanceof ${n.expected}, diterima ${c}`:`Input tidak valid: diharapkan ${s}, diterima ${c}`}case"invalid_value":return n.values.length===1?`Input tidak valid: diharapkan ${V(n.values[0])}`:`Pilihan tidak valid: diharapkan salah satu dari ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: diharapkan ${n.origin??"value"} memiliki ${s}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: diharapkan ${n.origin??"value"} menjadi ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: diharapkan ${n.origin} memiliki ${s}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: diharapkan ${n.origin} menjadi ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`String tidak valid: harus dimulai dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak valid: harus berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak valid: harus menyertakan "${s.includes}"`:s.format==="regex"?`String tidak valid: harus sesuai pola ${s.pattern}`:`${r[s.format]??n.format} tidak valid`}case"not_multiple_of":return`Angka tidak valid: harus kelipatan dari ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak valid di ${n.origin}`;case"invalid_union":return"Input tidak valid";case"invalid_element":return`Nilai tidak valid di ${n.origin}`;default:return"Input tidak valid"}}},"error");function hI(){return{localeError:Vpe()}}i(hI,"default");var Hpe=i(()=>{let e={string:{unit:"stafi",verb:"a\xF0 hafa"},file:{unit:"b\xE6ti",verb:"a\xF0 hafa"},array:{unit:"hluti",verb:"a\xF0 hafa"},set:{unit:"hluti",verb:"a\xF0 hafa"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"gildi",email:"netfang",url:"vefsl\xF3\xF0",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dagsetning og t\xEDmi",date:"ISO dagsetning",time:"ISO t\xEDmi",duration:"ISO t\xEDmalengd",ipv4:"IPv4 address",ipv6:"IPv6 address",cidrv4:"IPv4 range",cidrv6:"IPv6 range",base64:"base64-encoded strengur",base64url:"base64url-encoded strengur",json_string:"JSON strengur",e164:"E.164 t\xF6lugildi",jwt:"JWT",template_literal:"gildi"},o={nan:"NaN",number:"n\xFAmer",array:"fylki"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera instanceof ${n.expected}`:`Rangt gildi: \xDE\xFA sl\xF3st inn ${c} \xFEar sem \xE1 a\xF0 vera ${s}`}case"invalid_value":return n.values.length===1?`Rangt gildi: gert r\xE1\xF0 fyrir ${V(n.values[0])}`:`\xD3gilt val: m\xE1 vera eitt af eftirfarandi ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} hafi ${s}${n.maximum.toString()} ${a.unit??"hluti"}`:`Of st\xF3rt: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin??"gildi"} s\xE9 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} hafi ${s}${n.minimum.toString()} ${a.unit}`:`Of l\xEDti\xF0: gert er r\xE1\xF0 fyrir a\xF0 ${n.origin} s\xE9 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 byrja \xE1 "${s.prefix}"`:s.format==="ends_with"?`\xD3gildur strengur: ver\xF0ur a\xF0 enda \xE1 "${s.suffix}"`:s.format==="includes"?`\xD3gildur strengur: ver\xF0ur a\xF0 innihalda "${s.includes}"`:s.format==="regex"?`\xD3gildur strengur: ver\xF0ur a\xF0 fylgja mynstri ${s.pattern}`:`Rangt ${r[s.format]??n.format}`}case"not_multiple_of":return`R\xF6ng tala: ver\xF0ur a\xF0 vera margfeldi af ${n.divisor}`;case"unrecognized_keys":return`\xD3\xFEekkt ${n.keys.length>1?"ir lyklar":"ur lykill"}: ${k(n.keys,", ")}`;case"invalid_key":return`Rangur lykill \xED ${n.origin}`;case"invalid_union":return"Rangt gildi";case"invalid_element":return`Rangt gildi \xED ${n.origin}`;default:return"Rangt gildi"}}},"error");function yI(){return{localeError:Hpe()}}i(yI,"default");var Gpe=i(()=>{let e={string:{unit:"caratteri",verb:"avere"},file:{unit:"byte",verb:"avere"},array:{unit:"elementi",verb:"avere"},set:{unit:"elementi",verb:"avere"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"input",email:"indirizzo email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e ora ISO",date:"data ISO",time:"ora ISO",duration:"durata ISO",ipv4:"indirizzo IPv4",ipv6:"indirizzo IPv6",cidrv4:"intervallo IPv4",cidrv6:"intervallo IPv6",base64:"stringa codificata in base64",base64url:"URL codificata in base64",json_string:"stringa JSON",e164:"numero E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"numero",array:"vettore"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input non valido: atteso instanceof ${n.expected}, ricevuto ${c}`:`Input non valido: atteso ${s}, ricevuto ${c}`}case"invalid_value":return n.values.length===1?`Input non valido: atteso ${V(n.values[0])}`:`Opzione non valida: atteso uno tra ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Troppo grande: ${n.origin??"valore"} deve avere ${s}${n.maximum.toString()} ${a.unit??"elementi"}`:`Troppo grande: ${n.origin??"valore"} deve essere ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Troppo piccolo: ${n.origin} deve avere ${s}${n.minimum.toString()} ${a.unit}`:`Troppo piccolo: ${n.origin} deve essere ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Stringa non valida: deve iniziare con "${s.prefix}"`:s.format==="ends_with"?`Stringa non valida: deve terminare con "${s.suffix}"`:s.format==="includes"?`Stringa non valida: deve includere "${s.includes}"`:s.format==="regex"?`Stringa non valida: deve corrispondere al pattern ${s.pattern}`:`Invalid ${r[s.format]??n.format}`}case"not_multiple_of":return`Numero non valido: deve essere un multiplo di ${n.divisor}`;case"unrecognized_keys":return`Chiav${n.keys.length>1?"i":"e"} non riconosciut${n.keys.length>1?"e":"a"}: ${k(n.keys,", ")}`;case"invalid_key":return`Chiave non valida in ${n.origin}`;case"invalid_union":return"Input non valido";case"invalid_element":return`Valore non valido in ${n.origin}`;default:return"Input non valido"}}},"error");function EI(){return{localeError:Gpe()}}i(EI,"default");var qpe=i(()=>{let e={string:{unit:"\u6587\u5B57",verb:"\u3067\u3042\u308B"},file:{unit:"\u30D0\u30A4\u30C8",verb:"\u3067\u3042\u308B"},array:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"},set:{unit:"\u8981\u7D20",verb:"\u3067\u3042\u308B"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u5165\u529B\u5024",email:"\u30E1\u30FC\u30EB\u30A2\u30C9\u30EC\u30B9",url:"URL",emoji:"\u7D75\u6587\u5B57",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u6642",date:"ISO\u65E5\u4ED8",time:"ISO\u6642\u523B",duration:"ISO\u671F\u9593",ipv4:"IPv4\u30A2\u30C9\u30EC\u30B9",ipv6:"IPv6\u30A2\u30C9\u30EC\u30B9",cidrv4:"IPv4\u7BC4\u56F2",cidrv6:"IPv6\u7BC4\u56F2",base64:"base64\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",base64url:"base64url\u30A8\u30F3\u30B3\u30FC\u30C9\u6587\u5B57\u5217",json_string:"JSON\u6587\u5B57\u5217",e164:"E.164\u756A\u53F7",jwt:"JWT",template_literal:"\u5165\u529B\u5024"},o={nan:"NaN",number:"\u6570\u5024",array:"\u914D\u5217"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u52B9\u306A\u5165\u529B: instanceof ${n.expected}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u5165\u529B: ${s}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F\u304C\u3001${c}\u304C\u5165\u529B\u3055\u308C\u307E\u3057\u305F`}case"invalid_value":return n.values.length===1?`\u7121\u52B9\u306A\u5165\u529B: ${V(n.values[0])}\u304C\u671F\u5F85\u3055\u308C\u307E\u3057\u305F`:`\u7121\u52B9\u306A\u9078\u629E: ${k(n.values,"\u3001")}\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"too_big":{let s=n.inclusive?"\u4EE5\u4E0B\u3067\u3042\u308B":"\u3088\u308A\u5C0F\u3055\u3044",a=t(n.origin);return a?`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${a.unit??"\u8981\u7D20"}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5927\u304D\u3059\u304E\u308B\u5024: ${n.origin??"\u5024"}\u306F${n.maximum.toString()}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"too_small":{let s=n.inclusive?"\u4EE5\u4E0A\u3067\u3042\u308B":"\u3088\u308A\u5927\u304D\u3044",a=t(n.origin);return a?`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${a.unit}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u5C0F\u3055\u3059\u304E\u308B\u5024: ${n.origin}\u306F${n.minimum.toString()}${s}\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.prefix}"\u3067\u59CB\u307E\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="ends_with"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.suffix}"\u3067\u7D42\u308F\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="includes"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: "${s.includes}"\u3092\u542B\u3080\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:s.format==="regex"?`\u7121\u52B9\u306A\u6587\u5B57\u5217: \u30D1\u30BF\u30FC\u30F3${s.pattern}\u306B\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`:`\u7121\u52B9\u306A${r[s.format]??n.format}`}case"not_multiple_of":return`\u7121\u52B9\u306A\u6570\u5024: ${n.divisor}\u306E\u500D\u6570\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059`;case"unrecognized_keys":return`\u8A8D\u8B58\u3055\u308C\u3066\u3044\u306A\u3044\u30AD\u30FC${n.keys.length>1?"\u7FA4":""}: ${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u30AD\u30FC`;case"invalid_union":return"\u7121\u52B9\u306A\u5165\u529B";case"invalid_element":return`${n.origin}\u5185\u306E\u7121\u52B9\u306A\u5024`;default:return"\u7121\u52B9\u306A\u5165\u529B"}}},"error");function SI(){return{localeError:qpe()}}i(SI,"default");var Wpe=i(()=>{let e={string:{unit:"\u10E1\u10D8\u10DB\u10D1\u10DD\u10DA\u10DD",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},file:{unit:"\u10D1\u10D0\u10D8\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},array:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"},set:{unit:"\u10D4\u10DA\u10D4\u10DB\u10D4\u10DC\u10E2\u10D8",verb:"\u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0",email:"\u10D4\u10DA-\u10E4\u10DD\u10E1\u10E2\u10D8\u10E1 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",url:"URL",emoji:"\u10D4\u10DB\u10DD\u10EF\u10D8",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8-\u10D3\u10E0\u10DD",date:"\u10D7\u10D0\u10E0\u10D8\u10E6\u10D8",time:"\u10D3\u10E0\u10DD",duration:"\u10EE\u10D0\u10DC\u10D2\u10E0\u10EB\u10DA\u10D8\u10D5\u10DD\u10D1\u10D0",ipv4:"IPv4 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",ipv6:"IPv6 \u10DB\u10D8\u10E1\u10D0\u10DB\u10D0\u10E0\u10D7\u10D8",cidrv4:"IPv4 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",cidrv6:"IPv6 \u10D3\u10D8\u10D0\u10DE\u10D0\u10D6\u10DD\u10DC\u10D8",base64:"base64-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",base64url:"base64url-\u10D9\u10DD\u10D3\u10D8\u10E0\u10D4\u10D1\u10E3\u10DA\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",json_string:"JSON \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",e164:"E.164 \u10DC\u10DD\u10DB\u10D4\u10E0\u10D8",jwt:"JWT",template_literal:"\u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"},o={nan:"NaN",number:"\u10E0\u10D8\u10EA\u10EE\u10D5\u10D8",string:"\u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8",boolean:"\u10D1\u10E3\u10DA\u10D4\u10D0\u10DC\u10D8",function:"\u10E4\u10E3\u10DC\u10E5\u10EA\u10D8\u10D0",array:"\u10DB\u10D0\u10E1\u10D8\u10D5\u10D8"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 instanceof ${n.expected}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${s}, \u10DB\u10D8\u10E6\u10D4\u10D1\u10E3\u10DA\u10D8 ${c}`}case"invalid_value":return n.values.length===1?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${V(n.values[0])}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D5\u10D0\u10E0\u10D8\u10D0\u10DC\u10E2\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8\u10D0 \u10D4\u10E0\u10D7-\u10D4\u10E0\u10D7\u10D8 ${k(n.values,"|")}-\u10D3\u10D0\u10DC`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10D3\u10D8\u10D3\u10D8: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin??"\u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0"} \u10D8\u10E7\u10DD\u10E1 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`\u10D6\u10D4\u10D3\u10DB\u10D4\u10E2\u10D0\u10D3 \u10DE\u10D0\u10E2\u10D0\u10E0\u10D0: \u10DB\u10DD\u10E1\u10D0\u10DA\u10DD\u10D3\u10DC\u10D4\u10DA\u10D8 ${n.origin} \u10D8\u10E7\u10DD\u10E1 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10EC\u10E7\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${s.prefix}"-\u10D8\u10D7`:s.format==="ends_with"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10DB\u10D7\u10D0\u10D5\u10E0\u10D3\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 "${s.suffix}"-\u10D8\u10D7`:s.format==="includes"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D8\u10EA\u10D0\u10D5\u10D3\u10D4\u10E1 "${s.includes}"-\u10E1`:s.format==="regex"?`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E1\u10E2\u10E0\u10D8\u10DC\u10D2\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10E8\u10D4\u10D4\u10E1\u10D0\u10D1\u10D0\u10DB\u10D4\u10D1\u10DD\u10D3\u10D4\u10E1 \u10E8\u10D0\u10D1\u10DA\u10DD\u10DC\u10E1 ${s.pattern}`:`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E0\u10D8\u10EA\u10EE\u10D5\u10D8: \u10E3\u10DC\u10D3\u10D0 \u10D8\u10E7\u10DD\u10E1 ${n.divisor}-\u10D8\u10E1 \u10EF\u10D4\u10E0\u10D0\u10D3\u10D8`;case"unrecognized_keys":return`\u10E3\u10EA\u10DC\u10DD\u10D1\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1${n.keys.length>1?"\u10D4\u10D1\u10D8":"\u10D8"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10D2\u10D0\u10E1\u10D0\u10E6\u10D4\u10D1\u10D8 ${n.origin}-\u10E8\u10D8`;case"invalid_union":return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0";case"invalid_element":return`\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10DB\u10DC\u10D8\u10E8\u10D5\u10DC\u10D4\u10DA\u10DD\u10D1\u10D0 ${n.origin}-\u10E8\u10D8`;default:return"\u10D0\u10E0\u10D0\u10E1\u10EC\u10DD\u10E0\u10D8 \u10E8\u10D4\u10E7\u10D5\u10D0\u10DC\u10D0"}}},"error");function _I(){return{localeError:Wpe()}}i(_I,"default");var Zpe=i(()=>{let e={string:{unit:"\u178F\u17BD\u17A2\u1780\u17D2\u179F\u179A",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},file:{unit:"\u1794\u17C3",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},array:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"},set:{unit:"\u1792\u17B6\u178F\u17BB",verb:"\u1782\u17BD\u179A\u1798\u17B6\u1793"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B",email:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793\u17A2\u17CA\u17B8\u1798\u17C2\u179B",url:"URL",emoji:"\u179F\u1789\u17D2\u1789\u17B6\u17A2\u17B6\u179A\u1798\u17D2\u1798\u178E\u17CD",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 \u1793\u17B7\u1784\u1798\u17C9\u17C4\u1784 ISO",date:"\u1780\u17B6\u179B\u1794\u179A\u17B7\u1785\u17D2\u1786\u17C1\u1791 ISO",time:"\u1798\u17C9\u17C4\u1784 ISO",duration:"\u179A\u1799\u17C8\u1796\u17C1\u179B ISO",ipv4:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",ipv6:"\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",cidrv4:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv4",cidrv6:"\u178A\u17C2\u1793\u17A2\u17B6\u179F\u1799\u178A\u17D2\u178B\u17B6\u1793 IPv6",base64:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64",base64url:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u17A2\u17CA\u17B7\u1780\u17BC\u178A base64url",json_string:"\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A JSON",e164:"\u179B\u17C1\u1781 E.164",jwt:"JWT",template_literal:"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B"},o={nan:"NaN",number:"\u179B\u17C1\u1781",array:"\u17A2\u17B6\u179A\u17C1 (Array)",null:"\u1782\u17D2\u1798\u17B6\u1793\u178F\u1798\u17D2\u179B\u17C3 (null)"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A instanceof ${n.expected} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`:`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${s} \u1794\u17C9\u17BB\u1793\u17D2\u178F\u17C2\u1791\u1791\u17BD\u179B\u1794\u17B6\u1793 ${c}`}case"invalid_value":return n.values.length===1?`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1794\u1789\u17D2\u1785\u17BC\u179B\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${V(n.values[0])}`:`\u1787\u1798\u17D2\u179A\u17BE\u179F\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1787\u17B6\u1798\u17BD\u1799\u1780\u17D2\u1793\u17BB\u1784\u1785\u17C6\u178E\u17C4\u1798 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${s} ${n.maximum.toString()} ${a.unit??"\u1792\u17B6\u178F\u17BB"}`:`\u1792\u17C6\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin??"\u178F\u1798\u17D2\u179B\u17C3"} ${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${s} ${n.minimum.toString()} ${a.unit}`:`\u178F\u17BC\u1785\u1796\u17C1\u1780\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1780\u17B6\u179A ${n.origin} ${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1785\u17B6\u1794\u17CB\u1795\u17D2\u178F\u17BE\u1798\u178A\u17C4\u1799 "${s.prefix}"`:s.format==="ends_with"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1794\u1789\u17D2\u1785\u1794\u17CB\u178A\u17C4\u1799 "${s.suffix}"`:s.format==="includes"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u1798\u17B6\u1793 "${s.includes}"`:s.format==="regex"?`\u1781\u17D2\u179F\u17C2\u17A2\u1780\u17D2\u179F\u179A\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1795\u17D2\u1782\u17BC\u1795\u17D2\u1782\u1784\u1793\u17B9\u1784\u1791\u1798\u17D2\u179A\u1784\u17CB\u178A\u17C2\u179B\u1794\u17B6\u1793\u1780\u17C6\u178E\u178F\u17CB ${s.pattern}`:`\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u179B\u17C1\u1781\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u17D6 \u178F\u17D2\u179A\u17BC\u179C\u178F\u17C2\u1787\u17B6\u1796\u17A0\u17BB\u1782\u17BB\u178E\u1793\u17C3 ${n.divisor}`;case"unrecognized_keys":return`\u179A\u1780\u1783\u17BE\u1789\u179F\u17C4\u1798\u17B7\u1793\u179F\u17D2\u1782\u17B6\u179B\u17CB\u17D6 ${k(n.keys,", ")}`;case"invalid_key":return`\u179F\u17C4\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;case"invalid_union":return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C";case"invalid_element":return`\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C\u1793\u17C5\u1780\u17D2\u1793\u17BB\u1784 ${n.origin}`;default:return"\u1791\u17B7\u1793\u17D2\u1793\u1793\u17D0\u1799\u1798\u17B7\u1793\u178F\u17D2\u179A\u17B9\u1798\u178F\u17D2\u179A\u17BC\u179C"}}},"error");function ad(){return{localeError:Zpe()}}i(ad,"default");function vI(){return ad()}i(vI,"default");var Kpe=i(()=>{let e={string:{unit:"\uBB38\uC790",verb:"to have"},file:{unit:"\uBC14\uC774\uD2B8",verb:"to have"},array:{unit:"\uAC1C",verb:"to have"},set:{unit:"\uAC1C",verb:"to have"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\uC785\uB825",email:"\uC774\uBA54\uC77C \uC8FC\uC18C",url:"URL",emoji:"\uC774\uBAA8\uC9C0",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \uB0A0\uC9DC\uC2DC\uAC04",date:"ISO \uB0A0\uC9DC",time:"ISO \uC2DC\uAC04",duration:"ISO \uAE30\uAC04",ipv4:"IPv4 \uC8FC\uC18C",ipv6:"IPv6 \uC8FC\uC18C",cidrv4:"IPv4 \uBC94\uC704",cidrv6:"IPv6 \uBC94\uC704",base64:"base64 \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",base64url:"base64url \uC778\uCF54\uB529 \uBB38\uC790\uC5F4",json_string:"JSON \uBB38\uC790\uC5F4",e164:"E.164 \uBC88\uD638",jwt:"JWT",template_literal:"\uC785\uB825"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 instanceof ${n.expected}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC785\uB825: \uC608\uC0C1 \uD0C0\uC785\uC740 ${s}, \uBC1B\uC740 \uD0C0\uC785\uC740 ${c}\uC785\uB2C8\uB2E4`}case"invalid_value":return n.values.length===1?`\uC798\uBABB\uB41C \uC785\uB825: \uAC12\uC740 ${V(n.values[0])} \uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C \uC635\uC158: ${k(n.values,"\uB610\uB294 ")} \uC911 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"too_big":{let s=n.inclusive?"\uC774\uD558":"\uBBF8\uB9CC",a=s==="\uBBF8\uB9CC"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(n.origin),u=c?.unit??"\uC694\uC18C";return c?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()}${u} ${s}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uD07D\uB2C8\uB2E4: ${n.maximum.toString()} ${s}${a}`}case"too_small":{let s=n.inclusive?"\uC774\uC0C1":"\uCD08\uACFC",a=s==="\uC774\uC0C1"?"\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4":"\uC5EC\uC57C \uD569\uB2C8\uB2E4",c=t(n.origin),u=c?.unit??"\uC694\uC18C";return c?`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()}${u} ${s}${a}`:`${n.origin??"\uAC12"}\uC774 \uB108\uBB34 \uC791\uC2B5\uB2C8\uB2E4: ${n.minimum.toString()} ${s}${a}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${s.prefix}"(\uC73C)\uB85C \uC2DC\uC791\uD574\uC57C \uD569\uB2C8\uB2E4`:s.format==="ends_with"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${s.suffix}"(\uC73C)\uB85C \uB05D\uB098\uC57C \uD569\uB2C8\uB2E4`:s.format==="includes"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: "${s.includes}"\uC744(\uB97C) \uD3EC\uD568\uD574\uC57C \uD569\uB2C8\uB2E4`:s.format==="regex"?`\uC798\uBABB\uB41C \uBB38\uC790\uC5F4: \uC815\uADDC\uC2DD ${s.pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD574\uC57C \uD569\uB2C8\uB2E4`:`\uC798\uBABB\uB41C ${r[s.format]??n.format}`}case"not_multiple_of":return`\uC798\uBABB\uB41C \uC22B\uC790: ${n.divisor}\uC758 \uBC30\uC218\uC5EC\uC57C \uD569\uB2C8\uB2E4`;case"unrecognized_keys":return`\uC778\uC2DD\uD560 \uC218 \uC5C6\uB294 \uD0A4: ${k(n.keys,", ")}`;case"invalid_key":return`\uC798\uBABB\uB41C \uD0A4: ${n.origin}`;case"invalid_union":return"\uC798\uBABB\uB41C \uC785\uB825";case"invalid_element":return`\uC798\uBABB\uB41C \uAC12: ${n.origin}`;default:return"\uC798\uBABB\uB41C \uC785\uB825"}}},"error");function xI(){return{localeError:Kpe()}}i(xI,"default");var cd=i(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalizeFirstCharacter");function xF(e){let t=Math.abs(e),r=t%10,o=t%100;return o>=11&&o<=19||r===0?"many":r===1?"one":"few"}i(xF,"getUnitTypeFromNumber");var Xpe=i(()=>{let e={string:{unit:{one:"simbolis",few:"simboliai",many:"simboli\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne ilgesn\u0117 kaip",notInclusive:"turi b\u016Bti trumpesn\u0117 kaip"},bigger:{inclusive:"turi b\u016Bti ne trumpesn\u0117 kaip",notInclusive:"turi b\u016Bti ilgesn\u0117 kaip"}}},file:{unit:{one:"baitas",few:"baitai",many:"bait\u0173"},verb:{smaller:{inclusive:"turi b\u016Bti ne didesnis kaip",notInclusive:"turi b\u016Bti ma\u017Eesnis kaip"},bigger:{inclusive:"turi b\u016Bti ne ma\u017Eesnis kaip",notInclusive:"turi b\u016Bti didesnis kaip"}}},array:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}},set:{unit:{one:"element\u0105",few:"elementus",many:"element\u0173"},verb:{smaller:{inclusive:"turi tur\u0117ti ne daugiau kaip",notInclusive:"turi tur\u0117ti ma\u017Eiau kaip"},bigger:{inclusive:"turi tur\u0117ti ne ma\u017Eiau kaip",notInclusive:"turi tur\u0117ti daugiau kaip"}}}};function t(n,s,a,c){let u=e[n]??null;return u===null?u:{unit:u.unit[s],verb:u.verb[c][a?"inclusive":"notInclusive"]}}i(t,"getSizing");let r={regex:"\u012Fvestis",email:"el. pa\u0161to adresas",url:"URL",emoji:"jaustukas",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO data ir laikas",date:"ISO data",time:"ISO laikas",duration:"ISO trukm\u0117",ipv4:"IPv4 adresas",ipv6:"IPv6 adresas",cidrv4:"IPv4 tinklo prefiksas (CIDR)",cidrv6:"IPv6 tinklo prefiksas (CIDR)",base64:"base64 u\u017Ekoduota eilut\u0117",base64url:"base64url u\u017Ekoduota eilut\u0117",json_string:"JSON eilut\u0117",e164:"E.164 numeris",jwt:"JWT",template_literal:"\u012Fvestis"},o={nan:"NaN",number:"skai\u010Dius",bigint:"sveikasis skai\u010Dius",string:"eilut\u0117",boolean:"login\u0117 reik\u0161m\u0117",undefined:"neapibr\u0117\u017Eta reik\u0161m\u0117",function:"funkcija",symbol:"simbolis",array:"masyvas",object:"objektas",null:"nulin\u0117 reik\u0161m\u0117"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Gautas tipas ${c}, o tik\u0117tasi - instanceof ${n.expected}`:`Gautas tipas ${c}, o tik\u0117tasi - ${s}`}case"invalid_value":return n.values.length===1?`Privalo b\u016Bti ${V(n.values[0])}`:`Privalo b\u016Bti vienas i\u0161 ${k(n.values,"|")} pasirinkim\u0173`;case"too_big":{let s=o[n.origin]??n.origin,a=t(n.origin,xF(Number(n.maximum)),n.inclusive??!1,"smaller");if(a?.verb)return`${cd(s??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.maximum.toString()} ${a.unit??"element\u0173"}`;let c=n.inclusive?"ne didesnis kaip":"ma\u017Eesnis kaip";return`${cd(s??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${n.maximum.toString()} ${a?.unit}`}case"too_small":{let s=o[n.origin]??n.origin,a=t(n.origin,xF(Number(n.minimum)),n.inclusive??!1,"bigger");if(a?.verb)return`${cd(s??n.origin??"reik\u0161m\u0117")} ${a.verb} ${n.minimum.toString()} ${a.unit??"element\u0173"}`;let c=n.inclusive?"ne ma\u017Eesnis kaip":"didesnis kaip";return`${cd(s??n.origin??"reik\u0161m\u0117")} turi b\u016Bti ${c} ${n.minimum.toString()} ${a?.unit}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Eilut\u0117 privalo prasid\u0117ti "${s.prefix}"`:s.format==="ends_with"?`Eilut\u0117 privalo pasibaigti "${s.suffix}"`:s.format==="includes"?`Eilut\u0117 privalo \u012Ftraukti "${s.includes}"`:s.format==="regex"?`Eilut\u0117 privalo atitikti ${s.pattern}`:`Neteisingas ${r[s.format]??n.format}`}case"not_multiple_of":return`Skai\u010Dius privalo b\u016Bti ${n.divisor} kartotinis.`;case"unrecognized_keys":return`Neatpa\u017Eint${n.keys.length>1?"i":"as"} rakt${n.keys.length>1?"ai":"as"}: ${k(n.keys,", ")}`;case"invalid_key":return"Rastas klaidingas raktas";case"invalid_union":return"Klaidinga \u012Fvestis";case"invalid_element":{let s=o[n.origin]??n.origin;return`${cd(s??n.origin??"reik\u0161m\u0117")} turi klaiding\u0105 \u012Fvest\u012F`}default:return"Klaidinga \u012Fvestis"}}},"error");function bI(){return{localeError:Xpe()}}i(bI,"default");var Jpe=i(()=>{let e={string:{unit:"\u0437\u043D\u0430\u0446\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},file:{unit:"\u0431\u0430\u0458\u0442\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},array:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"},set:{unit:"\u0441\u0442\u0430\u0432\u043A\u0438",verb:"\u0434\u0430 \u0438\u043C\u0430\u0430\u0442"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0432\u043D\u0435\u0441",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u043D\u0430 \u0435-\u043F\u043E\u0448\u0442\u0430",url:"URL",emoji:"\u0435\u043C\u043E\u045F\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0443\u043C \u0438 \u0432\u0440\u0435\u043C\u0435",date:"ISO \u0434\u0430\u0442\u0443\u043C",time:"ISO \u0432\u0440\u0435\u043C\u0435",duration:"ISO \u0432\u0440\u0435\u043C\u0435\u0442\u0440\u0430\u0435\u045A\u0435",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441\u0430",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441\u0430",cidrv4:"IPv4 \u043E\u043F\u0441\u0435\u0433",cidrv6:"IPv6 \u043E\u043F\u0441\u0435\u0433",base64:"base64-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",base64url:"base64url-\u0435\u043D\u043A\u043E\u0434\u0438\u0440\u0430\u043D\u0430 \u043D\u0438\u0437\u0430",json_string:"JSON \u043D\u0438\u0437\u0430",e164:"E.164 \u0431\u0440\u043E\u0458",jwt:"JWT",template_literal:"\u0432\u043D\u0435\u0441"},o={nan:"NaN",number:"\u0431\u0440\u043E\u0458",array:"\u043D\u0438\u0437\u0430"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 instanceof ${n.expected}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`:`\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${s}, \u043F\u0440\u0438\u043C\u0435\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`Invalid input: expected ${V(n.values[0])}`:`\u0413\u0440\u0435\u0448\u0430\u043D\u0430 \u043E\u043F\u0446\u0438\u0458\u0430: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 \u0435\u0434\u043D\u0430 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0438\u043C\u0430 ${s}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0438"}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u0433\u043E\u043B\u0435\u043C: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin??"\u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442\u0430"} \u0434\u0430 \u0431\u0438\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0438\u043C\u0430 ${s}${n.minimum.toString()} ${a.unit}`:`\u041F\u0440\u0435\u043C\u043D\u043E\u0433\u0443 \u043C\u0430\u043B: \u0441\u0435 \u043E\u0447\u0435\u043A\u0443\u0432\u0430 ${n.origin} \u0434\u0430 \u0431\u0438\u0434\u0435 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u043F\u043E\u0447\u043D\u0443\u0432\u0430 \u0441\u043E "${s.prefix}"`:s.format==="ends_with"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0437\u0430\u0432\u0440\u0448\u0443\u0432\u0430 \u0441\u043E "${s.suffix}"`:s.format==="includes"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0432\u043A\u043B\u0443\u0447\u0443\u0432\u0430 "${s.includes}"`:s.format==="regex"?`\u041D\u0435\u0432\u0430\u0436\u0435\u0447\u043A\u0430 \u043D\u0438\u0437\u0430: \u043C\u043E\u0440\u0430 \u0434\u0430 \u043E\u0434\u0433\u043E\u0430\u0440\u0430 \u043D\u0430 \u043F\u0430\u0442\u0435\u0440\u043D\u043E\u0442 ${s.pattern}`:`Invalid ${r[s.format]??n.format}`}case"not_multiple_of":return`\u0413\u0440\u0435\u0448\u0435\u043D \u0431\u0440\u043E\u0458: \u043C\u043E\u0440\u0430 \u0434\u0430 \u0431\u0438\u0434\u0435 \u0434\u0435\u043B\u0438\u0432 \u0441\u043E ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D\u0438 \u043A\u043B\u0443\u0447\u0435\u0432\u0438":"\u041D\u0435\u043F\u0440\u0435\u043F\u043E\u0437\u043D\u0430\u0435\u043D \u043A\u043B\u0443\u0447"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0413\u0440\u0435\u0448\u0435\u043D \u043A\u043B\u0443\u0447 \u0432\u043E ${n.origin}`;case"invalid_union":return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441";case"invalid_element":return`\u0413\u0440\u0435\u0448\u043D\u0430 \u0432\u0440\u0435\u0434\u043D\u043E\u0441\u0442 \u0432\u043E ${n.origin}`;default:return"\u0413\u0440\u0435\u0448\u0435\u043D \u0432\u043D\u0435\u0441"}}},"error");function PI(){return{localeError:Jpe()}}i(PI,"default");var Ype=i(()=>{let e={string:{unit:"aksara",verb:"mempunyai"},file:{unit:"bait",verb:"mempunyai"},array:{unit:"elemen",verb:"mempunyai"},set:{unit:"elemen",verb:"mempunyai"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"input",email:"alamat e-mel",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"tarikh masa ISO",date:"tarikh ISO",time:"masa ISO",duration:"tempoh ISO",ipv4:"alamat IPv4",ipv6:"alamat IPv6",cidrv4:"julat IPv4",cidrv6:"julat IPv6",base64:"string dikodkan base64",base64url:"string dikodkan base64url",json_string:"string JSON",e164:"nombor E.164",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"nombor"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Input tidak sah: dijangka instanceof ${n.expected}, diterima ${c}`:`Input tidak sah: dijangka ${s}, diterima ${c}`}case"invalid_value":return n.values.length===1?`Input tidak sah: dijangka ${V(n.values[0])}`:`Pilihan tidak sah: dijangka salah satu daripada ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Terlalu besar: dijangka ${n.origin??"nilai"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"elemen"}`:`Terlalu besar: dijangka ${n.origin??"nilai"} adalah ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Terlalu kecil: dijangka ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`Terlalu kecil: dijangka ${n.origin} adalah ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`String tidak sah: mesti bermula dengan "${s.prefix}"`:s.format==="ends_with"?`String tidak sah: mesti berakhir dengan "${s.suffix}"`:s.format==="includes"?`String tidak sah: mesti mengandungi "${s.includes}"`:s.format==="regex"?`String tidak sah: mesti sepadan dengan corak ${s.pattern}`:`${r[s.format]??n.format} tidak sah`}case"not_multiple_of":return`Nombor tidak sah: perlu gandaan ${n.divisor}`;case"unrecognized_keys":return`Kunci tidak dikenali: ${k(n.keys,", ")}`;case"invalid_key":return`Kunci tidak sah dalam ${n.origin}`;case"invalid_union":return"Input tidak sah";case"invalid_element":return`Nilai tidak sah dalam ${n.origin}`;default:return"Input tidak sah"}}},"error");function CI(){return{localeError:Ype()}}i(CI,"default");var Qpe=i(()=>{let e={string:{unit:"tekens",verb:"heeft"},file:{unit:"bytes",verb:"heeft"},array:{unit:"elementen",verb:"heeft"},set:{unit:"elementen",verb:"heeft"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"invoer",email:"emailadres",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum en tijd",date:"ISO datum",time:"ISO tijd",duration:"ISO duur",ipv4:"IPv4-adres",ipv6:"IPv6-adres",cidrv4:"IPv4-bereik",cidrv6:"IPv6-bereik",base64:"base64-gecodeerde tekst",base64url:"base64 URL-gecodeerde tekst",json_string:"JSON string",e164:"E.164-nummer",jwt:"JWT",template_literal:"invoer"},o={nan:"NaN",number:"getal"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ongeldige invoer: verwacht instanceof ${n.expected}, ontving ${c}`:`Ongeldige invoer: verwacht ${s}, ontving ${c}`}case"invalid_value":return n.values.length===1?`Ongeldige invoer: verwacht ${V(n.values[0])}`:`Ongeldige optie: verwacht \xE9\xE9n van ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin),c=n.origin==="date"?"laat":n.origin==="string"?"lang":"groot";return a?`Te ${c}: verwacht dat ${n.origin??"waarde"} ${s}${n.maximum.toString()} ${a.unit??"elementen"} ${a.verb}`:`Te ${c}: verwacht dat ${n.origin??"waarde"} ${s}${n.maximum.toString()} is`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin),c=n.origin==="date"?"vroeg":n.origin==="string"?"kort":"klein";return a?`Te ${c}: verwacht dat ${n.origin} ${s}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Te ${c}: verwacht dat ${n.origin} ${s}${n.minimum.toString()} is`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ongeldige tekst: moet met "${s.prefix}" beginnen`:s.format==="ends_with"?`Ongeldige tekst: moet op "${s.suffix}" eindigen`:s.format==="includes"?`Ongeldige tekst: moet "${s.includes}" bevatten`:s.format==="regex"?`Ongeldige tekst: moet overeenkomen met patroon ${s.pattern}`:`Ongeldig: ${r[s.format]??n.format}`}case"not_multiple_of":return`Ongeldig getal: moet een veelvoud van ${n.divisor} zijn`;case"unrecognized_keys":return`Onbekende key${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Ongeldige key in ${n.origin}`;case"invalid_union":return"Ongeldige invoer";case"invalid_element":return`Ongeldige waarde in ${n.origin}`;default:return"Ongeldige invoer"}}},"error");function AI(){return{localeError:Qpe()}}i(AI,"default");var efe=i(()=>{let e={string:{unit:"tegn",verb:"\xE5 ha"},file:{unit:"bytes",verb:"\xE5 ha"},array:{unit:"elementer",verb:"\xE5 inneholde"},set:{unit:"elementer",verb:"\xE5 inneholde"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"input",email:"e-postadresse",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO dato- og klokkeslett",date:"ISO-dato",time:"ISO-klokkeslett",duration:"ISO-varighet",ipv4:"IPv4-omr\xE5de",ipv6:"IPv6-omr\xE5de",cidrv4:"IPv4-spekter",cidrv6:"IPv6-spekter",base64:"base64-enkodet streng",base64url:"base64url-enkodet streng",json_string:"JSON-streng",e164:"E.164-nummer",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"tall",array:"liste"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ugyldig input: forventet instanceof ${n.expected}, fikk ${c}`:`Ugyldig input: forventet ${s}, fikk ${c}`}case"invalid_value":return n.values.length===1?`Ugyldig verdi: forventet ${V(n.values[0])}`:`Ugyldig valg: forventet en av ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${s}${n.maximum.toString()} ${a.unit??"elementer"}`:`For stor(t): forventet ${n.origin??"value"} til \xE5 ha ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`For lite(n): forventet ${n.origin} til \xE5 ha ${s}${n.minimum.toString()} ${a.unit}`:`For lite(n): forventet ${n.origin} til \xE5 ha ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ugyldig streng: m\xE5 starte med "${s.prefix}"`:s.format==="ends_with"?`Ugyldig streng: m\xE5 ende med "${s.suffix}"`:s.format==="includes"?`Ugyldig streng: m\xE5 inneholde "${s.includes}"`:s.format==="regex"?`Ugyldig streng: m\xE5 matche m\xF8nsteret ${s.pattern}`:`Ugyldig ${r[s.format]??n.format}`}case"not_multiple_of":return`Ugyldig tall: m\xE5 v\xE6re et multiplum av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ukjente n\xF8kler":"Ukjent n\xF8kkel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ugyldig n\xF8kkel i ${n.origin}`;case"invalid_union":return"Ugyldig input";case"invalid_element":return`Ugyldig verdi i ${n.origin}`;default:return"Ugyldig input"}}},"error");function TI(){return{localeError:efe()}}i(TI,"default");var tfe=i(()=>{let e={string:{unit:"harf",verb:"olmal\u0131d\u0131r"},file:{unit:"bayt",verb:"olmal\u0131d\u0131r"},array:{unit:"unsur",verb:"olmal\u0131d\u0131r"},set:{unit:"unsur",verb:"olmal\u0131d\u0131r"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"giren",email:"epostag\xE2h",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO heng\xE2m\u0131",date:"ISO tarihi",time:"ISO zaman\u0131",duration:"ISO m\xFCddeti",ipv4:"IPv4 ni\u015F\xE2n\u0131",ipv6:"IPv6 ni\u015F\xE2n\u0131",cidrv4:"IPv4 menzili",cidrv6:"IPv6 menzili",base64:"base64-\u015Fifreli metin",base64url:"base64url-\u015Fifreli metin",json_string:"JSON metin",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"giren"},o={nan:"NaN",number:"numara",array:"saf",null:"gayb"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`F\xE2sit giren: umulan instanceof ${n.expected}, al\u0131nan ${c}`:`F\xE2sit giren: umulan ${s}, al\u0131nan ${c}`}case"invalid_value":return n.values.length===1?`F\xE2sit giren: umulan ${V(n.values[0])}`:`F\xE2sit tercih: m\xFBteberler ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${s}${n.maximum.toString()} ${a.unit??"elements"} sahip olmal\u0131yd\u0131.`:`Fazla b\xFCy\xFCk: ${n.origin??"value"}, ${s}${n.maximum.toString()} olmal\u0131yd\u0131.`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${s}${n.minimum.toString()} ${a.unit} sahip olmal\u0131yd\u0131.`:`Fazla k\xFC\xE7\xFCk: ${n.origin}, ${s}${n.minimum.toString()} olmal\u0131yd\u0131.`}case"invalid_format":{let s=n;return s.format==="starts_with"?`F\xE2sit metin: "${s.prefix}" ile ba\u015Flamal\u0131.`:s.format==="ends_with"?`F\xE2sit metin: "${s.suffix}" ile bitmeli.`:s.format==="includes"?`F\xE2sit metin: "${s.includes}" ihtiv\xE2 etmeli.`:s.format==="regex"?`F\xE2sit metin: ${s.pattern} nak\u015F\u0131na uymal\u0131.`:`F\xE2sit ${r[s.format]??n.format}`}case"not_multiple_of":return`F\xE2sit say\u0131: ${n.divisor} kat\u0131 olmal\u0131yd\u0131.`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar ${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7in tan\u0131nmayan anahtar var.`;case"invalid_union":return"Giren tan\u0131namad\u0131.";case"invalid_element":return`${n.origin} i\xE7in tan\u0131nmayan k\u0131ymet var.`;default:return"K\u0131ymet tan\u0131namad\u0131."}}},"error");function II(){return{localeError:tfe()}}i(II,"default");var rfe=i(()=>{let e={string:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},file:{unit:"\u0628\u0627\u06CC\u067C\u0633",verb:"\u0648\u0644\u0631\u064A"},array:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"},set:{unit:"\u062A\u0648\u06A9\u064A",verb:"\u0648\u0644\u0631\u064A"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0648\u0631\u0648\u062F\u064A",email:"\u0628\u0631\u06CC\u069A\u0646\u0627\u0644\u06CC\u06A9",url:"\u06CC\u0648 \u0622\u0631 \u0627\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u064A",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0646\u06CC\u067C\u0647 \u0627\u0648 \u0648\u062E\u062A",date:"\u0646\u06D0\u067C\u0647",time:"\u0648\u062E\u062A",duration:"\u0645\u0648\u062F\u0647",ipv4:"\u062F IPv4 \u067E\u062A\u0647",ipv6:"\u062F IPv6 \u067E\u062A\u0647",cidrv4:"\u062F IPv4 \u0633\u0627\u062D\u0647",cidrv6:"\u062F IPv6 \u0633\u0627\u062D\u0647",base64:"base64-encoded \u0645\u062A\u0646",base64url:"base64url-encoded \u0645\u062A\u0646",json_string:"JSON \u0645\u062A\u0646",e164:"\u062F E.164 \u0634\u0645\u06D0\u0631\u0647",jwt:"JWT",template_literal:"\u0648\u0631\u0648\u062F\u064A"},o={nan:"NaN",number:"\u0639\u062F\u062F",array:"\u0627\u0631\u06D0"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F instanceof ${n.expected} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`:`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${s} \u0648\u0627\u06CC, \u0645\u06AB\u0631 ${c} \u062A\u0631\u0644\u0627\u0633\u0647 \u0634\u0648`}case"invalid_value":return n.values.length===1?`\u0646\u0627\u0633\u0645 \u0648\u0631\u0648\u062F\u064A: \u0628\u0627\u06CC\u062F ${V(n.values[0])} \u0648\u0627\u06CC`:`\u0646\u0627\u0633\u0645 \u0627\u0646\u062A\u062E\u0627\u0628: \u0628\u0627\u06CC\u062F \u06CC\u0648 \u0644\u0647 ${k(n.values,"|")} \u0685\u062E\u0647 \u0648\u0627\u06CC`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0635\u0631\u0648\u0646\u0647"} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u0644\u0648\u06CC: ${n.origin??"\u0627\u0631\u0632\u069A\u062A"} \u0628\u0627\u06CC\u062F ${s}${n.maximum.toString()} \u0648\u064A`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} ${a.unit} \u0648\u0644\u0631\u064A`:`\u0689\u06CC\u0631 \u06A9\u0648\u0686\u0646\u06CC: ${n.origin} \u0628\u0627\u06CC\u062F ${s}${n.minimum.toString()} \u0648\u064A`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${s.prefix}" \u0633\u0631\u0647 \u067E\u06CC\u0644 \u0634\u064A`:s.format==="ends_with"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F "${s.suffix}" \u0633\u0631\u0647 \u067E\u0627\u06CC \u062A\u0647 \u0648\u0631\u0633\u064A\u0696\u064A`:s.format==="includes"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F "${s.includes}" \u0648\u0644\u0631\u064A`:s.format==="regex"?`\u0646\u0627\u0633\u0645 \u0645\u062A\u0646: \u0628\u0627\u06CC\u062F \u062F ${s.pattern} \u0633\u0631\u0647 \u0645\u0637\u0627\u0628\u0642\u062A \u0648\u0644\u0631\u064A`:`${r[s.format]??n.format} \u0646\u0627\u0633\u0645 \u062F\u06CC`}case"not_multiple_of":return`\u0646\u0627\u0633\u0645 \u0639\u062F\u062F: \u0628\u0627\u06CC\u062F \u062F ${n.divisor} \u0645\u0636\u0631\u0628 \u0648\u064A`;case"unrecognized_keys":return`\u0646\u0627\u0633\u0645 ${n.keys.length>1?"\u06A9\u0644\u06CC\u0689\u0648\u0646\u0647":"\u06A9\u0644\u06CC\u0689"}: ${k(n.keys,", ")}`;case"invalid_key":return`\u0646\u0627\u0633\u0645 \u06A9\u0644\u06CC\u0689 \u067E\u0647 ${n.origin} \u06A9\u06D0`;case"invalid_union":return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A";case"invalid_element":return`\u0646\u0627\u0633\u0645 \u0639\u0646\u0635\u0631 \u067E\u0647 ${n.origin} \u06A9\u06D0`;default:return"\u0646\u0627\u0633\u0645\u0647 \u0648\u0631\u0648\u062F\u064A"}}},"error");function wI(){return{localeError:rfe()}}i(wI,"default");var nfe=i(()=>{let e={string:{unit:"znak\xF3w",verb:"mie\u0107"},file:{unit:"bajt\xF3w",verb:"mie\u0107"},array:{unit:"element\xF3w",verb:"mie\u0107"},set:{unit:"element\xF3w",verb:"mie\u0107"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"wyra\u017Cenie",email:"adres email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data i godzina w formacie ISO",date:"data w formacie ISO",time:"godzina w formacie ISO",duration:"czas trwania ISO",ipv4:"adres IPv4",ipv6:"adres IPv6",cidrv4:"zakres IPv4",cidrv6:"zakres IPv6",base64:"ci\u0105g znak\xF3w zakodowany w formacie base64",base64url:"ci\u0105g znak\xF3w zakodowany w formacie base64url",json_string:"ci\u0105g znak\xF3w w formacie JSON",e164:"liczba E.164",jwt:"JWT",template_literal:"wej\u015Bcie"},o={nan:"NaN",number:"liczba",array:"tablica"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano instanceof ${n.expected}, otrzymano ${c}`:`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${s}, otrzymano ${c}`}case"invalid_value":return n.values.length===1?`Nieprawid\u0142owe dane wej\u015Bciowe: oczekiwano ${V(n.values[0])}`:`Nieprawid\u0142owa opcja: oczekiwano jednej z warto\u015Bci ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Za du\u017Ca warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${s}${n.maximum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt du\u017C(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Za ma\u0142a warto\u015B\u0107: oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie mie\u0107 ${s}${n.minimum.toString()} ${a.unit??"element\xF3w"}`:`Zbyt ma\u0142(y/a/e): oczekiwano, \u017Ce ${n.origin??"warto\u015B\u0107"} b\u0119dzie wynosi\u0107 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zaczyna\u0107 si\u0119 od "${s.prefix}"`:s.format==="ends_with"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi ko\u0144czy\u0107 si\u0119 na "${s.suffix}"`:s.format==="includes"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi zawiera\u0107 "${s.includes}"`:s.format==="regex"?`Nieprawid\u0142owy ci\u0105g znak\xF3w: musi odpowiada\u0107 wzorcowi ${s.pattern}`:`Nieprawid\u0142ow(y/a/e) ${r[s.format]??n.format}`}case"not_multiple_of":return`Nieprawid\u0142owa liczba: musi by\u0107 wielokrotno\u015Bci\u0105 ${n.divisor}`;case"unrecognized_keys":return`Nierozpoznane klucze${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Nieprawid\u0142owy klucz w ${n.origin}`;case"invalid_union":return"Nieprawid\u0142owe dane wej\u015Bciowe";case"invalid_element":return`Nieprawid\u0142owa warto\u015B\u0107 w ${n.origin}`;default:return"Nieprawid\u0142owe dane wej\u015Bciowe"}}},"error");function RI(){return{localeError:nfe()}}i(RI,"default");var ofe=i(()=>{let e={string:{unit:"caracteres",verb:"ter"},file:{unit:"bytes",verb:"ter"},array:{unit:"itens",verb:"ter"},set:{unit:"itens",verb:"ter"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"padr\xE3o",email:"endere\xE7o de e-mail",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"data e hora ISO",date:"data ISO",time:"hora ISO",duration:"dura\xE7\xE3o ISO",ipv4:"endere\xE7o IPv4",ipv6:"endere\xE7o IPv6",cidrv4:"faixa de IPv4",cidrv6:"faixa de IPv6",base64:"texto codificado em base64",base64url:"URL codificada em base64",json_string:"texto JSON",e164:"n\xFAmero E.164",jwt:"JWT",template_literal:"entrada"},o={nan:"NaN",number:"n\xFAmero",null:"nulo"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Tipo inv\xE1lido: esperado instanceof ${n.expected}, recebido ${c}`:`Tipo inv\xE1lido: esperado ${s}, recebido ${c}`}case"invalid_value":return n.values.length===1?`Entrada inv\xE1lida: esperado ${V(n.values[0])}`:`Op\xE7\xE3o inv\xE1lida: esperada uma das ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Muito grande: esperado que ${n.origin??"valor"} tivesse ${s}${n.maximum.toString()} ${a.unit??"elementos"}`:`Muito grande: esperado que ${n.origin??"valor"} fosse ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Muito pequeno: esperado que ${n.origin} tivesse ${s}${n.minimum.toString()} ${a.unit}`:`Muito pequeno: esperado que ${n.origin} fosse ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Texto inv\xE1lido: deve come\xE7ar com "${s.prefix}"`:s.format==="ends_with"?`Texto inv\xE1lido: deve terminar com "${s.suffix}"`:s.format==="includes"?`Texto inv\xE1lido: deve incluir "${s.includes}"`:s.format==="regex"?`Texto inv\xE1lido: deve corresponder ao padr\xE3o ${s.pattern}`:`${r[s.format]??n.format} inv\xE1lido`}case"not_multiple_of":return`N\xFAmero inv\xE1lido: deve ser m\xFAltiplo de ${n.divisor}`;case"unrecognized_keys":return`Chave${n.keys.length>1?"s":""} desconhecida${n.keys.length>1?"s":""}: ${k(n.keys,", ")}`;case"invalid_key":return`Chave inv\xE1lida em ${n.origin}`;case"invalid_union":return"Entrada inv\xE1lida";case"invalid_element":return`Valor inv\xE1lido em ${n.origin}`;default:return"Campo inv\xE1lido"}}},"error");function $I(){return{localeError:ofe()}}i($I,"default");function bF(e,t,r,o){let n=Math.abs(e),s=n%10,a=n%100;return a>=11&&a<=19?o:s===1?t:s>=2&&s<=4?r:o}i(bF,"getRussianPlural");var ife=i(()=>{let e={string:{unit:{one:"\u0441\u0438\u043C\u0432\u043E\u043B",few:"\u0441\u0438\u043C\u0432\u043E\u043B\u0430",many:"\u0441\u0438\u043C\u0432\u043E\u043B\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},file:{unit:{one:"\u0431\u0430\u0439\u0442",few:"\u0431\u0430\u0439\u0442\u0430",many:"\u0431\u0430\u0439\u0442"},verb:"\u0438\u043C\u0435\u0442\u044C"},array:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"},set:{unit:{one:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442",few:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u0430",many:"\u044D\u043B\u0435\u043C\u0435\u043D\u0442\u043E\u0432"},verb:"\u0438\u043C\u0435\u0442\u044C"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0432\u0432\u043E\u0434",email:"email \u0430\u0434\u0440\u0435\u0441",url:"URL",emoji:"\u044D\u043C\u043E\u0434\u0437\u0438",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0434\u0430\u0442\u0430 \u0438 \u0432\u0440\u0435\u043C\u044F",date:"ISO \u0434\u0430\u0442\u0430",time:"ISO \u0432\u0440\u0435\u043C\u044F",duration:"ISO \u0434\u043B\u0438\u0442\u0435\u043B\u044C\u043D\u043E\u0441\u0442\u044C",ipv4:"IPv4 \u0430\u0434\u0440\u0435\u0441",ipv6:"IPv6 \u0430\u0434\u0440\u0435\u0441",cidrv4:"IPv4 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",cidrv6:"IPv6 \u0434\u0438\u0430\u043F\u0430\u0437\u043E\u043D",base64:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64",base64url:"\u0441\u0442\u0440\u043E\u043A\u0430 \u0432 \u0444\u043E\u0440\u043C\u0430\u0442\u0435 base64url",json_string:"JSON \u0441\u0442\u0440\u043E\u043A\u0430",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0432\u043E\u0434"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C instanceof ${n.expected}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${s}, \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0432\u043E\u0434: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C ${V(n.values[0])}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u0432\u0430\u0440\u0438\u0430\u043D\u0442: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C \u043E\u0434\u043D\u043E \u0438\u0437 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);if(a){let c=Number(n.maximum),u=bF(c,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${s}${n.maximum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u0431\u043E\u043B\u044C\u0448\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435"} \u0431\u0443\u0434\u0435\u0442 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);if(a){let c=Number(n.minimum),u=bF(c,a.unit.one,a.unit.few,a.unit.many);return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 \u0438\u043C\u0435\u0442\u044C ${s}${n.minimum.toString()} ${u}`}return`\u0421\u043B\u0438\u0448\u043A\u043E\u043C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435: \u043E\u0436\u0438\u0434\u0430\u043B\u043E\u0441\u044C, \u0447\u0442\u043E ${n.origin} \u0431\u0443\u0434\u0435\u0442 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u043D\u0430\u0447\u0438\u043D\u0430\u0442\u044C\u0441\u044F \u0441 "${s.prefix}"`:s.format==="ends_with"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0437\u0430\u043A\u0430\u043D\u0447\u0438\u0432\u0430\u0442\u044C\u0441\u044F \u043D\u0430 "${s.suffix}"`:s.format==="includes"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u0434\u0435\u0440\u0436\u0430\u0442\u044C "${s.includes}"`:s.format==="regex"?`\u041D\u0435\u0432\u0435\u0440\u043D\u0430\u044F \u0441\u0442\u0440\u043E\u043A\u0430: \u0434\u043E\u043B\u0436\u043D\u0430 \u0441\u043E\u043E\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043E\u0432\u0430\u0442\u044C \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${s.pattern}`:`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0447\u0438\u0441\u043B\u043E: \u0434\u043E\u043B\u0436\u043D\u043E \u0431\u044B\u0442\u044C \u043A\u0440\u0430\u0442\u043D\u044B\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u0430\u0441\u043F\u043E\u0437\u043D\u0430\u043D\u043D${n.keys.length>1?"\u044B\u0435":"\u044B\u0439"} \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0438":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0439 \u043A\u043B\u044E\u0447 \u0432 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435";case"invalid_element":return`\u041D\u0435\u0432\u0435\u0440\u043D\u043E\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u0438\u0435 \u0432 ${n.origin}`;default:return"\u041D\u0435\u0432\u0435\u0440\u043D\u044B\u0435 \u0432\u0445\u043E\u0434\u043D\u044B\u0435 \u0434\u0430\u043D\u043D\u044B\u0435"}}},"error");function OI(){return{localeError:ife()}}i(OI,"default");var sfe=i(()=>{let e={string:{unit:"znakov",verb:"imeti"},file:{unit:"bajtov",verb:"imeti"},array:{unit:"elementov",verb:"imeti"},set:{unit:"elementov",verb:"imeti"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"vnos",email:"e-po\u0161tni naslov",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO datum in \u010Das",date:"ISO datum",time:"ISO \u010Das",duration:"ISO trajanje",ipv4:"IPv4 naslov",ipv6:"IPv6 naslov",cidrv4:"obseg IPv4",cidrv6:"obseg IPv6",base64:"base64 kodiran niz",base64url:"base64url kodiran niz",json_string:"JSON niz",e164:"E.164 \u0161tevilka",jwt:"JWT",template_literal:"vnos"},o={nan:"NaN",number:"\u0161tevilo",array:"tabela"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Neveljaven vnos: pri\u010Dakovano instanceof ${n.expected}, prejeto ${c}`:`Neveljaven vnos: pri\u010Dakovano ${s}, prejeto ${c}`}case"invalid_value":return n.values.length===1?`Neveljaven vnos: pri\u010Dakovano ${V(n.values[0])}`:`Neveljavna mo\u017Enost: pri\u010Dakovano eno izmed ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} imelo ${s}${n.maximum.toString()} ${a.unit??"elementov"}`:`Preveliko: pri\u010Dakovano, da bo ${n.origin??"vrednost"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Premajhno: pri\u010Dakovano, da bo ${n.origin} imelo ${s}${n.minimum.toString()} ${a.unit}`:`Premajhno: pri\u010Dakovano, da bo ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Neveljaven niz: mora se za\u010Deti z "${s.prefix}"`:s.format==="ends_with"?`Neveljaven niz: mora se kon\u010Dati z "${s.suffix}"`:s.format==="includes"?`Neveljaven niz: mora vsebovati "${s.includes}"`:s.format==="regex"?`Neveljaven niz: mora ustrezati vzorcu ${s.pattern}`:`Neveljaven ${r[s.format]??n.format}`}case"not_multiple_of":return`Neveljavno \u0161tevilo: mora biti ve\u010Dkratnik ${n.divisor}`;case"unrecognized_keys":return`Neprepoznan${n.keys.length>1?"i klju\u010Di":" klju\u010D"}: ${k(n.keys,", ")}`;case"invalid_key":return`Neveljaven klju\u010D v ${n.origin}`;case"invalid_union":return"Neveljaven vnos";case"invalid_element":return`Neveljavna vrednost v ${n.origin}`;default:return"Neveljaven vnos"}}},"error");function DI(){return{localeError:sfe()}}i(DI,"default");var afe=i(()=>{let e={string:{unit:"tecken",verb:"att ha"},file:{unit:"bytes",verb:"att ha"},array:{unit:"objekt",verb:"att inneh\xE5lla"},set:{unit:"objekt",verb:"att inneh\xE5lla"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"regulj\xE4rt uttryck",email:"e-postadress",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO-datum och tid",date:"ISO-datum",time:"ISO-tid",duration:"ISO-varaktighet",ipv4:"IPv4-intervall",ipv6:"IPv6-intervall",cidrv4:"IPv4-spektrum",cidrv6:"IPv6-spektrum",base64:"base64-kodad str\xE4ng",base64url:"base64url-kodad str\xE4ng",json_string:"JSON-str\xE4ng",e164:"E.164-nummer",jwt:"JWT",template_literal:"mall-literal"},o={nan:"NaN",number:"antal",array:"lista"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ogiltig inmatning: f\xF6rv\xE4ntat instanceof ${n.expected}, fick ${c}`:`Ogiltig inmatning: f\xF6rv\xE4ntat ${s}, fick ${c}`}case"invalid_value":return n.values.length===1?`Ogiltig inmatning: f\xF6rv\xE4ntat ${V(n.values[0])}`:`Ogiltigt val: f\xF6rv\xE4ntade en av ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`F\xF6r stor(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${s}${n.maximum.toString()} ${a.unit??"element"}`:`F\xF6r stor(t): f\xF6rv\xE4ntat ${n.origin??"v\xE4rdet"} att ha ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${s}${n.minimum.toString()} ${a.unit}`:`F\xF6r lite(t): f\xF6rv\xE4ntade ${n.origin??"v\xE4rdet"} att ha ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ogiltig str\xE4ng: m\xE5ste b\xF6rja med "${s.prefix}"`:s.format==="ends_with"?`Ogiltig str\xE4ng: m\xE5ste sluta med "${s.suffix}"`:s.format==="includes"?`Ogiltig str\xE4ng: m\xE5ste inneh\xE5lla "${s.includes}"`:s.format==="regex"?`Ogiltig str\xE4ng: m\xE5ste matcha m\xF6nstret "${s.pattern}"`:`Ogiltig(t) ${r[s.format]??n.format}`}case"not_multiple_of":return`Ogiltigt tal: m\xE5ste vara en multipel av ${n.divisor}`;case"unrecognized_keys":return`${n.keys.length>1?"Ok\xE4nda nycklar":"Ok\xE4nd nyckel"}: ${k(n.keys,", ")}`;case"invalid_key":return`Ogiltig nyckel i ${n.origin??"v\xE4rdet"}`;case"invalid_union":return"Ogiltig input";case"invalid_element":return`Ogiltigt v\xE4rde i ${n.origin??"v\xE4rdet"}`;default:return"Ogiltig input"}}},"error");function NI(){return{localeError:afe()}}i(NI,"default");var cfe=i(()=>{let e={string:{unit:"\u0B8E\u0BB4\u0BC1\u0BA4\u0BCD\u0BA4\u0BC1\u0B95\u0BCD\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},file:{unit:"\u0BAA\u0BC8\u0B9F\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},array:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"},set:{unit:"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD",verb:"\u0B95\u0BCA\u0BA3\u0BCD\u0B9F\u0BBF\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1",email:"\u0BAE\u0BBF\u0BA9\u0BCD\u0BA9\u0B9E\u0BCD\u0B9A\u0BB2\u0BCD \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u0BA4\u0BC7\u0BA4\u0BBF \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",date:"ISO \u0BA4\u0BC7\u0BA4\u0BBF",time:"ISO \u0BA8\u0BC7\u0BB0\u0BAE\u0BCD",duration:"ISO \u0B95\u0BBE\u0BB2 \u0B85\u0BB3\u0BB5\u0BC1",ipv4:"IPv4 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",ipv6:"IPv6 \u0BAE\u0BC1\u0B95\u0BB5\u0BB0\u0BBF",cidrv4:"IPv4 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",cidrv6:"IPv6 \u0BB5\u0BB0\u0BAE\u0BCD\u0BAA\u0BC1",base64:"base64-encoded \u0B9A\u0BB0\u0BAE\u0BCD",base64url:"base64url-encoded \u0B9A\u0BB0\u0BAE\u0BCD",json_string:"JSON \u0B9A\u0BB0\u0BAE\u0BCD",e164:"E.164 \u0B8E\u0BA3\u0BCD",jwt:"JWT",template_literal:"input"},o={nan:"NaN",number:"\u0B8E\u0BA3\u0BCD",array:"\u0B85\u0BA3\u0BBF",null:"\u0BB5\u0BC6\u0BB1\u0BC1\u0BAE\u0BC8"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 instanceof ${n.expected}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${s}, \u0BAA\u0BC6\u0BB1\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${c}`}case"invalid_value":return n.values.length===1?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${V(n.values[0])}`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0BB0\u0BC1\u0BAA\u0BCD\u0BAA\u0BAE\u0BCD: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${k(n.values,"|")} \u0B87\u0BB2\u0BCD \u0B92\u0BA9\u0BCD\u0BB1\u0BC1`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${s}${n.maximum.toString()} ${a.unit??"\u0B89\u0BB1\u0BC1\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BB3\u0BCD"} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95 \u0BAA\u0BC6\u0BB0\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin??"\u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1"} ${s}${n.maximum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${s}${n.minimum.toString()} ${a.unit} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BAE\u0BBF\u0B95\u0B9A\u0BCD \u0B9A\u0BBF\u0BB1\u0BBF\u0BAF\u0BA4\u0BC1: \u0B8E\u0BA4\u0BBF\u0BB0\u0BCD\u0BAA\u0BBE\u0BB0\u0BCD\u0B95\u0BCD\u0B95\u0BAA\u0BCD\u0BAA\u0B9F\u0BCD\u0B9F\u0BA4\u0BC1 ${n.origin} ${s}${n.minimum.toString()} \u0B86\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.prefix}" \u0B87\u0BB2\u0BCD \u0BA4\u0BCA\u0B9F\u0B99\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="ends_with"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.suffix}" \u0B87\u0BB2\u0BCD \u0BAE\u0BC1\u0B9F\u0BBF\u0BB5\u0B9F\u0BC8\u0BAF \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="includes"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: "${s.includes}" \u0B90 \u0B89\u0BB3\u0BCD\u0BB3\u0B9F\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:s.format==="regex"?`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B9A\u0BB0\u0BAE\u0BCD: ${s.pattern} \u0BAE\u0BC1\u0BB1\u0BC8\u0BAA\u0BBE\u0B9F\u0BCD\u0B9F\u0BC1\u0B9F\u0BA9\u0BCD \u0BAA\u0BCA\u0BB0\u0BC1\u0BA8\u0BCD\u0BA4 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`:`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B8E\u0BA3\u0BCD: ${n.divisor} \u0B87\u0BA9\u0BCD \u0BAA\u0BB2\u0BAE\u0BBE\u0B95 \u0B87\u0BB0\u0BC1\u0B95\u0BCD\u0B95 \u0BB5\u0BC7\u0BA3\u0BCD\u0B9F\u0BC1\u0BAE\u0BCD`;case"unrecognized_keys":return`\u0B85\u0B9F\u0BC8\u0BAF\u0BBE\u0BB3\u0BAE\u0BCD \u0BA4\u0BC6\u0BB0\u0BBF\u0BAF\u0BBE\u0BA4 \u0BB5\u0BBF\u0B9A\u0BC8${n.keys.length>1?"\u0B95\u0BB3\u0BCD":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BB5\u0BBF\u0B9A\u0BC8`;case"invalid_union":return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1";case"invalid_element":return`${n.origin} \u0B87\u0BB2\u0BCD \u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0BAE\u0BA4\u0BBF\u0BAA\u0BCD\u0BAA\u0BC1`;default:return"\u0BA4\u0BB5\u0BB1\u0BBE\u0BA9 \u0B89\u0BB3\u0BCD\u0BB3\u0BC0\u0B9F\u0BC1"}}},"error");function kI(){return{localeError:cfe()}}i(kI,"default");var ufe=i(()=>{let e={string:{unit:"\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},file:{unit:"\u0E44\u0E1A\u0E15\u0E4C",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},array:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"},set:{unit:"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23",verb:"\u0E04\u0E27\u0E23\u0E21\u0E35"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19",email:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48\u0E2D\u0E35\u0E40\u0E21\u0E25",url:"URL",emoji:"\u0E2D\u0E34\u0E42\u0E21\u0E08\u0E34",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",date:"\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E41\u0E1A\u0E1A ISO",time:"\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",duration:"\u0E0A\u0E48\u0E27\u0E07\u0E40\u0E27\u0E25\u0E32\u0E41\u0E1A\u0E1A ISO",ipv4:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv4",ipv6:"\u0E17\u0E35\u0E48\u0E2D\u0E22\u0E39\u0E48 IPv6",cidrv4:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv4",cidrv6:"\u0E0A\u0E48\u0E27\u0E07 IP \u0E41\u0E1A\u0E1A IPv6",base64:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64",base64url:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A Base64 \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A URL",json_string:"\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E41\u0E1A\u0E1A JSON",e164:"\u0E40\u0E1A\u0E2D\u0E23\u0E4C\u0E42\u0E17\u0E23\u0E28\u0E31\u0E1E\u0E17\u0E4C\u0E23\u0E30\u0E2B\u0E27\u0E48\u0E32\u0E07\u0E1B\u0E23\u0E30\u0E40\u0E17\u0E28 (E.164)",jwt:"\u0E42\u0E17\u0E40\u0E04\u0E19 JWT",template_literal:"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E35\u0E48\u0E1B\u0E49\u0E2D\u0E19"},o={nan:"NaN",number:"\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02",array:"\u0E2D\u0E32\u0E23\u0E4C\u0E40\u0E23\u0E22\u0E4C (Array)",null:"\u0E44\u0E21\u0E48\u0E21\u0E35\u0E04\u0E48\u0E32 (null)"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 instanceof ${n.expected} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`:`\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${s} \u0E41\u0E15\u0E48\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A ${c}`}case"invalid_value":return n.values.length===1?`\u0E04\u0E48\u0E32\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19 ${V(n.values[0])}`:`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E04\u0E27\u0E23\u0E40\u0E1B\u0E47\u0E19\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"\u0E44\u0E21\u0E48\u0E40\u0E01\u0E34\u0E19":"\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.maximum.toString()} ${a.unit??"\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23"}`:`\u0E40\u0E01\u0E34\u0E19\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin??"\u0E04\u0E48\u0E32"} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?"\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22":"\u0E21\u0E32\u0E01\u0E01\u0E27\u0E48\u0E32",a=t(n.origin);return a?`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.minimum.toString()} ${a.unit}`:`\u0E19\u0E49\u0E2D\u0E22\u0E01\u0E27\u0E48\u0E32\u0E01\u0E33\u0E2B\u0E19\u0E14: ${n.origin} \u0E04\u0E27\u0E23\u0E21\u0E35${s} ${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E02\u0E36\u0E49\u0E19\u0E15\u0E49\u0E19\u0E14\u0E49\u0E27\u0E22 "${s.prefix}"`:s.format==="ends_with"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E25\u0E07\u0E17\u0E49\u0E32\u0E22\u0E14\u0E49\u0E27\u0E22 "${s.suffix}"`:s.format==="includes"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 "${s.includes}" \u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21`:s.format==="regex"?`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14 ${s.pattern}`:`\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: ${r[s.format]??n.format}`}case"not_multiple_of":return`\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E08\u0E33\u0E19\u0E27\u0E19\u0E17\u0E35\u0E48\u0E2B\u0E32\u0E23\u0E14\u0E49\u0E27\u0E22 ${n.divisor} \u0E44\u0E14\u0E49\u0E25\u0E07\u0E15\u0E31\u0E27`;case"unrecognized_keys":return`\u0E1E\u0E1A\u0E04\u0E35\u0E22\u0E4C\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E23\u0E39\u0E49\u0E08\u0E31\u0E01: ${k(n.keys,", ")}`;case"invalid_key":return`\u0E04\u0E35\u0E22\u0E4C\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;case"invalid_union":return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07: \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E22\u0E39\u0E40\u0E19\u0E35\u0E22\u0E19\u0E17\u0E35\u0E48\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E44\u0E27\u0E49";case"invalid_element":return`\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07\u0E43\u0E19 ${n.origin}`;default:return"\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"}}},"error");function MI(){return{localeError:ufe()}}i(MI,"default");var lfe=i(()=>{let e={string:{unit:"karakter",verb:"olmal\u0131"},file:{unit:"bayt",verb:"olmal\u0131"},array:{unit:"\xF6\u011Fe",verb:"olmal\u0131"},set:{unit:"\xF6\u011Fe",verb:"olmal\u0131"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"girdi",email:"e-posta adresi",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO tarih ve saat",date:"ISO tarih",time:"ISO saat",duration:"ISO s\xFCre",ipv4:"IPv4 adresi",ipv6:"IPv6 adresi",cidrv4:"IPv4 aral\u0131\u011F\u0131",cidrv6:"IPv6 aral\u0131\u011F\u0131",base64:"base64 ile \u015Fifrelenmi\u015F metin",base64url:"base64url ile \u015Fifrelenmi\u015F metin",json_string:"JSON dizesi",e164:"E.164 say\u0131s\u0131",jwt:"JWT",template_literal:"\u015Eablon dizesi"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Ge\xE7ersiz de\u011Fer: beklenen instanceof ${n.expected}, al\u0131nan ${c}`:`Ge\xE7ersiz de\u011Fer: beklenen ${s}, al\u0131nan ${c}`}case"invalid_value":return n.values.length===1?`Ge\xE7ersiz de\u011Fer: beklenen ${V(n.values[0])}`:`Ge\xE7ersiz se\xE7enek: a\u015Fa\u011F\u0131dakilerden biri olmal\u0131: ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${s}${n.maximum.toString()} ${a.unit??"\xF6\u011Fe"}`:`\xC7ok b\xFCy\xFCk: beklenen ${n.origin??"de\u011Fer"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${s}${n.minimum.toString()} ${a.unit}`:`\xC7ok k\xFC\xE7\xFCk: beklenen ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Ge\xE7ersiz metin: "${s.prefix}" ile ba\u015Flamal\u0131`:s.format==="ends_with"?`Ge\xE7ersiz metin: "${s.suffix}" ile bitmeli`:s.format==="includes"?`Ge\xE7ersiz metin: "${s.includes}" i\xE7ermeli`:s.format==="regex"?`Ge\xE7ersiz metin: ${s.pattern} desenine uymal\u0131`:`Ge\xE7ersiz ${r[s.format]??n.format}`}case"not_multiple_of":return`Ge\xE7ersiz say\u0131: ${n.divisor} ile tam b\xF6l\xFCnebilmeli`;case"unrecognized_keys":return`Tan\u0131nmayan anahtar${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} i\xE7inde ge\xE7ersiz anahtar`;case"invalid_union":return"Ge\xE7ersiz de\u011Fer";case"invalid_element":return`${n.origin} i\xE7inde ge\xE7ersiz de\u011Fer`;default:return"Ge\xE7ersiz de\u011Fer"}}},"error");function LI(){return{localeError:lfe()}}i(LI,"default");var dfe=i(()=>{let e={string:{unit:"\u0441\u0438\u043C\u0432\u043E\u043B\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},file:{unit:"\u0431\u0430\u0439\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},array:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"},set:{unit:"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432",verb:"\u043C\u0430\u0442\u0438\u043C\u0435"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456",email:"\u0430\u0434\u0440\u0435\u0441\u0430 \u0435\u043B\u0435\u043A\u0442\u0440\u043E\u043D\u043D\u043E\u0457 \u043F\u043E\u0448\u0442\u0438",url:"URL",emoji:"\u0435\u043C\u043E\u0434\u0437\u0456",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\u0434\u0430\u0442\u0430 \u0442\u0430 \u0447\u0430\u0441 ISO",date:"\u0434\u0430\u0442\u0430 ISO",time:"\u0447\u0430\u0441 ISO",duration:"\u0442\u0440\u0438\u0432\u0430\u043B\u0456\u0441\u0442\u044C ISO",ipv4:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv4",ipv6:"\u0430\u0434\u0440\u0435\u0441\u0430 IPv6",cidrv4:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv4",cidrv6:"\u0434\u0456\u0430\u043F\u0430\u0437\u043E\u043D IPv6",base64:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64",base64url:"\u0440\u044F\u0434\u043E\u043A \u0443 \u043A\u043E\u0434\u0443\u0432\u0430\u043D\u043D\u0456 base64url",json_string:"\u0440\u044F\u0434\u043E\u043A JSON",e164:"\u043D\u043E\u043C\u0435\u0440 E.164",jwt:"JWT",template_literal:"\u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"},o={nan:"NaN",number:"\u0447\u0438\u0441\u043B\u043E",array:"\u043C\u0430\u0441\u0438\u0432"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F instanceof ${n.expected}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${s}, \u043E\u0442\u0440\u0438\u043C\u0430\u043D\u043E ${c}`}case"invalid_value":return n.values.length===1?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F ${V(n.values[0])}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0430 \u043E\u043F\u0446\u0456\u044F: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F \u043E\u0434\u043D\u0435 \u0437 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"\u0435\u043B\u0435\u043C\u0435\u043D\u0442\u0456\u0432"}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u0432\u0435\u043B\u0438\u043A\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin??"\u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F"} \u0431\u0443\u0434\u0435 ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`\u0417\u0430\u043D\u0430\u0434\u0442\u043E \u043C\u0430\u043B\u0435: \u043E\u0447\u0456\u043A\u0443\u0454\u0442\u044C\u0441\u044F, \u0449\u043E ${n.origin} \u0431\u0443\u0434\u0435 ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043F\u043E\u0447\u0438\u043D\u0430\u0442\u0438\u0441\u044F \u0437 "${s.prefix}"`:s.format==="ends_with"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0437\u0430\u043A\u0456\u043D\u0447\u0443\u0432\u0430\u0442\u0438\u0441\u044F \u043D\u0430 "${s.suffix}"`:s.format==="includes"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u043C\u0456\u0441\u0442\u0438\u0442\u0438 "${s.includes}"`:s.format==="regex"?`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u0440\u044F\u0434\u043E\u043A: \u043F\u043E\u0432\u0438\u043D\u0435\u043D \u0432\u0456\u0434\u043F\u043E\u0432\u0456\u0434\u0430\u0442\u0438 \u0448\u0430\u0431\u043B\u043E\u043D\u0443 ${s.pattern}`:`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0447\u0438\u0441\u043B\u043E: \u043F\u043E\u0432\u0438\u043D\u043D\u043E \u0431\u0443\u0442\u0438 \u043A\u0440\u0430\u0442\u043D\u0438\u043C ${n.divisor}`;case"unrecognized_keys":return`\u041D\u0435\u0440\u043E\u0437\u043F\u0456\u0437\u043D\u0430\u043D\u0438\u0439 \u043A\u043B\u044E\u0447${n.keys.length>1?"\u0456":""}: ${k(n.keys,", ")}`;case"invalid_key":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0438\u0439 \u043A\u043B\u044E\u0447 \u0443 ${n.origin}`;case"invalid_union":return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456";case"invalid_element":return`\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0435 \u0437\u043D\u0430\u0447\u0435\u043D\u043D\u044F \u0443 ${n.origin}`;default:return"\u041D\u0435\u043F\u0440\u0430\u0432\u0438\u043B\u044C\u043D\u0456 \u0432\u0445\u0456\u0434\u043D\u0456 \u0434\u0430\u043D\u0456"}}},"error");function ud(){return{localeError:dfe()}}i(ud,"default");function zI(){return ud()}i(zI,"default");var pfe=i(()=>{let e={string:{unit:"\u062D\u0631\u0648\u0641",verb:"\u06C1\u0648\u0646\u0627"},file:{unit:"\u0628\u0627\u0626\u0679\u0633",verb:"\u06C1\u0648\u0646\u0627"},array:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"},set:{unit:"\u0622\u0626\u0679\u0645\u0632",verb:"\u06C1\u0648\u0646\u0627"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0627\u0646 \u067E\u0679",email:"\u0627\u06CC \u0645\u06CC\u0644 \u0627\u06CC\u0688\u0631\u06CC\u0633",url:"\u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644",emoji:"\u0627\u06CC\u0645\u0648\u062C\u06CC",uuid:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",uuidv4:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 4",uuidv6:"\u06CC\u0648 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC \u0648\u06CC 6",nanoid:"\u0646\u06CC\u0646\u0648 \u0622\u0626\u06CC \u0688\u06CC",guid:"\u062C\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",cuid2:"\u0633\u06CC \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC 2",ulid:"\u06CC\u0648 \u0627\u06CC\u0644 \u0622\u0626\u06CC \u0688\u06CC",xid:"\u0627\u06CC\u06A9\u0633 \u0622\u0626\u06CC \u0688\u06CC",ksuid:"\u06A9\u06D2 \u0627\u06CC\u0633 \u06CC\u0648 \u0622\u0626\u06CC \u0688\u06CC",datetime:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0688\u06CC\u0679 \u0679\u0627\u0626\u0645",date:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u062A\u0627\u0631\u06CC\u062E",time:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0648\u0642\u062A",duration:"\u0622\u0626\u06CC \u0627\u06CC\u0633 \u0627\u0648 \u0645\u062F\u062A",ipv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0627\u06CC\u0688\u0631\u06CC\u0633",ipv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0627\u06CC\u0688\u0631\u06CC\u0633",cidrv4:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 4 \u0631\u06CC\u0646\u062C",cidrv6:"\u0622\u0626\u06CC \u067E\u06CC \u0648\u06CC 6 \u0631\u06CC\u0646\u062C",base64:"\u0628\u06CC\u0633 64 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",base64url:"\u0628\u06CC\u0633 64 \u06CC\u0648 \u0622\u0631 \u0627\u06CC\u0644 \u0627\u0646 \u06A9\u0648\u0688\u0688 \u0633\u0679\u0631\u0646\u06AF",json_string:"\u062C\u06D2 \u0627\u06CC\u0633 \u0627\u0648 \u0627\u06CC\u0646 \u0633\u0679\u0631\u0646\u06AF",e164:"\u0627\u06CC 164 \u0646\u0645\u0628\u0631",jwt:"\u062C\u06D2 \u0688\u0628\u0644\u06CC\u0648 \u0679\u06CC",template_literal:"\u0627\u0646 \u067E\u0679"},o={nan:"NaN",number:"\u0646\u0645\u0628\u0631",array:"\u0622\u0631\u06D2",null:"\u0646\u0644"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: instanceof ${n.expected} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`:`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${s} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627\u060C ${c} \u0645\u0648\u0635\u0648\u0644 \u06C1\u0648\u0627`}case"invalid_value":return n.values.length===1?`\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679: ${V(n.values[0])} \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`:`\u063A\u0644\u0637 \u0622\u067E\u0634\u0646: ${k(n.values,"|")} \u0645\u06CC\u06BA \u0633\u06D2 \u0627\u06CC\u06A9 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u06D2 ${s}${n.maximum.toString()} ${a.unit??"\u0639\u0646\u0627\u0635\u0631"} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0628\u0691\u0627: ${n.origin??"\u0648\u06CC\u0644\u06CC\u0648"} \u06A9\u0627 ${s}${n.maximum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u06D2 ${s}${n.minimum.toString()} ${a.unit} \u06C1\u0648\u0646\u06D2 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u06D2`:`\u0628\u06C1\u062A \u0686\u06BE\u0648\u0679\u0627: ${n.origin} \u06A9\u0627 ${s}${n.minimum.toString()} \u06C1\u0648\u0646\u0627 \u0645\u062A\u0648\u0642\u0639 \u062A\u06BE\u0627`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.prefix}" \u0633\u06D2 \u0634\u0631\u0648\u0639 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="ends_with"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.suffix}" \u067E\u0631 \u062E\u062A\u0645 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="includes"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: "${s.includes}" \u0634\u0627\u0645\u0644 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:s.format==="regex"?`\u063A\u0644\u0637 \u0633\u0679\u0631\u0646\u06AF: \u067E\u06CC\u0679\u0631\u0646 ${s.pattern} \u0633\u06D2 \u0645\u06CC\u0686 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`:`\u063A\u0644\u0637 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u063A\u0644\u0637 \u0646\u0645\u0628\u0631: ${n.divisor} \u06A9\u0627 \u0645\u0636\u0627\u0639\u0641 \u06C1\u0648\u0646\u0627 \u0686\u0627\u06C1\u06CC\u06D2`;case"unrecognized_keys":return`\u063A\u06CC\u0631 \u062A\u0633\u0644\u06CC\u0645 \u0634\u062F\u06C1 \u06A9\u06CC${n.keys.length>1?"\u0632":""}: ${k(n.keys,"\u060C ")}`;case"invalid_key":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u06A9\u06CC`;case"invalid_union":return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679";case"invalid_element":return`${n.origin} \u0645\u06CC\u06BA \u063A\u0644\u0637 \u0648\u06CC\u0644\u06CC\u0648`;default:return"\u063A\u0644\u0637 \u0627\u0646 \u067E\u0679"}}},"error");function FI(){return{localeError:pfe()}}i(FI,"default");var ffe=i(()=>{let e={string:{unit:"belgi",verb:"bo\u2018lishi kerak"},file:{unit:"bayt",verb:"bo\u2018lishi kerak"},array:{unit:"element",verb:"bo\u2018lishi kerak"},set:{unit:"element",verb:"bo\u2018lishi kerak"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"kirish",email:"elektron pochta manzili",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO sana va vaqti",date:"ISO sana",time:"ISO vaqt",duration:"ISO davomiylik",ipv4:"IPv4 manzil",ipv6:"IPv6 manzil",mac:"MAC manzil",cidrv4:"IPv4 diapazon",cidrv6:"IPv6 diapazon",base64:"base64 kodlangan satr",base64url:"base64url kodlangan satr",json_string:"JSON satr",e164:"E.164 raqam",jwt:"JWT",template_literal:"kirish"},o={nan:"NaN",number:"raqam",array:"massiv"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`Noto\u2018g\u2018ri kirish: kutilgan instanceof ${n.expected}, qabul qilingan ${c}`:`Noto\u2018g\u2018ri kirish: kutilgan ${s}, qabul qilingan ${c}`}case"invalid_value":return n.values.length===1?`Noto\u2018g\u2018ri kirish: kutilgan ${V(n.values[0])}`:`Noto\u2018g\u2018ri variant: quyidagilardan biri kutilgan ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Juda katta: kutilgan ${n.origin??"qiymat"} ${s}${n.maximum.toString()} ${a.unit} ${a.verb}`:`Juda katta: kutilgan ${n.origin??"qiymat"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Juda kichik: kutilgan ${n.origin} ${s}${n.minimum.toString()} ${a.unit} ${a.verb}`:`Juda kichik: kutilgan ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Noto\u2018g\u2018ri satr: "${s.prefix}" bilan boshlanishi kerak`:s.format==="ends_with"?`Noto\u2018g\u2018ri satr: "${s.suffix}" bilan tugashi kerak`:s.format==="includes"?`Noto\u2018g\u2018ri satr: "${s.includes}" ni o\u2018z ichiga olishi kerak`:s.format==="regex"?`Noto\u2018g\u2018ri satr: ${s.pattern} shabloniga mos kelishi kerak`:`Noto\u2018g\u2018ri ${r[s.format]??n.format}`}case"not_multiple_of":return`Noto\u2018g\u2018ri raqam: ${n.divisor} ning karralisi bo\u2018lishi kerak`;case"unrecognized_keys":return`Noma\u2019lum kalit${n.keys.length>1?"lar":""}: ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} dagi kalit noto\u2018g\u2018ri`;case"invalid_union":return"Noto\u2018g\u2018ri kirish";case"invalid_element":return`${n.origin} da noto\u2018g\u2018ri qiymat`;default:return"Noto\u2018g\u2018ri kirish"}}},"error");function UI(){return{localeError:ffe()}}i(UI,"default");var mfe=i(()=>{let e={string:{unit:"k\xFD t\u1EF1",verb:"c\xF3"},file:{unit:"byte",verb:"c\xF3"},array:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"},set:{unit:"ph\u1EA7n t\u1EED",verb:"c\xF3"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u0111\u1EA7u v\xE0o",email:"\u0111\u1ECBa ch\u1EC9 email",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ng\xE0y gi\u1EDD ISO",date:"ng\xE0y ISO",time:"gi\u1EDD ISO",duration:"kho\u1EA3ng th\u1EDDi gian ISO",ipv4:"\u0111\u1ECBa ch\u1EC9 IPv4",ipv6:"\u0111\u1ECBa ch\u1EC9 IPv6",cidrv4:"d\u1EA3i IPv4",cidrv6:"d\u1EA3i IPv6",base64:"chu\u1ED7i m\xE3 h\xF3a base64",base64url:"chu\u1ED7i m\xE3 h\xF3a base64url",json_string:"chu\u1ED7i JSON",e164:"s\u1ED1 E.164",jwt:"JWT",template_literal:"\u0111\u1EA7u v\xE0o"},o={nan:"NaN",number:"s\u1ED1",array:"m\u1EA3ng"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i instanceof ${n.expected}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`:`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${s}, nh\u1EADn \u0111\u01B0\u1EE3c ${c}`}case"invalid_value":return n.values.length===1?`\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i ${V(n.values[0])}`:`T\xF9y ch\u1ECDn kh\xF4ng h\u1EE3p l\u1EC7: mong \u0111\u1EE3i m\u1ED9t trong c\xE1c gi\xE1 tr\u1ECB ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${a.verb} ${s}${n.maximum.toString()} ${a.unit??"ph\u1EA7n t\u1EED"}`:`Qu\xE1 l\u1EDBn: mong \u0111\u1EE3i ${n.origin??"gi\xE1 tr\u1ECB"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${a.verb} ${s}${n.minimum.toString()} ${a.unit}`:`Qu\xE1 nh\u1ECF: mong \u0111\u1EE3i ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i b\u1EAFt \u0111\u1EA7u b\u1EB1ng "${s.prefix}"`:s.format==="ends_with"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i k\u1EBFt th\xFAc b\u1EB1ng "${s.suffix}"`:s.format==="includes"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i bao g\u1ED3m "${s.includes}"`:s.format==="regex"?`Chu\u1ED7i kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i kh\u1EDBp v\u1EDBi m\u1EABu ${s.pattern}`:`${r[s.format]??n.format} kh\xF4ng h\u1EE3p l\u1EC7`}case"not_multiple_of":return`S\u1ED1 kh\xF4ng h\u1EE3p l\u1EC7: ph\u1EA3i l\xE0 b\u1ED9i s\u1ED1 c\u1EE7a ${n.divisor}`;case"unrecognized_keys":return`Kh\xF3a kh\xF4ng \u0111\u01B0\u1EE3c nh\u1EADn d\u1EA1ng: ${k(n.keys,", ")}`;case"invalid_key":return`Kh\xF3a kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;case"invalid_union":return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7";case"invalid_element":return`Gi\xE1 tr\u1ECB kh\xF4ng h\u1EE3p l\u1EC7 trong ${n.origin}`;default:return"\u0110\u1EA7u v\xE0o kh\xF4ng h\u1EE3p l\u1EC7"}}},"error");function jI(){return{localeError:mfe()}}i(jI,"default");var gfe=i(()=>{let e={string:{unit:"\u5B57\u7B26",verb:"\u5305\u542B"},file:{unit:"\u5B57\u8282",verb:"\u5305\u542B"},array:{unit:"\u9879",verb:"\u5305\u542B"},set:{unit:"\u9879",verb:"\u5305\u542B"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u8F93\u5165",email:"\u7535\u5B50\u90AE\u4EF6",url:"URL",emoji:"\u8868\u60C5\u7B26\u53F7",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO\u65E5\u671F\u65F6\u95F4",date:"ISO\u65E5\u671F",time:"ISO\u65F6\u95F4",duration:"ISO\u65F6\u957F",ipv4:"IPv4\u5730\u5740",ipv6:"IPv6\u5730\u5740",cidrv4:"IPv4\u7F51\u6BB5",cidrv6:"IPv6\u7F51\u6BB5",base64:"base64\u7F16\u7801\u5B57\u7B26\u4E32",base64url:"base64url\u7F16\u7801\u5B57\u7B26\u4E32",json_string:"JSON\u5B57\u7B26\u4E32",e164:"E.164\u53F7\u7801",jwt:"JWT",template_literal:"\u8F93\u5165"},o={nan:"NaN",number:"\u6570\u5B57",array:"\u6570\u7EC4",null:"\u7A7A\u503C(null)"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B instanceof ${n.expected}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`:`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${s}\uFF0C\u5B9E\u9645\u63A5\u6536 ${c}`}case"invalid_value":return n.values.length===1?`\u65E0\u6548\u8F93\u5165\uFF1A\u671F\u671B ${V(n.values[0])}`:`\u65E0\u6548\u9009\u9879\uFF1A\u671F\u671B\u4EE5\u4E0B\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${s}${n.maximum.toString()} ${a.unit??"\u4E2A\u5143\u7D20"}`:`\u6570\u503C\u8FC7\u5927\uFF1A\u671F\u671B ${n.origin??"\u503C"} ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${s}${n.minimum.toString()} ${a.unit}`:`\u6570\u503C\u8FC7\u5C0F\uFF1A\u671F\u671B ${n.origin} ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${s.prefix}" \u5F00\u5934`:s.format==="ends_with"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u4EE5 "${s.suffix}" \u7ED3\u5C3E`:s.format==="includes"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u5305\u542B "${s.includes}"`:s.format==="regex"?`\u65E0\u6548\u5B57\u7B26\u4E32\uFF1A\u5FC5\u987B\u6EE1\u8DB3\u6B63\u5219\u8868\u8FBE\u5F0F ${s.pattern}`:`\u65E0\u6548${r[s.format]??n.format}`}case"not_multiple_of":return`\u65E0\u6548\u6570\u5B57\uFF1A\u5FC5\u987B\u662F ${n.divisor} \u7684\u500D\u6570`;case"unrecognized_keys":return`\u51FA\u73B0\u672A\u77E5\u7684\u952E(key): ${k(n.keys,", ")}`;case"invalid_key":return`${n.origin} \u4E2D\u7684\u952E(key)\u65E0\u6548`;case"invalid_union":return"\u65E0\u6548\u8F93\u5165";case"invalid_element":return`${n.origin} \u4E2D\u5305\u542B\u65E0\u6548\u503C(value)`;default:return"\u65E0\u6548\u8F93\u5165"}}},"error");function BI(){return{localeError:gfe()}}i(BI,"default");var hfe=i(()=>{let e={string:{unit:"\u5B57\u5143",verb:"\u64C1\u6709"},file:{unit:"\u4F4D\u5143\u7D44",verb:"\u64C1\u6709"},array:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"},set:{unit:"\u9805\u76EE",verb:"\u64C1\u6709"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u8F38\u5165",email:"\u90F5\u4EF6\u5730\u5740",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"ISO \u65E5\u671F\u6642\u9593",date:"ISO \u65E5\u671F",time:"ISO \u6642\u9593",duration:"ISO \u671F\u9593",ipv4:"IPv4 \u4F4D\u5740",ipv6:"IPv6 \u4F4D\u5740",cidrv4:"IPv4 \u7BC4\u570D",cidrv6:"IPv6 \u7BC4\u570D",base64:"base64 \u7DE8\u78BC\u5B57\u4E32",base64url:"base64url \u7DE8\u78BC\u5B57\u4E32",json_string:"JSON \u5B57\u4E32",e164:"E.164 \u6578\u503C",jwt:"JWT",template_literal:"\u8F38\u5165"},o={nan:"NaN"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA instanceof ${n.expected}\uFF0C\u4F46\u6536\u5230 ${c}`:`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${s}\uFF0C\u4F46\u6536\u5230 ${c}`}case"invalid_value":return n.values.length===1?`\u7121\u6548\u7684\u8F38\u5165\u503C\uFF1A\u9810\u671F\u70BA ${V(n.values[0])}`:`\u7121\u6548\u7684\u9078\u9805\uFF1A\u9810\u671F\u70BA\u4EE5\u4E0B\u5176\u4E2D\u4E4B\u4E00 ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${s}${n.maximum.toString()} ${a.unit??"\u500B\u5143\u7D20"}`:`\u6578\u503C\u904E\u5927\uFF1A\u9810\u671F ${n.origin??"\u503C"} \u61C9\u70BA ${s}${n.maximum.toString()}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${s}${n.minimum.toString()} ${a.unit}`:`\u6578\u503C\u904E\u5C0F\uFF1A\u9810\u671F ${n.origin} \u61C9\u70BA ${s}${n.minimum.toString()}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${s.prefix}" \u958B\u982D`:s.format==="ends_with"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u4EE5 "${s.suffix}" \u7D50\u5C3E`:s.format==="includes"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u5305\u542B "${s.includes}"`:s.format==="regex"?`\u7121\u6548\u7684\u5B57\u4E32\uFF1A\u5FC5\u9808\u7B26\u5408\u683C\u5F0F ${s.pattern}`:`\u7121\u6548\u7684 ${r[s.format]??n.format}`}case"not_multiple_of":return`\u7121\u6548\u7684\u6578\u5B57\uFF1A\u5FC5\u9808\u70BA ${n.divisor} \u7684\u500D\u6578`;case"unrecognized_keys":return`\u7121\u6CD5\u8B58\u5225\u7684\u9375\u503C${n.keys.length>1?"\u5011":""}\uFF1A${k(n.keys,"\u3001")}`;case"invalid_key":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u9375\u503C`;case"invalid_union":return"\u7121\u6548\u7684\u8F38\u5165\u503C";case"invalid_element":return`${n.origin} \u4E2D\u6709\u7121\u6548\u7684\u503C`;default:return"\u7121\u6548\u7684\u8F38\u5165\u503C"}}},"error");function VI(){return{localeError:hfe()}}i(VI,"default");var yfe=i(()=>{let e={string:{unit:"\xE0mi",verb:"n\xED"},file:{unit:"bytes",verb:"n\xED"},array:{unit:"nkan",verb:"n\xED"},set:{unit:"nkan",verb:"n\xED"}};function t(n){return e[n]??null}i(t,"getSizing");let r={regex:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9",email:"\xE0d\xEDr\u1EB9\u0301s\xEC \xECm\u1EB9\u0301l\xEC",url:"URL",emoji:"emoji",uuid:"UUID",uuidv4:"UUIDv4",uuidv6:"UUIDv6",nanoid:"nanoid",guid:"GUID",cuid:"cuid",cuid2:"cuid2",ulid:"ULID",xid:"XID",ksuid:"KSUID",datetime:"\xE0k\xF3k\xF2 ISO",date:"\u1ECDj\u1ECD\u0301 ISO",time:"\xE0k\xF3k\xF2 ISO",duration:"\xE0k\xF3k\xF2 t\xF3 p\xE9 ISO",ipv4:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv4",ipv6:"\xE0d\xEDr\u1EB9\u0301s\xEC IPv6",cidrv4:"\xE0gb\xE8gb\xE8 IPv4",cidrv6:"\xE0gb\xE8gb\xE8 IPv6",base64:"\u1ECD\u0300r\u1ECD\u0300 t\xED a k\u1ECD\u0301 n\xED base64",base64url:"\u1ECD\u0300r\u1ECD\u0300 base64url",json_string:"\u1ECD\u0300r\u1ECD\u0300 JSON",e164:"n\u1ECD\u0301mb\xE0 E.164",jwt:"JWT",template_literal:"\u1EB9\u0300r\u1ECD \xECb\xE1w\u1ECDl\xE9"},o={nan:"NaN",number:"n\u1ECD\u0301mb\xE0",array:"akop\u1ECD"};return n=>{switch(n.code){case"invalid_type":{let s=o[n.expected]??n.expected,a=G(n.input),c=o[a]??a;return/^[A-Z]/.test(n.expected)?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi instanceof ${n.expected}, \xE0m\u1ECD\u0300 a r\xED ${c}`:`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${s}, \xE0m\u1ECD\u0300 a r\xED ${c}`}case"invalid_value":return n.values.length===1?`\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e: a n\xED l\xE1ti fi ${V(n.values[0])}`:`\xC0\u1E63\xE0y\xE0n a\u1E63\xEC\u1E63e: yan \u1ECD\u0300kan l\xE1ra ${k(n.values,"|")}`;case"too_big":{let s=n.inclusive?"<=":"<",a=t(n.origin);return a?`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin??"iye"} ${a.verb} ${s}${n.maximum} ${a.unit}`:`T\xF3 p\u1ECD\u0300 j\xF9: a n\xED l\xE1ti j\u1EB9\u0301 ${s}${n.maximum}`}case"too_small":{let s=n.inclusive?">=":">",a=t(n.origin);return a?`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 p\xE9 ${n.origin} ${a.verb} ${s}${n.minimum} ${a.unit}`:`K\xE9r\xE9 ju: a n\xED l\xE1ti j\u1EB9\u0301 ${s}${n.minimum}`}case"invalid_format":{let s=n;return s.format==="starts_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\u1EB9\u0300r\u1EB9\u0300 p\u1EB9\u0300l\xFA "${s.prefix}"`:s.format==="ends_with"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 par\xED p\u1EB9\u0300l\xFA "${s.suffix}"`:s.format==="includes"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 n\xED "${s.includes}"`:s.format==="regex"?`\u1ECC\u0300r\u1ECD\u0300 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 b\xE1 \xE0p\u1EB9\u1EB9r\u1EB9 mu ${s.pattern}`:`A\u1E63\xEC\u1E63e: ${r[s.format]??n.format}`}case"not_multiple_of":return`N\u1ECD\u0301mb\xE0 a\u1E63\xEC\u1E63e: gb\u1ECD\u0301d\u1ECD\u0300 j\u1EB9\u0301 \xE8y\xE0 p\xEDp\xEDn ti ${n.divisor}`;case"unrecognized_keys":return`B\u1ECDt\xECn\xEC \xE0\xECm\u1ECD\u0300: ${k(n.keys,", ")}`;case"invalid_key":return`B\u1ECDt\xECn\xEC a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;case"invalid_union":return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e";case"invalid_element":return`Iye a\u1E63\xEC\u1E63e n\xEDn\xFA ${n.origin}`;default:return"\xCCb\xE1w\u1ECDl\xE9 a\u1E63\xEC\u1E63e"}}},"error");function HI(){return{localeError:yfe()}}i(HI,"default");var PF,xh=Symbol("ZodOutput"),bh=Symbol("ZodInput"),vh=class{static{i(this,"$ZodRegistry")}constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...r){let o=r[0];return this._map.set(t,o),o&&typeof o=="object"&&"id"in o&&this._idmap.set(o.id,t),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){let r=this._map.get(t);return r&&typeof r=="object"&&"id"in r&&this._idmap.delete(r.id),this._map.delete(t),this}get(t){let r=t._zod.parent;if(r){let o={...this.get(r)??{}};delete o.id;let n={...o,...this._map.get(t)};return Object.keys(n).length?n:void 0}return this._map.get(t)}has(t){return this._map.has(t)}};function ld(){return new vh}i(ld,"registry");(PF=globalThis).__zod_globalRegistry??(PF.__zod_globalRegistry=ld());var Lt=globalThis.__zod_globalRegistry;function dd(e,t){return new e({type:"string",...B(t)})}i(dd,"_string");function pd(e,t){return new e({type:"string",coerce:!0,...B(t)})}i(pd,"_coercedString");function fd(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...B(t)})}i(fd,"_email");function Nc(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...B(t)})}i(Nc,"_guid");function md(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...B(t)})}i(md,"_uuid");function gd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...B(t)})}i(gd,"_uuidv4");function hd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...B(t)})}i(hd,"_uuidv6");function yd(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...B(t)})}i(yd,"_uuidv7");function qs(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...B(t)})}i(qs,"_url");function Ed(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...B(t)})}i(Ed,"_emoji");function Sd(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...B(t)})}i(Sd,"_nanoid");function _d(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...B(t)})}i(_d,"_cuid");function vd(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...B(t)})}i(vd,"_cuid2");function xd(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...B(t)})}i(xd,"_ulid");function bd(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...B(t)})}i(bd,"_xid");function Pd(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...B(t)})}i(Pd,"_ksuid");function Cd(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...B(t)})}i(Cd,"_ipv4");function Ad(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...B(t)})}i(Ad,"_ipv6");function Ph(e,t){return new e({type:"string",format:"mac",check:"string_format",abort:!1,...B(t)})}i(Ph,"_mac");function Td(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...B(t)})}i(Td,"_cidrv4");function Id(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...B(t)})}i(Id,"_cidrv6");function wd(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...B(t)})}i(wd,"_base64");function Rd(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...B(t)})}i(Rd,"_base64url");function $d(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...B(t)})}i($d,"_e164");function Od(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...B(t)})}i(Od,"_jwt");var Ch={Any:null,Minute:-1,Second:0,Millisecond:3,Microsecond:6};function Dd(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...B(t)})}i(Dd,"_isoDateTime");function Nd(e,t){return new e({type:"string",format:"date",check:"string_format",...B(t)})}i(Nd,"_isoDate");function kd(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...B(t)})}i(kd,"_isoTime");function Md(e,t){return new e({type:"string",format:"duration",check:"string_format",...B(t)})}i(Md,"_isoDuration");function Ld(e,t){return new e({type:"number",checks:[],...B(t)})}i(Ld,"_number");function zd(e,t){return new e({type:"number",coerce:!0,checks:[],...B(t)})}i(zd,"_coercedNumber");function Fd(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...B(t)})}i(Fd,"_int");function Ah(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float32",...B(t)})}i(Ah,"_float32");function Th(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"float64",...B(t)})}i(Th,"_float64");function Ih(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"int32",...B(t)})}i(Ih,"_int32");function wh(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"uint32",...B(t)})}i(wh,"_uint32");function Ud(e,t){return new e({type:"boolean",...B(t)})}i(Ud,"_boolean");function jd(e,t){return new e({type:"boolean",coerce:!0,...B(t)})}i(jd,"_coercedBoolean");function Rh(e,t){return new e({type:"bigint",...B(t)})}i(Rh,"_bigint");function Bd(e,t){return new e({type:"bigint",coerce:!0,...B(t)})}i(Bd,"_coercedBigint");function $h(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"int64",...B(t)})}i($h,"_int64");function Oh(e,t){return new e({type:"bigint",check:"bigint_format",abort:!1,format:"uint64",...B(t)})}i(Oh,"_uint64");function Dh(e,t){return new e({type:"symbol",...B(t)})}i(Dh,"_symbol");function Nh(e,t){return new e({type:"undefined",...B(t)})}i(Nh,"_undefined");function kh(e,t){return new e({type:"null",...B(t)})}i(kh,"_null");function Vd(e){return new e({type:"any"})}i(Vd,"_any");function Hd(e){return new e({type:"unknown"})}i(Hd,"_unknown");function Mh(e,t){return new e({type:"never",...B(t)})}i(Mh,"_never");function Gd(e,t){return new e({type:"void",...B(t)})}i(Gd,"_void");function Lh(e,t){return new e({type:"date",...B(t)})}i(Lh,"_date");function qd(e,t){return new e({type:"date",coerce:!0,...B(t)})}i(qd,"_coercedDate");function zh(e,t){return new e({type:"nan",...B(t)})}i(zh,"_nan");function Dn(e,t){return new Cg({check:"less_than",...B(t),value:e,inclusive:!1})}i(Dn,"_lt");function mr(e,t){return new Cg({check:"less_than",...B(t),value:e,inclusive:!0})}i(mr,"_lte");function Nn(e,t){return new Ag({check:"greater_than",...B(t),value:e,inclusive:!1})}i(Nn,"_gt");function Tt(e,t){return new Ag({check:"greater_than",...B(t),value:e,inclusive:!0})}i(Tt,"_gte");function Wd(e){return Nn(0,e)}i(Wd,"_positive");function Zd(e){return Dn(0,e)}i(Zd,"_negative");function Kd(e){return mr(0,e)}i(Kd,"_nonpositive");function Xd(e){return Tt(0,e)}i(Xd,"_nonnegative");function $o(e,t){return new $T({check:"multiple_of",...B(t),value:e})}i($o,"_multipleOf");function Oo(e,t){return new NT({check:"max_size",...B(t),maximum:e})}i(Oo,"_maxSize");function kn(e,t){return new kT({check:"min_size",...B(t),minimum:e})}i(kn,"_minSize");function bi(e,t){return new MT({check:"size_equals",...B(t),size:e})}i(bi,"_size");function Pi(e,t){return new LT({check:"max_length",...B(t),maximum:e})}i(Pi,"_maxLength");function vt(e,t){return new zT({check:"min_length",...B(t),minimum:e})}i(vt,"_minLength");function Ci(e,t){return new FT({check:"length_equals",...B(t),length:e})}i(Ci,"_length");function Ht(e,t){return new UT({check:"string_format",format:"regex",...B(t),pattern:e})}i(Ht,"_regex");function Ws(e){return new jT({check:"string_format",format:"lowercase",...B(e)})}i(Ws,"_lowercase");function Zs(e){return new BT({check:"string_format",format:"uppercase",...B(e)})}i(Zs,"_uppercase");function Ks(e,t){return new VT({check:"string_format",format:"includes",...B(t),includes:e})}i(Ks,"_includes");function Xs(e,t){return new HT({check:"string_format",format:"starts_with",...B(t),prefix:e})}i(Xs,"_startsWith");function Js(e,t){return new GT({check:"string_format",format:"ends_with",...B(t),suffix:e})}i(Js,"_endsWith");function Jd(e,t,r){return new qT({check:"property",property:e,schema:t,...B(r)})}i(Jd,"_property");function Ys(e,t){return new WT({check:"mime_type",mime:e,...B(t)})}i(Ys,"_mime");function dn(e){return new ZT({check:"overwrite",tx:e})}i(dn,"_overwrite");function Qs(e){return dn(t=>t.normalize(e))}i(Qs,"_normalize");function ea(){return dn(e=>e.trim())}i(ea,"_trim");function ta(){return dn(e=>e.toLowerCase())}i(ta,"_toLowerCase");function ra(){return dn(e=>e.toUpperCase())}i(ra,"_toUpperCase");function kc(){return dn(e=>JA(e))}i(kc,"_slugify");function GI(e,t,r){return new e({type:"array",element:t,...B(r)})}i(GI,"_array");function Sfe(e,t,r){return new e({type:"union",options:t,...B(r)})}i(Sfe,"_union");function _fe(e,t,r){return new e({type:"union",options:t,inclusive:!1,...B(r)})}i(_fe,"_xor");function vfe(e,t,r,o){return new e({type:"union",options:r,discriminator:t,...B(o)})}i(vfe,"_discriminatedUnion");function xfe(e,t,r){return new e({type:"intersection",left:t,right:r})}i(xfe,"_intersection");function bfe(e,t,r,o){let n=r instanceof ge,s=n?o:r,a=n?r:null;return new e({type:"tuple",items:t,rest:a,...B(s)})}i(bfe,"_tuple");function Pfe(e,t,r,o){return new e({type:"record",keyType:t,valueType:r,...B(o)})}i(Pfe,"_record");function Cfe(e,t,r,o){return new e({type:"map",keyType:t,valueType:r,...B(o)})}i(Cfe,"_map");function Afe(e,t,r){return new e({type:"set",valueType:t,...B(r)})}i(Afe,"_set");function Tfe(e,t,r){let o=Array.isArray(t)?Object.fromEntries(t.map(n=>[n,n])):t;return new e({type:"enum",entries:o,...B(r)})}i(Tfe,"_enum");function Ife(e,t,r){return new e({type:"enum",entries:t,...B(r)})}i(Ife,"_nativeEnum");function wfe(e,t,r){return new e({type:"literal",values:Array.isArray(t)?t:[t],...B(r)})}i(wfe,"_literal");function Fh(e,t){return new e({type:"file",...B(t)})}i(Fh,"_file");function Rfe(e,t){return new e({type:"transform",transform:t})}i(Rfe,"_transform");function $fe(e,t){return new e({type:"optional",innerType:t})}i($fe,"_optional");function Ofe(e,t){return new e({type:"nullable",innerType:t})}i(Ofe,"_nullable");function Dfe(e,t,r){return new e({type:"default",innerType:t,get defaultValue(){return typeof r=="function"?r():pg(r)}})}i(Dfe,"_default");function Nfe(e,t,r){return new e({type:"nonoptional",innerType:t,...B(r)})}i(Nfe,"_nonoptional");function kfe(e,t){return new e({type:"success",innerType:t})}i(kfe,"_success");function Mfe(e,t,r){return new e({type:"catch",innerType:t,catchValue:typeof r=="function"?r:()=>r})}i(Mfe,"_catch");function Lfe(e,t,r){return new e({type:"pipe",in:t,out:r})}i(Lfe,"_pipe");function zfe(e,t){return new e({type:"readonly",innerType:t})}i(zfe,"_readonly");function Ffe(e,t,r){return new e({type:"template_literal",parts:t,...B(r)})}i(Ffe,"_templateLiteral");function Ufe(e,t){return new e({type:"lazy",getter:t})}i(Ufe,"_lazy");function jfe(e,t){return new e({type:"promise",innerType:t})}i(jfe,"_promise");function Yd(e,t,r){let o=B(r);return o.abort??(o.abort=!0),new e({type:"custom",check:"custom",fn:t,...o})}i(Yd,"_custom");function Qd(e,t,r){return new e({type:"custom",check:"custom",fn:t,...B(r)})}i(Qd,"_refine");function Uh(e){let t=CF(r=>(r.addIssue=o=>{if(typeof o=="string")r.issues.push(Ec(o,r.value,t._zod.def));else{let n=o;n.fatal&&(n.continue=!1),n.code??(n.code="custom"),n.input??(n.input=r.value),n.inst??(n.inst=t),n.continue??(n.continue=!t._zod.def.abort),r.issues.push(Ec(n))}},e(r.value,r)));return t}i(Uh,"_superRefine");function CF(e,t){let r=new rt({check:"custom",...B(t)});return r._zod.check=e,r}i(CF,"_check");function jh(e){let t=new rt({check:"describe"});return t._zod.onattach=[r=>{let o=Lt.get(r)??{};Lt.add(r,{...o,description:e})}],t._zod.check=()=>{},t}i(jh,"describe");function Bh(e){let t=new rt({check:"meta"});return t._zod.onattach=[r=>{let o=Lt.get(r)??{};Lt.add(r,{...o,...e})}],t._zod.check=()=>{},t}i(Bh,"meta");function Vh(e,t){let r=B(t),o=r.truthy??["true","1","yes","on","y","enabled"],n=r.falsy??["false","0","no","off","n","disabled"];r.case!=="sensitive"&&(o=o.map(m=>typeof m=="string"?m.toLowerCase():m),n=n.map(m=>typeof m=="string"?m.toLowerCase():m));let s=new Set(o),a=new Set(n),c=e.Codec??$c,u=e.Boolean??Hs,l=e.String??Ro,p=new l({type:"string",error:r.error}),f=new u({type:"boolean",error:r.error}),y=new c({type:"pipe",in:p,out:f,transform:i(((m,_)=>{let b=m;return r.case!=="sensitive"&&(b=b.toLowerCase()),s.has(b)?!0:a.has(b)?!1:(_.issues.push({code:"invalid_value",expected:"stringbool",values:[...s,...a],input:_.value,inst:y,continue:!1}),{})}),"transform"),reverseTransform:i(((m,_)=>m===!0?o[0]||"true":n[0]||"false"),"reverseTransform"),error:r.error});return y}i(Vh,"_stringbool");function na(e,t,r,o={}){let n=B(o),s={...B(o),check:"string_format",type:"string",format:t,fn:typeof r=="function"?r:c=>r.test(c),...n};return r instanceof RegExp&&(s.pattern=r),new e(s)}i(na,"_stringFormat");function Ai(e){let t=e?.target??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:e?.metadata??Lt,target:t,unrepresentable:e?.unrepresentable??"throw",override:e?.override??(()=>{}),io:e?.io??"output",counter:0,seen:new Map,cycles:e?.cycles??"ref",reused:e?.reused??"inline",external:e?.external??void 0}}i(Ai,"initializeContext");function et(e,t,r={path:[],schemaPath:[]}){var o;let n=e._zod.def,s=t.seen.get(e);if(s)return s.count++,r.schemaPath.includes(e)&&(s.cycle=r.path),s.schema;let a={schema:{},count:1,cycle:void 0,path:r.path};t.seen.set(e,a);let c=e._zod.toJSONSchema?.();if(c)a.schema=c;else{let p={...r,schemaPath:[...r.schemaPath,e],path:r.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,p);else{let y=a.schema,m=t.processors[n.type];if(!m)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${n.type}`);m(e,t,y,p)}let f=e._zod.parent;f&&(a.ref||(a.ref=f),et(f,t,p),t.seen.get(f).isParent=!0)}let u=t.metadataRegistry.get(e);return u&&Object.assign(a.schema,u),t.io==="input"&&gr(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((o=a.schema).default??(o.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}i(et,"process");function Ti(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=new Map;for(let a of e.seen.entries()){let c=e.metadataRegistry.get(a[0])?.id;if(c){let u=o.get(c);if(u&&u!==a[0])throw new Error(`Duplicate schema id "${c}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);o.set(c,a[0])}}let n=i(a=>{let c=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){let f=e.external.registry.get(a[0])?.id,y=e.external.uri??(_=>_);if(f)return{ref:y(f)};let m=a[1].defId??a[1].schema.id??`schema${e.counter++}`;return a[1].defId=m,{defId:m,ref:`${y("__shared")}#/${c}/${m}`}}if(a[1]===r)return{ref:"#"};let l=`#/${c}/`,p=a[1].schema.id??`__schema${e.counter++}`;return{defId:p,ref:l+p}},"makeURI"),s=i(a=>{if(a[1].schema.$ref)return;let c=a[1],{ref:u,defId:l}=n(a);c.def={...c.schema},l&&(c.defId=l);let p=c.schema;for(let f in p)delete p[f];p.$ref=u},"extractToDef");if(e.cycles==="throw")for(let a of e.seen.entries()){let c=a[1];if(c.cycle)throw new Error(`Cycle detected: #/${c.cycle?.join("/")}/<root>
123
+
124
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let a of e.seen.entries()){let c=a[1];if(t===a[0]){s(a);continue}if(e.external){let l=e.external.registry.get(a[0])?.id;if(t!==a[0]&&l){s(a);continue}}if(e.metadataRegistry.get(a[0])?.id){s(a);continue}if(c.cycle){s(a);continue}if(c.count>1&&e.reused==="ref"){s(a);continue}}}i(Ti,"extractDefs");function Ii(e,t){let r=e.seen.get(t);if(!r)throw new Error("Unprocessed schema. This is a bug in Zod.");let o=i(a=>{let c=e.seen.get(a);if(c.ref===null)return;let u=c.def??c.schema,l={...u},p=c.ref;if(c.ref=null,p){o(p);let y=e.seen.get(p),m=y.schema;if(m.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(u.allOf=u.allOf??[],u.allOf.push(m)):Object.assign(u,m),Object.assign(u,l),a._zod.parent===p)for(let b in u)b==="$ref"||b==="allOf"||b in l||delete u[b];if(m.$ref&&y.def)for(let b in u)b==="$ref"||b==="allOf"||b in y.def&&JSON.stringify(u[b])===JSON.stringify(y.def[b])&&delete u[b]}let f=a._zod.parent;if(f&&f!==p){o(f);let y=e.seen.get(f);if(y?.schema.$ref&&(u.$ref=y.schema.$ref,y.def))for(let m in u)m==="$ref"||m==="allOf"||m in y.def&&JSON.stringify(u[m])===JSON.stringify(y.def[m])&&delete u[m]}e.override({zodSchema:a,jsonSchema:u,path:c.path??[]})},"flattenRef");for(let a of[...e.seen.entries()].reverse())o(a[0]);let n={};if(e.target==="draft-2020-12"?n.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?n.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?n.$schema="http://json-schema.org/draft-04/schema#":e.target,e.external?.uri){let a=e.external.registry.get(t)?.id;if(!a)throw new Error("Schema is missing an `id` property");n.$id=e.external.uri(a)}Object.assign(n,r.def??r.schema);let s=e.external?.defs??{};for(let a of e.seen.entries()){let c=a[1];c.def&&c.defId&&(s[c.defId]=c.def)}e.external||Object.keys(s).length>0&&(e.target==="draft-2020-12"?n.$defs=s:n.definitions=s);try{let a=JSON.parse(JSON.stringify(n));return Object.defineProperty(a,"~standard",{value:{...t["~standard"],jsonSchema:{input:Mc(t,"input",e.processors),output:Mc(t,"output",e.processors)}},enumerable:!1,writable:!1}),a}catch{throw new Error("Error converting schema to JSON.")}}i(Ii,"finalize");function gr(e,t){let r=t??{seen:new Set};if(r.seen.has(e))return!1;r.seen.add(e);let o=e._zod.def;if(o.type==="transform")return!0;if(o.type==="array")return gr(o.element,r);if(o.type==="set")return gr(o.valueType,r);if(o.type==="lazy")return gr(o.getter(),r);if(o.type==="promise"||o.type==="optional"||o.type==="nonoptional"||o.type==="nullable"||o.type==="readonly"||o.type==="default"||o.type==="prefault")return gr(o.innerType,r);if(o.type==="intersection")return gr(o.left,r)||gr(o.right,r);if(o.type==="record"||o.type==="map")return gr(o.keyType,r)||gr(o.valueType,r);if(o.type==="pipe")return gr(o.in,r)||gr(o.out,r);if(o.type==="object"){for(let n in o.shape)if(gr(o.shape[n],r))return!0;return!1}if(o.type==="union"){for(let n of o.options)if(gr(n,r))return!0;return!1}if(o.type==="tuple"){for(let n of o.items)if(gr(n,r))return!0;return!!(o.rest&&gr(o.rest,r))}return!1}i(gr,"isTransforming");var qI=i((e,t={})=>r=>{let o=Ai({...r,processors:t});return et(e,o),Ti(o,e),Ii(o,e)},"createToJSONSchemaMethod"),Mc=i((e,t,r={})=>o=>{let{libraryOptions:n,target:s}=o??{},a=Ai({...n??{},target:s,io:t,processors:r});return et(e,a),Ti(a,e),Ii(a,e)},"createStandardJSONSchemaMethod");var Bfe={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},WI=i((e,t,r,o)=>{let n=r;n.type="string";let{minimum:s,maximum:a,format:c,patterns:u,contentEncoding:l}=e._zod.bag;if(typeof s=="number"&&(n.minLength=s),typeof a=="number"&&(n.maxLength=a),c&&(n.format=Bfe[c]??c,n.format===""&&delete n.format,c==="time"&&delete n.format),l&&(n.contentEncoding=l),u&&u.size>0){let p=[...u];p.length===1?n.pattern=p[0].source:p.length>1&&(n.allOf=[...p.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},"stringProcessor"),ZI=i((e,t,r,o)=>{let n=r,{minimum:s,maximum:a,format:c,multipleOf:u,exclusiveMaximum:l,exclusiveMinimum:p}=e._zod.bag;typeof c=="string"&&c.includes("int")?n.type="integer":n.type="number",typeof p=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.minimum=p,n.exclusiveMinimum=!0):n.exclusiveMinimum=p),typeof s=="number"&&(n.minimum=s,typeof p=="number"&&t.target!=="draft-04"&&(p>=s?delete n.minimum:delete n.exclusiveMinimum)),typeof l=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(n.maximum=l,n.exclusiveMaximum=!0):n.exclusiveMaximum=l),typeof a=="number"&&(n.maximum=a,typeof l=="number"&&t.target!=="draft-04"&&(l<=a?delete n.maximum:delete n.exclusiveMaximum)),typeof u=="number"&&(n.multipleOf=u)},"numberProcessor"),KI=i((e,t,r,o)=>{r.type="boolean"},"booleanProcessor"),XI=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("BigInt cannot be represented in JSON Schema")},"bigintProcessor"),JI=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Symbols cannot be represented in JSON Schema")},"symbolProcessor"),YI=i((e,t,r,o)=>{t.target==="openapi-3.0"?(r.type="string",r.nullable=!0,r.enum=[null]):r.type="null"},"nullProcessor"),QI=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Undefined cannot be represented in JSON Schema")},"undefinedProcessor"),e0=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Void cannot be represented in JSON Schema")},"voidProcessor"),t0=i((e,t,r,o)=>{r.not={}},"neverProcessor"),r0=i((e,t,r,o)=>{},"anyProcessor"),n0=i((e,t,r,o)=>{},"unknownProcessor"),o0=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Date cannot be represented in JSON Schema")},"dateProcessor"),i0=i((e,t,r,o)=>{let n=e._zod.def,s=$l(n.entries);s.every(a=>typeof a=="number")&&(r.type="number"),s.every(a=>typeof a=="string")&&(r.type="string"),r.enum=s},"enumProcessor"),s0=i((e,t,r,o)=>{let n=e._zod.def,s=[];for(let a of n.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");s.push(Number(a))}else s.push(a);if(s.length!==0)if(s.length===1){let a=s[0];r.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?r.enum=[a]:r.const=a}else s.every(a=>typeof a=="number")&&(r.type="number"),s.every(a=>typeof a=="string")&&(r.type="string"),s.every(a=>typeof a=="boolean")&&(r.type="boolean"),s.every(a=>a===null)&&(r.type="null"),r.enum=s},"literalProcessor"),a0=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("NaN cannot be represented in JSON Schema")},"nanProcessor"),c0=i((e,t,r,o)=>{let n=r,s=e._zod.pattern;if(!s)throw new Error("Pattern not found in template literal");n.type="string",n.pattern=s.source},"templateLiteralProcessor"),u0=i((e,t,r,o)=>{let n=r,s={type:"string",format:"binary",contentEncoding:"binary"},{minimum:a,maximum:c,mime:u}=e._zod.bag;a!==void 0&&(s.minLength=a),c!==void 0&&(s.maxLength=c),u?u.length===1?(s.contentMediaType=u[0],Object.assign(n,s)):(Object.assign(n,s),n.anyOf=u.map(l=>({contentMediaType:l}))):Object.assign(n,s)},"fileProcessor"),l0=i((e,t,r,o)=>{r.type="boolean"},"successProcessor"),d0=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},"customProcessor"),p0=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Function types cannot be represented in JSON Schema")},"functionProcessor"),f0=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},"transformProcessor"),m0=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Map cannot be represented in JSON Schema")},"mapProcessor"),g0=i((e,t,r,o)=>{if(t.unrepresentable==="throw")throw new Error("Set cannot be represented in JSON Schema")},"setProcessor"),h0=i((e,t,r,o)=>{let n=r,s=e._zod.def,{minimum:a,maximum:c}=e._zod.bag;typeof a=="number"&&(n.minItems=a),typeof c=="number"&&(n.maxItems=c),n.type="array",n.items=et(s.element,t,{...o,path:[...o.path,"items"]})},"arrayProcessor"),y0=i((e,t,r,o)=>{let n=r,s=e._zod.def;n.type="object",n.properties={};let a=s.shape;for(let l in a)n.properties[l]=et(a[l],t,{...o,path:[...o.path,"properties",l]});let c=new Set(Object.keys(a)),u=new Set([...c].filter(l=>{let p=s.shape[l]._zod;return t.io==="input"?p.optin===void 0:p.optout===void 0}));u.size>0&&(n.required=Array.from(u)),s.catchall?._zod.def.type==="never"?n.additionalProperties=!1:s.catchall?s.catchall&&(n.additionalProperties=et(s.catchall,t,{...o,path:[...o.path,"additionalProperties"]})):t.io==="output"&&(n.additionalProperties=!1)},"objectProcessor"),Gh=i((e,t,r,o)=>{let n=e._zod.def,s=n.inclusive===!1,a=n.options.map((c,u)=>et(c,t,{...o,path:[...o.path,s?"oneOf":"anyOf",u]}));s?r.oneOf=a:r.anyOf=a},"unionProcessor"),E0=i((e,t,r,o)=>{let n=e._zod.def,s=et(n.left,t,{...o,path:[...o.path,"allOf",0]}),a=et(n.right,t,{...o,path:[...o.path,"allOf",1]}),c=i(l=>"allOf"in l&&Object.keys(l).length===1,"isSimpleIntersection"),u=[...c(s)?s.allOf:[s],...c(a)?a.allOf:[a]];r.allOf=u},"intersectionProcessor"),S0=i((e,t,r,o)=>{let n=r,s=e._zod.def;n.type="array";let a=t.target==="draft-2020-12"?"prefixItems":"items",c=t.target==="draft-2020-12"||t.target==="openapi-3.0"?"items":"additionalItems",u=s.items.map((y,m)=>et(y,t,{...o,path:[...o.path,a,m]})),l=s.rest?et(s.rest,t,{...o,path:[...o.path,c,...t.target==="openapi-3.0"?[s.items.length]:[]]}):null;t.target==="draft-2020-12"?(n.prefixItems=u,l&&(n.items=l)):t.target==="openapi-3.0"?(n.items={anyOf:u},l&&n.items.anyOf.push(l),n.minItems=u.length,l||(n.maxItems=u.length)):(n.items=u,l&&(n.additionalItems=l));let{minimum:p,maximum:f}=e._zod.bag;typeof p=="number"&&(n.minItems=p),typeof f=="number"&&(n.maxItems=f)},"tupleProcessor"),_0=i((e,t,r,o)=>{let n=r,s=e._zod.def;n.type="object";let a=s.keyType,u=a._zod.bag?.patterns;if(s.mode==="loose"&&u&&u.size>0){let p=et(s.valueType,t,{...o,path:[...o.path,"patternProperties","*"]});n.patternProperties={};for(let f of u)n.patternProperties[f.source]=p}else(t.target==="draft-07"||t.target==="draft-2020-12")&&(n.propertyNames=et(s.keyType,t,{...o,path:[...o.path,"propertyNames"]})),n.additionalProperties=et(s.valueType,t,{...o,path:[...o.path,"additionalProperties"]});let l=a._zod.values;if(l){let p=[...l].filter(f=>typeof f=="string"||typeof f=="number");p.length>0&&(n.required=p)}},"recordProcessor"),v0=i((e,t,r,o)=>{let n=e._zod.def,s=et(n.innerType,t,o),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=n.innerType,r.nullable=!0):r.anyOf=[s,{type:"null"}]},"nullableProcessor"),x0=i((e,t,r,o)=>{let n=e._zod.def;et(n.innerType,t,o);let s=t.seen.get(e);s.ref=n.innerType},"nonoptionalProcessor"),b0=i((e,t,r,o)=>{let n=e._zod.def;et(n.innerType,t,o);let s=t.seen.get(e);s.ref=n.innerType,r.default=JSON.parse(JSON.stringify(n.defaultValue))},"defaultProcessor"),P0=i((e,t,r,o)=>{let n=e._zod.def;et(n.innerType,t,o);let s=t.seen.get(e);s.ref=n.innerType,t.io==="input"&&(r._prefault=JSON.parse(JSON.stringify(n.defaultValue)))},"prefaultProcessor"),C0=i((e,t,r,o)=>{let n=e._zod.def;et(n.innerType,t,o);let s=t.seen.get(e);s.ref=n.innerType;let a;try{a=n.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}r.default=a},"catchProcessor"),A0=i((e,t,r,o)=>{let n=e._zod.def,s=t.io==="input"?n.in._zod.def.type==="transform"?n.out:n.in:n.out;et(s,t,o);let a=t.seen.get(e);a.ref=s},"pipeProcessor"),T0=i((e,t,r,o)=>{let n=e._zod.def;et(n.innerType,t,o);let s=t.seen.get(e);s.ref=n.innerType,r.readOnly=!0},"readonlyProcessor"),I0=i((e,t,r,o)=>{let n=e._zod.def;et(n.innerType,t,o);let s=t.seen.get(e);s.ref=n.innerType},"promiseProcessor"),qh=i((e,t,r,o)=>{let n=e._zod.def;et(n.innerType,t,o);let s=t.seen.get(e);s.ref=n.innerType},"optionalProcessor"),w0=i((e,t,r,o)=>{let n=e._zod.innerType;et(n,t,o);let s=t.seen.get(e);s.ref=n},"lazyProcessor"),Hh={string:WI,number:ZI,boolean:KI,bigint:XI,symbol:JI,null:YI,undefined:QI,void:e0,never:t0,any:r0,unknown:n0,date:o0,enum:i0,literal:s0,nan:a0,template_literal:c0,file:u0,success:l0,custom:d0,function:p0,transform:f0,map:m0,set:g0,array:h0,object:y0,union:Gh,intersection:E0,tuple:S0,record:_0,nullable:v0,nonoptional:x0,default:b0,prefault:P0,catch:C0,pipe:A0,readonly:T0,promise:I0,optional:qh,lazy:w0};function ep(e,t){if("_idmap"in e){let o=e,n=Ai({...t,processors:Hh}),s={};for(let u of o._idmap.entries()){let[l,p]=u;et(p,n)}let a={},c={registry:o,uri:t?.uri,defs:s};n.external=c;for(let u of o._idmap.entries()){let[l,p]=u;Ti(n,p),a[l]=Ii(n,p)}if(Object.keys(s).length>0){let u=n.target==="draft-2020-12"?"$defs":"definitions";a.__shared={[u]:s}}return{schemas:a}}let r=Ai({...t,processors:Hh});return et(e,r),Ti(r,e),Ii(r,e)}i(ep,"toJSONSchema");var Wh=class{static{i(this,"JSONSchemaGenerator")}get metadataRegistry(){return this.ctx.metadataRegistry}get target(){return this.ctx.target}get unrepresentable(){return this.ctx.unrepresentable}get override(){return this.ctx.override}get io(){return this.ctx.io}get counter(){return this.ctx.counter}set counter(t){this.ctx.counter=t}get seen(){return this.ctx.seen}constructor(t){let r=t?.target??"draft-2020-12";r==="draft-4"&&(r="draft-04"),r==="draft-7"&&(r="draft-07"),this.ctx=Ai({processors:Hh,target:r,...t?.metadata&&{metadata:t.metadata},...t?.unrepresentable&&{unrepresentable:t.unrepresentable},...t?.override&&{override:t.override},...t?.io&&{io:t.io}})}process(t,r={path:[],schemaPath:[]}){return et(t,this.ctx,r)}emit(t,r){r&&(r.cycles&&(this.ctx.cycles=r.cycles),r.reused&&(this.ctx.reused=r.reused),r.external&&(this.ctx.external=r.external)),Ti(this.ctx,t);let o=Ii(this.ctx,t),{"~standard":n,...s}=o;return s}};var AF={};var Pt=$("ZodMiniType",(e,t)=>{if(!e._zod)throw new Error("Uninitialized schema in ZodMiniType.");ge.init(e,t),e.def=t,e.type=t.type,e.parse=(r,o)=>js(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Pc(e,r,o),e.parseAsync=async(r,o)=>Bs(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Ac(e,r,o),e.check=(...r)=>e.clone({...t,checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]},{parent:!0}),e.with=e.check,e.clone=(r,o)=>Mt(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.apply=r=>r(e)}),Zh=$("ZodMiniString",(e,t)=>{Ro.init(e,t),Pt.init(e,t)});function C(e){return dd(Zh,e)}i(C,"string");var Lc=$("ZodMiniStringFormat",(e,t)=>{Qe.init(e,t),Zh.init(e,t)});var Gfe=$("ZodMiniURL",(e,t)=>{Ul.init(e,t),Lc.init(e,t)});function TF(e){return qs(Gfe,e)}i(TF,"url");var Kh=$("ZodMiniNumber",(e,t)=>{Ic.init(e,t),Pt.init(e,t)});function zt(e){return Ld(Kh,e)}i(zt,"number");var qfe=$("ZodMiniNumberFormat",(e,t)=>{Gl.init(e,t),Kh.init(e,t)});function IF(e){return Fd(qfe,e)}i(IF,"int");var R0=$("ZodMiniBoolean",(e,t)=>{Hs.init(e,t),Pt.init(e,t)});function Fe(e){return Ud(R0,e)}i(Fe,"boolean");var wF=$("ZodMiniBigInt",(e,t)=>{wc.init(e,t),Pt.init(e,t)});var Wfe=$("ZodMiniAny",(e,t)=>{ql.init(e,t),Pt.init(e,t)});function tp(){return Vd(Wfe)}i(tp,"any");var Zfe=$("ZodMiniUnknown",(e,t)=>{Wl.init(e,t),Pt.init(e,t)});function xe(){return Hd(Zfe)}i(xe,"unknown");var Kfe=$("ZodMiniVoid",(e,t)=>{Zl.init(e,t),Pt.init(e,t)});function RF(e){return Gd(Kfe,e)}i(RF,"_void");var $F=$("ZodMiniDate",(e,t)=>{Kl.init(e,t),Pt.init(e,t)});var Xfe=$("ZodMiniArray",(e,t)=>{Xl.init(e,t),Pt.init(e,t)});function me(e,t){return new Xfe({type:"array",element:e,...B(t)})}i(me,"array");var Jfe=$("ZodMiniObject",(e,t)=>{nh.init(e,t),Pt.init(e,t),we(e,"shape",()=>t.shape)});function D(e,t){let r={type:"object",shape:e??{},...B(t)};return new Jfe(r)}i(D,"object");var Yfe=$("ZodMiniUnion",(e,t)=>{Gs.init(e,t),Pt.init(e,t)});function Re(e,t){return new Yfe({type:"union",options:e,...B(t)})}i(Re,"union");var Qfe=$("ZodMiniDiscriminatedUnion",(e,t)=>{Jl.init(e,t),Pt.init(e,t)});function wi(e,t,r){return new Qfe({type:"union",options:t,discriminator:e,...B(r)})}i(wi,"discriminatedUnion");var eme=$("ZodMiniRecord",(e,t)=>{Ql.init(e,t),Pt.init(e,t)});function be(e,t,r){return new eme({type:"record",keyType:e,valueType:t,...B(r)})}i(be,"record");var tme=$("ZodMiniEnum",(e,t)=>{ed.init(e,t),Pt.init(e,t),e.options=Object.values(t.entries)});function de(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new tme({type:"enum",entries:r,...B(t)})}i(de,"_enum");var rme=$("ZodMiniLiteral",(e,t)=>{td.init(e,t),Pt.init(e,t)});function ue(e,t){return new rme({type:"literal",values:Array.isArray(e)?e:[e],...B(t)})}i(ue,"literal");var nme=$("ZodMiniTransform",(e,t)=>{rd.init(e,t),Pt.init(e,t)});function Ri(e){return new nme({type:"transform",transform:e})}i(Ri,"transform");var ome=$("ZodMiniOptional",(e,t)=>{Rc.init(e,t),Pt.init(e,t)});function N(e){return new ome({type:"optional",innerType:e})}i(N,"optional");var ime=$("ZodMiniNullable",(e,t)=>{nd.init(e,t),Pt.init(e,t)});function rp(e){return new ime({type:"nullable",innerType:e})}i(rp,"nullable");var sme=$("ZodMiniPipe",(e,t)=>{od.init(e,t),Pt.init(e,t)});function $i(e,t){return new sme({type:"pipe",in:e,out:t})}i($i,"pipe");var OF=$("ZodMiniCustom",(e,t)=>{id.init(e,t),Pt.init(e,t)});function Xh(e,t){return Yd(OF,e??(()=>!0),t)}i(Xh,"custom");function $0(e,t={}){return Qd(OF,e,t)}i($0,"refine");var Jh={};We(Jh,{ZodMiniISODate:()=>D0,ZodMiniISODateTime:()=>O0,ZodMiniISODuration:()=>k0,ZodMiniISOTime:()=>N0,date:()=>cme,datetime:()=>ame,duration:()=>lme,time:()=>ume});var O0=$("ZodMiniISODateTime",(e,t)=>{jl.init(e,t),Lc.init(e,t)});function ame(e){return Dd(O0,e)}i(ame,"datetime");var D0=$("ZodMiniISODate",(e,t)=>{Bl.init(e,t),Lc.init(e,t)});function cme(e){return Nd(D0,e)}i(cme,"date");var N0=$("ZodMiniISOTime",(e,t)=>{Vl.init(e,t),Lc.init(e,t)});function ume(e){return kd(N0,e)}i(ume,"time");var k0=$("ZodMiniISODuration",(e,t)=>{Hl.init(e,t),Lc.init(e,t)});function lme(e){return Md(k0,e)}i(lme,"duration");var np={};We(np,{bigint:()=>mme,boolean:()=>fme,date:()=>gme,number:()=>pme,string:()=>dme});function dme(e){return pd(Zh,e)}i(dme,"string");function pme(e){return zd(Kh,e)}i(pme,"number");function fme(e){return jd(R0,e)}i(fme,"boolean");function mme(e){return Bd(wF,e)}i(mme,"bigint");function gme(e){return qd($F,e)}i(gme,"date");var L0=D({retryOnFailure:D({defaultValue:N(Fe()),hide:N(Fe())}),continueOnFailure:D({defaultValue:N(Fe()),hide:N(Fe())})}),M0=class{constructor(t,r,o,n,s,a,c,u,l,p,f,y,m){this.name=t;this.displayName=r;this.description=o;this.props=n;this.propertyGroups=s;this.run=a;this.test=c;this.requireAuth=u;this.errorHandlingOptions=l;this.outputSchema=p;this.audience=f;this.aiMetadata=y;this.classification=m}static{i(this,"IAction")}},zc=i(e=>new M0(e.name,e.displayName,e.description,e.props,e.propertyGroups,e.run,e.test??e.run,e.requireAuth??!0,e.errorHandlingOptions??{continueOnFailure:{defaultValue:!1},retryOnFailure:{defaultValue:!1}},e.outputSchema,e.audience,e.aiMetadata,e.classification),"createAction");var ze=D({displayName:C(),description:N(C()),advanced:N(Fe()),width:N(de(["half","full"])),icon:N(C()),placeholder:N(C())}),Ae=i((e,t)=>D({type:ue(t),required:Fe(),defaultValue:N(tp())}),"TPropertyValue");var qr=D({...ze.shape,...Ae(C(),"SHORT_TEXT").shape}),Do=D({...ze.shape,...Ae(C(),"LONG_TEXT").shape});var NF=D({label:C(),value:xe(),description:N(C()),icon:N(C())}),Yh=D({disabled:N(Fe()),placeholder:N(C()),options:me(NF)});var yme=de(["cards"]),Wr=D({...ze.shape,options:Yh,display:N(yme),...Ae(xe(),"STATIC_DROPDOWN").shape}),No=D({...ze.shape,options:Yh,...Ae(me(xe()),"STATIC_MULTI_SELECT_DROPDOWN").shape});var z0=D({...ze.shape,...Ae(xe(),"DROPDOWN").shape,refreshers:me(C())}),op=D({...ze.shape,...Ae(me(xe()),"MULTI_SELECT_DROPDOWN").shape,refreshers:me(C())});var ko=D({...ze.shape,reveals:N(me(C())),...Ae(Fe(),"CHECKBOX").shape});var Mo=D({...ze.shape,display:N(de(["stepper"])),min:N(zt()),max:N(zt()),step:N(zt()),...Ae(zt(),"NUMBER").shape});var ip=D({...ze.shape,streaming:N(Fe()),...Ae(xe(),"FILE").shape});var sp=D({...ze.shape,...Ae(C(),"DATE_TIME").shape});var kF=be(C(),Re([qr,Do,Wr,op,No,ko,Mo,ip,sp])),ap=D({...ze.shape,properties:kF,...Ae(me(xe()),"ARRAY").shape});var MF=de(["any_time","last_24_hours","last_7_days","last_30_days","last_90_days","this_month","custom"]),LF=D({preset:N(MF),after:N(C()),before:N(C())}),F0=D({...ze.shape,display:N(de(["dropdown"])),...Ae(LF,"DATE_RANGE").shape});var cp=D({...ze.shape,...Ae(Re([be(C(),xe())]),"JSON").shape});var zF=Re([qr,Wr,cp,ap,No]),Eme=be(C(),zF),U0=D({refreshers:me(C()),...ze.shape,...Ae(xe(),"DYNAMIC").shape});var Qh=D({...ze.shape,...Ae(RF(),"MARKDOWN").shape});var up=(r=>(r.ARCHIVE="ARCHIVE",r.REGISTRY="REGISTRY",r))(up||{}),Fc=(r=>(r.CUSTOM="CUSTOM",r.OFFICIAL="OFFICIAL",r))(Fc||{}),Uc=(I=>(I.ARTIFICIAL_INTELLIGENCE="ARTIFICIAL_INTELLIGENCE",I.COMMUNICATION="COMMUNICATION",I.COMMERCE="COMMERCE",I.CORE="CORE",I.UNIVERSAL_AI="UNIVERSAL_AI",I.FLOW_CONTROL="FLOW_CONTROL",I.BUSINESS_INTELLIGENCE="BUSINESS_INTELLIGENCE",I.ACCOUNTING="ACCOUNTING",I.PRODUCTIVITY="PRODUCTIVITY",I.CONTENT_AND_FILES="CONTENT_AND_FILES",I.DEVELOPER_TOOLS="DEVELOPER_TOOLS",I.CUSTOMER_SUPPORT="CUSTOMER_SUPPORT",I.FORMS_AND_SURVEYS="FORMS_AND_SURVEYS",I.HUMAN_RESOURCES="HUMAN_RESOURCES",I.PAYMENT_PROCESSING="PAYMENT_PROCESSING",I.MARKETING="MARKETING",I.SALES_AND_CRM="SALES_AND_CRM",I))(Uc||{});var lp=(r=>(r.AUTHORIZATION_CODE="authorization_code",r.CLIENT_CREDENTIALS="client_credentials",r))(lp||{}),j0="both_client_credentials_and_authorization_code";var Oi=(n=>(n.POLLING="POLLING",n.WEBHOOK="WEBHOOK",n.APP_WEBHOOK="APP_WEBHOOK",n.MANUAL="MANUAL",n))(Oi||{}),dp=(s=>(s.NONE="NONE",s.HEADER_PRESENT="HEADER_PRESENT",s.QUERY_PRESENT="QUERY_PRESENT",s.BODY_PARAM_PRESENT="BODY_PARAM_PRESENT",s.HEAD_REQUEST="HEAD_REQUEST",s))(dp||{}),Sme=D({strategy:de(dp),paramName:N(C())}),pp=(r=>(r.SIMULATION="SIMULATION",r.TEST_FUNCTION="TEST_FUNCTION",r))(pp||{});var ey=(r=>(r.WEBSOCKET="WEBSOCKET",r.NONE="NONE",r))(ey||{}),FF=D({status:N(zt()),body:N(xe()),headers:N(be(C(),C()))}),UF=D({type:ue("DELAY"),resumeDateTime:C(),requestIdToReply:N(C()),handlerId:N(C()),streamStepProgress:N(de(ey))}),jF=D({type:ue("WEBHOOK"),requestId:C(),requestIdToReply:N(C()),response:FF,handlerId:N(C()),streamStepProgress:N(de(ey))}),_me=Re([UF,jF]);var vme=D({body:xe(),rawBody:N(xe()),headers:be(C(),C()),queryParams:be(C(),C())});function pn(e){return e==null}i(pn,"isNil");var V0=w(require("crypto"),1);var xme=128,Di,jc,bme=i(e=>{if(e<0)throw new RangeError("Wrong ID size");try{!Di||Di.length<e?(Di=Buffer.allocUnsafe(e*xme),V0.default.randomFillSync(Di),jc=0):jc+e>Di.length&&(V0.default.randomFillSync(Di),jc=0)}catch(t){throw Di=void 0,t}jc+=e},"fillPool"),Pme=i(e=>(bme(e|=0),Di.subarray(jc-e,jc)),"random"),Cme=i((e,t,r)=>{let o=(2<<31-Math.clz32(e.length-1|1))-1,n=Math.ceil(1.6*o*t/e.length);return(s=t)=>{if(s<=0)return"";let a="";for(;;){let c=r(n),u=n;for(;u--;)if(a+=e[c[u]&o]||"",a.length===s)return a}}},"customRandom"),BF=i((e,t=21)=>Cme(e,t,Pme),"customAlphabet");var Ame="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",VF=21,dqe=C().check(Ht(new RegExp(`^[0-9a-zA-Z]{${VF}}$`))),Tme=BF(Ame,VF);var Ni=$i(Ri(e=>e instanceof Date?e.toISOString():e),C()),fn={id:C(),created:Ni,updated:Ni},dt=i(e=>N(rp(e)),"Nullable");function H0(e){return N(rp(de(e)))}i(H0,"NullableEnum");var mqe=$i(Ri(e=>e==="true"||e===!0?!0:e==="false"||e===!1?!1:void 0),N(Fe())),gqe=N(Jh.datetime({offset:!0}).check($0(e=>e.slice(0,4)!=="0000"))),ty=i(e=>$i(Ri(t=>Array.isArray(t)?t:t!==void 0?[t]:void 0),N(me(e))),"OptionalArrayFromQuery");var Eqe=be(C(),xe());var G0=(p=>(p.DUTCH="nl",p.ENGLISH="en",p.GERMAN="de",p.FRENCH="fr",p.SPANISH="es",p.JAPANESE="ja",p.CHINESE_SIMPLIFIED="zh",p.PORTUGUESE="pt",p.ARABIC="ar",p.CHINESE_TRADITIONAL="zh-TW",p))(G0||{});var ki=(I=>(I.OPENAI="openai",I.OPENROUTER="openrouter",I.ANTHROPIC="anthropic",I.AZURE="azure",I.GOOGLE="google",I.ACTIVEPIECES="activepieces",I.CLOUDFLARE_GATEWAY="cloudflare-gateway",I.CUSTOM="custom",I.BEDROCK="bedrock",I.VERTEX="vertex",I.MISTRAL="mistral",I.XAI="xai",I.DEEPSEEK="deepseek",I.ZAI="zai",I.QWEN="qwen",I.MINIMAX="minimax",I.MOONSHOT="moonshot",I))(ki||{});var W={};We(W,{$brand:()=>wl,$input:()=>bh,$output:()=>xh,NEVER:()=>ug,TimePrecision:()=>Ch,ZodAny:()=>gw,ZodArray:()=>Sw,ZodBase64:()=>xy,ZodBase64URL:()=>by,ZodBigInt:()=>Zc,ZodBigIntFormat:()=>Ay,ZodBoolean:()=>Wc,ZodCIDRv4:()=>_y,ZodCIDRv6:()=>vy,ZodCUID:()=>fy,ZodCUID2:()=>my,ZodCatch:()=>jw,ZodCodec:()=>Ny,ZodCustom:()=>Pp,ZodCustomStringFormat:()=>Gc,ZodDate:()=>Sp,ZodDefault:()=>kw,ZodDiscriminatedUnion:()=>vw,ZodE164:()=>Py,ZodEmail:()=>ly,ZodEmoji:()=>dy,ZodEnum:()=>Vc,ZodError:()=>Ime,ZodExactOptional:()=>Ow,ZodFile:()=>Rw,ZodFirstPartyTypeKind:()=>Qw,ZodFunction:()=>Xw,ZodGUID:()=>mp,ZodIPv4:()=>Ey,ZodIPv6:()=>Sy,ZodISODate:()=>oy,ZodISODateTime:()=>ny,ZodISODuration:()=>sy,ZodISOTime:()=>iy,ZodIntersection:()=>xw,ZodIssueCode:()=>Rme,ZodJWT:()=>Cy,ZodKSUID:()=>yy,ZodLazy:()=>Ww,ZodLiteral:()=>ww,ZodMAC:()=>cw,ZodMap:()=>Tw,ZodNaN:()=>Vw,ZodNanoID:()=>py,ZodNever:()=>yw,ZodNonOptional:()=>Oy,ZodNull:()=>fw,ZodNullable:()=>Nw,ZodNumber:()=>qc,ZodNumberFormat:()=>ia,ZodObject:()=>vp,ZodOptional:()=>$y,ZodPipe:()=>Dy,ZodPrefault:()=>Lw,ZodPromise:()=>Kw,ZodReadonly:()=>Hw,ZodRealError:()=>wr,ZodRecord:()=>bp,ZodSet:()=>Iw,ZodString:()=>Hc,ZodStringFormat:()=>nt,ZodSuccess:()=>Uw,ZodSymbol:()=>dw,ZodTemplateLiteral:()=>qw,ZodTransform:()=>$w,ZodTuple:()=>Pw,ZodType:()=>$e,ZodULID:()=>gy,ZodURL:()=>Ep,ZodUUID:()=>no,ZodUndefined:()=>pw,ZodUnion:()=>xp,ZodUnknown:()=>hw,ZodVoid:()=>Ew,ZodXID:()=>hy,ZodXor:()=>_w,_ZodString:()=>uy,_default:()=>Mw,_function:()=>XU,any:()=>IU,array:()=>_p,base64:()=>dU,base64url:()=>pU,bigint:()=>bU,boolean:()=>lw,catch:()=>Bw,check:()=>JU,cidrv4:()=>uU,cidrv6:()=>lU,clone:()=>Mt,codec:()=>WU,coerce:()=>eR,config:()=>lt,core:()=>Gr,cuid:()=>tU,cuid2:()=>rU,custom:()=>YU,date:()=>RU,decode:()=>tw,decodeAsync:()=>nw,describe:()=>QU,discriminatedUnion:()=>MU,e164:()=>fU,email:()=>GF,emoji:()=>QF,encode:()=>ew,encodeAsync:()=>rw,endsWith:()=>Js,enum:()=>wy,exactOptional:()=>Dw,file:()=>VU,flattenError:()=>Sc,float32:()=>SU,float64:()=>_U,formatError:()=>_c,fromJSONSchema:()=>s2,function:()=>XU,getErrorMap:()=>Ome,globalRegistry:()=>Lt,gt:()=>Nn,gte:()=>Tt,guid:()=>qF,hash:()=>EU,hex:()=>yU,hostname:()=>hU,httpUrl:()=>YF,includes:()=>Ks,instanceof:()=>t2,int:()=>cy,int32:()=>vU,int64:()=>PU,intersection:()=>bw,ipv4:()=>sU,ipv6:()=>cU,iso:()=>Bc,json:()=>n2,jwt:()=>mU,keyof:()=>$U,ksuid:()=>iU,lazy:()=>Zw,length:()=>Ci,literal:()=>BU,locales:()=>Dc,looseObject:()=>NU,looseRecord:()=>zU,lowercase:()=>Ws,lt:()=>Dn,lte:()=>mr,mac:()=>aU,map:()=>FU,maxLength:()=>Pi,maxSize:()=>Oo,meta:()=>e2,mime:()=>Ys,minLength:()=>vt,minSize:()=>kn,multipleOf:()=>$o,nan:()=>qU,nanoid:()=>eU,nativeEnum:()=>jU,negative:()=>Zd,never:()=>Ty,nonnegative:()=>Xd,nonoptional:()=>Fw,nonpositive:()=>Kd,normalize:()=>Qs,null:()=>mw,nullable:()=>hp,nullish:()=>HU,number:()=>uw,object:()=>OU,optional:()=>gp,overwrite:()=>dn,parse:()=>X0,parseAsync:()=>J0,partialRecord:()=>LU,pipe:()=>yp,positive:()=>Wd,prefault:()=>zw,preprocess:()=>o2,prettifyError:()=>mg,promise:()=>KU,property:()=>Jd,readonly:()=>Gw,record:()=>Aw,refine:()=>Jw,regex:()=>Ht,regexes:()=>Ir,registry:()=>ld,safeDecode:()=>iw,safeDecodeAsync:()=>aw,safeEncode:()=>ow,safeEncodeAsync:()=>sw,safeParse:()=>Y0,safeParseAsync:()=>Q0,set:()=>UU,setErrorMap:()=>$me,size:()=>bi,slugify:()=>kc,startsWith:()=>Xs,strictObject:()=>DU,string:()=>ay,stringFormat:()=>gU,stringbool:()=>r2,success:()=>GU,superRefine:()=>Yw,symbol:()=>AU,templateLiteral:()=>ZU,toJSONSchema:()=>ep,toLowerCase:()=>ta,toUpperCase:()=>ra,transform:()=>Ry,treeifyError:()=>fg,trim:()=>ea,tuple:()=>Cw,uint32:()=>xU,uint64:()=>CU,ulid:()=>nU,undefined:()=>TU,union:()=>Iy,unknown:()=>oa,uppercase:()=>Zs,url:()=>JF,util:()=>H,uuid:()=>WF,uuidv4:()=>ZF,uuidv6:()=>KF,uuidv7:()=>XF,void:()=>wU,xid:()=>oU,xor:()=>kU});var fp={};We(fp,{ZodAny:()=>gw,ZodArray:()=>Sw,ZodBase64:()=>xy,ZodBase64URL:()=>by,ZodBigInt:()=>Zc,ZodBigIntFormat:()=>Ay,ZodBoolean:()=>Wc,ZodCIDRv4:()=>_y,ZodCIDRv6:()=>vy,ZodCUID:()=>fy,ZodCUID2:()=>my,ZodCatch:()=>jw,ZodCodec:()=>Ny,ZodCustom:()=>Pp,ZodCustomStringFormat:()=>Gc,ZodDate:()=>Sp,ZodDefault:()=>kw,ZodDiscriminatedUnion:()=>vw,ZodE164:()=>Py,ZodEmail:()=>ly,ZodEmoji:()=>dy,ZodEnum:()=>Vc,ZodExactOptional:()=>Ow,ZodFile:()=>Rw,ZodFunction:()=>Xw,ZodGUID:()=>mp,ZodIPv4:()=>Ey,ZodIPv6:()=>Sy,ZodIntersection:()=>xw,ZodJWT:()=>Cy,ZodKSUID:()=>yy,ZodLazy:()=>Ww,ZodLiteral:()=>ww,ZodMAC:()=>cw,ZodMap:()=>Tw,ZodNaN:()=>Vw,ZodNanoID:()=>py,ZodNever:()=>yw,ZodNonOptional:()=>Oy,ZodNull:()=>fw,ZodNullable:()=>Nw,ZodNumber:()=>qc,ZodNumberFormat:()=>ia,ZodObject:()=>vp,ZodOptional:()=>$y,ZodPipe:()=>Dy,ZodPrefault:()=>Lw,ZodPromise:()=>Kw,ZodReadonly:()=>Hw,ZodRecord:()=>bp,ZodSet:()=>Iw,ZodString:()=>Hc,ZodStringFormat:()=>nt,ZodSuccess:()=>Uw,ZodSymbol:()=>dw,ZodTemplateLiteral:()=>qw,ZodTransform:()=>$w,ZodTuple:()=>Pw,ZodType:()=>$e,ZodULID:()=>gy,ZodURL:()=>Ep,ZodUUID:()=>no,ZodUndefined:()=>pw,ZodUnion:()=>xp,ZodUnknown:()=>hw,ZodVoid:()=>Ew,ZodXID:()=>hy,ZodXor:()=>_w,_ZodString:()=>uy,_default:()=>Mw,_function:()=>XU,any:()=>IU,array:()=>_p,base64:()=>dU,base64url:()=>pU,bigint:()=>bU,boolean:()=>lw,catch:()=>Bw,check:()=>JU,cidrv4:()=>uU,cidrv6:()=>lU,codec:()=>WU,cuid:()=>tU,cuid2:()=>rU,custom:()=>YU,date:()=>RU,describe:()=>QU,discriminatedUnion:()=>MU,e164:()=>fU,email:()=>GF,emoji:()=>QF,enum:()=>wy,exactOptional:()=>Dw,file:()=>VU,float32:()=>SU,float64:()=>_U,function:()=>XU,guid:()=>qF,hash:()=>EU,hex:()=>yU,hostname:()=>hU,httpUrl:()=>YF,instanceof:()=>t2,int:()=>cy,int32:()=>vU,int64:()=>PU,intersection:()=>bw,ipv4:()=>sU,ipv6:()=>cU,json:()=>n2,jwt:()=>mU,keyof:()=>$U,ksuid:()=>iU,lazy:()=>Zw,literal:()=>BU,looseObject:()=>NU,looseRecord:()=>zU,mac:()=>aU,map:()=>FU,meta:()=>e2,nan:()=>qU,nanoid:()=>eU,nativeEnum:()=>jU,never:()=>Ty,nonoptional:()=>Fw,null:()=>mw,nullable:()=>hp,nullish:()=>HU,number:()=>uw,object:()=>OU,optional:()=>gp,partialRecord:()=>LU,pipe:()=>yp,prefault:()=>zw,preprocess:()=>o2,promise:()=>KU,readonly:()=>Gw,record:()=>Aw,refine:()=>Jw,set:()=>UU,strictObject:()=>DU,string:()=>ay,stringFormat:()=>gU,stringbool:()=>r2,success:()=>GU,superRefine:()=>Yw,symbol:()=>AU,templateLiteral:()=>ZU,transform:()=>Ry,tuple:()=>Cw,uint32:()=>xU,uint64:()=>CU,ulid:()=>nU,undefined:()=>TU,union:()=>Iy,unknown:()=>oa,url:()=>JF,uuid:()=>WF,uuidv4:()=>ZF,uuidv6:()=>KF,uuidv7:()=>XF,void:()=>wU,xid:()=>oU,xor:()=>kU});var ry={};We(ry,{endsWith:()=>Js,gt:()=>Nn,gte:()=>Tt,includes:()=>Ks,length:()=>Ci,lowercase:()=>Ws,lt:()=>Dn,lte:()=>mr,maxLength:()=>Pi,maxSize:()=>Oo,mime:()=>Ys,minLength:()=>vt,minSize:()=>kn,multipleOf:()=>$o,negative:()=>Zd,nonnegative:()=>Xd,nonpositive:()=>Kd,normalize:()=>Qs,overwrite:()=>dn,positive:()=>Wd,property:()=>Jd,regex:()=>Ht,size:()=>bi,slugify:()=>kc,startsWith:()=>Xs,toLowerCase:()=>ta,toUpperCase:()=>ra,trim:()=>ea,uppercase:()=>Zs});var Bc={};We(Bc,{ZodISODate:()=>oy,ZodISODateTime:()=>ny,ZodISODuration:()=>sy,ZodISOTime:()=>iy,date:()=>W0,datetime:()=>q0,duration:()=>K0,time:()=>Z0});var ny=$("ZodISODateTime",(e,t)=>{jl.init(e,t),nt.init(e,t)});function q0(e){return Dd(ny,e)}i(q0,"datetime");var oy=$("ZodISODate",(e,t)=>{Bl.init(e,t),nt.init(e,t)});function W0(e){return Nd(oy,e)}i(W0,"date");var iy=$("ZodISOTime",(e,t)=>{Vl.init(e,t),nt.init(e,t)});function Z0(e){return kd(iy,e)}i(Z0,"time");var sy=$("ZodISODuration",(e,t)=>{Hl.init(e,t),nt.init(e,t)});function K0(e){return Md(sy,e)}i(K0,"duration");var HF=i((e,t)=>{Ml.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:i(r=>_c(e,r),"value")},flatten:{value:i(r=>Sc(e,r),"value")},addIssue:{value:i(r=>{e.issues.push(r),e.message=JSON.stringify(e.issues,hc,2)},"value")},addIssues:{value:i(r=>{e.issues.push(...r),e.message=JSON.stringify(e.issues,hc,2)},"value")},isEmpty:{get(){return e.issues.length===0}}})},"initializer"),Ime=$("ZodError",HF),wr=$("ZodError",HF,{Parent:Error});var X0=vc(wr),J0=xc(wr),Y0=bc(wr),Q0=Cc(wr),ew=gg(wr),tw=hg(wr),rw=yg(wr),nw=Eg(wr),ow=Sg(wr),iw=_g(wr),sw=vg(wr),aw=xg(wr);var $e=$("ZodType",(e,t)=>(ge.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:Mc(e,"input"),output:Mc(e,"output")}}),e.toJSONSchema=qI(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...r)=>e.clone(H.mergeDefs(t,{checks:[...t.checks??[],...r.map(o=>typeof o=="function"?{_zod:{check:o,def:{check:"custom"},onattach:[]}}:o)]}),{parent:!0}),e.with=e.check,e.clone=(r,o)=>Mt(e,r,o),e.brand=()=>e,e.register=((r,o)=>(r.add(e,o),e)),e.parse=(r,o)=>X0(e,r,o,{callee:e.parse}),e.safeParse=(r,o)=>Y0(e,r,o),e.parseAsync=async(r,o)=>J0(e,r,o,{callee:e.parseAsync}),e.safeParseAsync=async(r,o)=>Q0(e,r,o),e.spa=e.safeParseAsync,e.encode=(r,o)=>ew(e,r,o),e.decode=(r,o)=>tw(e,r,o),e.encodeAsync=async(r,o)=>rw(e,r,o),e.decodeAsync=async(r,o)=>nw(e,r,o),e.safeEncode=(r,o)=>ow(e,r,o),e.safeDecode=(r,o)=>iw(e,r,o),e.safeEncodeAsync=async(r,o)=>sw(e,r,o),e.safeDecodeAsync=async(r,o)=>aw(e,r,o),e.refine=(r,o)=>e.check(Jw(r,o)),e.superRefine=r=>e.check(Yw(r)),e.overwrite=r=>e.check(dn(r)),e.optional=()=>gp(e),e.exactOptional=()=>Dw(e),e.nullable=()=>hp(e),e.nullish=()=>gp(hp(e)),e.nonoptional=r=>Fw(e,r),e.array=()=>_p(e),e.or=r=>Iy([e,r]),e.and=r=>bw(e,r),e.transform=r=>yp(e,Ry(r)),e.default=r=>Mw(e,r),e.prefault=r=>zw(e,r),e.catch=r=>Bw(e,r),e.pipe=r=>yp(e,r),e.readonly=()=>Gw(e),e.describe=r=>{let o=e.clone();return Lt.add(o,{description:r}),o},Object.defineProperty(e,"description",{get(){return Lt.get(e)?.description},configurable:!0}),e.meta=(...r)=>{if(r.length===0)return Lt.get(e);let o=e.clone();return Lt.add(o,r[0]),o},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e.apply=r=>r(e),e)),uy=$("_ZodString",(e,t)=>{Ro.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,s)=>WI(e,o,n,s);let r=e._zod.bag;e.format=r.format??null,e.minLength=r.minimum??null,e.maxLength=r.maximum??null,e.regex=(...o)=>e.check(Ht(...o)),e.includes=(...o)=>e.check(Ks(...o)),e.startsWith=(...o)=>e.check(Xs(...o)),e.endsWith=(...o)=>e.check(Js(...o)),e.min=(...o)=>e.check(vt(...o)),e.max=(...o)=>e.check(Pi(...o)),e.length=(...o)=>e.check(Ci(...o)),e.nonempty=(...o)=>e.check(vt(1,...o)),e.lowercase=o=>e.check(Ws(o)),e.uppercase=o=>e.check(Zs(o)),e.trim=()=>e.check(ea()),e.normalize=(...o)=>e.check(Qs(...o)),e.toLowerCase=()=>e.check(ta()),e.toUpperCase=()=>e.check(ra()),e.slugify=()=>e.check(kc())}),Hc=$("ZodString",(e,t)=>{Ro.init(e,t),uy.init(e,t),e.email=r=>e.check(fd(ly,r)),e.url=r=>e.check(qs(Ep,r)),e.jwt=r=>e.check(Od(Cy,r)),e.emoji=r=>e.check(Ed(dy,r)),e.guid=r=>e.check(Nc(mp,r)),e.uuid=r=>e.check(md(no,r)),e.uuidv4=r=>e.check(gd(no,r)),e.uuidv6=r=>e.check(hd(no,r)),e.uuidv7=r=>e.check(yd(no,r)),e.nanoid=r=>e.check(Sd(py,r)),e.guid=r=>e.check(Nc(mp,r)),e.cuid=r=>e.check(_d(fy,r)),e.cuid2=r=>e.check(vd(my,r)),e.ulid=r=>e.check(xd(gy,r)),e.base64=r=>e.check(wd(xy,r)),e.base64url=r=>e.check(Rd(by,r)),e.xid=r=>e.check(bd(hy,r)),e.ksuid=r=>e.check(Pd(yy,r)),e.ipv4=r=>e.check(Cd(Ey,r)),e.ipv6=r=>e.check(Ad(Sy,r)),e.cidrv4=r=>e.check(Td(_y,r)),e.cidrv6=r=>e.check(Id(vy,r)),e.e164=r=>e.check($d(Py,r)),e.datetime=r=>e.check(q0(r)),e.date=r=>e.check(W0(r)),e.time=r=>e.check(Z0(r)),e.duration=r=>e.check(K0(r))});function ay(e){return dd(Hc,e)}i(ay,"string");var nt=$("ZodStringFormat",(e,t)=>{Qe.init(e,t),uy.init(e,t)}),ly=$("ZodEmail",(e,t)=>{Ng.init(e,t),nt.init(e,t)});function GF(e){return fd(ly,e)}i(GF,"email");var mp=$("ZodGUID",(e,t)=>{Og.init(e,t),nt.init(e,t)});function qF(e){return Nc(mp,e)}i(qF,"guid");var no=$("ZodUUID",(e,t)=>{Dg.init(e,t),nt.init(e,t)});function WF(e){return md(no,e)}i(WF,"uuid");function ZF(e){return gd(no,e)}i(ZF,"uuidv4");function KF(e){return hd(no,e)}i(KF,"uuidv6");function XF(e){return yd(no,e)}i(XF,"uuidv7");var Ep=$("ZodURL",(e,t)=>{Ul.init(e,t),nt.init(e,t)});function JF(e){return qs(Ep,e)}i(JF,"url");function YF(e){return qs(Ep,{protocol:/^https?$/,hostname:Ir.domain,...H.normalizeParams(e)})}i(YF,"httpUrl");var dy=$("ZodEmoji",(e,t)=>{kg.init(e,t),nt.init(e,t)});function QF(e){return Ed(dy,e)}i(QF,"emoji");var py=$("ZodNanoID",(e,t)=>{Mg.init(e,t),nt.init(e,t)});function eU(e){return Sd(py,e)}i(eU,"nanoid");var fy=$("ZodCUID",(e,t)=>{Lg.init(e,t),nt.init(e,t)});function tU(e){return _d(fy,e)}i(tU,"cuid");var my=$("ZodCUID2",(e,t)=>{zg.init(e,t),nt.init(e,t)});function rU(e){return vd(my,e)}i(rU,"cuid2");var gy=$("ZodULID",(e,t)=>{Fg.init(e,t),nt.init(e,t)});function nU(e){return xd(gy,e)}i(nU,"ulid");var hy=$("ZodXID",(e,t)=>{Ug.init(e,t),nt.init(e,t)});function oU(e){return bd(hy,e)}i(oU,"xid");var yy=$("ZodKSUID",(e,t)=>{jg.init(e,t),nt.init(e,t)});function iU(e){return Pd(yy,e)}i(iU,"ksuid");var Ey=$("ZodIPv4",(e,t)=>{Bg.init(e,t),nt.init(e,t)});function sU(e){return Cd(Ey,e)}i(sU,"ipv4");var cw=$("ZodMAC",(e,t)=>{Hg.init(e,t),nt.init(e,t)});function aU(e){return Ph(cw,e)}i(aU,"mac");var Sy=$("ZodIPv6",(e,t)=>{Vg.init(e,t),nt.init(e,t)});function cU(e){return Ad(Sy,e)}i(cU,"ipv6");var _y=$("ZodCIDRv4",(e,t)=>{Gg.init(e,t),nt.init(e,t)});function uU(e){return Td(_y,e)}i(uU,"cidrv4");var vy=$("ZodCIDRv6",(e,t)=>{qg.init(e,t),nt.init(e,t)});function lU(e){return Id(vy,e)}i(lU,"cidrv6");var xy=$("ZodBase64",(e,t)=>{Wg.init(e,t),nt.init(e,t)});function dU(e){return wd(xy,e)}i(dU,"base64");var by=$("ZodBase64URL",(e,t)=>{Zg.init(e,t),nt.init(e,t)});function pU(e){return Rd(by,e)}i(pU,"base64url");var Py=$("ZodE164",(e,t)=>{Kg.init(e,t),nt.init(e,t)});function fU(e){return $d(Py,e)}i(fU,"e164");var Cy=$("ZodJWT",(e,t)=>{Xg.init(e,t),nt.init(e,t)});function mU(e){return Od(Cy,e)}i(mU,"jwt");var Gc=$("ZodCustomStringFormat",(e,t)=>{Jg.init(e,t),nt.init(e,t)});function gU(e,t,r={}){return na(Gc,e,t,r)}i(gU,"stringFormat");function hU(e){return na(Gc,"hostname",Ir.hostname,e)}i(hU,"hostname");function yU(e){return na(Gc,"hex",Ir.hex,e)}i(yU,"hex");function EU(e,t){let r=t?.enc??"hex",o=`${e}_${r}`,n=Ir[o];if(!n)throw new Error(`Unrecognized hash format: ${o}`);return na(Gc,o,n,t)}i(EU,"hash");var qc=$("ZodNumber",(e,t)=>{Ic.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,s)=>ZI(e,o,n,s),e.gt=(o,n)=>e.check(Nn(o,n)),e.gte=(o,n)=>e.check(Tt(o,n)),e.min=(o,n)=>e.check(Tt(o,n)),e.lt=(o,n)=>e.check(Dn(o,n)),e.lte=(o,n)=>e.check(mr(o,n)),e.max=(o,n)=>e.check(mr(o,n)),e.int=o=>e.check(cy(o)),e.safe=o=>e.check(cy(o)),e.positive=o=>e.check(Nn(0,o)),e.nonnegative=o=>e.check(Tt(0,o)),e.negative=o=>e.check(Dn(0,o)),e.nonpositive=o=>e.check(mr(0,o)),e.multipleOf=(o,n)=>e.check($o(o,n)),e.step=(o,n)=>e.check($o(o,n)),e.finite=()=>e;let r=e._zod.bag;e.minValue=Math.max(r.minimum??Number.NEGATIVE_INFINITY,r.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(r.maximum??Number.POSITIVE_INFINITY,r.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(r.format??"").includes("int")||Number.isSafeInteger(r.multipleOf??.5),e.isFinite=!0,e.format=r.format??null});function uw(e){return Ld(qc,e)}i(uw,"number");var ia=$("ZodNumberFormat",(e,t)=>{Gl.init(e,t),qc.init(e,t)});function cy(e){return Fd(ia,e)}i(cy,"int");function SU(e){return Ah(ia,e)}i(SU,"float32");function _U(e){return Th(ia,e)}i(_U,"float64");function vU(e){return Ih(ia,e)}i(vU,"int32");function xU(e){return wh(ia,e)}i(xU,"uint32");var Wc=$("ZodBoolean",(e,t)=>{Hs.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>KI(e,r,o,n)});function lw(e){return Ud(Wc,e)}i(lw,"boolean");var Zc=$("ZodBigInt",(e,t)=>{wc.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,s)=>XI(e,o,n,s),e.gte=(o,n)=>e.check(Tt(o,n)),e.min=(o,n)=>e.check(Tt(o,n)),e.gt=(o,n)=>e.check(Nn(o,n)),e.gte=(o,n)=>e.check(Tt(o,n)),e.min=(o,n)=>e.check(Tt(o,n)),e.lt=(o,n)=>e.check(Dn(o,n)),e.lte=(o,n)=>e.check(mr(o,n)),e.max=(o,n)=>e.check(mr(o,n)),e.positive=o=>e.check(Nn(BigInt(0),o)),e.negative=o=>e.check(Dn(BigInt(0),o)),e.nonpositive=o=>e.check(mr(BigInt(0),o)),e.nonnegative=o=>e.check(Tt(BigInt(0),o)),e.multipleOf=(o,n)=>e.check($o(o,n));let r=e._zod.bag;e.minValue=r.minimum??null,e.maxValue=r.maximum??null,e.format=r.format??null});function bU(e){return Rh(Zc,e)}i(bU,"bigint");var Ay=$("ZodBigIntFormat",(e,t)=>{Yg.init(e,t),Zc.init(e,t)});function PU(e){return $h(Ay,e)}i(PU,"int64");function CU(e){return Oh(Ay,e)}i(CU,"uint64");var dw=$("ZodSymbol",(e,t)=>{Qg.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>JI(e,r,o,n)});function AU(e){return Dh(dw,e)}i(AU,"symbol");var pw=$("ZodUndefined",(e,t)=>{eh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>QI(e,r,o,n)});function TU(e){return Nh(pw,e)}i(TU,"_undefined");var fw=$("ZodNull",(e,t)=>{th.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>YI(e,r,o,n)});function mw(e){return kh(fw,e)}i(mw,"_null");var gw=$("ZodAny",(e,t)=>{ql.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>r0(e,r,o,n)});function IU(){return Vd(gw)}i(IU,"any");var hw=$("ZodUnknown",(e,t)=>{Wl.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>n0(e,r,o,n)});function oa(){return Hd(hw)}i(oa,"unknown");var yw=$("ZodNever",(e,t)=>{rh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>t0(e,r,o,n)});function Ty(e){return Mh(yw,e)}i(Ty,"never");var Ew=$("ZodVoid",(e,t)=>{Zl.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>e0(e,r,o,n)});function wU(e){return Gd(Ew,e)}i(wU,"_void");var Sp=$("ZodDate",(e,t)=>{Kl.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,s)=>o0(e,o,n,s),e.min=(o,n)=>e.check(Tt(o,n)),e.max=(o,n)=>e.check(mr(o,n));let r=e._zod.bag;e.minDate=r.minimum?new Date(r.minimum):null,e.maxDate=r.maximum?new Date(r.maximum):null});function RU(e){return Lh(Sp,e)}i(RU,"date");var Sw=$("ZodArray",(e,t)=>{Xl.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>h0(e,r,o,n),e.element=t.element,e.min=(r,o)=>e.check(vt(r,o)),e.nonempty=r=>e.check(vt(1,r)),e.max=(r,o)=>e.check(Pi(r,o)),e.length=(r,o)=>e.check(Ci(r,o)),e.unwrap=()=>e.element});function _p(e,t){return GI(Sw,e,t)}i(_p,"array");function $U(e){let t=e._zod.def.shape;return wy(Object.keys(t))}i($U,"keyof");var vp=$("ZodObject",(e,t)=>{YT.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>y0(e,r,o,n),H.defineLazy(e,"shape",()=>t.shape),e.keyof=()=>wy(Object.keys(e._zod.def.shape)),e.catchall=r=>e.clone({...e._zod.def,catchall:r}),e.passthrough=()=>e.clone({...e._zod.def,catchall:oa()}),e.loose=()=>e.clone({...e._zod.def,catchall:oa()}),e.strict=()=>e.clone({...e._zod.def,catchall:Ty()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=r=>H.extend(e,r),e.safeExtend=r=>H.safeExtend(e,r),e.merge=r=>H.merge(e,r),e.pick=r=>H.pick(e,r),e.omit=r=>H.omit(e,r),e.partial=(...r)=>H.partial($y,e,r[0]),e.required=(...r)=>H.required(Oy,e,r[0])});function OU(e,t){let r={type:"object",shape:e??{},...H.normalizeParams(t)};return new vp(r)}i(OU,"object");function DU(e,t){return new vp({type:"object",shape:e,catchall:Ty(),...H.normalizeParams(t)})}i(DU,"strictObject");function NU(e,t){return new vp({type:"object",shape:e,catchall:oa(),...H.normalizeParams(t)})}i(NU,"looseObject");var xp=$("ZodUnion",(e,t)=>{Gs.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gh(e,r,o,n),e.options=t.options});function Iy(e,t){return new xp({type:"union",options:e,...H.normalizeParams(t)})}i(Iy,"union");var _w=$("ZodXor",(e,t)=>{xp.init(e,t),oh.init(e,t),e._zod.processJSONSchema=(r,o,n)=>Gh(e,r,o,n),e.options=t.options});function kU(e,t){return new _w({type:"union",options:e,inclusive:!1,...H.normalizeParams(t)})}i(kU,"xor");var vw=$("ZodDiscriminatedUnion",(e,t)=>{xp.init(e,t),Jl.init(e,t)});function MU(e,t,r){return new vw({type:"union",options:t,discriminator:e,...H.normalizeParams(r)})}i(MU,"discriminatedUnion");var xw=$("ZodIntersection",(e,t)=>{ih.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>E0(e,r,o,n)});function bw(e,t){return new xw({type:"intersection",left:e,right:t})}i(bw,"intersection");var Pw=$("ZodTuple",(e,t)=>{Yl.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>S0(e,r,o,n),e.rest=r=>e.clone({...e._zod.def,rest:r})});function Cw(e,t,r){let o=t instanceof ge,n=o?r:t,s=o?t:null;return new Pw({type:"tuple",items:e,rest:s,...H.normalizeParams(n)})}i(Cw,"tuple");var bp=$("ZodRecord",(e,t)=>{Ql.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>_0(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType});function Aw(e,t,r){return new bp({type:"record",keyType:e,valueType:t,...H.normalizeParams(r)})}i(Aw,"record");function LU(e,t,r){let o=Mt(e);return o._zod.values=void 0,new bp({type:"record",keyType:o,valueType:t,...H.normalizeParams(r)})}i(LU,"partialRecord");function zU(e,t,r){return new bp({type:"record",keyType:e,valueType:t,mode:"loose",...H.normalizeParams(r)})}i(zU,"looseRecord");var Tw=$("ZodMap",(e,t)=>{sh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>m0(e,r,o,n),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...r)=>e.check(kn(...r)),e.nonempty=r=>e.check(kn(1,r)),e.max=(...r)=>e.check(Oo(...r)),e.size=(...r)=>e.check(bi(...r))});function FU(e,t,r){return new Tw({type:"map",keyType:e,valueType:t,...H.normalizeParams(r)})}i(FU,"map");var Iw=$("ZodSet",(e,t)=>{ah.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>g0(e,r,o,n),e.min=(...r)=>e.check(kn(...r)),e.nonempty=r=>e.check(kn(1,r)),e.max=(...r)=>e.check(Oo(...r)),e.size=(...r)=>e.check(bi(...r))});function UU(e,t){return new Iw({type:"set",valueType:e,...H.normalizeParams(t)})}i(UU,"set");var Vc=$("ZodEnum",(e,t)=>{ed.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(o,n,s)=>i0(e,o,n,s),e.enum=t.entries,e.options=Object.values(t.entries);let r=new Set(Object.keys(t.entries));e.extract=(o,n)=>{let s={};for(let a of o)if(r.has(a))s[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new Vc({...t,checks:[],...H.normalizeParams(n),entries:s})},e.exclude=(o,n)=>{let s={...t.entries};for(let a of o)if(r.has(a))delete s[a];else throw new Error(`Key ${a} not found in enum`);return new Vc({...t,checks:[],...H.normalizeParams(n),entries:s})}});function wy(e,t){let r=Array.isArray(e)?Object.fromEntries(e.map(o=>[o,o])):e;return new Vc({type:"enum",entries:r,...H.normalizeParams(t)})}i(wy,"_enum");function jU(e,t){return new Vc({type:"enum",entries:e,...H.normalizeParams(t)})}i(jU,"nativeEnum");var ww=$("ZodLiteral",(e,t)=>{td.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>s0(e,r,o,n),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function BU(e,t){return new ww({type:"literal",values:Array.isArray(e)?e:[e],...H.normalizeParams(t)})}i(BU,"literal");var Rw=$("ZodFile",(e,t)=>{ch.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>u0(e,r,o,n),e.min=(r,o)=>e.check(kn(r,o)),e.max=(r,o)=>e.check(Oo(r,o)),e.mime=(r,o)=>e.check(Ys(Array.isArray(r)?r:[r],o))});function VU(e){return Fh(Rw,e)}i(VU,"file");var $w=$("ZodTransform",(e,t)=>{rd.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>f0(e,r,o,n),e._zod.parse=(r,o)=>{if(o.direction==="backward")throw new Ei(e.constructor.name);r.addIssue=s=>{if(typeof s=="string")r.issues.push(H.issue(s,r.value,t));else{let a=s;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=r.value),a.inst??(a.inst=e),r.issues.push(H.issue(a))}};let n=t.transform(r.value,r);return n instanceof Promise?n.then(s=>(r.value=s,r)):(r.value=n,r)}});function Ry(e){return new $w({type:"transform",transform:e})}i(Ry,"transform");var $y=$("ZodOptional",(e,t)=>{Rc.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function gp(e){return new $y({type:"optional",innerType:e})}i(gp,"optional");var Ow=$("ZodExactOptional",(e,t)=>{uh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>qh(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Dw(e){return new Ow({type:"optional",innerType:e})}i(Dw,"exactOptional");var Nw=$("ZodNullable",(e,t)=>{nd.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>v0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function hp(e){return new Nw({type:"nullable",innerType:e})}i(hp,"nullable");function HU(e){return gp(hp(e))}i(HU,"nullish");var kw=$("ZodDefault",(e,t)=>{lh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>b0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Mw(e,t){return new kw({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():H.shallowClone(t)}})}i(Mw,"_default");var Lw=$("ZodPrefault",(e,t)=>{dh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>P0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function zw(e,t){return new Lw({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():H.shallowClone(t)}})}i(zw,"prefault");var Oy=$("ZodNonOptional",(e,t)=>{ph.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>x0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Fw(e,t){return new Oy({type:"nonoptional",innerType:e,...H.normalizeParams(t)})}i(Fw,"nonoptional");var Uw=$("ZodSuccess",(e,t)=>{fh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>l0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function GU(e){return new Uw({type:"success",innerType:e})}i(GU,"success");var jw=$("ZodCatch",(e,t)=>{mh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>C0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Bw(e,t){return new jw({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}i(Bw,"_catch");var Vw=$("ZodNaN",(e,t)=>{gh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>a0(e,r,o,n)});function qU(e){return zh(Vw,e)}i(qU,"nan");var Dy=$("ZodPipe",(e,t)=>{od.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>A0(e,r,o,n),e.in=t.in,e.out=t.out});function yp(e,t){return new Dy({type:"pipe",in:e,out:t})}i(yp,"pipe");var Ny=$("ZodCodec",(e,t)=>{Dy.init(e,t),$c.init(e,t)});function WU(e,t,r){return new Ny({type:"pipe",in:e,out:t,transform:r.decode,reverseTransform:r.encode})}i(WU,"codec");var Hw=$("ZodReadonly",(e,t)=>{hh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>T0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function Gw(e){return new Hw({type:"readonly",innerType:e})}i(Gw,"readonly");var qw=$("ZodTemplateLiteral",(e,t)=>{yh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>c0(e,r,o,n)});function ZU(e,t){return new qw({type:"template_literal",parts:e,...H.normalizeParams(t)})}i(ZU,"templateLiteral");var Ww=$("ZodLazy",(e,t)=>{_h.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>w0(e,r,o,n),e.unwrap=()=>e._zod.def.getter()});function Zw(e){return new Ww({type:"lazy",getter:e})}i(Zw,"lazy");var Kw=$("ZodPromise",(e,t)=>{Sh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>I0(e,r,o,n),e.unwrap=()=>e._zod.def.innerType});function KU(e){return new Kw({type:"promise",innerType:e})}i(KU,"promise");var Xw=$("ZodFunction",(e,t)=>{Eh.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>p0(e,r,o,n)});function XU(e){return new Xw({type:"function",input:Array.isArray(e?.input)?Cw(e?.input):e?.input??_p(oa()),output:e?.output??oa()})}i(XU,"_function");var Pp=$("ZodCustom",(e,t)=>{id.init(e,t),$e.init(e,t),e._zod.processJSONSchema=(r,o,n)=>d0(e,r,o,n)});function JU(e){let t=new rt({check:"custom"});return t._zod.check=e,t}i(JU,"check");function YU(e,t){return Yd(Pp,e??(()=>!0),t)}i(YU,"custom");function Jw(e,t={}){return Qd(Pp,e,t)}i(Jw,"refine");function Yw(e){return Uh(e)}i(Yw,"superRefine");var QU=jh,e2=Bh;function t2(e,t={}){let r=new Pp({type:"custom",check:"custom",fn:i(o=>o instanceof e,"fn"),abort:!0,...H.normalizeParams(t)});return r._zod.bag.Class=e,r._zod.check=o=>{o.value instanceof e||o.issues.push({code:"invalid_type",expected:e.name,input:o.value,inst:r,path:[...r._zod.def.path??[]]})},r}i(t2,"_instanceof");var r2=i((...e)=>Vh({Codec:Ny,Boolean:Wc,String:Hc},...e),"stringbool");function n2(e){let t=Zw(()=>Iy([ay(e),uw(),lw(),mw(),_p(t),Aw(ay(),t)]));return t}i(n2,"json");function o2(e,t){return yp(Ry(e),t)}i(o2,"preprocess");var Rme={invalid_type:"invalid_type",too_big:"too_big",too_small:"too_small",invalid_format:"invalid_format",not_multiple_of:"not_multiple_of",unrecognized_keys:"unrecognized_keys",invalid_union:"invalid_union",invalid_key:"invalid_key",invalid_element:"invalid_element",invalid_value:"invalid_value",custom:"custom"};function $me(e){lt({customError:e})}i($me,"setErrorMap");function Ome(){return lt().customError}i(Ome,"getErrorMap");var Qw;Qw||(Qw={});var te={...fp,...ry,iso:Bc},Dme=new Set(["$schema","$ref","$defs","definitions","$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor","type","enum","const","anyOf","oneOf","allOf","not","properties","required","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","items","prefixItems","additionalItems","minItems","maxItems","uniqueItems","contains","minContains","maxContains","minLength","maxLength","pattern","format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf","description","default","contentEncoding","contentMediaType","contentSchema","unevaluatedItems","unevaluatedProperties","if","then","else","dependentSchemas","dependentRequired","nullable","readOnly"]);function Nme(e,t){let r=e.$schema;return r==="https://json-schema.org/draft/2020-12/schema"?"draft-2020-12":r==="http://json-schema.org/draft-07/schema#"?"draft-7":r==="http://json-schema.org/draft-04/schema#"?"draft-4":t??"draft-2020-12"}i(Nme,"detectVersion");function kme(e,t){if(!e.startsWith("#"))throw new Error("External $ref is not supported, only local refs (#/...) are allowed");let r=e.slice(1).split("/").filter(Boolean);if(r.length===0)return t.rootSchema;let o=t.version==="draft-2020-12"?"$defs":"definitions";if(r[0]===o){let n=r[1];if(!n||!t.defs[n])throw new Error(`Reference not found: ${e}`);return t.defs[n]}throw new Error(`Reference not found: ${e}`)}i(kme,"resolveRef");function i2(e,t){if(e.not!==void 0){if(typeof e.not=="object"&&Object.keys(e.not).length===0)return te.never();throw new Error("not is not supported in Zod (except { not: {} } for never)")}if(e.unevaluatedItems!==void 0)throw new Error("unevaluatedItems is not supported");if(e.unevaluatedProperties!==void 0)throw new Error("unevaluatedProperties is not supported");if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw new Error("Conditional schemas (if/then/else) are not supported");if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw new Error("dependentSchemas and dependentRequired are not supported");if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return te.lazy(()=>{if(!t.refs.has(n))throw new Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let s=kme(n,t),a=er(s,t);return t.refs.set(n,a),t.processing.delete(n),a}if(e.enum!==void 0){let n=e.enum;if(t.version==="openapi-3.0"&&e.nullable===!0&&n.length===1&&n[0]===null)return te.null();if(n.length===0)return te.never();if(n.length===1)return te.literal(n[0]);if(n.every(a=>typeof a=="string"))return te.enum(n);let s=n.map(a=>te.literal(a));return s.length<2?s[0]:te.union([s[0],s[1],...s.slice(2)])}if(e.const!==void 0)return te.literal(e.const);let r=e.type;if(Array.isArray(r)){let n=r.map(s=>{let a={...e,type:s};return i2(a,t)});return n.length===0?te.never():n.length===1?n[0]:te.union(n)}if(!r)return te.any();let o;switch(r){case"string":{let n=te.string();if(e.format){let s=e.format;s==="email"?n=n.check(te.email()):s==="uri"||s==="uri-reference"?n=n.check(te.url()):s==="uuid"||s==="guid"?n=n.check(te.uuid()):s==="date-time"?n=n.check(te.iso.datetime()):s==="date"?n=n.check(te.iso.date()):s==="time"?n=n.check(te.iso.time()):s==="duration"?n=n.check(te.iso.duration()):s==="ipv4"?n=n.check(te.ipv4()):s==="ipv6"?n=n.check(te.ipv6()):s==="mac"?n=n.check(te.mac()):s==="cidr"?n=n.check(te.cidrv4()):s==="cidr-v6"?n=n.check(te.cidrv6()):s==="base64"?n=n.check(te.base64()):s==="base64url"?n=n.check(te.base64url()):s==="e164"?n=n.check(te.e164()):s==="jwt"?n=n.check(te.jwt()):s==="emoji"?n=n.check(te.emoji()):s==="nanoid"?n=n.check(te.nanoid()):s==="cuid"?n=n.check(te.cuid()):s==="cuid2"?n=n.check(te.cuid2()):s==="ulid"?n=n.check(te.ulid()):s==="xid"?n=n.check(te.xid()):s==="ksuid"&&(n=n.check(te.ksuid()))}typeof e.minLength=="number"&&(n=n.min(e.minLength)),typeof e.maxLength=="number"&&(n=n.max(e.maxLength)),e.pattern&&(n=n.regex(new RegExp(e.pattern))),o=n;break}case"number":case"integer":{let n=r==="integer"?te.number().int():te.number();typeof e.minimum=="number"&&(n=n.min(e.minimum)),typeof e.maximum=="number"&&(n=n.max(e.maximum)),typeof e.exclusiveMinimum=="number"?n=n.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum=="number"&&(n=n.gt(e.minimum)),typeof e.exclusiveMaximum=="number"?n=n.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum=="number"&&(n=n.lt(e.maximum)),typeof e.multipleOf=="number"&&(n=n.multipleOf(e.multipleOf)),o=n;break}case"boolean":{o=te.boolean();break}case"null":{o=te.null();break}case"object":{let n={},s=e.properties||{},a=new Set(e.required||[]);for(let[u,l]of Object.entries(s)){let p=er(l,t);n[u]=a.has(u)?p:p.optional()}if(e.propertyNames){let u=er(e.propertyNames,t),l=e.additionalProperties&&typeof e.additionalProperties=="object"?er(e.additionalProperties,t):te.any();if(Object.keys(n).length===0){o=te.record(u,l);break}let p=te.object(n).passthrough(),f=te.looseRecord(u,l);o=te.intersection(p,f);break}if(e.patternProperties){let u=e.patternProperties,l=Object.keys(u),p=[];for(let y of l){let m=er(u[y],t),_=te.string().regex(new RegExp(y));p.push(te.looseRecord(_,m))}let f=[];if(Object.keys(n).length>0&&f.push(te.object(n).passthrough()),f.push(...p),f.length===0)o=te.object({}).passthrough();else if(f.length===1)o=f[0];else{let y=te.intersection(f[0],f[1]);for(let m=2;m<f.length;m++)y=te.intersection(y,f[m]);o=y}break}let c=te.object(n);e.additionalProperties===!1?o=c.strict():typeof e.additionalProperties=="object"?o=c.catchall(er(e.additionalProperties,t)):o=c.passthrough();break}case"array":{let n=e.prefixItems,s=e.items;if(n&&Array.isArray(n)){let a=n.map(u=>er(u,t)),c=s&&typeof s=="object"&&!Array.isArray(s)?er(s,t):void 0;c?o=te.tuple(a).rest(c):o=te.tuple(a),typeof e.minItems=="number"&&(o=o.check(te.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(te.maxLength(e.maxItems)))}else if(Array.isArray(s)){let a=s.map(u=>er(u,t)),c=e.additionalItems&&typeof e.additionalItems=="object"?er(e.additionalItems,t):void 0;c?o=te.tuple(a).rest(c):o=te.tuple(a),typeof e.minItems=="number"&&(o=o.check(te.minLength(e.minItems))),typeof e.maxItems=="number"&&(o=o.check(te.maxLength(e.maxItems)))}else if(s!==void 0){let a=er(s,t),c=te.array(a);typeof e.minItems=="number"&&(c=c.min(e.minItems)),typeof e.maxItems=="number"&&(c=c.max(e.maxItems)),o=c}else o=te.array(te.any());break}default:throw new Error(`Unsupported type: ${r}`)}return e.description&&(o=o.describe(e.description)),e.default!==void 0&&(o=o.default(e.default)),o}i(i2,"convertBaseSchema");function er(e,t){if(typeof e=="boolean")return e?te.any():te.never();let r=i2(e,t),o=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let c=e.anyOf.map(l=>er(l,t)),u=te.union(c);r=o?te.intersection(r,u):u}if(e.oneOf&&Array.isArray(e.oneOf)){let c=e.oneOf.map(l=>er(l,t)),u=te.xor(c);r=o?te.intersection(r,u):u}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)r=o?r:te.any();else{let c=o?r:er(e.allOf[0],t),u=o?0:1;for(let l=u;l<e.allOf.length;l++)c=te.intersection(c,er(e.allOf[l],t));r=c}e.nullable===!0&&t.version==="openapi-3.0"&&(r=te.nullable(r)),e.readOnly===!0&&(r=te.readonly(r));let n={},s=["$id","id","$comment","$anchor","$vocabulary","$dynamicRef","$dynamicAnchor"];for(let c of s)c in e&&(n[c]=e[c]);let a=["contentEncoding","contentMediaType","contentSchema"];for(let c of a)c in e&&(n[c]=e[c]);for(let c of Object.keys(e))Dme.has(c)||(n[c]=e[c]);return Object.keys(n).length>0&&t.registry.add(r,n),r}i(er,"convertSchema");function s2(e,t){if(typeof e=="boolean")return e?te.any():te.never();let r=Nme(e,t?.defaultTarget),o=e.$defs||e.definitions||{},n={version:r,defs:o,refs:new Map,processing:new Set,rootSchema:e,registry:t?.registry??Lt};return er(e,n)}i(s2,"fromJSONSchema");var eR={};We(eR,{bigint:()=>Fme,boolean:()=>zme,date:()=>Ume,number:()=>Lme,string:()=>Mme});function Mme(e){return pd(Hc,e)}i(Mme,"string");function Lme(e){return zd(qc,e)}i(Lme,"number");function zme(e){return jd(Wc,e)}i(zme,"boolean");function Fme(e){return Bd(Zc,e)}i(Fme,"bigint");function Ume(e){return qd(Sp,e)}i(Ume,"date");lt(sd());var tR={required:"required",invalidGitRepoSlug:"invalidGitRepoSlug",invalidGitRepoBranch:"invalidGitRepoBranch",invalidGitRepoRemoteUrl:"invalidGitRepoRemoteUrl",invalidExternalId:"invalidExternalId",invalidFileName:"invalidFileName",messageRequiresContentOrFiles:"messageRequiresContentOrFiles",agentConfigTooLarge:"agentConfigTooLarge",invalidGcpResourceId:"invalidGcpResourceId",duplicateRouteName:"duplicateRouteName",atLeastOne:"atLeastOne",wholeNumber:"wholeNumber",atMostTenThousand:"atMostTenThousand",tierNameTooLong:"tierNameTooLong",tierDescriptionTooLong:"tierDescriptionTooLong",invalidEmoji:"invalidEmoji",tierTooManyModels:"tierTooManyModels",tierDuplicateModel:"tierDuplicateModel",tierThinkingBudgetInvalid:"tierThinkingBudgetInvalid",invalidHeaderName:"invalidHeaderName",reservedHeaderName:"reservedHeaderName",duplicateHeaderName:"duplicateHeaderName",invalidHeaderValue:"invalidHeaderValue"};var a2=(r=>(r.IMAGE="image",r.TEXT="text",r))(a2||{}),hr=W.object({apiKey:W.string()}),c2=W.object({serviceAccountJson:W.string().min(1)}),u2=hr,l2=hr.extend({apiKeyHash:W.string()}),d2=hr,p2=hr,f2=hr,m2=hr,g2=hr,h2=hr,y2=W.object({accessKeyId:W.string().min(1),secretAccessKey:W.string().min(1),sessionToken:W.string().optional()}),E2=hr,S2=W.object({}),_2=W.object({}),rR=W.object({modelId:W.string(),modelName:W.string(),modelType:W.enum(a2)}),v2=W.object({apiKeyHeader:W.string(),baseUrl:W.string(),models:W.array(rR),defaultHeaders:W.record(W.string(),W.string()).optional(),apiStyle:W.enum(["chat","responses"]).optional()}),x2=W.object({accountId:W.string(),gatewayId:W.string(),models:W.array(rR),vertexProject:W.string().optional(),vertexRegion:W.string().optional()}),b2=W.object({resourceName:W.string(),apiVersion:W.preprocess(e=>typeof e=="string"&&e.trim().length===0?void 0:e,W.string().optional())}),P2=W.object({}),C2=W.object({}),A2=W.object({}),T2=W.object({region:W.string().min(1)}),I2=W.object({project:W.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,tR.invalidGcpResourceId),region:W.string().regex(/^[a-z0-9][a-z0-9-]{0,62}$/,tR.invalidGcpResourceId),models:W.array(rR)}),w2=W.object({}),sa=W.object({}),uWe=W.union([u2,f2,m2,g2,h2,p2,d2,l2,y2,c2,E2]),lWe=W.union([v2,x2,b2,I2,T2,S2,P2,C2,A2,_2,w2,sa]),dWe=W.discriminatedUnion("provider",[W.object({provider:W.literal("openai"),config:C2.partial(),auth:g2.partial()}),W.object({provider:W.literal("openrouter"),config:A2.partial(),auth:h2.partial()}),W.object({provider:W.literal("anthropic"),config:S2.partial(),auth:u2.partial()}),W.object({provider:W.literal("azure"),config:b2.partial(),auth:f2.partial()}),W.object({provider:W.literal("google"),config:P2.partial(),auth:m2.partial()}),W.object({provider:W.literal("cloudflare-gateway"),config:x2.partial(),auth:p2.partial()}),W.object({provider:W.literal("custom"),config:v2.partial(),auth:d2.partial()}),W.object({provider:W.literal("activepieces"),config:_2.partial(),auth:l2.partial()}),W.object({provider:W.literal("bedrock"),config:T2.partial(),auth:y2.partial()}),W.object({provider:W.literal("vertex"),config:I2.partial(),auth:c2.partial()}),W.object({provider:W.literal("mistral"),config:w2.partial(),auth:E2.partial()}),W.object({provider:W.literal("xai"),config:sa.partial(),auth:hr.partial()}),W.object({provider:W.literal("deepseek"),config:sa.partial(),auth:hr.partial()}),W.object({provider:W.literal("zai"),config:sa.partial(),auth:hr.partial()}),W.object({provider:W.literal("qwen"),config:sa.partial(),auth:hr.partial()}),W.object({provider:W.literal("minimax"),config:sa.partial(),auth:hr.partial()}),W.object({provider:W.literal("moonshot"),config:sa.partial(),auth:hr.partial()})]);var xWe=C().check(Ht(/^#[0-9A-Fa-f]{6}$/));var PWe=D({filename:C(),data:xe(),type:ue("file"),mimetype:N(C())});var jme=w($2());var $We=D({...fn,name:C(),permissions:me(C()),platformId:dt(C()),type:C(),userCount:N(zt())});var jWe=W.enum(["active","out_of_credits","rejected","unreachable"]);var O2=(o=>(o.AGENT_DECIDE="agent-decide",o.CHOOSE_YOURSELF="choose-yourself",o.LEAVE_EMPTY="leave-empty",o))(O2||{}),nR=(r=>(r.FILE="FILE",r.TABLE="TABLE",r))(nR||{}),oR=(o=>(o.SSE="sse",o.STREAMABLE_HTTP="streamable-http",o.SIMPLE_HTTP="http",o))(oR||{});var iR=(o=>(o.TEXT="text",o.NUMBER="number",o.BOOLEAN="boolean",o))(iR||{});var sR=(r=>(r.IN_PROGRESS="in-progress",r.COMPLETED="completed",r))(sR||{});var Bme=D({mode:de(O2),value:xe()}),Vme=D({auth:N(C()),fields:be(C(),Bme)}),Hme=D({pieceName:C(),pieceVersion:C(),actionName:C(),predefinedInput:N(Vme)}),Gme=D({type:ue("PIECE"),toolName:C().check(vt(1)),pieceMetadata:Hme}),qme=D({type:ue("none")}),Wme=D({type:ue("access_token"),accessToken:C()}),Zme=D({type:ue("api_key"),apiKey:C(),apiKeyHeader:C()}),Kme=D({type:ue("headers"),headers:be(C(),C())}),Xme=wi("type",[qme,Wme,Zme,Kme]),D2=D({type:ue("FLOW"),toolName:C().check(vt(1)),externalFlowId:C(),flowDisplayName:N(C())}),N2=D({type:ue("MCP"),toolName:C().check(vt(1)),serverUrl:TF(),protocol:de(oR),auth:Xme}),k2=D({type:ue("KNOWLEDGE_BASE"),toolName:C().check(vt(1)),sourceType:de(nR),sourceId:C(),sourceName:C()}),Jme=wi("type",[Gme,D2,N2,k2]),Yme=D({displayName:C(),description:N(C()),type:de(iR)}),M2=D({type:ue("MARKDOWN"),markdown:C()}),Kc={type:ue("TOOL_CALL"),input:dt(be(C(),xe())),output:N(xe()),toolName:C(),status:de(sR),toolCallId:C(),startTime:C(),endTime:N(C())},IZe=D(Kc),L2=wi("toolCallType",[D({...Kc,toolCallType:ue("PIECE"),pieceName:C(),pieceVersion:C(),actionName:C()}),D({...Kc,toolCallType:ue("FLOW"),displayName:C(),externalFlowId:C()}),D({...Kc,toolCallType:ue("MCP"),displayName:C(),serverUrl:C()}),D({...Kc,toolCallType:ue("KNOWLEDGE_BASE"),displayName:C(),sourceType:C()}),D({...Kc,toolCallType:ue("UNKNOWN"),displayName:C()})]),Qme=Re([M2,L2]);var ege=10800*1e3,tge=900*1e3;var uR=(r=>(r.IMAGE="image",r.TEXT="text",r))(uR||{}),Lo=D({apiKey:C()}),nge=Lo,oge=D({apiKey:C(),apiKeyHash:C()}),ige=Lo,sge=Lo,age=Lo,cge=Lo,uge=Lo,lge=Lo,dge=Lo,j2=D({serviceAccountJson:C().check(vt(1))}),B2=D({accessKeyId:C().check(vt(1)),secretAccessKey:C().check(vt(1)),sessionToken:N(C())}),pge=D({}),fge=D({}),mge=D({}),gge=D({}),hge=D({}),yge=D({}),lR=D({modelId:C(),modelName:C(),modelType:de(uR)}),V2=D({apiKeyHeader:C(),baseUrl:C(),models:me(lR),defaultHeaders:N(be(C(),C())),apiStyle:N(de(["chat","responses"]))}),H2=D({accountId:C(),gatewayId:C(),models:me(lR),vertexProject:N(C()),vertexRegion:N(C())}),G2=D({resourceName:C(),apiVersion:$i(Ri(e=>typeof e=="string"&&e.trim().length===0?void 0:e),N(C()))}),q2=D({region:C().check(vt(1))}),W2=D({project:C().check(Ht(/^[a-z0-9][a-z0-9-]{0,62}$/)),region:C().check(Ht(/^[a-z0-9][a-z0-9-]{0,62}$/)),models:me(lR)}),Z2=D({}),Ege=Re([nge,age,cge,uge,lge,sge,ige,oge,B2,j2,dge]),K2=Re([V2,H2,G2,W2,q2,pge,mge,gge,hge,fge,yge,Z2]),Sge=D({id:C(),name:C(),type:de(uR)}),_ge=D({id:C(),name:C(),provider:de(ki),config:K2,enabledForChat:Fe()}),vge=D({provider:de(ki),name:C(),enabledForChat:Fe(),keys:me(D({id:C(),name:C()}))}),xge=D({provider:de(ki),configId:C(),config:K2,auth:Ege,platformId:C()});var OZe={openai:"openai",anthropic:"anthropic","google-ai-studio":"google","google-vertex-ai":"google"},z2=["gpt-5.5","gpt-5.6-sol","gpt-5.6-terra","gpt-5.6-luna","gpt-5.4-mini","gpt-5.4-nano","gpt-4.1","gpt-4.1-mini"],bge=["claude-sonnet-4-6","claude-opus-4-7","claude-haiku-4-5"],X2=["claude-sonnet-4.6","claude-opus-4.7","claude-opus-4.8","claude-haiku-4.5"],aR=["gemini-3.7-flash","gemini-3.1-pro-preview","gemini-3-flash-preview"],cR=["gemini-2.5-pro","gemini-2.5-flash"],Pge=["grok-4.20"],DZe={google:cR,vertex:cR},NZe=[...X2.map(e=>`anthropic/${e}`),"deepseek/deepseek-v4.1-flash"],Cge={openai:z2,anthropic:bge,google:aR,vertex:aR,activepieces:[...X2.map(e=>`anthropic/${e}`),...z2.map(e=>`openai/${e}`),...[...aR,...cR].map(e=>`google/${e}`),...Pge.map(e=>`x-ai/${e}`)]};var F2=128e3,Age={openai:128e3,anthropic:2e5,google:1048576,bedrock:2e5,vertex:1048576,azure:128e3,openrouter:128e3,activepieces:2e5,mistral:128e3};function Tge({provider:e}){return e?Age[e]??F2:F2}i(Tge,"getMaxContextTokens");var U2={openai:"text-embedding-3-small",google:"text-embedding-004",azure:"text-embedding-3-small",activepieces:"text-embedding-3-small",openrouter:"openai/text-embedding-3-small"},Ige={anthropic:"native",google:"native",openrouter:"plugin",activepieces:"plugin"},wge=new Set(["anthropic","mistral","xai","deepseek","zai","qwen","minimax","moonshot"]),Rge={xai:"https://api.x.ai/v1",deepseek:"https://api.deepseek.com/v1",zai:"https://api.z.ai/api/paas/v4",qwen:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",minimax:"https://api.minimax.io/v1",moonshot:"https://api.moonshot.ai/v1"};function Gt(e){return{chatModels:Cge[e],maxContextTokens:Tge({provider:e}),defaultEmbeddingModel:U2[e],supportsEmbedding:U2[e]!==void 0,supportsImageGeneration:!wge.has(e),defaultImageModel:$ge[e],webSearch:Ige[e]}}i(Gt,"buildProviderCapabilities");var J2=[{id:"fast",label:"Fast",modelId:"google/gemini-3.1-flash-lite-image"},{id:"smart",label:"Expert",modelId:"google/gemini-3.1-flash-image"},{id:"premium",label:"Heavy",modelId:"google/gemini-3-pro-image"}],$ge={activepieces:J2[0].modelId,openrouter:"google/gemini-3.1-flash-lite-image",openai:"gpt-image-1.5",google:"gemini-3.1-flash-image"},Oge={openai:Gt("openai"),anthropic:Gt("anthropic"),openrouter:Gt("openrouter"),azure:Gt("azure"),google:Gt("google"),"cloudflare-gateway":Gt("cloudflare-gateway"),custom:Gt("custom"),bedrock:Gt("bedrock"),vertex:Gt("vertex"),mistral:Gt("mistral"),activepieces:Gt("activepieces"),xai:Gt("xai"),deepseek:Gt("deepseek"),zai:Gt("zai"),qwen:Gt("qwen"),minimax:Gt("minimax"),moonshot:Gt("moonshot")};var Dge=D({base64Url:C(),fileName:C(),extension:N(C())}),Nge=D({mimeType:C(),url:C(),fileName:N(C())}),dR=Re([Dge,Nge]);var kge=Re([D({type:ue("file"),value:dR}),D({type:ue("markdown"),value:C(),files:N(me(dR))})]),Mge=D({sessionId:C(),message:C(),files:N(me(C()))});var Q2=(r=>(r.ON_NEW_RECORD="ON_NEW_RECORD",r.ON_UPDATE_RECORD="ON_UPDATE_RECORD",r))(Q2||{}),e4=(r=>(r.ENABLED="ENABLED",r.DISABLED="DISABLED",r))(e4||{}),pR=(o=>(o.RECORD_CREATED="RECORD_CREATED",o.RECORD_UPDATED="RECORD_UPDATED",o.RECORD_DELETED="RECORD_DELETED",o))(pR||{});var Lge=Re([D({...fn,name:C(),externalId:C(),type:ue("STATIC_DROPDOWN"),tableId:C(),projectId:C(),data:D({options:me(D({value:C()}))})}),D({...fn,name:C(),externalId:C(),type:Re([ue("TEXT"),ue("NUMBER"),ue("DATE"),ue("DATETIME")]),tableId:C(),projectId:C()})]),zge=D({...fn,name:C(),folderId:dt(C()),projectId:C(),externalId:C(),status:H0(e4),trigger:H0(Q2)}),Fge=D({...fn,tableId:C(),projectId:C(),cells:be(C(),D({updated:C(),created:C(),value:xe(),fieldName:C()}))}),Uge=D({events:me(de(pR)),webhookUrl:C(),flowId:C()}),jge=D({fields:me(D({id:C(),name:C()})),rows:me(be(C(),C())),name:C()}),Bge=D({projectId:C(),limit:N(np.number()),cursor:N(C()),name:N(C()),externalIds:ty(C()),folderId:N(C()),folderIds:ty(C())}),Vge=D({records:me(me(D({fieldId:C(),value:r4()}))),tableId:C()}),Hge=D({cells:N(me(D({fieldId:C(),value:r4()}))),tableId:C(),agentUpdate:N(Fe())}),t4=wi("operator",[aa("eq"),aa("neq"),aa("gt"),aa("gte"),aa("lt"),aa("lte"),aa("co"),Y2("exists"),Y2("not_exists")]),Gge=D({tableId:C(),limit:N(np.number()),cursor:N(C()),filters:ty(t4)});function r4(){return $i(Ri(e=>e==null?e:String(e)),rp(C()))}i(r4,"coerceToString");function aa(e){return D({fieldId:C(),operator:ue(e),value:C()})}i(aa,"valueFilter");function Y2(e){return D({fieldId:C(),operator:ue(e)})}i(Y2,"existenceFilter");var qge=D({status:N(zt()),body:N(xe()),headers:N(be(C(),C()))}),Wge=D({...fn,deleted:dt(Ni),ownerId:C(),displayName:C(),platformId:C(),externalId:dt(C())});var n4=D({name:C(),description:N(C()),type:C(),required:Fe()}),Zge=D({pieceName:C(),triggerName:C(),input:D({toolName:C(),toolDescription:C(),inputSchema:me(n4),returnsResponse:Fe()})});var o4="^[0-9]+\\.[0-9]+\\.[0-9]+$",QZe=new RegExp(o4),Xge="^([~^])?[0-9]+\\.[0-9]+\\.[0-9]+$",e8e=C().check(Ht(new RegExp(o4))),t8e=C().check(Ht(new RegExp(Xge))),Jge=D({packageType:ue("ARCHIVE"),pieceType:de(Fc),pieceName:C(),pieceVersion:C(),archiveId:C(),platformId:C()}),i4=D({packageType:ue("REGISTRY"),pieceType:ue("OFFICIAL"),pieceName:C(),pieceVersion:C()}),s4=D({packageType:ue("REGISTRY"),pieceType:ue("CUSTOM"),pieceName:C(),pieceVersion:C(),platformId:C()}),r8e=Re([i4,s4]),n8e=Re([Jge,i4,s4]);var Yge=wi("type",[D({type:ue("CRON_EXPRESSION"),cronExpression:C(),timezone:C()}),D({type:ue("INTERVAL"),intervalMs:IF().check(Tt(6e4))})]),o8e=D({...fn,type:de(Oi),projectId:C(),flowId:C(),triggerName:C(),schedule:dt(Yge),flowVersionId:C(),pieceName:C(),pieceVersion:C(),deleted:dt(C()),simulate:Fe()}),a4=(R=>(R.UNKNOWN="UNKNOWN",R.FLOW_RUN_LOG="FLOW_RUN_LOG",R.FLOW_RUN_LOG_SLICE="FLOW_RUN_LOG_SLICE",R.PACKAGE_ARCHIVE="PACKAGE_ARCHIVE",R.FLOW_STEP_FILE="FLOW_STEP_FILE",R.SAMPLE_DATA="SAMPLE_DATA",R.TRIGGER_PAYLOAD="TRIGGER_PAYLOAD",R.SAMPLE_DATA_INPUT="SAMPLE_DATA_INPUT",R.TRIGGER_EVENT_FILE="TRIGGER_EVENT_FILE",R.PROJECT_RELEASE="PROJECT_RELEASE",R.FLOW_VERSION_BACKUP="FLOW_VERSION_BACKUP",R.PLATFORM_ASSET="PLATFORM_ASSET",R.USER_PROFILE_PICTURE="USER_PROFILE_PICTURE",R.WEBHOOK_PAYLOAD="WEBHOOK_PAYLOAD",R.MCP_CALL_PAYLOAD="MCP_CALL_PAYLOAD",R.KNOWLEDGE_BASE="KNOWLEDGE_BASE",R.FLOW_BUNDLE="FLOW_BUNDLE",R.PREWARM_SCOPE="PREWARM_SCOPE",R))(a4||{}),c4=(r=>(r.NONE="NONE",r.ZSTD="ZSTD",r))(c4||{}),u4=(r=>(r.S3="S3",r.DB="DB",r))(u4||{}),i8e=D({...fn,projectId:dt(C()),platformId:dt(C()),type:de(a4),compression:de(c4),data:N(xe()),location:de(u4),size:dt(zt()),fileName:dt(C()),s3Key:dt(C()),metadata:dt(be(C(),C()))}),l4=(o=>(o.ADMIN="ADMIN",o.MEMBER="MEMBER",o.OPERATOR="OPERATOR",o))(l4||{}),d4=(r=>(r.ACTIVE="ACTIVE",r.INACTIVE="INACTIVE",r))(d4||{}),s8e=D({id:C(),email:C(),firstName:C(),status:de(d4),externalId:dt(C()),platformId:dt(C()),platformRole:de(l4),lastName:C(),created:Ni,updated:Ni,lastActiveDate:dt(Ni),imageUrl:dt(C())});var fR=D({...ze.shape,...Ae(be(C(),xe()),"OBJECT").shape});var mR=D({...ze.shape,formatProperty:N(C()),...Ae(C(),"RICH_TEXT").shape});var h4=D({...ze.shape,...Ae(C(),"COLOR").shape});var gR=Re([qr,Do,mR,Qh,ko,Wr,No,z0,op,U0,Mo,ap,fR,cp,sp,F0,ip,h4]),yt={ShortText(e){return{...e,valueSchema:void 0,type:"SHORT_TEXT"}},Checkbox(e){return{...e,valueSchema:void 0,type:"CHECKBOX"}},LongText(e){return{...e,valueSchema:void 0,type:"LONG_TEXT"}},RichText(e){return{...e,valueSchema:void 0,type:"RICH_TEXT"}},MarkDown(e){return{displayName:"Markdown",required:!1,description:e.value,type:"MARKDOWN",valueSchema:void 0,variant:e.variant??"INFO"}},Number(e){return{...e,valueSchema:void 0,type:"NUMBER"}},Json(e){return{...e,valueSchema:void 0,type:"JSON"}},Array(e){return{...e,valueSchema:void 0,type:"ARRAY"}},Object(e){return{...e,valueSchema:void 0,type:"OBJECT"}},Dropdown(e){return{...e,valueSchema:void 0,type:"DROPDOWN"}},StaticDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_DROPDOWN"}},MultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"MULTI_SELECT_DROPDOWN"}},DynamicProperties(e){return{...e,valueSchema:void 0,type:"DYNAMIC"}},StaticMultiSelectDropdown(e){return{...e,valueSchema:void 0,type:"STATIC_MULTI_SELECT_DROPDOWN"}},DateTime(e){return{...e,valueSchema:void 0,type:"DATE_TIME"}},DateRange(e){return{...e,valueSchema:void 0,type:"DATE_RANGE"}},File(e){return{...e,valueSchema:void 0,type:"FILE"}},Custom(e){let t=e.code.toString();return{...e,code:t,valueSchema:void 0,type:"CUSTOM"}},Color(e){return{...e,valueSchema:void 0,type:"COLOR"}}};var oo=D({displayName:C(),description:N(C()),hasConnectionIdentifier:N(Fe())});var y4=D({username:C(),password:C()}),hR=D({...oo.shape,username:D({displayName:C(),description:N(C())}),password:D({displayName:C(),description:N(C())}),...Ae(y4,"BASIC_AUTH").shape});var the=be(C(),Re([qr,Do,Mo,ko,Wr])),yR=D({...oo.shape,props:the,...Ae(xe(),"CUSTOM_AUTH").shape});var ca=D({...oo.shape,...Ae(D({auth:C()}),"SECRET_TEXT").shape});var rhe=be(C(),Re([qr,Do,ca,Mo,ko,Wr,No,Qh])),E4=D({...oo.shape,props:rhe,...Ae(xe(),"OIDC").shape});var ER=(r=>(r.HEADER="HEADER",r.BODY="BODY",r))(ER||{}),S4=Re([qr,ca,Wr]),_4=be(C(),S4),v4=D({serverUrlProp:C(),authUrlProp:C(),tokenUrlProp:C(),scopesProp:N(C())}),nhe=D({props:N(be(C(),S4)),authUrl:C(),tokenUrl:C(),scope:me(C()),prompt:N(Re([ue("none"),ue("consent"),ue("login"),ue("omit")])),pkce:N(Fe()),pkceMethod:N(Re([ue("plain"),ue("S256")])),authorizationMethod:N(de(ER)),grantType:N(Re([de(lp),ue(j0)])),extra:N(be(C(),C())),discovery:N(v4)}),x4=D({access_token:C(),props:N(_4),data:be(C(),tp())}),SR=D({...oo.shape,...nhe.shape,...Ae(x4,"OAUTH2").shape});var Xc=Re([hR,yR,E4,SR,ca]),Cp="Connection",Ap={SecretText(e){return{...e,valueSchema:void 0,type:"SECRET_TEXT"}},OAuth2(e){return{...e,valueSchema:void 0,type:"OAUTH2",displayName:e.displayName||Cp}},BasicAuth(e){return{...e,valueSchema:void 0,type:"BASIC_AUTH",displayName:e.displayName||Cp,required:!0}},CustomAuth(e){return{...e,valueSchema:void 0,type:"CUSTOM_AUTH",displayName:e.displayName||Cp}},OIDC(e){return{...e,valueSchema:void 0,type:"OIDC",displayName:e.displayName||Cp}},None(){}};var VKe={OAUTH2:"OAUTH2",CLOUD_OAUTH2:"OAUTH2",PLATFORM_OAUTH2:"OAUTH2",BASIC_AUTH:"BASIC_AUTH",CUSTOM_AUTH:"CUSTOM_AUTH",OIDC:"OIDC",SECRET_TEXT:"SECRET_TEXT",NO_AUTH:void 0};var ohe=D({...ze.shape,...Ae(xe(),"CUSTOM").shape,code:C()});var she=Re([gR,Xc]),_R=be(C(),she),u5e=be(C(),gR);var b4=Re([D({strategy:ue("CRON"),cronExpression:C()}),D({strategy:ue("NONE")})]),Jc=class{constructor(t,r,o,n,s,a,c,u,l,p,f,y,m,_,b,A,I,R,j,ee,ae){this.name=t;this.displayName=r;this.description=o;this.requireAuth=n;this.props=s;this.type=a;this.handshakeConfiguration=c;this.onHandshake=u;this.renewConfiguration=l;this.onRenew=p;this.onEnable=f;this.onDisable=y;this.onStart=m;this.run=_;this.test=b;this.sampleData=A;this.testStrategy=I;this.outputSchema=R;this.aiMetadata=j;this.classification=ee;this.propertyGroups=ae}static{i(this,"ITrigger")}},P4=i(e=>{switch(e.type){case"WEBHOOK":return new Jc(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,e.handshakeConfiguration??{strategy:"NONE"},e.onHandshake??(async()=>({status:200})),e.renewConfiguration??{strategy:"NONE"},e.onRenew??(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,e.test?"TEST_FUNCTION":"SIMULATION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"POLLING":return new Jc(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"MANUAL":return new Jc(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups);case"APP_WEBHOOK":return new Jc(e.name,e.displayName,e.description,e.requireAuth??!0,e.props,e.type,{strategy:"NONE"},async()=>({status:200}),{strategy:"NONE"},(async()=>Promise.resolve()),e.onEnable,e.onDisable,e.onStart??(async()=>Promise.resolve()),e.run,e.test??(()=>Promise.resolve([e.sampleData])),e.sampleData,pn(e.sampleData)&&pn(e.test)?"SIMULATION":"TEST_FUNCTION",e.outputSchema,e.aiMetadata,e.classification,e.propertyGroups)}},"createTrigger");var C4="2",My="0.82.0";var vR=class{constructor(t,r,o,n,s,a,c,u,l=My,p,f="",y){this.displayName=t;this.logoUrl=r;this.authors=o;this.events=n;this.categories=c;this.auth=u;this.minimumSupportedRelease=l;this.maximumSupportedRelease=p;this.description=f;this.deprecated=y;this._actions={};this._triggers={};this.getContextInfo=i(()=>({version:C4}),"getContextInfo");(!che(l)||uhe(l,My))&&(this.minimumSupportedRelease=My),s.forEach(m=>this._actions[m.name]=m),a.forEach(m=>this._triggers[m.name]=m)}static{i(this,"Piece")}metadata(){return{displayName:this.displayName,logoUrl:this.logoUrl,actions:this._actions,triggers:this._triggers,categories:this.categories,description:this.description,authors:this.authors,auth:ahe(this.auth),minimumSupportedRelease:this.minimumSupportedRelease,maximumSupportedRelease:this.maximumSupportedRelease,deprecated:this.deprecated,contextInfo:this.getContextInfo?.()}}getAction(t){return this._actions[t]}getTrigger(t){return this._triggers[t]}actions(){return this._actions}triggers(){return this._triggers}},T4=i(e=>{if(e.auth&&Array.isArray(e.auth)&&!e.auth.every((r,o,n)=>o===n.findIndex(s=>s.type===r.type)))throw new Error("Auth properties must be unique by type");return new vR(e.displayName,e.logoUrl,e.authors??[],e.events,e.actions,e.triggers,e.categories??[],e.auth,e.minimumSupportedRelease,e.maximumSupportedRelease,e.description,e.deprecated)},"createPiece");function ahe(e){if(e!==void 0)return Array.isArray(e)?e.map(A4):A4(e)}i(ahe,"withConnectionIdentifierFlag");function A4(e){return{...e,hasConnectionIdentifier:e.getConnectionIdentifier!==void 0}}i(A4,"flagConnectionIdentifier");function che(e){return/^\d+\.\d+\.\d+$/.test(e)}i(che,"isValidSimpleSemver");function uhe(e,t){let[r,o,n]=e.split(".").map(Number),[s,a,c]=t.split(".").map(Number);return r!==s?r<s:o!==a?o<a:n<c}i(uhe,"isSemverLessThan");var lhe=N(be(C(),be(C(),C()))),I4=D({id:N(C()),name:C(),displayName:C(),logoUrl:C(),description:C(),authors:me(C()),platformId:N(C()),directoryPath:N(C()),auth:N(Re([Xc,me(Xc)])),version:C(),categories:N(me(de(Uc))),minimumSupportedRelease:N(C()),maximumSupportedRelease:N(C()),deprecated:N(Fe()),i18n:lhe}),dhe=de(["human","ai","both"]),w4=D({description:N(C()),idempotent:N(Fe())}),R4=de(["READ","SEARCH","WRITE","DESTRUCTIVE"]);var phe=de(["tabs","section","summary","builder","footer"]),$4=D({key:C(),display:phe,label:N(C()),description:N(C()),icon:N(C()),props:me(C())}),O4=D({name:C(),displayName:C(),description:C(),props:_R,propertyGroups:N(me($4)),requireAuth:Fe(),errorHandlingOptions:N(L0),outputSchema:N(Xh()),audience:N(dhe),aiMetadata:N(w4),classification:N(R4)}),D4=D({name:C(),displayName:C(),description:C(),props:_R,propertyGroups:N(me($4)),errorHandlingOptions:N(L0),type:de(Oi),sampleData:xe(),handshakeConfiguration:N(Xh()),renewConfiguration:N(b4),testStrategy:de(pp),outputSchema:N(Xh()),aiMetadata:N(w4),classification:N(R4)}),fhe=D({...I4.shape,actions:be(C(),O4),triggers:be(C(),D4)}),mhe=D({...I4.shape,actions:zt(),triggers:zt(),suggestedActions:N(me(O4)),suggestedTriggers:N(me(D4))}),N4=D({projectUsage:zt(),pieceType:de(Fc),packageType:de(up),platformId:N(C()),archiveId:N(C())}),f9e=D({...fhe.shape,...N4.shape}),m9e=D({...mhe.shape,...N4.shape}),g9e=D({name:C(),version:C()});var k4=w(require("path")),xR=w(require("fs/promises"));var ghe={translatePiece:i(({piece:e,locale:t})=>{let r=t?e.i18n?.[t]:void 0;return r?L4({node:e,tree:hhe,translations:r}):e},"translatePiece"),initializeI18n:i(async e=>{try{let t=Object.values(G0),r={};for(let o of t){let n=await _he(o,e);n&&(r[o]=n)}return Object.keys(r).length>0?r:void 0}catch(t){console.log(`Error initializing i18n for ${e}:`,t);return}},"initializeI18n"),pathsToValuesToTranslate:["description","auth.username.displayName","auth.username.description","auth.password.displayName","auth.password.description","auth.props.*.displayName","auth.props.*.description","auth.props.*.options.options.*.label","auth.description","actions.*.displayName","actions.*.description","actions.*.props.*.displayName","actions.*.props.*.description","actions.*.props.*.options.options.*.label","triggers.*.displayName","triggers.*.description","triggers.*.props.*.displayName","triggers.*.props.*.description","triggers.*.props.*.options.options.*.label"]},hhe=ghe.pathsToValuesToTranslate.reduce((e,t)=>M4({tree:e,keys:t.split(".")}),{});function M4({tree:e,keys:[t,...r]}){return{...e,[t]:r.length===0?null:M4({tree:e[t]??{},keys:r})}}i(M4,"addPath");function L4({node:e,tree:t,translations:r}){if(!Ehe(e))return e;let o={},n=!1;for(let[s,a]of Object.entries(t))for(let c of s==="*"?Object.keys(e):[s]){let u=e[c],l=a===null?yhe({value:u,translations:r}):L4({node:u,tree:a,translations:r});l!==u&&(o[c]=l,n=!0)}return n?Object.assign(Array.isArray(e)?[]:{},e,o):e}i(L4,"translateNode");function yhe({value:e,translations:t}){return typeof e!="string"?e:t[e.slice(0,512)]||e}i(yhe,"translateValue");function Ehe(e){return typeof e=="object"&&e!==null}i(Ehe,"isRecord");async function She(e){try{return await xR.default.access(e),!0}catch{return!1}}i(She,"fileExists");var _he=i(async(e,t)=>{let r=k4.default.join(t,"src","i18n",`${e}.json`);if(!await She(r))return null;try{let o=await xR.default.readFile(r,"utf8"),n=JSON.parse(o);if(typeof n=="object"&&n!==null)return n;throw new Error(`Invalid i18n file format for ${e} in piece ${t}`)}catch(o){return console.error(`Error reading i18n file for ${e} in piece ${t}:`,o),null}},"readLocaleFile");var Ly=class extends Error{constructor(r,o){let n=o.status||500,s=Buffer.isBuffer(o.responseBody)?o.responseBody.toString():o.responseBody;super(JSON.stringify({response:{status:n,body:s},request:{body:r}}));this.requestBody=r;this.status=n,this.responseBody=s}static{i(this,"HttpError")}errorMessage(){return{response:{status:this.status,body:this.responseBody},request:{body:this.requestBody}}}get response(){return{status:this.status,body:this.responseBody}}get request(){return{body:this.requestBody}}};var bR=(a=>(a.GET="GET",a.POST="POST",a.PATCH="PATCH",a.PUT="PUT",a.DELETE="DELETE",a.HEAD="HEAD",a))(bR||{});var qC=w(NL());var ht=class e extends Error{constructor(r,o,n){super(r===void 0?`${o}: ${n}`:`AWS Lambda API returned ${r} (${o}): ${n}`);this.status=r;this.name=o}static{i(this,"LambdaApiError")}static from(r){if(r instanceof e)return r;if(r instanceof Ly){let{status:n,body:s}=r.response,a=kL(s);return new e(n,a.name,a.message)}let o=Mae({value:r,key:"name"});return new e(E2e(r),o&&o!=="Error"?o:"LambdaError",Mae({value:r,key:"message"})||"Unexpected AWS Lambda error")}};function kL(e){if(e&&typeof e=="object"){let t=Reflect.get(e,"Message")??Reflect.get(e,"message"),r=Reflect.get(e,"__type")??Reflect.get(e,"Type")??Reflect.get(e,"Code")??Reflect.get(e,"code");return{name:typeof r=="string"&&r?r:"LambdaError",message:typeof t=="string"&&t?t:JSON.stringify(e)}}return{name:"LambdaError",message:typeof e=="string"&&e?e:JSON.stringify(e??null)}}i(kL,"parseLambdaErrorBody");function Mae({value:e,key:t}){if(typeof e!="object"||e===null)return;let r=Reflect.get(e,t);return typeof r=="string"?r:void 0}i(Mae,"readString");function E2e(e){if(typeof e!="object"||e===null)return;let t=Reflect.get(e,"$metadata");if(typeof t!="object"||t===null)return;let r=Reflect.get(t,"httpStatusCode");return typeof r=="number"?r:void 0}i(E2e,"readStatus");function Lae(e){let t=e.startsWith("cn-")?`lambda.${e}.amazonaws.com.cn`:`lambda.${e}.amazonaws.com`;return{host:t,url:`https://${t}`}}i(Lae,"lambdaEndpoint");var zae=[{label:"US East (N. Virginia) [us-east-1]",value:"us-east-1"},{label:"US East (Ohio) [us-east-2]",value:"us-east-2"},{label:"US West (N. California) [us-west-1]",value:"us-west-1"},{label:"US West (Oregon) [us-west-2]",value:"us-west-2"},{label:"Africa (Cape Town) [af-south-1]",value:"af-south-1"},{label:"Asia Pacific (Hong Kong) [ap-east-1]",value:"ap-east-1"},{label:"Asia Pacific (Hyderabad) [ap-south-2]",value:"ap-south-2"},{label:"Asia Pacific (Jakarta) [ap-southeast-3]",value:"ap-southeast-3"},{label:"Asia Pacific (Melbourne) [ap-southeast-4]",value:"ap-southeast-4"},{label:"Asia Pacific (Mumbai) [ap-south-1]",value:"ap-south-1"},{label:"Asia Pacific (Osaka) [ap-northeast-3]",value:"ap-northeast-3"},{label:"Asia Pacific (Seoul) [ap-northeast-2]",value:"ap-northeast-2"},{label:"Asia Pacific (Singapore) [ap-southeast-1]",value:"ap-southeast-1"},{label:"Asia Pacific (Sydney) [ap-southeast-2]",value:"ap-southeast-2"},{label:"Asia Pacific (Tokyo) [ap-northeast-1]",value:"ap-northeast-1"},{label:"Canada (Central) [ca-central-1]",value:"ca-central-1"},{label:"Europe (Frankfurt) [eu-central-1]",value:"eu-central-1"},{label:"Europe (Ireland) [eu-west-1]",value:"eu-west-1"},{label:"Europe (London) [eu-west-2]",value:"eu-west-2"},{label:"Europe (Milan) [eu-south-1]",value:"eu-south-1"},{label:"Europe (Paris) [eu-west-3]",value:"eu-west-3"},{label:"Europe (Spain) [eu-south-2]",value:"eu-south-2"},{label:"Europe (Stockholm) [eu-north-1]",value:"eu-north-1"},{label:"Europe (Zurich) [eu-central-2]",value:"eu-central-2"},{label:"Middle East (Bahrain) [me-south-1]",value:"me-south-1"},{label:"Middle East (UAE) [me-central-1]",value:"me-central-1"},{label:"South America (S\xE3o Paulo) [sa-east-1]",value:"sa-east-1"},{label:"China (Beijing) [cn-north-1]",value:"cn-north-1"},{label:"China (Ningxia) [cn-northwest-1]",value:"cn-northwest-1"}];var S2e="\nConnect with an IAM user's access key.\n\n**How to get your credentials:**\n1. Open the [AWS IAM Console](https://console.aws.amazon.com/iam/) and go to **Users**.\n2. Select your user (or create one), then open **Security credentials**.\n3. Click **Create access key** and copy the Access Key ID and the Secret Access Key.\n4. Attach a policy that allows the Lambda calls this piece makes: `lambda:ListFunctions`, `lambda:GetFunctionConfiguration`, and `lambda:InvokeFunction`. `AWSLambda_ReadOnlyAccess` plus `lambda:InvokeFunction` covers the built-in actions. The custom action needs whatever the path you call requires.\n\nSaving the connection calls `ListFunctions` once. A bad key, region, or missing permission is rejected here.\n",_2e=`
125
+ Connect with an IAM role via OIDC. No long-lived access key is stored.
126
+
127
+ Activepieces acts as an OIDC identity provider. AWS trusts it and issues temporary credentials with \`AssumeRoleWithWebIdentity\`.
128
+
129
+ **Setup steps:**
130
+ 1. In AWS IAM \u2192 Identity providers \u2192 Create provider:
131
+ - Provider type: **OpenID Connect**
132
+ - Provider URL: \`{{frontendUrl}}\`
133
+ - Audience: \`sts.amazonaws.com\`
134
+
135
+ AWS fetches \`{{frontendUrl}}/.well-known/openid-configuration\`. If the frontend and API are on different hosts, the API must be reachable at \`{{frontendUrl}}\` (or the frontend must proxy \`/.well-known/*\`).
136
+ 2. Create an IAM role with this trust policy:
137
+ \`\`\`json
138
+ {
139
+ "Version": "2012-10-17",
140
+ "Statement": [{
141
+ "Effect": "Allow",
142
+ "Principal": { "Federated": "arn:aws:iam::YOUR_ACCOUNT_ID:oidc-provider/{{frontendHost}}" },
143
+ "Action": "sts:AssumeRoleWithWebIdentity",
144
+ "Condition": {
145
+ "StringEquals": {
146
+ "{{frontendHost}}:aud": "sts.amazonaws.com"
147
+ },
148
+ "StringLike": {
149
+ "{{frontendHost}}:sub": "platform:{{platformId}}:project:{{projectId}}"
150
+ }
151
+ }
152
+ }]
153
+ }
154
+ \`\`\`
155
+ 3. Attach Lambda permissions (\`lambda:ListFunctions\`, \`lambda:GetFunctionConfiguration\`, \`lambda:InvokeFunction\`) and paste the **Role ARN** below.
156
+
157
+ The role ARN is checked when you save. AWS is contacted on the first run, because connection validation does not receive a worker token.
158
+ `;function Fae(){return yt.StaticDropdown({displayName:"Region",description:"AWS region of the Lambda functions this connection uses. Another region needs another connection.",required:!0,defaultValue:"us-east-1",options:{options:zae}})}i(Fae,"regionProp");var v2e=/^arn:(?:aws|aws-us-gov|aws-cn):iam::\d{12}:role\/[\w+=,.@\-/]{1,512}$/;function Uae(e){return"roleArn"in e}i(Uae,"isOidcAuth");var x2e=Ap.CustomAuth({displayName:"AWS Lambda (Access Key)",description:S2e,required:!0,props:{accessKeyId:yt.ShortText({displayName:"Access Key ID",description:"Found in AWS IAM Console \u2192 Users \u2192 Security credentials.",required:!0}),secretAccessKey:Ap.SecretText({displayName:"Secret Access Key",description:"Shown only once when the access key is created.",required:!0}),region:Fae()},validate:i(async({auth:e})=>{if(!e.accessKeyId?.trim()||!e.secretAccessKey?.trim())return{valid:!1,error:"Access Key ID and Secret Access Key are required."};try{return await new qC.LambdaClient({region:e.region,credentials:{accessKeyId:e.accessKeyId.trim(),secretAccessKey:e.secretAccessKey.trim()}}).send(new qC.ListFunctionsCommand({MaxItems:1})),{valid:!0}}catch(t){return{valid:!1,error:ht.from(t).message}}},"validate")}),b2e=Ap.OIDC({displayName:"AWS Lambda (IAM Role / OIDC)",description:_2e,required:!0,props:{roleArn:yt.ShortText({displayName:"Role ARN",description:"ARN of the IAM role to assume, for example arn:aws:iam::123456789012:role/MyRole.",required:!0}),region:Fae()},validate:i(async({auth:e})=>{let t=e.roleArn?.trim()??"";return t?v2e.test(t)?{valid:!0}:{valid:!1,error:"Invalid IAM Role ARN format. Expected: arn:aws:iam::123456789012:role/RoleName"}:{valid:!1,error:"Role ARN is required for IAM role authentication."}},"validate")}),Ao=[x2e,b2e];var _le=w(Hae()),Ls=w(NL()),LA=w(que());var vle=w(Wue()),xle=w(yle());var vBe="sts.amazonaws.com",xBe=3600,ble=300*1e3,bBe=2,PBe=1e4,CBe=5e3,ABe=50,Ele=1e4,TBe=new Set(["POST","PUT","PATCH"]),Ez=new Map;async function zA({auth:e,server:t}){let r=await Sz({auth:e,server:t}),o=[],n;try{do{let s=await r.send(new Ls.ListFunctionsCommand({Marker:n,MaxItems:ABe}));if(o.push(...s.Functions??[]),o.length>Ele)throw new ht(void 0,"TooManyFunctions",`This region lists more than ${Ele} functions.`);if(!s.NextMarker||s.NextMarker===n)break;n=s.NextMarker}while(n);return o}catch(s){throw ht.from(s)}}i(zA,"listFunctions");async function Ple({auth:e,server:t,input:r}){let o=await Sz({auth:e,server:t});try{let n=await o.send(new Ls.InvokeCommand({FunctionName:Ile(r.functionName),InvocationType:r.invocationType,Qualifier:wle(r.qualifier),Payload:$Be(r.payload)})),s=IBe(n.Payload);if(n.FunctionError&&r.failOnFunctionError)throw new ht(n.StatusCode,n.FunctionError,`The function failed: ${DBe(s)}`);return{statusCode:n.StatusCode??null,functionError:n.FunctionError??null,executedVersion:n.ExecutedVersion??null,payload:s}}catch(n){throw ht.from(n)}}i(Ple,"invokeLambda");async function Cle({auth:e,server:t,input:r}){let o=await Sz({auth:e,server:t});try{let n=await o.send(new Ls.GetFunctionConfigurationCommand({FunctionName:Ile(r.functionName),Qualifier:wle(r.qualifier)}));return{functionArn:n.FunctionArn??null,functionName:n.FunctionName??null,runtime:n.Runtime??null,handler:n.Handler??null,memorySize:n.MemorySize??null,timeout:n.Timeout??null,environment:r.includeEnvironment?n.Environment?.Variables??{}:null,role:n.Role??null,lastModified:n.LastModified??null,state:n.State??null,version:n.Version??null,description:n.Description??null}}catch(n){throw ht.from(n)}}i(Cle,"getFunctionDetails");async function Ale({auth:e,server:t,input:r}){let o=await Tle({auth:e,server:t}),n=kBe({region:e.region,path:r.path});FBe({url:n,queryParams:Sle({value:r.queryParams,field:"Query parameters"})});let s=_z({value:r.body,field:"Body"}),a=s===void 0||!TBe.has(r.method)?void 0:JSON.stringify(s),c=UBe(Sle({value:r.headers,field:"Headers"}));a&&!c["content-type"]&&(c["content-type"]="application/json");let u=await RBe({credentials:o,region:e.region,method:r.method,url:n,headers:c,body:a});try{let l=await fetch(LBe(n),{method:r.method,headers:u,body:a,redirect:"manual",signal:AbortSignal.timeout(VBe(r.timeoutSeconds))}),p=await BBe(l);if(!l.ok){let f=kL(p);throw new ht(l.status,f.name,f.message)}return{status:l.status,headers:jBe(l),body:p}}catch(l){throw ht.from(l)}}i(Ale,"customLambdaCall");function IBe(e){if(!e||e.byteLength===0)return null;let t=new TextDecoder().decode(e);try{return JSON.parse(t)}catch{return t}}i(IBe,"decodePayload");async function Sz({auth:e,server:t}){let r=await Tle({auth:e,server:t});return new Ls.LambdaClient({region:e.region,credentials:r})}i(Sz,"createLambdaClient");async function Tle({auth:e,server:t}){if(Uae(e))return wBe({auth:e,server:t});let r=e.accessKeyId?.trim(),o=e.secretAccessKey?.trim();if(!r||!o)throw new ht(void 0,"MissingCredentials","Access Key ID and Secret Access Key are required.");return{accessKeyId:r,secretAccessKey:o}}i(Tle,"resolveCredentials");async function wBe({auth:e,server:t}){let r=e.roleArn?.trim();if(!r)throw new ht(void 0,"MissingRoleArn","Role ARN is required for IAM role authentication.");let o=xBe,n=`${t.token}:${r}:${e.region}:${o}`,s=NBe({cacheKey:n});if(s)return s;let a=`${t.apiUrl.endsWith("/")?t.apiUrl:`${t.apiUrl}/`}v1/worker/oidc-token`,c=await fetch(a,{method:"POST",headers:{Authorization:`Bearer ${t.token}`,"Content-Type":"application/json"},body:JSON.stringify({audience:vBe})});if(!c.ok)throw new ht(c.status,"OidcTokenError",`Failed to get an OIDC token: ${c.statusText}`);let u=OBe(await c.json()),l=new LA.STSClient({region:e.region,maxAttempts:bBe,requestHandler:{requestTimeout:PBe,connectionTimeout:CBe}});try{let f=(await l.send(new LA.AssumeRoleWithWebIdentityCommand({RoleArn:r,RoleSessionName:"activepieces-execution",WebIdentityToken:u,DurationSeconds:o}))).Credentials;if(!f?.AccessKeyId||!f.SecretAccessKey)throw new ht(void 0,"AssumeRoleFailed","Failed to assume role: no credentials returned.");let y={accessKeyId:f.AccessKeyId,secretAccessKey:f.SecretAccessKey,sessionToken:f.SessionToken},m=f.Expiration?.getTime()??Date.now()+o*1e3;return m-Date.now()>ble&&Ez.set(n,{credentials:y,expiresAtMS:m}),y}catch(p){throw ht.from(p)}}i(wBe,"getTemporaryCredentials");async function RBe({credentials:e,region:t,method:r,url:o,headers:n,body:s}){let a=new vle.HttpRequest({method:r,protocol:o.protocol,hostname:o.hostname,port:o.port?Number(o.port):void 0,path:o.pathname,query:MBe(o),headers:{...n,host:o.host},body:s}),u=await new xle.SignatureV4({credentials:e,region:t,service:"lambda",sha256:_le.Sha256}).sign(a),l={};for(let[p,f]of Object.entries(u.headers))f!==void 0&&(l[p]=Array.isArray(f)?f.join(","):String(f));return l}i(RBe,"signRequest");function Ile(e){let t=e.trim();if(!t)throw new ht(void 0,"InvalidFunctionName","Function name or ARN is required.");return t}i(Ile,"requireFunctionName");function $Be(e){let t=_z({value:e,field:"Payload"});if(t!==void 0)return new TextEncoder().encode(JSON.stringify(t))}i($Be,"encodePayload");function _z({value:e,field:t}){if(typeof e!="string")return e??void 0;if(e.trim())try{return JSON.parse(e)}catch{throw new ht(void 0,"InvalidJson",`${t} must be valid JSON.`)}}i(_z,"parseJsonInput");function Sle({value:e,field:t}){let r=_z({value:e,field:t});if(r!==void 0){if(!vz(r))throw new ht(void 0,"InvalidJson",`${t} must be a JSON object.`);return r}}i(Sle,"parseJsonObject");function vz(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}i(vz,"isRecord");function OBe(e){let t=vz(e)?e.token:void 0;if(typeof t!="string"||!t)throw new ht(void 0,"OidcTokenError","Failed to get an OIDC token: the response had no token.");return t}i(OBe,"readOidcToken");function DBe(e){if(vz(e)){let t=e.errorMessage,r=e.errorType;if(typeof t=="string"&&t)return typeof r=="string"&&r?`${r}: ${t}`:t}return typeof e=="string"&&e?e:JSON.stringify(e)}i(DBe,"functionErrorMessage");function NBe({cacheKey:e}){let t=Date.now(),r;for(let[o,n]of Ez){if(n.expiresAtMS-t<=ble){Ez.delete(o);continue}o===e&&(r=n.credentials)}return r}i(NBe,"takeFreshCredentials");function kBe({region:e,path:t}){let r=Lae(e),o=new URL(zBe(t),r.url);if(o.origin!==r.url)throw new ht(void 0,"InvalidPath","Path must be a Lambda API path such as /2015-03-31/functions.");return o}i(kBe,"lambdaRequestUrl");function MBe(e){let t=new Map;for(let[r,o]of e.searchParams)t.set(r,[...t.get(r)??[],o]);return Object.fromEntries([...t].map(([r,o])=>[r,o.length===1?o[0]:o]))}i(MBe,"signedQuery");function LBe(e){let t=`${e.origin}${e.pathname}`;return e.search?`${t}${e.search.replaceAll("+","%20")}`:t}i(LBe,"signedRequestUrl");function zBe(e){let t=e.trim();if(!t||t.includes("://")||t.startsWith("//"))throw new ht(void 0,"InvalidPath","Path must be a Lambda API path such as /2015-03-31/functions.");return t.startsWith("/")?t:`/${t}`}i(zBe,"normalizePath");function FBe({url:e,queryParams:t}){if(t)for(let[r,o]of Object.entries(t))o==null||o===""||e.searchParams.append(r,String(o))}i(FBe,"appendQuery");function UBe(e){let t={};if(!e)return t;for(let[r,o]of Object.entries(e))o!=null&&(/^(host|authorization)$/i.test(r)||(t[r.toLowerCase()]=String(o)));return t}i(UBe,"userHeaders");function jBe(e){let t={};return e.headers.forEach((r,o)=>{t[o]=r}),t}i(jBe,"headersFromFetch");async function BBe(e){let t=await e.text();if(!t)return{};try{return JSON.parse(t)}catch{return t}}i(BBe,"readFetchBody");function wle(e){let t=e?.trim();return t||void 0}i(wle,"blankToUndefined");function VBe(e){let t=e===void 0||Number.isNaN(e)?30:e;return Math.min(Math.max(t,1),900)*1e3}i(VBe,"clampTimeout");var Rle=zc({name:"customApiCall",displayName:"Custom Action",description:"Send a SigV4-signed request to the Lambda API in the connection's region. Method, path, query, headers, and JSON body are yours.",auth:Ao,requireAuth:!0,audience:"human",classification:"WRITE",aiMetadata:{description:"Send a signed request to any AWS Lambda API path in the connection's region. Use only when no dedicated action covers the call; the effect and retry safety depend on the method and path.",idempotent:!1},props:{method:yt.StaticDropdown({displayName:"Method",required:!0,defaultValue:"GET",options:{options:Object.values(bR).map(e=>({label:e,value:e}))}}),path:yt.ShortText({displayName:"Path",description:"Lambda API path, such as /2015-03-31/functions.",required:!0}),queryParams:yt.Object({displayName:"Query parameters",description:"Optional query string. Keys with empty values are skipped.",required:!1}),headers:yt.Object({displayName:"Headers",description:"Optional headers. Host and Authorization are set for you.",required:!1}),body:yt.Json({displayName:"Body",description:"Optional JSON body for POST, PUT, and PATCH.",required:!1}),timeout:yt.Number({displayName:"Timeout (seconds)",description:"How long to wait. Defaults to 30 seconds. Maximum is 900.",required:!1,defaultValue:30})},async run(e){let{method:t,path:r,queryParams:o,headers:n,body:s,timeout:a}=e.propsValue,c=e.auth.props;return Ale({auth:c,server:e.server,input:{method:t,path:r,queryParams:o,headers:n,body:s,timeoutSeconds:a}})}});var $le={fields:[{key:"statusCode",label:"Status Code",format:"number"},{key:"functionError",label:"Function Error"},{key:"executedVersion",label:"Executed Version"},{key:"payload",label:"Payload"}]},Ole={fields:[{key:"functionName",label:"Function Name"},{key:"functionArn",label:"Function ARN"},{key:"description",label:"Description"},{key:"runtime",label:"Runtime"},{key:"handler",label:"Handler"},{key:"memorySize",label:"Memory (MB)",format:"number"},{key:"timeout",label:"Timeout (seconds)",format:"number"},{key:"role",label:"Execution Role ARN"},{key:"state",label:"State"},{key:"version",label:"Version"},{key:"lastModified",label:"Last Modified"},{key:"environment",label:"Environment Variables",dynamicKey:!0}]};var Dle=zc({name:"getFunctionDetails",displayName:"Get Function Details",description:"Return a function's ARN, runtime, handler, memory, timeout, and state.",auth:Ao,requireAuth:!0,audience:"both",classification:"READ",outputSchema:Ole,aiMetadata:{description:"Read the configuration of one AWS Lambda function by name or ARN: runtime, handler, memory, timeout, role, state and version. Use it to inspect a function before invoking it. Read-only and safe to retry.",idempotent:!0},props:{functionName:yt.ShortText({displayName:"Function name or ARN",description:"Name, partial ARN, or full ARN of the function.",required:!0}),qualifier:yt.ShortText({displayName:"Qualifier",description:"Optional version or alias. Leave empty to read $LATEST.",required:!1}),includeEnvironment:yt.Checkbox({displayName:"Include environment variables",description:"Values may contain secrets and will appear in run logs.",required:!1,defaultValue:!1})},async run(e){let{functionName:t,qualifier:r,includeEnvironment:o}=e.propsValue,n=e.auth.props;return Cle({auth:n,server:e.server,input:{functionName:t,qualifier:r,includeEnvironment:o===!0}})}});var Nle=zc({name:"invokeFunction",displayName:"Invoke Function",description:"Invoke a Lambda function synchronously or asynchronously and return the status code, function error, and payload.",auth:Ao,requireAuth:!0,audience:"both",classification:"WRITE",outputSchema:$le,aiMetadata:{description:"Run an AWS Lambda function with an optional JSON payload. Synchronous calls wait and return the function's response; asynchronous calls only queue the event. Each call runs the function again, so retries repeat its side effects.",idempotent:!1},props:{functionName:yt.ShortText({displayName:"Function name or ARN",description:"Name or ARN. Append :alias to target an alias.",required:!0}),invocationType:yt.StaticDropdown({displayName:"Invocation type",description:"Synchronous waits for the result. Asynchronous returns once queued.",required:!0,defaultValue:"RequestResponse",options:{options:[{label:"Synchronous (RequestResponse)",value:"RequestResponse"},{label:"Asynchronous (Event)",value:"Event"}]}}),qualifier:yt.ShortText({displayName:"Qualifier",description:"Optional version or alias. Leave empty to invoke $LATEST.",required:!1}),payload:yt.Json({displayName:"Payload",description:"JSON sent to the function. Leave empty to send no payload.",required:!1}),failOnFunctionError:yt.Checkbox({displayName:"Fail step on function error",description:"Fail this step when the function throws, instead of returning the error.",required:!1,defaultValue:!0})},async run(e){let{functionName:t,invocationType:r,qualifier:o,payload:n,failOnFunctionError:s}=e.propsValue,a=e.auth.props;return Ple({auth:a,server:e.server,input:{functionName:t,invocationType:r==="Event"?"Event":"RequestResponse",qualifier:o,payload:n,failOnFunctionError:s!==!1}})}});var Mle=require("node:crypto");async function kle({store:e,functions:t,initializeOnly:r}){let o=ZBe(t.flatMap(c=>c.FunctionArn?[c.FunctionArn]:[])),n=await Lle(e),s=r||n===null?null:await HBe({store:e,pointer:n});if(await GBe({store:e,arns:o,replaced:n}),s==null)return[];let a=new Set(s);return t.filter(c=>c.FunctionArn&&!a.has(c.FunctionArn))}i(kle,"remember");function xz({snapshotId:e,index:t}){return`${bz}:${e}:${t}`}i(xz,"chunkKey");async function Lle(e){let t=await e.get(bz);return qBe(t)?t:null}i(Lle,"readPointer");async function HBe({store:e,pointer:t}){let r=await Promise.all(Array.from({length:t.chunkCount},(o,n)=>e.get(xz({snapshotId:t.snapshotId,index:n}))));if(r.some(o=>o==null))throw new Error("The saved function snapshot is incomplete. The next check will retry.");return r.flatMap(o=>o??[])}i(HBe,"readSnapshot");async function GBe({store:e,arns:t,replaced:r}){let o=(0,Mle.randomUUID)(),n=WBe(t);for(let[s,a]of n.entries())await e.put(xz({snapshotId:o,index:s}),a);await e.put(bz,{snapshotId:o,chunkCount:n.length}),r!==null&&await Promise.all(Array.from({length:r.chunkCount},(s,a)=>e.delete(xz({snapshotId:r.snapshotId,index:a})).catch(()=>{})))}i(GBe,"writeSnapshot");function qBe(e){if(typeof e!="object"||e===null)return!1;let t=Reflect.get(e,"snapshotId"),r=Reflect.get(e,"chunkCount");return typeof t=="string"&&typeof r=="number"&&Number.isInteger(r)&&r>0}i(qBe,"isSnapshotPointer");function WBe(e){if(e.length===0)return[[]];let t=[],r=[],o=2;for(let n of e){let s=Buffer.byteLength(JSON.stringify(n),"utf8"),a=r.length===0?0:1;if(r.length>0&&o+a+s>KBe){t.push(r),r=[n],o=2+s;continue}r.push(n),o+=a+s}return t.push(r),t}i(WBe,"chunkArns");function ZBe(e){return[...new Set(e)]}i(ZBe,"uniqueArns");var KBe=512*1024,bz="seen-function-arns",zle=P4({name:"newFunctionCreated",displayName:"New Function Created",description:"Fires when a Lambda function ARN appears that was not present the last time this trigger ran. Enabling it records the current functions and stays quiet.",auth:Ao,requireAuth:!0,type:"POLLING",classification:"READ",aiMetadata:{description:"Starts a flow once for each AWS Lambda function that appears in the connection's region since the last check. Functions that already existed when the trigger was turned on are ignored."},props:{},sampleData:{FunctionName:"billing-webhook",FunctionArn:"arn:aws:lambda:us-east-1:123456789012:function:billing-webhook",Runtime:"nodejs20.x",Handler:"index.handler",LastModified:"2026-09-28T12:00:00.000+0000"},async onEnable(e){if(e.isRepublish===!0&&await Lle(e.store)!==null)return;let t=await zA({auth:e.auth.props,server:e.server});await kle({store:e.store,functions:t,initializeOnly:!0})},async onDisable(){},async run(e){let t=await zA({auth:e.auth.props,server:e.server});return kle({store:e.store,functions:t,initializeOnly:!1})},async test(e){return(await zA({auth:e.auth.props,server:e.server})).slice(0,10)}});var XBe=T4({displayName:"AWS Lambda",description:"Invoke functions and watch for new ones",auth:Ao,minimumSupportedRelease:"0.90.1",logoUrl:"https://cdn.activepieces.com/pieces/amazon-lambda.png",authors:["eliseukadesh67"],categories:["DEVELOPER_TOOLS"],actions:[Nle,Dle,Rle],triggers:[zle]});0&&(module.exports={amazonLambda});